/* Galent Demo Sidekick: "Control Room".
   A broadcast switcher for an AI presenter. Matte chassis, recessed fields, hardware-style keys,
   one signal amber for "this is yours to act on", and tally red used ONLY for "live in the meeting".
   Display: Big Shoulders Display (chyron). Text: Familjen Grotesk. Readouts: IBM Plex Mono. */

:root {
  color-scheme: dark;
  --void: #0a0b0c; --chassis: #101214; --panel: #16191c; --key: #20242a; --key-hi: #2b3037;
  --line: #262b31; --line2: #39404a;
  --ink: #ece8de; --ink2: #bdb9ae; --muted: #8f8f8a;
  --accent: #ffb020; --accent-ink: #1b1200; --accent-dim: rgba(255,176,32,.14); --accent-edge: #a8700a;
  --live: #ff3b30; --live-dim: rgba(255,59,48,.16);
  --ok: #7fd6a0; --warn: #ffb020; --bad: #ff7468; --info: #8fb8d6;
  --grid: rgba(236,232,222,.07);
  --inset: inset 0 2px 5px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.4);
  --key-shadow: 0 3px 0 #07080a, 0 4px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
  --grain: .09;
  --d: 'Big Shoulders Display Variable','Big Shoulders Display','Arial Narrow','Helvetica Neue Condensed',Impact,sans-serif;
  --t: 'Familjen Grotesk Variable','Familjen Grotesk','Gill Sans','Trebuchet MS',sans-serif;
  --m: 'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --void: #d6d1c3; --chassis: #e6e2d6; --panel: #f2efe6; --key: #fbf9f3; --key-hi: #ffffff;
  --line: #cdc8b9; --line2: #a9a493;
  --ink: #17181a; --ink2: #3d3f42; --muted: #5f605c;
  --accent: #b86a00; --accent-ink: #ffffff; --accent-dim: rgba(184,106,0,.12); --accent-edge: #7a4600;
  --live: #d4261b; --live-dim: rgba(212,38,27,.12);
  --ok: #1d7a45; --warn: #9a5b00; --bad: #b3261e; --info: #1f5f8a;
  --grid: rgba(23,24,26,.09);
  --inset: inset 0 1px 3px rgba(60,50,20,.28), inset 0 0 0 1px rgba(60,50,20,.1);
  --key-shadow: 0 2px 0 #a9a493, 0 3px 6px rgba(60,50,20,.2), inset 0 1px 0 #fff;
  --grain: .05;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--void); color: var(--ink);
  font: 400 16px/1.5 var(--t); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body[data-view="app"], body[data-view="hero"] { height: 100dvh; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; font-weight: 600; transition: top .15s; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grain {
  position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: var(--grain); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ keys (buttons) */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .55rem 1.1rem; border: 1px solid var(--line2); border-radius: 4px;
  background: linear-gradient(var(--key-hi), var(--key)); color: var(--ink); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  cursor: pointer; text-decoration: none; box-shadow: var(--key-shadow); touch-action: manipulation;
  transition: transform .08s, box-shadow .08s, background-color .15s, border-color .15s;
}
.btn:hover:not(:disabled) { border-color: var(--ink2); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #07080a, inset 0 1px 3px rgba(0,0,0,.4); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn.primary { background: linear-gradient(#ffc24d, var(--accent)); color: var(--accent-ink); border-color: var(--accent-edge); box-shadow: 0 3px 0 var(--accent-edge), 0 6px 14px -4px rgba(255,176,32,.35), inset 0 1px 0 rgba(255,255,255,.45); }
:root[data-theme="light"] .btn.primary { background: linear-gradient(#d98010, var(--accent)); }
.btn.primary:active:not(:disabled) { box-shadow: 0 1px 0 var(--accent-edge), inset 0 1px 3px rgba(0,0,0,.25); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line2)); }
.btn.danger:hover:not(:disabled) { background: var(--live-dim); border-color: var(--bad); }
.btn.stop { background: linear-gradient(#ff5a4f, var(--live)); color: #fff; border-color: #8f1810; box-shadow: 0 3px 0 #8f1810, 0 8px 18px -6px rgba(255,59,48,.5), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.big { min-height: 56px; padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn.small { min-height: 36px; padding: .3rem .8rem; font-size: .86rem; }
.btn.ghost { background: none; box-shadow: none; border-color: transparent; color: var(--ink2); }
.btn.ghost:hover:not(:disabled) { color: var(--ink); border-color: var(--line2); }
.btn.icon { width: 44px; padding: 0; }
.btn.icon.small { width: 36px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .spin, .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: sp .7s linear infinite; }
.btn kbd, kbd { font: 500 .72rem var(--m); padding: .1rem .4rem; border: 1px solid var(--line2); border-radius: 3px; color: var(--ink2); background: var(--chassis); }
@keyframes sp { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ the console grid */
.console {
  height: 100dvh; display: grid; background: var(--chassis);
  grid-template-columns: 232px minmax(0,1fr) minmax(320px, 24vw);
  grid-template-rows: 56px minmax(0,1fr) 34px;
  grid-template-areas: "bar bar bar" "rail work mon" "tick tick tick";
}
.console.no-mon { grid-template-columns: 232px minmax(0,1fr); grid-template-areas: "bar bar" "rail work" "tick tick"; }
.console.no-mon .monitor { display: none; }
.bar { grid-area: bar; display: flex; align-items: center; gap: 1rem; padding: 0 1rem 0 0; border-bottom: 1px solid var(--line); background: var(--void); min-width: 0; }
.brand { display: flex; align-items: center; gap: .7rem; width: 232px; padding-left: 1rem; text-decoration: none; flex: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand b { font: 800 1.5rem/1 var(--d); letter-spacing: .06em; text-transform: uppercase; }
.brand span { font: 500 .95rem/1 var(--t); color: var(--muted); }
.bar .sp { flex: 1; }
.tally { display: inline-flex; align-items: center; gap: .6rem; font: 500 .82rem var(--m); color: var(--ink2); padding: .35rem .75rem; border: 1px solid var(--line2); border-radius: 3px; background: var(--chassis); box-shadow: var(--inset); white-space: nowrap; }
.tally i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d42; }
.tally.on { color: #fff; border-color: #8f1810; background: #3a0d0a; }
.tally.on i { background: var(--live); box-shadow: 0 0 10px 2px var(--live); animation: tally 1.6s ease-in-out infinite; }
.tally.warm i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
@keyframes tally { 50% { opacity: .45; } }
.who { display: flex; align-items: center; gap: .6rem; color: var(--ink2); font-size: .9rem; min-width: 0; }
.who .nm { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* rail: demos */
.rail { grid-area: rail; border-right: 1px solid var(--line); background: var(--void); padding: 1rem .75rem; display: flex; flex-direction: column; gap: .5rem; overflow-y: auto; min-height: 0; }
.rail h2 { font: 700 .8rem var(--t); color: var(--muted); letter-spacing: .02em; padding: .6rem .5rem .2rem; }
.demo-item { display: grid; grid-template-columns: 12px minmax(0,1fr); gap: .7rem; align-items: center; text-align: left; width: 100%; padding: .7rem .6rem; border: 1px solid transparent; border-radius: 3px; background: none; cursor: pointer; transition: background .15s, border-color .15s; min-height: 52px; }
.demo-item:hover { background: var(--panel); }
.demo-item.on { background: var(--panel); border-color: var(--line2); box-shadow: inset 3px 0 0 var(--accent); }
.demo-item .ini { display: none; font: 800 1.3rem/1 var(--d); }
.demo-item i { width: 9px; height: 9px; border-radius: 50%; background: #34383e; justify-self: center; }
.demo-item.ready i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.demo-item b { display: block; font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-item small { display: block; color: var(--muted); font: 400 .75rem var(--m); margin-top: 2px; }
.sk { background: linear-gradient(90deg, var(--panel), var(--key), var(--panel)); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: 3px; }
.sk.item { height: 52px; } .sk.block { height: 160px; margin: 1.5rem; }
@keyframes sk { to { background-position: -200% 0; } }

/* work area */
.work { grid-area: work; display: flex; flex-direction: column; min-width: 0; min-height: 0; background:
  repeating-linear-gradient(90deg, transparent 0 2px, rgba(255,255,255,.012) 2px 3px), var(--chassis); }
.work:focus { outline: none; }
.head { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.75rem 0; flex-wrap: wrap; }
.head .nm { flex: 1; min-width: 12rem; }
.head input { font: 800 clamp(1.6rem, 2.2vw, 2.4rem)/1.1 var(--d); letter-spacing: .03em; text-transform: uppercase; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; padding: .2rem 0; width: 100%; }
.head input:hover { border-bottom-color: var(--line2); }
.head input:focus { border-bottom-color: var(--accent); outline: none; }
.save { font: 400 .78rem var(--m); color: var(--muted); white-space: nowrap; }
.save[data-s=saved] { color: var(--ok); } .save[data-s=dirty], .save[data-s=saving] { color: var(--accent); } .save[data-s=err] { color: var(--bad); }

.steps-nav { display: flex; gap: 0; padding: 1rem 1.75rem 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); flex: none; }
.steps-nav::-webkit-scrollbar { display: none; }
.tab { position: relative; display: flex; align-items: center; gap: .6rem; padding: .75rem 1.1rem .85rem; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--ink2); cursor: pointer; font-weight: 600; font-size: .95rem; white-space: nowrap; min-height: 48px; margin-bottom: -1px; transition: color .15s, background .15s; }
.tab:hover { color: var(--ink); background: var(--panel); }
.tab .led { width: 8px; height: 8px; border-radius: 50%; background: #34383e; flex: none; }
.tab.done .led { background: var(--accent); box-shadow: 0 0 7px var(--accent); }
.tab .k { font: 500 .72rem var(--m); color: var(--muted); }
.tab[aria-selected=true] { color: var(--ink); border-bottom-color: var(--accent); background: var(--panel); }
.tab.go { margin-left: auto; color: var(--ink); }
.tab.go[aria-selected=true] { border-bottom-color: var(--live); }
.tab.go .led { background: var(--live-dim); box-shadow: inset 0 0 0 1.5px var(--live); }
.tab.go.live .led { background: var(--live); box-shadow: 0 0 10px 2px var(--live); animation: tally 1.6s ease-in-out infinite; }
.tab.go.ready .led { background: var(--live); }

.pane { flex: 1; min-height: 0; overflow-y: auto; padding: 1.5rem 1.75rem 2.5rem; scrollbar-color: var(--line2) transparent; }
.pane-in { animation: paneIn .28s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateX(14px); } }
.pane-head { margin-bottom: 1.25rem; max-width: 62ch; }
.pane-head h2 { font: 800 clamp(2rem, 3.2vw, 3.2rem)/.95 var(--d); letter-spacing: .02em; text-transform: uppercase; }
.pane-head p { margin-top: .5rem; color: var(--ink2); }
.cols { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.blk { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 1.25rem 1.25rem 1.35rem; box-shadow: 0 1px 0 rgba(255,255,255,.03) inset; }
.blk::before, .blk::after { content: ''; position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--accent); pointer-events: none; opacity: .75; }
.blk::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.blk::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.blk > h3 { font: 800 1.25rem/1 var(--d); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem; display: flex; align-items: baseline; gap: .6rem; }
.blk > h3 small { font: 400 .8rem var(--t); letter-spacing: 0; text-transform: none; color: var(--muted); }
.stack > * + * { margin-top: 1rem; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.help { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.help b { color: var(--ink2); }
.actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }

/* fields: recessed */
.lbl { display: block; font-size: .85rem; font-weight: 600; color: var(--ink2); margin-bottom: .35rem; }
input[type=text], input[type=url], input[type=password], textarea, select {
  width: 100%; min-height: 44px; padding: .6rem .8rem; background: var(--void); border: 1px solid var(--line); border-bottom-color: var(--line2);
  border-radius: 3px; box-shadow: var(--inset); color: var(--ink); transition: border-color .15s;
}
:root[data-theme="light"] input[type=text], :root[data-theme="light"] input[type=url], :root[data-theme="light"] input[type=password], :root[data-theme="light"] textarea, :root[data-theme="light"] select { background: #fffdf8; }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
select { appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
:root[data-theme="light"] select { background-color: #fffdf8; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field { min-width: 0; }

.switch, .check { display: flex; align-items: flex-start; gap: .8rem; cursor: pointer; margin-top: 1rem; }
.switch, .check { position: relative; }
.switch input, .check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch .track { flex: none; width: 46px; height: 26px; border-radius: 3px; background: var(--void); box-shadow: var(--inset); border: 1px solid var(--line2); position: relative; margin-top: 1px; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 2px; background: linear-gradient(var(--key-hi), var(--key)); border: 1px solid var(--line2); transition: transform .18s var(--ease), background .18s; }
.switch input:checked + .track { border-color: var(--accent-edge); background: var(--accent-dim); }
.switch input:checked + .track::after { transform: translateX(20px); background: var(--accent); border-color: var(--accent-edge); }
.switch input:focus-visible + .track, .check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check .box { flex: none; width: 22px; height: 22px; border-radius: 3px; background: var(--void); border: 1px solid var(--line2); box-shadow: var(--inset); display: grid; place-items: center; margin-top: 1px; }
.check .box svg { width: 15px; height: 15px; fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.check input:checked + .box { background: var(--accent); border-color: var(--accent-edge); }
.check input:checked + .box svg { opacity: 1; }
.check span:last-child, .switch span:last-child { font-size: .92rem; color: var(--ink2); }

.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem; border: 1px solid var(--line2); border-radius: 3px; font: 500 .76rem var(--m); color: var(--ink2); }
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.chip.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.note { margin-top: 1rem; padding: .75rem .9rem; border-left: 3px solid var(--info); background: color-mix(in srgb, var(--info) 9%, var(--panel)); font-size: .9rem; color: var(--ink2); display: flex; gap: .7rem; align-items: flex-start; }
.note > svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.note.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, var(--panel)); }
.note.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--panel)); }
.note ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.note b { color: var(--ink); }
.note.first { margin-top: 0; }

/* screens list */
.slist { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); margin-top: 1.25rem; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 1rem 1.1rem 1.15rem; position: relative; }
.step.fresh { animation: fresh .9s var(--ease); }
@keyframes fresh { from { box-shadow: 0 0 0 2px var(--accent); } }
.step-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.step-head .pin { font: 800 1.9rem/1 var(--d); color: var(--accent); min-width: 1.6ch; }
.step-head b { font: 800 1.1rem var(--d); letter-spacing: .05em; text-transform: uppercase; flex: 1; }
.add-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.add-row input { flex: 1; min-width: 14rem; }

/* uploads */
.drop { display: grid; justify-items: center; gap: .3rem; text-align: center; padding: 1.4rem 1rem; margin-top: 1rem; border: 1.5px dashed var(--line2); border-radius: 3px; cursor: pointer; color: var(--ink2); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: var(--accent-dim); }
.drop svg { width: 26px; height: 26px; color: var(--accent); }
.drop b { font-weight: 600; color: var(--ink); } .drop small { color: var(--muted); font-size: .82rem; }
.progress { height: 6px; background: var(--void); box-shadow: var(--inset); margin-top: .8rem; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .15s linear; }
.progress.busy i { transform: none; width: 35%; animation: busy 1s ease-in-out infinite alternate; }
@keyframes busy { to { margin-left: 65%; } }
.preview { display: flex; gap: 1rem; align-items: center; }
.face { width: 120px; height: 120px; object-fit: cover; border: 1px solid var(--line2); border-radius: 3px; background: var(--void); flex: none; }
.face-ph { width: 120px; height: 120px; flex: none; display: grid; place-items: center; font: 800 2.6rem var(--d); color: var(--accent); border: 1px dashed var(--line2); background: var(--void); }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.docs li.fresh { animation: fresh .9s var(--ease); }
.docs .fi { font: 500 .72rem var(--m); padding: .25rem .4rem; background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-edge); min-width: 3.4rem; text-align: center; }
.docs .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-line { color: var(--muted); font-size: .9rem; padding: .5rem 0; }
.scope { display: block; width: 100%; height: 56px; background: var(--void); border: 1px solid var(--line); box-shadow: var(--inset); }

/* ------------------------------------------------------------ program monitor */
.monitor { grid-area: mon; border-left: 1px solid var(--line); background: var(--void); padding: 1.1rem 1.1rem 1.4rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.1rem; min-height: 0; }
.mon-title { font: 800 .95rem var(--d); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.screen { position: relative; aspect-ratio: 16/9; background: #050607; border: 1px solid #000; outline: 7px solid #1a1d20; box-shadow: 0 0 0 8px #000, 0 18px 40px -12px rgba(0,0,0,.8), inset 0 0 40px rgba(0,0,0,.8); overflow: hidden; margin: 7px; }
:root[data-theme="light"] .screen { outline-color: #2a2c2f; }
.screen .media { position: absolute; inset: 0; display: grid; place-items: center; }
.screen .media img { width: 100%; height: 100%; object-fit: contain; }
.screen .bars { position: absolute; inset: 0; background:
  linear-gradient(90deg, #b8b4aa 0 14.28%, #c9a227 0 28.56%, #7fa6a3 0 42.84%, #7d9a6a 0 57.12%, #a06fa0 0 71.4%, #b0554c 0 85.68%, #5a6fa0 0);
  filter: saturate(.55) brightness(.55); }
.screen .bars::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(90deg, #0b0c0d 0 18%, #f0ece0 0 36%, #0b0c0d 0 54%, #222 0 72%, #0b0c0d 0); opacity: .9; }
.screen .ai-badge { font: 800 clamp(3rem, 9vw, 7rem)/1 var(--d); color: var(--accent); text-shadow: 0 0 30px rgba(255,176,32,.35); }
.screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.screen .tl { position: absolute; top: 8px; left: 8px; z-index: 3; }
.screen .tc { position: absolute; top: 8px; right: 10px; z-index: 3; font: 500 .75rem var(--m); color: #fff; text-shadow: 0 1px 3px #000; }
.chyron { position: absolute; left: 0; bottom: 12%; z-index: 3; display: flex; align-items: stretch; max-width: 94%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.chyron .tag { background: var(--accent); color: var(--accent-ink); font: 800 clamp(1rem, 1.6vw, 1.5rem) var(--d); padding: .1rem .7rem; display: grid; place-items: center; letter-spacing: .06em; }
.chyron .nm { background: rgba(10,11,12,.9); padding: .3rem .9rem .35rem; min-width: 0; }
.chyron .nm b { display: block; font: 800 clamp(1.05rem, 1.8vw, 1.7rem)/1.05 var(--d); letter-spacing: .03em; text-transform: uppercase; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chyron .nm small { display: block; font: 400 clamp(.7rem, .9vw, .86rem) var(--t); color: #cfcabe; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chyron.wipe { animation: wipe .9s .5s var(--ease) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.mini-tally { font: 700 .72rem var(--m); padding: .2rem .5rem; background: rgba(0,0,0,.7); color: #cfcabe; display: inline-flex; gap: .4rem; align-items: center; border: 1px solid #333; }
.mini-tally i { width: 8px; height: 8px; border-radius: 50%; background: #55585c; }
.mini-tally.on { background: #5a0f0a; color: #fff; border-color: var(--live); }
.mini-tally.on i { background: var(--live); box-shadow: 0 0 8px var(--live); animation: tally 1.6s infinite; }

.pre { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pre li { border-bottom: 1px solid var(--line); }
.pre button { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: .75rem; align-items: center; width: 100%; padding: .6rem .3rem; background: none; border: 0; text-align: left; cursor: pointer; min-height: 40px; color: var(--ink2); font-size: .92rem; }
.pre button:hover { background: var(--panel); color: var(--ink); }
.pre i { width: 8px; height: 8px; border-radius: 50%; background: #34383e; }
.pre li.done i { background: var(--accent); box-shadow: 0 0 7px var(--accent); }
.pre li.done button { color: var(--ink); }
.pre small { font: 400 .7rem var(--m); color: var(--muted); }
.ready-line { font: 800 1.5rem/1 var(--d); letter-spacing: .03em; text-transform: uppercase; }
.ready-line.ok { color: var(--accent); }
.meter { height: 4px; background: var(--line); margin-top: .6rem; }
.meter i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease); }
.disc { display: flex; gap: .7rem; padding: .8rem; border: 1px solid var(--line2); background: var(--panel); font-size: .85rem; color: var(--ink2); }
.disc svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.disc b { color: var(--ink); }

/* ticker: the disclosure is always on screen */
.ticker { grid-area: tick; display: flex; align-items: center; gap: .9rem; padding: 0 1rem; background: var(--accent); color: var(--accent-ink); font-size: .84rem; font-weight: 600; min-width: 0; overflow: hidden; white-space: nowrap; }
.ticker b { font: 800 1rem var(--d); letter-spacing: .08em; background: var(--accent-ink); color: var(--accent); padding: 0 .5rem; }
.ticker span { overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ PRESENT: the control room */
.pane.live-pane { padding: 1.25rem 1.75rem 1.5rem; }
.room { display: grid; gap: 1.25rem; grid-template-columns: 250px minmax(0,1fr) minmax(300px, 380px); height: 100%; min-height: 0; }
.room > section { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.room h3 { font: 800 1.1rem var(--d); letter-spacing: .06em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .6rem; border-bottom: 2px solid var(--line2); margin-bottom: .6rem; }
.room h3 small { font: 400 .75rem var(--m); color: var(--muted); letter-spacing: 0; text-transform: none; }
.rundown { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; }
.rundown li { display: grid; grid-template-columns: 2.2ch minmax(0,1fr); gap: .7rem; padding: .7rem .5rem; border-bottom: 1px solid var(--line); color: var(--muted); position: relative; }
.rundown li b { font: 800 1.3rem/1 var(--d); }
.rundown li span { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rundown li.past { opacity: .6; } .rundown li.past b { color: var(--ok); }
.rundown li.cur { color: var(--ink); background: var(--live-dim); box-shadow: inset 3px 0 0 var(--live); }
.rundown li.cur b { color: var(--live); }
.program { gap: 1rem; }
.program .screen { width: 100%; margin: 7px 0; }
.big-screen { width: min(100%, calc((100dvh - 410px) * 16 / 9)); align-self: center; min-width: 280px; }
.panel-line { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.stat-line { display: flex; gap: 1.5rem; flex-wrap: wrap; font: 400 .8rem var(--m); color: var(--muted); }
.stat-line b { color: var(--ink); font-weight: 500; }
.join { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .9rem; align-items: end; }
.join .lbl { font-size: .82rem; }
.cue { padding: 1rem 1.1rem; border: 1px solid var(--line2); background: var(--panel); }
.cue.live { border-color: #8f1810; background: color-mix(in srgb, var(--live) 8%, var(--panel)); }
.comms { border-left: 1px solid var(--line); padding-left: 1.25rem; }
.feed { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .7rem; padding-right: .4rem; scrollbar-color: var(--line2) transparent; }
.bubble { padding: .6rem .8rem .7rem; border-left: 3px solid var(--line2); background: var(--panel); font-size: .92rem; line-height: 1.45; }
.bubble small { display: block; font: 500 .72rem var(--m); color: var(--muted); margin-bottom: .2rem; }
.bubble.ai { border-color: var(--accent); }
.bubble.ai small { color: var(--accent); }
.bubble.user { background: transparent; border-color: var(--info); }
.bubble.new { animation: msg .4s var(--ease); }
@keyframes msg { from { opacity: 0; transform: translateY(8px); } }
.feed-empty { color: var(--muted); display: flex; gap: .7rem; align-items: center; padding: .5rem 0; font-size: .9rem; }
.preflight { padding: .9rem 1rem; border: 1px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--panel)); }
.preflight ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink2); }
.preflight button { margin-top: .6rem; }

/* ------------------------------------------------------------ empty desk */
.desk { padding: 2rem 1.75rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 2.5rem; align-items: center; height: 100%; }
.desk h1 { font: 800 clamp(3.2rem, 8vw, 8.5rem)/.84 var(--d); text-transform: uppercase; letter-spacing: .01em; }
.desk p { margin-top: 1.2rem; color: var(--ink2); max-width: 46ch; }
.desk .actions { margin-top: 1.6rem; }
.call { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.call li { counter-increment: c; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line2); }
.call li:last-child { border-bottom: 1px solid var(--line2); }
.call li::before { content: counter(c); font: 800 2.6rem/.9 var(--d); color: var(--accent); }
.call b { display: block; font: 800 1.3rem/1.1 var(--d); letter-spacing: .04em; text-transform: uppercase; }
.call span { color: var(--muted); font-size: .92rem; }

/* ------------------------------------------------------------ signed-out landing (one screen) */
.land { height: 100dvh; display: grid; grid-template-rows: 56px minmax(0,1fr) 34px; background: var(--chassis); overflow: hidden; }
.land .bar, .land .ticker { grid-area: auto; }
.land .bar { padding: 0 1rem 0 0; }
.land .brand { width: auto; }
.land main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 5rem); align-items: center; padding: 0 clamp(1.25rem, 5vw, 6rem); min-height: 0; }
.land h1 { font: 800 min(8.6vw, 14.5vh, 9.5rem)/.9 var(--d); text-transform: uppercase; letter-spacing: -.005em; }
.land h1 span { display: block; white-space: nowrap; }
.land h1 .o { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.land .lead { margin-top: clamp(1rem, 3vh, 2rem); font-size: clamp(1rem, 1.4vw, 1.3rem); color: var(--ink2); max-width: 44ch; }
.land .cta { margin-top: clamp(1rem, 3vh, 2rem); display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.land .fine { margin-top: 1.1rem; color: var(--muted); font-size: .86rem; max-width: 52ch; display: flex; gap: .6rem; }
.land .fine svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.land .stagebox { min-width: 0; display: grid; gap: .9rem; align-content: center; }
.land .screen { margin: 7px; }
.land .scope { height: clamp(48px, 9vh, 90px); }
.land .readout { display: flex; justify-content: space-between; font: 400 .78rem var(--m); color: var(--muted); }

/* ------------------------------------------------------------ overlays */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(5,6,7,.72); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 1rem 1rem; }
.overlay.center { align-items: center; padding-top: 1rem; }
.dlg, .pal { width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 30px 80px -10px rgba(0,0,0,.8); animation: pop .18s var(--ease); }
.dlg { padding: 1.5rem; } .dlg h3 { font: 800 1.6rem var(--d); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .5rem; }
.dlg .actions { justify-content: flex-end; margin-top: 1.4rem; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.pal-in { display: flex; align-items: center; gap: .7rem; padding: .3rem 1rem; border-bottom: 1px solid var(--line2); }
.pal-in svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.pal-in input { border: 0; background: none; box-shadow: none; outline: none !important; min-height: 52px; font-size: 1.05rem; }
.pal-list { list-style: none; margin: 0; padding: .4rem; max-height: 50vh; overflow-y: auto; }
.pal-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .75rem; cursor: pointer; border-left: 3px solid transparent; }
.pal-list li[aria-selected=true] { background: var(--key); border-color: var(--accent); }
.pal-list small { font: 400 .72rem var(--m); color: var(--muted); }
.pal-empty { color: var(--muted); cursor: default !important; }
#toast { position: fixed; left: 50%; bottom: 52px; transform: translate(-50%, 20px); z-index: 250; max-width: min(92vw, 520px); background: var(--ink); color: var(--void); padding: .75rem 1.1rem; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); border-left: 5px solid var(--accent); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ responsive */
@media (min-width: 1800px) {
  .console { grid-template-columns: 260px minmax(0,1fr) 440px; } .console.no-mon { grid-template-columns: 260px minmax(0,1fr); } .brand { width: 260px; }
  .room { grid-template-columns: 290px minmax(0,1fr) 440px; gap: 1.75rem; }
  .pane, .head, .steps-nav { padding-left: 2.5rem; padding-right: 2.5rem; }
  .cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
}
@media (max-width: 1280px) {
  .console { grid-template-columns: 200px minmax(0,1fr) 300px; } .console.no-mon { grid-template-columns: 200px minmax(0,1fr); } .brand { width: 200px; } .brand span { display: none; }
  .room { grid-template-columns: 210px minmax(0,1fr) 300px; gap: 1rem; }
  .big-screen { width: min(100%, calc((100dvh - 440px) * 16 / 9)); }
}
@media (max-width: 1060px) {
  .console, .console.no-mon { grid-template-columns: 76px minmax(0,1fr); grid-template-areas: "bar bar" "rail work" "tick tick"; }
  .monitor { display: none; }
  .brand { width: 76px; padding-left: .9rem; } .brand b, .brand span { display: none; }
  .demo-item { grid-template-columns: 1fr; justify-items: center; padding: .5rem .2rem; border-color: var(--line); } .demo-item .tx, .demo-item i { display: none; } .demo-item .ini { display: block; }
  .demo-item.ready .ini { color: var(--accent); }
  .rail h2 { display: none; }
  .room { grid-template-columns: minmax(0,1fr) minmax(280px, 340px); grid-template-areas: "prog comm" "run comm"; height: auto; }
  .room .rd { grid-area: run; } .room .program { grid-area: prog; } .room .comms { grid-area: comm; }
  .big-screen { width: 100%; }
}
@media (max-width: 760px) {
  body[data-view="app"] { height: auto; overflow: visible; }
  body[data-view="hero"] { height: 100dvh; }
  body[data-view="app"] .grain { display: none; }
  .console, .console.no-mon { height: auto; min-height: 100dvh; display: block; }
  .bar { position: sticky; top: 0; z-index: 50; height: 52px; padding-right: .6rem; gap: .5rem; }
  .brand { width: auto; padding-left: .75rem; } .brand b { display: block; font-size: 1.25rem; }
  .who .nm, .bar .pal-btn .tx, .bar .pal-btn kbd { display: none; }
  .who .btn { white-space: nowrap; padding: .3rem .5rem; } .bar .pal-btn { padding: 0; width: 44px; }
  .tally { padding: .3rem .5rem; font-size: .72rem; }
  .rail { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: .6rem .75rem; border-right: 0; border-bottom: 1px solid var(--line); gap: .5rem; align-items: stretch; }
  .rail h2 { display: none; }
  .rail .btn.new { flex: none; }
  .demo-item { flex: none; width: auto; min-width: 9rem; max-width: 12rem; grid-template-columns: 12px minmax(0,1fr); justify-items: stretch; border-color: var(--line); padding: .4rem .7rem; }
  .demo-item .tx, .demo-item i { display: block; } .demo-item .ini { display: none; }
  .work { display: block; }
  .head { padding: .8rem 1rem 0; } .steps-nav { padding: .6rem 1rem 0; position: sticky; top: 52px; z-index: 40; background: var(--chassis); }
  .tab { padding: .6rem .8rem; } .tab .k { display: none; } .tab.go { margin-left: 0; }
  .pane, .pane.live-pane { padding: 1.1rem 1rem 3rem; overflow: visible; }
  .pane-head h2 { font-size: 2.3rem; }
  .room { display: flex; flex-direction: column; height: auto; }
  .room .program { order: 1; } .room .comms { order: 2; border-left: 0; padding-left: 0; } .room .rd { order: 3; }
  .feed { max-height: 50vh; } .rundown { max-height: 40vh; }
  .join { grid-template-columns: 1fr; }
  .desk { grid-template-columns: 1fr; padding: 1.25rem 1rem; gap: 1.5rem; height: auto; }
  .desk h1 { font-size: clamp(3rem, 18vw, 5rem); }
  .ticker { position: sticky; bottom: 0; z-index: 40; font-size: .76rem; }
  .ticker span { white-space: normal; line-height: 1.2; }
  .console { padding-bottom: 0; }
  .land { grid-template-rows: 52px minmax(0,1fr) auto; }
  .land main { grid-template-columns: minmax(0,1fr); gap: 1rem; padding: 0 1.1rem; align-content: center; }
  .land h1 { font-size: min(16.2vw, 11vh); }
  .land .lead { font-size: .95rem; margin-top: .6rem; } .land .cta { margin-top: .8rem; } .land .fine { display: none; }
  .land .stagebox .readout, .land .scope { display: none; }
  .land .screen { margin: 4px; outline-width: 4px; box-shadow: 0 0 0 5px #000; }
  .land .ticker { padding: .3rem .8rem; }
  #toast { bottom: 60px; }
}
@media (max-width: 480px) { .console .brand b { display: none; } .bar .btn.icon { width: 38px; } }
@media (max-height: 640px) and (min-width: 761px) { .land .lead { display: none; } .land .fine { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

html:has(body[data-view="hero"]) { overflow: hidden; }
.screen.live { outline-color: #3a100d; box-shadow: 0 0 0 8px #000, 0 0 0 9px var(--live), 0 0 50px -6px rgba(255,59,48,.55), inset 0 0 40px rgba(0,0,0,.8); }
.bigtc { font: 500 clamp(1.6rem, 2.4vw, 2.4rem)/1 var(--m); letter-spacing: .02em; color: var(--ink); }
.bigtc.off { color: var(--muted); }
#picked { display: grid; gap: .3rem; justify-items: center; }

.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .5rem; }
.pick { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border: 1px solid var(--line2); border-radius: 4px; cursor: pointer; font-size: .88rem; color: var(--ink2); }
.pick:has(input:checked) { border-color: var(--acc, #5eead4); color: var(--ink); background: color-mix(in srgb, var(--acc, #5eead4) 10%, transparent); }
.pick:focus-within { outline: 2px solid var(--acc, #5eead4); outline-offset: 2px; }

/* run page: controls first, smaller picture */
.mid-screen { width: min(100%, 420px); align-self: center; }
.program .screen.mid-screen { margin: 4px 0; }
.msg { display: flex; gap: .6rem; align-items: flex-end; max-width: 92%; }
.msg .av { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font: 800 .72rem var(--d); background: var(--accent); color: #111; }
.msg .bub { padding: .6rem .85rem .7rem; border-radius: 14px 14px 14px 3px; background: var(--panel); border: 1px solid var(--line2); font-size: .92rem; line-height: 1.45; }
.msg .bub small { display: block; font: 500 .7rem var(--m); color: var(--muted); margin-bottom: .15rem; }
.msg.participant { align-self: flex-end; flex-direction: row-reverse; }
.msg.participant .av { background: var(--line2); color: var(--ink2); }
.msg.participant .bub { border-radius: 14px 14px 3px 14px; background: color-mix(in srgb, var(--info) 14%, var(--panel)); }
.msg.new { animation: msg .4s var(--ease); }
.dlg.wide { width: min(640px, 100%); max-height: 86vh; overflow-y: auto; }
.dlg .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 1rem 0; }
.dlg .stats div { border: 1px solid var(--line2); padding: .7rem; text-align: center; }
.dlg .stats b { display: block; font: 800 1.7rem var(--d); color: var(--accent); }
.dlg .stats small { font: 400 .72rem var(--m); color: var(--muted); }
.dlg h4 { font: 700 .85rem var(--m); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1rem 0 .5rem; }
.qa { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.qa li { display: grid; gap: .2rem; padding-left: .8rem; border-left: 3px solid var(--line2); }
.qa li span { color: var(--ink2); font-size: .92rem; } .qa li em { color: var(--warn); font: 500 .75rem var(--m); font-style: normal; }
/* home page TV */
.tv { padding: 18px 18px 26px; border-radius: 26px; background: linear-gradient(160deg, #2a2d33, #131518); border: 1px solid var(--line2); box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08); position: relative; }
.tv::after { content: ''; position: absolute; right: 30px; bottom: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--live, #ff3b30); box-shadow: 0 0 10px var(--live, #ff3b30); }
.tv .screen { border-radius: 10px; overflow: hidden; }
.tv .screen::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px); }
.avatar-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.land .stagebox { align-content: center; }
.links-box { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.links-box textarea { width: 100%; }

.rec-cta { margin-top: .9rem; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.rec-ov { padding: 0; align-items: stretch; }
.rec { width: 100%; background: var(--bg, #0f1113); display: flex; flex-direction: column; min-height: 0; }
.rec-top { display: flex; gap: .8rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.rec-top h3 { font: 800 1.2rem var(--d); text-transform: uppercase; letter-spacing: .04em; margin: 0; } .rec-top .sp { flex: 1; }
.rec-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; padding: 1rem; }
.rec-stage { position: relative; background: #000; border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; min-height: 0; cursor: pointer; outline-offset: 2px; }
.rec-stage:focus { outline: 2px solid var(--accent); }
.rec-stage img { max-width: 100%; max-height: calc(100dvh - 120px); display: block; user-select: none; }
.rec-wait { position: absolute; color: var(--muted); }
.rec-side { overflow-y: auto; display: grid; gap: .6rem; align-content: start; }
.rec-side h4 { font: 700 .75rem var(--m); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .6rem 0 0; }
.rec-log { margin: 0; padding-left: 1.2rem; display: grid; gap: .25rem; font-size: .88rem; color: var(--ink2); } .rec-log .muted { color: var(--muted); list-style: none; margin-left: -1.2rem; }
@media (max-width: 900px) { .rec-body { grid-template-columns: 1fr; } }
.rec-how { padding-left: 1.1rem; display: grid; gap: .5rem; }
.avatar3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: radial-gradient(ellipse at 50% 40%, #1d1a14, #0b0c0d 75%); }
.cue.go { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }

.preview.two { display: grid; grid-template-columns: repeat(2, minmax(0, 190px)) 1fr; gap: 1rem; align-items: start; }
.preview.two figure { margin: 0; display: grid; gap: .4rem; }
.preview.two figcaption { font: 400 .74rem var(--m); color: var(--muted); }
.preview.two .face { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line2); display: block; background: #000; }
.lp-wait { display: grid; place-items: center; align-content: center; gap: .6rem; text-align: center; padding: .5rem; color: var(--muted); }
@media (max-width: 560px) { .preview.two { grid-template-columns: 1fr 1fr; } .preview.two .pv-side { grid-column: 1 / -1; } }
.screen .media video { width: 100%; height: 100%; object-fit: contain; }
.switch.listen { padding: .7rem .9rem; border: 1px solid var(--line2); background: var(--panel); margin: 0; }

.preview.solo { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 1.2rem; align-items: start; }
.preview.solo figure { margin: 0; display: grid; gap: .5rem; }
.preview.solo figcaption { font: 400 .78rem var(--m); color: var(--muted); }
.preview.solo .face { width: 100%; height: auto; max-height: 460px; object-fit: contain; border: 1px solid var(--line2); display: block; background: #000; }
@media (max-width: 560px) { .preview.solo { grid-template-columns: 1fr; } }

/* the thin "working…" bar across the top while the server is busy */
#netbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .15s; }
#netbar.on { opacity: 1; }
#netbar::before { content: ''; position: absolute; inset: 0; width: 40%; background: var(--accent, #ffb020); box-shadow: 0 0 12px var(--accent, #ffb020); animation: netslide 1.1s ease-in-out infinite; }
@keyframes netslide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { #netbar::before { animation: none; width: 100%; opacity: .6; } }
.btn[aria-busy="true"] { cursor: progress; opacity: .85; }

.screen .media { background: #0b0c0d; }
.lp-wait { min-height: 200px; }

.screen .media img, .screen .media video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }

/* past calls */
.calls { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; overflow-y: auto; min-height: 0; }
.call { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: .15rem .8rem; align-items: center; text-align: left; padding: .7rem .85rem; background: var(--panel); border: 1px solid var(--line2); color: var(--ink); cursor: pointer; }
.call:hover, .call:focus-visible { border-color: var(--accent); }
.call b { font: 700 .95rem var(--b, inherit); } .call span { grid-column: 1; font: 400 .78rem var(--m); color: var(--muted); } .call .chip { grid-row: 1 / span 2; grid-column: 2; }
.chat { display: flex; flex-direction: column; gap: .7rem; max-height: 46vh; overflow-y: auto; padding-right: .3rem; }
