/* Vistas Mobility — dispatch console.
   Theme and layout pass (backlog item 1b) over the working wiring. Same DOM ids,
   same behaviour; presentation only, plus the small genuinely-new pieces (header
   clock, radar, severity icons, waveforms, alert banner).

   Two hard rules live in this file:
   1) CONTRAST BEATS GLOW. This runs in daylight on a bus. Every operational
      value must stay legible without relying on colour, and colour must never be
      the only signal. Glow is budgeted (see --glow + visual_intensity below).
   2) prefers-reduced-motion ALWAYS wins over the tenant's visual_intensity
      setting: an OS accessibility preference must never be overridden by a
      tenant slider. See the media query at the end. */

/* The display face is a bundled OFL font served from OUR OWN origin. The CSP on
   the console widened from font-src 'none' to font-src 'self' to allow exactly
   this — same-origin only, no third party. */
@font-face{font-family:'Orbitron';font-style:normal;font-weight:400 800;font-display:swap;src:url('/communications/fonts/orbitron-v35.woff2') format('woff2')}

*{box-sizing:border-box}
:root{
 --bg:#05080d;--panel:#0c141d;--panel-2:#0a1017;--panel-3:#0e1a24;
 --line:#1d3446;--line-2:#2a4a5f;
 --text:#e6edf5;--muted:#8ea0b4;
 --accent:#38e0c8;--accent-2:#5fd3c4;--ok:#3fe0b0;--warn:#e6b455;--blocked:#ff6b5e;--live:#6db2ff;--info:#6db2ff;
 --role-dispatch:#6db2ff;--role-parent:#38e0c8;--role-driver:#e6b455;--role-admin:#b98cff;--role-unknown:#8ea0b4;
 --glow:none;--glow-strong:none;
 --display:'Orbitron',ui-monospace,SFMono-Regular,Menlo,monospace;
}
/* visual_intensity classes are set on <body> from the tenant setting. */
body.intensity-low{--glow:none;--glow-strong:none;--panel:#0b1119}
body.intensity-medium{--glow:0 0 16px rgba(56,224,200,.10);--glow-strong:0 0 22px rgba(56,224,200,.22)}
body.intensity-high{--glow:0 0 22px rgba(56,224,200,.20);--glow-strong:0 0 34px rgba(56,224,200,.40)}

html,body{margin:0}
body{background:radial-gradient(120% 90% at 50% -10%,#0a1622 0%,var(--bg) 55%) fixed;color:var(--text);font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
main{width:100%;max-width:none;margin:0;padding:18px 24px 40px}
h1{font-size:1.5rem;margin:.15em 0;letter-spacing:.06em;font-family:var(--display);font-weight:700}
h2{font-size:.95rem;margin:0}
[hidden]{display:none!important}

/* ---- Header ------------------------------------------------------------- */
.ops-header{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;padding:10px 4px 16px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:14px;min-width:260px}
.brand-mark{display:inline-flex;color:var(--accent);flex:0 0 auto}
.brand-logo{height:44px;max-width:190px;object-fit:contain;flex:0 0 auto}
.brand-text{min-width:0}
.eyebrow{color:var(--accent);text-transform:uppercase;font-size:.68rem;letter-spacing:.22em;margin:0;font-family:var(--display);font-weight:600}
.header-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.identity{margin:0;color:var(--muted);font-size:.85rem}
.chip{display:inline-flex;align-items:center;gap:7px;padding:6px 14px;border-radius:999px;font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;border:1px solid var(--line);background:var(--panel-2);font-family:var(--display);font-weight:600}
.chip::before{content:"";width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor}
.chip-ok{color:var(--ok);border-color:rgba(63,224,176,.45)}
.chip-warn{color:var(--warn);border-color:rgba(230,180,85,.45)}
.chip-unknown{color:var(--muted)}
.header-clock{display:flex;flex-direction:column;align-items:flex-end;line-height:1.15;padding-left:14px;border-left:1px solid var(--line)}
.clock-time{font-family:var(--display);font-weight:700;font-size:1.28rem;letter-spacing:.05em;font-variant-numeric:tabular-nums;color:var(--text)}
.clock-zone{font-family:var(--display);font-size:.64rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}

/* The top static scope paragraph moved into the "Communication information"
   disclosure (see #comms-scope-note); the .lede rule is removed with it. */
#status{min-height:1.4em;margin:16px 0 0;padding:10px 14px;border-left:3px solid var(--accent);background:var(--panel-2);border-radius:0 8px 8px 0;font-size:.9rem}
#status:empty{display:none}

/* ---- Panels ------------------------------------------------------------- */
.panel{background:linear-gradient(180deg,var(--panel),var(--panel-2));border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin:16px 0;box-shadow:var(--glow);position:relative}
.panel::before{content:"";position:absolute;inset:0 0 auto 0;height:2px;border-radius:12px 12px 0 0;background:linear-gradient(90deg,transparent,var(--line-2),transparent)}
.panel-title{text-transform:uppercase;letter-spacing:.16em;color:var(--accent-2);font-weight:600;margin-bottom:12px;font-family:var(--display);font-size:.8rem;display:flex;align-items:baseline;gap:10px}
.panel-sub{margin-left:auto;color:var(--muted);font-size:.64rem;letter-spacing:.14em}
form.panel label,.control-panel label{display:block;margin:0 0 16px}
input,select{display:block;width:100%;padding:11px 12px;margin-top:6px;border:1px solid var(--line);border-radius:8px;background:var(--panel-3);color:inherit;font:inherit}
input:focus,select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px rgba(56,224,200,.2)}
button{background:linear-gradient(180deg,var(--accent),#14b8a6);border:0;border-radius:8px;padding:12px 18px;margin:6px 8px 6px 0;font:inherit;font-weight:600;color:#04110f;cursor:pointer}
button.ghost{background:transparent;color:var(--muted);border:1px solid var(--line);font-weight:500}
button:disabled{opacity:.45;cursor:not-allowed}

/* ---- Status strip ------------------------------------------------------- */
.status-strip{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;padding:8px;margin:0 0 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel-2)}
.status-strip .stat{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto;overflow:hidden;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.status-strip .stat-icon{display:inline-flex;color:var(--accent-2);flex:0 0 auto}
.status-strip .stat-label{color:var(--muted);font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;font-family:var(--display)}
.status-strip .stat-value{font-size:.95rem;font-weight:600;color:var(--text);margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;font-family:var(--display);white-space:nowrap}
.status-strip .stat-note{display:none}
.status-strip .stat.is-ok .stat-icon,.status-strip .stat.is-ok .stat-value{color:var(--ok)}
.status-strip .stat.is-warn .stat-icon,.status-strip .stat.is-warn .stat-value{color:var(--warn)}
.status-strip .stat.is-blocked .stat-icon,.status-strip .stat.is-blocked .stat-value{color:var(--blocked)}
.status-strip .stat.is-live .stat-icon,.status-strip .stat.is-live .stat-value{color:var(--live)}

/* ---- Lists -------------------------------------------------------------- */
.list{list-style:none;margin:0;padding:0}
.list .row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line)}
.list .row:last-child{border-bottom:0}
.row-name{font-weight:550}
.tag{font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:3px 10px;font-family:var(--display)}
.empty{color:var(--muted);font-size:.86rem;padding:8px 0}
.hint{color:var(--muted);font-size:.78rem;margin:12px 0 0}
.transcription-banner{background:#3a2f0a;border:1px solid var(--warn);border-radius:8px;color:#ffe9a8;font-size:.84rem;line-height:1.45;margin:0 0 12px;padding:8px 12px}
/* Compact on-screen recording/transcription status moved into the
   "Communication information" disclosure; the old always-visible badge rule is
   removed with the element. */
.message-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
#message-list .clip-dismiss{margin:0 0 0 6px;padding:7px 12px;font-size:.72rem;letter-spacing:.04em;font-family:var(--display)}
#message-list .clip-transcript.is-pending{color:var(--muted);font-style:italic;border-left-color:var(--line-2)}
#message-list .clip-transcript.is-unavailable,#message-list .clip-transcript.is-expired,#message-list .clip-transcript.is-error{color:var(--warn);border-left-color:#e6b45566}
.transcript-panel .feed-label{white-space:normal}
/* One accessible <details> holds the repeated informational guardrail
   paragraphs. Its <summary> is the real on-screen switch and is keyboard
   reachable. It never hides an ACTIVE error or live alert — those stay in their
   panel and in the header banner. */
.panel-scope{color:var(--muted);font-size:.78rem;margin:0 0 10px}
.comms-info{margin:0 0 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2)}
.comms-info>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:9px;padding:10px 14px;font-family:var(--display);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-2)}
.comms-info>summary::-webkit-details-marker{display:none}
.comms-info>summary::before{content:"\25B8";font-size:.8rem;color:var(--muted);transition:transform .15s ease}
.comms-info[open]>summary::before{transform:rotate(90deg)}
.comms-info>summary:focus-visible{outline:2px solid var(--accent);outline-offset:-3px;border-radius:10px}
.comms-info-body{padding:2px 14px 12px;border-top:1px solid var(--line)}
.comms-info-body p{color:var(--muted);font-size:.82rem;line-height:1.55;margin:8px 0 0}
/* Inside the disclosure the moved notices read as information, not as warnings:
   the yellow alarm styling is reserved for active signals. */
