@charset "UTF-8";

:root {
  color-scheme: light;
  --page: #f7f9f7;
  --paper: #ffffff;
  --stage: #f3f6f4;
  --ink: #253c34;
  --muted: #83918a;
  --line: #e2e9e4;
  --accent: #307c60;
  --accent-soft: #eaf3ed;
  --positive: #cc7064;
  --negative: #4286ba;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 13px; line-height: 1.6; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .4; cursor: not-allowed; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, a, select { transition: color .16s, background .16s, border-color .16s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, canvas:focus-visible { outline: 3px solid #c49b49; outline-offset: 3px; }
svg.lucide { display: block; width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.6; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 20; padding: 10px 18px; background: var(--paper); border: 1px solid var(--accent); border-radius: 4px; }
.skip-link:focus { top: 10px; }
.site-header { height: 72px; padding: 0 34px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: var(--paper); gap: 56px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand > span { display: grid; line-height: 1.3; }
.brand strong { font-family: "Avenir Next", "Trebuchet MS", sans-serif; font-size: 20px; font-weight: 650; }
.brand small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.topic-nav { display: flex; align-self: stretch; gap: 30px; }
.topic-nav a { display: flex; align-items: center; position: relative; color: var(--muted); font-size: 12px; }
.topic-nav a:hover { color: var(--accent); }
.topic-nav a.active { color: var(--accent); font-weight: 600; }
.topic-nav a.active::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: 0; background: var(--accent); }
.site-header > button { margin-left: auto; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 6px 10px; border-radius: 5px; color: #75877c; font-size: 12px; }
.quiet-button:hover { color: var(--accent); background: var(--accent-soft); }
main { max-width: 1800px; margin: 0 auto; padding: 0 34px; }
.experiment-heading { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow { color: var(--muted); font-size: 9px; font-weight: 500; }
.eyebrow > span { margin: 0 9px; color: #c3ccc5; }
h1 { margin-top: 4px; font-family: "Noto Serif CJK SC", "Songti SC", "STSong", serif; font-size: 28px; font-weight: 600; line-height: 1.45; }
h1 > span { color: var(--accent); }
.experiment-meta { display: flex; gap: 22px; align-items: center; }
.neutral-badge { display: flex; align-items: center; gap: 7px; color: #77897c; font-size: 11px; }
.neutral-badge > span { width: 5px; height: 5px; border-radius: 50%; background: #609777; }
.model-tag { font-size: 11px; color: #8b998f; font-variant-numeric: tabular-nums; }
.model-tag > span { margin: 0 10px; color: #c7d1c9; }
.laboratory { display: grid; grid-template-columns: 225px minmax(0, 1fr) 250px; align-items: stretch; border-block: 1px solid var(--line); background: var(--paper); }
.conditions { min-width: 0; border-right: 1px solid var(--line); }
.conditions summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 18px 0; font-size: 13px; font-weight: 600; }
.conditions summary::-webkit-details-marker { display: none; }
.conditions summary > span { display: flex; align-items: center; gap: 8px; }
.conditions summary svg { width: 15px; height: 15px; color: #6b8374; }
.conditions summary small { display: none; }
.condition-body { padding: 0 18px; }
.condition-section { padding: 23px 0 20px; border-bottom: 1px solid var(--line); }
.condition-section h2 { font-size: 11px; font-weight: 500; color: #6f8074; display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.condition-section h2 > span { color: #a6b5a9; font-family: "Avenir Next", "Trebuchet MS", sans-serif; font-size: 10px; }
.field-choices { display: grid; gap: 4px; }
.field-choices button { display: flex; align-items: center; gap: 10px; min-height: 37px; padding: 8px 10px; text-align: left; border: 1px solid transparent; border-radius: 5px; font-size: 12px; color: #75867c; }
.field-choices button > svg { width: 16px; height: 16px; color: #99aaa0; }
.field-choices button > small { margin-left: auto; font-size: 11px; color: #98a89d; min-width: 22px; text-align: right; }
.field-choices button:hover { background: #f4f7f4; }
.field-choices button.selected { background: var(--accent-soft); color: var(--accent); border-color: #d8e8dd; font-weight: 600; }
.field-choices button.selected > svg, .field-choices button.selected > small { color: var(--accent); }
.shape-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.shape-choices button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; height: 69px; padding: 6px 1px; border: 1px solid #e6ebe7; border-radius: 5px; color: #91a094; font-size: 11px; }
.shape-choices button > svg { width: 23px; height: 23px; }
.shape-choices button.selected { border-color: #87b29b; color: var(--accent); background: #f0f6f2; }
.shape-choices button:hover { background: #f2f7f3; }
.dimension-note { color: #9aaa9e; font-size: 9px; padding-top: 10px; text-align: center; min-height: 25px; }
.parameters { padding-bottom: 20px; }
.range-label { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 9px; font-size: 11px; color: #748579; }
.range-label output { font-family: "Avenir Next", "Trebuchet MS", sans-serif; font-variant-numeric: tabular-nums; color: var(--accent); font-size: 14px; font-weight: 600; }
.range-label output small { font-size: 10px; font-weight: 400; margin-left: 2px; }
input[type="range"] { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--accent) 0 var(--range-progress, 50%), #e5ece6 var(--range-progress, 50%) 100%); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: #e5ece6; }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--paper); background: var(--accent); box-shadow: 0 0 0 1px #80a58c; margin-top: -4.5px; }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; border: 2px solid white; background: var(--accent); }
.range-scale { display: flex; justify-content: space-between; color: #a3b0a6; font-size: 9px; margin: 1px 0 20px; }
.outline-command { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #dfe8e1; border-radius: 5px; min-height: 35px; padding: 7px 12px; font-size: 11px; color: #718779; }
.parameters > .outline-command { width: 100%; margin-top: -1px; }
.outline-command > svg { width: 14px; height: 14px; }
.outline-command:hover { background: var(--accent-soft); border-color: #a9c7b4; }
.condition-foot { display: grid; justify-items: center; padding: 17px 0; gap: 10px; }
.condition-foot > span { display: flex; align-items: center; gap: 5px; color: #9ba99e; font-size: 9px; }
.condition-foot > span > svg { width: 12px; height: 12px; }
.condition-foot .quiet-button { font-size: 10px; min-height: 30px; }
.condition-foot .quiet-button > svg { width: 13px; height: 13px; }
.visualization { min-width: 0; background: var(--stage); display: flex; flex-direction: column; }
.scene-topline { height: 49px; padding: 0 21px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #7e9083; font-size: 11px; }
.phase-badge { display: flex; align-items: center; gap: 6px; color: #61896e; font-size: 10px; flex-shrink: 0; }
.phase-badge > span:first-child { width: 5px; height: 5px; background: #75a488; border-radius: 50%; }
.phase-badge[data-phase="equilibrium"] { color: var(--accent); }
.scene-stage { position: relative; height: 498px; min-height: 400px; flex: 1; isolation: isolate; }
#conductor-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#conductor-canvas:active { cursor: grabbing; }
.camera-tools { position: absolute; right: 13px; top: 13px; display: flex; flex-direction: column; align-items: center; padding: 4px; background: #ffffffdb; border: 1px solid #e0e8e2; border-radius: 6px; }
.tool-button { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; flex-shrink: 0; border-radius: 4px; color: #7f9286; }
.tool-button svg { width: 16px; height: 16px; }
.tool-button > span { font-size: 21px; font-family: "Avenir Next", sans-serif; font-weight: 400; line-height: 1; }
.tool-button:hover { color: var(--accent); background: #eaf2ed; }
.tool-separator { height: 1px; background: var(--line); width: 20px; margin: 4px 0; }
.scene-annotation { display: flex; flex-direction: column; position: absolute; top: 6px; left: 21px; pointer-events: none; gap: 5px; font-size: 11px; color: #758b7b; }
.scene-annotation > span:last-child { color: #9cad9f; font-size: 9px; }
.cavity-label { position: absolute; left: 18px; bottom: 16px; display: grid; gap: 3px; border-left: 2px solid #a3b6ac; padding-left: 9px; color: #8a9d90; font-size: 10px; pointer-events: none; }
.cavity-label strong { font-size: 10px; font-weight: 400; color: #9dac9f; }
.scene-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; padding: 36px; text-align: center; background: var(--stage); color: #7c9181; z-index: 3; font-size: 12px; }
.loading-indicator { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #dce9df; border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-message { color: #9b7664; }
.scene-legend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px 19px; padding: 13px 16px 16px; color: #85978a; font-size: 10px; }
.scene-legend > span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.legend-dot.electron { background: var(--negative); }
.legend-dot.positive { background: var(--positive); }
.legend-dot.neutral { background: #a5b4a9; width: 4px; height: 4px; }
.legend-line { width: 14px; height: 1px; background: #77a88e; }
.display-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 3px 17px; min-height: 47px; padding: 5px 12px; border-top: 1px solid #e5ebe6; background: #f9fbf8; }
.display-controls > label { position: relative; display: flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; font-size: 10px; color: #7f9183; white-space: nowrap; }
.display-controls input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch { width: 24px; height: 14px; background: #dde6df; border-radius: 10px; position: relative; flex-shrink: 0; }
.switch::after { content: ""; width: 10px; height: 10px; position: absolute; left: 2px; top: 2px; background: white; border-radius: 50%; transition: transform .18s; }
.display-controls input:checked + .switch { background: #559575; }
.display-controls input:checked + .switch::after { transform: translateX(10px); }
.display-controls input:focus-visible + .switch { outline: 2px solid #c49b49; outline-offset: 3px; }
.playback { padding: 18px 22px 13px; background: var(--paper); border-top: 1px solid var(--line); }
.playback-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 19px; }
.transport-controls { display: flex; align-items: center; gap: 4px; }
.transport-controls .tool-button { width: 30px; height: 34px; }
.play-button { display: inline-grid; place-items: center; width: 39px; height: 39px; border-radius: 6px; color: white; background: var(--accent); }
.play-button:hover { background: #26684f; }
.play-button svg { width: 17px; height: 17px; }
.timeline-control { min-width: 0; }
.timeline-control > label { display: flex; justify-content: space-between; font-size: 9px; color: #829586; margin-bottom: 1px; }
.timeline-control output { font-variant-numeric: tabular-nums; }
.speed-control { display: grid; justify-items: center; gap: 1px; color: #94a498; font-size: 8px; }
.speed-control > select { min-width: 52px; height: 29px; padding: 1px 2px 1px 5px; border: 1px solid #e0e8e1; border-radius: 4px; background: white; color: #718878; font-size: 11px; cursor: pointer; }
.playback-bottom { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding-top: 14px; }
.phase-steps { display: flex; align-items: center; gap: 7px; }
.phase-steps button { color: #a2afa5; font-size: 9px; padding: 4px 0; }
.phase-steps button:hover, .phase-steps button.active { color: var(--accent); }
.phase-steps > span { width: 19px; height: 1px; background: #e0e8e2; }
.loop-control { display: flex; align-items: center; gap: 4px; color: #8fa094; font-size: 9px; cursor: pointer; min-height: 24px; }
.loop-control > input { accent-color: var(--accent); width: 12px; height: 12px; margin: 0; }
.readouts { min-width: 0; border-left: 1px solid var(--line); padding: 20px 22px 16px; }
.readout-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 27px; }
.readout-heading h2 { font-size: 13px; font-weight: 600; }
.readout-heading > span { font-size: 9px; color: #8da08f; }
.readout-label { font-size: 11px; color: #839587; display: flex; justify-content: space-between; align-items: center; }
.readout-label > span { font-size: 8px; color: #a4b0a5; }
.big-reading { display: flex; align-items: baseline; gap: 9px; margin: 7px 0 5px; }
.big-reading output { color: #2e5c45; font-family: "Avenir Next", "Trebuchet MS", sans-serif; font-size: 42px; font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; min-width: 0; }
.big-reading > span { color: #93a296; font-size: 11px; flex-shrink: 0; }
.field-comparison { display: flex; justify-content: space-between; gap: 8px; color: #9da99d; font-size: 9px; font-variant-numeric: tabular-nums; }
.field-comparison > span:last-child { color: #6e977c; }
.shielding-track { height: 3px; background: #e9efe8; margin: 12px 0 20px; border-radius: 2px; overflow: hidden; }
.shielding-track > span { display: block; height: 100%; background: #7aa98c; width: 0; }
.chart-section { border-bottom: 1px solid var(--line); padding-bottom: 19px; }
.chart-section h3 { font-size: 10px; color: #899b8c; font-weight: 400; margin-bottom: 12px; }
#field-chart { width: 100%; height: 90px; display: block; }
.chart-axis { display: flex; justify-content: space-between; font-size: 8px; color: #a3b0a4; margin-top: 5px; }
.charge-readings { padding: 13px 0; border-bottom: 1px solid var(--line); }
.charge-readings > div { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 9px 0; }
.charge-readings dt { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #859689; }
.charge-readings dd { display: flex; align-items: baseline; gap: 5px; font-family: "Avenir Next", "Trebuchet MS", sans-serif; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.charge-readings dd > small { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 8px; color: #9ca99e; }
.positive-text { color: var(--positive); }
.negative-text { color: var(--negative); }
.charge-readings .net-charge { margin-top: 4px; padding-top: 14px; border-top: 1px dashed #e4ebe4; }
.physics-insight { padding-top: 20px; }
.insight-title { display: flex; align-items: center; gap: 6px; color: #638b70; }
.insight-title > svg { width: 13px; height: 13px; }
.insight-title h3 { font-weight: 500; font-size: 11px; }
.physics-insight p { margin-top: 9px; font-size: 11px; color: #93a093; line-height: 1.9; min-height: 62px; }
.equilibrium-formula { border-left: 2px solid #b5d0be; padding-left: 11px; display: grid; gap: 4px; margin-top: 20px; }
.equilibrium-formula > span { font-size: 9px; color: #94a491; }
.equilibrium-formula strong { font-family: "Noto Serif CJK SC", "Songti SC", "STSong", serif; font-weight: 500; font-size: 20px; color: #63836b; }
.equilibrium-formula strong > span { font-family: "Microsoft YaHei", sans-serif; font-size: 10px; }
.model-note { color: #a9b3a8; font-size: 9px; line-height: 1.8; margin-top: 21px; }
.page-footer { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; color: #97a496; font-size: 9px; }
.page-footer > span:first-child { display: flex; align-items: center; gap: 7px; }
.page-footer img { opacity: .7; }
dialog { padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); width: min(620px, calc(100% - 30px)); max-height: calc(100svh - 50px); }
dialog::backdrop { background: #20372c57; backdrop-filter: blur(3px); }
.dialog-heading { padding: 24px 26px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-family: "Noto Serif CJK SC", "Songti SC", "STSong", serif; font-size: 22px; font-weight: 500; margin-top: 6px; }
.theory-content { padding: 4px 26px 22px; }
.theory-content section { margin-top: 22px; }
.theory-content h3 { font-size: 13px; font-weight: 600; color: #4d7960; margin-bottom: 7px; }
.theory-content p { color: #849387; line-height: 1.95; font-size: 12px; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 26px; border-top: 1px solid var(--line); }
.dialog-footer > span { color: #a1aea1; font-size: 10px; }
.primary-command { color: white; background: var(--accent); padding: 9px 17px; font-size: 12px; border-radius: 5px; flex-shrink: 0; }
.primary-command:hover { background: #26664d; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 11px 18px; max-width: calc(100% - 30px); width: max-content; background: #345843; color: white; font-size: 12px; border-radius: 5px; z-index: 20; }
.noscript-message { padding: 20px; background: #f7ead9; color: #8a643f; text-align: center; }
.visualization:fullscreen { width: 100%; height: 100%; }
.visualization:fullscreen .scene-stage { flex: 1; }

@media (min-width: 1500px) {
  .laboratory { grid-template-columns: 246px minmax(0, 1fr) 280px; }
  .condition-body { padding: 0 23px; }
  .conditions summary { padding-inline: 23px; }
  .readouts { padding-inline: 27px; }
  .scene-stage { height: 548px; }
}
@media (max-width: 1180px) and (min-width: 861px) {
  main { padding: 0 22px; }
  .site-header { padding-inline: 22px; }
  .laboratory { grid-template-columns: 206px minmax(0, 1fr); }
  .visualization { grid-column: 2; grid-row: 1; }
  .conditions { grid-column: 1; grid-row: 1 / span 2; }
  .readouts { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 26px; }
  .readout-heading { grid-column: 1 / -1; margin-bottom: 16px; }
  .chart-section { grid-column: 1; border-bottom: 0; }
  .charge-readings { grid-column: 2; grid-row: 2 / span 2; padding-top: 0; border-bottom: 0; }
  .physics-insight { border-top: 1px solid var(--line); grid-column: 1 / -1; padding-top: 16px; }
  .physics-insight p { min-height: 0; }
  .equilibrium-formula { display: none; }
  .model-note { grid-column: 1 / -1; margin-top: 10px; }
}
@media (max-width: 860px) {
  .site-header { height: 64px; padding: 0 20px; gap: 30px; }
  .brand strong { font-size: 18px; }
  .brand img { width: 33px; height: 33px; }
  .topic-nav { gap: 22px; }
  main { padding: 0 20px; }
  .experiment-heading { min-height: 91px; }
  h1 { font-size: 25px; }
  .model-tag { display: none; }
  .laboratory { display: flex; flex-direction: column; }
  .conditions { border-right: 0; border-bottom: 1px solid var(--line); }
  .conditions summary { min-height: 54px; padding: 14px 17px; }
  .conditions summary small { display: block; color: #8c9e90; font-size: 10px; font-weight: 400; }
  .condition-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; padding: 0 22px; }
  .condition-section { padding-top: 13px; }
  .condition-section:nth-child(1) { grid-row: 1 / span 2; }
  .condition-section:nth-child(2) { grid-column: 2; }
  .parameters { grid-column: 2; }
  .condition-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 12px 0; }
  .scene-stage { flex: none; height: 440px; min-height: 0; }
  .scene-topline { height: 44px; padding: 0 18px; }
  .readouts { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 24px; }
  .readout-heading { grid-column: 1 / -1; margin-bottom: 20px; }
  .chart-section { grid-column: 1; border-bottom: 0; }
  .charge-readings { grid-column: 2; grid-row: 2 / span 2; padding-top: 0; border-bottom: 0; }
  .physics-insight { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .physics-insight p { min-height: 0; }
  .equilibrium-formula { display: none; }
  .model-note { grid-column: 1 / -1; margin-top: 10px; }
  .page-footer { flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 21px 0; text-align: center; }
}
@media (max-width: 520px) {
  .site-header { padding: 0 15px; gap: 20px; height: 61px; }
  .brand { gap: 7px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 8px; }
  .brand img { width: 31px; height: 31px; }
  .topic-nav { margin-left: auto; gap: 0; }
  .topic-nav a { font-size: 11px; }
  .topic-nav a:not(.active) { display: none; }
  .site-header > .quiet-button { width: 32px; height: 36px; min-height: 36px; padding: 0; margin-left: 0; }
  .site-header > .quiet-button > span { display: none; }
  main { padding: 0; }
  .experiment-heading { padding: 0 17px; min-height: 85px; gap: 8px; }
  h1 { font-size: 24px; }
  .eyebrow { font-size: 8px; }
  .neutral-badge { font-size: 9px; gap: 4px; }
  .conditions summary { min-height: 49px; font-size: 12px; }
  .conditions summary small { font-size: 9px; }
  .condition-body { padding: 0 17px; gap: 0 17px; }
  .condition-section h2 { font-size: 10px; }
  .field-choices button { min-height: 41px; gap: 7px; padding: 7px 6px; font-size: 10px; }
  .field-choices button > small { min-width: 15px; font-size: 9px; }
  .field-choices button > svg { width: 14px; height: 14px; }
  .shape-choices { gap: 4px; }
  .shape-choices button { font-size: 9px; height: 63px; }
  .shape-choices button > svg { width: 21px; height: 21px; }
  .range-label { font-size: 10px; }
  .range-label output { font-size: 12px; }
  .scene-topline { height: 42px; font-size: 10px; padding: 0 17px; }
  .phase-badge { font-size: 9px; }
  .scene-stage { height: 374px; }
  .scene-annotation { top: 5px; left: 17px; font-size: 10px; }
  .scene-annotation > span:last-child { font-size: 8px; }
  .camera-tools { top: 9px; right: 9px; padding: 3px; }
  .camera-tools .tool-button { width: 29px; height: 30px; }
  .scene-legend { font-size: 8px; gap: 8px 12px; padding: 9px 10px 13px; }
  .scene-legend > span { gap: 4px; }
  .scene-legend .legend-dot { width: 5px; height: 5px; }
  .scene-legend .legend-line { width: 9px; }
  .display-controls { gap: 0 12px; min-height: 44px; padding: 4px 10px; }
  .display-controls > label { font-size: 9px; gap: 4px; }
  .switch { width: 22px; height: 13px; }
  .switch::after { width: 9px; height: 9px; }
  .display-controls input:checked + .switch::after { transform: translateX(9px); }
  .playback { padding: 15px 15px 10px; }
  .playback-main { gap: 11px; }
  .transport-controls { gap: 2px; }
  .transport-controls .tool-button { width: 28px; }
  .play-button { width: 35px; height: 35px; }
  .playback-bottom { padding-top: 9px; }
  .readouts { padding: 21px 18px; gap: 0 22px; }
  .readout-heading { margin-bottom: 19px; }
  .big-reading output { font-size: 33px; }
  .big-reading { gap: 5px; }
  .big-reading > span { font-size: 9px; }
  .readout-label { font-size: 10px; }
  .field-comparison { font-size: 8px; gap: 5px; }
  .charge-readings > div { padding: 8px 0; gap: 5px; }
  .charge-readings dt { font-size: 9px; gap: 4px; }
  .charge-readings dd { font-size: 12px; gap: 3px; }
  .charge-readings dd > small { font-size: 7px; }
  .charge-readings dt .legend-dot { width: 4px; height: 4px; }
  .page-footer { font-size: 8px; padding-inline: 17px; }
  .page-footer > span:first-child { width: 100%; justify-content: center; }
  .dialog-heading, .theory-content { padding-inline: 20px; }
  .dialog-heading h2 { font-size: 20px; }
  .dialog-footer { padding-inline: 20px; }
  .dialog-footer > span { font-size: 9px; }
}
@media (max-width: 359px) {
  h1 { font-size: 21px; }
  .neutral-badge { font-size: 8px; }
  .display-controls { gap: 0 9px; }
  .display-controls > label { font-size: 8px; }
  .readouts { gap: 0 14px; padding-inline: 13px; }
  .big-reading output { font-size: 29px; }
  .field-comparison { flex-wrap: wrap; }
  .scene-legend { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}