:root {
  --bg: #0f0e1a; --panel: #17162a; --card: #1e1c36; --line: #2e2b52; --text: #ecebff;
  --muted: #9a97c4; --accent: #38e1ff; --accent2: #7a5cff; --stop: #ff3b4e;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
#app { min-height: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.4 "Segoe UI", system-ui, sans-serif; display: flex; flex-direction: column; }
button, select, input, textarea { font: inherit; color: inherit; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #0f0e1a; font-weight: 900; }
.muted { color: var(--muted); font-weight: 500; }
.small { font-size: 12px; }
.top-right { display: flex; align-items: center; gap: 12px; }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 12px; }
.pill b { font-weight: 600; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #666; }
.pill.ok i { background: #4cff8f; box-shadow: 0 0 8px #4cff8f; }
.pill.warn i { background: #ffb23f; }

.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--accent2); color: #fff; }
.seg-full { display: flex; margin-top: 4px; }
.seg-full button { flex: 1; }

main { flex: 1; display: flex; min-height: 0; }
.preview-col { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 14px; gap: 10px; }
.preview-bar { display: flex; align-items: center; gap: 10px; }
.status { margin-left: auto; min-width: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status.err { color: #ff8a95; }
.status.live { color: var(--accent); }
.preview-wrap { flex: 1; min-height: 0; display: grid; place-items: center; }
.stage-frame { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 10px 40px rgba(0, 0, 0, .45); }
.stage-frame.checker { background: repeating-conic-gradient(#2a2840 0% 25%, #222035 0% 50%) 0 0 / 32px 32px; }
.stage-frame.stream { background: radial-gradient(circle at 35% 40%, #5b3aa8, #26164f 60%, #120b26); }
#stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

.panel { width: 400px; flex-shrink: 0; overflow-y: auto; padding: 14px 14px 0; border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
h2 .small { text-transform: none; letter-spacing: 0; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
select, textarea { background: #13122a; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; color: var(--text); }
textarea { resize: vertical; min-height: 54px; }
select:focus, textarea:focus { outline: 2px solid var(--accent2); outline-offset: -1px; }
input[type="range"] { accent-color: var(--accent2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.presets button { text-align: left; background: #13122a; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: pointer; }
.presets button:hover { border-color: var(--accent2); }
.presets b { display: block; font-size: 13px; }
.presets span { font-size: 11px; color: var(--muted); }
h3.sub { margin: 2px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.presets .item { position: relative; display: flex; min-width: 0; }
.presets .item > .play { flex: 1; min-width: 0; padding-right: 26px; }
.presets .item .play span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presets button.rm { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 5px; background: none; font-size: 15px; line-height: 1; color: var(--muted); }
.presets button.rm:hover { background: #2a2850; color: #ff8a95; }
.ai { display: flex; flex-direction: column; gap: 8px; }
.ai-row { display: flex; align-items: center; gap: 10px; }
.ai-row .hint { flex: 1; }
.small-btn:disabled { opacity: .55; cursor: default; }
.save-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.save-row input { background: #13122a; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; color: var(--text); min-width: 0; }
code { font: 12px Consolas, monospace; color: var(--text); }

.line { border: 1px solid var(--line); border-radius: 10px; padding: 9px; display: flex; flex-direction: column; gap: 8px; background: #191831; }
.line-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.line-head .count { margin-left: auto; margin-right: 8px; }
.line-head .count.over { color: #ff8a95; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; text-align: left; font-size: 13px; }
.link.danger { color: #ff8a95; }

.actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0 14px; background: linear-gradient(transparent, var(--panel) 30%); }
.actions button { border: 0; border-radius: 12px; padding: 13px; font-weight: 800; font-size: 15px; cursor: pointer; }
.primary { background: linear-gradient(135deg, var(--accent2), #4d8bff); color: #fff; }
.primary:disabled { opacity: .5; cursor: default; }
.stop { background: var(--stop); color: #fff; box-shadow: 0 0 0 3px rgba(255, 59, 78, .25); }
kbd { font: 600 10px/1 "Segoe UI", sans-serif; padding: 2px 5px; border-radius: 4px; background: rgba(0, 0, 0, .25); margin-left: 6px; vertical-align: 2px; }

[hidden] { display: none !important; }
.app { display: flex; flex-direction: column; height: 100%; }

/* sign-in gate */
.login { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #241f4a, var(--bg) 70%); }
.login-card { width: min(360px, 90vw); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.login-card p { margin: 0; }
.login-card input { background: #13122a; border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; color: var(--text); font-size: 15px; }
.login-card .primary { border: 0; border-radius: 10px; padding: 12px; font-weight: 800; cursor: pointer; }
.brand.big { font-size: 22px; }
.brand.big .logo { width: 34px; height: 34px; font-size: 18px; }
.err { color: #ff8a95; min-height: 1.2em; font-size: 13px; }

/* live card */
.card-head { display: flex; align-items: center; justify-content: space-between; }
.seg-sm button { padding: 3px 9px; font-size: 12px; }
.live { border-color: #3d3880; background: linear-gradient(180deg, #24214a, var(--card) 70%); }
.summon { display: flex; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 10px; padding: 11px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent2), #4d8bff); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.summon:hover { filter: brightness(1.1); }
.peeks { display: flex; gap: 6px; }
.peek-btn { flex: 1; min-width: 0; padding: 7px 6px; cursor: pointer; background: #13122a; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 12px; font-weight: 600; }
.peek-btn:hover { border-color: var(--accent2); background: #1a1840; }
.peek-btn:active { transform: translateY(1px); }
.cutscenes { flex-wrap: wrap; }
.cutscenes .peek-btn { flex: 1 1 45%; }
.cutscenes .pose-now { flex: 1 1 100%; margin: 0; font-weight: 600; }
.cutscenes .pose-home { flex: 1 1 100%; }
.say { display: grid; grid-template-columns: 1fr 104px auto; gap: 6px; }
.say input { background: #13122a; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; color: var(--text); min-width: 0; }
.say input:focus { outline: 2px solid var(--accent2); outline-offset: -1px; }
.say select { padding: 6px 6px; min-width: 0; }
.reactions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.reactions button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 7px; cursor: pointer;
  background: #13122a; border: 1px solid var(--line); border-radius: 10px; }
.reactions button:hover { border-color: var(--accent2); background: #1a1840; }
.reactions button:active, .presets button:active, .summon:active { transform: translateY(1px); }
.reactions .emoji { font-size: 22px; line-height: 1.1; }
.reactions b { font-size: 12px; font-weight: 600; }
.reactions kbd, kbd.corner { position: absolute; top: 5px; right: 5px; margin: 0; color: var(--muted); background: #24224a; }
.presets button { position: relative; }
.presets .item.keyed > .play { padding-right: 52px; }
.presets .item.keyed kbd.corner { right: 28px; }
.log { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.log li { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: baseline; color: var(--text); }
.log li:first-child { color: var(--accent); }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.log i { font-style: normal; color: var(--muted); }
.log span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log li.bad span { color: #ff8a95; }
/* voice commands (talk to him) */
.talk { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.talk-btn { display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid #4b44a0; border-radius: 10px; padding: 10px;
  cursor: pointer; background: #13122a; color: var(--text); font-weight: 700; font-size: 14px; touch-action: none; user-select: none; -webkit-user-select: none; }
.talk-btn:hover { border-color: var(--accent2); background: #1a1840; }
.talk-btn.rec { background: #3a1020; border-color: var(--stop); color: #fff; box-shadow: 0 0 0 3px rgba(255, 59, 78, .25); animation: rec 1s ease-in-out infinite alternate; }
.talk-btn.busy { opacity: .7; cursor: progress; }
@keyframes rec { to { box-shadow: 0 0 0 6px rgba(255, 59, 78, .1); } }
.cmd { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.cmd input { background: #13122a; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; color: var(--text); min-width: 0; }
.cmd input:focus { outline: 2px solid var(--accent2); outline-offset: -1px; }
.hint.keys { line-height: 1.9; }
.hint.keys kbd { margin: 0 1px; color: var(--text); background: #2a2850; }
.hint.warn { color: #ffcf7a; }

/* stream deck card */
.hooks-on { display: flex; flex-direction: column; gap: 8px; }
.hooks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.hooks li { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 8px; background: #13122a; border: 1px solid var(--line); font-size: 13px; }
.hooks li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hooks-row { display: flex; justify-content: space-between; }

/* stations card (admin) and the station in the header */
.station-tag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #2a2550; color: var(--accent); }
.stations { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stations li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: 8px; background: #13122a; border: 1px solid var(--line); font-size: 13px; }
.stations li.current { border-color: var(--accent); }
.stations li.testing { border-style: dashed; border-color: #f5b400; }
.stations li.current.testing { border-style: solid; }
.stations li.st-head { background: none; border: none; padding: 8px 2px 0; color: #f5b400; font-size: 12px; }
.station-add .st-testing { flex: 1 1 100%; display: flex; flex-direction: row; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.stations .st-name { flex: 1 1 160px; min-width: 0; }
.stations .st-name small { color: var(--muted); display: block; }
.stations .st-link { flex: 1 1 100%; display: flex; gap: 6px; }
.stations .st-link input { flex: 1; min-width: 0; background: #0d0c1c; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; color: var(--text); font-size: 12px; }
.station-add { display: flex; flex-wrap: wrap; gap: 6px; }
.station-add input { flex: 1 1 140px; min-width: 0; }
.station-add .st-testing input { flex: none; width: auto; margin: 0; }

/* overlays card */
.overlays { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.overlays li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; background: #13122a; border: 1px solid var(--line); font-size: 13px; }
.overlays li i { width: 8px; height: 8px; border-radius: 50%; background: #4cff8f; box-shadow: 0 0 6px #4cff8f; flex-shrink: 0; }
.overlays li span { flex: 1; }
.overlays li.none { color: var(--muted); }
.overlays li .primary-tag { flex: 0 0 auto; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #2a2550; color: var(--accent); }
.show-stats { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.show-stats .warn { color: #f5b942; }
.show-row { display: flex; align-items: center; gap: 8px; }
.world-rows { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.world-rows li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.world-rows .world-why { flex: 1 1 200px; min-width: 0; }
.world-rows select { background: #13122a; border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; color: var(--text); font-size: 12px; }
.world-rows .warn { color: #f5b942; }
.story-arc { margin-bottom: 8px; }
.chat-people { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.chat-people li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-people .warn { color: #ff8a95; }
.chat-add, .chat-test form { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.chat-add input, .chat-test input { flex: 1 1 140px; min-width: 0; }
.chat-log li.refused, .chat-log li.not_played { color: var(--muted); }
.mic-pick { display: flex; flex-direction: row; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.mic-pick select { flex: 1; min-width: 0; }
.obs-talk { margin-top: 6px; font-size: 13px; }
.obs-talk summary { cursor: pointer; }
.obs-talk ol { margin: 6px 0; padding-left: 18px; }
.obs-talk .ok { color: #4cff8f; }
#micNote:empty { display: none; }
.talk-ctl { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-top: 6px; }
.wait-ok { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--accent2); border-radius: 8px; font-size: 13px; }
.wait-ok p { margin: 0 0 4px; }
.wait-ok ul { margin: 0 0 8px; padding-left: 18px; }
.convo { margin-top: 6px; font-size: 13px; }
.convo summary { cursor: pointer; color: var(--muted); }
.convo ol { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.convo li.host { color: var(--muted); }
.convo li b { font-weight: 600; }
.timeline { margin: 0 0 8px; font-size: 13px; }
.timeline summary { cursor: pointer; color: var(--muted); }
.timeline ol { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.timeline li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: baseline; }
.timeline li time { color: var(--muted); font-size: 12px; }
.timeline li .what { min-width: 0; }
.timeline li .changes { grid-column: 2 / 4; color: var(--muted); font-size: 12px; }
.timeline li.now .what::after { content: " (now)"; color: var(--muted); }
.story-pace { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.story-next { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; padding: 7px 10px; border: 1px solid var(--accent2); border-radius: 10px; font-size: 13px; }
.story-next span { flex: 1 1 180px; }
.story-arc h3 { margin: 0 0 6px; font-size: 13px; }
.story-arc h3 span { font-weight: 400; color: var(--muted); }
.presets button.story-step:disabled { opacity: .55; cursor: default; border-color: var(--line); }
.presets button.story-step.next { border-color: var(--accent2); }
.presets button.story-step.done b::after { content: " ✓"; color: var(--muted); }
.overlays li.none i { background: #666; box-shadow: none; }
.pair-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 6px; }
.pair-row input { background: #13122a; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; color: var(--text); min-width: 0; }
#pairCode { font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.small-btn { border: 0; border-radius: 8px; padding: 7px 12px; background: var(--accent2); color: #fff; font-weight: 700; cursor: pointer; }
.hint { margin: 0; font-size: 12px; color: var(--muted); min-height: 1em; }
.hint.ok { color: #4cff8f; }
.hint.err { color: #ff8a95; }

/* stopped: show events held until the operator resumes (top of the Live card) */
.held { display: flex; flex-direction: column; gap: 4px; padding: 9px 10px; border-radius: 10px; background: #2a1014; border: 1px solid var(--stop); }
.held-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.held-row b { color: #ff8a95; }
.held-row .small-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.held-row .small-btn kbd { margin: 0; background: rgba(255,255,255,.18); color: #fff; }
.held .hint:empty { display: none; }
.presence { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.presence[hidden] { display: none; }
.presence-label { color: var(--muted); }
.presence-who { display: flex; gap: 6px; margin-left: auto; }
.presence-place { display: flex; align-items: center; gap: 8px; flex-basis: 100%; }
.presence-place[hidden] { display: none; }
.presence-seen { flex-basis: 100%; margin: 0; }
.presence-seen .off { color: var(--warn, #f5b942); }
.stop-state { margin-left: 8px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.3); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* show-event suggestions (top of the Live card) */
.suggest { display: flex; flex-direction: column; gap: 6px; }
.sug { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 9px 10px 11px; border-radius: 10px;
  background: #1d1a10; border: 1px solid #ffcf7a; animation: sug-in .25s ease-out; }
.sug-head { display: flex; align-items: baseline; gap: 7px; min-width: 0; font-size: 13px; }
.sug-head .emoji { font-size: 16px; }
.sug-head b { color: #ffcf7a; white-space: nowrap; }
.sug-head .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.sug q { font-size: 13px; line-height: 1.35; color: var(--text); }
.sug-row { display: flex; align-items: center; gap: 14px; }
.sug-row .small-btn { display: inline-flex; align-items: center; gap: 6px; }
.sug-row .small-btn kbd { margin: 0; background: rgba(255,255,255,.18); color: #fff; }
.sug-time { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #ffcf7a; transform-origin: left;
  animation-name: sug-time; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes sug-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes sug-in { from { opacity: 0; transform: translateY(-4px); } }

/* show events card */
.events-on { display: flex; flex-direction: column; gap: 9px; }
.events-on .hooks-row { align-items: center; gap: 10px; justify-content: flex-start; }
.events-on .hooks-row:last-child { justify-content: space-between; }
label.inline { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
.money { display: inline-flex; align-items: center; gap: 2px; background: #13122a; border: 1px solid var(--line); border-radius: 8px; padding: 0 0 0 8px; }
.money span { color: var(--muted); }
.money input { width: 76px; background: none; border: 0; padding: 6px 8px 6px 2px; color: var(--text); font: inherit; }
.money:focus-within { outline: 2px solid var(--accent2); outline-offset: -1px; }
.money input:focus { outline: none; }
.events-on .hooks-row .small-btn { white-space: nowrap; flex-shrink: 0; }

/* The seller's camera: per-overlay picker, and its outline in the preview (never in OBS). */
.overlays li { flex-wrap: wrap; }
.overlays li span.cam-pick { flex: 0 0 auto; display: flex; gap: 4px; }
.cam-pick select { font-size: 12px; padding: 3px 6px; }
.cam-zone {
  position: absolute; box-sizing: border-box; pointer-events: none; z-index: 0;
  border: 6px dashed rgba(255, 210, 63, .55); background: rgba(255, 210, 63, .07);
  display: flex; align-items: center; justify-content: center;
}
.cam-zone span { font: 800 34px/1 "Segoe UI", system-ui, sans-serif; color: rgba(255, 210, 63, .7); letter-spacing: .04em; }
.cam-zone[hidden] { display: none; }

.bits { display: flex; flex-wrap: wrap; gap: 6px; }

/* Beats editor: who speaks, bits, reordering. */
.line-head select { font-size: 12px; padding: 2px 6px; }
.beat-tools { margin-left: auto; display: flex; gap: 8px; }
.line.bit { border-style: dashed; }
.beat-add { display: flex; gap: 14px; }
.line-head { gap: 8px; }
.line-head .count + .beat-tools { margin-left: 0; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* Chat votes, in the cut-scene row while posed (src/engine/vote.ts). */
.cutscenes .pose-vote { flex: 1 1 100%; border-color: var(--accent2); }
.cutscenes .vote-box { flex: 1 1 100%; display: grid; gap: 5px; padding: 8px; border: 1px solid var(--accent2); border-radius: 10px; background: #15133a; }
.vote-head { margin: 0 0 2px; font-weight: 600; }
.vote-opt { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 7px; background: #1c1a44; overflow: hidden; }
.vote-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(122, 92, 255, .45); transition: width .3s ease; }
.vote-n { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--text); color: var(--bg); font-size: 12px; }
.vote-name { position: relative; flex: 1; min-width: 0; }
.vote-count { position: relative; font-variant-numeric: tabular-nums; color: var(--muted); }
.vote-box.done .vote-opt:not(.win) { opacity: .45; }
.vote-box.done .vote-opt.win { background: #4a3d10; }
.vote-acts { display: flex; gap: 6px; margin-top: 3px; }
.vote-test { font-size: 12px; color: var(--muted); }
.vote-test summary { cursor: pointer; }
.vote-test button { margin: 4px 4px 0 0; }
.cutscenes .vote-settings { flex: 1 1 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.vote-settings label { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; cursor: pointer; font-size: 12px; }
.vote-settings select { background: #13122a; border: 1px solid var(--line); border-radius: 6px; padding: 1px 4px; }
.small-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); font-weight: 600; padding: 4px 9px; }

/* Setup's request for help (docs/PLAN-guided-setup.md, G5), on the admin's Stations card. */
.st-help { flex-basis: 100%; margin-top: 6px; border: 1px solid var(--stop, #ff3b4e); border-radius: 8px; padding: 6px 10px; }
.st-help summary { cursor: pointer; font-weight: 700; }
.st-help pre { white-space: pre-wrap; font-size: 12px; margin: 6px 0; max-height: 220px; overflow: auto; }

/* Which station this is (src/web/station-mark.ts): a testing station's TEST, and the admin's strip. */
.st-test { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #f5b400; color: #1a1400; font-size: 11px; font-weight: 800; letter-spacing: .08em; vertical-align: middle; }
.st-admin { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 6px 14px; background: #2b2540; color: #ece9f5; font: 13px/1.4 system-ui, sans-serif; border-bottom: 1px solid #4a3f6b; }
.st-admin-test { background: #3d3100; border-bottom-color: #f5b400; }
.st-admin a { color: inherit; }
.st-admin button { flex: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 6px; padding: 2px 10px; font: inherit; cursor: pointer; }
