:root{color-scheme:dark;--bg:#090e14;--chrome:#0c131c;--panel:#111923;--panel2:#151f2b;--line:#29313d;--white:#f3f1ee;--muted:#9aa6b4;--faint:#627183;--accent:#e58a57;--accent-bright:#ffb477;--blue:#8cc9d7;--green:#77cbab;--r:8px;font-family:'Segoe UI',Inter,Arial,sans-serif}
*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--white)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent-bright);outline-offset:3px}.app-shell{height:100dvh;min-height:620px;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(ellipse at 50% 20%,#1c2530 0%,#090e14 65%)}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:81px;padding:13px 24px 13px 22px;border-bottom:1px solid #2a323d;background:#0e151e}.brand{display:flex;align-items:center;gap:13px;min-width:249px}.brand-symbol{border:1px solid #764a37;background:linear-gradient(145deg,#402c26,#1e262b);width:46px;height:46px;display:grid;place-items:center;border-radius:4px;color:#f9d2b4}.brand-symbol svg{width:32px}.brand-name{font:700 22px/1 'Segoe UI',Arial,sans-serif;letter-spacing:.15em}.brand-name span{color:var(--accent)}.brand-caption{font:600 9px/1.8 'Segoe UI',Arial,sans-serif;letter-spacing:.2em;color:#89929d;margin-top:4px}.top-centre{display:flex;align-items:center;gap:15px;white-space:nowrap;color:#808b99;font-size:10px;letter-spacing:.18em;font-weight:700}.top-centre b{color:#de885a}.eyebrow-line{width:22px;height:1px;background:#b36d46}.header-actions{display:flex;align-items:center;gap:9px}.status-chip{font:700 9px 'Segoe UI';letter-spacing:.1em;white-space:nowrap;color:#d2b69c;border:1px solid #524337;border-radius:2px;padding:11px 12px}.status-dot,.red-led{display:inline-block;width:6px;height:6px;border-radius:50%;background:#ea9f69;margin-right:7px;box-shadow:0 0 9px #e18555}.ghost-button,.minor-button{border:1px solid #37414e;background:#141f29;color:#d6dce3;font-weight:600;border-radius:3px;padding:11px 13px;font-size:11px;white-space:nowrap}.ghost-button:hover,.minor-button:hover{border-color:var(--accent);color:white}.workspace{display:grid;grid-template-columns:minmax(255px,292px) minmax(360px,1fr) minmax(295px,320px);flex:1;min-height:0}.sidebar{background:#101822;min-height:0;overflow:hidden}.sidebar-left{border-right:1px solid #2b3540}.sidebar-right{border-left:1px solid #2b3540}.sidebar-scroll{padding:25px 23px 28px;height:100%;overflow:auto;scrollbar-color:#3a4654 transparent;scrollbar-width:thin}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-gap{margin-top:24px;margin-bottom:13px}.overline,.field-label,.stat-label,.range-labels,.stock-label{font-family:'Segoe UI',Arial,sans-serif;font-size:10px;font-weight:700;letter-spacing:.13em;color:#aab4c0}.section-head .overline{color:#bc8b69}.tiny-dash{width:16px;height:1px;background:#526170}.sidebar h1{font:500 clamp(27px,2.5vw,34px)/1.1 'Segoe UI';margin:13px 0 9px;letter-spacing:-.045em}.sidebar h1 em{font-style:normal;color:#ef9d69}.muted{color:#a6b0bc}.lead{font-size:12px;line-height:1.7;margin:0 0 20px}.panel-sm{background:#18232d;border:1px solid #33404a;padding:14px;border-radius:5px}.field-label{display:block;color:#acb5bf;font-size:9px;margin-bottom:10px}select{width:100%;height:38px;background:#101923;color:white;border:1px solid #3c4a58;border-radius:3px;padding:0 9px;font-size:12px}.microcopy{font-size:11px;line-height:1.6;color:#98a5b2;margin:10px 0 0}.minor-button.full{width:100%;margin-top:12px;padding:9px}.control-group{margin-top:13px}.control-head{display:flex;justify-content:space-between;gap:15px;font-size:12px;font-weight:600}.control-head output{font:700 12px 'Segoe UI';color:#ffa56e}.range-labels{display:flex;justify-content:space-between;letter-spacing:0;font-size:9px;color:#71818f;font-weight:500}input[type=range]{width:100%;height:19px;accent-color:#e88b56;cursor:pointer;margin:11px 0 0}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.tool{height:44px;display:flex;align-items:center;gap:10px;padding:0 11px;background:#17222d;border:1px solid #31404e;border-radius:4px;color:#b9c5d0;font-size:11px;text-align:left;font-weight:600}.tool:hover,.tool.active{color:#fce6d6;border-color:#ba744e;background:#39291f}.tool-icon{font-size:19px;color:#efa36e;font-weight:400;line-height:1}.tool-help{min-height:35px}.stock-strip{display:flex;align-items:center;justify-content:space-around;background:#0d151e;border:1px solid #2a3946;padding:14px 7px;margin-top:13px}.stock-strip>div:not(.stock-divider){display:flex;align-items:center;flex-direction:column}.stock-number{font:600 24px 'Segoe UI';color:#f3e3d9;line-height:1.1}.stock-label{font-size:8px;color:#8a99aa;letter-spacing:.09em;margin-top:7px}.stock-divider{height:28px;width:1px;background:#344250}.checkbox-row{border-bottom:1px solid #2d3844;font-size:11px;color:#c6cdd7;padding:11px 0}.checkbox-row label{display:flex;align-items:center;gap:9px;cursor:pointer}.checkbox-row input{accent-color:#df8c61}.note-block{background:#1a232e;border-left:2px solid #bd794c;padding:12px 14px;margin-top:19px}.note-block strong{font:700 11px 'Segoe UI'}.note-block p{font-size:10px;line-height:1.65;color:#9da8b3;margin:6px 0 0}.viewport-section{min-width:0;min-height:0;display:flex;flex-direction:column;background:#111a23}.viewport{position:relative;flex:1;min-height:260px;overflow:hidden;background:radial-gradient(circle at 60% 65%,#39404c 0%,#1c2732 45%,#111922 80%);touch-action:none}.render-surface,canvas{display:block}.render-surface{position:absolute;inset:0}.render-surface canvas{width:100%;height:100%;cursor:crosshair}.viewport-tint{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(8,15,20,.27) 0%,transparent 23%,transparent 70%,rgba(8,15,20,.22) 100%)}.scene-topline{position:absolute;top:23px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;gap:10px;font:700 10px 'Segoe UI';letter-spacing:.14em;color:#d5dde2;text-shadow:0 2px 8px #10151d;pointer-events:none}.scene-kicker span{color:#ed945c;margin:0 8px}.scene-alt{color:#b1bcc6;font-size:9px}.north-star{position:absolute;top:62px;right:29px;display:flex;flex-direction:column;align-items:center;font:700 12px 'Segoe UI';color:#d2dde3;pointer-events:none}.north-star span{font-size:21px;line-height:1;color:#f0aa80}.scene-bottom-left{position:absolute;bottom:85px;left:25px;display:flex;align-items:center;gap:9px;font:700 9px 'Segoe UI';letter-spacing:.07em;color:#d0d5da;pointer-events:none;text-shadow:0 2px 4px #000}.scene-bottom-left b{color:#ce8d64}.small-accent{width:17px;height:1px;background:#f6ac79}.camera-dock{position:absolute;bottom:20px;left:20px;display:flex;gap:3px;align-items:center;background:rgba(12,20,29,.89);border:1px solid #3a4651;padding:5px;backdrop-filter:blur(12px)}.camera-label{padding:0 9px;font:700 9px 'Segoe UI';letter-spacing:.1em;color:#9ba7b2}.camera-button{background:transparent;color:#939fac;border:1px solid transparent;padding:9px 7px;font:600 10px 'Segoe UI';min-width:63px}.camera-button span{display:block;font:500 9px 'Segoe UI';margin-top:5px}.camera-button.active,.camera-button:hover{color:#fff;border-color:#68503c;background:#493326}.scene-legend{position:absolute;right:18px;bottom:23px;background:rgba(10,17,24,.84);border:1px solid #31404c;padding:10px;display:flex;gap:11px;flex-wrap:wrap;font-size:9px;color:#c0ccd7;backdrop-filter:blur(10px)}.legend-dot{width:7px;height:7px;border-radius:2px;display:inline-block;margin-right:5px}.legend-hot{background:#ff9856;box-shadow:0 0 5px #f80}.legend-cold{background:#47484b}.legend-berm{background:#b4a58f}.scene-notice{position:absolute;top:63px;left:23px;max-width:350px;color:#f3e6d5;background:rgba(18,27,35,.88);padding:10px 13px;border-left:2px solid #df8b53;font-size:11px;line-height:1.5;transition:opacity .5s}.scene-error{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:3;background:#271f1f;border:1px solid #b97455;max-width:420px;padding:20px;text-align:center;font-size:12px;line-height:1.7}.scene-error strong{font:600 17px 'Segoe UI'}.scene-error p{color:#d5c5bb}.transport-bar{height:78px;display:flex;justify-content:space-between;gap:20px;align-items:center;padding:12px 22px;background:#131c26;border-top:1px solid #35404c}.transport-left,.transport-right{display:flex;gap:12px;align-items:center}.play-button{padding:12px 14px;border:1px solid #d78957;background:#d88757;border-radius:3px;color:#111820;font-size:12px;font-weight:700;white-space:nowrap}.play-button:hover{background:#f0a16f}.reset-button{background:#1e2a36;border:1px solid #384754;color:#d6e1e7;border-radius:3px;width:40px;height:40px;font-size:26px}.transport-divider{height:31px;width:1px;background:#384653;margin:0 6px}.time-counter small{display:block;white-space:nowrap;letter-spacing:.1em;font:700 8px 'Segoe UI';color:#92a0af;margin-bottom:5px}.time-counter strong{white-space:nowrap;font:600 19px 'Segoe UI'}.time-counter strong span{color:#6f8191;font-size:12px}.transport-right .overline{font-size:9px}.speed-grid{display:flex;border:1px solid #374451;padding:3px;border-radius:3px}.speed-grid button{background:transparent;border:0;color:#9ba9b5;padding:8px 11px;border-radius:2px;font:700 11px 'Segoe UI'}.speed-grid button.active{background:#33414f;color:white}.right-title{display:flex;align-items:center;justify-content:space-between;gap:5px}.right-title h2{font:600 21px 'Segoe UI';letter-spacing:-.04em;margin:14px 0 18px}.model-badge{font:700 8px 'Segoe UI';color:#a2b2bf;border:1px solid #404b58;padding:5px}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.stat-card{background:#19232e;border:1px solid #33404b;min-height:93px;padding:12px}.stat-label{display:block;font-size:9px;letter-spacing:.08em;color:#a8b6c2}.stat-card strong{display:block;font:600 24px/1.2 'Segoe UI';margin-top:8px;font-variant-numeric:tabular-nums}.stat-card small{font:700 8px 'Segoe UI';letter-spacing:.07em;color:#708395}.tag-positive{color:#84d8b1;font:700 9px 'Segoe UI';letter-spacing:.03em}.station-list{display:flex;flex-direction:column;gap:8px}.station-card{display:block;text-align:left;width:100%;background:#17212c;border:1px solid #34424f;padding:12px;border-radius:4px;color:#d6e1e8}.station-card:hover,.station-card.selected{border-color:#a57c62;background:#222a31}.station-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.station-name{display:flex;align-items:center;gap:8px;font-weight:700;font-size:11px}.station-letter{background:#2d4554;color:#b8e6f0;border:1px solid #447080;display:grid;place-items:center;width:22px;height:22px;font:700 11px 'Segoe UI'}.station-card[data-id='B'] .station-letter{color:#ffdf99;background:#4e3f2e;border-color:#89714b}.station-card[data-id='C'] .station-letter{color:#d8c2ff;background:#3f3551;border-color:#615278}.station-status{font:700 9px 'Segoe UI';color:#8fdcba}.station-status.dead{color:#f09979}.station-sub{display:flex;justify-content:space-between;font-size:10px;color:#8c9aa8;margin:9px 0 6px}.station-bar{height:4px;background:#35404a;overflow:hidden}.station-bar span{display:block;height:100%;background:#7ed0bb;transition:width .2s}.mission-panel{display:flex;gap:11px;padding:14px;background:linear-gradient(120deg,#312822,#1d252f);border:1px solid #624531}.mission-icon{color:#f2a36b;font-size:19px;margin-top:1px}.mission-panel h3{font:600 13px 'Segoe UI';margin:0 0 6px}.mission-panel p{font-size:10px;line-height:1.6;color:#c3b4a9;margin:0}.objective-row{display:flex;justify-content:space-between;font-size:10px;color:#b3c1cb;margin-top:14px;margin-bottom:7px}.objective-row strong{font:700 11px 'Segoe UI';color:white}.extra-row{margin-top:12px}.track{height:5px;background:#323e48;overflow:hidden;border-radius:4px}.track span{height:100%;display:block;background:#dc8d58;transition:width .2s}.track.blue span{background:#7eb8c9}.win-message{font-size:10px;line-height:1.5;color:#98dabc;margin:8px 0 0;min-height:12px}.inspector{border:1px solid #374653;background:#1a2530;padding:12px;min-height:73px}.inspector strong{font:600 11px 'Segoe UI'}.inspector p{color:#9aa8b3;font-size:10px;line-height:1.6;margin:6px 0 0}.inspector-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px;margin-top:9px;font-size:10px;color:#a8b6c1}.inspector-grid b{display:block;color:#e9eef2;font-size:12px;margin-top:3px}.journal{list-style:none;margin:0;padding:0}.journal li{border-left:1px solid #4e5a66;margin-left:5px;padding:0 0 13px 15px;position:relative;color:#95a4b2;font-size:10px;line-height:1.5}.journal li:before{content:'';position:absolute;left:-4px;top:4px;width:7px;height:7px;border-radius:50%;background:#c98760}.journal li small{display:block;font:700 9px 'Segoe UI';color:#d0b195;margin-bottom:4px}.footer{display:flex;justify-content:space-between;gap:10px;align-items:center;height:32px;background:#090e14;border-top:1px solid #27333e;padding:0 24px;color:#798796;white-space:nowrap;font:700 8px 'Segoe UI';letter-spacing:.1em}.footer b{color:#c98960}.guide-dialog{width:min(680px,calc(100vw - 24px));max-height:min(88dvh,780px);padding:0;border:1px solid #80583d;background:#18232d;color:white;box-shadow:0 30px 100px #000c}.guide-dialog::backdrop{background:#020408d6;backdrop-filter:blur(6px)}.guide-dialog form{display:flex;flex-direction:column;max-height:88dvh}.dialog-header{padding:23px 27px;display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid #3a4752}.dialog-header h2{font:600 26px 'Segoe UI';margin:8px 0 0}.dialog-close{border:1px solid #586371;background:transparent;color:white;font-size:28px;height:38px;width:38px}.guide-body{overflow:auto;padding:18px 28px 25px;font-size:13px;color:#c2ced5;line-height:1.8}.guide-body h3{font:600 16px 'Segoe UI';color:#f4f1ee;margin:20px 0 5px}.guide-body li{margin-bottom:7px}.guide-body a{color:#f6b17e}.guide-source{border-top:1px solid #3b4654;padding-top:10px}.dialog-footer{padding:15px 28px;border-top:1px solid #34424e;text-align:right}.primary-dialog-button{background:#d98a5b;border:0;color:#17212a;padding:12px 18px;font-weight:700;border-radius:3px}
@media(max-width:1350px){.workspace{grid-template-columns:250px minmax(350px,1fr) 278px}.sidebar-scroll{padding:20px 16px}.top-centre{display:none}.scene-alt{display:none}.scene-legend{display:none}.camera-dock{left:11px}.scene-bottom-left{left:14px}.camera-label{display:none}}
@media(max-width:1070px){.app-shell{height:auto;min-height:100dvh;overflow:visible}.workspace{grid-template-columns:minmax(225px,285px) minmax(0,1fr);align-items:stretch}.sidebar-right{grid-column:1 / -1;border-left:0;border-top:1px solid #35434f}.sidebar-right .sidebar-scroll{display:grid;grid-template-columns:1fr 1fr;gap:8px 26px;overflow:visible;max-width:none}.sidebar-right .section-head,.sidebar-right .right-title,.sidebar-right .stat-grid,.sidebar-right .station-list,.sidebar-right .mission-panel,.sidebar-right .objective-row,.sidebar-right .track,.sidebar-right .inspector,.sidebar-right .journal,.sidebar-right .win-message{grid-column:auto}.sidebar-right .section-head:nth-of-type(1),.sidebar-right .right-title{grid-column:1 / -1}.sidebar-right .stat-grid{grid-column:1}.sidebar-right .station-list{grid-column:2;grid-row:4 / span 3}.sidebar-right .section-head.section-gap{grid-column:1 / -1;margin-top:11px}.sidebar-right .mission-panel,.sidebar-right .objective-row,.sidebar-right .track,.sidebar-right .inspector,.sidebar-right .journal,.sidebar-right .win-message{grid-column:1 / -1}.sidebar-right .station-list{grid-row:auto}.viewport-section{min-height:720px}.footer{flex-wrap:wrap;height:auto;min-height:34px;padding:8px 16px;white-space:normal}}
@media(max-width:760px){.topbar{min-height:69px;padding:10px 13px}.brand{min-width:0}.brand-symbol{height:38px;width:38px}.brand-name{font-size:17px}.brand-caption{font-size:7px}.status-chip,.header-actions #exportBtn{display:none}.ghost-button{padding:9px}.workspace{display:flex;flex-direction:column}.viewport-section{order:0;min-height:0}.viewport{height:57dvh;min-height:340px;flex:auto}.sidebar-left{order:1;border-right:0;border-top:1px solid #394755}.sidebar-right{order:2}.sidebar-scroll{height:auto;overflow:visible}.sidebar-left .sidebar-scroll{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}.sidebar-left .section-head,.sidebar-left h1,.sidebar-left .lead,.sidebar-left .panel-sm,.sidebar-left .tool-grid,.sidebar-left .tool-help,.sidebar-left .stock-strip,.sidebar-left .note-block{grid-column:1 / -1}.sidebar-left .section-head.section-gap{margin-top:12px;margin-bottom:0}.sidebar-left .control-group{margin-top:5px}.sidebar-left .checkbox-row{grid-column:span 1}.sidebar-left .note-block{margin-top:5px}.scene-topline{left:14px;top:14px}.north-star{top:54px;right:15px}.scene-bottom-left{display:none}.camera-dock{bottom:12px;left:9px;padding:2px}.camera-button{min-width:60px;padding:7px 3px}.scene-notice{top:42px;left:12px;max-width:72%;font-size:10px}.transport-bar{padding:8px 12px;height:auto;min-height:74px}.transport-left,.transport-right{gap:6px}.play-button{padding:11px;font-size:12px}.play-button span{display:none}.time-counter strong{font-size:16px}.transport-right .overline{display:none}.speed-grid button{padding:9px 7px}.footer{justify-content:center;text-align:center}.footer span:nth-child(2){display:none}.sidebar-right .sidebar-scroll{display:block}.sidebar-right .stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.stat-card{padding:9px;min-height:80px}.stat-card strong{font-size:18px}.stat-label{font-size:8px}.stat-card small{font-size:7px}.sidebar-right .section-head.section-gap{margin-top:20px}}
@media(max-width:400px){.camera-button span{font-size:8px}.camera-button{min-width:54px}.scene-kicker{font-size:9px}.transport-divider{display:none}.reset-button{width:32px}.time-counter small{font-size:7px}.time-counter strong{font-size:14px}.transport-bar{gap:6px}.brand-symbol{display:none}.brand-name{font-size:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
