:root{color-scheme:dark;--ink:#10232e;--navy:#071a25;--surface:#102832;--stroke:rgba(211,231,220,.12);--text:#e9e9dd;--muted:#9daeb2;--subtle:#728b91;--gold:#ebb967;--jade:#91c5b6;--cream:#f1e8d5;--darker:#06141d;--font:Inter,'Aptos',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}html,body{padding:0;margin:0;min-width:320px;min-height:100%;background:var(--navy);color:var(--text);font-family:var(--font)}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,#viewport:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button:disabled{opacity:.35;cursor:not-allowed;filter:grayscale(.45)}.app-shell{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}.topbar{height:82px;background:#10242d;display:flex;justify-content:space-between;align-items:center;padding:0 30px;border-bottom:1px solid var(--stroke);gap:20px}.brand{display:flex;align-items:center;gap:17px}.brand-mark{width:41px;height:41px;border:1.5px solid #dca862;display:flex;justify-content:space-evenly;align-items:center;transform:rotate(-8deg);padding:8px;flex-shrink:0}.brand-mark i{display:block;height:29px;width:3px;background:#dca862;transform:skewY(12deg)}.brand-mark i:nth-child(2){height:20px}.brand-mark i:nth-child(3){height:28px}.brand-mark i:nth-child(4){height:17px}.brand-txt{display:flex;flex-direction:column;gap:3px}.eyebrow,.overline,.section-label,.info-overline{font-size:10px;letter-spacing:1.8px;font-weight:750;color:var(--gold)}.brand-dot{color:#718b90;margin:0 3px}.brand-txt strong{font-size:20px;font-weight:680;letter-spacing:2.3px;white-space:nowrap}.brand-txt strong span{color:var(--gold);font-weight:400}.top-right{display:flex;align-items:center;gap:16px}.region-pill{font-size:10px;letter-spacing:1.25px;font-weight:700;border:1px solid var(--stroke);padding:11px 15px;border-radius:50px;white-space:nowrap}.dot-spacer{color:var(--gold);padding:0 4px}.engine-pill{border-radius:20px;padding:8px 10px;font-size:9px;font-weight:750;letter-spacing:1px;color:#8dd7c8;background:#20453f;white-space:nowrap}.header-btn{border:1px solid var(--stroke);background:none;color:var(--cream);border-radius:4px;padding:9px 11px;font-weight:800;font-size:13px}.header-btn span{font-weight:600;letter-spacing:1px;font-size:10px;margin-left:6px}.main-grid{display:grid;grid-template-columns:minmax(285px,335px) minmax(440px,1fr) minmax(275px,325px);flex:1;min-height:0}.panel{background:#0b202a}.controls-panel{padding:27px 25px 15px;border-right:1px solid var(--stroke);display:flex;flex-direction:column}.aside-top h1{font-size:32px;line-height:1.16;font-weight:600;letter-spacing:-.8px;margin:15px 0}.aside-top em,.insight-top em{font-style:normal;color:var(--gold)}.aside-top p,.insight-top p{font-size:12px;color:#a6b4b2;line-height:1.7;margin:0 0 18px}.target-card{padding:16px;background:#17313a;border:1px solid rgba(231,192,130,.22);border-radius:7px}.target-heading{display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:1.2px;font-weight:750;color:var(--gold)}.target-symbol{font-size:21px}.target-card p{font-size:12px;line-height:1.6;margin:10px 0 14px;color:#d5e0d9}.target-card b{color:#fff}.progress-track{height:5px;width:100%;border-radius:6px;background:#31454a;overflow:hidden}.progress-fill{height:100%;width:0%;background:linear-gradient(90deg,#c99157,#f0bf75);transition:width .4s}.progress-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:9px;color:#b6c5c1;letter-spacing:1px}.progress-footer span:last-child{color:var(--gold)}.control-section{border-top:1px solid var(--stroke);padding-top:18px;margin-top:21px}.section-label{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#d8ded6;letter-spacing:1.45px;font-size:10px;margin-bottom:14px}.annotation{color:#769097;font-size:9px;letter-spacing:.9px;white-space:nowrap}.instruction{display:flex;flex-direction:column;gap:5px;background:#132b35;border-left:2px solid #d8ac6c;padding:11px 13px;margin-bottom:10px;min-height:87px}.instruction span:first-child{color:var(--gold);font-size:9px;font-weight:750;letter-spacing:1.5px}.instruction strong{font-size:13px;font-weight:650}.instruction span:last-child{color:#9fb0ae;font-size:11px;line-height:1.45}.two-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:9px}.action-btn{width:100%;display:flex;justify-content:center;align-items:center;gap:10px;border-radius:3px;padding:12px 8px;border:1px solid #49616a;font-size:10px;font-weight:780;letter-spacing:1px;min-height:41px}.action-btn small{opacity:.75;float:right;margin-left:4px;font-size:9px;font-weight:650}.action-btn.secondary{background:#1c3b45;color:#e4eadd}.action-btn.primary{background:#e0b06c;color:#14232b;border-color:#e0b06c;margin-bottom:8px}.action-btn.accent{background:#2a5555;color:#dff3e8;border-color:#3d7571}.action-btn:not(:disabled):active,.tool-btn:active{transform:translateY(1px)}.btn-icon{font-size:19px;line-height:13px}.range-line{display:flex;justify-content:space-between;align-items:center;margin-top:15px;font-size:12px}.range-line output{font-size:10px;color:var(--gold);font-variant-numeric:tabular-nums}.control-section input[type=range]{display:block;width:100%;margin:12px 0 6px;accent-color:#e9b771;height:5px;cursor:pointer}.range-note,.small-note{font-size:10px;color:#819aa0;line-height:1.6;margin:0}.colour-options{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.colour-choice{background:#102c36;border:1px solid var(--stroke);border-radius:3px;padding:10px 1px;color:#9faeaf;font-size:9px;display:flex;flex-direction:column;align-items:center;gap:8px}.colour-choice.selected{border-color:var(--gold);color:var(--cream);background:#243c43}.colour-choice span{width:24px;height:24px;background:var(--yarn);border-radius:50%;border:2px solid rgba(255,255,255,.18)}.target-yarn{margin-top:12px;border:1px dashed #435661;padding:9px 10px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#9baeb0}.target-yarn>span{display:flex;gap:8px;align-items:center;color:#e2e8da}.mini-colour{background:var(--gold);width:10px;height:10px;border-radius:50%}.control-section select{width:100%;padding:11px 12px;background:#1d3740;color:#e9e7da;border:1px solid #476069;border-radius:3px;font-size:12px;margin-bottom:9px}.management{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:14px}.tool-btn{background:#1a3540;color:#dce7dd;border:1px solid var(--stroke);padding:10px 3px;border-radius:3px;font-size:9px;letter-spacing:.4px;font-weight:700;min-height:38px}.tool-btn span{font-size:14px;margin-right:3px}.tool-btn.active{border-color:var(--gold);color:var(--gold)}.sidebar-bottom{margin-top:auto;padding-top:25px;padding-bottom:12px;font-size:9px;line-height:1.8;color:#607d83;letter-spacing:.7px}.scene-panel{display:flex;flex-direction:column;min-width:0;min-height:810px;background:#09212b}.scene-header{display:flex;align-items:center;justify-content:space-between;padding:28px 31px 21px;gap:15px}.scene-header .overline{color:#99c9c1}.scene-header h2{margin:6px 0 0;font-weight:590;letter-spacing:-.7px;font-size:26px}.gold-period{color:var(--gold)}.scene-state{font-size:10px;letter-spacing:1px;color:#c6d4c9;display:flex;align-items:center;gap:7px;white-space:nowrap}.live-dot{width:7px;height:7px;border-radius:50%;background:#7fd4ac;box-shadow:0 0 11px #55ad92}.viewport{position:relative;background:radial-gradient(ellipse at 57% 38%,#254750 0%,#0c2631 54%,#081a23 100%);overflow:hidden;flex:1;min-height:560px;cursor:grab;touch-action:none;user-select:none}.viewport:active{cursor:grabbing}#sceneCanvas,.three-canvas{position:absolute;width:100%;height:100%;inset:0;display:block;touch-action:none}.three-canvas{z-index:2}.scene-vignette{z-index:3;position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(4,20,29,.24),transparent 22%,transparent 68%,rgba(3,17,26,.47))}.camera-bar{z-index:4;position:absolute;top:17px;left:20px;display:flex;gap:4px;align-items:center;background:#071c26bb;padding:5px;border:1px solid rgba(213,235,226,.14);border-radius:4px;backdrop-filter:blur(12px)}.camera-bar>span{font-size:9px;letter-spacing:1.3px;color:#a3bebd;font-weight:760;padding:0 10px}.camera-btn{border:0;background:transparent;padding:10px;color:#8aa8ac;font-size:10px;white-space:nowrap;border-radius:3px}.camera-btn b{font-size:10px;font-weight:650;color:inherit;margin-left:4px}.camera-btn.active{background:#e3b576;color:#14232c}.scene-hud{position:absolute;top:88px;left:27px;z-index:4;display:flex;flex-direction:column;gap:5px;pointer-events:none}.hud-label{font-size:9px;color:#e6be7d;letter-spacing:1.5px;font-weight:700}.scene-hud>span{font-size:10px;letter-spacing:1px;color:#d1e0d9}.view-compass{position:absolute;right:22px;top:24px;z-index:4;display:flex;flex-direction:column;align-items:center;gap:5px;color:#adcbc3;font-size:8px;letter-spacing:1px;pointer-events:none}.compass-cross{height:36px;width:36px;display:grid;place-items:center;font-size:29px;border:1px solid #7795984d;border-radius:50%;color:#d7b77f}.inspect-notice{position:absolute;bottom:66px;left:20px;z-index:4;padding:11px 14px;border-left:2px solid #e2b16e;background:#0a2129dd;max-width:285px;display:flex;flex-direction:column;gap:5px;pointer-events:none;backdrop-filter:blur(9px)}.inspect-notice strong{font-size:9px;letter-spacing:1.5px;color:#ecc17d}.inspect-notice span{font-size:11px;color:#b3cecb;line-height:1.4}.nav-hint{z-index:4;bottom:19px;left:20px;position:absolute;color:#b8c9c7;font-size:9px;letter-spacing:1.1px;pointer-events:none}.nav-hint span{color:#d8b479;padding:0 7px}.scene-fallback{position:absolute;top:105px;left:50%;transform:translateX(-50%);z-index:8;background:#8e5538;color:#fff;padding:10px 16px;font-size:12px;border-radius:3px;max-width:80%;text-align:center}.scene-footer{display:flex;align-items:center;flex-wrap:wrap;gap:21px;background:#0e2933;border-top:1px solid #26424d;padding:16px 25px;color:#a6bfba;font-size:9px;letter-spacing:.85px}.scene-footer>span{display:flex;align-items:center;gap:7px}.legend-line{width:17px;height:3px;border-radius:3px;display:inline-block}.legend-line.gold{background:#ecbd75}.legend-line.teal{background:#69c6b1}.legend-line.walnut{background:#9b795c}.scene-footer-right{margin-left:auto;color:#71969b}.explainer-strip{display:flex;gap:17px;background:#112f39;padding:19px 25px;border-top:1px solid var(--stroke)}.explainer-icon{width:20px;height:20px;line-height:18px;text-align:center;border:1px solid #bcac87;border-radius:50%;flex-shrink:0;color:#ead7b9;font-family:Georgia,serif}.explainer-strip b{font-size:12px;color:#e9e5d7}.explainer-strip p{font-size:11px;line-height:1.6;color:#99b3b3;margin:5px 0 0;max-width:800px}.insight-panel{padding:28px 23px 18px;border-left:1px solid var(--stroke);display:flex;flex-direction:column}.insight-top h2{font-size:23px;font-weight:590;line-height:1.3;margin:18px 0 8px;letter-spacing:-.6px}.insight-top p{margin-bottom:22px}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.metric{min-width:0;padding:13px 11px 12px;border:1px solid var(--stroke);background:#132e38;display:flex;flex-direction:column;gap:6px}.metric>span{font-size:8px;letter-spacing:1.1px;color:#9dafb2;white-space:nowrap;font-weight:780}.metric strong{font-size:26px;line-height:1.2;color:#f4e7c9;font-weight:550;font-variant-numeric:tabular-nums}.metric strong i{font-style:normal;font-size:12px;color:#9da9a9}.metric small{font-size:9px;color:#94aaad}.insight-section{margin-top:25px}.chart-canvas{width:100%;height:130px;display:block;background:linear-gradient(180deg,#0f2b36,#102936);border-radius:2px}.chart-legend{display:flex;justify-content:space-between;font-size:9px;color:#92a6ab;margin-top:8px}.chart-legend i{background:var(--gold);width:14px;height:3px;display:inline-block;vertical-align:middle;margin-right:4px}.swatch-frame{background:#1b3a40;padding:13px;border:1px solid rgba(200,210,193,.11);height:156px;display:flex;justify-content:center}.swatch-frame canvas{height:100%;width:100%;max-width:275px}.swatch-caption{display:flex;justify-content:space-between;margin-top:8px;font-size:8px;letter-spacing:1px;color:#859da2}.journal{display:flex;flex-direction:column;gap:12px;max-height:235px;overflow-y:auto;scrollbar-width:thin}.journal-entry{display:flex;gap:10px;min-height:42px}.journal-index{height:25px;min-width:24px;border:1px solid #455b60;display:grid;place-items:center;color:#d0b88c;font-size:9px;font-family:monospace}.journal-entry b{font-size:10px;font-weight:650;color:#e0e6d6}.journal-entry p{color:#95adb1;font-size:10px;line-height:1.5;margin:5px 0 0}.export-row{display:grid;grid-template-columns:1fr 1fr;gap:7px}.export-btn{font-size:9px;letter-spacing:.5px;padding:11px 6px;border:1px solid #527477;background:#21413f;color:#d3e8dc;white-space:nowrap}.info-card{margin-top:25px;border-left:2px solid var(--gold);padding:15px;background:#19323a}.info-overline{font-size:9px}.info-card p{color:#b2c4bd;font-size:11px;line-height:1.65}.info-card a{color:#edc990;font-size:10px;display:block;margin-top:9px;text-decoration:none;line-height:1.4}.info-card a:hover{text-decoration:underline}.bottom-bar{border-top:1px solid var(--stroke);display:flex;justify-content:space-between;padding:13px 29px;color:#66868a;background:#071b25;font-size:9px;letter-spacing:1px}.bottom-bar b{color:var(--gold);margin:0 10px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,30px);padding:12px 19px;background:#e4b775;color:#142a32;border-radius:3px;box-shadow:0 10px 40px #0006;font-size:12px;font-weight:690;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:92vw;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.help-modal{position:fixed;inset:0;background:#031017d9;z-index:50;display:grid;place-items:center;padding:20px;overflow-y:auto}.help-modal[hidden]{display:none}.help-card{background:#112d37;border:1px solid #496267;box-shadow:0 28px 90px #0007;max-width:700px;width:100%;max-height:90vh;overflow-y:auto;padding:30px 35px;position:relative}.help-card h2{margin:13px 0;font-size:26px}.help-card h3{font-size:14px;margin:25px 0 6px}.help-card p{font-size:12px;line-height:1.8;color:#bacac4}.help-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.help-steps>div{padding:13px;border:1px solid var(--stroke);background:#193941}.help-steps b{color:#eac38c;font-size:13px}.help-card kbd{border:1px solid #627976;padding:1px 5px;border-radius:3px}.close-help{position:absolute;right:20px;top:13px;font-size:28px;border:0;background:none;color:#fff}.start-guide{padding:12px 25px;color:#17303a;background:#e9bd7b;border:0;font-size:11px;font-weight:780;letter-spacing:1px;margin-top:17px}
@media(max-width:1390px){.main-grid{grid-template-columns:290px minmax(370px,1fr) 285px}.controls-panel{padding:24px 18px}.insight-panel{padding:25px 16px}.scene-header{padding:25px 21px 20px}.scene-header h2{font-size:23px}.camera-bar{left:10px;gap:0}.camera-btn{font-size:9px;padding:9px 6px}.scene-footer{gap:12px;padding:13px 17px}.region-pill{display:none}}
@media(max-width:1050px){.main-grid{grid-template-columns:300px minmax(350px,1fr)}.insight-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 25px;padding:24px}.insight-panel>.overline,.insight-top{grid-column:1/-1}.insight-top p{margin:0}.insight-top h2{margin:8px 0}.insight-panel .insight-section,.insight-panel .info-card{margin-top:0}.scene-panel{min-height:870px}}
@media(max-width:750px){.topbar{height:auto;min-height:72px;padding:12px 16px}.brand{gap:11px}.brand-txt strong{font-size:15px;letter-spacing:1.4px}.brand-txt .eyebrow{font-size:8px;letter-spacing:1.1px}.brand-mark{width:33px;height:33px;padding:6px}.brand-mark i{height:22px}.top-right{gap:7px}.header-btn{font-size:12px;padding:7px 9px}.header-btn span{display:none}.engine-pill{font-size:8px;letter-spacing:.3px;padding:7px}.main-grid{display:flex;flex-direction:column}.scene-panel{order:0;min-height:0}.controls-panel{order:1;border-right:0;border-top:1px solid var(--stroke);padding:22px 20px}.insight-panel{order:2;display:flex;padding:22px 20px}.scene-header{padding:22px 16px 14px}.scene-header h2{font-size:21px}.scene-header .overline{font-size:8px}.scene-state{font-size:9px}.viewport{height:min(67vh,560px);height:min(67dvh,560px);min-height:390px;flex:none}.camera-bar{top:11px;left:8px;right:8px;justify-content:space-evenly;overflow-x:auto}.camera-bar>span{display:none}.camera-btn{padding:9px 8px}.camera-btn b{font-size:9px}.scene-hud{top:65px;left:13px}.view-compass{top:75px;right:13px}.nav-hint{bottom:12px;left:11px;font-size:7px;letter-spacing:.3px}.nav-hint span{padding:0 3px}.inspect-notice{left:11px;bottom:43px;padding:8px 10px;max-width:245px}.inspect-notice strong{font-size:8px}.inspect-notice span{font-size:10px}.scene-footer{font-size:8px}.scene-footer-right{display:none!important}.explainer-strip{padding:17px 19px}.aside-top h1{font-size:27px}.control-section{margin-top:18px}.sidebar-bottom{padding-top:20px}.insight-panel .insight-section,.insight-panel .info-card{margin-top:14px}.stat-grid{gap:8px}.metric strong{font-size:23px}.bottom-bar{font-size:7px;padding:12px;gap:9px}.bottom-bar span:last-child{white-space:nowrap}.help-card{padding:25px 19px}.help-steps{grid-template-columns:1fr}.help-steps p{margin-bottom:0}}
@media(max-width:370px){.brand-txt strong{font-size:12px}.engine-pill{font-size:7px}.scene-header h2{font-size:18px}.scene-header .overline{letter-spacing:.4px}.scene-state{font-size:8px}.camera-btn{padding:8px 5px}.camera-btn b{font-size:8px}.scene-footer{gap:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:.001ms!important;animation-duration:.001ms!important}}
@media(max-width:500px){.engine-pill{display:none}.brand{min-width:0}.brand-txt{min-width:0}.topbar{flex-shrink:0}.header-btn{flex-shrink:0}}
