/* ====================================================================
   VOICE TRAINER STUDIO - STUDIO PRO LIGHT 2.0
   Canto, Escalas e Melismas (macOS Glassmorphism & Titanium Metal)
   ==================================================================== */

:root {
  --font-sans: 'SF Pro Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Cores macOS Studio Pro Light */
  --bg-desktop: #ECEEF2;
  --window-bg: rgba(255, 255, 255, 0.88);
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.10);

  /* Titânio Escovado (Sidebar) */
  --sidebar-gradient: linear-gradient(180deg, #DCE0E4 0%, #CCD1D7 100%);
  --sidebar-border: rgba(180, 185, 195, 0.5);

  /* Acentos Apple Pro */
  --accent-blue: #007AFF;
  --accent-blue-hover: #0062CC;
  --accent-cyan: #32ADE6;
  --accent-amber: #FF9500;
  --amber-glow: rgba(255, 149, 0, 0.45);
  --accent-green: #34C759;
  --accent-green-glow: rgba(52, 199, 89, 0.45);
  --accent-red: #FF3B30;
  --accent-purple: #AF52DE;
  
  /* Registros Vocais (Cores Consagradas) */
  --reg-chest: #FF3B30;    /* Vermelho: Voz de Peito */
  --reg-mix: #FF9500;      /* Âmbar/Laranja: Voz Mista / Passaggio */
  --reg-head: #007AFF;     /* Azul: Voz de Cabeça */
  --reg-falsetto: #AF52DE; /* Roxo: Falsete */
  --reg-whistle: #32ADE6;  /* Ciano: Registro de Apito */

  /* Textos */
  --text-main: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary: #86868B;
  --card-bg: rgba(255, 255, 255, 0.78);
  --card-border: rgba(210, 215, 225, 0.65);

  /* Traffic lights */
  --tl-red: #FF5F56;
  --tl-yellow: #FFBD2E;
  --tl-green: #27C93F;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-desktop);
  background-image: 
    radial-gradient(at 0% 0%, rgba(200, 220, 255, 0.5) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(220, 235, 245, 0.6) 0px, transparent 50%);
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Janela macOS */
.macos-window {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--window-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

/* Barra de Título macOS */
.window-titlebar {
  height: 48px;
  background: rgba(245, 246, 248, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
  z-index: 50;
  flex-shrink: 0;
}

.traffic-lights {
  display: flex;
  gap: 8px;
  align-items: center;
}

.traffic-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.traffic-btn:hover {
  transform: scale(1.12);
  opacity: 0.85;
}

.traffic-btn.red { background: var(--tl-red); }
.traffic-btn.yellow { background: var(--tl-yellow); }
.traffic-btn.green { background: var(--tl-green); }

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 6px;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-icon {
  font-size: 20px;
}

.title-text {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.title-badge {
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.titlebar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-profile-badge {
  font-size: 12px;
  font-weight: 600;
  color: #0F5BBE;
  background: rgba(0, 122, 255, 0.12);
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.engine-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(52, 199, 89, 0.15);
  color: #1A7F37;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid rgba(52, 199, 89, 0.3);
}

/* Corpo da Janela */
.window-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Sidebar Metálica (Titânio Escovado) */
.sidebar-metal {
  width: 260px;
  background: var(--sidebar-gradient);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 40;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #007AFF, #5856D6);
  color: #FFF;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.brand-info h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.brand-info p {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.sidebar-nav {
  padding: 12px 10px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #333336;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-main);
}

.nav-item.active {
  background: #FFF;
  color: var(--accent-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.nav-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.85;
}

.nav-counter {
  margin-left: auto;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.singer-quick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.singer-avatar {
  font-size: 20px;
}

.singer-details {
  display: flex;
  flex-direction: column;
}

.singer-details strong {
  font-size: 12px;
  color: var(--text-main);
}

.singer-details span {
  font-size: 10px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Área Principal de Conteúdo */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: rgba(250, 251, 253, 0.85);
}

/* Barra de Transporte Flutuante Pro */
.transport-bar {
  height: 58px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 16px;
  z-index: 30;
  flex-shrink: 0;
}

.transport-left,
.transport-center,
.transport-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.transport-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #FFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.12s ease, background 0.12s ease;
}

.transport-btn:hover {
  transform: scale(1.05);
  background: #F7F7F9;
}

.transport-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--text-main);
}

.transport-btn.play-btn {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.transport-btn.play-btn svg {
  fill: #FFF;
}

.transport-btn.play-btn.playing {
  background: var(--accent-amber);
  border-color: var(--accent-amber);
}

.transport-btn.metronome-btn {
  width: auto;
  border-radius: 8px;
  padding: 0 12px;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.transport-btn.metronome-btn.active {
  background: var(--accent-amber);
  color: #FFF;
  border-color: var(--accent-amber);
}

.transport-btn.metronome-btn.active svg {
  fill: #FFF;
}

/* Controles de BPM & Transposição */
.bpm-control,
.transpose-control,
.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 8px;
  border-radius: 8px;
}

.bpm-step-btn,
.key-step-btn,
.tap-tempo-btn {
  background: #FFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: background 0.1s ease;
}

.bpm-step-btn:hover,
.key-step-btn:hover,
.tap-tempo-btn:hover {
  background: #EFEFEF;
}

.bpm-display-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
  min-width: 48px;
  justify-content: center;
}

.bpm-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.bpm-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.control-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.key-display {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
  min-width: 58px;
  text-align: center;
}

.mini-slider {
  width: 70px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

.transport-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Botão Microfone e Live Pitch com Largura Fixa Anti-Tremor */
.mic-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 154px;
  min-width: 154px;
  max-width: 154px;
  height: 36px;
  background: #FFF;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  white-space: nowrap;
}

.mic-toggle-btn.active {
  background: #34C759;
  color: #FFF;
  border-color: #34C759;
  box-shadow: 0 0 14px rgba(52, 199, 89, 0.4);
}

.live-pitch-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 184px;
  min-width: 184px;
  max-width: 184px;
  height: 36px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 0 16px;
  gap: 16px;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.pitch-note {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-main);
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  text-align: left;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
}

.pitch-cents {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
}

/* Abas de Conteúdo */
.tab-pane {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.tab-pane.active {
  display: flex;
  flex-direction: column;
}

/* Layout Live Studio (Pitch Ribbon & Piano) */
.studio-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.pitch-monitor-card {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-height: 280px;
}

.card-header-studio {
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8E8E93;
}

.status-indicator.live {
  background: #34C759;
  box-shadow: 0 0 8px #34C759;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.card-header-studio h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.accuracy-score-box,
.vibrato-box {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.score-num {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-green);
  font-size: 13px;
}

.vib-val {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-purple);
  font-size: 13px;
}

/* Wrapper do Canvas de Afinação */
.pitch-canvas-wrapper {
  flex: 1;
  position: relative;
  background: #18191D;
  overflow: hidden;
}

#pitchCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Overlay HUD de Tom */
.pitch-hud-overlay {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(20, 21, 26, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.hud-main-note {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 900;
  color: #FFF;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

.hud-freq-cents {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #A1A1A6;
}

.hud-register-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
}

.hud-tuning-status {
  font-size: 11px;
  font-weight: 600;
  color: #34C759;
}

/* Card Alvo no HUD */
.hud-target-card {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hud-target-label {
  font-size: 10px;
  font-weight: 800;
  color: #FF9500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hud-target-note {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  color: #FFE082;
}

.hud-target-freq {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

/* Banner de Exercício Ativo no Live Studio */
.active-exercise-header-banner {
  background: linear-gradient(90deg, rgba(255, 149, 0, 0.15), rgba(0, 122, 255, 0.12));
  border-bottom: 1px solid rgba(255, 149, 0, 0.35);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: #FF9500;
  color: #FFF;
  padding: 2px 7px;
  border-radius: 6px;
}

.banner-info strong {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 800;
}

.banner-sub {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--accent-blue);
  font-weight: 700;
}

.banner-phoneme-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-main);
}

.banner-match-status {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.banner-match-status.in-tune {
  background: #34C759;
  color: #FFF;
  box-shadow: 0 0 12px rgba(52, 199, 89, 0.6);
}

.banner-match-status.flat {
  background: #007AFF;
  color: #FFF;
}

.banner-match-status.sharp {
  background: #FF3B30;
  color: #FFF;
}

.banner-stop-btn {
  background: #FFF;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--accent-red);
  transition: background 0.12s ease;
}

.banner-stop-btn:hover {
  background: #FFEBEA;
}

/* Barra do Afinador Integrado */
.tuner-gauge-bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.gauge-mark {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.gauge-center-line {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #34C759;
}

.gauge-needle {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 4px;
  background: #34C759;
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 10px #34C759;
  transition: left 0.08s ease-out;
}

/* Card do Teclado Vocal Guide (61 Teclas) */
.vocal-keyboard-card {
  height: 195px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.keyboard-header {
  height: 38px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.keyboard-header h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.kb-hint {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: 8px;
}

.keyboard-legend {
  display: flex;
  gap: 6px;
}

.legend-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  color: #FFF;
}

.legend-badge.peito { background: var(--reg-chest); }
.legend-badge.mix { background: var(--reg-mix); }
.legend-badge.cabeca { background: var(--reg-head); }
.legend-badge.falsete { background: var(--reg-falsetto); }

.piano-keys-scrollable {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 12px 10px 12px;
  background: #23252B;
  display: flex;
  align-items: stretch;
}

.piano-keyboard-container {
  display: flex;
  position: relative;
  height: 100%;
  user-select: none;
}

/* Teclas Brancas e Pretas */
.white-key {
  width: 32px;
  height: 100%;
  background: linear-gradient(180deg, #FFFFFF 0%, #EBEBEB 100%);
  border: 1px solid #B0B5BF;
  border-radius: 0 0 5px 5px;
  margin-right: -1px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 6px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  transition: background 0.08s ease, transform 0.08s ease;
  z-index: 1;
}

.white-key:hover {
  background: #F4F6F9;
}

.white-key.active-played {
  background: #FFE082 !important;
  transform: translateY(2px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.white-key.active-sung {
  background: #A7F3D0 !important;
  border-color: #10B981 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6) !important;
  transform: translateY(2px);
}

.white-key-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #555;
  pointer-events: none;
}

.black-key {
  width: 20px;
  height: 60%;
  background: linear-gradient(180deg, #333333 0%, #151515 100%);
  border: 1px solid #000;
  border-radius: 0 0 4px 4px;
  position: absolute;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.45);
  transition: background 0.08s ease, transform 0.08s ease;
}

.black-key:hover {
  background: #444;
}

.black-key.active-played {
  background: #FFB300 !important;
  transform: translateY(2px);
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.7);
}

.black-key.active-sung {
  background: #059669 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.8) !important;
  transform: translateY(2px);
}

/* Tecla Alvo do Exercício de Escalas/Melismas */
.white-key.active-target {
  background: linear-gradient(180deg, #FFF9C4 0%, #FFE082 100%) !important;
  border: 2px solid #FF9500 !important;
  box-shadow: 0 0 16px rgba(255, 149, 0, 0.85) !important;
  transform: translateY(2px);
  z-index: 2;
  animation: targetGlow 1.2s infinite alternate;
}

.black-key.active-target {
  background: linear-gradient(180deg, #FF9500 0%, #D47A00 100%) !important;
  border: 2px solid #FFE082 !important;
  box-shadow: 0 0 16px rgba(255, 149, 0, 0.95) !important;
  transform: translateY(2px);
  z-index: 4;
  animation: targetGlow 1.2s infinite alternate;
}

/* Match Perfeito: Quando a voz do cantor atinge a nota alvo */
.white-key.target-matched,
.black-key.target-matched {
  background: #34C759 !important;
  border-color: #27C93F !important;
  box-shadow: 0 0 25px rgba(52, 199, 89, 0.95) !important;
  animation: matchFlash 0.6s infinite alternate !important;
  transform: translateY(2px);
}

@keyframes targetGlow {
  0% { box-shadow: 0 0 8px rgba(255, 149, 0, 0.5); }
  100% { box-shadow: 0 0 22px rgba(255, 149, 0, 0.95); }
}

@keyframes matchFlash {
  0% { box-shadow: 0 0 12px rgba(52, 199, 89, 0.7); }
  100% { box-shadow: 0 0 28px rgba(52, 199, 89, 1); }
}

/* Indicador de Registro no Teclado */
.key-register-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-bottom: 4px;
}

/* Layout das Abas Modulares */
.module-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.module-header-pro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 12px;
}

.module-header-pro h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
}

.module-header-pro p {
  font-size: 13px;
  color: var(--text-secondary);
}

.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.12s ease;
}

.filter-chip:hover {
  background: rgba(0, 0, 0, 0.09);
  color: var(--text-main);
}

.filter-chip.active {
  background: var(--accent-blue);
  color: #FFF;
  border-color: var(--accent-blue);
}

/* Auto-Ascend Banner */
.auto-ascend-banner {
  background: rgba(0, 122, 255, 0.08);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner-text {
  display: flex;
  flex-direction: column;
}

.banner-text strong {
  font-size: 13px;
  color: var(--accent-blue);
}

.banner-text span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Switch Toggle Apple Style */
.toggle-switch-wrap {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #D1D1D6;
  transition: 0.2s;
  border-radius: 24px;
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider-switch {
  background-color: #34C759;
}

input:checked + .slider-switch:before {
  transform: translateX(20px);
}

/* Grid de Escalas & Vocalizes */
.scales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.scale-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scale-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.scale-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.scale-card-head h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.scale-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

.scale-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.scale-steps-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.step-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: #FFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--text-main);
}

.scale-phonemes-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scale-phonemes-box label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.studio-select {
  background: #FFF;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
}

.scale-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.action-btn-pro {
  background: var(--text-main);
  color: #FFF;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.action-btn-pro:hover {
  opacity: 0.9;
}

.action-btn-accent {
  background: var(--accent-blue);
  color: #FFF;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

.action-btn-accent:hover {
  background: var(--accent-blue-hover);
}

.action-btn-accent.big {
  padding: 12px 24px;
  font-size: 14px;
}

.action-btn-secondary {
  background: #FFF;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text-main);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.action-btn-secondary:hover {
  background: #F2F2F7;
}

.action-btn-danger {
  background: #FFF;
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn-danger:hover {
  background: var(--accent-red);
  color: #FFF;
}

.full-width {
  width: 100%;
}

/* Aba de Melismas & Runs */
.melisma-speed-selector {
  display: flex;
  align-items: center;
  gap: 6px;
}

.speed-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.speed-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
}

.speed-btn.active {
  background: var(--accent-amber);
  color: #FFF;
  border-color: var(--accent-amber);
}

/* Card do Melisma Ativo com Degraus (Visual Run Staircase) */
.melisma-active-breakdown {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.breakdown-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.artist-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(0, 122, 255, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.breakdown-actions {
  display: flex;
  gap: 8px;
}

/* Escadaria de Degraus do Melisma (Visual Run Staircase) */
.melisma-staircase {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  background: #18191E;
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
}

.stair-step {
  flex: 1;
  min-width: 44px;
  background: linear-gradient(180deg, rgba(255, 149, 0, 0.8), rgba(255, 149, 0, 0.3));
  border: 1px solid rgba(255, 149, 0, 0.9);
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  box-shadow: 0 0 12px rgba(255, 149, 0, 0.2);
  transition: all 0.12s ease;
  position: relative;
}

.stair-step.active {
  background: linear-gradient(180deg, #34C759, rgba(52, 199, 89, 0.4)) !important;
  border-color: #34C759 !important;
  box-shadow: 0 0 20px #34C759 !important;
  transform: scaleY(1.05);
}

.stair-note {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #FFF;
}

.stair-degree {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.stair-syllable {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: #FFE082;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.coach-tip-card {
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tip-icon {
  font-size: 20px;
}

.tip-content strong {
  font-size: 13px;
  color: #C07000;
}

.tip-content p {
  font-size: 12px;
  color: var(--text-main);
  margin: 3px 0 6px 0;
}

.anatomy-tag {
  font-size: 11px;
  font-weight: 600;
  color: #8A5000;
  background: rgba(255, 149, 0, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.section-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 10px;
}

.melismas-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.melisma-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.melisma-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-amber);
}

.melisma-card.selected {
  border-color: var(--accent-amber);
  background: rgba(255, 149, 0, 0.06);
  box-shadow: 0 4px 14px rgba(255, 149, 0, 0.15);
}

/* Aba Respiração & Fisiologia */
.bento-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .bento-two-cols {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-inner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-inner-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.badge-mini {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 8px;
  border-radius: 10px;
}

.pacer-controls {
  display: flex;
  gap: 4px;
}

.pacer-time-chip {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.pacer-time-chip.active {
  background: var(--accent-blue);
  color: #FFF;
}

.pacer-visual-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  gap: 16px;
}

.breath-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(88, 86, 214, 0.25));
  border: 3px solid var(--accent-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 122, 255, 0.2);
  transition: transform 1s ease-in-out, background 0.5s ease;
}

.breath-circle.inhale {
  transform: scale(1.35);
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.3), rgba(0, 122, 255, 0.4));
  border-color: #34C759;
  box-shadow: 0 0 35px rgba(52, 199, 89, 0.4);
}

.breath-circle.hold {
  transform: scale(1.35);
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.3), rgba(255, 204, 0, 0.4));
  border-color: #FF9500;
  box-shadow: 0 0 35px rgba(255, 149, 0, 0.4);
}

.breath-circle.exhale {
  transform: scale(0.9);
  background: linear-gradient(135deg, rgba(175, 82, 222, 0.2), rgba(0, 122, 255, 0.2));
  border-color: #AF52DE;
}

.breath-state {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.breath-countdown {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-blue);
}

.breath-tip {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 320px;
}

/* TMF Display */
.tmf-timer-display {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tmf-digits {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 900;
  color: var(--text-main);
}

.tmf-rating {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
}

.tmf-btn-row {
  display: flex;
  gap: 8px;
}

.card-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 4px 0;
}

.vibrato-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.meter-box {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.meter-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-purple);
}

.meter-sub {
  font-size: 10px;
  color: var(--text-tertiary);
}

/* Bento Grid de Registros Vocais */
.technique-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.register-card {
  background: #FFF;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.register-card h4 {
  font-size: 14px;
  font-weight: 800;
}

.reg-muscle {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
}

.reg-range {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.register-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Aba Alcance Vocal (Range Finder) */
.range-test-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.range-steps-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .range-steps-row {
    grid-template-columns: 1fr;
  }
}

.range-step-box {
  background: #FFF;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
}

.step-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-blue);
  background: rgba(0, 122, 255, 0.1);
  padding: 3px 10px;
  border-radius: 12px;
}

.range-step-box h3 {
  font-size: 16px;
  font-weight: 800;
}

.range-step-box p {
  font-size: 12px;
  color: var(--text-secondary);
}

.detected-note-badge {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 900;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
  width: 110px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.range-result-box {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(52, 199, 89, 0.1));
  border: 1px solid rgba(0, 122, 255, 0.25);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.result-banner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.voice-type-avatar {
  font-size: 40px;
}

.result-info h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.result-info p {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.result-actions {
  display: flex;
  gap: 10px;
}

.voice-types-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.vtype-row {
  background: #FFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vtype-name {
  font-size: 13px;
  font-weight: 700;
}

.vtype-range {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-blue);
  font-weight: 600;
}

/* Aba Músicas & Highway Vocal */
.vocal-highway-card {
  background: #18191E;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.highway-topbar {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.song-now-playing strong {
  font-size: 15px;
  color: #FFF;
}

.song-now-playing span {
  font-size: 12px;
  color: #A1A1A6;
  margin-left: 8px;
}

.highway-stats {
  display: flex;
  gap: 10px;
}

.stat-pill {
  font-size: 12px;
  color: #DDD;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--font-mono);
}

.stat-pill strong {
  color: #34C759;
}

.highway-canvas-container {
  height: 320px;
  position: relative;
  background: radial-gradient(circle at center, #242630 0%, #121317 100%);
}

#highwayCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.karaoke-lyrics-bar {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #FFE082;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  padding: 0 20px;
  pointer-events: none;
}

.highway-bottom-controls {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.coach-song-note {
  font-size: 12px;
  color: #A1A1A6;
  margin-left: auto;
}

/* Aba Vocal FX Rack & Gravador */
.fx-rack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.fx-pedal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pedal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 8px;
}

.pedal-head h4 {
  font-size: 13px;
  font-weight: 700;
  flex: 1;
}

.knob-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.knob-group.three-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.knob-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.knob-item label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.knob-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

.vu-meter-bar {
  height: 8px;
  background: #E5E5EA;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.vu-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #34C759, #FFCC00, #FF3B30);
  border-radius: 4px;
  transition: width 0.05s linear;
}

.vocal-recorder-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recorder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recorder-header h3 {
  font-size: 16px;
  font-weight: 800;
}

.recorder-header p {
  font-size: 12px;
  color: var(--text-secondary);
}

.recorder-timer {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-red);
}

.recorder-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.audio-player-pro {
  height: 36px;
}

/* Aba Ear Lab */
.pitch-match-box {
  background: #18191E;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.target-note-display {
  font-family: var(--font-mono);
  font-size: 54px;
  font-weight: 900;
  color: #34C759;
  text-shadow: 0 0 20px rgba(52, 199, 89, 0.4);
}

.target-sub {
  font-size: 13px;
  color: #A1A1A6;
}

.pm-stats-row {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.pm-stat {
  font-size: 12px;
  color: #DDD;
  font-family: var(--font-mono);
}

.pm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drone-notes-row {
  display: flex;
  gap: 6px;
  margin: 10px 0;
}

.drone-btn {
  flex: 1;
  background: #FFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.drone-btn.active {
  background: var(--accent-blue);
  color: #FFF;
  border-color: var(--accent-blue);
}

.drone-tip {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 8px;
}

/* Aba Configurações & LGPD */
.lgpd-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.lgpd-pill {
  font-size: 12px;
  font-weight: 600;
  color: #1A7F37;
  background: rgba(52, 199, 89, 0.12);
  padding: 6px 10px;
  border-radius: 8px;
  width: fit-content;
}

.settings-actions-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* Responsividade Mobile e Telas Menores */
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: block;
  }

  .sidebar-metal {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .sidebar-metal.mobile-open {
    transform: translateX(0);
  }

  .transport-center {
    display: none;
  }
}

/* Badges de Adaptação de Tessitura Vocal */
.scale-adapted-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #007AFF;
  background: rgba(0, 122, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

.step-pill strong {
  color: #007AFF;
}

.melisma-adapted-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #FF9500;
  background: rgba(255, 149, 0, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Toast de Confirmação Studio */
.studio-toast-success {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(28, 28, 30, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFF;
  border: 1px solid rgba(52, 199, 89, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.4;
  z-index: 9999;
  animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.studio-toast-success.fade-out {
  opacity: 0;
  transform: translateY(12px);
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
