/* Teaching surfaces use the essay's palette and typography. */
.sound-lab { max-width:1100px; margin:1.5rem auto 2rem; padding:0 1.5rem; color:#f3f1f8; font-weight:500; scroll-margin-top:105px; }
.sound-lab figure { margin:0; padding:1rem; background:#111119; border:1px solid var(--border); border-radius:6px; }
.sound-lab canvas { display:block; width:100%; aspect-ratio:2.4; }
.sound-lab .lab-legend { display:flex; flex-wrap:wrap; gap:.5rem 1.5rem; margin-bottom:.5rem; font-size:16px; }
.lab-a { color:#a6eadf; } .lab-b { color:#edceff; }
.lab-winds { color:#ffdda5; }
.sound-lab .lab-controls { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem 1.25rem; margin:0 0 1rem; }
.sound-lab button,.sound-lab select { min-height:44px; padding:.55rem .9rem; border:1px solid #bdb6d0; background:#171721; color:#f3f1f8; border-radius:6px; font:600 16px var(--font-body); }
.sound-lab button:not(:disabled),.sound-lab select { cursor:pointer; }
.sound-lab button[data-play] { border-color:#a6eadf; color:#a6eadf; }
.sound-lab button:disabled { color:#bbb6c8; border-color:#55515f; }
.sound-lab label { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; min-height:44px; font-size:16px; }
.sound-lab input { accent-color:#a6eadf; min-height:44px; }
.sound-lab input[type=range] { width:130px; }
.sound-lab :focus-visible { outline:3px solid #f3f1f8; outline-offset:4px; }
.sound-lab figcaption,.sound-lab .lab-status,.sound-lab .lab-formula { color:#e0dce9; font-size:16px; line-height:1.55; font-weight:500; }
.sound-lab figcaption { margin-top:.75rem; }
.sound-lab .lab-status { min-height:1.6em; margin:.8rem 0 .4rem; }
.sound-lab .lab-result { font-size:18px; line-height:1.5; font-weight:600; color:#f3f1f8; min-height:1.6em; }
.sound-lab .lab-formula { margin:.6rem 0; }
.sound-lab progress { width:100%; height:8px; accent-color:#a6eadf; display:block; margin-top:1rem; }
.sound-lab .lab-time { font-variant-numeric:tabular-nums; font-size:16px; }
.sound-lab .lab-noscript { font-size:16px; }
.recorded-lab audio { width:min(100%, 480px); height:48px; }
.recorded-lab canvas { aspect-ratio:2.3; }
.recorded-reel { display:grid; grid-template-columns:minmax(180px,.42fr) minmax(0,1fr); gap:1rem; align-items:start; }
.recorded-reel video { display:block; width:100%; aspect-ratio:9/16; background:#050508; border-radius:4px; }
.recorded-reel .reel-signal canvas { aspect-ratio:1.5; }
@media(max-width:650px) {
  .recorded-reel { grid-template-columns:1fr; }
  .recorded-reel .reel-signal { grid-row:1; }
  .recorded-reel .reel-signal canvas { aspect-ratio:1; }
  .recorded-reel .reel-source { width:min(100%,280px); justify-self:center; }
}
@media(max-width:600px) { .recorded-lab canvas { aspect-ratio:1.2; } }
.technical-record { max-width:1100px; margin:2rem auto; }
.technical-record > summary { cursor:pointer; margin:0 1.5rem; padding:1rem 0; color:var(--text); font-size:1.1rem; font-weight:700; border-top:1px solid var(--border); }
.technical-record section { padding-top:2rem; }
@media(max-width:600px) {
  .sound-lab { padding:0 1rem; }
  .sound-lab figure { padding:.7rem; }
  .sound-lab canvas { aspect-ratio:1.1; }
  .sound-lab .lab-controls { gap:.6rem; }
  .sound-lab label { width:100%; }
  .sound-lab input[type=range] { flex:1; }
}
@media(prefers-reduced-motion:reduce) { .sound-lab canvas { scroll-behavior:auto; } }
