/* "Deisgned by Kapil Pidhwani": Chromatic & Guitar Tuner styles; adapts via @container only.
 * Ceiling: 6-string peg grid; upgrade path: 7/8-string extended-range guitar grid. */
.tool-pane { container-type: inline-size; }
.gt-mode-bar { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.gt-left-stack { display: flex; flex-direction: column; gap: 0.85rem; }
.gt-ctrl-block { display: flex; flex-direction: column; gap: 0.4rem; }
.gt-ctrl-block[hidden] { display: none; }
.gt-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }

.gt-mic-btn {
  width: 100%; min-height: 46px; padding: 0.6rem 1rem;
  border-radius: var(--radius-ctrl); font-size: 0.92rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.gt-mic-btn.is-live {
  background: var(--brand-soft); color: var(--brand-ink);
  border: 1px solid rgba(234, 109, 56, 0.45);
}

.gt-strings-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; flex-wrap: wrap;
}
.gt-auto-btn {
  min-height: 44px; padding: 0.35rem 0.75rem;
  border-radius: var(--radius-ctrl); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-primary);
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.gt-auto-btn[aria-pressed="true"] {
  background: var(--brand-soft); color: var(--brand-ink);
  border-color: rgba(234, 109, 56, 0.45);
}

.gt-string-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem; font-variant-numeric: tabular-nums;
}
.gt-string-btn {
  min-width: 44px; min-height: 52px; padding: 0.45rem 0.4rem;
  border-radius: var(--radius-ctrl); border: 1px solid var(--border);
  background: var(--surface-elevated); color: var(--text-primary);
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.1rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.gt-string-btn:hover, .gt-string-btn:focus-visible { border-color: var(--brand); outline: none; }
.gt-string-btn.is-target {
  background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink);
}
.gt-str-note { font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.1; }
.gt-str-hz { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-secondary); }
.gt-string-btn.is-target .gt-str-hz { color: var(--brand-ink); }
.gt-tone-note { font-size: 0.76rem; color: var(--text-secondary); margin: 0; }

.gt-gauge-shell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; padding: 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface);
  font-variant-numeric: tabular-nums;
}
.gt-meter-wrap { width: 100%; max-width: 460px; }
.gt-canvas { display: block; width: 100%; height: auto; aspect-ratio: 520 / 190; }

.gt-readout-block { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; }
.gt-note-name {
  font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.25rem);
  font-weight: 700; line-height: 1.05; color: var(--text-primary); letter-spacing: -0.02em;
}
.gt-sub-row {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.86rem; color: var(--text-secondary);
}
.gt-cents-pill {
  padding: 0.18rem 0.5rem; border-radius: var(--radius-chip);
  border: 1px solid var(--border); background: var(--surface-elevated); color: var(--text-primary);
}

.gt-hint {
  padding: 0.38rem 0.8rem; border-radius: var(--radius-chip);
  border: 1px solid var(--border); background: var(--surface-elevated);
  color: var(--text-primary); font-size: 0.84rem; font-weight: 600;
}
.gt-hint.is-offpitch {
  background: var(--brand-soft); color: var(--brand-ink); border-color: rgba(234, 109, 56, 0.42);
}
.gt-hint.is-intune {
  background: #ECFDF3; color: #166534; border-color: rgba(22, 163, 74, 0.42);
}
[data-theme="dark"] .gt-hint.is-intune { background: #0D2818; color: #86EFAC; }

.gt-a4-wrap { display: flex; align-items: center; gap: 0.45rem; font-variant-numeric: tabular-nums; }
.gt-a4-input { width: 88px; text-align: center; font-variant-numeric: tabular-nums; }
.gt-step-btn {
  min-width: 44px; min-height: 44px; border-radius: var(--radius-ctrl);
  border: 1px solid var(--border); background: var(--surface-elevated);
  color: var(--text-primary); font-size: 1rem; font-weight: 600; cursor: pointer;
}
.gt-step-btn:hover, .gt-step-btn:focus-visible { border-color: var(--brand); color: var(--brand-ink); outline: none; }

@container (max-width: 380px) {
  .gt-string-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gt-gauge-shell { padding: 0.75rem 0.6rem; }
}
