:root {
  color-scheme: dark;
  --bg: #090d12;
  --panel: #10171e;
  --panel-2: #131d25;
  --line: rgba(173, 194, 207, .12);
  --line-strong: rgba(173, 194, 207, .2);
  --text: #e9edf0;
  --muted: #8d9aa4;
  --dim: #5d6b75;
  --amber: #e7b873;
  --amber-2: #b98248;
  --cyan: #75cfc4;
  --green: #83c8a2;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 47% -15%, rgba(56, 83, 94, .16), transparent 42%), var(--bg); color: var(--text); font-size: 13px; letter-spacing: .01em; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.app-shell { max-width: 1680px; margin: 0 auto; padding: 0 28px 18px; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 25px; height: 25px; display: flex; align-items: end; gap: 3px; padding: 4px; border: 1px solid rgba(231,184,115,.45); border-radius: 7px; transform: rotate(-8deg); }
.brand-mark span { display: block; width: 4px; border-radius: 4px 4px 1px 1px; background: var(--amber); }
.brand-mark span:nth-child(1) { height: 7px; opacity: .58; }
.brand-mark span:nth-child(2) { height: 12px; opacity: .8; }
.brand-mark span:nth-child(3) { height: 16px; }
.brand-name { color: #dce3e8; font-size: 11px; font-weight: 750; letter-spacing: .13em; }
.brand-divider { color: #5d6b75; margin: 0 4px; }
.brand-sub { margin-top: 4px; color: #73818b; font-size: 8px; font-weight: 650; letter-spacing: .18em; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.seed-label { color: #7d8a94; font-size: 9px; letter-spacing: .12em; }
.seed-label b { color: #c4ced5; font-weight: 650; margin-left: 5px; }
.live-pill { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(131,200,162,.18); border-radius: 20px; color: #a4c9b3; font-size: 8px; font-weight: 750; letter-spacing: .13em; background: rgba(131,200,162,.055); }
.live-pill i, .tag-dot, .tiny-status, .footnote-dot { width: 6px; height: 6px; border-radius: 50%; background: #7dc69a; box-shadow: 0 0 10px rgba(125,198,154,.65); }
.main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 326px; gap: 22px; padding-top: 22px; align-items: start; }
.exhibit-column { min-width: 0; }
.exhibit-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.eyebrow, .eyebrow-small { display: flex; align-items: center; gap: 8px; color: #91a0aa; font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.eyebrow-line { display: inline-block; width: 17px; height: 1px; background: var(--amber); }
.eyebrow-dot { color: var(--amber); }
h1 { margin: 8px 0 5px; color: #f0f2f3; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.045em; font-weight: 670; }
h1 span { color: #b6c0c6; font-weight: 430; }
.lede { margin: 0; color: #8d9aa4; font-size: 11px; line-height: 1.55; max-width: 690px; }
.exhibit-actions { display: flex; gap: 8px; padding-bottom: 2px; flex-shrink: 0; }
.icon-button, .listen-button { border: 1px solid var(--line-strong); border-radius: 8px; height: 34px; background: rgba(17,25,32,.88); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.icon-button { width: 36px; color: #9aa8b1; font-size: 19px; }
.icon-crosshair { display: block; transform: translateY(-1px); }
.listen-button { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #e8c58e; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.listen-icon { font-size: 15px; }
.icon-button:hover, .listen-button:hover { border-color: rgba(231,184,115,.55); background: rgba(231,184,115,.07); }
.listen-button.listening { border-color: rgba(117,207,196,.55); color: var(--cyan); background: rgba(117,207,196,.08); }
.stage-wrap { border: 1px solid rgba(166,187,197,.18); border-radius: 13px; overflow: hidden; background: #0b1319; box-shadow: 0 18px 48px rgba(0,0,0,.24); }
.stage { position: relative; height: clamp(340px, 29.7vw, 410px); min-height: 340px; overflow: hidden; background: radial-gradient(ellipse at 50% 58%, #1a252b 0%, #101920 56%, #0a1117 100%); }
.scene-host { position: absolute; inset: 0; }
.simulation-canvas { width: 100%; height: 100%; display: block; outline: none; }
.stage-topline, .stage-bottomline { position: absolute; z-index: 3; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.stage-topline { top: 14px; }
.stage-bottomline { bottom: 13px; }
.stage-tag { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 6px; border: 1px solid rgba(190,207,215,.15); background: rgba(7,13,18,.72); color: #c5d0d5; font-size: 8px; font-weight: 800; letter-spacing: .13em; backdrop-filter: blur(8px); }
.stage-tag .tag-dot { width: 5px; height: 5px; }
.stage-top-right, .stage-hint { color: rgba(194,207,214,.65); font-size: 8px; font-weight: 700; letter-spacing: .13em; text-shadow: 0 1px 4px #081018; }
.stage-separator { margin: 0 7px; color: #8b969b; }
.stage-caption { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 6px; border: 1px solid rgba(190,207,215,.14); background: rgba(7,13,18,.72); color: #bac6cb; font-size: 8px; font-weight: 750; letter-spacing: .13em; backdrop-filter: blur(8px); }
.caption-index { color: var(--amber); }
.stage-hint { display: flex; align-items: center; gap: 7px; }
.mouse-glyph { font-size: 14px; color: var(--cyan); }
.context-label { position: absolute; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 4px; background: rgba(6,12,16,.58); color: rgba(231,238,239,.76); font-size: 7px; font-weight: 800; letter-spacing: .12em; pointer-events: none; backdrop-filter: blur(4px); }
.label-marker { display: block; width: 6px; height: 6px; border-radius: 2px; }
.label-marker.amber { background: var(--amber); box-shadow: 0 0 8px rgba(231,184,115,.65); }
.label-marker.cyan { background: var(--cyan); box-shadow: 0 0 8px rgba(117,207,196,.65); }
.label-marker.slate { background: #8d9aa4; }
.label-slip { left: 43%; top: 49%; }
.label-wave { left: 57%; top: 74%; }
.label-substrate { left: 16%; top: 81%; }
.webgl-message { position: absolute; inset: 25% 12%; z-index: 5; display: grid; place-items: center; padding: 24px; border: 1px solid rgba(231,184,115,.28); border-radius: 12px; background: rgba(8,14,19,.94); color: #e6d0ad; text-align: center; line-height: 1.6; }
.webgl-message[hidden] { display: none; }
.stage-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 29px; padding: 0 13px; background: #0c141a; border-top: 1px solid var(--line); color: #75838d; font-size: 8px; font-weight: 700; letter-spacing: .11em; }
.stage-footer-left, .stage-footer-right { display: flex; align-items: center; gap: 8px; }
.tiny-status { width: 5px; height: 5px; }
.footer-divider { color: #47545d; }
.readout-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.readout-card { min-width: 0; padding: 11px 12px 10px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(145deg, rgba(20,29,37,.96), rgba(13,20,27,.96)); }
.readout-primary { border-color: rgba(231,184,115,.25); background: linear-gradient(145deg, rgba(52,40,27,.36), rgba(15,22,28,.98)); }
.readout-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #8c9aa4; font-size: 8px; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }
.readout-mark { color: #687983; font-size: 6px; font-weight: 800; letter-spacing: .08em; }
.readout-value { display: flex; align-items: baseline; gap: 5px; margin-top: 6px; }
.readout-value strong { color: #e9edf0; font-size: clamp(19px, 2vw, 25px); font-weight: 620; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.readout-primary .readout-value strong { color: #f1c98f; }
.readout-value span { color: #8997a0; font-size: 10px; }
.readout-foot { display: flex; align-items: center; gap: 7px; margin-top: 7px; min-height: 8px; color: #71808a; font-size: 7px; font-weight: 750; letter-spacing: .1em; white-space: nowrap; }
.readout-bar { display: block; width: 42px; height: 3px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.1); }
.readout-bar i { display: block; width: 58%; height: 100%; border-radius: inherit; background: var(--amber); transition: width .25s; }
.coherence-bar i { background: var(--cyan); }
.spectrum-panel { margin-top: 12px; padding: 12px 14px 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(15,22,29,.85); }
.spectrum-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow-small { font-size: 7px; color: #7e8d97; letter-spacing: .16em; }
.spectrum-heading h2 { margin: 4px 0 0; color: #dce3e7; font-size: 13px; font-weight: 650; letter-spacing: -.02em; }
.spectrum-legend { display: flex; align-items: center; gap: 12px; color: #81909a; font-size: 7px; font-weight: 750; letter-spacing: .1em; }
.spectrum-legend span { display: flex; align-items: center; gap: 5px; }
.legend-peak, .legend-harmonic { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.legend-harmonic { background: var(--cyan); }
.spectrum-chart { display: block; width: 100%; height: 106px; margin-top: 4px; overflow: visible; }
.chart-grid path { fill: none; stroke: rgba(162,183,194,.11); stroke-width: 1; stroke-dasharray: 2 4; }
.spectrum-area { fill: url(#spectrumFill); }
.spectrum-line { fill: none; stroke: #e7b873; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chart-axis text { fill: #71808a; font-size: 8px; font-family: inherit; }
.peak-label { fill: #e9c38c; font-size: 9px; font-weight: 800; }
.harmonic-label { fill: #81cfc6; font-size: 8px; font-weight: 750; }
.spectrum-note { display: flex; justify-content: space-between; gap: 12px; padding-top: 5px; border-top: 1px solid rgba(173,194,207,.08); color: #6f7d87; font-size: 7px; letter-spacing: .08em; }
.spectrum-note span:first-child { color: #c5a16d; font-weight: 800; }
.science-drawer { margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(15,22,29,.9); overflow: hidden; }
.science-drawer summary { display: flex; align-items: center; gap: 11px; padding: 13px 15px; list-style: none; cursor: pointer; }
.science-drawer summary::-webkit-details-marker { display: none; }
.science-icon { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(117,207,196,.25); border-radius: 7px; color: var(--cyan); font-size: 17px; }
.science-drawer summary b { display: block; color: #e0e6e9; font-size: 11px; }
.science-drawer summary small { display: block; margin-top: 3px; color: #788791; font-size: 8px; }
.summary-open { margin-left: auto; color: #9aa8b1; font-size: 17px; transition: transform .2s; }
.science-drawer[open] .summary-open { transform: rotate(45deg); }
.science-content { padding: 0 15px 15px; border-top: 1px solid var(--line); }
.science-grid { display: grid; grid-template-columns: 1.25fr 1fr 1.1fr; gap: 15px; padding-top: 14px; }
.science-block { min-width: 0; }
.science-kicker { color: #91a0aa; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.equation { display: flex; align-items: center; gap: 8px; margin: 12px 0 9px; color: #e9c38c; font-family: Georgia, serif; font-size: 21px; }
.fraction { display: inline-flex; flex-direction: column; align-items: center; font-size: 17px; line-height: 1.2; }
.fraction i { width: 100%; text-align: center; border-bottom: 1px solid #b99769; font-style: italic; }
.fraction b { padding-top: 3px; font-size: 13px; font-weight: 400; white-space: nowrap; }
.science-block p { color: #8e9ba4; font-size: 9px; line-height: 1.6; }
.variable-list, .cause-list { margin: 10px 0 0; padding: 0; list-style: none; }
.variable-list li { display: flex; align-items: baseline; gap: 9px; padding: 5px 0; border-bottom: 1px solid rgba(173,194,207,.07); font-size: 9px; }
.variable-list b { min-width: 20px; color: var(--cyan); }
.variable-list span { color: #8d9aa4; }
.cause-list { counter-reset: cause; }
.cause-list li { position: relative; display: grid; grid-template-columns: 1fr; gap: 3px; padding: 0 0 8px 19px; color: #d5dde1; font-size: 9px; counter-increment: cause; }
.cause-list li::before { content: counter(cause, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--amber); font-size: 8px; }
.cause-list span { color: #87959e; line-height: 1.4; }
.validation-strip { margin-top: 13px; padding: 11px 12px 9px; border: 1px solid rgba(117,207,196,.18); border-radius: 7px; background: rgba(117,207,196,.035); }
.validation-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #9ad5cc; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.validation-heading span { color: #71868d; font-size: 6px; font-weight: 700; }
.validation-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.validation-values small { display: block; color: #71838b; font-size: 6px; font-weight: 800; letter-spacing: .1em; }
.validation-values b { display: block; margin-top: 4px; color: #e0e9e9; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.validation-status { margin-top: 8px; color: #87c8a0; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.model-caveat { display: flex; gap: 10px; margin-top: 12px; padding: 10px 11px; border: 1px solid rgba(231,184,115,.14); border-radius: 7px; background: rgba(231,184,115,.035); color: #8f9ba3; font-size: 8px; line-height: 1.55; }
.model-caveat b { flex-shrink: 0; color: #d6b27e; font-size: 7px; letter-spacing: .12em; }
.reference-line { margin-top: 10px; color: #71808a; font-size: 8px; }
.reference-line a { color: #83c9c0; text-decoration: none; }
.reference-line a:hover { text-decoration: underline; }
.disclaimer { margin: 10px 0 0; color: #63717a; font-size: 8px; letter-spacing: .02em; }
.control-panel { position: sticky; top: 12px; max-height: calc(100vh - 92px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(117,207,196,.28) transparent; padding: 16px 15px 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: linear-gradient(155deg, rgba(19,28,36,.98), rgba(12,19,25,.98)); box-shadow: 0 18px 42px rgba(0,0,0,.18); }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 5px 0 0; color: #e8edf0; font-size: 15px; font-weight: 650; letter-spacing: -.025em; }
.panel-status { padding: 5px 7px; border-radius: 4px; border: 1px solid rgba(131,200,162,.22); background: rgba(131,200,162,.06); color: #8fc7a4; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.section-label { color: #7f8e98; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.section-label-row { display: flex; align-items: center; justify-content: space-between; }
.section-label-row span { color: #596873; font-size: 7px; }
.preset-section { padding: 13px 0 12px; border-bottom: 1px solid var(--line); }
.preset-grid { display: grid; grid-template-columns: 1fr; gap: 5px; margin-top: 8px; }
.preset-button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 42px; padding: 6px 8px; border: 1px solid rgba(173,194,207,.1); border-radius: 7px; background: rgba(9,15,20,.42); text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.preset-button:hover { border-color: rgba(231,184,115,.28); background: rgba(231,184,115,.045); }
.preset-button.active { border-color: rgba(231,184,115,.4); background: linear-gradient(90deg, rgba(231,184,115,.10), rgba(231,184,115,.025)); }
.preset-glyph { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; background: rgba(231,184,115,.09); color: var(--amber); font-size: 16px; }
.preset-button b { display: block; color: #d7e0e4; font-size: 9px; font-weight: 700; }
.preset-button small { display: block; margin-top: 3px; color: #77858e; font-size: 7px; }
.control-section { padding: 13px 0 2px; border-bottom: 1px solid var(--line); }
.control-item { margin-top: 12px; }
.control-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.control-top label { color: #c6d0d5; font-size: 9px; font-weight: 600; }
.control-top output { color: #e8c18a; font-size: 9px; font-weight: 750; font-variant-numeric: tabular-nums; }
input[type="range"] { display: block; width: 100%; height: 4px; margin: 0; border-radius: 6px; outline: none; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, #b78951, #d4b57f); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { width: 12px; height: 12px; border: 2px solid #e7c28d; border-radius: 50%; appearance: none; -webkit-appearance: none; background: #172129; box-shadow: 0 0 0 3px rgba(231,184,115,.12); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #e7c28d; border-radius: 50%; background: #172129; box-shadow: 0 0 0 3px rgba(231,184,115,.12); }
.range-ends { display: flex; justify-content: space-between; margin-top: 6px; color: #65737d; font-size: 7px; }
.transport-controls { padding: 13px 0 12px; border-bottom: 1px solid var(--line); }
.transport-main { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; margin-top: 9px; }
.transport-main button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; border: 1px solid rgba(173,194,207,.15); border-radius: 7px; background: rgba(8,14,19,.6); cursor: pointer; transition: .2s; }
.transport-main button:hover { border-color: rgba(117,207,196,.4); }
.transport-main button b { font-size: 7px; letter-spacing: .1em; }
.transport-main button span { font-size: 14px; color: #9fb0b9; }
.transport-play { border-color: rgba(117,207,196,.35) !important; background: rgba(117,207,196,.075) !important; color: #9bd8d0; }
.transport-play span { color: var(--cyan) !important; }
.transport-play.paused { background: rgba(231,184,115,.075) !important; border-color: rgba(231,184,115,.35) !important; color: #e4c28f; }
.transport-play.paused span { color: var(--amber) !important; }
.speed-control { margin-top: 12px; }
.panel-bottom-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; }
.quality-toggle { display: flex; align-items: center; gap: 3px; color: #77858f; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.quality-toggle > span { margin-right: 4px; }
.quality-choice { padding: 6px 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #7c8a94; font-size: 7px; font-weight: 800; cursor: pointer; }
.quality-choice.active { border-color: rgba(117,207,196,.25); background: rgba(117,207,196,.08); color: #a1d8d0; }
.export-button { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid rgba(231,184,115,.25); border-radius: 6px; background: rgba(231,184,115,.06); color: #e5c28d; font-size: 7px; font-weight: 800; letter-spacing: .1em; cursor: pointer; }
.export-button:hover { background: rgba(231,184,115,.12); }
.export-button span { font-size: 12px; }
.panel-footnote { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(173,194,207,.07); color: #63727c; font-size: 7px; font-weight: 750; letter-spacing: .1em; }
.footnote-dot { width: 5px; height: 5px; background: #7dcfc4; box-shadow: 0 0 8px rgba(125,207,196,.55); }
.global-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: #596771; font-size: 7px; font-weight: 750; letter-spacing: .14em; }
.embed-mode .app-shell { padding-top: 0; }
.embed-mode .topbar, .embed-mode .global-footer { display: none; }
.embed-mode .main-layout { padding-top: 12px; }
.embed-mode .control-panel { top: 8px; }
@media (min-width: 1500px) {
  .main-layout { grid-template-columns: minmax(0, 1fr) 350px; gap: 26px; }
  .stage { height: 510px; }
}
@media (max-width: 1080px) {
  .app-shell { padding-left: 18px; padding-right: 18px; }
  .main-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
  .stage { height: 380px; }
  .readout-grid { gap: 6px; }
  .readout-card { padding: 10px 9px; }
  .readout-head { font-size: 7px; }
}
@media (max-width: 820px) {
  .main-layout { grid-template-columns: minmax(0, 1fr); }
  .control-panel { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .panel-header, .preset-section, .transport-controls, .panel-bottom-actions, .panel-footnote { grid-column: 1 / -1; }
  .control-section { border-bottom: 0; }
  .control-section + .control-section { border-left: 1px solid var(--line); padding-left: 17px; }
  .preset-grid { grid-template-columns: repeat(3, 1fr); }
  .preset-button { min-height: 50px; align-items: flex-start; }
  .preset-button small { line-height: 1.3; }
  .stage { height: min(58vw, 450px); min-height: 330px; }
}
@media (max-width: 560px) {
  .app-shell { padding: 0 10px 14px; }
  .topbar { height: 56px; }
  .brand-name { font-size: 9px; }
  .brand-sub { font-size: 7px; }
  .brand-mark { width: 22px; height: 22px; }
  .topbar-right { gap: 8px; }
  .seed-label { font-size: 7px; }
  .live-pill { padding: 6px 7px; font-size: 6px; }
  .main-layout { padding-top: 14px; gap: 12px; }
  .exhibit-heading { align-items: flex-start; margin-bottom: 12px; }
  .eyebrow { font-size: 7px; letter-spacing: .12em; }
  h1 { font-size: 25px; max-width: 290px; }
  h1 span { display: block; margin-top: 2px; font-size: 18px; }
  .lede { max-width: 310px; font-size: 9px; }
  .exhibit-actions { gap: 5px; }
  .icon-button { width: 32px; height: 32px; }
  .listen-button { height: 32px; padding: 0 8px; font-size: 7px; gap: 5px; }
  .stage { height: 360px; min-height: 360px; }
  .stage-topline, .stage-bottomline { left: 9px; right: 9px; }
  .stage-topline { top: 9px; }
  .stage-bottomline { bottom: 8px; }
  .stage-top-right { font-size: 6px; }
  .stage-tag { padding: 6px 7px; font-size: 6px; }
  .stage-caption { padding: 6px 7px; font-size: 6px; }
  .stage-hint { font-size: 0; }
  .stage-hint .mouse-glyph { font-size: 15px; }
  .context-label { font-size: 5px; padding: 4px 5px; }
  .label-slip { left: 39%; top: 48%; }
  .label-wave { left: 52%; top: 75%; }
  .label-substrate { left: 8%; top: 83%; }
  .stage-footer { height: 27px; padding: 0 8px; font-size: 6px; letter-spacing: .07em; }
  .stage-footer-right { display: none; }
  .readout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
  .readout-card { padding: 9px 10px; }
  .readout-head { font-size: 7px; }
  .readout-value strong { font-size: 22px; }
  .spectrum-panel { margin-top: 8px; padding: 10px 9px 8px; }
  .spectrum-legend { gap: 7px; font-size: 6px; }
  .spectrum-chart { height: 88px; }
  .spectrum-note { font-size: 6px; line-height: 1.4; }
  .science-grid { grid-template-columns: 1fr; gap: 12px; }
  .science-block { padding-bottom: 10px; border-bottom: 1px solid rgba(173,194,207,.07); }
  .model-caveat { display: block; }
  .validation-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .validation-values { gap: 7px; }
  .validation-values b { font-size: 12px; }
  .model-caveat b { display: block; margin-bottom: 4px; }
  .control-panel { display: block; padding: 13px 12px 11px; }
  .panel-header h2 { font-size: 14px; }
  .preset-grid { grid-template-columns: 1fr; }
  .preset-button { min-height: 42px; align-items: center; }
  .control-section + .control-section { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .control-section { padding-bottom: 13px; }
  .control-item { margin-top: 13px; }
  .panel-bottom-actions { flex-wrap: wrap; }
  .global-footer { font-size: 6px; flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
