/* PLOT ENGINEERS — broadcast console
   Layout: fixed viewport. Left channel rail + right broadcast deck.
   All motion is transform/opacity/filter only, and every animated layer is
   suppressed by .fx-off (Reduce-Effects knob) or prefers-reduced-motion. */

/* ═══════════════════ COSMOS ATMOSPHERE ═══════════════════ */
.cosmos { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--space-void); }
.cosmos__nebula {
  position: absolute; inset: -20%;
  background:
    radial-gradient(42% 38% at 78% 18%, rgba(255, 80, 48, 0.22), transparent 70%),
    radial-gradient(46% 44% at 16% 82%, rgba(255, 176, 32, 0.18), transparent 72%),
    radial-gradient(60% 50% at 50% 50%, rgba(200, 120, 48, 0.14), transparent 75%);
  filter: blur(24px) saturate(115%);
  animation: nebula-drift 46s ease-in-out infinite alternate;
}
.cosmos__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.cosmos__scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay; opacity: 0.35;
}
@keyframes nebula-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.08); }
}

/* ═══════════════════ CONSOLE GRID ═══════════════════ */
.console {
  position: relative; z-index: 1;
  display: grid;
  /* minmax(0,1fr): a 1fr track refuses to shrink below its content's
     min-width — one long ticker line inflated the whole grid to ~3300px
     and every real phone zoomed out to fit it. Zero kills the floor. */
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  height: 100vh; height: 100dvh;
  gap: 0;
}
.rail, .deck, .stage, .tv, .monitors { min-width: 0; max-width: 100%; }

/* ═══════════════════ CHANNEL RAIL ═══════════════════ */
.rail {
  display: flex; flex-direction: column; min-height: 0;
  background: linear-gradient(180deg, rgba(26, 16, 7, 0.86), rgba(13, 8, 3, 0.92));
  border-right: 1px solid var(--space-line);
  backdrop-filter: blur(8px);
}
.rail__brand { padding: var(--s-4) var(--s-4) var(--s-3); border-bottom: 1px solid var(--space-line); }
.wordmark { font-weight: 700; font-size: clamp(1.35rem, 1rem + 1.4vw, 1.9rem); line-height: 0.98; letter-spacing: 0.02em; display: flex; flex-direction: column; }
.wordmark__plot { color: var(--ink); }
.wordmark__eng {
  color: transparent;
  background: linear-gradient(96deg, var(--neon-cyan), var(--neon-violet) 55%, var(--neon-red));
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255,176,32,0.25));
}
.wordmark__tag { margin: var(--s-2) 0 0; font-size: var(--text-xs); color: var(--ink-faint); letter-spacing: 0.04em; }

.rail__status { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-wide); }
.tally { width: 8px; height: 8px; border-radius: 50%; background: var(--on-air); box-shadow: 0 0 8px var(--on-air); animation: tally-pulse 2s ease-in-out infinite; }
.rail__status-txt { color: var(--neon-red-soft); font-weight: 700; }
.rail__count { margin-left: auto; color: var(--ink-faint); }
@keyframes tally-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.rail__search { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-3) var(--s-4); padding: var(--s-2) var(--s-3); background: var(--space-void); border: 1px solid var(--space-line); border-radius: 999px; color: var(--ink-faint); }
.rail__search:focus-within { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.rail__search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font-family: var(--font-mono); font-size: var(--text-sm); }
.rail__search input::placeholder { color: var(--ink-faint); }
.rail__search input:focus { outline: none; }

.rail__list { list-style: none; margin: 0; padding: var(--s-2) var(--s-3) var(--s-5); overflow-y: auto; overflow-x: hidden; flex: 1; scrollbar-width: thin; scrollbar-color: var(--space-line-bright) transparent; }
.rail__list::-webkit-scrollbar { width: 8px; }
.rail__list::-webkit-scrollbar-thumb { background: var(--space-line-bright); border-radius: 4px; }

/* ── channel item ── */
.channel {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3);
  padding: var(--s-2) var(--s-2);
  border-radius: var(--radius);
  cursor: pointer; position: relative;
  border: 1px solid transparent;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-expo);
}
.channel + .channel { margin-top: 2px; }
.channel:hover { background: rgba(200, 120, 48, 0.10); transform: translateX(3px); }
.channel.is-active { background: linear-gradient(90deg, rgba(255,176,32,0.14), rgba(255,80,48,0.08)); border-color: var(--space-line-bright); }
.channel.is-active::before { content: ""; position: absolute; left: -3px; top: 12%; bottom: 12%; width: 3px; border-radius: 3px; background: var(--neon-cyan); box-shadow: var(--glow-cyan); }

.channel__avatar { width: 46px; height: 46px; border-radius: 11px; overflow: hidden; border: 1px solid var(--space-line-bright); background: var(--space-panel); flex-shrink: 0; position: relative; }
.channel__avatar svg { display: block; width: 100%; height: 100%; }
/* real portraits arrive in every aspect ratio — crop, never squash; faces live high in the frame */
.channel__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.channel.is-active .channel__avatar { border-color: var(--neon-cyan); box-shadow: 0 0 0 1px rgba(255,176,32,0.4); }
/* guide miss → the deep archive takes the question */
.channel-ask { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; border: 1px dashed var(--space-line-bright); border-radius: 11px; cursor: pointer; }
.channel-ask:hover, .channel-ask:focus-visible { border-color: var(--neon-cyan); }
.channel-ask__name { font-size: 0.8rem; color: var(--ink-dim); }
.channel-ask__cta { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--neon-cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.channel__meta { min-width: 0; }
.channel__name { font-weight: 600; font-size: var(--text-sm); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel__domain { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--ink-faint); text-transform: uppercase; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel__domain b { color: var(--neon-cyan-soft); font-weight: 400; }

.channel__ch { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-faint); text-align: right; line-height: 1.1; }
.channel__ch b { display: block; color: var(--ink-dim); font-size: 0.9rem; }
.channel.is-active .channel__ch b { color: var(--neon-red-soft); }

/* ═══════════════════ BROADCAST DECK ═══════════════════ */
.deck {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-4); padding: var(--s-5); min-height: 0; position: relative;
}

