:root{color-scheme:dark;font:13px/1.5 "Segoe UI","Microsoft YaHei",sans-serif;color:#e5f2f4;--ice:#a6eff7;--muted:#829da9;--border:#83c1d125;--view-left:342px}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#09131c}button,select,input{font:inherit}button,select{color:inherit;background:#142631;border:1px solid #8bbcc12c;border-radius:8px;padding:10px 12px;cursor:pointer;transition:background .15s,border-color .15s}button:hover,select:hover{background:#213c48;border-color:#91e8ee70}button:disabled{opacity:.4;cursor:default}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--ice);outline-offset:3px}button:active{transform:translateY(1px)}a{color:var(--ice);text-decoration:none}input[type=range]{width:100%;accent-color:var(--ice);cursor:pointer;margin:10px 0}input[type=checkbox]{accent-color:var(--ice);width:14px;height:14px;margin:0}select{width:100%;font-size:12px;margin-top:8px;padding:10px}#view{display:block;position:absolute;left:var(--view-left);width:calc(100vw - var(--view-left));height:100vh}
#panel{position:absolute;left:16px;top:16px;bottom:16px;width:310px;overflow:auto;overflow-x:hidden;padding:22px;background:linear-gradient(165deg,#142631f5,#0b161ff7 40%,#09151df5);border:1px solid var(--border);border-top-color:#a6eff75a;border-radius:16px;box-shadow:0 16px 60px #0006;scrollbar-width:thin;scrollbar-color:#365563 transparent}.back{display:flex;justify-content:space-between;font-size:9px;letter-spacing:.1em;color:#b5dce6}.back span{color:var(--muted);letter-spacing:0}.brand{position:relative;display:flex;align-items:center;gap:12px;margin:24px 0 25px}.sigil{font-size:38px;color:var(--ice);text-shadow:0 0 25px #89dff94d}.eyebrow{font-size:8px;letter-spacing:.19em;color:#8eabb9}h1{font-size:26px;letter-spacing:.1em;font-weight:650;line-height:1.1;margin:5px 0 0}h1 span{display:block;font-size:19px;letter-spacing:.22em;font-weight:300;color:#c9e2e9}.elite{position:absolute;right:0;top:2px;font-size:8px;letter-spacing:.13em;border:1px solid #d48c8b70;color:#e9aaa4;padding:3px 6px;border-radius:3px;background:#80414522}.section-head{border-top:1px solid var(--border);padding-top:16px;margin:17px 0 11px;display:flex;justify-content:space-between;font-size:10px;color:#d9edf1;letter-spacing:.06em}.section-head>span:last-child{font-size:8px;letter-spacing:.12em;color:#6e919f}.live-dot:before{content:"";display:inline-block;width:4px;height:4px;background:var(--ice);margin:0 6px 1px 0;border-radius:50%;box-shadow:0 0 8px var(--ice)}.phase-buttons{display:flex;gap:7px}.phase-buttons button{flex:1;padding:8px 4px;background:#11222c}.phase-buttons span{display:block;font-size:20px;font-weight:300;letter-spacing:.04em}.phase-buttons small{font-size:10px;color:#7897a4}.phase-buttons .active{background:linear-gradient(145deg,#91e5ed33,#3d7a8422);border-color:#adeaf5a0;box-shadow:inset 0 0 18px #8debff0e}.phase-buttons .active span,.phase-buttons .active small{color:#c1f7ff}.muted{font-size:10px;color:#8ba6b2;line-height:1.65;overflow-wrap:anywhere}.phase-note{min-height:30px;margin:9px 0}.primary{width:100%;background:#9de4e9;color:#0a2632;font-weight:650;border-color:#a6eff7}.primary:hover{background:#c5f5f7}.primary:disabled{background:#16313d;border-color:#63929f44;color:#9ebbc5}.health{margin-top:8px}.health summary{display:flex;justify-content:space-between;color:#6f929e;font-size:10px}.health output{font-variant-numeric:tabular-nums;color:#a2c9d6}.quick{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:5px}.quick button{font-size:11px;padding:8px 4px;border-radius:6px;background:#1c303a}.row{display:flex;justify-content:space-between;align-items:center;gap:7px}.controls button{flex:1;white-space:nowrap;padding:9px 8px}.controls .play{border-color:#aad6e055;background:#254753}.controls select{width:86px;margin:0;padding:9px 5px;font-size:11px}.check{display:flex;align-items:center;gap:8px;font-size:11px;margin:11px 0;color:#bdd2db;cursor:pointer}.check span{margin-left:auto;font-size:9px;color:#678a99}.advanced summary{font-size:10px;color:#789ba9;padding:6px 0;cursor:pointer}.advanced a{font-size:10px}.panel-footer{margin-top:18px;padding-top:13px;border-top:1px solid var(--border);font-size:8px;letter-spacing:.13em;color:#486876;display:flex;justify-content:space-between}summary{cursor:pointer}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
#hero{position:absolute;top:30px;left:calc(var(--view-left) + 28px);pointer-events:none;text-shadow:0 2px 18px #061019}.tag{font-size:9px;letter-spacing:.23em;color:#cde8eb}.tag i{display:inline-block;background:#b58182;width:5px;height:5px;margin-right:8px;transform:rotate(45deg)}#current{font-size:25px;font-weight:500;letter-spacing:.035em;margin:8px 0 4px}#event{font-size:11px;color:#aac5d0}#rangeNote{margin-top:14px;border-left:2px solid #8bf3ff;background:#0a2635bf;padding:9px 13px;font-size:12px;color:#a6f1fa;width:max-content}#cameraTools{position:absolute;top:24px;right:24px;display:flex;gap:7px}#cameraTools button{font-size:11px;background:#0d202cd9;border-color:#a6d0df38;backdrop-filter:blur(10px);padding:9px 12px}#timeline{position:absolute;bottom:24px;left:calc(var(--view-left) + 28px);right:24px;background:linear-gradient(115deg,#0b1d29f0,#122c38d9);border:1px solid #80b2c339;border-radius:12px;padding:15px 20px 10px;backdrop-filter:blur(14px);box-shadow:0 8px 35px #0005}#clipLabel{font-size:12px;font-weight:500}#time{font-size:11px;color:#adced9;font-variant-numeric:tabular-nums}#scrub{height:5px;margin:14px 0 10px}#segments{display:flex;gap:3px;height:3px}#segments span{background:#76b1bf77;border-radius:2px}#segments span:nth-child(3n+2){background:#c48f8a99}.timeline-caption{display:flex;justify-content:space-between;font-size:8px;color:#7495a2;letter-spacing:.12em;margin-top:9px}.timeline-caption span:last-child{letter-spacing:0}#error{position:absolute;top:90px;right:20px;max-width:500px;background:#571f27;color:#ffd5d5;white-space:pre-wrap}#error:empty{display:none}.panel-collapsed #panel{display:none}.panel-collapsed #hero,.panel-collapsed #timeline{left:24px}
@media(max-height:820px){#panel{padding:16px}.brand{margin:18px 0}.section-head{padding-top:11px;margin:13px 0 9px}.phase-note{min-height:0}.check{margin:9px 0}.panel-footer{margin-top:12px}.advanced summary{padding:3px 0}}@media(max-width:1100px){#cameraTools{top:116px;right:18px}#panel{width:275px}#hero{left:calc(var(--view-left) + 18px)}#current{font-size:21px}#timeline{left:calc(var(--view-left) + 18px);right:18px}.panel-collapsed #cameraTools{top:24px}}@media(max-width:650px){#panel{width:245px;left:8px;top:8px;bottom:8px;padding:13px}#cameraTools{top:130px;gap:3px;right:8px;flex-wrap:wrap;max-width:150px}#cameraTools button{font-size:10px;padding:6px}#current{font-size:17px}#event{display:block;max-width:180px}#hero{left:calc(var(--view-left) + 8px);top:20px}#timeline{left:calc(var(--view-left) + 8px);right:8px;bottom:12px;padding:10px}#clipLabel{max-width:130px}#timeline .row{flex-wrap:wrap}.timeline-caption{display:none}}
/* A narrow Codex sidebar uses a drawer, never a tiny split-screen canvas. */
@media(max-width:650px){#view{left:0;width:100vw}#panel{z-index:30;top:57px;left:12px;bottom:12px;width:min(310px,calc(100vw - 24px));padding:18px;background:linear-gradient(145deg,#132935fc,#09151dfc);box-shadow:0 10px 60px #000c}#cameraTools,.panel-collapsed #cameraTools{z-index:40;top:12px;right:12px;max-width:none;flex-wrap:nowrap;gap:5px}#cameraTools button{font-size:11px;padding:8px 9px}#hero,.panel-collapsed #hero{top:65px;left:16px;right:12px}#event{max-width:100%;font-size:10px}#current{font-size:20px}#timeline,.panel-collapsed #timeline{left:12px;right:12px;bottom:16px;padding:12px 14px}#timeline .row{flex-wrap:nowrap}#clipLabel{max-width:65%;font-size:11px}#time{font-size:10px}.timeline-caption{display:none}}

/* Background transparency leaves the controls themselves legible. */
[hidden],#timeline[hidden]{display:none!important}#timeline{background:rgba(9,25,35,var(--timeline-alpha,.25));backdrop-filter:none;box-shadow:0 8px 25px #0002}#opacityButton{padding:2px 8px;font-size:16px}#timeline #clipLabel{margin-right:auto}#opacityControls{max-width:260px;margin:8px 0;font-size:11px}#opacityValue{float:right}#detailToggle{font-size:10px;padding:2px 7px;margin-top:-3px}#moveDetails{padding:12px;background:#16313e80;border:1px solid #91ddec30;border-radius:8px;font-size:11px;line-height:1.6}#moveDetails strong{color:#a6eff7;font-weight:500}#moveDetails p{margin:3px 0 12px;color:#b3c9d2;overflow-wrap:anywhere}.style-controls,.audio-controls{border-left:1px solid #80dfe544;padding:4px 10px;margin:10px 0;font-size:11px;color:#a7c9d5}.style-controls label{display:block}.style-controls input[type=color]{width:48px;height:25px;float:right;border:0;background:none}.style-controls small,.audio-controls small{font-size:9px;color:#789daa}.audio-controls input[type=range]{margin:0}.audio-controls .check{margin:2px 0 5px}

/* Page-native move controls avoid OS popup sizing and zoom mismatches. */
.segmented{display:flex;gap:4px;padding:3px;background:#08192388;border:1px solid #87d3df22;border-radius:9px;margin:10px 0}.segmented button{flex:1;min-width:0;padding:7px 3px;font-size:10px;background:transparent;border-color:transparent}.segmented button.active{background:#29505e;border-color:#9de8ef55;color:#d0faff}.speed-buttons{margin:6px 0}.speed-buttons button{padding:4px;font-size:11px}#moveSearch{width:100%;min-width:0;border:1px solid #8ab9c330;background:#0d202b;color:#d9edf1;border-radius:7px;padding:8px 10px;margin:0 0 5px;font-size:11px}#movePicker{max-height:310px;overflow:auto;scrollbar-width:thin;scrollbar-color:#436877 transparent;padding:0 4px 2px 0}#movePicker h3,#movePicker summary{font-size:10px;font-weight:500;color:#92b1bf;margin:9px 0 5px;letter-spacing:.03em}#movePicker summary{padding:4px 0}.move-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}.move-grid button{padding:8px 7px;font-size:11px;text-align:left;line-height:1.45;overflow-wrap:anywhere;min-width:0;border-radius:7px}.move-grid button.active{border-color:#a5edf0;background:#244956;color:#d3fbff}.move-grid button:disabled{opacity:.38}#moveDetails{padding:11px;margin:9px 0}#moveDetails h3{font-size:12px;font-weight:500;margin:0 0 10px;color:#dcf5f7}.move-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px}#moveDetails .move-metrics>div{background:#091c2766;padding:8px;border-radius:6px}#moveDetails .move-metrics small{display:block;font-size:9px;color:#90acb9}#moveDetails .move-metrics strong{display:block;font-size:12px;margin-top:3px}#moveDetails .move-summary{font-size:11px;line-height:1.6;margin:10px 0;color:#bed4dd}#moveDetails details{border-top:1px solid #9adfea22;padding-top:7px}#moveDetails details summary{font-size:10px;color:#819fab}#moveDetails details p{font-size:10px;margin:8px 0;color:#829eab}#comboGuide{position:static;width:100%;margin:10px 0;padding:10px;background:#10253280;border:1px solid #a4e9ed30;border-radius:8px}#comboGuide summary{font-size:11px;color:#b7e6ec;display:flex;justify-content:space-between;gap:10px}#comboGuide summary:before{content:'⌄';margin-right:4px}#comboGuide:not([open]) summary:before{content:'›'}#comboGuide summary span{margin-left:auto;font-size:9px;color:#87aab9}.combo-current{font-size:13px;font-weight:550;color:#e4fbff;margin:11px 0 4px}.combo-current:after{content:' ↓';color:#91e8ee}.combo-gate{font-size:10px;color:#abdde5;margin:0 0 8px}.combo-nodes{display:flex;gap:5px;flex-wrap:wrap}.combo-nodes button{padding:6px 9px;background:#25455499;border:1px solid #97dbe132;border-radius:7px;text-align:left}.combo-nodes span{display:block;font-size:11px}.combo-nodes small{display:block;color:#87acba;font-size:9px;margin-top:1px}.combo-note{font-size:9px;color:#97aeba;margin:9px 0 0;line-height:1.5}#hero{max-width:calc(100vw - var(--view-left) - 45px)}#current{font-size:22px;overflow-wrap:anywhere}
@media(max-width:1100px){#hero #current{max-width:380px;font-size:18px}.brand{margin:12px 0}.brand h1{font-size:22px}.brand h1 span{font-size:15px}.sigil{font-size:29px}}
@media(max-width:650px){#hero{max-width:calc(100vw - 24px)}#comboGuide .combo-current{margin-top:7px}#comboGuide .combo-nodes button{padding:5px 8px}#movePicker{max-height:250px}}
@media(max-height:650px) and (min-width:651px){#movePicker{max-height:230px}}

/* Compact relationship details stay in the sidebar at every viewport width. */
#comboGuide .combo-current{display:inline-block;margin:7px 6px 7px 0;font-size:12px}#comboGuide .combo-gate{display:inline-block;margin:0 0 7px;font-size:9px}.combo-nodes button{display:flex;align-items:center;gap:7px;padding:5px 7px}.combo-nodes small{display:inline;margin:0;font-size:9px}.combo-note{margin-top:7px;line-height:1.4}

#comboGuide[open] summary span{font-size:0}#comboGuide[open] summary span:after{content:"收起";font-size:9px}
