/* ── SoloHobbies Practice Cockpit — Styles v372 ── */
:root {
  --bg-primary: #0b1020;
  --bg-secondary: #131a2e;
  --bg-card: #1a2340;
  --bg-input: #1e2a4a;
  --text-primary: #e8edf5;
  --text-secondary: #8892b0;
  --text-muted: #556;
  --accent-cyan: #67e8f9;
  --accent-gold: #e8c547;
  --accent-green: #34d399;
  --accent-pink: #f472b6;
  --accent-blue: #60a5fa;
  --accent-orange: #fb923c;
  --border-color: #2a3a5a;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.45);
  --shadow-xl: 0 18px 60px rgba(0,0,0,0.5);
  --glow-cyan: 0 0 20px rgba(103, 232, 249, 0.15);
  --glow-gold: 0 0 20px rgba(232, 197, 71, 0.15);
  --backdrop-blur: blur(14px);
  --panel-alpha: rgba(26, 35, 64, 0.88);
  --eyebrow-size: 0.6rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(ellipse at 55% 0%, rgba(103, 232, 249, 0.12), transparent 50%),
    radial-gradient(ellipse at 20% 100%, rgba(232, 197, 71, 0.06), transparent 40%),
    linear-gradient(165deg, #0b1020 0%, #0e1528 40%, #0a0e1c 100%);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

/* Header */
.app-header {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding: 8px 16px;
  box-sizing: border-box;
}
.app-header h1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.app-header h1 span { color: var(--text-secondary); font-weight: 300; }
.app-header .header-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Mode toggle bar in header */
.header-mode-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.header-info {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(103, 232, 249, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(103, 232, 249, 0.2);
}
.mode-toggle-group {
  display: flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.mode-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--bg-input);
  color: var(--text-muted);
  transition: all 0.2s;
}
.mode-btn:hover { color: var(--text-secondary); }
.mode-btn-active {
  background: var(--accent-cyan);
  color: #0b1020;
}
.mode-btn-active:hover { background: #56d8e8; color: #0b1020; }

/* Layout */
.app-container {
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  gap: 12px;
  padding: 12px;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
}
.app-container > * {
  min-height: 0;
  overflow: auto;
}

@media (max-width: 1200px) {
  .app-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
}

/* Practice Mode Layout */
body.mode-practice .setup-panel { display: none; }
body.mode-practice .right-panel { display: none; }
body.mode-practice .app-container {
  grid-template-columns: 1fr;
  max-width: 960px;
}
body.mode-practice .center-panel {
  max-width: 100%;
}
body.mode-practice .chord-display { grid-template-columns: 0.7fr 1.2fr 0.7fr; }
body.mode-practice .chord-card .chord-name { font-size: 2.4rem; }
body.mode-practice .chord-card.next .chord-name { font-size: 1.6rem; }
body.mode-practice #fretboardContainer { min-height: 320px; }
body.mode-practice .fretboard-wrap { min-height: 320px; }

/* Panels */
.panel {
  background: var(--panel-alpha);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.panel-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

/* Controls */
.control-group {
  margin-bottom: 12px;
}
.control-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 3px;
  font-weight: 500;
}
select, input[type="range"], textarea {
  width: 100%;
  padding: 7px 9px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
select:focus, input[type="range"]:focus, textarea:focus {
  border-color: var(--accent-cyan);
}
textarea {
  min-height: 70px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  resize: vertical;
}
input[type="range"] {
  -webkit-appearance: none;
  height: 5px;
  background: var(--bg-input);
  border-radius: 3px;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
}
.bpm-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bpm-row input { flex: 1; }
.bpm-row span { min-width: 36px; text-align: center; font-weight: 600; color: var(--accent-cyan); }

/* Toggle switch */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.toggle-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-cyan);
}

/* Custom editor */
.custom-editor { display: none; }
.error-msg {
  color: #f87171;
  font-size: 0.75rem;
  margin-top: 3px;
}

/* Preset search and categories */
.preset-filter { margin-bottom:12px; }
.preset-search-input {
  width:100%; padding:7px 9px; font-size:0.8rem;
  background:var(--bg-input); border:1px solid var(--border-color);
  border-radius:var(--radius); color:var(--text-primary);
  outline:none; box-sizing:border-box;
}
.preset-search-input:focus { border-color:var(--accent-cyan); }
.preset-categories {
  display:flex; flex-wrap:wrap; gap:3px; margin-top:6px;
}
.preset-cat-btn {
  padding:2px 8px; font-size:0.65rem; font-weight:500;
  border:1px solid var(--border-color); border-radius:4px;
  background:var(--bg-input); color:var(--text-muted);
  cursor:pointer; transition:all 0.15s;
}
.preset-cat-btn:hover { border-color:var(--accent-cyan); color:var(--accent-cyan); }
.preset-cat-btn.active { background:var(--accent-cyan); color:#0b1020; border-color:var(--accent-cyan); }

/* Buttons */
.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.btn {
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-play {
  background: var(--accent-cyan);
  color: #0b1020;
  flex: 1;
}
.btn-play:hover:not(:disabled) { background: #56d8e8; }
.btn-play:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-stop {
  background: var(--bg-input);
  color: var(--text-secondary);
}
.btn-stop:hover:not(:disabled) { background: #2a3a5a; color: var(--text-primary); }
.btn-stop:disabled { opacity: 0.3; cursor: not-allowed; }

/* Center panel */
.center-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 3-column center top row */
.center-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 8px 16px;
  box-shadow: var(--shadow-lg);
}
.ct-col-left { display:flex; align-items:center; flex:1; }
.ct-col-center { display:flex; flex-direction:row; align-items:center; justify-content:center; gap:10px; flex:0 0 auto; }
.ct-col-right { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex:1; }

/* Practice info bar */
.practice-info-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

/* Chord display */
.chord-display {
  display: grid;
  grid-template-columns: 0.7fr 1fr 0.7fr;
  gap: 10px;
}
.chord-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: border-color 0.2s;
}
.chord-card.current-active {
  border-color: var(--accent-cyan);
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.15), rgba(26, 35, 64, 0.95));
  box-shadow: var(--glow-cyan), var(--shadow-lg);
}
.chord-card .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.chord-card .chord-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-top: 2px;
  font-family: 'Courier New', monospace;
}
.chord-card.next .chord-name {
  font-size: 1.3rem;
  color: var(--text-secondary);
}
.chord-card.prev .chord-name {
  font-size: 1.1rem;
  color: var(--text-muted);
}
.chord-card.prev .chord-roman {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.chord-roman {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: 2px;
}
.chord-function {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1px;
}
.chord-target {
  font-size: 0.75rem;
  color: var(--accent-green);
  margin-top: 4px;
  font-style: italic;
}

/* Beat info */
.beat-info {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 6px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
}
.beat-info-item {
  text-align: center;
}
.beat-info-item .value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-gold);
}
.beat-info-item .label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Beat pulse animation */
.beat-pulse {
  font-size: 1.4rem;
  transition: all 0.05s;
  color: var(--text-muted);
}
.beat-pulse.pulse-strong {
  color: var(--accent-gold);
  transform: scale(1.3);
  text-shadow: 0 0 8px rgba(232, 197, 71, 0.5);
}
.beat-pulse.pulse-weak {
  color: var(--accent-cyan);
  transform: scale(1.1);
}

