/* Pump Radio station console — dark, quiet, legible. */
:root {
  --bg: #0b0e14; --panel: #10141c; --ink: #ebe6da; --muted: #949caa;
  --line: #222836; --accent: #e8a33d; --onair: #ff4438; --ok: #5dbb72;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--onair); }
.bar-right { margin-left: auto; display: flex; gap: 14px; align-items: center; }
/* The bar's forms join the flex line — the base form grid's top
   margin would sink them below the name text — and its controls all
   hold ONE height. */
.bar-right form.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.bar-right .btn-quiet { font-size: 0.85rem; padding: 6px 12px; line-height: 1.2; }
.inline { display: inline; }
.muted { color: var(--muted); font-size: 0.9em; }
.error { color: var(--onair); }
main { max-width: 860px; margin: 0 auto; padding: 24px 20px; display: grid; gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 24px; }
.narrow { max-width: 420px; margin: 8vh auto 0; width: 100%; }
h1 { font-size: 1.4rem; margin: 0 0 8px; }
h2 { font-size: 1.1rem; margin: 0 0 10px; }
h3 { font-size: 0.95rem; margin: 18px 0 8px; }
form { display: grid; gap: 12px; margin-top: 12px; }
form.row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; }
/* Buttons in grid forms keep their natural size — never a cell-wide slab. */
form.row button { justify-self: start; width: auto; padding: 9px 18px; }
/* Modals: the console's own, styled like the rest of the rack. */
dialog.modal { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 24px; width: min(440px, 92vw); }
/* The placement editor carries long style descriptions — give it room. */
dialog#ad-edit-dlg { width: min(680px, 92vw); }
dialog#ad-edit-dlg select { width: 100%; }
dialog.modal::backdrop { background: rgba(5, 7, 11, 0.72); }
dialog.modal form { display: grid; gap: 12px; }
dialog.modal h3 { margin: 0 0 4px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 6px 0 0; padding: 0; }
label { display: grid; gap: 5px; font-size: 0.85rem; color: var(--muted); }
input, select {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 3px; padding: 9px 11px;
}
/* Selects draw their own chevron: the native one sits flush against
   the edge with no say in the matter. */
select {
  -webkit-appearance: none; appearance: none;
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23949caa' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
button {
  font: inherit; padding: 10px 16px; border-radius: 3px; cursor: pointer;
  background: var(--accent); color: #0b0e14; border: none; font-weight: 600;
  transition: background 0.35s ease, color 0.35s ease, opacity 0.35s ease;
}
/* Disabled reads as disabled — grey, flat, no hand cursor — and the
   transition above animates the colour back in on enable. */
button:disabled, .btn-quiet:disabled {
  background: var(--line); color: var(--muted); cursor: not-allowed; opacity: 0.6;
}
.btn-quiet { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 400; padding: 5px 10px; }
/* Transport grammar: green means "press to start", red means "press to
   stop" — the same on every deck and monitor control. */
.btn-play, .btn-stop { border: none; border-radius: 3px; font-weight: 600; font-size: 0.82rem; padding: 5px 14px; cursor: pointer; }
.btn-play { background: var(--ok); color: #0b0e14; }
.btn-stop { background: var(--onair); color: #fff; }
.btn-play:hover, .btn-stop:hover { filter: brightness(1.12); }
/* Where the sound comes out: every monitor declares its speaker.
   Browser feeds play HERE, on the device showing this page; machine
   feeds play from the computer running the core, at the studio. */
.out-chip {
  display: inline-block; font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; vertical-align: middle;
  padding: 2px 9px; margin-left: 8px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--muted);
}
.out-chip.machine { border-color: var(--accent); color: var(--accent); }
/* The upload report: a fixed window onto however many lines the
   import produced — a 300-track ZIP must not become a 300-line page. */
.upload-report {
  max-height: 180px; overflow-y: auto; margin-top: 12px;
  border: 1px solid var(--line); border-radius: 3px; padding: 8px 12px;
}
.upload-report p { margin: 2px 0; }
/* Schedule rows come in pairs: the show line, then a quiet strip of
   controls beneath it — content never fights buttons for width. */
.slot-row td { border-bottom: none; padding-bottom: 4px; }
.slot-actions td { padding-top: 0; }
.slot-time { white-space: nowrap; }
/* The control strip is a FLEX line: inline flow aligns by baseline
   and emoji/labels/links all carry different ones — flex centring is
   the only geometry that holds them level. */
.slot-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slot-ctl form.inline { display: inline-flex; margin: 0; }
/* Show recording: the chip on the schedule, the toggle's lit state. */
.rec-chip { color: var(--onair); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; }
.btn-quiet.rec-on { color: var(--onair); border-color: var(--onair); }
.rec-check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.rec-check input { width: auto; }
/* The broadcast-week planner: seven aligned rows. */
.week-plan { display: grid; gap: 6px; margin-top: 12px; }
.week-day { display: grid; grid-template-columns: 6.5em auto auto auto 1fr; gap: 8px; align-items: center; font-size: 0.9rem; }
.week-day.closed input[type="time"] { opacity: 0.35; }
.wd-name { color: var(--muted); }
.wd-closed { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.slot-ctl .btn-quiet {
  display: inline-flex; align-items: center; gap: 5px; width: auto; margin: 0;
  padding: 6px 12px; line-height: 1.2; font-size: 0.85rem; text-decoration: none;
}
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
/* Add-a-slot: a packed grid, not a 400px tower. */
form.slot-add { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
form.slot-add select { min-width: 0; }
/* The gateway strip under the main meters: leaf link, round trip,
   beat health — the console's line of sight to the edge. */
.gw-strip {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 0;
  font-family: ui-monospace, Menlo, monospace; font-size: 0.82rem; color: var(--muted);
}
.gw-strip .gw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.gw-strip.warn .gw-dot { background: var(--accent); }
.gw-strip.down { color: var(--onair); }
.gw-strip.down .gw-dot { background: var(--onair); animation: mic-pulse 1.2s ease-in-out infinite; }
/* The dashboard's day rail: 24 hours as one strip, shows as spans,
   the live one lit, now as a red line. */
/* The vertical day calendar: 24h top-to-bottom, red now-line across.
   Blocks get a minimum height so a 15-minute show stays readable. */
.day-cal { display: flex; gap: 8px; margin-top: 8px; }
.cal-hours { position: relative; width: 42px; height: 720px; font-family: ui-monospace, Menlo, monospace; font-size: 0.68rem; color: var(--muted); }
.cal-hours span { position: absolute; right: 0; transform: translateY(-50%); }
.cal-hours span:first-child { transform: none; }
.cal-hours span:last-child { transform: translateY(-100%); }
.cal-track { position: relative; flex: 1; height: 720px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.cal-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); opacity: 0.5; }
.cal-span {
  position: absolute; left: 6px; right: 6px; min-height: 20px;
  display: flex; align-items: center; gap: 8px; padding: 0 9px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--muted); border-radius: 3px;
  font-size: 0.75rem; color: var(--muted); white-space: nowrap; text-decoration: none; z-index: 1;
}
.cal-span b { font-family: ui-monospace, Menlo, monospace; font-weight: 500; font-size: 0.68rem; }
.cal-span.plan { border-color: var(--accent); color: var(--accent); }
.cal-span.live { border-color: var(--ok); color: var(--ok); box-shadow: 0 0 8px rgba(93, 187, 114, 0.35); }
.cal-span:hover { border-color: var(--ink); color: var(--ink); }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--onair); z-index: 2; }

