.quest-share-dialog{box-sizing:border-box;width:min(520px,calc(100% - 28px));max-height:calc(100dvh - 36px);overflow:auto;border:1px solid #b9c9d3;border-radius:12px;padding:28px;background:#faf7ef url('/assets/images/paper-fibers.svg');color:#273847;box-shadow:0 14px 45px #243e5426;font-family:var(--font-body,'Source Sans 3',sans-serif)}
.quest-share-dialog::backdrop{background:#293f4a52;backdrop-filter:blur(2px)}
.quest-share-dialog h2{font-family:var(--font-heading,'Nunito Sans',sans-serif);font-size:25px;margin:0;color:#2865a7;padding-right:35px}
.quest-share-dialog .share-close{position:absolute;right:16px;top:16px;width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:#355b77;font-size:25px;cursor:pointer}
.share-page-title{font-size:19px;line-height:1.35;margin:18px 0 6px;font-weight:600}.share-page-description{font-size:16px;line-height:1.5;color:#536575;margin:0 0 20px}
.share-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.share-options a,.share-options button{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #b8c9d5;border-radius:12px;background:#eef3f5;color:#255477;font:inherit;text-decoration:none;cursor:pointer;min-height:52px;text-align:left}
.share-options a:hover,.share-options button:hover{background:#e0ebf1;border-color:#2865a7}.share-options :focus-visible,.share-close:focus-visible,.share-url:focus-visible{outline:3px solid #2865a7;outline-offset:3px}
.share-placeholder-icon{width:28px;height:28px;display:grid;place-items:center;flex-shrink:0;border:1px solid #9fb6c8;border-radius:50%;font-size:14px;font-weight:700;color:#2865a7;background:#faf7ef}.share-url-label{display:block;font-size:14px;margin:22px 0 6px;color:#536575}.share-url{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid #bcc9cf;border-radius:8px;background:#fffdf8;color:#465e70;font:inherit;font-size:14px}.share-status{min-height:24px;margin:10px 0 0;font-size:15px;color:#285c7b;overflow-wrap:anywhere}.share-preview-note{font-size:13px;line-height:1.45;color:#65737c;border-top:1px solid #d7ddd9;padding-top:12px;margin:12px 0 0}.quest-share-dialog [hidden]{display:none!important}
@media(max-width:500px){.quest-share-dialog{padding:22px 18px}.share-options{gap:8px}.share-options a,.share-options button{padding:10px;font-size:15px}.quest-share-dialog h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.quest-share-dialog{scroll-behavior:auto}}
.share-page-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}

.share-pencil-icon{width:36px;height:36px;object-fit:contain;flex:0 0 36px;display:block}.instagram-share-note{font-size:13px;line-height:1.4;color:#607282;margin:14px 0 0}.share-options a,.share-options button{min-height:60px;padding:11px 13px;gap:12px}.share-options [data-device]{gap:12px}
@media(max-width:360px){.share-pencil-icon{width:32px;height:32px;flex-basis:32px}.share-options a,.share-options button{padding:10px 8px;gap:8px;font-size:14px}}
@media(max-width:360px){.share-options{grid-template-columns:1fr}.share-options a,.share-options button{padding:9px 12px;gap:12px;min-height:52px;font-size:15px}.share-page-description{-webkit-line-clamp:2}}

/* Compact icon-only row. Artwork remains unchanged. */
.quest-share-dialog{width:min(440px,calc(100% - 12px));padding:24px}.quest-share-dialog h2{font-size:23px}.share-page-title{font-size:17px;margin:14px 0 20px}.share-options{display:flex;flex-wrap:nowrap;justify-content:center;gap:8px}.share-options a,.share-options button{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:6px;border:0;background:transparent;border-radius:8px;gap:0}.share-options a:hover,.share-options button:hover{background:#e2edf2}.share-pencil-icon{width:32px;height:32px;flex:0 0 32px;object-fit:contain}.share-tooltip{position:absolute;left:50%;top:calc(100% + 5px);transform:translateX(-50%);white-space:nowrap;z-index:2;background:#284d67;color:#fffdf8;font-size:12px;line-height:1.4;padding:4px 7px;border-radius:5px;pointer-events:none;opacity:0}.share-options a:hover .share-tooltip,.share-options a:focus-visible .share-tooltip,.share-options button:hover .share-tooltip,.share-options button:focus-visible .share-tooltip{opacity:1}.share-status{min-height:0;margin:22px 0 0}.share-status:empty{display:none}.share-preview-note{font-size:12px;margin:24px 0 0;padding-top:12px}.share-url-label{margin-top:28px}.share-url[hidden]{display:none}.share-options [data-share="email"]{gap:0}
@media(max-width:360px){.quest-share-dialog{padding:18px 10px}.share-options{gap:1px}.share-options a,.share-options button{padding:6px;min-height:44px}.share-pencil-icon{width:32px;height:32px;flex-basis:32px}.quest-share-dialog h2{font-size:21px}.share-page-title{font-size:16px}.share-tooltip{font-size:11px;padding:4px 5px}}

/* Reading order: title, description, page link, actions. */
.share-page-title{margin:14px 0 8px}.share-page-description{-webkit-line-clamp:2;font-size:15px;line-height:1.45;margin:0 0 16px}.share-url-label{margin:0 0 6px}.share-preview-note{border:0;margin:12px 0 0;padding:0;font-size:11px}.share-status{margin:10px 0 0}.share-options{margin-top:20px;margin-bottom:14px}.share-tooltip{top:auto;bottom:calc(100% + 5px)}
/* Override the browser dialog max-width inset so six44px targets fit. */
.quest-share-dialog{max-width:calc(100% - 12px)}
@media(max-width:360px){.quest-share-dialog{padding-left:8px;padding-right:8px}.share-options{gap:0}}

/* Compact pencil buttons reuse Subscribe's approved pigment, edge and inset.
   The blue face stays 32px high within a comfortable 44px pointer target. */
.native-share-link,.compact-pencil-button{position:relative;isolation:isolate;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:44px;min-height:44px;padding:0 14px;border:0;background:transparent;box-shadow:none;color:#fff!important;font:500 15px/20px var(--ui);text-decoration:none;white-space:nowrap;cursor:pointer}
.native-share-link::before,.compact-pencil-button::before{content:"";position:absolute;inset:6px 0;z-index:-1;box-sizing:border-box;background:#2e6db2 url('../images/blue-pencil.svg');border:1px solid #4779ac;border-radius:var(--surface-radius,12px);box-shadow:inset 0 0 0 1px #b7d7ec66,1px 1px 0 #285e9722}
.native-share-link:hover,.compact-pencil-button:hover{background:transparent;color:#fff;text-decoration:none}
.native-share-link:hover::before,.compact-pencil-button:hover::before{background-color:#1c4d83}
.native-share-link:focus-visible,.compact-pencil-button:focus-visible{outline:3px solid #2865a7;outline-offset:2px}
/* Text-only controls match Subscribe rather than introducing generic line icons. */
.native-share-link svg{display:none}
.topic-intro-panel .native-share-link{min-height:44px}
