.ops-settings{position:fixed;z-index:1600;top:76px;left:96px;bottom:110px;width:380px;max-width:calc(100vw - 110px);overflow:auto;padding:16px;border:1px solid #344957;border-radius:14px;background:#091725;color:#fff;box-shadow:0 12px 36px #0006;font-size:13px}.ops-settings[hidden],.ops-future-bar[hidden],#ops-future-map[hidden]{display:none!important}.ops-settings header{display:flex;justify-content:space-between;align-items:center}.ops-settings h2{font-size:22px;font-weight:800}.ops-settings h3{color:#fa1318;font-weight:800}.ops-settings details{padding:14px 0;border-top:1px solid #344957}.ops-settings summary{font-size:15px;font-weight:800;cursor:pointer}.ops-settings p{line-height:1.5;color:#c2d0dc}.ops-settings input,.ops-settings select,.ops-settings button,.ops-future-bar button,.ops-future-bar select,.ops-tropical button{background:#142a3b;color:white;border:1px solid #526474;border-radius:7px;padding:8px;font:inherit}.ops-field{display:grid;gap:7px;margin:14px 0;color:#ffc300}.ops-field select{width:100%}.ops-alert-group{list-style:none;font-size:14px;color:#fff;font-weight:800;padding:14px 2px 6px;border-top:1px solid #344957}.ops-note{font-size:11px;color:#b7c7d5;margin:8px 0;line-height:1.5}.ops-tropical{position:fixed;right:18px;top:76px;z-index:1050;max-width:320px;background:#091725ed;border:1px solid #344957;border-radius:9px;padding:10px;color:#fff;font-size:12px}.ops-tropical summary{cursor:pointer;font-weight:800}.ops-tropical h3{color:#fa1318}.ops-tropical button{display:block;margin:6px 0;width:100%;text-align:left}.ops-tropical>div{max-height:50vh;overflow:auto}.primary-nav{overflow-y:auto}.primary-nav-btn[aria-pressed="true"]{color:#ffc300;background:#ffc30030}.primary-nav-btn:disabled{opacity:.35;cursor:not-allowed}#ops-future-map{position:fixed;top:64px;left:80px;right:0;bottom:0;z-index:1000}.ops-future-bar{position:fixed;left:calc(80px + 2vw);right:2vw;bottom:22px;z-index:1600;background:#651015;border:2px solid #fa1318;border-radius:12px;padding:12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#fff}.ops-future-bar .ops-field{margin:0;min-width:130px}.ops-future-bar .ops-model-status{flex:1 1 260px;font-size:12px;line-height:1.5}.ops-future-bar input[type=range]{flex:1;accent-color:#ffc300;min-width:150px}.ops-future-active #map{visibility:hidden}.ops-future-active #radar-controls,.ops-future-active .ops-tropical,.ops-future-active #explorer-stream-alert,.ops-future-active .fishacat-radar-probe,.ops-future-active #saved-location-alert-banner{display:none!important}.ops-future-active #btn-locate,.ops-future-active #btn-place-search{pointer-events:none;opacity:.3}.ops-future-active #ops-future-map{visibility:visible}.radar-palette-vivid{filter:saturate(1.7) contrast(1.15)}.radar-palette-muted{filter:saturate(.6)}.radar-palette-grayscale{filter:grayscale(1) contrast(1.25)}.palette-vivid i{filter:saturate(1.7) contrast(1.15)}.palette-muted i{filter:saturate(.6)}.palette-grayscale i{filter:grayscale(1) contrast(1.25)}
@media(max-width:700px){.ops-settings{left:72px;right:8px;width:auto;max-width:none;top:66px;bottom:85px}.ops-tropical{top:66px;right:8px;max-width:230px}#ops-future-map{left:64px}.ops-future-bar{left:72px;right:8px;bottom:20px;gap:6px}.ops-future-bar .ops-field{min-width:100px;flex:1}.ops-future-bar strong{width:100%}.ops-future-bar{font-size:11px}.primary-nav-btn{min-height:58px!important}}
.ops-future-active #alerts-panel,.ops-future-active #layers-panel,.ops-future-active #situation-panel,.ops-future-active #search-panel,.ops-future-active #ops-settings{display:none!important}
/* Keep the observed bar laid out as the responsive geometry reference. */
.ops-future-active #radar-controls{display:flex!important;visibility:hidden;pointer-events:none}
.ops-future-bar{box-sizing:border-box;right:auto;bottom:auto;transform:none;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:center;gap:3px;border-width:1px;overflow:hidden}
.ops-future-top,.ops-future-bottom{display:flex;align-items:center;gap:6px;min-width:0}
.ops-future-bar .ops-model-status{flex:1 1 auto;min-width:0;font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ops-future-bar .ops-field{display:block;min-width:0;flex:0 0 auto;font-size:0;margin:0}
.ops-future-bar .ops-field select{font-size:11px;min-height:24px;height:24px;padding:2px 6px;width:165px}
.ops-future-bar #ops-model{width:90px}
.ops-future-bar button{height:26px;min-width:26px;padding:2px 7px;font-size:13px;line-height:1;border-radius:6px}
.ops-future-bar input[type=range]{min-width:20px;width:auto;flex:1;margin:0;accent-color:#ffc300;height:24px}
.ops-forecast-position{font-size:10px;white-space:nowrap;min-width:45px;text-align:right}
.ops-future-bottom button[aria-label="Play forecast"],.ops-future-bottom button[aria-label="Pause forecast"]{border-color:#ffc300;color:#ffc300}
.ops-alert-group>details>summary{cursor:pointer;padding:10px 3px;color:white;font-size:14px;font-weight:800}
.ops-alert-group-list{list-style:none;padding:0;margin:0;display:grid;gap:6px}.ops-alert-group{padding:0!important}.ops-alert-group-list .alert-list-button{width:100%;text-align:left}
.ops-fall-settings{border:1px solid #344957;border-radius:8px;margin:8px 0;padding:10px;font-size:12px}.ops-fall-settings legend{color:#ffc300}.ops-fall-settings label{display:block;margin:8px 0}.ops-fall-settings input[type=date]{background:#142a3b;color:white;border:1px solid #526474;padding:5px;max-width:100%}
.ops-fall-legend{position:fixed;z-index:1001;left:100px;bottom:125px;width:260px;border:1px solid #526474;border-radius:10px;background:#091725ed;color:white;padding:12px;font-size:11px}.ops-fall-legend[hidden],.ops-future-active .ops-fall-legend{display:none!important}.ops-fall-legend p{line-height:1.4}.ops-fall-scale{height:12px;margin-top:8px;background:linear-gradient(to right,#629747,#c4ce54,#ffdd54,#f58c32,#c44e2b,#683921)}.ops-fall-dates{display:flex;justify-content:space-between}.ops-fall-marker{font-size:23px;filter:drop-shadow(0 0 2px white)}
@media(max-width:900px){.ops-future-top{flex-wrap:wrap;gap:3px}.ops-future-bar .ops-model-status{flex-basis:100%;font-size:10px}.ops-future-bar .ops-field select{height:22px;min-height:22px}.ops-fall-legend{left:76px;bottom:160px;width:215px}}

/* Focused warning drawer and expanded official warning details. */
#alerts-panel.alert-selected-only > :not(#alert-detail){display:none!important}
.alert-impact-details{border:1px solid #FFC300!important;cursor:pointer}
.alert-impact-details dt{color:#FFC300!important}
.alert-impact-details:focus-visible{outline:3px solid #FFC300;outline-offset:3px}
.ops-warning-dialog{position:fixed;margin:0;transform:translate(-50%,-50%);max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);box-sizing:border-box;border:1px solid #FFC300;border-radius:14px;background:#091725;color:#fff;padding:22px;overflow:auto;box-shadow:0 16px 60px #0009}
.ops-warning-dialog::backdrop{background:#0006}
.ops-warning-header{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:18px;align-items:start;padding:0 28px 16px 0;border-bottom:1px solid #FFC300}
.ops-warning-header h2{font-family:Inter,sans-serif;font-weight:800;font-size:22px;color:#fff;margin:0}
.ops-warning-header p{font-family:Inter,sans-serif;font-weight:800;font-size:13px;margin:0;text-align:center;color:#FA1318}
.ops-warning-header p:last-child{text-align:right;color:#FFC300}
.ops-warning-close{position:absolute;top:8px;right:8px;width:30px;height:30px;border:1px solid #FFC300;border-radius:6px;background:#091725;color:#fff;font-size:24px;cursor:pointer}
.ops-warning-dialog .alert-detail{max-height:none;margin:14px 0 0;padding:0;border:0;overflow:visible;background:transparent;color:#fff}
.ops-warning-dialog .alert-detail-dismiss{display:none}
.ops-warning-dialog .alert-detail h3,.ops-warning-dialog .alert-impact-details h4{font-family:Inter,sans-serif;font-weight:800;color:#fff}
.ops-warning-dialog .alert-detail p>strong{color:#FA1318}
.ops-warning-dialog .alert-impact-details{cursor:default}
@media(max-width:700px){.ops-warning-dialog{width:calc(100vw - 24px)!important}.ops-warning-header{grid-template-columns:1fr;gap:8px}.ops-warning-header p,.ops-warning-header p:last-child{text-align:left}}

/* Programmatically focused warning content is not an interactive control. */
#alert-detail:focus,#alert-detail:focus-visible{outline:none}
/* Camera-only views stay inside the map and reuse the existing player lifecycle. */
.camera-result{grid-template-columns:minmax(0,1fr) auto auto auto}
.camera-view-buttons{display:inline-flex;align-items:center;gap:3px;flex-shrink:0}
.camera-view-button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:3px;border:1px solid #34495b;border-radius:6px;background:#091725;color:#fff;cursor:pointer}
.camera-view-button svg{width:22px;height:22px}.camera-view-button[aria-pressed="true"]{color:#FFC300;border-color:#FFC300}.camera-view-button:disabled{opacity:.4;cursor:default}
.modal-header>.camera-view-buttons{margin-left:auto;margin-right:8px}
.modal.camera-map-view{inset:auto;display:block;z-index:2100;background:#091725;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px #0008}
.modal.camera-map-view.hidden{display:none}
.camera-map-view>.modal-backdrop{display:none}
.camera-map-view>.modal-content{width:100%;height:100%;max-width:none;max-height:none;border:0;border-radius:inherit;background:#091725}
.camera-map-view .modal-header{flex:0 0 auto;align-items:center;padding:7px 10px;gap:6px;border:0}
.camera-map-view .modal-title-area{min-width:0;flex:1}
.camera-map-view .modal-title-area h2{margin:0;font:800 14px/1.2 Inter,Arial,sans-serif;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.camera-map-view .modal-subtitle,.camera-map-view .modal-meta,.camera-map-view .camera-provenance,.camera-map-view .modal-weather{display:none}
.camera-map-view .modal-body{display:flex;flex:1;min-height:0;padding:0;overflow:hidden}
.camera-map-view .modal-feed{flex:1;min-height:0;height:100%;background:#000}
.camera-map-view .modal-feed img,.camera-map-view .modal-feed video,.camera-map-view .modal-feed iframe{width:100%;height:100%;max-height:none;object-fit:contain;border:0}
.camera-map-view .monitor-grid{flex:1;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);padding:4px;gap:4px;overflow:auto}
.camera-map-view .monitor-cell{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.camera-map-view .monitor-cell h3{font-size:11px;margin:0;padding:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.camera-map-view .monitor-player{flex:1;min-height:0;overflow:hidden}
.camera-map-view .monitor-player img,.camera-map-view .monitor-player video,.camera-map-view .monitor-player iframe{height:100%;width:100%;object-fit:contain}
.camera-small-view .modal-title-area h2{font-size:12px}

#camera-modal.camera-map-view #modal-cam-name{color:#fff}

/* Provider embeds must fit the compact camera viewer rather than their modal minimum. */
.camera-map-view .modal-feed iframe{min-height:0!important}
.camera-map-view .modal-feed .feed-frame-actions{position:absolute;right:6px;bottom:6px;display:flex;gap:4px;z-index:2;opacity:0;transition:opacity .15s}
.camera-map-view .modal-feed:hover .feed-frame-actions,.camera-map-view .modal-feed:focus-within .feed-frame-actions{opacity:1}
.camera-map-view .feed-frame-actions button,.camera-map-view .feed-frame-actions a{font-size:10px;padding:4px 6px;background:#091725;color:#fff;border:1px solid #526373;border-radius:5px}

/* Public workspace navigation: scroll on short screens, utilities last. */
#primary-nav{overflow-y:auto;overflow-x:hidden}
#primary-nav a.primary-nav-btn{text-decoration:none;display:flex;color:inherit;flex-shrink:0}
@media(min-width:601px){#primary-nav .primary-nav-btn{min-height:56px;flex-shrink:0}#primary-nav .ops-nav-bottom{margin-top:auto}}
@media(max-width:600px){#primary-nav{overflow-x:auto;overflow-y:hidden}#primary-nav a.primary-nav-btn{min-width:72px;align-items:center;justify-content:center;flex-direction:column}}
.ops-map-legal{position:fixed;bottom:2px;left:100px;z-index:450;font:10px/1.2 Arial,sans-serif;color:#ddd;background:#091725dd;padding:3px 6px;border-radius:4px;max-width:calc(100vw - 110px)}
.ops-map-legal a{color:#fff;text-decoration:underline}
@media(max-width:600px){.ops-map-legal{left:4px;bottom:66px;max-width:calc(100vw - 8px)}}

@media(min-width:601px){#primary-nav{overflow:hidden}.ops-nav-main{flex:1;min-height:0;overflow-y:auto;width:100%;display:flex;flex-direction:column}.ops-nav-utilities{flex-shrink:0;width:100%;border-top:1px solid #ffffff18}.ops-map-legal{bottom:20px}}
@media(max-width:600px){.ops-nav-main,.ops-nav-utilities{display:contents}}
/* Center wrapped navigation labels beneath their icons. */
#primary-nav a.primary-nav-btn[href="/forecasting"] > span,
#primary-nav a.primary-nav-btn[href="/morning-brief"] > span { width:100%; text-align:center; }

.camera-small-view .modal-header{cursor:move;touch-action:none;user-select:none}
.camera-resize-grip{display:none}.camera-small-view>.camera-resize-grip{display:block;position:absolute;right:0;bottom:0;z-index:10;width:25px;height:25px;padding:0;border:0;border-radius:6px 0 0;background:#091725;color:#ffc300;font-size:20px;cursor:nwse-resize;touch-action:none}
.camera-window-adjusting iframe,.camera-window-adjusting video{pointer-events:none}
.ops-warning-close{position:sticky;top:0;float:right;z-index:5}

/* Scroll long warning details inside the space above radar playback. */
#alerts-panel{box-sizing:border-box;min-height:0;max-height:var(--ops-alert-available-height,calc(100dvh - 250px))!important;overflow-y:auto;overscroll-behavior:contain}

/* Keep the actual GOES observation time visible beside radar playback. */
#goes-map-status{flex-basis:100%;font-size:11px;line-height:1.4;color:#ffe082;padding:2px 0;white-space:normal}
#goes-map-status[hidden]{display:none!important}

/* Give long warning locations the full row on narrow screens. */
@media(max-width:600px){
 #ops-map-warning-bar,#ops-map-warning-bar.is-selected{grid-template-columns:minmax(0,1fr) 112px}
 #ops-map-warning-bar .ops-map-bar-label{display:none}
 #ops-map-warning-bar .ops-map-warning-type{grid-column:1;grid-row:1}
 #ops-map-warning-bar .ops-map-bar-severity{grid-column:2;grid-row:1}
 #ops-map-warning-bar .ops-map-bar-location{grid-column:1/-1;grid-row:2}
 #ops-map-warning-bar.is-clear .ops-map-warning-type{grid-column:1/-1}
}

/* Shared yellow frames and white map controls. Preserve scientific hazard colors. */
#radar-controls,#ops-map-warning-bar,
#layers-panel,#alerts-panel,#search-panel,#situation-panel,
.ops-settings,.ops-tropical,.recon-map-panel,.ops-warning-dialog,
.modal .modal-content,.leaflet-popup-content-wrapper{
 border:1px solid #ffc300!important;
 box-sizing:border-box;
}
#primary-nav .primary-nav-btn,#primary-nav .primary-nav-btn:is(:hover,.is-active,[aria-pressed="true"]),
#primary-nav .primary-nav-btn svg,#primary-nav .primary-nav-btn span{color:#fff!important}
#primary-nav .primary-nav-badge{color:#fff!important;background:#253b4c}
#radar-controls{--accent:#fff;--text-dim:#fff;--on-accent:#091725;color:#fff}
#radar-controls button,#radar-controls select,#radar-controls input,#radar-controls summary,#radar-controls svg{color:#fff!important;accent-color:#fff}
#radar-controls button{border-color:#fff!important}
#radar-controls button[aria-pressed="true"]{background:#344b5e!important;color:#fff!important;box-shadow:inset 0 -2px #fff}
#radar-controls input[type="range"]{accent-color:#fff}

/* Flight tracks and clickable aircraft remain; omit the floating mission box. */
.recon-map-panel{display:none!important}

/* Situation is no longer offered in the primary navigation. */
#primary-nav #btn-summary{display:none!important}

/* Selected controls are yellow; confirmed errors override selection in red. */
#radar-controls :is(button[aria-pressed="true"], [data-control-active="true"]):not([data-imagery-hidden="true"]){background:#ffc300!important;border-color:#ffc300!important;color:#091725!important;box-shadow:none!important}
#radar-controls :is(button[aria-pressed="true"], [data-control-active="true"]):not([data-imagery-hidden="true"]) svg{color:#091725!important}
#radar-controls#radar-controls [data-control-error="true"]:is(button,select){background:#e4313c!important;border-color:#ff6570!important;color:#fff!important;box-shadow:none!important}
#radar-controls#radar-controls [data-control-error="true"]:is(button,select) svg{color:#fff!important}
#radar-controls button:active:not(:disabled){background:#ffc300!important;color:#091725!important}
#radar-controls select option{background:#122735;color:#fff}

.monitor-grid[data-count="1"]{grid-template-columns:minmax(0,1fr)!important}
.monitor-empty{padding:24px;color:#fff;grid-column:1/-1}

/* The entire warning area remains clickable even with a transparent fill. */
.leaflet-interactive.warning-polygon-hit{pointer-events:all;cursor:pointer}

/* Keep each camera's actions together, including the longer remove label. */
.incident-camera-actions{flex-wrap:nowrap;align-items:center;gap:4px;max-width:100%;overflow-x:auto}
.incident-camera-actions button{flex:0 0 auto;white-space:nowrap;font-size:11px;padding:4px 6px}
.incident-camera-actions button,.incident-monitor-open,.context-popup .incident-camera-actions button,.context-popup .incident-monitor-open{border-color:#ffc300}

/* Keep emergency labels intact at desktop and compact widths. */
.ops-map-bar-severity{overflow-wrap:normal;word-break:normal;hyphens:none}

/* One exclusive weather display, with controls scoped to that display. */
#weather-modes{display:flex;gap:8px;justify-content:center;flex:1;min-width:0}
#weather-modes button{border:1px solid #ffc300;border-radius:10px;background:#0a1824;color:white;padding:10px 19px;font:800 12px Inter,sans-serif;white-space:nowrap;cursor:pointer}
#weather-modes button[aria-pressed="true"]{background:#ffc300;color:#08131e}
#weather-modes button[data-control-error="true"]{background:#e73545;color:white;border-color:#e73545}
.imagery-mode-options,#layers-panel label[data-layer-id="convective"],#explorer-satellite{display:none!important}
body:not([data-weather-mode="spc"]) .mode-spc-control{display:none!important}
body[data-weather-mode="spc"] #radar-controls .mode-spc-control{display:inline-flex;align-items:center;gap:8px;margin:4px 12px 4px 0}
body[data-weather-mode="spc"] #radar-controls .mode-spc-control select{color:#08131e;background:#ffc300;width:auto;max-width:180px}
body:not([data-weather-mode="satellite"]) #radar-controls #satellite-loop-controls{display:none!important}
body[data-weather-mode="satellite"] #radar-controls #satellite-loop-controls{display:block}
body[data-weather-mode="satellite"] .fishacat-scan-meta,body[data-weather-mode="spc"] .fishacat-scan-meta,
body[data-weather-mode="satellite"] #explorer-radar-product,body[data-weather-mode="spc"] #explorer-radar-product,
body[data-weather-mode="satellite"] #radar-controls .radar-controls-body,body[data-weather-mode="spc"] #radar-controls .radar-controls-body,
body[data-weather-mode="satellite"] .fishacat-product-playback,body[data-weather-mode="spc"] .fishacat-product-playback,
body:not([data-weather-mode="radar"]) #explorer-nearest,body:not([data-weather-mode="radar"]) #explorer-second-nearest,
body:not([data-weather-mode="radar"]) #explorer-show-radars,body:not([data-weather-mode="radar"]) #explorer-probe{display:none!important}
#radar-controls #satellite-loop-controls{width:100%;margin:4px 0;padding:0;border:0}
#radar-controls .satellite-scrubber-row{display:flex;align-items:center;gap:8px}
#radar-controls #satellite-scrubber{flex:1;accent-color:#ffc300}
@media(max-width:1100px){#weather-modes{gap:4px}#weather-modes button{padding:9px 10px;font-size:11px}#header .header-search-btn span{display:none}}
@media(max-width:760px){#header{flex-wrap:wrap;height:auto;min-height:100px}#weather-modes{order:3;flex-basis:100%;padding:5px}#weather-modes button{flex:1}#map{top:100px}}

#spc-mode-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
body:not([data-weather-mode="spc"]) #spc-mode-controls{display:none!important}
#radar-controls #spc-mode-controls .mode-spc-control{flex-direction:row;width:auto;flex:0 1 auto;justify-content:flex-start}
#radar-controls #spc-mode-controls select{color:#08131e!important}

/* Compact, dedicated outlook controls. */
#radar-controls button:not([aria-pressed="true"]):not([data-control-active="true"]):not([data-control-error="true"]){background:#56616b!important;border-color:#89939c!important;color:#fff!important}
body[data-weather-mode="spc"] #radar-controls{width:340px;max-width:calc(100vw - 110px);min-width:0;padding:9px 14px;gap:0}
body[data-weather-mode="spc"] #radar-controls>:not(#spc-mode-controls){display:none!important}
#radar-controls #spc-mode-controls{justify-content:center;gap:8px 16px}
#spc-mode-title{flex:0 0 100%;text-align:center;font-size:13px;font-weight:800;line-height:1.3;color:#fff}
#radar-controls #spc-mode-controls .mode-spc-control{margin:0;gap:6px}

/* Local radar uses the same compact two-row playback layout as Composite. */
#radar-controls .fishacat-product-legend{display:none}
#radar-controls .fishacat-product-status{white-space:pre-line;color:#fff;font-weight:400;font-size:11px;line-height:1.45}
#radar-controls .fishacat-product-buttons{margin-top:0;gap:4px}
#radar-controls .fishacat-product-buttons button:not([data-action="retry"]){width:26px;min-width:26px;height:26px;padding:4px;border-radius:7px}
#radar-controls .fishacat-product-buttons button svg{display:block;width:16px;height:16px}

/* Organized workspace controls. Scientific colors remain tied to their legends. */
#layers-panel label,#layers-panel h3,#layers-panel h4,#layers-panel button,#ops-settings label,#ops-settings summary,#ops-settings h3,#ops-settings h4,#ops-settings legend,#ops-settings button{text-transform:capitalize}
#layers-panel .panel-subhead{color:#ffc300;font-weight:800;margin-top:18px}
#layers-panel .layer-mode-control{display:none}
#ops-settings [hidden],#radar-controls button[hidden]{display:none!important}
#ops-settings .layer-mode-control{display:block}
#header h1 small{display:block;color:#ffc300;font-size:10px;letter-spacing:.09em;margin-top:3px}
#weather-modes{gap:5px;flex-wrap:wrap;justify-content:center}
#weather-modes button{min-width:0!important;padding:7px 10px!important;font-size:11px!important;text-transform:none}
#header .header-left{flex-shrink:0}
.ops-smoothing{display:grid;gap:8px}.ops-smoothing input{width:100%;accent-color:#ffc300}.ops-smoothing output{color:#ffc300}
.ops-radar-imagery,.leaflet-fishacatRadar-pane{filter:blur(var(--ops-radar-smoothing,0px))}
.ops-outlook-controls{display:none;text-align:center;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;width:100%}
.ops-outlook-controls>strong{display:block;flex-basis:100%;font-weight:800;font-size:14px}
.ops-outlook-controls label{display:inline-flex;align-items:center;gap:6px;font-size:12px}
.ops-outlook-controls p{flex-basis:100%;margin:0;font-size:11px;color:#b6c7d3}
.ops-outlook-controls [role="status"]{flex-basis:100%;font-size:11px}
.ops-outlook-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;flex-basis:100%;font-size:10px}
.ops-outlook-legend span{display:flex;align-items:center;gap:4px}.ops-outlook-legend i{width:12px;height:12px;border-radius:3px;border:1px solid #ffffff66}
body[data-weather-mode="wpc"] #radar-controls,body[data-weather-mode="wssi"] #radar-controls{width:470px!important;max-width:calc(100vw - 110px)!important;padding:10px 14px!important}
body[data-weather-mode="wpc"] #radar-controls>:not(#wpc-mode-controls),body[data-weather-mode="wssi"] #radar-controls>:not(#wssi-mode-controls){display:none!important}
body[data-weather-mode="wpc"] #wpc-mode-controls,body[data-weather-mode="wssi"] #wssi-mode-controls{display:flex}
@media(max-width:1050px){#header{flex-wrap:wrap;height:auto!important;min-height:64px}#weather-modes{order:3;flex-basis:100%;padding:5px}#header .header-right{margin-left:auto}body{--ops-header-height:112px}}

#radar-drawing-tools[hidden]{display:none!important}
body[data-weather-mode="wpc"] #ops-map-warning-bar,body[data-weather-mode="wssi"] #ops-map-warning-bar{display:none!important}
@media(max-width:600px){
 #weather-modes{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:100%;padding:5px 0}
 #weather-modes button{width:100%;white-space:normal;min-height:32px;line-height:1.2;padding:5px 7px!important}
 #header{padding-bottom:6px!important}#map{top:128px!important}
 body[data-weather-mode="wpc"] #radar-controls,body[data-weather-mode="wssi"] #radar-controls{left:8px!important;right:8px!important;width:auto!important;max-width:none!important}
}

/* Wide, shallow outlook bars keep more of the map visible. */
body[data-weather-mode="wpc"] #radar-controls,body[data-weather-mode="wssi"] #radar-controls{width:780px!important;padding:7px 12px!important}
#radar-controls .ops-outlook-controls{gap:5px 14px;line-height:1.25}
#radar-controls .ops-outlook-controls>strong{flex:0 1 auto;font-size:13px}
#radar-controls .ops-outlook-controls>.select-row{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;width:auto}
#radar-controls .ops-outlook-controls label{margin:0;white-space:nowrap;font-size:11px}
#radar-controls .ops-outlook-controls select{width:auto;margin:0;min-height:23px;padding:2px 6px;font-size:11px}
#radar-controls .ops-outlook-legend{order:1;gap:6px 12px;flex-basis:100%}
#radar-controls .ops-outlook-controls>p,#radar-controls .ops-outlook-controls>[role="status"]{order:2;flex:0 1 auto;font-size:10px;margin:0}
@media(max-width:600px){#radar-controls .ops-outlook-controls>strong{flex-basis:100%}#radar-controls .ops-outlook-controls{gap:5px 9px}#radar-controls .ops-outlook-legend{gap:5px 8px}}
@media(max-width:600px){body[data-weather-mode="wpc"] #radar-controls,body[data-weather-mode="wssi"] #radar-controls{width:auto!important;max-width:calc(100vw - 16px)!important}}

/* Warning summaries keep detection evidence separate from NWS certainty. */
#alert-detail .warning-detail-title{font-size:22px;line-height:1.2;margin:4px 30px 12px 0;font-weight:800}
.warning-detail-summary{border:1px solid #ffc300;border-radius:10px;padding:10px;color:#ffc300;margin:10px 0 14px;background:#091725}
#alert-detail p,#alert-detail details{white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.5}
#alert-detail .warning-detail-summary strong{color:#ffc300}
#alert-detail details{margin:14px 0}#alert-detail details summary{cursor:pointer;color:#ffc300}
/* Tablet header: one deliberate full-width mode row. */
@media(min-width:601px) and (max-width:1400px){
 #header{display:flex;flex-wrap:wrap;height:auto!important;min-height:104px;padding:8px 16px!important;gap:6px}
 #header .header-right{margin-left:auto}#header .header-search-btn{width:auto;min-width:36px}#header .header-search-btn span{display:none}
 #weather-modes{order:3;flex:0 0 100%;display:flex;flex-wrap:nowrap;padding:0;gap:6px}
 #weather-modes button{flex:1 1 auto;white-space:nowrap;min-height:36px;padding:6px 8px!important}
 #map,#primary-nav{top:var(--responsive-header-height,112px)!important}
}
@media(max-width:600px){
 #header{min-height:96px!important;gap:4px;padding:6px 10px!important}
 #header .header-left{min-width:0;gap:8px}#header h1{font-size:14px}
 #weather-modes{display:flex!important;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:6px;padding:2px 0 5px;scrollbar-width:thin}
 #weather-modes button{flex:0 0 auto;width:auto;white-space:nowrap;min-height:36px;padding:7px 12px!important}
 #map{top:var(--responsive-header-height,104px)!important}
 #alerts-panel,#layers-panel,#search-panel,.ops-settings{top:calc(var(--responsive-header-height,104px) + 8px)!important;left:8px!important;right:8px!important;max-height:calc(100dvh - var(--responsive-header-height,104px) - 185px)!important}
 #primary-nav .primary-nav-btn{flex:0 0 62px!important;min-width:62px!important}
}

@media(min-width:601px) and (max-width:1400px){
 body:not(.ops-map-warning-on) #alerts-panel,body:not(.ops-map-warning-on) #layers-panel,body:not(.ops-map-warning-on) #search-panel,body:not(.ops-map-warning-on) .ops-settings{top:calc(var(--responsive-header-height,112px) + 8px)!important;max-height:calc(100dvh - var(--responsive-header-height,112px) - 140px)!important}
}

#alert-detail .warning-detail-summary{color:#fff}

/* GOES uses a compact bar with its own playback row. */
body[data-weather-mode="satellite"] #radar-controls{width:680px;max-width:calc(100vw - 110px);min-width:0;padding:6px 10px;gap:3px}
body[data-weather-mode="satellite"] #radar-controls .fishacat-product-toolbar{justify-content:flex-start;gap:4px;margin:0;min-height:0}
body[data-weather-mode="satellite"] #radar-controls #goes-map-status{padding:0;line-height:1.2}
body[data-weather-mode="satellite"] #radar-controls #satellite-loop-controls{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px 10px;margin:0}
body[data-weather-mode="satellite"] #radar-controls .satellite-loop-toolbar{flex-wrap:wrap}
body[data-weather-mode="satellite"] #radar-controls .satellite-frame-time{flex-basis:100%;margin:0}
body[data-weather-mode="satellite"] #radar-controls .satellite-scrubber-row{display:flex;flex-wrap:wrap;gap:2px 6px;margin:0}
body[data-weather-mode="satellite"] #radar-controls #satellite-scrubber{flex:1 0 100%;width:100%;margin:0}
body[data-weather-mode="satellite"] #satellite-frame-position{font-size:10px;line-height:1.2;margin:auto}
body[data-weather-mode="satellite"] #radar-controls .radar-camera-details{position:static;align-self:flex-end;margin:0;font-size:9px}
@media(max-width:600px){body[data-weather-mode="satellite"] #radar-controls{width:calc(100vw - 16px);max-width:calc(100vw - 16px)}body[data-weather-mode="satellite"] #radar-controls #satellite-loop-controls{grid-template-columns:minmax(0,1fr)}body[data-weather-mode="satellite"] #radar-controls .satellite-frame-time{flex-basis:auto;margin-left:auto}}
body[data-weather-mode="satellite"] #radar-controls .fishacat-overlay-shortcuts{flex:0 1 auto;width:auto;justify-content:flex-start}
body[data-weather-mode="satellite"] #radar-controls #radar-drawing-tools{margin-left:auto}
body[data-weather-mode="satellite"] #radar-controls #goes-map-status{padding-right:85px}
body[data-weather-mode="satellite"] #radar-controls .radar-camera-details{position:absolute;right:10px;top:36px;bottom:auto}
@media(max-width:600px){body[data-weather-mode="satellite"] #radar-controls .radar-camera-details{position:static;align-self:flex-end}body[data-weather-mode="satellite"] #radar-controls #goes-map-status{padding-right:0}}

/* Complete radar timelines, shared by Composite and all local products. */
#radar-controls .radar-scrubber-row,#radar-controls .product-full-timeline{display:grid;grid-template-columns:1fr auto 1fr;gap:4px 8px;align-items:center;min-width:0;flex:1}
#radar-controls .radar-scrubber-row input,#radar-controls .product-full-timeline input{grid-column:1/-1;width:100%;min-width:0;margin:0}
#radar-controls .radar-range-label{display:block;font-size:10px}
#radar-controls #radar-frame-position{position:static;width:auto;height:auto;overflow:visible;clip-path:none;font-size:10px;text-align:center}
#radar-controls .product-full-timeline span{font-size:10px;line-height:1.3;color:#fff}
#radar-controls .product-full-timeline [data-timeline="latest"]{text-align:right}
#radar-controls .product-full-timeline [data-timeline="position"]{text-align:center}
#radar-controls .radar-controls-body{align-items:center}
@media(max-width:600px){#radar-controls .product-full-timeline span{font-size:9px}#radar-controls .product-full-timeline{gap:4px}}

/* Reference-style warning summaries: real values inside blue fields. */
#alerts-list .alert-list-button[data-card-type],#alert-detail .warning-detail-summary{background:#06182a!important;border:1px solid #358be5!important;border-radius:14px;padding:13px;box-shadow:0 8px 24px #0004!important;color:#fff}
#alerts-list .alert-list-button[data-card-type]>strong{display:block;color:#fff!important;font-size:13px;margin:0 16px 12px 0;line-height:1.35}
#alerts-list .alert-list-button::after{color:#9fcaff;top:14px;right:10px}
.warning-field{display:grid!important;grid-template-columns:24px 64px minmax(0,1fr);align-items:center;gap:8px;margin:7px 0;white-space:normal;min-width:0}
.warning-field-icon{display:flex;align-items:center;color:#b6cce5}
.warning-field-icon svg{width:23px;height:23px;flex-shrink:0}
.warning-field-icon.area{color:#3899ff}.warning-field-icon.hazard{color:#ffc300}.warning-field-icon.severity{color:#fa433b}
#alerts-list .warning-field-label,#alert-detail .warning-detail-summary .warning-field-label{font:800 10px/1.3 Inter,sans-serif;color:#cfdaea!important;letter-spacing:.02em}
#alerts-list .warning-field-value,#alert-detail .warning-field-value{display:block;min-width:0;background:#1d3854;border-radius:5px;padding:7px 8px;color:#fff;font-size:11px;font-weight:400;line-height:1.4;overflow-wrap:anywhere;text-shadow:none}
#alerts-list .warning-field-value.gold,#alert-detail .warning-field-value.gold{color:#ffe16b!important;font-weight:800}
#alerts-list .warning-field-value.danger,#alert-detail .warning-field-value.danger{color:#ff9595!important;font-weight:800}
#alerts-list .warning-card-expiry{display:block;color:#c7d6e8!important;font-size:10px;margin-top:10px;line-height:1.4}
#alerts-list .alert-list-button[data-card-type][aria-pressed="true"]{outline:2px solid #ffc300;outline-offset:2px;filter:none}
#alerts-list .alert-list-button[data-card-type]:hover{filter:brightness(1.1)}
/* Match the reference's rounded navy playback dock and circular transport. */
body:is([data-weather-mode="radar"],[data-weather-mode="composite"]) #radar-controls{border:1px solid #47779b;border-radius:20px;background:#05192bf5;padding:9px 12px;box-shadow:0 10px 32px #0007}
#radar-controls .radar-controls-body,#radar-controls .fishacat-product-buttons{padding-top:6px;padding-bottom:3px;align-items:center;gap:8px}
#radar-controls #radar-play,#radar-controls .fishacat-product-buttons button[data-action="play"]{width:44px!important;height:44px!important;min-width:44px!important;border-radius:50%!important;border:2px solid white!important;background:#071b2d!important;color:#fff!important;box-shadow:0 3px 12px #0006!important;padding:10px!important}
#radar-controls #radar-play svg,#radar-controls .fishacat-product-buttons button[data-action="play"] svg{width:22px;height:22px;color:#fff!important;fill:currentColor}
#radar-controls .radar-scrubber-row input,#radar-controls .product-full-timeline input{appearance:none;-webkit-appearance:none;height:9px;border:0;border-radius:8px;background:radial-gradient(circle,#c9d4df 0 3px,transparent 4px) 0 50%/calc(100% / var(--frame-count,8)) 9px repeat-x,linear-gradient(90deg,#438cc2,#4aaf83,#d5c844,#f79642);cursor:pointer}
#radar-controls .radar-scrubber-row input::-webkit-slider-thumb,#radar-controls .product-full-timeline input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:#ffc300;border:2px solid #ffe784;box-shadow:0 0 0 3px #071b2d55}
#radar-controls .radar-scrubber-row input::-moz-range-thumb,#radar-controls .product-full-timeline input::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#ffc300;border:2px solid #ffe784}
#radar-controls .radar-range-label,#radar-controls .product-full-timeline span,#radar-controls #radar-frame-position{color:#e5effa;font-weight:600;padding-top:5px}
.reflectivity-enhanced,.palette-standard{filter:saturate(1.18) contrast(1.08)}

/* Compact map overlays: keep more of the weather visible. */
#radar-controls .radar-camera-details{display:none!important}
#radar-controls .radar-controls-body{padding-right:0}
#radar-controls .fishacat-product-buttons{margin-right:0}
body[data-weather-mode="satellite"] #radar-controls #goes-map-status{padding-right:0}
@media(min-width:721px){
  #alerts-panel{width:288px!important;padding:11px;max-height:calc(var(--ops-alert-available-height,calc(100dvh - 250px)) * .8)!important}
  #alerts-panel .alerts-header h2{font-size:16px}
  #alerts-list .alert-list-button[data-card-type],#alert-detail .warning-detail-summary{padding:10px}
  #alerts-panel .warning-field{grid-template-columns:20px 53px minmax(0,1fr);gap:6px;margin:5px 0}
  #alerts-panel .warning-field-icon svg{width:20px;height:20px}
  #alerts-list .warning-field-value,#alert-detail .warning-field-value{padding:5px 6px}
  #alerts-list .alert-list-button[data-card-type]>strong{margin-bottom:8px}
  body:is([data-weather-mode="radar"],[data-weather-mode="composite"]) #radar-controls{width:736px!important;max-width:calc(100vw - 110px);padding:6px 9px;border-radius:16px}
  #radar-controls .fishacat-product-toolbar{gap:4px;flex-wrap:nowrap;justify-content:flex-start}
  #radar-controls .fishacat-scan-meta{flex:0 0 98px;min-width:0}
  #radar-controls .fishacat-scan-meta .radar-controls-meta,#radar-controls .fishacat-product-status{font-size:10px}
  #radar-controls .fishacat-product-toolbar select{flex:0 1 132px;width:132px;min-width:90px;font-size:10px}
  #radar-controls .fishacat-product-toolbar button{font-size:10px;padding:2px 4px}
  #radar-controls .fishacat-product-toolbar button.fishacat-radar-icon{width:23px;min-width:23px}
  #radar-controls .fishacat-overlay-shortcuts{gap:3px;flex:0 0 auto}
  #radar-controls #radar-drawing-tools{margin-left:0;gap:3px}
  #radar-controls #radar-drawing-tools button{width:23px;height:24px;min-height:24px;padding:3px}
  #radar-controls .radar-controls-body,#radar-controls .fishacat-product-buttons{gap:6px;padding-top:3px;padding-bottom:0}
  #radar-controls #radar-play,#radar-controls .fishacat-product-buttons button[data-action="play"]{width:35px!important;height:35px!important;min-width:35px!important;padding:7px!important}
  #radar-controls .radar-btn,#radar-controls .fishacat-product-buttons button[data-action="prev"],#radar-controls .fishacat-product-buttons button[data-action="next"]{width:26px;min-width:26px}
  #radar-controls .radar-range-label,#radar-controls .product-full-timeline span,#radar-controls #radar-frame-position{padding-top:2px}
}
@media(min-width:721px){
  #radar-controls .fishacat-product-status{font-size:9px;white-space:pre;line-height:1.3}
  #radar-controls .fishacat-scan-meta .radar-controls-meta{font-size:9px}
}

/* Center playback glyphs at both compact and full control sizes. */
#radar-controls #radar-play,
#radar-controls .fishacat-product-buttons button[data-action="play"] {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0!important;
  line-height:1;
}
#radar-controls #radar-play svg,
#radar-controls .fishacat-product-buttons button[data-action="play"] svg {
  flex-shrink:0;
  margin:0;
}

/* Selected warnings use all space above playback; keep the alert list compact. */
#alerts-panel.alert-selected-only{max-height:var(--ops-alert-available-height,calc(100dvh - 250px))!important}
#alerts-panel.alert-selected-only #alert-detail{margin-top:0;padding-top:0;border-top:0}

/* Wrap complete control groups instead of letting drawing buttons escape the shell. */
#radar-controls .fishacat-product-toolbar{flex-wrap:wrap;min-width:0}
#radar-controls #radar-drawing-tools{flex-wrap:wrap;max-width:100%}
#monitor-layout{background:#ffd000;color:#071725;border:1px solid #ffd000;border-radius:5px;padding:4px;font-size:11px;max-width:110px}
#monitor-modal .modal-header{flex-wrap:wrap}
#monitor-grid[data-layout="horizontal"]{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}
#monitor-grid[data-layout="horizontal"][data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
#monitor-grid[data-layout="horizontal"][data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
#monitor-grid[data-layout="vertical"]{grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(160px,1fr)}
#monitor-grid[data-layout="horizontal"] .monitor-player{min-height:0}
#scanner-radio-restore{position:fixed;right:16px;bottom:42px;z-index:1100;width:48px;height:48px;display:grid;place-items:center;border:2px solid #ffd000;border-radius:12px;background:#081a28;color:#ffd000;box-shadow:0 4px 14px #0008;cursor:pointer}
#scanner-radio-restore[hidden]{display:none}
#scanner-radio-restore svg{width:30px;height:30px}
#scanner-radio-restore:focus-visible{outline:3px solid white;outline-offset:3px}
