:root {
  color-scheme: dark;
  --panel: rgba(19, 19, 29, .96);
  --panel-2: rgba(12, 12, 19, .98);
  --line: rgba(206, 179, 255, .18);
  --muted: rgba(255, 255, 255, .62);
  --accent: #c8a9ff;
  --good: #75f0ad;
  --flat: #ffb45e;
  --sharp: #ae8bff;
}

* { box-sizing: border-box; }

body.tuner-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 75% 18%, rgba(100, 54, 176, .17), transparent 34%),
    radial-gradient(circle at 10% 58%, rgba(46, 91, 160, .11), transparent 30%),
    #05050a;
}

button, select, input { font: inherit; }

.tuner-main {
  width: min(1460px, calc(100% - 28px));
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 118px 0 72px;
}

.tuner-hero {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hero-copy { min-width: 0; }

.tuner-kicker,
.spectrum-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.tuner-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .95;
  letter-spacing: -.035em;
}

.tuner-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.55;
}

.hero-tools {
  display: grid;
  gap: 11px;
  justify-items: end;
}

.mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(205, 177, 255, .25);
  border-radius: 13px;
  background: rgba(12, 11, 18, .88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.mode-button {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, .58);
  font-weight: 900;
  cursor: pointer;
}

.mode-button:hover,
.mode-button:focus-visible {
  color: #fff;
  outline: none;
  background: rgba(255, 255, 255, .055);
}

.mode-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(126, 73, 199, .98), rgba(72, 38, 121, .98));
  box-shadow: 0 5px 18px rgba(69, 31, 122, .38), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.hero-actions button,
.spectrum-card button,
.controls-panel button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(205, 177, 255, .28);
  border-radius: 12px;
  background: rgba(28, 24, 42, .96);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.hero-actions button:hover,
.hero-actions button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(222, 204, 255, .65);
  outline: none;
}

.hero-actions .primary-action {
  border-color: rgba(211, 182, 255, .55);
  background: linear-gradient(135deg, #7b47c7, #4a267d);
  box-shadow: 0 10px 30px rgba(73, 35, 125, .35);
}

.hero-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.tuner-status-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(180px, .7fr) minmax(220px, .85fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(28, 26, 39, .96), rgba(13, 13, 20, .98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}

.status-copy {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.status-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #726f79;
  box-shadow: 0 0 0 6px rgba(114, 111, 121, .1);
}

.status-dot.live {
  background: #6ee7a2;
  box-shadow: 0 0 0 6px rgba(110, 231, 162, .1), 0 0 20px rgba(110, 231, 162, .6);
}

.status-dot.error {
  background: #ff7d88;
  box-shadow: 0 0 0 6px rgba(255, 125, 136, .11);
}

.status-copy strong,
.status-copy span { display: block; }
.status-copy strong { margin-bottom: 3px; }

.status-copy span,
.detected-summary small,
.input-level-label {
  color: var(--muted);
  font-size: 13px;
}

.detected-summary {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.detected-summary > span,
.detected-summary > strong,
.detected-summary > small { display: block; }

.detected-summary > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.detected-summary > strong {
  margin: 2px 0;
  color: #eee4ff;
  font-size: 27px;
  line-height: 1;
}

.input-level-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}

.input-meter {
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
}

.input-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6b3fb0, #b585ff, #f1d7ff);
  transition: width .08s linear;
}

.tuner-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.tuner-panel,
.normal-card,
.spectrum-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(150deg, var(--panel), var(--panel-2));
  box-shadow: 0 24px 75px rgba(0, 0, 0, .34);
}

.controls-panel {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.panel-section + .panel-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.panel-section h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.panel-section label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 7px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 750;
}

.panel-section output {
  color: #d8c3ff;
  font-variant-numeric: tabular-nums;
}

.panel-section select,
.panel-section input[type="range"] { width: 100%; }

.panel-section select {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(204, 174, 255, .2);
  border-radius: 10px;
  background: #10101a;
  color: #fff;
}