.day-rail { position: relative; height: 40px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.rail-span {
  position: absolute; top: 4px; bottom: 4px; min-width: 3px;
  display: flex; align-items: center; padding: 0 7px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--muted); border-radius: 3px;
  font-size: 0.72rem; color: var(--muted); white-space: nowrap; text-decoration: none;
}
.rail-span.plan { border-color: var(--accent); color: var(--accent); }
.rail-span.live { border-color: var(--ok); color: var(--ok); box-shadow: 0 0 8px rgba(93, 187, 114, 0.35); }
.rail-span:hover { border-color: var(--ink); color: var(--ink); }
.rail-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--onair); }
.rail-scale { display: flex; justify-content: space-between; font-family: ui-monospace, Menlo, monospace; font-size: 0.68rem; color: var(--muted); margin-top: 3px; }
/* Clock-pin chips: a pinned advert/ident declares its moment. */
.pin-chip { display: inline-block; font-size: 0.72rem; padding: 1px 8px; border-radius: 9px; border: 1px solid var(--accent); color: var(--accent); white-space: nowrap; vertical-align: 1px; }
/* The programme table holds its shape: FIXED columns and top-aligned
   rows, so unfolding a playlist grows its row downward and nothing
   else moves — auto layout would re-negotiate every column on every
   open and close. */
table.plan-table { table-layout: fixed; }
table.plan-table th:nth-child(1) { width: 2.4em; }
table.plan-table th:nth-child(3) { width: 8em; }
table.plan-table th:nth-child(4) { width: 10em; }
table.plan-table td { vertical-align: top; overflow-wrap: break-word; }
table.plan-table .deck-rowctl { white-space: nowrap; }
/* A playlist segment unfolds its running order in place. */
details.seg-list summary { cursor: pointer; list-style: none; }
details.seg-list summary::-webkit-details-marker { display: none; }
details.seg-list summary::after { content: " ▾"; color: var(--muted); }
details.seg-list[open] summary::after { content: " ▴"; }
.seg-tracks { margin: 8px 0 4px; padding-left: 24px; font-size: 0.85rem; }
.seg-tracks li { margin: 3px 0; }
.seg-tracks-foot { margin: 4px 0 2px; }
/* hidden must beat the base label grid — the third page this trap
   has bitten; settle it globally. */
label[hidden] { display: none; }
/* The planner's add-segment and search rows: full-height controls,
   the segment picker with room for whole rotation names, the search
   box taking the width it deserves. */
form.plan-add { grid-template-columns: minmax(240px, 2fr) minmax(170px, 1fr) auto; }
form.plan-add.no-fill, form.plan-search { grid-template-columns: 1fr auto; }
/* Both buttons live in the LAST column whatever else is visible —
   hiding the fill field must not let Add segment drift inboard of
   Search. (-2 is the last track's start line at any column count.) */
form.plan-add button, form.plan-search button { grid-column: -2; justify-self: end; }
@media (max-width: 680px) {
  form.plan-add, form.plan-search { grid-template-columns: 1fr; }
  form.plan-add button, form.plan-search button { justify-self: start; }
}
/* The planner's pin form: time, hard, button on one centred line —
   the row-control default (display:inline + form margin) would sag it. */
.deck-rowctl form.pin-form, .pin-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.pin-form input[type=time] { padding: 5px 8px; font-size: 0.85rem; }
/* A checkbox and its word on one line, anywhere (the .listen rule,
   ungated). */
.check-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.85rem; cursor: pointer; }
/* The deck's situation line, air row and spacing: context first,
   badge beside the output meter, air between clock and transport. */
.deck-context { margin: 14px 0 4px; }
.deck-hardstop { color: var(--onair); }
.deck-airrow { display: flex; align-items: center; gap: 14px; margin: 10px 0 12px; }
.deck-airrow .deck-signal { display: flex; align-items: center; gap: 10px; margin: 0; }
.deck .deck-controls { margin-top: 22px; }
/* The segue heads-up: a little colour wheel on the NEXT line while
   the fade-out runs — the next track is audibly on its way in. */
