/* ---- web/css/base.css ---- */
:root {
  --bg: #0e1116; --panel: #171c24; --panel2: #1f2630; --text: #e8ecf1; --muted: #8b95a5; --line: #2b3441;
  --accent: #4da3ff; --aria: #a78bfa; --good: #34d399; --watch: #fbbf24; --bad: #f87171; --info: #60a5fa; --human: #fb923c;
  --ev0: #8b95a5; --ev1: #60a5fa; --ev2: #fbbf24; --ev3: #34d399;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .4em; }

/* shared components */
.c { margin: 0 0 1em; }
.c-h { font-size: .8em; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .8em; }
.subtitle { color: var(--muted); }
.line { display: flex; gap: .6em; padding: .35em 0; }
.speaker { flex: none; min-width: 4.5em; font-weight: 700; font-size: .75em; letter-spacing: .06em; padding-top: .3em; color: var(--muted); }
.sp-aria .speaker, .sp-aria .say { color: var(--aria); }
.sp-aria .say { background: color-mix(in srgb, var(--aria) 12%, transparent); padding: .1em .4em; border-radius: 6px; }
.sp-mod .speaker { color: var(--accent); }
.c-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9em, 1fr)); gap: .6em; }
.kpi { background: var(--panel); border-radius: 10px; padding: .7em .9em; border-top: 4px solid var(--muted); }
.kpi-label { color: var(--muted); font-size: .8em; } .kpi-value { font-size: 1.8em; font-weight: 700; } .kpi-delta { font-size: .8em; color: var(--muted); }
.band-good { border-top-color: var(--good); } .band-watch { border-top-color: var(--watch); } .band-bad { border-top-color: var(--bad); } .band-info { border-top-color: var(--info); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12em, 1fr)); gap: .6em; }
/* a story in steps: read left to right, arrows between (stacked on a phone) */
.cards.flow { display: flex; align-items: stretch; gap: .5em; } .cards.flow .card { flex: 1 1 0; min-width: 0; }
.flow-arrow { align-self: center; flex: none; font-size: 1.5em; font-weight: 800; color: var(--muted); }
@media (max-width: 600px) { .cards.flow { flex-direction: column; } .flow-arrow { transform: rotate(90deg); } }
/* one line per agent: side by side, three to a row at most */
.agent-list.roster { display: grid; gap: .6em; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13em), 1fr)); } .agent-list.roster .agent { margin: 0; }
.stage-view .agent-list.roster.n5, .stage-view .agent-list.roster.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stage-view .cols .agent-list.roster { grid-template-columns: 1fr; }
.card { background: var(--panel); border-radius: 10px; padding: .7em .9em; border-left: 5px solid var(--muted); }
.card.tone-good { border-left-color: var(--good); } .card.tone-watch { border-left-color: var(--watch); } .card.tone-bad { border-left-color: var(--bad); }
.card.tone-agent { border-left-color: var(--aria); } .card.tone-human { border-left-color: var(--human); } .card.tone-info { border-left-color: var(--info); }
.card-title { font-weight: 700; } .card-body { color: var(--muted); font-size: .9em; }
.tag, .badge { display: inline-block; font-size: .7em; padding: .1em .55em; border-radius: 99px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); margin-left: .4em; vertical-align: middle; }
.badge.red { background: color-mix(in srgb, var(--bad) 25%, transparent); color: var(--bad); border-color: var(--bad); }
.badge.ok { color: var(--good); border-color: var(--good); } .badge.warn { color: var(--watch); border-color: var(--watch); } .badge.live { color: var(--accent); border-color: var(--accent); }
.mode-serbest, .mode-sinirli { color: var(--aria); border-color: var(--aria); } .mode-sablon { color: var(--watch); border-color: var(--watch); }
.agent { background: var(--panel); border-radius: 10px; padding: .7em .9em; margin-bottom: .5em; border-left: 5px solid var(--agent-color, var(--aria)); }
.agent-name { font-weight: 700; color: var(--agent-color, var(--aria)); } .agent-status { margin-left: .6em; color: var(--muted); font-size: .85em; }
.agent-text { margin-top: .25em; }
.agent.thinking .agent-text { color: var(--muted); animation: pulse 1.4s ease-in-out infinite; }
/* the waiting mark in an agent card: its own three dots (pulsing one by one), in the agent's colour, not the whole line fading */
.agent.thinking .agent-text.v-think { --vc: var(--agent-color, var(--aria)); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.record { background: var(--panel); border-radius: 10px; padding: .6em .9em; margin-bottom: .5em; }
.record-title { font-weight: 700; margin-right: .5em; } .record-body { color: var(--muted); font-size: .9em; } .record-owner { font-size: .8em; color: var(--muted); }
.pill { display: inline-block; padding: .05em .6em; border-radius: 99px; font-size: .75em; font-weight: 700; color: #0e1116; }
.ev-0 { background: var(--ev0); } .ev-1 { background: var(--ev1); } .ev-2 { background: var(--ev2); } .ev-3 { background: var(--ev3); }
.ladder { background: var(--panel); border-radius: 10px; padding: .6em .9em; margin-bottom: .5em; border: 2px solid transparent; }
.ladder.exceeded { border-color: var(--bad); }
.ladder-label { margin-bottom: .4em; } .ladder-title { font-weight: 700; } .ladder-owner { color: var(--muted); font-size: .8em; margin-left: .6em; }
.ladder-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.lcell { text-align: center; padding: .35em 0; border-radius: 6px; background: var(--panel2); color: var(--muted); font-size: .8em; font-weight: 700; border: 2px solid transparent; }
.lcell.on { background: var(--accent); color: #0e1116; } .ladder.exceeded .lcell.on { background: var(--bad); }
.lcell.ceiling { border-color: var(--text); }
.chain .step { display: flex; gap: .6em; align-items: baseline; padding: .35em 0; border-bottom: 1px solid var(--line); }
.step-mark { font-weight: 700; width: 1.2em; } .step.ok .step-mark { color: var(--good); } .step.fail .step-mark { color: var(--bad); } .step.pending { opacity: .6; }
.step-label { font-weight: 700; } .step-text { color: var(--muted); }
.tally-row { margin-bottom: .7em; } .tally-label { font-weight: 700; color: var(--row-color, var(--text)); }
.tally-part { position: relative; display: flex; justify-content: space-between; padding: .25em .6em; background: var(--panel); border-radius: 6px; margin-top: 3px; overflow: hidden; }
.tally-fill { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--row-color, var(--accent)) 35%, transparent); }
.tally-part > span { position: relative; } .tally-part.win { outline: 2px solid var(--good); } .tally-note { font-size: .8em; color: var(--muted); }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1em; } .countdown.urgent { color: var(--bad); }
.prog-row { display: flex; align-items: center; gap: .6em; margin: .3em 0; }
.prog-label { flex: 0 0 8em; } .prog-num { flex: none; min-width: 4em; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.prog-bar { flex: 1; height: .9em; background: var(--panel2); border-radius: 99px; overflow: hidden; } .prog-fill { height: 100%; transition: width .4s; background: var(--accent); }
.synthetic { color: var(--muted); font-size: .8em; }
.banner { border-radius: 12px; padding: .8em 1em; color: #0e1116; } .banner-label { font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; display: block; }
.banner-title { font-size: 1.6em; font-weight: 800; }
.cls-green { background: var(--good); } .cls-amber { background: var(--watch); } .cls-red { background: var(--bad); } .cls-pending { background: var(--muted); }
.banner.small { display: flex; gap: .8em; align-items: baseline; } .banner.small .banner-title { font-size: 1em; font-weight: 600; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; } .compare .col { background: var(--panel); border-radius: 10px; padding: .7em .9em; } .compare ul { margin: 0; padding-left: 1.1em; }
.c-qr { text-align: center; } .qr-img { width: min(70vw, 22em); background: #fff; padding: .6em; border-radius: 12px; } .qr-caption { font-size: 1.2em; margin-top: .4em; } .qr-url { color: var(--muted); font-size: .8em; }
.note { background: var(--panel); border-left: 4px solid var(--muted); padding: .6em .9em; border-radius: 8px; }
.note.tone-good { border-left-color: var(--good); } .note.tone-watch { border-left-color: var(--watch); } .note.tone-bad { border-left-color: var(--bad); } .note.tone-agent { border-left-color: var(--aria); }
.c-big { text-align: center; padding: 1em 0; } .big-text { font-size: 3em; font-weight: 800; line-height: 1.1; } .big-sub { color: var(--muted); font-size: 1.1em; margin-top: .3em; }


/* shared buttons and inputs */
button { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: .4em .8em; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.big { padding: .9em 1.6em; font-size: 1.3em; font-weight: 700; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; }
button.danger, .guard.danger { background: color-mix(in srgb, var(--bad) 22%, var(--panel2)); border-color: var(--bad); }
input, select { font: inherit; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: .3em .5em; } input[type=number] { width: 6em; }
.muted { color: var(--muted); } .small { font-size: .82em; } .warn-text { color: var(--watch); }
table.turns { width: 100%; border-collapse: collapse; margin-bottom: .5em; font-size: .85em; } .turns th { text-align: left; color: var(--muted); font-weight: 600; } .turns td { border-top: 1px solid var(--line); padding: .25em .3em; vertical-align: top; }
.events { font-size: .85em; } .ev { display: flex; gap: .6em; padding: .1em 0; } .ev-at, .ev-type { color: var(--muted); flex: none; }
.stage.is-preview { cursor: default; }

/* forecast bands */
.band-row { margin-bottom: .7em; } .band-row.win .band-name { color: var(--good); }
.band-label { display: flex; gap: .7em; align-items: baseline; flex-wrap: wrap; } .band-name { font-weight: 700; } .band-range { font-variant-numeric: tabular-nums; color: var(--muted); } .band-actual-v { font-weight: 800; color: var(--text); }
.band-track { position: relative; height: .8em; background: var(--panel2); border-radius: 99px; margin-top: .25em; }
.band-fill { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: color-mix(in srgb, var(--band-color, var(--accent)) 70%, transparent); }
.band-target { position: absolute; top: -.3em; bottom: -.3em; width: 3px; margin-left: -1px; background: var(--watch); border-radius: 2px; }
.band-actual { position: absolute; top: -.45em; width: 1.1em; height: 1.7em; margin-left: -.55em; border-radius: 4px; background: var(--text); box-shadow: 0 0 0 3px var(--bg); }
.band-note { font-size: .8em; color: var(--muted); } .band-legend { font-size: .75em; color: var(--watch); }

.agent.system { background: transparent; border-left-style: dotted; } .agent.system .agent-name { color: var(--muted); }

/* speakers, council, path, shift, ledger: plain everywhere; the stage gives them their look (stage.css) */
.c-voices { display: flex; flex-direction: column; gap: .5em; }
.v-card { display: flex; flex-direction: column; gap: .5em; }
.voice { display: grid; grid-template-columns: 2em minmax(0, 1fr); column-gap: .6em; align-items: start; }
.pt { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; font-weight: 800; line-height: 1; }
.pt-person { background: var(--vc, var(--muted)); color: #0e1116; }
.pt-agent, .pt-aria { border: 2px solid var(--vc, var(--aria)); color: var(--vc, var(--aria)); background: color-mix(in srgb, var(--vc, var(--aria)) 12%, transparent); }
.v-who { font-size: .75em; font-weight: 700; letter-spacing: .06em; color: var(--vc, var(--muted)); }
.v-sub, .s-sub { font-size: .75em; color: var(--muted); }
.voice.cont .v-mark { visibility: hidden; } .voice.cont .v-who { display: none; }
.v-mode { margin-left: .6em; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.v-mode::before { content: ''; display: inline-block; width: .5em; height: .5em; border-radius: 50%; border: 1px solid currentColor; margin-right: .3em; vertical-align: .05em; }
.v-mode.live::before { background: var(--good); border-color: var(--good); }
.v-think { display: flex; align-items: center; gap: .25em; color: var(--muted); }
.v-think i { width: .35em; height: .35em; border-radius: 50%; background: var(--vc, var(--muted)); animation: think 1.2s ease-in-out infinite; }
.v-think i:nth-child(2) { animation-delay: .15s; } .v-think i:nth-child(3) { animation-delay: .3s; }
.v-think-word { margin-left: .4em; font-size: .8em; }
@keyframes think { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-.15em); } }
.seats { display: grid; gap: .6em; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12em), 1fr)); }
.seat { display: flex; flex-direction: column; gap: .25em; }
.s-top { display: flex; align-items: center; gap: .5em; } .s-name { font-weight: 700; color: var(--vc, var(--aria)); }
.path { display: flex; flex-wrap: wrap; gap: .4em; }
.node { flex: 1 1 8em; min-width: 0; border-top: 3px solid var(--nc, var(--muted)); padding-top: .3em; }
.n-dot { display: none; } .n-label { font-weight: 700; } .n-state { font-size: .8em; color: var(--muted); }
.node.st-ok .n-state { color: var(--good); } .node.st-cond .n-state { color: var(--info); } .node.st-risk .n-state { color: var(--watch); } .node.st-blocked .n-state { color: var(--bad); }
.path-caption, .sh-caption, .lg-note { color: var(--muted); font-size: .85em; margin-top: .3em; }
.sh-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5em; } .sh-to { display: flex; align-items: center; gap: .5em; }
.sh-v { font-size: 1.4em; font-weight: 800; } .sh-from .sh-v { color: var(--muted); text-decoration: line-through; } .sh-l { font-size: .8em; color: var(--muted); }
.lg-row { display: flex; gap: .6em; align-items: baseline; padding: .2em 0; }
.lg-mark { flex: none; width: .6em; height: .6em; border-radius: 50%; background: var(--lc, var(--muted)); align-self: center; }
.lg-label { font-weight: 700; color: var(--lc, var(--text)); } .lg-meta { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

/* who acted (render.ts actorBy): an emoji off stage; the stage draws a HUD mark instead */
.ab-agent::before { content: '🤖 '; } .ab-human::before { content: '👥 '; }

/* v2 vocabulary, plain (ops and phone sheets); the stage gives them their look (stage.css) */
.c-reserve { visibility: hidden; }
.vflow { display: flex; flex-wrap: wrap; gap: .5em; } .vnode { flex: 1 1 8em; min-width: 0; border-top: 3px solid var(--nc, var(--muted)); padding-top: .3em; }
.vf-group, .tl-group, .lv-label, .ba-label, .df-label, .rc-title, .fc-eyebrow, .tl-kicker { font-size: .75em; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.vf-label, .fc-title, .tl-title, .lv-q, .lv-value, .ba-title, .rc-name { font-weight: 700; }
.vf-state { font-size: .85em; font-weight: 700; } .vnode.st-ok .vf-state { color: var(--good); } .vnode.st-cond .vf-state { color: var(--info); } .vnode.st-risk .vf-state { color: var(--watch); } .vnode.st-blocked .vf-state { color: var(--bad); }
.vf-was, .vf-text, .fc-step-t, .rc-field, .lv-opt-d, .lv-meta, .ba-foot, .df-note, .tl-body, .sq-sub, .mt-caption, .vf-caption, .rc-note, .ch-note, .ba-note, .df-caption, .tb-note, .sq-caption { color: var(--muted); font-size: .85em; }
.c-focal { border-left: 4px solid var(--fc, var(--aria)); padding-left: .7em; } .fc-impact { color: var(--watch); }
.fc-trace, .charter, .rc-list, .diffs, .tiles { display: grid; gap: .6em; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10em), 1fr)); }
.fc-step.ok .fc-step-l { color: var(--good); }
.rc-row, .lever, .tile, .ba-side { border-top: 3px solid var(--rcc, var(--tc, var(--line))); padding-top: .3em; min-width: 0; }
.tile.ghost { opacity: .4; }
.phases, .seq { display: flex; flex-wrap: wrap; gap: .3em .5em; align-items: baseline; } .ph { color: var(--muted); } .ph.on { color: var(--text); font-weight: 700; } .ph.done { color: var(--text); }
.lv-opt { margin-top: .3em; } .lv-opt.chosen .lv-opt-t { font-weight: 700; } .lv-gain { color: var(--good); margin-right: .6em; } .lv-cost { color: var(--watch); }
.ba { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .6em; } .ba-arrow { align-self: center; color: var(--muted); }
.ba-side.before .ba-title { text-decoration: line-through; color: var(--muted); }
.diff { border-left: 3px solid var(--info); padding-left: .5em; } .diff.better { border-left-color: var(--good); } .diff.worse { border-left-color: var(--bad); }
.df-before { color: var(--muted); margin-right: .3em; } .df-after { font-weight: 800; font-size: 1.2em; margin-left: .3em; }
.tl-value { font-size: 1.6em; font-weight: 800; } .tl-mark { color: var(--watch); font-weight: 700; font-size: .8em; } .tl-chip { font-weight: 700; margin-right: .4em; }
.sq-text { font-weight: 700; color: var(--sc, var(--text)); } .sq-join { color: var(--muted); }
.c-cue { color: var(--muted); font-style: italic; } .cue-icon { font-style: normal; margin-right: .4em; }
.meter { display: flex; height: .6em; background: var(--panel2); border-radius: 99px; overflow: hidden; } .mt-seg { background: var(--mc, var(--info)); }
.mt-labels { display: flex; flex-wrap: wrap; gap: .2em 1em; font-size: .85em; color: var(--muted); }
.st-table { width: 100%; border-collapse: collapse; } .st-table th, .st-table td { text-align: left; vertical-align: top; padding: .2em .4em; border-top: 1px solid var(--line); } .st-table .strong { font-weight: 700; }
.legend.custom { display: flex; flex-wrap: wrap; gap: .2em 1em; font-size: .85em; color: var(--muted); }

/* the door (web/door.ts): a moderator or stage window that has not got in. One calm page over everything; nothing of the
   show is under it. Sized by the window's short side, so it reads on a projector, a tablet and a phone alike. */
.door { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: #07080a; color: #eef1f6; font: 400 max(15px, 2.2vmin)/1.45 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; overflow: auto; }
.door[hidden] { display: none; }
.door-card { width: min(100%, 34em); display: flex; flex-direction: column; align-items: center; gap: .6em; text-align: center; }
.door-who { margin: 0; font: 700 .75em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: #6c7584; }
.door-title { margin: .2em 0 0; font-size: 1.5em; font-weight: 700; }
.door-code { margin: .1em 0; font: 800 min(5.4em, 22vmin)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; color: #22e07a; font-variant-numeric: tabular-nums; }
.door-code[hidden] { display: none; }
.door-text { margin: 0; color: #a9b1bf; max-width: 28em; }
.door[data-state="rejected"] .door-title, .door[data-state="removed"] .door-title { color: #ff8b97; }
.door[data-state="locked"] .door-title { color: #ffb020; }
.door .door-again { margin-top: .4em; font: inherit; font-weight: 700; padding: .5em 1.2em; border-radius: .5em; border: 0; background: #22e07a; color: #03140a; }
.door-again[hidden], .door-key[hidden] { display: none; }
.door-key { margin-top: 1.6em; display: flex; flex-direction: column; gap: .35em; align-items: center; font-size: .8em; color: #6c7584; width: min(100%, 22em); }
.door-row { display: flex; gap: .4em; width: 100%; }
.door-key input { flex: 1; min-width: 0; font: inherit; padding: .45em .7em; border-radius: .4em; border: 1px solid #323947; background: #0d0f13; color: #eef1f6; }
.door .door-go { font: inherit; font-weight: 700; padding: .45em 1em; border-radius: .4em; border: 1px solid #323947; background: #1b1f27; color: #eef1f6; }
.door-err { color: #ff8b97; min-height: 1.2em; }
.door-err:empty { visibility: hidden; }
body.at-door { overflow: hidden; }

/* ---- web/css/phone.css ---- */
/* ---------- phone: one of five hundred lamps in a dark hall, and the company's own app when it has something to ask
   or to give. Every screen is a fixed layer that fits the viewport; nothing scrolls. Text never sits on raw light:
   each text layer carries its own dark ground (a scrim, a core, a plate), so it keeps 4.5:1 over every mood and
   every group colour. ---------- */
html:has(body.phone) { height: 100%; overflow: hidden; background: #04060a; }
body.phone { --dept: #4da3ff; --lamp: var(--dept); --glow: .1; --fill: 0; --oc: var(--dept); --bg: #04060a;
  --text: #f4f7fb; --muted: #b9c3d0; --line: rgba(255, 255, 255, .12);
  /* the group's colour as text on a dark ground: lifted toward white so even the darkest group colour reads */
  --ink: color-mix(in srgb, var(--dept) 62%, #fff);
  --hud: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; --display: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bar-h: calc(46px + env(safe-area-inset-top)); --hud-h: calc(var(--bar-h) + var(--head-h, 0px)); --gx: max(18px, env(safe-area-inset-left));
  height: 100%; overflow: hidden; overscroll-behavior: none; background: var(--bg); color: var(--text); -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; -webkit-user-select: none; user-select: none; }
body.phone > #app { position: fixed; inset: 0; overflow: hidden; }
body.phone button { -webkit-tap-highlight-color: transparent; }

/* ---------- the lamp: a light layer and an edge glow behind everything (moods: see Mood in types.ts) ---------- */
.p-lamp { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--lamp); opacity: var(--fill); transition: opacity .5s ease, background-color .8s ease; }
.p-lamp::before { content: ''; position: absolute; inset: 0; background: radial-gradient(84% 63% at 50% -20%, var(--lamp), transparent 70%), radial-gradient(98% 56% at 50% 127%, var(--lamp), transparent 70%); opacity: calc(var(--glow) / max(var(--fill), .15)); }
.p-gridbg { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%); }
/* the aura: light at the screen's edges, so the phone lights the hall while the middle stays dark enough to read */
.p-aura { position: fixed; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 calc(30px + 70px * var(--glow)) calc(6px + 26px * var(--glow)) var(--lamp); opacity: calc(var(--aura, .55) * var(--glow)); transition: opacity .5s ease; }
.p-aura.ripple { animation: ripple-a 1.3s var(--wave, 0ms) ease-out both; }
@keyframes ripple-a { 0% { opacity: calc(var(--aura, .55) * var(--glow)); } 18% { opacity: 1; box-shadow: inset 0 0 90px 30px var(--dept); } 100% { opacity: calc(var(--aura, .55) * var(--glow)); } }
body.phone.urgent .p-aura { --lamp: #ff3b3b; animation: urgent 1s ease-in-out infinite; } @keyframes urgent { 50% { opacity: .25; } }
/* static moods: colour and strength of the lamp; moving moods are driven from phone.ts on the server clock */
body.phone[data-mood="dark"] { --glow: .12; --fill: 0; }
body.phone[data-mood="dept"] .p-lamp { animation: breathe 5s ease-in-out infinite; } body.phone[data-mood="dept"] { --glow: .7; --fill: .16; }
body.phone[data-mood="bright"] { --glow: 1; --fill: .1; --aura: 1; }
body.phone[data-mood="bright"][data-tint="amber"] { --lamp: #ffae1a; } body.phone[data-mood="bright"][data-tint="alert"] { --lamp: #ff3b3b; }
body.phone[data-mood="bright"][data-tint="calm"] { --lamp: #1fe0a0; } body.phone[data-mood="bright"][data-tint="warm"] { --lamp: #ffd39a; }
body.phone[data-mood="alert"] { --lamp: #ff2d2d; --glow: .85; --fill: .34; } body.phone[data-mood="calm"] { --lamp: #19d98f; --glow: .75; --fill: .28; }
body.phone[data-mood="amber"] { --lamp: #ffa514; --glow: .8; --fill: .3; } body.phone[data-mood="warm"] { --lamp: #ffd29a; --glow: .6; --fill: .2; }
@keyframes breathe { 50% { filter: brightness(.6); } }
/* the result: the lamp takes the outcome's colour, whatever the scene's light */
body.phone[data-outcome]:not([data-outcome=""]) { --lamp: var(--oc); --glow: .95; --fill: .42; --aura: .9; }

/* ---------- the HUD: the member's identity line, on its own scrim, never a box ---------- */
.p-hud { position: fixed; left: 0; right: 0; top: 0; z-index: 12; height: var(--bar-h); display: flex; align-items: center; gap: 10px; padding: env(safe-area-inset-top) var(--gx) 0;
  font: 800 12px/1 var(--hud); letter-spacing: .2em; text-transform: uppercase; color: #fff; pointer-events: none;
  background: linear-gradient(rgba(4,6,10,.92), rgba(4,6,10,.8) 70%, rgba(4,6,10,0)); }
.h-brand { display: inline-flex; align-items: center; gap: .5em; flex: none; } .h-mark { color: var(--ink); text-shadow: 0 0 10px var(--dept); }
.h-who { display: inline-flex; align-items: center; gap: .55em; min-width: 0; margin-left: auto; letter-spacing: .1em; }
.h-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dept); box-shadow: 0 0 8px var(--dept); }
.h-dept { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.h-id { flex: none; color: #c3ccd8; letter-spacing: .12em; }
.h-signal { flex: none; display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; } .h-signal i { width: 3px; background: var(--good); border-radius: 1px; }
.h-signal i:nth-child(1) { height: 30%; } .h-signal i:nth-child(2) { height: 55%; } .h-signal i:nth-child(3) { height: 80%; } .h-signal i:nth-child(4) { height: 100%; }
.h-signal.off i { background: var(--bad); animation: pulse 1s infinite; }
/* the scenario's header (phoneHeader): one short line under the HUD; its measured height joins --hud-h (phone.ts) */
.p-head { position: fixed; left: 0; right: 0; top: var(--bar-h); z-index: 12; display: none; padding: 3px var(--gx) 7px; pointer-events: none;
  font: 800 15px/1.25 var(--display); letter-spacing: .01em; color: #fff; text-shadow: 0 0 14px var(--dept); overflow-wrap: anywhere;
  background: linear-gradient(rgba(4,6,10,.8), rgba(4,6,10,0)); }
body.phone.has-head .p-head { display: block; }
/* the show's progress: a hairline, a segment per scene */
.p-prog { position: absolute; left: var(--gx); right: var(--gx); bottom: 2px; display: flex; gap: 2px; height: 2px; }
.p-prog i { flex: 1; background: rgba(255,255,255,.14); border-radius: 1px; } .p-prog i.past { background: color-mix(in srgb, var(--dept) 55%, transparent); } .p-prog i.now { background: var(--dept); box-shadow: 0 0 8px var(--dept); }

/* ---------- screens: every one fills the viewport under the HUD ---------- */
.p-screen { position: fixed; inset: 0; z-index: 2; }
/* a screen never cuts its text: fit() steps through the screen's levels and then scales the content down (phone-kit.ts);
   only content that still does not fit at half size may scroll (data-overflow), and the walk reports it */
.p-screen > section { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--hud-h) + 12px) var(--gx) calc(18px + env(safe-area-inset-bottom)); overflow: hidden; }
.p-screen > section[data-overflow="1"] { overflow-y: auto; overscroll-behavior: contain; }

/* the lamp state: the member's mark breathing in the light, one short line, and how to see the badge */
.pl { align-items: center; justify-content: center; justify-content: safe center; text-align: center; gap: 22px; cursor: pointer; }
.pl-mark { position: relative; width: 156px; height: 156px; display: grid; place-items: center; }
.pl-ring { position: absolute; inset: 14px; border-radius: 50%; outline: 1px dashed color-mix(in srgb, var(--dept) 35%, transparent); outline-offset: 13px; border: 1px solid color-mix(in srgb, var(--dept) 60%, transparent); box-shadow: 0 0 46px color-mix(in srgb, var(--dept) 40%, transparent), inset 0 0 30px color-mix(in srgb, var(--dept) 25%, transparent); animation: lampring 5s ease-in-out infinite; }
@keyframes lampring { 50% { opacity: .55; } }
.pl-hex { width: 86px; height: 86px; display: grid; place-items: center; font: 400 34px/1 var(--display); color: #fff; background: color-mix(in srgb, var(--dept) 30%, #05070b); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.pl-line { max-width: 19em; margin: 0; padding: 6px 12px; border-radius: 22px; font: 650 18px/1.38 var(--display); color: #fff; text-wrap: balance;
  background: rgba(4,6,10,.84); box-shadow: 0 0 26px 16px rgba(4,6,10,.84); }

/* the badge (lobby, the first scene, and whenever the scenario sends it): the card Cagkan liked, unchanged, with one plain line */
.pb { justify-content: center; justify-content: safe center; align-items: center; gap: 14px; }
.pb-card { width: 100%; max-width: 26em; }
.pb .c-badge { margin: 0; }
.pb.printed .c-badge { animation: print .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes print { from { opacity: 0; transform: translateY(1.6em) scale(.96); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.pb-line { max-width: 24em; margin: 8px 0 0; padding: 4px 10px; border-radius: 16px; font: 600 16px/1.45 var(--display); color: #eef2f7; text-align: center; text-wrap: balance; background: rgba(4,6,10,.84); box-shadow: 0 0 24px 14px rgba(4,6,10,.84); }
.pb .badge-note { margin: 18px auto 0; max-width: 24em; padding: 4px 10px; border-radius: 16px; font-size: 15px; color: #e6ebf1; text-align: center; background: rgba(4,6,10,.84); box-shadow: 0 0 24px 14px rgba(4,6,10,.84); }
.pb[data-fit="1"] .pb-card { font-size: .92em; } .pb[data-fit="2"] .pb-card { font-size: .84em; } .pb[data-fit="3"] .pb-line { font-size: 14px; }
@keyframes fadein { from { opacity: 0; } } @keyframes fadeout { to { opacity: 0; visibility: hidden; } }

/* ---------- a moment: the whole screen, entering like the decision intro, then settling ---------- */
/* the ground: the group's colour lit behind the words, dark enough to read, and the lamp still breathing at the edges */
.pm { justify-content: center; justify-content: safe center;
  background: radial-gradient(150% 36% at 50% 0%, color-mix(in srgb, var(--dept) 42%, transparent), transparent 78%),
    radial-gradient(120% 70% at 50% 48%, color-mix(in srgb, var(--dept) 24%, rgba(4,6,10,.93)) 0%, color-mix(in srgb, var(--dept) 8%, rgba(4,6,10,.88)) 58%, rgba(4,6,10,.5) 100%); }
.pm-burst { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--dept) 62%, #04060a), color-mix(in srgb, var(--dept) 18%, transparent) 55%, transparent 78%); }
.pm-scan { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .5; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px); }
.pm-scan::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 30%; opacity: 0; background: linear-gradient(transparent, color-mix(in srgb, var(--dept) 45%, transparent), transparent); }
.pm.enter .pm-burst { animation: burst 1.7s var(--wave, 0ms) ease-out both; }
.pm.enter .pm-scan::after { animation: sweep2 1.4s var(--wave, 0ms) ease-in-out both; }
@keyframes burst { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sweep2 { 0% { top: -30%; opacity: 1; } 90% { opacity: 1; } 100% { top: 70%; opacity: 0; } }
.pm-body { position: relative; display: flex; flex-direction: column; gap: 16px; }
.pm.enter .pm-body > * { animation: pmin .55s calc(var(--wave, 0ms) + 180ms + var(--i, 0) * 150ms) cubic-bezier(.2, .8, .2, 1) both; }
.pm.enter .pm-body > .pm-t { animation: glitch .6s calc(var(--wave, 0ms) + 300ms) steps(6) both; }
.pm.enter .pm-body > .pm-rule { animation: rule .6s calc(var(--wave, 0ms) + 650ms) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pmin { from { opacity: 0; transform: translateY(14px); } }
@keyframes rule { from { transform: scaleX(0); } }
.pm-k { display: flex; align-items: center; gap: 10px; font: 800 12px/1.3 var(--hud); letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.pm-k i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dept); box-shadow: 0 0 10px var(--dept); animation: pulse 1.6s infinite; }
.pm-t { margin: 0; padding-bottom: .1em; font: 900 40px/1.06 var(--display); letter-spacing: -.02em; color: #fff; text-wrap: balance; text-shadow: 0 0 34px color-mix(in srgb, var(--dept) 45%, transparent); }
.pm-rule { height: 2px; width: 56px; background: var(--dept); box-shadow: 0 0 12px var(--dept); transform-origin: left; }
.pm-big { display: flex; align-items: baseline; gap: 12px; }
.pm-big-v { padding: 0 .06em .12em 0; font: 900 68px/1.04 var(--display); letter-spacing: -.03em; color: var(--ink); text-shadow: 0 0 30px color-mix(in srgb, var(--dept) 50%, transparent); }
.pm-big-l { font: 800 12px/1.2 var(--hud); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
/* an agent speaks: a coloured mark, a name, a large line; no box */
.pm-agent { margin: 4px 0 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--agent); }
.pm-agent-c { display: flex; align-items: center; gap: 10px; font: 800 12px/1.2 var(--hud); letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.pm-agent-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--agent); box-shadow: 0 0 10px var(--agent); }
.pm-agent-m { font-weight: 700; letter-spacing: .12em; color: #c3ccd8; } .pm-agent-m::before { content: '○ '; }
.pm-agent.live .pm-agent-m { color: #8af5cf; } .pm-agent.live .pm-agent-m::before { content: '● '; }
.pm-agent-t { margin: 10px 0 0; font: 650 22px/1.32 var(--display); color: #fff; text-wrap: pretty; }
.pm-agent-t::before { content: '“'; } .pm-agent-t::after { content: '”'; }
.pm-agent-t.typing::after { content: '▍'; color: var(--agent); animation: pulse .8s infinite; }
.pm-agent-how { margin-top: 10px; font: 700 12px/1.4 var(--hud); letter-spacing: .14em; text-transform: uppercase; color: #c3ccd8; }
.pm-x { margin: 0; max-width: 26em; font: 550 17px/1.48 var(--display); color: #e3e8ef; text-wrap: pretty; }
.pm[data-fit="1"] .pm-t { font-size: 34px; } .pm[data-fit="1"] .pm-body { gap: 12px; }
.pm[data-fit="2"] .pm-t { font-size: 30px; } .pm[data-fit="2"] .pm-agent-t { font-size: 19px; } .pm[data-fit="2"] .pm-big-v { font-size: 54px; }
.pm[data-fit="3"] .pm-t { font-size: 27px; } .pm[data-fit="3"] .pm-agent-t { font-size: 17px; } .pm[data-fit="3"] .pm-x { font-size: 15px; } .pm[data-fit="3"] .pm-body { gap: 9px; }
.pm[data-fit="4"] .pm-t { font-size: 24px; } .pm[data-fit="4"] .pm-x { font-size: 14px; } .pm[data-fit="4"] .pm-big-v { font-size: 44px; }
/* a tap window (phone-taps.ts): the scene's buttons, each press answered at once with a prepared reply */
.tw { justify-content: flex-end; gap: 14px; }
.tw-title { margin: 0 0 auto; padding-top: 6px; font: 900 30px/1.08 var(--display); letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.tw-reply { min-height: 2.6em; margin: 0; font: 700 19px/1.3 var(--display); color: #fff; text-shadow: 0 0 22px color-mix(in srgb, var(--dept) 55%, transparent); }
.tw-reply.pop { animation: pmin .35s cubic-bezier(.2, .8, .2, 1) both; }
.tw-btns { display: grid; gap: 10px; }
.tw-btn { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 18px; border: 0; border-radius: 16px;
  background: color-mix(in srgb, var(--dept) 22%, #0b0f16); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--dept) 70%, transparent); color: #fff; font: 800 20px/1.2 var(--display); text-align: left;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.tw-btn:active { transform: scale(.98); }
.tw-btn.hit { animation: twhit .3s ease-out; }
.tw-n { flex: none; min-width: 1.6em; font: 800 16px/1 var(--hud); text-align: right; color: color-mix(in srgb, var(--dept) 30%, #fff); }
.tw-total { min-height: 1.2em; margin: 0; font: 800 12px/1.2 var(--hud); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); text-align: center; }
.tw.full .tw-btn { opacity: .45; }
@keyframes twhit { 0% { box-shadow: inset 0 0 0 2px var(--dept), 0 0 0 0 color-mix(in srgb, var(--dept) 60%, transparent); } 100% { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--dept) 70%, transparent), 0 0 0 14px transparent; } }
.tw[data-fit="1"] .tw-title { font-size: 26px; } .tw[data-fit="2"] .tw-btn { min-height: 52px; font-size: 18px; } .tw[data-fit="3"] .tw-reply { font-size: 16px; min-height: 0; }
/* 2026-11-21: a button's own cooldown (minGapMs): dimmed, a bar emptying from the right, the seconds left */
.tw-btn.cool, .tw-big.cool { opacity: .55; }
.tw-btn.cool::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--cool, 0) * 100%); border-radius: 0 0 0 16px; background: color-mix(in srgb, var(--dept) 80%, #fff); }
.tw-cd { position: absolute; right: 14px; top: 6px; font: 800 11px/1 var(--hud); letter-spacing: .08em; color: rgba(255,255,255,.8); }
/* 2026-11-21: the big round press button (style "big"), the reply under it */
.tw.has-big { justify-content: flex-start; align-items: stretch; }
.tw.has-big .tw-title { margin: 0; }
/* 2026-11-21: the window's quiet line under the title (a hand-off holder's own, else the department's) */
.tw-note { margin: -4px 0 0; font: 600 16px/1.35 var(--display); color: color-mix(in srgb, var(--dept) 25%, #e9eef5); text-wrap: pretty; }
.tw-note::before { content: ''; display: inline-block; width: 8px; height: 8px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--dept); vertical-align: middle; }
.tw-bigs { display: grid; justify-items: center; gap: 12px; margin: auto 0 0; }
.tw-big { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; width: min(78vw, 46vh, 320px); aspect-ratio: 1; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--dept) 72%, #fff) 0%, var(--dept) 55%, color-mix(in srgb, var(--dept) 60%, #000) 100%);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--dept) 35%, transparent), 0 18px 48px color-mix(in srgb, var(--dept) 45%, transparent); color: #fff;
  font: 900 34px/1.05 var(--display); letter-spacing: .02em; text-align: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.tw-big .tw-text { padding: 0 14%; }
.tw-big .tw-n { min-width: 0; font: 800 18px/1 var(--hud); text-align: center; color: rgba(255,255,255,.85); }
.tw-big:active { transform: scale(.96); }
.tw-big .tw-ring { position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; }
.tw-big.hit .tw-ring { animation: twring .45s ease-out; }
.tw-big.cool .tw-cd { right: 50%; top: auto; bottom: 16%; transform: translateX(50%); }
.tw.has-big .tw-reply { text-align: center; min-height: 2.6em; }
.tw.has-big .tw-btns { margin-top: 4px; }
@keyframes twring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dept) 75%, transparent); } 100% { box-shadow: 0 0 0 26px transparent; } }
@media (prefers-reduced-motion: reduce) { .tw-big.hit .tw-ring { animation: none; } }
/* 2026-11-21: an approval stream (phone-stream.ts): one card at a time on the server's clock, its options, the rule, a mark per card */
.sw { justify-content: flex-start; gap: 14px; }
.sw-head { margin: 0; padding-top: 6px; font: 800 12px/1.2 var(--hud); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.sw-card { position: relative; display: grid; gap: 6px; margin-top: auto; padding: 18px 18px 22px; border-radius: 18px; background: color-mix(in srgb, var(--dept) 16%, #0b0f16); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--dept) 55%, transparent); overflow: hidden; }
.sw-kicker { margin: 0; font: 800 12px/1.2 var(--hud); letter-spacing: .14em; color: color-mix(in srgb, var(--dept) 40%, #fff); }
.sw-title { margin: 0; font: 900 28px/1.1 var(--display); letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.sw-text { margin: 0; font: 600 17px/1.3 var(--display); color: rgba(255,255,255,.85); }
.sw-text:empty { display: none; }
.sw-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(255,255,255,.08); }
.sw-bar > i { display: block; height: 100%; width: 0; background: #fbbf24; }
.sw.waiting .sw-title, .sw.done .sw-title { color: rgba(255,255,255,.8); }
.sw-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.sw-opt { min-height: 76px; padding: 12px; border: 0; border-radius: 16px; color: #fff; font: 900 22px/1.1 var(--display); touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none;
  background: #1f2633; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.sw-opt.tone-good { background: #12432c; box-shadow: inset 0 0 0 2px #2fbf71; }
.sw-opt.tone-bad { background: #4a1616; box-shadow: inset 0 0 0 2px #ef4444; }
.sw-opt:active:not(:disabled) { transform: scale(.97); }
.sw-opt:disabled { opacity: .45; }
.sw-opt.sel { opacity: 1; box-shadow: inset 0 0 0 4px #fff; }
.sw-opt.off { opacity: .25; }
.sw-rule { margin: 0; min-height: 1.3em; font: 700 15px/1.3 var(--display); color: rgba(255,255,255,.8); text-align: center; }
.sw-rule:empty { display: none; }
.sw-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding-bottom: 4px; }
.sw-mark { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.sw-mark.now { background: #fff; }
.sw-mark.sil { background: #fbbf24; }
.sw-mark.ans { background: #9aa4b5; } .sw-mark.ans.o-good { background: #2fbf71; } .sw-mark.ans.o-bad { background: #ef4444; }
.sw[data-fit="1"] .sw-title { font-size: 24px; } .sw[data-fit="2"] .sw-opt { min-height: 60px; font-size: 19px; } .sw[data-fit="3"] .sw-text { font-size: 15px; }
/* the result: the outcome's word, large, in its own light */
.pm.outcome { align-items: center; text-align: center; background: radial-gradient(95% 60% at 50% 47%, rgba(4,6,10,.92), rgba(4,6,10,.8) 55%, rgba(4,6,10,.15) 100%); }
.pm.outcome .pm-body { align-items: center; }
.pm.outcome .pm-burst { background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--oc) 70%, #04060a), transparent 75%); }
.pm.outcome .pm-k i { background: var(--oc); box-shadow: 0 0 10px var(--oc); }
.pm-word { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pm-word-v { padding-bottom: .12em; font: 900 clamp(40px, 16.5vw, 64px)/1.04 var(--display); letter-spacing: .01em; color: var(--oc); text-shadow: 0 0 40px var(--oc), 0 0 80px color-mix(in srgb, var(--oc) 50%, transparent); }
.pm-word-l { font: 800 12px/1.3 var(--hud); letter-spacing: .26em; text-transform: uppercase; color: color-mix(in srgb, var(--oc) 55%, #fff); }
.pm.outcome .pm-t { font-size: 30px; text-shadow: none; }
.pm.outcome[data-fit="1"] .pm-word-v, .pm.outcome[data-fit="2"] .pm-word-v { font-size: 52px; }

/* ---------- the decision: one surface lit from the top in the scene's light, the question, the tiles ---------- */
.p-decide { position: fixed; inset: 0; z-index: 6; display: none; flex-direction: column; padding: calc(var(--hud-h) + 6px) var(--gx) calc(14px + env(safe-area-inset-bottom));
  background: radial-gradient(150% 46% at 50% 0%, color-mix(in srgb, var(--lamp) 46%, #04060a), color-mix(in srgb, var(--lamp) 14%, #04060a) 58%, #04060a 100%); background-color: #04060a; }
.p-decide::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px); }
/* the edges stay lit: an undecided phone is a lit phone, so the hall sees who is still deciding */
.p-decide::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--lamp) 55%, transparent), inset 0 0 26px 2px color-mix(in srgb, var(--lamp) 40%, transparent); }
body.phone.urgent .p-decide::after { box-shadow: inset 0 0 0 3px #ff3b3b, inset 0 0 40px 6px rgba(255, 59, 59, .55); animation: urgent 1s ease-in-out infinite; }
.p-decide.on { display: flex; } .p-decide.held { visibility: hidden; }
.p-decide > * { position: relative; z-index: 1; }
.pd-hud { display: flex; align-items: center; gap: 12px; flex: none; }
.pd-lead { flex: 1; min-width: 0; }
.pd-k { display: flex; align-items: center; gap: 9px; font: 800 12px/1.2 var(--hud); letter-spacing: .28em; text-transform: uppercase; color: #fff; }
.pd-k i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--lamp); animation: pulse 1.2s infinite; }
.pd-of { color: #e2e7ee; letter-spacing: .16em; }
.pd-name { margin-top: 5px; font: 700 15px/1.2 var(--display); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-ring { position: relative; flex: none; width: 56px; height: 56px; } .pd-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: rgba(4,6,10,.7); stroke: rgba(255,255,255,.16); stroke-width: 5; } .ring-fg { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .25s linear; filter: drop-shadow(0 0 4px var(--lamp)); }
.pd-ring-n { position: absolute; inset: 0; display: grid; place-items: center; font: 800 13px var(--hud); letter-spacing: -.02em; color: #fff; }
.pd-ring.urgent .ring-fg { stroke: #ff5a5a; } .pd-ring.urgent .pd-ring-n { color: #ff8a8a; animation: pulse .8s infinite; }
.pd-cancel { flex: none; padding: 9px 12px; border: 0; border-radius: 99px; background: rgba(4,6,10,.75); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); font: 800 12px/1 var(--hud); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
/* the steps: a hairline per question, lit as they are answered, tap to go back */
.pd-steps { display: flex; gap: 6px; margin: 2px 0 -10px; flex: none; }
.pd-seg { position: relative; flex: 1; height: 28px; padding: 0; border: 0; background: none; }
.pd-seg::after { content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.22); transition: background-color .3s, box-shadow .3s; }
.pd-seg.last { flex: .4; } .pd-seg.done::after { background: color-mix(in srgb, var(--dept) 70%, #fff); } .pd-seg.now::after { background: #fff; box-shadow: 0 0 12px #fff, 0 0 4px var(--dept); }
.pd-seg:disabled { opacity: .55; }
.pd-body { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding-top: 14px; }
.pd-q { margin: auto 0 18px; padding-bottom: .08em; font: 850 29px/1.12 var(--display); letter-spacing: -.015em; color: #fff; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.pd-body.enter .pd-q { animation: qin .32s cubic-bezier(.2, .8, .2, 1) both; }
/* r9 (2026-11-07): a line under the question in the author's words, and a set's "Devam" key (BallotField note / multi) */
.pd-note { margin: -10px 0 14px; font: 500 15px/1.35 var(--display); color: rgba(255, 255, 255, .78); }
.pd-multi { display: flex; flex-direction: column; gap: 12px; }
.pd-next { align-self: stretch; min-height: 56px; border: 0; border-radius: 16px; background: var(--dept); color: #05070b; font: 800 18px/1 var(--display); letter-spacing: .01em; }
.pd-body[data-fit="3"] .pd-note, .pd-body[data-fit="4"] .pd-note, .pd-body[data-fit="5"] .pd-note { font-size: 13px; margin: -6px 0 8px; }
/* R2 (2026-11-17): a member's own context above the question (G4: branch, event, team, time left), one line each */
.pd-ctx { display: flex; flex-direction: column; gap: 3px; margin: auto 0 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); box-shadow: inset 3px 0 0 var(--dept); }
.pd-ctx + .pd-q { margin-top: 0; }
/* the member's place tonight (a note line "# …"): the role, then the branch, large (2026-11-19) */
.pd-plate { display: flex; flex-direction: column; gap: 2px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.pd-plate-role { font: 800 13px/1.2 var(--hud); letter-spacing: .16em; text-transform: uppercase; color: var(--dept); filter: brightness(1.35); }
.pd-plate-place { font: 850 34px/1.05 var(--display); letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.pd-ctx.has-plate { padding-top: 11px; }
.pd-ctx-l { display: flex; gap: 8px; align-items: baseline; min-width: 0; font: 600 15px/1.3 var(--display); color: #eef2f6; }
.pd-ctx-k { flex: none; font: 800 11px/1.3 var(--hud); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.pd-ctx-v { min-width: 0; overflow-wrap: anywhere; }
.pd-body[data-fit="2"] .pd-ctx-l, .pd-body[data-fit="3"] .pd-ctx-l { font-size: 14px; }
.pd-body[data-fit="4"] .pd-ctx, .pd-body[data-fit="5"] .pd-ctx, .pd-body[data-fit="6"] .pd-ctx { gap: 1px; padding: 6px 10px; margin-bottom: 6px; }
.pd-body[data-fit="4"] .pd-ctx-l, .pd-body[data-fit="5"] .pd-ctx-l, .pd-body[data-fit="6"] .pd-ctx-l { font-size: 13px; }
/* an optional step's "Geç" (G2) */
.pd-skip { align-self: center; margin-top: 10px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #fff; font: 800 12px/1 var(--hud); letter-spacing: .18em; text-transform: uppercase; }
.pd-body[data-fit="5"] .pd-skip, .pd-body[data-fit="6"] .pd-skip { margin-top: 6px; min-height: 40px; }
/* decision entrances reveal by clip and fade, never by moving the box: a moved box counts as overflow */
@keyframes qin { from { opacity: 0; clip-path: inset(0 100% 0 0); filter: blur(4px); } to { clip-path: inset(0 -2% 0 0); } }
.pd-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: auto; }
/* a tile: a row of type in the scene's light, the letter's hex, a hairline below; it fills only when chosen */
.pd-opts { display: flex; flex-direction: column; margin-bottom: auto; }
.opt-wrap { position: relative; border-top: 1px solid rgba(255,255,255,.16); }
.opt-wrap:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.pd-body.enter .opt-wrap { animation: optin .34s calc(var(--i, 0) * 55ms + 40ms) cubic-bezier(.2, .8, .2, 1) both; }
.pd-body.enter.first .opt-wrap { animation-duration: .5s; animation-delay: calc(var(--i, 0) * 95ms + 200ms); }
@keyframes optin { from { opacity: .1; clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.opt { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: center; width: 100%; min-height: 74px; margin: 0; padding: 12px 12px 12px 4px; text-align: left; border: 0; border-radius: 14px; background: transparent; color: #fff;
  transition: background-color .2s, transform .25s, color .25s, box-shadow .25s; -webkit-user-select: none; user-select: none; }
.has-more .opt { padding-right: 46px; }
.opt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%) no-repeat; background-size: 60% 100%; background-position: -150% 0; }
.opt:active { background: rgba(255,255,255,.07); }
.opt-mark { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font: 800 16px var(--hud); color: #fff; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); background: color-mix(in srgb, var(--dept) 42%, #05070b); transition: all .2s; }
.opt.sel { padding-left: 12px; background: linear-gradient(100deg, color-mix(in srgb, var(--dept) 46%, #05070b), color-mix(in srgb, var(--dept) 24%, #05070b)); box-shadow: inset 0 0 0 1.5px var(--dept), 0 0 36px color-mix(in srgb, var(--dept) 50%, transparent); }
.opt.sel .opt-mark { background: var(--dept); color: #05070b; }
/* lock-on: brackets close in on the chosen tile, a light runs across it, the rest step back but stay readable */
.opt-lock { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(#fff, #fff) top left / 18px 3px, linear-gradient(#fff, #fff) top left / 3px 18px, linear-gradient(#fff, #fff) top right / 18px 3px, linear-gradient(#fff, #fff) top right / 3px 18px,
    linear-gradient(#fff, #fff) bottom left / 18px 3px, linear-gradient(#fff, #fff) bottom left / 3px 18px, linear-gradient(#fff, #fff) bottom right / 18px 3px, linear-gradient(#fff, #fff) bottom right / 3px 18px; background-repeat: no-repeat; }
.opt.sel .opt-lock { opacity: 1; }
.opt.locking .opt-lock { animation: lockon .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes lockon { from { opacity: 0; transform: scale(1.12); } }
.opt.locking::after { animation: shine .5s ease-out; } @keyframes shine { to { background-position: 250% 0; } }
.opt.recede { transform: scale(.97); color: #c9d0d9; } .opt.recede .opt-mark { background: rgba(255,255,255,.12); } .opt.recede .opt-gist { color: #c9d0d9; }
.opt-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.opt-text { font: 800 20px/1.2 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.opt-gist { font: 500 15px/1.35 var(--display); color: #e2e7ee; }
/* one gain and one cost on the tile (G17, U06), each held to two lines; the reader keeps the whole text */
.opt-gc { display: flex; flex-direction: column; gap: 2px; font: 600 14px/1.3 var(--display); }
.opt-gc span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.opt-gc .gain { color: #8ef0c6; } .opt-gc .cost { color: #ffb4bf; }
.opt.recede .opt-gc { opacity: .7; }
.opt-more { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.opt-more span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); font: italic 800 14px/1 Georgia, serif; color: #fff; }
/* fitting a long ballot: spacing first, then the question, then the gist lines (the reader still has them); the
   floors (a 72 px tile, an 18 px label, a 24 px question) hold through level 4, levels 5-6 are for screens smaller than any judged */
.pd-body[data-fit="1"] .pd-q { margin-bottom: 12px; } .pd-body[data-fit="1"] .opt { min-height: 72px; padding-block: 8px; }
.pd-body[data-fit="2"] .pd-q { font-size: 26px; margin-bottom: 10px; } .pd-body[data-fit="2"] .opt { min-height: 72px; padding-block: 7px; } .pd-body[data-fit="2"] .opt-gist { font-size: 14px; }
.pd-body[data-fit="3"] .pd-q { font-size: 24px; margin-bottom: 8px; } .pd-body[data-fit="3"] .opt { min-height: 72px; padding-block: 6px; } .pd-body[data-fit="3"] .opt-gist { display: none; }
/* the gain and cost lines outlast the gist: one line each from level 3, gone only at level 6 */
.pd-body[data-fit="3"] .opt-gc span, .pd-body[data-fit="4"] .opt-gc span, .pd-body[data-fit="5"] .opt-gc span { -webkit-line-clamp: 1; }
.pd-body[data-fit="4"] .opt-gc, .pd-body[data-fit="5"] .opt-gc { font-size: 13px; gap: 0; } .pd-body[data-fit="6"] .opt-gc { display: none; }
.pd-body[data-fit="4"] .pd-q { font-size: 24px; margin-bottom: 8px; } .pd-body[data-fit="4"] .opt { min-height: 72px; padding-block: 6px; } .pd-body[data-fit="4"] .opt-gist { display: none; } .pd-body[data-fit="4"] .opt-text { font-size: 18px; }
.pd-body[data-fit="5"] .pd-q { font-size: 21px; margin-bottom: 6px; } .pd-body[data-fit="5"] .opt { min-height: 56px; padding-block: 4px; } .pd-body[data-fit="5"] .opt-gist { display: none; } .pd-body[data-fit="5"] .opt-text { font-size: 17px; } .pd-body[data-fit="5"] .opt-mark { width: 32px; height: 32px; font-size: 13px; }
.pd-body[data-fit="6"] .pd-q { font-size: 19px; margin-bottom: 4px; } .pd-body[data-fit="6"] .opt { min-height: 44px; padding-block: 2px; } .pd-body[data-fit="6"] .opt-gist { display: none; } .pd-body[data-fit="6"] .opt-text { font-size: 15px; } .pd-body[data-fit="6"] .opt-mark { width: 30px; height: 30px; font-size: 12px; }
/* the whole option, read on demand: its full text and every line of its hint */
/* it replaces the step (the step's parts are out of view while it is open, phone-decide.ts `reading`): the decision's
   own lit ground stays, nothing of the tiles shows through, and no backdrop blur is asked of the GPU */
.pd-read { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; padding: calc(var(--hud-h) + 8px) var(--gx) calc(16px + env(safe-area-inset-bottom)); background: none; animation: fadein .2s ease-out both; }
.p-decide.reading > :not(.pd-read) { visibility: hidden; }
.pdr-in { width: 100%; max-height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 20px 18px 16px; border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--dept) 24%, #0a0e15), #070a0f 70%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--dept) 55%, transparent), 0 -10px 60px rgba(0,0,0,.6); animation: pmin .35s cubic-bezier(.2, .8, .2, 1) both; }
.pdr-k { display: flex; align-items: center; gap: 12px; font: 800 12px/1.35 var(--hud); letter-spacing: .12em; text-transform: uppercase; color: #dfe5ec; }
.pdr-k .opt-mark { background: var(--dept); color: #05070b; }
.pdr-t { padding-bottom: .06em; font: 800 23px/1.25 var(--display); color: #fff; }
.pdr-in .opt-hint { display: flex; flex-direction: column; gap: 6px; font: 500 16px/1.45 var(--display); color: #dfe5ec; }
.opt-hint .gain { color: #8ef0c6; } .opt-hint .cost { color: #ffb4bf; }
.pdr-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 4px; }
.pdr-pick, .pdr-back { min-height: 50px; border: 0; border-radius: 99px; font: 800 13px/1 var(--hud); letter-spacing: .16em; text-transform: uppercase; }
.pdr-pick { background: var(--dept); color: #05070b; } .pdr-back { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.pdr-in[data-fit="1"] .pdr-t { font-size: 20px; } .pdr-in[data-fit="2"] .opt-hint { font-size: 14px; } .pdr-in[data-fit="3"] .pdr-t { font-size: 18px; }
/* the review: the choices assemble into one token, then the seal */
/* E7 (2026-11-19): the review sits high, so the seal lands in the lower-middle of the screen (about 55–65 % down), never
   at the bottom over an Android phone's in-display fingerprint reader; the free room goes under the seal */
.pd-body.review .pd-q { margin-top: min(4vh, 32px); margin-bottom: 14px; }
.token { position: relative; overflow: hidden; flex: none; border-radius: 18px; padding: 14px 16px 12px; background: linear-gradient(150deg, color-mix(in srgb, var(--dept) 26%, #0b0f16), #080b11 68%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--dept) 60%, transparent), 0 16px 50px color-mix(in srgb, var(--dept) 28%, transparent); }
.token::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.12) 48%, transparent 60%) no-repeat; background-size: 100% 100%; background-position: -300% 0; animation: holo 5.5s 1.2s ease-in-out infinite; }
.pd-body.enter .token { animation: tokenin .36s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tokenin { from { opacity: 0; transform: scale(.94); clip-path: inset(0 0 100% 0 round 18px); } to { clip-path: inset(0 0 0 0 round 18px); } }
.token-top { display: flex; justify-content: space-between; gap: 10px; font: 800 12px/1.2 var(--hud); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.token-id { color: #c3ccd8; letter-spacing: .12em; }
.tk-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 9px 0; background: none; border: 0; color: #fff; }
.pd-body.enter .tk-row { animation: tkin .26s calc(var(--i, 0) * 40ms + 40ms) cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes tkin { from { opacity: .15; clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.tk-row .opt-mark { width: 30px; height: 30px; font-size: 12px; background: var(--dept); color: #05070b; }
.tk-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tk-a { font: 800 18px/1.22 var(--display); }
.tk-edit { font: 700 18px/1 var(--display); color: #dfe5ec; }
.token-foot { margin-top: 6px; font: 700 12px/1.3 var(--hud); letter-spacing: .14em; text-transform: uppercase; color: #c3ccd8; }
.token-strip { height: 12px; margin-top: 8px; opacity: .45; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 9px); -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent); mask-image: linear-gradient(90deg, #000 50%, transparent); }
.pd-miss { margin: 16px 0 auto; text-align: center; font: 800 12px var(--hud); letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.pd-body.review[data-fit="1"] .tk-row { padding-block: 6px; } .pd-body.review[data-fit="1"] .seal { width: 92px; height: 92px; }
.pd-body.review[data-fit="2"] .seal-wrap { margin-top: 10px; } .pd-body.review[data-fit="2"] .token-foot { display: none; }
.pd-body.review[data-fit="3"] .tk-a { font-size: 16px; } .pd-body.review[data-fit="3"] .token-strip { display: none; } .pd-body.review[data-fit="3"] .seal { width: 80px; height: 80px; }
/* the seal: a fingerprint pad, the ring fills while the thumb holds */
.seal-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 18px 0 auto; flex: none; }
.pd-body.enter .seal-wrap { animation: pdin .4s .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pdin { from { opacity: 0; } }
.seal { width: 108px; height: 108px; padding: 0; border-radius: 50%; border: 0; background: radial-gradient(circle, color-mix(in srgb, var(--dept) 34%, #05070b), #05070b 70%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--dept) 70%, transparent), 0 0 38px color-mix(in srgb, var(--dept) 50%, transparent); touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; animation: readyglow 1.8s ease-in-out infinite; transition: transform .15s; }
.seal svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.seal-bg { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 4; } .seal-fg { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--dept)); }
.seal-print { transform: rotate(90deg); transform-origin: 50% 50%; fill: none; stroke: color-mix(in srgb, var(--dept) 60%, #fff); stroke-width: 2.4; stroke-linecap: round; opacity: .9; }
.seal.holding { transform: scale(.94); animation: none; box-shadow: 0 0 0 2px var(--dept), 0 0 70px var(--dept); }
.seal.holding .seal-print { stroke: #fff; opacity: 1; }
.seal.sending { opacity: .6; animation: none; }
@keyframes readyglow { 50% { box-shadow: 0 0 0 1px var(--dept), 0 0 60px color-mix(in srgb, var(--dept) 75%, transparent); } }
.seal-l { font: 800 12px/1.2 var(--hud); letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.seal-wrap.nudge .seal-l { animation: nudge .4s; color: #ffd27a; }
@keyframes nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
/* launch: a point of light rises off the top, a ring spreads from the thumb, the screen flashes once */
.p-fx { position: fixed; inset: 0; z-index: 24; pointer-events: none; }
.fx-orb { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 20px 8px var(--dept), 0 0 60px 20px var(--dept), 0 40px 40px -10px var(--dept); }
.fx-wave { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--dept); }
.p-fx.flash { animation: flash 1.1s ease-out; } .p-fx::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, #fff, color-mix(in srgb, var(--dept) 70%, #fff) 50%, var(--dept)); opacity: 0; }
.p-fx.flash::before { animation: flash 1.1s ease-out; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: .85; } 100% { opacity: 0; } }

/* ---------- sealed: the group's lights fill around the member's own, then the phone goes back to being a lamp ---------- */
.p-sealed { position: fixed; inset: 0; z-index: 7; display: none; align-items: center; justify-content: center; padding: calc(var(--hud-h) + 8px) var(--gx) calc(18px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--dept) 26%, #04060a), #04060a 72%); background-color: #04060a; }
.p-sealed.on { display: flex; animation: fadein .3s ease-out both; } .p-sealed.out { animation: fadeout .6s ease forwards; }
.sd { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-height: 100%; }
.sd-k { display: flex; align-items: center; gap: 9px; font: 800 12px/1.2 var(--hud); letter-spacing: .26em; text-transform: uppercase; color: #fff; }
.sd-k i { width: 8px; height: 8px; border-radius: 50%; background: #5ff2b6; box-shadow: 0 0 10px #5ff2b6; }
.sd-core { position: relative; width: min(66vw, 270px, 38vh); aspect-ratio: 1; margin: 6px 0 2px; }
.sd-sky { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--dept) 80%, transparent)); }
.sd-sky circle { fill: rgba(255,255,255,.16); transition: fill .6s var(--d, 0ms); } .sd-sky circle.on { fill: color-mix(in srgb, var(--dept) 75%, #fff); }
.sd-stamp { position: absolute; inset: 33%; display: grid; place-items: center; border-radius: 50%; border: 3px solid #5ff2b6; background: rgba(4,6,10,.85); box-shadow: 0 0 26px rgba(95, 242, 182, .5); }
.sd-check { padding-bottom: .1em; font: 900 34px/1.1 var(--display); color: #5ff2b6; }
.sd.fresh .sd-stamp { animation: stamp .55s .15s cubic-bezier(.2, 1.6, .4, 1) both; }
.sd-t { padding-bottom: .12em; font: 900 34px/1.06 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 0 26px var(--dept); }
.sd.fresh .sd-t { animation: glitch .55s .25s steps(6) both; }
.sd-count { margin-top: 6px; font: 800 16px/1.3 var(--display); color: #fff; } .sd-count b { font-size: 34px; font-weight: 900; line-height: 1.2; } .sd-count span { color: #d4dbe4; }
.sd-undo { margin-top: 16px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .14); color: #fff; font: 800 13px/1 var(--hud); letter-spacing: .16em; text-transform: uppercase; }
.sd-count em { display: block; margin-top: 6px; font: 800 12px/1.2 var(--hud); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.sl-edit { padding: 9px 14px; border-radius: 99px; background: var(--dept); color: #05070b; letter-spacing: .14em; }
/* the one line left on the lamp: sealed, how many in the group, time left, change */
.p-sealline { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 8; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 2 * var(--gx)); padding: 6px 6px 6px 16px; border-radius: 99px;
  border: 0; background: rgba(4,6,10,.88); box-shadow: 0 0 0 1px color-mix(in srgb, var(--dept) 45%, transparent), 0 10px 30px rgba(0,0,0,.5); font: 800 12px/1 var(--hud); letter-spacing: .1em; text-transform: uppercase; color: #fff; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity .5s .5s, transform .5s .5s; }
.p-sealline.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sl-ok { color: #6ff0bf; } .sl-time { color: #d8dee7; }

/* ---------- the story card: the image itself, and the ways to share it ---------- */
.st { align-items: center; gap: 12px; }
.st-hint { display: none; flex: none; margin: 0; padding: 2px 10px; border-radius: 12px; background: #04060a; font: 800 12px/1.3 var(--hud); letter-spacing: .1em; color: #8ef0c6; text-align: center; }
.st-hint.on { display: block; }
.st-frame { flex: 1 1 0; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.st-card { display: block; border-radius: 16px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--dept) 50%, transparent), 0 18px 60px color-mix(in srgb, var(--dept) 30%, transparent), 0 0 90px rgba(0,0,0,.7); }
.st.enter .st-card { animation: print .9s cubic-bezier(.2, .8, .2, 1) both; }
.st-actions { flex: none; width: 100%; max-width: 26em; display: flex; flex-direction: column; gap: 8px; }
.st-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 0; border-radius: 99px; font: 800 12px/1 var(--hud); letter-spacing: .18em; text-transform: uppercase; }
.st-btn:active { transform: scale(.97); }
.st-share { min-height: 52px; background: var(--dept); color: #05070b; box-shadow: 0 0 32px color-mix(in srgb, var(--dept) 50%, transparent); }
.st-g { display: inline-grid; } .st-g svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st-btn:disabled { opacity: .5; }
.st-frame.tall { align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; border-radius: 16px; }
.st-frame.tall .st-card { box-shadow: 0 0 0 1px color-mix(in srgb, var(--dept) 50%, transparent); }
.st-more { flex: none; min-height: 34px; padding: 0 14px; border: 0; background: none; color: #c4ccd8; font: 800 11px/1 var(--hud); letter-spacing: .18em; text-transform: uppercase; }
.st-note { display: none; position: absolute; z-index: 3; inset: calc(var(--hud-h) + 12px) var(--gx) calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; border-radius: 16px; background: rgba(4,6,10,.95); box-shadow: 0 0 0 1px color-mix(in srgb, var(--dept) 40%, transparent); }
.st-note.on { display: block; }
/* a checkpoint card (`share: false`) has no buttons: nothing under the card but the note's link, when there is one */
.st-plain .st-actions { max-width: none; align-items: center; }
/* the board is paper on cork: its own warm edge instead of the department's glow */
.st-board .st-card { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,214,160,.28), 0 18px 60px rgba(0,0,0,.6); }
.st-note p { margin: 0; font: 600 16px/1.5 var(--display); color: #dfe5ec; }

/* ---------- a scenario that sends ordinary panels: laid out flat on a dark sheet, fitted, never scrolled ---------- */
.ps { justify-content: center; justify-content: safe center; background: radial-gradient(130% 80% at 50% 46%, rgba(4,6,10,.9), rgba(4,6,10,.8) 60%, rgba(4,6,10,.4)); }
.ps-in > .c { margin-bottom: .8em; }
body.phone .ps .card, body.phone .ps .agent, body.phone .ps .record, body.phone .ps .note, body.phone .ps .step, body.phone .ps .ladder, body.phone .ps .kpi { background: rgba(4,6,10,.72); border: 0; border-left: 3px solid var(--dept); border-radius: 4px; }
body.phone .ps .card-body, body.phone .ps .record-body { color: #d4dbe4; } body.phone .ps .c-h { color: var(--ink); font: 800 .7em var(--hud); letter-spacing: .2em; }
body.phone .ps .c-title h1 { font-size: 1.5em; line-height: 1.15; }

/* ---------- hiring: the first time a phone joins (unchanged) ---------- */
.p-hire { position: fixed; inset: 0; z-index: 25; display: none; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--dept) 25%, #04060a), #04060a 70%); background-color: #04060a; }
.p-hire.on { display: grid; } .p-hire.out { animation: hireout .8s ease forwards; }
@keyframes hireout { to { opacity: 0; transform: scale(1.04); } }
.hire-box { width: min(86vw, 22em); font-family: var(--hud); }
.hire-org { font-size: .72em; letter-spacing: .24em; color: var(--ink); margin-bottom: 1.4em; }
.hire-step { opacity: 0; font-size: .9em; padding: .35em 0; border-bottom: 1px solid var(--line); animation: hirestep .4s ease forwards; }
.hire-step::before { content: '▸ '; color: var(--dept); } .hire-step::after { content: ' ✓'; color: var(--good); }
@keyframes hirestep { from { opacity: 0; transform: translateX(-.6em); } to { opacity: 1; transform: none; } }
.hire-stamp { opacity: 0; margin-top: 1.4em; text-align: center; font: 900 2.1em system-ui, sans-serif; letter-spacing: .06em; color: var(--ink); text-shadow: 0 0 24px var(--dept); border: 3px solid var(--dept); border-radius: 8px; padding: .25em 0; animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes stamp { from { opacity: 0; transform: scale(1.8) rotate(-8deg); } to { opacity: 1; transform: rotate(-3deg); } }

/* ---------- the decision intro (unchanged: the bar the rest is held to) ---------- */
.p-intro { position: fixed; inset: 0; z-index: 22; display: none; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--dept) 55%, #04060a), #04060a 75%); background-color: #04060a; }
.p-intro.on { display: grid; animation: introin .25s ease-out both; }
@keyframes introin { from { opacity: 0; } }
.intro-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 4px); }
.intro-scan::after { content: ''; position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, color-mix(in srgb, var(--dept) 45%, transparent), transparent); animation: sweep 1.4s ease-in-out both; }
@keyframes sweep { from { top: -30%; } to { top: 100%; } }
.intro-box { position: relative; text-align: center; padding: 0 1.4em; font-family: var(--hud); }
.intro-k { font-size: .76em; letter-spacing: .4em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); animation: hirestep .4s .1s ease both; }
.intro-t { font: 900 3.1em/1 system-ui, sans-serif; letter-spacing: .04em; margin: .25em 0; color: #fff; text-shadow: 0 0 30px var(--dept), 0 0 60px var(--dept); animation: glitch .55s .2s steps(6) both; }
@keyframes glitch { 0% { opacity: 0; transform: translateX(-8px) skewX(12deg); clip-path: inset(40% 0 30% 0); } 40% { opacity: 1; transform: translateX(6px); clip-path: inset(10% 0 60% 0); } 70% { transform: translateX(-3px); clip-path: inset(0 0 0 0); } 100% { opacity: 1; transform: none; clip-path: none; } }
.intro-s { font: 750 1.25em system-ui, sans-serif; color: #fff; animation: hirestep .4s .6s ease both; }
.intro-m { margin-top: .9em; font-size: .78em; letter-spacing: .2em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); animation: hirestep .4s .85s ease both; }

/* ---------- the badge card: a holographic employee card (unchanged) ---------- */
.c-badge { margin-bottom: 1.1em; }
.badge-card { position: relative; overflow: hidden; border-radius: 14px; padding: 1em 1.1em .9em; background: linear-gradient(150deg, color-mix(in srgb, var(--badge) 30%, #0b0f16), #0a0d13 60%); border: 1px solid color-mix(in srgb, var(--badge) 60%, transparent); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 14px 40px color-mix(in srgb, var(--badge) 30%, transparent); }
.badge-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 48%, transparent 60%) no-repeat; background-size: 100% 100%; background-position: -300% 0; animation: holo 5.5s ease-in-out infinite; }
@keyframes holo { 0%, 55% { background-position: -300% 0; } 85%, 100% { background-position: 400% 0; } }
.badge-top { display: flex; justify-content: space-between; align-items: center; font: 800 12px var(--hud); letter-spacing: .22em; }
.badge-org::before { content: '◆ '; color: var(--badge); } .badge-chip { padding: .15em .5em; border: 1px solid color-mix(in srgb, var(--badge) 60%, transparent); border-radius: 3px; color: color-mix(in srgb, var(--badge) 62%, #fff); font-size: 1em; }
.badge-mid { display: flex; align-items: center; gap: .9em; margin: .9em 0 .6em; }
.badge-icon { width: 2.6em; height: 2.6em; display: grid; place-items: center; font-size: 1.5em; background: color-mix(in srgb, var(--badge) 22%, transparent); border: 1px solid var(--badge); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.badge-dept { font-size: 1.55em; font-weight: 800; line-height: 1.05; } .badge-id { font: 700 1em var(--hud); letter-spacing: .14em; color: #b9c3d0; margin-top: .15em; }
.badge-role { font-size: .92em; color: #d2d9e2; line-height: 1.35; }
.badge-strip { height: 16px; margin-top: .8em; opacity: .55; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 9px); -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.badge-rec { margin-top: .8em; border-top: 1px solid color-mix(in srgb, var(--badge) 35%, transparent); padding-top: .5em; position: relative; z-index: 1; }
.badge-rec-t { font: 800 .66em var(--hud); letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--badge) 62%, #fff); margin-bottom: .3em; }
.badge-row { display: grid; grid-template-columns: 7.6em 1fr; gap: .6em; padding: .32em 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: .86em; }
.badge-row-l { font: 700 .74em var(--hud); letter-spacing: .06em; text-transform: uppercase; color: #b9c3d0; padding-top: .2em; } .badge-row-v { line-height: 1.28; }
.badge-stamp { position: absolute; right: .9em; bottom: 1.5em; z-index: 2; font: 900 .9em var(--hud); letter-spacing: .14em; text-transform: uppercase; color: var(--badge); border: 2px solid var(--badge); border-radius: 6px; padding: .2em .5em; transform: rotate(-8deg); opacity: .9; text-shadow: 0 0 10px var(--badge); }
.badge-note { margin-top: .8em; color: #c3ccd8; font-size: .9em; line-height: 1.4; }

/* ---------- small things ---------- */
.p-toast { position: fixed; left: 50%; top: calc(var(--hud-h) + 10px); z-index: 26; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; max-width: calc(100% - 2 * var(--gx)); padding: 10px 16px; border-radius: 99px; background: rgba(4,6,10,.94); box-shadow: 0 0 0 1px color-mix(in srgb, var(--dept) 60%, transparent), 0 0 24px color-mix(in srgb, var(--dept) 35%, transparent); font: 800 12px/1.3 var(--hud); letter-spacing: .12em; text-transform: uppercase; color: #fff; text-align: center; transition: opacity .3s, transform .3s; }
.p-toast.on { opacity: 1; transform: translate(-50%, 0); }
.p-cover { position: fixed; inset: 0; z-index: 20; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .5em; text-align: center; padding: 2em; }
.p-cover.lantern { display: flex; background: radial-gradient(circle at 50% 40%, #fff, #fff6dd 60%, #ffe7b0); background-color: #fff6dd; color: #3a2a10; }
.p-cover.blackout { display: flex; background: #000; gap: .3em; }
/* blackout keeps the hall dark, but the words must read at arm's length: large, mid-grey rather than white, breathing slowly */
.p-cover-hush { font: 800 2.1em/1.1 var(--hud); letter-spacing: .14em; color: rgba(255,255,255,.66); text-transform: uppercase; animation: hush 3.2s ease-in-out infinite; }
.p-cover-up { font: 300 3.2em/1.2 var(--hud); color: rgba(255,255,255,.5); animation: hush 3.2s ease-in-out infinite; }
@keyframes hush { 50% { opacity: .6; } }
.p-cover-t { font-size: 2.2em; font-weight: 900; letter-spacing: -.01em; } .p-cover-s { font-size: 1em; opacity: .8; }
.conn { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .5em; text-align: center; font-size: .85em; background: #333; color: #fff; transform: translateY(100%); transition: transform .3s; } .conn.show { transform: none; }

/* ---------- one visible screen at a time (phone-layers.ts sets data-top from the layers' own classes) ----------
   Every full-screen state below the one on top is out of view, so a covering layer that fails to paint (an unsupported
   colour function, a fade, a dropped GPU layer) shows the lamp's light at most, never another state's text. Spelled out
   without :is() so an older engine does not drop the whole rule. */
body.phone[data-top="decide"] .p-screen, body.phone[data-top="decide"] .p-sealline,
body.phone[data-top="sealed"] .p-screen, body.phone[data-top="sealed"] .p-sealline, body.phone[data-top="sealed"] .p-decide,
body.phone[data-top="cover"] .p-screen, body.phone[data-top="cover"] .p-sealline, body.phone[data-top="cover"] .p-decide, body.phone[data-top="cover"] .p-sealed, body.phone[data-top="cover"] .p-hud, body.phone[data-top="cover"] .p-head,
body.phone[data-top="intro"] .p-screen, body.phone[data-top="intro"] .p-sealline, body.phone[data-top="intro"] .p-decide, body.phone[data-top="intro"] .p-sealed, body.phone[data-top="intro"] .p-cover, body.phone[data-top="intro"] .p-hud, body.phone[data-top="intro"] .p-head,
body.phone[data-top="hire"] .p-screen, body.phone[data-top="hire"] .p-sealline, body.phone[data-top="hire"] .p-decide, body.phone[data-top="hire"] .p-sealed, body.phone[data-top="hire"] .p-cover, body.phone[data-top="hire"] .p-intro, body.phone[data-top="hire"] .p-hud, body.phone[data-top="hire"] .p-head { visibility: hidden; }

/* ---------- the low-power path (body.lite: reduced motion, a small-memory device, or slow frames; phone-layers.ts) ----------
   Same screens and colours; what goes is what costs a weak GPU every frame: full-screen filters and masks, endless
   repaints (holographic sheens, glowing rings), large animated shadows, the launch flash. The lamp still lights. */
body.phone.lite .p-gridbg, body.phone.lite .p-fx, body.phone.lite .pm-scan, body.phone.lite .pm-burst, body.phone.lite .intro-scan { display: none; }
body.phone.lite[data-mood="dept"] .p-lamp { animation: none; }
body.phone.lite .p-aura { box-shadow: inset 0 0 44px 14px var(--lamp); } /* fixed geometry: only its opacity follows the light */
body.phone.lite .p-aura.ripple { animation: ripple-lite 1.3s var(--wave, 0ms) ease-out both; }
@keyframes ripple-lite { 18% { opacity: 1; } }
body.phone.lite .token::after, body.phone.lite .badge-card::after, body.phone.lite .opt::after { animation: none; display: none; }
body.phone.lite .seal { animation: none; } body.phone.lite .pl-ring { animation: none; }
body.phone.lite .ring-fg, body.phone.lite .seal-fg, body.phone.lite .sd-sky { filter: none; }
body.phone.lite .pd-body.enter .pd-q { animation: none; }
body.phone.lite .opt.sel { box-shadow: inset 0 0 0 1.5px var(--dept); }
body.phone.lite .st-card { box-shadow: 0 0 0 1px color-mix(in srgb, var(--dept) 50%, transparent); }

/* while a screen is being fitted, its layout is measured without any entrance offset (phone-kit.ts fit moves each running
   entrance to its last frame and back; `animation: none` here restarted every one of them from its first frame) */
.fitting, .fitting *, .fitting *::before, .fitting *::after { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .pm.enter *, .pm.enter .pm-body > *, .pd-body.enter *, .sd.fresh *, .pl-ring, .pl-ring::after, .token::after, .st-card { animation: none !important; }
}

/* ---------- the gate (phone-gate.ts): a phone that may not join sees one calm line, nothing of the session ---------- */
.p-gate { display: none; }
body.phone[data-gate] .p-gate { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: calc(24px + env(safe-area-inset-top)) var(--gx) calc(24px + env(safe-area-inset-bottom)); background: #04060a; color: #f4f7fb; text-align: center; }
.p-gate-box { max-width: 22em; display: grid; gap: .7em; justify-items: center; }
.p-gate-mark { font: 300 2.4em/1 var(--hud); color: rgba(255,255,255,.4); }
body.phone[data-gate="soon"] .p-gate-mark { animation: hush 3.2s ease-in-out infinite; }
.p-gate-t { margin: 0; font: 700 1.6em/1.25 var(--display); letter-spacing: -.01em; }
.p-gate-s { margin: 0; font: 400 1em/1.45 var(--display); color: #b9c3d0; }
body.phone[data-gate] .p-hud, body.phone[data-gate] .p-head, body.phone[data-gate] .p-screen, body.phone[data-gate] .p-decide, body.phone[data-gate] .p-sealed, body.phone[data-gate] .p-sealline, body.phone[data-gate] .p-cover, body.phone[data-gate] .p-hire, body.phone[data-gate] .p-intro, body.phone[data-gate] .p-aura, body.phone[data-gate] .p-lamp { visibility: hidden; }

/* ---------- Hallederiz R2 (2026-11-17): identity, words, styled moments ---------- */
/* G16/U12: phone text keeps the author's line breaks ("\n": one sentence per line) */
.pm-t, .pm-x, .pl-line, .pb-line, .pn span { white-space: pre-line; }
/* G15: the story's colour on the top bar's brand; the eye keeps its dot and shows its glyph (U10) */
.h-brand.story .h-mark { color: var(--story, var(--ink)); text-shadow: 0 0 10px var(--story, var(--dept)); }
.h-brand.story .h-org { color: var(--story, #fff); letter-spacing: .12em; }
.p-hud:has(.h-brand.story) { border-bottom: 2px solid color-mix(in srgb, var(--story, var(--dept)) 70%, transparent); }
/* while a story plays the bar names the day; the eye keeps its dot and its glyph, its name gives the room (G15) */
.p-hud:has(.h-brand.story) .h-dept { display: none; }
.h-brand.story { flex: 0 1 auto; min-width: 0; } .h-brand.story .h-org { letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-icon { flex: none; font-size: 13px; letter-spacing: 0; text-transform: none; }
/* G14: an incoming call — a ringing circle every phone pulses in step */
.pm-call .pm-body { align-items: center; text-align: center; }
.pc-ring { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #06110c; font: 900 14px/1 var(--hud); letter-spacing: .18em;
  animation: pc-ring 1.2s ease-out infinite; animation-delay: var(--ph, 0ms); margin-bottom: 8px; }
@keyframes pc-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 50% { box-shadow: 0 0 0 26px rgba(52, 211, 153, 0); } }
.pc-k { font: 800 12px/1.3 var(--hud); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
/* G14: notifications dropping in one by one on the server's clock; the frame flashes `flash` times */
.pn-stack { display: flex; flex-direction: column; gap: 10px; }
.pn { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  animation: pn-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)); }
.pn b { display: block; font: 800 11px/1.3 var(--hud); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.pn span { font: 600 16px/1.38 var(--display); color: #fff; }
@keyframes pn-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.pm-notify.flash { box-shadow: inset 0 0 0 3px #ff6b7d, inset 0 0 28px rgba(255, 107, 125, .45); animation: pn-flash 1s ease-in-out var(--flash-n, 1) both; animation-delay: var(--mo-d, 0ms); }
.pm-notify.flash .pm-t { color: #ffd9de; }
@keyframes pn-flash { 50% { box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pc-ring, .pn, .pm-notify.flash { animation: none; } }
.pm-call.enter .pm-body > .pc-ring { animation: pc-ring 1.2s ease-out infinite; animation-delay: var(--ph, 0ms); }

/* ---- a game window's pad (2026-11-22, web/phone-pad.ts): the phone is a controller ---- */
.tw.pad { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pad-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; width: 100%; margin-top: auto; }
.pad-btn { min-height: 38vh; border: 0; border-radius: 18px; background: var(--card, #1b1745); color: var(--fg, #f4efe6);
  font: 800 clamp(20px, 6.5vw, 34px)/1.1 system-ui, sans-serif; letter-spacing: .02em; touch-action: none;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.35); transition: transform .05s, background .05s; }
.pad-btn.on { transform: translateY(3px); background: var(--accent, #e8457c); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); }
.pad-bigs { display: grid; place-items: center; width: 100%; margin: auto 0; }
.pad-big.on { transform: scale(.96); filter: brightness(1.25); }
.pad-text { pointer-events: none; }
/* the game strip above the pad (2026-11-22, Kumandayı Bırak 3B): the package's phone drawing fills it */
.tw.pad.has-view .tw-title { margin-bottom: 8px; font-size: 22px; }
.tw.pad.has-view .tw-note { display: none; }
.pad-view { position: relative; flex: 1 1 auto; min-height: 150px; margin: 0 0 10px; border-radius: 14px; overflow: hidden; background: #0b0b1e; }
.tw.pad.has-view .pad-btn { min-height: 26vh; }

/* ---- web/css/stage.css ---- */
/*
 * The stage: a projector in a dark 500-seat hall. Cinematic, not a dashboard: one large title, then the moment.
 * People and agents speak as speakers (a mark, a name, a large line), never as bordered boxes.
 *
 * Type is a design constant, never shrunk to fit (the scenes are budgeted to fit instead). Sizes are in vh, so a
 * 16:10 or 4:3 projector keeps the same character height relative to the image:
 *   spoken lines and the focal message 1em = 4.6vh · titles 1.62em ≈ 7.5vh · nothing smaller than .66em ≈ 3.0vh.
 * A last row at ~25 m needs about 3vh on a 4 m image (judge rubric S3, 2026-11-05).
 */
body.stage { --ink: #f3f5f9; --soft: #ccd3df; --dim: #a5afc0; --rule: #2e3747; overflow: hidden; background: #06080c; transition: background-color 1.2s ease; }
body.stage[data-mood="alert"] { background: radial-gradient(ellipse at 50% 120%, #3a0b0e, #06080c 70%); }
body.stage[data-mood="calm"] { background: radial-gradient(ellipse at 50% 120%, #08321f, #06080c 70%); }
/* amber and warm are Caner's Amber (#CC7208) as a translucent glow, never a brown literal (his rule C23, R6c.3: hue 10–45°
   with lightness < 30 %, or saturation < 60 % and lightness < 50 %, is brown) */
body.stage[data-mood="amber"] { background: radial-gradient(ellipse at 50% 120%, rgba(204, 114, 8, .24), #06080c 70%); }
body.stage[data-mood="warm"] { background: radial-gradient(ellipse at 50% 120%, rgba(204, 114, 8, .16), #08090c 70%); }
/* only the light desk blacks the stage out; a scene that darkens the hall leaves the stage to carry the moment */
body.stage[data-mood="blackout"][data-manual] #app { visibility: hidden; }

/* the hall's light along the stage's lower edge (stage.ts): one pool per group, behind the text */
.st-spill { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
body.stage #app { z-index: 1; }
.st-pool { position: absolute; bottom: 0; height: 42vh; --o: 0; opacity: calc(var(--o) * var(--drain, 1)); transition: opacity 1s ease; background: radial-gradient(60% 70% at 50% 100%, var(--lamp, var(--c)), transparent 70%); filter: blur(2vh); }
.st-spill[data-mood="dept"] .st-pool { --o: .42; animation: poolbreathe 5s ease-in-out infinite; } .st-spill[data-mood="dept"] .st-pool:nth-child(even) { animation-delay: -2.5s; }
@keyframes poolbreathe { 50% { filter: blur(2vh) brightness(.55); } }
.st-spill[data-mood="bright"] .st-pool { --o: .3; --lamp: #e8edf5; }
.st-spill[data-mood="alert"] .st-pool { --o: .38; --lamp: #ff2d2d; } .st-spill[data-mood="calm"] .st-pool { --o: .34; --lamp: #19d98f; }
.st-spill[data-mood="amber"] .st-pool { --o: .38; --lamp: #ffa514; } .st-spill[data-mood="warm"] .st-pool { --o: .32; --lamp: #ffd29a; }
.st-spill[data-mood="lantern"] .st-pool { --o: .55; --lamp: #fff3d6; }
.st-spill[data-mood="rhythm"] .st-pool, .st-spill[data-mood="converge"] .st-pool, .st-spill[data-mood="sync"] .st-pool, .st-spill[data-mood="unite"] .st-pool { transition: none; opacity: calc(var(--o) * .55 * var(--drain, 1)); }
.st-spark { position: absolute; bottom: 2vh; width: 1.1vh; height: 1.1vh; border-radius: 50%; background: #fff; box-shadow: 0 0 1.2vh .4vh var(--c), 0 0 3vh 1vh var(--c); opacity: 0; animation: rise 2.2s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes rise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 12% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(var(--h) * -1)) scale(.3); } }

/* ---------- the frame: title at the top, the moment centred in what is left ---------- */
body.stage #app { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; }
.stage-view { position: relative; width: 100%; height: 100vh; padding: 5.5vh 4.6vw 5vh; font-size: 4.6vh; line-height: 1.2; overflow: hidden;
  display: flex; flex-direction: column; color: var(--ink); }
.stage-view > .c { margin: 0 0 .85em; flex: none; min-width: 0; }
/* the last part, not the last child: the page dots (.pager) are appended after the parts on paged screens */
.stage-view > .c:not(:has(~ .c)) { margin-bottom: 0; }
.stage-view > .c-title + .c { margin-top: auto; }
.stage-view > .c:not(.c-title):not(:has(~ .c)) { margin-bottom: auto; }
/* room to spare: everything below the title grows together, never past GROW_MAX (stage-fit.ts `grow`) */
.stage-view { font-size: calc(4.6vh * var(--scale, 1) * var(--grow, 1)); } .stage-view > .c-title { font-size: calc(1em / var(--grow, 1)); }
.stage-view.measure { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; }
.stage-view * { overflow-wrap: break-word; }

/* title: a kicker, one large headline, at most a short line under it */
.stage-view .c-title { max-width: 92%; }
.stage-view .eyebrow { font-size: .66em; font-weight: 700; letter-spacing: .12em; color: #9cc8ff; margin-bottom: .35em; }
.stage-view h1 { font-size: 1.62em; line-height: 1.04; letter-spacing: -.022em; font-weight: 800; margin: 0; text-wrap: balance; }
.stage-view .c-title.compact h1 { font-size: 1.1em; line-height: 1.1; color: var(--soft); }
.stage-view .subtitle { font-size: .72em; color: var(--soft); margin-top: .45em; line-height: 1.25; text-wrap: pretty; }
.stage-view .c-h { font-size: .66em; font-weight: 700; letter-spacing: .1em; color: var(--dim); margin: 0 0 .55em; text-transform: none; }

/* ---------- speakers ---------- */
.stage-view .c-voices { gap: .6em; }
.stage-view .voice { grid-template-columns: 1.55em minmax(0, 1fr); column-gap: .6em; }
.stage-view .voice.cont { margin-top: -.35em; } .stage-view .voice.cont .v-sub { display: none; }
.stage-view .pt { width: 1.55em; height: 1.55em; font-size: 1em; transition: box-shadow .4s ease, transform .4s ease, opacity .4s ease; }
.stage-view .v-mark { margin-top: .1em; }
.stage-view .pt-person { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--vc) 65%, #fff), var(--vc) 72%); color: #10131a; font-size: .8em; width: 1.95em; height: 1.95em; }
.stage-view .pt-agent, .stage-view .pt-aria { border: .1em solid var(--vc); background: radial-gradient(circle, color-mix(in srgb, var(--vc) 22%, #06080c), #06080c 75%); color: var(--vc); box-shadow: 0 0 .7em color-mix(in srgb, var(--vc) 38%, transparent); font-size: .8em; width: 1.95em; height: 1.95em; }
.stage-view .v-who { font-size: .66em; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .9em; margin-bottom: .1em; }
.stage-view .v-sub { font-size: .66em; color: var(--soft); margin: 0 0 .15em; }
.stage-view .v-line { font-size: 1em; font-weight: 500; color: var(--ink); line-height: 1.18; text-wrap: pretty; }
.stage-view .as-person .v-line:not(.typing)::before { content: '“'; margin-left: -.4em; color: var(--vc); }
.stage-view .as-person .v-line:not(.typing)::after { content: '”'; color: var(--vc); }
.stage-view .as-aria .v-line { color: #e6dfff; }
/* the agent's real stage mode, quietly: a dot and a word, never a pill on every line */
.stage-view .v-mode { margin: 0; font-size: 1em; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--dim); white-space: nowrap; }
.stage-view .v-mode.live { color: #8ee8c0; }
.stage-view .v-mode.live::before { box-shadow: 0 0 .5em #34d399; }
/* a turn still running: its place is already there, breathing */
.stage-view .v-think { height: 1.18em; gap: .3em; }
.stage-view .v-think i { width: .26em; height: .26em; }
.stage-view .v-think-word { font-size: .66em; letter-spacing: .08em; color: var(--dim); }
.stage-view .thinking .pt, .stage-view .seat.thinking .s-mark { animation: halo 1.8s ease-in-out infinite; }
@keyframes halo { 50% { box-shadow: 0 0 0 .12em color-mix(in srgb, var(--vc) 35%, transparent), 0 0 1.4em color-mix(in srgb, var(--vc) 55%, transparent); } }
.stage-view .voice.speaking .pt { transform: scale(1.06); box-shadow: 0 0 0 .07em var(--vc), 0 0 1.4em .1em color-mix(in srgb, var(--vc) 60%, transparent); }

/* ---------- council: the agents seated in a row; their lines are spoken in turn beneath ---------- */
.stage-view .seats { display: grid; gap: .5em; grid-template-columns: repeat(var(--seats, 5), minmax(0, 1fr)); align-items: start; margin-bottom: .6em; }
.stage-view .seats.n2 { --seats: 2; } .stage-view .seats.n3 { --seats: 3; } .stage-view .seats.n4 { --seats: 4; } .stage-view .seats.n6 { --seats: 6; }
.stage-view .seat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; transition: opacity .5s ease; }
.stage-view .s-mark { width: 1.35em; height: 1.35em; font-size: 1em; margin-bottom: .15em; }
.stage-view .s-name { font-size: .66em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vc); line-height: 1.2; }
.stage-view .s-sub { font-size: .66em; color: var(--soft); line-height: 1.2; margin-top: .1em; }
.stage-view .seat .v-mode { font-size: .66em; margin-top: .15em; }
.stage-view .seat.hush .s-mark { opacity: .4; box-shadow: none; }
.stage-view .seat.speaking .s-mark { transform: scale(1.08); box-shadow: 0 0 0 .07em var(--vc), 0 0 1.6em .15em color-mix(in srgb, var(--vc) 60%, transparent); }
.stage-view .council-lines { display: flex; flex-direction: column; gap: .22em; }
/* the council hangs from the title: a line that arrives late or wraps grows downward and never moves the seats */
.stage-view > .c-title + .c-council { margin-top: 3vh; } .stage-view > .c-council:not(:has(~ .c)) { margin-bottom: auto; }
.stage-view .cl { display: grid; grid-template-columns: .9em minmax(0, 1fr); column-gap: .45em; align-items: start; min-height: 1.12em; }
.stage-view .cl-mark { color: var(--vc); font-size: .8em; line-height: 1.4; text-align: center; text-shadow: 0 0 .6em var(--vc); }
.stage-view .cl-line { font-size: 1em; font-weight: 500; line-height: 1.12; text-wrap: pretty; }
.stage-view .council-mode { margin-top: .2em; font-size: .66em; text-align: right; }
/* The council's lines run under the seated row on every screen. With lines of nine words or fewer this reads faster
   than five narrow columns, which broke a line into six or seven one-word rows (judge, final review p-2). */
@media (min-aspect-ratio: 17/10) { .stage-view .c-council .s-mark { width: 1.6em; height: 1.6em; } .stage-view .council-lines { gap: .35em; } }

/* ---------- a chain read left to right: nodes on one line ---------- */
.stage-view .path { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; position: relative; }
.stage-view .path::before { content: ''; position: absolute; top: .78em; left: 8%; right: 8%; height: .06em; background: linear-gradient(90deg, transparent, var(--rule) 10%, var(--rule) 90%, transparent); }
.stage-view .node { border: 0; padding: 0 .25em; display: flex; flex-direction: column; align-items: center; text-align: center; --sc: var(--dim); }
.stage-view .node.st-open { --sc: var(--nc, var(--soft)); } .stage-view .node.st-ok { --sc: #34d399; } .stage-view .node.st-cond { --sc: #6cb4ff; } .stage-view .node.st-risk { --sc: #fbbf24; } .stage-view .node.st-blocked { --sc: #f87171; }
.stage-view .n-dot { display: grid; place-items: center; position: relative; z-index: 1; width: 1.56em; height: 1.56em; border-radius: 50%; font-size: 1em; font-weight: 800; color: var(--sc);
  background: radial-gradient(circle, color-mix(in srgb, var(--sc) 18%, #06080c), #06080c 70%); border: .08em solid var(--nc, var(--sc)); box-shadow: 0 0 1em color-mix(in srgb, var(--sc) 40%, transparent); }
.stage-view .n-label { margin-top: .35em; font-size: .66em; font-weight: 700; line-height: 1.18; text-wrap: balance; }
.stage-view .n-state { margin-top: .2em; font-size: .66em; font-weight: 600; color: var(--sc); line-height: 1.2; }
.stage-view .n-state:empty { display: none; }
.stage-view .path-caption { font-size: .72em; color: var(--soft); text-align: center; margin-top: .7em; }
/* three parts (the levers, the outcome's three promises): three large words */
.stage-view .path.n3 .n-label { font-size: 1em; font-weight: 800; letter-spacing: -.01em; }
.stage-view .path.n3 .n-state { color: var(--soft); font-weight: 500; font-size: .72em; max-width: 12em; }
.stage-view .path.n3 .node.st-open .n-dot { color: var(--soft); }

/* ---------- a number the story corrects ---------- */
.stage-view .sh-row { gap: .3em .6em; flex-wrap: wrap; align-items: center; }
.stage-view .sh-from .sh-v { font-size: 1.05em; color: var(--dim); text-decoration-thickness: .07em; text-decoration-color: #f87171; }
.stage-view .sh-v { font-size: 1.45em; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.stage-view .sh-l { font-size: .66em; color: var(--soft); margin-top: .35em; }
.stage-view .sh-from .sh-l { color: var(--dim); }
.stage-view .sh-arrow { font-size: 1.2em; color: #6cb4ff; margin: 0 .1em; }
.stage-view .sh-to { gap: .5em; } .stage-view .sh-plus { font-size: 1.1em; color: var(--dim); font-weight: 300; }
.stage-view .sh-caption { font-size: .72em; color: var(--soft); margin-top: .6em; }

/* ---------- a short ledger: rows share their columns ---------- */
.stage-view .c-ledger { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr) auto; column-gap: .55em; }
.stage-view .c-ledger > .c-h, .stage-view .c-ledger > .lg-note { grid-column: 1 / -1; }
.stage-view .lg-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; padding: .22em 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.stage-view .lg-row:last-of-type { border-bottom: 0; }
.stage-view .lg-mark { width: .36em; height: .36em; align-self: center; box-shadow: 0 0 .6em var(--lc, transparent); }
.stage-view .lg-mark.glyph { width: auto; height: auto; background: none; box-shadow: none; font-size: .8em; font-weight: 800; color: var(--soft); align-self: baseline; }
.stage-view .tone-good > .lg-mark.glyph { color: #34d399; } .stage-view .tone-watch > .lg-mark.glyph { color: #fbbf24; } .stage-view .tone-bad > .lg-mark.glyph { color: #f87171; }
.stage-view .lg-label { font-size: .66em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stage-view .lg-value { font-size: .8em; font-weight: 600; line-height: 1.2; }
.stage-view .lg-meta { font-size: .66em; color: var(--soft); white-space: nowrap; }
.stage-view .lg-row.tone-good .lg-value { color: #8ee8c0; } .stage-view .lg-row.tone-bad .lg-value { color: #ffa3a3; } .stage-view .lg-row.tone-watch .lg-value { color: #ffd479; }
.stage-view .lg-note { font-size: .66em; color: var(--dim); margin-top: .35em; }

/* ---------- hero numbers ---------- */
.stage-view .c-kpis { display: flex; flex-wrap: wrap; gap: .4em 1.6em; }
.stage-view .kpi { background: none; border: 0; border-radius: 0; padding: 0 0 0 .45em; border-left: .08em solid var(--kc, var(--rule)); display: flex; flex-direction: column; }
.stage-view .kpi.band-good { --kc: #34d399; } .stage-view .kpi.band-watch { --kc: #fbbf24; } .stage-view .kpi.band-bad { --kc: #f87171; } .stage-view .kpi.band-info { --kc: #6cb4ff; }
.stage-view .kpi-value { font-size: 1.5em; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.stage-view .kpi-label { order: 2; font-size: .66em; color: var(--soft); margin-top: .3em; }
.stage-view .c-kpis:has(> .kpi:nth-child(4)) { gap: .4em 1em; } .stage-view .c-kpis:has(> .kpi:nth-child(4)) .kpi-value { font-size: 1.15em; }
.stage-view .kpi-delta { font-size: .66em; color: var(--dim); order: 3; }

/* ---------- votes coming in: one strip, the countdown large ---------- */
.stage-view .c-progress { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .4em .9em; }
.stage-view .progress-head { order: 9; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.stage-view .progress-head .c-h { margin: 0 0 .2em; font-size: max(.66em, calc(3vh * var(--scale, 1))); }
.stage-view .countdown { font-size: 1.6em; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stage-view .prog-row { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: .2em .4em; margin: 0; align-items: center; }
.stage-view .prog-label { grid-column: 1 / -1; font-size: max(.66em, calc(3vh * var(--scale, 1))); color: var(--soft); flex: none; line-height: 1.15; }
.stage-view .prog-num { grid-column: 2; grid-row: 2; font-size: max(.72em, calc(3vh * var(--scale, 1))); color: var(--ink); min-width: 0; font-weight: 700; text-align: left; }
.stage-view .prog-bar { grid-column: 1; grid-row: 2; height: .24em; background: rgba(255, 255, 255, .08); }
.stage-view .prog-fill { box-shadow: 0 0 .5em currentColor; }
/* a rehearsal's "sentetik oylar dahil" line hangs under the bar and takes no room: it appears with the first bot vote,
   and as a row of its own it re-centred the screen, so every ballot's cards jumped up mid-vote (motion probe 2026-11-19) */
.stage-view .c-progress { position: relative; }
.stage-view .synthetic { position: absolute; left: 0; top: 100%; margin-top: .25em; white-space: nowrap; font-size: .72em; font-weight: 700; color: #ffd479; }
/* the lobby and a QR scene: the code on the left, everything else beside it */
.stage-view:has(> .c-qr) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 5vh; align-content: center; }
.stage-view:has(> .c-qr) > .c { grid-column: 2; margin: 0 0 .6em; } .stage-view:has(> .c-qr) > .c-qr { grid-column: 1; grid-row: 1 / span 12; align-self: center; margin: 0; }
.stage-view .c-qr { max-width: 62vh; }
/* the doors-open poster (lobby.poster, 2026-11-25): the picture alone, edge to edge; a screen of another shape letterboxes in black */
.stage-view > .c-poster { position: absolute; inset: 0; z-index: 1; margin: 0; background: #000; }
.stage-view > .c-poster .poster-img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* the doors-open stage as the code alone (lobby.qrOnly, 2026-11-24): centred, as large as the height allows */
.stage-view:has(> .c-qr:only-child) { display: flex; align-items: center; justify-content: center; }
.stage-view > .c-qr:only-child { max-width: none; } .stage-view > .c-qr:only-child .qr-img { width: auto; height: 72vh; max-width: 90vw; padding: 2.4vh; border-radius: 2.4vh; }
.stage-view .qr-img { width: auto; height: 56vh; border-radius: .3em; box-shadow: 0 0 4em rgba(140, 180, 255, .15); } .stage-view .qr-caption { font-size: .72em; margin-top: .5em; } .stage-view .qr-url { font-size: .66em; color: var(--dim); }
.stage-view:has(> .c-title:first-child + .c-qr:last-child) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.5vh; }
.stage-view > .c-title:first-child:has(+ .c-qr:last-child) { margin: 0; text-align: center; } .stage-view > .c-title:first-child:has(+ .c-qr:last-child) h1 { font-size: 11vh; line-height: 1; letter-spacing: -.02em; }
.stage-view > .c-title:first-child + .c-qr:last-child { max-width: none; margin: 0; } .stage-view > .c-title:first-child + .c-qr:last-child .qr-img { width: auto; height: 60vh; max-width: 90vw; padding: 2.4vh; border-radius: 2.4vh; }
.stage-view:has(> .c-qr) .c-progress { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: .25em; }
.stage-view:has(> .c-qr) .progress-head { order: -1; margin: 0; align-items: flex-start; }
.stage-view:has(> .c-qr) .prog-row { grid-template-columns: 7.5em 1fr auto; grid-template-rows: auto; align-items: center; }
.stage-view:has(> .c-qr) .prog-label { grid-column: 1; grid-row: 1; } .stage-view:has(> .c-qr) .prog-bar { grid-column: 2; grid-row: 1; height: .18em; } .stage-view:has(> .c-qr) .prog-num { grid-column: 3; grid-row: 1; font-size: .66em; }
.stage-view:has(> .c-qr) .c-big { text-align: left; } .stage-view:has(> .c-qr) .big-text { font-size: 2em; }

/* ---------- outcome: a coloured stamp, not a box ---------- */
.stage-view .c-outcome .banner { background: none; color: var(--ink); border-radius: 0; padding: .05em 0 .1em .55em; border-left: .12em solid var(--oc); box-shadow: -1.2em 0 2.2em -1.4em var(--oc); }
.stage-view .banner.cls-green { --oc: #34d399; } .stage-view .banner.cls-amber { --oc: #fbbf24; } .stage-view .banner.cls-red { --oc: #f87171; } .stage-view .banner.cls-pending { --oc: var(--dim); }
.stage-view .banner-label { color: var(--oc); font-size: .66em; letter-spacing: .1em; margin-bottom: .2em; }
.stage-view .banner-title { font-size: 1.35em; line-height: 1.05; letter-spacing: -.015em; }

/* ---------- statements and footnotes ---------- */
.stage-view .note { background: none; border-radius: 0; border-left: .08em solid var(--nt, var(--rule)); padding: .02em 0 .02em .5em; font-size: .8em; line-height: 1.25; color: #e3e8ef; text-wrap: pretty; }
.stage-view .note.tone-good { --nt: #34d399; } .stage-view .note.tone-watch { --nt: #fbbf24; } .stage-view .note.tone-bad { --nt: #f87171; } .stage-view .note.tone-agent { --nt: var(--aria); } .stage-view .note.tone-info { --nt: #6cb4ff; } .stage-view .note.tone-human { --nt: #fb923c; }
.stage-view .note.tone-neutral { border: 0; padding: 0; font-size: .66em; color: var(--soft); }
.stage-view .c-big { text-align: center; padding: 0; }
.stage-view .big-text { font-size: 2.3em; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
.stage-view .big-text.long { font-size: 1.45em; letter-spacing: -.02em; line-height: 1.08; }
.stage-view .big-sub { font-size: .72em; color: var(--soft); margin-top: .5em; }
/* a statement after a line: the moment reads from the left, like the line above it */
.stage-view > .note + .c-big { text-align: left; }

/* ---------- older parts other scenarios still use, without boxes ---------- */
.stage-view .compare { gap: 1.6em; }
.stage-view .compare .col { background: none; border-radius: 0; padding: .4em 0 0; border-top: .05em solid var(--rule); }
.stage-view .compare h4 { font-size: .66em; letter-spacing: .08em; color: #9cc8ff; margin-bottom: .45em; }
.stage-view .compare ul { list-style: none; padding: 0; } .stage-view .compare li { font-size: .8em; margin-bottom: .3em; line-height: 1.22; }
.stage-view .cards { gap: .9em; }
.stage-view .card { background: none; border-radius: 0; border: 0; border-top: .06em solid var(--cc, var(--rule)); padding: .35em 0 0; outline: none; }
.stage-view .card.tone-good { --cc: #34d399; } .stage-view .card.tone-watch { --cc: #fbbf24; } .stage-view .card.tone-bad { --cc: #f87171; } .stage-view .card.tone-info { --cc: #6cb4ff; } .stage-view .card.tone-human { --cc: #fb923c; } .stage-view .card.tone-agent { --cc: var(--aria); }
.stage-view .card-title { font-size: .8em; line-height: 1.2; } .stage-view .card-body { font-size: .66em; color: var(--soft); margin-top: .2em; line-height: 1.25; }
.stage-view .flow-arrow { color: var(--rule); font-weight: 300; font-size: 1em; }
.stage-view .actor-agent, .stage-view .actor-human { outline: none; }
.stage-view .actor-by { font-size: .66em; color: var(--soft); margin-bottom: .2em; }
.stage-view .ab-ico::before { content: ''; display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin-right: .45em; vertical-align: -.02em; }
.stage-view .ab-human::before { background: #fb923c; } .stage-view .ab-agent::before { border: .12em solid var(--aria); box-shadow: 0 0 .5em var(--aria); }
.stage-view .tag, .stage-view .badge { font-size: .66em; background: none; border: 0; padding: 0; margin-left: .6em; color: var(--soft); }
.stage-view .legend:not(.custom) { display: none; }
.stage-view .legend.custom { font-size: 1em; display: flex; flex-wrap: wrap; gap: .1em 1.4em; } .stage-view .legend.custom .actor-by { margin: 0; }
.stage-view .agent { background: none; border: 0; border-radius: 0; outline: none; padding: .1em 0 .1em .8em; margin-bottom: .35em; position: relative; }
.stage-view .agent::before { content: ''; position: absolute; left: 0; top: .45em; width: .36em; height: .36em; border-radius: 50%; background: var(--agent-color, var(--aria)); box-shadow: 0 0 .6em var(--agent-color, var(--aria)); }
.stage-view .agent-name { font-size: .66em; letter-spacing: .08em; text-transform: uppercase; } .stage-view .agent-status { font-size: .66em; }
.stage-view .agent-text { font-size: 1em; line-height: 1.18; } /* a spoken line: the hall's 4.6vh, as every other speaker (judge m4) */
.stage-view .agent-list.roster { gap: .3em 1.2em; }
.stage-view .agent-list.roster.n5, .stage-view .agent-list.roster.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stage-view .cols .agent-list.roster { grid-template-columns: 1fr; }
.stage-view .agent.system { padding: .1em 0 .1em .8em; margin-bottom: .2em; } .stage-view .agent.system .agent-text { font-size: .8em; color: var(--soft); } .stage-view .agent.system::before { background: var(--dim); box-shadow: none; }
.stage-view .chain .step { border-bottom: 0; padding: .2em 0; gap: .6em; outline: none; border-left: 0; align-items: baseline; }
.stage-view .chain .step.actor-agent, .stage-view .chain .step.actor-human, .stage-view .chain .step.actor-both { border-left: 0; padding-left: 0; }
.stage-view .step-mark { font-size: .9em; width: 1em; } .stage-view .step-label { font-size: .8em; } .stage-view .step-text { font-size: .66em; color: var(--soft); }
.stage-view .chain .badge { display: none; }
.stage-view .record { background: none; border-radius: 0; padding: .25em 0; border-top: 1px solid rgba(255, 255, 255, .07); margin: 0; }
.stage-view .record-title { font-size: .8em; } .stage-view .record-body { font-size: .66em; color: var(--soft); } .stage-view .record-owner { font-size: .66em; }
.stage-view .pill { font-size: .66em; }
.stage-view .ladder { background: none; border-radius: 0; padding: .25em 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .07); margin: 0; }
.stage-view .ladder.exceeded { border-top-color: #f87171; }
.stage-view .ladder-label { margin-bottom: .2em; } .stage-view .ladder-title { font-size: .72em; } .stage-view .ladder-owner { font-size: .66em; } .stage-view .lcell { font-size: .66em; padding: .05em 0; min-height: .5em; }
.stage-view .ladder-words { font-size: .66em; }
.stage-view .line { gap: .8em; } .stage-view .speaker { font-size: .66em; min-width: 5.5em; padding-top: .3em; letter-spacing: .08em; }
.stage-view .sp-aria .say { background: none; padding: 0; color: #e6dfff; }

/* two balanced columns (stage.ts, a fallback): the title spans both */
.stage-view.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 5vh; align-items: start; align-content: center; } .stage-view.cols > .c-title { grid-column: 1 / -1; }
.stage-view.cols > .c-title + .c { margin-top: 0; }
.stage-view.cols > .c-title { margin-bottom: 1.4vh; }
.stage-view .col > .c { margin-bottom: .7em; } .stage-view .col > .c:last-child { margin-bottom: 0; }
/* nothing is ever dropped to make a screen fit (D39, 2026-11-06): columns, then pages, then smaller type flagged red (stage-fit.ts) */
.stage-view.over { box-shadow: none; }
body.stage.is-preview .stage-view.over { box-shadow: inset 0 0 0 .5vh #f87171; }
body.stage.is-preview .stage-view.over::after { content: 'SIĞMIYOR · küçültüldü'; position: absolute; right: 1vh; bottom: 1vh; font: 700 1.6vh/1 system-ui, sans-serif; letter-spacing: .1em; color: #fff; background: #b91c1c; padding: .4em .7em; border-radius: .3em; }
/* a scene that still needs a second page: dots say there is more; only the back office turns it */
.pager { position: absolute; right: 3vh; bottom: 3vh; display: flex; gap: .8vh; }
.pager span { width: 1.2vh; height: 1.2vh; border-radius: 50%; background: #334155; } .pager span.on { background: #e2e8f0; }

/* 16:10 and narrower: the council's lines run under the row, tightly spaced (the type itself never shrinks) */
@media (max-aspect-ratio: 17/10) {
  .stage-view > .c-title:has(+ .c-council) { margin-bottom: .3em; } .stage-view > .c-title + .c-council { margin-top: 1vh; }
  .stage-view .seats { margin-bottom: .3em; } .stage-view .s-mark { width: 1.15em; height: 1.15em; }
  .stage-view .council-lines { gap: .1em; } .stage-view .cl-line { line-height: 1.08; } .stage-view .council-mode { margin-top: .05em; }
}
/* 4:3 and narrower projectors: the same type, fewer side by side */
@media (max-aspect-ratio: 3/2) {
  .stage-view { padding: 4vh 4vw 3.5vh; }
  .stage-view .seats { gap: .3em; margin-bottom: .45em; } .stage-view .s-name { letter-spacing: 0; } .stage-view .s-mark { width: 1.15em; height: 1.15em; }
  .stage-view > .c-title + .c-council { margin-top: 2vh; }
  .stage-view .council-lines { gap: .12em; } .stage-view .cl-line { line-height: 1.08; }
  .stage-view .prog-label { white-space: normal; line-height: 1.1; }
  .stage-view .c-qr { max-width: 42vh; } .stage-view .qr-img { height: 38vh; }
}
.stage-view .v-mode.slot::before { display: none; }

/* motion: parts enter in reading order; timers in render.ts always end in .settled */
.motion .enter { animation: enter .7s cubic-bezier(.2, .75, .25, 1) both; animation-delay: var(--d, 0ms); }
@keyframes enter { from { opacity: 0; transform: translateY(.4em); filter: blur(.06em); } }
.motion .seat.enter { animation-name: seat; }
@keyframes seat { from { opacity: 0; transform: translateY(.3em) scale(.94); } }
.motion.settled .enter { animation: none; }
/* a long exchange reads as a chat, newest at the bottom; older lines stay (D39: the stage's fit pages it, nothing scrolls away) */
.stage-view .chat { display: flex; flex-direction: column; justify-content: flex-end; }
/* render.ts holds a chat line back as .wait until its turn (only inside .chat): scoped, so no other screen loses a .wait */
.chat .wait { display: none !important; }
.typing::after { content: '▍'; margin-left: .05em; color: var(--vc, var(--aria)); animation: caret .9s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.stage.is-preview { cursor: default; }

/* the agent-voice experiment: browsers speak only after a click, so a small key waits in the corner until someone clicks it */
.st-voice-key { position: fixed; right: 1.2vh; bottom: 1.2vh; z-index: 50; font-size: 1.6vh; padding: .5em .9em; border-radius: 999px;
  background: rgba(20, 24, 32, .85); color: #cfd6e2; border: 1px solid rgba(255, 255, 255, .18); }

/* ---------- the indicator strip (R6 §10.13): one thin row fixed along the top, ≈8% of the height ---------- */
.st-band { display: none; }
body.stage.has-band .st-band { position: fixed; top: 0; left: 0; right: 0; min-height: 6.5vh; z-index: 4; display: flex; align-items: stretch; padding: 0 4.6vw;
  background: linear-gradient(180deg, rgba(10, 13, 19, .97), rgba(10, 13, 19, .88)); border-bottom: 1px solid var(--rule); font-size: 1.85vh; color: var(--ink); transition: opacity .6s ease; }
body.stage.has-band .stage-view { padding-top: calc(var(--band-h, 8vh) + 4vh); }
.st-band.dim { opacity: .42; }
.bd-cell { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .1em; padding: 0 1.1vw; border-left: 1px solid var(--rule); position: relative; }
.bd-cell:first-child { border-left: 0; padding-left: 0; }
/* labels wrap, never cut (D39): the strip grows and the stage below it moves down (stage.ts bandHeight) */
.bd-cell { padding-top: .45vh; padding-bottom: .7vh; }
.bd-label { font-size: 1em; letter-spacing: .03em; color: var(--soft); line-height: 1.15; }
.bd-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .55em; }
.bd-value { font-size: 1.75em; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.bd-delta { font-size: 1em; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .8; }
.bd-delta.better { color: var(--good); } .bd-delta.worse { color: var(--bad); }
.bd-cell::after { content: ''; position: absolute; left: 1.1vw; right: 1.1vw; bottom: 0; height: .35vh; border-radius: 99px 99px 0 0; background: var(--bd, transparent); opacity: .85; }
.bd-cell:first-child::after { left: 0; }
.bd-cell.tone-good { --bd: var(--good); } .bd-cell.tone-watch { --bd: var(--watch); } .bd-cell.tone-bad { --bd: var(--bad); }
.bd-cell.hot { --hot: var(--good); } .bd-cell.hot.worse { --hot: var(--bad); }
.bd-cell.hot { background: radial-gradient(120% 140% at 50% 100%, color-mix(in srgb, var(--hot) 24%, transparent), transparent 70%); animation: bd-pulse 1.8s ease-out 3; }
.bd-cell.hot .bd-delta { font-size: 1.3em; opacity: 1; }
.bd-cell.hot .bd-value { color: color-mix(in srgb, var(--hot) 35%, var(--ink)); }
@keyframes bd-pulse { 0% { box-shadow: inset 0 -.4vh 0 0 transparent; } 35% { box-shadow: inset 0 -3vh 3vh -1vh color-mix(in srgb, var(--hot) 55%, transparent); } 100% { box-shadow: inset 0 -.4vh 0 0 transparent; } }
.bd-caption { flex: none; align-self: center; margin-left: 1.1vw; padding-left: 1.1vw; border-left: 1px solid var(--rule); color: var(--soft); font-size: .95em; max-width: 12vw; line-height: 1.2; }
@media (prefers-reduced-motion: reduce) { .bd-cell.hot { animation: none; } }
/* the platform's default strip (band.ts `defaultBand`): one slim line, label beside value, about 5vh (judge M4) */
body.stage.has-band .st-band.line { min-height: 5vh; font-size: 2vh; }
.st-band.line .bd-cell { flex: 0 1 auto; flex-direction: row; justify-content: flex-start; align-items: baseline; flex-wrap: wrap; gap: 0 .55em; padding: .9vh 1.6vw .9vh 1.6vw; }
.st-band.line .bd-cell:first-child { padding-left: 0; }
.st-band.line .bd-cell:last-child { flex: 1 1 auto; }
.st-band.line .bd-value { font-size: 1.3em; line-height: 1.15; }
.st-band.line .bd-cell::after { display: none; }
/* the breadcrumb (band `crumb`, 2026-11-19): one line of values, day · company · slogan; never taller than the cell strip it replaces */
body.stage.has-band .st-band.crumb { min-height: 6vh; align-items: center; flex-wrap: wrap; font-size: 2.7vh; }
.st-band.crumb .bd-cell { flex: 0 1 auto; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 0; padding: .9vh 0; border-left: 0; }
.st-band.crumb .bd-cell + .bd-cell::before { content: '·'; margin: 0 .75em; font-weight: 800; color: var(--story, var(--soft)); }
.st-band.crumb .bd-label, .st-band.crumb .bd-cell::after { display: none; }
.st-band.crumb .bd-value { font-size: 1em; font-weight: 600; letter-spacing: 0; line-height: 1.2; }
.st-band.crumb .bd-cell[data-id="gun"] .bd-value { font-size: .84em; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--story, var(--soft)); }
.st-band.crumb .bd-cell[data-id="sirket"] .bd-value { font-size: 1.12em; font-weight: 800; color: var(--ink); }
.st-band.crumb .bd-cell[data-id="slogan"] .bd-value { font-weight: 500; font-style: italic; color: var(--soft); }
@media (max-aspect-ratio: 3/2) { body.stage.has-band .stage-view { padding-top: calc(var(--band-h, 8vh) + 3vh); } body.stage.has-band .st-band { padding: 0 4vw; font-size: 1.6vh; } }

/* ==========================================================================================================================
 * v2 vocabulary (2026-11-06): what the authors' pages express, in this stage's language — hairlines and colour, no boxes,
 * the same type scale (.66em floor ≈ 3vh, .8em for statements, 1em for what is spoken). Every part wraps; none is cut.
 * ========================================================================================================================== */

/* a part a later layer of this screen will show: in its place, measured, invisible (stage-fit.ts) */
.c-reserve { visibility: hidden; }
/* the wrapper takes no room of its own: the part inside keeps the margins it will have when it opens */
.stage-view > .c-reserve { margin-top: 0; margin-bottom: 0; }
.stage-view > .c-reserve > .c { margin: 0 0 .85em; }
.stage-view > .c-reserve:not(:has(~ .c)) > .c { margin-bottom: 0; }
.stage-view > .c-reserve:not(:has(~ .c)) { margin-bottom: auto; }
.stage-view .col > .c-reserve { margin-bottom: 0; } .stage-view .col > .c-reserve > .c { margin-bottom: .7em; } .stage-view .col > .c-reserve:last-child > .c { margin-bottom: 0; }

/* ---------- value flow: one link per group, left to right, a state on each ---------- */
.stage-view .vflow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: .7em; position: relative; }
.stage-view .vnode { --sc: var(--dim); display: flex; flex-direction: column; min-width: 0; padding-top: .35em; border-top: .1em solid var(--nc, var(--rule)); position: relative; }
.stage-view .vnode.st-ok { --sc: #34d399; } .stage-view .vnode.st-cond { --sc: #6cb4ff; } .stage-view .vnode.st-risk { --sc: #fbbf24; } .stage-view .vnode.st-blocked { --sc: #f87171; }
.stage-view .vnode + .vnode::before { content: '→'; position: absolute; left: -.85em; top: -.62em; font-size: .66em; color: var(--dim); }
.stage-view .vnode.focus { box-shadow: 0 -.5em 1.4em -1em var(--nc, var(--sc)); }
.stage-view .vnode.focus .vf-label { color: #fff; }
.stage-view .vf-group { font-size: .66em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nc, var(--soft)); line-height: 1.15; }
.stage-view .vf-label { font-size: .8em; font-weight: 700; line-height: 1.15; margin-top: .15em; text-wrap: balance; }
.stage-view .vf-state { display: flex; gap: .35em; align-items: baseline; margin-top: .25em; font-size: .66em; font-weight: 700; color: var(--sc); line-height: 1.15; }
.stage-view .vf-mark { flex: none; }
.stage-view .vnode.changed .vf-state { text-shadow: 0 0 .8em color-mix(in srgb, var(--sc) 70%, transparent); }
.stage-view .vf-was { font-size: .66em; color: var(--dim); font-style: italic; line-height: 1.15; }
.stage-view .vf-text { font-size: .66em; color: var(--soft); line-height: 1.22; margin-top: .3em; text-wrap: pretty; }
.stage-view .vf-caption { font-size: .66em; color: var(--soft); margin-top: .6em; }

/* ---------- the focal event: a kicker, a headline, what was done, what it did ---------- */
.stage-view .c-focal { --fc: var(--aria); border-left: .1em solid var(--fc); padding: .05em 0 .1em .6em; box-shadow: -1.2em 0 2.4em -1.6em var(--fc); }
.stage-view .fc-eyebrow { font-size: .66em; font-weight: 700; letter-spacing: .1em; color: var(--fc); margin-bottom: .2em; }
.stage-view .fc-title { font-size: 1.2em; font-weight: 800; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.stage-view .fc-lead { font-size: .8em; line-height: 1.22; margin-top: .3em; color: #e3e8ef; text-wrap: pretty; }
.stage-view .fc-impact { font-size: .8em; line-height: 1.22; margin-top: .3em; color: #ffd479; text-wrap: pretty; }
.stage-view .fc-trace { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .9em; margin-top: .55em; }
.stage-view .fc-step { border-top: .06em solid var(--rule); padding-top: .25em; min-width: 0; }
.stage-view .fc-step.ok { border-top-color: #34d399; } .stage-view .fc-step.open { border-top-color: var(--dim); }
.stage-view .fc-step-l { font-size: .72em; font-weight: 700; line-height: 1.15; } .stage-view .fc-step.ok .fc-step-l { color: #8ee8c0; }
.stage-view .fc-step-t { font-size: .66em; color: var(--soft); line-height: 1.22; margin-top: .15em; }

/* ---------- a receipt: each group's decision, field by field ---------- */
.stage-view .rc-title { font-size: .66em; font-weight: 700; letter-spacing: .1em; color: #9cc8ff; margin-bottom: .35em; }
.stage-view .rc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5em), 1fr)); gap: .5em .9em; }
.stage-view .rc-row { border-top: .08em solid var(--rcc, var(--rule)); padding-top: .25em; min-width: 0; display: flex; flex-direction: column; gap: .12em; }
.stage-view .rc-name { font-size: .72em; font-weight: 800; color: var(--rcc, var(--ink)); line-height: 1.15; }
.stage-view .rc-field { font-size: .66em; line-height: 1.22; color: var(--soft); }
.stage-view .rc-field.strong .rc-v { color: var(--ink); font-weight: 700; }
.stage-view .rc-l { color: var(--dim); } .stage-view .rc-m { margin-left: .4em; color: var(--dim); font-variant-numeric: tabular-nums; }
.stage-view .rc-note { font-size: .66em; color: var(--dim); margin-top: .45em; }

/* ---------- phases: a process in steps, lit up to where it stands ---------- */
.stage-view .phases { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .5em; }
.stage-view .ph { font-size: .8em; font-weight: 700; color: var(--dim); }
.stage-view .ph.done { color: var(--soft); } .stage-view .ph.on { color: #fff; text-shadow: 0 0 .7em #6cb4ff; }
.stage-view .ph-arrow { font-size: .66em; color: var(--dim); }

/* ---------- the charter: design levers side by side ---------- */
.stage-view .charter { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1em; }
.stage-view .lever { border-top: .08em solid #fb923c; padding-top: .3em; min-width: 0; }
.stage-view .lv-label { font-size: .66em; font-weight: 700; letter-spacing: .1em; color: #fdba74; line-height: 1.15; }
.stage-view .lv-q { font-size: .8em; font-weight: 700; line-height: 1.18; margin-top: .2em; text-wrap: balance; }
.stage-view .lv-value { font-size: .9em; font-weight: 800; line-height: 1.15; margin-top: .2em; text-wrap: balance; }
.stage-view .lv-meta { font-size: .66em; color: var(--dim); margin-top: .2em; }
.stage-view .lv-opt { margin-top: .4em; }
.stage-view .lv-opt-t { font-size: .72em; font-weight: 700; line-height: 1.18; }
.stage-view .lv-opt.chosen .lv-opt-t { color: #fff; } .stage-view .lv-opt.chosen .lv-opt-t::before { content: '● '; color: #fb923c; }
.stage-view .lv-opt-d { font-size: .66em; color: var(--soft); line-height: 1.22; }
.stage-view .lv-gc { font-size: .66em; line-height: 1.22; display: flex; flex-wrap: wrap; gap: 0 .8em; }
.stage-view .lv-gain { color: #8ee8c0; } .stage-view .lv-cost { color: #ffd479; }
.stage-view .ch-note { font-size: .66em; color: var(--dim); margin-top: .5em; }

/* ---------- before → after ---------- */
.stage-view .ba { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: .7em; align-items: start; }
.stage-view .ba-side { border-top: .06em solid var(--rule); padding-top: .3em; min-width: 0; }
.stage-view .ba-side.before { color: var(--soft); } .stage-view .ba-side.after { border-top-color: #6cb4ff; }
.stage-view .ba-side.tone-good { border-top-color: #34d399; } .stage-view .ba-side.tone-watch { border-top-color: #fbbf24; } .stage-view .ba-side.tone-bad { border-top-color: #f87171; } .stage-view .ba-side.tone-human { border-top-color: #fb923c; }
.stage-view .ba-label { font-size: .66em; font-weight: 700; letter-spacing: .1em; color: #9cc8ff; line-height: 1.15; }
.stage-view .ba-side.before .ba-label { color: var(--dim); }
.stage-view .ba-title { font-size: .9em; font-weight: 800; line-height: 1.15; margin-top: .15em; }
.stage-view .ba-side.before .ba-title { text-decoration: line-through; text-decoration-color: #f87171; text-decoration-thickness: .06em; color: var(--soft); }
.stage-view .ba-text { font-size: .72em; line-height: 1.22; margin-top: .2em; }
.stage-view .ba-row { font-size: .66em; line-height: 1.25; margin-top: .15em; } .stage-view .ba-side.after .ba-row { font-size: .72em; }
.stage-view .ba-mark { margin-right: .35em; } .stage-view .ba-rl { color: var(--dim); font-weight: 700; }
.stage-view .ba-foot { font-size: .66em; color: var(--dim); margin-top: .3em; }
.stage-view .ba-arrow { font-size: 1.1em; color: #6cb4ff; align-self: center; }
.stage-view .ba-note { font-size: .66em; color: var(--dim); margin-top: .5em; }

/* ---------- what changed: old struck through → new ---------- */
.stage-view .diffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7em), 1fr)); gap: .6em 1.2em; }
.stage-view .diffs.n1 { grid-template-columns: minmax(0, 1fr); }
.stage-view .diff { --dc: #6cb4ff; border-left: .08em solid var(--dc); padding-left: .45em; min-width: 0; }
.stage-view .diff.better { --dc: #34d399; } .stage-view .diff.worse { --dc: #f87171; }
.stage-view .diff.tone-good { --dc: #34d399; } .stage-view .diff.tone-watch { --dc: #fbbf24; } .stage-view .diff.tone-bad { --dc: #f87171; }
.stage-view .df-label { font-size: .66em; font-weight: 700; letter-spacing: .06em; color: var(--soft); line-height: 1.15; }
.stage-view .df-nums { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em; margin-top: .1em; }
.stage-view .df-before { font-size: .9em; color: var(--dim); text-decoration-color: #f87171; text-decoration-thickness: .06em; }
.stage-view .df-arrow { font-size: .8em; color: var(--dim); }
.stage-view .df-after { font-size: 1.3em; font-weight: 800; letter-spacing: -.015em; line-height: 1.05; color: color-mix(in srgb, var(--dc) 30%, var(--ink)); }
.stage-view .df-delta { font-size: .72em; font-weight: 700; color: var(--dc); margin-top: .1em; }
.stage-view .df-note { font-size: .66em; color: var(--soft); line-height: 1.22; margin-top: .15em; }
.stage-view .df-caption { font-size: .66em; color: var(--dim); margin-top: .5em; }

/* ---------- tiles: a group's card in a row of them ---------- */
.stage-view .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.2em), 1fr)); gap: .6em .9em; }
.stage-view .tiles.n1 { grid-template-columns: minmax(0, 1fr); } .stage-view .tiles.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stage-view .tiles.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stage-view .tile { --tc: var(--rule); border-top: .08em solid var(--tc); padding-top: .3em; min-width: 0; display: flex; flex-direction: column; gap: .12em; }
.stage-view .tile.tone-good { --tc: #34d399; } .stage-view .tile.tone-watch { --tc: #fbbf24; } .stage-view .tile.tone-bad { --tc: #f87171; } .stage-view .tile.tone-info { --tc: #6cb4ff; } .stage-view .tile.tone-human { --tc: #fb923c; } .stage-view .tile.tone-agent { --tc: var(--aria); }
.stage-view .tile[style*="--tc"] .tl-group { color: var(--tc); }
.stage-view .tile.ghost { opacity: .35; }
.stage-view .tl-group { font-size: .66em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); line-height: 1.15; }
.stage-view .tile .actor-by { margin: 0; }
.stage-view .tl-mark { font-size: .66em; font-weight: 800; letter-spacing: .08em; color: #f4c27a; }
.stage-view .tl-kicker { font-size: .66em; font-weight: 700; letter-spacing: .08em; color: #9cc8ff; line-height: 1.15; }
.stage-view .tl-value { font-size: 1.5em; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
/* a toned tile's number takes the tone too (the words take it through `marks`): a changed number reads from the back of the hall */
.stage-view .tile.tone-good .tl-value { color: var(--good); } .stage-view .tile.tone-watch .tl-value { color: var(--watch); } .stage-view .tile.tone-bad .tl-value { color: var(--bad); }
.stage-view .tl-title { font-size: .8em; font-weight: 700; line-height: 1.18; text-wrap: pretty; }
.stage-view .tl-quote { font-size: .72em; font-style: italic; color: #e6dfff; line-height: 1.22; }
.stage-view .tl-body { font-size: .66em; color: var(--soft); line-height: 1.22; text-wrap: pretty; }
.stage-view .tl-row { font-size: .66em; line-height: 1.22; }
.stage-view .tl-chip { display: inline; font-weight: 700; margin-right: .4em; color: var(--soft); }
.stage-view .tl-chip.tone-good { color: #8ee8c0; } .stage-view .tl-chip.tone-watch { color: #ffd479; } .stage-view .tl-chip.tone-bad { color: #ffa3a3; } .stage-view .tl-chip.tone-info { color: #9cc8ff; }
.stage-view .tl-row-t { color: var(--ink); }
/* a card's gain and cost take their colour, not the emphasis weight: bold rows made the three-card vote screens a line taller (paged at 1920x1200) */
.stage-view .tl-row .em { font-weight: inherit; }
.stage-view .tl-foot { font-size: .66em; font-weight: 700; color: #fdba74; line-height: 1.22; margin-top: .15em; }

/* ---------- a sequence: marks in a row with what joins them ---------- */
.stage-view .seq { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em .45em; }
.stage-view .sq { min-width: 0; border-bottom: .08em solid var(--sc, transparent); }
.stage-view .sq-text { font-size: .8em; font-weight: 700; line-height: 1.15; color: var(--sc, var(--ink)); }
.stage-view .sq.st-stamp .sq-text { color: #fbbf24; letter-spacing: .06em; text-transform: uppercase; font-size: .66em; border: .1em solid #fbbf24; padding: .1em .4em; border-radius: .2em; }
.stage-view .sq.st-ok .sq-text { color: #8ee8c0; } .stage-view .sq.st-open .sq-text { color: var(--soft); }
.stage-view .sq-sub { font-size: .66em; color: var(--dim); line-height: 1.15; }
.stage-view .sq-join { font-size: .66em; color: var(--dim); }
.stage-view .seq.join-none { gap: .3em 1.1em; }
.stage-view .sq-tag { font-size: .66em; font-weight: 700; letter-spacing: .1em; color: #6cb4ff; margin-top: .35em; }
.stage-view .sq-caption { font-size: .66em; color: var(--soft); margin-top: .35em; }

/* ---------- a stage direction ---------- */
.stage-view .c-cue { display: flex; align-items: baseline; gap: .5em; font-size: .72em; color: var(--soft); font-style: italic; line-height: 1.25; }
.stage-view .cue-icon { font-style: normal; flex: none; }
.stage-view .c-cue.tone-info { color: #9cc8ff; } .stage-view .c-cue.tone-watch { color: #ffd479; } .stage-view .c-cue.tone-bad { color: #ffa3a3; }

/* ---------- a meter: parts on one scale ---------- */
.stage-view .meter { display: flex; height: .5em; background: rgba(255, 255, 255, .08); }
.stage-view .mt-seg { --mc: #6cb4ff; background: var(--mc); box-shadow: 0 0 .6em color-mix(in srgb, var(--mc) 50%, transparent); }
.stage-view .mt-seg.tone-good { --mc: #34d399; } .stage-view .mt-seg.tone-watch { --mc: #fbbf24; } .stage-view .mt-seg.tone-bad { --mc: #f87171; }
.stage-view .mt-labels { font-size: 1em; display: flex; flex-wrap: wrap; gap: .2em 1.2em; margin-top: .3em; }
.stage-view .mt-label { --mc: #6cb4ff; font-size: .66em; line-height: 1.2; }
.stage-view .mt-label::before { content: ''; display: inline-block; width: .6em; height: .6em; margin-right: .4em; background: var(--mc); }
.stage-view .mt-label.tone-good { --mc: #34d399; } .stage-view .mt-label.tone-watch { --mc: #fbbf24; } .stage-view .mt-label.tone-bad { --mc: #f87171; }
.stage-view .mt-caption { font-size: .66em; color: var(--soft); margin-top: .3em; }

/* ---------- a small table ---------- */
.stage-view .st-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.stage-view .st-table th, .stage-view .st-table td { font-size: .66em; line-height: 1.22; text-align: left; vertical-align: top; padding: .25em .5em .25em 0; border-top: 1px solid rgba(255, 255, 255, .08); overflow-wrap: break-word; }
.stage-view .st-table thead th { color: #9cc8ff; letter-spacing: .08em; font-weight: 700; border-top: 0; }
.stage-view .st-table tbody th { color: var(--soft); font-weight: 700; }
.stage-view .st-table td { color: var(--ink); } .stage-view .st-table .strong { font-weight: 800; color: #fff; }
.stage-view .tb-note { font-size: .66em; color: var(--dim); margin-top: .4em; }

/* 3:2 and wider: a row of group cards stays one row, as the authors' "feature five" (four to six side by side) */
@media (min-aspect-ratio: 3/2) {
  .stage-view .tiles.n4, .stage-view .rc-list.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stage-view .tiles.n5, .stage-view .rc-list.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stage-view .tiles.n6, .stage-view .rc-list.n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* 4:3 and narrower: rows of five links or levers wrap onto two lines rather than shrink */
@media (max-aspect-ratio: 3/2) {
  .stage-view .vflow.n5, .stage-view .vflow.n6, .stage-view .vflow.n7 { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: .6em; }
  .stage-view .charter.n4 { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* a row of group cards with more than ~25 words a card (render.ts `wordy`): three to a line at full width (3+2, 3+3; four as
   2+2), not five or six narrow columns of one-word lines (judge M4, 2026-11-06) */
.stage-view .tiles.wordy.n4, .stage-view .rc-list.wordy.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stage-view .tiles.wordy.n5, .stage-view .tiles.wordy.n6, .stage-view .rc-list.wordy.n5, .stage-view .rc-list.wordy.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stage-view .cols .tiles.wordy, .stage-view .cols .rc-list.wordy { grid-template-columns: minmax(0, 1fr); }
/* a package picture above a stage direction (cue.image, r6c 2026-11-06): the empty chair. Its height is bounded so the
   fit measures it like any part; it never crops (contain). */
.stage-view .c-cue.has-img { flex-direction: column; align-items: center; gap: .4em; font-size: .8em; }
.stage-view .c-cue.has-img .cue-img { display: block; max-width: 100%; max-height: 48vh; object-fit: contain; border-radius: .4em; }
.stage-view .c-cue.has-img .cue-line { display: flex; align-items: baseline; gap: .5em; }

/* ---- films (B1, web/stage-video.ts): one video layer above the screen; `fill` takes the whole stage, `fit` sits on its slot ---- */
.st-film { position: fixed; z-index: 10; display: none; background: #000; pointer-events: none; overflow: hidden; }
.st-film.on { display: block; }
.st-film.on.gone { display: none; }
.st-film.fill { inset: 0; }
.st-film-v { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.st-film-v::cue { font-size: 3.4vh; line-height: 1.3; background: rgba(0, 0, 0, .72); color: #fff; }
.st-film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: none; }
.st-film.show-poster .st-film-poster { display: block; }
body.stage[data-mood="blackout"][data-manual] .st-film { visibility: hidden; }
.stage-view .c-video.has-film.fill { display: none; }
.stage-view .c-video.has-film.fit { width: min(100%, calc(42vh * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto; background: #000; border-radius: .2em; }
.stage-view .c-video.missing { display: flex; flex-direction: column; align-items: center; gap: .5em; }
.stage-view .c-video.missing.fill { width: 100%; }
.stage-view .c-video .vd-poster { max-width: 100%; max-height: 60vh; object-fit: contain; border-radius: .2em; }
.stage-view .c-video .vd-text { font-size: .9em; color: var(--soft); text-align: center; }
.stage-view .c-video.missing { aspect-ratio: auto; background: none; }
.stage-view .c-video.audio, .stage-view .c-sound { display: none; }
.st-film.on.audio { display: none; }
/* the stage run by keys (web/stage-control.ts): the key box and the presenter's chip, small, in the lower left corner (the pager dots are on the right), over
   everything and outside the measured page, so the hall's screen does not move */
.st-ctl-chip { position: fixed; left: 1.2vh; bottom: 1.2vh; z-index: 70; max-width: 40vw; padding: .45em .8em; border-radius: .5em;
  font: 600 1.5vh/1.3 system-ui, sans-serif; color: #e8eaf2; background: rgba(20, 22, 30, .82); border: 1px solid rgba(255, 255, 255, .18); }
.st-ctl-chip[hidden], .st-ctl-ask[hidden] { display: none; }
.st-ctl-chip.warn { color: #0b0c10; background: rgba(255, 191, 64, .92); border-color: rgba(255, 191, 64, 1); }
.st-ctl-ask { position: fixed; left: 1.2vh; bottom: 1.2vh; z-index: 71; width: min(46vh, 60vw); display: flex; flex-direction: column; gap: .5em; padding: .9em 1em;
  border-radius: .6em; font: 500 1.5vh/1.3 system-ui, sans-serif; color: #e8eaf2; background: rgba(20, 22, 30, .94); border: 1px solid rgba(255, 255, 255, .22); }
.st-ctl-row { display: flex; gap: .5em; }
.st-ctl-ask input { flex: 1; min-width: 0; font: inherit; padding: .4em .6em; border-radius: .35em; border: 1px solid rgba(255, 255, 255, .3); background: #0b0c10; color: #fff; }
.st-ctl-go { font: inherit; font-weight: 700; padding: .4em .9em; border-radius: .35em; border: 0; background: #22e07a; color: #04210f; cursor: pointer; }
.st-ctl-err { color: #ff8b97; min-height: 1em; }
.st-ctl-err:empty { display: none; }
.st-ctl-esc { color: #8b90a3; font-size: .9em; }

/* ---------- motion on the server's clock (Hallederiz R2, 2026-11-17, D8; web/render-motion.ts) ----------
   Every keyframe animates FROM a start state TO the element's resting style, and its delay is the part's `shownAt` minus
   the server's now (`--mo-d`, negative once it is under way): every window draws the same frame, a re-render restarts
   nothing, and with no animation at all (reduced motion, the back office's switch) the part is simply complete.
   Timed motion runs only on a part the server stamped (`[data-mo]`): the guide's pictures and the package preview
   draw the final frame. */
/* The fade belongs to the way IN only: a transition runs with the style of the state it goes to, so the hidden state carries
   none. `runMotion` adds `.rv` and `.rv-wait` after the page was measured visible; a fade on that hiding showed every
   block for half a second and then faded it out, before it entered (scene-open flash, Cagkan 2026-11-19). */
.rv { transition: none; }
.rv:not(.rv-wait) { transition: opacity .5s ease, transform .5s ease; }
.rv.rv-wait { opacity: 0; transform: translateY(.3em); pointer-events: none; }
.mo-still .rv, .mo-still .rv:not(.rv-wait) { transition: none; }
[data-mo].mo-blink { animation: mo-blink .7s ease-in-out var(--blink-n, 1) both; animation-delay: var(--mo-d, 0ms); }
@keyframes mo-blink { 50% { opacity: .15; } }
[data-mo].mo-grow .tally-fill, [data-mo].mo-grow .prog-fill, [data-mo].mo-grow .mt-seg, [data-mo].mo-grow .band-fill { animation: mo-grow 1.2s ease-out both; animation-delay: var(--mo-d, 0ms); }
@keyframes mo-grow { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { .rv, .rv:not(.rv-wait) { transition: none; } .mo-blink, .mo-grow *, .ln-row, .dt-dot, .dt-seat, .dt-plane, .mp-pt.st, .ty-ch, .wk-day.st-open, .ln-sticker { animation: none !important; } }

/* timer: a countdown ring and its words; it never moves the show */
.stage-view .c-timer { display: flex; align-items: center; gap: .9em; }
.stage-view .tm-ring { --p: 1; flex: none; width: 3.6em; height: 3.6em; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--watch) calc(var(--p) * 360deg), color-mix(in srgb, var(--watch) 18%, transparent) 0); position: relative; }
.stage-view .tm-ring::before { content: ''; position: absolute; inset: .22em; border-radius: 50%; background: #06080c; }
.stage-view .tm-left { position: relative; font-size: .95em; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stage-view .tm-label { font-size: 1em; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.stage-view .c-timer.urgent .tm-ring { --watch: var(--bad); }
.stage-view .c-timer.done .tm-left { color: var(--dim); }

/* map: points on a plane, a header with a clock bar, stat tiles and a legend beside it */
.stage-view .c-map { display: flex; flex-direction: column; gap: .35em; }
.stage-view .mp-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2em 1em; }
.stage-view .mp-title { margin: 0; font-size: .9em; font-weight: 800; color: #ffb454; }
.stage-view .mp-sub { font-size: max(.7em, calc(3vh * var(--scale, 1))); color: var(--soft); }
.stage-view .mp-clock { flex: 1 1 100%; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .6em; font-size: max(.66em, calc(3vh * var(--scale, 1))); color: var(--soft); font-variant-numeric: tabular-nums; }
.stage-view .mp-bar { height: .5em; border-radius: 1em; background: #1a2232; overflow: hidden; }
.stage-view .mp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #20c7ae, #f3d68e); }
.stage-view .mp-clock b { font-size: 1.45em; color: var(--ink); }
.stage-view .mp-body { display: grid; grid-template-columns: 1fr; gap: 1em; align-items: start; }
.stage-view .mp-body.has-side { grid-template-columns: minmax(0, 1fr) 27%; }
.stage-view .mp-fig svg { display: block; width: 100%; height: auto; max-height: 58vh; }
.stage-view .mp-label { font-size: 15px; font-weight: 700; fill: #a9b6d4; }
.stage-view .mp-plabel { font-size: 13px; font-weight: 700; fill: var(--ink); }
.stage-view [data-mo] .mp-pt.st { animation: mo-pop .45s ease-out both; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)); transform-box: fill-box; transform-origin: center; }
@keyframes mo-pop { from { opacity: 0; transform: scale(.2); } }
.stage-view .mp-cap { display: flex; align-items: center; gap: .5em; margin-top: .3em; font-size: max(.7em, calc(3vh * var(--scale, 1))); color: var(--soft); }
.stage-view .mp-cap i { width: .9em; height: .9em; border-radius: 50%; border: .14em solid var(--hl, #ffb454); }
.stage-view .mp-side { display: flex; flex-direction: column; gap: .45em; }
.stage-view .mp-tile { border: 1px solid var(--rule); border-radius: .25em; padding: .35em .5em; display: flex; flex-direction: column; gap: .05em; }
.stage-view .mp-tile b { font-size: 1.2em; line-height: 1.05; }
.stage-view .mp-tile span { font-size: max(.66em, calc(3vh * var(--scale, 1))); color: var(--soft); line-height: 1.2; }
.stage-view .mp-tile.hl { border-color: rgba(255, 209, 102, .55); } .stage-view .mp-tile.hl b { color: #ffd166; }
.stage-view .mp-legend { display: flex; flex-flow: row wrap; gap: .25em 1.1em; margin-top: .35em; font-size: max(.66em, calc(3vh * var(--scale, 1))); color: var(--soft); }
.stage-view .mp-lg { display: flex; align-items: center; gap: .5em; line-height: 1.2; }
.stage-view .mp-lg i { flex: none; width: .9em; height: .9em; border-radius: 50%; }
.stage-view .mp-lg i.ring { background: transparent; border: .14em solid #fff; box-sizing: border-box; }
.stage-view .mp-lg em { margin-left: .3em; font-style: normal; font-weight: 800; color: var(--ink); }

/* lanes: rows flowing in under a header, a sticker on the side */
.stage-view .c-lanes { position: relative; }
/* the sticker sits in the flow beside the rows (never absolutely placed: the fit must measure it, stage-fit.ts) */
.stage-view .c-lanes.has-sticker { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.2em; align-items: center; }
.stage-view .c-lanes.has-sticker > .c-h { grid-column: 1 / -1; }
.stage-view .ln-box { border: 1px solid var(--rule); border-radius: .25em; padding: .3em .6em; background: rgba(7, 11, 28, .7); }
.stage-view .ln-head, .stage-view .ln-row { display: grid; grid-template-columns: minmax(6em, auto) repeat(calc(var(--cols) - 1), minmax(0, 1fr)); gap: .25em .8em; align-items: start; }
/* the header's type sits on its cells, not on the grid, so its first column is the rows' first column and the two line up; it never falls under the hall's 3vh floor */
.stage-view .ln-head > * { font-size: max(.66em, calc(3vh * var(--scale, 1))); }
.stage-view .ln-head { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding-bottom: .3em; border-bottom: 1px solid var(--rule); }
.stage-view .ln-row { padding: .18em 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.stage-view [data-mo] .ln-row { animation: mo-lane .5s ease-out both; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)); }
@keyframes mo-lane { from { opacity: 0; transform: translateY(.4em); } }
.stage-view .ln-cell { font-size: max(.7em, calc(3vh * var(--scale, 1))); line-height: 1.25; }
.stage-view .ln-cell.first { font-variant-numeric: tabular-nums; color: var(--dim); font-weight: 700; }
.stage-view .ln-cell.tone-watch { color: #ffb454; } .stage-view .ln-cell.tone-bad { color: #ff6b7d; } .stage-view .ln-cell.tone-good { color: #45d99a; } .stage-view .ln-cell.tone-agent { color: var(--aria); }
.stage-view .ln-sticker { max-width: 7em; margin: .5em .5em .5em 0; transform: rotate(-6deg); background: #ffd166; color: #1a1438; border-radius: .2em; padding: .4em .6em;
  box-shadow: 0 .3em 1em rgba(0, 0, 0, .45); text-align: center; }
.stage-view [data-mo] .ln-sticker { animation: mo-slap .5s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--mo-d, 0ms) + 300ms); }
@keyframes mo-slap { from { opacity: 0; transform: rotate(-6deg) scale(1.6); } }
.stage-view .ln-sticker b { display: block; font-size: 1.1em; font-weight: 900; line-height: 1.05; }
.stage-view .ln-sticker span { font-size: max(.66em, calc(3vh * var(--scale, 1))); font-weight: 700; }

/* dots: many small marks flowing from one block to another (300 passengers re-planned) */
.stage-view .c-dots { display: flex; flex-direction: column; gap: .3em; }
.stage-view .dt-title { margin: 0; font-size: 1.1em; font-weight: 800; text-align: center; }
.stage-view .c-dots.alert .dt-title { color: #ff6b7d; }
.stage-view .dt-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: .5em; }
.stage-view .dt-chips span { font-size: .66em; font-weight: 800; border: 1px solid rgba(167, 139, 250, .6); border-radius: 1em; padding: .1em .7em; color: #cdb9ff; }
.stage-view .c-dots svg { display: block; width: 100%; height: auto; max-height: 34vh; }
.stage-view .dt-dot { fill: var(--dc, var(--aria)); transform: translate(var(--dx), var(--dy)); }
.stage-view [data-mo] .dt-dot { animation: mo-fly var(--dur, 2s) ease-in-out both; animation-delay: var(--mo-d, 0ms); }
@keyframes mo-fly { from { transform: none; } }
.stage-view .dt-ends { display: flex; justify-content: space-between; font-size: .66em; font-weight: 700; }
.stage-view .dt-from { color: #ff6b7d; } .stage-view .dt-to { color: #ff9929; }
.stage-view .dt-label { font-size: .9em; font-weight: 800; text-align: center; }
/* dots as seats (`planes`): cancelled aircraft in red on the left empty one by one; every seat flies to a new aircraft on the
   right and takes its colour. Resting style = the end of the flight; the keyframes start from the boarding state. */
.stage-view .c-dots.planes svg { max-height: 30vh; overflow: visible; }
.stage-view .c-dots.planes .dt-to { color: var(--dc, #a083ff); }
.stage-view .dt-plane .dt-body, .stage-view .dt-plane .dt-wing { stroke-width: 1.4; stroke-linejoin: round; }
.stage-view .dt-plane.from .dt-body, .stage-view .dt-plane.from .dt-wing { fill: color-mix(in srgb, #ff6b7d 14%, #0b0d18); stroke: #ff6b7d; }
.stage-view .dt-plane.from { opacity: .35; }
.stage-view .dt-plane.to .dt-body, .stage-view .dt-plane.to .dt-wing { fill: color-mix(in srgb, var(--dc, #a083ff) 14%, #0b0d18); stroke: var(--dc, #a083ff); }
.stage-view .dt-empty { fill: none; stroke: var(--dc, #a083ff); stroke-width: .8; opacity: .45; }
.stage-view .dt-seat { fill: var(--dc, #a083ff); transform: translate(var(--dx), var(--dy)); }
.stage-view [data-mo] .dt-seat { animation: mo-board 1.7s cubic-bezier(.45, 0, .25, 1) both; animation-delay: calc(var(--mo-d, 0ms) + 900ms + var(--at, 0ms)); }
.stage-view [data-mo] .dt-plane.from { animation: mo-emptied .8s ease-out both; animation-delay: calc(var(--mo-d, 0ms) + 900ms + var(--at, 0ms)); }
@keyframes mo-board { from { transform: none; fill: #ff6b7d; } 35% { fill: #ff6b7d; } }
@keyframes mo-emptied { from { opacity: 1; } }

/* week: day cards in their colours; a "?" card; a card that opens; lights */
.stage-view .wk { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: .5em; }
.stage-view .wk.n1 { --n: 1; } .stage-view .wk.n2 { --n: 2; } .stage-view .wk.n3 { --n: 3; } .stage-view .wk.n4 { --n: 4; } .stage-view .wk.n5 { --n: 5; } .stage-view .wk.n6 { --n: 6; } .stage-view .wk.n7 { --n: 7; }
.stage-view .wk-day { --wc: var(--accent); --g: 0; border: 1px solid var(--rule); border-top: .14em solid var(--wc); border-radius: .25em; padding: .45em .55em; min-height: 4.6em;
  background: color-mix(in srgb, var(--wc) calc(var(--g) * 55%), rgba(10, 15, 34, .5)); box-shadow: 0 0 calc(var(--g) * 2.4em) color-mix(in srgb, var(--wc) 70%, transparent); }
.stage-view .wk-day, .stage-view .ht-cell { overflow-wrap: normal; word-break: normal; min-width: 0; }
.stage-view .wk-d { font-size: .66em; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--wc); white-space: nowrap; }
.stage-view .wk-n { font-size: .8em; font-weight: 800; line-height: 1.1; margin: .2em 0; text-wrap: balance; }
.stage-view .wk-s { font-size: .66em; color: var(--soft); line-height: 1.2; }
.stage-view .wk-day.st-on { border-color: var(--wc); }
.stage-view .wk-day.st-done { opacity: .75; }
.stage-view .wk-day.st-dim, .stage-view .wk-day.st-mystery { opacity: .55; }
.stage-view .wk-day.st-mystery .wk-n { font-size: 2em; text-align: center; }
.stage-view .wk-day.st-open { border-color: var(--wc); background: color-mix(in srgb, var(--wc) calc(18% + var(--g) * 40%), rgba(10, 15, 34, .5)); }
.stage-view [data-mo] .wk-day.st-open { animation: mo-open .9s ease-out both; animation-delay: var(--mo-d, 0ms); }
.stage-view .wk-day.st-open .wk-n { color: var(--wc); }
@keyframes mo-open { from { transform: perspective(40em) rotateY(-88deg); opacity: .3; } }
.stage-view .wk-lights { display: flex; flex-wrap: wrap; gap: .2em; align-items: center; margin-top: .3em; }
.stage-view .wk-lights i { width: .38em; height: .38em; border-radius: 50%; background: var(--wc); box-shadow: 0 0 .3em var(--wc); }
.stage-view .wk-lights em { font-style: normal; font-size: .66em; font-weight: 800; margin-left: .2em; }

/* heat: cells lit by real counts */
.stage-view .ht { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: .5em; }
.stage-view .ht.n1 { --n: 1; } .stage-view .ht.n2 { --n: 2; } .stage-view .ht.n3 { --n: 3; } .stage-view .ht.n4 { --n: 4; } .stage-view .ht.n5 { --n: 5; } .stage-view .ht.n6 { --n: 6; } .stage-view .ht.n7 { --n: 7; }
.stage-view .ht-cell { --hc: #6cb8ff; --a: .1; border-radius: .25em; padding: .5em .6em; min-height: 4.4em; display: flex; flex-direction: column; justify-content: space-between;
  background: color-mix(in srgb, var(--hc) calc(var(--a) * 100%), transparent); border: 1px solid color-mix(in srgb, var(--hc) 45%, transparent); transition: background-color .8s ease; }
.stage-view .ht-l { font-size: .66em; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.stage-view .ht-v { font-size: 1.5em; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage-view .ht-t { font-size: .66em; line-height: 1.2; }
.stage-view .ht-note { margin-top: .4em; font-size: .72em; color: var(--soft); }

/* typing: an instruction typed letter by letter on the server's clock */
.stage-view .c-typing { display: flex; flex-direction: column; gap: .4em; }
.stage-view .ty-chips { display: flex; flex-wrap: wrap; gap: .4em; }
.stage-view .ty-chip { font-size: .66em; border: 1px solid var(--rule); border-radius: .3em; padding: .15em .5em; }
.stage-view .ty-chip small { display: block; font-size: .8em; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.stage-view .ty-term { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8em; line-height: 1.35; background: #0b1020; border: 1px solid var(--rule); border-radius: .25em; padding: .5em .7em; }
.stage-view .ty-prompt { font-style: normal; color: var(--aria); margin-right: .5em; }
.stage-view [data-mo] .ty-ch { animation: mo-tp .01s linear both; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)); }
@keyframes mo-tp { from { opacity: 0; } }
.stage-view .ty-caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--aria); text-decoration: none; animation: caret 1s steps(1) infinite; }

/* terminal (2026-11-19): the window Ada works in with her agents. Temporary style from the team meeting of 2026-11-18: black,
   green monospace (Matrix-like), kept quiet: one soft glow, no scanlines, every line at the hall's 3vh floor or above.
   Ada's prompt is her violet; what she types is the brightest line; the agent's output is the green. */
.stage-view .c-terminal { --tm-bg: #040906; --tm-fg: #7ff0a6; --tm-dim: #4f9a6c; --tm-ink: #eafff1; --tm-glow: rgba(127, 240, 166, .28); }
.stage-view .tm-win { border: 1px solid rgba(127, 240, 166, .28); border-radius: .35em; overflow: hidden; background: var(--tm-bg);
  box-shadow: 0 .6em 2.2em rgba(0, 0, 0, .55), 0 0 1.6em rgba(70, 220, 130, .08), inset 0 0 3em rgba(70, 220, 130, .05); }
.stage-view .tm-bar { display: flex; align-items: center; gap: .32em; padding: .28em .6em; background: #0c1610; border-bottom: 1px solid rgba(127, 240, 166, .16); }
.stage-view .tm-bar > i { width: .42em; height: .42em; border-radius: 50%; background: rgba(127, 240, 166, .22); flex: none; }
.stage-view .tm-title { margin-left: .5em; font: 700 max(.56em, calc(3vh * var(--scale, 1)))/1.2 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; color: var(--tm-dim); letter-spacing: .02em; }
.stage-view .tm-body { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: .12em; padding: .45em .8em .55em;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: max(.72em, calc(3vh * var(--scale, 1))); line-height: 1.3;
  color: var(--tm-fg); text-shadow: 0 0 .45em var(--tm-glow); }
.stage-view .tm-body.has-cols { grid-template-columns: max-content repeat(calc(var(--cols) - 1), minmax(0, 1fr)); column-gap: 1.1em; }
.stage-view .tm-line { grid-column: 1 / -1; min-width: 0; }
.stage-view .tm-line.cells { display: grid; grid-template-columns: subgrid; align-items: start; padding: .08em 0; }
/* a log with column heads is the densest window: its text columns take the stage's own face (a monospace letter is a third
   wider, and nine rows of it did not fit the 16:9 stage at the hall's floor); the times, the heads and the chrome stay mono */
.stage-view .tm-body.has-head { font-size: max(.64em, calc(3vh * var(--scale, 1))); line-height: 1.17; row-gap: 0; padding-top: .3em; padding-bottom: .4em; }
.stage-view .tm-body.has-head .tm-line.cells:not(.head) .tm-cell:not(.first) { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.stage-view .tm-body.has-head .tm-line.cells:not(.head) + .tm-line.cells:not(.head) { border-top: 1px dashed rgba(127, 240, 166, .1); }
.stage-view .tm-line.head { color: var(--tm-dim); font-weight: 700; padding-bottom: .15em; border-bottom: 1px solid rgba(127, 240, 166, .2); text-transform: uppercase; letter-spacing: .04em; }
.stage-view .tm-cell.first { color: var(--tm-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage-view .tm-line.hl .tm-cell.first { color: inherit; }
.stage-view .tm-pr { color: #b79cff; text-shadow: 0 0 .4em rgba(167, 139, 250, .35); margin-right: .55em; font-weight: 700; }
.stage-view .tm-line.typed .tm-tx { color: var(--tm-ink); }
.stage-view .tm-line.tone-good, .stage-view .tm-cell.tone-good { color: #b4ffc9; }
.stage-view .tm-line.tone-watch, .stage-view .tm-cell.tone-watch { color: #ffc35c; text-shadow: 0 0 .45em rgba(255, 195, 92, .3); }
.stage-view .tm-line.tone-bad, .stage-view .tm-cell.tone-bad { color: #ff8593; text-shadow: 0 0 .45em rgba(255, 107, 125, .35); }
.stage-view .tm-line.tone-agent, .stage-view .tm-cell.tone-agent { color: #c8b6ff; }
.stage-view .tm-line.tone-info, .stage-view .tm-cell.tone-info { color: #9ad0ff; }
.stage-view .tm-line.tone-human, .stage-view .tm-cell.tone-human { color: #ffcf9a; }
/* the line that matters comes forward: larger, its tone's colour, a band behind it, and it glows (twice, then rests lit) */
.stage-view .tm-line.hl { --hc: #b4ffc9; font-size: 1.14em; font-weight: 800; margin: .18em -.45em; padding: .12em .45em; border-radius: .2em;
  background: color-mix(in srgb, var(--hc) 11%, transparent); box-shadow: inset .18em 0 0 var(--hc); color: var(--hc); text-shadow: 0 0 .5em color-mix(in srgb, var(--hc) 55%, transparent); }
.stage-view .tm-line.hl.tone-bad { --hc: #ff8593; } .stage-view .tm-line.hl.tone-watch { --hc: #ffc35c; } .stage-view .tm-line.hl.tone-agent { --hc: #c8b6ff; } .stage-view .tm-line.hl.tone-info { --hc: #9ad0ff; }
.stage-view .tm-ch { position: relative; }
.stage-view .tm-ch::after { content: ''; position: absolute; left: 100%; top: .12em; bottom: .08em; width: .55em; background: var(--tm-fg); box-shadow: 0 0 .4em var(--tm-glow); opacity: 0; }
.stage-view .tm-cur { display: inline-block; width: .55em; height: 1.05em; vertical-align: -.18em; background: var(--tm-fg); box-shadow: 0 0 .4em var(--tm-glow); text-decoration: none; }
/* on the server's clock: the window opens as the part shows; each line at its `--at`; each typed letter at its own */
.stage-view [data-mo] .tm-win { animation: tm-open .45s cubic-bezier(.2, .9, .3, 1.08) both; animation-delay: var(--mo-d, 0ms); }
.stage-view [data-mo] .tm-line { animation: tm-line .22s ease-out both; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)); }
.stage-view [data-mo] .tm-line.hl { animation: tm-line .22s ease-out both, tm-fwd .6s cubic-bezier(.2, .9, .3, 1.15) both, tm-glow 1.3s ease-in-out 2;
  animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)), calc(var(--mo-d, 0ms) + var(--at, 0ms) + 250ms), calc(var(--mo-d, 0ms) + var(--at, 0ms) + 850ms); }
.stage-view [data-mo] .tm-ch { animation: mo-tp .01s linear both; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)); }
.stage-view [data-mo] .tm-ch::after { animation: tm-on var(--cd, 32ms) steps(1) 1; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)); }
.stage-view [data-mo] .tm-cur { animation: mo-tp .01s linear both, caret 1s steps(1) infinite; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)), calc(var(--mo-d, 0ms) + var(--at, 0ms)); }
@keyframes tm-open { from { opacity: 0; transform: translateY(.5em) scale(.96); } }
@keyframes tm-line { from { opacity: 0; transform: translateY(.25em); } }
@keyframes tm-fwd { from { transform: scale(.9); background: transparent; box-shadow: none; text-shadow: none; } }
@keyframes tm-glow { 50% { text-shadow: 0 0 .9em var(--hc), 0 0 .25em var(--hc); background: color-mix(in srgb, var(--hc) 20%, transparent); } }
@keyframes tm-on { from, to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stage-view .tm-win, .stage-view .tm-line, .stage-view .tm-ch, .stage-view .tm-ch::after, .stage-view .tm-cur { animation: none !important; } }

/* rehearsal flags (G19): a thin ribbon, Prova only (the server never sends one in a show) */
.st-flags { position: fixed; right: 0; bottom: 0; z-index: 60; display: flex; gap: .4em; padding: .35em .9em; font: 800 1.6vh/1.2 system-ui, sans-serif; letter-spacing: .08em;
  color: #1a1438; background: repeating-linear-gradient(135deg, #ffd166 0 1.2em, #ffbf3f 1.2em 2.4em); border-top-left-radius: .4em; }
.st-flags[hidden] { display: none; }
.st-flags span + span::before { content: '·'; margin-right: .4em; }

/* the story's colour (G15): the stage's accent while a story plays */
body.stage[style*="--story"] .stage-view .eyebrow { color: var(--story); }
body.stage.has-band[style*="--story"] .st-band { border-bottom-color: var(--story); }
.bd-cell[style*="--bd"]::after { opacity: 1; }
/* a week and a heat row are five narrow cards: they keep the design size when the page grows (stage-fit.ts `grow`), so
   a company's name is not broken inside a word */
.stage-view .c-week, .stage-view .c-heat { font-size: calc(1em / var(--grow, 1)); }
.stage-view .wk-n { font-size: .74em; }

/* the map's small text never under the hall's floor (3vh at the venue's scale): its clock, side labels and legend sat at
   2.6–2.9vh on the Hallederiz night (story review 2026-11-18, D27) */
/* G10 (2026-11-18): emphasis inside a line, and a line the scene rests on set large */
.stage-view .em { font-weight: 800; } .stage-view .em.tone-good { color: var(--good); } .stage-view .em.tone-bad { color: var(--bad); }
.stage-view .em.tone-watch { color: var(--watch); } .stage-view .em.tone-info { color: var(--info); } .stage-view .em.tone-human { color: var(--human); } .stage-view .em.tone-agent { color: var(--aria); }
.stage-view .tl-title.big, .stage-view .tl-quote.big, .stage-view .v-line.big { font-size: 1.35em; line-height: 1.12; }

/* ---------- Hallederiz native blocks (2026-11-18, D29): the platform now carries one show, so the stage speaks its
   language. Composition follows Caner's demo blocks — panels, one thin head band, a coloured bar for tone — at the
   hall's own type sizes. Colours and type stay the platform's. ---------- */
.stage-view { --panel: rgba(255, 255, 255, .035); --panel-line: rgba(255, 255, 255, .1); }
/* (the day's own head band, his `epbar`, is gone: the breadcrumb on the stage's top band says the day and the company, 2026-11-19) */
/* tiles are panels: a box, the tone as a bar on the left, equal height in a row */
.stage-view .tiles { align-items: stretch; gap: .55em .6em; }
.stage-view .tile { --tc: var(--panel-line); padding: .45em .6em; }
.stage-view .tile.tone-neutral:not([style*="--tc"]) { --tc: var(--panel-line); }
/* before → after: two boxes, the after one in the good colour */
.stage-view .ba-side { padding: .4em .6em; }
.stage-view .ba-side.after { --glass: color-mix(in srgb, var(--good) 11%, rgba(14, 22, 24, .7)); --rim: color-mix(in srgb, var(--good) 62%, transparent); --rim-top: color-mix(in srgb, var(--good) 80%, #fff 10%); }
/* speakers are cards: a person's in their colour's bar, Ada's in her own tinted panel (his `adaact`) */
.stage-view .c-voices { display: flex; flex-direction: column; gap: .45em; }
.stage-view .v-card { display: flex; flex-direction: column; gap: 0; padding: .3em .55em; }
.stage-view .v-card.as-aria { --glass: color-mix(in srgb, var(--aria) 13%, rgba(16, 13, 32, .72)); --rim: color-mix(in srgb, var(--aria) 38%, rgba(255, 255, 255, .05)); --rim-top: color-mix(in srgb, var(--aria) 60%, #fff 22%);
  --sheen: color-mix(in srgb, var(--aria) 15%, rgba(255, 255, 255, .06)); --vc: var(--aria); }
/* the lines of one card sit close; the mark's room is kept only on the line that carries it */
.stage-view .v-card > .voice + .voice { margin-top: .4em; }
.stage-view .voice.cont .pt { height: 0; border-width: 0; }
/* panels carry their own padding, so the parts sit closer than plain text did */
.stage-view > .c { margin-bottom: .6em; }
.stage-view .c-voices { gap: .35em; }
.stage-view .tile { padding: .35em .55em; } .stage-view .ba-side { padding: .3em .55em; }
/* a cue is his chip line (✦ ADA KURDU · Akış ajanı): small caps head, no panel */
.stage-view .c-cue { font-weight: 700; font-style: normal; color: var(--ink); } .stage-view .c-cue .cue-icon { color: var(--aria); }
.stage-view .v-line.small { font-size: .78em; line-height: 1.22; }
/* two documents side by side, his ≠ between them */
.stage-view .compare .col { padding: .4em .6em; }
.stage-view .compare.has-sep { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .6em; align-items: stretch; }
.stage-view .cmp-sep { align-self: center; font-size: 1.6em; font-weight: 800; color: var(--bad); }
/* a headline inside the screen (a result, a question) is the screen's subject, one step under the day's own scale */
.stage-view > .c-title:not(:first-child):not(.compact) h1 { font-size: 1.36em; }
/* one speaker's lines in a row are one card (his adaIntro is one card with its paragraphs): `.v-card` (web/render.ts) */

/* ---------- the material (2026-11-19, D32): glass for every panel the stage draws as a box ----------
   The stage's ground is near-black with a little light pooled along its lower edge (`body.stage`, `.st-pool`), so a panel
   cannot read through transparency alone: it has a body (a slate fill, a violet one for Ada), a sheen that falls off from the
   top edge, a crisp 1 px hairline that is brightest on the lit edge, an inner highlight, and a soft two-layer shadow;
   the blur and saturation take over where light is pooled beneath it. Colours and type are the platform's own;
   nothing here is small: it must read at 25 m on an LED wall. */
.stage-view { --card-r: .38em; --glass: rgba(21, 26, 37, .68); --sheen: rgba(255, 255, 255, .085); --rim: rgba(255, 255, 255, .15); --rim-top: rgba(255, 255, 255, .32); }
.stage-view .v-card, .stage-view .tile, .stage-view .ba-side, .stage-view .compare .col {
  border: 1px solid var(--rim); border-top-color: var(--rim-top); border-radius: var(--card-r);
  background: linear-gradient(180deg, var(--sheen) 0%, rgba(255, 255, 255, .02) 48%, rgba(255, 255, 255, .035) 100%), var(--glass);
  -webkit-backdrop-filter: blur(1.5vh) saturate(1.6); backdrop-filter: blur(1.5vh) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 .05em .12em rgba(0, 0, 0, .5), 0 .4em 1.1em -.12em rgba(0, 0, 0, .62); }
/* the tone bar is an inset pill rather than a border: a border bar tapers to a point in a rounded corner */
.stage-view .v-card, .stage-view .tile { position: relative; padding-left: .7em; }
.stage-view .v-card::before, .stage-view .tile::before { content: ''; position: absolute; left: .2em; top: .32em; bottom: .32em; width: .14em; border-radius: .1em; background: var(--bar);
  box-shadow: 0 0 .6em color-mix(in srgb, var(--bar) 55%, transparent); }
.stage-view .v-card { --bar: var(--vc); } .stage-view .tile { --bar: var(--tc); }

/* ---------- a card is its material plus its lines (D32) ----------
   The material has its full size from the card's first line on. A line still waiting for its step keeps its room
   (`.rv-wait` is opacity, never display) and only its text fades in, line by line. The card itself comes in whole with its
   first line; as with `.rv`, the fade belongs to the way in only (a transition on the hidden state would flash). */
.stage-view .v-card:not(:has(> .voice:first-child.rv-wait)) { transition: opacity .5s ease; }
.stage-view .v-card:has(> .voice:first-child.rv-wait) { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .stage-view .v-card { transition: none !important; } }
.mo-still .v-card { transition: none !important; }
/* the typewriter, when REVEAL_STYLE.typewriter is on (web/render-motion.ts): characters wait invisible, in their places */
.stage-view .tw:not(.on) { opacity: 0; }

/* ---------- Ada speaks: her mark shows a small equalizer instead of her glyph while her card is being spoken ----------
   `.talking` is set by `runMotion` from the server's clock (first line's step until SPEAK_HOLD after the last); `.speaking`
   is the same moment on the old typed path. The bars are big (about half the mark) so they read from the back row. */
.stage-view .pt { position: relative; }
.stage-view :is(.pt-aria, .pt.talks) { transition: box-shadow .4s ease, transform .4s ease, opacity .4s ease, color .25s ease; }
.stage-view .pt .eq { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .15em; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.stage-view .pt .eq i { --d: .9s; --l: 0s; width: .2em; height: 1em; border-radius: .09em; background: var(--vc); transform: scaleY(.35); }
.stage-view .v-card.talking > .voice:not(.cont) :is(.pt-aria, .pt.talks), .stage-view .voice.speaking:not(.cont) :is(.pt-aria, .pt.talks) { color: transparent; animation: halo 1.8s ease-in-out infinite; }
.stage-view .v-card.talking > .voice:not(.cont) :is(.pt-aria, .pt.talks) .eq, .stage-view .voice.speaking:not(.cont) :is(.pt-aria, .pt.talks) .eq { opacity: 1; }
.stage-view .v-card.talking > .voice:not(.cont) .eq i, .stage-view .voice.speaking:not(.cont) .eq i { animation: eqbar var(--d) ease-in-out var(--l) infinite; }
.stage-view .pt .eq i:nth-child(2) { --d: .7s; --l: -.3s; } .stage-view .pt .eq i:nth-child(3) { --d: 1.1s; --l: -.55s; } .stage-view .pt .eq i:nth-child(4) { --d: .8s; --l: -.15s; }
.stage-view .pt-person .eq i { background: #10131a; } /* on a person's lit disc the bars take the initial's dark ink */
@keyframes eqbar { 0%, 100% { transform: scaleY(.3); } 35% { transform: scaleY(1); } 65% { transform: scaleY(.5); } }
@media (prefers-reduced-motion: reduce) {
  .stage-view .pt-aria, .stage-view .pt .eq i { animation: none !important; }
  .stage-view .eq i:nth-child(1) { transform: scaleY(.55); } .stage-view .eq i:nth-child(2) { transform: scaleY(.95); }
  .stage-view .eq i:nth-child(3) { transform: scaleY(.7); } .stage-view .eq i:nth-child(4) { transform: scaleY(.45); }
}
/* one speaker's lines in a row are one card (his adaIntro is one card with its paragraphs) */
.stage-view .c-voices:has(.voice.cont) { gap: 0; }
.stage-view .c-voices:has(.voice.cont) .voice:not(.cont) { margin-top: .35em; } .stage-view .c-voices:has(.voice.cont) .voice:first-child { margin-top: 0; }
.stage-view .voice:has(+ .voice.cont) { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: .1em; }
.stage-view .voice.cont { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; padding-top: .15em; }

/* ---------- compose pass (night review 2026-11-19) ---------- */
/* a screen whose parts say where they stand (`lay`, stage-fit.ts `gridded`): wide parts take the row, left and right share one */
.stage-view.lay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3vh; align-content: center; align-items: start; }
.stage-view.lay > .c { margin-top: 0; }
.stage-view.lay > .c-title { grid-column: 1 / -1; }
.stage-view.lay > .c[data-lay="wide"], .stage-view.lay > .c:not([data-lay]) { grid-column: 1 / -1; }
.stage-view.lay > .c[data-lay="left"] { grid-column: 1; } .stage-view.lay > .c[data-lay="right"] { grid-column: 2; }
.stage-view.lay > .c:not(.c-title):not(:has(~ .c)) { margin-bottom: 0; }
.stage-view.lay > .c-voices.bubbles + .c-voices[data-lay="right"] { align-self: center; }
/* a message list as a messaging app draws it: bubbles in a phone-shaped panel, sender over the text, no portrait or quotes */
.stage-view .c-voices.bubbles { background: rgba(255, 255, 255, .03); border: 1px solid var(--panel-line); border-radius: 1em; padding: .4em .5em; gap: .3em; }
.stage-view .voice.bubble { display: block; border: 0; border-radius: .75em .75em .75em .2em; background: color-mix(in srgb, var(--vc) 15%, #141a2b); padding: .2em .55em .25em; width: fit-content; max-width: 100%; }
.stage-view .voice.bubble .v-mark { display: none; }
.stage-view .voice.bubble .v-who { margin: 0; color: color-mix(in srgb, var(--vc) 55%, #fff); }
.stage-view .voice.bubble .v-line, .stage-view .voice.bubble .v-line.small { font-size: .8em; line-height: 1.12; }
.stage-view .voice.bubble.as-person .v-line::before, .stage-view .voice.bubble.as-person .v-line::after { content: none; }
/* a tile whose body is the point (a road not taken: the line saying what would have happened): the body leads, the title steps back */
.stage-view .tile.lead .tl-title { font-size: .66em; font-weight: 700; color: var(--soft); }
.stage-view .tile.lead .tl-body { font-size: .92em; font-weight: 700; color: var(--ink); line-height: 1.2; margin-top: .1em; }
/* an impact box: green improved, grey unchanged, amber worse (the text in the tone's colour too, `marks`) */
.stage-view .tile.tone-good { background: color-mix(in srgb, #34d399 9%, var(--panel)); }
.stage-view .tile.tone-watch { background: color-mix(in srgb, #fbbf24 9%, var(--panel)); }
.stage-view .tile.tone-bad { background: color-mix(in srgb, #f87171 9%, var(--panel)); }
/* a row of three or more large tiles steps the large type down so the row holds (the impact boxes of a result) */
.stage-view .tiles:not(.n1):not(.n2) .tl-title.big { font-size: 1.12em; }
/* a dramatic end line */
.stage-view .c-big.tone-bad .big-text { color: #ff6b6b; text-shadow: 0 0 .5em rgba(248, 113, 113, .45); }
.stage-view .c-big.tone-good .big-text { color: #45d99a; } .stage-view .c-big.tone-watch .big-text { color: #fbbf24; }
/* the real centre screen is 2.8:1 (5376×1920): the map is as wide as its column, so on a screen this wide it grew past the room
   the title, legend and counters leave it, and the whole page shrank below the hall's floor (S10/E1/1: 2.1vh at 2688×960).
   Its height stops where it is on 16:9, which also keeps its city names above 3vh. 16:9 is untouched. */
@media (min-aspect-ratio: 2/1) { .stage-view .mp-fig svg { max-height: 38vh; } }
/* merge of #107 (glass cards) and #109 (messaging bubbles): inside a message list the card is only a wrapper; the bubble
   draws itself, so the glass material and tone bar step aside */
.stage-view .c-voices.bubbles .v-card { border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
.stage-view .c-voices.bubbles .v-card::before { content: none; }

/* ---------- box layout pass (2026-11-19 afternoon, after the morning's live run on 60cafad) ----------
   The hall's centre LED is 2.8:1 (5376×1920). The stage's type is sized in vh, so on a screen that wide every part ran the
   full width at the same type size: long thin boxes with the words in their left corner and the right two thirds empty, a
   list's numbers a metre away from their labels. Past 2:1 the stage's content keeps a 2:1 field in the middle (the same
   measure a 16:9 screen has, a little wider); the light pools and the band's background still run edge to edge. */
@media (min-aspect-ratio: 2/1) {
  body.stage { --side: max(4.6vw, calc((100vw - 200vh) / 2)); }
  body.stage .stage-view { padding-left: var(--side); padding-right: var(--side); }
  body.stage.has-band .st-band { padding-left: var(--side); padding-right: var(--side); }
}
/* a screen without a title stood at the top of the stage with the lower half empty (one Ada line, two statements): the
   parts as one block sit in the middle of the room, the same as under a title. Room held for a later layer is part of the
   block, so nothing moves when that layer opens. */
.stage-view > .c:first-child:not(.c-title) { margin-top: auto; }
/* five or six options in one row on 16:9 were columns three words wide, and the hall's type broke words inside
   ("hazırlama|k"): options that say more than a word or two go three to a line (3+3, 3+2; render.ts `talky`), on the 2.8:1
   LED too, where the stage's field is 2:1 (above). */
.stage-view .tiles.talky.n5, .stage-view .tiles.talky.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* before → after: the two boxes are one picture, so they stand the same height (a one-line "before" beside a two-line
   "after" read as a small box and a big one) */
.stage-view .ba { align-items: stretch; } .stage-view .ba-arrow { align-self: center; }
/* two voices side by side (a result's people) stand the same height: a three-line card beside a one-line one read as a
   tall box and a stub. A message list and the line it provokes keep their own heights (the line sits in the middle). */
.stage-view.lay > .c-voices[data-lay="left"]:not(.bubbles), .stage-view.lay > .c-voices[data-lay="right"] { align-self: stretch; }
.stage-view.lay > .c-voices[data-lay]:not(.bubbles) > .v-card:only-child { flex: 1 1 auto; }
/* the map's side boxes are the same material as every other box on the stage (they were bare hairline boxes beside glass
   cards), and a ticker line as the box's head ("22:01 Erzurum 3") breaks evenly rather than leaving the "3" alone */
.stage-view .mp-tile { border: 1px solid var(--rim); border-top-color: var(--rim-top); border-radius: var(--card-r); padding: .35em .55em;
  background: linear-gradient(180deg, var(--sheen) 0%, rgba(255, 255, 255, .02) 48%, rgba(255, 255, 255, .035) 100%), var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 .4em 1.1em -.12em rgba(0, 0, 0, .62); }
.stage-view .mp-tile.hl { border-color: rgba(255, 209, 102, .55); }
.stage-view .mp-tile b { text-wrap: balance; }

/* the stage's stop-motion films (wave 3, stage-stopmotion.ts): over everything, then a fade to the layer's content */
iframe.stopmotion { position: fixed; inset: 0; width: 100vw; height: 100vh; border: 0; z-index: 1000; background: #05070f; opacity: 1; transition: opacity .6s ease; pointer-events: none; }
iframe.stopmotion.out { opacity: 0; }

/* ---- a package's game (2026-11-22, web/stage-game.ts): one layer for the page's life, over the slot or the stage ---- */
.c-game { width: 100%; }
.c-game.fit { aspect-ratio: 16 / 9; }
.c-game.fill { min-height: 60vh; }
.st-game { position: fixed; z-index: 30; overflow: hidden; background: #0b0b1e; pointer-events: none; }
.st-game.fill { inset: 0; }
.st-game[hidden] { display: none; }

/* ---------- 2026-11-23 (Agentic Turşucu): unasked questions, a struck card, a confetti burst ---------- */
/* asks: who → whom, the question on a red dashed arrow between them; one row per question */
.stage-view .asks { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; gap: .55em .6em; }
/* each row spans the shared columns (subgrid), so every arrow is as long as the others */
.stage-view .ask { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.stage-view .ak-end { white-space: nowrap; }
.stage-view .ak-end { font-weight: 800; font-size: .82em; line-height: 1.2; padding: .45em .6em; border-radius: .4em; background: var(--card, rgba(255,255,255,.06));
  border-left: .22em solid var(--ac, var(--accent)); }
.stage-view .ak-to { text-align: right; border-left: none; border-right: .22em solid var(--ac, var(--accent)); }
.stage-view .ak-arrow { position: relative; text-align: center; }
.stage-view .ak-q { font-size: .8em; line-height: 1.2; font-weight: 700; color: #ffd7df; margin-bottom: .25em; }
.stage-view .ak-line { position: relative; border-top: .14em dashed #ff6b8a; margin-right: .75em; }
.stage-view .ak-line::after { content: ''; position: absolute; right: -.55em; top: -.42em; border-left: .6em solid #ff6b8a; border-top: .35em solid transparent; border-bottom: .35em solid transparent; }
.stage-view .ak-note { font-size: .6em; color: var(--soft); margin-top: .2em; font-style: italic; }
.stage-view .ak-caption { font-size: .66em; color: var(--soft); margin-top: .4em; }
/* a card that cannot be taken: its title struck in red */
.stage-view .card.struck .card-title { text-decoration: line-through; text-decoration-color: #f87171; text-decoration-thickness: .09em; color: var(--soft); }
/* a confetti burst: falls once over the part from when it shows (--mo-d), takes no room, is gone after */
.has-burst { position: relative; }
.mo-burst { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mo-piece { position: absolute; top: -6%; width: .5em; height: .85em; border-radius: .12em; opacity: 0;
  animation: mo-fall 2.8s cubic-bezier(.3,.6,.5,1) 1 both; animation-delay: calc(var(--mo-d, 0ms) + var(--pd, 0ms)); }
@keyframes mo-fall { 0% { opacity: 1; top: -6%; transform: translateX(0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; top: 100%; transform: translateX(var(--px, 0)) rotate(540deg); } }
.mo-still .mo-piece { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .mo-piece { animation: none !important; opacity: 0; } }
/* a scene the package draws itself (2026-11-23, stage-native.ts): the slot takes its room in the layout, the layer draws
   over it (`fit`) or over the whole stage (`fill`), under the rehearsal flags (z 60) and the technical check */
.c-native { width: 100%; }
.c-native.fit { aspect-ratio: 16 / 9; }
.c-native.fill { min-height: 60vh; }
.st-native { position: fixed; z-index: 30; overflow: hidden; background: #050a1c; }
.st-native.fill { inset: 0; }
.st-native[hidden] { display: none; }

/* ---- web/css/stage-flow.css ---- */
/* ---------- `flow` (2026-11-19): a rule as a process, drawn like a live model of the organisation ----------
   Stages are glass boxes left to right; the links between them are wires with an agent node in the middle; a spark crosses
   each link in turn and the node it passes fires, on the server's clock (`--mo-d`, web/render-motion.ts `flowEl`), so every
   window shows the same frame. A pick's beat lights its stage (`.by-p1`, `.by-p2`) and, once both picks are in, the path
   between them (`.by-p12`); the floor is a red dashed line under the flow; the trail is the log every decision drops into.
   Nothing here is under the hall's floor: the smallest text is .66em (3vh). Without motion (reduced motion, the back
   office's switch) every animation is off and the picture is its final state. */
.stage-view .c-flow { --fc: #45d99a; --fl-link: 1.5em; --fl-wire: rgba(255, 255, 255, .26); }
.stage-view .fl-grid { display: grid; row-gap: .55em; align-items: start; }
.stage-view .fl-row { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: subgrid; align-items: stretch; }
.stage-view .fl-pick { grid-row: 2; }
.stage-view .fl-floor { grid-column: 1 / -1; grid-row: 3; }
.stage-view .fl-trail { grid-column: 1 / -1; grid-row: 4; }

/* a stage: the stage's glass material (stage.css, D32) */
.stage-view .fl-stage { position: relative; min-width: 0; display: flex; flex-direction: column; gap: .16em; padding: .38em .5em .42em;
  border: 1px solid var(--rim); border-top-color: var(--rim-top); border-radius: var(--card-r);
  background: linear-gradient(180deg, var(--sheen) 0%, rgba(255, 255, 255, .02) 48%, rgba(255, 255, 255, .035) 100%), var(--glass);
  -webkit-backdrop-filter: blur(1.5vh) saturate(1.6); backdrop-filter: blur(1.5vh) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 .05em .12em rgba(0, 0, 0, .5), 0 .4em 1.1em -.12em rgba(0, 0, 0, .62);
  transition: border-color .6s ease, box-shadow .6s ease; }
.stage-view .fl-label { font-size: .8em; font-weight: 800; line-height: 1.1; color: var(--ink); }
.stage-view .fl-sub { font-size: .66em; line-height: 1.15; color: var(--soft); }
.stage-view .fl-opts { display: flex; flex-direction: column; gap: .16em; margin-top: .08em; }
.stage-view .fl-opt { font-size: .66em; font-weight: 600; line-height: 1.12; padding: .12em .38em; border-radius: .28em; color: var(--soft);
  border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .03); transition: opacity .6s ease, background-color .6s ease, border-color .6s ease, color .6s ease; }
.stage-view .fl-agent { margin-top: auto; padding-top: .12em; display: flex; align-items: center; gap: .32em; font-size: .66em; line-height: 1.12; color: var(--soft); }
.stage-view .fl-ring { flex: none; width: .62em; height: .62em; border-radius: 50%; border: .12em solid var(--aria); box-shadow: 0 0 .5em color-mix(in srgb, var(--aria) 70%, transparent); }

/* a link: a wire with an arrowhead, its agent node in the middle, and the spark that crosses it */
.stage-view .fl-link { position: relative; min-width: 0; color: var(--fl-wire); }
.stage-view .fl-wire { position: absolute; left: 0; right: .06em; top: 50%; height: .07em; margin-top: -.035em; background: currentColor; transform-origin: left center; transition: color .6s ease; }
.stage-view .fl-wire::after { content: ''; position: absolute; right: 0; top: 50%; width: .26em; height: .26em; border-top: .07em solid currentColor; border-right: .07em solid currentColor; transform: translate(0, -50%) rotate(45deg); }
.stage-view .fl-node { position: absolute; left: 50%; top: 50%; width: .46em; height: .46em; margin: -.23em 0 0 -.23em; border-radius: 50%; background: #0b0d16;
  border: .1em solid var(--aria); box-shadow: 0 0 .45em color-mix(in srgb, var(--aria) 60%, transparent); }
.stage-view .fl-spark { position: absolute; left: 0; top: 50%; width: .3em; height: .3em; margin: -.15em 0 0 -.15em; border-radius: 50%; background: #fff;
  box-shadow: 0 0 .45em .08em var(--aria); opacity: 0; }

/* the hall's picks light where they act: the stage, the option taken (the others step back), then the path between them */
.stage-view .c-flow:has(.fl-pick.p1:not(.rv-wait)) .fl-stage.by-p1, .stage-view .c-flow:has(.fl-pick.p2:not(.rv-wait)) .fl-stage.by-p2 {
  --rim: color-mix(in srgb, var(--fc) 70%, transparent); --rim-top: var(--fc);
  box-shadow: 0 0 0 .05em var(--fc), 0 0 1.5em -.25em var(--fc), inset 0 1px 0 rgba(255, 255, 255, .13), 0 .4em 1.1em -.12em rgba(0, 0, 0, .62); }
.stage-view .c-flow:has(.fl-pick.p1:not(.rv-wait)) .by-p1 .fl-opt.on, .stage-view .c-flow:has(.fl-pick.p2:not(.rv-wait)) .by-p2 .fl-opt.on {
  color: var(--ink); font-weight: 800; border-color: var(--fc); background: color-mix(in srgb, var(--fc) 28%, transparent); }
.stage-view .c-flow:has(.fl-pick.p1:not(.rv-wait)) .by-p1 .fl-opt:not(.on), .stage-view .c-flow:has(.fl-pick.p2:not(.rv-wait)) .by-p2 .fl-opt:not(.on) { opacity: .42; }
.stage-view .c-flow:has(.fl-pick.p1:not(.rv-wait)):has(.fl-pick.p2:not(.rv-wait)) .fl-stage.by-p12 { --rim: color-mix(in srgb, var(--fc) 60%, transparent); --rim-top: var(--fc);
  box-shadow: 0 0 1.1em -.35em var(--fc), inset 0 1px 0 rgba(255, 255, 255, .13), 0 .4em 1.1em -.12em rgba(0, 0, 0, .62); }
.stage-view .c-flow:has(.fl-pick.p1:not(.rv-wait)):has(.fl-pick.p2:not(.rv-wait)) .fl-link.by-p12 { color: var(--fc); }
.stage-view .c-flow:has(.fl-pick.p1:not(.rv-wait)):has(.fl-pick.p2:not(.rv-wait)) .fl-link.by-p12 .fl-node { border-color: var(--fc); box-shadow: 0 0 .6em var(--fc); }
.stage-view .c-flow:has(.fl-pick.p1:not(.rv-wait)):has(.fl-pick.p2:not(.rv-wait)) .fl-link.by-p12 .fl-spark { box-shadow: 0 0 .5em .12em var(--fc); }

/* a pick's callout: the stage's colour as its bar */
.stage-view .fl-pick { position: relative; min-width: 0; padding: .3em .55em .36em .72em; border-radius: var(--card-r);
  border: 1px solid color-mix(in srgb, var(--fc) 40%, transparent); border-top-color: color-mix(in srgb, var(--fc) 75%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 12%, transparent), rgba(255, 255, 255, .02)), var(--glass); }
.stage-view .fl-pick::before { content: ''; position: absolute; left: .2em; top: .3em; bottom: .3em; width: .14em; border-radius: .1em; background: var(--fc); box-shadow: 0 0 .6em color-mix(in srgb, var(--fc) 55%, transparent); }
.stage-view .fl-kicker { font-size: .66em; font-weight: 800; letter-spacing: .03em; line-height: 1.15; color: var(--fc); }
.stage-view .fl-pick .fl-text { display: block; font-size: .72em; font-weight: 600; line-height: 1.18; color: var(--ink); text-wrap: pretty; }

/* the floor: under every rule, never voted */
.stage-view .fl-floor { position: relative; margin-top: .2em; padding-top: .42em; border-top: .09em dashed var(--bad); }
.stage-view .fl-floor::before { content: ''; position: absolute; left: 0; right: 0; top: -.09em; height: 1.1em; background: linear-gradient(180deg, color-mix(in srgb, var(--bad) 7%, transparent), transparent); pointer-events: none; }
.stage-view .fl-floor .fl-kicker { color: var(--bad); }
.stage-view .fl-lines { display: grid; gap: .16em 1.1em; margin-top: .14em; }
.stage-view .fl-lines.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stage-view .fl-lines.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stage-view .fl-lines.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stage-view .fl-lines span { position: relative; padding-left: .75em; font-size: .66em; line-height: 1.18; color: var(--ink); text-wrap: pretty; }
.stage-view .fl-floor .fl-lines span::before { content: ''; position: absolute; left: 0; top: .5em; width: .42em; height: .09em; background: var(--bad); }

/* the trail: the log every decision drops into */
.stage-view .fl-trail { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em 1.1em; padding-top: .32em; }
.stage-view .fl-trail .fl-head { display: flex; align-items: baseline; gap: .45em; }
.stage-view .fl-trail .fl-kicker { color: var(--info); border: 1px solid color-mix(in srgb, var(--info) 55%, transparent); border-radius: .3em; padding: .02em .38em; }
.stage-view .fl-trail .fl-text { font-size: .72em; font-weight: 600; color: var(--ink); }
.stage-view .fl-trail .fl-lines { margin: 0; display: flex; flex-wrap: wrap; gap: .1em 1.1em; }
.stage-view .fl-trail .fl-lines span { font-size: .72em; color: var(--soft); padding-left: 0; }
.stage-view .fl-log { position: absolute; left: 0; right: 0; top: 0; height: .07em; background: color-mix(in srgb, var(--info) 30%, transparent); overflow: hidden; }
.stage-view .fl-log i { position: absolute; top: 0; left: 0; width: .5em; height: 100%; background: var(--info); box-shadow: 0 0 .4em var(--info); opacity: 0; }

/* motion on the server's clock: the stages come in left to right, the wires draw, then the signal runs (4.2 s a round,
   0.7 s a link: render-motion.ts FLOW_HOP / FLOW_CYCLE) */
.stage-view [data-mo] .fl-stage { animation: fl-in .55s ease-out both; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms) / 4); }
.stage-view [data-mo] .fl-wire { animation: fl-draw .4s ease-out both; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms) / 4 + 250ms); }
.stage-view [data-mo] .fl-spark { animation: fl-spark 4.2s linear infinite; animation-delay: calc(var(--mo-d, 0ms) + 1200ms + var(--at, 0ms)); }
.stage-view [data-mo] .fl-node { animation: fl-fire 4.2s ease-out infinite; animation-delay: calc(var(--mo-d, 0ms) + 1200ms + var(--at, 0ms)); }
.stage-view [data-mo] .fl-ring { animation: fl-ring 4.2s ease-out infinite; animation-delay: calc(var(--mo-d, 0ms) + 1200ms + var(--at, 0ms)); }
.stage-view [data-mo] .fl-log i { animation: fl-log 4.2s linear infinite; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)); }
@keyframes fl-in { from { opacity: 0; transform: translateY(.25em); } }
@keyframes fl-draw { from { transform: scaleX(0); } }
@keyframes fl-spark { 0% { left: 0; opacity: 0; } 2.5% { opacity: 1; } 16.67% { left: 100%; opacity: 1; } 19%, 100% { left: 100%; opacity: 0; } }
@keyframes fl-fire { 0%, 5% { transform: scale(1); } 8.33% { transform: scale(1.55); background: currentColor; } 17%, 100% { transform: scale(1); } }
@keyframes fl-ring { 0% { transform: scale(1.5); box-shadow: 0 0 .9em .15em var(--aria); } 10%, 100% { transform: scale(1); } }
@keyframes fl-log { 0% { left: -.5em; opacity: 0; } 4% { opacity: .9; } 96% { opacity: .9; } 100% { left: 100%; opacity: 0; } }
.mo-still .fl-stage, .mo-still .fl-wire, .mo-still .fl-spark, .mo-still .fl-node, .mo-still .fl-ring, .mo-still .fl-log i { animation: none !important; }
.mo-still .fl-stage, .mo-still .fl-opt, .mo-still .fl-wire { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .stage-view .fl-stage, .stage-view .fl-wire, .stage-view .fl-spark, .stage-view .fl-node, .stage-view .fl-ring, .stage-view .fl-log i { animation: none !important; }
  .stage-view .fl-stage, .stage-view .fl-opt, .stage-view .fl-wire { transition: none !important; }
}

/* ---- web/css/notebook.css ---- */
/* ---------- notebook: a paper notebook and its owner's avatar (wave 3, 2026-11-19; web/render-notebook.ts) ----------
   Warm paper on the dark stage, ink in navy, printed day labels. Sizes are the stage's (1em = 4.6vh): nothing under .66em.
   The handwriting is the system's own (no web font): a hand where the machine has one, else an italic serif; a family
   without an italic face is used upright (`font-synthesis: none`), never slanted by the browser.
   Motion: every keyframe runs FROM its start state TO the element's resting style, delayed by the part's `shownAt` minus
   the server's now (`--mo-d`) plus the element's own `--at` (notebookTimes): every window draws the same frame, and with
   no motion the notebook is simply complete (the leaves turned away, every note written). */
.stage-view .c-notebook {
  --oc: #cdb9ff; --paper: #e9e0c8; --paper-2: #ddd2b6; --ink: #1d2b55; --print: #5d5444; --rule-ink: rgba(70, 92, 140, .3);
  --kraft: #b98b57; --kraft-2: #9c7142; --band: #2a2230;
  --hand: "Bradley Hand", "Noteworthy", "Segoe Print", "Ink Free", Georgia, "Times New Roman", serif;
  --noise: 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 .32 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink); }

/* the owner: an abstract avatar in a halo that breathes, brighter while the owner's card speaks */
.stage-view .nb-owner { margin: 0; flex: none; }
.stage-view .nb-av { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 .35em color-mix(in srgb, var(--oc) 45%, transparent)); }
.stage-view .nb-glow, .stage-view .nb-halo { transform-box: fill-box; transform-origin: center; }
.stage-view .nb-halo { opacity: .55; }
.stage-view [data-mo] .nb-glow { animation: nb-breathe 5.2s ease-in-out infinite; animation-delay: var(--mo-d, 0ms); }
.stage-view [data-mo] .nb-halo { animation: nb-halo 5.2s ease-in-out infinite; animation-delay: var(--mo-d, 0ms); }
@keyframes nb-breathe { 50% { opacity: .55; transform: scale(.93); } }
@keyframes nb-halo { 50% { opacity: .3; transform: scale(1.025); } }
/* the owner speaks (Ada's card is `.talking`, render-motion.ts): the halo quickens and lights */
.stage-view:has(.v-card.talking .pt-aria) .nb-owner .nb-halo { animation: nb-speak 1.1s ease-in-out infinite; opacity: .95; }
.stage-view:has(.v-card.talking .pt-aria) .nb-owner .nb-glow { animation: none; opacity: 1; }
@keyframes nb-speak { 50% { opacity: .55; transform: scale(1.045); } }

/* ---------- closed: the avatar beside a kraft notebook with its band (Ada's intro) ---------- */
/* the avatar and, in front of it at her side, the notebook she carries: one narrow figure beside her lines */
.stage-view .c-notebook.closed { display: flex; align-items: center; justify-content: center; }
.stage-view.lay > .c-notebook.closed { align-self: center; margin-top: auto; margin-bottom: auto; }
.stage-view .nb-fig { position: relative; flex: none; width: 7.6em; height: 8.2em; }
.stage-view .c-notebook.closed .nb-owner { position: absolute; left: 0; top: 0; width: 5.9em; height: 5.9em; }
.stage-view.lay:has(> .c-notebook.closed[data-lay="left"]) { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 5vh; }
.stage-view .nb-cover { position: absolute; right: 0; bottom: 0; width: 3.5em; height: 4.8em; font-size: 1em; border-radius: .18em .42em .42em .18em;
  background: var(--noise), linear-gradient(100deg, var(--kraft-2) 0 4%, var(--kraft) 9% 70%, color-mix(in srgb, var(--kraft) 85%, #fff) 100%);
  box-shadow: inset .14em 0 0 rgba(0, 0, 0, .28), inset -.05em 0 0 rgba(255, 255, 255, .12), .06em .07em 0 #e6dcc4, .12em .14em 0 #d5c9ab, .5em .9em 1.6em -.2em rgba(0, 0, 0, .7);
  transform: rotate(-3deg); }
.stage-view .nb-cover .nb-label { position: absolute; left: 14%; right: 24%; top: 20%; padding: .15em .2em; border-radius: .08em; text-align: center;
  background: var(--paper); color: var(--ink); font-family: var(--hand); font-style: italic; font-synthesis: none; font-size: .8em; line-height: 1.15;
  box-shadow: 0 .03em .08em rgba(0, 0, 0, .35); overflow-wrap: anywhere; }
.stage-view .nb-cover .nb-band { position: absolute; top: -.05em; bottom: -.05em; right: 12%; width: .28em; border-radius: .06em; background: linear-gradient(90deg, #15111b, var(--band) 45%, #3c3346);
  box-shadow: .04em 0 .1em rgba(0, 0, 0, .5); }
.stage-view .nb-cover .nb-ribbon { position: absolute; bottom: -.55em; left: 46%; width: .3em; height: .8em; background: var(--oc); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); opacity: .85; }
@keyframes nb-float { 50% { transform: rotate(-3deg) translateY(-.08em); } }
.stage-view [data-mo] .nb-cover { animation: nb-float 6.4s ease-in-out infinite; animation-delay: var(--mo-d, 0ms); }

/* ---------- open: a spread seen from above, the earlier notes on the left, today's on the right ---------- */
.stage-view .c-notebook.open { padding: .25em 0 .5em; }
.stage-view .nb-book { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 33em); min-height: 10.5em; margin: 0 auto;
  border-radius: .22em; box-shadow: 0 .14em 0 #cfc4a7, 0 .26em 0 #bfb394, 0 1.1em 2.4em -.3em rgba(0, 0, 0, .75); }
.stage-view .nb-page { position: relative; min-width: 0; padding: .7em 1em .8em 1.1em; background-color: var(--paper);
  background-image: var(--noise), linear-gradient(90deg, rgba(0, 0, 0, 0) 80%, rgba(60, 45, 20, .22)); }
.stage-view .nb-left { border-radius: .22em 0 0 .22em; padding-right: 1.3em; }
.stage-view .nb-right { border-radius: 0 .22em .22em 0; padding-left: 1.4em; background-image: var(--noise), linear-gradient(270deg, rgba(0, 0, 0, 0) 80%, rgba(60, 45, 20, .26)); }
.stage-view .nb-spine { position: absolute; top: 0; bottom: 0; left: calc(50% - .06em); width: .12em; background: linear-gradient(90deg, rgba(40, 28, 10, .35), rgba(255, 255, 255, .25), rgba(40, 28, 10, .35)); }
/* the band of an open notebook hangs loose over its right edge */
.stage-view .nb-book > .nb-band { position: absolute; top: 12%; bottom: -.2em; right: -.36em; width: .26em; border-radius: .08em; background: linear-gradient(90deg, #15111b, var(--band) 45%, #3c3346); box-shadow: .05em .08em .14em rgba(0, 0, 0, .55); }
.stage-view .nb-head { display: flex; align-items: center; gap: .45em; margin-bottom: .45em; }
.stage-view .nb-head .nb-owner { width: 1.6em; height: 1.6em; border-radius: 50%; background: radial-gradient(circle, #2b2242 60%, #1a1426); box-shadow: 0 .03em .1em rgba(0, 0, 0, .45); }
.stage-view .nb-title { display: flex; flex-direction: column; color: var(--print); line-height: 1.15; }
.stage-view .nb-title b { font-size: .74em; font-weight: 800; letter-spacing: .03em; }
.stage-view .nb-title span { font-size: .66em; font-weight: 600; }
.stage-view .nb-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3em; }
.stage-view .nb-kicker { font-size: .66em; font-weight: 700; letter-spacing: .05em; color: var(--print); line-height: 1.2; }
/* a written line sits on its rule: the rules are the text block's own, one per line, a little under the baseline */
.stage-view .nb-text { font-family: var(--hand); font-style: italic; font-synthesis: none; font-size: .84em; line-height: 1.34em; color: var(--ink); text-wrap: pretty;
  background: linear-gradient(to bottom, transparent calc(100% - .06em), var(--rule-ink) 0) 0 -.22em / 100% 1.34em; }
.stage-view .nb-empty { height: 2.4em; background: linear-gradient(to bottom, transparent calc(100% - .055em), rgba(70, 92, 140, .18) 0) 0 .4em / 100% 1.1em no-repeat, linear-gradient(to bottom, transparent calc(100% - .055em), rgba(70, 92, 140, .18) 0) 0 1.5em / 100% 1.1em no-repeat; }
.stage-view .nb-today { height: 100%; justify-content: center; }
.stage-view .nb-written .nb-kicker { font-size: .7em; }
.stage-view .nb-written .nb-text { font-size: 1.16em; }
.stage-view .nb-note { margin-top: .45em; font-size: .7em; line-height: 1.25; color: var(--print); font-family: Georgia, "Times New Roman", serif; font-style: italic; text-wrap: pretty; }
.stage-view .nb-w { display: inline-block; padding: 0 .12em .12em; margin: 0 -.12em -.12em; }

/* the leaves on the right page turn over to the left and fade as they pass; the first is the cover */
.stage-view .nb-leaves { position: absolute; top: 0; bottom: 0; left: 50%; right: 0; perspective: 180em; pointer-events: none; }
.stage-view .nb-leaf { position: absolute; inset: 0; border-radius: 0 .22em .22em 0; transform-origin: 0 50%; opacity: 0; transform: rotateY(-180deg);
  background-color: var(--paper); background-image: var(--noise), linear-gradient(270deg, rgba(0, 0, 0, 0) 75%, rgba(60, 45, 20, .3)); box-shadow: -.1em 0 .4em rgba(0, 0, 0, .25); }
.stage-view .nb-leaf.nb-front { background-color: var(--kraft); background-image: var(--noise), linear-gradient(90deg, var(--kraft-2), var(--kraft) 12%); }
.stage-view .nb-leaf.nb-front::after { content: ''; position: absolute; top: 0; bottom: 0; right: 12%; width: .28em; background: linear-gradient(90deg, #15111b, var(--band) 45%, #3c3346); }
.stage-view [data-mo] .nb-leaf { animation: nb-turn 850ms cubic-bezier(.5, .05, .4, 1) both; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)); }
@keyframes nb-turn { from { opacity: 1; transform: rotateY(0deg); } 50% { opacity: 1; transform: rotateY(-90deg); } 72% { opacity: 0; transform: rotateY(-135deg); } }
.stage-view [data-mo] .nb-earlier { animation: nb-in .45s ease-out both; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)); }
@keyframes nb-in { from { opacity: 0; transform: translateY(.12em); } }
/* the pen: each word opens from left to right in its turn (handWords), as long as its letters take */
.stage-view [data-mo] .nb-written .nb-w { animation: nb-pen var(--ms, 100ms) linear both; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)); }
@keyframes nb-pen { from { clip-path: inset(0 100% 0 0); } }
.stage-view [data-mo] .nb-written .nb-kicker { animation: nb-in .4s ease-out both; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms) - 300ms); }
.stage-view [data-mo] .nb-written .nb-note { animation: nb-in .5s ease-out both; animation-delay: calc(var(--mo-d, 0ms) + var(--at, 0ms)); }

.mo-still .c-notebook *, .mo-still .c-notebook { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .stage-view .c-notebook, .stage-view .c-notebook * { animation: none !important; } }

/* ---- web/css/stage-live.css ---- */
/* ---------- the live kinds (2026-11-21; web/render-live.ts): an approval stream, a work line, paired bars ----------
   Sizes follow the stage's rule (stage.css): nothing under .66em of the stage's 4.6vh. */

/* stream: the card on the phones now, its time left, the answers so far */
.stage-view .c-stream { display: grid; gap: .55em; }
.stage-view .sm-card { position: relative; padding: .55em .8em .7em; border-radius: .35em; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 .06em rgba(255,255,255,.14); }
.stage-view .sm-kicker { font-size: .66em; font-weight: 700; letter-spacing: .12em; color: var(--dim); }
.stage-view .sm-title { font-size: 1.25em; font-weight: 800; line-height: 1.1; margin-top: .15em; text-wrap: balance; }
.stage-view .sm-card.wait .sm-title, .stage-view .sm-card.done .sm-title { color: var(--soft); }
.stage-view .sm-bar { position: absolute; left: 0; right: 0; bottom: 0; height: .14em; border-radius: 0 0 .35em .35em; overflow: hidden; background: rgba(255,255,255,.08); }
.stage-view .sm-bar > i { display: block; height: 100%; width: 0; background: #fbbf24; }
.stage-view .sm-counts { display: flex; gap: 1.4em; }
.stage-view .sm-n { display: flex; flex-direction: column; padding-left: .45em; border-left: .08em solid var(--rule); }
.stage-view .sm-n.ans { border-color: #34d399; } .stage-view .sm-n.sil { border-color: #fbbf24; }
.stage-view .sm-v { font-size: 1.4em; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stage-view .sm-l { font-size: .66em; color: var(--soft); margin-top: .25em; }
.stage-view .sm-syn { font-size: .66em; color: var(--dim); }

/* line: a work line, stations left to right, hand-off gates between them, items flowing on the server's clock */
.stage-view .c-line { --wl-link: minmax(2.4em, .8fr); display: grid; gap: .7em; }
.stage-view .wl-row { display: grid; align-items: center; }
.stage-view .wl-link { align-self: stretch; }
.stage-view .wl-station { --wc: #6cb4ff; position: relative; align-self: stretch; display: flex; flex-direction: column; gap: .2em; padding: .45em .55em .5em; border-radius: .3em;
  background: color-mix(in srgb, var(--wc) 16%, #0b0f16); box-shadow: inset 0 0 0 .07em color-mix(in srgb, var(--wc) 70%, transparent); min-width: 0; min-height: 3.2em; }
.stage-view .wl-label { font-weight: 800; line-height: 1.05; white-space: nowrap; overflow-wrap: normal; }
.stage-view .wl-sub { font-size: .66em; color: var(--soft); line-height: 1.2; }
.stage-view .wl-load { height: .16em; border-radius: .1em; background: rgba(255,255,255,.1); overflow: hidden; margin-top: auto; flex: none; }
.stage-view .wl-load > i { display: block; height: 100%; background: var(--wc); transition: width .3s ease; }
.stage-view .wl-queue { font-size: .66em; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; }
.stage-view .wl-queue.on { color: #fbbf24; }
.stage-view .wl-link { position: relative; display: grid; grid-template-rows: 1fr auto 1fr; padding: 0 .15em; min-width: 0; }
.stage-view .wl-track { grid-row: 2; }
.stage-view .wl-gate { grid-row: 1; align-self: end; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .05em; padding-bottom: .15em; }
.stage-view .wl-gate-l, .stage-view .wl-gate-b { overflow-wrap: normal; }
.stage-view .wl-gate-l { font-size: .66em; color: var(--soft); line-height: 1.15; }
.stage-view .wl-gate-b { font-size: .66em; font-weight: 800; color: var(--dim); font-variant-numeric: tabular-nums; }
.stage-view .wl-gate-b.on { color: #f87171; }
.stage-view .wl-track { position: relative; height: .5em; overflow: hidden; }
.stage-view .wl-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: .06em; background: var(--rule); }
.stage-view .wl-item { position: absolute; top: 50%; left: 0; width: .34em; height: .34em; margin-top: -.17em; border-radius: .08em; background: #e8edf5;
  animation-name: wl-move; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes wl-move { from { left: -6%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: 100%; opacity: 0; } }
.stage-view .wl-busy .wl-item { animation-timing-function: steps(9, end); }
.stage-view .wl-flow .wl-item { background: #2fbf71; box-shadow: 0 0 .3em #2fbf71; }
.stage-view .wl-calm .wl-item { background: #9ee6c0; opacity: .8; }
.stage-view .wl-calm .wl-station { box-shadow: inset 0 0 0 .07em color-mix(in srgb, #2fbf71 60%, transparent); }
.stage-view .wl-idle .wl-station { opacity: .75; }
.stage-view .wl-nums { display: flex; gap: 2em; align-items: flex-end; }
.stage-view .wl-n { display: flex; flex-direction: column; padding-left: .45em; border-left: .08em solid var(--nc, var(--rule)); min-width: 6em; }
.stage-view .wl-effort { --nc: #f59e0b; } .stage-view .wl-output { --nc: #2fbf71; }
.stage-view .wl-v { font-size: 1.6em; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stage-view .wl-v small { font-size: .45em; font-weight: 700; color: var(--soft); letter-spacing: 0; }
.stage-view .wl-l { font-size: .66em; color: var(--soft); margin-top: .25em; }
.stage-view .wl-goal { height: .14em; margin-top: .3em; border-radius: .1em; background: rgba(255,255,255,.1); overflow: hidden; }
.stage-view .wl-goal > i { display: block; height: 100%; background: #2fbf71; transition: width .3s ease; }
.stage-view .wl-note { font-size: .66em; color: var(--dim); }
/* 2026-11-21: a line that ends in a mark (finale): the stations fade back and the mark grows in over them, the items
   still flowing; timed from the part's shownAt (--mo-d), so a redraw or a late window shows the same moment */
.stage-view .c-line.wl-fin .wl-row { position: relative; }
.stage-view .wl-finale { position: absolute; inset: -.6em 0; display: grid; place-content: center; text-align: center; pointer-events: none; opacity: 0; }
.stage-view .wl-finale-t { font-size: 1.9em; font-weight: 900; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 0 .5em rgba(47,191,113,.35); }
.stage-view .wl-finale-s { margin-top: .25em; font-size: .8em; font-weight: 700; color: var(--soft); }
[data-mo].c-line.wl-fin .wl-station { animation: wl-fade 1.6s ease both; animation-delay: calc(var(--mo-d, 0ms) + 1200ms); }
[data-mo].c-line.wl-fin .wl-finale { animation: wl-mark 1.4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--mo-d, 0ms) + 1900ms); }
.stage-view .c-line.wl-fin:not([data-mo]) .wl-station { opacity: .14; }
.stage-view .c-line.wl-fin:not([data-mo]) .wl-finale { opacity: 1; }
@keyframes wl-fade { to { opacity: .14; transform: scale(.94); } }
@keyframes wl-mark { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stage-view .wl-item { animation: none !important; display: none; }
  [data-mo].c-line.wl-fin .wl-station { animation: none; opacity: .14; } [data-mo].c-line.wl-fin .wl-finale { animation: none; opacity: 1; } }

/* pairs: paired bars per category, two named series, growing from zero when the part shows */
.stage-view .c-pairs { display: grid; gap: .5em; }
.stage-view .pa-legend { display: flex; gap: 1.4em; font-size: .72em; color: var(--soft); }
.stage-view .pa-key { display: inline-flex; align-items: center; gap: .35em; }
.stage-view .pa-key > i { width: .8em; height: .8em; border-radius: .15em; }
.stage-view .pa-grid { display: grid; gap: .9em; align-items: start; }
.stage-view .pa-col { display: flex; flex-direction: column; gap: .3em; min-width: 0; }
.stage-view .pa-bars { display: grid; grid-template-columns: 1fr 1fr; gap: .2em; height: 7.5em; align-items: end; border-bottom: .06em solid var(--rule); }
.stage-view .pa-bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.stage-view .pa-fill { display: block; border-radius: .12em .12em 0 0; min-height: .08em; transform-origin: bottom; }
.stage-view .pa-v { font-size: .66em; font-weight: 800; text-align: center; margin-bottom: .15em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage-view .pa-label { font-size: .72em; font-weight: 700; text-align: center; line-height: 1.15; }
.stage-view .pa-note { font-size: .66em; color: var(--dim); text-align: center; line-height: 1.15; }
.stage-view .pa-foot { font-size: .66em; color: var(--dim); }
[data-mo].c-pairs .pa-fill { animation: pa-grow 1.1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--mo-d, 0ms) + var(--i, 0) * 110ms); }
[data-mo].c-pairs .pa-v { animation: pa-in .4s ease-out both; animation-delay: calc(var(--mo-d, 0ms) + 900ms); }
@keyframes pa-grow { from { transform: scaleY(0); } }
@keyframes pa-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { [data-mo].c-pairs .pa-fill, [data-mo].c-pairs .pa-v { animation: none !important; } }

/* 2026-11-21: a station's agent line under its station (line.stations[].say) */
.stage-view .wl-row { row-gap: .45em; }
.stage-view .wl-say { --wc: #6cb4ff; align-self: start; font-size: .62em; line-height: 1.25; padding: .5em .6em; border-radius: .45em .45em .45em .1em;
  background: color-mix(in srgb, var(--wc) 22%, #0b0f16); box-shadow: inset 0 0 0 .06em color-mix(in srgb, var(--wc) 55%, transparent); text-wrap: pretty; }
.stage-view .wl-say.thinking { color: var(--soft); }
.stage-view .wl-say .wl-dots { letter-spacing: .15em; margin-right: .4em; animation: pulse 1.2s infinite; }
/* 2026-11-21: race — a lane per group, the leader marked */
.stage-view .c-race { display: grid; gap: .3em; }
.stage-view .rc-lane { --rc: #6cb4ff; display: grid; grid-template-columns: minmax(4.5em, auto) 1fr minmax(3.2em, auto); align-items: center; gap: .45em; }
.stage-view .rc-label { font-size: .72em; font-weight: 800; color: var(--rc); white-space: nowrap; }
.stage-view .rc-bar { height: .55em; border-radius: .15em; background: rgba(255,255,255,.08); overflow: hidden; }
.stage-view .rc-bar > i { display: block; height: 100%; background: var(--rc); transition: width .3s ease; }
.stage-view .rc-v { font-size: .72em; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.stage-view .rc-lane.lead .rc-bar > i { box-shadow: 0 0 .5em var(--rc); }
.stage-view .rc-lane.lead .rc-v::after { content: ' ▲'; color: var(--rc); }
.stage-view .rc-note { font-size: .6em; color: var(--dim); }

/* ---- web/css/stage-field.css ---- */
/* ---------- the field-guide kinds (2026-11-21; web/render-field.ts): a specimen card and a habitat ----------
   Sizes follow the stage's rule (stage.css): nothing under .66em of the stage's 4.6vh, so the last row of a ballroom
   reads it on the 2:1 LED. The card is a naturalist's field guide crossed with a documentary lower third: the stage's
   dark glass, a fine warm rule, the Latin name in a serif. Its accent is the part's own colour (`--sc`). */

.stage-view .c-specimen { --sc: #e7c98a; position: relative; display: flex; flex-direction: column; gap: .4em; padding: .5em .65em .6em; border-radius: var(--card-r, .3em);
  border: 1px solid color-mix(in srgb, var(--sc) 45%, transparent); border-top: .12em solid var(--sc);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 10%, transparent), rgba(255, 255, 255, .015) 40%), var(--glass, rgba(14, 18, 26, .82));
  box-shadow: inset 0 0 0 .3em rgba(0, 0, 0, .18), inset 0 0 0 calc(.3em + 1px) color-mix(in srgb, var(--sc) 22%, transparent), 0 .4em 1.1em -.12em rgba(0, 0, 0, .62); }
.stage-view .sp-head { display: grid; grid-template-columns: min(33%, 5.6em) minmax(0, 1fr); gap: .65em; align-items: start; }
.stage-view .sp-beside { margin: .35em 0 0; display: grid; gap: .25em; }
/* the specimen photo: a print with a thin white border on the card, a caption line under it */
.stage-view .sp-photo { margin: 0; min-width: 0; }
.stage-view .sp-img { width: 100%; aspect-ratio: 1; padding: .12em; background: #f5efe2; border-radius: .08em; color: color-mix(in srgb, var(--sc) 70%, #3a3226);
  box-shadow: 0 .25em .6em rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .15); display: grid; place-items: center; transform: rotate(-1.2deg); }
.stage-view .sp-img svg { width: 86%; height: 86%; }
.stage-view .sp-img.has img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-view .sp-cap { font-size: .66em; line-height: 1.15; color: var(--soft); margin-top: .35em; font-style: italic; font-family: Georgia, "Times New Roman", serif; }
.stage-view .sp-names { min-width: 0; }
.stage-view .sp-tag { font-size: .66em; font-weight: 700; letter-spacing: .14em; color: var(--sc); text-transform: uppercase; }
.stage-view .sp-latin { font-family: Georgia, "Times New Roman", "Noto Serif", serif; font-style: italic; font-weight: 600; font-size: 1.2em; line-height: 1.02; letter-spacing: -.01em; color: #fff7e6; text-wrap: balance; }
.stage-view .sp-common { font-size: .86em; font-weight: 800; line-height: 1.1; margin-top: .12em; }
.stage-view .sp-family { font-size: .66em; color: var(--soft); margin-top: .1em; }
.stage-view .sp-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .25em .6em; margin: 0; padding-top: .45em; border-top: 1px solid color-mix(in srgb, var(--sc) 35%, transparent); }
.stage-view .sp-row { min-width: 0; }
.stage-view .sp-row.wide { grid-column: 1 / -1; }
.stage-view .sp-row dt, .stage-view .sp-beside dt { font-size: .66em; font-weight: 800; letter-spacing: .1em; color: var(--sc); text-transform: uppercase; line-height: 1.2; }
.stage-view .sp-row dd, .stage-view .sp-beside dd { margin: 0; font-size: .66em; line-height: 1.22; color: var(--ink); text-wrap: pretty; }
.stage-view .sp-marks { display: flex; gap: .28em; align-items: center; padding-top: .18em; }
.stage-view .sp-marks i { width: .8em; height: .8em; border-radius: 50%; box-shadow: inset 0 0 0 .1em color-mix(in srgb, var(--sc) 70%, transparent); }
.stage-view .sp-marks i.on { background: #f87171; box-shadow: 0 0 .35em rgba(248, 113, 113, .6); }

/* habitat: the picture, its counters (live) or its one sentence (ambient) */
.stage-view .c-habitat { display: flex; flex-direction: column; gap: .4em; }
.stage-view .hb-frame { position: relative; width: min(100%, calc(50vh * 1.6)); aspect-ratio: 16 / 10; container-type: inline-size; margin: 0 auto; border-radius: var(--card-r, .3em); overflow: hidden;
  background: #0a0d14 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 .4em 1.1em -.12em rgba(0, 0, 0, .62); }
.stage-view .hb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-view .hb-counters { display: flex; flex-wrap: wrap; gap: .4em 1.3em; }
.stage-view .hb-n { display: flex; flex-direction: column; padding-left: .45em; border-left: .08em solid var(--hc, var(--rule)); min-width: 0; }
.stage-view .hb-v { font-size: 1.3em; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stage-view .hb-l { font-size: .66em; color: var(--soft); margin-top: .2em; line-height: 1.2; }
.stage-view .hb-syn { font-size: .66em; color: var(--dim); }
.stage-view .hb-summary { font-size: .8em; font-weight: 700; line-height: 1.22; color: var(--ink); text-wrap: balance; }
.stage-view .c-habitat.ambient .hb-frame { filter: saturate(.85) brightness(.92); }
/* the danger marks stand beside their label: one line, not two */
.stage-view .sp-row.sp-danger { display: flex; align-items: center; gap: .5em; }
.stage-view .sp-row.sp-danger .sp-marks { padding-top: 0; }

/* the nature camera around a habitat (round 2): REC, the clock, corner brackets, vignette, moving grain */
.stage-view .hb-cam { position: absolute; inset: 0; pointer-events: none; overflow: hidden; } /* the moving grain is wider than the picture on purpose: clipped here, so the frame has nothing of it to clip */
.stage-view .hb-vig { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.stage-view .hb-grain { position: absolute; inset: -20%; opacity: .5; mix-blend-mode: overlay; animation: hb-grain 1s steps(6) infinite; }
@keyframes hb-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-2%, 6%); } 80% { transform: translate(5%, -2%); } 100% { transform: translate(0, 0); } }
.stage-view .hb-corner { position: absolute; width: 1.1em; height: 1.1em; border: .08em solid rgba(255, 255, 255, .85); }
.stage-view .hb-corner.tl { top: .45em; left: .45em; border-right: 0; border-bottom: 0; } .stage-view .hb-corner.tr { top: .45em; right: .45em; border-left: 0; border-bottom: 0; }
.stage-view .hb-corner.bl { bottom: .45em; left: .45em; border-right: 0; border-top: 0; } .stage-view .hb-corner.br { bottom: .45em; right: .45em; border-left: 0; border-top: 0; }
/* REC and the clock share one row that wraps: on a narrow picture the clock goes under REC, never over it (2026-11-22) */
.stage-view .hb-top { position: absolute; top: .75em; left: 1.6em; right: 1.6em; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .15em .8em;
  font-size: .66em; font-weight: 700; letter-spacing: .08em; color: #fff; text-shadow: 0 0 .3em rgba(0, 0, 0, .9); }
.stage-view .hb-rec { display: flex; align-items: center; gap: .4em; white-space: pre; }
/* the camera's name gives way on a very small picture (em of the picture's own type: REC alone is about 5em of the stage's) */
@container (max-width: 12em) { .stage-view .hb-cn { display: none; } }
.stage-view .hb-dot { width: .7em; height: .7em; border-radius: 50%; background: #ef4444; box-shadow: 0 0 .4em #ef4444; animation: hb-blink 1.2s steps(1) infinite; }
@keyframes hb-blink { 50% { opacity: .15; } }
.stage-view .hb-clock { margin-left: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .stage-view .hb-grain, .stage-view .hb-dot { animation: none; } }
/* round 2: a row's label runs in before its text (one line saved per row), so the card with its photo stays one page
   beside the habitat on the 2:1 LED */
.stage-view .c-specimen .sp-row dt, .stage-view .c-specimen .sp-beside dt { display: inline; margin-right: .45em; }
.stage-view .c-specimen .sp-row dd, .stage-view .c-specimen .sp-beside dd { display: inline; }
.stage-view .c-specimen .sp-row, .stage-view .c-specimen .sp-beside > div { line-height: 1.22; }
.stage-view .c-specimen .sp-row.sp-danger dd { display: flex; }
.stage-view .c-specimen .sp-row, .stage-view .c-specimen .sp-beside > div { font-size: .66em; line-height: 1.25; }
.stage-view .c-specimen .sp-row dt, .stage-view .c-specimen .sp-row dd, .stage-view .c-specimen .sp-beside dt, .stage-view .c-specimen .sp-beside dd { font-size: 1em; }
.stage-view .c-specimen .sp-marks i { width: 1.1em; height: 1.1em; }
.stage-view .c-specimen .sp-latin { font-size: 1.08em; }
.stage-view .c-specimen .sp-fields { grid-template-columns: minmax(0, 1fr); gap: .2em; }
.stage-view .c-specimen { padding: .45em .6em .5em; gap: .35em; }

/* round 3 (2026-11-22): a card that shares its page with a habitat is COMPACT. The habitat is the priority (it is the live game): it
   takes the larger share and its picture the whole of it; the card keeps its photo (smaller), names, danger and the rows the package sent. */
.stage-view.lay:has(> .c-specimen.compact) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.stage-view.lay:has(> .c-specimen.compact) .hb-frame { width: min(100%, 100vh); }
.stage-view .c-specimen.compact .sp-head { grid-template-columns: min(30%, 4.4em) minmax(0, 1fr); gap: .5em; }

/* ---- web/css/check.css ---- */
/* The technical check (docs/TECH-CHECK.md): the stage's check layer (web/stage-check.ts) and the crew phone's page
   (web/kontrol.ts, /kontrol). The stage layer covers the show entirely while ops has it on; the show keeps painting
   under it, untouched. Sizes are vh like the stage's, and nothing a crew member must read is under the 3vh floor except
   the deliberate below-floor rungs of the ladder. */

.st-check { position: fixed; inset: 0; z-index: 2000; background: #05070f; color: #f1f5f9; overflow: hidden; font: 600 3vh/1.25 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.st-check[hidden] { display: none; }
.st-check[data-pattern="black"] { background: #000; cursor: none; }
.st-check[data-pattern="white"] { background: #fff; cursor: none; }

/* grid: lines every 1/12 of the height, the centre cross, the outer edge, the 16:9 safe area, the 2:1 content field */
.ck-gridwrap { position: absolute; inset: 0; }
.ck-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.ck-grid .ck-l { stroke: #2a3346; stroke-width: 1; }
.ck-grid .ck-c { stroke: #64748b; stroke-width: 2; }
.ck-grid .ck-edge { fill: none; stroke: #f8fafc; stroke-width: 2; }
.ck-grid .ck-safe { fill: none; stroke: #22d3ee; stroke-width: 4; }
.ck-grid .ck-field { fill: none; stroke: #facc15; stroke-width: 2; stroke-dasharray: 14 10; }
.ck-grid .ck-o { fill: none; stroke: #475569; stroke-width: 2; }
.ck-tag { position: absolute; padding: .2em .5em; font-size: 3vh; font-weight: 700; color: #05070f; background: #22d3ee; }
.ck-tag.field { background: #facc15; }
.ck-sweep { position: absolute; left: 0; top: 0; bottom: 0; width: 1.2vh; margin-left: -.6vh; background: #f8fafc; opacity: .85; will-change: transform; }
.ck-strip { position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%); display: grid; grid-template-columns: repeat(60, 1.6vh); gap: .3vh; }
.ck-strip i { height: 3vh; background: #1e293b; } .ck-strip i.on { background: #f8fafc; }

/* the info card: centred inside the 16:9 area */
.ck-info { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 150vh); max-height: 88vh; overflow: hidden; padding: 2.4vh 3vh;
  background: rgba(5, 7, 15, .9); border: .3vh solid #334155; border-radius: 1.4vh; display: flex; flex-direction: column; gap: 1.2vh; }
.ck-head { font-size: 3vh; letter-spacing: .08em; color: #94a3b8; }
.ck-armed { font-size: 11vh; font-weight: 900; line-height: 1; letter-spacing: .02em; }
.ck-armed.ok { color: #4ade80; } .ck-armed.bad { color: #f87171; }
.ck-armed-s { font-size: 3.2vh; color: #cbd5e1; }
.ck-kv { display: grid; grid-template-columns: max-content 1fr; gap: .5vh 2.4vh; margin: 0; font-size: 3vh; }
.ck-kv dt { color: #94a3b8; font-weight: 600; } .ck-kv dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.ck-kv dd.ok { color: #4ade80; } .ck-kv dd.bad { color: #f87171; }
.ck-snd { display: flex; flex-wrap: wrap; gap: .8vh; }
.ck-b { font: 700 3vh/1.1 system-ui, sans-serif; padding: .6vh 1.4vh; border-radius: .8vh; border: .25vh solid #475569; background: #111827; color: #f1f5f9; }
.ck-b:disabled { opacity: .4; } .ck-b.ck-meas { border-color: #22d3ee; color: #a5f3fc; }
.ck-label { min-height: 4vh; font-size: 3.6vh; font-weight: 800; color: #facc15; }

/* colour bars: 75 % bars, a black-to-white ramp (banding), ten grey steps, near-black steps (the LED's black level) */
.ck-bars { position: absolute; inset: 0; display: grid; grid-template-rows: 62fr 10fr 14fr 14fr; }
.ck-bars-top, .ck-steps, .ck-pluge { display: flex; } .ck-bars-top i, .ck-steps i, .ck-pluge i { flex: 1; display: grid; place-items: end center; padding-bottom: .8vh; font: 700 3vh/1 system-ui, sans-serif; font-style: normal; }
.ck-ramp { background: linear-gradient(90deg, #000, #fff); }
.ck-pluge i { color: #64748b; }

/* the ladder of text sizes */
.ck-ladder { position: absolute; inset: 0; padding: 3vh 4vw; display: flex; flex-direction: column; justify-content: center; gap: 1.2vh; }
.ck-rung { display: grid; grid-template-columns: 22vh 1fr; align-items: baseline; gap: 0 2vh; border-bottom: 1px solid #1e293b; padding-bottom: .6vh; }
.ck-rung-s { font-size: 3vh; color: #94a3b8; font-variant-numeric: tabular-nums; }
.ck-rung-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-rung-w { grid-column: 2; font-size: 3vh; color: #94a3b8; }
.ck-rung.below .ck-rung-t, .ck-rung.below .ck-rung-w { color: #f87171; }
.ck-rung.floor { border-bottom: .4vh solid #facc15; } .ck-rung.floor .ck-rung-w { color: #facc15; font-weight: 800; }
.st-check[data-pattern="text"] .ck-info { left: auto; right: 2vw; top: 3vh; transform: none; width: 34vw; max-width: 60vh; }
.st-check[data-pattern="text"] .ck-armed { font-size: 7vh; }
.st-check[data-pattern="text"] .ck-kv, .st-check[data-pattern="text"] .ck-snd, .st-check[data-pattern="text"] .ck-label { display: none; }
@media (max-aspect-ratio: 2/1) { .st-check[data-pattern="text"] .ck-info { display: none; } }

/* ---------- the crew phone's page (/kontrol) ---------- */
body.kontrol { background: #0e1116; }
body.kontrol #app { max-width: 34rem; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 32px; }
.kt-head h1 { font-size: 1.5rem; margin: .6rem 0 .3rem; }
.kt-head p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.kt-kv { display: grid; grid-template-columns: 1fr; gap: .2rem; margin: 0 0 1.2rem; }
.kt-kv dt { color: var(--muted); font-size: .85rem; margin-top: .7rem; }
.kt-kv dd { margin: 0; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kt-kv dd.ok { color: var(--good); } .kt-kv dd.bad { color: var(--bad); }
.kt-acts { display: flex; gap: .6rem; flex-wrap: wrap; }
.kt-b { flex: 1 1 10rem; min-height: 3rem; border-radius: .7rem; border: 1px solid var(--line); background: var(--panel2); font-weight: 700; font-size: 1.05rem; }
.kt-b.primary { background: var(--accent); border-color: var(--accent); color: #05070f; }
.kt-b:disabled { opacity: .6; }
.kt-good { color: var(--muted); font-size: .85rem; margin-top: 1.2rem; }

/* ---- web/css/show.css ---- */
/* ---------- the show surfaces (Yürüt, İzle, Hazırlık): tokens and the shared parts of web/show-kit.ts ---------- */
/* Scoped under body.show. Yürüt adds body.run (run.css); the ops entry adds body.ops (ops-shell.css, watch.css, prep.css). */
body.show {
  --bg: #07080a; --deck: #0d0f13; --plate: #14171d; --plate2: #1b1f27; --line: #262b35; --line2: #323947;
  --ink: #eef1f6; --ink2: #a9b1bf; --ink3: #6c7584;
  --go: #22e07a; --go-ink: #03140a; --warn: #ffb020; --warn-ink: #1a1000; --bad: #ff3b4e; --info: #5aa9ff;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* the older shared components (ops.css) read these names */
  --text: var(--ink); --muted: var(--ink3); --panel: var(--plate); --panel2: var(--plate2); --accent: var(--info); --good: var(--go);
  margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.4 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.show button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; cursor: pointer; padding: 0; }
body.show button:disabled { cursor: not-allowed; }
body.show [hidden] { display: none !important; }

/* small parts */
body.show .kbd { display: inline-block; font: 600 11px/1.3 var(--mono); border: 1px solid currentColor; border-radius: 4px; padding: 1px 5px; opacity: .6; margin-left: 8px; vertical-align: middle; white-space: nowrap; text-transform: none; letter-spacing: 0; }
body.show .label { font: 700 11px var(--mono); letter-spacing: .1em; color: var(--ink3); text-transform: uppercase; margin: 0 0 8px; }
body.show .label.gap { margin-top: 16px; }
body.show .dot { color: var(--go); }
body.show .btn { border: 1px solid var(--line2); border-radius: 8px; padding: 8px 14px; background: var(--plate2); font-weight: 600; color: var(--ink); }
body.show .btn.small { padding: 5px 10px; font-size: 13px; }
body.show .btn.danger { border-color: #5a1620; color: #ff8b97; }
body.show .btn.primary { background: var(--go); color: var(--go-ink); border-color: var(--go); font-weight: 800; }
body.show .btn.on { background: var(--warn); color: var(--warn-ink); border-color: var(--warn); }
body.show .btn:disabled { opacity: .45; }
body.show .btn .kbd { margin-left: 0; margin-right: 6px; }
body.show .btn.guard { background-image: none; border: 1px solid var(--line2); animation: none; }
body.show .btn.guard.armed { background: var(--bad); border-color: var(--bad); color: #fff; }

/* where we are */
body.show .where { flex: none; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--deck); min-width: 0; }
body.show .where .story { font-weight: 700; color: var(--go); }
body.show .where .scene { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
body.show .where .code { color: var(--ink3); font: 600 13px var(--mono); }
body.show .where .meta { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; color: var(--ink3); font: 600 13px var(--mono); }
body.show .where .mode { font: 800 11px var(--mono); letter-spacing: .1em; padding: 2px 7px; border-radius: 4px; background: var(--plate2); color: var(--ink2); }
body.show .where .mode.canli { background: var(--bad); color: #fff; }
body.show .where .wh-conn { white-space: nowrap; } body.show .where .wh-conn.off, body.show .where .wh-conn.off .dot { color: var(--bad); }

/* the offline band */
body.show .offband { flex: none; padding: 9px 18px; background: #3a0b12; border-bottom: 1px solid var(--bad); color: #ffd0d5; font-size: 14px; }
body.show .offband b { color: #fff; }

/* GO and Geri */
body.show .gobar { flex: none; display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--deck); min-width: 0; }
body.show .gobar .back { flex: none; width: 132px; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; text-align: left; color: var(--ink2); background: var(--plate); }
body.show .gobar .back .back-t { display: block; font-weight: 700; }
body.show .gobar .back small { display: block; color: var(--ink3); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
body.show .gobar .back:disabled { opacity: .5; }
body.show .gobar .go { flex: 1; min-width: 0; border-radius: 12px; padding: 12px 18px; text-align: left; background: var(--go); color: var(--go-ink); min-height: 72px; }
body.show .gobar .go .verb { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
body.show .gobar .go .dest { display: block; font-size: 14px; font-weight: 600; margin-top: 4px; opacity: .85; overflow-wrap: anywhere; }
body.show .gobar .go .go-until { font-family: var(--mono); }
body.show .gobar .go.fallback { background: var(--warn); color: var(--warn-ink); }
body.show .gobar .go.guarded { background: var(--warn); color: var(--warn-ink); }
body.show .gobar .go.danger { box-shadow: inset 0 0 0 3px var(--bad); }
/* between two presses: the whole bar turns red with a white frame (never an outline alone) */
body.show .gobar .go.armed, body.show .gobar .go.fallback.armed { background: var(--bad); color: #fff; outline: 3px solid #fff; outline-offset: -3px; box-shadow: none; }
body.show .gobar .go.armed .dest { opacity: 1; font-weight: 800; }
body.show .gobar .go:disabled { background: var(--plate2); color: var(--ink2); }

/* the hall: an open ballot or tap window */
body.show .hall { border: 1px solid var(--line2); border-radius: 12px; padding: 14px 16px; background: var(--plate); min-width: 0; }
body.show .hall .top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
body.show .hall .q { font-weight: 700; font-size: 16px; flex: 1; min-width: 160px; color: var(--ink); overflow-wrap: anywhere; }
body.show .hall .clock { font: 700 26px var(--mono); color: var(--ink); }
body.show .hall .clock.urgent { color: var(--warn); }
body.show .hall .clock.closed { font-size: 18px; color: var(--ink2); }
body.show .hall .count { font: 700 30px var(--mono); margin-top: 6px; color: var(--ink); }
body.show .hall .count small { font-size: 14px; color: var(--ink2); font-weight: 600; }
body.show .hall .hall-syn { font-size: 13px; color: var(--ink3); }
body.show .hall .hall-card { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 4px; }
body.show .hall .quorum { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 12px; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
body.show .hall .quorum.ok { background: #0f3a22; color: var(--go); }
body.show .hall .quorum.short { background: #3a2a05; color: var(--warn); }
body.show .hall .bars { display: grid; gap: 6px; margin-top: 12px; }
body.show .hall .bar { display: grid; grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) 56px; gap: 8px; align-items: center; font-size: 13px; color: var(--ink2); }
body.show .hall .bar .bar-n { overflow-wrap: anywhere; }
body.show .hall .bar i { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--plate2); }
body.show .hall .bar i b { display: block; height: 100%; border-radius: 4px; background: var(--ink3); }
body.show .hall .bar i u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink2); opacity: .7; }
body.show .hall .bar .bar-v { font-family: var(--mono); text-align: right; }
body.show .hall .ext { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

@media (max-width: 700px) {
  body.show .where { padding: 10px 12px; }
  body.show .gobar { padding: 10px 12px; }
  body.show .gobar .back { width: 92px; }
  body.show .gobar .go .verb { font-size: 19px; }
  body.show .gobar .go .kbd { display: none; }
}

/* ---- web/css/ops.css ---- */
/* ---------- ops, the rules that outlived the old screen: the page's base, the shared small parts (seg, guard, text
   inputs, kbd), the film and sound box (web/ops-video.ts) and the scenario preview (/ops/preview, web/preview.ts).
   The surfaces themselves are in show.css, ops-shell.css, watch.css and prep.css. Rules here are NOT scoped: this
   file is concatenated with every other stylesheet, so check a class name against the other pages before adding one. ---------- */
@keyframes blink { 50% { filter: brightness(.6); } }
body.ops {
  font-size: 14px; overflow: hidden; background: #0a0d12;
  --lamp-ok: #22c55e; --lamp-warn: #f59e0b; --lamp-bad: #ef4444; --bezel: #262e3a;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (min-width: 1700px) { body.ops { font-size: 15px; } }
body.ops #app { height: 100vh; overflow: hidden; }
.k-wait { padding: 1.4em 2em; color: var(--muted); font-size: 1.3em; grid-column: 1 / -1; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex-wrap: wrap; }
.seg-b { border: 0; border-radius: 0; background: var(--panel2); padding: .35em .8em; border-right: 1px solid var(--line); color: var(--muted); }
.seg-b:last-child { border-right: 0; } .seg-b.on { background: var(--accent); color: #0b0f15; font-weight: 700; }

/* ---------- small parts shared by the ops surfaces and the preview ---------- */
.k-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.k-btn { padding: .45em .8em; font-weight: 600; } .k-btn.primary { background: var(--accent); color: #07101c; border-color: var(--accent); } .k-btn.on { border-color: var(--good); color: var(--good); } .k-btn.small { padding: .2em .6em; font-size: .9em; }
.guard { position: relative; border: 2px solid transparent; background-image: linear-gradient(var(--panel2), var(--panel2)), repeating-linear-gradient(45deg, #facc15 0 6px, #111 6px 12px); background-origin: border-box; background-clip: padding-box, border-box; font-weight: 700; padding: .45em .9em; }
.guard.danger { background-image: linear-gradient(color-mix(in srgb, var(--bad) 22%, var(--panel2)), color-mix(in srgb, var(--bad) 22%, var(--panel2))), repeating-linear-gradient(45deg, #facc15 0 6px, #111 6px 12px); }
.guard.armed { background-image: linear-gradient(var(--bad), var(--bad)), repeating-linear-gradient(45deg, #facc15 0 6px, #111 6px 12px); color: #fff; animation: blink .6s steps(2) infinite; }
.k-text { width: 16em; max-width: 100%; } .k-num { width: 7em; } .k-num[data-k=seed] { width: 10em; }
.mono { font-family: var(--mono); }

/* ---------- boxes of the scenario preview's report column ---------- */
.p-box { background: linear-gradient(180deg, #1a2029, #151a22); border: 1px solid var(--bezel); border-radius: 10px; padding: 9px 12px 11px; min-width: 0; display: flex; flex-direction: column; }
.p-box-t { font-size: .78em; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.p-box h4 { margin: .3em 0 0; font-size: .78em; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
table.turns tr.cur td { background: rgba(56, 189, 248, .08); } .turns td { white-space: pre-line; overflow-wrap: anywhere; }
kbd { font: 700 .85em var(--mono); background: var(--panel2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 5px; padding: 2px 6px; justify-self: start; }

/* ---------- scenario preview (/ops/preview): positions | real-size frames scaled down | validation report ---------- */
body.pvw { overflow: hidden; }
body.pvw #app { display: grid; grid-template-columns: 260px minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); height: 100vh; gap: 0; }
.pv-head { grid-column: 1 / -1; display: flex; gap: 14px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pv-list, .pv-main, .pv-side { overflow: auto; min-height: 0; padding: 10px; }
.pv-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.pv-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pv-pos { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; color: inherit; cursor: pointer; }
.pv-pos.sel { border-color: #7dd3fc; }
.pv-id { font: 700 .8em var(--mono); } .pv-t { grid-column: 1 / -1; font-size: .82em; color: var(--muted); overflow-wrap: anywhere; }
.pv-fit { font: 700 .74em var(--mono); color: var(--muted); } .pv-fit.ok, .ok-text { color: var(--lamp-ok); } .pv-fit.warn { color: var(--lamp-warn); } .pv-fit.bad, .pv-cap.bad { color: var(--lamp-bad); }
.pv-stage { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #000; }
.pv-stage iframe { position: absolute; left: 0; top: 0; transform-origin: 0 0; border: 0; }
.pv-info { padding: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.pv-where { font-weight: 700; } .pv-mod { font-size: .86em; color: var(--muted); }
.pv-phones { display: flex; flex-wrap: wrap; gap: 12px; }
.pv-phone { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.pv-phone-box { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #000; }
.pv-phone-box iframe { position: absolute; left: 0; top: 0; transform-origin: 0 0; border: 0; }
.pv-cap { font-size: .78em; color: var(--muted); max-width: 242px; overflow-wrap: anywhere; }
.pv-err, .pv-warn { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: .8em/1.35 var(--mono); padding: 4px 6px; border-radius: 4px; background: #1a1012; color: #fca5a5; }
.pv-warn { background: #1a160c; color: #fcd34d; }
.pv-link { text-align: left; background: none; border: 0; color: #7dd3fc; cursor: pointer; padding: 1px 0; font: .82em var(--mono); }
.pv-opt { padding: .3em 0; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 1300px) { body.pvw #app { grid-template-columns: 200px minmax(0, 1fr) 300px; } }

/* unscoped, and it reaches the stage's seat names (render.ts `s-name`): kept as it was */
.s-name { display: flex; flex-direction: column; gap: 1px; }
.ok-text { color: var(--lamp-ok); }

/* ---- films and sounds (B1/B2, web/ops-video.ts): the box V opens. Where it sits is in ops-shell.css (`body.ops .k-film`). ---- */
.k-film { padding: 14px; overflow: auto; background: var(--bg, #0b0f16);
  font-size: 13px; display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 12px; }
.k-film[hidden], .k-film .kf-up[hidden] { display: none; }
.k-film .kf-live { display: flex; flex-direction: column; gap: 10px; }
.kf-chip { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; width: 100%; margin: 0 0 6px; padding: 6px 10px; border-radius: 6px; border: 1px solid #2e3747; background: #121822; color: #ccd3df; font: 700 12px var(--mono, monospace); cursor: pointer; text-align: left; }
.kf-chip.playing { border-color: #3d7bd6; color: #fff; }
.kf-chip.warn { border-color: #c98a1a; }
.kf-chip-l { letter-spacing: .08em; } .kf-chip-w { color: #ffb44d; }
.kf-box, .kf-up { background: #0f141c; border: 1px solid #2e3747; border-radius: 8px; padding: 10px 12px; width: min(640px, 100%); }
.kf-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 4px 0; }
.kf-h { font-weight: 700; color: #a5afc0; flex-basis: 100%; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.kf-name { font-weight: 700; } .kf-time { font-variant-numeric: tabular-nums; } .kf-rule, .kf-cue { flex-basis: 100%; color: #a5afc0; } .kf-cue { color: #ffd475; }
.kf-stage, .kf-ref { padding: 2px 8px; border-radius: 4px; background: #182030; }
.kf-stage.ok, .kf-ref.ok { color: #7fe0a8; } .kf-stage.warn { color: #ffb44d; } .kf-stage.bad, .kf-ref.bad, .kf-bad { color: #ff7a7a; } .kf-ref.other { color: #a5afc0; }
.kf-up input, .kf-up select { background: #182030; color: #f3f5f9; border: 1px solid #2e3747; border-radius: 4px; padding: 4px 6px; }
.kf-progress.ok { color: #7fe0a8; } .kf-progress.bad { color: #ff7a7a; }
/* B2: the stage is muted (web/ops-video.ts) */
.k-btn.kf-muted { background: #7a1d1d; border-color: #ef4444; color: #fff; }

/* ---- web/css/ops-shell.css ---- */
/* ---------- the ops shell (web/ops.ts): the frame of İzle and Hazırlık. Scoped under body.ops. ---------- */
/* Tokens and the shared parts (where line, GO bar, hall, .btn, .kbd, .label) are in show.css (body.show). */
body.ops { font: 15px/1.4 var(--sans); background: var(--bg); height: 100vh; height: 100dvh; overflow: hidden; }
body.ops #app { position: fixed; inset: 0; height: auto; overflow: hidden; }
body.ops input, body.ops select, body.ops textarea { font: inherit; color: var(--ink); background: #0a0c10; border: 1px solid var(--line2); border-radius: 6px; padding: 5px 8px; max-width: 100%; }
body.ops input:focus, body.ops select:focus, body.ops textarea:focus { outline: 2px solid var(--info); outline-offset: 0; }

/* the frame: a fixed header, one scrolling body, GO fixed at the bottom on İzle */
body.ops .ops-app { position: absolute; inset: 0; display: flex; flex-direction: column; min-width: 0; }
body.ops .ops-head { flex: none; min-width: 0; background: var(--bg); }
/* overflow-anchor off: a line that appears above what the operator reads must not change scrollTop (C65) */
body.ops .ops-body { overflow-anchor: none; flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 12px 18px 16px; }
body.ops .ops-foot { flex: none; min-width: 0; }
body.ops .ops-wait { color: var(--ink2); font-size: 16px; margin: 20px 4px; }

/* Canlı is unmistakable on the whole frame */
body.ops.canli::after { content: ""; position: fixed; inset: 0; border: 3px solid var(--bad); pointer-events: none; z-index: 90; }

/* offline: what is on screen may be old, and nothing on it acts (the switch, the sheets and scrolling still work) */
body.ops.offline .ops-body > *, body.ops.offline .ops-head > :not(.where):not(.offband) { pointer-events: none; filter: saturate(.3); opacity: .75; }
body.ops.offline .where .modesw { pointer-events: none; opacity: .5; }

/* the header's first row: the switch, where we are, the mode switch, the clock, the connection */
body.ops .where { align-items: center; padding: 8px 18px; }
body.ops .tabs { display: flex; flex: none; border: 1px solid var(--line2); border-radius: 9px; overflow: hidden; margin-right: 6px; }
body.ops .tabs button { padding: 5px 12px; font-weight: 700; color: var(--ink3); font-size: 14px; white-space: nowrap; }
body.ops .tabs button.on { background: var(--ink); color: #0b0d11; }
body.ops .tabs button.armed { background: var(--bad); color: #fff; }
body.ops .tabs .kbd { margin-left: 6px; }
body.ops .where .meta { align-items: center; }
body.ops .modesw { display: inline-flex; border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; }
body.ops .modesw .mode { border-radius: 0; padding: 4px 8px; background: none; color: var(--ink3); font: 800 11px var(--mono); letter-spacing: .1em; white-space: nowrap; }
/* the shared chip rule paints `.mode.canli` red (Yürüt's read-only chip); a segment of the switch is red only when it is on */
body.ops .where .modesw .mode.canli:not(.on):not(.armed) { background: none; color: var(--ink3); }
body.ops .modesw .mode.prova.on { background: var(--plate2); color: var(--ink); }
body.ops .modesw .mode.canli.on { background: var(--bad); color: #fff; }
body.ops .modesw .mode.canli.armed { background: #5a1620; color: #fff; }
body.ops .where-alerts { padding: 3px 9px; border-radius: 6px; background: #3a2a05; color: var(--warn); font: 700 12px var(--sans); }

/* a panel: always open; outlined when the position concerns it */
body.ops .panel { border: 1px solid var(--line); border-radius: 12px; background: var(--plate); min-width: 0; }
body.ops .panel.active { border-color: var(--go); box-shadow: 0 0 0 1px var(--go) inset; }
body.ops .panel > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px 0; }
body.ops .panel > header b { font-size: 15px; }
body.ops .panel > header small { margin-left: auto; color: var(--ink3); font-size: 12.5px; }
body.ops .panel > header .hacts { margin-left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
body.ops .panel .in { padding: 8px 14px 14px; color: var(--ink2); font-size: 14px; min-width: 0; }
body.ops .panel .hall { border: 0; padding: 0; background: none; }
body.ops .idle { margin: 0 0 4px; color: var(--ink2); }
body.ops .idle b { color: var(--ink); }
body.ops .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
body.ops .stub-row { padding: 8px 18px; border-bottom: 1px solid var(--line); color: var(--ink3); font-size: 13px; }

/* notices: one fixed place under the header, over the content; never moves the layout, never takes a click */
body.ops .ops-notice { position: fixed; left: 50%; transform: translateX(-50%); z-index: 60; width: max-content; max-width: min(720px, calc(100vw - 24px)); pointer-events: none; padding: 8px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; line-height: 1.3; text-align: center; box-shadow: 0 10px 30px #000c; overflow-wrap: anywhere; }
body.ops .ops-notice.err { background: #2a1a05; border: 1px solid var(--warn); color: #ffd58a; }
body.ops .ops-notice.info { background: #12151b; border: 1px solid var(--line2); color: var(--ink); }

/* sheets: stage (S), moderator (M), phones (T), help (?), and what a surface registers */
body.ops .sh-backdrop { position: fixed; inset: 0; background: #000c; z-index: 40; display: none; }
body.ops .sh-backdrop.on { display: block; }
body.ops .sh-layer { position: fixed; z-index: 41; pointer-events: none; inset: 0; }
body.ops .sh-box { pointer-events: auto; position: fixed; inset: 24px max(16px, 4vw) max(16px, 4vh); background: var(--deck); border: 1px solid var(--line2); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
body.ops .sh-box.narrow { inset: 24px max(16px, calc(50vw - 480px)) auto; max-height: calc(100dvh - 48px); }
body.ops .sh-h { display: flex; align-items: baseline; gap: 10px; padding: 0 14px; height: 48px; align-items: center; border-bottom: 1px solid var(--line); flex: none; }
body.ops .sh-t { font-size: 15px; }
body.ops .sh-sub { color: var(--ink3); margin-right: auto; font-size: 12.5px; }
body.ops .sh-body { flex: 1; min-height: 0; overflow: auto; }
body.ops .sh-help { padding: 12px 16px 16px; }
body.ops .sh-help-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; align-items: start; }
body.ops .sh-help-s .label { margin: 0 0 4px; }
body.ops .sh-help-r { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink2); }
body.ops .sh-help-k { font: 700 12px var(--mono); color: var(--ink); }
body.ops .sh-note { color: var(--ink3); font-size: 13px; margin: 12px 0 0; }
body.ops .sh-previews { position: fixed; z-index: 42; inset: calc(24px + 49px + 12px) calc(max(16px, 4vw) + 12px) calc(max(16px, 4vh) + 12px); display: flex; }
body.ops .sh-previews > * { flex: 1; min-width: 0; min-height: 0; }
body.ops .sh-slot { position: relative; max-width: 100%; max-height: 100%; margin: auto; display: flex; flex-direction: column; }
/* one monitor (S, M): as large as the sheet allows AT ITS OWN SHAPE and centred, so a 4:3 tablet in a wide sheet has no
   black strip beside it (the slot is sized from the sheet's box, the monitor fills the slot exactly) */
body.ops .sh-previews { container-type: size; }
body.ops .sh-previews > .sh-slot { display: block; flex: none; aspect-ratio: auto !important; height: auto; width: min(100cqw, calc((100cqh - 20px) * var(--ar))); }
body.ops .sh-previews > .sh-slot > .sh-mon { flex: none; aspect-ratio: var(--ar); }
body.ops .sh-mon { flex: 1; position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--line2); background: #000; min-height: 0; }
body.ops .sh-mon iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
body.ops .sh-mon-l { font: 700 11px var(--mono); letter-spacing: .08em; color: var(--ink3); padding-top: 4px; flex: none; }
body.ops .sh-phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: stretch; overflow: auto; }
body.ops .sh-phone { display: flex; flex-direction: column; min-height: 0; border-top: 3px solid var(--dc); padding-top: 4px; }
/* each phone at its own shape too: as wide as its column, never taller than the sheet (no black strip under it) */
body.ops .sh-phone .sh-slot { display: block; max-height: none; flex: none; aspect-ratio: auto !important; width: min(100%, calc((100cqh - 44px) * var(--ar))); margin: 0 auto; }
body.ops .sh-phone .sh-mon { flex: none; aspect-ratio: var(--ar); }
body.ops .sh-phone-s { font-size: 12px; color: var(--ink2); padding-top: 2px; }

/* the film and sound box (ops-video.ts, V): over the screen, like a sheet */
body.ops .k-film { position: fixed; z-index: 46; inset: 24px max(16px, 4vw) max(16px, 4vh); top: 24px; left: max(16px, 4vw); border-radius: 14px; border: 1px solid var(--line2); box-shadow: 0 30px 80px #000c; background: var(--deck); }
body.ops .k-film .k-btn { border: 1px solid var(--line2); border-radius: 8px; padding: 6px 12px; background: var(--plate2); font-weight: 600; color: var(--ink); }
body.ops .k-film .kf-up { display: flex; margin-top: 10px; }

@media (max-width: 980px) {
  body.ops .sh-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; align-content: start; }
  body.ops .sh-phone { min-height: max-content; }
  body.ops .sh-phone .sh-slot { width: 100%; }
}
@media (max-width: 700px) {
  body.ops .where { padding: 8px 12px; }
  body.ops .ops-body { padding: 10px 12px 14px; }
  body.ops .sh-box, body.ops .sh-box.narrow { inset: 8px; max-height: none; }
  body.ops .sh-previews { inset: calc(8px + 49px + 8px) 16px 16px; }
  body.ops .sh-help-g { grid-template-columns: minmax(0, 1fr); }
  body.ops .sh-help-r { grid-template-columns: 96px minmax(0, 1fr); }
  body.ops .k-film { inset: 8px; top: 8px; left: 8px; }
}

/* ---- S3 (2026-11-17): the where line's step counter and version chips; the strip beside GO (web/watch-opsline.ts) ---- */
body.ops .where-step { font: 700 12px var(--mono); color: var(--ink2); white-space: nowrap; }
body.ops .chips { display: inline-flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
body.ops .chip { padding: 1px 7px; border: 1px solid var(--line2, #333); border-radius: 999px; font: 600 11.5px var(--sans); color: var(--ink2); white-space: nowrap; }
body.ops .opsline { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 16px; padding: 6px 18px; border-top: 1px solid var(--line); background: var(--plate, #111); font-size: 13px; color: var(--ink2); min-width: 0; }
body.ops .opsline.quiet { padding: 4px 18px; justify-content: flex-end; }
body.ops .ol-left { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.ops .ol-left p { margin: 0; overflow-wrap: anywhere; }
body.ops .ol-cue { color: var(--ink); font-weight: 600; } body.ops .ol-cue::before { content: '◆ '; color: var(--info, #6ab0ff); }
body.ops .ol-note { color: var(--ink3); }
body.ops .ol-personal { color: var(--ink2); } body.ops .ol-personal.stalled { color: var(--warn); font-weight: 700; }
body.ops .ol-acts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
body.ops .ol-rev { font: 600 12px var(--mono); color: var(--ink3); }
body.ops .ol-comps { flex: 0 1 380px; max-height: 120px; overflow: auto; min-width: 0; font-size: 12px; }

/* ---- web/css/watch.css ---- */
/* ---------- İzle (web/watch*.ts): scoped under .watch (the shell puts it on .ops-app while /ops is shown) ---------- */
/* The sheets İzle registers (Uyarılar, Ajan bağlamı) sit outside .ops-app: their rules are body.ops .wsh-*. */

/* small parts */
.watch .w-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink3); margin-right: 6px; }
.watch .st-ok > .w-dot { background: var(--go); } .watch .st-warn > .w-dot { background: var(--warn); } .watch .st-bad > .w-dot { background: var(--bad); } .watch .st-off > .w-dot { background: var(--ink3); }
.watch .w-warn { color: var(--warn); }
.watch .btn.armed { background: var(--bad); border-color: var(--bad); color: #fff; }
.watch .btn.w-link { background: none; border-style: dashed; color: var(--ink2); font-weight: 500; }
body.show .watch .label.w-sub { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; margin: 14px 0 6px; }
.watch .w-sub-n { margin-left: auto; text-transform: none; letter-spacing: 0; font: 500 12px var(--sans); color: var(--ink3); }
.watch .w-none, .watch .w-note { margin: 0; color: var(--ink3); font-size: 13px; }
.watch .w-note { margin-top: 6px; }
.watch .w-list { display: grid; gap: 4px; }
.watch .w-fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; color: var(--ink2); min-width: 0; }
.watch .w-fact .w-dot { margin-right: 0; align-self: center; }
.watch .w-fact-t { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.watch .w-fact-t b { color: var(--ink); font-weight: 600; }
.watch .w-choice { display: inline-flex; gap: 4px; }
.watch .w-choice .btn.on, body.ops .wsh-cx .w-choice .btn.on { background: var(--ink); border-color: var(--ink); color: #0b0d11; }
.watch .w-tog { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--ink2); margin-top: 8px; }
.watch .row > .w-tog { margin-top: 0; }

/* ---- fixed row 1: the show as blocks, the time here, the typed jump ---- */
.watch .w-show { display: flex; gap: 10px; align-items: stretch; padding: 7px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.watch .w-stories { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.watch .w-stw { flex: 1 1 104px; min-width: 0; display: flex; flex-direction: column; position: relative; }
.watch .w-stw > .w-st { flex: 1 1 auto; }
.watch .w-st { min-width: 0; display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px 6px; background: var(--plate); color: var(--ink3); font-size: 12px; line-height: 1.3; }
.watch .w-st-t { display: block; color: var(--ink2); font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.watch .w-st-n { display: inline-block; min-width: 16px; margin-right: 6px; padding: 0 4px; border-radius: 4px; background: var(--plate2); color: var(--ink3); font: 700 11px/16px var(--mono); text-align: center; vertical-align: 1px; }
.watch .w-st-s { display: block; overflow-wrap: anywhere; }
.watch .w-st.st-now { border-color: var(--go); background: #0c1f15; } .watch .w-st.st-now .w-st-t { color: var(--ink); } .watch .w-st.st-now .w-st-s { color: var(--go); }
.watch .w-st.st-done .w-st-t { color: var(--ink3); }
.watch .w-st.st-undecided { border-style: dashed; border-color: var(--line2); } .watch .w-st.st-undecided .w-st-s { color: var(--info); }
.watch .w-st.st-skipped { border-style: dashed; opacity: .55; cursor: not-allowed; } .watch .w-st.st-skipped .w-st-t { text-decoration: line-through; text-decoration-color: var(--ink3); }
.watch .w-st.armed { border-color: var(--bad); background: #2a0c11; } .watch .w-st.armed .w-st-s { color: #ff8b97; font-weight: 700; }
.watch .w-st:not(:disabled):hover { border-color: var(--ink3); }
.watch .w-pips { display: flex; gap: 2px; margin-top: auto; padding-top: 5px; }
.watch .w-pips i { flex: 1; min-width: 2px; height: 4px; border-radius: 2px; background: var(--line2); }
.watch .w-pips i.p { background: var(--ink3); } .watch .w-pips i.c { background: var(--go); }
.watch .w-st-none { color: var(--ink3); font-size: 13px; }
/* story-decide: a conditional story decided by hand (watch-story-decide.ts; removable as one block) */
.watch .w-decide { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 5px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink3); min-width: 0; }
.watch .w-decide-l { font-weight: 700; }
.watch .w-decide-s { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.watch .w-decide-s b { color: var(--ink); font-size: 13px; }
.watch .w-decide-n { color: var(--info); }
.watch .w-decide .btn.small { padding: 2px 9px; font-size: 12px; }
.watch .w-decide .btn.on { border-color: var(--info); color: var(--ink); }
@media (max-width: 980px) { .watch .w-decide { padding: 5px 12px; } }
/* end story-decide */
.watch .w-side { flex: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 4px; }
.watch .w-times { font: 600 12.5px var(--mono); color: var(--ink3); white-space: nowrap; } .watch .w-times b { color: var(--ink); }
.watch .w-dev.late { color: var(--warn); }
.watch .w-jump { display: flex; align-items: center; gap: 6px; }
.watch .w-jump .kbd { margin-left: 0; }
.watch .w-jump input { width: 104px; padding: 4px 8px; font: 600 13px var(--mono); }

/* ---- fixed row 2: what needs you (left), the moderator (right) ---- */
.watch .w-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: stretch; padding: 7px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.watch .w-need { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.watch .w-need-m { display: grid; gap: 4px; }
.watch .w-calm { display: flex; flex-wrap: wrap; gap: 3px 16px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--plate); color: var(--ink2); font-size: 13.5px; }
.watch .w-calm b { color: var(--go); font-size: 15px; }
/* no alert, but a screen is not connected: the line does not wear the colour of "all is well" */
.watch .w-calm b.partial { color: var(--ink); }
.watch .w-vital { display: inline-flex; align-items: center; white-space: nowrap; }
.watch .w-vital.st-bad, .watch .w-vital.st-warn { color: var(--ink); }
.watch .w-sev { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 4px; font: 800 10.5px/1.5 var(--mono); letter-spacing: .08em; vertical-align: 1px; background: var(--plate2); color: var(--ink2); }
.watch .sev-uyari .w-sev { background: var(--bad); color: #fff; } .watch .sev-ikaz .w-sev { background: var(--warn); color: var(--warn-ink); }
.watch .w-alert { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--plate); }
.watch .w-alert.sev-uyari { border-color: var(--bad); background: #2a0c11; } .watch .w-alert.sev-ikaz { border-color: var(--warn); background: #2a1f05; }
.watch .w-alert-x { flex: 1 1 320px; min-width: 0; }
.watch .w-alert-w { font-weight: 800; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.watch .w-alert-dl { font-family: var(--mono); }
.watch .w-alert-c { color: var(--ink2); font-size: 13px; line-height: 1.35; margin-top: 1px; overflow-wrap: anywhere; }
.watch .w-alert-f { display: flex; flex-wrap: wrap; gap: 6px; }
.watch .w-alert-l { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 3px 12px; border: 1px solid var(--line2); border-radius: 8px; font-size: 13px; color: var(--ink); }
.watch .w-alert-l.sev-uyari { border-color: var(--bad); } .watch .w-alert-l.sev-ikaz { border-color: var(--warn); }
.watch .w-alert-lt { flex: 1 1 200px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.watch .w-info { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; width: 100%; text-align: left; padding: 1px 12px; font-size: 12.5px; color: var(--ink2); }
.watch .w-info.only-link { display: none; }
.watch .w-info-more { color: var(--warn); }
.watch .w-info-t { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.watch .w-info-o { color: var(--ink3); text-decoration: underline; text-underline-offset: 2px; }
.watch .w-info .kbd { margin-left: 0; }
.watch .w-nextgo { grid-column: 1 / -1; padding: 0 12px; font-size: 12.5px; line-height: 1.35; color: var(--ink3); overflow-wrap: anywhere; }
.watch .w-nextgo b { color: var(--ink2); font-weight: 600; } .watch .w-nextgo-l { color: var(--ink2); font-weight: 700; }
.watch .w-mod { flex: none; max-width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--plate); }
.watch .w-mod-c, .watch .w-mod-f { display: flex; flex-wrap: wrap; gap: 5px 6px; align-items: center; }
.watch .w-mod-l { font: 700 11px var(--mono); letter-spacing: .08em; color: var(--ink3); text-transform: uppercase; margin-right: 2px; }
.watch .w-mod-r { flex: 1 1 auto; font-size: 13px; color: var(--ink3); } .watch .w-mod-r b { color: var(--ink2); }
.watch .w-mod-r.said b { color: var(--go); } .watch .w-mod-r.warn b { color: var(--warn); } .watch .w-mod-r.off b { color: var(--ink3); }
.watch .w-mod-s { font-family: var(--mono); }

/* ---- the scrolling part: Oylama | Ajanlar, then the low row ---- */
.watch .w-grid { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(0, 1.7fr); grid-template-areas: "vote agents" "low low"; gap: 10px; align-items: start; min-width: 0; }
.watch .w-grid > .panel-vote { grid-area: vote; } .watch .w-grid > .panel-agents { grid-area: agents; }
/* Phase 1 usability (2026-11-22): no agents in the package: the lower panels take Ajanlar's room beside Oylama */
.watch .w-grid.no-agents { grid-template-areas: "vote low"; }
.watch .w-low { grid-area: low; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.25fr); gap: 10px; align-items: start; min-width: 0; }
.watch .panel > header small { overflow-wrap: anywhere; text-align: right; }
.watch .panel > header .hacts { margin-left: auto; }
.watch .panel > header small + .hacts { margin-left: 10px; }

/* Oylama */
.watch .w-rule { margin: 8px 0 0; font-size: 13px; color: var(--ink3); line-height: 1.4; }
.watch .w-syn { margin: 4px 0 0; font-size: 13px; color: var(--ink2); } .watch .w-syn.bad { color: var(--bad); font-weight: 700; }
.watch .w-flow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 12px; margin-top: 8px; }
.watch .w-spark { display: inline-flex; align-items: flex-end; gap: 1px; height: 24px; }
.watch .w-spark i { width: 4px; border-radius: 1px; background: var(--line2); } .watch .w-spark i.r { background: var(--info); }
.watch .w-rate { font: 600 12.5px var(--mono); color: var(--ink2); }
.watch .w-idle-w { color: var(--ink3); }
.watch .w-depts { display: grid; gap: 3px; }
.watch .w-dept { display: grid; grid-template-columns: minmax(84px, 1fr) minmax(0, 1.5fr) auto; gap: 8px; align-items: baseline; font-size: 13px; color: var(--ink2); }
.watch .w-dept-n { color: var(--ink); overflow-wrap: anywhere; }
.watch .w-dept-c { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.watch .w-dept.st-eksik .w-dept-s { color: var(--warn); font-weight: 600; } .watch .w-dept.st-tamam .w-dept-s { color: var(--go); }
.watch .w-dept-p { font: 500 12px var(--mono); color: var(--ink3); text-align: right; }
.watch .w-dept-empty { font-size: 12.5px; color: var(--ink3); overflow-wrap: anywhere; }
.watch .w-decs { margin-top: 2px; }
.watch .w-dec { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.watch .w-dec-c { font: 700 11.5px/1.6 var(--mono); color: var(--ink3); overflow-wrap: anywhere; }
.watch .w-dec-x { overflow-wrap: anywhere; }
.watch .w-dec.acik .w-dec-c { color: var(--go); } .watch .w-dec.kapandi .w-dec-x { color: var(--ink); } .watch .w-dec.none { display: block; color: var(--ink3); }
.watch .w-outlook.out-green .w-dec-c { color: var(--go); } .watch .w-outlook.out-amber .w-dec-c { color: var(--warn); } .watch .w-outlook.out-red .w-dec-c { color: var(--bad); }

/* Ajanlar: every line readable, in full */
.watch .w-ag-sum { margin: 0 0 4px; font-size: 13px; color: var(--ink3); } .watch .w-ag-sum.fb { color: var(--ink2); }
.watch .w-agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.watch .w-ag { border-top: 1px solid var(--line); padding: 8px 0 8px; min-width: 0; }
.watch .w-agh { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.watch .w-agh i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.watch .w-agh b { color: var(--ink); font-size: 14px; }
.watch .w-ag-d { color: var(--ink3); font-size: 12px; }
.watch .w-tag, body.ops .wsh-cx .w-tag { display: inline-block; margin-left: auto; font: 700 11px/1.5 var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--plate2); color: var(--ink2); white-space: normal; text-align: right; }
.watch .w-tag.m-live, body.ops .wsh-cx .w-tag.m-live { color: var(--go); } .watch .w-tag.m-sablon { color: var(--info); } .watch .w-tag.m-fallback { color: var(--warn); }
.watch .w-tag.m-mock { color: #b9a4ff; } .watch .w-tag.m-pending { color: var(--info); } .watch .w-tag.over { color: var(--warn); }
.watch .w-ag-x { margin: 5px 0 0; font-size: 15px; line-height: 1.42; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.watch .w-ag-x.writing { color: var(--ink3); letter-spacing: .2em; }
.watch .w-ag.earlier .w-ag-x { color: var(--ink3); } .watch .w-ag.earlier .w-agh b { color: var(--ink2); }
.watch .w-ag-r { margin-top: 3px; font-size: 12.5px; color: var(--ink3); overflow-wrap: anywhere; } .watch .w-ag-r.fb { color: var(--warn); }
.watch .w-ag-bar { position: relative; height: 5px; margin-top: 6px; border-radius: 3px; background: var(--plate2); }
.watch .w-ag-bar i { display: block; height: 100%; border-radius: 3px; background: var(--info); } .watch .w-ag-bar.st-over i { background: var(--warn); }
.watch .w-ag-bar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink2); }
.watch .w-ag-quiet { margin: 6px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink3); } .watch .w-ag-quiet b { color: var(--ink2); font-weight: 600; }
.watch .w-ag-foot { align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* Ses ve film */
.watch .w-film-t { overflow-wrap: anywhere; }
.watch .w-film-bar { height: 5px; border-radius: 3px; background: var(--plate2); margin: 6px 0; } .watch .w-film-bar i { display: block; height: 100%; border-radius: 3px; background: var(--go); }
.watch .w-film-rule { margin: 2px 0 0; font-size: 13px; color: var(--ink3); }
.watch .w-store { margin: 12px 0 0; font-size: 13px; color: var(--ink3); overflow-wrap: anywhere; } .watch .w-store.warn { color: var(--ink2); } .watch .w-store.warn b { color: var(--warn); }

/* Işık */
.watch .w-light-now { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.watch .w-light-chip { flex: none; width: 22px; height: 14px; border-radius: 4px; border: 1px solid #fff3; }
.watch .w-light-help, .watch .w-light-cues { margin: 2px 0 0; font-size: 13px; color: var(--ink3); }
.watch .w-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 10px; }
.watch .w-sw { font-size: 12px; line-height: 1.25; color: var(--ink2); border: 1px solid var(--line); border-radius: 8px; padding: 5px; text-align: left; overflow-wrap: anywhere; }
.watch .w-sw i { display: block; height: 20px; border-radius: 5px; margin-bottom: 4px; border: 1px solid #fff2; background: var(--plate2); }
.watch .w-sw.sw-auto i { background: repeating-linear-gradient(135deg, var(--plate2) 0 6px, var(--line2) 6px 12px); }
.watch .w-sw.on { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }

/* Ekranlar ve kısayollar */
.watch .w-golines { display: grid; gap: 3px; }
.watch .w-gl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; font-size: 13px; color: var(--ink2); }
.watch .w-gl b { color: var(--ink); font-weight: 600; } .watch .w-gl span { overflow-wrap: anywhere; } .watch .w-gl.idle, .watch .w-gl.idle b { color: var(--ink3); }
.watch .w-nexts { display: grid; gap: 3px; }
.watch .w-nx { display: flex; flex-wrap: wrap; gap: 1px 8px; align-items: baseline; font-size: 13px; color: var(--ink2); }
.watch .w-nx-c { font: 600 12px var(--mono); color: var(--ink3); white-space: nowrap; }
.watch .w-nx-t { color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.watch .w-nx-g { color: var(--info); font-size: 12.5px; overflow-wrap: anywhere; }
.watch .w-clockline { margin: 0; font-size: 13px; color: var(--ink2); } .watch .w-clockline b { font-family: var(--mono); color: var(--ink); } .watch .w-clockline b.w-warn { color: var(--warn); }
.watch .w-keys { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink2); }
.watch .w-key { white-space: nowrap; } .watch .w-key .kbd { margin: 0 5px 0 0; }

/* ---- the sheets İzle registers ---- */
body.ops .wsh-alerts, body.ops .wsh-cx { padding: 12px 16px 16px; }
body.ops .wsh-none { color: var(--ink2); margin: 8px 0; }
body.ops .wsh-note { color: var(--ink3); font-size: 13px; margin: 12px 0 0; }
body.ops .wsh-alert { padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--plate); margin-bottom: 8px; }
body.ops .wsh-alert.sev-uyari { border-color: var(--bad); background: #2a0c11; } body.ops .wsh-alert.sev-ikaz { border-color: var(--warn); background: #2a1f05; }
body.ops .wsh-alert-h { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
body.ops .wsh-alert-h b { flex: 1 1 200px; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
body.ops .wsh-alert .w-sev { padding: 1px 6px; border-radius: 4px; font: 800 10.5px/1.5 var(--mono); letter-spacing: .08em; background: var(--plate2); color: var(--ink2); }
body.ops .wsh-alert.sev-uyari .w-sev { background: var(--bad); color: #fff; } body.ops .wsh-alert.sev-ikaz .w-sev { background: var(--warn); color: var(--warn-ink); }
body.ops .wsh-alert-dl { font: 700 14px var(--mono); }
body.ops .wsh-alert-c { color: var(--ink2); font-size: 14px; margin-top: 4px; overflow-wrap: anywhere; }
body.ops .wsh-alert-o { color: var(--ink3); font-size: 12px; margin-top: 2px; }
body.ops .wsh-alert-f { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
body.ops .wsh-cx { display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
body.ops .wsh-cx-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.ops .wsh-cx-pos { font: 600 13px var(--mono); color: var(--ink2); margin-right: auto; }
body.ops .wsh-cx .w-choice { display: flex; flex-wrap: wrap; gap: 5px; }
body.ops .wsh-cx-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 13px; color: var(--ink2); }
body.ops .wsh-cx .w-tag { margin-left: 0; }
body.ops .wsh-cx-size { color: var(--ink3); font-family: var(--mono); font-size: 12px; }
body.ops .wsh-cx-pre { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #07090c; color: var(--ink); font: 13px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
body.ops .wsh-cx-log { display: grid; gap: 2px; }
body.ops .wsh-cx-e { display: grid; grid-template-columns: 120px 150px minmax(0, 1fr); gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
body.ops .wsh-cx-e.head { color: var(--ink); font-weight: 600; }
body.ops .wsh-cx-at, body.ops .wsh-cx-src { font: 500 12px var(--mono); color: var(--ink3); overflow-wrap: anywhere; }
body.ops .wsh-cx-tx { overflow-wrap: anywhere; }
body.ops .wsh-mem { display: grid; gap: 2px; font-size: 14px; color: var(--ink); }
body.ops .wsh-mem-r { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
body.ops .wsh-mem-l { color: var(--ink3); }

/* ---- narrower windows: Oylama, then Ajanlar, then the low row; one column on a phone ---- */
@media (max-width: 1180px) {
  .watch .w-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "vote" "agents" "low"; }
  .watch .w-grid.no-agents { grid-template-areas: "vote" "low"; }
}
@media (max-width: 980px) {
  .watch .w-low { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch .w-low > .panel-screens { grid-column: 1 / -1; }
  .watch .w-band { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .watch .w-mod { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 5px 10px; padding: 5px 10px; }
  .watch .w-mod-f { flex: 1 1 auto; }
  .watch .w-nextgo { display: none; }
  .watch .w-side { justify-content: center; }
  .watch .w-times { display: none; }
  .watch .w-stw { flex-basis: 78px; }
}
@media (max-width: 700px) {
  .watch .w-show, .watch .w-band { padding: 6px 12px; }
  .watch .w-agents { grid-template-columns: minmax(0, 1fr); }
  .watch .w-low { grid-template-columns: minmax(0, 1fr); }
  .watch .w-stw { flex-basis: 96px; } .watch .w-st { padding: 3px 7px 5px; }
  .watch .w-st-t { font-size: 12.5px; }
  .watch .w-st:not(.st-now) .w-pips { display: none; }
  .watch .w-show { flex-direction: column; gap: 5px; }
  .watch .w-side { align-items: stretch; }
  .watch .w-jump input { flex: 1; width: auto; min-width: 0; }
  .watch .w-alert-c { display: none; }
  .watch .w-info.only-link { display: flex; }
  .watch .w-calm { padding: 5px 10px; gap: 2px 12px; font-size: 13px; }
  .watch .w-mod-l, .watch .w-mod .kbd, .watch .w-jump > .kbd, .watch .w-info .kbd { display: none; }
  .watch .w-mod .btn.small { padding: 4px 7px; }
  body.ops .wsh-cx-e { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body.ops .wsh-mem-r { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .watch .w-dec { grid-template-columns: 96px minmax(0, 1fr); }
}
/* a tablet or a phone (not this surface's first size): the fixed header takes as little height as it can without cutting
   a word. Key caps go (a touch screen has no keys; the keys still work), the rows lose their air. */
@media (max-width: 980px) {
  body.ops .where { padding: 6px 12px; gap: 4px 12px; }
  body.ops .tabs .kbd { display: none; }
  .watch .w-show, .watch .w-band { padding: 5px 12px; }
  .watch .w-mod .kbd, .watch .w-jump > .kbd, .watch .w-info .kbd, .watch .w-alert .kbd { display: none; }
  .watch .w-st { padding: 3px 7px 4px; } .watch .w-st-s { font-size: 11.5px; }
  .watch .w-pips { padding-top: 3px; }
  .watch .w-alert { padding: 5px 10px; gap: 4px 12px; } .watch .w-alert-c { font-size: 12.5px; line-height: 1.3; }
  .watch .w-mod { padding: 4px 8px; }
  .watch .w-decide { padding: 4px 12px; }
}
/* a short window (a laptop with a tall browser bar): the header gives its room back to the panels */
@media (max-height: 760px) and (min-width: 981px) {
  .watch .w-show { padding: 5px 18px; } .watch .w-band { padding: 5px 18px; }
  .watch .w-st { padding: 3px 9px 5px; }
}

/* who is connected (web/watch-access.ts): the header's compact counts and door, and the "Bağlı ekranlar" sheet */
body.ops .w-access { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line2); background: var(--plate); color: var(--ink2); font: 600 12px var(--sans); }
body.ops .w-access b { color: var(--ink); font-variant-numeric: tabular-nums; }
body.ops .w-access-n.none b { color: var(--ink3); }
body.ops .w-access-n.over, body.ops .w-access-n.over b { color: var(--warn); }
body.ops .w-access-door { color: var(--ink3); }
body.ops .w-access-door.locked { color: var(--warn); font-weight: 700; }
body.ops .w-access-req { padding: 0 6px; border-radius: 4px; background: var(--warn); color: var(--warn-ink); font-weight: 800; }
body.ops .wsh-access { padding: 12px 16px 16px; }
body.ops .wsh-access .wa-sum { margin: 0 0 6px; color: var(--ink2); }
body.ops .wsh-access .wa-h { margin: 16px 0 6px; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
body.ops .wsh-access .wa-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
body.ops .wsh-access .wa-row > b { min-width: 11em; }
body.ops .wsh-access .wa-state { flex: 1 1 14em; color: var(--ink2); }
body.ops .wsh-access .wa-state.locked { color: var(--warn); font-weight: 700; }
body.ops .wsh-access .wa-all { border-bottom: 0; }
body.ops .wsh-access .wa-help { flex: 1 1 18em; color: var(--ink3); font-size: 13px; margin: 6px 0 0; }
body.ops .wsh-access .wa-none { color: var(--ink3); margin: 4px 0; }
body.ops .wsh-access .wa-reqrow { padding: 8px 10px; border: 1px solid var(--warn); border-radius: 8px; background: #2a1f05; margin-bottom: 6px; }
body.ops .wsh-access .wa-code { font: 800 18px var(--mono); letter-spacing: .1em; color: var(--warn); }
body.ops .wsh-access .wa-acts { margin-left: auto; display: flex; gap: 6px; }
body.ops .wsh-access .wa-list { display: grid; grid-template-columns: minmax(7em, 1.1fr) minmax(7em, 1fr) minmax(8em, 1.3fr) minmax(6em, .9fr) minmax(5em, .8fr) auto; }
body.ops .wsh-access .wa-li { display: contents; }
body.ops .wsh-access .wa-li > * { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; align-self: center; }
body.ops .wsh-access .wa-lh > * { font: 700 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
body.ops .wsh-access .wa-name small { color: var(--ink3); }
body.ops .wsh-access .wa-name.over b { color: var(--warn); }
body.ops .wsh-access .wa-how.approved { color: var(--go); }
body.ops .wsh-access .wa-self { color: var(--ink3); font-size: 13px; }
body.ops .wsh-access .wa-act { text-align: right; }
body.ops .wsh-access .wa-li.self > * { color: var(--ink2); }
@media (max-width: 720px) {
  body.ops .wsh-access .wa-list { display: block; }
  body.ops .wsh-access .wa-li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  body.ops .wsh-access .wa-li > * { padding: 0; border: 0; color: var(--ink3); font-size: 13px; }
  body.ops .wsh-access .wa-li > .wa-name { flex: 1 1 60%; color: var(--ink); font-size: 15px; }
  body.ops .wsh-access .wa-li > .wa-act { order: -1; margin-left: auto; flex: none; }
  body.ops .wsh-access .wa-li > .wa-name { order: -2; }
  body.ops .wsh-access .wa-lh { display: none; }
  body.ops .wsh-access .wa-acts { margin-left: 0; }
}

/* the phone door (phone-access.ts): its words and its switch, in the screens panel and the "Bağlı ekranlar" sheet */
body.ops .w-phdoor { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 4px; padding: 7px 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--plate); }
body.ops .w-phdoor .ph-state { flex: 1 1 16em; color: var(--ink2); }
body.ops .w-phdoor.locked .ph-state { color: var(--warn); font-weight: 700; }
body.ops .wsh-access .wa-phdoor .ph-state { flex: 1 1 16em; color: var(--ink2); }
body.ops .wsh-access .wa-phdoor.locked .ph-state { color: var(--warn); font-weight: 700; }

/* ---- S3 (2026-11-17): module-off pips, the slot choice, the modules, the plan; S1's tools in Oylama ---- */
.watch .w-pips i.o { background: repeating-linear-gradient(90deg, var(--line2) 0 2px, transparent 2px 4px); opacity: .7; }
.watch .w-plan { color: var(--ink3); }
.watch .w-slot .seg-b { font-size: 12.5px; }
.watch .w-decide-n.armed { color: #ff8b97; font-weight: 700; }
.watch .w-cohorts { margin: 6px 0 0; font-size: 13px; color: var(--ink2); } .watch .w-cohorts-v { color: var(--ink3); }
.watch .w-preview { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.watch .w-preview .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.watch .w-preview .k-text { width: 7em; }
.watch .w-preview-l { color: var(--ink3); font-weight: 700; }
.watch .w-preview-t { margin: 0; color: var(--ink2); overflow-wrap: anywhere; } .watch .w-preview-t.dim { color: var(--ink3); }
.watch .w-force { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.watch .w-force.off { opacity: .7; }
.watch .w-force-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink2); }
.watch .w-force-f > span { min-width: 9em; }
.watch .w-force .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.watch .w-force-now { color: var(--warn); font-weight: 600; }
.watch .w-decide .w-slot .w-choice .btn.on { background: var(--ink); border-color: var(--ink); color: #0b0d11; }
.watch .w-decide .w-mods .btn.on { background: transparent; border-color: var(--go); color: var(--ink); }
/* G15/U35 (2026-11-17): a story block in its story's colour */
.watch .w-st.has-color { border-top: 3px solid var(--stc); }
.watch .w-st.has-color.st-now { box-shadow: inset 0 0 0 1px var(--stc); }

/* Phase 1 usability (2026-11-22): a module's on/off lives on its block of the story map (the chip row under it is gone) */
.watch .w-st.has-mods { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.watch .w-st-mods { display: flex; flex-direction: column; gap: 2px; padding: 3px 7px 4px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; background: var(--plate); }
.watch .w-st-mod { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 6px; min-width: 0; font-size: 11.5px; line-height: 1.25; color: var(--ink3); }
/* 2026-11-23 hotfix: a label must never shrink below a word (at 1280 a locked line's note squeezed it to one letter per line) */
.watch .w-st-mod-l { flex: 1 1 7em; min-width: 0; overflow-wrap: break-word; }
.watch .w-st-mod.on .w-st-mod-l { color: var(--ink2); }
.watch .w-st-mod .btn.small { flex: none; padding: 1px 9px; font-size: 11.5px; }
.watch .w-st-mod .btn.small.w-st-mod-on { border-color: var(--go); color: var(--ink); }
.watch .w-st-mod-x { flex: 0 1 auto; min-width: 0; font-style: italic; }
.watch .w-st.st-off { border-style: dashed; opacity: .6; } .watch .w-st.st-off .w-st-t { color: var(--ink3); }
.watch .w-st.st-off:not(:disabled):hover { opacity: .9; }
.watch .w-stw:has(> .w-st.st-off) > .w-st-mods { border-style: dashed; }

/* Phase 1 usability (2026-11-22): the band's things to know, each once, each with its fix */
.watch .w-calm.has-items b.partial { color: var(--ink); }
.watch .w-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); white-space: nowrap; }
.watch .w-item .w-dot { background: var(--info); }
.watch .w-item .btn.small { padding: 1px 8px; font-size: 12px; }
.watch .w-item .w-dot { margin-right: 0; }
.watch .w-st-sw { position: absolute; right: 6px; bottom: 5px; }
.watch .btn.small.w-st-sw { padding: 1px 9px; font-size: 11.5px; }
.watch .btn.small.w-st-sw.w-st-mod-on { border-color: var(--go); color: var(--ink); }
.watch span.w-st-sw { font-size: 11px; color: var(--ink3); font-style: italic; }
.watch .w-st.has-sw .w-pips { margin-right: 50px; }
.watch .w-st.st-off .w-pips { visibility: hidden; }

/* ---- web/css/prep.css ---- */
/* ---------- Hazırlık (web/prep*.ts): scoped under .prep (the shell puts it on .ops-app while /ops/hazirlik is shown) ---------- */
/* Tokens, .btn, .label, .kbd are show.css's (body.show). Everything here is prefixed pr- so no older unscoped rule bites. */

.prep .prep-body:not([hidden]) { display: grid; gap: 14px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.prep .prep-body > * { min-width: 0; }
.prep .prep-body p { margin: 0; }
.prep .mono { font-family: var(--mono); font-size: .92em; }
.prep .pr-sp { flex: 1; }
.prep .btn { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; text-align: left; line-height: 1.25; overflow-wrap: anywhere; }
.prep .btn.small.on { background: var(--ink); color: #0b0d11; border-color: var(--ink); }
.prep .btn.off { opacity: .5; text-decoration: line-through; }
.prep .btn.primary.armed, .prep .btn.guard.armed { background: var(--bad); border-color: var(--bad); color: #fff; }

/* the band: a session is running */
.prep .pr-band { padding: 10px 14px; border: 1px solid var(--warn); border-radius: 10px; background: #2a1f05; color: #ffd58a; font-size: 14px; display: grid; gap: 3px; }
.prep .pr-band.live { border-color: var(--bad); background: #2a0a10; color: #ffc2c8; }
.prep .pr-band b { color: #fff; }

/* "Gösteriye hazır mıyız?" */
.prep .pr-ready { border: 1px solid var(--line); border-radius: 12px; background: var(--plate); padding: 14px 16px; }
.prep .pr-ready-h { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; margin-bottom: 8px; }
.prep .pr-ready-t { flex: 1 1 260px; min-width: 0; }
.prep .pr-ready-t .label { margin: 0 0 2px; font-size: 13px; color: var(--ink); }
.prep .pr-ready-s { font-size: 14px; color: var(--ink2); }
.prep .pr-ready-s.bad { color: var(--warn); }
.prep .pr-ready-s.ok { color: var(--go); }
.prep .pr-ready-a { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; max-width: 100%; }
.prep .pr-ready-a .btn.primary { font-size: 16px; padding: 10px 18px; }
.prep .pr-quiet { color: var(--ink2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 2px 0; background: none; border: 0; text-align: right; }
.prep .pr-ready-why { color: var(--ink3); font-size: 12.5px; text-align: right; }
.prep .pr-chkgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.prep .pr-chk { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.prep .pr-chk .btn { max-width: 150px; }
.prep .pr-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.prep .pr-chk.s-ok .pr-mark { background: #0f3a22; color: var(--go); }
.prep .pr-chk.s-note .pr-mark { background: #10263f; color: var(--info); font-style: italic; }
.prep .pr-chk.s-bad .pr-mark { background: #3a2a05; color: var(--warn); }
.prep .pr-chk-w { min-width: 0; overflow-wrap: anywhere; }
.prep .pr-chk-w b { display: block; color: var(--ink); font-size: 14.5px; }
.prep .pr-chk.s-bad .pr-chk-w b { color: var(--warn); }
.prep .pr-chk-w small { display: block; color: var(--ink3); font-size: 13px; }

/* nav + content */
.prep .pr-cols { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: start; }
/* the sections stay at hand while a long section (a selected package's detail) scrolls: no empty strip beside it */
.prep .pr-nav { display: grid; gap: 4px; align-content: start; min-width: 0; position: sticky; top: 0; }
.prep .pr-nav button { text-align: left; padding: 9px 12px; border-radius: 9px; border: 1px solid transparent; color: var(--ink2); background: none; min-width: 0; }
.prep .pr-nav button b { display: block; font-size: 15px; }
.prep .pr-nav button small { display: block; color: var(--ink3); font-size: 12.5px; overflow-wrap: anywhere; }
.prep .pr-nav button.on { background: var(--plate); border-color: var(--line2); color: var(--ink); }
.prep .pr-content { border: 1px solid var(--line); border-radius: 12px; background: var(--plate); padding: 16px; min-width: 0; display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); color: var(--ink2); font-size: 14px; scroll-margin-top: 8px; }
.prep .pr-content > * { min-width: 0; }
.prep .pr-content h3 { margin: 0; font-size: 18px; color: var(--ink); }

/* cards, lines, fields */
.prep .pr-card { border: 1px solid var(--line); border-radius: 10px; background: var(--plate2); padding: 12px 14px; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.prep .pr-card > * { min-width: 0; }
.prep .pr-card-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.prep .pr-card-h b { font-size: 15.5px; color: var(--ink); overflow-wrap: anywhere; }
.prep .pr-card-h small { color: var(--ink3); font-size: 12.5px; margin-right: auto; }
.prep .pr-card-h .btn { margin-left: auto; }
.prep .pr-line { overflow-wrap: anywhere; }
.prep .pr-help { color: var(--ink3); font-size: 13px; }
.prep .pr-facts { color: var(--ink2); font-size: 13.5px; }
.prep .pr-meta { color: var(--ink3); font-size: 13px; }
.prep .pr-where { color: var(--ink); }
.prep .pr-ok { color: var(--go); }
.prep .pr-bad { color: #ff8b97; }
.prep .pr-refuse { color: #ffd58a; border: 1px solid var(--warn); border-radius: 8px; padding: 7px 10px; background: #2a1f05; font-size: 13.5px; }
.prep .pr-sbx { font: 12.5px var(--mono); color: var(--ink2); }
.prep .pr-sbx.bad { color: #ff8b97; }
.prep .pr-more { color: var(--info); text-decoration: underline; font-size: 13px; background: none; border: 0; padding: 0; }
.prep .pr-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.prep .pr-sub .label { margin: 0; }
.prep .pr-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.prep .pr-field { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 10px; align-items: center; min-width: 0; }
.prep .pr-field > :nth-child(n+3) { grid-column: 2; justify-self: start; }
/* a control keeps its own width: only text fields stretch */
.prep .pr-field > .seg, .prep .pr-field > .btn, .prep .pr-field > label { justify-self: start; }
.prep .pr-fl { color: var(--ink3); font-size: 13px; }
.prep .pr-val { color: var(--ink); }
.prep .pr-val.dim, .prep .dim { color: var(--ink3); }
.prep .pr-val.ok { color: var(--go); }
.prep .pr-val.bad { color: var(--warn); font-weight: 700; }
.prep .pr-val.run { color: var(--info); }
.prep .pr-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13.5px; }
.prep .pr-kv dt { color: var(--ink3); }
.prep .pr-kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.prep .pr-kv dd.warn { color: var(--warn); }
.prep .pr-kv dd.bad { color: #ff8b97; }
.prep input.k-text { width: 100%; max-width: 26em; min-width: 0; }
.prep input.k-num { width: 10em; }
.prep .pr-select { max-width: 100%; min-width: 0; width: 100%; max-width: 30em; }
.prep .pr-area { display: block; width: 100%; box-sizing: border-box; min-height: 3.4em; resize: vertical; }
.prep .seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; max-width: 100%; }
.prep .seg-b { border: 0; border-right: 1px solid var(--line2); border-radius: 0; background: #0f1217; padding: 5px 11px; color: var(--ink2); font-size: 13.5px; }
.prep .seg-b:last-child { border-right: 0; }
.prep .seg-b.on { background: var(--ink); color: #0b0d11; font-weight: 700; }
.prep .seg-b:disabled { opacity: .4; }
.prep .pr-pick { cursor: pointer; position: relative; /* the hidden input is absolute: without this its focus scrolls the whole frame */ }
.prep .pr-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.prep .pr-pick:focus-within { outline: 2px solid var(--info); }
.prep .pr-prog { height: 6px; border-radius: 3px; background: #0a0c10; overflow: hidden; }
.prep .pr-prog i { display: block; height: 100%; background: var(--info); }
.prep .pr-prog.ok i { background: var(--go); }
.prep .pr-prog.bad i { background: var(--bad); }
.prep .pr-typed { border: 1px solid var(--line2); border-radius: 8px; padding: 9px 11px; display: grid; gap: 6px; }
.prep .pr-typed.red { border-color: #5a1620; }
.prep .pr-typed-t { font-size: 13.5px; color: var(--ink2); overflow-wrap: anywhere; }
.prep .pr-typed input { width: 14em; }
.prep .pr-inform { border: 1px solid var(--line2); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }

/* Paketler: upload zone + guide */
.prep .pr-pktop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prep .pr-drop, .prep .pr-guide { border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink2); min-width: 0; }
.prep .pr-drop { border: 2px dashed var(--line2); align-items: center; text-align: center; justify-content: center; }
.prep .pr-drop.over { border-color: var(--go); background: #0c1f14; }
.prep .pr-drop .pr-row, .prep .pr-drop .pr-prog { justify-content: center; align-self: stretch; }
.prep .pr-drop b, .prep .pr-guide b { color: var(--ink); font-size: 16px; }
.prep .pr-drop small { color: var(--ink3); }
.prep .pr-guide { border: 1px solid var(--info); background: #0b1a2e; }
.prep .pr-msgs { align-self: stretch; text-align: left; display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.prep .pr-msg { margin: 0; border-left: 3px solid var(--warn); padding: 5px 9px; background: #0c0e12; border-radius: 0 6px 6px 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.prep pre.pr-msg { font: 12.5px var(--mono); }
.prep .pr-msg.error { border-left-color: var(--bad); }
.prep .pr-msg-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.prep .pr-msg-at { font: 700 12px var(--mono); color: var(--warn); }
.prep .pr-msg.error .pr-msg-at { color: #ff8b97; }
.prep .pr-msg-h code { color: var(--ink3); font-size: 12px; overflow-wrap: anywhere; }
.prep .pr-msg-b { color: var(--ink); overflow-wrap: anywhere; }

/* Paketler: the table */
.prep .pr-filt { gap: 6px; }
.prep .pr-table { min-width: 0; }
.prep .pr-pk { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, .9fr) 16px; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 9px 8px; font-size: 14px; color: var(--ink2); background: none; border: 0; border-radius: 0; min-width: 0; }
.prep .pr-pk > span { min-width: 0; overflow-wrap: anywhere; }
.prep .pr-pk.head { font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); padding-top: 2px; padding-bottom: 6px; }
.prep .pr-pkw { border-top: 1px solid var(--line); min-width: 0; }
.prep .pr-pkw.dim > .pr-pk, .prep .pr-pkw.dim > .pr-pkrow { opacity: .6; }
.prep .pr-pkw.sel { background: var(--plate2); border-radius: 8px; border-top-color: transparent; margin-bottom: 6px; }
.prep .pr-pk b { color: var(--ink); }
.prep .pr-pk em { font-style: normal; font-size: 11px; font-weight: 700; border: 1px solid; border-radius: 4px; padding: 0 5px; margin-left: 6px; white-space: nowrap; }
.prep .pr-pk em.open { color: var(--go); }
.prep .pr-pk em.def { color: var(--info); }
.prep .pr-pk em.stray { color: var(--ink2); border-style: dashed; white-space: normal; }
.prep .pr-pk .c-go { color: var(--ink3); text-align: right; }
.prep .pr-state { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #0f1217; color: var(--ink2); display: inline-block; }
.prep .pr-state.s-live { background: #0f3a22; color: var(--go); }
.prep .pr-state.s-draft { background: #3a2a05; color: var(--warn); }
.prep .pr-pkrow { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; }
.prep .pr-table.pick .pr-pk.head { grid-template-columns: 24px minmax(0, 1.7fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, .9fr) 16px; }
.prep .pr-chk-c { display: grid; place-items: center; }
.prep .pr-chk-c.off { color: var(--ink3); }
.prep button.pr-chk { width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--line2); background: #0a0c10; color: var(--go-ink); font-weight: 800; padding: 0; display: grid; place-items: center; }
.prep button.pr-chk.on { background: var(--go); border-color: var(--go); }
.prep .pr-detail { padding: 4px 14px 14px; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.prep .pr-detail > * { min-width: 0; }
.prep .pr-errs { border: 1px solid var(--bad); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }
.prep .pr-errs.warn { border-color: var(--warn); }
.prep .pr-errs-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.prep .pr-errs-h b { color: #ff8b97; font-size: 15px; }
.prep .pr-errs.warn .pr-errs-h b { color: var(--warn); }
.prep .pr-errs-h small { color: var(--ink3); margin-right: auto; }
.prep .pr-stories { display: grid; }
.prep .pr-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, 1.5fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink2); }
.prep .pr-story > * { min-width: 0; overflow-wrap: anywhere; }
.prep .pr-story b { color: var(--ink); }
.prep .pr-story .cond { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.prep .pr-story .cond-w { color: var(--warn); }
.prep .pr-story .pr-when { font: 12px/1.5 var(--mono); color: var(--ink); background: var(--plate2); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 6px; overflow-wrap: anywhere; max-width: 100%; }
.prep .pr-story .cond-t { color: var(--ink2); }
.prep .pr-story.show b { color: var(--ink2); font-weight: 500; }
.prep .pr-bars { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #0a0c10; }
.prep .pr-bars i { display: block; height: 100%; }
.prep .pr-bars .c-g { background: var(--go); } .prep .pr-bars .c-a { background: var(--warn); } .prep .pr-bars .c-r { background: var(--bad); } .prep .pr-bars .c-o { background: var(--info); } .prep .pr-bars .c-x { background: #7a1020; }
.prep .pr-edit { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); justify-items: start; }
.prep .pr-edit input.k-text { max-width: 40em; }

/* bulk cleanup */
.prep .pr-bulk { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.prep .pr-bulk-n { color: var(--ink2); margin-right: auto; }
.prep .pr-bulk-note.ok { color: var(--go); } .prep .pr-bulk-note.bad { color: #ff8b97; }
.prep .pr-bulk-box { border: 1px solid #5a1620; border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; }
.prep .pr-bulk-box .pr-row b { margin-right: auto; color: var(--ink); }
.prep .pr-bulk-l { display: grid; gap: 2px; max-height: 200px; overflow: auto; }
.prep .pr-bulk-i { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; padding: 3px 0; border-top: 1px solid var(--line); }
.prep .pr-bulk-i b { color: var(--ink); }

/* Prova */
.prep .pr-depts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink2); }

/* Medya, Kayıtlar: tables */
.prep .pr-md { display: grid; grid-template-columns: minmax(0, 1.2fr) 48px minmax(0, 1.5fr) minmax(0, 1fr) 124px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.prep .pr-md > * { min-width: 0; overflow-wrap: anywhere; }
.prep .pr-md.head, .prep .pr-run.head { font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); border-top: 0; }
.prep .pr-md b { color: var(--ink); }
.prep .pr-md .ok { color: var(--go); } .prep .pr-md .bad { color: #ff8b97; font-weight: 700; } .prep .pr-md .warn { color: var(--warn); font-weight: 700; }
.prep .pr-md-a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.prep .pr-run { display: grid; grid-template-columns: 96px 62px minmax(0, 1fr) 44px 64px 124px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.prep .pr-run > * { min-width: 0; overflow-wrap: anywhere; }
.prep .pr-run.cur { background: #0f1a14; }
.prep .pr-run-l b { display: block; color: var(--ink); }
.prep .pr-run-l small { color: var(--ink3); }
.prep .pr-run-dl { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.prep .pr-runs { max-height: 420px; overflow-y: auto; }
.prep .pr-backups { display: grid; }
.prep .pr-backup { display: grid; grid-template-columns: minmax(0, 1fr) 80px 110px; justify-items: start; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.prep .pr-chips .btn.small { padding: 3px 9px; font-size: 12.5px; }
.prep .pr-log { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: #0a0c10; }
.prep .pr-lg { display: grid; grid-template-columns: 66px 76px minmax(0, 1fr); gap: 10px; padding: 4px 10px; border-top: 1px solid var(--line); font-size: 13px; }
.prep .pr-lg:first-child { border-top: 0; }
.prep .pr-lg .k { color: var(--ink3); }
.prep .pr-lg .t { color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.prep .pr-lg.c-error .t { color: #ff8b97; }
.prep .pr-lg.c-mod .k, .prep .pr-lg.c-ops .k { color: var(--info); }
.prep .pr-tel { min-width: 0; overflow-x: auto; }

@media (max-width: 1180px) {
  .prep .pr-chkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prep .pr-pk { grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, .9fr) 16px; }
  .prep .pr-table.pick .pr-pk.head { grid-template-columns: 24px minmax(0, 1.7fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, .9fr) 16px; }
  .prep .pr-pk > .c-author, .prep .pr-pk > .c-up { display: none; }
  .prep .pr-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
@media (max-width: 980px) {
  .prep .pr-cols { grid-template-columns: minmax(0, 1fr); }
  .prep .pr-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); position: static; }
}
@media (max-width: 700px) {
  .prep .pr-chkgrid { grid-template-columns: minmax(0, 1fr); }
  .prep .pr-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prep .pr-pktop { grid-template-columns: minmax(0, 1fr); }
  .prep .pr-ready-a { align-items: stretch; flex: 1 1 100%; }
  .prep .pr-ready-a .btn.primary { justify-content: center; text-align: center; }
  .prep .pr-quiet, .prep .pr-ready-why { text-align: left; }
  .prep .pr-content { padding: 12px; }
  .prep .pr-chk { grid-template-columns: 26px minmax(0, 1fr); }
  .prep .pr-chk .btn { grid-column: 2; justify-self: start; max-width: 100%; }
  .prep .pr-field { grid-template-columns: minmax(0, 1fr); }
  .prep .pr-field > :nth-child(n+3) { grid-column: 1; }
  .prep .pr-pk.head { display: none; }
  .prep .pr-pk { grid-template-columns: minmax(0, 1fr) auto auto 16px; grid-template-areas: "name name name go" "ver state val go"; gap: 4px 10px; }
  .prep .pr-pk > .c-name { grid-area: name; } .prep .pr-pk > .c-ver { grid-area: ver; } .prep .pr-pk > .c-state { grid-area: state; } .prep .pr-pk > .c-val { grid-area: val; } .prep .pr-pk > .c-go { grid-area: go; }
  .prep .pr-detail { padding: 4px 10px 12px; }
  .prep .pr-story { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .prep .pr-md { grid-template-columns: minmax(0, 1fr) auto; }
  .prep .pr-md.head { display: none; }
  .prep .pr-md > :nth-child(2) { justify-self: end; color: var(--ink3); }
  .prep .pr-md > :nth-child(3), .prep .pr-md > :nth-child(4), .prep .pr-md > :nth-child(5) { grid-column: 1 / -1; justify-content: flex-start; }
  .prep .pr-run { grid-template-columns: minmax(0, 1fr) auto auto; }
  .prep .pr-run.head { display: none; }
  .prep .pr-run > :nth-child(3), .prep .pr-run > :nth-child(6) { grid-column: 1 / -1; justify-content: flex-start; }
  .prep .pr-lg { grid-template-columns: 58px 60px minmax(0, 1fr); gap: 6px; padding: 4px 8px; }
}
/* Hazırlık → Oturum → Telefonla katılım (phone-access.ts) */
.prep .ph-door { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.prep .ph-door .ph-state { flex: 1 1 16em; color: var(--ink); }
.prep .ph-door.locked .ph-state { color: var(--warn); font-weight: 700; }
.prep .pr-sublabel { margin: 14px 0 4px; }
.prep .ph-label { display: grid; gap: 6px; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--line2); border-radius: 8px; min-width: 0; }
.prep .ph-label.st-open { border-color: var(--go); }
.prep .ph-lh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.prep .ph-lurl { font: 700 15px var(--mono); overflow-wrap: anywhere; }
.prep .ph-lstate { color: var(--ink3); font-size: 13px; }
.prep .ph-label.st-open .ph-lstate { color: var(--go); font-weight: 700; }
.prep .ph-lbound { margin: 0; }
.prep .ph-lacts, .prep .ph-lclose { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.prep .ph-lclose .pr-fl { min-width: 5em; }
.prep .ph-lclose input { max-width: 100%; }

/* ---- S3 (2026-11-17): lengths, modules, alternative stories and what a choice plays (web/show-plan-ui.ts) ---- */
.prep .pr-plan { color: var(--ink); font: 700 14px var(--sans); }
.prep .mods { display: flex; flex-direction: column; gap: 6px; }
.prep .mod-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.prep .mod-row.on { border-color: var(--go); }
.prep .mod-row.locked { opacity: .6; }
.prep .mod-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.prep .mod-help { color: var(--ink2); font-size: 13px; }
.prep .mod-notes { color: var(--ink3); font-size: 12px; }
.prep .fork-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.prep .fork-lbl { color: var(--ink2); font-weight: 600; }
.prep .fork-why { color: var(--ink3); }

/* Kontrol (web/prep-check.ts): the technical check before doors */
.prep .pr-card.live { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn) inset; }
.prep .ck-snd { flex-wrap: wrap; gap: 6px; }
.prep .ck-stages { display: grid; gap: 0; }
.prep .ck-st { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.prep .ck-st:first-child { border-top: 0; }
.prep .ck-st > b { color: var(--ink); }
.prep .ck-st.big > b { color: var(--go); }
.prep .ck-st .pr-kv dd.ok, .prep [data-k="card-ck-phones"] .pr-kv dd.ok, .prep [data-k="card-ck-server"] .pr-kv dd.ok { color: var(--go); }

/* Phase 1 usability (2026-11-22): THE open button (under the checklist and at the end of Oturum) says what it opens */
.prep .pr-open { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; max-width: 100%; margin-top: 6px; }
.prep .pr-ready-a .pr-open { align-items: flex-end; margin-top: 0; }
.prep .pr-open .btn.primary { font-size: 16px; padding: 10px 18px; }
.prep .pr-open-w { color: var(--ink3); font-size: 12.5px; overflow-wrap: anywhere; max-width: 560px; }
.prep .pr-ready-a .pr-open-w { text-align: right; }
.prep .pr-open-w b { color: var(--ink2); }
@media (max-width: 720px) { .prep .pr-ready-a .pr-open { align-items: stretch; } .prep .pr-ready-a .pr-open-w { text-align: left; } }

/* ---- web/css/console.css ---- */
/* ---------- Ops Phase 2 (2026-11-23): the frame of the three moments (web/ops.ts), the run console (web/watch.ts,
   web/console-now.ts, web/watch-head.ts storyMap) and Kurulum (web/setup.ts). Vault: Screens/console.md, setup.md.
   Laptop first: 1280×720 and up, no page scroll; a column that cannot fit scrolls inside itself. ---------- */

/* the header: one row; the moderator's signals and the stage sound sit in it on Gösteri and Araçlar */
body.ops .ops-hd { flex-wrap: nowrap; gap: 10px; padding: 7px 14px; align-items: center; }
body.ops .ops-hd .tabs button { padding: 5px 11px; }
body.ops .ops-hd .hd-org { color: var(--ink2); font-weight: 600; white-space: nowrap; flex: none; }
body.ops .ops-hd .meta { flex-wrap: nowrap; gap: 10px; min-width: 0; }
body.ops .ops-hd .hd-mod { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 0; border: 0; background: none; min-width: 0; }
body.ops .ops-hd .w-mod-c { display: flex; flex-wrap: nowrap; gap: 5px; align-items: center; }
body.ops .ops-hd .w-mod-c .btn.small { padding: 3px 8px; font-size: 12.5px; white-space: nowrap; }
body.ops .ops-hd .w-mod-c .btn.small.on { background: var(--warn); color: var(--warn-ink); border-color: var(--warn); }
body.ops .ops-hd .w-mod-l { font: 700 10.5px var(--mono); letter-spacing: .08em; color: var(--ink3); text-transform: uppercase; }
body.ops .ops-hd .w-mod-f { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; }
body.ops .ops-hd .w-mod-r { font: 500 12px var(--sans); color: var(--ink3); white-space: nowrap; }
body.ops .ops-hd .w-mod-r b { color: var(--ink2); } body.ops .ops-hd .w-mod-r.said b { color: var(--go); } body.ops .ops-hd .w-mod-r.warn b { color: var(--warn); }
body.ops .ops-hd [data-k="w-mod-m"] { display: none; } /* M is a key and in help; the header has no room for a second button */
body.ops .ops-hd .hd-modbox { display: flex; min-width: 0; font: 600 13px var(--sans); }
body.ops .ops-hd .w-mod-r:not(.said):not(.warn) { display: none; } /* his reply only when he has said something */
body.ops .ops-hd .hd-mute { white-space: nowrap; }
/* offline: the header's controls act no more than the panels do (the switch and the mode stay) */
body.ops.offline .ops-hd .hd-modbox, body.ops.offline .ops-hd .hd-mute { pointer-events: none; opacity: .6; }
body.ops .ops-hd .hd-mute.on { background: var(--bad); border-color: var(--bad); color: #fff; }
@media (max-width: 1440px) { body.ops .ops-hd .w-mod-l, body.ops .ops-hd .hd-org { display: none; } }

/* the band: what needs you (left), who is connected (right); never taller than two lines of an alert */
body.ops .c-bandbox .w-band { padding: 6px 14px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 50px; }
body.ops .c-bandbox .w-calm { padding: 5px 12px; }
body.ops .c-bandbox .w-alert { padding: 4px 12px; }
body.ops .c-bandbox .w-access { align-self: center; }

/* the console: three columns, the page never scrolls */
body.ops .ops-app.watch .watch-body { overflow: hidden; padding: 10px 14px; display: flex; }
.watch .c-grid { flex: 1; min-height: 0; min-width: 0; display: grid; grid-template-columns: 270px minmax(0, 1fr) 430px; gap: 10px; }
@media (min-width: 1600px) { .watch .c-grid { grid-template-columns: 330px minmax(0, 1fr) 560px; } }
.watch .c-col { min-height: 0; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--deck); overflow: hidden; }
.watch .c-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overflow-anchor: none; }
.watch .c-colh { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.watch .c-colh b { font-size: 14px; } .watch .c-colh .where-step { margin-left: auto; font: 700 12px var(--mono); color: var(--ink2); }

/* the show map: the blocks of İzle's row, as a list */
.watch .c-map .w-jump { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.watch .c-map .w-jump input { flex: 1; min-width: 0; width: auto; }
.watch .c-map .w-stories { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0; }
.watch .c-map .w-stw { flex: none; border-bottom: 1px solid var(--line); padding: 0; }
.watch .c-map .w-st { border: 0; border-radius: 0; background: none; padding: 7px 12px 7px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
.watch .c-map .w-st-t { grid-column: 1; font-size: 13.5px; }
.watch .c-map .w-st-s { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; font-size: 12px; }
.watch .c-map .w-pips { grid-column: 1 / -1; padding-top: 4px; margin: 0; }
.watch .c-map .w-st.st-now { background: #0c1f15; box-shadow: inset 3px 0 0 var(--go); }
.watch .c-map .w-st.st-off, .watch .c-map .w-st.st-skipped { background: repeating-linear-gradient(135deg, transparent 0 6px, #11141a 6px 12px); }
.watch .c-map .w-st.armed { background: #2a0c11; }
.watch .c-map .w-st.has-sw { padding-right: 70px; }
.watch .c-map .w-stw > .w-st-sw { position: absolute; right: 10px; top: 6px; }
.watch .c-map .w-st-mods { display: grid; gap: 3px; padding: 0 12px 7px; }
.watch .c-map .w-st-mod { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; font-size: 12px; color: var(--ink2); writing-mode: horizontal-tb; }
.watch .c-map .w-st-mod .btn.small { padding: 1px 8px; font-size: 11.5px; }
.watch .c-map .w-st-mod-x { font-size: 11.5px; font-style: italic; color: var(--ink3); }
.watch .c-map .c-now2 { margin: 0; padding: 0 12px 7px; font-size: 12px; color: var(--ink2); background: #0c1f15; box-shadow: inset 3px 0 0 var(--go); }
.watch .c-map .c-now2 b { color: var(--ink); }
.watch .c-map .c-decide { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0 12px 8px; font-size: 12px; }
.watch .c-map .c-decide b { display: none; } /* the story's name is the row above */
.watch .c-map .c-decide .btn.small { padding: 2px 8px; font-size: 12px; }
.watch .c-map .c-decide .btn.on { border-color: var(--info); color: var(--ink); }
.watch .c-map .c-decide .w-decide-n { color: var(--info); }

/* now and next */
.watch .c-now-in { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; }
.watch .c-story { margin: 0; color: var(--go); font-weight: 700; font-size: 13.5px; overflow-wrap: anywhere; }
.watch .c-title { margin: -4px 0 0; font-size: 22px; line-height: 1.22; overflow-wrap: anywhere; }
.watch .c-facts { margin: -2px 0 0; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; font: 600 12px var(--mono); color: var(--ink3); }
.watch .c-facts .w-times { white-space: normal; }
.watch .c-facts .code { color: var(--ink3); } .watch .c-facts .w-times b { color: var(--ink); } .watch .c-facts .w-dev.late { color: var(--warn); }
.watch .c-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.watch .c-mini { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding-bottom: 22px; box-sizing: content-box; border: 0; background: none; cursor: zoom-in; }
.watch .c-mini::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 22px; border: 1px solid var(--line2); border-radius: 8px; background: #000; }
.watch .c-mini-cap { position: absolute; left: 0; bottom: 0; font: 600 11.5px var(--mono); color: var(--ink3); }
.watch .c-mini-cap .kbd { margin: 0 6px 0 0; }
body.ops .c-mini-host { position: fixed; z-index: 30; overflow: hidden; border-radius: 8px; pointer-events: none; background: #000; }
body.ops .c-mini-host iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.watch .c-side { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.watch .c-side .opsline { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid #3a3115; border-radius: 8px; background: #1b170b; }
.watch .c-side .opsline.quiet { padding: 0; border: 0; background: none; }
.watch .c-side .ol-left { flex: none; }
.watch .c-comps { min-width: 0; overflow-x: auto; font-size: 12px; color: var(--ink2); border-top: 1px solid var(--line); padding-top: 8px; }
.watch .c-comps .ol-comps { max-height: none; flex: none; }
.watch .c-side .ol-cue { color: #f0dca4; }
.watch .c-side .w-pages { margin-top: 0; gap: 6px; }
.watch .c-side .w-pages .btn.small { padding: 3px 8px; font-size: 12px; }
.watch .c-side .w-note { font-size: 12px; margin: 0; }
.watch .c-side .c-open { margin-top: 0; gap: 6px; }
.watch .c-side .c-open .btn.small { padding: 3px 8px; font-size: 12px; }
.watch .c-next { border: 1px solid #1f5135; border-radius: 10px; background: #0b1d13; padding: 10px 14px; }
.watch .c-next.warn { border-color: var(--warn); background: #2a1f05; } .watch .c-next.off { border-color: var(--line2); background: var(--plate); }
.watch .c-next .label { margin: 0 0 2px; color: #5fd296; }
.watch .c-next-big { margin: 0 0 6px; font-size: 20px; font-weight: 750; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.watch .c-next-dest { color: var(--ink2); font-weight: 600; }
.watch .c-next .w-golines { display: grid; gap: 2px; }
.watch .c-next .w-gl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 13px; color: var(--ink2); }
.watch .c-next .w-gl b { color: var(--ink); font-weight: 600; } .watch .c-next .w-gl.idle { color: var(--ink3); }

/* context: the current position's parts, then the tail */
.watch .c-ctx-in { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.watch .c-ctx .panel { border-radius: 10px; }
.watch .c-ctx .panel.active { border-color: var(--line2); box-shadow: none; }
.watch .c-ctx .w-agents { grid-template-columns: minmax(0, 1fr); }
.watch .c-idle { padding: 10px 12px; margin: 0; }
.watch .c-tail { padding: 0 6px 6px; }
.watch .c-tail .w-nx { font-size: 12.5px; }

/* a short window: the console keeps its regions, the centre's stage gets smaller */
@media (max-height: 760px) { .watch .c-title { font-size: 19px; } .watch .c-next-big { font-size: 17px; } .watch .c-stage { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); } }
/* narrower than a laptop: one column, the page body scrolls (a phone is not the console's target) */
@media (max-width: 1100px) {
  body.ops .ops-app.watch .watch-body { overflow-y: auto; display: block; }
  .watch .c-grid { display: flex; flex-direction: column; }
  .watch .c-col { overflow: visible; }
  .watch .c-scroll, .watch .c-now-in { overflow: visible; }
  body.ops .ops-hd { flex-wrap: wrap; }
}

/* ---------- Kurulum ---------- */
body.ops .ops-app.setup .setup-body { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.setup .su-band { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #0b1d13; border-bottom: 1px solid #1f5135; font-size: 14px; }
.setup .su-band.live { background: #2a0c11; border-color: var(--bad); }
.setup .su-band b { color: var(--go); } .setup .su-band-m { color: var(--ink2); flex: 1; min-width: 0; }
.setup .su-steps { flex: none; display: flex; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #0a0c0f; }
.setup .su-step { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); background: var(--plate); color: var(--ink3); text-align: left; }
.setup .su-step:first-child { border-radius: 10px 0 0 10px; } .setup .su-step:last-child { border-radius: 0 10px 10px 0; } .setup .su-step + .su-step { border-left: 0; }
.setup .su-no { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--mono); border: 1px solid var(--line2); }
.setup .su-st { min-width: 0; display: flex; flex-direction: column; } .setup .su-st b { color: var(--ink2); font-size: 14px; } .setup .su-st small { font-size: 12px; overflow-wrap: anywhere; }
.setup .su-step.on { background: var(--plate2); border-color: var(--ink3); } .setup .su-step.on b { color: var(--ink); } .setup .su-step.on .su-no { background: var(--ink); color: #000; }
.setup .su-step.done .su-no { background: #0f3a22; color: var(--go); border-color: #1f5135; }
.setup .su-main { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; }
.setup .su-main.su-plan, .setup .su-main.su-ac { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.setup .su-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.setup .su-card { display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--plate); }
.setup .su-card:hover { border-color: var(--ink3); }
.setup .su-card.on { border-color: var(--go); box-shadow: 0 0 0 1px var(--go) inset; background: #0d1a13; }
.setup .su-card-t { font-size: 16px; color: var(--ink); } .setup .su-card-l { font: 600 12.5px var(--mono); color: var(--ink2); } .setup .su-card-d { font-size: 13px; color: var(--ink3); }
.setup .su-tags { display: flex; flex-wrap: wrap; gap: 6px; } .setup .su-tag { font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 6px; background: var(--plate2); color: var(--ink2); }
.setup .su-tag.g { background: #0f3a22; color: var(--go); } .setup .su-tag.bad { background: #3a0d14; color: #ff8b97; }
.setup .su-note { color: var(--ink3); font-size: 13px; margin: 12px 0 0; }
.setup .su-link { color: var(--info); text-decoration: underline; text-underline-offset: 2px; }
.setup .su-sum, .setup .su-open { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--plate); position: sticky; top: 0; }
.setup .su-open { border-color: #1f5135; background: #0b1d13; }
.setup .su-sum .label, .setup .su-open .label { margin: 0; }
.setup .su-sum-big { margin: 0; font: 700 16px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.setup .su-sum-p { margin: 0; font-size: 13px; color: var(--ink2); } .setup .su-sum-p.dim { color: var(--ink3); }
.setup .su-chks { border: 1px solid var(--line); border-radius: 12px; background: var(--plate); }
.setup .su-ready-s { margin: 0; padding: 10px 12px; font-weight: 700; border-bottom: 1px solid var(--line); } .setup .su-ready-s.bad { color: var(--warn); } .setup .su-ready-s.ok { color: var(--go); }
.setup .su-chk { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #1a1e25; }
.setup .su-chk:last-child { border-bottom: 0; }
.setup .su-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: #0f3a22; color: var(--go); }
.setup .su-chk.s-bad .su-mark { background: #3a2a06; color: var(--warn); } .setup .su-chk.s-note .su-mark { background: #0d2238; color: var(--info); }
.setup .su-chk-w { min-width: 0; } .setup .su-chk-w b { display: block; font-size: 14px; } .setup .su-chk-w small { display: block; color: var(--ink3); font-size: 12.5px; overflow-wrap: anywhere; }
.setup .su-open .pr-open .btn.primary { font-size: 17px; padding: 12px 16px; text-align: left; white-space: normal; }
.setup .su-foot { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--deck); }
.setup .su-foot-m { flex: 1; color: var(--ink3); font-size: 13px; text-align: center; }
@media (max-width: 1100px) { .setup .su-main.su-plan, .setup .su-main.su-ac { grid-template-columns: minmax(0, 1fr); } .setup .su-steps { flex-direction: column; } .setup .su-step { border-radius: 0 !important; border-left: 1px solid var(--line) !important; } }

/* ---------- Araçlar: the nav's two groups; the in-show sections reuse İzle's panels ---------- */
.prep .pr-nav-g { margin: 10px 10px 2px; }
.prep .pr-nav-g:first-child { margin-top: 0; }
.prep .pr-watch .panel { background: var(--plate); }

/* Kurulum's module rows: the switch never wraps into a column */
.setup .mod-row .seg { flex: none; white-space: nowrap; flex-wrap: nowrap; }

/* the band stays at most two lines: the "+N · Uyarılar" link sits beside the alert, not under it */
body.ops .c-bandbox .w-need { flex-direction: row; align-items: center; gap: 8px; }
body.ops .c-bandbox .w-need-m { flex: 1; min-width: 0; }
body.ops .c-bandbox .w-info { width: auto; flex: none; max-width: 220px; padding: 1px 4px; }
body.ops .c-bandbox .w-info .w-info-t { flex: none; }

/* ---- web/css/run.css ---- */
/* ---------- Yürüt (web/mod.ts): scoped under body.run ---------- */
/* The screen fits the viewport height and never scrolls as a page: a fixed frame of where / body / signals / GO.
   Only the lines region (.run-flow) scrolls, and the side column when a phone is too short for it. */
html:has(> body.run) { height: 100%; overflow: hidden; }
body.run { height: 100vh; height: 100dvh; overflow: hidden; }
/* fixed to the viewport's four edges: a tablet's rubber-band scroll has nothing to move */
body.run .run-app { position: fixed; inset: 0; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
body.run .gobar { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
body.run .run-head, body.run .run-foot { flex: none; min-width: 0; }
body.run .run-foot { position: relative; }

/* 1 · where we are: one line; only the scene title may be cut */
body.run .where .story:empty { display: none; }
@media (min-width: 641px) {
  body.run .where { flex-wrap: nowrap; }
  body.run .where .story { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
  body.run .where .scene { flex: 0 100 auto; min-width: 3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.run .where .meta { flex: none; flex-wrap: nowrap; }
}
body.run .where .mode.canli { font-size: 13px; padding: 3px 10px; box-shadow: 0 0 0 2px rgba(255, 59, 78, .35); }
body.run.canli .where { border-bottom-color: var(--bad); }

/* the body: what to say and what the hall sees, two columns of comparable weight (review of the build, 2026-11-12:
   the 260 px side column of the second review overcorrected "too big" into "too small"). The lines keep the larger
   share; the stage column gets more of the width as the window grows only up to 40 %. */
body.run .run-body { flex: 1; min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 18px; padding: 14px 18px; overflow: hidden; }
@media (min-width: 1200px) { body.run .run-body { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; } }
body.run .run-say { min-height: 0; min-width: 0; display: flex; flex-direction: column; container-type: inline-size; }
body.run .run-say-top { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-bottom: 8px; min-height: 16px; }
body.run .run-say-top .label { margin: 0; }
body.run .run-time { margin-left: auto; display: flex; flex-wrap: wrap; gap: 2px 14px; font: 600 12px var(--mono); color: var(--ink3); }
body.run .run-page.more { color: var(--warn); font-weight: 800; }

/* 2 · the lines: the only region that scrolls */
body.run .run-flow { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-right: 4px; }
/* (2026-11-24) a prompter for the people on stage: the type follows the column's width (larger again when the stage
   column is folded away), every voice at one size, each speaker's name and rule in their colour */
body.run .run-line { margin: 0 0 .7em; font-size: clamp(21px, 2.5cqw, 44px); line-height: 1.3; break-inside: avoid; overflow-wrap: anywhere; }
body.run .run-line.is-mod { color: var(--ink); }
body.run .run-line.not-mod { color: var(--ink); }
body.run .run-line.not-mod:not(.is-note) { border-left: .16em solid var(--who, var(--line2)); padding-left: .55em; }
body.run .run-line.is-note { color: var(--ink2); font-size: clamp(17px, 1.9cqw, 32px); }
body.run .run-line-meta { display: flex; flex-wrap: wrap; gap: 2px .6em; align-items: baseline; margin-bottom: .2em; font: 700 clamp(12px, 1.1cqw, 18px) var(--mono); letter-spacing: .08em; }
body.run .run-line-who { color: var(--who, var(--ink3)); text-transform: uppercase; font-weight: 800; font-size: 1.25em; letter-spacing: .06em; }
body.run .run-line-type { text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--plate2); color: var(--ink2); }
body.run .run-line-type.t-provokasyon { background: #4a2a12; color: #ffc078; }
body.run .run-line-type.t-mesaj { background: #123a2a; color: #7fe0a8; }
body.run .run-line-cue { color: var(--info); text-transform: uppercase; }
body.run .run-line-opt { color: var(--ink3); letter-spacing: 0; font-weight: 600; }
body.run .run-line-text { display: block; white-space: pre-line; }
body.run .run-line-type.t-yorum { background: #1e2f4a; color: #9cc4ff; }
body.run .run-wait { margin: 0 0 12px; color: var(--ink2); font-size: clamp(15px, 1.6cqw, 26px); }
body.run .run-highlights { margin: 0 0 12px; padding-left: 1.1em; color: var(--warn); font-size: clamp(15px, 1.6cqw, 26px); font-weight: 600; break-inside: avoid; }
body.run .run-highlights li { margin: 0 0 3px; overflow-wrap: anywhere; }
body.run .run-notes { margin: 0 0 12px; color: var(--ink3); font-size: clamp(14px, 1.4cqw, 22px); break-inside: avoid; }
body.run .run-notes p { margin: 0 0 4px; overflow-wrap: anywhere; }
body.run .run-notes-l { display: block; font: 700 clamp(11px, 1cqw, 16px) var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
/* long text flows in two columns only when the lines column itself is wide enough for two readable measures (~33
   characters at 19 px each): a container query on the column, not the window, since the column's share changes */
/* …and when it does not fit the region even in two columns (.tall, set by mod.ts), one column that scrolls once */
@container (min-width: 700px) { body.run .run-cols.long:not(.tall) { column-count: 2; column-gap: 28px; } }
body.run .run-next { flex: none; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line2); color: var(--ink2); font-size: clamp(15px, 1.6cqw, 26px); overflow-wrap: anywhere; }
body.run .run-next b { color: var(--ink); }

/* 6 · on stage now: the live miniature fills the column's width at 16:9, as large as the height allows; 3 · the hall
   under it while a ballot or a tap window is open. The film, sound and hall boxes keep their size (flex: none); only the
   miniature's box gives way (it shrinks from its 16:9 height, and the picture inside keeps 16:9 and centres). */
body.run .run-side { min-height: 0; min-width: 0; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; }
body.run .run-side-top { flex: none; }
body.run .run-side-rest { flex: none; min-width: 0; }
body.run .run-stage-box { flex: 0 1 auto; width: 100%; aspect-ratio: 16 / 9; min-height: 54px; container-type: size; display: flex; justify-content: center; align-items: flex-start; }
body.run .run-stage { flex: none; position: relative; width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; border: 1px solid var(--line2); background: #000; }
body.run .run-stage iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
body.run .run-side .label.gap { margin-top: 10px; }
body.run .run-film, body.run .run-sound { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--plate); font-size: 13px; color: var(--ink2); display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
body.run .run-film.playing { border-color: var(--info); }
body.run .run-film.missing { border-color: var(--warn); }
body.run .run-film-t, body.run .run-sound-t { color: var(--ink); font-weight: 700; }
body.run .run-film-cd { font: 800 15px var(--mono); color: var(--ink); }
body.run .run-film-cue, body.run .run-sound-cue { color: var(--warn); }
body.run .run-sound.muted { border-color: var(--bad); }
body.run .run-sound-off { font-weight: 800; color: #ff8b97; letter-spacing: .04em; }
body.run .run-sound-c { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; padding: 2px 4px; border-radius: 6px; }
body.run .run-sound-c.firing { background: #3a2a05; outline: 1px solid var(--warn); }
body.run .run-side .hall { padding: 10px 12px; }
body.run .run-side .hall .q { font-size: 14px; min-width: 120px; }
body.run .run-side .hall .clock { font-size: 20px; }
body.run .run-side .hall .clock.closed { font-size: 15px; }
body.run .run-side .hall .count { font-size: 22px; margin-top: 2px; }
body.run .run-side .hall .count small { font-size: 13px; }
body.run .run-side .hall .quorum { font-size: 12.5px; }
body.run .run-side .hall .bars { gap: 3px; margin-top: 8px; }
body.run .run-side .hall .bar { grid-template-columns: minmax(56px, 92px) minmax(0, 1fr) 44px; font-size: 12px; }
body.run .run-side .hall .ext { margin-top: 8px; }
body.run .run-side .hall .ext .btn { flex: 1; padding: 9px 8px; }
body.run .run-side .hall .ext .run-reopen.armed { background: var(--warn); color: var(--warn-ink); border-color: var(--warn); }

/* 5 · signals: one thin row; the stage manager's cue fills it in its colour until cleared */
body.run .run-signals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 47px; padding: 7px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink3); min-width: 0; }
body.run .run-sig-msg { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
body.run .run-sig-acts { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-left: auto; }
body.run .run-alert { display: inline-block; padding: 4px 10px; border-radius: 6px; background: #3a2a05; color: var(--warn); font-weight: 600; }
body.run .run-cue { font-size: 17px; font-weight: 800; letter-spacing: .03em; }
body.run .run-signals.cue { color: var(--warn-ink); border-top-color: transparent; }
body.run .run-signals.cue-standby { background: var(--warn); color: var(--warn-ink); }
body.run .run-signals.cue-go { background: var(--go); color: var(--go-ink); }
body.run .run-signals.cue-stretch { background: #2f6fed; color: #fff; }
body.run .run-signals.cue-wrap { background: var(--bad); color: #fff; animation: run-wrap 1s steps(2) infinite; }
@keyframes run-wrap { 50% { background: #a31526; } }
body.run .run-signals.cue .btn { background: rgba(0, 0, 0, .55); border-color: rgba(0, 0, 0, .55); color: #fff; }
body.run .run-reply.on.r-ready, body.run .run-signals.cue .run-reply.on.r-ready { background: var(--go); border-color: #fff; color: var(--go-ink); }
body.run .run-reply.on.r-hold, body.run .run-signals.cue .run-reply.on.r-hold { background: var(--bad); border-color: #fff; color: #fff; }
body.run .run-reply.on.r-time, body.run .run-signals.cue .run-reply.on.r-time { background: var(--warn); border-color: #fff; color: var(--warn-ink); }
body.run .run-mute.on, body.run .run-signals.cue .run-mute.on { background: var(--bad); border-color: var(--bad); color: #fff; }
/* a refusal from the server: laid over the body's bottom edge, so nothing under a finger moves */
body.run .run-notice { position: absolute; left: 18px; right: 18px; bottom: 100%; margin-bottom: 8px; z-index: 5; padding: 9px 12px; border-radius: 8px; background: #3a0b12; border: 1px solid var(--bad); color: #ffd0d5; font-size: 14px; overflow-wrap: anywhere; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }

/* the back office's monitor of this screen: nothing is pressable */
body.run.is-preview button { cursor: default; }
/* …but the monitor keeps GO's real colour (a press is refused by the page, not by the plan), so the stage manager sees what the moderator sees */
body.run.is-preview:not(.offline) .gobar .go:disabled:not(.kind-wait):not(.kind-end):not(.kind-none):not(.fallback) { background: var(--go); color: var(--go-ink); }
body.run.is-preview:not(.offline) .gobar .go.fallback:disabled { background: var(--warn); color: var(--warn-ink); }
body.run.is-preview:not(.offline) .btn:disabled { opacity: 1; }

/* (2026-11-24) the stage column folds away to the right (H, or the tab on the body's right edge); the tab sits above
   the column's top, the lines keep clear of it */
body.run .run-body { position: relative; transition: grid-template-columns .3s ease, gap .3s ease; }
body.run .run-side { transition: opacity .2s ease; }
body.run .run-side-toggle { position: absolute; right: 0; top: 10px; z-index: 3; padding: 5px 12px; border-radius: 8px 0 0 8px; border-right: 0; font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 641px) {
  body.run .run-side { padding-top: 34px; }
  body.run.side-off .run-body { grid-template-columns: minmax(0, 1fr) minmax(0, 0fr); gap: 0; }
  body.run.side-off .run-side { opacity: 0; visibility: hidden; pointer-events: none; }
  body.run.side-off .run-say-top { padding-right: 116px; }
}
@media (max-width: 640px) { body.run .run-side-toggle { display: none; } }

/* a phone in portrait: one column; the lines keep the room, the stage is a thumbnail beside its caption */
@media (max-width: 640px) {
  body.run .run-body { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; }
  /* the lines keep at least ~120 px whatever GO and the hall need: the side column gives way (it scrolls) */
  body.run .run-say { flex: 1 1 0; min-height: min-content; }
  body.run .run-flow { min-height: 120px; }
  /* GO stays compact (smaller words, nothing cut): however many lines it takes, the lines region keeps its floor */
  body.run .gobar .go { padding: 9px 12px; min-height: 64px; }
  body.run .gobar .go .verb { font-size: 17px; }
  body.run .gobar .go .dest { font-size: 12.5px; margin-top: 3px; }
  body.run .run-line { font-size: 17px; }
  body.run .run-line.not-mod, body.run .run-line.is-note { font-size: 17px; }
  body.run .run-side { flex: 0 1 auto; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 12px; align-items: center; align-content: start; }
  body.run .run-stage-box { grid-column: 1; grid-row: 1; width: 112px; min-height: 0; }
  body.run .run-side.withhall .run-stage-box { width: 96px; }
  body.run .run-side-top { grid-column: 2; grid-row: 1; }
  body.run .run-side-top .label { margin: 0; }
  body.run .run-side-rest { grid-column: 1 / -1; grid-row: 2; }
  /* the where line: the scene title on one line (it may be cut), the mode, clock and connection under it */
  body.run .where .scene { flex: 1 1 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.run .where .meta { margin-left: 0; }
  /* signals: the four buttons on one row; the idle caption gives its line to the lines region */
  body.run .run-signals { padding: 6px 12px; min-height: 0; }
  body.run .run-sig-msg.idle { display: none; }
  body.run .run-sig-msg { flex-basis: 100%; }
  body.run .run-sig-acts { margin-left: 0; flex-wrap: nowrap; gap: 6px; width: 100%; }
  body.run .run-sig-acts .btn { flex: 1 1 auto; padding: 7px 4px; font-size: 12.5px; white-space: nowrap; min-width: 0; }
  body.run .run-notice { left: 12px; right: 12px; }
}
/* a short window (a laptop with the browser's bars, a phone on its side): tighter, same regions */
@media (max-height: 560px) {
  body.run .where { padding-top: 7px; padding-bottom: 7px; }
  body.run .run-body { padding-top: 8px; padding-bottom: 8px; }
  body.run .gobar { padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  body.run .gobar .go { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
}

/* sheets (S: the stage large, ?: the keys): laid over the whole screen, Esc or a tap outside closes */
body.run .run-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .78); display: flex; align-items: center; justify-content: center; padding: 12px; }
body.run .run-sheet[hidden] { display: none; }
body.run .run-sheet-card { background: var(--plate); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; max-width: 100%; max-height: 100%; min-width: 0; }
body.run .run-sheet-top { display: flex; align-items: center; gap: 12px; }
body.run .run-sheet-t { flex: 1; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
/* the stage at the window's size, 16:9, whatever is left under the sheet's top line */
body.run .run-big-stage { position: relative; width: min(calc(100vw - 48px), calc((100vh - 96px) * 16 / 9)); width: min(calc(100vw - 48px), calc((100dvh - 96px) * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #000; }
body.run .run-big-stage iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
body.run .run-sheet-help .run-sheet-card { width: min(560px, 100%); overflow-y: auto; }
body.run .run-keys { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 8px 16px; margin: 4px 0 0; font-size: 15px; }
body.run .run-keys dt { font: 700 13px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
body.run .run-keys dd { margin: 0; color: var(--ink2); overflow-wrap: anywhere; }
body.run .run-keys-n { margin: 6px 0 0; font-size: 13px; color: var(--ink3); }
body.run .run-stage-box.tappable { cursor: zoom-in; }

/* ---------- Hallederiz R2 (S3, 2026-11-17): step, version chips, reveal, personal screens, neighbour timer ---------- */
body.run .where .run-step { color: var(--ink2); white-space: nowrap; }
body.run .where .run-chips { display: inline-flex; gap: 4px; white-space: nowrap; }
body.run .where .run-chip { font: 700 11px var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--plate2); color: var(--ink2); }
/* one row above GO, only when it has something: the reveal buttons and the personal screens' progress */
body.run .run-aux { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 6px 18px 0; min-width: 0; }
body.run .run-reveal { display: inline-flex; align-items: center; gap: 8px; }
body.run .run-reveal-n { font: 600 12px var(--mono); color: var(--ink3); white-space: nowrap; }
body.run .run-personal { margin-left: auto; font: 600 12px var(--mono); color: var(--ink3); }
body.run .run-personal.stalled { color: var(--warn); font-weight: 800; }
/* the neighbour talk in the hall slot: as large as the hall's numbers */
body.run .run-timer { font: 800 28px var(--mono); color: var(--ink); padding: 10px 12px; border: 1px solid var(--line2); border-radius: 8px; overflow-wrap: anywhere; }
body.run .run-timer.over { color: var(--warn); border-color: var(--warn); }
@media (max-width: 640px) { body.run .where .run-chips { display: none; } body.run .run-timer { font-size: 22px; } }
