/* Let Me Act web app. Colours, sizes and type follow the iPhone app (letmeactforyou-ios src/theme.js and each
   component's StyleSheet). Under 900px wide the phone layout: bottom tab bar, full-bleed feed. From 900px the desktop
   layout: side navigation, a centred 9:16 stage for video, centred columns for everything else. */

:root {
  --ink: #0C0D11;
  --canvas: #111319;
  --surface: #191B23;
  --surface-raised: #20232C;
  --surface-muted: #15171D;
  --line: #30333D;
  --line-strong: #484C58;
  --text: #F5F2EC;
  --text-muted: #A5A7B0;
  --text-dim: #727580;
  --orange: #FF865C;
  --orange-soft: #3D2825;
  --mint: #8FD4B7;
  --mint-soft: #1C332D;
  --lavender: #C4A7FF;
  --danger: #FF9D95;
  --danger-soft: #382225;
  --danger-line: #6E383A;
  --white: #FFFFFF;
  --black: #000000;
  --red: #FE2C55;
  --amber: #F2B84B;
  --verified: #20D5EC;
  --sheet: #15161B;
  --sheet-grab: #3A3C45;
  --nav-border: #1D1E24;
  --paper: #F7F2E7;
  --paper-ink: #22201C;
  --paper-ink-soft: #6B655A;
  --paper-rule: #BDB5A5;
  --paper-margin: rgba(230, 110, 110, 0.28);
  --margin-ink: #D2452F;
  --highlight: rgba(255, 205, 50, 0.8);
  --sticky: #FFE27A;
  --sticky-ink: #3A3010;
  --clapper: #151515;
  --clapper-line: #444444;
  --clapper-dim: #9A9A9A;
  --desk: #1A1612;
  --desk-glow: #3A2E22;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Bradley Hand", "Caveat", "Segoe Print", "Ink Free", cursive;
  --mono: "Courier Prime", Courier, "Courier New", monospace;
  --text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  --tab-height: 57px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --side-width: 244px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body { margin: 0; min-height: 100dvh; background: var(--canvas); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
html[data-route="feed"] body, html[data-route="take"] body { background: var(--black); }
html[data-route="call"] body { background: var(--desk); }
body.sheet-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
img, video { display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { display: inline-block; vertical-align: middle; }

/* ---- boot splash ------------------------------------------------------------------------------- */
.boot { min-height: 100dvh; display: grid; place-items: center; background: var(--black); }
.boot-brand { color: var(--white); font-size: 13px; font-weight: 900; letter-spacing: 2px; }

/* ---- shared bits ------------------------------------------------------------------------------- */
.spinner { display: inline-block; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--spin-color) 25%, transparent); border-top-color: var(--spin-color); animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse-dot { display: inline-block; border-radius: 50%; flex-shrink: 0; animation: breathe 1s ease-in-out infinite; }
.pulse-dot.still { animation: none; }
@keyframes breathe { 50% { opacity: 0.25; } }

.avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar img.avatar-poster { position: absolute; top: 0; left: 0; height: 177.8%; object-position: top; }
.avatar-initial { color: var(--ink); font-weight: 800; }

.poster-img { width: 100%; height: 100%; object-fit: cover; background: var(--surface-muted); }
.poster-flat { width: 100%; height: 100%; display: grid; place-items: center; }
.poster-flat span { color: var(--ink); font-size: 28px; font-weight: 800; opacity: 0.8; }

.action-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: 12px; border: 1px solid transparent; padding: 0 16px; font-size: 16px; font-weight: 800; transition: opacity 120ms; }
.action-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-primary { background: var(--orange); color: #1B0F0A; }
.action-secondary { background: #22242C; color: var(--text); }
.action-quiet { background: transparent; color: var(--text); border-color: var(--line-strong); }
.action-button:disabled { opacity: 0.45; }
.action-button:not(:disabled):hover { opacity: 0.9; }
.action-button:not(:disabled):active { opacity: 0.8; }

.state-message { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; text-align: center; }
.state-badge { width: 60px; height: 60px; border-radius: 50%; background: var(--orange-soft); display: grid; place-items: center; }
.state-title { font-size: 20px; line-height: 25px; font-weight: 700; letter-spacing: -0.3px; }
.state-body { color: var(--text-muted); font-size: 15px; line-height: 22px; max-width: 320px; }
.state-button { max-width: 340px; min-width: 220px; }
.loading-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px; color: var(--text-muted); font-size: 14px; }

.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text); }
.round-button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, 0.35); color: var(--white); }
.link-button { color: var(--orange); font-size: 14px; font-weight: 700; min-height: 44px; }
.pill-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 68px; padding: 0 16px; border-radius: 99px; background: var(--orange); color: #1B0F0A; font-size: 14.5px; font-weight: 800; flex-shrink: 0; }
.pill-button.dim, .outline-pill.dim { opacity: 0.5; }
.outline-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 92px; padding: 0 18px; border-radius: 99px; background: var(--surface-raised); border: 1px solid var(--line-strong); color: var(--white); font-size: 15px; font-weight: 800; flex-shrink: 0; }
.soft-button { min-height: 48px; padding: 0 24px; border-radius: 14px; background: var(--surface-raised); font-size: 15px; font-weight: 700; }
.error-banner { align-self: stretch; background: var(--danger-soft); border: 1px solid var(--danger-line); border-radius: 16px; padding: 12px; color: var(--danger); font-size: 14px; line-height: 20px; }
.verified-badge { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 8px; background: var(--verified); color: var(--white); flex-shrink: 0; }
.eyebrow { color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: 1.2px; }

.screen-header { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 60px; padding: 0 16px; padding-top: var(--safe-top); }
.screen-header h1 { text-align: center; font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-header .icon-button { margin-left: -10px; }

.verdict-pill { display: inline-block; border-radius: 99px; padding: 3px 8px; font-size: 10.5px; font-weight: 900; letter-spacing: 0.9px; white-space: nowrap; }
.fit-pill { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; white-space: nowrap; }
.fit-pill-filled { border-radius: 99px; padding: 4px 9px; }

.trait-dots { display: inline-flex; gap: 3px; }
.trait-dots i { display: block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--paper-ink); }
.trait-dots-dark { gap: 7px; }
.trait-dots-dark i { border-width: 1.5px; border-color: var(--line-strong); }
.trait-dots-card i { width: 10px; height: 10px; border-width: 1.5px; border-color: var(--line-strong); }
.trait-meters { display: flex; flex-direction: column; gap: 12px; }
.trait-meter { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; }

.paused-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: 16px; }
.paused-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--orange-soft); display: grid; place-items: center; flex-shrink: 0; }
.paused-icon.small { width: 22px; height: 22px; }
.paused-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.paused-copy strong { color: var(--text); font-size: 15px; line-height: 20px; }
.paused-compact { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: rgba(32, 35, 44, 0.92); border: 1px solid var(--line-strong); border-radius: 16px; font-size: 12px; font-weight: 600; line-height: 16px; }
.paused-compact > span:nth-child(2) { flex: 1; padding: 8px 0; }

.grid-glyph { display: grid; grid-template-columns: 9px 9px; gap: 3px; }
.grid-glyph i { width: 9px; height: 9px; border-radius: 1px; background: currentColor; }

/* ---- shell and navigation ---------------------------------------------------------------------- */
.shell { min-height: 100dvh; }
.main { min-height: 100dvh; }
.shell:not(.stack):not(.wide) .main { padding-bottom: calc(var(--tab-height) + var(--safe-bottom)); }

