@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
:root {
  --bg:#F4F5F8;
  --fg:#11131D;
  --muted:#526078;
  --line:#dce1e9;
  --blue:#0369A1;
  --purple:#7C3AED;
  --surface:#FBFCFE;
  font-size: 16px;
  color-scheme: light;
}
html,
body {
  height: auto;
  min-height: 100%;
  overflow: auto;
  background: var(--bg);
}
body {
  font-family: Inter, sans-serif;
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#app {
  position: static;
  color: var(--fg);
  font-family: Inter, sans-serif;
  font-variant-ligatures: normal;
}
button,
input,
a,
label {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: .65;
}
button,
a,
input {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
label:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 4px;
}
button {
  color: inherit;
}
svg {
  width: 20px;
  height: 20px;
  flex: none;
}
h1,
h2,
p {
  margin: 0;
}
button[hidden],
[hidden] {
  display: none !important;
}
.shell {
  width: min(1480px, 100%);
  margin: auto;
  padding: 0 32px;
}
main {
  padding-bottom: 24px;
}
.site-header {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 27px;
  border-bottom: 1px solid var(--line);
}
.logo {
  width: 180px;
  height: auto;
  display: block;
}
.lab-label,
.local-badge,
.eyebrow,
.tiny-label,
.number-label,
.stage-label,
.scene-status,
.scene-instruction,
.model-note,
.chart-caption,
.matching-status,
footer,
.curve-example small {
  font-family: "JetBrains Mono", monospace;
}
.lab-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
}
.header-sep {
  color: #9da5b5;
  margin: 0 8px;
}
.local-badge {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: .055em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.local-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 0 30px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: .12em;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}
h1 {
  font-size: clamp(36px, 4vw, 57px);
  line-height: 1.05;
  letter-spacing: -.055em;
  font-weight: 650;
}
h1 span {
  color: #727d91;
}
.intro-copy {
  max-width: 340px;
  padding-bottom: 3px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.intro-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  color: var(--fg);
  font-weight: 550;
  text-decoration: none;
  font-size: 12px;
}
.intro-link svg {
  width: 16px;
}
.transport {
  display: flex;
  align-items: center;
  gap: 21px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 3px 8px #11131d03;
}
.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #11131D;
  color: #fff;
  border: 0;
  border-radius: 6px;
  min-height: 48px;
  padding: 0 19px;
  min-width: 151px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.play-button:hover {
  background: #2c3144;
}
.play-button svg {
  width: 17px;
}
.source-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  max-width: 250px;
  gap: 2px;
}
#source-name {
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tiny-label {
  display: block;
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--muted);
  line-height: 1.5;
}
.loop-track {
  margin-top: 4px;
  height: 2px;
  background: #dce1e9;
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}
.loop-track i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
}
.ab {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #F0F2F6;
  padding: 3px;
  flex: none;
}
.ab button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 8px 13px;
  font-size: 11px;
  color: var(--muted);
  min-height: 38px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 9px;
}
.ab button[aria-pressed=true] {
  background: #fff;
  color: #11131D;
  box-shadow: 0 1px 4px #11131d16;
}
.ab-letter {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  opacity: .6;
}
.ab #wet[aria-pressed=true] {
  color: #6d28d9;
}
.volume-control {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 112px;
  gap: 3px;
}
.volume-control label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.volume-control output {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
}
.volume-control input {
  accent-color: var(--blue);
  width: 100%;
  min-height: 22px;
  cursor: pointer;
  margin: 0;
}
.file-button {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 1px solid var(--line);
  min-height: 42px;
  padding-left: 21px;
  font-size: 11px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
}
.file-button span {
  color: var(--muted);
  font-size: 17px;
}
.file-button:hover {
  color: var(--blue);
}
.reset-source {
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 10px;
  text-decoration: underline;
  min-height: 40px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 18px;
}
.machine-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #F4F5F8;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-top h2 {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.number-label {
  font-size: 9px;
  color: #8390a5;
  letter-spacing: 0;
  font-weight: 400;
}
.view-controls {
  display: flex;
  align-items: center;
  gap: 11px;
}
.text-button,
.icon-button {
  background: none;
  border: 0;
  min-height: 30px;
  color: var(--muted);
}
.text-button {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.text-button[aria-pressed=true] {
  color: var(--purple);
}
.text-button span {
  font-size: 16px;
  line-height: 1;
}
.icon-button {
  font-size: 21px;
  padding: 0 4px;
}
.scene-wrap {
  position: relative;
  flex: 1;
  min-height: 326px;
  height: 326px;
}
.scene-wrap #scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.scene-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: pan-y;
}
.stage-label {
  position: absolute;
  top: 22px;
  font-size: 9px;
  letter-spacing: .13em;
  pointer-events: none;
  font-weight: 600;
  color: var(--blue);
}
.stage-label i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 7px;
}
.stage-label span {
  display: block;
  font-family: Inter, sans-serif;
  letter-spacing: 0;
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
  color: var(--muted);
}
.input-label {
  left: 25px;
}
.output-label {
  right: 25px;
  text-align: right;
  color: var(--purple);
}
.output-label i {
  background: var(--purple);
}
.scene-status {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  color: #66728a;
  font-size: 8px;
  letter-spacing: .07em;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.status-dot {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #9ba4b3;
}
.is-playing .status-dot {
  background: var(--blue);
}
.scene-instruction {
  position: absolute;
  bottom: 12px;
  text-align: center;
  width: 100%;
  font-size: 8px;
  color: #7b879a;
  pointer-events: none;
}
.scene-instruction span {
  margin: 0 6px;
}
.meter-row {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 17px 24px;
  background: #FBFCFE;
  gap: 34px;
}
.tiny-label span {
  float: right;
  font-size: 8px;
  color: #8c97a9;
}
.meter-reading {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 3px;
}
.meter-reading output {
  font-size: 28px;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  line-height: 1.3;
}
.meter-reading > span {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: var(--muted);
}
.reduction-item output {
  color: var(--purple);
}
.meter-bar {
  height: 3px;
  border-radius: 4px;
  background: #e7eaf0;
  margin-top: 7px;
  overflow: hidden;
}
.meter-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width .08s linear;
}
.reduction-item .meter-bar i,
#output-meter {
  background: var(--purple);
}
.model-note {
  background: #FBFCFE;
  padding: 0 24px 12px;
  color: #7a8699;
  font-size: 8px;
}
.controls-panel {
  background: #1B1E2A;
  color: #F4F5F8;
  border: 1px solid #1B1E2A;
  border-radius: 10px;
  padding: 21px 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 7px 14px #11131d08;
}
.controls-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.controls-heading .eyebrow {
  font-size: 8px;
  color: #AEB6C9;
  margin-bottom: 5px;
}
.controls-heading h2 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -.04em;
}
.active-light {
  width: 6px;
  height: 6px;
  background: #38BDF8;
  border-radius: 50%;
  box-shadow: 0 0 12px #38bdf840;
}
.bypassed .active-light {
  background: #778094;
  box-shadow: none;
}
.presets {
  display: flex;
  border: 1px solid #414759;
  border-radius: 5px;
  padding: 3px;
  margin-top: 17px;
  margin-bottom: 17px;
  background: #151823;
}
.presets button {
  background: none;
  border: 0;
  border-radius: 3px;
  color: #AEB6C9;
  font-size: 10px;
  padding: 7px 5px;
  min-height: 30px;
  flex: 1;
}
.presets button[aria-pressed=true] {
  background: #30384b;
  color: #F4F5F8;
}
.parameter {
  margin-bottom: 14px;
}
.parameter-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.parameter-heading label {
  font-size: 11px;
  font-weight: 500;
}
.parameter-heading output {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #C4B5FD;
  font-weight: 500;
}
.parameter p {
  font-size: 9px;
  line-height: 1.55;
  color: #AEB6C9;
  margin-top: 4px;
}
.parameter input {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  cursor: pointer;
  margin: 0;
  --range-fill:40%;
}
.parameter input::-webkit-slider-runnable-track {
  height: 3px;
  background:
    linear-gradient(
      to right,
      #C4B5FD var(--range-fill),
      #424859 var(--range-fill));
  border-radius: 2px;
}
.parameter input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-top: -4px;
  background: #F4F5F8;
  border: 2px solid #C4B5FD;
  box-shadow: 0 0 0 3px #1b1e2a;
}
.parameter input::-moz-range-track {
  height: 3px;
  background: #424859;
  border-radius: 2px;
}
.parameter input::-moz-range-progress {
  height: 3px;
  background: #C4B5FD;
}
.parameter input::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F4F5F8;
  border: 2px solid #C4B5FD;
}
.match-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #414759;
  position: relative;
}
.match-option input {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0;
  right: 0;
}
.match-option strong {
  font-size: 10px;
  display: block;
  font-weight: 500;
}
.match-option small {
  font-size: 9px;
  color: #AEB6C9;
  display: block;
  margin-top: 2px;
}
.check-mark {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #515b72;
  color: transparent;
  width: 17px;
  height: 17px;
  border-radius: 3px;
  flex: none;
  font-size: 11px;
}
.match-option input:checked ~ .check-mark {
  background: #C4B5FD;
  color: #11131D;
  border-color: #C4B5FD;
}
.match-option input:focus-visible ~ .check-mark {
  outline: 3px solid #38BDF8;
  outline-offset: 4px;
}
.matching-status {
  font-size: 8px;
  color: #AEB6C9;
  margin-top: 9px;
  min-height: 12px;
}
.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.analysis-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  overflow: hidden;
}
.analysis-panel .panel-top {
  min-height: 47px;
  padding: 10px 20px;
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 9px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend span:before {
  content: "";
  width: 10px;
  height: 2px;
  background: var(--blue);
}
.legend .legend-output:before {
  background: var(--purple);
}
.chart-wrap {
  height: 150px;
  margin: 10px 16px 0;
  position: relative;
}
.chart-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.chart-empty {
  position: absolute;
  left: 0;
  right: 0;
  top: 45%;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  padding: 4px 10px;
  background: #fbfcfee6;
  pointer-events: none;
}
.chart-empty strong {
  font-weight: 550;
}
.chart-caption {
  font-size: 8px;
  color: #7a8699;
  margin: 4px 20px 13px;
}
.curve-ratio {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--purple);
}
.curve-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
}
.curve-content canvas {
  height: 142px;
  width: 46%;
  flex: 1;
  min-width: 0;
}
.curve-example {
  flex: 1;
  min-width: 0;
}
.curve-example p {
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
  line-height: 1.6;
  letter-spacing: -.03em;
}
.curve-example small {
  display: block;
  font-size: 8px;
  line-height: 1.65;
  margin-top: 8px;
  color: #6f7d93;
}
.learning-strip {
  position: relative;
  margin-top: 27px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.learning-strip > div > span {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: .1em;
  color: var(--muted);
}
.learning-strip h2 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -.03em;
  margin-top: 4px;
}
.learning-strip > div > p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  max-width: 520px;
}
.tour-button {
  display: flex;
  align-items: center;
  gap: 20px;
  background: transparent;
  border: 1px solid #cbd2df;
  border-radius: 5px;
  min-height: 42px;
  padding: 8px 14px;
  font-size: 10px;
  white-space: nowrap;
}
.tour-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.tour-button svg {
  width: 15px;
}
#tour-message {
  width: 100%;
  font-size: 12px;
  color: var(--purple);
  padding: 12px 15px;
  border-left: 2px solid #A855F7;
  background: #ede9fe70;
}
.tour-active {
  outline: 2px solid #a855f7;
  outline-offset: 3px;
}
.error-message {
  font-size: 12px;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  padding: 12px 15px;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  font-size: 8px;
  letter-spacing: .02em;
  color: #78859b;
}
footer b {
  margin: 0 7px;
  font-weight: 400;
  color: #a8b1c0;
}
footer span:last-child {
  font-family: Inter, sans-serif;
  letter-spacing: 0;
  font-size: 9px;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  margin: -1px !important;
}
@media (min-width: 1600px) {
  .scene-wrap {
    min-height: 380px;
  }
  .parameter {
    margin-bottom: 20px;
  }
}
@media (max-width: 1100px) {
  .shell {
    padding: 0 22px;
  }
  .transport {
    gap: 14px;
  }
  .source-info {
    max-width: 190px;
  }
  .file-button {
    padding-left: 14px;
    gap: 6px;
  }
  .volume-control {
    width: 80px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 14px;
  }
  .controls-panel {
    padding: 20px;
  }
  .stage-label {
    font-size: 8px;
  }
  .stage-label span {
    font-size: 9px;
  }
  .meter-row {
    padding: 16px 18px;
    gap: 18px;
  }
  .model-note {
    padding-left: 18px;
  }
  .curve-content {
    gap: 8px;
  }
  .panel-top {
    padding: 10px 16px;
  }
  .text-button {
    font-size: 9px;
    gap: 6px;
  }
  .analysis-grid {
    gap: 14px;
  }
}
@media (max-width: 820px) {
  .shell {
    padding: 0 18px;
  }
  .site-header {
    height: 74px;
    gap: 15px;
  }
  .logo {
    width: 160px;
  }
  .local-badge {
    display: none;
  }
  .lab-label {
    margin-left: auto;
    font-size: 9px;
  }
  .intro {
    padding: 28px 0 24px;
    gap: 22px;
  }
  .intro-copy {
    font-size: 12px;
    max-width: 250px;
  }
  .transport {
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px;
  }
  .play-button {
    min-width: 135px;
  }
  .source-info {
    max-width: none;
    flex-basis: calc(100% - 160px);
  }
  .ab {
    order: 3;
    flex: 1;
  }
  .ab button {
    flex: 1;
    justify-content: center;
  }
  .volume-control {
    order: 4;
    width: 110px;
  }
  .file-button {
    order: 5;
    border-left: 0;
    padding-left: 0;
    min-height: 36px;
  }
  .reset-source {
    order: 6;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .scene-wrap {
    height: 345px;
    min-height: 345px;
  }
  .controls-panel {
    padding: 22px 24px;
  }
  .parameter-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
  }
  .presets {
    max-width: 340px;
  }
  .parameter {
    margin-bottom: 18px;
  }
  .match-option {
    padding-top: 16px;
    max-width: 380px;
  }
  .analysis-grid {
    grid-template-columns: 1fr 1fr;
  }
  .curve-content {
    flex-direction: column;
    gap: 5px;
    padding: 12px;
  }
  .curve-content canvas {
    height: 105px;
    flex: auto;
    width: 100%;
  }
  .curve-example {
    width: 100%;
    padding: 0 10px;
  }
  .curve-example small {
    display: none;
  }
  .curve-example p {
    margin-top: 2px;
    font-size: 11px;
  }
  .curve-example .tiny-label {
    font-size: 8px;
  }
  .chart-wrap {
    height: 159px;
  }
  .chart-caption {
    font-size: 7px;
  }
  .learning-strip {
    padding: 21px 0;
  }
  footer {
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  .shell {
    padding: 0 14px;
  }
  .site-header {
    height: 67px;
  }
  .logo {
    width: 145px;
  }
  .lab-label {
    font-size: 8px;
    letter-spacing: .035em;
  }
  .intro {
    display: block;
    padding: 27px 0 22px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 11px;
  }
  h1 {
    font-size: 39px;
  }
  .intro-copy {
    max-width: none;
    margin-top: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .intro-copy br {
    display: none;
  }
  .intro-copy > p {
    max-width: 225px;
  }
  .intro-link {
    font-size: 10px;
    gap: 6px;
    margin-top: 0;
  }
  .intro-link svg {
    display: none;
  }
  .transport {
    padding: 12px;
    gap: 12px;
  }
  .play-button {
    min-width: 125px;
    min-height: 46px;
    padding: 0 10px;
  }
  .source-info {
    flex-basis: calc(100% - 150px);
  }
  #source-name {
    font-size: 10px;
  }
  .tiny-label {
    font-size: 8px;
  }
  .ab button {
    padding: 7px 12px;
    gap: 7px;
    font-size: 11px;
  }
  .volume-control {
    width: 98px;
  }
  .file-button {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 8px;
    font-size: 10px;
    min-height: 34px;
  }
  .reset-source {
    width: 100%;
    text-align: left;
    min-height: 24px;
  }
  .panel-top {
    min-height: 46px;
    padding: 9px 12px;
  }
  .panel-top h2 {
    font-size: 8px;
    gap: 8px;
  }
  .view-controls {
    gap: 4px;
  }
  .text-button {
    font-size: 8px;
    gap: 4px;
  }
  .icon-button {
    font-size: 19px;
  }
  .scene-wrap {
    height: 275px;
    min-height: 275px;
  }
  .stage-label {
    top: 16px;
    font-size: 8px;
  }
  .input-label {
    left: 16px;
  }
  .output-label {
    right: 16px;
  }
  .stage-label span {
    font-size: 8px;
    max-width: 90px;
    line-height: 1.5;
  }
  .scene-status {
    font-size: 7px;
    bottom: 32px;
  }
  .scene-instruction {
    font-size: 7px;
    bottom: 12px;
  }
  .meter-row {
    padding: 15px 14px;
    gap: 14px;
  }
  .meter-reading {
    gap: 3px;
  }
  .meter-reading output {
    font-size: 25px;
  }
  .meter-reading > span {
    font-size: 7px;
  }
  .meter-item .tiny-label {
    font-size: 7px;
    letter-spacing: .035em;
  }
  .tiny-label span {
    font-size: 6px;
  }
  .model-note {
    font-size: 7px;
    padding: 0 14px 12px;
    line-height: 1.7;
  }
  .controls-panel {
    padding: 20px;
  }
  .controls-heading h2 {
    font-size: 23px;
  }
  .parameter-list {
    gap: 0 20px;
  }
  .parameter-heading label,
  .parameter-heading output {
    font-size: 11px;
  }
  .parameter p {
    font-size: 9px;
  }
  .parameter input {
    height: 27px;
  }
  .parameter input::-webkit-slider-thumb {
    width: 15px;
    height: 15px;
    margin-top: -6px;
  }
  .presets button {
    min-height: 35px;
    font-size: 11px;
  }
  .match-option {
    max-width: none;
  }
  .match-option strong {
    font-size: 11px;
  }
  .match-option small {
    font-size: 9px;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .chart-wrap {
    height: 155px;
  }
  .chart-caption {
    font-size: 7px;
  }
  .curve-content {
    flex-direction: row;
    padding: 13px 16px;
    gap: 16px;
  }
  .curve-content canvas {
    height: 140px;
    width: 48%;
    flex: 1;
  }
  .curve-example {
    flex: 1;
    padding: 0;
    min-width: 0;
  }
  .curve-example small {
    display: block;
    font-size: 7px;
  }
  .curve-example p {
    font-size: 12px;
    margin-top: 6px;
  }
  .learning-strip {
    gap: 17px;
  }
  .learning-strip > div > p {
    font-size: 11px;
  }
  .tour-button {
    min-height: 44px;
    justify-content: space-between;
    width: 100%;
    font-size: 11px;
  }
  #tour-message {
    font-size: 11px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
    font-size: 7px;
  }
  footer span:last-child {
    font-size: 8px;
  }
}
@media (max-width: 360px) {
  .shell {
    padding: 0 10px;
  }
  .lab-label {
    font-size: 7px;
  }
  .logo {
    width: 135px;
  }
  h1 {
    font-size: 36px;
  }
  .intro-link {
    display: none;
  }
  .intro-copy > p {
    max-width: none;
  }
  .text-button {
    font-size: 7px;
  }
  .panel-top h2 {
    font-size: 7px;
    gap: 5px;
  }
  .stage-label span {
    max-width: 75px;
  }
  .meter-row {
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .parameter-list {
    grid-template-columns: 1fr;
  }
  .parameter p {
    font-size: 10px;
  }
  .controls-panel {
    padding: 19px;
  }
  .volume-control {
    width: 87px;
  }
  .ab button {
    padding: 7px 9px;
  }
  .curve-content {
    gap: 8px;
  }
}
.file-button {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
}
.scene-instruction,
.model-note,
.chart-caption,
.curve-example small,
footer,
.number-label,
.tiny-label span {
  color: var(--muted);
}
.scene-fallback {
  max-width: 350px;
  margin: 105px auto 0;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 520px) {
  .file-button {
    border-top: 1px solid var(--line);
  }
  .parameter p {
    font-size: 10.5px;
    line-height: 1.6;
  }
  .parameter-heading label,
  .parameter-heading output {
    font-size: 12px;
  }
  .match-option small {
    font-size: 10.5px;
  }
  .intro-copy {
    font-size: 13px;
  }
  .text-button {
    min-height: 38px;
  }
  .icon-button {
    min-width: 28px;
    min-height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
body.compressor-embedded .site-header,
body.compressor-embedded .intro,
body.compressor-embedded .learning-strip,
body.compressor-embedded footer {
  display: none;
}
body.compressor-embedded .shell {
  padding: 14px;
}
body.compressor-embedded main {
  padding-bottom: 0;
}
@media (max-width: 520px) {
  body.compressor-embedded .shell {
    padding: 10px;
  }
}
/* Signed dB readouts stay left-to-right on RTL pages (ar, he). */
.meter-reading output,
.parameter-heading output {
  direction: ltr;
  unicode-bidi: isolate;
}
