/* QUEUE . a CCTV control room: a black monitor wall, phosphor OSD text, brake-light red for BUILDS, ice blue for
   EASES, lane-marking beige for every rule and divider. VT323 for the OSD, IBM Plex Mono for the body. */
:root {
  --mon: #07090a;
  --panel: #0b100e;
  --panel2: #101814;
  --phos: #2b3a33;
  --line: #1c2722;
  --osd: #c9f6d7;
  --osd-hi: #effff3;
  --text: #b4dcc1;
  --dim: #6f8f7c;
  --brake: #ff3b30;
  --ease: #4fc3ff;
  --lane: #d8d39c;
  --glow: 0 0 6px rgba(160, 255, 190, 0.45);
  --vt: 'VT323', 'Lucida Console', monospace;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  --gut: 24px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--mon); }
body {
  margin: 0; background: var(--mon); color: var(--text);
  font: 400 14.5px/1.65 var(--mono);
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
}
/* the glass: faint scanlines over everything, never in the way of a click */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
}
a { color: var(--osd-hi); text-decoration-color: var(--lane); text-underline-offset: 3px; }
a:hover { color: var(--lane); }
:focus-visible { outline: 2px solid var(--lane); outline-offset: 2px; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.4; }
h1, h2, h3 { margin: 0; font-family: var(--vt); font-weight: 400; color: var(--osd-hi); text-shadow: var(--glow); letter-spacing: 0.02em; line-height: 1; }
p { margin: 0 0 0.9em; }
b, strong { color: var(--osd-hi); font-weight: 600; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--lane); }
.mono, code { font-family: var(--mono); font-size: 0.92em; overflow-wrap: anywhere; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 var(--gut); }
.dim { color: var(--dim); }
.builds, b.builds { color: var(--brake); }
.eases, b.eases { color: var(--ease); }
.ok { color: var(--osd-hi); }
.fine { font-size: 12.5px; color: var(--dim); margin-top: 14px; max-width: 90ch; }
.empty { font-family: var(--vt); font-size: 20px; color: var(--dim); letter-spacing: 0.04em; margin: 8px 0; }

/* the REC lamp */
.rec { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--brake); box-shadow: 0 0 8px var(--brake); flex: none; animation: rec 2s steps(1) infinite; }
@keyframes rec { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .rec { animation: none; } }

