:root{color-scheme:dark;--ink:#061b2b;--panel:#092334;--card:#0c2a3a;--line:#254455;--line2:#183746;--cyan:#80e5ec;--cream:#eff8f7;--muted:#7e9eac;--green:#89dfb3;--yellow:#e5bd7b;--red:#f2968a}
*{box-sizing:border-box}body{margin:0;background:#061725;color:var(--cream);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:13px;letter-spacing:.005em;min-width:320px}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.35}button:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid #aaf6fa;outline-offset:3px}h1,h2,h3,p{margin:0}h2{font-weight:640;font-size:17px;letter-spacing:-.025em}.overline,.eyebrow{color:#86b2c3;font-size:10px;font-weight:750;letter-spacing:.16em}#app-shell{max-width:1920px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column}.topbar{height:78px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:linear-gradient(100deg,#082333,#071e2d 80%);border-bottom:1px solid var(--line2);gap:22px}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand-icon{width:45px;height:45px;border-radius:12px;background:#113a48;color:#8ff0ed;display:grid;place-items:center;border:1px solid #285763}.brand-icon svg{width:33px}.brand .eyebrow{font-size:9px}.mini-star{color:var(--yellow)}.brand-name{font-weight:890;letter-spacing:.065em;font-size:20px;line-height:1.25}.brand-name span{color:#8de7e9}.header-place{font-size:10px;color:#a1c6ce;letter-spacing:.12em;font-weight:700;white-space:nowrap}.signal-dot{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:100%;box-shadow:0 0 8px #74d1c480;margin-right:10px}.place-divider{color:#446877;margin:0 9px}.header-actions{display:flex;align-items:center;gap:14px}.edition{font-size:10px;letter-spacing:.1em;color:#6d97a4}.icon-button,.round-icon{background:#133646;color:#d3ecee;border:1px solid #305263;width:33px;height:33px;border-radius:9px;font-size:17px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 358px;flex:1;min-height:0}.visual-panel{min-width:0;display:flex;flex-direction:column;background:#071b2b}.viewport{height:clamp(440px,58vh,760px);position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(circle at 48% 20%,#14617c,#061b2a 73%)}.viewport canvas{width:100%;height:100%;display:block;touch-action:none}.viewport:after{content:"";pointer-events:none;position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(3,15,27,.58),transparent 22%,transparent 66%,rgba(3,15,26,.66));}.viewport-placeholder{z-index:0;position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;padding:30px;color:#d6edf0}.viewport-placeholder p{max-width:430px;color:#7db1c0;line-height:1.6}.loader-ring{width:52px;height:52px;border:2px solid #376579;border-top-color:#88e7e7;border-radius:50%;animation:spin 1s linear infinite}.loader-head{font-size:16px;font-weight:700}@keyframes spin{to{transform:rotate(360deg)}}.scene-top{position:absolute;z-index:2;inset:25px 26px auto;display:flex;justify-content:space-between;gap:12px;pointer-events:none}.scene-heading{max-width:660px}.scene-heading .overline{color:#9ceee9}.scene-heading h1{font-size:clamp(25px,2.55vw,42px);font-weight:760;line-height:1.08;letter-spacing:-.045em;margin:10px 0}.scene-heading h1 em{color:#94e5e5;font-style:normal}.heading-sub{font-size:11px;color:#b7cfce;line-height:1.5}.scene-control-group{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;justify-content:flex-end;pointer-events:auto}.status-pill{display:flex;align-items:center;gap:7px;background:#103745dc;border:1px solid #436a6f;padding:10px 12px;border-radius:7px;font-size:9px;font-weight:800;letter-spacing:.12em;white-space:nowrap}.pulse{width:6px;height:6px;background:#83dfb2;border-radius:100%;box-shadow:0 0 0 4px #7bf3bd1c}.tiny-btn{background:#163747b8;border:1px solid #416470;color:#d4eceb;font-size:9px;font-weight:750;letter-spacing:.1em;padding:10px;border-radius:7px;white-space:nowrap}.underwater-readout{position:absolute;left:28px;bottom:103px;z-index:2;pointer-events:none}.reading-kicker{letter-spacing:.14em;color:#a5d3d9;font-size:10px;font-weight:800}.reading-line{display:flex;align-items:baseline;gap:7px;margin:5px 0}.reading-line #readout-value{font-size:clamp(32px,4vw,58px);font-weight:760;letter-spacing:-.065em;line-height:1}.read-icon{font-size:15px;color:var(--cyan)}.read-unit{font-weight:800;color:#9ec7d1;letter-spacing:.08em;font-size:9px}.reading-detail{font-size:11px;color:#a8cdd5;max-width:390px}.transect-tags{position:absolute;bottom:111px;right:25px;z-index:2;display:flex;align-items:center;gap:13px;background:#061d2cbc;border:1px solid #3b64707a;border-radius:9px;padding:13px 16px}.tag-item{display:flex;flex-direction:column;gap:4px;text-align:center}.tag-item b{font-size:20px}.tag-item span{font-size:9px;color:#8ab0ba;letter-spacing:.07em}.tag-sep{height:28px;width:1px;background:#326073}.camera-dock{z-index:2;position:absolute;bottom:22px;left:23px;display:flex;align-items:center;gap:3px;background:#071d2ce8;border:1px solid #486674;padding:5px;border-radius:10px;max-width:calc(100% - 46px);overflow-x:auto}.dock-label{padding:0 12px 0 8px;font-size:9px;color:#8db4be;font-weight:760;letter-spacing:.1em}.camera-btn{color:#a8c9d1;background:transparent;border:0;border-radius:6px;padding:10px 12px;font-size:10px;letter-spacing:.06em;font-weight:720;white-space:nowrap}.camera-btn:hover,.camera-btn.active{color:#04222d;background:#8de6e7}.control-hint{position:absolute;right:25px;bottom:27px;z-index:2;display:flex;gap:13px;color:#bad4d9;font-size:9px;font-weight:750;letter-spacing:.08em;pointer-events:none}.simulation-deck{display:flex;align-items:center;gap:25px;padding:18px 27px 16px;border-top:1px solid #1b4453;border-bottom:1px solid #23404d;background:#0a2636;min-height:89px}.deck-left{display:flex;gap:12px;align-items:center;white-space:nowrap}.clock-symbol{font-size:31px;color:#8adfe2}.time-label{font-size:9px;font-weight:750;letter-spacing:.1em;color:#83aeb9}.clock-value{font-size:15px;font-weight:800;letter-spacing:.04em;margin-top:4px}.clock-value strong{font-size:25px;color:#d6faff;letter-spacing:-.04em}.clock-value span{color:#6c98a8;font-size:13px}.timeline{flex:1;min-width:90px}.timeline-track{background:#214050;height:5px;border-radius:10px;position:relative;overflow:visible}.timeline-fill{width:0%;height:5px;border-radius:10px;background:linear-gradient(90deg,#5cbecb,#b2f1d2);transition:width .2s}.timeline-tick{position:absolute;top:-3px;height:11px;width:2px;background:#779ca9}.timeline-caption{display:flex;justify-content:space-between;margin-top:11px;color:#83a6b3;font-size:9px;letter-spacing:.11em}.playback{display:flex;align-items:center;gap:10px}.play-button{font-size:21px;width:43px;height:43px;border:1px solid #5a9d9e;border-radius:10px;background:#8ce7dc;color:#052b33;font-weight:800}.speed-select label{font-size:9px;letter-spacing:.1em;color:#81b2bb;display:block;margin-bottom:5px;font-weight:800}.speed-select select{font-size:10px;color:#f0fbf8;font-weight:800;letter-spacing:.04em;border:none;background:#143848;padding:6px;border-radius:4px;width:116px}.step-button{background:#143949;border:1px solid #3e697a;color:#c6e8ef;border-radius:7px;padding:12px 10px;font-size:10px;font-weight:800;white-space:nowrap}.bottom-panel{display:grid;grid-template-columns:1.05fr 1fr;gap:32px;padding:26px 28px 28px;min-height:240px;background:#092332}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.section-head h2{margin-top:7px}.section-head small{font-size:11px;color:#84aab9;font-weight:500;letter-spacing:0}.legend{display:flex;gap:12px;font-size:9px;color:#acc9cf;letter-spacing:.07em;white-space:nowrap;margin-top:27px}.legend span{display:flex;align-items:center;gap:5px}.legend i{display:inline-block;width:13px;height:3px}.legend-clarity{background:#87e4e8}.legend-welfare{background:#a6d09e}#trend-chart{width:100%;height:142px;display:block;margin-top:5px}.mission-score strong{font-size:28px;color:#99e5da}.mission-score small{font-size:11px;color:#8eacb8}.objective-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}.objective{display:flex;gap:7px;align-items:center;color:#93b4c1;font-size:11px;line-height:1.4}.objective span:first-child{color:#d2b477;font-size:14px}.objective.complete span:first-child{color:#82daa4}.result-message{font-size:10px;line-height:1.6;color:#83a9b6;border-top:1px solid #294453;padding-top:10px}.sidebar{background:#0a2130;border-left:1px solid #1f3c4b;min-width:0}.sidebar-inner{padding:24px 23px;max-height:none}.panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.panel-title h2{font-size:24px;font-weight:750;margin-top:5px;letter-spacing:-.045em}.round-icon{font-size:24px}.select-card{border:1px solid #284a5b;border-radius:10px;background:#0e2a3a;padding:14px;margin-bottom:16px}.select-card label{font-size:10px;color:#8aafbc;letter-spacing:.10em;font-weight:800}.select-card select{width:100%;margin-top:9px;background:#153c4b;color:#e8f6f5;border:1px solid #386171;border-radius:6px;padding:9px;font-size:12px;font-weight:670}.select-card p{color:#80aab5;font-size:10px;line-height:1.5;margin-top:9px}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.metric-tile{border:1px solid #274754;border-radius:9px;background:#102c3a;padding:14px 13px;min-height:108px}.metric-label{font-size:9px;font-weight:760;color:#8cb8c2;letter-spacing:.07em;display:flex;justify-content:space-between}.metric-label span{color:#80d8d7;font-size:14px;line-height:10px}.metric-number{display:flex;align-items:baseline;gap:5px;margin:11px 0 10px}.metric-number strong{font-size:30px;line-height:1;font-weight:730;letter-spacing:-.05em;color:#eefcfc}.metric-number small{font-size:9px;color:#83aeb9}.tile-bar{height:4px;border-radius:3px;background:#234858;overflow:hidden}.tile-bar i{display:block;width:45%;height:100%;background:linear-gradient(90deg,#2b8fa7,#9debf0);transition:width .3s}.tile-bar.green i{background:linear-gradient(90deg,#4b9a8e,#b2e4b0)}.metric-sub{font-size:9px;color:#7fa2af}.section-divider{height:1px;background:#244351;margin:23px 0}.site-head{align-items:center}.site-head h2 span{color:#7ed5dc}.site-badge{font-size:9px;font-weight:800;letter-spacing:.05em;color:#dfbe7e;background:#4d412d5d;border:1px solid #67583d;padding:5px 7px;border-radius:5px}.site-badge.done{color:#96e4b9;background:#23524978;border-color:#42765b}.site-selector{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:14px 0}.site-tab{border:1px solid #335768;background:#10303f;color:#95bfc9;border-radius:7px;font-size:15px;font-weight:800;padding:11px}.site-tab.active{background:#8ae1df;color:#062a37;border-color:#a0f4e7}.site-name{font-size:17px;font-weight:760;letter-spacing:-.03em}.site-desc{color:#86aebb;font-size:11px;margin-top:4px}.transect-stats{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:13px;border:1px solid #264554;border-radius:9px;overflow:hidden}.transect-stats div{padding:11px 13px;background:#0d2a39}.transect-stats div:nth-child(odd){border-right:1px solid #264554}.transect-stats div:nth-child(-n+2){border-bottom:1px solid #264554}.transect-stats span{display:block;font-size:9px;color:#80a4b0;letter-spacing:.06em;font-weight:700}.transect-stats strong{display:block;font-size:17px;margin-top:6px;font-weight:750}.actions{display:grid;gap:9px;margin-top:12px}.action-main{background:#8de4dc;border:1px solid #a6eee8;color:#052b35;padding:13px;border-radius:9px;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:9px}.action-main strong,.action-main small{display:block}.action-main strong{font-size:13px}.action-main small{font-size:10px;opacity:.7;margin-top:4px}.action-main b{font-size:11px;white-space:nowrap}.action-main b span{font-size:14px}.secondary-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.secondary-actions button{padding:11px 9px;text-align:left;border:1px solid #386070;background:#163b4b;border-radius:8px;color:#d1e9ea}.secondary-actions strong,.secondary-actions small{display:block;font-size:11px}.secondary-actions small{font-size:9px;color:#91b9c1;margin-top:7px}.management-head{margin-bottom:13px}.policy{border:1px solid #274959;border-radius:9px;background:#102d3c;padding:13px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0}.policy-name{font-size:12px;font-weight:720}.policy p{font-size:10px;color:#8fb0b9;line-height:1.5;margin:5px 0}.level{font-size:9px;color:#89dac5;font-weight:750;letter-spacing:.08em}.policy button{background:#1f4855;border:1px solid #457080;border-radius:7px;color:#d7f2e6;white-space:nowrap;padding:10px;font-size:10px;font-weight:760}.journal-head{align-items:center;margin-bottom:10px}.journal-count{font-size:10px;color:#91bcc3;background:#143644;padding:5px 8px;border-radius:6px}.journal{display:flex;flex-direction:column;gap:10px;max-height:152px;overflow-y:auto;padding-right:4px;scrollbar-color:#355b69 transparent}.journal-entry{font-size:10px;color:#afc7cd;line-height:1.5;display:flex;align-items:baseline;gap:10px}.journal-day{color:#69b8be;font-weight:850;white-space:nowrap}.footer-actions{display:flex;gap:9px;margin-top:20px}.footer-actions button{border:1px solid #3b5b6b;background:#143746;color:#dbedee;border-radius:7px;padding:12px 9px;font-size:9px;font-weight:810;letter-spacing:.05em;flex:1}.disclaimer{font-size:9px;line-height:1.6;color:#708f9b;margin:19px 0 0}.footer{background:#051b2a;border-top:1px solid #1d3d4b;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:15px 27px;color:#658c9c;font-size:9px;letter-spacing:.1em;font-weight:700}#toast{position:fixed;right:22px;bottom:24px;background:#133847;color:#e3fbfa;border:1px solid #57918d;box-shadow:0 9px 40px #0008;border-radius:10px;padding:13px 17px;z-index:25;max-width:min(380px,calc(100vw - 44px));display:none;line-height:1.5}#toast.show{display:block}dialog{border:1px solid #3d7180;border-radius:16px;background:linear-gradient(145deg,#102e3e,#061e2b);color:#def4f3;box-shadow:0 20px 100px #000e;padding:28px;width:min(630px,calc(100vw - 30px));max-height:85dvh;overflow:auto}dialog::backdrop{background:#001822ca;backdrop-filter:blur(5px)}dialog h2{font-size:27px;margin:12px 0}dialog h3{font-size:15px;margin:20px 0 8px;color:#b4ece4}dialog p{font-size:13px;line-height:1.74;color:#b2d0d2;margin:10px 0}dialog a{color:#9be7e8}dialog strong{color:#e6f6f1}dialog .dialog-top{display:flex;align-items:center;justify-content:space-between}dialog .dialog-top button{background:#284b58;border:1px solid #507385;color:#ecf7f5;border-radius:6px;padding:7px 12px}.dialog-done{background:#8ce5db;border:0;color:#062d3a;padding:13px 21px;border-radius:7px;font-weight:800;margin-top:17px}
@media(max-width:1250px){.workspace{grid-template-columns:minmax(0,1fr) 326px}.sidebar-inner{padding:20px 16px}.header-place{display:none}.control-hint{display:none}.transect-tags{bottom:110px}.scene-top{left:20px;right:20px}.simulation-deck{padding-left:18px;padding-right:18px;gap:12px}.bottom-panel{gap:18px;padding:23px 18px}.step-button{padding:10px 8px}}
@media(max-width:900px){.workspace{display:flex;flex-direction:column}.sidebar{border-left:0;border-top:1px solid #345361}.sidebar-inner{padding:25px;max-width:740px;margin:auto}.viewport{height:550px}.bottom-panel{min-height:0}.control-hint{display:flex;bottom:25px}.camera-dock{bottom:61px}.transect-tags{bottom:129px}.underwater-readout{bottom:150px}.scenario-note{display:block}.metric-grid{grid-template-columns:repeat(4,1fr)}.metric-tile{min-height:111px}}
@media(max-width:620px){.topbar{height:70px;padding:0 14px}.brand-icon{width:39px;height:39px}.brand-name{font-size:18px}.brand .eyebrow{font-size:8px}.edition{display:none}.viewport{height:540px}.scene-top{inset:18px 14px auto;display:block}.scene-heading h1{font-size:31px;margin:7px 0}.scene-heading{max-width:365px}.heading-sub{font-size:10px}.scene-control-group{justify-content:flex-start;margin-top:13px}.status-pill,.tiny-btn{padding:8px}.underwater-readout{bottom:154px;left:15px}.reading-line #readout-value{font-size:43px}.reading-detail{max-width:230px;font-size:10px}.transect-tags{bottom:111px;right:14px;padding:9px;gap:8px}.tag-item b{font-size:15px}.tag-item span{font-size:7px}.tag-sep{height:23px}.camera-dock{bottom:53px;left:13px;max-width:calc(100% - 26px)}.camera-btn{padding:9px 7px;font-size:9px}.dock-label{padding:0 5px}.control-hint{left:16px;right:auto;bottom:17px;font-size:8px;gap:10px}.simulation-deck{flex-wrap:wrap;gap:15px;padding:15px}.deck-left{width:100%;justify-content:space-between}.clock-symbol{display:none}.timeline{order:2;flex:1}.playback{order:1;gap:6px}.play-button{width:37px;height:37px}.speed-select select{width:103px}.bottom-panel{grid-template-columns:1fr;padding:20px 16px}.objective-list{grid-template-columns:1fr 1fr}.sidebar-inner{padding:20px 16px}.metric-grid{grid-template-columns:1fr 1fr}.metric-number strong{font-size:29px}.footer{padding:15px;font-size:8px}.footer span:last-child{display:none}}
@media(max-width:400px){.brand-icon{display:none}.scene-heading h1{font-size:28px}.underwater-readout{bottom:170px}.transect-tags{display:none}.control-hint span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.loader-ring{animation:none}*{scroll-behavior:auto!important;transition:none!important}}

/* Keep fallback instructions separate from observation overlays on narrow displays. */
@media(max-width:620px){.viewport-placeholder.failed{justify-content:flex-start;padding:207px 22px 0}.viewport-placeholder.failed .loader-head{font-size:13px}.viewport-placeholder.failed p{font-size:10px;line-height:1.35;max-width:260px}.playback .step-button{display:block}}