/* ── the stage: main tube + the Eye of the World monitor stack ── */
.stage { display: flex; align-items: center; justify-content: center; gap: clamp(var(--s-3), 2vw, var(--s-5)); width: 100%; min-height: 0; }

/* ── the television ── */
/* Height-aware: the tube never grows taller than the space left after the
   control deck, so the whole console fits one screen (4:3 → width from height). */
.tv { width: min(100%, 860px, calc((100dvh - 232px) * 4 / 3)); perspective: 1600px; flex: 0 1 auto; min-width: 0; }

/* ── the Eye of the World: three small tube monitors, always muted ── */
.monitors { display: flex; flex-direction: column; gap: var(--s-3); width: clamp(148px, 15vw, 208px); flex: none; }
.mini {
  border-radius: 14px; padding: 7px 7px 5px;
  background: linear-gradient(180deg, #2a1c0e, #180f06 60%, #0e0803);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 14px 30px -16px rgba(0,0,0,0.9), 0 0 0 1px var(--space-line);
}
.mini__screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 9px / 13px;
  background: radial-gradient(120% 120% at 50% 46%, #140d06 0%, var(--screen-bg) 78%);
  box-shadow: inset 0 0 26px rgba(0,0,0,0.85);
}
.mini__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.mini__nosignal { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.22em; color: var(--ink-faint); }
.mini .crt--scanlines { opacity: 0.35; animation: none; }
.mini .crt--vignette { box-shadow: inset 0 0 34px 8px rgba(0,0,0,0.65); }
.mini__label { display: block; margin-top: 5px; text-align: center; font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.14em; color: var(--ink-faint); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── creator super mode: platform presence cards on the left tubes ── */
.pcard {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-align: center; padding: 6px;
  background: radial-gradient(90% 80% at 50% 30%, rgba(255,176,32,0.07), transparent 70%);
}
.pcard__glyph { width: 22px; height: 22px; color: var(--neon-cyan); filter: drop-shadow(0 0 6px rgba(255,176,32,0.5)); }
.pcard__glyph svg { width: 100%; height: 100%; }
.pcard__count { font-family: var(--font-mono); font-weight: 700; font-size: clamp(0.9rem, 1.4vw, 1.2rem); color: var(--phosphor); text-shadow: 0 0 8px rgba(255,208,138,0.5); line-height: 1.1; }
.pcard__word { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.2em; color: var(--ink-faint); }
.pcard__handle { font-family: var(--font-mono); font-size: 0.56rem; color: var(--ink-dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__tube { position: absolute; inset: 0; }
.pcard__tube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pcard__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__research { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 12px; text-decoration: none; background: radial-gradient(120% 90% at 50% 20%, rgba(120,210,255,0.08), transparent 70%); }
.pcard__research-kicker { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.24em; color: var(--neon-cyan); }
.pcard__research-title { font-size: 0.82rem; line-height: 1.3; color: var(--phosphor); font-weight: 600; }
.pcard__research-go { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.12em; color: var(--ink-dim); }
.pcard__research:hover .pcard__research-go { color: var(--neon-cyan-soft); }
.pcard__ident { display: flex; flex-direction: column; gap: 2px; }
.pcard__ident-mark { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em; color: var(--neon-cyan); text-shadow: 0 0 10px rgba(255,176,32,0.45); }
.pcard__ident-sub { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.24em; color: var(--ink-faint); }

.tv__cabinet {
  position: relative;
  padding: clamp(14px, 2.2vw, 30px);
  border-radius: var(--cabinet-radius);
  background:
    linear-gradient(180deg, #2a1c0e, #180f06 60%, #0e0803);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 30px 70px -30px rgba(0,0,0,0.9),
    0 0 0 1px var(--space-line);
}
.tv__cabinet::after { /* speaker-grille hint on the cabinet chin */
  content: ""; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: 42%; height: 6px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--space-line) 0 2px, transparent 2px 5px);
  opacity: 0.6;
}

.tv__screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 18px / 26px;   /* CRT curvature */
  background: radial-gradient(120% 120% at 50% 46%, #140d06 0%, var(--screen-bg) 78%);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.85), inset 0 0 12px rgba(255,176,32,0.06);
  isolation: isolate;
}

/* ── the segment (broadcast bio) ── */
.segment { position: absolute; inset: 0; z-index: 1; }
.segment__portrait {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 24%;
  opacity: 0.9;
  transform: scale(1.06);
  animation: kenburns 18s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 46%, rgba(0,0,0,0.14) 74%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 46%, rgba(0,0,0,0.14) 74%);
}
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(-1%, -1%, 0); }
  to   { transform: scale(1.12) translate3d(1.5%, 1%, 0); }
}

.segment__grade { position: absolute; top: var(--s-3); left: var(--s-3); display: flex; align-items: center; gap: var(--s-2); font-family: var(--font-mono); font-size: var(--text-xs); z-index: 3; }
.segment__ch { color: var(--phosphor); letter-spacing: 0.12em; text-shadow: 0 0 8px rgba(255,208,138,0.5); }
.segment__level { padding: 2px 8px; border: 1px solid var(--neon-red); color: var(--neon-red-soft); border-radius: 3px; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.66rem; }