/* ------------------------------------------------------------------ keys (every button and call to action) */
.key {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 400 21px/1 var(--vt); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  padding: 8px 14px 7px; border: 2px solid var(--osd); color: var(--osd); background: transparent; border-radius: 0;
}
.key:hover:not(:disabled) { background: var(--osd); color: var(--mon); }
.key.builds { border-color: var(--brake); color: var(--brake); }
.key.builds:hover:not(:disabled) { background: var(--brake); color: #000; }
.key.eases { border-color: var(--ease); color: var(--ease); }
.key.eases:hover:not(:disabled) { background: var(--ease); color: #000; }
.key.go { background: var(--osd); color: var(--mon); }
.key.go:hover { background: var(--osd-hi); }
#connect.on { border-color: var(--phos); color: var(--dim); }

/* ------------------------------------------------------------------ the console (header) */
.console { background: var(--mon); border-bottom: 2px solid var(--phos); position: relative; z-index: 5; }
.bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.station { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--osd-hi); }
.station svg { width: 42px; height: 42px; flex: none; }
.qword { font: 400 44px/0.8 var(--vt); letter-spacing: 0.04em; color: #e9fff0; text-shadow: 0 0 14px rgba(130, 255, 170, 0.45); }
.sta { font: 400 15px/1.05 var(--vt); color: var(--dim); letter-spacing: 0.1em; }
.osdline { margin: 0; font: 400 21px/1.15 var(--vt); letter-spacing: 0.04em; color: var(--osd); text-shadow: var(--glow); display: flex; flex-wrap: wrap; gap: 0 10px; justify-content: center; text-align: center; }
.osdline i { font-style: normal; color: var(--phos); }
.osdline .b { color: var(--brake); text-shadow: 0 0 8px rgba(255, 59, 48, 0.5); }
.osdline .e { color: var(--ease); text-shadow: 0 0 8px rgba(79, 195, 255, 0.45); }
.osdline .dim { color: var(--dim); }
.tools { display: flex; align-items: center; gap: 10px; }
.utc { display: inline-flex; align-items: center; gap: 8px; font: 400 21px/1 var(--vt); color: var(--osd-hi); letter-spacing: 0.04em; white-space: nowrap; }
.xkey { padding: 8px 9px; }
.switcher { border-top: 1px solid var(--line); background: #050706; }
.switcher .wrap { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.switcher a { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; padding: 8px 12px 9px; text-decoration: none; color: var(--osd); border-left: 1px solid var(--line); position: relative; }
.switcher a:last-child { border-right: 1px solid var(--line); }
.switcher b { font: 400 15px/1 var(--vt); color: var(--dim); font-weight: 400; letter-spacing: 0.06em; }
.switcher span { font: 400 23px/1 var(--vt); letter-spacing: 0.06em; }
.switcher small { grid-column: 1 / -1; font-size: 11px; line-height: 1.3; color: var(--dim); margin-top: 3px; }
.switcher a:hover { background: var(--panel2); color: var(--osd-hi); }
.switcher a[aria-current='page'] { background: var(--phos); color: var(--osd-hi); }
.switcher a[aria-current='page']::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--lane); }
.switcher a[aria-current='page'] b, .switcher a[aria-current='page'] small { color: var(--osd); }

.notice { background: #0d1512; border-bottom: 1px solid var(--phos); }
.notice .wrap { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.notice p { margin: 0; font-size: 13.5px; color: var(--osd); }
.notice b { color: var(--lane); font-family: var(--vt); font-size: 19px; font-weight: 400; letter-spacing: 0.06em; }

/* ------------------------------------------------------------------ page heads and blocks */
.pagehead { margin: 30px 0 22px; }
.chno { font: 400 19px/1 var(--vt); color: var(--lane); letter-spacing: 0.12em; margin-bottom: 10px; }
.pagehead h1 { font-size: 60px; margin-bottom: 14px; }
.lede { max-width: 92ch; font-size: 15px; color: var(--text); }
.block { margin-top: 38px; }
.blockhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 26px; letter-spacing: 0.08em; padding-bottom: 10px; margin-bottom: 14px; position: relative; }
.blockhead .dim { font-size: 17px; text-shadow: none; }
/* every divider is a lane marking */
.blockhead::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--lane) 0 28px, transparent 28px 46px); opacity: 0.7; }

/* readouts: the desk's numbers */
.reelbox { border: 2px solid var(--phos); background: var(--panel); padding: 4px 18px 16px; }
.readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 22px; margin: 0; }
.readouts > div { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; min-width: 0; }
.readouts dt { font: 400 17px/1 var(--vt); color: var(--dim); letter-spacing: 0.08em; }
.readouts dd { margin: 4px 0 0; font: 400 36px/1 var(--vt); color: var(--osd-hi); text-shadow: var(--glow); overflow-wrap: anywhere; }
.readouts dd small { display: block; font: 400 12px/1.45 var(--mono); color: var(--dim); text-shadow: none; margin-top: 6px; overflow-wrap: anywhere; }
.readouts .builds dd { color: var(--brake); text-shadow: 0 0 10px rgba(255, 59, 48, 0.45); }
.readouts .eases dd { color: var(--ease); text-shadow: 0 0 10px rgba(79, 195, 255, 0.4); }
.readouts .builds dt { color: var(--brake); opacity: 0.8; }
.readouts .eases dt { color: var(--ease); opacity: 0.8; }
.readouts dd .tag { font-size: 30px; padding: 2px 8px 0; }

/* the reel's split: brake lights against ice */
.split { height: 12px; background: var(--ease); position: relative; margin: 14px 0 2px; box-shadow: 0 0 10px rgba(79, 195, 255, 0.25); }
.split .sb { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brake); box-shadow: 0 0 10px rgba(255, 59, 48, 0.5); }
.split::after { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--lane); }
.split.empty, .split.empty .sb { background: var(--phos); box-shadow: none; }

/* OSD tags for a trend */
.tag { display: inline-block; font: 400 18px/1.1 var(--vt); letter-spacing: 0.06em; padding: 1px 7px 0; border: 1px solid currentColor; white-space: nowrap; }
.tag.builds { color: var(--brake); }
.tag.eases { color: var(--ease); }
.tag.steady { color: var(--lane); }
.tag.wait { color: var(--dim); }