.comms-info-body .transcription-banner{background:transparent;border:0;border-left:3px solid var(--line-2);border-radius:0;color:var(--muted);padding:6px 0 6px 10px;margin:8px 0 0;font-size:.82rem}

/* ---- Transmit / PTT ----------------------------------------------------- */
.control-panel .field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;align-items:end}
.control-panel .field-row label{margin:0 0 16px}
.policy{color:var(--muted);font-size:.88rem;margin:4px 0 14px;padding-left:2px}
.queue{color:var(--muted);font-size:.84rem;margin:6px 0 14px}
#ptt:not(.ptt-button){display:block;width:100%;min-height:96px;font-weight:700;font-size:1.05rem;touch-action:none;user-select:none;margin-top:6px}
#ptt:not(.ptt-button).recording{background:var(--warn);color:#241a04}
.control-panel button{min-width:0}

/* Signature push-to-talk control; the Android client mirrors this. The PTT
   button is one of the few FOCAL glow elements on purpose. */
.ptt-control{display:flex;flex-direction:column;align-items:center;gap:14px;margin:16px 0 6px;width:100%}
/* The PTT is the centrepiece: one large circle centred on the WHOLE control
   panel, not parked in a side grid cell. It is ~240px on a wide desktop and
   bounded on smaller widths by vmin, so it never overflows its panel or
   swallows a short viewport. */
