/* 绘图区保持装置为主，读数与控件使用原生文字。 */
:root{--panel-w:326px}
#stage{background:#05070d}
#pulley{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.stage-head{position:absolute;top:22px;left:28px;pointer-events:none}
.eyebrow{font-size:10px;letter-spacing:1.5px;color:#8395ac}
.stage-head h2{font-size:18px;font-weight:600;margin:5px 0 7px;letter-spacing:.3px}
#hint{position:static;transform:none;padding:0;background:none;white-space:normal;text-align:left;font-size:12px;color:#8f9fb3}
.stage-tools{position:absolute;top:24px;right:26px;display:flex;gap:8px}
.stage-tools select{width:180px;font-size:12px;background:#101620;padding:8px 10px}
button{cursor:pointer}
.stage-tools button{font:inherit;font-size:12px;min-width:72px;min-height:40px;border:1px solid #345063;border-radius:8px;background:#142631;color:#9ee7fa}
.stage-summary{position:absolute;bottom:49px;left:50%;transform:translateX(-50%);width:min(540px,calc(100% - 48px));border:1px solid #233042;border-radius:12px;background:#0c121c;overflow:hidden}
.summary-grid{display:grid;grid-template-columns:1fr 1fr 1.6fr;padding:12px 4px}
.summary-grid>div{padding:0 16px;border-right:1px solid #243041}
.summary-grid>div:last-child{border:0}
.summary-grid span{display:block;font-size:11px;color:#8f9fb3;margin-bottom:3px}
.summary-grid strong{font-size:18px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
#stageN{color:#8fe5ba}#stageForce{color:#ffc94a}#stageDistance{color:#75d9f7;font-size:15px}
#stageMessage{margin:0;padding:8px 12px;border-top:1px solid #202b3b;font-size:11px;color:#9fadc0;text-align:center;min-height:33px}
.learn-fab{bottom:12px;font-size:11px;background:transparent;border:0}
#panel{padding:20px 18px 24px;background:#10151f;border-color:#222c3b}
#panel h1{font-size:18px;margin:4px 0 8px}#panel .learn-link{font-size:11px;color:#8aabc4;margin-bottom:15px}
#panel h2{font-size:12px;letter-spacing:0;color:#cdd8e5;margin-bottom:10px}
#panel h2>span{color:#738398;font-size:10px;margin-right:6px;font-variant-numeric:tabular-nums}
#panel section{padding:15px 0;border-color:#242e3d}
.scenes{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#panel button{font:inherit;font-size:12px;color:#c4cedd;background:#161e2b;border:1px solid #2b3748;border-radius:7px;padding:9px;min-height:40px}
#panel button:hover{border-color:#69798d}#panel button.on{border-color:#e8bd56;background:#27251e;color:#ffda7a}
#panel .scenes button{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:5px}
#panel button.on small{color:#d0b878}
#panel .primary{color:#96e4fb;background:#142530;border-color:#355466}
#panel button:focus-visible,.stage-tools button:focus-visible,select:focus-visible{outline:2px solid #75d9f7;outline-offset:3px}
.actions{display:flex;gap:8px;margin-bottom:10px}.actions button{flex:1}
#panel .slider{grid-template-columns:59px 1fr 53px;font-size:12px;gap:6px;margin:4px 0}
#panel input[type=range]{min-height:32px;margin:0}#panel input:disabled{opacity:.3}
#panel .switch{font-size:12px;min-height:38px;gap:7px}#panel input[type=checkbox]{width:16px;height:16px;accent-color:#ffc94a}
.readout{background:#141d29;border-color:#2c3b4d!important;border-radius:10px}
.reading-label{font-size:11px;color:#93a4ba;margin-bottom:4px}
#panel .readout .big{color:var(--accent);font-size:15px}
#panel .readout dl{font-size:12px;gap:6px 10px;border-top:1px solid #2a3546;padding-top:10px;margin-top:10px}dd{text-align:right;font-variant-numeric:tabular-nums}
#panel .note{font-size:11px;line-height:1.7;margin-top:8px}
#panel small{font-size:10px;font-weight:400;color:#8192a8}
.analysis{border-bottom:1px solid #263040;margin-top:7px}.analysis summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;min-height:46px;font-size:12px;color:#c9d4e2;list-style:none}.analysis summary::after{content:'+';color:#90a4bc;margin-left:8px}.analysis[open] summary::after{content:'−'}.analysis summary small{margin-left:auto}.analysis section{border:0!important;padding-top:3px!important}
#records{overflow:auto}#records table{width:100%;font-size:11px;border-collapse:collapse;white-space:nowrap}#records th,#records td{padding:5px;border-bottom:1px solid var(--line);text-align:center}
#work{font-size:12px;line-height:1.9;font-variant-numeric:tabular-nums}#share{width:100%}
@media(min-width:761px) and (max-width:1150px){.stage-tools{top:100px;left:28px;right:auto}}
@media(max-width:760px){
.stage-head{top:16px;left:16px}.stage-head h2{font-size:16px;margin:3px 0 5px}.eyebrow{font-size:9px}#hint{font-size:11px;max-width:none}
#panelToggle{top:15px;right:12px;min-height:38px;padding:7px 11px;font-size:11px;border-radius:8px}
.stage-tools{top:96px;left:16px;right:16px;gap:8px}.stage-tools select{width:auto;flex:1;min-height:40px}
.stage-summary{bottom:43px;width:calc(100% - 28px);border-radius:10px}.summary-grid{padding:10px 0}.summary-grid>div{padding:0 11px}.summary-grid strong{font-size:16px}#stageDistance{font-size:13px}.summary-grid span{font-size:10px}#stageMessage{font-size:10px;padding:7px 8px}
#panel{padding:16px 18px 24px;max-height:65%}.learn-fab{bottom:10px}
}
@media(prefers-reduced-motion:reduce){#panel{transition:none}}
