:root{--ink:#111a20;--panel:#152028;--panel2:#19252d;--panel3:#202d34;--stroke:#34414a;--muted:#8e9a9f;--muted2:#b2b9b8;--cream:#f0e8d8;--orange:#f2ac76;--orange2:#d96c3f;--teal:#92c8bd;--gold:#f5ce8f}
*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#0c141a;color:var(--cream);font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;font-size:13px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.app-shell{min-height:100vh;max-width:2200px;margin:auto;background:var(--ink)}.topbar{height:74px;padding:0 31px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #334047;background:#121b22;gap:20px}.brand{display:flex;align-items:center;gap:13px;min-width:245px}.brand-mark{height:26px;width:26px;position:relative;overflow:hidden;border:1px solid var(--orange);border-radius:50%}.brand-mark span{position:absolute;height:1px;width:30px;background:var(--orange);left:-2px;transform:rotate(-24deg)}.brand-mark span:nth-child(1){top:8px}.brand-mark span:nth-child(2){top:13px}.brand-mark span:nth-child(3){top:18px}.brand-copy strong{display:block;font-size:16px;letter-spacing:.15em;font-weight:800}.brand-copy strong span{color:var(--orange)}.brand-copy small{display:block;color:#7f929b;font-size:8px;letter-spacing:.19em;margin-top:4px}.navline,.top-actions{display:flex;align-items:center;gap:21px;white-space:nowrap}.nav-pill{display:flex;align-items:center;gap:9px;color:#ccd3d3;font-size:10px;letter-spacing:.14em}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--teal);box-shadow:0 0 9px #8fcbbd88}.nav-divider{height:18px;width:1px;background:#44505a}.nav-region{font-size:10px;letter-spacing:.14em;color:var(--orange)}.nav-region b{color:#53636c;margin:0 7px}.top-edition{font-size:10px;letter-spacing:.11em;color:#839199}.icon-button{border:1px solid #4d5d64;background:transparent;color:#eee0d0;width:29px;height:29px;border-radius:50%}.workbench{display:grid;grid-template-columns:300px minmax(0,1fr) 318px;min-height:calc(100vh - 74px)}.control-panel,.results-panel{background:var(--panel);min-width:0}.control-panel{border-right:1px solid var(--stroke);display:flex;flex-direction:column}.identity-section{padding:30px 25px 27px;border-bottom:1px solid var(--stroke)}.eyebrow{font-size:10px;letter-spacing:.2em;color:var(--orange);font-weight:700}.hairline{display:inline-block;width:23px;height:1px;background:var(--orange);vertical-align:middle;margin-right:9px}.identity-section h1{font-size:57px;font-weight:750;letter-spacing:-.066em;line-height:.94;margin:23px 0 18px}.slash{color:#cf6d43;padding:0 6px;font-weight:400}.title-point{color:var(--orange)}.lead{font-size:13px;max-width:215px;color:#bec5c5;line-height:1.6;margin:0}.identity-meta{margin-top:21px;display:flex;flex-wrap:wrap;gap:7px}.identity-meta span{font-size:9px;letter-spacing:.08em;border:1px solid #46515a;border-radius:2px;padding:6px 7px;color:#a8b5b6}.identity-meta span:first-child{color:var(--orange);border-color:#865f4b}.section-block{border-bottom:1px solid var(--stroke);padding:23px 25px 22px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.section-heading h2{margin:0;color:var(--orange);font-size:10px;letter-spacing:.15em;font-weight:800}.section-heading h2 span{color:#e4e5de;letter-spacing:.02em;font-size:12px;margin-left:9px}.hint-button{border:1px solid #596971;border-radius:50%;width:19px;height:19px;background:transparent;color:#cdd5d3;font-size:10px}.segmented{display:flex;padding:3px;background:#101920;border:1px solid #34424a;border-radius:7px;gap:2px}.segmented button{flex:1;background:none;color:#8d9b9e;border:0;font-size:10px;font-weight:700;padding:10px 2px;border-radius:5px}.segmented button.active{background:#334248;color:#f7e0c7}.programme-caption{font-size:10px;color:#a2afb0;line-height:1.5;margin:11px 0 20px;min-height:30px}.control-line{display:flex;justify-content:space-between;align-items:baseline;gap:5px;margin:17px 0 11px}.control-line label{font-size:11px;color:#e2e1da;font-weight:650}.unit{font-size:8px;color:#788a92;font-weight:600;letter-spacing:.08em;margin-left:3px}.control-line output{font-size:14px;color:var(--gold);font-weight:800;font-variant-numeric:tabular-nums}.control-panel input[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;height:4px;background:linear-gradient(90deg,#cf7c51,#3c4b50);border-radius:5px;margin:0 0 8px;cursor:pointer}.control-panel input[type=range]::-webkit-slider-thumb{appearance:none;background:#f2d7b2;width:13px;height:13px;border:3px solid #dd8c5c;box-shadow:0 0 0 2px #182229;border-radius:50%}.control-panel input[type=range]::-moz-range-thumb{background:#f2d7b2;width:10px;height:10px;border:3px solid #dd8c5c;border-radius:50%}.range-limits,.compass-line{display:flex;justify-content:space-between;color:#758994;font-size:8px;letter-spacing:.06em}.compass-line{margin-top:12px}.condition-note{display:flex;align-items:center;gap:10px;margin-top:22px;background:#233038;padding:13px;border-left:2px solid var(--teal);font-size:10px;color:#b0c5c3;line-height:1.45}.note-icon{font-size:18px;color:var(--teal)}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tool-btn{display:flex;flex-direction:column;align-items:flex-start;gap:9px;background:#19252d;color:#bfc8c7;border:1px solid #3b4a50;border-radius:6px;padding:12px 10px;font-size:10px;font-weight:700;text-align:left;min-height:71px}.tool-btn.active{border-color:#edaa70;background:#372d2b;color:#f3dbc0}.tool-glyph{font-size:20px;line-height:1;color:var(--orange)}.subtle{font-size:10px;color:#93a1a5;line-height:1.65;margin:13px 0 0}.subtle strong{color:var(--gold)}.panel-foot{margin-top:auto;padding:22px 25px;display:flex;align-items:center;justify-content:space-between;color:#657982;font-size:9px;letter-spacing:.075em;gap:5px}.signal{color:#a3c0b6;white-space:nowrap}.signal .dot{margin-right:5px}.central-workspace{min-width:0;display:flex;flex-direction:column;background:#101920;padding:23px 22px 0}.canvas-top{display:flex;align-items:center;justify-content:space-between;padding:1px 2px 18px}.view-overline,.mini-eyebrow{color:#9faeaf;font-size:9px;letter-spacing:.19em;font-weight:700}.scene-title{font-size:17px;font-weight:800;letter-spacing:.035em;margin-top:6px}.scene-asterisk{color:var(--orange);font-size:13px}.live-tag{display:flex;align-items:center;gap:9px;font-size:9px;letter-spacing:.13em;color:#afcabe}.live-pulse{width:7px;height:7px;border:1px solid var(--teal);border-radius:50%;box-shadow:0 0 0 3px #8bdac21a}.viewport{position:relative;overflow:hidden;background:#543929;min-height:420px;flex:1;border:1px solid #654d40;border-radius:6px;isolation:isolate;touch-action:none}.viewport canvas{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:none}.viewport-vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#1d1b1a70 0%,transparent 22%,transparent 78%,#10171ad0 100%)}.viewport-top-left,.viewport-top-right,.viewport-bottom-left,.viewport-bottom-right{position:absolute;z-index:3}.viewport-top-left{left:22px;top:21px;display:flex;flex-direction:column;gap:7px;font-size:8px;letter-spacing:.12em;color:#fae7cfb0}.coordinate-label{color:#ffdfb9;font-weight:700;font-size:10px}.viewport-top-right{right:22px;top:15px;display:flex;flex-direction:column;align-items:center;gap:7px}.compass-widget{height:74px;width:74px;border:1px solid #ead5b46b;border-radius:50%;background:#2d282853;display:flex;align-items:center;justify-content:center;position:relative}.compass-widget:before,.compass-widget:after{position:absolute;content:"";background:#eed4b544}.compass-widget:before{width:1px;height:56px}.compass-widget:after{height:1px;width:56px}.compass-arrow{color:#ffd09c;font-size:35px;position:relative;z-index:2;transform-origin:50% 50%;text-shadow:0 1px 5px #3b170e}.compass-n,.compass-s{position:absolute;font-size:8px;color:#ffe6ca;left:50%;transform:translateX(-50%);z-index:3}.compass-n{top:2px}.compass-s{bottom:2px}.bearing-caption{font-size:8px;letter-spacing:.1em;color:#f9e2cb}.viewport-bottom-left{bottom:23px;left:22px;font-size:9px;letter-spacing:.065em;color:#fae0c4;display:flex;align-items:center;gap:8px;text-shadow:0 2px 8px #19130c}.status-dot{background:#f6c48d;width:5px;height:5px;border-radius:50%}.viewport-bottom-right{bottom:18px;right:18px;display:flex;gap:5px}.cam-btn{height:32px;min-width:39px;border:1px solid #9a857c;background:#273036c9;border-radius:3px;color:#ddd3c6;font-size:9px;letter-spacing:.045em;font-weight:800}.cam-btn.active{background:#f0c495;color:#28221d;border-color:#f0c495}.viewport-notice{position:absolute;z-index:5;bottom:68px;left:50%;transform:translateX(-50%);padding:9px 14px;background:#18242dea;border:1px solid #b28c63;color:#f6ddbd;border-radius:4px;font-size:11px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90%;text-align:center}.viewport-notice.show{opacity:1}.sim-toolbar{display:flex;align-items:center;gap:15px;padding:17px 1px 20px;border-bottom:1px solid #304048}.transport{display:flex;gap:7px;flex-wrap:wrap}.play-button{display:inline-flex;align-items:center;gap:10px;color:#2a211a;background:#f2b984;border:1px solid #f2b984;font-size:10px;font-weight:800;letter-spacing:.06em;padding:13px 15px;border-radius:4px;white-space:nowrap}.play-button:hover{background:#ffd09e}.secondary-action{border:1px solid #475860;border-radius:4px;background:#1b2730;color:#c7d1cf;padding:12px 12px;white-space:nowrap;font-size:9px;font-weight:750;letter-spacing:.055em}.secondary-action:hover,.export-btn:hover{border-color:#e2aa7e}.time-panel{margin-left:auto;white-space:nowrap;text-align:right;display:flex;align-items:center;gap:10px}.time-panel>span{color:#859aa2;font-size:8px;letter-spacing:.13em}.counter strong{font-size:24px;letter-spacing:-.03em;font-weight:700;color:#ffdbb8;font-variant-numeric:tabular-nums}.counter span{color:#7b909a;font-size:12px}.speed-group{display:flex;padding:3px;border:1px solid #3c4e58;background:#18252c;border-radius:5px}.speed{border:0;background:transparent;color:#738c93;padding:8px;font-size:10px;font-weight:700}.speed.active{color:#f2dfc7;background:#36454e;border-radius:3px}.below-canvas{display:flex;justify-content:space-between;gap:25px;padding:20px 2px 24px}.explainer{max-width:600px}.explainer p{color:#9aa9aa;line-height:1.6;font-size:11px;margin:7px 0 0}.view-legend{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:120px;font-size:9px;color:#afb4b0;letter-spacing:.04em}.view-legend div{white-space:nowrap}.legend-swatch{width:9px;height:9px;display:inline-block;border-radius:2px;margin-right:8px}.swatch-ochre{background:#e4925e}.swatch-ivory{background:#e8dfc6}.swatch-teal{background:#90c8be}.results-panel{border-left:1px solid var(--stroke);padding:29px 22px 15px;display:flex;flex-direction:column}.results-head{padding-bottom:23px;border-bottom:1px solid var(--stroke)}.results-head h2{font-size:30px;font-weight:750;line-height:1.02;letter-spacing:-.04em;margin:17px 0 12px}.results-head em{color:var(--orange);font-style:normal}.results-head p{font-size:11px;line-height:1.55;color:#91a3a6;margin:0}.readout-grid{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--stroke)}.metric{padding:17px 9px 18px 2px;min-height:126px;border-bottom:1px solid #34434b}.metric:nth-child(even){padding-left:15px;border-left:1px solid var(--stroke)}.metric:nth-last-child(-n+2){border-bottom:0}.metric-title{font-size:9px;font-weight:750;letter-spacing:.09em;color:#aab9b7}.metric-title span{color:var(--orange)}.metric-value{display:flex;align-items:baseline;gap:5px;margin-top:12px;flex-wrap:wrap}.metric-value strong{font-size:28px;font-weight:750;line-height:1;color:#faebd7;letter-spacing:-.055em;font-variant-numeric:tabular-nums}.metric-value small{font-size:8px;color:#80949b;letter-spacing:.07em}.micro-bar{height:3px;background:#43525b;margin-top:16px}.micro-bar span{height:100%;background:var(--orange);display:block;transition:width .25s}.metric-detail{display:block;margin-top:12px;color:#778f97;line-height:1.35;font-size:9px}.objective-section,.chart-section{border-bottom:1px solid var(--stroke);padding:23px 1px}.objective-section .section-heading,.chart-section .section-heading{margin-bottom:14px}.objective-section .section-heading h2,.chart-section .section-heading h2{color:var(--cream)}.objective-badge{font-size:8px;letter-spacing:.09em;color:#e9be83;border:1px solid #76583e;border-radius:3px;padding:5px 6px;white-space:nowrap}.objective-badge.success{color:var(--teal);border-color:#477c77}.objective-badge.failure{color:#f1a79b;border-color:#925b55}.objective-section h3{margin:0 0 9px;font-size:18px;font-weight:750}.objective-section p{font-size:11px;line-height:1.6;color:#9dadaf;margin:0 0 18px}.objective-section p b{color:#ebd4b7;font-weight:600}.check-row{display:flex;align-items:center;gap:8px;border-top:1px solid #344149;padding:10px 1px;font-size:10px;color:#b6c3c2}.check-row strong{margin-left:auto;font-variant-numeric:tabular-nums;color:#e5bc94}.check-icon{color:#708f90;font-size:16px}.check-icon.complete{color:#b4ddc9}.objective-message{color:#d9ba95;font-size:10px;line-height:1.6;background:#302e2c;padding:11px 12px;border-left:2px solid #c58a54;margin-top:7px}.chart-unit{font-size:8px;letter-spacing:.09em;color:#7a909a}.chart-key{display:flex;gap:12px;font-size:9px;color:#aab8b8;margin-bottom:7px}.key-dot{height:6px;width:6px;display:inline-block;border-radius:50%;margin-right:6px}.key-yellow{background:#f2b984}.key-blue{background:#8fcac2}#dataChart{width:100%;height:124px;display:block}.chart-footer{display:flex;justify-content:space-between;color:#667f87;font-size:8px;letter-spacing:.07em;margin-top:2px}.export-section{padding-top:15px;display:flex;flex-direction:column;gap:7px}.export-btn{width:100%;display:flex;justify-content:space-between;align-items:center;padding:13px 12px;background:#192630;border:1px solid #46555e;border-radius:4px;color:#e7dbce;font-size:10px;letter-spacing:.04em;font-weight:700;text-align:left}.export-btn span{color:#efb78b;font-size:9px}.copyright{margin-top:auto;color:#627983;font-size:8px;letter-spacing:.075em;padding-top:22px}.copyright span{color:#ce9e77}.help-dialog{border:1px solid #806c58;border-radius:8px;background:#19262e;color:#eee5d8;max-width:min(690px,92vw);max-height:90vh;overflow:auto;padding:27px 30px;box-shadow:0 20px 90px #000b}.help-dialog::backdrop{background:#060a0dc9}.dialog-header{display:flex;justify-content:space-between;align-items:center}.close-btn{background:transparent;color:#eee4d2;border:1px solid #52636a;border-radius:50%;width:30px;height:30px}.help-dialog h2{font-size:29px;letter-spacing:-.03em;line-height:1.1;margin:20px 0}.help-dialog p{font-size:12px;line-height:1.7;color:#b5c3c3}.help-columns{display:grid;grid-template-columns:1fr 1fr;gap:30px}.help-columns h3{font-size:13px;color:#f3bd8e;margin:20px 0 0}.dialog-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #425057;padding-top:20px;margin-top:17px;color:#80949b;font-size:9px;letter-spacing:.07em}.help-dialog form{margin:0}
@media(max-width:1350px){.workbench{grid-template-columns:260px minmax(0,1fr) 286px}.identity-section h1{font-size:52px}.identity-section,.section-block{padding-left:19px;padding-right:19px}.results-panel{padding-left:16px;padding-right:16px}.central-workspace{padding:21px 16px 0}.viewport{min-height:370px}.secondary-action{padding:12px 8px}.play-button{padding:13px 11px}.sim-toolbar{gap:8px}.navline{gap:12px}.topbar{padding-left:18px;padding-right:18px}}
@media(max-width:1120px){.workbench{grid-template-columns:250px minmax(0,1fr)}.results-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 26px;border-left:0;border-top:1px solid var(--stroke);padding:25px}.results-head{border-right:1px solid var(--stroke);padding-right:25px}.readout-grid{border-bottom:1px solid var(--stroke)}.objective-section,.chart-section{border-bottom:1px solid var(--stroke)}.export-section{grid-column:1/-1;flex-direction:row}.copyright{grid-column:1/-1;padding-top:17px}.viewport{min-height:440px}.top-edition{display:none}}
@media(max-width:680px){.topbar{height:63px;padding:0 13px}.brand{min-width:auto}.brand-copy strong{font-size:12px}.brand-copy small{font-size:7px}.navline{display:none}.workbench{display:flex;flex-direction:column}.central-workspace{order:1;padding:17px 12px 0}.control-panel{order:2;border:0;border-top:1px solid var(--stroke)}.results-panel{order:3;display:flex;padding:24px 18px 18px}.identity-section{padding:21px 18px}.identity-section h1{font-size:40px;margin:12px 0}.identity-section h1 br{display:none}.lead{max-width:none}.section-block{padding:20px 18px}.control-panel .identity-meta{margin-top:15px}.viewport{min-height:365px}.viewport-top-left{left:11px;top:12px}.viewport-top-right{right:8px;top:10px}.compass-widget{height:57px;width:57px}.compass-widget:before{height:43px}.compass-widget:after{width:43px}.compass-arrow{font-size:25px}.viewport-bottom-left{left:10px;bottom:60px;max-width:62%;font-size:8px}.viewport-bottom-right{bottom:14px;right:10px}.cam-btn{min-width:36px}.canvas-top{padding-bottom:12px}.scene-title{font-size:13px}.view-overline{font-size:8px}.sim-toolbar{flex-wrap:wrap;justify-content:space-between;gap:12px}.transport{width:100%}.transport>*{flex:1;justify-content:center}.time-panel{margin-left:0}.below-canvas{flex-direction:column;gap:14px}.view-legend{flex-direction:row;gap:14px;flex-wrap:wrap}.readout-grid{border-bottom:1px solid var(--stroke)}.metric{min-height:116px}.results-head{border-right:none}.export-section{flex-direction:column}.dialog-bottom{flex-direction:column;align-items:stretch}.help-columns{grid-template-columns:1fr;gap:5px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

#btnPlay:disabled{opacity:.66;cursor:default;background:#bc9273;border-color:#bc9273}