/* Progression section */
.progression-section {
  margin: 0;
}

/* Progression display */
.progression-display {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 40px;
  overflow-x: auto;
}
.progression-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.prog-bar {
  display: flex;
  align-items: center;
  gap: 3px;
}
.prog-chord {
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
  background: var(--bg-input);
  color: var(--text-secondary);
  transition: all 0.15s;
  white-space: nowrap;
}
.prog-chord.active {
  background: var(--accent-cyan);
  color: #0b1020;
  font-weight: 600;
  transform: scale(1.05);
}
.prog-bar.active {
  background: rgba(103, 232, 249, 0.08);
  border-radius: 6px;
  padding: 0 2px;
}
.prog-bar-line {
  color: var(--text-muted);
  margin: 0 2px;
}

/* Fretboard section */
.fretboard-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.fretboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.fretboard-legend {
  display: flex;
  gap: 12px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.fretboard-mode-toggle {
  display: flex;
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.fb-mode-btn {
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background: var(--bg-input);
  color: var(--text-muted);
  transition: all 0.15s;
}
.fb-mode-btn:hover { color: var(--text-secondary); }
.fb-mode-active {
  background: var(--accent-cyan);
  color: #0b1020;
}
.fb-mode-active:hover { background: #56d8e8; color: #0b1020; }

/* Voicing navigation */
.fb-voicing-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.fb-voicing-btn {
  padding: 2px 8px;
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-input);
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all 0.15s;
}
.fb-voicing-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(103, 232, 249, 0.1);
}

/* Fretboard wrap */
.fretboard-wrap {
  border-radius: var(--radius);
  overflow: hidden;
}
.fretboard-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Target notes */
.target-notes {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 6px;
  min-height: 18px;
  text-align: center;
}

/* Compact Mixer */
.compact-mixer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 8px 12px;
}
.mixer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.mixer-presets {
  display: flex;
  gap: 3px;
}
.mixer-preset-btn {
  padding: 2px 8px;
  font-size: 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.mixer-preset-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.mixer-preset-btn.preset-active {
  background: rgba(103, 232, 249, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.mixer-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}
.mixer-channel {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mc-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  min-width: 30px;
  text-align: right;
}
.mc-slider {
  width: 80px !important;
  height: 4px !important;
  background: var(--bg-input);
  border-radius: 2px;
  padding: 0;
  -webkit-appearance: none;
  border: none;
}
.mc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
}

/* Compact mute button */
.compact-mute {
  background: transparent !important;
  border: none !important;
  padding: 2px 4px !important;
  font-size: 0.85rem !important;
  min-width: 24px !important;
  cursor: pointer;
  color: var(--accent-cyan) !important;
  transition: opacity 0.15s;
}
.compact-mute.muted {
  opacity: 0.3;
  color: var(--text-muted) !important;
}

/* Voice Leading Coach */
.voice-leading-panel {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  border-left: 3px solid var(--accent-gold);
}
#vlContent {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.vl-step {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vl-step:last-child { border-bottom: none; }
.vl-chord-name {
  color: var(--accent-cyan);
  font-weight: 600;
  font-family: 'Courier New', monospace;
}
.vl-arrow {
  color: var(--accent-gold);
  margin: 0 4px;
}
.vl-resolution {
  color: var(--accent-green);
}

/* Right panel */
.instruction-box {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  min-height: 50px;
}
.target-notes {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.audio-controls {
  margin-top: 10px;
}
.audio-channel {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.audio-channel label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 70px;
}
.audio-channel input[type="range"] {
  flex: 1;
}
.audio-channel .mute-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 1rem;
  min-width: 34px;
  text-align: center;
  color: var(--accent-cyan);
  transition: all 0.15s;
}
.audio-channel .mute-btn:hover { border-color: var(--accent-cyan); }
.audio-channel .mute-btn.muted { 
  opacity: 0.35; 
  color: var(--text-muted);
  border-color: var(--border-color);
}

.btn-bpm {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 8px;
  cursor: pointer;
  min-width: 36px;
  text-align: center;
  transition: border-color 0.15s;
}
.btn-bpm:hover { border-color: var(--accent-cyan); }

/* Keyboard hint */
.kbd-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
  padding: 3px;
}