.panel-section input[type="range"] { accent-color: #a66df5; }

.privacy-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tuner-stage { min-width: 0; }
.mode-panel[hidden] { display: none !important; }

/* Normal tuner */
.normal-card {
  min-width: 0;
  overflow: hidden;
}

.normal-header,
.spectrum-header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.normal-header h2,
.spectrum-header h2 {
  margin: 5px 0 0;
  font-size: 24px;
}

.normal-guide,
.deviation-key {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px;
  color: rgba(255, 255, 255, .48);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.normal-guide span:nth-child(2),
.deviation-key span:nth-child(2) { color: #d8c5ff; }

.normal-display {
  display: grid;
  justify-items: center;
  padding: clamp(22px, 4vw, 42px) clamp(14px, 4vw, 42px) 34px;
}

.normal-note-readout {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: end;
  column-gap: 8px;
  min-height: 150px;
  text-align: center;
}

.normal-note {
  color: #eee4ff;
  font-size: clamp(82px, 12vw, 150px);
  font-weight: 950;
  line-height: .76;
  letter-spacing: -.065em;
  text-shadow: 0 0 38px rgba(167, 112, 255, .28);
}

.normal-octave {
  min-width: 30px;
  padding-bottom: 7px;
  color: rgba(255, 255, 255, .48);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
}

.normal-cents,
.normal-frequency {
  grid-column: 1 / -1;
  display: block;
  font-variant-numeric: tabular-nums;
}

.normal-cents {
  margin-top: 16px;
  color: #d4bbff;
  font-size: clamp(25px, 4vw, 40px);
  line-height: 1;
}

.normal-frequency {
  margin-top: 8px;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
}

.normal-meter {
  position: relative;
  width: min(760px, 100%);
  margin: -8px auto 0;
}

.normal-meter svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.meter-arc {
  fill: none;
  stroke-linecap: round;
}

.meter-arc-base {
  stroke: rgba(255, 255, 255, .13);
  stroke-width: 15;
}

.meter-arc-tune {
  stroke: rgba(117, 240, 173, .52);
  stroke-width: 18;
  filter: drop-shadow(0 0 9px rgba(117, 240, 173, .32));
}

.meter-tick {
  stroke: rgba(255, 255, 255, .28);
  stroke-width: 2;
}

.meter-tick.major {
  stroke: rgba(255, 255, 255, .68);
  stroke-width: 4;
}

.meter-tick.zero {
  stroke: var(--good);
  stroke-width: 6;
  filter: drop-shadow(0 0 7px rgba(117, 240, 173, .8));
}

.meter-needle {
  transform-origin: 300px 270px;
  transition: transform .085s linear;
}

.meter-needle line {
  stroke: #e3d5ff;
  stroke-width: 7;
  stroke-linecap: round;
  filter: url(#needleGlow);
}

.meter-needle circle { fill: #f0e8ff; }
.meter-hub { fill: #171224; stroke: rgba(227, 213, 255, .74); stroke-width: 4; }

.normal-meter.is-in-tune .meter-needle line,
.normal-meter.is-in-tune .meter-needle circle { stroke: var(--good); fill: var(--good); }

.normal-meter.is-flat .meter-needle line,
.normal-meter.is-flat .meter-needle circle { stroke: var(--flat); fill: var(--flat); }

.normal-meter.is-sharp .meter-needle line,
.normal-meter.is-sharp .meter-needle circle { stroke: var(--sharp); fill: var(--sharp); }

.meter-labels {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 2%;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.normal-result {
  min-height: 58px;
  margin-top: -5px;
  text-align: center;
}

.normal-result strong,
.normal-result span { display: block; }

.normal-result strong {
  color: #eee8ff;
  font-size: clamp(20px, 3vw, 30px);
}

.normal-result span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.normal-result.is-in-tune strong { color: var(--good); text-shadow: 0 0 18px rgba(117, 240, 173, .28); }
.normal-result.is-flat strong { color: var(--flat); }
.normal-result.is-sharp strong { color: #c6aeff; }

.stability-meter {
  display: grid;
  grid-template-columns: auto minmax(160px, 320px);
  gap: 12px;
  align-items: center;
  width: min(390px, 100%);
  margin-top: 17px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stability-meter > div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
}

.stability-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f41b4, #c49dff, #7cf0b2);
  box-shadow: 0 0 14px rgba(178, 135, 255, .35);
  transition: width .1s linear;
}

/* Polyphonic tuner */
.spectrum-card {
  min-width: 0;
  overflow: hidden;
}

.note-lanes { padding: 8px 12px; }

.note-lane {
  --lane-color: 200, 170, 255;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 156px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.note-lane:last-child { border-bottom: 0; }

.note-lane.is-active {
  background: linear-gradient(90deg, rgba(var(--lane-color), .09), transparent 60%);
}

.note-name-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.note-name {
  color: rgb(var(--lane-color));
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.04em;
  text-shadow: 0 0 18px rgba(var(--lane-color), .35);
}

.note-octave {
  min-width: 18px;
  color: rgba(255, 255, 255, .48);
  font-size: 13px;
  font-weight: 800;
}

.lane-visual {
  position: relative;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(var(--lane-color), .07);
  border-radius: 9px;
  background:
    linear-gradient(to bottom,
      transparent 43%,
      rgba(var(--lane-color), .055) 43%,
      rgba(var(--lane-color), .055) 57%,
      transparent 57%),
    linear-gradient(to bottom,
      transparent 48%,
      rgba(var(--lane-color), .36) 48%,
      rgba(var(--lane-color), .36) 52%,
      transparent 52%),
    linear-gradient(90deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
}

.lane-visual::before,
.lane-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}

.lane-visual::before { left: 25%; }
.lane-visual::after { right: 25%; }

.pitch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lane-readout {
  display: grid;
  grid-template-columns: 61px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.cents-value {
  color: rgba(255, 255, 255, .35);
  font-size: 17px;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.note-lane.is-active .cents-value { color: rgb(var(--lane-color)); }
.lane-meta { min-width: 0; }

.lane-frequency {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.lane-strength {
  height: 4px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
}

.lane-strength span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: rgb(var(--lane-color));
  box-shadow: 0 0 10px rgba(var(--lane-color), .7);
  transition: width .08s linear;
}

.spectrum-footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
}

.spectrum-footer span:first-child { color: rgba(224, 207, 255, .8); }

body.tuner-fullscreen .site-header,
body.tuner-fullscreen .tuner-hero,
body.tuner-fullscreen .tuner-status-card,
body.tuner-fullscreen .controls-panel,
body.tuner-fullscreen .agn-site-footer { display: none; }

body.tuner-fullscreen .tuner-main {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

body.tuner-fullscreen .tuner-layout,
body.tuner-fullscreen .tuner-stage { display: block; }

body.tuner-fullscreen .mode-panel {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
}

body.tuner-fullscreen .normal-display { min-height: calc(100vh - 78px); align-content: center; }
body.tuner-fullscreen .note-lane { min-height: calc((100vh - 132px) / 12); }

@media (max-width: 980px) {
  .tuner-hero { align-items: start; flex-direction: column; }
  .hero-tools { width: 100%; justify-items: start; }
  .hero-actions { justify-content: flex-start; }
  .tuner-status-card { grid-template-columns: 1fr 1fr; }
  .input-level-wrap { grid-column: 1 / -1; }
  .tuner-layout { grid-template-columns: 1fr; }

  .controls-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .panel-section + .panel-section {
    margin-top: 0;
    padding-top: 0;
    padding-left: 16px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .privacy-note { display: none; }
}

@media (max-width: 700px) {
  .tuner-main {
    width: min(100% - 14px, 1460px);
    padding-top: 88px;
  }

  .tuner-hero h1 { font-size: 43px; }
  .hero-tools, .mode-switch, .hero-actions { width: 100%; }
  .hero-actions button { flex: 1 1 140px; }

  .tuner-status-card {
    grid-template-columns: 1fr;
    border-radius: 15px;
  }

  .detected-summary,
  .input-level-wrap {
    grid-column: auto;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .controls-panel { grid-template-columns: 1fr; }

  .panel-section + .panel-section {
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .normal-header,
  .spectrum-header { align-items: start; flex-direction: column; }

  .normal-guide,
  .deviation-key {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .normal-display { padding: 28px 9px 30px; }
  .normal-note-readout { min-height: 124px; }
  .normal-note { font-size: clamp(76px, 28vw, 116px); }
  .normal-meter { margin-top: -12px; }
  .meter-labels { bottom: 0; font-size: 10px; }

  .note-lanes { padding: 6px; }

  .note-lane {
    grid-template-columns: 55px minmax(0, 1fr) 86px;
    gap: 7px;
    min-height: 52px;
    padding-inline: 4px;
  }

  .note-name { font-size: 21px; }
  .lane-readout { display: block; }
  .cents-value { display: block; font-size: 15px; }
  .lane-frequency { text-align: right; }
  .lane-strength { display: none; }

  .spectrum-footer {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 430px) {
  .mode-switch { grid-template-columns: 1fr 1fr; }
  .hero-actions button { flex-basis: calc(50% - 5px); min-width: 0; padding-inline: 10px; }
  .normal-header, .spectrum-header { padding: 16px 15px 13px; }
  .normal-display { padding-top: 21px; }
  .normal-note { font-size: 82px; }
  .normal-octave { font-size: 28px; }
  .normal-result strong { font-size: 21px; }
  .stability-meter { grid-template-columns: auto 1fr; padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* v191: JS-assisted dropdown open state, stable on mouse + touch. */
.site-header, .chess-header { overflow: visible !important; }
.nav-dropdown.is-open > .nav-dropdown-menu { display: block !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }
.nav-dropdown.is-open > .nav-dropbtn { background: rgba(255,255,255,0.12) !important; color: #fff !important; }
.nav-tools-menu { min-width: 220px; }
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .nav-dropdown:hover > .nav-dropdown-menu { display: none; }
  .nav-dropdown.is-open > .nav-dropdown-menu { display: block !important; }
}

/* v156 acoustic tuner patch: centered normal meter + thin waveform poly traces */
.normal-display {
  align-content: center;
  text-align: center;
}

.normal-meter {
  width: min(680px, 96%);
  margin: 10px auto 4px;
  display: grid;
  place-items: center;
}

.meter-center-guide {
  stroke: rgba(117, 240, 173, .24);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 9;
  filter: drop-shadow(0 0 8px rgba(117, 240, 173, .2));
}

.meter-center-dot {
  fill: var(--good);
  opacity: .92;
  filter: drop-shadow(0 0 8px rgba(117, 240, 173, .72));
}

.meter-labels {
  left: 12.5%;
  right: 12.5%;
  bottom: 1.25%;
}

.meter-needle line { stroke-width: 5.5; }
.meter-needle circle { r: 10px; }

.lane-visual {
  height: 46px;
  border-color: rgba(var(--lane-color), .095);
  background:
    linear-gradient(to bottom,
      transparent 45%,
      rgba(var(--lane-color), .04) 45%,
      rgba(var(--lane-color), .04) 55%,
      transparent 55%),
    linear-gradient(to bottom,
      transparent calc(50% - 1px),
      rgba(var(--lane-color), .34) calc(50% - 1px),
      rgba(var(--lane-color), .34) calc(50% + 1px),
      transparent calc(50% + 1px)),
    linear-gradient(90deg, rgba(255,255,255,.022), rgba(255,255,255,.006));
}

.pitch-canvas {
  opacity: .92;
  mix-blend-mode: screen;
}

.note-lane.is-active {
  background: linear-gradient(90deg, rgba(var(--lane-color), .07), transparent 68%);
}

@media (max-width: 700px) {
  .normal-meter {
    width: min(100%, 620px);
    margin-top: 2px;
  }

  .meter-labels {
    left: 12%;
    right: 12%;
  }
}


/* v157 trace refinement: calmer, thinner pitch ribbon instead of a big waveform */
.pitch-canvas {
  opacity: .94;
  mix-blend-mode: screen;
}

.lane-visual {
  background:
    linear-gradient(to bottom,
      transparent 45%,
      rgba(var(--lane-color), .035) 45%,
      rgba(var(--lane-color), .035) 55%,
      transparent 55%),
    linear-gradient(to bottom,
      transparent calc(50% - 1px),
      rgba(var(--lane-color), .28) calc(50% - 1px),
      rgba(var(--lane-color), .28) calc(50% + 1px),
      transparent calc(50% + 1px)),
    linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.006));
}


/* v158 true lane waveform: note-separated audio wave, not just a pitch line */
.lane-visual {
  height: 48px;
  background:
    linear-gradient(to bottom,
      transparent 44%,
      rgba(var(--lane-color), .032) 44%,
      rgba(var(--lane-color), .032) 56%,
      transparent 56%),
    linear-gradient(to bottom,
      transparent calc(50% - 1px),
      rgba(var(--lane-color), .30) calc(50% - 1px),
      rgba(var(--lane-color), .30) calc(50% + 1px),
      transparent calc(50% + 1px)),
    linear-gradient(90deg, rgba(255,255,255,.018), rgba(255,255,255,.005));
}

.pitch-canvas {
  opacity: .96;
  mix-blend-mode: screen;
}


/* v159 split-wave: full-width separated recorded note wave per lane */
.pitch-canvas {
  opacity: .98;
  mix-blend-mode: screen;
}

.lane-visual {
  overflow: hidden;
}


/* v160: stronger visible split-wave normalization */
.pitch-canvas { opacity: 1; mix-blend-mode: screen; }
.lane-visual { background-color: rgba(0,0,0,.10); }


/* v161 gated-wave: silence stays quiet; note waves appear only on detected note lanes */
.pitch-canvas { opacity: .98; mix-blend-mode: screen; }


/* v162 visual tuning: zoomed-out slower split waves */
.pitch-canvas { opacity: .96; }


/* v163 persistent trace renderer */
.lane-visual {
  height: 50px;
  border-color: rgba(var(--lane-color), .12);
  background:
    linear-gradient(to bottom,
      transparent calc(50% - 1px),
      rgba(var(--lane-color), .30) calc(50% - 1px),
      rgba(var(--lane-color), .30) calc(50% + 1px),
      transparent calc(50% + 1px)),
    linear-gradient(90deg,
      rgba(255,255,255,.018),
      rgba(255,255,255,.006));
}

.note-lane.is-active .lane-visual {
  border-color: rgba(var(--lane-color), .22);
  box-shadow: inset 0 0 18px rgba(var(--lane-color), .055);
}

.pitch-canvas {
  opacity: .98;
  mix-blend-mode: screen;
}

.controls-panel output {
  font-variant-numeric: tabular-nums;
}
