#view { width:100%; height:100%; touch-action:pan-y; }
#panel { --panel-w:334px; padding:22px 20px; background:#101620; }
#panel .panel-heading { font-size:17px; margin:0 0 6px; color:#e6ebf2; letter-spacing:0; }
#panel .panel-heading small { display:block; margin:4px 0 0; font-size:10px; letter-spacing:1.8px; color:#74879e; }
#panel h2 { color:#dce8f4; font-size:12px; letter-spacing:0; }
#panel section { padding:17px 0; }
#panel .learn-link { font-size:11px; margin:0 0 16px; }
#panel .readout { background:linear-gradient(130deg,#202638,#171d27); border-color:#394256!important; padding:14px!important; margin-bottom:3px; }
.readout .big { font-size:15px; color:#ffda78; }
.readout dl { font-size:12px; gap:5px 12px; }
.readout dd { text-align:right; font-variant-numeric:tabular-nums; }
#panel .note { font-size:11px; line-height:1.8; }
#fact { padding-top:10px; border-top:1px solid #344052; margin-top:11px; }
.stage-title { position:absolute; left:32px; top:19px; pointer-events:none; }
.stage-title h1 { margin:0; font-size:18px; font-weight:600; letter-spacing:1px; }
.stage-title p { margin:4px 0 0; font-size:12px; color:#93a6bd; }
.quick { position:absolute; top:80px; left:32px; display:flex; gap:6px; white-space:nowrap; }
.quick button,.options button { border:1px solid #2e3c50; border-radius:7px; min-height:36px; padding:7px 10px; background:#131d2c; color:#b7c6d9; font:inherit; font-size:12px; cursor:pointer; transition:background .15s,border-color .15s; }
.quick button span { font-size:10px; color:#7890ab; padding-right:3px; }
.quick button.on,.options button.on { color:#ffe2a0; border-color:#8c7240; background:#30291d; }
.quick button.on span { color:#d9ac4a; }
button:hover { border-color:#a3b7ce; }
button:focus-visible,a:focus-visible { outline:2px solid #69cffa; outline-offset:3px; }
.options { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.options button { flex:1; padding:7px; font-size:11px; white-space:nowrap; }
.slider { grid-template-columns:60px 1fr 58px; font-size:12px; gap:6px; }
.slider input { min-height:32px; margin:0; cursor:pointer; }
.slider output { font-size:11px; color:#d5dfec; }
.h2s { float:right; font-size:10px; font-weight:400; color:#8192a8; }
.checks { font-size:12px; }
.checks label { display:flex; align-items:center; min-height:36px; gap:4px; }
#shareStatus { overflow-wrap:anywhere; }
#aperture { position:absolute; right:32px; top:114px; display:flex; align-items:center; gap:8px; min-height:36px; padding:2px 8px; background:#0c1420; border:1px solid #35435a; border-radius:7px; color:#e7cd8e; font:inherit; font-size:11px; cursor:pointer; }
#aperture svg { width:26px; height:26px; fill:#ffe2a0; }
.aperture-action { color:#8c9eb5; font-size:10px; }
#hint { top:auto; bottom:17px; font-size:11px; background:transparent; }
#stage .learn-fab { left:auto; right:32px; top:24px; bottom:auto; transform:none; padding:7px 10px; font-size:11px; }
@media(max-width:1000px) { .aperture-action { display:none; } }
@media(max-width:760px) {
  .stage-title { left:16px; top:16px; }
  .stage-title h1 { font-size:16px; }
  .stage-title p { font-size:11px; }
  .quick { left:16px; right:16px; top:77px; gap:5px; }
  .quick button { flex:1; padding:8px 5px; min-height:40px; font-size:11px; }
  #aperture { right:16px; top:124px; min-height:32px; }
  #aperture svg { width:22px; height:22px; }
  #stage .learn-fab { right:16px; top:20px; }
  #panelToggle { top:auto; bottom:16px; right:16px; min-height:40px; padding:9px 16px; border-radius:8px; border-color:#7a663e; color:#ffe2a0; }
  #hint { bottom:65px; width:100%; font-size:10px; }
  #panel { padding:18px 18px 70px; max-height:65%; }
  #panel:not(.collapsed) { box-shadow:0 -16px 50px #0008; }
}
@media(prefers-reduced-motion:reduce) { #panel,.quick button,.options button { transition:none; } }

/* 扩展紧凑控件的触摸范围，不压缩图形空间。 */
#aperture { isolation:isolate; }
#aperture::before { content:""; position:absolute; inset:-6px 0; z-index:-1; }
@media(max-width:760px) {
  .quick button,.options button { min-height:44px; }
  #panel .panel-heading small { display:none; }
  #panel .readout #fact { display:none; }
}
