/* LiveRunner control UI: SuguCu look, dark for control rooms. */
:root {
  --bg: #0E1A1F; --bg2: #13232A; --panel: #172B33; --panel2: #1D343D; --line: #27444E;
  --ink: #EAF2F2; --mute: #8FA7AD; --teal: #2A9D8F; --teal-d: #264653; --gold: #E9C46A;
  --red: #E63946; --amber: #F4A261; --green: #2BB673; --blue: #4EA8DE;
  --r: 10px; --head: Poppins, Inter, system-ui, sans-serif; --body: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 21px; } h3 { font-size: 17px; } h4 { font-size: 13px; color: var(--mute); font-weight: 600; }
p { margin: 0 0 .6em; }
code { font: 12px/1.4 ui-monospace, Menlo, monospace; background: #0A1418; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
kbd { font: 600 10px/1 var(--body); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px; color: var(--mute); margin-left: 4px; }
.muted { color: var(--mute); } .small { font-size: 12px; } .hint { color: var(--mute); font-size: 12px; display: block; margin-top: 4px; }
.error { color: #ff8a8f; } .bad { color: #ff8a8f; font-weight: 600; } .or { text-align: center; color: var(--mute); margin: 8px 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; }

/* inputs */
input, select, textarea { font: inherit; color: var(--ink); background: #0B171B; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--teal); }
input[type=color] { padding: 2px; height: 34px; width: 48px; }
input[type=range] { padding: 0; accent-color: var(--teal); }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
label { display: block; color: var(--mute); font-size: 12px; font-weight: 500; }
label > input, label > select, label > textarea { margin-top: 4px; }

/* buttons */
.btn { font: 500 13px/1 var(--body); color: var(--ink); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.btn:hover { border-color: var(--teal); } .btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn.take { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.btn.out { background: #3A2326; border-color: #6B2E35; }
.btn.warn { background: var(--amber); border-color: var(--amber); color: #1a1a1a; font-weight: 600; }
.btn.huge { font-size: 18px; padding: 16px 28px; font-family: var(--head); }
.run-grid .btn.huge { min-height: 64px; font-size: 22px; }
.x { background: none; border: 0; color: var(--mute); font-size: 18px; cursor: pointer; padding: 0 6px; line-height: 1; }
.x:hover { color: var(--ink); }
.chip { font: 500 12px/1 var(--body); background: var(--panel2); border: 1px solid var(--line); color: var(--ink); border-radius: 99px; min-height: 40px; padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.chip.on { background: var(--teal); border-color: var(--teal); }
.chip.air { background: #3A1E22; border-color: var(--red); cursor: default; }
.pill { font: 600 11px/1 var(--body); letter-spacing: .06em; padding: 5px 8px; border-radius: 99px; background: var(--panel2); color: var(--mute); }
.pill.live { background: var(--red); color: #fff; } .pill.rehearse { background: var(--amber); color: #1a1a1a; }
.pill.warn { background: #4A3A16; color: var(--gold); } .pill.ok { background: #173D2E; color: #7FE0B0; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .dot.warn { background: var(--gold); }
.switch { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; cursor: pointer; }
.switch.warn { color: var(--amber); }

/* brand + header */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand span { font: 700 18px/1 var(--head); letter-spacing: -.02em; }
.brand em { font: 500 11px/1 var(--body); font-style: normal; color: var(--mute); }
.brand.sm img { width: 24px; height: 24px; } .brand.sm span { font-size: 15px; } .brand.sm em { font-size: 10px; }
@media (max-width: 900px) { .brand.sm em { display: none; } }
.top { display: flex; align-items: center; gap: 18px; padding: 8px 16px; background: var(--bg2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top.is-rehearsal { border-bottom: 3px solid var(--amber); }
.top .show-name { display: flex; flex-direction: column; min-width: 0; }
.top .show-name strong { font: 600 14px/1.2 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
.top .show-name span { font-size: 11px; color: var(--mute); }
.top nav { display: flex; gap: 2px; }
.top nav a { color: var(--mute); text-decoration: none; white-space: nowrap; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.top nav a.on, .top nav a:hover { color: var(--ink); background: var(--panel); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tod { font: 600 15px/1 var(--head); font-variant-numeric: tabular-nums; }
.conn { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.conn.closed, .conn.connecting { background: var(--red); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* layout */
.wrap { margin: 0; padding: 16px 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-height: 0; }
.empty { text-align: center; padding: 40px; }

/* one-screen pages: header + a main that fills the rest; parts scroll inside themselves */
.app.fit { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.app.fit > .top { position: static; flex: none; }
.app.fit > main { flex: 1; min-height: 0; }
.fit169 { container-type: size; min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center; }
.fit169 > .monitor { width: min(100cqw, 100cqh * 16 / 9); flex: none; }
.badge { display: inline-block; min-width: 18px; padding: 2px 5px; border-radius: 99px; background: var(--red); color: #fff; font: 700 11px/1.1 var(--body); text-align: center; }
.link { background: none; border: 0; color: var(--gold); font: 600 13px/1 var(--body); cursor: pointer; padding: 8px 4px; text-decoration: underline; }

/* help menu */
.help { position: relative; }
.help-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-width: 230px; display: flex; flex-direction: column; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.help-menu button, .help-menu a { background: none; border: 0; color: var(--ink); text-align: left; font: 500 14px/1.2 var(--body); padding: 11px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; }
.help-menu button:hover, .help-menu a:hover { background: var(--panel); }
.top nav a.view-toggle { margin-left: 8px; color: var(--gold); border: 1px solid #4A3A16; }

/* auth */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 20px; }
.auth .card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; }

/* shows */
.show-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.show-card { text-decoration: none; color: var(--ink); display: block; }
.show-card:hover { border-color: var(--teal); }
.form { display: flex; flex-direction: column; gap: 12px; }

/* now / next */
.nownext { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "banner banner" "now clocks" "next clocks"; gap: 0 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; position: relative; }
.nownext .now { grid-area: now; min-width: 0; } .nownext .next { grid-area: next; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.nownext .clocks { grid-area: clocks; display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.nownext .label { font: 600 11px/1 var(--body); letter-spacing: .08em; color: var(--teal); margin-bottom: 4px; }
.nownext .next .label { color: var(--mute); }
.nownext h2 { font-size: 22px; margin: 0; } .nownext h3 { font-size: 16px; margin: 0; color: var(--mute); }
.nownext.big h2 { font-size: 30px; } .nownext.big h3 { font-size: 19px; }
.speakers { color: var(--gold); font-weight: 500; margin-top: 2px; }
.clock { background: #0B171B; border-radius: 8px; padding: 8px 12px; text-align: right; }
.clock span { display: block; font-size: 10px; letter-spacing: .08em; color: var(--mute); }
.clock b { font: 600 26px/1.1 var(--head); font-variant-numeric: tabular-nums; }
.nownext.big .clock b { font-size: 34px; }
.clock.warn b { color: var(--gold); } .clock.over { background: #4A1A1F; } .clock.over b { color: #ff8a8f; } .clock.ahead b { color: #7FE0B0; }
.standby-banner { grid-area: banner; background: var(--amber); color: #1a1a1a; font: 700 14px/1 var(--head); padding: 9px 14px; margin: -14px -16px 10px; border-radius: var(--r) var(--r) 0 0; }
.notes { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0 0; font-size: 13px; }
.notes dt { color: var(--mute); font-weight: 600; } .notes dd { margin: 0; white-space: pre-line; }
.note-roles { display: flex; gap: 6px; flex-wrap: wrap; }

/* run page: one laptop screen, no page scroll */
.run-grid { display: grid; grid-template-columns: minmax(240px, 22%) minmax(0, 1fr) minmax(280px, 25%); gap: 10px; padding: 10px; }
.run-grid .order { overflow: hidden; display: flex; flex-direction: column; }
.run-grid .order .segments { overflow: auto; flex: 1; min-height: 0; }
.run-grid .centre { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
.run-grid .centre .nownext { flex: 0 1 auto; min-height: 0; overflow: auto; }
.run-grid .side { display: flex; flex-direction: column; min-height: 0; padding-top: 4px; }
.run-grid .side .tabs { margin-bottom: 8px; }
.run-grid .side .chat, .run-grid .side .asrun { flex: 1; min-height: 0; max-height: none; }
.segments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.seg { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; background: #0F1F25; border: 1px solid transparent; }
.seg .n { color: var(--mute); font-variant-numeric: tabular-nums; width: 20px; text-align: right; font-size: 12px; }
.seg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.seg-main b { font-weight: 500; } .seg .meta { font-size: 11px; color: var(--mute); } .seg .meta.act { color: var(--teal); }
.seg.on { border-color: var(--red); background: #2A1A1E; } .seg.done { opacity: .55; } .seg.break b { font-style: italic; }
.director-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.director-controls.secondary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px; gap: 14px; }
.director-controls .end { margin-left: auto; color: #ff8a8f; border-color: #8A3A43; }
.director-controls .end:hover { background: #3A2326; }
.standby-box { display: flex; gap: 6px; } .standby-box input { width: 170px; padding: 7px 10px; }
.pgm-row { flex: 1 1 160px; min-height: 120px; display: flex; gap: 10px; align-items: flex-start; }
.pgm-row .fit169 { align-self: stretch; align-items: flex-start; justify-content: flex-start; }
.fit169.has-below > .fit-inner { width: min(100cqw, (100cqh - 26px) * 16 / 9); display: flex; flex-direction: column; gap: 6px; }
.fit169.has-below > .fit-inner > .monitor { width: 100%; }
.fit-inner .presence { flex-direction: row; gap: 12px; }
.director-controls.secondary.stack { flex: none; align-self: flex-start; width: 240px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px; padding: 12px; }
.secondary.stack .standby-box { flex-direction: column; } .secondary.stack .standby-box input { width: 100%; }
.secondary.stack .standby-box .btn { justify-content: center; }
.pgm-row .fit169 { flex: 1; }
.run-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 12px; min-height: 18px; }
.run-foot .presence { flex-direction: row; gap: 12px; }
.briefed-line { color: var(--gold); font-weight: 600; } .briefed-line.ok { color: #7FE0B0; }
.btn.huge kbd { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.4); }

/* monitors */
.monitor { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.monitor.checker { background: repeating-conic-gradient(#20262A 0 25%, #2A3135 0 50%) 0 0 / 24px 24px; }
.monitor.pgm { border: 2px solid var(--red); } .monitor.reh { border: 2px solid var(--amber); }
.monitor-host { position: absolute; inset: 0; }
.monitor-label { position: absolute; left: 6px; top: 6px; font: 600 10px/1 var(--body); letter-spacing: .08em; background: rgba(0,0,0,.65); padding: 4px 6px; border-radius: 4px; z-index: 50; }
.lr-safe { position: absolute; inset: 5%; outline: 2px dashed rgba(255,255,255,.35); z-index: 99; pointer-events: none; }
.presence { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mute); }
.presence .ok { color: #7FE0B0; } .presence .bad { color: #ff8a8f; }

/* graphics page */
.gfx-grid { display: grid; grid-template-columns: minmax(260px, 24%) minmax(0, 1fr) minmax(300px, 27%); gap: 10px; padding: 10px; }
.library { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.search { width: 140px; padding: 6px 8px; }
.gfx-list { overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.gfx-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; background: #0F1F25; border: 1px solid transparent; cursor: pointer; }
.gfx-item:hover { border-color: var(--line); } .gfx-item.sel { border-color: var(--teal); }
.gfx-item.air { background: #2A1A1E; } .gfx-item.air.sel { border-color: var(--red); }
.gi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .gi-main b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-main span { font-size: 11px; color: var(--mute); }
.monitors { display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.mon-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.take-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.on-air-list { display: flex; gap: 6px; flex-wrap: wrap; min-height: 28px; }
.on-air-list em { color: var(--gold); font-style: normal; }
.editor { overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 10px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; color: var(--mute); font: 500 13px/1 var(--body); padding: 9px 12px; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--teal); }
.fields { display: flex; flex-direction: column; gap: 10px; }
.field.range label { display: flex; justify-content: space-between; } .field.range output { color: var(--ink); }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sw { display: flex; align-items: center; gap: 4px; color: var(--mute); text-transform: capitalize; }
.media-field { display: flex; gap: 8px; align-items: center; margin-top: 4px; } .media-field img, .media-field video { height: 44px; max-width: 90px; object-fit: contain; background: #0B171B; border-radius: 4px; }
.list-table table { width: 100%; border-collapse: collapse; margin: 4px 0 6px; } .list-table th { text-align: left; font-size: 11px; color: var(--mute); font-weight: 500; }
.list-table td { padding: 2px; } .list-table input { padding: 6px; }
.keys { color: var(--mute); font-size: 12px; } .keys ul { padding-left: 18px; margin: 6px 0; } .keys summary { cursor: pointer; }

/* tablet: Next / Take Off / Next Segment on top, pads fill the rest */
.tablet { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.pad-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: none; }
.pad-bar.three { grid-template-columns: 1.4fr 1fr .8fr; gap: 10px 24px; }
.pads { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pad { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); padding: 14px; min-height: 76px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 4px; text-align: left; font: 600 16px/1.2 var(--head); touch-action: manipulation; }
.pad span { font: 400 12px/1.25 var(--body); color: var(--mute); }
.pad:disabled { opacity: .45; cursor: not-allowed; }
.pad.air { background: var(--red); border-color: var(--red); } .pad.air span { color: #fff; }
.pad.is-next { border: 2px solid var(--gold); }
.pad.big { min-height: 104px; text-align: center; align-items: center; font-size: 26px; }
.pad.big span { font-size: 14px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.85); }
.pad.go { background: var(--red); border-color: var(--red); }
.pad.primary { background: var(--teal); border-color: var(--teal); } .pad.out { background: #3A2326; border-color: #6B2E35; } .pad.warn { background: var(--amber); color: #1a1a1a; }
.tab-status { display: flex; align-items: center; gap: 10px; flex: none; padding: 0 2px; }
.tab-status b { font: 600 16px/1.2 var(--head); } .tab-status .grow { flex: 1; }
.chip.warn-on { background: var(--amber); border-color: var(--amber); color: #1a1a1a; }
.pad-scroll { flex: 1; min-height: 0; overflow: auto; }
.tablet .pad-scroll { display: flex; flex-direction: column; }
.tablet .pads { flex: 1; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); grid-auto-rows: minmax(120px, 1fr); align-content: stretch; }
.tablet .pad { font-size: 20px; } .tablet .pad span { font-size: 14px; }

/* operator Next view */
/* the monitor column takes its 16:9 width from the height, so no gap opens beside it */
.next-grid { display: grid; grid-template-columns: minmax(0, calc((100dvh - 236px) * 16 / 9)) minmax(360px, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px 12px; padding: 10px 12px 12px; }
.nx-status { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.nx-status .label, .nx-next .label, .tab-status .label { font: 600 11px/1 var(--body); letter-spacing: .08em; color: var(--teal); }
.nx-seg { font: 600 16px/1.2 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-clock { font: 600 16px/1 var(--head); font-variant-numeric: tabular-nums; background: #0B171B; padding: 5px 9px; border-radius: 6px; white-space: nowrap; }
.nx-clock.warn { color: var(--gold); } .nx-clock.over { color: #ff8a8f; background: #4A1A1F; }
.nx-after { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.nx-air { grid-column: 1; grid-row: 2; display: flex; min-height: 0; }
.nx-air .fit169 { flex: 1; justify-content: flex-start; align-items: flex-start; }
.nx-queue { grid-column: 1; grid-row: 3; min-width: 0; }
.nx-queue h4 { margin: 0 0 6px; }
.nx-cards { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.nx-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; color: var(--ink); text-align: left; cursor: pointer; display: flex; flex-direction: column; font: inherit; min-width: 0; }
.nx-cards .nx-card { flex-direction: row; align-items: center; height: 88px; }
.nx-cards .nx-card .txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nx-card:hover:not(:disabled) { border-color: var(--teal); }
.nx-card .monitor { border: 0; border-radius: 0; width: 100%; }
.nx-cards .nx-card .monitor { width: 144px; flex: none; }
.nx-card .nm { padding: 7px 10px 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-card .sub { padding: 2px 10px 8px; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-card.auto { cursor: default; opacity: .8; } .nx-card.auto .sub { color: var(--gold); }
.nx-card.air { border-color: var(--red); background: #2A1A1E; } .nx-card.air .sub { color: #ff8a8f; }
.nx-empty { grid-column: 1 / -1; margin: 0; padding: 14px; background: var(--panel); border-radius: 10px; }
.nx-side { grid-column: 2; grid-row: 2 / 4; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.nx-next { background: var(--panel); border: 2px solid var(--gold); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 0 1 auto; }
.nx-next .monitor { flex: none; }
.nx-name { font: 600 19px/1.2 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-none { display: flex; flex-direction: column; gap: 4px; padding: 18px 4px; } .nx-none span { color: var(--mute); font-size: 13px; }
.btn.nx-go { flex: 1 1 110px; min-height: 96px; max-height: none; justify-content: center; background: var(--red); border-color: var(--red); color: #fff; font: 700 40px/1 var(--head); border-radius: 14px; }
.btn.nx-go kbd, .btn.nx-off kbd { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.35); font-size: 11px; margin-left: 10px; }
.btn.nx-off { flex: none; min-height: 72px; flex-direction: column; justify-content: center; gap: 4px; background: #3A2326; border-color: #8A3A43; font: 700 22px/1 var(--head); border-radius: 14px; }
.btn.nx-off small { font: 500 13px/1 var(--body); color: #f3c3c7; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.nx-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: none; }
.nx-tools .btn { justify-content: center; min-height: 52px; font-size: 15px; font-weight: 600; }
@media (max-width: 1100px) and (min-width: 801px) {
  .next-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, 36%); grid-template-rows: auto auto minmax(0, 1fr); }
  .nx-air .fit169 { container-type: inline-size; } .nx-air .fit169 > .monitor { width: 100%; }
  .nx-queue { min-height: 0; overflow: hidden; } .nx-cards { grid-auto-flow: row; grid-auto-columns: auto; }
}
.seg-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.fix-preview .monitor { max-height: 220px; margin: 0 auto; }
.sheet-actions { justify-content: flex-end; }
.sheet-actions .btn { min-height: 48px; padding: 12px 20px; font-size: 15px; }
.extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }

/* chat + as-run */
.chat { display: flex; flex-direction: column; flex: 1; min-height: 240px; }
.chat.compact { min-height: 0; } .chat.compact .chat-list { max-height: 260px; }
.chat-list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.msg { background: #0F1F25; border-radius: 8px; padding: 6px 8px; } .msg.me { background: #173D3A; }
.msg b { font-weight: 600; } .msg .role { color: var(--mute); font-size: 11px; margin-left: 6px; } .msg time { float: right; font-size: 11px; color: var(--mute); }
.msg p { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; } .quick .chip { min-height: 40px; padding: 8px 14px; font-size: 12px; }
.chat-form { display: flex; gap: 6px; }
.asrun { max-height: 40%; display: flex; flex-direction: column; } .asrun-list { overflow: auto; font-size: 12px; flex: 1; min-height: 0; }
.ar { display: grid; grid-template-columns: 88px 64px 1fr auto; gap: 6px; padding: 3px 0; border-bottom: 1px solid #1B3038; }
.ar time { color: var(--mute); font-variant-numeric: tabular-nums; } .ar .k { font-weight: 600; } .ar .who { color: var(--mute); }
.ar.take .k { color: #ff8a8f; } .ar.cue .k { color: var(--teal); } .ar.marker .k { color: var(--gold); } .ar.reh { opacity: .6; }

/* setup */
.setup .tabs { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.theme-preview, .follow-pw { grid-column: span 1; }
.order-table, table.plain, .links { width: 100%; border-collapse: collapse; }
.order-table th, table.plain th { text-align: left; font-size: 11px; color: var(--mute); font-weight: 500; padding: 6px; border-bottom: 1px solid var(--line); }
.order-table td, table.plain td, .links td { padding: 4px 6px; border-bottom: 1px solid #1B3038; vertical-align: middle; }
.order-table td.t { color: var(--mute); font-variant-numeric: tabular-nums; width: 80px; }
.order-table td.len { width: 90px; } .order-table td.mv { width: 50px; white-space: nowrap; } .order-table td.acts { width: 110px; white-space: nowrap; text-align: right; }
.order-table tr.open td { background: #12262D; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 8px 0; }
.add-row { margin: 10px 0; } .add-row input, .add-row select { flex: 1; min-width: 140px; }
.grp { margin-top: 18px; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.thumb { padding: 0; overflow: hidden; margin: 0; }
.thumb .monitor { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.thumb-foot { padding: 10px; display: flex; flex-direction: column; gap: 6px; } .thumb-foot span { font-size: 12px; color: var(--mute); }
.thumb.pick { cursor: pointer; text-align: left; color: var(--ink); font: inherit; } .thumb.pick:hover { border-color: var(--teal); }
.thumb.approved { border-color: #2B6E50; }
.output .h { font: 600 16px/1 var(--head); max-width: 320px; }
.layers-pick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.links td:first-child { width: 34%; } .links td.acts { white-space: nowrap; width: 120px; }
.hint-card ul { padding-left: 18px; color: var(--mute); }
.invite-link { background: #0B171B; padding: 10px; border-radius: 8px; margin: 10px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.preview-table { max-height: 300px; overflow: auto; margin-top: 10px; } .preview-table td { padding: 3px 6px; border-bottom: 1px solid #1B3038; }
tr.approved td { opacity: .7; }

/* modal + toasts */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; width: min(520px, 100%); max-height: 90vh; display: flex; flex-direction: column; }
.modal.wide { width: min(1000px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); } .modal-head h3 { margin: 0; }
.modal-body { padding: 16px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.media-tile { background: #0B171B; border: 1px solid var(--line); border-radius: 8px; padding: 6px; cursor: pointer; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.media-tile img, .media-tile video { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: repeating-conic-gradient(#20262A 0 25%, #2A3135 0 50%) 0 0 / 16px 16px; }
.media-tile span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload { align-self: flex-start; }
.toasts { position: fixed; top: 64px; bottom: auto; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 200; }
.toast { background: var(--panel2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.toast.err { background: #4A1A1F; border-color: var(--red); }

/* follow (phones): one screen, no scroll */
.follow-top { gap: 10px; padding: 8px 12px; }
.follow-top .show-name strong { max-width: 52vw; }
.f-standby { flex: none; background: var(--amber); color: #1a1a1a; font: 700 17px/1.2 var(--head); padding: 12px 14px; text-align: center; }
.f-main { display: flex; flex-direction: column; gap: 10px; padding: 12px; max-width: 760px; width: 100%; margin: 0 auto; overflow: hidden; }
.f-main .label { font: 600 11px/1 var(--body); letter-spacing: .08em; color: var(--teal); margin-bottom: 4px; }
.f-now h1 { font-size: 27px; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.f-clock { background: #0B171B; border-radius: 14px; padding: 12px 16px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; flex: none; }
.f-clock b { font: 700 clamp(80px, 30vw, 140px)/1 var(--head); font-variant-numeric: tabular-nums; }
.f-clock span { font: 600 16px/1 var(--head); color: var(--mute); }
.f-clock small { grid-column: 1 / -1; color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.f-clock.warn b { color: var(--gold); } .f-clock.over { background: #4A1A1F; } .f-clock.over b { color: #ff8a8f; }
.f-next { border-top: 1px solid var(--line); padding-top: 8px; flex: none; }
.f-next .label { color: var(--mute); } .f-next h2 { font-size: 21px; color: var(--ink); margin: 0; }
.f-next-note { margin: 3px 0 0; color: var(--mute); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-notes { flex: none; max-height: 30%; min-height: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 10px; }
.f-notes-head { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.f-notes-head .label { margin: 0; }
.f-notes-head .link { min-height: 48px; min-width: 64px; }
.f-notes-body { overflow: auto; min-height: 0; font-size: 17px; } .f-notes-body .notes { font-size: 17px; margin: 0; gap: 6px 12px; }
.f-coming { flex: 1; min-height: 0; overflow: hidden; }
.f-coming ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.f-coming li { display: grid; grid-template-columns: 66px 1fr; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.f-coming time { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.f-coming b { font-weight: 500; font-size: 16px; display: block; } .f-coming span { color: var(--mute); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-bar { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg2); border-top: 1px solid var(--line); }
.big-tap { min-height: 48px; min-width: 48px; justify-content: center; font-size: 15px; }
.job-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-back { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg2); border-top-left-radius: 16px; border-top-right-radius: 16px; width: min(760px, 100%); height: 78vh; height: 78dvh; display: flex; flex-direction: column; padding: 4px 12px calc(12px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; } .sheet-head h3 { margin: 0; }
.sheet .chat { flex: 1; min-height: 0; } .sheet .chat-form input { min-height: 48px; } .sheet .chat-form .btn { min-height: 48px; }
.sheet .quick .chip { min-height: 40px; padding: 8px 12px; font-size: 13px; }
.f-order { overflow: auto; padding-left: 24px; font-size: 16px; line-height: 2; } .f-order li.on { color: var(--red); font-weight: 600; }
.brief-hint { margin: -4px 0 6px; }

/* guided tour */
.tour { position: fixed; inset: 0; z-index: 300; }
.tour-catch { position: absolute; inset: 0; }
.tour-dim { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.tour-spot { position: absolute; border-radius: 10px; box-shadow: 0 0 0 200vmax rgba(0,0,0,.62); outline: 2px solid var(--gold); pointer-events: none; transition: all .2s ease; }
.tour-card { position: absolute; background: var(--bg2); border: 1px solid var(--gold); border-radius: 12px; padding: 14px 16px; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.tour-card h3 { margin: 2px 0 6px; font-size: 17px; } .tour-card p { margin: 0 0 12px; font-size: 14px; }
.tour-n { font-size: 11px; color: var(--gold); font-weight: 600; letter-spacing: .04em; }
.tour-btns { display: flex; gap: 8px; align-items: center; } .tour-btns span { flex: 1; }
.tour-btns .btn { min-height: 40px; padding: 10px 14px; }

/* practice checklist */
.practice-card, .practice-bar { position: static; flex: none; background: var(--bg2); border: 1px solid var(--gold); border-radius: 10px; margin-bottom: 10px; }
.practice-card { padding: 4px 12px 10px; }
.practice-head, .practice-bar { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--ink); cursor: pointer; font: inherit; text-align: left; min-height: 40px; padding: 0; }
.practice-bar { padding: 6px 12px; background: var(--bg2); border: 1px solid var(--gold); }
.practice-head h4 { margin: 0; color: var(--gold); flex: 1; }
.practice-bar b { color: var(--gold); font-weight: 600; white-space: nowrap; } .practice-bar span { flex: 1; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.practice-head em, .practice-bar em { font-style: normal; color: var(--gold); font-size: 12px; font-weight: 600; }
.practice-card .checklist { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.practice-card .checklist li { display: flex; align-items: center; gap: 8px; }
.practice-card .checklist .l { flex: 1; } .practice-card .checklist a { font-size: 12px; }
.practice-card .tick { width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.practice-card li.ok .tick { background: var(--green); border-color: var(--green); color: #fff; } .practice-card li.ok .l { color: var(--mute); text-decoration: line-through; }
.briefed-done { background: #173D2E; color: #7FE0B0; padding: 8px 10px; border-radius: 8px; margin: 6px 0; }
.nx-side .practice-card { overflow: auto; max-height: 45%; }
.show-card.practice { border-color: #4A3A16; }
.crew-table select { max-width: 260px; }

/* report */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.stats div { background: #0B171B; border-radius: 8px; padding: 10px; } .stats span { display: block; font-size: 11px; color: var(--mute); letter-spacing: .06em; } .stats b { font: 600 20px/1.2 var(--head); }
@media print {
  .top, .noprint { display: none !important; }
  html, body { background: #fff; color: #111; }
  .card { background: #fff; border-color: #ddd; break-inside: avoid; }
  .stats div { background: #f3f3f3; } .muted, .stats span, .hint { color: #555; }
  table.plain td { border-color: #e5e5e5; } a { color: #264653; }
}

/* responsive */
@media (max-width: 1100px) {
  .run-grid { grid-template-columns: 210px minmax(0, 1fr) 250px; }
  .gfx-grid { grid-template-columns: 230px minmax(0, 1fr) 270px; }
  .top { gap: 10px; } .top nav a { padding: 8px 8px; } .brand.sm em { display: none; }
  .top .show-name strong { max-width: 18vw; }
  .director-controls.secondary.stack { width: 180px; }
}
@media (max-width: 800px) {
  .app.fit:not(.follow) { height: auto; overflow: visible; }
  .top { flex-wrap: wrap; gap: 8px; } .top nav { order: 3; width: 100%; overflow-x: auto; }
  .follow-top { flex-wrap: nowrap; }
  .top .show-name strong { max-width: 50vw; }
  .run-grid, .gfx-grid, .next-grid { grid-template-columns: 1fr; padding: 8px; }
  .run-grid .order { max-height: 260px; }
  .nownext { grid-template-columns: 1fr; grid-template-areas: "banner" "now" "clocks" "next"; }
  .nownext .clocks { flex-direction: row; margin-top: 8px; } .nownext .clock { flex: 1; }
  .nownext.big h2 { font-size: 24px; } .nownext.big .clock b { font-size: 24px; }
  .mon-pair, .form-grid { grid-template-columns: 1fr; }
  .pgm-row { min-height: 0; } .fit169 { container-type: inline-size; } .fit169 > .monitor { width: 100%; }
  .next-grid { grid-template-rows: auto; } .nx-status, .nx-air, .nx-queue, .nx-side { grid-column: 1; grid-row: auto; }
  .nx-side { order: -1; } .nx-status { order: -2; flex-wrap: wrap; } .nx-after { display: none; }
  .btn.nx-go { min-height: 88px; font-size: 34px; }
  .pad-bar.three { grid-template-columns: 1fr 1fr; } .pad-bar.three .primary { grid-column: 1 / -1; }
  .tod { display: none; }
}
.tab-status .chip { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.tablet .pad:not(.big) { min-height: 92px; }

/* touch screens: bigger chips, no keyboard hints */
@media (hover: none) {
  .chip, .quick .chip { min-height: 44px; }
  kbd { display: none; }
}
.menu-btn, .phone-bar { display: none; }
/* phones: one-row header with a Menu button, Run gets a sticky bottom bar */
@media (max-width: 700px) {
  .top:not(.plain):not(.follow-top) { flex-wrap: nowrap; height: 48px; padding: 4px 10px; gap: 8px; position: relative; }
  .top .brand span, .top .brand em { display: none; }
  .top .show-name { flex: 1; } .top .show-name strong { max-width: none; font-size: 13px; }
  .top .show-name span { display: none; }
  .menu-btn { display: inline-flex; min-height: 40px; }
  .top .topnav { display: none; }
  .top .topnav.open { display: flex; flex-direction: column; position: absolute; top: 48px; left: 0; right: 0; width: auto; order: 0; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 6px; z-index: 70; }
  .top .topnav.open a { padding: 13px 12px; }
  .top .topnav.open a.view-toggle { margin: 4px 0 0; }
  .top-right { gap: 6px; } .top-right .pill { padding: 5px 6px; }
  .phone-bar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; position: sticky; bottom: 0; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); background: var(--bg2); border-top: 1px solid var(--line); z-index: 60; grid-column: 1 / -1; }
  .phone-bar .btn { min-height: 56px; justify-content: center; font-size: 17px; }
  .run-grid .director-controls:not(.secondary) .btn.huge { display: none; }
  .tab-status { flex-wrap: wrap; }
}

/* Pro view on big screens: fixed side columns, picture rows in the library */
@media (min-width: 1600px) {
  .gfx-grid { grid-template-columns: 320px minmax(0, 1fr) 340px; }
  .gfx-item.with-thumb { min-height: 56px; padding: 4px 8px 4px 4px; }
  .gfx-item .gi-thumb { width: 96px; flex: none; border-radius: 6px; border: 0; }
}
.modal.extras { width: fit-content; min-width: min(480px, 100%); max-width: min(1000px, 100%); }
.crew-wrap { display: grid; gap: 16px; }
@media (min-width: 1366px) { .crew-wrap { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); align-items: start; } .crew-wrap .follow-along { border-left: 1px solid var(--line); padding-left: 16px; } }

.tour-offer { position: fixed; right: 12px; bottom: 12px; z-index: 85; display: flex; align-items: center; gap: 4px; background: var(--bg2); border: 1px solid var(--gold); border-radius: 99px; padding: 4px 4px 4px 6px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.tour-offer .btn { border: 0; background: none; color: var(--gold); font-weight: 600; min-height: 40px; }
.tour-offer .x { min-width: 40px; min-height: 40px; }
.follow .tour-offer { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* Run: program picture as wide as its column, Standby panel beside it; on big screens Standby is one row above */
.run-grid .pgm-row { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 10px; align-items: start; }
.run-grid .pgm-row > .fit169 { container-type: inline-size; align-self: start; }
.run-grid .pgm-row > .fit169 > .fit-inner { width: 100%; }
.run-grid .pgm-row > .secondary.stack { width: auto; }
@media (max-width: 1100px) { .run-grid .pgm-row { grid-template-columns: minmax(0, 1fr) 180px; } }
@media (min-width: 1600px) {
  .run-grid .pgm-row { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: stretch; }
  .run-grid .pgm-row > .secondary.stack { order: -1; flex-direction: row; align-items: center; gap: 16px; padding: 8px 12px; }
  .run-grid .pgm-row > .secondary.stack .standby-box { flex-direction: row; } .run-grid .pgm-row > .secondary.stack .standby-box input { width: 220px; }
  .run-grid .pgm-row > .fit169 { container-type: size; align-self: stretch; }
  .run-grid .pgm-row > .fit169 > .fit-inner { width: min(100cqw, (100cqh - 26px) * 16 / 9); }
}
@media (max-width: 800px) { .run-grid .pgm-row { grid-template-columns: 1fr; } }
.gi-main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1600px) { .gfx-item.with-thumb { gap: 8px; } .gfx-item.with-thumb .btn.sm { padding: 6px 8px; } }

@media (max-width: 700px) { .tablet .pads { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(96px, auto); } }
.nx-empty { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.nx-go.waiting { font-size: 20px; }
.onair-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.onair-list li { display: flex; align-items: center; gap: 10px; background: #2A1A1E; border: 1px solid var(--red); border-radius: 8px; padding: 6px 6px 6px 12px; }
.onair-list .nm { font-weight: 600; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .onair-list .muted { flex: 1; }
.onair-list .btn { min-height: 44px; min-width: 72px; justify-content: center; }
/* Pro view: Up After fills the centre column under Now */
.gfx-grid .monitors .nx-queue.rows { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.nx-queue.rows .nx-cards { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); }
/* phones: Up After as full-width rows (picture left, title and segment right) */
@media (max-width: 600px) {
  .nx-cards { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); }
  .nx-cards .nx-card .monitor { width: 128px; }
}

/* Simple view v3: Ready (preview) and On Air side by side, the on-air strip, then Up After */
.next-grid.v3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
.next-grid.v3 .nx-col { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; grid-row: 2; }
.next-grid.v3 .nx-ready { grid-column: 1; } .next-grid.v3 .nx-live { grid-column: 2; }
.next-grid.v3 .nx-col > .fit169 { flex: 1; align-items: flex-start; justify-content: center; }
.monitor.ready { border: 2px solid var(--gold); }
.nx-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 58px; align-content: end; }
.nx-quick label { font-size: 11px; } .nx-quick input { margin-top: 3px; padding: 7px 10px; font-size: 15px; }
.nx-hint { grid-column: 1 / -1; margin: 0; align-self: center; }
.nx-row { display: flex; gap: 8px; }
.next-grid.v3 .btn.nx-go { flex: 1 1 auto; min-height: 60px; max-height: none; font-size: 26px; flex-direction: column; gap: 3px; border-radius: 12px; background: var(--panel2); border: 2px solid var(--gold); color: var(--ink); }
.next-grid.v3 .btn.nx-go small, .btn.nx-air-btn small { font: 500 12px/1 var(--body); color: var(--mute); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.next-grid.v3 .nx-row > .btn:not(.nx-go):not(.nx-air-btn) { min-height: 60px; justify-content: center; font-weight: 600; }
.btn.nx-air-btn { flex: 1 1 auto; min-height: 60px; justify-content: center; background: var(--red); border-color: var(--red); color: #fff; font: 700 26px/1 var(--head); border-radius: 12px; }
.btn.nx-air-btn.waiting { font-size: 17px; }
.btn.nx-air-btn kbd, .next-grid.v3 .btn.nx-go kbd { font-size: 11px; margin-left: 10px; }
.btn.nx-air-btn kbd { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.35); }
.btn.nx-hold { flex: none; min-width: 132px; min-height: 60px; justify-content: center; font-weight: 600; }
.next-grid.v3 .btn.nx-off { min-height: 56px; flex-direction: row; gap: 12px; font-size: 20px; }
.nx-airlist { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: 44px; }
.nx-airlist .label { font: 600 11px/1 var(--body); letter-spacing: .08em; color: var(--red); } .nx-airlist .label.recent { color: var(--mute); margin-left: 12px; }
.air-chip { display: inline-flex; align-items: center; gap: 8px; background: #2A1A1E; border: 1px solid var(--red); border-radius: 99px; padding: 3px 4px 3px 6px; min-height: 40px; }
.air-chip .nm { font-weight: 600; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.air-chip .x { font: 600 13px/1 var(--body); color: #fff; background: #6B2E35; border-radius: 99px; padding: 8px 12px; min-height: 32px; }
.hold-ring { --p: 100; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), #3a2a2c 0); flex: none; }
.hold-ring b { width: 22px; height: 22px; border-radius: 50%; background: #2A1A1E; display: grid; place-items: center; font: 700 11px/1 var(--body); color: var(--gold); }
.next-grid.v3 .nx-queue { grid-column: 1 / -1; grid-row: auto; }
.next-grid.v3 .nx-dock { grid-column: 1 / -1; }
.pad-bar.four { grid-template-columns: 1fr 1.3fr 1fr .8fr; gap: 10px 16px; }
.pad.cue { border: 2px solid var(--gold); }
@media (max-width: 800px) {
  .next-grid.v3 { grid-template-columns: 1fr; }
  .next-grid.v3 .nx-col, .next-grid.v3 .nx-ready, .next-grid.v3 .nx-live { grid-column: 1; grid-row: auto; }
  .next-grid.v3 .nx-col > .fit169 { container-type: inline-size; flex: none; } .next-grid.v3 .nx-col > .fit169 > .monitor { width: 100%; }
  .pad-bar.four { grid-template-columns: 1fr 1fr; }
}

.check-hint { display: inline-block; align-self: flex-start; background: #4A3A16; color: var(--gold); font: 600 11px/1 var(--body); padding: 4px 7px; border-radius: 99px; }
/* both columns: same control height under each monitor, so Ready and On Air are the same size; left-aligned */
.next-grid.v3 .nx-col > .fit169 { justify-content: flex-start; }
.next-grid.v3 .nx-quick { height: 60px; min-height: 0; }
.next-grid.v3 .btn.nx-off { min-height: 60px; height: 60px; }
.next-grid.v3 .nx-row > .btn { height: 60px; }

.ready-check { position: relative; z-index: 2; margin-bottom: -4px; }
.gi-main .check-hint { margin: 2px 0; }

.money-hint { display: inline-block; align-self: flex-start; background: #4A1A1F; color: #ffb3b8; font: 600 12px/1.3 var(--body); padding: 5px 9px; border-radius: 8px; margin: 2px 0; }

.not-look { display: inline-block; color: #ffb3b8; font: 600 11px/1 var(--body); margin-left: 6px; }

/* crew-only notes sit over the Ready picture's top-right corner, so they never shrink the monitor */
.next-grid.v3 .nx-ready { position: relative; }
.ready-notes { position: absolute; top: 8px; left: 70px; z-index: 60; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 60%; pointer-events: none; }