.tab-bar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(var(--tab-height) + var(--safe-bottom)); padding: 7px 6px var(--safe-bottom); display: flex; align-items: flex-start; background: var(--black); border-top: 1px solid var(--nav-border); }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 44px; color: rgba(255, 255, 255, 0.6); }
.nav-item.on { color: var(--white); }
.nav-icon { position: relative; display: inline-flex; }
.nav-label { font-size: 10px; font-weight: 700; }
.nav-badge { position: absolute; top: -4px; right: -10px; min-width: 16px; padding: 1px 4px; border-radius: 99px; background: var(--red); color: var(--white); font-size: 10px; font-weight: 800; text-align: center; line-height: 14px; }
.plus-button { flex: 1; display: flex; flex-direction: column; align-items: center; min-height: 44px; }
.plus-shape { position: relative; display: block; width: 46px; height: 30px; margin-top: 2px; }
.plus-left, .plus-right { position: absolute; top: 0; width: 38px; height: 30px; border-radius: 9px; }
.plus-left { left: 0; background: var(--lavender); }
.plus-right { right: 0; background: var(--orange); }
.plus-face { position: absolute; inset: 0 4px; border-radius: 8px; background: var(--white); display: grid; place-items: center; }
.nav-item:hover, .plus-button:hover { opacity: 0.85; }

.side-nav { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: var(--side-width); display: flex; flex-direction: column; padding: 22px 14px 18px; background: var(--black); border-right: 1px solid var(--nav-border); }
.side-brand { color: var(--white); font-size: 13px; font-weight: 900; letter-spacing: 2px; padding: 6px 12px 22px; }
.side-items { display: flex; flex-direction: column; gap: 4px; }
.side-nav .nav-item, .side-nav .plus-button { flex: none; flex-direction: row; align-items: center; gap: 14px; min-height: 48px; padding: 0 12px; border-radius: 12px; }
.side-nav .nav-item:hover { background: var(--surface-muted); opacity: 1; }
.side-nav .nav-item.on { background: var(--surface); }
.side-nav .nav-label { font-size: 16px; font-weight: 700; }
.side-nav .plus-button { margin: 6px 0; color: var(--white); }
.side-nav .plus-button .plus-shape { width: 40px; height: 26px; margin: 0; }
.side-nav .plus-button .plus-left, .side-nav .plus-button .plus-right { width: 33px; height: 26px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.side-signin { min-height: 44px; border-radius: 12px; background: var(--orange); color: #1B0F0A; font-weight: 800; }
.side-app { display: grid; grid-template-columns: 36px 1fr; gap: 4px 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-muted); }
.side-app-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; }
.side-app div { display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-muted); }
.side-app strong { color: var(--text); font-size: 13.5px; }
.testflight-link { grid-column: 1 / -1; color: var(--orange); font-size: 13px; font-weight: 800; margin-top: 4px; }
.side-legal { color: var(--text-dim); font-size: 12px; padding: 0 4px; }
.side-legal a:hover { color: var(--text-muted); }

.shell.wide .main { margin-left: var(--side-width); }

/* ---- page scaffolding -------------------------------------------------------------------------- */
.page { min-height: 100dvh; padding-bottom: 32px; }
.page.narrow { max-width: 640px; margin: 0 auto; }
.shell.wide .page { max-width: 720px; margin: 0 auto; }
.shell.wide .page.narrow { max-width: 600px; }
.page-head { display: flex; flex-direction: column; gap: 8px; padding: calc(12px + var(--safe-top)) 16px 16px; }
.page-title { font-size: 27px; line-height: 32px; font-weight: 800; letter-spacing: -0.8px; }
.bar-title { position: relative; display: flex; align-items: center; justify-content: center; height: calc(44px + var(--safe-top)); padding: var(--safe-top) 56px 0; }
.bar-title h1 { font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-right { position: absolute; right: 8px; bottom: 0; }
.shell.wide .bar-title { height: 64px; }
.shell.wide .bar-title h1 { font-size: 20px; }
.for-actor { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13.5px; font-weight: 600; }
.offline-line { color: var(--text-dim); font-size: 12.5px; font-weight: 600; }
.offline-line.pad { padding: 8px 16px 0; color: var(--text-muted); font-size: 13px; }
.empty-block { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 72px; text-align: center; }
.empty-title { font-size: 17px; font-weight: 800; }
.empty-text { color: var(--text-muted); font-size: 14px; line-height: 20px; }
.status-body { min-height: 60dvh; display: grid; place-items: center; }

/* ---- For You ----------------------------------------------------------------------------------- */
.feed-host { position: fixed; inset: 0 0 calc(var(--tab-height) + var(--safe-bottom)) 0; z-index: 1; }
.shell.wide .feed-host { left: var(--side-width); bottom: 0; }
.feed { position: absolute; inset: 0; background: var(--black); overflow: hidden; }
.feed-list { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; overflow-anchor: none; }
.feed-list::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: var(--black); }
.reel-stage { position: absolute; inset: 0; overflow: hidden; background: var(--black); }
.reel-poster, .reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-poster.hidden { opacity: 0; }
.reel-tap { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.shade-top, .shade-bottom { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 2; }
.shade-top { top: 0; height: 170px; background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); }
.shade-bottom { bottom: 0; height: 330px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72)); }
.paused-disc { position: absolute; z-index: 3; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(0, 0, 0, 0.4); color: var(--white); display: grid; place-items: center; pointer-events: none; padding-left: 4px; }

.reel-meta { position: absolute; z-index: 4; left: 14px; right: 84px; bottom: 16px; color: var(--white); text-shadow: var(--text-shadow); pointer-events: none; }
.reel-meta a, .reel-meta button { pointer-events: auto; }
.reel-handle-row { display: flex; align-items: center; gap: 7px; }
.reel-handle { font-size: 16.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-pill { border-radius: 99px; padding: 3px 8px; font-size: 10.5px; font-weight: 900; letter-spacing: 0.9px; text-shadow: none; }
.reel-actor-line { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 13px; font-weight: 600; padding: 4px 0; }
.reel-actor-line > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-actor-line:hover > span:last-child { text-decoration: underline; }
.reel-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.reel-roster { color: var(--mint); font-weight: 800; }
.reel-caption { margin-top: 4px; font-size: 14.5px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-caption b { font-weight: 800; }
.reel-ticker { margin-top: 9px; }

.call-ticker { display: flex; align-items: center; gap: 7px; min-height: 28px; width: 100%; overflow: hidden; color: var(--white); text-shadow: var(--text-shadow); }
.ticker-window { position: relative; flex: 1; height: 20px; overflow: hidden; }
.ticker-measure { position: absolute; left: 0; top: 0; white-space: nowrap; visibility: hidden; font-size: 13.5px; font-weight: 600; }
.ticker-static { display: block; font-size: 13.5px; font-weight: 600; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.ticker-track { position: absolute; left: 0; top: 0; display: flex; gap: 28px; white-space: nowrap; font-size: 13.5px; font-weight: 600; line-height: 20px; animation: marquee var(--ticker-duration) linear infinite; }
@keyframes marquee { to { transform: translateX(var(--ticker-distance)); } }
.ticker-fade { position: absolute; right: 0; top: 0; bottom: 0; width: 30px; background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.38)); }

.reel-rail { position: absolute; z-index: 5; right: 8px; bottom: 18px; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.rail-avatar { position: relative; width: 50px; height: 58px; }
.rail-avatar-img { border: 2px solid var(--white); }
.rail-plus { position: absolute; left: 14.5px; bottom: 0; width: 21px; height: 21px; border-radius: 11px; background: var(--orange); display: grid; place-items: center; }
.rail-plus.signed { background: var(--mint); }
.rail-heart { position: relative; display: flex; flex-direction: column; align-items: center; }
.rail-disc { display: grid; place-items: center; min-width: 44px; min-height: 44px; }

.rail-button { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 62px; min-height: 44px; color: var(--white); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.75)); transition: opacity 120ms; }
.rail-button:hover { opacity: 0.85; }
.rail-button:disabled { opacity: 0.45; }
.rail-button.active .rail-glyph { color: var(--rail-active); }
.rail-glyph { display: grid; place-items: center; min-height: 36px; }
.rail-label { font-size: 12.5px; font-weight: 700; text-shadow: var(--text-shadow); white-space: nowrap; }
.rail-button.rail-copy { width: 76px; }
.rail-button.rail-copy .rail-label { white-space: normal; text-align: center; line-height: 15px; }
.rail-circle-box { position: relative; width: 52px; height: 52px; display: grid; place-items: center; }
.rail-circle { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--rail-circle); color: var(--ink); display: grid; place-items: center; }
.rail-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--rail-circle); animation: rail-pulse 1.6s ease-out infinite; }
@keyframes rail-pulse { 0% { opacity: 0.65; transform: scale(1); } 70% { opacity: 0.1; } 100% { opacity: 0; transform: scale(1.55); } }