/* Level description */
.level-desc {
  font-size: 0.8rem;
  color: var(--accent-green);
  margin-top: 3px;
  font-style: italic;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background:
    radial-gradient(ellipse at 55% 0%, rgba(103, 232, 249, 0.12), transparent 50%),
    radial-gradient(ellipse at 20% 100%, rgba(232, 197, 71, 0.06), transparent 40%),
    linear-gradient(165deg, #0b1020 0%, #0e1528 40%, #0a0e1c 100%); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

/* Roman numeral harmonic function colors */
.prog-roman {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  margin-left: 2px;
  padding: 1px 3px;
  border-radius: 2px;
  vertical-align: middle;
  opacity: 0.85;
}
.func-tonic { color: #67e8f9; background: rgba(103, 232, 249, 0.12); }
.func-dominant { color: #fb923c; background: rgba(251, 146, 60, 0.12); }
.func-subdominant { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.func-other { color: #a78bfa; background: rgba(167, 139, 250, 0.12); }

/* Muted channel */
.audio-channel.channel-muted input[type="range"] {
  opacity: 0.3;
  pointer-events: none;
}
.audio-channel.channel-muted label {
  opacity: 0.5;
}

/* Performance mode (fullscreen focus) */
body.performance-mode .setup-panel {
  display: none;
}
body.performance-mode .right-panel {
  display: none;
}
body.performance-mode .perf-hide {
  display: none;
}
body.performance-mode .app-container {
  grid-template-columns: 1fr;
  max-width: 900px;
}
body.performance-mode .app-header h1 span {
  display: none;
}
body.performance-mode .chord-card .chord-name {
  font-size: 2.8rem;
}
body.performance-mode .beat-info-item .value {
  font-size: 1.8rem;
}
body.performance-mode #btnExit2 {
  display: inline-block !important;
}

/* Rutina auto badge */
.rutina-badge {
  display: none;
  font-size: 0.6rem;
  background: rgba(103, 232, 249, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  animation: pulse-badge 2s infinite;
  vertical-align: middle;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Theme: High Contrast */
body.theme-high-contrast {
  --bg-primary: #0a0a0a;
  --bg-input: #1a1a1a;
  --bg-card: #0d0d0d;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
}
body.theme-high-contrast {
  --bg-secondary: #111111;
  --border-color: #333333;
}

/* Theme: Soft */
body.theme-soft {
  --bg-primary: #1a1a2e;
  --bg-secondary: #222244;
  --bg-card: #2a2a4e;
  --bg-input: #333355;
  --text-primary: #d0d0e0;
  --text-secondary: #9999bb;
  --text-muted: #777799;
  --border-color: #444466;
}

/* Fretboard dimmed for inactive strings (prog-dimmed) */
.prog-dimmed {
  opacity: 0.3;
  pointer-events: none;
}

/* Small utility */
.btn-sm {
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
}
.btn-sm:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Responsive: on mobile, hide fretboard mode toggles */
@media (max-width: 800px) {
  .fretboard-mode-toggle { display: none; }
  .fretboard-legend { font-size: 0.6rem; gap: 6px; }
}

/* 3-column center top row */
.ct-col-left { display:flex; align-items:center; }
.ct-col-center { display:flex; flex-direction:row; align-items:center; justify-content:center; gap:10px; }
.ct-col-right { display:flex; align-items:center; gap:8px; }

/* Tuner display */
.tuner-display {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  line-height:1;
}
.tuner-note {
  font-size:2.4rem;
  font-weight:800;
  font-family:'Courier New',monospace;
  color:var(--accent-cyan);
  letter-spacing:2px;
  min-width:60px;
}
.tuner-cents {
  font-size:1.6rem;
  font-weight:800;
  font-family:'Courier New',monospace;
  margin-top:-4px;
}

/* Tuner circle button */
.btn-tuner-circle {
  width:40px; height:40px;
  border-radius:50%;
  border:1px solid var(--border-color);
  background:var(--bg-input);
  color:var(--accent-cyan);
  font-size:1.2rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.15s;
}
.btn-tuner-circle:hover { border-color:var(--accent-cyan); background:rgba(103,232,249,0.1); }
.btn-tuner-circle.active { background:var(--accent-cyan); color:#0b1020; }

/* Play circle button */
.btn-play-circle {
  width:48px; height:48px;
  border-radius:50%;
  border:2px solid var(--accent-cyan);
  background:var(--accent-cyan);
  color:#0b1020;
  font-size:1.3rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.15s;
  flex-shrink:0;
}
.btn-play-circle:hover:not(:disabled) { background:#56d8e8; transform:scale(1.05); }
.btn-play-circle:disabled { opacity:0.4; cursor:not-allowed; transform:none; }

/* Stop square button */
.btn-stop-square {
  width:48px; height:48px;
  border-radius:8px;
  border:2px solid var(--text-muted);
  background:var(--bg-input);
  color:var(--text-secondary);
  font-size:1.3rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.15s;
  flex-shrink:0;
}
.btn-stop-square:hover:not(:disabled) { border-color:var(--accent-cyan); color:var(--accent-cyan); }
.btn-stop-square:disabled { opacity:0.3; cursor:not-allowed; }

/* Favorite small button */
.btn-fav-sm {
  background:transparent;
  border:1px solid var(--border-color);
  border-radius:6px;
  color:var(--text-muted);
  cursor:pointer;
  font-size:1.1rem;
  padding:4px 6px;
  transition:all 0.15s;
  line-height:1;
}
.btn-fav-sm:hover { border-color:var(--accent-cyan); color:var(--accent-cyan); }


/* ── iJazz-inspired refinements v395 ── */

/* Eyebrow text (small uppercase labels) */
.eyebrow {
  display: block;
  color: var(--text-muted);
  font-size: var(--eyebrow-size);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

/* Performance mode button */
.btn-perf {
  min-height: 36px;
  border-radius: var(--radius);
  padding: 0 14px;
  border: none;
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  color: #0b1020;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(103, 232, 249, 0.25);
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-perf:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(103, 232, 249, 0.35);
}
.btn-perf.active {
  background: var(--bg-input);
  color: var(--text-muted);
  box-shadow: none;
}

/* Performance mode refinements */
body.performance-mode .app-container {
  max-width: 1200px;
}
body.performance-mode .chord-card .chord-name {
  font-size: 3.2rem;
}
body.performance-mode .chord-card.current-active .chord-name {
  font-size: 4rem;
}
body.performance-mode .fretboard-wrap svg {
  min-height: 360px;
}
body.performance-mode .beat-info-item .value {
  font-size: 2rem;
}

/* Mobile sticky control bar */
.mobile-bar {
  display: none;
}
@media (max-width: 820px) {
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    position: fixed;
    z-index: 100;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(11, 16, 32, 0.95);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    box-shadow: var(--shadow-xl);
  }
  .mobile-bar-btn {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s;
  }
  .mobile-bar-btn:hover {
    border-color: var(--accent-cyan);
  }
  .mobile-bar-btn.play-btn-mob {
    background: var(--accent-cyan);
    color: #0b1020;
    border-color: var(--accent-cyan);
    font-weight: 700;
  }
  .mobile-bar-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }
  .mobile-bar-label span:first-child {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .mobile-bar-label span:last-child {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan);
  }
  .mobile-bar select {
    width: auto;
    min-width: 60px;
    padding: 6px;
    font-size: 0.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
  }
  .app-container { padding-bottom: 70px; }
}

/* Chord tone chips (iJazz-style) */
.tone-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  font-family: monospace;
}
.tone-chip.target {
  color: #06110f;
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  font-weight: 600;
}
.tone-chip.root { border-color: var(--accent-gold); color: var(--accent-gold); }
.tone-chip.third { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.tone-chip.fifth { border-color: var(--accent-green); color: var(--accent-green); }
.tone-chip.seventh { border-color: var(--accent-pink); color: var(--accent-pink); }