/* ------------------------------------------------------------------ the wall (CH1) */
.spotrow { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: start; }
.spotmon { border: 2px solid var(--phos); background: #000; }
.spothead { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; font: 400 18px/1 var(--vt); letter-spacing: 0.1em; color: var(--dim); border-bottom: 1px solid var(--line); }
.mode { color: var(--osd-hi); border: 1px solid var(--phos); padding: 2px 8px 1px; }
.mode.hold { color: var(--lane); border-color: var(--lane); }
.spotcap { margin: 0; padding: 8px 12px; font: 400 20px/1.15 var(--vt); letter-spacing: 0.05em; color: var(--osd); border-top: 1px solid var(--line); background: var(--panel); }
.spotcap b { font-weight: 400; color: var(--osd-hi); }
.spotkeys { display: grid; grid-template-columns: auto 1fr auto; gap: 0; border-top: 1px solid var(--line); }
.spotkeys .key { border: 0; border-right: 1px solid var(--line); font-size: 19px; padding: 9px 14px 8px; }
.spotkeys .key:last-child { border-right: 0; }
.deskpanel { border: 2px solid var(--phos); background: var(--panel); padding: 20px 20px 18px; }
.headline { font-size: 46px; line-height: 0.95; margin-bottom: 14px; }
.deskpanel .lede { font-size: 14px; }
.deskpanel .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deskpanel .readouts dd { font-size: 32px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }

.sector { margin-top: 30px; }
.sechead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; font-size: 25px; letter-spacing: 0.08em; margin-bottom: 10px; text-shadow: none; }
.secno { background: var(--lane); color: #0a0a07; padding: 2px 8px 0; font-size: 20px; }
.secname { color: var(--osd-hi); text-shadow: var(--glow); text-transform: uppercase; }
.sechead .dim { font-size: 19px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px; padding: 4px; background: #000; border: 1px solid var(--line); }

/* a camera tile */
figure.cam { margin: 0; background: #000; position: relative; min-width: 0; }
.tiles figure.cam { cursor: pointer; }
.tiles figure.cam:hover { outline: 1px solid var(--phos); z-index: 1; }
.tiles figure.cam.onspot { outline: 2px solid var(--lane); outline-offset: -2px; z-index: 2; }
.scr { position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 50% 40%, #2b3a33 0%, #101614 60%, #050706 100%); }
.big .scr { aspect-ratio: 16 / 10; }
.scr video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; background: transparent; }
.scr::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px), radial-gradient(130% 110% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.45) 100%); }
.scr svg.loops { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.scr svg.loops line { stroke: var(--lane); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.scr svg.loops line.cut { stroke: #000; stroke-width: 3; }
.osd { position: absolute; left: 8px; right: 8px; top: 5px; display: flex; justify-content: space-between; align-items: center; gap: 8px; z-index: 2;
  font: 400 18px/1 var(--vt); color: var(--osd-hi); letter-spacing: 0.05em; text-shadow: 0 0 4px rgba(160, 255, 190, 0.6), 0 1px 2px #000; }
.osd .cid em { font-style: normal; color: var(--osd); margin-left: 8px; }
.osd .rt { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.osd .rec { width: 8px; height: 8px; }
.state { position: absolute; left: 8px; top: 24px; z-index: 2; font: 400 15px/1 var(--vt); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); text-shadow: 0 1px 2px #000; }
figure.cam[data-state='live'] .state, figure.cam[data-state='latest clip'] .state { color: var(--osd); }
figure.cam[data-state='no signal'] .state, figure.cam[data-state='no footage'] .state { left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 26px; color: var(--osd-hi); }
.ct { position: absolute; left: 8px; bottom: 6px; z-index: 2; font: 400 18px/1 var(--vt); letter-spacing: 0.05em; color: var(--osd-hi); background: rgba(0, 0, 0, 0.6); padding: 2px 5px 1px; }
.ct:empty { display: none; }
figure.cam figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 8px 7px; background: var(--panel); border-top: 1px solid var(--line); }
figure.cam .nm { font-size: 12px; line-height: 1.35; color: var(--osd); min-width: 0; }
figure.cam .city { font: 400 15px/1 var(--vt); color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.big .osd { font-size: 24px; left: 14px; right: 14px; top: 10px; }
.big .state { left: 14px; top: 36px; font-size: 18px; }
.big .ct { left: 14px; bottom: 12px; font-size: 22px; }
.big figcaption { padding: 8px 12px; }
.big .nm { font-size: 13px; }
.qmark { position: absolute; right: 18px; bottom: 6px; z-index: 2; pointer-events: none; font: 400 clamp(56px, 8vw, 128px)/0.8 var(--vt); letter-spacing: 0.02em; color: #e9fff0; text-shadow: 0 0 18px rgba(130, 255, 170, 0.45); opacity: 0.92; }

/* ------------------------------------------------------------------ the desk (CH2) */
.console2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.chan { border: 2px solid var(--brake); background: var(--panel); padding: 0 18px 18px; display: flex; flex-direction: column; min-width: 0; }
.chan.eases { border-color: var(--ease); }
.chanhead { display: flex; justify-content: space-between; margin: 0 -18px 16px; padding: 5px 12px 3px; font: 400 18px/1 var(--vt); letter-spacing: 0.12em; background: var(--brake); color: #000; }
.chan.eases .chanhead { background: var(--ease); }
.chan h2 { font-size: 40px; color: var(--brake); text-shadow: 0 0 10px rgba(255, 59, 48, 0.4); margin-bottom: 6px; }
.chan.eases h2 { color: var(--ease); text-shadow: 0 0 10px rgba(79, 195, 255, 0.35); }
.field { display: grid; gap: 6px; margin: 10px 0 8px; }
.field span { font: 400 17px/1 var(--vt); color: var(--dim); letter-spacing: 0.1em; }
.field input { width: 100%; background: #000; border: 1px solid var(--phos); color: var(--osd-hi); font: 400 30px/1 var(--vt); padding: 8px 10px 6px; border-radius: 0; letter-spacing: 0.04em; }
.field input:focus { outline: none; border-color: var(--osd); box-shadow: 0 0 0 1px var(--osd); }
.field input::placeholder { color: #34463d; }
.est { min-height: 3.4em; font-size: 12.5px; color: var(--text); }
.chan .key { width: 100%; margin-top: auto; font-size: 23px; padding: 11px 14px 10px; }
.claimrow { margin-top: 16px; }

/* ------------------------------------------------------------------ tables (the log) */
.scroll { overflow-x: auto; }
table.log { width: 100%; border-collapse: collapse; font-size: 13px; }
table.log th { font: 400 17px/1.1 var(--vt); letter-spacing: 0.08em; color: var(--dim); text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--phos); text-transform: uppercase; white-space: nowrap; }
table.log td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.log tbody tr:hover { background: var(--panel); }
table.log .num { text-align: right; }
table.log td.num { font-family: var(--vt); font-size: 20px; line-height: 1.1; color: var(--osd-hi); }
table.log td.num.builds { color: var(--brake); }
table.log td.num.eases { color: var(--ease); }
table.addr td:first-child { font: 400 18px/1.2 var(--vt); letter-spacing: 0.05em; color: var(--osd); white-space: nowrap; }
table.addr .full { margin-left: 8px; font-size: 12px; }

/* ------------------------------------------------------------------ the trend (CH3) */
.scope { border: 2px solid var(--phos); background: #040605; padding: 10px 14px 6px; }
.scopehead { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font: 400 18px/1 var(--vt); letter-spacing: 0.08em; color: var(--dim); margin-bottom: 8px; }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg i { display: inline-block; width: 12px; height: 12px; }
.lg .lb { background: var(--brake); }
.lg .le { background: var(--ease); margin-left: 8px; }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart text { fill: var(--dim); font: 400 17px var(--vt); letter-spacing: 0.04em; }
svg.chart .grid { stroke: #142019; stroke-width: 1; }
svg.chart .zero { stroke: var(--lane); stroke-width: 2; }
svg.chart .bb { fill: var(--brake); }
svg.chart .be { fill: var(--ease); }

/* ------------------------------------------------------------------ the feeds (CH5) */
.racks { border-top: 2px solid var(--phos); }
.rack { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 24px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rackspec h2 { font-size: 30px; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cno { background: var(--lane); color: #0a0a07; text-shadow: none; padding: 2px 8px 0; font-size: 21px; }
dl.spec { margin: 0; display: grid; gap: 0; }
dl.spec > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 6px 0; border-top: 1px solid var(--line); }
dl.spec dt { font: 400 17px/1.3 var(--vt); letter-spacing: 0.08em; color: var(--dim); }
dl.spec dd { margin: 0; font-size: 13px; min-width: 0; }
dl.spec .hash { font-size: 11.5px; color: var(--osd); }
dl.spec dd > span[id] { font: 400 16px/1 var(--vt); letter-spacing: 0.06em; display: inline-block; margin-top: 4px; }

/* ------------------------------------------------------------------ the rules (CH6) */
.orders { list-style: none; margin: 0; padding: 0; counter-reset: order; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; }
.orders li { counter-increment: order; padding: 16px 0 6px; border-top: 1px solid var(--line); margin: 0; }
.orders li::before { content: 'ORDER ' counter(order, decimal-leading-zero); display: block; font: 400 17px/1 var(--vt); letter-spacing: 0.12em; color: var(--lane); margin-bottom: 6px; }
.orders h2 { font-size: 30px; margin-bottom: 8px; }
.orders p { font-size: 13.5px; }
.limits ul { columns: 2 380px; column-gap: 34px; }
.limits li { break-inside: avoid; }

/* ------------------------------------------------------------------ the manual (CH7) */
.manual { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.toc { position: sticky; top: 14px; border: 1px solid var(--phos); background: var(--panel); padding: 10px 0; max-height: calc(100vh - 28px); overflow-y: auto; }
.tocl { font: 400 17px/1 var(--vt); letter-spacing: 0.12em; color: var(--lane); padding: 0 14px 6px; margin: 0; }
.toc a { display: block; padding: 4px 14px 3px; font: 400 19px/1.1 var(--vt); letter-spacing: 0.04em; color: var(--osd); text-decoration: none; border-left: 3px solid transparent; }
.toc a b { font-weight: 400; color: var(--dim); margin-right: 10px; }
.toc a:hover { background: var(--panel2); }
.toc a.here { border-left-color: var(--lane); color: var(--osd-hi); background: var(--panel2); }
.manual article section { padding: 6px 0 18px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.manual article section:first-child { border-top: 0; }
.manual article h2 { font-size: 34px; margin: 12px 0 12px; display: flex; gap: 14px; align-items: baseline; }
.manual article h2 b { font-weight: 400; color: var(--lane); font-size: 22px; text-shadow: none; }
.manual article p, .manual article ul { max-width: 80ch; }
dl.faq dt { font: 400 23px/1.1 var(--vt); color: var(--osd-hi); letter-spacing: 0.03em; margin-top: 14px; }
dl.faq dd { margin: 4px 0 0; max-width: 80ch; }
#camlist { margin-top: 10px; }

/* ------------------------------------------------------------------ the equipment plate (footer) */
.plate { margin-top: 64px; border-top: 2px solid var(--phos); background: var(--panel); }
.plategrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: 14px 34px; padding: 24px 0 30px; align-items: start; }
.pl1 { display: grid; gap: 8px; margin: 0; }
.pl1 .dim { font: 400 16px/1.1 var(--vt); letter-spacing: 0.1em; }
.pl2, .pl3 { font-size: 12.5px; color: var(--dim); margin: 0; }
.flinks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.flinks a { display: inline-flex; align-items: center; gap: 8px; font: 400 20px/1 var(--vt); letter-spacing: 0.06em; color: var(--osd); text-decoration: none; }
.flinks a:hover { color: var(--lane); }

/* ------------------------------------------------------------------ toasts */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 95; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { background: #000; color: var(--osd); padding: 11px 14px; font-size: 13px; display: flex; gap: 10px; align-items: baseline; border: 1px solid var(--phos); border-left: 6px solid var(--osd); }
.toast[data-kind=good] { border-left-color: var(--osd-hi); }
.toast[data-kind=bad] { border-left-color: var(--brake); }
.toast span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast button { border: 0; background: none; color: var(--osd); font-family: var(--vt); font-size: 20px; }

/* ------------------------------------------------------------------ narrower */
@media (max-width: 1180px) {
  .bar { grid-template-columns: auto auto; grid-template-areas: 'st tools' 'osd osd'; row-gap: 10px; }
  .station { grid-area: st; }
  .tools { grid-area: tools; justify-self: end; }
  .osdline { grid-area: osd; justify-content: flex-start; text-align: left; border-top: 1px solid var(--line); padding-top: 9px; }
  .switcher small { display: none; }
  .spotrow { grid-template-columns: 1fr; }
  .plategrid { grid-template-columns: 1fr 1fr; }
  .pl1 { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .console2, .orders { grid-template-columns: 1fr; }
  .rack { grid-template-columns: 1fr; gap: 12px; }
  .manual { grid-template-columns: 1fr; gap: 18px; }
  .toc { position: static; max-height: none; display: grid; grid-template-columns: 1fr 1fr; }
  .tocl { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  body { font-size: 14px; }
  .bar { gap: 10px; }
  .station { gap: 9px; }
  .station svg { width: 34px; height: 34px; }
  .qword { font-size: 38px; }
  .sta { display: none; }
  .utc { font-size: 19px; gap: 6px; }
  .tools { gap: 6px; }
  .tools .key { font-size: 18px; padding: 7px 9px 6px; }
  .osdline { font-size: 18px; gap: 0 8px; }
  .switcher .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .switcher a { padding: 7px 8px 8px; border-bottom: 1px solid var(--line); border-right: 0; }
  .switcher a:last-child { border-right: 0; }
  .switcher span { font-size: 20px; }
  .pagehead h1 { font-size: 42px; }
  .headline { font-size: 36px; }
  .deskpanel { padding: 16px 14px 14px; }
  .readouts dd { font-size: 30px; }
  .deskpanel .readouts { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .deskpanel .readouts dd { font-size: 26px; }
  .actions { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .osd { font-size: 15px; left: 6px; right: 6px; top: 4px; gap: 4px; }
  .osd .cid em { display: none; }
  .state { left: 6px; top: 20px; font-size: 13px; }
  .ct { font-size: 15px; left: 6px; bottom: 4px; }
  figure.cam figcaption { flex-direction: column; gap: 2px; padding: 5px 6px 6px; }
  figure.cam .nm { font-size: 11px; }
  .big .osd { font-size: 19px; left: 8px; right: 8px; top: 6px; }
  .big .osd .cid em { display: inline; }
  .big .state { left: 8px; top: 26px; font-size: 15px; }
  .big .ct { left: 8px; bottom: 8px; font-size: 18px; }
  .big figcaption { flex-direction: row; }
  .qmark { font-size: 46px; right: 10px; bottom: 6px; }
  .spotkeys .key { font-size: 17px; padding: 9px 8px 8px; }
  .sechead { font-size: 22px; }
  .reelbox { padding: 2px 12px 12px; }
  .chan { padding: 0 14px 14px; }
  .chanhead { margin: 0 -14px 14px; }
  dl.spec > div { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
  .toc { grid-template-columns: 1fr; }
  .plategrid { grid-template-columns: 1fr; }
  table.log.stack thead { display: none; }
  table.log.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  table.log.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 3px 0; text-align: right; }
  table.log.stack td::before { content: attr(data-l); font: 400 16px/1.2 var(--vt); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; text-align: left; flex: none; }
  table.log.stack td[colspan] { display: block; text-align: left; }
  table.log.stack td[colspan]::before { content: none; }
  table.addr td { display: block; padding: 4px 0; border: 0; }
  table.addr tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  table.addr .full { display: block; margin: 2px 0 0; }
}

/* the OSD stays legible over bright footage: a dark backing behind each burn-in */
.osd .cid, .osd .rt, .state { background: rgba(0, 0, 0, 0.55); padding: 2px 5px 1px; }
figure.cam[data-state='no signal'] .state, figure.cam[data-state='no footage'] .state { background: none; }
@media (max-width: 640px) {
  .utcw { display: none; }
  .bar { grid-template-columns: minmax(0, auto) minmax(0, auto); }
  #connect { font-size: 17px; padding: 7px 8px 6px; letter-spacing: 0.02em; }
}
#connect.on { text-transform: none; }
