:root{color-scheme:dark;--bg:#091421;--panel:#0c1926;--line:#223344;--muted:#798da0;--bright:#eef8ff;--cyan:#63e6df;--amber:#ffb775;--type:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--bright);font-family:var(--type)}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,canvas:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}.app-shell{min-height:100vh;display:flex;flex-direction:column}
.topbar{height:81px;flex:none;display:flex;justify-content:space-between;align-items:center;padding:0 30px;border-bottom:1px solid #243443;background:#0b1926}
.brand{display:flex;gap:16px;align-items:center}.brand-emblem{display:grid;place-items:center;color:var(--cyan);width:48px;height:48px;border:1px solid #2e5862;border-radius:50%;background:radial-gradient(circle,#1b4a50,#092532);box-shadow:0 0 33px #28d9da12}.brand-emblem svg{height:35px;width:35px}.brand-title{font-size:20px;font-weight:800;letter-spacing:.155em}.brand-title span{font-weight:400;color:#b4c4cf}.brand-sub{font-size:9px;letter-spacing:.18em;margin-top:6px;color:#7d96a9;font-weight:700}.brand-sub span{padding:0 7px;color:var(--cyan)}.top-right{display:flex;align-items:center;gap:22px}.status{font-size:10px;letter-spacing:.13em;font-weight:700;color:#b1dfd9}.status-lamp{display:inline-block;width:7px;height:7px;background:#61e9d0;border-radius:100%;box-shadow:0 0 9px #61e9d0;margin-right:8px}.line-sep{height:23px;border-left:1px solid #2d3d4f}.serial{font-size:10px;letter-spacing:.11em;color:#8298aa}
.main-layout{display:grid;grid-template-columns:296px minmax(440px,1fr) 310px;min-height:calc(100vh - 119px);flex:1}.sidebar{background:#0c1a28}.controls-sidebar{border-right:1px solid var(--line);padding:27px 22px 18px}.telemetry-sidebar{border-left:1px solid var(--line);padding:27px 20px 17px}.panel-head{padding-bottom:24px}.panel-kicker{color:var(--cyan);font-size:10px;letter-spacing:.17em;font-weight:750;display:flex;justify-content:space-between}.panel-kicker span{color:#557586}.panel-head h2{font-size:20px;letter-spacing:-.04em;font-weight:610;margin:13px 0 6px}.panel-head p{font-size:11.5px;color:#8094a6;line-height:1.65;margin:0;max-width:250px}.section-eyebrow{font-size:9px;color:#8b9dad;font-weight:800;letter-spacing:.16em;margin:7px 0 22px}.section-eyebrow.with-border{padding-top:23px;margin-top:22px;border-top:1px solid var(--line);margin-bottom:19px}.control-group{margin-bottom:24px}.control-group.compact{margin-bottom:20px}.control-group label{display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:12px;font-weight:610}.control-group output{font-size:11px;color:var(--cyan);font-variant-numeric:tabular-nums;font-weight:750;white-space:nowrap}.control-group input[type=range]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:4px;background:#2e4252;border-radius:9px;margin:17px 0 11px;accent-color:var(--cyan)}.control-group input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:13px;height:13px;border-radius:50%;background:#9dfbf3;border:3px solid #164b58;box-shadow:0 0 0 1px #5ac6c9,0 0 13px #2fd8d059}.control-group input[type=range]::-moz-range-thumb{width:12px;height:12px;background:#9dfbf3;border:3px solid #164b58;border-radius:50%}.range-ends{display:flex;justify-content:space-between;color:#526a7a;font-size:9px;font-weight:650;letter-spacing:.08em}.preset-row{display:flex;gap:5px}.preset-row button{flex:1;border:1px solid #2b4050;color:#94a8b6;background:#122535;border-radius:4px;font-size:9px;font-weight:750;letter-spacing:.03em;padding:11px 3px;line-height:1.7}.preset-row button span{display:block;font-size:14px;color:#becbd5}.preset-row button.selected{border-color:#4bbeba;background:#153d47;color:#b6f8f2}.preset-row button.selected span{color:#83f2e8}.control-actions{display:flex;gap:8px;margin-top:24px}.primary-btn{height:44px;background:var(--cyan);color:#082735;border:0;border-radius:4px;flex:1;font-size:11px;font-weight:900;letter-spacing:.09em;display:flex;align-items:center;justify-content:center;gap:10px}.primary-btn:hover{background:#99fff1}.primary-btn span:first-child{font-size:17px}.quiet-btn{height:44px;width:47px;border:1px solid #3c5665;background:#172838;border-radius:4px;color:#a9c1cd;font-size:25px}.quiet-btn:hover,.view-tools button:hover{background:#264354}.sidebar-foot{margin-top:28px;border-top:1px solid var(--line);padding-top:18px;color:#547585;letter-spacing:.09em;font-size:9px;font-weight:750}.sidebar-foot span{margin:0 5px}.diamond-icon{color:var(--cyan)}
.workbench{display:flex;flex-direction:column;min-width:0;background:linear-gradient(180deg,#0b1926,#091622)}.bench-bar{height:101px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 31px;border-bottom:1px solid #243444}.overline{font-size:9px;letter-spacing:.17em;font-weight:800;color:#58d6d5}.bench-bar h1{font-size:21px;letter-spacing:-.035em;font-weight:640;margin:10px 0 0}.inset-marker{font-size:10px;color:#718b9d;letter-spacing:.09em;font-weight:700}.stage{position:relative;min-height:380px;flex:1;overflow:hidden;background:radial-gradient(circle at 48% 48%,#122b3d 0,#0c1c2d 42%,#081422 82%)}#view{width:100%;height:100%;display:block;cursor:grab;touch-action:none}.render-error{position:absolute;top:38%;left:12%;right:12%;padding:24px;color:#ffd5b1;background:#2a2025;border:1px solid #85534a;border-radius:8px;line-height:1.5}.render-error[hidden]{display:none}.scene-hint{position:absolute;display:flex;align-items:center;pointer-events:none;color:#b4d4dd;font-size:10px;letter-spacing:.07em;font-weight:800}.scene-hint.upper{top:20%;left:9%}.scene-hint.lower{bottom:28%;right:11%;flex-direction:row-reverse}.callout-identity{background:#0a2030ce;border:1px solid #2c5061;padding:8px 10px;color:var(--cyan)}.callout-identity span{color:#e5f4f8;margin-left:6px}.callout-line{height:1px;width:62px;background:#3c7881}.scene-hint.lower .callout-line{background:#d09a60}.canvas-badges{position:absolute;top:18px;right:19px;display:flex;gap:8px;pointer-events:none}.canvas-badge{font-size:9px;font-weight:800;letter-spacing:.12em;padding:8px 9px;background:#0a1a28d6;border:1px solid #284350;color:#9bc3d0}.canvas-badge:first-child{color:#82d9d4}.orbit-hint{position:absolute;bottom:25px;left:25px;font-size:10px;letter-spacing:.1em;font-weight:700;color:#789bab;pointer-events:none}.view-tools{position:absolute;bottom:19px;right:19px;display:flex;gap:6px}.view-tools button{width:36px;height:36px;border-radius:4px;border:1px solid #3c5969;background:#132b3bd9;color:#bcd8e2;font-size:20px}.marker-surface{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);display:flex;gap:9px;align-items:center;font-size:9px;font-weight:750;letter-spacing:.07em;background:#071825b8;padding:10px 13px;white-space:nowrap;pointer-events:none}.marker-dot{width:6px;height:6px;border-radius:50%;display:block}.cyan-dot{background:#54dff0}.orange-dot{background:#ffa959}.yellow-dot{background:#e8d478}
.bench-summary{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #2b4050;border-bottom:1px solid #273a4c;flex:none;background:#0d1b29}.summary-card{padding:21px 22px 19px;min-height:114px}.summary-card+ .summary-card{border-left:1px solid #293c4b}.summary-card>span{font-size:9px;letter-spacing:.14em;font-weight:760;color:#819cae}.summary-card strong{display:block;color:#e6f9fb;margin:7px 0 5px;font-size:23px;letter-spacing:-.035em;line-height:1}.summary-card strong small{font-size:10px;color:#7ca7b5;letter-spacing:.045em}.summary-card div{font-size:10px;color:#6d8595;line-height:1.4}.theory-strip{padding:15px 23px;display:flex;gap:15px;align-items:center;flex:none;color:#8ea6b5;font-size:11px;line-height:1.55}.theory-strip b{color:#cbe8e9;font-weight:650}.formula-tag{flex:none;color:#5cddd6;border:1px solid #30656b;padding:5px 8px;font-size:9px;font-weight:800;letter-spacing:.1em}
.right-head{padding-bottom:15px}.live-card{background:#101f2e;border:1px solid #263c4b;padding:17px 16px 16px;margin:12px 0}.live-heading{display:flex;justify-content:space-between;color:#c9dce6;font-size:10px;letter-spacing:.12em;font-weight:780;padding-bottom:16px;border-bottom:1px solid #293c4c;margin-bottom:8px}.live-heading span{color:#56d4ce;font-size:8px}.stat-line{display:flex;justify-content:space-between;align-items:center;margin:13px 0}.stat-line>span{font-size:11px;color:#879cae}.stat-line strong{font-size:17px;font-variant-numeric:tabular-nums;font-weight:660;letter-spacing:-.025em}.stat-line strong small{font-size:10px;color:#73909f;font-weight:500}.stat-line .accent-teal{color:#83f0e2}.transfer-bar{height:6px;border-radius:6px;background:#213743;overflow:hidden;margin-top:16px}.transfer-bar div{height:100%;width:97%;background:linear-gradient(90deg,#226d7b,#6ae9d4);border-radius:6px;transition:width .2s}.bar-ticks{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.06em;color:#658195;margin-top:8px}
.chart-card{padding:18px 12px 13px;background:#0e1e2d;border:1px solid #263c4b;margin-top:12px}.chart-heading{padding:0 4px}.chart-heading>div{display:flex;justify-content:space-between;color:#a9c5d2;font-size:10px;font-weight:850;letter-spacing:.13em}.chart-heading>div span{color:#65899d}.chart-heading h3{font-size:13px;margin:10px 0 4px;font-weight:640}.chart-heading p{font-size:10px;color:#7392a4;margin:0}.chart-card canvas{width:100%;height:177px;display:block;margin:14px 0 8px}.legend{display:flex;justify-content:space-between;gap:5px;padding:0 4px;font-size:8px;font-weight:750;letter-spacing:.045em;color:#8ea6b5}.legend>span{white-space:nowrap}.legend i{display:inline-block;width:12px;height:2px;vertical-align:middle;margin-right:4px}.teal-line{background:var(--cyan)}.amber-line{background:var(--amber)}.insight{display:flex;gap:12px;margin-top:14px;padding:14px 10px;background:#123139;border-left:2px solid var(--cyan);color:#aed5d9}.insight-icon{font-size:20px;color:var(--cyan)}.insight b{font-size:11px;color:#d1eeef}.insight p{font-size:10.5px;color:#89aeb9;line-height:1.6;margin:7px 0 0}.telemetry-foot{font-size:9px;letter-spacing:.065em;color:#647e8f;padding-top:18px;line-height:1.6}.telemetry-foot span{color:#55d3cf}
.footerbar{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px 30px;border-top:1px solid #293b4b;background:#081522;font-size:9px;letter-spacing:.09em;font-weight:760;color:#728e9f}.footer-logo{color:#d8eef2;letter-spacing:-.07em;font-size:13px;margin-right:6px}.footer-logo span{color:var(--cyan)}.muted{color:#486778}
@media(max-width:1400px){.main-layout{grid-template-columns:267px minmax(360px,1fr) 281px}.controls-sidebar{padding:23px 15px}.telemetry-sidebar{padding:23px 12px}.scene-hint.upper{left:4%}.scene-hint.lower{right:5%}.bench-bar{padding:0 20px}.summary-card{padding:19px 13px}.legend{font-size:7.5px}.marker-surface{left:42%}}
@media(max-width:1050px){.main-layout{grid-template-columns:255px minmax(0,1fr)}.telemetry-sidebar{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:20px}.right-head{grid-column:1/-1}.right-head p{max-width:none}.telemetry-sidebar .live-card{margin:0}.chart-card{margin:0;grid-column:1/-1}.chart-card canvas{height:200px}.insight{grid-column:1/-1}.telemetry-foot{grid-column:1/-1}.stage{min-height:450px}.scene-hint.lower{right:5%}.footerbar{flex-wrap:wrap}}
@media(max-width:690px){.topbar{height:auto;padding:16px;gap:12px;flex-wrap:wrap}.brand-sub{font-size:8px}.top-right{gap:12px}.main-layout{display:flex;flex-direction:column}.controls-sidebar{order:2;border:0;border-top:1px solid var(--line);padding:22px}.workbench{order:1}.telemetry-sidebar{order:3}.bench-bar{height:auto;padding:21px 16px;align-items:flex-start;gap:12px}.bench-bar h1{font-size:17px}.inset-marker{display:none}.stage{height:450px;min-height:450px;flex:auto}.scene-hint{display:none}.marker-surface{left:50%;bottom:64px;font-size:8px}.orbit-hint{bottom:24px;left:12px;font-size:9px}.view-tools{bottom:12px;right:12px}.summary-card{padding:15px 10px}.summary-card strong{font-size:17px}.summary-card div{font-size:9px}.summary-card>span{font-size:8px}.theory-strip{padding:15px;align-items:flex-start}.footerbar{padding:12px}.controls-sidebar .panel-head{padding-bottom:16px}}

/* ms-embed-fit: embed mode must scroll (sim.html sets overflow:hidden + height:100dvh, which clipped the layout) */
html body.embed-mode{height:auto;min-height:100vh;min-height:100dvh;overflow-y:auto;overflow-x:hidden}
body.embed-mode .topbar,body.embed-mode .footerbar{display:none}
body.embed-mode .app-shell{min-height:100dvh}
body.embed-mode .main-layout{min-height:100dvh}
