:root{color-scheme:dark;--bg:#0c1014;--panel:#141a20;--text:#e4e7e9;--muted:#859099;--line:#ffffff10;--accent:#e5b66d;--ease:cubic-bezier(.22,.8,.25,1);font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-synthesis:none;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input{font:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent;border:0;background:transparent;transition:background .25s var(--ease),color .25s var(--ease),transform .25s var(--ease)}button,input{touch-action:manipulation}button:active{transform:scale(.97)}a{color:var(--accent);text-underline-offset:4px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-library{position:absolute;width:0;height:0;overflow:hidden}button:focus-visible,input:focus-visible,a:focus-visible,#stage:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.instrument{height:100vh;height:100dvh;max-width:1920px;margin:auto;display:flex;flex-direction:column;padding:12px 24px 0;gap:12px;overflow:hidden}.masthead{height:48px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:9px}.brand{display:flex;align-items:center;gap:11px;font-size:13px;letter-spacing:.03em;font-weight:520}.brand>svg{width:25px;height:25px;color:#d3b281}.brand>i{height:15px;width:1px;background:#ffffff25;margin:0 8px}.brand h1{font-size:13px;font-weight:400;color:#a2acb4;margin:0;letter-spacing:.06em}.edition{font:10px ui-monospace,SFMono-Regular,monospace;color:#616e78;padding-left:2px}.header-actions{display:flex;align-items:center;gap:7px}.system-label{font:9px ui-monospace,SFMono-Regular,monospace;color:#64707a;letter-spacing:.16em;margin-right:18px}.icon-button{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;color:#a4aeb6}.icon-button:hover{background:#ffffff08;color:#f4f5f5}.icon-button[aria-pressed=true]{color:var(--accent);background:#e5b66d0d}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;flex:1;min-height:0}#stage{min-height:0;position:relative;overflow:hidden;touch-action:none;border-radius:8px;background:radial-gradient(ellipse at 48% 43%,#202830 0,#11171d 45%,#0c1014 78%);cursor:grab}#stage:active{cursor:grabbing}#view{width:100%;height:100%;display:block;touch-action:none}.stage-top{position:absolute;top:12px;left:16px;right:16px;display:flex;align-items:center;justify-content:space-between;z-index:2;pointer-events:none}.status{display:flex;align-items:center;gap:8px;font-size:11px;color:#9da9b2;letter-spacing:.03em}.status>i{width:5px;height:5px;background:#93b4a3;border-radius:50%;box-shadow:0 0 10px #93b4a322}.status>i.paused{background:#a99c81;box-shadow:none}.view-tools{display:flex;align-items:center;gap:8px;pointer-events:auto}.view-button{padding:7px 12px;font-size:11px;color:#a6b0b7;border-radius:5px}.view-button[aria-pressed=true]{background:#ffffff0a;color:var(--accent)}.view-tools .icon-button{width:30px;height:30px}.view-tools svg{width:17px;height:17px}.figure-id{position:absolute;left:16px;right:16px;bottom:88px;display:flex;justify-content:space-between;gap:10px;pointer-events:none;font-size:10px;color:#74818c}.figure-id>span:first-child{font:9px ui-monospace,SFMono-Regular,monospace;letter-spacing:.15em;color:#5b6975}.scene-caption{position:absolute;left:16px;right:16px;bottom:13px;display:flex;gap:14px;align-items:center;min-height:62px;padding:10px 0;background:linear-gradient(0deg,#0c1014dd,transparent);pointer-events:none}.scene-caption>span{font:11px ui-monospace,SFMono-Regular,monospace;color:var(--accent);border:1px solid #e5b66d30;border-radius:50%;height:28px;width:28px;display:grid;place-items:center;flex-shrink:0}.scene-caption h2{font-size:15px;line-height:1.5;font-weight:450;letter-spacing:.035em;margin:0 0 5px}.scene-caption p{font-size:11px;color:#89959e;margin:0;line-height:1.65}.controls{display:flex;flex-direction:column;gap:0;padding:19px 19px 13px;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#3c464e transparent;background:linear-gradient(145deg,#1a2026,#11161c 65%);border:1px solid #ffffff0a;box-shadow:inset 0 1px #ffffff05,0 8px 28px #00000010;border-radius:11px}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:16px;border-bottom:1px solid var(--line)}.panel-heading h2{font-size:13px;font-weight:500;margin:0;letter-spacing:.04em}.panel-heading>span{font:9px ui-monospace,SFMono-Regular,monospace;color:#6c7883}.metrics{display:grid;grid-template-columns:1fr 27px 1fr;align-items:center;row-gap:13px;padding:20px 0 18px;border-bottom:1px solid var(--line)}.metric>span{font-size:10px;color:#88959e;display:block;margin-bottom:7px}.metric>div{display:flex;align-items:baseline;gap:6px}.metric b{font-family:ui-monospace,SFMono-Regular,monospace;font-size:32px;font-weight:400;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.06em}.metric small{font-size:10px;color:#8a969f}.metric-arrow{font-size:20px;color:#66737d;padding-top:15px}.ratio-meta{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:10px;color:#939da5}.ratio-meta strong{font:13px ui-monospace,SFMono-Regular,monospace;color:#d6dcdf;letter-spacing:.02em}.ratio-meta strong span{padding:0 3px;color:#74808a}.ratio-meta>small{font-size:9px;color:#687680;margin-left:auto}.parameter{padding-top:18px}.parameter-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.parameter-label label{font-size:11px;color:#b9c1c6;letter-spacing:.04em}.value-field{display:flex;align-items:center;justify-content:flex-end;gap:6px;border:1px solid #ffffff08;border-radius:5px;box-shadow:inset 0 1px 4px #0004;background:#10161c;height:31px;padding:0 9px}.value-field input{width:33px;text-align:right;background:transparent;border:0;padding:0;color:#dde2e5;font:12px ui-monospace,SFMono-Regular,monospace;appearance:textfield;-moz-appearance:textfield}.value-field input::-webkit-inner-spin-button,.value-field input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.value-field span{font-size:10px;color:#788690}.value-field:focus-within{border-color:#e5b66d70}.value-field input:focus{outline:none}input[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;height:20px;margin:0;background:transparent;cursor:pointer;--fill:0%}input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(to right,var(--accent) 0 var(--fill),#343e47 var(--fill) 100%)}input[type=range]::-moz-range-track{height:3px;border-radius:3px;background:#343e47}input[type=range]::-moz-range-progress{height:3px;background:var(--accent)}input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:11px;height:11px;margin-top:-4px;background:#e5e9eb;border:1px solid #fff;border-radius:50%;box-shadow:0 1px 5px #0009}input[type=range]::-moz-range-thumb{width:10px;height:10px;background:#e5e9eb;border:1px solid #fff;border-radius:50%;box-shadow:0 1px 5px #0009}.range-endpoints{display:flex;justify-content:space-between;font:9px ui-monospace,SFMono-Regular,monospace;color:#687680;line-height:1.5;margin-top:1px}.parts{padding-top:20px;margin-top:15px;border-top:1px solid var(--line)}.parts-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.parts-heading>span{font-size:10px;color:#84929c}.focus-toggle{display:flex;align-items:center;gap:5px;color:#7e8b96;font-size:10px;padding:4px 0 4px 6px}.focus-toggle svg{width:14px;height:14px}.focus-toggle[aria-pressed=true]{color:var(--accent)}.part-buttons{display:flex;flex-direction:column;gap:4px}.part-buttons button{display:flex;align-items:center;gap:10px;min-height:41px;padding:8px 9px;border-radius:5px;border:1px solid #ffffff05;background:#ffffff02;color:#a5afb6;text-align:left;font-size:11px}.part-buttons button>svg{width:19px;height:19px}.part-buttons small{font-size:9px;color:#71808c;margin-left:auto;white-space:nowrap}.part-buttons button:hover{background:#ffffff05}.part-buttons button[aria-pressed=true]{color:var(--accent);background:linear-gradient(100deg,#b78b4e14,#b78b4e04);border-color:#d1a2633b}.part-buttons button[aria-pressed=true] small{color:#ad8f64}.part-explanation{border-top:1px solid var(--line);margin-top:18px;padding-top:15px;min-height:78px}.part-explanation>div{display:flex;align-items:center;gap:6px}.part-explanation i{width:4px;height:4px;background:var(--accent);border-radius:50%}.part-explanation h3{font-size:11px;font-weight:450;margin:0;color:#c2b7a3}.part-explanation>div>span{font-size:9px;margin-left:auto;color:#687783}.part-explanation p{font-size:11px;line-height:1.8;color:#919ea7;margin:8px 0 0}.panel-foot{display:flex;justify-content:space-between;gap:8px;margin-top:auto;padding-top:14px;color:#596b78;font-size:9px}.panel-foot>span:last-child{font-family:ui-monospace,SFMono-Regular,monospace}.transport{display:flex;align-items:center;gap:19px;height:72px;flex-shrink:0;border-top:1px solid var(--line);padding:0 5px 5px}.play-button{width:42px;height:42px;flex-shrink:0;display:grid;place-items:center;border:1px solid #72808a;border-radius:50%;box-shadow:inset 0 1px #ffffff08;background:linear-gradient(150deg,#1e272e,#11171c)}.play-button:hover{border-color:#c0c8ce;background:#232d36}.play-button svg{width:22px;height:22px}.tour-button{font-size:12px;color:#d7dcdf;text-align:left;min-width:99px;padding:9px 0;letter-spacing:.04em}.tour-button>span{display:block;margin-top:5px;color:#657581;font-size:9px;letter-spacing:.03em}.tour-button[aria-pressed=true]{color:var(--accent)}.timeline{display:flex;align-items:center;gap:18px;flex:1;min-width:35px;max-width:900px;margin:0 20px 0 0}.timeline input{flex:1;min-width:20px}.timeline>span{white-space:nowrap;font:10px ui-monospace,SFMono-Regular,monospace;color:#a3aeb6}.timeline i{font-style:normal;color:#546674}.timeline input::-webkit-slider-thumb{height:9px;width:9px;margin-top:-3px}.mode-switch{display:flex;gap:7px;margin-left:auto;flex-shrink:0}.mode-switch button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:100px;height:37px;padding:0 15px;border:1px solid #ffffff0e;border-radius:5px;font-size:11px;color:#7d8a95;background:linear-gradient(150deg,#1b232a,#11171d)}.mode-switch svg{width:17px;height:17px}.mode-switch button[aria-pressed=true]{color:#d2d9de;border-color:#66737f;background:linear-gradient(150deg,#29333d,#192128)}#loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;background:#0d1217;z-index:4}#loading b{font-weight:400;font-size:14px;color:#ccd3d8;letter-spacing:.08em}#loading small{font-size:11px;color:#687985}#loading button{border:1px solid #8c7959;padding:10px 18px;border-radius:6px}.loading-ring{height:34px;width:34px;border:1px solid #3c464e;border-top-color:#d6af76;border-radius:50%;animation:spin 1.2s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{background:#151c23;color:#d5dce1;border:1px solid #ffffff17;border-radius:15px;box-shadow:0 24px 100px #0009;width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 50px);padding:0}dialog::backdrop{background:#030609c9;backdrop-filter:blur(7px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;padding:22px 25px;border-bottom:1px solid var(--line)}.dialog-header span{font:9px ui-monospace,SFMono-Regular,monospace;letter-spacing:.13em;color:#8a775b}.dialog-header h2{margin:10px 0 0;font-size:19px;font-weight:450}.dialog-body{padding:10px 25px 24px;font-size:12px;line-height:1.9;color:#9aa8b2}.dialog-body h3{font-size:13px;color:#c6ced3;margin:20px 0 8px;font-weight:450}.dialog-body p{margin:8px 0}.dialog-body ul{padding-left:18px}.dialog-body .formula{font:24px ui-monospace,SFMono-Regular,monospace;color:#ddd5c7;padding:20px 0}.formula span{padding:0 17px;color:#6e7b85}.sources{font-size:10px}.instrument:fullscreen{background:var(--bg);max-width:none}
@media(min-width:1600px){.instrument{padding-inline:36px}.workspace{grid-template-columns:minmax(0,1fr) 300px;gap:26px}.controls{padding:24px}.parameter{padding-top:22px}.parts{padding-top:23px;margin-top:22px}.part-buttons button{min-height:45px}.part-explanation{padding-top:20px;margin-top:23px}.scene-caption h2{font-size:17px}.scene-caption p{font-size:12px}}
@media(min-width:741px) and (max-height:800px){.instrument{gap:9px;padding-top:8px}.masthead{height:42px}.transport{height:61px}.controls{padding:15px 17px 11px}.panel-heading{padding-bottom:12px}.metrics{padding:15px 0 12px;row-gap:10px}.metric b{font-size:28px}.parameter{padding-top:13px}.parts{padding-top:12px;margin-top:11px}.parts-heading{margin-bottom:7px}.part-buttons{gap:3px}.part-buttons button{min-height:36px;padding-block:7px}.part-explanation{min-height:64px;margin-top:12px;padding-top:12px}.part-explanation p{margin-top:5px;line-height:1.65}.panel-foot{padding-top:9px}}
@media(max-width:1000px) and (min-width:741px){.instrument{padding-inline:16px}.workspace{grid-template-columns:minmax(0,1fr) 255px;gap:12px}.controls{padding-inline:16px}.system-label{display:none}.timeline{margin-right:0;gap:12px}.mode-switch button{min-width:82px}.figure-id>span:first-child{display:none}.scene-caption p{font-size:10px}.scene-caption h2{font-size:14px}}
@media(max-width:740px){.instrument{padding:8px 12px max(8px,env(safe-area-inset-bottom));gap:8px}.masthead{height:38px;padding-bottom:5px}.brand{font-size:11px;gap:7px}.brand>svg{height:21px;width:21px}.brand>i{margin:0 2px;height:12px}.brand h1{font-size:11px;letter-spacing:0}.edition,.system-label{display:none}.header-actions{gap:1px}.header-actions .icon-button{width:30px;height:30px}.header-actions svg{width:17px;height:17px}.header-actions #fullscreen{display:none}.workspace{display:flex;flex-direction:column;gap:8px;min-height:0}#stage{flex:1;min-height:150px;border-radius:5px}.stage-top{left:8px;right:8px;top:3px}.status{font-size:10px;gap:6px}.view-tools{gap:1px}.view-button{font-size:10px;padding:7px 10px}.figure-id{left:10px;right:10px;bottom:48px;font-size:9px;justify-content:center}.figure-id>span:first-child{display:none}.scene-caption{left:10px;right:10px;bottom:3px;min-height:37px;gap:9px;padding:5px 0;justify-content:center}.scene-caption>span{height:22px;width:22px;font-size:9px}.scene-caption h2{font-size:12px;letter-spacing:0;margin:0;line-height:1.6}.scene-caption p{display:none}.controls{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;padding:13px 14px 11px;border-radius:9px;overflow:visible}.panel-heading,.panel-foot{display:none}.metrics{grid-column:1/-1;grid-template-columns:1fr 22px 1fr auto;column-gap:3px;row-gap:0;padding:0 0 10px}.metric{display:flex;align-items:center;gap:9px}.metric>span{font-size:10px;margin:0}.metric>div{gap:4px}.metric b{font-size:23px}.metric small{font-size:9px}.metric-arrow{font-size:15px;padding:0}.ratio-meta{grid-column:4;display:block;padding-left:10px;border-left:1px solid var(--line);font-size:9px;white-space:nowrap}.ratio-meta>span{margin-right:7px}.ratio-meta strong{font-size:12px}.ratio-meta>small{display:none}.parameter{padding:0}.parameter-label{margin-bottom:4px}.parameter-label label{font-size:10px}.value-field{height:27px;padding:0 7px;gap:4px}.value-field input{font-size:11px;width:24px}.value-field span{font-size:9px}.range-endpoints{font-size:8px;margin-top:-2px}.parts{grid-column:1/-1;border:0;padding:0;margin:0;min-width:0}.parts-heading{margin:0 0 5px}.parts-heading>span{font-size:9px}.focus-toggle{font-size:9px;padding:3px 0 3px 6px}.focus-toggle svg{width:13px;height:13px}.part-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.part-buttons button{min-height:36px;padding:5px 3px;justify-content:center;gap:5px;font-size:10px;white-space:nowrap}.part-buttons button>svg{width:15px;height:15px}.part-buttons small{display:none}.part-explanation{grid-column:1/-1;min-height:0;padding:0;border:0;margin:0}.part-explanation>div{display:none}.part-explanation p{font-size:10px;line-height:1.6;margin:0;color:#8b9aa6;min-height:16px}.transport{height:47px;padding:3px 0 0;gap:10px}.play-button{width:34px;height:34px}.play-button svg{width:19px;height:19px}.tour-button{font-size:10px;min-width:64px}.tour-button>span{font-size:8px;margin-top:3px}.timeline{margin:0;gap:0}.timeline>span{display:none}.timeline input::-webkit-slider-thumb{width:8px;height:8px;margin-top:-2.5px}.mode-switch{gap:5px}.mode-switch button{gap:4px;min-width:53px;height:32px;padding:0 7px;font-size:10px}.mode-switch svg{width:14px;height:14px}.dialog-header{padding:19px}.dialog-body{padding:8px 19px 20px}}
@media(max-width:740px) and (max-height:730px){.controls{gap:7px 18px;padding:11px 12px 9px}.metrics{padding-bottom:8px}.part-buttons button{min-height:32px}.parts-heading{margin-bottom:3px}.figure-id{display:none}.scene-caption{bottom:0}.stage-top{top:0}.transport{height:43px}.part-explanation p{font-size:9px}.instrument{gap:6px}.workspace{gap:6px}}
@media(max-width:360px){.instrument{padding-inline:8px}.brand>span{font-size:10px}.brand{gap:5px}.controls{column-gap:14px;padding-inline:11px}.metric{gap:5px}.metric b{font-size:21px}.ratio-meta>span{display:none}.mode-switch button{min-width:46px;padding:0 6px}.mode-switch svg{display:none}.part-buttons button{gap:3px;font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
@media(max-width:740px){.brand{font-size:12px}.brand h1{font-size:12px}.header-actions .icon-button{width:34px;height:34px}.parameter-label label{font-size:11px}.value-field input{font-size:12px}.part-buttons button{min-height:42px;font-size:11px}.part-explanation p{font-size:11px}.scene-caption h2{font-size:13px}.transport{height:49px}.play-button{width:38px;height:38px}.mode-switch button{height:38px}.tour-button{font-size:11px}.focus-toggle{font-size:10px}.range-endpoints{font-size:9px}}
@media(max-width:740px) and (max-height:730px){.part-buttons button{min-height:38px}.part-explanation p{font-size:10px}.scene-caption h2{font-size:12px}}
@media(max-width:360px){.brand{font-size:10px}.brand h1{font-size:11px}.header-actions .icon-button{width:30px}.part-buttons button{font-size:10px}.play-button{width:34px;height:34px}.transport{gap:8px}}
@media(min-width:741px) and (max-height:800px){.part-explanation{min-height:56px;margin-top:10px;padding-top:10px}.panel-foot{padding-top:6px}}
@media(min-width:741px) and (max-height:740px){.panel-heading{padding-bottom:8px}.metrics{padding:11px 0;row-gap:6px}.metric b{font-size:25px}.parameter{padding-top:10px}.parameter-label{margin-bottom:5px}.range-endpoints{display:none}.parts{padding-top:10px;margin-top:10px}.part-buttons button{min-height:32px;padding-block:6px}.part-explanation{min-height:50px}.panel-foot{display:none}}
/* A visible, browser-independent playhead; the transparent native range owns seeking. */
.timeline-meter{position:relative;flex:1;min-width:28px;height:32px;display:flex;align-items:center;cursor:pointer}.timeline-track{position:absolute;left:6px;right:6px;height:4px;background:#34414c;border-radius:4px;pointer-events:none}.timeline-track>span{position:absolute;inset:0;background:var(--accent);border-radius:4px;transform:scaleX(0);transform-origin:left center}.timeline-track>i{position:absolute;left:0;top:50%;width:12px;height:12px;border-radius:50%;transform:translate(-50%,-50%);background:#f2e4ce;border:2px solid #b79b70;box-shadow:0 0 0 3px #e5b66d12}.timeline .timeline-meter input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;z-index:1}.timeline-meter:focus-within{outline:1px solid var(--accent);outline-offset:2px;border-radius:4px}.timeline>span{min-width:79px;font-size:11px}.timeline b{font-weight:450;font-variant-numeric:tabular-nums;color:#d1b78e}.is-playing .timeline-track>i{box-shadow:0 0 0 4px #e5b66d12,0 0 14px #e5b66d28}.is-playing .play-button{border-color:#ba985f;color:#e5c28b}.view-button:disabled{cursor:default;color:#78838c}.view-button:disabled:active{transform:none}
@media(max-width:740px){.timeline{flex-direction:column;gap:0;align-items:stretch;min-width:34px;height:37px;justify-content:center}.timeline-meter{height:22px;min-height:22px;flex:none}.timeline>span{display:block;min-width:0;font-size:8px;text-align:center;line-height:12px}.timeline-track{height:4px}.timeline-track>i{height:10px;width:10px;border-width:1px}.view-tools{gap:0}.view-tools #motion{padding-inline:7px;font-size:9px}.tour-button{min-width:64px}.tour-button>span{font-size:8px;white-space:nowrap}}
