
:root { color-scheme: dark; --bg: #071219; --blue: #0e202a; --line: #42617170; --aqua: #88e9ef; --chalk: #e4edf0; --muted: #8ea2b0; --orange: #e29a69; font-family: Inter, 'Segoe UI', sans-serif; font-size: 13px; }
* { box-sizing: border-box; }
html,body,#app { height:100%; width:100%; margin:0; overflow:hidden; }
body { background:#06111a; color:var(--chalk); user-select:none; }
button,input { font:inherit; } button { cursor:pointer; }
#viewport { position:fixed; inset:0; background:#728994; }
#viewport canvas { width:100%;height:100%;display:block;outline:none; }
#vignette { position:fixed;inset:0;pointer-events:none; background:linear-gradient(180deg, rgba(0,15,23,.41) 0%, transparent 16%, transparent 73%, rgba(4,15,23,.66) 100%), linear-gradient(90deg,rgba(1,13,21,.31),transparent 30%,transparent 71%,rgba(1,13,21,.23)); }
#crosshair {position:fixed;left:50%;top:50%;font:24px 'DM Mono',monospace;transform:translate(-50%,-50%);color:#e4eff277;pointer-events:none;text-shadow:0 0 9px #012e40;}
.topbar {position:fixed;z-index:6;top:0;left:0;right:0;height:83px;display:flex;align-items:center;gap:18px;padding:0 29px;background:linear-gradient(180deg,rgba(4,17,25,.93),rgba(4,17,25,.74));border-bottom:1px solid #8caab52e;backdrop-filter:blur(17px);}
.brand {display:flex;gap:13px;align-items:center;}
.brand-mark {display:grid;place-items:center;width:45px;height:45px;border:1px solid #6d929b;color:#e4f7fc;font:800 28px 'Barlow Condensed',sans-serif;letter-spacing:-4px;}
.brand-mark span {color:var(--orange);padding-left:1px;}
.brand b {display:block;letter-spacing:.26em;font-size:14px;font-weight:700;}
.brand small {display:block;letter-spacing:.22em;font:9px 'DM Mono',monospace;color:#7f9da9;margin-top:4px;}
.top-status {margin:auto;color:#a1bbc5;display:flex;gap:14px;align-items:center;letter-spacing:.16em;font:10px 'DM Mono',monospace;white-space:nowrap;}
.live-dot,.pulse-dot {display:inline-block;width:7px;height:7px;border-radius:50%;background:#68efd6;box-shadow:0 0 12px #3cf5c6;animation:breathe 2s infinite;}
.top-sep {width:1px;height:18px;background:#60778288;}
.top-actions {display:flex;gap:7px;}
.top-actions button {width:35px;height:35px;display:grid;place-items:center;border:1px solid #6d94a25e;background:#122832a8;color:#c7e4ec;font-size:17px;transition:.2s;}
.top-actions button:hover {background:#224451;border-color:var(--aqua);}
.panel {background:linear-gradient(160deg,#071620ee,#091d28e7);border:1px solid #81a7b845;box-shadow:0 12px 42px #0008;backdrop-filter:blur(15px);}
.control-panel {position:fixed;z-index:5;left:23px;top:106px;width:302px;padding:23px 22px 18px;max-height:calc(100vh - 229px);overflow:auto;scrollbar-color:#476778 #0b1e29;}
.panel-kicker,.small-kicker {font:9px 'DM Mono',monospace;color:#85adba;letter-spacing:.19em;}
.control-panel h1 {font:800 76px 'Barlow Condensed',Impact,sans-serif;letter-spacing:.028em;margin:7px 0 -12px;line-height:1;}
.control-panel h1 span {color:#e8ad79;}
.panel-tag {font:11px 'DM Mono',monospace;color:#d2dad9;letter-spacing:.085em;margin:16px 0 14px;}
.rule {height:1px;background:linear-gradient(90deg,#6c9ca4,transparent);margin-bottom:20px;}
.section-heading {display:flex;gap:13px;align-items:center;margin:19px 0 12px;font:10px 'DM Mono',monospace;letter-spacing:.12em;color:#c4dce4;}
.section-heading span {color:#e0a77b;font-size:11px;}
.mode-grid {display:grid;grid-template-columns:1fr 1fr;gap:6px;}
.mode-btn {height:56px;border:1px solid #395665;background:#102733ba;color:#afc9d0;display:flex;align-items:center;gap:10px;padding:10px;text-align:left;transition:background .2s,border .2s,color .2s;}
.mode-btn b {font:26px 'Barlow Condensed',sans-serif;color:#9ac5d0;font-weight:400;}
.mode-btn span {font:10px 'DM Mono',monospace;letter-spacing:.065em;}
.mode-btn:hover,.mode-btn.active {background:#204350a8;border-color:#7cd7dd;color:#f7feff;}
.mode-btn.active b {color:#9bfaff;}
.range-control {margin:14px 0 17px;}
.range-control label {font:9px 'DM Mono',monospace;letter-spacing:.08em;color:#91aebc;display:flex;justify-content:space-between;margin-bottom:11px;}
.range-control output {color:var(--aqua);font-weight:500;}
input[type=range] {appearance:none;width:100%;height:3px;display:block;background:linear-gradient(90deg,#65cedd,#4f7280);outline:0;cursor:pointer;}
input[type=range]::-webkit-slider-thumb {appearance:none;width:12px;height:12px;background:#91e7ef;border:2px solid #1b5666;box-shadow:0 0 10px #69f7ff70;transform:rotate(45deg);}
input[type=range]::-moz-range-thumb {width:10px;height:10px;border:1px solid #365b65;border-radius:0;background:#94f5fa;}
.toggle-line {display:flex;justify-content:space-between;align-items:center;margin:13px 0;color:#bbccd2;font:10px 'DM Mono',monospace;}
.switch {position:relative;width:33px;height:18px;cursor:pointer;}
.switch input {position:absolute;opacity:0;}
.switch>span {display:block;width:33px;height:18px;border:1px solid #527280;background:#1c333d;transition:.2s;}
.switch>span:before {content:'';position:absolute;width:10px;height:10px;top:4px;left:4px;background:#78939f;transition:.2s;}
.switch input:checked+span {border-color:#5fd6e7;background:#235262;}
.switch input:checked+span:before {transform:translateX(15px);background:#a6f4fa;}
.reset-btn {width:100%;margin:17px 0 0;padding:12px 11px;border:1px solid #567985;background:#12303b;color:#c3e2eb;font:10px 'DM Mono',monospace;letter-spacing:.09em;text-align:left;}
.reset-btn:hover {background:#214758;}
.panel-footer {margin:18px 0 0;color:#72909c;font:8px/1.8 'DM Mono',monospace;letter-spacing:.13em;}
.inspect-panel {position:fixed;z-index:5;right:24px;top:106px;width:284px;padding:21px 22px 19px;}
.small-kicker {display:flex;align-items:center;justify-content:space-between;}
.inspector-icon {width:49px;height:49px;display:grid;place-items:center;border:1px solid #6395a1;margin:22px 0 15px;font-size:32px;color:#87e1e9;background:#153641;}
.inspect-panel h2 {margin:0 0 10px;font:700 24px/.97 'Barlow Condensed',sans-serif;letter-spacing:.045em;}
.inspect-panel p {font:11px/1.8 'Inter',sans-serif;color:#afc5ce;margin:0 0 18px;}
.inspect-attributes>div {border-top:1px solid #49616e88;padding:9px 0;display:flex;justify-content:space-between;gap:8px;}
.inspect-attributes span {font:9px 'DM Mono',monospace;letter-spacing:.09em;color:#799daa;}
.inspect-attributes strong {font:10px 'DM Mono',monospace;color:#d1e9ed;text-align:right;font-weight:500;}
.inspect-hint {color:#93c5d0;display:flex;justify-content:space-between;border-top:1px solid #49616e88;margin-top:10px;padding-top:14px;font:9px 'DM Mono',monospace;letter-spacing:.05em;}
.camera-bar {position:fixed;z-index:5;bottom:123px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:6px;background:#0a1922dd;border:1px solid #7191a358;backdrop-filter:blur(13px);white-space:nowrap;}
.camera-label {font:10px 'DM Mono',monospace;color:#7092a0;margin:0 12px 0 9px;letter-spacing:.11em;}
.camera-bar button {font:9px 'DM Mono',monospace;color:#a6bdc6;border:1px solid transparent;background:#0e2834;padding:12px 10px;white-space:nowrap;}
.camera-bar button:hover,.camera-bar button.selected {color:#b2fbff;border-color:#3f899c;background:#205066;}
.telemetry {position:fixed;z-index:5;bottom:23px;left:23px;right:23px;height:84px;background:#061721e8;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #7694a757;backdrop-filter:blur(10px);}
.tele-cell {min-width:0;display:flex;justify-content:center;flex-direction:column;gap:5px;padding:0 25px;border-right:1px solid #45627278;}
.tele-cell:last-child {border:0;}
.tele-cell small {color:#81a5b2;font:9px 'DM Mono',monospace;letter-spacing:.1em;white-space:nowrap;}
.tele-cell strong {font:600 29px 'Barlow Condensed',sans-serif;letter-spacing:.06em;color:#ecfaff;white-space:nowrap;}
.tele-cell strong em {font:11px 'DM Mono',monospace;color:#74bdca;font-style:normal;}
.scale-legend {position:fixed;z-index:3;bottom:223px;right:27px;color:#d3e8ee;text-shadow:0 1px 7px #07111c;font:9px 'DM Mono',monospace;letter-spacing:.08em;}
.scale-legend>span:first-child {font-size:15px;letter-spacing:-5px;color:#c4e6ec;margin:0 8px;}
.legend-divider {margin:0 9px;color:#a8c7d0;}.legend-dot {color:#71eadf;margin:0 3px 0 12px;}
.toast {position:fixed;z-index:20;left:50%;top:95px;transform:translate(-50%,-20px);opacity:0;pointer-events:none;border:1px solid #6bb2c3;background:#0c2835eb;padding:12px 18px;color:#dbfaff;font:11px 'DM Mono',monospace;letter-spacing:.07em;transition:.26s;}
.toast.show {opacity:1;transform:translate(-50%,0);}
.modal {position:fixed;inset:0;z-index:30;display:grid;place-items:center;background:#010c13bd;backdrop-filter:blur(8px);}
.modal[hidden] {display:none!important;}
.modal-card {position:relative;width:min(500px,90vw);padding:36px;background:linear-gradient(145deg,#0b2936,#09161f);border:1px solid #548999;box-shadow:0 15px 65px #0009;}
.modal h2 {font:700 44px 'Barlow Condensed',sans-serif;margin:12px 0;}
.modal p {font:12px/1.8 Inter,sans-serif;color:#aac8d1;}
.modal-close {position:absolute;right:18px;top:15px;border:0;background:transparent;color:white;font-size:28px;}
.help-grid {display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:23px 0;}
.help-grid div {display:flex;align-items:center;gap:12px;font:10px 'DM Mono',monospace;}
.help-grid b {color:#98ebef;border:1px solid #4d8997;padding:8px;min-width:63px;text-align:center;}
.help-grid span {color:#b7cdd3;}
.modal-footnote {border-top:1px solid #42616e;padding-top:12px;font-size:10px!important;}
@keyframes breathe {50% {opacity:.4;box-shadow:0 0 3px #3cf5c6;} }
@media(max-height:850px) {.control-panel {top:91px;max-height:calc(100vh - 193px);padding:17px;} .control-panel h1 {font-size:60px;} .control-panel .section-heading {margin:13px 0 9px;} .range-control {margin:9px 0 11px;} .topbar {height:72px;} .inspect-panel {top:91px;} .telemetry {height:67px;bottom:15px;} .camera-bar {bottom:94px;} .scale-legend {bottom:188px;} }
@media(max-width:1190px) {.inspect-panel {display:none;}.control-panel {width:271px;}.tele-cell {padding:0 14px;}.tele-cell strong {font-size:25px;}}
@media(max-width:820px) {.topbar {padding:0 13px;height:63px;}.brand small,.top-status {display:none;}.brand b {font-size:11px;}.brand-mark {width:38px;height:38px;}.top-actions {margin-left:auto;}.control-panel {width:230px;left:9px;top:74px;max-height:calc(100vh - 210px);padding:13px;}.control-panel h1 {font-size:55px;}.control-panel .panel-footer {display:none;}.mode-btn {height:42px;}.camera-bar {left:8px;transform:none;right:8px;justify-content:space-between;bottom:96px;}.camera-label {display:none;}.camera-bar button {padding:9px 5px;font-size:8px;}.telemetry {left:8px;right:8px;bottom:8px;height:75px;grid-template-columns:repeat(3,1fr);}.tele-cell {padding:0 9px;}.tele-cell:nth-child(n+4) {display:none;}.tele-cell small {font-size:8px;}.tele-cell strong {font-size:23px;}.scale-legend {display:none;}}
@media(max-width:550px) {.control-panel {top:74px;max-height:57vh;width:190px;}.section-heading {font-size:9px;}.control-panel h1 {font-size:46px;}.mode-btn {padding:6px;gap:3px;}.mode-btn b {font-size:19px;}.mode-btn span {font-size:8px;}.panel-tag {font-size:9px;}.camera-bar button {font-size:7px;}.telemetry {height:68px;}.tele-cell strong {font-size:21px;}.tele-cell small {font-size:7px;}}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {animation-duration:.01ms!important;transition-duration:.01ms!important;}}
