/* 深色装货实验台，场景、读数与操作分层。 */
#incline { width:100%; height:100%; touch-action:none; }
#stage { background:radial-gradient(ellipse at 50% 45%,#0b1320 0%,#05070d 70%); }
.stage-actions { position:absolute; bottom:48px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }
#app button { font:inherit; font-size:12px; cursor:pointer; color:var(--text); background:#182232; border:1px solid #314158; border-radius:9px; padding:9px 12px; min-height:40px; transition:background .15s,border-color .15s; }
#app button:hover { border-color:#8da6be; background:#213047; }
#app button:focus-visible, #app input:focus-visible { outline:2px solid #72d8f4; outline-offset:3px; }
#app button.on, #app button.primary { background:#ffc94a; color:#201b0f; border-color:#ffc94a; font-weight:600; }
#app button.primary:hover { background:#ffdc82; }
#panel { width:330px; padding:20px 18px 26px; background:#101621; border-color:#253044; }
#panel h1 { font-size:18px; margin-bottom:7px; letter-spacing:.3px; }
#panel h2 { color:#dbe5ef; font-size:12px; letter-spacing:0; }
#panel section { border-color:#253044; padding:15px 0; }
#panel .learn-link { color:#8eb5d1; font-size:11px; margin-bottom:15px; }
.scenes { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; }
#app .scenes button { padding:9px 3px; font-size:11px; }
.readout { margin:0 0 14px; background:linear-gradient(135deg,#1b2633,#131e2b); border-color:#354458!important; padding:14px!important; }
.readout .big { color:#ffc94a; font-size:18px; }
.readout dl { font-size:12px; gap:7px 8px; margin-top:12px; }
.readout dd { text-align:right; font-variant-numeric:tabular-nums; }
#equation { border-top:1px solid #354458; padding-top:10px; color:#abc0cf; line-height:1.7; }
.actions { display:flex; gap:8px; margin:8px 0 14px; }.actions button { flex:1; }
.slider { grid-template-columns:61px 1fr 62px; gap:7px; min-height:40px; margin:4px 0; font-size:12px; }
.slider input { min-height:32px; cursor:pointer; }
output { color:#dbe5ef; font-size:11px; }
.note { font-size:11px; line-height:1.75; color:#94a5b9; }
#panel details { margin-top:10px; color:#9aaec1; font-size:11px; }
#panel summary { cursor:pointer; min-height:32px; display:list-item; padding:6px 0; }
.force-toggle { display:flex; align-items:center; gap:8px; min-height:42px; font-size:12px; cursor:pointer; }
.force-toggle input { accent-color:#72d8f4; width:16px; height:16px; }
.force-legend { display:flex; flex-wrap:wrap; gap:6px 12px; font-size:11px; }
.force-legend span:nth-child(1){color:#ffc94a}.force-legend span:nth-child(2){color:#8adcb1}.force-legend span:nth-child(3){color:#ff947a}.force-legend span:nth-child(4){color:#72d8f4}
#work { font-size:13px; font-variant-numeric:tabular-nums; color:#cbd9e8; }
#records { font-size:11px; color:var(--muted); } #records p { padding:9px; border:1px solid #2a3749; border-radius:7px; line-height:1.8; }
#records:empty::after { content:'调节条件，记录拉力与效率作对照。'; display:block; padding:4px 0; }
#share { width:100%; } #shareNote { overflow-wrap:anywhere; }
.learn-fab { bottom:10px; background:transparent; border-color:transparent; font-size:11px; }
@media(max-width:760px) {
 #panel { width:auto; padding:16px 18px 24px; max-height:65%; box-shadow:0 -18px 60px #0008; }
 #app #panelToggle { z-index:8; top:12px; right:12px; min-height:40px; padding:7px 12px; font-size:11px; background:#151f2d; }
 #panel h1 { font-size:16px; }
 .stage-actions { bottom:50px; white-space:nowrap; }
 #app .stage-actions button { min-height:42px; }
 #app .scenes button { min-height:44px; }
}
@media(prefers-reduced-motion:reduce){ #app button,#panel{transition:none} }

.force-legend[hidden] { display:none; }