.segment__lower { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(14px, 3vw, 30px); padding-bottom: clamp(30px, 5vw, 48px); z-index: 3; }
.segment__eyebrow { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-wide); color: var(--neon-cyan); text-transform: uppercase; }
.segment__eyebrow > span:first-child { position: relative; padding-left: 16px; }
.segment__eyebrow > span:first-child::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--neon-cyan); transform: translateY(-50%); box-shadow: var(--glow-cyan); }
.segment__domain { color: var(--ink-dim); }
.segment__name { margin: var(--s-2) 0 var(--s-2); font-size: clamp(1.9rem, 1rem + 4vw, 3.4rem); font-weight: 700; line-height: 0.98; letter-spacing: 0.01em; text-shadow: 0 2px 24px rgba(0,0,0,0.8); }
.segment__take { margin: 0; max-width: 44ch; color: var(--ink); font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.2rem); line-height: 1.42; font-weight: 400; text-shadow: 0 1px 12px rgba(0,0,0,0.9); }

/* classification stamp beside level */
.segment__class { padding: 2px 8px; border: 1px solid rgba(255,176,32,0.5); color: var(--neon-cyan-soft); border-radius: 3px; letter-spacing: 0.1em; font-size: 0.6rem; }

/* chyron — rotating beats: system / latest signal / nodes */
.segment__chyron { margin: var(--s-2) 0 0; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--phosphor); text-shadow: 0 0 8px rgba(255,208,138,0.35); min-height: 1.4em; }
.segment__chyron b { color: var(--neon-cyan); font-weight: 700; margin-right: 6px; }

/* watch next — chains the broadcast */
.segment__next { margin-top: var(--s-2); display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--space-line-bright); border-radius: 999px; padding: 4px 12px; color: var(--ink-dim); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: color var(--dur-fast), border-color var(--dur-fast); }
.segment__next:hover { color: var(--neon-red-soft); border-color: var(--neon-red); }

/* ── CH·00 THE SIGNAL REPORT ── */
.segment__portrait--station {
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(255,176,32,0.12), transparent 70%),
    linear-gradient(180deg, #120b04, #0a0602);
}
.report { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: clamp(6px, 1.4vh, 14px); padding: clamp(16px, 4vw, 44px); padding-bottom: clamp(40px, 7vh, 60px); }
.report__eyebrow { margin: 0; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-mega); color: var(--neon-red-soft); }
.report__title { margin: 0 0 clamp(4px, 1vh, 10px); font-size: clamp(1.6rem, 1rem + 2.6vw, 2.6rem); font-weight: 700; letter-spacing: 0.04em; color: var(--ink); text-shadow: 0 0 24px rgba(255,176,32,0.25); }
.report__row { display: grid; grid-template-columns: minmax(110px, 150px) 1fr; gap: var(--s-3); padding-top: clamp(6px, 1.2vh, 12px); border-top: 1px solid rgba(255,176,32,0.18); align-items: baseline; }
.report__label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; color: var(--neon-cyan); }
.report__body { font-size: clamp(0.85rem, 0.78rem + 0.4vw, 1.02rem); line-height: 1.4; color: var(--ink); text-shadow: 0 1px 10px rgba(0,0,0,0.9); }
.report__tune { margin-left: 10px; background: none; border: 1px solid var(--neon-red); color: var(--neon-red-soft); border-radius: 999px; padding: 1px 10px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; cursor: pointer; }
.report__tune:hover { background: var(--neon-red); color: #1c0400; }
.report__source { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; color: var(--ink-faint); }

.segment__ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(90deg, rgba(255,80,48,0.16), rgba(255,176,32,0.10)); border-top: 1px solid rgba(255,176,32,0.25); overflow: hidden; z-index: 4; display: flex; align-items: center; }
.segment__ticker-track { display: inline-flex; gap: var(--s-5); white-space: nowrap; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--phosphor); letter-spacing: 0.08em; padding-left: 100%; animation: ticker 26s linear infinite; }
.segment__ticker-track b { color: var(--neon-cyan); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ── channel-change: brief tune-in, NOT a strobe ── */
.tv__screen.is-tuning .segment { opacity: 0; }
.segment { transition: opacity var(--dur) var(--ease-out-expo); }
.tv__screen.is-tuning .crt--static { opacity: 0.5; }

/* ═══════════════════ CRT GLASS TREATMENTS ═══════════════════ */
.crt { position: absolute; inset: 0; pointer-events: none; }
.crt--scanlines { z-index: 5; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.28) 0 1px, rgba(0,0,0,0) 1px 3px); mix-blend-mode: multiply; opacity: 0.55; animation: scan-roll 8s linear infinite; }
@keyframes scan-roll { from { background-position-y: 0; } to { background-position-y: 6px; } }
.crt--glare { z-index: 6; background: radial-gradient(80% 55% at 30% 12%, rgba(255,255,255,0.10), transparent 60%); mix-blend-mode: screen; }
.crt--vignette { z-index: 6; box-shadow: inset 0 0 90px 20px rgba(0,0,0,0.7); border-radius: inherit; }
.crt--static { z-index: 7; opacity: 0; transition: opacity var(--dur-fast) ease; mix-blend-mode: screen; }

.tv__brandplate { margin-top: 12px; text-align: center; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: var(--tracking-wide); color: var(--ink-faint); }

