*{box-sizing:border-box}body{margin:0;background:#0b1421;color:#e4edf7;font:15px system-ui,sans-serif}header{padding:24px max(20px,calc((100vw - 1400px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;border-bottom:1px solid #293b50;background:#101e30}h1{font-size:clamp(22px,3vw,32px);margin:6px 0}h2{font-size:18px;margin:0 0 16px}h3{font-size:15px}p{margin:8px 0}small,.note,footer{color:#9fb3ca;font-size:13px}header small{color:#50d5eb;letter-spacing:1px}main{max-width:1440px;margin:auto;padding:16px 20px 32px}section{background:#122033;border:1px solid #293b50;border-radius:12px;padding:18px;margin-bottom:16px;min-width:0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.metric{background:#192c42;padding:14px;border-radius:8px}.metric strong{display:block;font-size:25px;color:#61d8ed;margin-top:6px}.chart{height:250px}button,select,textarea{background:#20354c;color:#e4edf7;border:1px solid #3c536c;border-radius:7px;padding:10px;font:inherit}button{cursor:pointer}button:hover{background:#2b4764}button:disabled{opacity:.5}label{display:block;margin-bottom:6px}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}td,th{padding:10px;text-align:left;border-bottom:1px solid #293b50}th{color:#9fb3ca;font-weight:500}#map{height:350px;background:#192c42;border-radius:8px}.controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.warning{border-left:3px solid #e6b663;padding:10px;background:#302b24;color:#f2d8a2;font-size:13px}textarea{width:100%;min-height:75px}#answer{white-space:pre-wrap}a{color:#68cbe9}footer{line-height:1.6}@media(max-width:760px){.grid{grid-template-columns:1fr}main{padding:12px}section{padding:14px}header{padding:18px}#map{height:280px}}

#answer{white-space:normal;line-height:1.6;overflow-wrap:anywhere}#answer p{margin:8px 0}#answer ul,#answer ol{padding-left:24px;margin:8px 0}#answer li{margin:4px 0}#answer strong{color:#eaf5ff}#answer code{background:#20354c;padding:2px 4px;border-radius:3px}#asked{font-weight:600}#answerMeta{margin-top:12px}

#totals .metric strong{color:#66cfea}.controls label{margin:0}.chatTurn{margin:10px 0;padding:12px;background:#192c42;border-radius:9px;border-left:3px solid #50cbe1}.chatReply{line-height:1.6;overflow-wrap:anywhere}.chatReply ul,.chatReply ol{padding-left:24px}.chatTurn small{display:block;margin-top:8px}#chatLog:empty{display:none}#map{height:420px}@media(max-width:760px){#map{height:320px}}

.river-panel{border-color:#355269;background:#122033}.river-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.river-heading h2{margin-bottom:4px}.river-state{padding:7px 10px;border:1px solid #526276;border-radius:7px;color:#d7e3ef;font-size:12px;background:#20354c}.river-state[data-status="stale"]{color:#f2cf88}.river-state[data-status="ok"]{color:#75dec1}.river-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 18px}.river-metrics strong{font-size:clamp(21px,3vw,32px);color:#38bdf8}.river-metrics small{display:block;margin-top:4px}.river-metrics strong[data-trend="rising"]{color:#f4c56b}.river-chart{height:270px;position:relative;background:#101d2d;border-radius:8px}.river-empty{height:100%;display:grid;place-items:center;padding:24px;text-align:center;color:#a8bfd5;border:1px dashed #40556b;border-radius:8px}.river-empty[hidden],.river-chart canvas[hidden]{display:none}.river-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0;color:#9fb3ca;font-size:13px}@media(max-width:500px){.river-metrics{gap:8px}.river-metrics .metric{padding:10px}.river-chart{height:220px}}

.regional-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.regional-head h2{margin-bottom:4px}.regional-head .controls{margin-top:0}.regional-chart{height:320px;margin-top:16px}.regional-highlight{color:#72d7ee;font-weight:600}.selected-city{background:#1b3444}.city-link{padding:4px 0;border:0;background:transparent;color:#9cdef0;text-align:left}.city-link:hover{background:transparent;text-decoration:underline}.city-link:focus-visible{outline:2px solid #38bdf8}.regional-head + .metrics{margin:12px 0}#regionalMetrics small{display:block;margin-top:4px}@media(max-width:760px){.regional-chart{height:340px}}

#hydroMap{height:480px;background:#192c42;border-radius:9px;margin-top:14px}.hydro-expanded #hydroMap{height:78vh;min-height:420px}.hydro-legend{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;color:#c5d5e5;margin:12px 0}.hydro-legend span{display:inline-flex;align-items:center;gap:5px}.hydro-legend i{display:inline-block;width:13px;height:13px;border-radius:50%;border:1px solid #a8bfd5}#hydroMap .leaflet-popup-content button{color:#fff;background:#20354c}#hydroMap .leaflet-popup-content p{margin:5px 0}@media(max-width:760px){#hydroMap{height:400px}.hydro-expanded #hydroMap{height:70vh}.leaflet-control-layers{max-width:210px}}

/* Scoped Leaflet overrides: global section/label styles must not obscure layer controls. */
#hydroMap .leaflet-control-layers{background:#fff;color:#172b3d;border:1px solid #a9b9c8;border-radius:8px;box-shadow:0 2px 10px #0003;font-size:13px}
#hydroMap .leaflet-control-layers-list,#hydroMap .leaflet-control-layers-base,#hydroMap .leaflet-control-layers-overlays{background:transparent;color:#172b3d;border:0;border-radius:0;padding:0;margin:0}
#hydroMap .leaflet-control-layers-list{padding:8px}
#hydroMap .leaflet-control-layers label{display:block;margin:0;padding:5px 3px;color:#172b3d;font-size:13px;line-height:1.4;cursor:pointer}
#hydroMap .leaflet-control-layers label:hover{background:#eaf2f8;border-radius:4px}
#hydroMap .leaflet-control-layers input{accent-color:#1674c1;vertical-align:middle}
#hydroMap .leaflet-control-layers-separator{border-top:1px solid #cbd5df;margin:5px 0}
#hydroMap .leaflet-control-layers label span{color:inherit}

#observationsPanel td:last-child{font-size:12px;color:#a8bfd5}#observationsPanel .regional-head{margin-bottom:10px}

.cemaden-city{margin:12px 0;padding:12px;border:1px solid #355269;border-radius:8px}.cemaden-city h3{margin:0 0 6px}.cemaden-city td:last-child{font-size:12px;color:#a8bfd5}

#cemadenChartWrap[hidden]{display:none!important}#cemadenChartWrap{position:relative;width:100%}

#historyPanel .scroll{max-height:420px;overflow:auto}#historyPanel td{font-size:12px}

#riverGauge[hidden],#riverPointer[hidden]{display:none!important}.river-scale{position:relative;display:grid;grid-template-columns:3fr 1fr 1fr 1fr;min-height:36px;margin:16px 0;gap:0;border-radius:6px}.river-scale span{padding:8px 3px;text-align:center;font-size:11px;color:#101820;font-weight:700;background:#22c55e}.river-scale span:nth-child(2){background:#facc15}.river-scale span:nth-child(3){background:#fb923c}.river-scale span:nth-child(4){background:#ef4444}.river-scale i{position:absolute;top:-9px;bottom:-6px;width:3px;background:white;box-shadow:0 0 3px #000;transform:translateX(-50%)}#riverClass{font-weight:700}#riverClass[data-level=normal]{color:#22c55e}#riverClass[data-level=attention1]{color:#facc15}#riverClass[data-level=attention2]{color:#fb923c}#riverClass[data-level=alert]{color:#ef4444}

#riverPanel[hidden],#riverPeriodForm[hidden]{display:none!important}.river-history-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}.river-period{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}.river-period label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#a8bfd5}.river-period input{color-scheme:dark;background:#192c42;color:#e5eef8;border:1px solid #355269;border-radius:6px;padding:8px;font:inherit;min-width:180px}#riverPeriodNote{margin:8px 0}

.preventive-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.preventive-card,.preventive-official{background:#192c42;border:1px solid #355269;border-radius:8px;padding:14px}.preventive-card h3{font-size:14px;margin:0 0 10px}.preventive-card strong{font-size:18px;color:#38bdf8}.preventive-card p{font-size:13px;margin:7px 0}.preventive-card small{color:#a8bfd5}.preventive-card[data-level=attention1]{border-color:#facc15}.preventive-card[data-level=attention2]{border-color:#fb923c}.preventive-card[data-level=alert]{border-color:#ef4444}.preventive-official{margin-top:12px}

.preventive-card small{display:block;margin-top:8px;overflow-wrap:anywhere}.antecedent-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.antecedent-columns>div{min-width:0}.antecedent-columns .metrics{grid-template-columns:repeat(auto-fit,minmax(92px,1fr))}.antecedent-columns .chart{height:220px}#antecedentPanel [hidden]{display:none!important}#antecedentRiver{margin-top:16px}@media(max-width:800px){.antecedent-columns{grid-template-columns:1fr}}

.network-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}#networkLegend[hidden]{display:none!important}#networkDetails{line-height:1.5}

/* BHO6 — visible loading and high contrast on light and satellite maps */
.network-map-wrap{position:relative;isolation:isolate}
#networkStatus{margin:8px 0 12px;padding:10px 12px;border:1px solid #355269;border-radius:7px;color:#a8bfd5;font-size:13px;font-weight:600;background:#192c42}
#networkStatus[data-state=loading]{color:#67e8f9;border-color:#0891b2;background:#12354a}
#networkStatus[data-state=success]{color:#86efac;border-color:#25834a;background:#143526}
#networkStatus[data-state=warning]{color:#fde68a;border-color:#b7791f;background:#42321b}
#networkStatus[data-state=error]{color:#fca5a5;border-color:#b84a4a;background:#3e2129}
#networkToggle[aria-pressed=true]{border-color:#38bdf8;background:#17476b;color:#e0f2fe}
.network-loading[hidden]{display:none!important}
.network-loading{position:absolute;inset:0;z-index:1000;display:grid;place-items:center;background:rgba(12,23,38,.48);border-radius:8px;pointer-events:auto;padding:16px}
.network-loading-card{max-width:360px;display:flex;flex-direction:column;align-items:center;gap:12px;background:#122033;color:#e6f2ff;text-align:center;padding:23px;border-radius:12px;border:1px solid #38bdf8;box-shadow:0 8px 28px #0005}
.network-loading-card small{font-size:12px;line-height:1.5;color:#c4daeb}
.network-spinner{display:block;width:34px;height:34px;border:4px solid #355269;border-top-color:#38bdf8;border-right-color:#38bdf8;border-radius:50%;animation:bho-spin .85s linear infinite}
@keyframes bho-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.network-spinner{animation:none;border-color:#38bdf8 #355269 #38bdf8 #355269}}
#hydroMap .bho-line{filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);cursor:pointer}
#hydroMap .bho-reference{filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 1px #fff)}
#networkLegend{padding:8px 10px;background:#192c42;border:1px solid #355269;border-radius:6px;margin-top:10px}
#networkLegend i{border:1px solid #e2e8f0}

#comparisonPanel[hidden],#comparisonChartWrap[hidden]{display:none!important}#comparisonChartWrap{height:320px;margin-top:12px}#comparisonMetrics{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}#comparisonMetrics strong{font-size:18px}

#verificationTable[hidden]{display:none!important}#verificationTable{max-height:320px;overflow:auto;margin-top:12px}#verificationMetrics{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}#verificationMetrics strong{font-size:18px}

#aiExamples{flex-wrap:wrap;margin:10px 0 16px}#aiExamples button{font-size:12px}

#bulletinContent[hidden]{display:none!important}.bulletin-content{background:#192c42;border:1px solid #355269;border-left:3px solid #38bdf8;border-radius:8px;padding:16px;line-height:1.6;overflow-wrap:anywhere}.bulletin-content h3{color:#67e8f9;margin:14px 0 6px}.bulletin-content p{margin:7px 0;white-space:pre-wrap}

#bulletinLoading[hidden]{display:none!important}.bulletin-loading{display:flex;align-items:center;justify-content:center;gap:14px;min-height:96px;background:#192c42;border:1px solid #355269;border-radius:8px;color:#67e8f9}.bulletin-loading .network-spinner{flex-shrink:0;width:26px;height:26px}

#bulletinPrintSheet{display:none}@media print{@page{size:A4;margin:16mm}body:has(#bulletinPrintSheet){background:white!important;color:#17212c!important}body:has(#bulletinPrintSheet)>:not(#bulletinPrintSheet){display:none!important}#bulletinPrintSheet{display:block!important;color:#17212c!important;background:white!important;font:11pt/1.5 Arial,sans-serif}#bulletinPrintSheet h1{font-size:21pt;color:#123650;margin:0 0 8pt}#bulletinPrintSheet h2{font-size:14pt;margin:0 0 8pt;color:#123650}#bulletinPrintSheet h3{font-size:12pt;color:#175b79;break-after:avoid;margin:12pt 0 4pt}#bulletinPrintSheet p{margin:5pt 0;orphans:3;widows:3;overflow-wrap:anywhere}}

/* V0.9.1 — rain schedule and editorial bulletin */
.rain-schedule{margin:18px 0;padding:14px;border:1px solid #355269;border-radius:8px;background:#15263a}.rain-window-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:12px 0}.rain-window{display:flex;flex-direction:column;gap:5px;padding:10px 12px;border:1px solid #355269;border-left:4px solid #7dd3fc;background:#192c42;border-radius:5px}.rain-window[data-intensity=moderada]{border-left-color:#38bdf8}.rain-window[data-intensity=forte]{border-left-color:#818cf8}.rain-window small{color:#a8bfd5}
.report-layout{padding:0;overflow:hidden;background:#152337;border:1px solid #355269;border-left:1px solid #355269}.report-header{padding:24px;background:#173b56;border-bottom:3px solid #38bdf8;color:#f0f8ff}.report-header h1{font-size:26px;margin:7px 0}.report-header h2{font-size:17px;margin:0}.report-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;color:#a5e3fa}.report-meta{font-size:12px;color:#c2d8e8}.report-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;padding:16px}.report-tile{display:flex;flex-direction:column;gap:6px;background:#1c3147;border:1px solid #355269;border-radius:8px;padding:12px}.report-tile strong{font-size:22px;color:#67e8f9}.report-tile small{color:#a8bfd5;font-size:11px}.report-tile[data-level=attention1]{border-color:#eab308}.report-tile[data-level=attention2]{border-color:#fb923c}.report-tile[data-level=alert]{border-color:#ef4444}.report-tile[data-level=normal]{border-color:#22c55e}.report-section{padding:14px 18px!important;margin:0 16px 14px!important;border:1px solid #355269!important;background:#182b40!important;border-radius:7px}.report-section h3{margin:0 0 12px!important;padding-bottom:6px;border-bottom:1px solid #355269;color:#67e8f9}.report-section h4{font-size:14px;color:#a5e3fa;margin:14px 0 6px}.report-table-wrap{overflow:auto}.report-table-wrap table{width:100%;border-collapse:collapse;font-size:12px}.report-table-wrap th{background:#23435b;text-align:left;padding:8px}.report-table-wrap td{padding:8px;border-bottom:1px solid #355269}.report-narrative-block{padding-bottom:8px}.report-narrative-block ul{padding-left:20px;margin:6px 0}.report-narrative-block li{margin:4px 0}.report-disclaimer{font-size:11px;color:#a8bfd5;padding:8px 18px 16px}
@media print{#bulletinPrintSheet .report-header{background:#edf5fa!important;color:#123650!important;padding:13pt;border-bottom:3pt solid #175b79;print-color-adjust:exact;-webkit-print-color-adjust:exact}#bulletinPrintSheet .report-eyebrow,#bulletinPrintSheet .report-meta{color:#33566b!important}#bulletinPrintSheet .report-metrics{grid-template-columns:repeat(3,1fr);padding:10pt 0;gap:6pt}#bulletinPrintSheet .report-tile{background:#f0f5f8!important;border:1px solid #a8c0ce;break-inside:avoid;padding:7pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}#bulletinPrintSheet .report-tile strong{color:#123650;font-size:15pt}#bulletinPrintSheet .report-tile small,#bulletinPrintSheet .note,#bulletinPrintSheet .rain-window small{color:#455a6a!important}#bulletinPrintSheet .report-section{background:white!important;border:0!important;margin:0 0 9pt!important;padding:0!important;color:#17212c!important}#bulletinPrintSheet .report-section h3{color:#175b79!important;border-bottom:1pt solid #9fb9ca;padding-bottom:4pt;break-after:avoid}#bulletinPrintSheet .report-section h4{color:#175b79;break-after:avoid}#bulletinPrintSheet .report-table-wrap{overflow:visible}#bulletinPrintSheet .report-table-wrap th{background:#dceaf1!important;color:#123650;print-color-adjust:exact;-webkit-print-color-adjust:exact}#bulletinPrintSheet .report-table-wrap td{border-bottom:1px solid #d3dfe5}#bulletinPrintSheet tr,#bulletinPrintSheet .rain-window{break-inside:avoid}#bulletinPrintSheet .rain-window-list{grid-template-columns:repeat(2,1fr);gap:5pt}#bulletinPrintSheet .rain-window{background:#f4f8fb!important;color:#17212c!important;border-color:#b1c6d4;padding:6pt}#bulletinPrintSheet .report-disclaimer{color:#455a6a;padding:6pt 0;border-top:1px solid #a8c0ce}#bulletinPrintSheet .report-narrative-block{padding:0}}

#anaPanel[hidden],#anaCharts[hidden]{display:none!important}#anaMetrics{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}#anaCharts .river-chart{height:250px;margin-bottom:20px}

#anaLoading[hidden]{display:none!important}#anaEnd{color-scheme:dark;background:#20364c;color:#e6f2ff;border:1px solid #355269;padding:8px;border-radius:5px}#anaStation{max-width:280px}

.national-hidden,.national-error,#nationalScope[hidden],#nationalRain[hidden]{display:none!important}#municipalitySearch{max-width:180px;background:#20364c;color:#e6f2ff;border:1px solid #355269;border-radius:5px;padding:8px}#city{max-width:280px}header>div:last-child{display:flex;flex-wrap:wrap;align-items:center;gap:7px}

.municipality-picker{position:relative;min-width:245px;max-width:100%;flex:0 1 300px}.municipality-input{display:flex;align-items:stretch}.municipality-picker #municipalitySearch{flex:1;min-width:0;width:100%;max-width:none;border-radius:5px 0 0 5px}.municipality-input button{border-radius:0 5px 5px 0;margin:0;padding:8px 12px}.municipality-picker #city[hidden],#municipalityOptions[hidden]{display:none!important}#municipalityOptions{position:absolute;top:calc(100% + 4px);left:0;right:0;max-height:290px;overflow:auto;z-index:2000;background:#192c42;border:1px solid #46657e;border-radius:6px;box-shadow:0 8px 22px #0007;padding:4px}#municipalityOptions [role=option],.municipality-empty{padding:9px 10px;border-radius:4px;cursor:pointer;font-size:13px}#municipalityOptions [role=option]:hover,#municipalityOptions [role=option].active{background:#284d68;color:#fff}#municipalityOptions [aria-selected=true]{color:#67e8f9}.municipality-empty{cursor:default;color:#a8bfd5}

/* Radar and hydrographic map use the same full-width viewport. */
.radar-grid{grid-template-columns:minmax(0,1fr)}#radarPanel{grid-column:1/-1}#radarPanel #map{width:100%;height:480px;border-radius:9px;margin-top:14px}@media(max-width:760px){#radarPanel #map{height:400px}}

/* v0.9.2 application shell */
:root{--nav-width:238px}.app-header{position:sticky;top:0;z-index:2200;padding:16px 24px;margin-left:var(--nav-width);gap:12px;background:#101e30}.app-header h1{font-size:clamp(19px,2vw,26px)}.app-header .app-brand{min-width:0}.app-header .app-brand p{font-size:12px}.app-header>div:last-child{flex:1 1 380px;justify-content:flex-end}.app-header label{margin:0}#navToggle{display:none}#appNav{position:fixed;inset:0 auto 0 0;width:var(--nav-width);background:#101e30;border-right:1px solid #293b50;z-index:2300;display:flex;flex-direction:column;padding:20px 12px;overflow:auto}.nav-brand{padding:12px 12px 24px;font-weight:750;letter-spacing:1px;color:#61d8ed}.nav-brand small{display:block;margin-top:6px;letter-spacing:.5px;font-weight:400}#appNav nav{display:flex;flex-direction:column;gap:5px}#appNav nav a{display:flex;align-items:center;gap:12px;padding:12px;color:#c5d5e5;text-decoration:none;border-radius:8px;font-size:14px;border:1px solid transparent}#appNav nav a span{width:22px;text-align:center;font-size:21px;line-height:1;color:#9fb3ca}#appNav nav a:hover,#appNav nav a:focus-visible{background:#20354c}#appNav nav a.current{background:#183b50;color:#8ee5f5;border-color:#315d72}#appNav nav a.current span{color:#61d8ed}.nav-foot{margin-top:auto;padding:24px 12px 4px;color:#9fb3ca;font-size:12px;line-height:1.6}main{margin-left:var(--nav-width);max-width:none;padding:24px 28px 32px}#pageHeading{margin:0 0 16px}#pageTitle{font-size:26px;margin:5px 0} .page-eyebrow{font-size:11px;letter-spacing:1.4px;color:#61d8ed}.view-inactive{display:none!important}.page-empty{padding:24px;border:1px dashed #3c536c;border-radius:10px;color:#9fb3ca;margin-bottom:16px}.page-empty[hidden],#navBackdrop[hidden]{display:none!important}#navBackdrop{display:none}#status{font-size:12px;line-height:1.6;color:#a8bfd5;margin-bottom:16px}#radarPanel #map{height:480px} @media(max-width:1000px){:root{--nav-width:0px}#appNav{width:245px;transform:translateX(-100%);transition:transform .18s ease}.nav-open #appNav{transform:translateX(0)}#navToggle{display:inline-block;float:left;margin:0 12px 10px 0;padding:8px 12px}#navBackdrop:not([hidden]){display:block;position:fixed;inset:0;background:#0009;border:0;border-radius:0;z-index:2250;width:100%;height:100%}.app-header{padding:12px 16px;position:relative}.app-header>div:last-child{justify-content:flex-start}main{padding:16px}}@media(max-width:760px){#radarPanel #map{height:400px}.app-header>div:last-child{flex-basis:100%}.municipality-picker{min-width:180px;flex:1 1 200px}#pageTitle{font-size:23px}}

#riverPointer[hidden]{display:none!important}#riverPointer.stale-pointer{opacity:.85;background:repeating-linear-gradient(to bottom,#fff 0 5px,transparent 5px 8px);box-shadow:none}

.river-live-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.river-live-actions small{flex-basis:100%;text-align:right;color:#a8bfd5}.river-live-actions small:empty{display:none}#riverRefresh span{display:inline-block;font-size:18px;line-height:1}#riverRefresh.refreshing span{animation:river-refresh-spin 1s linear infinite}@keyframes river-refresh-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#riverRefresh.refreshing span{animation:none}}

.river-scale button{border:0;border-radius:0;padding:8px 3px;text-align:center;font-size:11px;color:#101820;font-weight:700;background:#22c55e;min-width:0;margin:0;cursor:pointer}.river-scale button:nth-child(2){background:#facc15}.river-scale button:nth-child(3){background:#fb923c}.river-scale button:nth-child(4){background:#ef4444}.river-scale button:hover{filter:brightness(1.12)}.river-scale button:focus-visible{outline:2px solid white;outline-offset:2px;z-index:1}.river-scale i{pointer-events:none}.river-chart-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0;font-size:12px}.river-chart-legend[hidden]{display:none!important}.river-chart-legend button{border-left:5px solid #22c55e;font-size:12px}.river-chart-legend button[data-river-band=attention1]{border-left-color:#facc15}.river-chart-legend button[data-river-band=attention2]{border-left-color:#fb923c}.river-chart-legend button[data-river-band=alert]{border-left-color:#ef4444}#riverAdvice{width:min(580px,calc(100% - 32px));max-height:85vh;overflow:auto;background:#122033;color:#e6f2ff;border:1px solid #42617d;border-radius:12px;padding:22px}#riverAdvice::backdrop{background:#000a}.river-advice-head{display:flex;justify-content:space-between;align-items:center;gap:12px}#riverAdvice li{margin:10px 0;line-height:1.5}#riverAdvice a{color:#67d8ed}#riverAdvice:not([open]){display:none}

.river-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px;margin:10px 0}.river-stat-grid .metric strong{font-size:21px}.river-tools,.river-presets{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.river-tools{margin:12px 0}.river-tools label{font-size:12px}.river-advanced{margin:16px 0}.river-presets button{padding:7px 10px}

.history-summary .metric strong{font-size:clamp(16px,1.3vw,23px);overflow-wrap:anywhere}.history-summary .metric small{display:block;margin-top:6px;color:#a8bfd5;font-size:11px}.history-collector-details{border:1px solid #31495f;border-radius:8px;padding:12px;margin:14px 0}.history-collector-details summary{cursor:pointer;color:#a8bfd5;font-weight:600}.history-filter{margin:14px 0}.history-table{max-height:560px;overflow:auto}.history-table thead th{position:sticky;top:0;background:#192c42;z-index:1;white-space:nowrap}.history-table td{font-variant-numeric:tabular-nums}.history-table tbody tr:nth-child(even){background:#ffffff03}.history-pagination{justify-content:flex-end;margin-top:12px}

#riverPeriodCurrent{border:1px solid #38bdf8}#riverPeriodCurrent small{display:block;color:#a8bfd5;font-size:11px;margin-top:4px}

.measurement-source{display:inline-block;vertical-align:middle;font-size:11px;font-weight:600;border:1px solid #47627b;border-radius:5px;padding:3px 7px;color:#cbdbea;background:#192c42;white-space:nowrap;margin-left:5px}.measurement-source[data-source=ANA]{color:#d8b4fe;border-color:#8058ae}.measurement-source[data-source=CEMADEN]{color:#6ee7b7;border-color:#367e68}.measurement-source-line{font-size:13px;color:#a8bfd5;margin:12px 0}

#bootScreen{position:fixed;inset:0;z-index:99999;background:#0d1725;display:flex;align-items:center;justify-content:center;padding:24px;text-align:center;color:#e4efff}#bootScreen[hidden]{display:none}body.initial-loading{overflow:hidden}body.initial-loading>header,body.initial-loading>aside,body.initial-loading>main{visibility:hidden}.boot-content{max-width:620px}.boot-content small{color:#38bdf8;letter-spacing:.12em}.boot-content h1{font-size:clamp(22px,3vw,32px)}.boot-spinner{width:42px;height:42px;border:3px solid #31495f;border-top-color:#38bdf8;border-radius:50%;margin:28px auto;animation:boot-spin 1s linear infinite}@keyframes boot-spin{to{transform:rotate(360deg)}}#bootContinue{margin-top:15px}

.radar-city-popup{min-width:205px;color:#dce9f7}.leaflet-popup:has(.radar-city-popup) .leaflet-popup-content-wrapper,.leaflet-popup:has(.radar-city-popup) .leaflet-popup-tip{background:#122033;color:#dce9f7}.radar-popup-title{display:block;font-size:14px;color:#62d8f0;margin-bottom:8px}.radar-popup-row{display:flex;justify-content:space-between;gap:12px;padding:4px 0;border-bottom:1px solid #30465a;font-size:12px}.radar-popup-row strong{white-space:nowrap}.radar-city-popup .radar-popup-note{font-size:11px;color:#a8bfd5;margin:8px 0}.radar-city-popup button{margin-top:8px;font-size:12px}

#navCollapse{display:none}@media(min-width:1001px){#navCollapse{display:flex;align-items:center;justify-content:flex-end;gap:8px;align-self:stretch;font-size:12px;padding:6px 10px;margin:0 0 4px;color:#b9d2e7}body.nav-collapsed{--nav-width:0px}body.nav-collapsed #appNav{display:none}body.nav-collapsed #navToggle{display:inline-block;float:left;margin:0 12px 8px 0;padding:8px 12px}body.nav-collapsed #navBackdrop{display:none}}

.radar-leaflet-popup .leaflet-popup-content-wrapper{background:#122033;color:#dce9f7}.radar-leaflet-popup .leaflet-popup-tip{background:#122033}.radar-leaflet-popup .leaflet-popup-content{margin:12px 18px 12px 13px}.radar-leaflet-popup .leaflet-popup-close-button{color:#c8ddec!important}.radar-leaflet-popup .leaflet-popup-scrolled{overflow-y:auto;border:0;scrollbar-color:#526b81 #122033}.radar-leaflet-popup .radar-popup-row{padding:3px 0}.radar-leaflet-popup .radar-popup-note{margin:5px 0}

#riverPresets button[aria-pressed=true]{background:#183b50;border-color:#38bdf8;color:#8ee5f5;box-shadow:inset 0 -2px 0 #38bdf8}

#sourcesRows td[data-source-state=ok]{color:#46d8b1}#sourcesRows td[data-source-state=partial],#sourcesRows td[data-source-state=stale]{color:#f4c56b}#sourcesRows td[data-source-state=unavailable]{color:#ef7777}#sourcesRows td[data-source-state=unknown],#sourcesRows td[data-source-state=not_configured]{color:#a8bfd5}

/* Operation is restricted to the selected municipal station. */
#operationNav[hidden],#operationPanel[hidden]{display:none!important}
#operationPanel h3{margin-top:1.4rem}
#operationPanel .regional-chart{min-height:240px}

/* Compact operational dashboard: status is conveyed by text and color. */
#operationPanel .op-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}
#operationPanel .op-tile{display:flex;flex-direction:column;gap:7px;min-width:0;padding:18px;border:1px solid #30465a;border-radius:12px;background:#132437;border-top:3px solid #38bdf8}
#operationPanel .op-tile span{font-size:14px;font-weight:700;color:#b9d2e7}
#operationPanel .op-tile strong{font-size:clamp(24px,2.6vw,42px);line-height:1.1;color:#e6f5ff;font-variant-numeric:tabular-nums}
#operationPanel .op-tile small{font-size:11px;color:#a8bfd5;overflow-wrap:anywhere}
#operationPanel .op-tile[data-state=rising]{border-top-color:#f4c56b}
#operationPanel .op-tile[data-state=rising] strong{color:#f4c56b}
#operationPanel .op-tile[data-state=falling] strong{color:#38bdf8}
#operationPanel .op-tile[data-state=stale],#operationPanel .op-tile[data-state=partial]{border-top-color:#f4c56b}
#operationPanel .op-tile[data-state=stale] strong,#operationPanel .op-tile[data-state=partial] strong{color:#f4c56b}
#operationPanel .op-tile[data-state=unavailable],#operationPanel .op-tile[data-state=not_configured],#operationPanel .op-tile[data-state=awaiting_integration]{border-top-color:#8596a8}
#operationPanel .op-panels{display:grid;grid-template-columns:1.3fr 1fr;gap:12px}
#operationPanel .op-panel{min-width:0;background:#122033;border:1px solid #30465a;border-radius:12px;padding:14px}
#operationPanel .op-panel h3{margin:0 0 12px;font-size:16px}
#operationPanel .regional-chart{height:220px;min-height:0}
#operationPanel .river-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#operationPanel .op-bar-row{display:grid;grid-template-columns:minmax(90px,1fr) minmax(30px,1.4fr) minmax(70px,auto);gap:8px;align-items:center;margin:12px 0;font-size:12px}
#operationPanel .op-bar-row strong{text-align:right;font-variant-numeric:tabular-nums}
#operationPanel .op-bar-track{height:10px;border-radius:5px;background:#26394e;overflow:hidden}
#operationPanel .op-bar-fill{height:100%;background:#38bdf8;border-radius:5px}
#operationPanel .op-bar-fill[data-state=stale],#operationPanel .op-bar-fill[data-state=partial]{background:#f4c56b}
#operationPanel .op-bar-fill[data-state=unavailable]{background:#8596a8}
#operationPanel .op-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
#operationPanel .op-links a{padding:9px 12px;border:1px solid #30465a;border-radius:8px;text-decoration:none;color:#9edff5}
#operationPanel canvas[hidden],#operationPanel p[hidden]{display:none!important}
@media(max-width:1100px){#operationPanel .op-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#operationPanel .op-panels{grid-template-columns:1fr}#operationPanel .op-tile{padding:12px}#operationPanel .op-tile strong{font-size:26px}}

/* Operation: compact desktop layout, preserving readable mobile scrolling. */
@media(min-width:1001px){
 body.operation-page main{padding-top:10px;padding-bottom:8px}
 body.operation-page #pageHeading{display:none}
 body.operation-page main>footer,body.operation-page #status{display:none}
 body.operation-page #operationPanel{padding:12px;margin-bottom:0}
 body.operation-page #operationPanel .regional-head{gap:6px;align-items:center}
 body.operation-page #operationPanel .regional-head h2{margin:0;font-size:17px}
 body.operation-page #operationPanel .regional-head p{margin:3px 0}
 body.operation-page #operationPanel .op-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:8px 0}
 body.operation-page #operationPanel .op-tile{padding:12px;gap:4px}
 body.operation-page #operationPanel .op-tile strong{font-size:clamp(24px,2.5vw,38px)}
 body.operation-page #operationPanel .op-panel{padding:10px}
 body.operation-page #operationPanel .op-panel h3{margin:0 0 5px}
 body.operation-page #operationPanel .regional-chart{height:clamp(130px,calc(100vh - 570px),225px);margin-top:4px}
 body.operation-page #operationGauge{margin:8px 0!important}
 body.operation-page #operationGauge .river-scale{min-height:28px;margin:8px 0 4px!important}
 body.operation-page #operationGauge .river-scale span{padding:5px 2px}
 body.operation-page #operationPanel .note{margin:4px 0;line-height:1.35}
 body.operation-page #operationChanges .metric{padding:8px}
 body.operation-page #operationChanges .metric strong{margin-top:3px}
 body.operation-page #operationPanel .op-bar-row{margin:9px 0}
 body.operation-page #operationPanel .op-links{margin-top:8px;gap:6px}
 body.operation-page #operationPanel .op-links a{padding:6px 10px}
}

/* Keep the menu trigger in its own column instead of floating through the title. */
@media(min-width:1001px){
 body.nav-collapsed .app-header .app-brand{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;align-items:center;flex:1 1 auto}
 body.nav-collapsed .app-header #navToggle{float:none;grid-column:1;grid-row:1 / 4;align-self:center;margin:0}
 body.nav-collapsed .app-header .app-brand>small,body.nav-collapsed .app-header .app-brand>h1,body.nav-collapsed .app-header .app-brand>p{grid-column:2;margin-left:0}
 body.nav-collapsed .app-header .app-brand>h1{margin-top:4px;margin-bottom:4px;line-height:1.2}
 body.nav-collapsed .app-header .app-brand>p{margin-top:2px;margin-bottom:0}
 body.nav-collapsed .app-header>div:last-child{flex:0 1 auto}
}

/* Official warnings, independent of the compact operation dashboard. */
#alertsNav[hidden],#alertsPanel[hidden]{display:none!important}
#alertsPanel .alert-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 22px}
#alertsPanel .alert-summary>div{display:flex;flex-direction:column;gap:8px;padding:16px;background:#172b40;border:1px solid #30465a;border-radius:10px}
#alertsPanel .alert-summary strong{font-size:clamp(20px,2vw,30px);line-height:1.2;overflow-wrap:anywhere}
#alertsPanel .alert-summary small{color:#b9d2e7}
#alertsPanel .alert-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:12px;margin:10px 0 22px}
#alertsPanel .alert-detail{background:#132437;border:1px solid #30465a;border-left:5px solid #9fb3ca;padding:16px;border-radius:10px;min-width:0}
#alertsPanel .alert-detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#alertsPanel .alert-detail-head h3{margin:0;color:#e5f0fa}
#alertsPanel .alert-detail p{font-size:13px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere;margin:6px 0;color:#c5d5e5}
#alertsPanel .alert-detail h4{margin:14px 0 4px;color:#9edff5}
#alertsPanel .alert-detail a{display:inline-block;margin-top:12px;padding:8px 12px;border:1px solid #395970;border-radius:7px;color:#9edff5;text-decoration:none}
@media(max-width:650px){#alertsPanel .alert-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#alertsPanel .alert-summary>div:last-child{grid-column:1/-1}}

#alertsNavCount{margin-left:auto;white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums;font-size:11px}

#alertsMapPanel{padding:12px;border:1px solid #30465a;border-radius:10px;margin:12px 0 20px;background:#132437}
#alertsMapPanel h3{margin:0}
#alertsMap{height:clamp(320px,48vh,540px);border-radius:8px;z-index:0;background:#243749}
#alertsMapPanel.expanded #alertsMap{height:75vh}
.alert-map-legend{display:flex;flex-wrap:wrap;gap:16px;margin:10px 0}
.alert-map-legend span{display:flex;align-items:center;gap:6px;font-size:12px}
.alert-map-legend i{display:inline-block;width:13px;height:13px;border-radius:2px}

/* Consistent map expansion and native fullscreen, without recreating Leaflet instances. */
#radarPanel.radar-expanded #map{height:75vh;min-height:320px}
#hydroMapPanel:fullscreen,#radarPanel:fullscreen,#alertsMapPanel:fullscreen{
 box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:14px;
 background:#101e30;color:#e5f0fa;overflow:auto;border:0;border-radius:0;
 display:flex;flex-direction:column;gap:6px;
}
#hydroMapPanel:fullscreen #networkMapWrap{flex:1 0 55vh;min-height:0;display:flex;flex-direction:column}
#hydroMapPanel:fullscreen #hydroMap{flex:1;min-height:0;height:auto;margin-top:0}
#radarPanel:fullscreen #map,#alertsMapPanel:fullscreen #alertsMap{flex:1 0 55vh;min-height:0;height:auto;margin-top:0}
#hydroMapPanel:fullscreen .regional-head,#radarPanel:fullscreen .regional-head,#alertsMapPanel:fullscreen .regional-head{flex-shrink:0}
#hydroMapPanel:fullscreen .note,#radarPanel:fullscreen .note,#alertsMapPanel:fullscreen .note{margin:3px 0}
#hydroMapPanel:fullscreen .leaflet-container,#radarPanel:fullscreen .leaflet-container,#alertsMapPanel:fullscreen .leaflet-container{width:100%}

/* Situation room: reuse live Operation widgets, with a dedicated radar column. */
#situationClock[hidden],#situationRadarSlot[hidden]{display:none!important}
body.situation-mode #appNav,body.situation-mode .app-header,body.situation-mode #navBackdrop,body.situation-mode #pageHeading{display:none!important}
body.situation-mode main{margin:0!important;padding:0!important;width:100%;max-width:none}
body.situation-mode #operationPanel{position:fixed;inset:0;z-index:1200;margin:0;padding:12px;box-sizing:border-box;overflow:auto;border:0;border-radius:0;background:#101e30;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:8px}
body.situation-mode #operationPanel>.regional-head{grid-column:1;grid-row:1;margin:0}
body.situation-mode #operationActions,body.situation-mode #operationPanel .op-links{display:none}
body.situation-mode #situationClock{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
#situationTime{font-size:clamp(23px,2.2vw,42px);font-variant-numeric:tabular-nums;color:#e5f0fa;line-height:1}
#situationDate{font-size:12px;color:#a9c4dc}
body.situation-mode #opOfficialAlerts{grid-column:1/-1;grid-row:2;margin:0!important;font-size:clamp(12px,1vw,17px)!important}
body.situation-mode #operationPanel .op-kpis{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;gap:8px}
body.situation-mode #operationPanel .op-tile{padding:10px;min-width:0}
body.situation-mode #operationPanel .op-tile strong{font-size:clamp(26px,3vw,58px);line-height:1.15}
body.situation-mode #operationPanel .op-tile span{font-size:clamp(12px,1.15vw,21px)}
body.situation-mode #operationPanel .op-tile small{font-size:clamp(11px,.8vw,15px)}
body.situation-mode #operationPanel .op-panels{grid-column:1;grid-row:4;grid-template-columns:1fr 1fr;gap:8px;min-height:0}
body.situation-mode #operationPanel .op-panel{padding:10px;overflow:auto}
body.situation-mode #operationPanel .op-panel h3{font-size:clamp(13px,1vw,19px);margin:0 0 4px}
body.situation-mode #operationPanel .regional-chart{height:clamp(110px,23vh,350px)}
body.situation-mode #operationPanel .op-bar-row{margin:6px 0;font-size:12px;grid-template-columns:minmax(70px,1fr) minmax(20px,1fr) auto;gap:5px}
body.situation-mode #operationPanel .note{font-size:11px;margin:4px 0;line-height:1.3}
body.situation-mode #operationPanel .river-scale span{font-size:10px;line-height:1.15}
body.situation-mode #operationPanel #operationGauge .river-scale{min-height:36px}
body.situation-mode #situationRadarSlot{grid-column:2;grid-row:4;display:flex;flex-direction:column;min-width:0;min-height:0;padding:10px;border:1px solid #30465a;border-radius:10px;background:#132437}
body.situation-mode #situationRadarSlot h3{margin:0;font-size:clamp(14px,1.2vw,22px)}
body.situation-mode #situationRadarMount{flex:1;min-height:160px;display:flex}
body.situation-mode #situationRadarMount #map{flex:1;width:100%;height:auto!important;min-height:0;margin:0;border-radius:8px}
body.situation-mode #operationPanel>p.note{grid-column:1/-1;grid-row:5;margin:0}
@media(max-width:1250px),(max-height:700px){
 body.situation-mode #operationPanel{grid-template-rows:auto auto auto minmax(360px,1fr) auto}
 body.situation-mode #operationPanel .op-panels{grid-template-columns:1fr;overflow:auto}
 body.situation-mode #operationPanel .op-panel{overflow:visible}
}
@media(max-width:760px){
 body.situation-mode #operationPanel{display:flex;flex-direction:column}
 body.situation-mode #operationPanel .op-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.situation-mode #operationPanel .op-panels{overflow:visible}
 body.situation-mode #situationRadarSlot{min-height:360px}
}

/* r4.1: widescreen situation room, scoped to presentation mode only. */
body.situation-mode #operationPanel #operationActions{display:none!important}
body.situation-mode #operationPanel .op-links{display:none!important}
body.situation-mode #operationPanel>.regional-head{min-width:0}
body.situation-mode #operationPanel>.regional-head h2{font-size:clamp(17px,1.3vw,25px);margin:0}
body.situation-mode #operationPanel #situationClock{min-width:0;gap:8px}
body.situation-mode #operationPanel #situationClock button{padding:6px 9px;white-space:nowrap}
@media(min-width:1251px) and (min-height:701px){
 body.situation-mode #operationPanel{grid-template-columns:minmax(0,62fr) minmax(0,38fr);grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:10px}
 body.situation-mode #operationPanel .op-panels{grid-template-columns:minmax(0,38fr) minmax(0,24fr);gap:10px;overflow:visible}
 body.situation-mode #operationPanel .op-panel{display:flex;flex-direction:column;min-height:0;overflow:auto;padding:12px}
 body.situation-mode #operationPanel .op-panel:first-child .regional-chart{flex:1 0 150px;height:auto;min-height:150px;position:relative}
 body.situation-mode #operationPanel .op-panel:first-child .regional-chart canvas{max-width:100%}
 body.situation-mode #operationPanel .op-panel:first-child #operationGauge{flex-shrink:0}
 body.situation-mode #operationPanel .op-panel:first-child #operationChanges{flex-shrink:0}
 body.situation-mode #operationPanel .op-panel:first-child #operationRiverNote{flex-shrink:0}
 body.situation-mode #operationPanel .op-panel:nth-child(2) #operationRegionalRows{flex:1;display:flex;flex-direction:column;justify-content:space-evenly;min-height:0}
 body.situation-mode #operationPanel .op-panel:nth-child(2) .op-bar-row{margin:5px 0;font-size:clamp(11px,.86vw,16px);grid-template-columns:minmax(80px,1.2fr) minmax(24px,1fr) auto}
 body.situation-mode #operationPanel .op-panel:nth-child(2) #operationBehavior{margin-top:8px}
 body.situation-mode #operationPanel .op-panel:nth-child(2) .op-behavior-grid .metric{min-width:0;overflow-wrap:anywhere}
 body.situation-mode #operationPanel .op-panel:nth-child(2) .op-behavior-grid .metric strong{font-size:clamp(15px,1.15vw,22px)!important}
 body.situation-mode #operationPanel #situationRadarSlot{padding:12px}
 body.situation-mode #operationPanel #operationGauge .river-scale span{font-size:clamp(10px,.76vw,14px)}
}
body.situation-mode #operationPanel:fullscreen{width:100%;height:100%;max-width:none;max-height:none}

/* Compact gauge labels in the situation room; preserve the regular Operation scale. */
#operationGauge .operation-scale-limit{font-size:inherit;color:inherit;font-weight:inherit}
#operationGauge .situation-scale-legend{display:none}
body.situation-mode #operationGauge .operation-scale-limit{display:none}
body.situation-mode #operationPanel #operationGauge .river-scale span{font-size:clamp(9px,.68vw,12px);padding:5px 1px;display:flex;align-items:center;justify-content:center;text-align:center;overflow-wrap:normal}
body.situation-mode #operationGauge .situation-scale-legend{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:7px 0 4px;font-size:clamp(10px,.72vw,13px);color:#c5d5e5}
body.situation-mode #operationGauge .situation-scale-legend span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
body.situation-mode #operationGauge .situation-scale-legend i{display:inline-block;width:9px;height:9px;border-radius:2px}

#opIntelligence{margin-top:8px;padding:8px;border:1px solid #30465a;border-radius:8px;background:#172b40}#opIntelligence h3{margin:0 0 4px!important}#opIntelligenceText{font-size:12px;line-height:1.4;margin:4px 0;color:#dbe9f4}#opIntelligence[data-quality=partial],#opIntelligence[data-quality=unavailable]{border-left:3px solid #f4c56b}body.situation-mode #opIntelligence{flex-shrink:0}body.situation-mode #opIntelligenceText{font-size:clamp(11px,.8vw,15px)}

/* Equipment table pagination */
#equipmentTable{scroll-margin-top:120px}.equipment-pagination-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}#equipmentPagination:not([hidden]){display:flex;align-items:center;gap:6px;flex-wrap:wrap}#equipmentPagination button{min-width:36px}#equipmentPagination .equipment-page-current{background:#164e63;border-color:#38bdf8;color:#e0f2fe;font-weight:700}#equipmentPagination span{padding:0 4px;color:#9fb3ca}

/* Sensor reading timestamp */
#equipmentSensorCards .equipment-last-reading{display:flex;flex-direction:column;gap:4px;margin:10px 0;padding:9px 0;border-top:1px solid #304459;border-bottom:1px solid #304459}#equipmentSensorCards .equipment-last-reading span{font-size:12px;color:#a8bfd5}#equipmentSensorCards .equipment-last-reading time{font-size:18px;font-weight:700;color:#e0f2fe;font-variant-numeric:tabular-nums;line-height:1.35}#equipmentSensorCards .equipment-reading-count,#equipmentSensorCards .equipment-reading-stats{display:block;line-height:1.6}#equipmentSensorCards .equipment-reading-stats{margin-top:4px}

/* Oracle: simplified precipitation overview */
.rain-simple-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.rain-simple-grid .metric{min-width:0;padding:16px}.rain-simple-grid .metric strong{font-size:clamp(17px,1.6vw,25px);overflow-wrap:anywhere}.rain-simple-grid .metric small{display:block;color:#a8bfd5;margin-top:8px;font-size:12px}.rain-simple-totals{grid-template-columns:repeat(6,minmax(0,1fr))}.rain-simple-chart{height:245px;position:relative}.rain-simple-chart[hidden]{display:none}#rainTechnical>summary{cursor:pointer;font-weight:600;color:#67d8ed}#rainTechnical>section{margin-top:16px}#rainTechnical>section[hidden]{display:none!important}@media(max-width:1050px){.rain-simple-grid,.rain-simple-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.rain-simple-grid{gap:8px}.rain-simple-grid .metric{padding:10px}.rain-simple-chart{height:210px}}
