:root{font-family:'Segoe UI',sans-serif;color:#f4f8fc;background:#071726;color-scheme:dark}*{box-sizing:border-box}body{margin:0;overflow:hidden}#stage{position:absolute;inset:0 282px 0 0;overflow:hidden;background:#06121e}#earth,#geography,#weather{position:absolute;inset:0;width:100%;height:100%}canvas#geography,canvas#weather{pointer-events:none}header{position:absolute;top:0;left:0;right:0;height:128px;padding:30px 42px;display:flex;align-items:center;gap:30px;background:linear-gradient(#071726fa,#071726bb,transparent);pointer-events:none}.brand{display:flex;align-items:center;gap:13px;flex-shrink:0}.brand>b{font-size:48px;letter-spacing:-4px;color:#f4f8fc;border-bottom:4px solid #52e0dc;line-height:1.12}.brand>span{font-size:16px;line-height:1.1;font-weight:650;letter-spacing:2px}.brand small{color:#52e0dc;font-size:12px;letter-spacing:4px}.context{border-left:1px solid #aac7d544;padding-left:28px;max-width:680px}#region{font-size:29px;font-weight:600;line-height:1.13}#subtitle{font-size:17px;color:#bed0dd;margin-top:6px}.time{margin-left:auto;text-align:right;white-space:nowrap}.time>span{display:block;font-size:17px;color:#52e0dc}.time>strong{display:block;font-size:27px;font-weight:550;margin:3px 0}.time>small{font-size:15px;color:#bccbd8}#chapter{position:absolute;left:44px;top:155px;display:flex;align-items:center;gap:12px;font-size:16px;font-weight:650;letter-spacing:2px;color:#dbe9f3}#chapterNo{border:1px solid #52e0dc77;border-radius:50%;font-size:14px;padding:8px;color:#52e0dc;background:#071726c0}footer{position:absolute;left:42px;right:42px;bottom:23px;pointer-events:none;background:linear-gradient(transparent,#071726c0);padding-top:15px}#legends{display:flex;align-items:flex-end;gap:30px;margin-bottom:20px;min-height:67px}.legend{background:#071726d9;padding:13px 17px;border:1px solid #7597ad35;border-radius:4px;font-size:17px;box-shadow:0 4px 22px #0003}.legend-title{margin-bottom:8px;font-weight:600}.swatches{display:flex;gap:0}.swatch{width:62px;padding-top:7px;border-top:8px solid;font-size:15px}.legend-note{font-size:14px;color:#aec6d7;margin-top:6px}.forecast-line{display:flex;align-items:center;gap:18px;font-size:16px;letter-spacing:1.3px}.forecast-line>strong{width:80px}#forecastBar{flex:1;height:5px;background:#89b1c744}#forecastProgress{display:block;height:5px;background:#52e0dc;width:0}.credits{display:flex;justify-content:space-between;margin-top:14px;font-size:13px;color:#a7bdce}#scale{position:absolute;right:48px;bottom:238px;font-size:16px;color:white;border-bottom:3px solid white;text-align:center;text-shadow:0 1px 5px #000;padding-bottom:6px}#sample{position:absolute;right:50px;top:240px;width:390px;background:#071726ec;border:1px solid #52e0dc55;padding:24px;border-radius:6px;box-shadow:0 20px 50px #0004}.eyebrow{color:#52e0dc;font-size:15px;letter-spacing:1.5px;font-weight:600}#sample strong{display:block;font-size:40px;margin:15px 0 8px}#sampleDetails{font-size:21px;line-height:1.6}#sample small{display:block;font-size:15px;line-height:1.5;color:#aec6d7;margin-top:15px}#safe{position:absolute;top:190px;right:38px;width:370px;height:550px;border:2px dashed #ffda7999;background:#facc4008;color:#ffda79;text-align:center;padding:20px;pointer-events:none}#controls{position:absolute;top:0;right:0;bottom:0;width:282px;padding:24px 22px;background:#0b1e2e;overflow:auto;border-left:1px solid #2b485b}h1{font-size:21px;margin:0 0 8px}p{font-size:13px;line-height:1.5}.muted{color:#a3bdce}label{display:block;font-size:13px;margin:13px 0}select,button{font:inherit;border-radius:4px;border:1px solid #3a586b;background:#132e43;color:#f4f8fc;padding:9px;width:100%;margin-top:6px}button:hover{border-color:#52e0dc;cursor:pointer}fieldset{border:1px solid #314c5e;border-radius:5px;padding:5px 12px}legend{font-size:12px;color:#a4becf}fieldset label{margin:10px 0}input[type=checkbox]{accent-color:#52e0dc;margin-right:9px}input[type=range]{width:100%;accent-color:#52e0dc}output{float:right}details{margin-top:20px;font-size:13px}#status{color:#52e0dc;font-size:12px}#loading,#error{position:absolute;top:47%;left:25%;right:25%;background:#0c2234;padding:25px;border:1px solid #52e0dc;border-radius:5px;text-align:center}#error{color:#ffb7a1;z-index:100}#loading[hidden],#error[hidden],#sample[hidden],#safe[hidden]{display:none}.clean #controls{display:none}.clean #stage{right:0}.cesium-viewer-bottom{bottom:6px!important;right:8px!important;left:auto!important}.cesium-widget-credits{font-size:9px!important;opacity:.4}.cesium-credit-logoContainer{display:none}.cesium-viewer-toolbar{display:none}@media(max-width:1250px){header{padding:20px;height:110px;gap:16px}.brand>b{font-size:34px}.context{padding-left:14px}#region{font-size:21px}#subtitle{font-size:13px}.time>strong{font-size:18px}.time>small,.time>span{font-size:12px}#chapter{top:120px;left:25px}footer{left:25px;right:25px}.legend{font-size:13px;padding:10px}.swatch{width:40px;font-size:12px}.legend-note,.credits{font-size:10px}#sample{width:280px;right:30px;top:190px}#sample strong{font-size:28px}#sampleDetails{font-size:17px}.eyebrow{font-size:11px}}@media(max-width:800px){#controls{width:230px}#stage{right:230px}.context{display:none}.brand>span{display:none}.credits{display:block}.time{white-space:normal}#sample{width:230px}#legends{gap:8px;flex-wrap:wrap}}

.legend-title{font-size:19px}.swatch{font-size:19px}.legend-note{font-size:15px}.wind-keys{display:flex;gap:22px;align-items:center;font-size:18px}.wind-keys span{display:flex;align-items:center;gap:8px}.wind-keys i{height:2px;background:#fff;box-shadow:0 0 0 1px #071726;display:inline-block;transform:rotate(-15deg)}#ensembleControls[hidden]{display:none}
#chapterNo{width:40px;height:40px;display:grid;place-items:center;padding:0;flex:0 0 40px;font-variant-numeric:tabular-nums}

#chapterNo{border-radius:0;border:1px solid #2c707c;background:#071726}

/* Round B: fills share the exact ellipsoid camera; overlays retain output-pixel weight. */
#fills{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#weather{z-index:1}#geography{z-index:2}header,#chapter,footer,#safe,#availability,#fixtureBanner{z-index:3}#loading{z-index:5}#controls{width:300px}#stage{right:300px}footer{left:0;right:0;bottom:0;padding:22px 40px;background:linear-gradient(transparent,#061423d9 28%,#061423f5)}#legends{gap:16px;flex-wrap:wrap;margin-bottom:17px;min-height:0}.legend{padding:11px 14px;max-width:100%;border:1px solid #789caf55;background:#071827ef}.legend-title{font-size:21px;line-height:1.2}.swatch{width:47px;font-size:19px}.legend-note{font-size:16px;max-width:540px}.credits{font-size:15px;gap:12px}#availability{position:absolute;left:42px;right:42px;top:212px;background:#41371bed;border:1px solid #c5a654;padding:14px;font-size:18px;line-height:1.4}#availability[hidden],#fixtureBanner[hidden]{display:none}#fixtureBanner{position:absolute;left:0;right:0;top:190px;background:#d89023;color:#071726;font-size:24px;font-weight:750;padding:14px;text-align:center}.layer-row{padding:9px 0;border-bottom:1px solid #48647855}.layer-row label{margin:0;font-size:14px}.layer-row small{font-size:11px;color:#d9b879;display:block;margin:5px 0}.layer-row .opacity{height:14px;margin:0}.layer-row small:empty{display:none}#combination{color:#ebd491}.globe-link{font-size:13px;color:#5de6e1}input[type=file]{width:100%;font-size:11px}.clean #stage{right:0}.clean footer{padding-bottom:24px}@media(max-width:1250px){.legend-title{font-size:15px}.legend-note{font-size:12px}.swatch{font-size:13px;width:33px}.credits{font-size:11px}footer{padding:16px 24px}#availability{font-size:14px;left:20px;right:20px}#fixtureBanner{font-size:17px}}@media(max-width:800px){#controls{width:240px}#stage{right:240px}.clean #stage{right:0}#legends{gap:6px}.legend{padding:6px 8px}.legend-title{font-size:12px}.legend-note{font-size:10px}.swatch{font-size:10px;width:25px}footer{padding:10px 12px}.credits{font-size:9px}}

#earth{filter:brightness(.9) saturate(.9)}

#vectors{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}

/* V3 ocean analysis: legible physical units and a stable zero-centred scale. */
#ocean{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ocean-active #earth{filter:brightness(.67) saturate(.35)}
.ocean-only .forecast-line{display:none}
#oceanLegend[hidden],#oceanReadout[hidden]{display:none}
#oceanLegend{max-width:1100px;padding:18px 24px 14px;background:#071827f5;border:1px solid #718da455;border-radius:5px;margin-bottom:14px}
.ocean-legend-title{font-size:25px;font-weight:600;display:flex;justify-content:space-between;margin-bottom:13px}
.ocean-legend-title b{font-size:23px;margin-left:20px;color:#d8e8f2}
.ocean-bar{height:18px;border-radius:2px;border:1px solid #b9d0dd66}
.ocean-ticks{position:relative;height:36px;margin-top:5px;font-size:21px;font-variant-numeric:tabular-nums}
.ocean-ticks span{position:absolute;transform:translateX(-50%)}.ocean-ticks .first{transform:none}.ocean-ticks .last{transform:translateX(-100%)}
.ocean-note{font-size:17px;color:#d2e1ea;display:flex;justify-content:space-between;gap:20px}.ocean-note span{color:#a8c4d4}
#oceanReadout{position:absolute;top:220px;right:40px;width:385px;padding:20px;background:#071827ee;border:1px solid #80b6bf77;border-radius:5px;z-index:3;pointer-events:none}
.ocean-readout-heading{color:#6ce4dd;font-size:15px;letter-spacing:1px;font-weight:650}.ocean-readout-heading span{display:block;color:#c3d6e2;font-size:18px;letter-spacing:0;margin-top:6px}
.ocean-values{display:flex;justify-content:space-between;margin:18px 0 12px;gap:15px}.ocean-values small{display:block;font-size:17px;color:#cadbe5}.ocean-values strong{font-size:34px;font-weight:600;font-variant-numeric:tabular-nums}.ocean-values .warm strong{color:#ffb56f}.ocean-values .cool strong{color:#80d9ff}
#oceanReadout>small,.ocean-region-mean small{font-size:14px;color:#bed1dd;display:block}.ocean-region-mean{border-top:1px solid #56708288;margin-top:16px;padding-top:14px;font-size:18px}.ocean-region-mean b{float:right;font-size:22px;color:#fff}.ocean-region-mean small{margin-top:6px}
.ocean-controls{border:1px solid #3b6575;padding:12px;border-radius:4px;margin-top:18px;background:#102a3c}.ocean-controls h2{margin:0;font-size:16px;color:#6ce4dd}.ocean-controls p{font-size:12px;color:#b8cdd8}
@media(max-width:1500px){#oceanReadout{width:300px;right:28px;top:205px;padding:15px}.ocean-values strong{font-size:27px}.ocean-values small{font-size:14px}.ocean-region-mean{font-size:14px}.ocean-region-mean b{font-size:18px}.ocean-readout-heading span{font-size:15px}#oceanReadout>small,.ocean-region-mean small{font-size:11px}#oceanLegend{max-width:850px}.ocean-legend-title{font-size:20px}.ocean-ticks{font-size:17px}.ocean-note{font-size:13px}}
@media(max-width:1000px){#oceanReadout{top:170px;width:245px;right:20px;padding:12px}.ocean-values strong{font-size:22px}.ocean-values{gap:8px}.ocean-values small{font-size:12px}.ocean-legend-title{font-size:17px}.ocean-legend-title b{font-size:17px}.ocean-note{display:block;font-size:12px}.ocean-note span{display:block;margin-top:4px}#oceanLegend{padding:12px 16px}.ocean-ticks{font-size:14px;height:25px}.ocean-bar{height:14px}}

.ocean-range-note{font-size:14px;color:#bcd0dc;margin-top:6px}@media(max-width:1250px){.ocean-range-note{font-size:11px}}

/* V3 operator workspace: large controls, independent layers, clean capture. */
#controls{width:370px;padding:24px;background:linear-gradient(150deg,#102b3c,#081b2b 65%);scrollbar-width:thin;scrollbar-color:#406577 #102735}
#stage{right:370px;container-type:inline-size}
.control-heading h1{font-size:24px;letter-spacing:-.5px}.control-heading h1 span{font-size:12px;color:#6ce4dd;border:1px solid #437f87;border-radius:3px;padding:3px 5px;vertical-align:middle;margin-left:7px}
.control-heading p{margin-top:4px;color:#a6c1d1}.quick-presets{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:18px 0 8px}.quick-presets button{font-weight:650;margin:0;background:#163b4e;border-color:#34677a;min-height:42px}
.operator-actions{display:flex;gap:8px}.operator-actions>*{flex:1}.operator-actions button{font-size:13px;min-height:39px}kbd{font-family:inherit;color:#a4c8d2;border:1px solid #49707d;border-radius:3px;padding:0 4px;margin-left:4px}
input[type=date],input[type=search]{font:inherit;color:#f4f8fc;background:#102d40;border:1px solid #3f6476;border-radius:4px;width:100%;padding:9px;margin-top:6px;min-height:39px}
.date-pair{display:flex;gap:8px}.date-pair label{min-width:0;flex:1}.date-pair input{font-size:12px;padding:8px 4px}
.weather-controls,.ocean-controls{padding:15px;margin-top:18px;border:1px solid #3a6275;border-radius:5px;background:#102a3c88}.weather-controls h2,.ocean-controls h2{font-size:16px;color:#80e6df;margin:0 0 10px}.source-badge{color:#afcbd8;font-size:11px!important;line-height:1.5;padding-left:9px;border-left:2px solid #508394}
#controls details>summary{font-weight:650;cursor:pointer;color:#d6e6ee;line-height:1.5}#controls details{padding-top:13px;border-top:1px solid #3c5c6a77;margin-top:17px}.ocean-controls details{border-color:#4c718477}#controls details p{font-size:12px;color:#b6ceda}
.layer-group h3{font-size:12px;text-transform:uppercase;letter-spacing:1.2px;color:#82b2c4;margin:20px 0 4px}.layer-row{padding:10px 0 5px}.layer-row label{font-size:14px;line-height:1.4}.layer-row input[type=checkbox]{width:16px;height:16px;vertical-align:middle}.layer-row small{font-size:11px;line-height:1.4}.layer-row[hidden],.layer-group[hidden]{display:none}.layer-row .opacity{height:13px;opacity:.75}
#oceanHistoryStatus{font-size:12px;color:#a5e9dc;overflow-wrap:anywhere}#oceanDateOut{font-size:11px;float:none;display:block;color:#b8d5df;margin:5px 0}.ocean-controls p{line-height:1.5}#status{border-top:1px solid #3c5c6a;padding-top:13px;line-height:1.5}
.clean #stage{right:0}.clean #controls{display:none}.legend-note{line-height:1.35}.legend-title{line-height:1.25}.time{font-variant-numeric:tabular-nums}
@container(max-width:1250px){header{padding:20px;height:110px;gap:16px}.brand>b{font-size:34px}.context{padding-left:14px;max-width:320px}#region{font-size:21px}#subtitle{font-size:13px}.time>strong{font-size:18px}.time>small,.time>span{font-size:12px}#chapter{top:120px;left:25px;font-size:13px}.legend-title{font-size:15px}.legend-note{font-size:12px;max-width:420px}.swatch{font-size:13px;width:33px}.credits{font-size:11px}footer{padding:16px 24px}#availability{font-size:14px;left:20px;right:20px;top:180px}#oceanLegend{padding:12px 16px;max-width:850px}.ocean-legend-title{font-size:19px}.ocean-legend-title b{font-size:18px}.ocean-ticks{font-size:16px;height:28px}.ocean-note{font-size:13px}#oceanReadout{width:280px;top:185px;padding:15px}.ocean-values strong{font-size:25px}.ocean-values small{font-size:13px}}
@container(max-width:850px){.context{max-width:235px}#region{font-size:18px}.brand>span{display:none}#subtitle{font-size:12px}.time>strong{font-size:16px}.time>small,.time>span{font-size:10px}#chapter{font-size:11px;letter-spacing:1px}#legends{gap:7px}.legend{padding:7px 9px}.legend-title{font-size:13px}.legend-note{font-size:10px;max-width:330px}.swatch{width:28px;font-size:11px}#oceanReadout{width:225px;right:18px;top:175px}.ocean-values strong{font-size:21px}.ocean-values small{font-size:11px}.ocean-note{font-size:11px}.ocean-legend-title,.ocean-legend-title b{font-size:15px}.ocean-ticks{font-size:13px}.forecast-line{font-size:12px}.credits{font-size:9px}}
@media(max-width:1100px){#controls{width:320px;padding:20px}#stage{right:320px}.clean #stage{right:0}}
@media(max-width:680px){body:not(.clean) #controls{width:280px;padding:15px}body:not(.clean) #stage{right:280px}.clean #stage{right:0}}
