:root{--bg:#07101b;--panel:#0b1725;--line:#213144;--text:#e9f3f4;--muted:#79909e;--sub:#4d6775;--accent:#83e5dc;--warm:#f0ae75;--soft:#102738}*{box-sizing:border-box}html,body{margin:0;min-height:100%;color:var(--text);background:#06101b;font:13px/1.4 Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif}body{background:radial-gradient(ellipse at 48% -15%,#123247 0,#07101b 54%)}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:2px solid #8fe8e7;outline-offset:2px}.shell{max-width:1800px;margin:0 auto}.topbar{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 27px;border-bottom:1px solid #263545;background:#071522d9}.brand{display:flex;align-items:center;gap:12px}.brandmark{width:43px;height:43px;border:1px solid #285262;border-radius:12px;display:grid;place-items:center;color:#82e5df;background:linear-gradient(140deg,#143442,#0a1d2d)}.brand strong{display:block;font-weight:780;letter-spacing:1.6px;font-size:16px}.brandmuted{color:#65cbc6}.brand small{display:block;font-size:9px;letter-spacing:2.8px;color:#7d9aa8;margin-top:3px}.header-meta{display:flex;align-items:center;gap:12px;color:#718e9e;font-size:10px;letter-spacing:1.4px;font-weight:650}.header-meta b{color:#a7c9cd}.online-dot,.pulse-dot,.tiny-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:#72e6c0;box-shadow:0 0 10px #56d5b0}.header-divider{height:16px;width:1px;background:#2c4051;margin:0 5px}.workspace{display:grid;grid-template-columns:minmax(260px,284px) minmax(500px,1fr) minmax(262px,288px);min-height:calc(100vh - 118px)}.panel{background:#091724;min-width:0}.controls{border-right:1px solid #223447;padding:26px 19px 18px;display:flex;flex-direction:column}.diagnostics{border-left:1px solid #223447;padding:26px 19px 18px}.panel-head{padding:0 2px 16px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:2.2px;color:#62b8b8}.panel-head h2{font-size:23px;letter-spacing:-.8px;margin:9px 0 6px;font-weight:700}.panel-head p{font-size:11.5px;color:#8198a8;line-height:1.65;margin:0}.section{border-top:1px solid #1f3545;padding-top:18px;margin-top:11px}.section-title{display:flex;align-items:center;justify-content:space-between;color:#8ba5b5;font-weight:800;letter-spacing:1.35px;font-size:10px;margin-bottom:14px}.section-title span{color:#477e87;font-size:10px}.preset-row{display:flex;gap:5px}.preset{flex:1;padding:9px 1px;border:1px solid #284153;background:#102333;color:#87a3b2;border-radius:5px;font-size:10px;font-weight:700;white-space:nowrap}.preset.active,.preset:hover{background:#214c55;border-color:#4caaa8;color:#b3f1e9}.sliders{margin-top:23px}.control{display:block;margin-bottom:19px}.control-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}.control-head span{color:#bdcfda;font-size:11px;font-weight:625}.control-head i{font-size:10px;color:#678f98}.control-head output{font-size:12px;color:#8fe6df;font-weight:750;font-variant-numeric:tabular-nums}.control small{display:block;color:#506d7c;font-size:10px;margin-top:6px;line-height:1.4}.control input[type=range]{width:100%;margin:0;accent-color:#7dded5;height:4px;cursor:ew-resize}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.tool{border-radius:5px;background:#102434;border:1px solid #284051;min-height:35px;text-align:left;color:#92afbd;font-size:11px;font-weight:650;padding:8px 10px}.tool.active{background:#193e47;border-color:#65aca7;color:#d0f3ec}.tool-bubble{display:inline-block;border-radius:50%;width:9px;height:9px;margin-right:6px}.salt{background:#60d6cb}.fresh{background:#63a9ef}.heat{background:#eeb477}.probe{background:#aca3ed}.subtle-full{width:100%;background:#0f2836;color:#91b9be;border:1px dashed #315867;border-radius:5px;margin-top:10px;padding:9px 12px;text-align:left;font-weight:650;font-size:11px}.subtle-full span{float:right;font-weight:800}.subtle-full:hover{background:#1b4250}.panel-bottom{margin-top:auto;display:flex;gap:10px;background:#101f2d;border:1px solid #233848;padding:12px;border-radius:6px}.panel-bottom p{margin:0;font-size:10px;line-height:1.6;color:#6e8997}.info-icon{display:grid;place-items:center;flex:none;border:1px solid #4f8592;border-radius:50%;height:16px;width:16px;color:#7fc9cd;font-weight:700;font-size:10px}.stage-wrap{min-width:0;padding:30px 25px 19px;background:radial-gradient(ellipse at 50% 23%,#102a3e 0%,#081521 58%,#08131d 90%);display:flex;flex-direction:column;gap:14px}.stage-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:0 1px}.stage-head h1{font-size:31px;line-height:1.2;letter-spacing:-1.2px;margin:9px 0 4px;font-weight:750}.stage-head p{margin:0;color:#839cab;font-size:12px}.state-group{display:flex;align-items:center;gap:8px;color:#acd0d0;font-size:10px;letter-spacing:1px;font-weight:700;padding-bottom:6px;white-space:nowrap}.state-group .sep{color:#3d6071}.state-group #simClock{color:#77909d;font-variant-numeric:tabular-nums}.viewport{position:relative;overflow:hidden;isolation:isolate;min-height:425px;height:clamp(435px,50vh,630px);border:1px solid #31536a;background:radial-gradient(ellipse at 50% 48%,#10314a,#06101f 68%);border-radius:8px;box-shadow:0 20px 55px #01071173,inset 0 0 80px #0f375126}.viewport canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.viewport canvas:active{cursor:grabbing}.viewport::after{content:'';pointer-events:none;position:absolute;inset:0;background:linear-gradient(90deg,#0c1b2a40,transparent 23%,transparent 80%,#0b1c2a36),radial-gradient(ellipse at 50% 10%,transparent 45%,#04111a25);z-index:1}.corner-label{position:absolute;z-index:2;color:#8fb5c5;font-weight:750;font-size:9px;letter-spacing:1.3px;pointer-events:none}.corner-label.top-left{top:18px;left:19px}.corner-label.top-right{right:17px;top:18px}.corner-muted{color:#53758a}.tiny-dot{margin-right:8px}.left-measure{position:absolute;z-index:2;left:18px;top:29%;height:42%;display:flex;align-items:center;flex-direction:column;color:#688b9a;font-size:9px;letter-spacing:.7px;pointer-events:none}.measure-line{border-left:1px dashed #3b6b82;flex:1;margin:8px 0}.right-legend{position:absolute;z-index:2;right:18px;top:31%;display:flex;align-items:center;flex-direction:column;gap:8px;pointer-events:none}.legend-title{font-size:9px;letter-spacing:1.3px;color:#779baa;writing-mode:vertical-lr;transform:rotate(180deg)}.legend-color{height:118px;width:8px;border-radius:3px;background:linear-gradient(180deg,#69d5d5,#255fa5,#103753);box-shadow:0 0 19px #39779c7d}.legend-labels{display:flex;flex-direction:column;gap:70px;position:absolute;right:16px;top:30px;font-size:8px;color:#688ba0}.scene-bottom{position:absolute;z-index:2;left:16px;bottom:18px;display:flex;gap:14px;font-size:8px;letter-spacing:1.05px;color:#7393a3;pointer-events:none}.field-picker{position:absolute;z-index:2;bottom:13px;right:12px;display:flex;gap:3px;background:#091727c7;border:1px solid #2b4959;border-radius:6px;padding:4px}.field{padding:7px 9px;background:transparent;border:0;color:#7b9caa;font-size:10px;border-radius:3px}.field.active{background:#285d66;color:#d0f5ed}.playback{display:flex;align-items:center;gap:8px}.primary,.ghost,.square{height:37px;border-radius:5px;font-weight:750;font-size:11px}.primary{color:#09202d;background:#8fe3d6;border:1px solid #9cf0df;padding:0 16px}.primary:hover{background:#c5f8ed}.ghost{background:#102232;border:1px solid #294052;color:#a0bec8;padding:0 12px}.ghost:hover{background:#183747}.playback-spacer{flex:1}.speed-control{display:flex;align-items:center;gap:8px;margin-right:5px;color:#819eaf;font-size:9px;letter-spacing:1px;font-weight:700}.speed-control span{color:#99dcd5;min-width:27px}.speed-control input{accent-color:#83e5d5;width:78px}.square{width:36px;font-size:16px}.chartbox{background:#0b1b2a;border:1px solid #263d4d;border-radius:8px;padding:16px 18px 11px;min-height:180px}.chart-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.chart-title h3{margin:4px 0 0;font-size:16px;letter-spacing:-.3px}.legend-inline{display:flex;gap:15px;color:#7e9baa;font-size:10px;padding-top:9px}.line-line{display:inline-block;width:18px;height:2px;vertical-align:middle;margin-right:5px}.line-line.cyan{background:#7cded6}.line-line.orange{background:#efad7c}.chart-canvas{height:110px;margin-top:6px}.chart-canvas canvas{width:100%;height:100%}.chart-footer{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.2px;color:#5b7789}.regime-card{border:1px solid #315b66;background:linear-gradient(140deg,#133b46,#102736);border-radius:7px;padding:17px 15px;margin:8px 0 21px}.regime-head{display:flex;justify-content:space-between;align-items:center;color:#7bb3b8;font-size:9px;font-weight:800;letter-spacing:1.2px;margin-bottom:9px}.live-chip{font-size:9px;letter-spacing:.8px;color:#79e1bd}.regime-card strong{font-size:18px;letter-spacing:-.35px}.regime-card p{color:#8aaab6;font-size:11px;line-height:1.55;min-height:33px;margin:7px 0 17px}.micro-detail{display:flex;justify-content:space-between;font-size:9px;letter-spacing:.7px;color:#80a5b0;font-weight:700;margin-bottom:7px}.micro-detail b{color:#b7eff0;font-size:13px}.regime-meter{height:6px;border-radius:4px;position:relative;background:linear-gradient(90deg,#f4ad79 0%,#eab96f 25%,#70d7c6 45%,#569eae 75%,#57709c 100%)}.regime-meter i{position:absolute;top:-4px;left:45%;width:3px;height:14px;background:#f1f8f7;border-radius:2px;box-shadow:0 0 0 2px #0e2e3a}.regime-scale{display:flex;justify-content:space-between;font-size:8px;color:#75a2ac;margin-top:8px}.metric-list{border-top:1px solid #23394c}.metric{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:15px 0;border-bottom:1px solid #203447}.metric>div>span{display:block;color:#b6cbd5;font-weight:700;font-size:11px}.metric small{display:block;font-size:10px;color:#5f7e8d;margin-top:4px}.metric strong{font-size:23px;letter-spacing:-.8px;font-weight:650;font-variant-numeric:tabular-nums;color:#e4f6f5}.metric strong span{font-size:12px;color:#789ca9}.probe-card{background:#0d2231;border:1px solid #284354;border-radius:6px;padding:14px 12px;margin-top:22px}.probe-pos{font-size:9px;letter-spacing:1.2px;color:#70a7af;margin-bottom:12px;font-variant-numeric:tabular-nums}.probe-row{display:flex;justify-content:space-between;border-top:1px solid #223a4a;padding:9px 1px;color:#7597a6;font-size:11px}.probe-row b{color:#c5e5e8;font-weight:700;font-variant-numeric:tabular-nums}.export-area{margin-top:18px;display:grid;gap:8px}.export-btn{display:block;width:100%;text-align:left;border:1px solid #416872;background:#1a4349;color:#b4f1e7;border-radius:5px;padding:11px;font-size:11px;font-weight:750}.export-btn:hover{background:#285a5b}.export-btn.muted{border-color:#294654;background:#132b3a;color:#8fbcc5}.diagnostics-foot{margin-top:24px;color:#476e82;font-size:9px;letter-spacing:1px;line-height:2}.diagnostics-foot span{color:#80a8b5}footer{height:44px;border-top:1px solid #1f3649;background:#061421;display:flex;align-items:center;justify-content:space-between;padding:0 27px;gap:14px;font-size:9px;letter-spacing:1.1px;font-weight:700;color:#4f7486}footer button{color:#86bec5;background:none;border:0;font-size:9px;font-weight:750;letter-spacing:1px}footer button:hover{text-decoration:underline}.unsupported{position:absolute;inset:12%;display:grid;align-content:center;text-align:center;background:#142735ee;z-index:4;border-radius:8px;padding:20px}.unsupported[hidden]{display:none}.unsupported p{max-width:360px;margin:auto;line-height:1.6}.mobile-info{display:none}dialog{background:#0d2533;color:#d9eded;border:1px solid #4a707b;border-radius:9px;box-shadow:0 30px 90px #000a;max-width:560px;padding:25px;line-height:1.7}dialog::backdrop{background:#020910c5}dialog p{color:#8cadb8;font-size:13px}dialog h3{margin-top:22px}.modal-top{display:flex;align-items:center;justify-content:space-between}.modal-top h2{margin:0}.modal-top button{font-size:26px;background:none;border:0;color:#88bcc6}#dismissHelp{margin-top:12px}
@media(max-width:1180px){.workspace{grid-template-columns:252px minmax(380px,1fr)}.diagnostics{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;border-top:1px solid #294053;border-left:0;padding:22px}.diagnostics .panel-head{grid-column:1 / -1;padding:0}.regime-card{margin:0}.metric-list{border-top:0}.probe-card{margin-top:0}.export-area{grid-column:2;align-self:end}.diagnostics-foot{grid-column:3;align-self:end}.stage-wrap{padding:23px}.viewport{min-height:410px}}@media(max-width:730px){.topbar{height:65px;padding:0 15px}.brand strong{font-size:14px}.brand small{font-size:8px;letter-spacing:1.8px}.header-meta{display:none}.mobile-info{display:block}.workspace{display:flex;flex-direction:column}.stage-wrap{order:0;padding:18px 12px}.controls{order:1;border:0;border-top:1px solid #223447;padding:20px}.diagnostics{order:2;display:flex;flex-direction:column;gap:12px;padding:20px}.diagnostics .panel-head{padding:0}.stage-head h1{font-size:25px}.stage-head p{font-size:11px}.state-group{font-size:9px}.viewport{height:410px;min-height:360px}.corner-label.top-right,.left-measure{display:none}.scene-bottom{bottom:59px;left:15px;gap:8px;font-size:7px}.field-picker{right:8px;left:8px;bottom:9px;justify-content:space-between}.field{flex:1}.playback{flex-wrap:wrap}.speed-control{order:2;width:100%;justify-content:flex-end;margin-top:6px}.chartbox{min-height:167px}.regime-card{margin:0}.export-area,.diagnostics-foot{grid-column:auto}.controls .panel-bottom{margin-top:20px}footer{height:auto;padding:17px;flex-wrap:wrap;font-size:8px;gap:9px}footer span:nth-child(2){display:none}}@media(max-width:430px){.stage-head{display:block}.state-group{margin-top:11px}.viewport{height:365px;min-height:340px}.chart-title{display:block}.legend-inline{margin-bottom:3px}.corner-label.top-left{font-size:8px}.stage-wrap{gap:10px}}
