/* Two optional panels; the original dashboard and controls keep their styling. */
.aux-tools { gap:4px; flex-wrap:nowrap; }
.aux-panel { position:fixed; z-index:60; top:70px; right:20px; width:min(1160px,calc(100vw - 40px)); max-height:calc(100vh - 95px); display:flex; flex-direction:column; box-shadow:0 12px 60px #0005; }
.aux-panel[hidden],.aux-body > [hidden] { display:none !important; }
.aux-panel { background:#141c20 !important; backdrop-filter:none; }
.aux-panel { padding:0 !important; }
.aux-panel > .aux-head { flex:none; min-height:42px; box-sizing:border-box; }
.aux-panel > .aux-body { flex:1 1 auto; min-height:0; }
.aux-body > .sk,.aux-external > .sk { height:auto !important; min-height:0; align-content:start; grid-auto-rows:max-content; }
.aux-panel[data-panel="skub"] { min-height:min(420px,calc(100vh - 110px)); }
.aux-panel[data-panel="launch"] { min-height:100px; }
.dw-position { display:grid; gap:2px; min-height:34px; }
.dw-position > span { display:flex; align-items:baseline; justify-content:space-between; gap:6px; white-space:nowrap; }
.dw-position small { color:var(--muted); font-size:10px; }
.dw-position .mono { font-size:11px; font-variant-numeric:tabular-nums; }
.aux-panel { resize:both; overflow:auto; min-width:min(320px,calc(100vw - 40px)); min-height:180px; }
.aux-head { cursor:move; touch-action:none; user-select:none; }
.aux-head button { cursor:pointer; }
.aux-head > b { flex:1; }
.aux-detach[hidden] { display:none !important; }
.aux-external { padding:12px; margin:0; overflow:auto; background:var(--ground); color:var(--text); }
.aux-external-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 0 12px; }
.aux-external > .panel { height:auto; }
.aux-external > .launcher { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; margin-bottom:12px; }
.aux-external > .float-win { position:static !important; inset:auto !important; width:100% !important; height:auto !important; min-height:500px; box-sizing:border-box; resize:none; box-shadow:none; }
.aux-external > .float-win[hidden] { display:none !important; }
.aux-external > .float-win .win-head { display:none; }
.aux-external > .float-win .tab-body { max-height:none; overflow:visible; }
.sk[data-view="graphs"] > :is(.sk-main,.sk-foot,.sk-dh) { display:none; }
.sk-trends[hidden] { display:none !important; }
.sk-trends { display:grid; gap:12px; }
.sk-trend-tools { display:flex; align-items:center; flex-wrap:wrap; gap:14px; }
.sk-trend-tools select { width:90px; }
.sk-trend-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.sk-trend-card { min-width:0; background:var(--panel); border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.sk-trend-title { display:flex; align-items:baseline; justify-content:space-between; gap:8px; padding:10px 12px 0; font:13px var(--f-body); }
.sk-trend-title b { font-size:22px; }
.sk-trend-card svg { width:100%; height:170px; display:block; touch-action:pan-y; font-family:var(--f-mono); }
@media(max-width:740px) { .sk-trend-grid { grid-template-columns:1fr; } .sk-trend-card svg { height:180px; } }
.sk-tablet-scroll { overflow:auto; border:1px solid var(--line); border-radius:6px; background:var(--panel); }
.sk-trend-grid.sk-vertical-grid { display:grid; grid-template-columns:76px repeat(6,minmax(130px,1fr)); min-width:856px; gap:0; }
.sk-vertical-grid .sk-trend-card { border:0; border-left:1px solid var(--line); border-radius:0; }
.sk-track-head { height:88px; box-sizing:border-box; padding:8px; display:flex; flex-direction:column; justify-content:space-between; gap:4px; border-bottom:2px solid var(--track-color,var(--line)); }
.sk-track-name { font:500 12px/1.25 var(--f-body); color:var(--track-color,var(--text)); }
.sk-track-current { white-space:nowrap; font-size:11px; }
.sk-track-current b { font:500 20px var(--f-mono); }
.sk-track-scale { display:flex; justify-content:space-between; color:var(--muted); font:11px var(--f-mono); }
.sk-axis-track .sk-track-head { justify-content:flex-end; font:12px var(--f-body); }
.sk-vertical-grid .sk-trend-card svg,.sk-axis-track > svg { display:block; width:100%; height:clamp(360px,calc(100vh - 320px),720px); font-family:var(--f-mono); }
.sk-trend-tools > select { width:auto; max-width:210px; }
.sk-trend-tools > select[hidden] { display:none; }
.sk-track-picker { position:relative; }
.sk-track-picker > summary { list-style:none; cursor:pointer; }
.sk-track-options { position:absolute; top:calc(100% + 5px); left:0; z-index:8; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 16px; width:min(580px,calc(100vw - 80px)); max-height:400px; overflow:auto; padding:12px; background:var(--panel); border:1px solid var(--line-2); border-radius:6px; box-shadow:0 10px 35px #0004; }
.sk-track-options > div { grid-column:1 / -1; }
.sk-track-options > label { font-size:12px; gap:6px; justify-content:flex-start; }
.sk-vertical-grid .sk-trend-card[hidden] { display:none !important; }
.g3d-cams { width:min(400px,calc(100vw - 28px)); flex-wrap:wrap; justify-content:flex-end; box-sizing:border-box; }
.dw-body > .tfpanel-dial { display:grid; place-items:center; padding:6px; overflow:hidden; }
.dw-body > .tfpanel-dial svg { display:block; width:100%; height:100%; max-width:none; min-height:0; aspect-ratio:auto; }
.tf-context { position:fixed; z-index:250; width:min(300px,calc(100vw - 16px)); box-sizing:border-box; background:#141c20; color:var(--text); border:1px solid var(--line-2); border-radius:6px; box-shadow:0 10px 40px #0005; font:13px/1.4 var(--f-body); }
[data-theme="light"] .tf-context { background:#fff; }
.tf-context .aux-head { cursor:default; padding:10px 12px; }
.tf-context .tf-setting { display:grid; gap:7px; margin:12px; }
.tf-context .row.tf-setting { display:flex; align-items:center; }
.tf-setting select,.tf-setting input[type="range"] { width:100%; box-sizing:border-box; }
.tf-setting output { float:right; font-variant-numeric:tabular-nums; color:var(--muted); }
.dw[data-id="gauges"] .gauge-mode { position:relative; top:auto; left:auto; flex:0 0 auto; flex-wrap:wrap; padding:4px; opacity:1; border-bottom:1px solid var(--line); }
.dw[data-id="gauges"] .gauge-box { overflow:hidden; min-height:0; }
.dw[data-id="gauges"] .dials { overflow:hidden; }
[data-theme="light"] .aux-panel { background:#fff !important; }
.aux-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 14px; border-bottom:1px solid var(--line); }
.aux-body { padding:12px; overflow:auto; min-height:0; }
.aux-body > .panel { height:auto; min-height:0; }
.aux-body .launcher { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
@media(max-width:800px) { .aux-body .launcher { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* 3D: camera strip, compact navigation and a continuous lower instrument/control dock. */
.g3d-top {top:12px;left:12px;right:12px;grid-template-columns:minmax(220px,300px) minmax(300px,1fr) auto;gap:16px;}
.g3d-obj {padding:9px 12px;border-radius:8px;max-height:98px;overflow:auto;box-sizing:border-box;}
.g3d-obj .g3d-kick {display:none;}
.g3d-obj b {font-size:14px;}
.g3d-obj > span {font-size:11px;}
.g3d-prog-b {height:4px;}
.g3d-mid {display:grid;gap:5px;}
.g3d-phase {font-size:13px;letter-spacing:.06em;padding:5px 14px;border-radius:7px;}
.g3d-depths span {font-size:16px;padding:4px 10px;min-width:96px;border-radius:7px;}
.g3d-warn {font-size:12px;padding:5px 10px;max-height:40px;overflow:auto;}
.g3d-right {display:flex;align-items:start;gap:8px;}
.g3d-score {border-radius:7px;padding:6px 10px;gap:6px;}
.g3d-score b {font-size:22px;text-shadow:none;}
.g3d-score span:last-child {max-width:80px;}
.g3d-x {white-space:nowrap;border-radius:7px;padding:9px 12px;}
.g3d .g3d-cams {position:absolute;top:124px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);display:flex;flex-wrap:wrap;justify-content:center;gap:3px;padding:4px;border-radius:8px;}
.g3d-cb {font-size:13px;padding:7px 11px;border-radius:5px;letter-spacing:0;}
.g3d-navtoggle {border-left:1px solid #ffffff25;border-radius:0 5px 5px 0;color:#f3c784;}
.g3d-navtoggle[aria-pressed="false"] {color:#a4afb4;}
.g3d-left {top:178px;bottom:180px;left:12px;width:196px;align-content:end;overflow:auto;gap:8px;}
.g3d-card {border-radius:8px;padding:8px;}
.g3d-tf {width:126px;height:126px;}
.g3d-kick {font-size:10px;letter-spacing:.1em;}
.g3d-tft,.g3d-nav {font-size:11px;}
.g3d.nav-off .g3d-left {display:none;}
.g3d-side {display:grid;top:auto;bottom:104px;left:12px;right:12px;width:auto;transform:none;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;}
.g3d-bar {border-radius:7px;padding:8px 10px;min-width:0;gap:7px;}
.g3d-bl {display:grid;gap:4px;font-size:11px;}
.g3d-bl>span:last-child {white-space:nowrap;}
.g3d-bl b {font-size:21px;}
.g3d-bt {height:3px;}
.g3d-bt em {height:8px;top:-2px;}
.g3d-hot {left:12px;right:12px;bottom:12px;transform:none;max-width:none;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px;}
.g3d-hk {min-width:0;border-radius:7px;padding:6px 4px;letter-spacing:0;gap:3px;min-height:70px;box-sizing:border-box;}
.g3d-hk kbd {font-size:11px;padding:1px 5px;border-radius:4px;border-bottom-width:2px;}
.g3d-hk>span {font-size:12px;line-height:1.1;}
.g3d-hk .g3d-hv {font-size:10px;white-space:nowrap;}
.g3d-hk.help {opacity:1;}
.g3d-glass,.g3d-obj,.g3d-score,.g3d-card,.g3d-bar,.g3d-phase,.g3d-depths span,.g3d-hk,.g3d-cams,.g3d-x {backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(13,23,29,.91);box-shadow:0 3px 12px #0003;}
.g3d-toasts {top:176px;}
@media (max-height:720px) {.g3d-left .g3d-card+.g3d-card{display:none;}.g3d-left{align-content:center;}.g3d .g3d-cams{top:118px;}}
@media (max-width:1000px) {
 .g3d-top{grid-template-columns:220px 1fr auto;gap:8px;}.g3d-score span{display:none;}.g3d-score{padding:6px 9px;}
 .g3d-side{grid-template-columns:repeat(6,minmax(0,1fr));bottom:162px;}.g3d-hot{grid-template-columns:repeat(6,minmax(0,1fr));}.g3d-hk{min-height:66px;}.g3d-left{bottom:250px;}
 .g3d-cb{font-size:12px;padding:6px 8px;}.g3d-depths span{min-width:70px;font-size:14px;}
}
@media (max-width:700px) {
 .g3d-top{grid-template-columns:1fr auto;}.g3d-obj{display:none;}.g3d-mid{justify-items:start;}.g3d-depths{justify-content:start;}.g3d-phase{font-size:12px;}
 .g3d .g3d-cams{top:132px;}.g3d-left{display:none;}.g3d-side{gap:3px;}.g3d-bar{padding:6px 4px;}.g3d-bl{font-size:9px;}.g3d-bl b{font-size:16px;}.g3d-bl small{font-size:8px;}
}

/* Compact centered 3D control console. */
.g3d-hot {left:50%;right:auto;transform:translateX(-50%);width:min(950px,calc(100% - 24px));max-width:none;gap:5px;padding:7px;box-sizing:border-box;background:rgba(10,18,23,.93);border:1px solid #ffffff24;border-radius:11px;box-shadow:0 5px 22px #0005;}
.g3d-hk {min-height:60px;padding:5px 3px;border-radius:6px;background:rgba(255,255,255,.045);box-shadow:none;align-content:center;}
.g3d-hk>span {font-size:12px;}
.g3d-hk kbd {font-size:11px;padding:1px 5px;}
.g3d-hk:nth-child(3),.g3d-hk:nth-child(6),.g3d-hk:nth-child(8),.g3d-hk:nth-child(10) {border-left-color:#e8b05e80;}
.g3d-hk:nth-child(11) {color:#ffb1a7;background:#692b294d;border-color:#ce72625c;}
.g3d-hk:focus-visible,.g3d-cb:focus-visible {outline:2px solid #f2b65b;outline-offset:2px;}
@media(max-width:1000px){.g3d-hot{width:min(650px,calc(100% - 24px));}.g3d-hk{min-height:54px;}.g3d-side{bottom:150px;}}

.g3d-dh-panel{position:absolute;top:180px;left:12px;width:224px;max-height:calc(100% - 370px);overflow:auto;box-sizing:border-box;padding:12px;display:grid;gap:12px;color:#d6e1e6;background:rgba(13,23,29,.94);border:1px solid #6c9aaa55;border-radius:9px;pointer-events:auto;}
.g3d-dh-panel[hidden]{display:none;}.g3d-dh-panel>strong{font-size:14px;color:#8ed9e7;}.g3d-dh-parts{display:grid;grid-template-columns:1fr 1fr;gap:5px;}
.g3d-dh-panel button{border:1px solid #ffffff28;border-radius:5px;background:#ffffff0b;color:#dce8ee;padding:7px 6px;font:600 12px var(--f-label);cursor:pointer;}
.g3d-dh-panel button[aria-pressed=true]{background:#286578;color:#fff;border-color:#6cc8db;}.g3d-dh-detail b{font-size:14px;}.g3d-dh-detail p{font-size:12px;line-height:1.45;color:#b7c9d1;margin:7px 0;}
.g3d-dh-detail dl{display:grid;grid-template-columns:1fr auto;gap:7px;font-size:12px;}.g3d-dh-detail dd{margin:0;color:#fff;font-variant-numeric:tabular-nums;}.g3d-dh-toggles{display:flex;gap:4px;flex-wrap:wrap;}.g3d-dh-panel>small{font-size:11px;color:#94aab4;line-height:1.45;}
.g3d.dh .g3d-left{display:none;}.g3d.hud-off .g3d-dh-panel{visibility:hidden;}
@media(max-height:720px){.g3d-dh-panel{top:168px;max-height:calc(100% - 370px);}.g3d-dh-detail p,.g3d-dh-panel>small{display:none;}}

@media(max-width:1000px){.g3d-dh-panel{max-height:calc(100% - 430px);}}

.g3d-dh-select{width:100%;min-width:0;box-sizing:border-box;padding:8px 5px;background:#20343d;color:#edf3f5;border:1px solid #6c9aaa70;border-radius:5px;font:12px var(--f-label);}.g3d-dh-select option{background:#20343d;}

.g3d .g3d-dh-panel select.g3d-dh-select{background:#20343d;color:#edf3f5;color-scheme:dark;}