.segue-spin {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  vertical-align: -2px; margin-left: 4px;
  background: conic-gradient(#ff4438, #e8a33d, #5dbb72, #4aa8ff, #b06bff, #ff4438);
  -webkit-mask: radial-gradient(farthest-side, transparent 55%, #000 60%);
  mask: radial-gradient(farthest-side, transparent 55%, #000 60%);
  animation: segue-spin 0.9s linear infinite;
}
@keyframes segue-spin { to { transform: rotate(360deg); } }
.segue-msg { color: var(--accent); font-size: 0.8rem; margin-left: 6px; }
.deck-next .segue-spin { margin-right: 6px; vertical-align: -2px; }
/* The deck queue folds behind "… N more" past five rows; deck.js
   holds the expansion across SSE repatches. */
.deck-queue:not(.q-expanded) .deck-qx { display: none; }
/* Analysis progress: the overall bar and the per-row markers. */
.an-progress { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.progress-track { flex: 1; max-width: 340px; height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 0; background: var(--ok); transition: width 0.4s ease; }
.an-cell { font-size: 0.8rem; white-space: nowrap; }
.an-pending { color: var(--muted); }
.an-running { color: var(--accent); }
/* An identify miss is a soft warning, never the analysis-failure red
   — the amber triangle says "look when you have a minute". */
.an-failed { color: var(--accent); font-size: 1.2rem; line-height: 1; }
.an-isrc, .an-isrc-wait { color: var(--muted); }
.an-review { color: var(--accent); }
.an-nocode, .an-nomatch { color: var(--muted); }
.an-done { color: var(--ok); }
/* Chip inputs: a badge per tag inside an input-shaped box. */
.chip-input {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 3px;
  padding: 5px 8px; cursor: text;
}
.chip-input:focus-within { border-color: var(--accent); }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 2px 10px; font-size: 0.8rem; white-space: nowrap;
}
.chip button { background: none; border: none; color: var(--muted); padding: 0; font-weight: 400; cursor: pointer; font-size: 0.95rem; line-height: 1; }
.chip button:hover { color: var(--onair); }
.chip-entry, .chip-entry:focus { border: none; background: none; padding: 4px 2px; flex: 1; min-width: 130px; outline: none; }
/* The add-to-playlist modal: a searchable pick list. */
.pl-modal-list { max-height: 300px; overflow-y: auto; display: grid; gap: 4px; margin-top: 4px; }
.pl-modal-row { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-size: 0.9rem; cursor: pointer; }
.pl-modal-row input[type=checkbox] { margin: 0; }
.pl-modal-row[hidden] { display: none; }
/* The track page's research desk. */
.research-panel { margin-top: 18px; }
.research-copy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.research-copy .invite-link { display: inline-block; padding: 6px 10px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
.statusline { font-family: ui-monospace, Menlo, monospace; color: var(--ok); }
.invite-link { display: block; padding: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; word-break: break-all; user-select: all; }
a { color: var(--accent); }

.panic-form { margin-top: 16px; }
.panic-btn {
  background: var(--onair); color: #fff; font-weight: 700;
  letter-spacing: 0.08em; padding: 14px 28px; border-radius: 50px;
}
.panic-btn:hover { filter: brightness(1.1); }

.meter-track {
  height: 10px; background: var(--line); border-radius: 2px;
  overflow: hidden; margin: 8px 0 4px;
}
#meter-bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ok) 70%, var(--accent) 85%, var(--onair));
  transition: width 140ms linear;
}

.cue {
  font-family: ui-monospace, Menlo, monospace; font-weight: 700;
  color: var(--accent); margin: 6px 0 0; min-height: 1.4em;
}
.cue.quiet { visibility: hidden; }

/* Listener messages: newest first, scrollable, badged by source.
   Left edge colours by channel — green WhatsApp, amber SMS. */
.chat-list { display: grid; gap: 8px; max-height: 400px; overflow-y: auto; margin: 12px 0; padding-right: 4px; font-size: 0.92rem; }
.chat-msg { background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 3px; padding: 8px 12px; }
.chat-msg header { display: flex; align-items: baseline; gap: 8px; }
.chat-msg header time { margin-left: auto; color: var(--muted); font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.75rem; }
.chat-msg p { margin: 4px 0 0; overflow-wrap: anywhere; }
.chat-badge { font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 2px; padding: 1px 6px; white-space: nowrap; }
.chat-msg.src-whatsapp { border-left-color: var(--ok); }
.chat-msg.src-whatsapp .chat-badge { color: var(--ok); border-color: var(--ok); background: var(--ok-soft, rgba(93, 187, 114, 0.10)); }
.chat-msg.src-sms { border-left-color: var(--accent); }
.chat-msg.src-sms .chat-badge { color: var(--accent); border-color: var(--accent); background: var(--accent-soft, rgba(232, 163, 61, 0.12)); }
.chat-msg.src-reply { border-left-color: var(--line); opacity: 0.75; }
.chat-msg.is-read { opacity: 0.5; border-left-color: var(--line) !important; }
.chat-badge.read { color: var(--ok); border-color: var(--ok); }
.btn-read { font-size: 0.72rem; padding: 2px 8px; white-space: nowrap; }
.chat-reply { margin: 8px 0 0 16px; padding: 6px 10px; border-left: 2px solid var(--line); }
.chat-reply header { display: flex; align-items: baseline; gap: 8px; }
.chat-reply header time { margin-left: auto; color: var(--muted); font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.7rem; }
.chat-reply p { margin: 2px 0 0; color: var(--muted); }
.chat-msg .reply-form { display: flex; gap: 6px; margin-top: 8px; }
.chat-msg .reply-form input[name="message"] { flex: 1; padding: 6px 9px; }
.chat-test { display: flex; gap: 6px; }
.chat-test input[name="message"] { flex: 1; }

/* The orbit: the airlock phase ring wraps the panic button itself —
   ONE instrument. Full green = steady state, button armed; any
   countdown drains around the button (amber for sync/purge, red
   behind cover) with the state spoken in the chip below. The
   dashoffset transition outlasts the 2 s status tick so the drain is
   continuous. */
.panic-orbit { position: relative; width: 184px; height: 184px; margin: 16px auto 10px; display: grid; place-content: center; }
.panic-orbit #panic-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
/* ^ pointer-events: none is LOAD-BEARING: the ring overlays the
   whole orbit, and without it the svg eats every click aimed at the
   panic button beneath — the button sat unpressable from the orbit
   redesign until 2026-08-11, caught by elementFromPoint on the live
   console. Decoration must never intercept. */
.ring-track { fill: none; stroke: var(--line); stroke-width: 3; }
.ring-arc { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 213.6; transition: stroke-dashoffset 2.1s linear, stroke 300ms ease; }
.panic-ring-svg.is-panic .ring-arc { stroke: var(--onair); }
.panic-ring-svg.is-recover .ring-arc { stroke: var(--accent); }
/* Held only while cover is on air: the sync/purge countdowns leave
   the button fully live — a presenter has control the second their
   show is, and the airlock runs around them. */
.panic-btn.phase-hold { opacity: 0.35; cursor: not-allowed; filter: none; }

/* Armed panic button: first press arms, second fires. */
.panic-btn.armed { outline: 2px solid var(--onair); animation: panic-arm 0.45s ease-in-out infinite alternate; }
@keyframes panic-arm { from { filter: brightness(1); } to { filter: brightness(1.4); } }

/* The stream bus: a mixing desk. One container, divided rows, five
   aligned columns — lamp · name · level · status · action. The on-air
   channel carries the only colour. */
.bridge-panel { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.bridge-row {
  display: grid;
  grid-template-columns: 10px minmax(130px, 200px) 110px 1fr auto;
  align-items: center; gap: 14px;
  padding: 11px 14px;
  border-left: 3px solid transparent;
}
.bridge-row + .bridge-row { border-top: 1px solid var(--line); }
.bridge-row.bridged { border-left-color: var(--onair); background: rgba(255, 68, 56, 0.04); }
.row-name { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-status { color: var(--muted); font-size: 0.82rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-status .routed, .stream-line .routed { color: var(--onair); font-style: normal; font-size: 0.78rem; letter-spacing: 0.06em; }
.dot-sep { margin: 0 7px; opacity: 0.5; }
.row-action { justify-self: end; }
.lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: inline-block; }
.lamp.on { background: var(--ok); box-shadow: 0 0 6px rgba(93, 187, 114, 0.6); }
.row-status .lamp { width: 6px; height: 6px; margin-right: 2px; }
.btn-switch { background: transparent; color: var(--ink); border: 1px solid var(--muted); border-radius: 2px; font-size: 0.78rem; padding: 4px 14px; cursor: pointer; }
.btn-switch:hover { border-color: var(--accent); color: var(--accent); }
.bridge-led { color: var(--muted); }
.bridge-led.on { color: var(--ok); }
.bridge-link { font-size: 0.78rem; color: var(--muted); word-break: break-all; user-select: all; }
.onair-tag { font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--onair); border: 1px solid var(--onair); background: var(--onair-soft, rgba(255,68,56,0.12)); border-radius: 2px; padding: 4px 12px; }
.mini-meter { display: inline-block; width: 100%; max-width: 110px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; vertical-align: middle; }
.mini-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok) 70%, var(--accent) 85%, var(--onair)); transition: width 160ms linear; }
.mini-meter.dim { opacity: 0.35; }
/* Sliding toggles: the broadcast-console switch, not a checkbox.
   label.switch outweighs .bk-settings label so the row layout holds
   inside settings forms. */
.switch, .bk-settings label.switch { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); font-size: 0.85rem; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .knob { width: 34px; height: 18px; border-radius: 9px; background: var(--line); position: relative; transition: background 160ms; flex-shrink: 0; }
.switch .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: left 160ms, background 160ms; }
.switch input:checked + .knob { background: var(--ok); }
.switch input:checked + .knob::after { left: 18px; background: #0b0e14; }
.switch input:focus-visible + .knob { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Arm-on-complete saves: quiet while required fields are missing,
   PRIMARY the moment the form is complete (form:valid) — the button
   itself says whether there is anything to save. The 0.35s button
   transition animates the arming. */
form.arms .btn-arm { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 400; }
form.arms:valid .btn-arm { background: var(--accent); color: #0b0e14; border: 1px solid var(--accent); font-weight: 600; }
/* Pressed, the button locks and spins until the page answers. */
.btn-busy { pointer-events: none; opacity: 0.85; }
.btn-busy::after { content: ""; display: inline-block; width: 12px; height: 12px;
  border: 2px solid rgba(11, 14, 20, 0.35); border-top-color: #0b0e14; border-radius: 50%;
  margin-left: 8px; vertical-align: -2px; animation: arm-spin 0.8s linear infinite; }
@keyframes arm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn-busy::after { animation: none; } }

/* The presenter's Mixcloud strip: ONE level line. Captions sit LEFT
   of their inputs (not stacked above), radios lie flat, and every
   control — toggle, choice, fields, save — centres on the same
   horizontal. Declared after .bk-settings so the ties go our way. */
.bk-settings.mc-mine { align-items: center; }
.bk-settings.mc-mine label, .bk-settings.mc-mine label.rec-check {
  display: flex; flex-direction: row; align-items: center; gap: 7px;
  white-space: nowrap; margin: 0;
}
.bk-settings.mc-mine label.rec-check { color: var(--ink); }

/* The desk's quick Mixcloud switch: one flick, applied immediately. */
.mc-quick { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid var(--line); }

/* The Mixcloud lamp on "Your broadcast": flashing broadcast light
   while the presenter's picture is going out. */
.mc-badge { font-size: 0.78rem; margin-left: 6px; white-space: nowrap; }
.mc-badge.armed { color: var(--muted); }
.mc-badge.warn { color: var(--accent); }
.mc-badge.live { color: var(--onair); font-weight: 600; letter-spacing: 0.06em; }
.mc-badge .mc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; margin-right: 6px; box-shadow: 0 0 6px rgba(255, 68, 56, 0.6);
  animation: mc-blink 1.1s steps(2, start) infinite; }
@keyframes mc-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .mc-badge .mc-dot { animation: none; } }
#live-status .purge { color: var(--accent); font-weight: 600; }