/* THE SCREEN, UNDOCKED — a draggable, resizable floating tube (desktop only) */
.tv-winbtn { position: absolute; top: 8px; left: 8px; z-index: 9; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--space-line-bright); background: rgba(10, 6, 4, 0.55); color: var(--neon-cyan-soft); cursor: pointer; opacity: 0; transition: opacity var(--dur-fast) ease; }
.tv:hover .tv-winbtn, .tv--float .tv-winbtn, .tv-winbtn:focus-visible { opacity: 1; }
.tv-winbtn:hover { border-color: var(--neon-cyan); background: rgba(10, 6, 4, 0.8); }
.tv--float { position: fixed; z-index: 50; margin: 0 !important; flex: none !important; max-width: none; }
.tv--float .tv__brandplate { cursor: move; user-select: none; touch-action: none; border: 1px dashed var(--space-line-bright); border-radius: 8px; padding: 6px; color: var(--neon-cyan-soft); }
.tv--float .tv__brandplate::before { content: "\2836  "; color: var(--neon-cyan); }
.tv-grip { display: none; }
.tv--float .tv-grip { display: block; position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; z-index: 10; cursor: nwse-resize; touch-action: none; opacity: 0.7; background: repeating-linear-gradient(135deg, transparent 0 3px, var(--neon-cyan-soft) 3px 4px); border-radius: 0 0 6px 0; }
.tv--float .tv-grip:hover { opacity: 1; }
@media (max-width: 640px) { .tv-winbtn, .tv-grip { display: none !important; } }

/* ── HUD ── */
.tv__hud { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 8; display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-mono); font-size: var(--text-xs); }
.tv__onair { display: flex; align-items: center; gap: 6px; color: var(--on-air); font-weight: 700; letter-spacing: 0.12em; }
.tv__onair-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-air); box-shadow: 0 0 8px var(--on-air); animation: tally-pulse 2s ease-in-out infinite; }
.tv__tc { color: var(--phosphor); text-shadow: 0 0 8px rgba(255,208,138,0.5); }

