/* Share entry points (results CTA, mobile sticky bar, desktop dock) and the share panel. */
.share-cta{display:flex;gap:10px;margin:18px 0 6px}
.share-cta .share-open{flex:1;min-height:56px;display:flex;align-items:center;justify-content:center;gap:10px;border:0;background:var(--share-accent,#ffd166);color:#050a14;font:inherit;font-size:26px;letter-spacing:.12em;text-decoration:none;box-shadow:4px 4px 0 #ff5d8f;cursor:pointer}
.share-cta .share-open:hover{filter:brightness(1.08)}
.share-cta .share-open:focus-visible,.share-bar button:focus-visible,.share-panel button:focus-visible,.share-panel a:focus-visible{outline:3px solid #e8f1ff;outline-offset:2px}
.share-cta .share-copy{width:56px;min-height:56px;display:flex;align-items:center;justify-content:center;border:2px solid rgba(232,241,255,.4);background:transparent;color:#e8f1ff;padding:0;cursor:pointer;text-decoration:none}
.share-cta .share-copy .label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.share-cta-note{margin:0 0 12px;font-size:17px;color:#9fb3d4}
.share-nudge{display:flex;align-items:center;gap:12px;margin:14px 0 4px;padding:12px 12px 12px 14px;border:2px solid #ffd166;background:rgba(255,209,102,.1)}
.share-nudge span{flex:1;display:flex;flex-direction:column;font-size:17px;color:#c9d6ec}
.share-nudge b{font-weight:400;font-size:22px;color:#ffd166;letter-spacing:.08em}
.share-nudge button{min-height:44px;padding:0 14px;border:0;background:#ffd166;color:#050a14;font:inherit;font-size:20px;letter-spacing:.08em;display:flex;align-items:center;gap:6px;text-decoration:none;cursor:pointer}
.share-nudge button svg{width:18px;height:18px}

/* Mobile: a bar pinned to the bottom of the results scroller once the main button scrolls away. */
.share-bar{display:none}
@media (max-width:759px){
  .share-bar{position:sticky;bottom:-60px;z-index:3;display:flex;gap:10px;margin:24px -20px -60px;padding:12px 16px calc(14px + env(safe-area-inset-bottom));background:rgba(5,10,20,.95);border-top:2px solid rgba(232,241,255,.15);opacity:0;visibility:hidden;transition:opacity .18s ease-out,visibility 0s .18s}
  .share-bar.show{opacity:1;visibility:visible;transition:opacity .18s ease-out}
  .share-bar .share-next{flex:1;min-height:52px;border:2px solid rgba(232,241,255,.5);background:transparent;color:#e8f1ff;font:inherit;font-size:22px;letter-spacing:.1em;text-decoration:none;cursor:pointer}
  .share-bar .share-open{width:52px;min-height:52px;border:0;background:var(--share-accent,#ffd166);color:#050a14;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
}
@media (prefers-reduced-motion:reduce){.share-bar{transition:none}}

/* Desktop: the panel docks beside results on wide screens. */
.share-dock{display:none}
@media (min-width:1400px){
  .share-dock{display:block;position:fixed;top:196px;right:24px;width:344px;max-height:calc(100vh - 220px);overflow:auto;z-index:4;background:#0b1628;border:3px solid var(--share-accent,#ffd166);padding:18px;box-sizing:border-box}
  .share-dock .share-body{display:flex;flex-direction:column;gap:12px}
  .share-dock .share-preview{width:min(100%,220px)}
  .share-dock .share-preview[data-format-view="story"]{width:min(100%,160px)}
  .share-dock .share-hint{display:none}
  .share-dock .share-head{margin-bottom:4px}
}

/* The panel itself, shared by the dialog and the dock. */
.share-panel{font-family:VT323,ui-monospace,monospace;color:#e8f1ff}
.share-panel h2{margin:0;font-weight:400;font-size:28px;letter-spacing:.08em}
.share-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.share-x{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:#9fb3d4;padding:0;cursor:pointer;text-decoration:none}
.share-formats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:2px solid rgba(232,241,255,.25);margin-bottom:12px}
.share-formats button{min-height:40px;border:0;background:transparent;color:#c9d6ec;font:inherit;font-size:19px;letter-spacing:.08em;text-decoration:none;cursor:pointer;padding:0}
.share-formats button[aria-pressed="true"]{background:var(--share-accent,#ffd166);color:#050a14}
.share-preview{position:relative;margin:0 auto;width:min(100%,250px);aspect-ratio:4/5;background:#050a14;box-shadow:6px 6px 0 rgba(255,93,143,.45)}
.share-preview[data-format-view="story"]{aspect-ratio:9/16;width:min(100%,190px)}
.share-preview img{display:block;width:100%;height:100%;object-fit:contain}
.share-preview img:not([src]){visibility:hidden}
.share-wait{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;font-size:18px;color:#9fb3d4}
.share-wait[hidden]{display:none}
.share-controls{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.share-check{display:flex;align-items:center;gap:10px;font-size:19px;color:#c9d6ec}
.share-check input{width:20px;height:20px;accent-color:#ffd166}
.share-primary{min-height:54px;display:flex;align-items:center;justify-content:center;gap:10px;border:0;background:var(--share-accent,#ffd166);color:#050a14;font:inherit;font-size:22px;letter-spacing:.08em;text-decoration:none;cursor:pointer}
.share-primary:disabled{opacity:.55;cursor:wait}
.share-hint{margin:-4px 0 0;font-size:16px;color:#9fb3d4;text-align:center}
.share-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px}
.share-grid button{min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:2px solid rgba(232,241,255,.25);background:transparent;color:#e8f1ff;font:inherit;font-size:17px;text-decoration:none;cursor:pointer;padding:4px}
.share-label{margin:4px 0 0;font-size:16px;letter-spacing:.12em;color:#9fb3d4}
.share-posts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.share-posts a{min-height:46px;display:flex;align-items:center;justify-content:center;gap:8px;border:2px solid rgba(232,241,255,.3);color:#e8f1ff;font-size:19px;text-decoration:none}
.share-posts a:hover,.share-grid button:hover{border-color:#e8f1ff}
.share-status{min-height:20px;margin:0;font-size:17px;color:#4de3ff;white-space:pre-line;word-break:break-word}

.share-dialog{padding:0;border:3px solid var(--share-accent,#ffd166);background:#0b1628;color:#e8f1ff;box-sizing:border-box}
.share-dialog::backdrop{background:rgba(2,5,12,.7)}
.share-dialog .share-panel{padding:16px 18px 22px}
@media (max-width:759px){
  .share-dialog{margin:auto 0 0;width:100%;max-width:100%;max-height:92dvh;overflow:auto;border-width:3px 0 0}
  .share-dialog[open]{animation:share-up .22s ease-out}
}
@media (min-width:760px){
  .share-dialog{width:min(900px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;box-shadow:10px 10px 0 rgba(255,93,143,.3)}
  .share-dialog .share-panel{padding:24px 28px 28px}
  .share-dialog .share-body{display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:28px;align-items:start}
  .share-dialog .share-preview{width:100%}
  .share-dialog .share-preview[data-format-view="story"]{width:min(100%,260px)}
  .share-dialog .share-controls{margin-top:0}
}
@keyframes share-up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.share-dialog[open]{animation:none}}
.v-results .share-cta{--share-accent:#ff5d8f;justify-content:center}
.v-results .share-cta .share-open{max-width:460px}
