/* 近黑实验台：装置、能量账本和操作保持独立层级。 */
:root { --panel-w: 320px; }
#coaster { width:100%; height:100%; touch-action:none; }
#panel { background:#0d121c; padding:22px 20px; scrollbar-width:thin; scrollbar-color:#2a3446 transparent; }
button { font:inherit; font-size:12px; min-height:42px; cursor:pointer; color:var(--text); background:#151e2c; border:1px solid #2b3749; border-radius:9px; padding:8px 12px; transition:background .15s,border-color .15s; }
button:hover { border-color:#8d99ab; background:#202c3c; }
button:focus-visible, summary:focus-visible, input:focus-visible { outline:2px solid #63cafa; outline-offset:4px; }
.eyebrow { display:block; font-size:11px; color:#8492a8; letter-spacing:1px; margin-bottom:8px; }
#panel h1 { font-size:18px; margin-bottom:8px; } #panel h1 small { display:block; margin:3px 0 0; font-size:12px; }
#panel .learn-link { margin:0 0 18px; font-size:11px; color:#a1b2c9; }
#panel section { padding:17px 0; border-color:#222c3d; }
#panel h2 { font-size:12px; color:#d7e1ef; letter-spacing:0; margin-bottom:12px; }
.step { color:#718197; font-size:11px; font-variant-numeric:tabular-nums; margin-right:7px; }
.scenes,.actions { display:flex; gap:8px; margin:8px 0; }.scenes button,.actions button { flex:1; }
.scenes button { text-align:left; padding:10px; font-size:13px; }
.scenes small { display:block; color:#8b9bb0; font-size:10px; margin-top:3px; }
.scenes button.on { background:#ffc94a12; border-color:#c89b3e; color:#ffcf65; }
.scenes button.on small { color:#cdb77f; }
.slider { grid-template-columns:64px 1fr 62px; gap:6px; margin:7px 0; font-size:12px; min-height:36px; }
.slider input { min-height:32px; cursor:pointer; } output { color:#d8e5f3; font-size:11px; }
.note { font-size:11px; line-height:1.75; color:#8c9bb0; }
.checks { margin-top:12px; gap:4px; font-size:11px; }.checks label { display:flex; align-items:center; min-height:36px; gap:3px; }
#panel .insight { padding:14px; margin:0 0 16px; border:1px solid #283b50; border-radius:10px; background:#111e2b; }
#panel .insight h2 { color:#8dd4f5; margin-bottom:6px; }
#status { font-size:12px; line-height:1.8; color:#bbcbdc; margin:0; }
.formula-mini { margin-top:10px; font-size:12px; color:#ffc94a; }.formula-mini span { color:#63cafa; margin-left:20px; }
.data-details { border-top:1px solid #222c3d; padding:0 0 6px; }
.data-details summary { cursor:pointer; font-size:12px; color:#d7e1ef; min-height:46px; padding:14px 0 10px; }
.data-details summary span { float:right; font-size:10px; color:#7e8fa5; }
.data-details dl { font-size:11px; gap:8px; padding:0 0 12px; }.data-details dd { text-align:right; font-variant-numeric:tabular-nums; }
.kinetic { color:#ffc94a; }.potential { color:#63cafa; }.heat { color:#fb9672; }
#share { width:100%; background:transparent; } #shareNote { overflow-wrap:anywhere; }
#records { font-size:11px; color:#a8b8ca; } #records p { padding:9px 0; border-bottom:1px solid #253042; line-height:1.8; } #records .empty { color:#7e8fa5; border:0; }
.model-note { margin-top:0; }
.stage-actions { position:absolute; bottom:18px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:8px; padding:6px; border:1px solid #263548; border-radius:14px; background:#0e1622ed; white-space:nowrap; }
.stage-actions .primary { min-width:142px; font-size:13px; font-weight:600; background:#ffc94a; color:#191b1e; border-color:#ffc94a; }.stage-actions .primary:hover { background:#ffdb84; }
#stageTime { width:72px; text-align:center; font-size:11px; font-variant-numeric:tabular-nums; color:#95a7be; }
@media(max-width:760px) {
 #panel { padding:18px 20px 28px; max-height:70%; box-shadow:0 -20px 60px #0008; }
 #panelToggle { z-index:8; top:17px; right:14px; font-size:11px; min-height:40px; padding:6px 12px; border-radius:9px; background:#121b29; }
 button { min-height:44px; }.stage-actions { bottom:14px; padding:5px; gap:6px; }.stage-actions .primary { min-width:140px; }
 #stageTime { width:60px; }.data-details summary { min-height:48px; }
}
@media(prefers-reduced-motion:reduce) { button,#panel { transition:none; } }