/* Advanced disclosure: integration plumbing stays out of the way of
   the working panel until summoned. */
.advanced { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.advanced summary { cursor: pointer; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; user-select: none; }
.advanced summary:hover { color: var(--ink); }
.advanced[open] summary { margin-bottom: 8px; }

/* The strip's RTT value sits in a fixed-width cell so the row never
   breathes as the digits change. */
.gw-rtt { display: inline-block; min-width: 5ch; font-variant-numeric: tabular-nums; }
.isrc-ok { color: var(--ok); font-weight: 700; text-align: center; }
/* Wallet claims: identity chips with a per-claim remove. */
.key-claim { display: inline-flex; align-items: center; gap: 2px; margin: 0 8px 4px 0; }
.key-claim .key-claim-x { padding: 1px 6px; font-size: 0.7rem; }
.key-claim form.inline { margin: 0; }

/* The component table's licence cog + fold-out. */
.sys-lic-cell { white-space: nowrap; }
.sys-cog { font-size: 1.05rem; line-height: 1; padding: 4px 9px; }
.sys-cog.open { color: var(--accent); border-color: var(--accent); }
.sys-lic-ok { color: var(--ok); font-weight: 700; margin-left: 6px; }
.sys-lic-row td { background: var(--bg); border-bottom: 1px solid var(--line); }
.sys-lic-fold { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 2px; }
.sys-lic-fold form.inline { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.guid-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.guid-line code { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 2px 8px; }
.guid-line .btn-quiet { padding: 3px 10px; font-size: 0.75rem; }
.sweeper-row { display: inline-flex; align-items: center; gap: 12px; margin: 0; }
.sweeper-row select { max-width: 320px; }
.sweeper-duck { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.sweeper-duck input { width: 4.5em; }
.day-window { display: inline-flex; align-items: center; gap: 8px; margin: 0 4px; font-size: 0.85rem; color: var(--muted); }
.day-window input[type="time"] { width: auto; }
.chip-oneoff { font-size: 0.68rem; letter-spacing: 0.06em; border: 1px solid var(--accent); color: var(--accent); border-radius: 2px; padding: 1px 6px; vertical-align: 1px; }
.search-hint { margin: 4px 0 12px; }
.search-hint code { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 1px 5px; font-size: 0.85em; }

/* Console toast: quiet-submit outcomes land top-right, not in a
   dialog and never at the bottom where they go unseen. Green edge =
   it worked; red is reserved for errors. */
.console-toast { position: fixed; top: 62px; right: 18px; transform: translateY(-8px); background: var(--panel); border: 1px solid var(--line); color: var(--ink); padding: 10px 18px 10px 22px; border-radius: 3px; box-shadow: 0 6px 26px rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity 250ms ease, transform 250ms ease; max-width: min(420px, calc(100vw - 36px)); z-index: 50; overflow: hidden; }
/* The edge is the countdown: the green/red bar drains over the
   toast's lifetime, so the fade-out never ambushes a slow reader. */
.console-toast::before { content: ""; position: absolute; left: 0; bottom: 0; width: 4px; height: 100%; background: var(--ok); }
.console-toast.err::before { background: var(--onair); }
.console-toast.visible { opacity: 1; transform: translateY(0); }
.console-toast.visible::before { animation: toastdrain var(--toast-life, 6s) linear forwards; }
@keyframes toastdrain { to { height: 0; } }

textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 3px; padding: 9px 11px; resize: vertical;
}
.avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }

/* ── the panic console — radeeo.com's transmission-rack language,
      driven here by the REAL Airlock machine over SSE ─────────────── */

@font-face {
  font-family: "Archivo Black";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/archivo-black.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/plex-mono-500.woff2") format("woff2");
}

:root {
  --onair-soft: rgba(255, 68, 56, 0.12);
  --ok-soft: rgba(93, 187, 114, 0.10);
  --accent-soft: rgba(232, 163, 61, 0.12);
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

.panic-console { text-align: center; }
.panic-console h2, .panic-console > .muted { text-align: left; }

.panic-status {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 0; border: 1px solid var(--line); border-radius: 2px;
  margin: 18px 0 22px;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.panic-status.is-live    { color: var(--ok);     border-color: var(--line);  background: var(--ok-soft); }
.panic-status.is-panic   { color: var(--onair);  border-color: var(--onair); background: var(--onair-soft); }
.panic-status.is-recover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.panic-lamp {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: currentColor;
  animation: lamp 2.4s ease-in-out infinite;
}
.panic-status.is-panic .panic-lamp   { animation-duration: 0.6s; }
.panic-status.is-recover .panic-lamp { animation-duration: 1.2s; }

@keyframes lamp {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px currentColor; }
  50%      { opacity: 0.35; box-shadow: none; }
}

.panic-form { margin: 0; display: block; }
.panic-btn {
  width: 148px; height: 148px; border-radius: 50%;
  border: 1px solid var(--onair);
  box-shadow: inset 0 0 0 8px var(--panel), inset 0 0 0 9px var(--onair);
  background: var(--onair); color: #fff;
  font-family: var(--font-display); font-size: 1.05rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; padding: 0;
  transition: transform 80ms ease, filter 120ms ease, box-shadow 120ms ease;
}
.panic-btn:hover  { filter: brightness(1.08); box-shadow: inset 0 0 0 8px var(--panel), inset 0 0 0 9px var(--onair), 0 0 24px var(--onair-soft); }
.panic-btn:active { transform: scale(0.96); }

.panic-stats {
  display: flex; justify-content: center; gap: 36px;
  margin: 22px 0 4px; padding-top: 18px; border-top: 1px solid var(--line);
}
.stat b {
  display: block; font-family: var(--font-mono); font-weight: 500;
  font-size: 1.05rem; letter-spacing: 0.02em; color: var(--ink);
}
.stat span {
  color: var(--muted); font-size: 0.72rem; font-family: var(--font-mono);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.small { font-size: 0.8rem; }

/* ── rack meters + on-air lamp (radeeo.com's, fed by the real bus) ── */
.dash-head { display: flex; align-items: center; gap: 14px; }
.dash-head h1 { margin: 0; }

.onair {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--onair); border: 1px solid var(--onair);
  background: var(--onair-soft);
  padding: 6px 12px; border-radius: 2px;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.onair-lamp {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  animation: lamp 1.6s ease-in-out infinite;
}
.onair.off { color: var(--muted); border-color: var(--line); background: transparent; }
.onair.off .onair-lamp { animation: none; opacity: 0.5; box-shadow: none; }

.meters { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 4px; }
.meter-row { display: flex; align-items: center; gap: 12px; }
.meter-label {
  color: var(--muted); width: 1.5em; flex: none;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em;
}
.meter { display: flex; gap: 3px; flex: 1; }
.meter i {
  flex: 1; height: 14px; border-radius: 1px;
  background: var(--line);
  transition: background 70ms linear;
}
.meter i.on { background: var(--ok); }
.meter i.on:nth-child(n+10) { background: var(--accent); }
.meter i.on:nth-child(n+13) { background: var(--onair); }

.reply-form { display: flex; gap: 6px; margin-top: 4px; }
.reply-form input[name="message"] { flex: 1; padding: 5px 9px; font-size: 0.88rem; }

/* The System page: the component fabric's health board. */
.sys-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sys-table td, .sys-table th { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.sys-table th { color: var(--muted); font-weight: 500; }
.sys-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: baseline; }
.sys-ok { background: var(--ok); }
.sys-stale { background: var(--accent); }
.sys-gone { background: var(--onair); }
.join-line { background: var(--panel); border: 1px solid var(--line); padding: 10px 12px; border-radius: 3px; overflow-x: auto; font-size: 0.85rem; }
.inline-form { display: grid; gap: 8px; max-width: 420px; margin: 10px 0; }

/* The music library. */
.music-table audio { width: 220px; height: 32px; }
.music-table .art { width: 36px; height: 36px; object-fit: cover; border-radius: 3px; display: block; }
.search-form { display: flex; gap: 8px; margin: 14px 0; }
.search-form input[type="search"] { flex: 1; padding: 7px 10px; }
.upload-report { border-left: 3px solid var(--ok); padding-left: 10px; margin: 10px 0; }
.track-head { display: flex; gap: 16px; align-items: flex-start; margin: 14px 0; }
.track-art { width: 120px; height: 120px; object-fit: cover; border-radius: 4px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 12px 0; }
.field-grid .field-wide { grid-column: 1 / -1; }

/* The deck. */
.deck-now { font-size: 1.05rem; margin: 12px 0 6px; }
.deck-times { font-size: 0.9rem; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.deck-controls { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; align-items: center; }
.deck-rowctl form { display: inline; }
.sys-table td.deck-rowctl { white-space: nowrap; }
.btn-trash { color: var(--onair); border-color: var(--onair); }
.btn-trash:hover { background: var(--onair); color: #fff; }
/* Ten rows visible, the rest scroll; the header stays put. */
.pl-scroll { max-height: 480px; overflow-y: auto; border: 1px solid var(--line); border-radius: 3px; }
.pl-scroll table { margin: 0; }
.pl-scroll thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
/* The uploading overlay: the page is busy, say so. */
.upload-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 50; display: flex; align-items: center; justify-content: center; }
/* display:flex would override the hidden attribute's display:none —
   restate it, or the overlay greets every page load. */
.upload-overlay[hidden] { display: none; }
.upload-box { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 22px 26px; display: flex; align-items: center; gap: 16px; max-width: 420px; }
/* The upload ring: green fills with bytes actually sent. */
.ring { width: 48px; height: 48px; flex: none; border-radius: 50%; background: conic-gradient(var(--ok) 0%, var(--line) 0); display: flex; align-items: center; justify-content: center; }
.ring i { width: 36px; height: 36px; border-radius: 50%; background: var(--panel); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 0.68rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.review-panel { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; margin: 10px 0; }
.hist-unmatched td { background: rgba(255, 68, 56, 0.06); }
.hist-id { width: 90px; padding: 4px 6px; }

/* Connection-detail cards under the mixer: static, collapsible,
   outside the SSE repatch so an open card stays open. */
.stream-cards { display: grid; gap: 6px; margin-top: 8px; }
.stream-cards-head { font-size: 0.95rem; color: var(--muted); margin: 18px 0 4px; }
.stream-card { border: 1px solid var(--line); border-radius: 3px; background: var(--bg); }
.stream-card summary { cursor: pointer; padding: 8px 12px; color: var(--muted); font-size: 0.9rem; }
.stream-card summary:hover { color: var(--ink); }
.stream-card[open] summary { border-bottom: 1px solid var(--line); color: var(--ink); }
.stream-card-body { padding: 10px 12px 12px; }
/* Multi-selects are LISTS, not dropdowns: no chevron (the base rule
   above painted one over the scrollbar), breathing room per item,
   every row genuinely clickable. */
select[multiple] {
  background-image: none; padding: 6px; cursor: default; height: auto;
}
select[multiple] option { padding: 7px 10px; border-radius: 2px; }

.door-select { display: flex; align-items: end; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
/* The advert-break picker takes the full row, so titles read whole —
   and the submit wraps underneath it instead of squeezing beside. */
.door-select label:has(select[multiple]) { flex: 1 1 100%; }
.door-select select[multiple] { width: 100%; max-width: 640px; min-height: 200px; display: block; margin-top: 4px; }
.door-select label:has(select[multiple]) + button[type="submit"] { align-self: flex-start; }
.door-select label { flex: 0 0 auto; min-width: 0; }
.door-select select { padding: 5px 28px 5px 9px; font-size: 0.88rem; min-width: 130px; max-width: 100%; background-position: right 9px center; }
/* Long option text (the play-style sentences) truncates instead of
   pushing the form off the page. */
.door-select label:has(select[name="style"]) { flex: 1 1 260px; }
.door-select select[name="style"] { width: 100%; text-overflow: ellipsis; }
.door-select button { flex: 0 0 auto; }
.stream-table { font-size: 0.85rem; }
.stream-table th { width: 70px; font-family: var(--font-mono, ui-monospace, monospace); font-weight: 500; color: var(--ink); text-transform: lowercase; vertical-align: top; padding-top: 9px; }
.stream-table td { vertical-align: top; padding-top: 9px; }
.stream-table td:nth-child(2) { width: 90px; white-space: nowrap; font-size: 0.8rem; }
.stream-table tr:last-child th, .stream-table tr:last-child td { border-bottom: none; }
/* The Outputs card, grouped by gateway: one boxed section per gateway
   so you can see at a glance what each broadcasts and where. */
.gw-outputs { margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line, rgba(0,0,0,0.12)); border-radius: 8px; background: var(--panel-soft, rgba(0,0,0,0.02)); }
.gw-outputs-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; font-size: 0.95rem; }
.gw-outputs-h .gw-conn { margin-left: 0; }
.gw-outputs .stream-table { margin-bottom: 0; }
.mux-registry th { white-space: nowrap; }

/* Per-output pinning + source controls (Outputs card). Each sits on
   its own line under the output's links, wrapping cleanly. */
.mux-serveon, .mux-source { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 0.82rem; }
.mux-label { font-weight: 500; color: var(--ink); min-width: 58px; }
.mux-gw { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mux-gw input { margin: 0; }
.mux-source select { padding: 3px 24px 3px 8px; font-size: 0.82rem; max-width: 100%; }
.mux-hint { flex-basis: 100%; margin-top: 2px; }
.mux-note { margin-top: 4px; }

/* The dedicated input door's live activity meter: a level bar plus a
   plain-words state, re-patched each /system tick. */
.mux-input-activity { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 0.82rem; }
.mux-meter { display: inline-flex; align-items: center; gap: 8px; }
.mux-meter .mini-meter { width: 120px; }
.mux-live { color: var(--ok); font-weight: 600; }
.mux-idle { color: var(--muted); }

/* The admin dashboard's "Dedicated inputs" card: output name + its
   live input meter, one per row. */
.dash-input { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.dash-input-name { font-weight: 600; min-width: 120px; }

.card-note { margin: 0 0 8px; font-size: 0.82rem; }
.panic-btn.locked { opacity: 0.35; cursor: not-allowed; filter: none; }

/* The deck page microphone: hold-to-talk, latch, and the live badge
   nobody can miss — an open mic is the one state a presenter must
   never be unsure about. */
/* The mic card runs tight: the console hugs the title, no dead band
   above the badge. */
.mic-card { padding-top: 14px; }
.mic-card h2 { margin-bottom: 2px; }
.mic-panel { display: grid; gap: 0; }
/* The mic console is a centered column — badge, meter, buttons — and
   its geometry is FROZEN: the badge and the push-to-talk hold fixed
   widths so going LIVE changes colours, never layout. */
.mic-console { display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* The cog hangs off the button's right edge WITHOUT counting toward
   centering — the push-to-talk itself shares the meter's centre-line. */
.mic-buttons { position: relative; }
.mic-buttons .btn-switch { display: block; width: 260px; padding: 10px 0; font-size: 0.9rem; text-align: center; }
.mic-buttons .mic-cog { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); }
.mic-buttons .btn-switch.live { background: #ff4438; border-color: #ff4438; color: #fff; }
.mic-latch { color: var(--muted); font-size: 0.85rem; }
.mic-duck-label { color: var(--muted); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 8px; }
/* READY: quiet chip. LIVE: red and pulsing — unmistakably on air. */
.mic-badge { display: inline-block; min-width: 110px; text-align: center; font-weight: 700; letter-spacing: 0.14em; font-size: 0.85rem; padding: 6px 14px; border-radius: 2px; border: 1px solid var(--line); color: var(--muted); }
.mic-badge.live { background: #ff4438; border-color: #ff4438; color: #fff; animation: mic-pulse 1.2s ease-in-out infinite; }
.mic-cog { font-size: 1.3rem; line-height: 1; padding: 7px 12px; }
/* The mic VU: an old-school needle meter beside the cog — dark face,
   amber scale, red top end. The needle rests hard left until the
   analyser drives it. */
#mic-vu { display: block; width: 220px; height: 121px; }
#mic-vu .vu-face { fill: var(--bg); stroke: var(--line); }
#mic-vu .vu-arc { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0.55; }
#mic-vu .vu-arc.red { stroke: var(--onair); opacity: 0.9; }
#mic-vu .vu-ticks line { stroke: var(--muted); stroke-width: 1.4; }
#mic-vu .vu-text { fill: var(--muted); font: 7px ui-monospace, Menlo, monospace; }
#mic-vu .vu-label { font-weight: 700; letter-spacing: 0.08em; }
#mic-vu .vu-needle { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
#mic-vu .vu-hub { fill: var(--accent); }
.mic-cog.open { color: var(--accent); border-color: var(--accent); }
/* No dead band under the console when the settings are folded: the
   error line only exists while it has something to say. */
#mic-err { margin: 6px 0 0; text-align: center; }
#mic-err:empty { display: none; }
.mic-settings { display: grid; gap: 16px; max-width: 620px; margin: 14px auto 0; padding-top: 6px; }
/* The hidden attribute must WIN over the display:grid above — without
   this the cog toggles an attribute nothing looks at. */
.mic-settings[hidden] { display: none; }
/* One setting per row: a switch or slider with its words beside it. */
label.mic-setting { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 0.9rem; cursor: pointer; }
.mic-setting-txt { display: block; }
.mic-setting-txt .muted { display: block; margin-top: 2px; }
.mic-setting-slider { display: grid; gap: 4px; }
.mic-slider { display: flex; align-items: center; gap: 12px; }
.mic-slider label { color: var(--ink); font-size: 0.9rem; min-width: 42px; }
.mic-slider input[type=range] { flex: 1; max-width: 300px; }
.mic-slider-val { font-family: ui-monospace, Menlo, monospace; color: var(--muted); font-size: 0.85rem; min-width: 56px; }
/* Toggle switches: the checkbox stays in the DOM (the mic code reads
   it by id); the pill is its face. */
.toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; margin-top: 1px; }
.toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.toggle i {
  display: block; height: 100%; border-radius: 12px;
  background: var(--line); transition: background 0.15s ease; pointer-events: none;
}
.toggle i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--muted); transition: left 0.15s ease, background 0.15s ease;
}
.toggle input:checked + i { background: var(--ok); }
.toggle input:checked + i::after { left: 21px; background: #0b0e14; }
.toggle input:focus-visible + i { box-shadow: 0 0 0 2px var(--accent); }
/* Range sliders, out of the 90s: a slim track, a round accent thumb. */
input[type=range] {
  -webkit-appearance: none; appearance: none;
  height: 6px; padding: 0; border: none; border-radius: 3px;
  background: var(--line); outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%; border: none;
  background: var(--accent); cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: none;
  background: var(--accent); cursor: pointer;
}
input[type=range]:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
@keyframes mic-pulse { 50% { opacity: 0.55; } }

/* The deck's programme view: NOW / NEXT tags read at a glance. */
.deck-label { display: inline-block; min-width: 44px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--muted); }
.deck-next { margin-top: 0; }
/* Expanded, the queue is a ~ten-row scroll viewport rather than a
   wall of rows, and the fold toggle rides sticky at the bottom so
   collapsing never means scrolling to find the button. */
.deck-queue.q-expanded { display: block; max-height: 400px; overflow-y: auto; }
.deck-queue.q-expanded .deck-qmore td { position: sticky; bottom: 0; background: var(--panel); border-top: 1px solid var(--line); }
.deck-marker td { border-top: 1px dashed var(--line); font-size: 0.82rem; padding-top: 6px; padding-bottom: 6px; }
.deck-marker-kind { display: inline-block; font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 2px; padding: 1px 6px; margin-right: 6px; }

/* The masthead is the way home: same look as plain text, hand cursor. */
.bar-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.bar-brand:hover strong { color: var(--accent); }

/* Wide pages: the library table earns the desktop's width. */
main:has(.wide) { max-width: 1500px; }
.row-pl select { max-width: 140px; font-size: 0.8rem; padding: 2px 22px 2px 4px; background-position: right 6px center; }

/* The deck's clock face: progress toward the end of the track, the
   countdown, and whether any of it is reaching air. */
.deck-progress { width: 100%; max-width: 560px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 4px 0 10px; }
.deck-progress div { height: 100%; background: var(--accent); transition: width 250ms linear; }
.deck-onair { display: inline-block; font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.7rem; letter-spacing: 0.12em; padding: 2px 8px; border-radius: 2px; margin-right: 6px; border: 1px solid var(--muted); color: var(--muted); }
.deck-onair.on { border-color: #ff4438; color: #ff4438; }

/* The console shell: menu on the left, pages on the right. On narrow
   screens the menu folds into a wrapping chip row across the top. */
.shell { display: flex; align-items: flex-start; min-height: calc(100vh - 50px); }
.sidenav { flex: 0 0 200px; position: sticky; top: 0; max-height: 100vh; overflow-y: auto;
  padding: 16px 10px 24px 14px; border-right: 1px solid var(--line); }
.sidenav h4 { margin: 18px 10px 5px; font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; }
/* Collapsible nav sections: the summary wears the old h4 look, the
   accordion JS keeps one open at a time. */
.sidenav details.nav-sec > summary { margin: 10px 0 3px; padding: 7px 10px; font-size: 0.92rem; font-weight: 650; color: var(--ink); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; user-select: none; border-radius: 4px; }
.sidenav details.nav-sec > summary:hover { background: rgba(255, 255, 255, 0.05); }
.sidenav details.nav-sec > summary::-webkit-details-marker { display: none; }
.sidenav details.nav-sec > summary::before { content: "▸"; font-size: 0.7rem; color: var(--muted); transition: transform 0.2s ease; }
.sidenav details.nav-sec[open] > summary::before { transform: rotate(90deg); }
/* Section links indent under their heading, clearly its children. */
.sidenav details.nav-sec > a { margin-left: 14px; font-size: 0.88rem; }
.sidenav a { display: block; padding: 6px 10px; border-radius: 4px; color: var(--ink);
  text-decoration: none; font-size: 0.92rem; }
.sidenav a:hover { background: rgba(255, 255, 255, 0.05); }
.sidenav a.active { background: var(--panel); color: var(--accent); border: 1px solid var(--line); padding: 5px 9px; }
.shell-main { flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .shell { display: block; }
  .sidenav { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 2px;
    border-right: none; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .sidenav h4 { display: none; }
  .sidenav details.nav-sec { display: contents; }
  .sidenav details.nav-sec > summary { display: none; }
  .sidenav a { padding: 5px 9px; font-size: 0.85rem; }
}
.deck-signal { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.deck-signal .mini-meter { max-width: 220px; }
.deck-meter-label { font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.isrc-settle { margin: 18px 0 30px; }
.isrc-settle p { margin-bottom: 10px; }
.isrc-settle form { margin-right: 6px; }
.mic-device-label { color: var(--muted); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }
.mic-device-label select { max-width: 220px; font-size: 0.82rem; padding: 3px 26px 3px 6px; background-position: right 8px center; }

/* Section rhythm on stacked pages (playlists, review, track): every
   h3 section breathes; forms and tables keep clear of each other. */
.card h3 { margin: 30px 0 10px; }
.card h3:first-child { margin-top: 0; }
.card form.row { margin: 12px 0 18px; gap: 12px; }
.card table + form, .card table + h3 { margin-top: 22px; }
.card .sys-table { margin-bottom: 16px; }

/* The press bezel: any quiet-submitted button acknowledges the press
   instantly — an accent ring blooms and fades. */
button.pressed { animation: press-bezel 0.9s ease; }
@keyframes press-bezel {
  0% { box-shadow: 0 0 0 0 var(--accent); }
  35% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 65%, transparent); }
  100% { box-shadow: 0 0 0 6px transparent; }
}
.viewas-banner span { color: var(--onair); font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.72rem; letter-spacing: 0.1em; margin-right: 6px; }
.viewas-pick select { font-size: 0.85rem; line-height: 1.2; padding: 6px 26px 6px 10px; background-position: right 9px center; }

/* Monitor control rows (deck + studio monitors): one tidy line that
   wraps gracefully, and a green live frame when audio is flowing. */
.listen { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid transparent; border-radius: 6px; padding: 10px 12px; margin: 4px 0;
  transition: border-color 0.4s ease, box-shadow 0.4s ease; }
.listen.live { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok), 0 0 14px rgba(93, 187, 114, 0.25); }
.listen .mic-latch { display: inline-flex; align-items: center; gap: 6px; }
/* Forms inside a listen or transport row join the flex line as rows
   themselves — the base form grid (and its top margin) would stack
   and sink them below their bare-button neighbours. */
.listen form.inline, .deck-controls form.inline { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.listen .deck-onair { margin-right: 0; }

/* The family mark: every Radeeo surface says whose rails it runs on. */
.radeeo-foot { max-width: 860px; margin: 0 auto; padding: 8px 20px 20px; color: var(--muted); font-size: 0.75rem; text-align: center; }
.radeeo-foot a { color: var(--muted); text-decoration: underline; }
.radeeo-foot a:hover { color: var(--accent); }

/* The messaging grid: two even columns, labels above inputs, the
   button on its own row — a form, not a jumble. */
.msg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-items: end; max-width: 720px; }
.msg-grid label { display: grid; gap: 5px; font-size: 0.85rem; color: var(--muted); }
.msg-grid input { width: 100%; }
.msg-grid .msg-actions { grid-column: 1 / -1; }
@media (max-width: 680px) { .msg-grid { grid-template-columns: 1fr; } }

/* The platform gateway card: one row per gateway, the connection
   string folded underneath (admins only — it carries credentials). */
.gw-plat-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.gw-plat-row:last-child { border-bottom: 0; }
.gw-plat-conn { flex-basis: 100%; display: flex; align-items: center; gap: 10px; padding: 2px 0 4px 17px; overflow-x: auto; }

/* The pressed-button spinner: text yields to a turning ring until
   the server answers. Applied by busy.js on every form submit. */
button.busy { color: transparent !important; pointer-events: none; position: relative; opacity: 0.85; }
button.busy::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 14px; margin: -8px 0 0 -8px;
  border: 2px solid var(--muted); border-top-color: transparent;
  border-radius: 50%; animation: busyspin 0.8s linear infinite;
}
@keyframes busyspin { to { transform: rotate(360deg); } }

/* The backup log modal: a terminal-ish window onto the run. */
.backup-log { max-height: 50vh; min-height: 200px; overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; font: 0.78rem ui-monospace, Menlo, monospace; white-space: pre-wrap; }
dialog#backup-log-dlg { width: min(720px, 94vw); }
.row-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-line form.inline { margin: 0; }

/* The backup progress bar: shipped bytes over the whole ship. */
.bk-bar { display: inline-block; width: 140px; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.bk-bar i { display: block; height: 100%; background: var(--ok); transition: width 400ms ease; }

/* Backup settings: labels above, control BOTTOMS on one line — the
   Save button included. Centre-alignment floated it mid-height
   against the labelled controls. */
.bk-settings { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.bk-settings label { display: grid; gap: 5px; font-size: 0.85rem; color: var(--muted); }
.bk-settings select[name="when"] { max-width: 430px; }
.bk-settings input[name="rate"] { width: 8em; }

/* The quiet danger button: destruction available, never shouting. */
.btn-danger-quiet { background: transparent; color: var(--onair); border: 1px solid var(--onair); font-weight: 500; padding: 6px 14px; border-radius: 3px; cursor: pointer; margin-top: 10px; }
.btn-danger-quiet:hover { background: var(--onair); color: #fff; }

/* The Mixcloud description: a full-width row under key + name, tall
   as the operator drags it (height only — the base textarea rule
   already pins resize: vertical). */

/* The deck's count clock: COUNT IN amber, COUNT OUT on-air red —
   the one number a presenter actually lives by. */
.deck-count { display: flex; align-items: baseline; gap: 14px; margin: 10px 0 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); flex-wrap: wrap; }
.deck-count .count-label { font-family: ui-monospace, Menlo, monospace; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--muted); }
.deck-count .count-clock { font-family: ui-monospace, Menlo, monospace; font-size: 2.1rem; line-height: 1; font-weight: 700; }
.deck-count.in .count-clock { color: var(--accent); }
.deck-count.out .count-clock { color: var(--onair); }
.deck-count .count-what { color: var(--muted); font-size: 0.85rem; }

/* The transmitter meter on the deck: the delayed output — proof of
   being live, not just of the deck making sound. */
.tx-meters { margin: 8px 0 12px; }
.tx-meters .tx-label { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 4px; }

/* The windowed rail: two hours tall, not a whole day. */
.day-cal.windowed .cal-hours, .day-cal.windowed .cal-track { height: 280px; }

/* The transmitter strip: the station's truth as the deck page's first
   glance — thin, meters and lamp, nothing else. The badge sits small
   beside the title (context-sized: SSE patches replace the badge
   element wholesale, so its size must come from the strip, not from
   a class the patch would wipe). */
.card.tx-strip { padding-top: 14px; padding-bottom: 14px; }
.card.tx-strip .tx-meters { margin: 0; }
.tx-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.tx-head .tx-label { margin: 0; }
.tx-strip .onair { font-size: 0.62rem; padding: 2px 9px; letter-spacing: 0.12em; gap: 6px; }

/* Windowed rail truth: the track is minutes at ~3 px each (set by
   --railpx), and slots keep their TRUE height — no min-height
   inflation, so the now-line can never cross a show that has ended. */
.day-cal.windowed .cal-hours, .day-cal.windowed .cal-track { height: var(--railpx, 280px); }
.day-cal.windowed .cal-span { min-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
/* The strip wears the count clock beneath the meters. */
.tx-strip .deck-count { margin: 10px 0 0; }

/* Live is unmistakable: the air row wears the on-air red as a band,
   and the chip says WHICH voice is on — deck or stream. */
.deck-airrow.live { border: 1px solid var(--onair); background: var(--onair-soft, rgba(255, 68, 56, 0.12)); border-radius: 3px; padding: 10px 14px; }
.deck-airrow.live .deck-onair.on { font-size: 0.85rem; border-width: 2px; animation: deck-live-breathe 2.2s ease-in-out infinite; }
@keyframes deck-live-breathe { 50% { box-shadow: 0 0 12px rgba(255, 68, 56, 0.45); } }
@media (prefers-reduced-motion: reduce) { .deck-airrow.live .deck-onair.on { animation: none; } }

/* Content management chips: the history queue at a glance. */
.hist-flag { color: var(--accent); font-size: 0.85rem; }
.hist-ok { color: var(--ok); font-size: 0.85rem; }

/* The week picker is ONE line: arrows, the date, the label — the
   playout has no .row-form, so this strip styles itself. */
.week-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 14px; }
.week-pick label { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; margin: 0; }
.week-pick input[type="date"] { width: auto; padding: 6px 9px; }
.week-pick a.btn-quiet { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.week-pick a.btn-quiet:hover { color: var(--accent); border-color: var(--accent); }

/* The count-out speaks plainly, and its final minute pulses. */
.deck-count .count-warn { display: block; width: 100%; color: var(--accent); font-size: 0.85rem; }
.deck-count.out.urgent .count-clock { animation: count-pulse 1s ease-in-out infinite; }
.deck-count.out.urgent .count-warn { color: var(--onair); }
@keyframes count-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .deck-count.out.urgent .count-clock { animation: none; } }

/* The histories page's stat tiles: three numbers that ARE the page.
   The digits share one column (right-aligned, centred against their
   label block) so 4, 1 and 0 sit level across all three tiles. */
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 4px; }
.stat { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 3px; padding: 12px 18px; background: var(--bg); text-decoration: none; color: var(--ink); flex: 1 1 220px; max-width: 320px; }
.stat b { font-family: ui-monospace, Menlo, monospace; font-size: 1.9rem; line-height: 1; min-width: 2ch; text-align: right; flex-shrink: 0; }
/* The panic console's delay/cover figures ran oversized — trim ~20%. */
.panic-stats .stat b { font-size: 1.5rem; }

/* The Airlock protection switches: a bordered group of checkbox rows,
   each a box beside its explanation. */
.airlock-switches { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px 6px; margin: 0 0 16px; }
.airlock-switches legend { padding: 0 6px; font-weight: 600; font-size: 0.9rem; }
.switch-row { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-size: 0.9rem; }
.switch-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.stat span { color: var(--muted); font-size: 0.82rem; line-height: 1.35; text-transform: none; letter-spacing: normal; font-family: inherit; }
.stat span strong { color: var(--ink); font-weight: 600; }
.stat.warn b { color: var(--accent); }
.stat.ok b { color: var(--ok); }
a.stat:hover { border-color: var(--accent); }

/* The SSL banner: drops from the top the moment the secure console
   exists and the viewer is still on the plain door. [hidden] always
   wins — an element told to hide, hides. */
.ssl-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 11px 18px; background: var(--panel); border-bottom: 2px solid var(--ok); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); transform: translateY(-100%); transition: transform 400ms ease; font-size: 0.92rem; }
.ssl-banner[hidden] { display: none; }
.ssl-banner.down { transform: translateY(0); }
.ssl-banner a { color: var(--ok); font-weight: 600; }
.ssl-banner .btn-quiet { padding: 3px 10px; }
@media (prefers-reduced-motion: reduce) { .ssl-banner { transition: none; } }

/* A slot the broadcast hours have overruled: booked on the grid but
   it will not air — the page says so rather than letting it sit
   looking scheduled. */
.chip-warn { color: var(--accent); font-size: 0.75rem; border: 1px solid var(--accent); border-radius: 3px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }

/* Hold-to-talk on a touchscreen: a long-press must never summon the
   text loupe, the copy menu, or a scroll — the button is a BUTTON.
   The panic button gets the same manners. */
#mic-ptt { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.panic-btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }

/* The mic button's honest third state: pressed but the pipeline is
   still connecting — amber pulse; RED means the server confirmed
   audio is arriving. Speak on red. */
#mic-ptt.opening { background: color-mix(in srgb, var(--accent) 30%, var(--panel)); border-color: var(--accent); animation: mic-opening 0.8s ease-in-out infinite alternate; }
@keyframes mic-opening { from { opacity: 0.7; } to { opacity: 1; } }

.fold-summary { cursor: pointer; font-size: 1.15rem; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: normal; list-style: none; user-select: none; }
/* Breathing room under ANY advanced fold's heading so the revealed
   content never touches the summary above it. */
.advanced[open] > summary { margin-bottom: 10px; }
.advanced[open] > summary + * { margin-top: 0; }
.fold-summary::-webkit-details-marker { display: none; }
.fold-summary::before { content: "▸"; display: inline-block; margin-right: 8px; color: var(--muted); transition: transform 0.15s ease; }
details[open] > .fold-summary::before { transform: rotate(90deg); }

/* A gateway switched off: the row dims but stays visible (the VM is
   alive; only the connection is off). */
.gw-off { opacity: 0.5; }
.gw-onoff { margin-right: 10px; }

/* The platform gateway card: a FIXED two-row block per gateway so
   nothing reflows as connection state changes. Row 1: toggle, name,
   region, status. Row 2: URL, version, beat. */
.gw-plat-item { padding: 10px 2px; border-bottom: 1px solid var(--line); }
.gw-plat-item:last-child { border-bottom: 0; }
.gw-plat-item.gw-off { opacity: 0.55; }
.gw-plat-r1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gw-plat-r2 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 4px; padding-left: 2px; }
.gw-name { font-weight: 600; }
.gw-conn { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; margin-left: auto; }
.gw-conn-on { color: var(--ok); }
.gw-conn-no { color: var(--accent); }
.gw-conn-off { color: var(--muted); }
.gw-url { word-break: break-all; }
