@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Prompt:wght@500;600;700&display=swap");
/* Same font provider/subset as the accepted app stylesheet, without loading the legacy UI. */
/* Shared presentation tokens. Hazard palettes stay in their accepted contracts. */
:root.cc-theme{--bg-app:#071426;--bg-panel:#0d2238;--bg-elevated:#14334e;--bg-field:#0a1c30;--border-subtle:#29455f;--text-primary:#eaf4ff;--text-secondary:#b2c9de;--text-muted:#90a9bf;--accent-primary:#299eff;--accent-cyan:#68d8f3;--radius-sm:8px;--radius-md:12px;--radius-lg:18px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--shadow-panel:0 8px 24px #0002;--motion-fast:120ms;--motion-normal:180ms;color-scheme:dark}
html.cc-theme body{margin:0;background:var(--bg-app);color:var(--text-primary);font-family:"Prompt","Leelawadee UI",Tahoma,sans-serif;line-height:1.65}
.cc-theme [hidden]{display:none!important}
.cc-theme[data-cc-page=risk]:not([data-cc-ready=true]) .app-shell{visibility:hidden}
.cc-theme *{box-sizing:border-box}
.cc-theme #operational-home{--hd-ink:var(--text-primary);--hd-muted:var(--text-secondary);--hd-line:var(--border-subtle);--hd-blue:var(--accent-primary);--hd-navy:#0d2842;--hd-bg:var(--bg-app);color:var(--text-primary)}
.cc-theme #operational-home :is(.hd-card,.hd-panel,.hd-map-card,.hd-watch,.hd-situation,.hd-area-details,.hd-filters,.hd-province-grid>button,.hd-scope-controls,.hd-critical,.wi-threshold,.rd-period,.rd-table,.ws-health-card,.oa-limitation,.aq-health,.aq-hotspot,.aq-summary,.aq-detail){background:var(--bg-panel)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important;box-shadow:var(--shadow-panel)}
.cc-theme #operational-home :is(.hd-card,.hd-panel,.hd-map-card,.hd-watch){border-radius:var(--radius-lg)}
.cc-theme #operational-home .hd-provinces{background:var(--bg-panel)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important}
.cc-theme #operational-home :is(.aq-layer-controls,.aq-detail-metrics>div){background:var(--bg-elevated)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important}
.cc-theme #operational-home :is(h1,h2,h3,h4,strong,b,time,dt,dd){color:inherit}
.cc-theme #operational-home :is(h1,h2,h3,h4,dt,dd){color:var(--text-primary)!important}
.cc-theme #operational-home :is(p,small,label,dt,.hd-section-meta,.hd-source-note,.wi-note,.ws-note,.rux-note,.aq-note,.rd-note,.oa-note){color:var(--text-secondary)}
.cc-theme #operational-home :is(p,small,label,.hd-source-note,.hd-section-meta,.wi-note,.ws-note,.rd-note,.aq-note,.oa-note){color:var(--text-secondary)!important}
.cc-theme #operational-home .wi-summary :is(h1,p,time,.hd-eyebrow,.hd-clock,.hd-clock span,.hd-headline,.wi-source-anchor strong){color:var(--text-primary)!important}
.cc-theme #operational-home .wi-summary .wi-concept{color:var(--text-primary)!important}
.cc-theme #operational-home .ws-summary-counts>span{color:var(--text-secondary)!important}
.cc-theme #operational-home :is(.aq-attention,.ws-tabs,.ws-tab-nav,.ws-section-nav,.oa-filter-state){background:var(--bg-elevated)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important}
.cc-theme #operational-home :is(.hd-hero-top,.hd-headline,.hd-eyebrow,.hd-clock,.hd-clock span,.hd-clock time,.hd-card-reading strong,.hd-card-label){color:var(--text-primary)!important}
.cc-theme #operational-home a{color:var(--accent-cyan)}
.cc-theme #operational-home a:not([data-cc-nav]){color:var(--accent-cyan)!important}
.cc-theme #operational-home summary{color:var(--text-primary)!important}
.cc-theme #operational-home :is(.wd-tabs,.wd-notice,.ws-chart){background:var(--bg-elevated)!important;color:var(--text-secondary)!important;border-color:var(--border-subtle)!important}
.cc-theme #operational-home :is(#rd-chart,#ws-chart) svg text{fill:var(--text-secondary)!important}
.cc-theme #operational-home #rd-chart :is(polyline,circle){stroke:var(--accent-cyan)!important}
.cc-theme #operational-home #rd-chart circle{fill:var(--accent-cyan)!important}
.cc-theme #operational-home .cc-active-strip{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;padding:12px 16px;border:1px solid var(--border-subtle);background:var(--bg-elevated);border-radius:12px;margin:12px 0;color:var(--text-primary)}
.cc-theme #operational-home .cc-active-strip>span{display:flex;gap:10px;align-items:center;font-size:15px}
.cc-theme #operational-home .cc-active-strip>p{flex:1;min-width:200px;font-size:12px}
.cc-theme #operational-home .cc-active-strip>a{font-size:13px;min-height:44px;display:flex;align-items:center}
.cc-theme #operational-home :is(button,select,input:not([type=checkbox]):not([type=range]),textarea){background:var(--bg-field)!important;color:var(--text-primary)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-sm);min-height:44px;font:inherit;max-width:100%}
.cc-theme #operational-home button:hover,.cc-theme #operational-home summary:hover{background:var(--bg-elevated)!important;border-color:#4384b2!important}
.cc-theme #operational-home button:is([aria-pressed=true],[aria-current=true],.hd-primary,.rd-primary){background:#125993!important;color:#fff!important;border-color:var(--accent-cyan)!important}
.cc-theme #operational-home :is(.hd-chip,.hd-freshness,.hd-count,.wi-concept,.wi-relation,.oa-badge,.hd-badge,.aq-chip){background:var(--bg-elevated);border-color:var(--border-subtle);color:var(--text-primary)}
.cc-theme #operational-home .oa-severity{background:var(--bg-elevated);color:var(--text-primary)}
.cc-theme #operational-home .hd-freshness{font-size:12px;color:var(--text-secondary);background:var(--bg-elevated)}
.cc-theme #operational-home :is(.hd-detail-meta,.wi-facts,.aq-facts,.ws-facts){color:var(--text-primary)}
.cc-theme #operational-home :is(td,th,dt,dd){border-color:var(--border-subtle)!important}
.cc-theme #operational-home :is(th,.wi-operational-summary>span,.hd-province-stats,.hd-detail-meta,.wi-rank,.oa-summary-tertiary,.oa-summary-secondary){background:var(--bg-elevated)!important;color:var(--text-primary)!important}
.cc-theme #operational-home :is(.wi-operational-summary b,.wi-summary-counts b,.ws-summary-counts b,.aq-reading,.oa-summary-primary b){color:var(--text-primary)!important}
.cc-theme #operational-home :is(.wi-operational-summary>span,.wi-threshold,.wi-evidence-teaser,.wi-main #wi-chart,.rd-evidence,.hd-alert-group,.hd-watch-item,.hd-selection-bar,.oa-areas button){background:var(--bg-elevated)!important;border-color:var(--border-subtle)!important;color:var(--text-primary)!important}
.cc-theme #operational-home .wi-downstream-priority :is(button,small,strong),.cc-theme #operational-home .wi-priority :is(button,small,strong){color:var(--text-primary)!important}
.cc-theme #operational-home :is(.oa-card-selected,.aq-selected,.ws-selected-card,.wi-selected-card,.hd-watch-item.is-selected){background:#153d5b!important;border-color:var(--accent-cyan)!important;color:var(--text-primary)!important}
.cc-theme #operational-home .wi-concept[data-mode=manual]{background:#28313d;border-color:#af9c79;color:#f2d7a8!important}
.cc-theme #operational-home .wi-concept[data-mode=trend]{background:#252b48;border-color:#7e80b8;color:#d4d2ff!important}
.cc-theme #operational-home #wi-chart :is(text){fill:var(--text-secondary)}
.cc-theme #operational-home .hd-secondary{grid-template-columns:repeat(4,minmax(0,1fr))}
.cc-theme #operational-home .hd-secondary .hd-panel{padding:18px}
.cc-theme .cc-header{background:#0a1c30!important;color:var(--text-primary);border-bottom:1px solid var(--border-subtle);box-shadow:0 5px 18px #0002;position:relative;z-index:1100}
.cc-theme .cc-header .hd-header-inner{display:grid!important;grid-template-columns:minmax(240px,1fr) auto;gap:12px 22px;max-width:1600px;margin:auto;padding:14px 24px;align-items:center}
.cc-theme .cc-header .hd-brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0;color:var(--text-primary)!important}
.cc-theme .cc-header .hd-brand img{width:44px;height:44px}
.cc-theme .cc-header .hd-brand :is(strong,small){display:block;color:inherit}
.cc-theme .cc-header .hd-brand strong{font-size:18px}
.cc-theme .cc-header .hd-brand small{font-size:12px;color:var(--text-secondary)}
.cc-theme .cc-header .hd-header-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end;min-width:0;color:var(--text-secondary)}
.cc-theme .cc-header .hd-header-actions a{color:var(--accent-cyan);font-size:12px}
.cc-theme .cc-header .hd-header-actions .hd-health{position:relative}
.cc-theme .cc-header .hd-health-panel{background:var(--bg-panel);color:var(--text-primary);border:1px solid var(--border-subtle);z-index:1200;max-width:min(400px,90vw)}
.cc-theme .cc-header .hd-health-panel :is(strong,li,small,p){color:var(--text-secondary)}
.cc-theme .cc-header-clock{display:flex;flex-direction:column;font-size:12px;color:var(--text-secondary);max-width:360px}
.cc-theme .cc-header .cc-desktop-nav{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;border-top:1px solid var(--border-subtle);padding-top:8px;width:100%;white-space:normal}
.cc-theme .cc-desktop-nav>a{display:flex!important;align-items:center;gap:7px;padding:9px 12px;min-height:44px;text-decoration:none;border-radius:8px;font-size:14px;color:var(--text-secondary)!important;border:1px solid transparent}
.cc-theme .cc-desktop-nav>a[aria-current=page]{color:#fff!important;background:#174566;border-color:#3fa6d8}
.cc-theme .cc-desktop-nav>a[aria-current=page]::after{display:none}
.cc-theme .cc-desktop-nav>a:hover{background:var(--bg-elevated);text-decoration:none}
.cc-theme .cc-desktop-nav>a small{display:none}
.cc-theme .cc-header .hd-icon,.cc-theme .cc-mobile-nav .hd-icon,.cc-theme .cc-module .hd-icon{width:21px;height:21px;flex:none;vertical-align:middle}
.cc-theme .cc-nav-open{display:none}
.cc-theme .cc-header-weather{padding:8px 24px 12px;border-top:1px solid #1b354d;max-width:1600px;margin:auto}
.cc-theme .cc-header-weather .hd-weather{display:grid;grid-template-columns:minmax(250px,1fr) minmax(300px,1fr);gap:4px 18px;margin:0;padding:0;border:0;background:none;color:var(--text-primary)}
.cc-theme #operational-home .cc-header-weather .hd-weather{padding:0!important;margin:0!important;background:none!important;border:0!important}
.cc-theme .cc-header-weather .hd-weather-reading,.cc-theme .cc-weather-reading{display:flex;gap:14px;align-items:center}
.cc-theme .cc-header-weather :is(.hd-weather-reading>strong,#cc-weather-temp){font-size:28px;color:var(--text-primary);white-space:nowrap}
.cc-theme .cc-header-weather .hd-weather-facts{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;align-items:center}
.cc-theme .cc-header-weather .hd-weather-meta{grid-column:1/-1;font-size:12px;display:flex;gap:12px;flex-wrap:wrap}
.cc-theme .cc-header-weather :is(p,small,.hd-weather-source,.hd-weather-condition){font-size:12px;color:var(--text-secondary);margin:0;line-height:1.65}
.cc-theme .cc-header-weather #cc-weather-label{font-size:13px;color:var(--text-primary)}
.cc-theme .cc-header-weather button{background:var(--bg-elevated);color:var(--text-primary);min-height:44px;border:1px solid var(--border-subtle);border-radius:8px;padding:6px 12px}
.cc-theme .cc-mobile-nav{background:var(--bg-panel);color:var(--text-primary);border:1px solid var(--border-subtle);padding:18px;width:min(460px,calc(100vw - 24px));max-height:90dvh;border-radius:16px;overflow:auto}
.cc-theme .cc-mobile-nav::backdrop,.cc-theme #hd-detail::backdrop{background:#0009}
.cc-theme .cc-drawer-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.cc-theme .cc-drawer-head h2{font-size:18px;margin:0}
.cc-theme .cc-mobile-nav button{min-height:44px;background:var(--bg-field);color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:8px;padding:8px 12px;font:inherit}
.cc-theme .cc-mobile-nav nav{display:flex;flex-direction:column;gap:5px}
.cc-theme .cc-mobile-nav nav a{display:grid;grid-template-columns:24px minmax(0,1fr);gap:2px 12px;align-items:center;color:var(--text-primary);text-decoration:none;padding:10px 12px;border:1px solid transparent;border-radius:10px;min-height:55px}
.cc-theme .cc-mobile-nav nav a[aria-current=page]{background:#174566;border-color:var(--accent-cyan)}
.cc-theme .cc-mobile-nav nav small{grid-column:2;color:var(--text-secondary);font-size:12px}
.cc-theme .cc-mobile-nav nav .hd-icon{grid-row:1/3}
.cc-theme .cc-mobile-nav>p{font-size:12px;color:var(--text-muted)}
.cc-theme :is(button,a,input,select,summary):focus-visible{outline:3px solid var(--accent-cyan)!important;outline-offset:3px}
.cc-theme .cc-context-bar{font-size:12px;color:var(--text-muted);border-left:2px solid #2d6a8f;padding-left:10px;margin-bottom:14px;overflow-wrap:anywhere}
.cc-theme #operational-home .hd-primary-layout{grid-template-columns:minmax(0,7fr) minmax(300px,3fr);grid-template-areas:"alert alert" "filters filters" "map watch" "metrics metrics";align-items:start}
.cc-theme #operational-home .hd-primary-layout>.hd-map-card{grid-area:map}
.cc-theme #operational-home .hd-primary-layout>.hd-watch{grid-area:watch}
.cc-theme #operational-home .hd-primary-layout>.hd-quick{grid-area:metrics;grid-template-columns:repeat(5,minmax(0,1fr))}
.cc-theme #operational-home .hd-primary-layout>.hd-area-details{grid-area:filters}
.cc-theme #operational-home .hd-primary-layout>.hd-critical{grid-area:alert}
.cc-theme #operational-home .hd-primary-layout{grid-template-areas:"alert alert" "filters filters" "map watch" "metrics metrics"!important;grid-template-columns:minmax(0,7fr) minmax(300px,3fr)!important;width:100%}
.cc-theme .cc-header .hd-brand{grid-row:1;grid-column:1}
.cc-theme .cc-header .hd-header-actions{grid-row:1;grid-column:2}
.cc-theme .cc-header .cc-desktop-nav{grid-row:2}
.cc-theme #operational-home .cc-header .hd-header-inner{grid-template-columns:minmax(240px,1fr) auto!important}
.cc-theme #operational-home .cc-header .hd-header-actions{display:flex;max-width:none;width:auto;flex-direction:row}
.cc-theme #operational-home .cc-header :is(.hd-source-note,.hd-section-meta,.hd-weather-meta,.hd-header-actions,.hd-clock span,p,small){color:var(--text-secondary)!important}
.cc-theme #operational-home button{box-shadow:none!important}
.cc-theme[data-cc-page=risk] #page-ai :is(.map-header,.risk-v1-input,.risk-v1-controls,.rux-technical-stats){background:var(--bg-panel)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important}
.cc-theme[data-cc-page=risk] #page-ai :is(p,small,label,span){color:var(--text-secondary)!important}
.cc-theme[data-cc-page=risk] #page-ai button{box-shadow:none!important}
.cc-theme #operational-home #hd-map{height:540px}
.cc-theme #operational-home .hd-watch{max-height:850px;overflow:auto}
.cc-theme #operational-home .hd-situation .hd-hero-metrics{min-height:0}
.cc-theme #operational-home .hd-situation{padding:22px}
.cc-theme #operational-home .hd-situation h1{font-size:28px}
.cc-theme #operational-home .hd-primary-layout .hd-map-footer{display:block}
.cc-theme #operational-home .hd-map-footer :is(.hd-type-legend,.hd-legend){display:flex;gap:12px;flex-wrap:wrap}
.cc-theme #operational-home .hd-map-footer{position:static;transform:none;max-height:none;background:var(--bg-panel);color:var(--text-secondary);padding:12px 18px}
.cc-theme #operational-home .hd-mobile-legend,.cc-theme #operational-home #hd-legend-close{display:none}
.cc-theme .cc-modules{margin:24px 0}
.cc-theme .cc-modules .hd-section-head p{font-size:13px;color:var(--text-secondary)}
.cc-theme .cc-module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:14px}
.cc-theme .cc-module{min-width:0;border:1px solid var(--border-subtle);border-radius:14px;background:var(--bg-panel);padding:18px;transition:border-color var(--motion-fast),transform var(--motion-fast)}
.cc-theme .cc-module:hover{border-color:#439ccb;transform:translateY(-2px)}
.cc-theme .cc-module>a{display:grid;grid-template-columns:26px minmax(0,1fr);gap:5px 12px;color:var(--text-primary)!important;text-decoration:none!important;min-height:44px}
.cc-theme .cc-module>a .hd-icon{grid-row:1/3;color:var(--accent-cyan)}
.cc-theme .cc-module h3{font-size:16px;color:var(--text-primary);margin:0}
.cc-theme .cc-module>a>span{font-size:12px;color:var(--text-secondary)}
.cc-theme .cc-module-value{display:block;color:var(--text-primary);font-size:20px;line-height:1.5;margin:12px 0 8px;overflow-wrap:anywhere}
.cc-theme #cc-module-policy:empty{display:none}
.cc-theme .cc-module-meta{font-size:12px!important;color:var(--text-secondary);line-height:1.65}
.cc-theme #operational-home .cc-module button{margin-top:10px}
.cc-theme .cc-linked-hover{outline:3px solid var(--accent-cyan)!important;outline-offset:3px;box-shadow:0 0 0 6px #51c8ef20!important}
.cc-theme [data-cc-key].cc-linked-hover{filter:drop-shadow(0 0 4px #68d8f3)}
.cc-theme .cc-panel-toolbar{display:flex;justify-content:flex-end;margin-bottom:8px}
.cc-theme .cc-panel-collapsed>*:not(.cc-panel-toolbar){display:none!important}
.cc-theme .cc-panel-collapsed::before{content:attr(data-cc-panel-title);display:block;color:var(--text-secondary);font-size:14px}
.cc-theme #hd-detail{position:fixed;inset:20px 20px 20px auto;margin:0;width:min(480px,calc(100vw - 40px));max-height:calc(100dvh - 40px);height:auto;background:var(--bg-panel);color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:16px;padding:22px;overflow:auto}
.cc-theme #hd-detail :is(h2,strong){color:var(--text-primary)}
.cc-theme #hd-detail :is(p,small,dt,dd){color:var(--text-secondary)}
.cc-theme #hd-detail :is(button,a){color:var(--accent-cyan);background:var(--bg-elevated);border:1px solid var(--border-subtle);border-radius:8px;min-height:44px;padding:9px 12px}
.cc-theme #hd-detail .hd-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.cc-theme #hd-detail .hd-dialog-actions{display:flex;flex-wrap:wrap;gap:8px}
.cc-theme .leaflet-popup-content-wrapper,.cc-theme .leaflet-popup-tip{background:var(--bg-panel);color:var(--text-primary)}
.cc-theme .leaflet-popup-content-wrapper{border:1px solid var(--border-subtle)}
.cc-theme .leaflet-popup-content :is(.wi-popup,strong,p,small,div){color:var(--text-primary)}
.cc-theme .leaflet-popup-content a,.cc-theme .leaflet-popup-close-button{color:var(--accent-cyan)!important}
.cc-theme .leaflet-popup-content button,.cc-theme .leaflet-control-zoom a{background:var(--bg-elevated);color:var(--text-primary);border-color:var(--border-subtle);min-height:36px}
.cc-theme .leaflet-control-attribution{background:#fffdf2;color:#233d50}
.cc-theme .leaflet-control-attribution a{color:#064e83!important}
.cc-theme .leaflet-tooltip{background:var(--bg-elevated);color:var(--text-primary);border-color:var(--border-subtle);font-size:12px}
.cc-theme .leaflet-tooltip::before{border-top-color:var(--border-subtle)}
.cc-theme #operational-home :is(.hd-map-tools,.wi-map-tools,.ws-map-tools,.aq-map-tools,.oa-map-tools) button{background:var(--bg-elevated)!important;color:var(--text-primary)!important}
.cc-theme #operational-home :is(#wi-layers,#oa-layers,#ws-layers,#aq-layers){background:var(--bg-panel)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important}
.cc-theme #operational-home :is(.wi-expanded,.water-impact-map-panel:fullscreen,.aq-fullscreen,.oa-fullscreen,.hd-expanded){background:var(--bg-panel)!important}
.cc-theme #operational-home .wi-main .water-impact-map-panel:is(:fullscreen,.wi-expanded){background:var(--bg-panel)!important}
.cc-theme #operational-home .rd-map-card:is(:fullscreen,.rd-expanded){display:flex!important;flex-direction:column;height:100dvh!important;max-height:100dvh;overflow:hidden;background:var(--bg-panel)!important}
.cc-theme #operational-home .rd-map-card:is(:fullscreen,.rd-expanded)>.hd-section-head{flex:none}
.cc-theme #operational-home .rd-map-card:is(:fullscreen,.rd-expanded)>.hd-layers{flex:none;max-height:18dvh;overflow:auto}
.cc-theme #operational-home .rd-map-card:is(:fullscreen,.rd-expanded)>.hd-map-wrap{flex:1;min-height:0;height:auto!important}
.cc-theme #operational-home .rd-map-card:is(:fullscreen,.rd-expanded) #rd-map{height:100%!important;min-height:0}
.cc-theme #operational-home .rd-map-card:is(:fullscreen,.rd-expanded)>.rd-map-note{flex:none;max-height:20dvh;overflow:auto}
.cc-theme #operational-home #rd-legend{color:var(--text-secondary)}
.cc-theme #operational-home .rd-map-layout>.cc-radar-hero{grid-column:1;grid-row:1;min-width:0;background:var(--bg-panel)!important;border:1px solid var(--border-subtle);border-radius:var(--radius-lg);overflow:hidden}
.cc-theme #operational-home .rd-map-layout>.rd-map-card{grid-column:1;grid-row:2}
.cc-theme #operational-home .rd-map-layout>.rd-ranking{grid-column:2;grid-row:1/3}
.cc-theme #operational-home .cc-radar-hero #hd-radar-map{height:400px}
.cc-theme #operational-home #hd-radar-panel:is(:fullscreen,.rd-expanded,.hd-expanded){display:flex!important;flex-direction:column!important;height:100dvh!important;max-height:100dvh;overflow:auto;background:var(--bg-panel)!important}
.cc-theme #operational-home #hd-radar-panel:is(:fullscreen,.rd-expanded,.hd-expanded) #hd-radar-map{flex:1;height:auto!important;min-height:50dvh}
@media(max-width:900px){.cc-theme #operational-home .rd-map-layout>.rd-ranking{grid-column:1;grid-row:3}.cc-theme #operational-home .cc-radar-hero #hd-radar-map{height:360px}}
/* Risk retains its accepted controller/geometry; only its visible shell changes. */
.cc-theme[data-cc-page=risk] .topbar,.cc-theme[data-cc-page=risk] .live-risk-trigger,.cc-theme[data-cc-page=risk] #liveRiskReportToggle{display:none!important}
.cc-theme[data-cc-page=risk] .app-shell{background:var(--bg-app);color:var(--text-primary);width:100%;max-width:1600px;margin:auto;box-shadow:none}
.cc-theme[data-cc-page=risk] .page-shell{padding:24px;max-width:none}
.cc-theme[data-cc-page=risk] #page-ai .panel-section,.cc-theme[data-cc-page=risk] #page-ai :is(.card,.rux-situation,.rux-primary,.rux-selected-area,.rux-readiness,.map-panel){background:var(--bg-panel)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important;box-shadow:var(--shadow-panel)}
.cc-theme[data-cc-page=risk] #page-ai :is(h1,h2,h3,h4,strong,b,dt,dd){color:var(--text-primary)!important}
.cc-theme[data-cc-page=risk] #page-ai :is(p,small,label,span){color:var(--text-secondary)}
.cc-theme[data-cc-page=risk] #page-ai :is(button,input,select){background:var(--bg-field)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important;min-height:44px}
.cc-theme[data-cc-page=risk] #page-ai :is(button.active,button[aria-pressed=true],#riskV1Run){background:#125993!important;color:#fff!important;border-color:var(--accent-primary)!important}
.cc-theme[data-cc-page=risk] #page-ai :is(.rux-model-label,.rux-meaning,.rux-technical-stats,.rux-priority-item,.rux-readiness details){background:var(--bg-elevated)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important}
.cc-theme[data-cc-page=risk] #page-ai .risk-v1-opacity{background:var(--bg-elevated)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important}
.cc-theme[data-cc-page=risk] #page-ai .rux-selected{outline:2px solid var(--accent-cyan);background:#153d5b!important}
.cc-theme[data-cc-page=risk] #page-ai .risk-map-fullscreen,.cc-theme[data-cc-page=risk] body.risk-map-fullscreen .map-panel{background:var(--bg-panel)!important}
.cc-theme .cc-compat-note{font-size:12px;color:var(--text-muted);padding:18px 24px}
.cc-theme #cc-policy :is(.privacy-hero,.privacy-card,.alert-policy-card,.privacy-meta-card){background:var(--bg-panel);color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:14px;padding:22px;margin:14px 0}
.cc-theme #cc-policy :is(p,li){color:var(--text-secondary);font-size:14px;line-height:1.9}
.cc-theme #cc-policy :is(h2,h3){color:var(--text-primary)}
.cc-theme #cc-policy :is(.privacy-grid,.alert-policy-grid){display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cc-theme #cc-policy .privacy-wide{grid-column:1/-1}
.cc-theme #cc-policy-toc{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.cc-theme #cc-policy [data-policy-section]{scroll-margin-top:20px}
.cc-theme #cc-policy-reference a{overflow-wrap:anywhere}
.cc-theme #cc-policy .privacy-meta-card{font-size:12px;color:var(--text-secondary)}
.cc-theme #cc-policy :is(input,.cc-policy-notes){width:100%}
.cc-theme .cc-shell-error{max-width:700px;margin:40px auto;padding:28px;background:var(--bg-panel);color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:18px}
.cc-theme .cc-shell-error :is(button,a){display:inline-block;min-height:44px;padding:10px 14px;margin:8px;background:var(--bg-elevated);color:var(--accent-cyan);border:1px solid var(--border-subtle);border-radius:8px}
@media(max-width:1100px){.cc-theme .cc-header .cc-desktop-nav{gap:3px}.cc-theme .cc-desktop-nav>a{font-size:13px;padding:8px}.cc-theme .cc-desktop-nav .hd-icon{display:none}.cc-theme #operational-home .hd-secondary{grid-template-columns:1fr 1fr}.cc-theme .cc-module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.cc-theme .cc-header .cc-desktop-nav{display:none!important}.cc-theme .cc-nav-open{display:inline-flex;align-items:center;gap:8px;background:var(--bg-elevated);color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:8px;min-height:44px;padding:8px 12px;font:inherit}.cc-theme .cc-header .hd-header-inner{padding:12px 18px;grid-template-columns:minmax(0,1fr) auto}.cc-theme .cc-header .hd-header-actions{gap:8px}.cc-theme .cc-header .hd-header-actions .hd-health{display:none}.cc-theme .cc-header-clock{font-size:12px;grid-column:1/-1}.cc-theme #operational-home .hd-primary-layout{grid-template-columns:1fr;grid-template-areas:"alert" "filters" "map" "watch" "metrics"}.cc-theme #operational-home .hd-quick{grid-template-columns:repeat(3,minmax(0,1fr))}.cc-theme #operational-home .hd-watch{max-height:580px}.cc-theme .cc-header-weather .hd-weather{grid-template-columns:1fr}.cc-theme #cc-policy :is(.privacy-grid,.alert-policy-grid){grid-template-columns:1fr}.cc-theme .cc-module-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.cc-theme .cc-header .hd-header-inner{padding:10px 14px;gap:8px}.cc-theme .cc-header .hd-brand strong{font-size:15px}.cc-theme .cc-header .hd-brand small{display:none}.cc-theme .cc-header .hd-brand img{width:34px;height:34px}.cc-theme .cc-header .hd-header-actions{display:contents}.cc-theme .cc-header-clock{grid-row:2;font-size:12px}.cc-theme .cc-header .hd-header-actions>a{display:none}.cc-theme .cc-nav-open{grid-column:2;grid-row:1}.cc-theme .cc-header-weather{padding:8px 14px}.cc-theme .cc-header-weather .hd-weather-reading>strong,.cc-theme #cc-weather-temp{font-size:24px}.cc-theme .cc-header-weather .hd-weather-facts{gap:4px 10px}.cc-theme .cc-header-weather .hd-weather-meta{gap:3px}.cc-theme .cc-mobile-nav{margin:auto 12px 12px;width:calc(100vw - 24px)}.cc-theme #operational-home .hd-main{padding:14px}.cc-theme #operational-home .hd-situation{padding:18px}.cc-theme #operational-home .hd-situation h1{font-size:24px}.cc-theme #operational-home #hd-map{height:430px}.cc-theme #operational-home .hd-quick{grid-template-columns:1fr 1fr}.cc-theme #operational-home .hd-secondary{grid-template-columns:1fr}.cc-theme .cc-module-grid{grid-template-columns:1fr 1fr;gap:10px}.cc-theme .cc-module{padding:14px}.cc-theme .cc-module h3{font-size:15px}.cc-theme .cc-module-value{font-size:17px}.cc-theme .cc-module a{grid-template-columns:1fr}.cc-theme .cc-module>a .hd-icon{grid-row:auto}.cc-theme .cc-module>a>span{grid-column:1/-1}.cc-theme #hd-detail{inset:auto 10px 10px;margin:0;width:calc(100vw - 20px);max-height:78dvh;border-radius:18px 18px 12px 12px;padding:18px}.cc-theme .cc-context-bar{font-size:12px}.cc-theme[data-cc-page=risk] .page-shell{padding:14px}.cc-theme[data-cc-page=risk] .rux-heading{display:block}.cc-theme #cc-policy :is(.privacy-card,.privacy-hero,.alert-policy-card){padding:18px}}
@media(prefers-reduced-motion:reduce){.cc-theme *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.cc-theme .cc-reading-guide{margin:18px 0;padding:14px 18px;background:var(--bg-panel);border:1px solid var(--border-subtle);border-radius:12px;color:var(--text-secondary);font-size:13px}
.cc-theme .cc-reading-guide dl{display:grid;grid-template-columns:minmax(140px,1fr) 3fr;gap:8px}.cc-theme .cc-reading-guide dd{margin:0}
.cc-theme .cc-module-status{display:block;font-size:13px;color:var(--text-secondary);margin:5px 0}.cc-theme .cc-module-source{font-size:12px}.cc-theme .cc-module-source summary,.cc-theme .cc-reading-guide>summary{min-height:44px;cursor:pointer;box-sizing:border-box;padding:10px 0}
.cc-theme #riskV1StatusBadge{background:var(--bg-elevated);color:var(--text-primary);border:1px solid var(--border-subtle)}
.cc-theme :is(button,a,input,select,summary){transition:border-color 120ms ease,background-color 120ms ease,box-shadow 120ms ease}
.cc-theme :is(input,textarea)::placeholder{color:#a3bacf;opacity:1}
.cc-theme #operational-home :is(button,select,input):disabled{opacity:1!important;color:var(--text-muted)!important;border-style:dashed!important;cursor:not-allowed}
.cc-theme .cc-reading-guide :is(dt,dd){color:var(--text-secondary)!important}.cc-theme input[type=checkbox]{accent-color:#299eff}
.cc-theme [data-policy-jump][aria-current=location]{outline:2px solid var(--accent-cyan);outline-offset:2px}
.cc-theme .cc-policy-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0}.cc-theme #cc-policy-link{font-size:12px;width:100%}
.cc-theme #cc-policy-reference [data-policy-section]{scroll-margin-top:20px}
.cc-theme .cc-compat-note{display:none}
.cc-theme .cc-policy-toc-entry{display:flex;gap:4px;align-items:stretch;max-width:100%}.cc-theme .cc-policy-toc-entry [data-policy-jump]{flex:1;white-space:normal;text-align:left}.cc-theme [data-policy-copy]{font-size:12px!important}
.cc-theme .rux-popup.cc-popup-below{bottom:auto!important;top:20px}
.cc-theme .rux-popup.cc-popup-below .leaflet-popup-tip-container{top:-20px;bottom:auto;transform:rotate(180deg)}
@media(max-width:600px){.cc-theme .cc-reading-guide dl{grid-template-columns:1fr}.cc-theme .cc-reading-guide dd{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){.cc-theme :is(button,a,input,select,summary){transition:none!important;animation:none!important}}
@media(max-width:900px){.cc-theme #operational-home .hd-primary-layout{grid-template-columns:1fr!important;grid-template-areas:"alert" "filters" "map" "watch" "metrics"!important}}
@media(max-width:900px){.cc-theme #operational-home .hd-primary-layout>.hd-quick{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:600px){.cc-theme #operational-home .hd-primary-layout>.hd-quick{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.cc-theme #operational-home .cc-header .hd-header-inner{grid-template-columns:minmax(0,1fr) auto!important}.cc-theme #operational-home .cc-header .hd-header-actions{display:contents}.cc-theme .cc-header .cc-header-clock{grid-column:1/-1;grid-row:2}}