.call-disc { display: inline-block; margin-top: 4px; padding: 7px; border-radius: 50%; background: rgba(30, 30, 34, 0.85); }
.call-disc-record { width: var(--disc); height: var(--disc); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#222 0 25%, #333 25% 50%, #222 50% 75%, #333 75%); animation: spin 5s linear infinite; }
.call-disc-core { width: calc(var(--disc) * 0.56); height: calc(var(--disc) * 0.56); border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--lavender)); color: #141016; display: grid; place-items: center; --icon-cut: #ff9e7a; }

.heart-burst { position: absolute; left: 11px; top: 0; width: 40px; height: 40px; pointer-events: none; }
.floating-heart { position: absolute; left: 6px; top: 0; font-size: 26px; opacity: 0; animation: float-heart 2.2s ease-out forwards; }
@keyframes float-heart { 0% { opacity: 0; transform: translate(0, 0) scale(0.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--drift), -260px) scale(1.15); } }

.feed-top { position: absolute; z-index: 20; left: 0; right: 0; top: calc(var(--safe-top) + 2px); height: 40px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.feed-top > * { pointer-events: auto; }
.feed-brand { position: absolute; left: 16px; color: var(--white); font-size: 11px; font-weight: 900; letter-spacing: 1.6px; text-shadow: var(--text-shadow); }
.for-you { position: relative; display: flex; align-items: center; min-height: 36px; padding: 0 12px; color: var(--white); font-size: 16.5px; font-weight: 700; text-shadow: var(--text-shadow); }
.for-you::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 26px; height: 3px; margin-left: -13px; border-radius: 2px; background: var(--white); }
.feed-mute { position: absolute; right: 2px; width: 62px; height: 44px; display: grid; place-items: center; color: var(--white); }
.feed-mute > span { width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, 0.3); display: grid; place-items: center; }
.scope-bar { position: absolute; left: 10px; right: 66px; display: flex; align-items: center; gap: 10px; }
.scope-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px 0 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.4); color: var(--white); font-size: 14px; font-weight: 800; flex-shrink: 0; }
.scope-chip span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-bar .call-ticker { flex: 1; min-width: 0; }
.feed-note { position: absolute; z-index: 25; left: 0; right: 0; top: calc(var(--safe-top) + 48px); display: flex; justify-content: center; pointer-events: none; }
.feed-note span { background: rgba(12, 13, 17, 0.6); border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.swipe-hint { position: absolute; z-index: 30; left: 50%; top: calc(var(--safe-top) + 54px); transform: translateX(-50%); display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: rgba(12, 13, 17, 0.4); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; animation: fade-in 450ms ease; }
.swipe-hint b { color: var(--orange); font-size: 16px; }
@keyframes fade-in { from { opacity: 0; } }
.feed-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 40px; text-align: center; }
.feed-center h2 { font-size: 17px; font-weight: 800; }
.feed-center p { color: var(--text-muted); font-size: 14px; line-height: 20px; }
.center-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 14px; background: var(--orange); color: var(--ink); font-size: 15px; font-weight: 800; }
.feed-arrows { display: none; }

