/* Tuner */
.tuner-main, .metro-main { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 32px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tuner-display { --state: var(--faint); width: 100%; }
.tuner-display[data-state="listening"] { --state: var(--muted); }
.tuner-display[data-state="off"] { --state: var(--accent); }
.tuner-display[data-state="tuned"] { --state: var(--good); }
.tuner-display[data-state="error"] { --state: var(--bad); }
.tuner-note { font: 600 clamp(76px, 16vw, 120px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--state); transition: color .15s; }
.tn-oct { font-size: .3em; vertical-align: super; color: var(--faint); margin-left: 4px; }
.tuner-meter { position: relative; height: 110px; margin: 8px auto 0; max-width: 420px; overflow: hidden; }
.tm-scale { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; height: 34px; padding: 0 2px; }
.tm-scale i { width: 2px; height: 10px; background: var(--line-strong); border-radius: 2px; }
.tm-scale i.major { height: 18px; background: var(--faint); }
.tm-scale i.mid { height: 30px; width: 3px; background: var(--good); }
.tm-zone { position: absolute; bottom: 0; left: 45.5%; width: 9%; height: 34px; background: var(--good-soft); border-radius: 6px; }
.tm-needle { position: absolute; left: 50%; bottom: 0; width: 4px; height: 102px; background: var(--state); border-radius: 4px; transform-origin: 50% 100%; transform: translateX(-50%) rotate(0deg); transition: transform .12s ease-out, background .15s; box-shadow: 0 0 18px -2px var(--state); }
.tm-labels { display: flex; justify-content: space-between; max-width: 420px; margin: 6px auto 0; font: 600 11px var(--mono); color: var(--faint); }
.tuner-readout { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; min-height: 44px; }
.tr-cents { font-weight: 700; font-size: 18px; color: var(--state); min-height: 1.4em; }
.tr-hz { font: 500 13px var(--mono); min-height: 1.2em; }
.tuner-start { min-width: 180px; }
.tuner-msg { margin: -8px 0 0; font-size: 13px; min-height: 1.4em; }
.tuner-msg.error { color: var(--bad); }
.ref-strings { width: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ref-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: background .12s, border-color .12s; }
.ref-btn b { font: 600 20px/1 var(--font-display); }
.ref-btn .ref-num, .ref-btn .ref-oct { font: 600 10px var(--mono); color: var(--faint); }
.ref-btn:hover { background: var(--surface-2); }
.ref-btn.active { border-color: var(--accent); background: var(--accent-soft); }
.ref-btn.hear { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; }
.tuner-opts { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.tuning-select { width: auto; }
.tuner-what { margin: -6px 0 0; }
.tm-labels .xp { color: inherit; }

/* Metronome */
.metro-dots { display: flex; gap: 12px; justify-content: center; min-height: 26px; }
.metro-dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); transition: background .05s, transform .05s; }
.metro-dots i.acc { box-shadow: 0 0 0 2px var(--line-strong) inset; }
.metro-dots i.on { background: var(--accent); transform: scale(1.15); }
.metro-dots i.acc.on { background: var(--hot); }
.metro-bpm { display: flex; align-items: center; gap: 22px; }
.metro-bpm > div { display: flex; flex-direction: column; align-items: center; min-width: 170px; }
.mb-val { font: 600 96px/0.95 var(--font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.mb-unit { font: 700 12px var(--font); letter-spacing: .2em; color: var(--accent); }
.mb-name { font-size: 13px; margin-top: 2px; }
.metro-bpm .btn-icon { width: 48px; height: 48px; border-radius: 50%; font-size: 22px; }
.metro-slider { max-width: 420px; }
.metro-buttons { justify-content: center; }
.metro-play { min-width: 140px; }
.metro-status { margin: -6px 0 0; min-height: 1.4em; font-size: 14px; }
.metro-opts { display: flex; align-items: center; justify-content: center; gap: 12px 16px; flex-wrap: wrap; }
.metro-more { width: 100%; max-width: 420px; }
.metro-more > .tp-what { margin: 14px 0 0; }
.metro-opts + .tp-what { margin: -6px 0 0; }
.mb-unit .xp { text-decoration-color: currentColor; }
.trainer-fields { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; text-align: left; opacity: .45; pointer-events: none; transition: opacity .15s; }
.trainer-on .trainer-fields { opacity: 1; pointer-events: auto; }
.trainer-fields .input { width: 100%; min-width: 0; }

/* Amp */
.amp-presets { margin-bottom: 10px; }
.amp-what { margin: 0 0 20px; }
.amp-meta { margin: 0; font-size: 13.5px; }
.amp-live .amp-panel { padding: 16px 18px 12px; }
.amp-live .amp-knobs { justify-content: space-around; }
.amp-live .knob { width: 70px; }
.amp-live .knob svg { width: 60px; height: 60px; }
.amp-sliders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
.amp-slider { display: flex; flex-direction: column; gap: 8px; }
.as-top { display: flex; justify-content: space-between; }
.as-top output { font: 700 14px var(--mono); color: var(--accent); }
.amp-h { font-size: 18px; margin-bottom: 10px; }
.amp-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14.5px; }
.amp-list b { color: var(--text); }

@media (max-width: 860px) {
  .amp-sliders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .amp-sliders { grid-template-columns: 1fr; gap: 14px; }
  .trainer-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mb-val { font-size: 76px; }
  .metro-bpm { gap: 12px; }
  .metro-bpm > div { min-width: 130px; }
  .tuner-meter { height: 90px; }
  .tm-needle { height: 84px; }
  .ref-strings { gap: 6px; }
  .amp-live .knob { width: 46px; }
  .amp-live .knob svg { width: 42px; height: 42px; }
}
.amp-credits { margin-top: 28px; font-size: 12px; }
/* Hornet controls */
.amp-sub { display: block; margin-bottom: 8px; }
.amp-models { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.amp-blurb { margin: 8px 0 0; font-size: 13px; }
.amp-fx { display: grid; gap: 12px; }
.amp-fx-row { display: grid; grid-template-columns: 70px auto 1fr 24px; align-items: center; gap: 12px; }
.amp-fx-row output { font: 600 13px var(--mono); color: var(--accent); }
.amp-fx-row .slider:disabled { opacity: .35; }
@media (max-width: 620px) { .amp-fx-row { grid-template-columns: 1fr 24px; } .amp-fx-row b, .amp-fx-row .seg { grid-column: 1 / -1; } }
.amp-models button { white-space: nowrap; }