.ptt-button{width:clamp(150px,52vmin,240px);height:clamp(150px,52vmin,240px);min-width:0;min-height:0;border-radius:50%;margin:0;padding:0;display:grid;place-items:center;border:2px solid rgba(56,224,200,.35);touch-action:none;user-select:none;-webkit-user-select:none;cursor:pointer;color:#fff;background:radial-gradient(circle at 50% 42%,#0f766e,#0b3b39 70%,#062523);box-shadow:var(--glow-strong),0 20px 40px -14px rgba(0,0,0,.7);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.ptt-button:hover:not(:disabled){box-shadow:var(--glow-strong),0 24px 46px -14px rgba(0,0,0,.75)}
.ptt-button:active:not(:disabled),.ptt-button.recording{transform:scale(.96);background:radial-gradient(circle at 50% 42%,#dc2626,#7f1d1d 70%,#3f0d0d);border-color:rgba(255,107,94,.6)}
.ptt-button.sending{background:radial-gradient(circle at 50% 42%,#d97706,#7c4a06 70%,#3a2303)}
.ptt-button:disabled{background:linear-gradient(180deg,#2a3441,#1b2530);border-color:var(--line);box-shadow:none;cursor:not-allowed;color:rgba(255,255,255,.45)}
.ptt-icon{display:grid;place-items:center;pointer-events:none}
.ptt-mic{width:clamp(56px,20vmin,88px);height:auto;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ptt-mic path:first-child{fill:currentColor;stroke:none}
.ptt-state{margin:0;text-align:center;font-weight:600;letter-spacing:.14em;text-transform:uppercase;font-size:.74rem;color:var(--muted);font-family:var(--display)}
.ptt-state.is-recording{color:var(--blocked)}
.ptt-state.is-blocked{color:var(--warn)}

/* ---- Workspace ---------------------------------------------------------- */
/* Balanced three-column workspace. The columns are equal-height grid items
   (align-items:stretch) and the LAST panel in each column absorbs the leftover
   height, so a short column fills its own surface instead of leaving a blank
   void under the cards — and no single column runs off the bottom of the screen
   as a long tower. Long lists still scroll INSIDE their own panel
   (.list-scroll), so an unbounded history can never stretch a column. */
.ops-workspace{display:grid;grid-template-columns:minmax(230px,1fr) minmax(360px,1.45fr) minmax(300px,1.1fr);gap:16px;align-items:stretch;margin-top:14px}
.ops-col{display:flex;flex-direction:column;gap:16px;min-width:0;min-height:0}
.ops-col .panel{margin:0}
.ops-col>.panel:last-child{flex:1 1 auto;min-height:0}
.list-scroll{max-height:300px;overflow-y:auto;overscroll-behavior:contain}
.activity-panel .list-scroll{max-height:400px}
/* ---- Fill-height boards -------------------------------------------------- */
/* The LAST panel in a column absorbs that column's leftover height (the rule
   above). That left a TALL board holding a SHORT list above a large blank void
   under its own footnote — a tall Requests card with a ~175-220px list. Where
   the columns share one stretched row height, that board's list now GROWS into
   the height the card just absorbed, scrolling INSIDE itself, and the card's
   trailing help copy is pinned to its foot.

   flex-basis:0 is what keeps this safe: the list's CONTENT no longer feeds the
   column's intrinsic height, so an unbounded queue is absorbed by the card and
   the document never stretches — the list scrolls instead and the page gets
   SHORTER, not longer. The min-height floor keeps the list visible where that
   column has no spare height to give it (it must never collapse to zero).

   Below 1181px the grid drops to two template columns and the right column
   wraps onto its own row; at <=760px everything stacks. There is no shared
   leftover height to fill there, so every board keeps its own bounded
   max-height and the phone/tablet layout is deliberately UNTOUCHED. */
@media(min-width:1181px){
 .ops-col>.panel:last-child:has(>.list-scroll){display:flex;flex-direction:column}
 .ops-col>.panel:last-child>.list-scroll{flex:1 1 0;min-height:10rem;max-height:none}
 .ops-col>.panel:last-child>.hint{margin-top:auto}
}
.list-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}

#presence-list .row{display:flex;align-items:center;gap:10px}
.dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto;background:var(--role-unknown);box-shadow:0 0 6px currentColor}
.dot-dispatch{background:var(--role-dispatch);color:var(--role-dispatch)}
.dot-parent{background:var(--role-parent);color:var(--role-parent)}
.dot-driver{background:var(--role-driver);color:var(--role-driver)}
.dot-administrator{background:var(--role-admin);color:var(--role-admin)}
.pill{margin-left:auto;flex:0 0 auto;padding:3px 10px;border-radius:999px;font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;border:1px solid var(--line);background:var(--panel-2);color:var(--muted);font-family:var(--display)}
.pill-dispatch{color:var(--role-dispatch);border-color:#6db2ff66}
.pill-parent{color:var(--role-parent);border-color:#38e0c866}
.pill-driver{color:var(--role-driver);border-color:#e6b45566}
.pill-administrator{color:var(--role-admin);border-color:#b98cff66}
/* Driver availability (backlog item 6). A status word, never colour alone: the
   label itself carries meaning, and it is set by the driver, not inferred. */
.availability{flex:0 0 auto;margin-left:8px;padding:2px 8px;border-radius:999px;font-size:.62rem;letter-spacing:.06em;text-transform:uppercase;border:1px solid var(--line);background:var(--panel-2);color:var(--muted);font-family:var(--display)}
.availability-available{color:#38d39f;border-color:#38d39f66}
.availability-busy{color:#e0a23a;border-color:#e0a23a66}
.availability-standby{color:#6db2ff;border-color:#6db2ff66}
.availability-offline{color:var(--muted)}
.you{color:var(--accent);font-weight:600}

/* ---- Activity feed (severity iconography) ------------------------------- */
.activity-panel .feed{margin-top:4px}
.feed .row{justify-content:flex-start;gap:8px}
.feed-icon{flex:0 0 auto;display:inline-flex;width:18px;justify-content:center}
.feed-icon svg{width:15px;height:15px}
.feed-time{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.8rem;min-width:70px;font-family:var(--display)}
.feed-label{font-weight:500;line-height:1.35}
.feed-summary{color:var(--muted);font-size:.83rem;flex:1 1 100%}
/* Severity is carried by ICON SHAPE as well as colour, so it survives
   colour-blindness and a washed-out bus screen in daylight. */
.sev-ok{color:var(--ok)}
.sev-info{color:var(--info)}
.sev-warn{color:var(--warn)}
.sev-denied{color:var(--blocked)}
.row.is-denied .feed-label{color:var(--blocked)}
.row.is-denied .feed-label::after{content:" — refused";color:var(--blocked);font-weight:600;letter-spacing:.06em}

/* ---- Transcripts (waveform affordance) ---------------------------------- */
.tx-wave{display:inline-flex;align-items:flex-end;gap:2px;height:16px;flex:0 0 auto}
.tx-wave i{display:block;width:2px;background:var(--accent-2);border-radius:1px;opacity:.85}
.transcript-panel .row{align-items:flex-start}
.transcript-panel .row-name{flex:0 0 auto}
.tx-text{flex:1 1 100%;color:var(--text);font-size:.9rem;line-height:1.4;border-left:3px solid var(--accent-2);padding-left:10px;margin-top:2px}

/* ---- Priority alerts ---------------------------------------------------- */
.alerts-panel .list-scroll{max-height:220px}
.alerts-panel .row{justify-content:flex-start}
.alerts-panel li{flex-wrap:wrap}
.alerts-panel li.is-unack .tag{color:var(--blocked);border-color:#ff6b5e66}
button.tiny{padding:6px 12px;font-size:.7rem;margin:0 0 0 auto}

/* ---- Alert banner (surfaces regardless of layout) ----------------------- */
.alert-banner{display:flex;align-items:center;gap:12px;margin:14px 0 0;padding:12px 16px;border-radius:10px;border:1px solid var(--blocked);background:linear-gradient(90deg,rgba(255,107,94,.16),rgba(255,107,94,.05));color:#ffd9d4;font-weight:600;box-shadow:var(--glow-strong);animation:alertPulse 1.8s ease-in-out infinite}
.alert-banner-icon{display:inline-flex;color:var(--blocked);flex:0 0 auto}
.alert-banner-text{letter-spacing:.02em;font-size:.92rem}
@keyframes alertPulse{0%,100%{border-color:var(--blocked)}50%{border-color:rgba(255,107,94,.45)}}

/* ---- Driver location / radar -------------------------------------------- */
.location-panel .list-scroll{max-height:180px}
.location-panel .row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.location-panel .row-name{flex:0 0 auto}
.location-panel .loc-coords{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.76rem;color:var(--muted);font-variant-numeric:tabular-nums}
.location-panel .tag-current{color:var(--ok);border-color:var(--ok)}
.location-panel .tag-unknown{color:var(--warn);border-color:var(--warn)}
.location-panel .dot-off{background:var(--muted);box-shadow:none}
.radar-wrap{position:relative;display:flex;justify-content:center;margin:0 0 10px}
.radar{width:240px;height:240px;max-width:100%;background:radial-gradient(circle,#08131b 0%,#060d13 70%);border:1px solid var(--line);border-radius:50%}
.radar-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted);font-size:.8rem;padding:0 30px}

/* ---- Message strip ------------------------------------------------------ */
#message-list .clip{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:11px 12px;margin-bottom:8px;border:1px solid var(--line);border-radius:10px;background:var(--panel-3)}
#message-list .clip-head{display:flex;align-items:baseline;gap:10px;flex:1 1 100%;min-width:0}
#message-list .clip-who{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#message-list .clip-time,#message-list .clip-dur{color:var(--muted);font-size:.74rem;font-variant-numeric:tabular-nums;white-space:nowrap;font-family:var(--display)}
#message-list .clip-dur{margin-left:auto}
#message-list .clip-listen{margin:0;padding:7px 14px;font-size:.72rem;letter-spacing:.04em;font-family:var(--display)}
#message-list .clip.is-expired .clip-who,#message-list .clip.is-expired .clip-time{color:var(--muted)}
#message-list .clip-transcript{flex:1 1 100%;margin:2px 0 0;color:var(--text);font-size:.88rem;line-height:1.4;border-left:3px solid var(--accent-2);padding-left:10px}
#message-list .tag-off{color:var(--warn);border-color:#e6b45566}
/* The sender's OWN clip carries an honest receipt instead of a Listen control.
   The receipt line is text first: colour reinforces the state but never carries
   it alone (the sentence itself says what was observed). */
#message-list .clip.clip-own{border-style:dashed}
#message-list .tag-own{color:var(--accent-2);border-color:var(--accent-2)}
#message-list .clip-receipt{flex:1 1 100%;margin:2px 0 0;color:var(--muted);font-size:.8rem;line-height:1.4}
#message-list .clip-receipt.is-unheard{color:var(--warn)}
#message-list .clip-receipt.is-expired{color:var(--warn)}
#message-list .clip-receipt.is-played{color:var(--ok)}
.receipt-note{color:var(--muted);font-size:.78rem;margin:8px 0 0;line-height:1.4}
.sound-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0}
.sound-row .queue{margin:0;flex:1 1 260px;min-width:0}
.sound-row button{flex:0 0 auto}
.row-actions{display:flex;gap:10px;margin-top:16px}
.row-actions button{margin:0}

/* ---- Control-panel layout ----------------------------------------------- */
/* Selectors sit side by side at the top; the PTT is centred on the whole panel
   (not parked in a side cell) with the state words directly below it, then the
   secondary controls. */
.control-panel{display:flex;flex-direction:column}
.control-panel .panel-title{margin-bottom:12px}
.control-panel .policy{text-align:center;margin:0 0 4px}
.control-panel .ptt-control{align-self:center}
.control-panel .sound-row{justify-content:center}
.control-panel .row-actions{justify-content:center}

/* ---- One-way route-status broadcast (backlog item 7) -------------------- */
.route-status-panel .list-scroll{max-height:220px}
.route-status-panel .row{justify-content:flex-start;flex-wrap:wrap}
.route-status-panel .status-group{font-family:var(--display);font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;color:var(--accent-2)}
.route-status-panel .status-text{flex:1 1 100%;margin:2px 0 0;color:var(--text);font-size:.9rem;line-height:1.4;border-left:3px solid var(--accent-2);padding-left:10px}
.route-status-form{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;margin:12px 0 0}
.route-status-form .route-status-label{flex:1 1 200px;margin:0;font-size:.8rem;color:var(--muted)}
.route-status-form button{margin:0;flex:0 0 auto}

/* ---- Shared dispatcher call queue (backlog item 9) --------------------- */
.requests-panel .list-scroll{max-height:220px}
.requests-panel .row{justify-content:flex-start;flex-wrap:wrap;gap:8px}
.requests-panel .status-group{font-family:var(--display);font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;color:var(--accent-2)}
.requests-panel .status-text{flex:1 1 100%;margin:2px 0 0;color:var(--text);font-size:.9rem;line-height:1.4;border-left:3px solid var(--accent-2);padding-left:10px}
.requests-panel li.is-unack .tag{color:var(--blocked);border-color:#ff6b5e66}
.requests-panel button.tiny{margin:0}
.requests-panel .req-deferred{margin:0 0 0 auto}

/* ---- Essential retention notice (stays on screen) ----------------------- */
.retention-note{color:var(--muted);font-size:.82rem;line-height:1.55;margin:0 0 12px}

/* ---- Auth --------------------------------------------------------------- */
.auth{max-width:420px;margin:7vh auto 0;padding:26px 24px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.008));box-shadow:var(--glow),0 24px 60px rgba(0,0,0,.5)}
.auth-card{margin:0}
.auth-card button+button{margin-top:10px}
.card-title{margin:0 0 16px;font-size:1.12rem;letter-spacing:.06em;font-family:var(--display)}
.card-note{margin:0 0 16px;color:var(--muted);font-size:.86rem}
.status-line{display:block;max-width:1000px;margin:14px auto 0;padding:9px 14px;border-left:3px solid var(--accent);border-radius:0 8px 8px 0;background:rgba(255,255,255,.03);color:var(--muted);font-size:.86rem}
main:has(.auth:not([hidden])) .status-line{max-width:420px;margin-left:auto;margin-right:auto}

/* ---- Responsive --------------------------------------------------------- */
@media(max-width:1180px){
 .ops-workspace{grid-template-columns:minmax(220px,.95fr) minmax(340px,1.4fr)}
 .ops-col-right{grid-column:1/-1}
 .control-panel .ptt-control{margin:14px 0 4px;align-self:center}
}
@media(max-width:760px){
 .ops-workspace{grid-template-columns:1fr}
 .ops-col-right{grid-column:auto}
 .header-meta{align-items:flex-start}
 .header-clock{align-items:flex-start;border-left:0;padding-left:0}
}
@media(max-width:460px){
 .control-panel .field-row{grid-template-columns:1fr}
 .status-strip .stat{flex:1 1 100%}
}
@media(max-width:900px){.auth{margin-top:4vh}}

/* HARD RULE: an OS reduced-motion preference ALWAYS wins over the tenant's
   visual_intensity setting, and it also strips glow — never overridden by a
   tenant slider. */
@media(prefers-reduced-motion:reduce){
 *{animation:none!important;transition:none!important}
 body{--glow:none!important;--glow-strong:none!important}
 .alert-banner{animation:none!important}
}

/* ---- Rearrangeable dashboard (backlog item 1c) --------------------------
   Layout editing is presentation only. A visible "Customize layout" control is
   the keyboard-reachable, discoverable path; the long-press (LAYOUT_HOLD_MS,
   default 1s, set from client.js as --hold-ms) is a shortcut. Pills and panel
   headers shake gently in edit mode; the active alert still surfaces in the
   header banner and no panel is ever removed. */
.layout-open{white-space:nowrap}
.layout-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 0;padding:10px 14px;border:1px solid var(--accent);border-radius:10px;background:linear-gradient(90deg,rgba(56,224,200,.12),rgba(56,224,200,.03));color:var(--text)}
.layout-bar .layout-hint{flex:1 1 auto;font-size:.85rem;color:var(--muted)}
.layout-bar button{margin:0}
body.layout-edit .status-strip .stat,
body.layout-edit .ops-workspace .panel{outline:1px dashed var(--line-2);outline-offset:2px;animation:shake 1.4s ease-in-out infinite}
/* touch-action:none on the DRAG TARGETS is what makes a real touch drag work:
   without it the browser treats the gesture as a page scroll, fires
   pointercancel, and the widget never moves. Applied to the header/pill only,
   so list scrolling inside a panel still works while editing. */
body.layout-edit .panel .panel-title{cursor:grab;touch-action:none}
body.layout-edit .status-strip .stat{cursor:grab;touch-action:none}
/* A visible grip on every movable item, so "this can be dragged" is legible
   without discovering the long-press. Pseudo-element only: no DOM change. */
body.layout-edit .panel .panel-title::before,
body.layout-edit .status-strip .stat::before{content:"\28FF";color:var(--accent-2);opacity:.85;flex:0 0 auto;font-size:.95rem;line-height:1;letter-spacing:0;cursor:grab}
/* Keyboard reach: a focused movable item is unmistakable. */
body.layout-edit .ops-workspace .panel:focus-visible,
body.layout-edit .status-strip .stat:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
body.layout-dragging{user-select:none;-webkit-user-select:none}
body.layout-edit .dragging{opacity:.7;outline:2px solid var(--accent);outline-offset:2px;cursor:grabbing;animation:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-1px)}75%{transform:translateX(1px)}}
@property --holdp{syntax:'<percentage>';inherits:false;initial-value:0%}
.status-strip .stat{position:relative}
.panel .panel-title{position:relative}
.stat.holding::after,
.panel-title.holding::after{content:"";position:absolute;inset:-3px;pointer-events:none;border-radius:999px;
 background:conic-gradient(var(--accent) var(--holdp,0%),transparent 0);
 -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
 padding:2px;animation:holdfill var(--hold-ms,1000ms) linear forwards}
.panel-title.holding::after{border-radius:8px}
@keyframes holdfill{to{--holdp:100%}}