/* ---- Calls ------------------------------------------------------------------------------------- */
.calls-list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 24px; }
.call-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform 150ms, border-color 150ms; }
.call-card:hover { border-color: var(--line-strong); }
.call-card.closed { opacity: 0.55; }
.call-card-strip { border-radius: 0 !important; }
.call-card-body { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px; }
.call-card-logline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.call-card-logline > span:first-child { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-card-meters { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.call-card-meters > div { display: flex; flex-direction: column; gap: 4px; }
.card-meter-label { color: var(--text-muted); font-size: 9.5px; font-weight: 900; letter-spacing: 1px; }

.striped-bar { display: block; background: repeating-linear-gradient(-55deg, #F5F5F5 0 9px, var(--clapper) 9px 18px); }
.clapper-mini { display: flex; align-items: center; gap: 10px; height: 44px; padding-right: 12px; background: var(--clapper); border-radius: 10px; overflow: hidden; color: #F1F1F1; }
.clapper-mini-bar { align-self: stretch; width: 26px; flex-shrink: 0; background: repeating-linear-gradient(-55deg, #F5F5F5 0 5px, var(--clapper) 5px 10px); }
.clapper-mini-role { font-family: var(--hand); font-size: 17px; font-weight: 700; line-height: 26px; padding-right: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }
.clapper-mini-meta { margin-left: auto; flex-shrink: 0; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Casting call ------------------------------------------------------------------------------ */
.call-page { position: relative; min-height: 100dvh; background: linear-gradient(160deg, var(--desk-glow), var(--desk) 65%); background-attachment: fixed; }
.call-nav { position: fixed; z-index: 40; top: calc(var(--safe-top) + 12px); left: 14px; right: 14px; display: flex; justify-content: space-between; pointer-events: none; }
.call-nav > * { pointer-events: auto; }
.call-mini-wrap { position: fixed; z-index: 30; left: 0; right: 0; top: 0; padding: calc(var(--safe-top) + 56px) 16px 14px; background: linear-gradient(var(--desk) 82%, rgba(26, 22, 18, 0)); opacity: 0; pointer-events: none; transition: opacity 160ms; }
.call-mini-wrap.on { opacity: 1; }
.call-mini { max-width: 640px; margin: 0 auto; }
.call-desk { padding: calc(var(--safe-top) + 58px) 0 calc(110px + var(--safe-bottom)); }
.call-column { max-width: 640px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; }
.clapper { position: relative; z-index: 3; background: var(--clapper); border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); transform: rotate(-1deg); }
.clapper-clip { border-radius: 10px; overflow: hidden; }
.clapper-stick { height: 20px; background: repeating-linear-gradient(-55deg, #F5F5F5 0 19.5px, var(--clapper) 19.5px 39px); }
.clapper-cells { display: flex; }
.clapper-cell { display: flex; flex-direction: column; min-width: 0; padding: 5px 10px 7px; border-top: 1px solid var(--clapper-line); border-right: 1px solid var(--clapper-line); }
.clapper-cell.last { border-right: 0; }
.clapper-label { color: var(--clapper-dim); font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
.clapper-role { color: #F1F1F1; font-family: var(--hand); font-size: 19px; font-weight: 700; line-height: 21px; }
.clapper-value { color: #F1F1F1; font-size: 16px; font-weight: 800; letter-spacing: -0.2px; line-height: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clapper-value small { color: var(--clapper-dim); font-size: 10px; font-weight: 800; }
.clapper-value.closed { color: var(--danger); }

.script-page { position: relative; z-index: 2; margin: 20px 2px 0; padding: 18px 18px 14px 26px; background: var(--paper); color: var(--paper-ink); border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); transform: rotate(0.5deg); }
.script-margin { position: absolute; left: 14px; top: 0; bottom: 0; width: 1px; background: var(--paper-margin); }
.script-holes { position: absolute; left: 5px; top: 46px; bottom: 30px; width: 9px; background: radial-gradient(circle at 4.5px 4.5px, rgba(26, 22, 18, 0.85) 4.5px, transparent 5px) 0 0 / 9px 160px repeat-y; }
.script-holes i { display: none; }
.script-head { display: flex; align-items: flex-start; }
.script-head-text { flex: 1; min-width: 0; }
.script-role { font-size: 34px; line-height: 38px; font-weight: 900; letter-spacing: -1px; overflow-wrap: anywhere; }
.script-size { margin-left: 6px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; vertical-align: top; position: relative; top: 5px; }
.script-logline { margin-top: 4px; font-size: 16px; line-height: 21px; font-weight: 700; }
.script-meta { margin-top: 4px; color: var(--paper-ink-soft); font-size: 12.5px; line-height: 17px; font-weight: 600; }
.sticky-slot { width: 112px; margin: 4px -16px 0 8px; flex-shrink: 0; }
.sticky-note { position: relative; padding: 15px 11px 11px; background: var(--sticky); color: var(--sticky-ink); font-family: var(--hand); font-size: 14px; line-height: 16px; box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35); transform: rotate(5deg); }
.sticky-tape { position: absolute; left: 34px; top: -8px; width: 52px; height: 17px; background: rgba(255, 255, 255, 0.55); transform: rotate(-4deg); }
.script-meters { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.script-meters > div { display: flex; flex-direction: column; gap: 4px; }
.script-meter-label { color: var(--paper-ink-soft); font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.script-slug { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.2px; text-decoration: underline; }
.script-label { margin-top: 12px; color: var(--orange); font-size: 10.5px; font-weight: 900; letter-spacing: 1.3px; }
.script-situation { margin-top: 3px; font-size: 15.5px; line-height: 22px; font-weight: 600; }
.script-moment-row { display: flex; align-items: flex-start; margin-top: 3px; }
.script-moment { flex: 1; min-width: 0; font-size: 16px; line-height: 23px; font-weight: 700; }
.script-moment mark { background: var(--highlight); color: inherit; padding: 0 1px; }
.margin-note { width: 100px; margin: 2px -6px 0 8px; color: var(--margin-ink); font-family: var(--hand); font-size: 15px; line-height: 16px; transform: rotate(-5deg); flex-shrink: 0; }
.script-rule { margin: 14px 0 0; border: 0; border-top: 1.5px dashed var(--paper-rule); }
.script-specs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.script-specs span { padding: 3px 6px; border: 1.5px solid var(--paper-ink); border-radius: 4px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.3px; }

.roster-prompt { display: flex; align-items: center; gap: 10px; min-height: 64px; margin-top: 22px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); }
.roster-prompt-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.roster-prompt-copy strong { font-size: 14px; font-weight: 800; }
.roster-prompt-copy span { color: var(--text-muted); font-size: 12.5px; line-height: 17px; }
.fit-row { margin-top: 22px; }
.fit-row-title { color: var(--text-muted); font-size: 11px; font-weight: 900; letter-spacing: 1.3px; }
.fit-row-cards { display: flex; gap: 8px; margin-top: 8px; }
.fit-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 7px; border-radius: 14px; border: 1.5px solid transparent; background: rgba(255, 255, 255, 0.08); text-align: left; }
.fit-card.best { background: rgba(143, 212, 183, 0.14); border-color: var(--mint); }
.fit-card:disabled { opacity: 0.5; }
.fit-card:not(:disabled):hover { background: rgba(255, 255, 255, 0.12); }
.fit-card-copy { min-width: 0; display: flex; flex-direction: column; }
.fit-card-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fit-card-percent { font-size: 11px; font-weight: 900; }
.fit-prompt { width: 100%; min-height: 48px; margin-top: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); color: var(--text-muted); font-size: 13.5px; font-weight: 700; }

.tape-grid-section { margin-top: 26px; }
.grid-tabs { display: flex; gap: 20px; margin-bottom: 12px; }
.grid-tab { padding-bottom: 6px; color: #8D8A84; font-size: 14.5px; font-weight: 800; border-bottom: 2px solid transparent; }
.grid-tab.on { color: var(--white); border-bottom-color: var(--white); }
.grid-tab-count { color: var(--mint); font-size: 12px; }
.call-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.call-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #2A2620; }
.call-tile img { width: 100%; height: 100%; object-fit: cover; }
.call-tile:hover { opacity: 0.85; }
.call-tile-badge { position: absolute; left: 5px; top: 5px; border-radius: 99px; padding: 3px 6px; font-size: 9px; font-weight: 900; letter-spacing: 0.6px; }
.call-tile-hearts { position: absolute; left: 6px; bottom: 5px; display: flex; align-items: center; gap: 3px; color: var(--white); font-size: 11.5px; font-weight: 800; text-shadow: var(--text-shadow); }
.grid-note { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); font-size: 14px; text-align: center; }
.grid-more { display: flex; justify-content: center; padding: 14px 0; }

.call-cta { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(16px + var(--safe-bottom)); background: linear-gradient(rgba(26, 22, 18, 0), var(--desk) 55%); }
.cta-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; max-width: 608px; height: 54px; margin: 0 auto; padding: 0 16px; border-radius: 14px; background: var(--orange); color: #1B0F0A; font-size: 17px; font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.cta-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cta-button.closed { background: #322C25; color: var(--text-muted); box-shadow: none; }
.cta-button:not(:disabled):hover { filter: brightness(1.05); }
.call-center { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 32px; text-align: center; }
.call-center h2 { font-size: 17px; font-weight: 800; }
.call-center .action-button { max-width: 240px; }
.shell.wide .call-nav, .shell.wide .call-mini-wrap, .shell.wide .call-cta { left: calc(var(--side-width) + 14px); }
.shell.wide .call-mini-wrap, .shell.wide .call-cta { left: var(--side-width); }

/* ---- On Set ------------------------------------------------------------------------------------ */
.onset { position: fixed; inset: 0; z-index: 10; background: var(--black); display: flex; align-items: center; justify-content: center; }
.onset-stage { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--black); }
.onset-still { position: absolute; inset: 0; }
.onset-still.push { animation: slow-push 26s linear forwards; transform-origin: 50% 28%; }
@keyframes slow-push { from { transform: scale(1.02); } to { transform: scale(1.32); } }
.onset-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.38); }
.onset-dim.strong { background: rgba(0, 0, 0, 0.6); }
.tape-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 360ms ease-out; pointer-events: none; }
.tape-video.ready { opacity: 1; }
.onset-top { position: absolute; z-index: 20; left: 12px; right: 12px; top: calc(var(--safe-top) + 6px); display: flex; flex-direction: column; }
.onset-header { display: flex; align-items: center; gap: 8px; }
.onset-back { width: 44px; height: 44px; margin-left: -10px; display: grid; place-items: center; color: var(--white); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.75)); }
.progress-ring { position: relative; display: inline-block; flex-shrink: 0; }
.progress-ring svg { position: absolute; inset: 0; }
.progress-ring-inner { position: absolute; inset: 4px; border-radius: 50%; overflow: hidden; background: var(--black); display: grid; place-items: center; }
.onset-names { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--white); text-shadow: var(--text-shadow); }
.onset-names strong { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onset-names span { margin-top: 1px; font-size: 12px; color: rgba(255, 255, 255, 0.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onset-pills { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.onset-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 5px; color: var(--white); font-size: 11px; font-weight: 900; letter-spacing: 1px; white-space: nowrap; }
.onset-pill-red { background: var(--red); }
.onset-pill-dark { background: rgba(0, 0, 0, 0.5); }
.onset-pill-clock { background: rgba(0, 0, 0, 0.45); font-size: 11.5px; font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 359px) { .onset-pills { flex-direction: column; align-items: flex-end; gap: 4px; } }
.stage-chip { align-self: center; display: inline-flex; align-items: center; gap: 8px; max-width: 92%; min-height: 36px; margin-top: 14px; padding: 8px 14px; border-radius: 99px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--white); font-size: 14px; font-weight: 800; transition: opacity 180ms; }
.stage-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-chip.fading { opacity: 0; }
.sound-pill { align-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px; padding: 0 14px; border-radius: 99px; background: rgba(0, 0, 0, 0.55); color: var(--white); font-size: 13px; font-weight: 800; }
.onset-bottom { position: absolute; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 10px; }
.choice-bubbles { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.choice-bubble { display: flex; align-items: flex-start; gap: 8px; max-width: 100%; padding: 8px 11px 8px 8px; border-radius: 16px; background: rgba(0, 0, 0, 0.42); animation: bubble-in 450ms cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(16px) scale(0.92); } }
.choice-bubble > div { display: flex; flex-direction: column; min-width: 0; }
.choice-label { color: var(--orange); font-size: 11.5px; font-weight: 800; letter-spacing: 0.3px; }
.choice-text { color: var(--white); font-size: 13px; line-height: 18px; }
.typed-line { min-height: 56px; padding: 0 6px; color: var(--white); font-size: 21px; line-height: 28px; font-weight: 800; text-align: center; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95); }
.typed-cursor { color: var(--orange); animation: blink 0.6s steps(1) infinite; }
.typed-rest { color: transparent; text-shadow: none; }
@keyframes blink { 50% { opacity: 0; } }
.onset-footnote { color: rgba(255, 255, 255, 0.85); font-size: 12.5px; line-height: 17px; font-weight: 600; text-align: center; text-shadow: var(--text-shadow); }
.tape-notice { position: absolute; z-index: 25; left: 20px; right: 20px; top: 38%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(12, 13, 17, 0.8); }
.tape-notice-title { font-size: 15px; font-weight: 700; text-align: center; }
.onset-pinned { position: absolute; z-index: 30; left: 10px; right: 78px; bottom: calc(12px + var(--safe-bottom)); }
.onset-rail { position: absolute; z-index: 70; right: 8px; bottom: calc(18px + var(--safe-bottom)); width: 62px; display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: 0; transform: translateX(30px); pointer-events: none; transition: opacity 450ms cubic-bezier(0.2, 0.7, 0.3, 1), transform 450ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.onset-rail.on { opacity: 1; transform: none; pointer-events: auto; }

.verdict-layer { position: absolute; z-index: 60; left: 0; right: 0; top: 52%; display: flex; justify-content: center; pointer-events: none; }
.verdict-stamp { max-width: 86%; padding: 4px 20px 6px; border: 5px solid; border-radius: 14px; font-weight: 900; text-align: center; line-height: 1.1; transform: rotate(-12deg); animation: stamp 500ms cubic-bezier(0.2, 1.5, 0.4, 1) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(3); } }
.confetti { position: absolute; top: 24px; left: 50%; width: 0; height: 0; }
.confetti i { position: absolute; width: 8px; height: 13px; border-radius: 2px; opacity: 0; animation: confetti 1.75s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--spin)); } }
.pinned-comment { padding: 11px 12px; border-radius: 16px; background: rgba(18, 19, 24, 0.9); border: 1px solid rgba(255, 255, 255, 0.12); animation: pinned-in 500ms cubic-bezier(0.2, 0.9, 0.25, 1.1); }
@keyframes pinned-in { from { opacity: 0; transform: translateY(140px); } }
.pinned-who { display: flex; align-items: center; gap: 7px; }
.pinned-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--lavender)); display: grid; place-items: center; --icon-cut: #ffb08f; }
.pinned-who strong { font-size: 13px; font-weight: 800; }
.pinned-tag { color: var(--text-dim); font-size: 11.5px; font-weight: 600; }
.pinned-note { margin-top: 6px; color: #ECECF0; font-size: 13.5px; line-height: 19px; }
.pinned-reply { margin-top: 7px; padding-left: 10px; border-left: 2px solid #5A4A73; color: var(--lavender); font-size: 12.5px; line-height: 17px; font-weight: 600; }
.pending-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 14px; border-radius: 99px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 13.5px; font-weight: 700; }

.failed-card { position: absolute; z-index: 30; left: 16px; right: 16px; bottom: calc(20px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 22px; background: rgba(18, 19, 24, 0.94); border: 1px solid var(--line); }
.failed-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; font-size: 20px; font-weight: 800; }
.failed-card h2 { font-size: 20px; line-height: 25px; font-weight: 700; letter-spacing: -0.3px; }
.failed-card > p { color: var(--text-muted); font-size: 15px; line-height: 22px; }
.failed-card .failed-notice { color: var(--danger); font-size: 14px; }

.legacy-body { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.legacy-player { width: 100%; max-height: 70dvh; aspect-ratio: 9 / 16; object-fit: contain; background: var(--black); border-radius: 16px; }
.legacy-words { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.legacy-words span { color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.legacy-words p { font-size: 17px; line-height: 25px; }
.legacy-note { color: var(--text-dim); font-size: 13px; text-align: center; }

/* ---- Tapes ------------------------------------------------------------------------------------- */
.tapes-list { padding-bottom: 24px; }
.section-label { display: flex; align-items: center; gap: 8px; padding: 16px 16px 4px; color: var(--text-muted); font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.section-label span { color: var(--text-dim); font-weight: 800; letter-spacing: 0; }
.tape-row { display: flex; align-items: center; min-height: 92px; padding: 0 8px 0 16px; }
.tape-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 8px 0; border-radius: 12px; }
.tape-row-main:hover { background: var(--surface-muted); }
.tape-thumb { position: relative; width: 57px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--surface-raised); flex-shrink: 0; }
.tape-live { position: absolute; left: 4px; bottom: 4px; padding: 4px 5px; border-radius: 6px; background: var(--red); display: flex; }
.tape-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tape-copy strong { font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tape-state { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 600; }
.tape-state > span:last-child { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.show-more { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; color: var(--orange); font-size: 14px; font-weight: 700; }
.guest-card { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 420px; margin: 48px auto 0; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-align: center; width: calc(100% - 32px); }
.guest-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--orange-soft); display: grid; place-items: center; }
.guest-card strong { font-size: 20px; line-height: 25px; font-weight: 700; }
.guest-card > span:not(.guest-icon):not(.guest-button) { color: var(--text-muted); font-size: 15px; line-height: 22px; }
.guest-button { align-self: stretch; min-height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--orange); color: #1B0F0A; font-size: 16px; font-weight: 800; }

/* ---- Roster ------------------------------------------------------------------------------------ */
.roster-rings { display: flex; justify-content: center; gap: 10px; padding: 12px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.roster-ring { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 68px; flex-shrink: 0; }
.roster-ring.away { opacity: 0.55; }
.roster-ring:hover { opacity: 0.85; }
.ring { position: relative; width: 62px; height: 62px; border-radius: 50%; background: var(--line); display: grid; place-items: center; }
.ring.booked { background: linear-gradient(135deg, var(--orange), var(--lavender)); }
.ring.dashed { background: none; border: 2px dashed #4A4D58; }
.ring-hole { width: 56px; height: 56px; border-radius: 50%; background: var(--canvas); display: grid; place-items: center; }
.ring-badge { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 2px 6px; border-radius: 99px; font-size: 8.5px; font-weight: 900; letter-spacing: 0.8px; white-space: nowrap; }
.ring-name { color: var(--white); font-size: 12.5px; font-weight: 700; max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-row { display: flex; justify-content: center; margin-top: 16px; }
.stat { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 0 12px; }
.stat + .stat { border-left: 1px solid #3A3C45; }
.stat strong { font-size: 17px; font-weight: 800; }
.stat span { margin-top: 1px; color: var(--text-muted); font-size: 12.5px; }
.signin-card { display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin: 12px auto 0; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; width: calc(100% - 32px); }
.signin-card strong { font-size: 17px; font-weight: 800; }
.signin-card span { color: var(--text-muted); font-size: 14px; line-height: 20px; }
.roster-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; padding: 0 16px; }
.chip-button { min-height: 44px; padding: 0 16px; border-radius: 8px; background: #22242C; color: var(--white); font-size: 14.5px; font-weight: 700; }
.chip-button.primary { background: var(--orange); color: #1B0F0A; }
.chip-button:hover { opacity: 0.88; }
.profile-tabs { display: flex; margin-top: 16px; border-bottom: 1px solid #22242C; }
.profile-tab { flex: 1; min-height: 44px; display: grid; place-items: center; border-bottom: 2px solid transparent; color: var(--white); opacity: 0.45; }
.profile-tab.on { border-bottom-color: var(--white); opacity: 1; }
.roster-empty { padding: 24px; color: var(--text-muted); font-size: 14px; line-height: 20px; text-align: center; }
.link-list { margin: 0 16px; }
.link-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; text-align: left; }
.link-row svg { color: var(--text-muted); }
.link-row.danger { color: var(--danger); }

.thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.thumb-tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-muted); }
.thumb-tile:hover { opacity: 0.85; }
.thumb-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55)); pointer-events: none; }
.thumb-pill { position: absolute; left: 5px; top: 5px; }
.thumb-caption { position: absolute; left: 6px; right: 6px; bottom: 22px; font-size: 11px; font-weight: 700; text-shadow: var(--text-shadow); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb-hearts { position: absolute; left: 6px; bottom: 5px; font-size: 12px; font-weight: 700; text-shadow: var(--text-shadow); }

/* ---- Actor ------------------------------------------------------------------------------------- */
.actor-page { position: relative; min-height: 100dvh; padding-bottom: calc(140px + var(--safe-bottom)); background: var(--canvas); }
.actor-hero { position: relative; height: clamp(380px, 58dvh, 600px); overflow: hidden; }
.actor-art { position: absolute; left: 0; right: 0; top: 0; height: max(100%, 177.8vw); }
.actor-art .poster-img, .actor-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.actor-scrim-top { position: absolute; left: 0; right: 0; top: 0; height: 140px; background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); }
.actor-scrim-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; background: linear-gradient(rgba(17, 19, 25, 0), var(--canvas)); }
.actor-identity { position: absolute; left: 16px; right: 16px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; text-shadow: var(--text-shadow); }
.actor-identity h1 { font-size: 32px; line-height: 36px; font-weight: 800; letter-spacing: -0.8px; }
.actor-chips { display: flex; flex-wrap: wrap; gap: 6px; text-shadow: none; }
.actor-chips span { padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 900; letter-spacing: 0.9px; }
.chip-mint { background: var(--mint-soft); color: var(--mint); }
.chip-muted { background: var(--surface-raised); color: var(--text-muted); }
.actor-tagline { color: rgba(255, 255, 255, 0.92); font-size: 16px; line-height: 22px; }
.actor-top-scrim { position: fixed; z-index: 15; top: 0; left: 0; right: 0; height: calc(var(--safe-top) + 76px); background: linear-gradient(var(--canvas), rgba(17, 19, 25, 0.96) 80%, rgba(17, 19, 25, 0)); opacity: 0; pointer-events: none; transition: opacity 200ms; }
.actor-top-scrim.on { opacity: 1; }
.actor-back { position: fixed; z-index: 20; top: calc(var(--safe-top) + 6px); left: 12px; width: 44px; height: 44px; background: rgba(0, 0, 0, 0.45); }
.plain-back { margin: 8px; }
.actor-body { display: flex; flex-direction: column; gap: 24px; padding-top: 12px; }
.actor-section { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.actor-section.bleed { padding: 0; }
.actor-section.bleed > .section-eyebrow { padding: 0 16px; }
.section-eyebrow { color: var(--orange); font-size: 11px; line-height: 15px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.actor-copy { color: #D9DAE0; font-size: 15px; line-height: 22px; }
.actor-detail { color: var(--text-muted); font-size: 14px; line-height: 20px; }
.voice-sample { width: 100%; }
.beats { display: flex; flex-direction: column; gap: 12px; }
.beat strong { color: var(--orange); font-size: 13px; font-weight: 800; }
.habits { display: flex; flex-wrap: wrap; gap: 8px; }
.habits span { padding: 6px 12px; border-radius: 99px; background: var(--surface-raised); border: 1px solid var(--line-strong); font-size: 13px; }
.actor-bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 28px 16px calc(12px + var(--safe-bottom)); background: linear-gradient(rgba(17, 19, 25, 0), var(--canvas) 28px); }
.actor-bar-caption { padding-bottom: 8px; color: var(--text-muted); font-size: 12.5px; font-weight: 600; text-align: center; }
.actor-bar-row { display: flex; gap: 10px; max-width: 608px; margin: 0 auto; }
.bar-secondary { flex: 1.2; }
.bar-primary { flex: 2; }

/* ---- Post -------------------------------------------------------------------------------------- */
.post-page { display: flex; flex-direction: column; }
.post-content { flex: 1; padding: 8px 16px 0; }
.post-caption-row { display: flex; gap: 12px; }
.post-caption { flex: 1; min-height: 138px; font-size: 15.5px; line-height: 22px; }
.post-caption b { color: #8AB4FF; font-weight: 700; }
.post-cover { position: relative; width: 104px; height: 138px; border-radius: 8px; overflow: hidden; background: var(--surface-raised); flex-shrink: 0; }
.post-cover > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 0; background: rgba(0, 0, 0, 0.55); font-size: 11px; font-weight: 700; text-align: center; }
.post-rows { margin-top: 16px; }
.post-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-top: 1px solid #1F2027; }
.post-row.last { border-bottom: 1px solid #1F2027; }
.post-row-label { flex: 1; font-size: 15px; font-weight: 600; }
.post-row-right { color: var(--text-muted); font-size: 14px; font-weight: 600; }
.fixed-switch { width: 44px; height: 26px; border-radius: 99px; background: var(--mint); display: flex; align-items: center; justify-content: flex-end; padding-right: 3px; }
.fixed-switch i { width: 20px; height: 20px; border-radius: 50%; background: #10231C; }
.post-info { margin-top: 12px; color: var(--text-muted); font-size: 14px; line-height: 20px; }
.handle-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.handle-card h2 { font-size: 20px; font-weight: 800; }
.handle-card > p:first-of-type { color: var(--text-muted); font-size: 15px; line-height: 22px; }
.handle-input { display: flex; align-items: center; min-height: 52px; margin-top: 8px; padding: 0 12px; border-radius: 12px; background: var(--surface-raised); border: 1px solid var(--line-strong); }
.handle-input.error { border-color: var(--danger); }
.handle-input span { color: var(--text-muted); font-size: 18px; font-weight: 700; margin-right: 2px; }
.handle-input input { flex: 1; min-height: 48px; background: none; border: 0; color: var(--text); font: inherit; font-size: 18px; font-weight: 600; outline: none; }
.handle-hint { color: var(--text-muted); font-size: 13px; line-height: 18px; }
.handle-hint.error { color: var(--danger); }
.post-footer { display: flex; flex-direction: column; gap: 8px; padding: 8px 16px calc(16px + var(--safe-bottom)); }
.post-notice { color: var(--danger); font-size: 14px; line-height: 20px; }
.post-disclosure { color: var(--text-dim); font-size: 12px; line-height: 17px; text-align: center; }
.post-buttons { display: flex; gap: 10px; }
.post-buttons .action-button { flex: 1; min-height: 52px; }

/* ---- Account ----------------------------------------------------------------------------------- */
.account-content { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 48px; }
.account-hero { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 16px; text-align: center; }
.account-hero h2 { font-size: 27px; line-height: 32px; font-weight: 800; letter-spacing: -0.8px; }
.account-hero p { color: var(--text-muted); font-size: 16px; line-height: 24px; }
.identity-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.identity-card > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.identity-card strong { font-size: 16px; font-weight: 700; }
.identity-card span { color: var(--text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.plan-pill { padding: 5px 12px; border-radius: 99px; background: var(--surface-raised); color: var(--text-muted) !important; font-size: 10px !important; font-weight: 700; letter-spacing: 1.4px; flex-shrink: 0; }
.plan-pill.pro { background: var(--orange-soft); color: var(--orange) !important; }
.access-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--surface-muted); border: 1px solid var(--line); }
.access-card strong { font-size: 17px; font-weight: 700; }
.access-card p { color: var(--text-muted); font-size: 14px; line-height: 20px; }
.access-card .link-button { min-height: 0; }
.delete-link { min-height: 48px; color: var(--danger); font-size: 14px; font-weight: 700; }
.version { margin-top: 24px; color: var(--text-dim); font-size: 12px; text-align: center; }
.apple-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border-radius: 12px; background: var(--white); color: var(--black); font-size: 16px; font-weight: 700; }
.apple-button:disabled { opacity: 0.45; }
.apple-mark { width: 16px; height: 19px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 20'%3E%3Cpath d='M14.2 10.6c0-2.6 2.1-3.8 2.2-3.9-1.2-1.8-3.1-2-3.7-2-1.6-.2-3.1.9-3.9.9-.8 0-2-.9-3.4-.9-1.7 0-3.3 1-4.2 2.6-1.8 3.1-.5 7.7 1.3 10.2.9 1.2 1.9 2.6 3.2 2.6 1.3-.1 1.8-.8 3.3-.8 1.6 0 2 .8 3.4.8 1.4 0 2.3-1.3 3.1-2.5 1-1.4 1.4-2.8 1.4-2.9 0 0-2.7-1-2.7-4.1ZM11.6 3c.7-.9 1.2-2 1.1-3.2-1 0-2.3.7-3 1.6-.7.8-1.3 2-1.1 3.1 1.1.1 2.3-.6 3-1.5Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 20'%3E%3Cpath d='M14.2 10.6c0-2.6 2.1-3.8 2.2-3.9-1.2-1.8-3.1-2-3.7-2-1.6-.2-3.1.9-3.9.9-.8 0-2-.9-3.4-.9-1.7 0-3.3 1-4.2 2.6-1.8 3.1-.5 7.7 1.3 10.2.9 1.2 1.9 2.6 3.2 2.6 1.3-.1 1.8-.8 3.3-.8 1.6 0 2 .8 3.4.8 1.4 0 2.3-1.3 3.1-2.5 1-1.4 1.4-2.8 1.4-2.9 0 0-2.7-1-2.7-4.1ZM11.6 3c.7-.9 1.2-2 1.1-3.2-1 0-2.3.7-3 1.6-.7.8-1.3 2-1.1 3.1 1.1.1 2.3-.6 3-1.5Z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---- sheets ------------------------------------------------------------------------------------ */
.sheet-layer { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); cursor: default; animation: fade-in 200ms; }
.sheet { position: relative; display: flex; flex-direction: column; max-height: 92dvh; padding: 10px 16px calc(24px + var(--safe-bottom)); border-radius: 18px 18px 0 0; background: var(--sheet); outline: none; animation: sheet-up 280ms cubic-bezier(0.2, 0.8, 0.2, 1); transition: transform 200ms; }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-grab-zone { display: flex; justify-content: center; height: 40px; margin: -10px -16px -14px; padding-top: 10px; cursor: grab; touch-action: none; }
.sheet-grab { width: 38px; height: 4px; border-radius: 2px; background: var(--sheet-grab); }
.sheet-close { position: absolute; z-index: 2; top: 8px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--white); display: grid; place-items: center; }
.sheet-title { color: var(--white); font-size: 17px; font-weight: 800; text-align: center; }
.sheet-body { flex-shrink: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sheet-footer { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.shell.wide .sheet-layer { justify-content: center; align-items: center; padding: 24px; }
.shell.wide .sheet { width: 100%; max-width: 480px; max-height: 86dvh; border-radius: 18px; padding-bottom: 24px; animation: sheet-pop 220ms cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
@keyframes sheet-pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

.tray-body { display: flex; flex-direction: column; gap: 16px; padding: 18px 0 8px; }
.tray-picks { display: flex; justify-content: center; gap: 14px; overflow-x: auto; padding: 0 4px 4px; scrollbar-width: none; }
.actor-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; min-height: 44px; flex-shrink: 0; }
.actor-pick.unavailable { opacity: 0.45; }
.actor-pick:not(:disabled):hover .pick-ring:not(.on) { border-color: var(--line-strong); }
.pick-ring { position: relative; width: 66px; height: 66px; padding: 3px; border: 3px solid transparent; border-radius: 50%; display: grid; place-items: center; }
.pick-ring.on { border-color: var(--orange); }
.pick-check { position: absolute; right: -6px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); border: 2px solid var(--sheet); display: grid; place-items: center; }
.pick-name { font-size: 13px; font-weight: 700; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-break { color: var(--text-dim); font-size: 10.5px; font-weight: 700; text-align: center; }
.pick-dash { width: 66px; height: 66px; border-radius: 50%; border: 2px dashed #4A4D58; display: grid; place-items: center; }
.pick-more { color: var(--text-dim); font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; }
.note-caption { margin-bottom: 12px; color: var(--text-dim); font-size: 11.5px; font-weight: 600; text-align: center; }
.note-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.note-chip { max-width: 100%; min-height: 34px; padding: 7px 13px; border-radius: 18px; border: 1.5px solid transparent; background: #22242C; color: #CFD0D6; font-size: 13px; font-weight: 700; }
.note-chip.on { background: var(--orange-soft); border-color: var(--orange); color: var(--orange); }
.note-chip:disabled { cursor: default; }
.note-chip:not(:disabled):not(.on):hover { background: #2a2c35; }
.notice-box { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; background: var(--danger-soft); border: 1px solid var(--danger-line); color: var(--danger); font-size: 14px; line-height: 20px; }
.notice-action { align-self: flex-start; min-height: 36px; color: var(--text); font-size: 13px; font-weight: 800; }
.ai-disclosure { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; background: var(--surface-muted); border: 1px solid var(--line); font-size: 13px; line-height: 18px; }
.ai-disclosure .fine { color: var(--text-muted); font-size: 12px; line-height: 17px; }
.ai-disclosure a { align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; color: var(--orange); font-weight: 700; }
.send-button { display: flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 16px; border-radius: 12px; background: var(--orange); color: var(--ink); font-size: 17px; font-weight: 800; }
.send-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.send-button:disabled { opacity: 0.45; }

.report-body { padding-top: 8px; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 16px; font-weight: 600; text-align: left; }
.sheet-row.danger { color: var(--danger); }
.sheet-row:hover { opacity: 0.8; }
.block-copy { padding: 8px 0; color: var(--text-muted); font-size: 14px; line-height: 20px; text-align: center; }
.block-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border-radius: 16px; background: var(--danger); color: var(--ink); font-size: 16px; font-weight: 800; }
.sheet-error { padding-top: 12px; color: var(--danger); font-size: 13.5px; line-height: 19px; text-align: center; }

.people-list { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
.slots { padding-bottom: 4px; color: var(--text-muted); font-size: 13px; font-weight: 600; text-align: center; }
.person-row { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 8px 0; }
.person-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 56px; text-align: left; }
.person-who:not(.static):hover strong { text-decoration: underline; }
.person-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.person-copy strong { color: var(--white); font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.3px; }
.person-tagline { color: var(--text-muted); font-size: 13px; line-height: 18px; }
.people-empty { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 24px 0; text-align: center; }
.people-empty span { color: var(--text-muted); font-size: 14px; }
.replace-lead { color: var(--text-muted); font-size: 15px; line-height: 21px; text-align: center; }
.incoming { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 12px; border-radius: 16px; background: var(--surface-muted); border: 1px solid var(--line); }

.signin-body { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 8px 8px; text-align: center; }
.signin-mark { width: 92px; height: 92px; margin-bottom: 8px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); font-size: 44px; display: grid; place-items: center; }
.signin-body h2 { font-size: 32px; line-height: 38px; font-weight: 800; letter-spacing: -1.2px; }
.signin-body > p:not(.fine):not(.legal-row) { color: var(--text-muted); font-size: 16px; line-height: 24px; max-width: 340px; }
.signin-body .fine { color: var(--text-dim); font-size: 12px; line-height: 18px; max-width: 330px; }
.legal-row { display: flex; gap: 8px; color: var(--text-dim); font-size: 12px; }
.legal-row a { color: var(--orange); font-weight: 700; }

.pro-body { display: flex; flex-direction: column; gap: 12px; padding: 12px 0 8px; }
.pro-body h2 { font-size: 30px; line-height: 34px; font-weight: 800; letter-spacing: -0.8px; }
.pro-copy { color: var(--text-muted); font-size: 16px; line-height: 24px; }
.policy-box { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; background: var(--surface-muted); border: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.policy-box strong { font-size: 15px; font-weight: 700; }
.app-box { flex-direction: row; align-items: flex-start; gap: 12px; }
.app-box > div { display: flex; flex-direction: column; gap: 2px; color: var(--text-muted); }
.app-box strong { color: var(--text); }
.app-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--orange-soft); display: grid; place-items: center; flex-shrink: 0; }
.pro-body .testflight-link { min-height: 52px; margin: 0; }
.not-now { min-height: 44px; color: var(--text-muted); font-size: 14px; font-weight: 700; }

.menu-sheet .sheet-body { padding-top: 4px; }
.menu-title { color: var(--white); font-size: 16px; font-weight: 800; text-align: center; }
.menu-message { margin-top: 6px; color: var(--text-muted); font-size: 14px; line-height: 20px; text-align: center; }
.menu-row { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 8px; border-top: 1px solid var(--nav-border); color: var(--text); font-size: 17px; font-weight: 600; }
.menu-row.danger { color: var(--danger); }
.menu-row:hover { background: var(--surface-muted); }

/* ---- toast ------------------------------------------------------------------------------------- */
.toast-wrap { position: fixed; z-index: 300; left: 16px; right: 16px; top: calc(var(--safe-top) + 48px); display: flex; justify-content: center; pointer-events: none; animation: toast-in 350ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.toast-wrap.leaving { opacity: 0; transform: translateY(-20px); transition: opacity 250ms, transform 250ms; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-20px); } }
.toast { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 10px 16px; border-radius: 12px; background: rgba(32, 34, 42, 0.96); font-size: 14px; font-weight: 700; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22); }
.toast img { width: 30px; height: 40px; border-radius: 5px; object-fit: cover; }
.shell.wide .toast-wrap { left: calc(var(--side-width) + 16px); }

/* ---- tablets in portrait: the phone layout, with columns that stop growing --------------------- */
@media (min-width: 600px) and (max-width: 899px) {
  .page, .actor-page { max-width: 640px; margin: 0 auto; }
  .thumb-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- the desktop layout ------------------------------------------------------------------------ */
@media (min-width: 900px) {
  /* The feed: a centred 9:16 stage per page, the rail beside it, arrows on the right. */
  .reel { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 0; }
  .reel-stage { position: relative; inset: auto; height: 100%; aspect-ratio: 9 / 16; max-width: calc(100% - 200px); border-radius: 14px; }
  .reel-meta { right: 14px; }
  .reel-rail { position: relative; right: auto; bottom: auto; align-self: flex-end; margin-bottom: 8px; }
  .feed-brand { display: none; }
  .feed-top { top: 22px; }
  .feed-mute { right: 24px; }
  .feed-arrows { position: absolute; z-index: 20; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; }
  .feed-arrows button { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-raised); color: var(--white); display: grid; place-items: center; transition: background 120ms; }
  .feed-arrows button:hover:not(:disabled) { background: var(--line); }
  .feed-arrows button:disabled { opacity: 0.35; }
  .swipe-hint { display: none; }

  /* On Set: the same 9:16 stage in the middle of the screen. */
  .onset { left: var(--side-width); }
  .onset-stage { width: auto; height: calc(100% - 32px); aspect-ratio: 9 / 16; border-radius: 14px; }

  .page-head { padding-top: 28px; }
  .calls-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .thumb-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .actor-page { max-width: 720px; margin: 0 auto; }
  .actor-art { height: max(100%, 1280px); }
  .actor-back { left: calc(var(--side-width) + 16px); }
  .actor-top-scrim { left: var(--side-width); }
  .actor-bar { left: var(--side-width); }
  .call-desk { padding-top: 76px; }
  .roster-rings { padding-top: 20px; }
}

@media (min-width: 1280px) {
  .calls-list { grid-template-columns: repeat(2, 1fr); }
  .shell.wide .page.calls-page { max-width: 900px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .ticker-track { animation: none; }
  .call-disc-record { animation: none; }
  .onset-still.push { animation: none; }
}