/* ═══════════════════ CONTROL DECK ═══════════════════ */
.controls {
  width: min(100%, 860px);
  display: flex; align-items: center; gap: clamp(var(--s-3), 2.5vw, var(--s-6));
  padding: var(--s-3) var(--s-4);
  background: linear-gradient(180deg, rgba(26,16,7,0.7), rgba(13,8,3,0.6));
  border: 1px solid var(--space-line); border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  flex-wrap: wrap; justify-content: center;
}
.controls__cluster { display: flex; align-items: center; gap: var(--s-2); }
.controls__cluster--knob, .controls__cluster--signal { flex-direction: column; gap: var(--s-1); }
.controls__label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; color: var(--ink-faint); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs); letter-spacing: 0.08em; color: var(--ink-dim); background: var(--space-panel); border: 1px solid var(--space-line-bright); border-radius: 10px; padding: var(--s-2) var(--s-3); cursor: pointer; transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast) var(--ease-snap); }
.btn:hover { color: var(--ink); border-color: var(--neon-cyan); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn--sq { padding: var(--s-2); border-radius: 10px; }
.btn__glyph { font-family: var(--font-mono); font-weight: 700; }
.btn--toggle[aria-pressed="true"] { color: #04030a; background: var(--neon-cyan); border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
#lang-toggle[aria-pressed="true"] { background: var(--neon-red); border-color: var(--neon-red); box-shadow: var(--glow-red); color: #1c0400; }

.channel-readout { text-align: center; font-family: var(--font-mono); padding: 0 var(--s-2); }
.channel-readout__label { display: block; font-size: 0.55rem; color: var(--ink-faint); letter-spacing: 0.2em; }
.channel-readout__num { font-size: 1.5rem; font-weight: 700; color: var(--phosphor); text-shadow: 0 0 10px rgba(255,208,138,0.5); }

/* volume knob */
.knob { position: relative; width: 52px; height: 52px; cursor: ns-resize; touch-action: none; }
.knob__dial { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 40% 34%, #40301c, #1d1109); border: 1px solid var(--space-line-bright); box-shadow: inset 0 2px 4px rgba(255,255,255,0.06), 0 3px 8px rgba(0,0,0,0.6); transition: transform var(--dur-fast) ease; }
.knob__pointer { position: absolute; left: 50%; top: 6px; width: 3px; height: 15px; border-radius: 2px; background: var(--neon-cyan); box-shadow: var(--glow-cyan); transform: translateX(-50%); }
.knob__ring { position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(var(--neon-cyan) calc(var(--vol, 65) * 1%), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); opacity: 0.85; }
.knob:focus-visible { outline: none; }
.knob:focus-visible .knob__dial { border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }

/* signal meter */
.signal-meter { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.signal-meter span { width: 5px; background: var(--space-line-bright); border-radius: 2px; transition: background var(--dur), height var(--dur); }
.signal-meter span:nth-child(1){height:35%} .signal-meter span:nth-child(2){height:55%} .signal-meter span:nth-child(3){height:75%} .signal-meter span:nth-child(4){height:90%} .signal-meter span:nth-child(5){height:100%}
.signal-meter span.lit { background: var(--neon-cyan); box-shadow: 0 0 6px rgba(255,176,32,0.6); }

/* ═══════════════════ GO-BIG (enlarge) STATE ═══════════════════ */
.console.is-big .rail { display: none; }
.console.is-big { grid-template-columns: 1fr; }
.console.is-big .tv { width: min(100%, 1200px, calc((100dvh - 150px) * 4 / 3)); }
.console.is-big .monitors { display: none; } /* theater mode: the big tube alone */

/* ═══════════════════ REDUCE-EFFECTS / REDUCED MOTION ═══════════════════ */
.fx-off .cosmos__nebula,
.fx-off .segment__portrait,
.fx-off .crt--scanlines,
.fx-off .segment__ticker-track,
.fx-off .tally,
.fx-off .tv__onair-dot { animation: none !important; }
.fx-off .crt--scanlines { opacity: 0.28; }
.fx-off .cosmos__stars { opacity: 0.4; }
.fx-off .segment { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .cosmos__nebula, .segment__portrait, .crt--scanlines, .segment__ticker-track,
  .tally, .tv__onair-dot { animation: none !important; }
  .channel:hover { transform: none; }
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1100px) {
  .stage { flex-wrap: wrap; }
  .monitors { flex-direction: row; flex-wrap: wrap; width: 100%; max-width: 860px; }
  .mini { flex: 1; min-width: 0; }
  /* Elliot takes his own full row so the tubes never push past the viewport */
  .elliot { flex: 1 1 100%; min-width: 0; }
}
@media (max-width: 880px) {
  body { overflow: auto; height: auto; }
  html { height: auto; }
  .console { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 100dvh; }
  .rail { order: 2; border-right: 0; border-top: 1px solid var(--space-line); max-height: 46vh; }
  .deck { order: 1; padding: var(--s-4) var(--s-3); }
  .rail__list { max-height: 34vh; }
}
@media (max-width: 480px) {
  .controls { gap: var(--s-3); padding: var(--s-3); }
  .controls__cluster--signal { display: none; }
  .segment__take { -webkit-line-clamp: 3; }
}

/* ═══════════ MOBILE DIRECTION (≤640px): reflow, not shrink ═══════════
   The phone gets its own broadcast order: brand + guide strip first, the
   big screen as the hero, one creator tube (not three), Elliot in reach.
   The Eyes rest on phones — one sanctioned player on cellular, not four. */
@media (max-width: 640px) {
  .console { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 100dvh; }
  .tv { width: 100%; }
  /* legible thumb-scale type — no more 9px squint */
  .strings-btn { font-size: 0.72rem; padding: 11px 12px; }
  .today-line b, .pulse-chip b { font-size: 0.62rem; }
  .today-line span, .pulse-chip span { font-size: 0.76rem; }
  .channel__name { font-size: 0.64rem; }
  .mini__label { font-size: 0.6rem; }
  .rail { order: 0; border-right: 0; border-top: 0; border-bottom: 1px solid var(--space-line); max-height: none; overflow: visible; }
  .deck { order: 1; padding: var(--s-3) var(--s-2) var(--s-5); }

  /* the guide becomes a story strip — thumb-tunable, faces first */
  .rail__list { display: flex; gap: 8px; overflow-x: auto; max-height: none; padding: 10px 6px;
                -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .rail__list::-webkit-scrollbar { display: none; }
  .channel { flex: 0 0 auto; width: 74px; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; }
  .channel__avatar { width: 54px; height: 54px; border-radius: 15px; }
  .channel__meta { text-align: center; min-width: 0; width: 100%; }
  .channel__name { font-size: 0.56rem; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .channel__domain, .channel__ch { display: none; }
  .channel-ask { flex: 0 0 auto; width: 180px; }

  /* the big screen leads; the wall follows with ONE tube; the Eyes rest */
  .stage { display: flex; flex-direction: column; }
  .tv { order: 0; width: 100%; }
  .monitors--creator { order: 1; width: 100%; max-width: none; }
  .monitors:not(.monitors--creator) { display: none; }
  .monitors--creator .mini ~ .mini { display: none; }
  .monitors--creator .mini { flex: 1 1 100%; }
  .mini__screen { aspect-ratio: 16 / 9; }

  /* ── POP-TART EASY: the couch brain never has to think ──
     One playing screen, a strip of faces, ESPAÑOL, and ONE door marked MORE.
     Every clever thing (brain, jukebox, cosmos, strings detail) lives behind
     the Launch Box — depth for diggers, zero clutter for everyone else. */
  #big-toggle, #fx-toggle, #jukebox-btn, #brain-btn { display: none; }
  .controls__cluster--channel, .controls__cluster--knob { display: none; }
  .controls { justify-content: center; gap: var(--s-4); }
  #launch-btn { width: auto; padding: 10px 22px; border-radius: 10px; }
  #launch-btn::after { content: "MORE"; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; margin-left: 8px; }

  /* drawers own the whole phone screen */
  .cosmos-card, .strings-card, .brain-card { width: 96vw; max-height: 94dvh; }
  .strings-stage { padding: 14px 4px 8px; }
  .launch-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════ WIDGET LAYER ═══════════════════ */

/* ── ELLIOT — the station intelligence (left column) ── */
.elliot {
  border-radius: 14px; padding: var(--s-2) var(--s-3);
  background: linear-gradient(180deg, #2a1c0e, #180f06 60%, #0e0803);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 14px 30px -16px rgba(0,0,0,0.9), 0 0 0 1px var(--space-line);
}
.elliot__head { display: flex; align-items: center; gap: var(--s-2); }
.elliot__face { width: 34px; color: var(--neon-cyan); filter: drop-shadow(0 0 6px rgba(255,176,32,0.45)); }
.elliot__face svg { display: block; width: 100%; }
.elliot__mouth { transition: transform var(--dur-fast) ease; transform-origin: 50% 78%; }
.elliot__face.is-talking .elliot__mouth { animation: elliot-talk 0.5s ease-in-out infinite alternate; }
@keyframes elliot-talk { from { transform: scaleY(0.55); } to { transform: scaleY(1.5); } }
.fx-off .elliot__face.is-talking .elliot__mouth { animation: none; }
.elliot__name { font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.14em; color: var(--ink); }
.elliot__status { margin-left: auto; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.16em; color: var(--neon-cyan-soft); }
.elliot__out { margin: var(--s-2) 0; min-height: 2.4em; font-family: var(--font-mono); font-size: 0.66rem; line-height: 1.4; color: var(--phosphor); text-shadow: 0 0 8px rgba(255,208,138,0.3); }
.elliot__form input {
  width: 100%; background: var(--space-void); border: 1px solid var(--space-line); border-radius: 999px;
  padding: 6px 12px; color: var(--ink); font-family: var(--font-mono); font-size: 0.7rem;
}
.elliot__form input::placeholder { color: var(--ink-faint); }
.elliot__form input:focus { outline: none; border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }

/* ── deck widget buttons ── */
.btn--brain { padding: 4px; }
.btn--brain img { display: block; width: 26px; height: 26px; border-radius: 6px; object-fit: cover; border: 1px solid var(--space-line-bright); }
.btn--brain:hover img { border-color: var(--neon-cyan); }

/* ── drawers (screen overlay pattern, shared with the jukebox port) ── */
.screen { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(6, 3, 1, 0.72); backdrop-filter: blur(4px); }
.screen.hidden { display: none; }
.screen-card {
  width: min(92vw, 420px); max-height: 88dvh; overflow-y: auto;
  border-radius: var(--radius-lg); padding: var(--s-4);
  background: linear-gradient(180deg, #241608, #150c04 70%, #0e0803);
  border: 1px solid var(--space-line-bright);
  box-shadow: 0 40px 90px rgba(0,0,0,0.7), var(--glow-soft), inset 0 1px 0 rgba(255,255,255,0.05);
  color: var(--ink);
}
.jb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.jb-brand { font-weight: 700; letter-spacing: 0.22em; font-size: 0.72rem; color: var(--ink-dim); }
.jb-brand b { color: var(--neon-cyan); }
.jb-close { background: none; border: 0; color: var(--ink-dim); font-size: 17px; line-height: 1; cursor: pointer; padding: 6px; min-width: 40px; min-height: 40px; }
.jb-close:hover { color: var(--ink); }

/* ── the cosmic jukebox, brown ── */
.jb-cv { display: block; width: 100%; height: 150px; border-radius: 12px; background: var(--screen-bg); margin-bottom: var(--s-2); }
.jb-spotify { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; background: var(--screen-bg); margin-bottom: var(--s-2); }
.jb-spotify.hidden, .jb-cv.hidden, .jb-controls.hidden, .jb-vol.hidden { display: none; }
.jb-now { text-align: center; margin-bottom: var(--s-2); }
.jb-title { font-size: 1.15rem; font-weight: 700; }
.jb-sub { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-faint); letter-spacing: 0.1em; }
.jb-controls { display: flex; align-items: center; justify-content: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.jb-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--space-line-bright); background: var(--space-panel); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color var(--dur-fast), background var(--dur-fast); }
.jb-btn svg { width: 18px; height: 18px; fill: currentColor; }
.jb-btn:hover { border-color: var(--neon-cyan); }
.jb-play { width: 56px; height: 56px; background: #241608; }
.jb-play svg { width: 24px; height: 24px; }
.jb-vol { display: flex; align-items: center; margin-bottom: var(--s-3); }
.jb-vol input { width: 100%; accent-color: var(--neon-cyan); }
.jb-stations { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
.jb-chip { padding: 9px 8px; border-radius: 10px; border: 1px solid var(--space-line); background: var(--space-void); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: border-color var(--dur-fast); font-family: inherit; text-align: left; }
.jb-chip:hover { border-color: var(--neon-violet); }
.jb-chip.on { border: 1px solid var(--neon-cyan); background: #241608; box-shadow: var(--glow-cyan); }
.jb-n { font-size: 0.78rem; font-weight: 700; }
.jb-s { font-family: var(--font-mono); font-size: 0.56rem; color: var(--ink-faint); }
.jukebox-btn.playing { color: var(--neon-cyan); border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }

/* ── the launch box ── */
.launch-lid { display: grid; place-items: center; color: var(--ink-dim); margin-bottom: var(--s-3); }
.launch-lid svg { width: 120px; filter: drop-shadow(0 0 12px rgba(255,176,32,0.25)); }
.launch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
.launch-tile {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 10px; text-align: left;
  border-radius: 10px; border: 1px solid var(--space-line); background: var(--space-void);
  color: var(--ink); text-decoration: none; cursor: pointer; font-family: inherit; font-size: inherit;
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-snap);
}
.launch-tile:hover { border-color: var(--neon-cyan); transform: translateY(-2px); }
.launch-tile b { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--neon-cyan-soft); }
.launch-tile span { font-family: var(--font-mono); font-size: 0.58rem; color: var(--ink-dim); letter-spacing: 0.06em; }

/* ── the brain drawer ── */
.brain-card { width: min(92vw, 520px); max-height: 88vh; overflow-y: auto; }

/* ── SHOW ME THE STRINGS — the Attention Mirror v1 ── */
.strings-btn { margin-top: 10px; width: 100%; padding: 9px 6px; border-radius: 9px; border: 1px solid var(--neon-red); background: rgba(255, 80, 48, 0.08); color: var(--neon-red-soft); font-family: var(--font-mono); font-weight: 700; font-size: 0.6rem; letter-spacing: 0.18em; cursor: pointer; }
.strings-btn:hover { background: rgba(255, 80, 48, 0.18); }
/* THE BROADCAST chip — the wheel's on/off switch, honest about its state */
.autopilot-chip { margin-left: auto; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--space-line-bright); background: transparent; color: var(--neon-cyan-soft); font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.14em; cursor: pointer; white-space: nowrap; }
.autopilot-chip:hover { border-color: var(--neon-cyan); }

/* facades: the real thumbnail in 0ms while the heavy player boots behind it */
.yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

/* THE WELCOME — plain words for a stranger's first three seconds */
.welcome { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(6, 3, 1, 0.82); backdrop-filter: blur(5px); }
.welcome__card { max-width: 430px; padding: 26px 24px 18px; border: 1px solid var(--space-line-bright); border-radius: 16px; background: linear-gradient(180deg, #1c1208, #0c0703 70%); text-align: center; }
.welcome__mark { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.28em; color: var(--neon-red-soft); }
.welcome__title { margin: 12px 0 10px; font-size: clamp(1.25rem, 5vw, 1.6rem); line-height: 1.25; color: var(--phosphor); }
.welcome__line { margin: 0 0 14px; font-size: 0.95rem; line-height: 1.6; color: var(--ink); }
.welcome__line--dare { font-size: 0.82rem; color: var(--neon-cyan-soft); }
.welcome__line--dare i { font-style: normal; color: var(--phosphor); }
.welcome__go { padding: 13px 34px; border-radius: 11px; border: 1px solid var(--neon-cyan); background: #241608; color: var(--neon-cyan-soft); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.16em; cursor: pointer; }
.welcome__go:hover { background: #2e1d0a; }
.welcome__fine { margin: 14px 0 0; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.12em; color: var(--ink-faint); }

/* THE PULSE — MY SIGNAL: the station reflects the visitor back to themselves */
.pulse-chip { margin-top: 8px; width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--neon-cyan); background: rgba(120, 210, 255, 0.06); color: var(--ink); cursor: pointer; text-align: left; }
.pulse-chip b { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.2em; color: var(--neon-cyan); flex: none; }
.pulse-chip span { font-size: 0.68rem; color: var(--ink-dim); }
.pulse-chip:hover { background: rgba(120, 210, 255, 0.14); }
.pulse-chip--live { animation: pulseGlow 2.4s ease-in-out infinite; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(120,210,255,0); } 50% { box-shadow: 0 0 14px -2px rgba(120,210,255,0.5); } }
@media (prefers-reduced-motion: reduce) { .pulse-chip--live { animation: none; } }
.pulse-card { width: min(96vw, 900px); height: min(92vh, 720px); display: flex; flex-direction: column; background: radial-gradient(120% 100% at 50% 0%, #0c1016 0%, #060809 70%); border: 1px solid var(--space-line-bright); border-radius: 16px; padding: 14px; }
#pulse-canvas { flex: 1; width: 100%; min-height: 0; }
.pulse-readout { padding: 10px 4px 4px; }
.pulse-readout p { margin: 0 0 8px; font-size: 0.92rem; line-height: 1.6; color: var(--ink); }
.pulse-welcome { color: var(--neon-cyan-soft) !important; font-family: var(--font-mono); font-size: 0.72rem !important; letter-spacing: 0.08em; }
.pulse-reading b, .pulse-count b { color: var(--phosphor); }
.pulse-privacy { font-family: var(--font-mono); font-size: 0.58rem !important; letter-spacing: 0.1em; color: var(--ink-faint) !important; }
.pulse-doors { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px; align-items: center; }
.pulse-doors-label { width: 100%; margin: 0 0 2px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--ink-dim); }
.pulse-door { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--neon-cyan); background: rgba(120,210,255,0.06); color: var(--neon-cyan-soft); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; cursor: pointer; }
.pulse-door:hover { background: rgba(120,210,255,0.16); }
.pulse-erase { margin-top: 10px; padding: 9px 12px; border-radius: 9px; border: 1px dashed var(--space-line-bright); background: transparent; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; cursor: pointer; }
.pulse-erase:hover { border-color: var(--neon-red); color: var(--neon-red-soft); }

/* the Daily Event — one experience that exists only today, one tap away */
.today-line { margin-top: 8px; width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--space-line-bright); background: var(--space-panel); color: var(--ink); cursor: pointer; text-align: left; }
.today-line b { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.2em; color: var(--neon-cyan); flex: none; }
.today-line span { font-size: 0.7rem; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-line:hover { border-color: var(--neon-cyan); }
.strings-card { width: min(94vw, 760px); max-height: 90vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #140c06, #0a0604 60%); border: 1px solid var(--space-line-bright); border-radius: 16px; padding: 16px; }
.strings-stage { flex: 1; overflow-y: auto; padding: 22px 10px 12px; }
.st-tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.26em; color: var(--neon-cyan); }
.st-title { margin: 10px 0 14px; font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--phosphor); }
.st-incomplete { color: var(--neon-red); }
.st-text { font-size: 0.98rem; line-height: 1.65; color: var(--ink); margin: 0 0 10px; }
.st-dim { color: var(--ink-dim); }
.st-note { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--ink-faint); margin: 12px 0 0; }
.st-subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.st-subject { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--space-line-bright); border-radius: 10px; }
.st-subject img { width: 100%; height: 110px; object-fit: cover; object-position: center 22%; border-radius: 7px; }
.st-subject b { color: var(--phosphor); }
.st-subject span { font-size: 0.72rem; color: var(--ink-dim); line-height: 1.4; }
.st-receipt { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.62rem; color: var(--neon-cyan-soft); word-break: break-all; }
.st-voices, .st-reruns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.st-voice { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--space-line-bright); background: var(--space-panel); color: var(--ink); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; cursor: pointer; }
.st-voice:hover { border-color: var(--neon-cyan); }
.st-descend { display: block; margin: 26px auto 4px; padding: 11px 30px; border-radius: 10px; border: 1px solid var(--neon-cyan); background: #241608; color: var(--neon-cyan-soft); font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.2em; cursor: pointer; }
.st-descend:hover { background: #2e1d0a; }
.st-mirror-line { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--neon-red-soft); margin: 12px 0; }
.st-audit p { font-size: 0.9rem; line-height: 1.65; color: var(--ink); margin: 0 0 12px; }
.st-audit b { color: var(--phosphor); }

/* ── THE COSMOS — the living universe (v0) ── */
.cosmos-card { width: min(96vw, 1100px); height: min(92vh, 760px); display: flex; flex-direction: column; background: radial-gradient(120% 100% at 50% 0%, #140c06 0%, #070402 70%); border: 1px solid var(--space-line-bright); border-radius: 16px; padding: 14px; }
.cosmos-sub { margin-left: 12px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.18em; color: var(--ink-dim); }
#cosmos-canvas { flex: 1; width: 100%; min-height: 0; cursor: pointer; }
.cosmos-legend { margin: 8px 0 0; text-align: center; font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em; color: var(--ink-faint); }

/* ── TODAY'S PATTERN — the Plot Engine's aired transmission ── */
.pattern-today { margin: 12px 0 18px; padding: 14px; border: 1px solid var(--space-line-bright); border-radius: 12px; background: rgba(20, 12, 6, 0.6); }
.pt-title { margin: 2px 0 2px; font-weight: 700; font-size: 1.02rem; color: var(--phosphor); }
.pt-subjects { margin: 0 0 12px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--ink-dim); }
.pt-instruments { display: grid; gap: 10px; margin-bottom: 12px; }
.pt-ins { display: grid; gap: 3px; padding: 9px 11px; border-left: 2px solid var(--neon-cyan); background: rgba(255, 176, 32, 0.04); border-radius: 0 8px 8px 0; }
.pt-ins__key { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.24em; color: var(--neon-cyan); }
.pt-ins__body { font-size: 0.86rem; color: var(--ink); line-height: 1.5; }
.pt-ins__receipts summary { cursor: pointer; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.14em; color: var(--ink-faint); }
.pt-ins__receipts a { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.6rem; color: var(--neon-cyan-soft); word-break: break-all; }
.pt-finale { margin-top: 14px; padding: 16px 12px 8px; border-top: 1px dashed var(--space-line-bright); min-height: 60px; }
.pt-finale__line { margin: 0 0 12px; font-size: 1rem; line-height: 1.5; color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity 900ms ease, transform 900ms ease; }
.pt-finale__line.is-on { opacity: 1; transform: none; }
.pt-finale__line--last { color: var(--phosphor); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .pt-finale__line { transition: none; transform: none; } }
.brain-img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--space-line-bright); }
.brain-line { margin: var(--s-3) 0 0; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--phosphor); text-align: center; }

/* ── station film + the burning earth ── */
.segment__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.segment__portrait--station { background: linear-gradient(180deg, rgba(6,3,1,0.15), rgba(6,3,1,0.7) 85%); }
.report__earth { display: inline-block; width: 0.95em; margin-right: 0.35em; vertical-align: -0.12em; }
.report__earth svg { display: block; width: 100%; }

/* horizontal overflow is never allowed to leak the console */
html, body { overflow-x: clip; }

/* ── TUNE THE PATTERN — the Brain's first instrument ── */
.pattern { margin-top: var(--s-3); border-top: 1px solid var(--space-line); padding-top: var(--s-3); }
.pattern__label { margin: 0 0 var(--s-2); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.22em; color: var(--neon-cyan); }
.pattern__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-2); }
.pattern__chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--space-line); background: var(--space-void); color: var(--ink-dim); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; cursor: pointer; transition: border-color var(--dur-fast), color var(--dur-fast); }
.pattern__chip:hover { border-color: var(--neon-violet); }
.pattern__chip[aria-pressed="true"] { border-color: var(--neon-cyan); color: var(--neon-cyan-soft); box-shadow: var(--glow-cyan); }
.pattern__go { width: 100%; padding: 9px; border-radius: 10px; border: 1px solid var(--neon-cyan); background: #241608; color: var(--neon-cyan-soft); font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; cursor: pointer; transition: background var(--dur-fast); }
.pattern__go:hover { background: #2e1d0a; }
.pattern__go:disabled { opacity: 0.45; cursor: default; }
.pattern__out { margin: var(--s-2) 0 0; min-height: 1.2em; font-family: var(--font-mono); font-size: 0.66rem; line-height: 1.5; color: var(--phosphor); }
.pattern__tag { display: block; margin-top: 6px; font-size: 0.52rem; letter-spacing: 0.12em; color: var(--ink-faint); }

/* watch-next chip inside the Signal Report rundown */
.report .segment__next { position: static; margin-top: var(--s-2); align-self: flex-start; }

/* phone-size tube: the rundown breathes, the HUD steps aside */
@media (max-width: 520px) {
  .tv__hud { display: none; }
  .report { justify-content: flex-start; overflow-y: auto; gap: 6px; padding-top: 40px; }
  .report__title { font-size: 1.25rem; }
  .report__row { grid-template-columns: 84px 1fr; gap: var(--s-2); }
  .report__body { font-size: 0.72rem; }
  .segment__take { font-size: 0.85rem; }
}
