/* Narrowly scoped, approved login/waiting/summary refresh. */
main.login.login-welcome{max-width:1080px;width:calc(100% - 32px);margin:32px auto;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,1fr);gap:18px 36px;padding:28px;box-sizing:border-box;background:linear-gradient(145deg,#f7fcff,#e5f2fc);border:1px solid #b8d5eb;border-radius:14px;box-shadow:0 12px 35px #14365215}
.login-welcome>.brand,.login-welcome>.eyebrow{grid-column:1/-1;margin:0}
.login-welcome .login-intro{padding:20px 0}.login-intro h2{font-size:30px;color:#10365c;line-height:1.2}.login-intro p{font-size:17px;line-height:1.6}
.login-highlights{display:grid;gap:10px}.login-highlights span{padding:12px;border-left:3px solid #357da5;background:#ffffffad}
.login-entry{background:white;border:1px solid #c1d7e8;border-radius:10px;padding:20px}.login-entry h1{font-size:24px}.login-entry p{line-height:1.5}.login-entry label{display:block}.login-entry input{box-sizing:border-box;width:100%}
.login-help{grid-column:1/-1;border-top:1px solid #c1d7e8;padding-top:16px}.login-help p{font-size:13px;color:#3b5269}
.login-welcome #pwa-install{grid-column:1/-1;margin:0}.login-welcome #pwa-install h2{font-size:18px}
main.quick-waiting{max-width:760px}.waiting-steps{display:flex;gap:12px;padding:0;list-style:none;counter-reset:step}.waiting-steps li{flex:1;border-top:4px solid #c8d9e7;padding:10px 0;font-size:13px}.waiting-steps .done{border-color:#278754}.waiting-steps .current{border-color:#1671ae;font-weight:700}
.waiting-state{padding:20px;background:#e7f3fd;border:1px solid #b1d3ec;border-radius:10px}.waiting-placement{display:grid;grid-template-columns:100px 1fr;gap:12px}.waiting-placement dd{margin:0;font-weight:700}
.task-summary-fields.task-summary-stacked{display:block;gap:0;border:1px solid #c6ddeb;border-radius:6px;overflow:hidden}
.task-summary-stacked .summary-field{display:grid;grid-template-columns:minmax(120px,36%) minmax(0,1fr);gap:12px;border:0;border-bottom:1px solid #d1e3ef;border-radius:0;padding:9px 12px;background:#f8fcff}
.task-summary-stacked .summary-field:last-child{border-bottom:0}.task-summary-stacked .summary-field b{color:#123857}.task-summary-stacked .pre{margin:0;overflow-wrap:anywhere}
.task-summary-stacked .summary-emphasis{background:#e0f0fc;border-left:4px solid #297fba}.task-summary-stacked .summary-emphasis b{font-weight:800}
.task-summary-stacked .summary-warning{background:#fff0f0;border-left:4px solid #bf2033}.task-summary-stacked .summary-warning b{color:#a31527;font-weight:800}
.watch-dashboard .watch-task-summary{grid-row:span 2;min-width:0}.watch-monitor-launch{display:flex;align-items:center;justify-content:flex-start}
@media(max-width:700px){main.login.login-welcome{grid-template-columns:minmax(0,1fr);margin:12px auto;padding:18px;gap:12px}.login-intro h2{font-size:23px}.login-welcome .login-intro{padding:0}.login-intro p{font-size:15px}.login-entry{padding:14px}.task-summary-stacked .summary-field{grid-template-columns:minmax(100px,36%) minmax(0,1fr);padding:8px;gap:8px}.waiting-steps{gap:7px}}


.map-command-symbol span{display:grid;place-items:center;width:26px;height:26px;border:2px solid;background:white;border-radius:6px;font:800 19px system-ui;box-shadow:0 1px 4px #0003}
.map-draw-dialog{box-sizing:border-box;max-width:min(560px,94vw);max-height:88dvh;overflow:auto;overscroll-behavior:contain}
.map-draw-dialog label{display:block;margin:10px 0}.map-draw-dialog input,.map-draw-dialog select,.map-draw-dialog textarea{box-sizing:border-box;width:100%;min-width:0}.map-draw-dialog button{min-height:44px}.map-draw-dialog .actions{position:sticky;bottom:0;background:#f2f8fc;padding:8px}
.map-detail-panel{box-sizing:border-box;max-width:min(430px,calc(100vw - 34px));max-height:55dvh;overflow:auto;overflow-wrap:anywhere}.map-detail-panel button{min-height:40px}
.watch-dashboard{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:minmax(170px,1fr) auto auto auto}
.watch-dashboard .watch-task-summary{grid-column:1;grid-row:1/4}.watch-dashboard .watch-notes{grid-column:2;grid-row:1}.watch-dashboard .watch-monitor-launch{grid-column:2;grid-row:2}.watch-dashboard .watch-radio{grid-column:2;grid-row:3}.watch-dashboard .watch-measurements{grid-column:1/-1;grid-row:4}
@media(max-width:1099px){.view-observer main{height:auto!important;overflow:visible!important}.watch-dashboard{display:flex;flex-direction:column;height:auto;overflow:visible}.watch-dashboard .watch-panel{max-height:none;overflow:visible}.watch-dashboard .watch-body{overflow:visible;max-height:none}.watch-dashboard .watch-radio{max-height:none}.response-layout{grid-template-columns:minmax(0,1fr)}}
@media(pointer:coarse){.login-entry button,.quick-waiting button,.map-options button,.map-options select,.map-detail-panel button{min-height:44px}.map-options input[type=checkbox]{width:20px;height:20px}}

.login-welcome #pwa-install{padding:16px;box-sizing:border-box}.login-portals button{overflow-wrap:normal;word-break:normal}@media(max-width:700px){.login-highlights{display:none}.login-welcome>.brand .tilannevire-original{max-width:100%}}
/* Approved compact radio: dark display, slate controls, fixed navigation. */
:is(.view-radio .mobile-radio,.radio-device){background:#223c52!important;border-color:#314c64!important;box-shadow:0 4px 14px #112c4830}
:is(.view-radio .mobile-radio,.radio-device) .radio-body{background:#10283c!important;color:#e9f3ff;border-radius:10px}
:is(.view-radio .mobile-radio,.radio-device) .radio-lcd{background:linear-gradient(145deg,#10283c,#091c2e)!important;color:#e9f3ff!important;border-radius:10px;gap:6px!important;flex:1 0 auto}
:is(.view-radio .mobile-radio,.radio-device) .radio-lcd [data-radio-title]{color:#d8eaff;font-size:25px;margin:2px 0!important}
:is(.view-radio .mobile-radio,.radio-device) .radio-lcd [data-radio-erva-title],:is(.view-radio .mobile-radio,.radio-device) .radio-lcd [data-radio-current-speaker]{color:#a9cbed!important}
:is(.view-radio .mobile-radio,.radio-device) .radio-lcd [data-radio-channel-open]{color:#fff!important;background:transparent!important;border:0;font-size:clamp(28px,4vh,42px)!important;line-height:1.2!important;height:auto!important;min-height:44px!important;margin:0!important}
:is(.view-radio .mobile-radio,.radio-device) .radio-link-strip{position:static!important;display:flex;flex-wrap:wrap;gap:6px;color:#c6def4;min-height:24px}
:is(.view-radio .mobile-radio,.radio-device) [data-radio-ready]{color:#bfd4e8}:is(.view-radio .mobile-radio,.radio-device) [data-radio-ready].ready{color:#73ef9a}
:is(.view-radio .mobile-radio,.radio-device) [data-radio-bars] small{color:#c6def4}:is(.view-radio .mobile-radio,.radio-device) [data-radio-unread]{color:#a3d5ff}
:is(.view-radio .mobile-radio,.radio-device) [data-radio-quick-keys]{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px!important;margin:6px 0!important}
:is(.view-radio .mobile-radio,.radio-device) [data-quick-channel],:is(.view-radio .mobile-radio,.radio-device) .radio-channel-picker summary{background:#233f57!important;border:1px solid #7394b1!important;color:#e7f2ff!important;border-radius:7px;padding:8px 4px!important;min-height:44px;font-size:13px!important}
:is(.view-radio .mobile-radio,.radio-device) [data-quick-channel].selected{background:#9bceff!important;color:#0b2841!important;border-color:#c9e6ff!important;font-weight:800}
:is(.view-radio .mobile-radio,.radio-device) .radio-channel-picker{color:#dcecff;background:#17334b;border-radius:7px;width:100%}:is(.view-radio .mobile-radio,.radio-device) .radio-channel-picker label,:is(.view-radio .mobile-radio,.radio-device) .radio-channel-picker small{color:#dcecff}
:is(.view-radio .mobile-radio,.radio-device) .radio-lcd .ptt{display:flex;align-items:center;justify-content:center;gap:14px;background:#9bceff!important;color:#09263d!important;border:1px solid #c5e5ff!important;border-radius:10px;min-height:78px!important;height:78px;margin:10px 0 5px!important;box-shadow:none}
:is(.view-radio .mobile-radio,.radio-device) .ptt svg{width:30px;height:35px;fill:none;stroke:currentColor;stroke-width:2}:is(.view-radio .mobile-radio,.radio-device) .ptt strong{font-size:25px}:is(.view-radio .mobile-radio,.radio-device) .ptt small{display:block;color:inherit;font-size:12px;font-weight:400}:is(.view-radio .mobile-radio,.radio-device) .ptt.transmitting{background:#f2c456!important;color:#192839!important}
:is(.view-radio .mobile-radio,.radio-device) .radio-tabs{background:#203b52;border-top:1px solid #58748d;padding-top:5px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
:is(.view-radio .mobile-radio,.radio-device) .radio-tabs button{background:transparent!important;color:#bdd8ef!important;border:0;border-radius:0;min-width:0;white-space:normal}:is(.view-radio .mobile-radio,.radio-device) .radio-tabs button.selected{color:#8ed2ff!important;border-bottom:3px solid #58b7ff;font-weight:800}
:is(.view-radio .mobile-radio,.radio-device) .radio-body>section{color:#152e46;background:#eff6fc}
@media(max-width:600px){:is(.view-radio .mobile-radio,.radio-device) .radio-lcd{padding:5px!important;gap:3px!important}:is(.view-radio .mobile-radio,.radio-device) [data-radio-quick-keys]{gap:4px!important}:is(.view-radio .mobile-radio,.radio-device) [data-quick-channel]{min-height:38px!important;padding:6px 2px!important;font-size:12px!important}:is(.view-radio .mobile-radio,.radio-device) .radio-lcd .ptt{min-height:68px!important;height:68px}:is(.view-radio .mobile-radio,.radio-device) .radio-lcd>[data-radio-title]{font-size:21px}:is(.view-radio .mobile-radio,.radio-device) .radio-lcd>[data-radio-erva-title]{font-size:12px}}
:is(.view-radio .mobile-radio,.radio-device) .ptt svg{display:block!important;flex:none}:is(.view-radio .mobile-radio,.radio-device) .radio-tabs button{display:flex;flex-direction:column;align-items:center;gap:3px}:is(.view-radio .mobile-radio,.radio-device) .radio-tabs svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}:is(.view-radio .mobile-radio,.radio-device) .radio-lcd>small{color:#afc8dc!important}:is(.view-radio .mobile-radio,.radio-device) .radio-lcd .ptt{margin-top:auto!important;margin-bottom:10px!important}:is(.view-radio .mobile-radio,.radio-device) .ptt:disabled{opacity:.65}
/* Keep the microphone beside its label inside the fixed-height tangent. */
.radio-live .ptt{flex-direction:row!important;flex-wrap:nowrap;gap:12px!important}
.radio-live .ptt>svg{display:block;flex:0 0 30px;width:30px;height:34px;fill:none;stroke:currentColor;stroke-width:2}
.radio-live .ptt>span{display:flex;flex-direction:column;justify-content:center;min-width:0;line-height:1.15}
.radio-live .ptt>span>strong{line-height:1.15;letter-spacing:0}
.radio-live .ptt>span>small{line-height:1.2;white-space:normal;color:inherit}

/* Shared handset surface for embedded consoles and standalone radios. */
.radio-device{min-width:0;max-width:100%;box-sizing:border-box;border:5px solid #314c64;border-radius:12px;padding:5px;background:#223c52;color:#e9f3ff}
.radio-device .radio-live{display:flex;flex-direction:column;min-width:0;padding:0;background:transparent}
.radio-device .radio-lcd{display:flex;flex-direction:column;align-items:center;padding:10px;min-width:0;box-sizing:border-box;width:100%;border:0}
.radio-device .radio-lcd>*{max-width:100%;box-sizing:border-box;flex-shrink:0}
.radio-device .radio-live>label,.radio-device .radio-live>[data-radio-speaker]{display:none}
.radio-device .radio-channel-picker:not([open]){display:none}
.radio-device .radio-channel-picker>summary{display:none}
.radio-device .radio-lcd>.actions:not(:has(button:not([hidden]))){display:none}
.radio-device .radio-tools{color:#dcecff;background:#17334b;border:1px solid #7394b1;border-radius:7px;padding:8px;margin-top:6px}
.radio-device .radio-tools summary,.radio-device .radio-tools label,.radio-device .radio-tools small{color:#dcecff}
.radio-device .ptt{width:100%;touch-action:none}
.mobile-radio .radio-device{border:0;padding:0;background:transparent}
.radio-device .radio-tools>summary{background:#233f57!important;color:#e7f2ff!important;border-radius:5px;padding:8px;cursor:pointer}.radio-device .radio-tools p{color:#dcecff}

.exercise-management-followup{margin:12px 0 8px;padding:10px 0 0;border:0;border-top:1px solid #b7d7ef;border-radius:0;background:transparent}.exercise-management-followup .actions{display:flex;flex-wrap:wrap;gap:6px}.exercise-management-followup .actions button{max-width:100%;white-space:normal}

.watch-dashboard .watch-events{grid-column:1/-1;grid-row:1;max-height:220px;min-height:110px}.watch-dashboard .watch-events .watch-body{overflow:auto;max-height:180px}.watch-event{padding:8px 10px;border-bottom:1px solid #cbdce8;border-left:3px solid #3184ba;background:#f3f9fe;overflow-wrap:anywhere}.watch-event p{margin:0 0 4px}.watch-event time{font-size:12px;color:#526476}.watch-dashboard:has(.watch-events){grid-template-rows:minmax(110px,.6fr) minmax(170px,1fr) auto auto auto}.watch-dashboard:has(.watch-events) .watch-task-summary{grid-row:2/5}.watch-dashboard:has(.watch-events) .watch-notes{grid-row:2}.watch-dashboard:has(.watch-events) .watch-monitor-launch{grid-row:3}.watch-dashboard:has(.watch-events) .watch-radio{grid-row:4}.watch-dashboard:has(.watch-events) .watch-measurements{grid-row:5}

@keyframes observer-event-glow{0%,100%{box-shadow:inset 0 0 0 0 #4bb4e500;background:#f3f9fe}50%{box-shadow:inset 0 0 12px 2px #4bb4e580;background:#d8f1ff}}.watch-event.event-glow{animation:observer-event-glow 1s ease-in-out 3}@media(prefers-reduced-motion:reduce){.watch-event.event-glow{animation:none;border-left-color:#0069a6}}

/* Contrast follows the base map; operational status/triage colours stay intact. */
.live-map[data-map-base]{--route-ink:#004ca3;--route-edge:#fff;--marker-edge:#102b40;--label-ink:#112e46;--label-paper:#fffffff2;--leader-ink:#183950;--place-ink:#183950;--place-halo:#fff}
.live-map[data-map-base="terrain"]{--route-ink:#6226a5;--route-edge:#fff}
.live-map[data-map-base="imagery"]{--route-ink:#64efff;--route-edge:#102332;--marker-edge:#fff;--label-ink:#fff;--label-paper:#102332ed;--leader-ink:#fff;--place-ink:#fff;--place-halo:#102332}
.live-map[data-map-base] .map-route-casing{stroke:var(--route-edge);stroke-width:9;stroke-opacity:1;filter:none}
.live-map[data-map-base] .map-route-line{stroke:var(--route-ink);stroke-width:5;stroke-opacity:1;filter:none}
.live-map[data-map-base] .leaflet-overlay-pane path:not(.map-route-casing):not(.map-route-line){filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #102332)}
.live-map[data-map-base] .map-unit-marker{stroke:var(--marker-edge);stroke-width:2}
.live-map[data-map-base] .map-label-leader{stroke:var(--leader-ink);stroke-opacity:.9}
.live-map[data-map-base] .leaflet-tooltip{color:var(--label-ink);background:var(--label-paper);border-color:var(--marker-edge)}
.live-map[data-map-base] .map-smart-tooltip{color:var(--label-ink);background:var(--label-paper)!important;border-color:var(--marker-edge)!important;box-shadow:0 0 0 1px var(--marker-edge);text-shadow:none}
.live-map[data-map-base] .task-triangle,.live-map[data-map-base] .task-state-marker span{filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #102332)}
.live-map[data-map-base] .map-hospital,.live-map[data-map-base] .map-command-symbol span{box-shadow:0 0 0 1px #fff,0 0 0 2px #102332}
.live-map[data-map-base="imagery"] .large-place-name,.live-map[data-map-base="imagery"] .large-place-name span{color:var(--place-ink);text-shadow:0 1px 2px var(--place-halo),1px 0 2px var(--place-halo),-1px 0 2px var(--place-halo),0 -1px 2px var(--place-halo)}


/* Android radio navigation is part of the dark display, including its gap. */
body.android-radio-focus .radio-display-nav{background:#10283c;border-radius:10px 10px 0 0;margin:0;padding:6px 8px;gap:6px}
body.android-radio-focus .view-radio .mobile-radio .radio-body{border-top-left-radius:0;border-top-right-radius:0}
body.android-radio-focus .radio-display-nav>button{background:#233f57;color:#e9f3ff;border:1px solid #7394b1;box-shadow:none}

#call-banner{max-width:min(420px,calc(100vw - 24px));box-sizing:border-box;z-index:10000}
#call-banner button.call-answer,#call-banner button.call-reject{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;margin:5px;padding:10px 14px;color:white;border:0;font-weight:700}
#call-banner button.call-answer{background:#16763a}#call-banner button.call-reject{background:#b92832}
#call-banner button svg{width:24px;height:24px;fill:currentColor}#call-banner .call-reject svg{transform:rotate(135deg)}
[data-call-code-form]{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:10px 0}[data-call-code-form] input{display:block;max-width:160px;text-transform:uppercase}
/* Unified, instructor-controlled installer section. */
#pwa-install[hidden]{display:none!important}#pwa-install .install-download-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}#pwa-install .install-download{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;box-sizing:border-box;border:1px solid #98b9d3;border-radius:10px;background:linear-gradient(#fff,#edf5fc);color:#153f65;text-decoration:none;text-align:center;padding:16px 8px;font-size:14px;line-height:1.35;cursor:pointer}#pwa-install .install-download:hover{background:#e0effb;border-color:#216fa6}#pwa-install .install-download:focus-visible{outline:3px solid #167ac0;outline-offset:2px}#pwa-install .tilannevire-brand{display:block;width:100%;max-width:160px}#pwa-install .tilannevire-original{width:100%;height:40px;max-width:160px;background-size:contain;background-repeat:no-repeat;background-position:center}#pwa-install .install-browser{width:100%;margin:10px 0 14px}#pwa-install small{color:#506b80}#pwa-install>p{font-size:14px}#pwa-install .install-browser .tilannevire-brand{max-width:120px}#pwa-install .install-browser .tilannevire-original{height:30px}
