:root{--bg:#071521;--panel:#0d2030;--card:#0e2434;--line:#28465a;--muted:#84a1b0;--subtle:#638093;--text:#ecf5f5;--cyan:#6edbf2;--amber:#e5ae79;--green:#70dbb6}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;min-width:350px}
button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
.app-shell{max-width:1920px;min-height:100vh;margin:0 auto;display:flex;flex-direction:column;background:radial-gradient(circle at 42% 30%,#0e2839 0,#071521 55%)}
.masthead{height:80px;display:flex;align-items:center;padding:0 30px;justify-content:space-between;border-bottom:1px solid #253e50;background:#0a1c2b;gap:15px}
.branding{display:flex;align-items:center;gap:14px}.mark{display:grid;place-items:center;width:47px;height:47px}.mark img{width:44px;height:44px}
.brand-title{font-weight:780;font-size:21px;letter-spacing:.18em}.brand-title span{font-size:15px;color:var(--amber);font-weight:450;letter-spacing:.09em}.brand-caption{font-size:9px;letter-spacing:.29em;color:#8aabba;margin-top:3px}
.masthead-middle{font-size:10px;letter-spacing:.16em;color:#7797a7;display:flex;align-items:center;gap:16px}.tiny-dot,.pin,.heartbeat{display:inline-block;border-radius:100%;width:7px;height:7px;background:#76d9b2;box-shadow:0 0 12px #5ac49b}
.divider-vertical{height:16px;width:1px;background:#436074}.masthead-right{display:flex;align-items:center;gap:18px;white-space:nowrap}.backend-status{font-size:10px;letter-spacing:.13em;color:#97b8bd}.corner-chip{border:1px solid #476177;color:var(--amber);padding:8px 10px;font-size:10px;letter-spacing:.15em;border-radius:3px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 344px;flex:1;min-height:0}.center-stage{min-width:0;padding:18px 19px 20px;display:flex;flex-direction:column;gap:15px}
.scene-wrap{height:clamp(410px,52vh,650px);min-height:410px;position:relative;overflow:hidden;border:1px solid #305367;border-radius:7px;background:radial-gradient(circle at center 47%,#133147,#091b2a 65%,#071421)}
#scene{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}.view-error{position:absolute;inset:0;background:#152436ed;color:#fdb7a0;display:grid;place-items:center;padding:28px;font-size:18px;text-align:center}.view-error[hidden]{display:none}
.scene-wrap:after{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,15,24,.74) 0%,rgba(3,15,24,0) 50%),linear-gradient(0deg,rgba(3,14,24,.65),transparent 23%)}
.scene-hud,.axis-tag,.camera-actions,.scene-bottom-line{position:absolute;z-index:2}.scene-hud-left{left:27px;top:25px;max-width:310px;pointer-events:none}.eyebrow{font-size:10px;font-weight:680;letter-spacing:.22em;color:var(--amber)}.scene-hud-left h1{font-size:clamp(22px,2.15vw,33px);line-height:1.09;letter-spacing:.065em;font-weight:720;margin:15px 0 12px}.scene-hud-left h1 span{color:var(--cyan)}.scene-hud-left p{color:#a0bac8;line-height:1.65;font-size:12px;max-width:265px;margin:0}
.scene-hud-right{right:24px;top:24px;font-size:11px;font-weight:700;letter-spacing:.2em;display:flex;align-items:center;gap:9px}.scene-hud-right .paused{color:var(--amber)}.scene-tag{border:1px solid #496174;margin-left:6px;color:#9ab7c6;padding:9px 12px;background:#0b2035af}.scene-tag strong{color:#e7c29b}
.axis-tag{bottom:71px;left:26px;font-size:9px;letter-spacing:.14em;color:#8fadb9}.axis-tag span{color:#e9b47a}.camera-actions{bottom:56px;right:20px;display:flex;gap:7px}.camera-actions button{font-size:11px;background:#10293bdc;border:1px solid #426376;color:#b8d7df;padding:9px 12px;border-radius:4px}.camera-actions button:hover{background:#23475d}
.scene-bottom-line{bottom:0;left:0;right:0;display:flex;justify-content:space-between;gap:12px;padding:13px 23px;font-size:9px;letter-spacing:.12em;color:#7297ab;border-top:1px solid #254155;background:#0a1c2bd9}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.metric{border:1px solid #2d4658;border-radius:5px;min-height:116px;background:#102738;padding:17px 18px}.metric-label{font-size:10px;letter-spacing:.12em;color:#9bb8c5;font-weight:650}.metric strong{display:block;color:#eefbff;font-size:clamp(21px,1.9vw,30px);font-weight:580;margin-top:10px;font-variant-numeric:tabular-nums;letter-spacing:-.035em}.metric:nth-child(2) strong,.metric:nth-child(3) strong{color:var(--cyan)}.metric-note{display:block;color:#7593a5;font-size:10px;margin-top:7px}
.telemetry-card{border:1px solid #2a4658;background:#0d2232;border-radius:5px;padding:17px 18px 12px;min-height:215px}.telemetry-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.telemetry-heading h2{font-size:16px;font-weight:550;letter-spacing:.01em;margin:7px 0 11px}.legend{display:flex;gap:18px;white-space:nowrap;font-size:11px;color:#aac0cc}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}.dot.cyan{background:var(--cyan)}.dot.amber{background:var(--amber)}
#signalPlot{display:block;height:93px;width:100%}.telemetry-footer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border-top:1px solid #294758;padding-top:11px;margin-top:7px}.telemetry-footer span{display:flex;flex-direction:column;gap:7px;white-space:nowrap}.telemetry-footer em{font-size:9px;color:#7295a9;font-style:normal;letter-spacing:.12em}.telemetry-footer strong{font-size:12px;color:#d6e8ed;font-weight:610;font-variant-numeric:tabular-nums}
.control-panel{background:#0b1d2b;border-left:1px solid #2e4d60;display:flex;flex-direction:column;min-height:0}.panel-head{padding:28px 24px 22px;border-bottom:1px solid #30495a}.panel-head h2{font-size:23px;font-weight:600;margin:11px 0 7px;letter-spacing:-.045em}.panel-head h2 span{float:right;color:#d5a479;font-size:20px}.panel-head p{font-size:12px;line-height:1.6;color:#839dab;margin:0}.panel-scroll{padding:0 23px 15px;flex:1}.group{padding:23px 0 25px;border-bottom:1px solid #294456}.group:last-child{border:0}.group-title{font-size:10px;letter-spacing:.17em;font-weight:720;color:#d9b38c;margin-bottom:22px;display:flex;gap:13px;align-items:center}.group-title span{border:1px solid #39586b;color:#8cb3c3;padding:5px 6px;border-radius:3px}.control-label{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:12px;color:#d5e4e8;margin:17px 0 11px}.control-label small{font-size:10px;color:#7e9bac}.control-label output{color:var(--cyan);font-size:12px;font-variant-numeric:tabular-nums}
select{width:100%;padding:11px 12px;background:#152d40;color:#e6f0f3;border:1px solid #476578;outline:none;border-radius:4px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m4 7 5 5 5-5' stroke='%23a7bdcb' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
input[type=range]{display:block;width:100%;height:4px;margin:16px 0 10px;accent-color:var(--cyan);cursor:pointer}.limits{display:flex;justify-content:space-between;color:#6e90a1;font-size:9px;letter-spacing:.08em}.presets{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:21px}.presets button{border:1px solid #3d5869;background:#132b3d;color:#a6bbc6;padding:9px 4px;border-radius:4px;font-size:10px}.presets button:hover,.presets button.chosen{border-color:#a0b98c;background:#314438;color:#edf4d2}
.control-hint{font-size:11px;color:#7596a7;line-height:1.55;margin:4px 0 19px}.action-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.btn-primary,.btn-outline,.btn-export{border-radius:4px;padding:11px 9px;font-size:12px;font-weight:650}.btn-primary{color:#06202a;background:#82d9e6;border:1px solid #82d9e6}.btn-primary:hover{background:#afeaf1}.btn-outline{color:#d3e7ec;border:1px solid #4c7184;background:#18374a}.btn-outline:hover{background:#244f64}.btn-export{display:block;width:100%;text-align:left;background:#152b3b;color:#bfd9e3;border:1px solid #36596c;margin-top:9px;font-weight:480}.btn-export:hover{background:#1d4052}.panel-foot{border-top:1px solid #2d4858;color:#779ca7;font-size:9px;letter-spacing:.1em;padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.heartbeat{width:6px;height:6px}
.bottom-bar{border-top:1px solid #243e50;background:#071622;display:flex;justify-content:space-between;gap:12px;padding:15px 26px;color:#6e8a9c;letter-spacing:.12em;font-size:9px}
@media(max-width:1220px){.masthead-middle{display:none}.layout{grid-template-columns:minmax(0,1fr) 310px}.center-stage{padding:13px}.control-panel{font-size:13px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{min-height:103px}.scene-hud-left{max-width:235px}.scene-hud-left p{max-width:200px}}
@media(max-width:860px){.layout{grid-template-columns:1fr}.control-panel{border-left:none;border-top:1px solid #385364}.panel-scroll{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}.group{padding-top:24px}.scene-wrap{height:470px}.masthead{padding:0 15px}.backend-status{display:none}.telemetry-card{min-height:200px}}
@media(max-width:570px){.masthead{height:69px}.brand-title{font-size:16px}.brand-caption{font-size:7px}.mark,.mark img{width:36px;height:36px}.corner-chip{font-size:8px}.center-stage{padding:9px}.scene-wrap{height:500px;min-height:390px}.scene-hud-left{top:15px;left:17px}.scene-hud-left h1{font-size:20px}.scene-hud-left p{font-size:11px;max-width:190px}.scene-hud-right{right:13px;top:15px;font-size:9px}.scene-tag{padding:6px}.axis-tag{display:none}.scene-bottom-line{font-size:7px;letter-spacing:0;padding:12px 10px}.scene-bottom-line span:nth-child(3){display:none}.camera-actions{bottom:55px;right:9px}.camera-actions button{font-size:9px;padding:7px}.metrics{gap:7px}.metric{padding:12px}.metric strong{font-size:22px}.metric-label{font-size:9px}.metric-note{font-size:9px}.telemetry-heading{display:block}.legend{font-size:9px;margin-bottom:8px}.telemetry-footer{grid-template-columns:repeat(2,1fr)}.panel-scroll{display:block}.panel-head{padding:25px 20px}.bottom-bar{font-size:8px;padding:12px}.bottom-bar span:nth-child(2){display:none}}
