* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f9fa;
  color: #1a1a1a;
  min-height: 100vh;
  padding: 20px;
}
.container { max-width: 800px; margin: 0 auto; }
/* Header with logo */
.header {
  text-align: center;
  margin-bottom: 20px;
  padding-top: 12px;
}
.logo {
  height: 48px;
  filter: invert(1);
  opacity: 0.95;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  min-height: 44px; /* WCAG touch target minimum */
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  background: #ffffff;
  transition: all 0.2s ease;
}
.nav-btn svg {
  flex-shrink: 0;
}
.nav-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}
.nav-btn-primary {
  background: #111827;
  color: white;
  border-color: #111827;
}
.nav-btn-primary:hover {
  background: #1f2937;
  color: white;
  border-color: #1f2937;
}
h1 { text-align: center; margin-bottom: 10px; color: #111827; font-weight: 600; font-size: 1.75rem; letter-spacing: -0.025em; }
.subtitle { text-align: center; color: #4b5563; margin-bottom: 28px; font-size: 15px; line-height: 1.5; } /* #4b5563 = 7:1 contrast ratio */
.panel {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
}
/* Connection status - centered minimal */
.connection-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}
/* Record control - centered layout */
.record-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}
.record-text {
  font-weight: 600;
}
/* Advanced settings - collapsible */
.advanced-settings {
  margin-top: 16px;
  border-top: 1px solid #f3f4f6;
  padding-top: 16px;
}
.advanced-settings summary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.advanced-settings summary::-webkit-details-marker {
  display: none;
}
.advanced-settings summary:hover {
  color: #6b7280;
}
.advanced-settings summary svg {
  width: 14px;
  height: 14px;
}
.advanced-settings[open] summary {
  margin-bottom: 12px;
}
.settings-content {
  padding-left: 20px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.setting-row:last-child {
  margin-bottom: 0;
}
.setting-row label {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  min-width: 140px;
}
.checkbox-row {
  margin-top: 12px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #111827;
  cursor: pointer;
}
.checkbox-label span {
  font-size: 13px;
  color: #6b7280;
}
.button-row { display: flex; gap: 10px; }
button {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
button:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-record {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 200px;
  min-height: 56px; /* WCAG touch target - larger for primary action */
  padding: 16px 32px;
  border-radius: 50px;
  background: #111827;
  color: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  flex: none;
  transition: transform 0.05s ease-out, box-shadow 0.1s ease, background 0.15s ease;
  will-change: transform, box-shadow; /* GPU acceleration for voice-reactive animation */
}
.btn-record:hover:not(:disabled) { background: #1f2937; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.12); }
.btn-record.recording {
  background: #dc2626;
  color: white;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2), 0 0 16px rgba(220, 38, 38, 0.15);
  animation: recordingPulse 2s ease-in-out infinite;
}
@keyframes recordingPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2), 0 0 16px rgba(220, 38, 38, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.15), 0 0 24px rgba(220, 38, 38, 0.2); }
}
.btn-clear { background: #f9fafb; color: #4b5563; border: 1px solid #e5e7eb; max-width: 120px; font-weight: 500; }
.btn-clear:hover:not(:disabled) { background: #f3f4f6; border-color: #d1d5db; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}
.status-left { display: flex; align-items: center; gap: 10px; }
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
  will-change: background, box-shadow;
}
.status-dot.connected { background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.12), 0 0 8px rgba(34, 197, 94, 0.08); }
.status-dot.connecting { background: #f59e0b; animation: connectingPulse 1.2s ease-in-out infinite; }
@keyframes connectingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}
.status-dot.error { background: #ef4444; box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12), 0 0 8px rgba(239, 68, 68, 0.08); }
.status-text { font-size: 13px; color: #374151; } /* #374151 = better contrast */
.error-text { color: #dc2626; font-size: 12px; margin-top: 10px; padding: 8px 12px; background: #fef2f2; border-radius: 6px; border-left: 3px solid #dc2626; }
.error-text:empty { display: none; }
.transcript-area {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  font-size: 18px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: #1a1a1a;
}
.audio-level {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 18px 0;
  overflow: hidden;
}
.audio-level-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  width: 0%;
  transition: width 0.05s ease-out;
  border-radius: 2px;
}
.info {
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  padding-top: 4px;
}
label { display: block; margin-bottom: 10px; font-size: 13px; color: #6b7280; font-weight: 500; letter-spacing: 0.01em; }
/* VAD Settings */
.vad-settings {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.vad-settings label {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}
.vad-select {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  background: white;
  color: #1a1a1a;
  cursor: pointer;
  flex: 1;
  max-width: 200px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vad-select:hover {
  border-color: #d1d5db;
}
.vad-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.vad-description {
  font-size: 11px;
  color: #9ca3af;
  margin-left: auto;
}
/* Text animation for streaming deltas */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes textGlow {
  from { opacity: 0.6; }
  to { opacity: 1; }
}
.new-text {
  animation: fadeIn 0.3s ease-out, textGlow 0.3s ease-out;
  display: inline;
}
/* Smooth scroll for transcript */
.transcript-area { scroll-behavior: smooth; }
/* Better transitions */
.status-dot { transition: background 0.3s ease; }
button:active:not(:disabled) { transform: scale(0.97); transition-duration: 0.05s; }
button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
/* Speech indicator */
.speech-indicator {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  margin-left: 10px;
  transition: all 0.25s ease;
  will-change: transform, background, box-shadow;
}
.speech-indicator.active {
  display: inline-block;
}
.speech-indicator.speaking {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15), 0 0 12px rgba(34, 197, 94, 0.12);
  animation: speechPulse 0.8s infinite;
}
@keyframes speechPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}
/* Turn and confidence text styles */
.turn-text { color: #6b7280; display: inline; }  /* Gray - interim/in-progress */
.final-text { color: #1a1a1a; display: inline; } /* Black - confirmed final */
.confidence-high { color: #22c55e !important; }
.confidence-medium { color: #eab308 !important; }
.confidence-low { color: #ef4444 !important; }
/* Update glow effect for final transcription */
@keyframes updateGlow {
  0% { background-color: rgba(34, 197, 94, 0.2); }
  100% { background-color: transparent; }
}
.updated-glow {
  animation: updateGlow 0.8s ease-out;
  border-radius: 3px;
}
/* Word-level glow for corrections - subtle blue, short duration */
@keyframes wordGlow {
  0% { background-color: rgba(59, 130, 246, 0.15); border-radius: 2px; }  /* Light blue */
  100% { background-color: transparent; }
}
.word-changed {
  animation: wordGlow 0.5s ease-out;  /* Quick, subtle highlight */
  display: inline;
}
/* Recording timer */
.recording-timer {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 600;
}
/* Latency display */
.latency-info {
  color: #6b7280;
  font-weight: 500;
}
/* Mobile responsive */
@media (max-width: 600px) {
  body { padding: 16px 12px; }
  .header { margin-bottom: 12px; }
  .button-row { flex-direction: column; gap: 12px; }
  .btn-clear { max-width: none; }
  h1 { font-size: 1.5rem; margin-bottom: 8px; }
  .subtitle { font-size: 13px; margin-bottom: 20px; }
  .nav-links { flex-direction: column; gap: 10px; margin-bottom: 24px; }
  .nav-btn { width: 100%; justify-content: center; }
  .panel { padding: 18px; }
  .transcript-area { font-size: 16px; min-height: 220px; padding: 16px; }
  .logo { height: 40px; }
  .record-control { padding: 12px 0; }
  .btn-record { width: 100%; max-width: 280px; }
  .transcript-header { flex-wrap: wrap; }
  .transcript-meta { width: 100%; margin-left: 0; justify-content: flex-start; order: 3; margin-top: 8px; }
  .transcript-actions { margin-left: auto; }
  .advanced-settings summary { font-size: 13px; }
  .setting-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .setting-row label { min-width: 100%; margin-bottom: 4px; }
  .vad-select { width: 100%; max-width: none; }
}
/* Keyboard hint */
.keyboard-hint {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}
.keyboard-hint kbd {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
/* Recording panel glow - subtle Apple style */
.panel.recording-active {
  border-color: rgba(220, 38, 38, 0.25);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.08), 0 0 20px rgba(220, 38, 38, 0.06), 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Transcript panel header */
.transcript-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.transcript-header label {
  margin: 0;
}
.transcript-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.perf-badge, .timer-badge {
  font-size: 11px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}
.perf-badge:empty {
  display: none;
}
.timer-badge {
  color: #dc2626;
  background: #fef2f2;
}
.transcript-actions {
  display: flex;
  gap: 8px;
}
.icon-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  min-height: 44px; /* WCAG touch target minimum */
  min-width: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: none;
}
.icon-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}
.icon-btn:active {
  transform: scale(0.97);
}
.icon-btn svg {
  width: 14px;
  height: 14px;
}
/* Better empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 240px;
  color: #9ca3af;
}
.empty-state svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
  stroke: currentColor;
}
.empty-state span {
  font-size: 14px;
}
.empty-state.hidden {
  display: none;
}
/* VAD Advanced Settings (inside details) */
.vad-type-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
}
.setting-row input[type="range"] {
  flex: 1;
  max-width: 120px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #e5e7eb;
  border-radius: 3px;
  outline: none;
}
.setting-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #111827;
  border-radius: 50%;
  cursor: pointer;
}
.setting-row input[type="number"] {
  width: 80px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}
.setting-row input[type="number"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.setting-select {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  background: white;
  cursor: pointer;
}
.setting-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.setting-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 12px;
  color: #6b7280;
  min-width: 30px;
}
/* Legacy hint styles - kept for manual-vad-settings hint only */
.setting-hint {
  font-size: 12px;
  color: #6b7280;
  font-style: normal;
  margin: 0;
}

/* Touch device hover alternatives - prevent sticky hover states */
@media (hover: none) {
  .nav-btn:hover {
    background: #ffffff;
    border-color: #e5e7eb;
    transform: none;
  }
  .nav-btn-primary:hover {
    background: #111827;
    border-color: #111827;
  }
  .nav-btn:active {
    background: #f3f4f6;
    transform: scale(0.98);
  }
  .nav-btn-primary:active {
    background: #374151;
    transform: scale(0.98);
  }
  .icon-btn:hover {
    background: #fff;
    border-color: #e5e7eb;
  }
  .icon-btn:active {
    background: #f3f4f6;
    transform: scale(0.97);
  }
  .btn-record:hover:not(:disabled) {
    transform: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  }
  .btn-record:active:not(:disabled) {
    transform: scale(0.98);
  }
  /* Hide keyboard hint on touch devices */
  .keyboard-hint {
    display: none;
  }
}

/* Mobile: Tooltips now handle hints via info buttons */

/* Small phones (iPhone SE, etc.) */
@media (max-width: 375px) {
  body { padding: 12px 10px; }
  h1 { font-size: 1.35rem; }
  .subtitle { font-size: 12px; }
  .panel { padding: 14px; }
  .btn-record {
    width: 100%;
    max-width: none;
    padding: 14px 24px;
  }
  .transcript-area {
    font-size: 15px;
    min-height: 180px;
    padding: 14px;
  }
  .logo { height: 36px; }
  .nav-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Tablets */
@media (min-width: 601px) and (max-width: 1024px) {
  .container { max-width: 700px; }
  .transcript-area {
    min-height: 320px;
    max-height: 500px;
  }
  .nav-links {
    flex-direction: row;
    justify-content: center;
  }
  .nav-btn { width: auto; }
}

/* Landscape phones - compact layout */
@media (orientation: landscape) and (max-height: 500px) {
  body { padding: 10px 16px; }
  .header { margin-bottom: 8px; padding-top: 4px; }
  .logo { height: 32px; }
  h1 { font-size: 1.25rem; margin-bottom: 4px; }
  .subtitle { font-size: 12px; margin-bottom: 12px; }
  .nav-links { margin-bottom: 16px; gap: 8px; }
  .panel { padding: 12px 16px; margin-bottom: 12px; }
  .record-control { padding: 4px 0; gap: 10px; }
  .btn-record {
    padding: 12px 28px;
    min-height: 44px;
  }
  .transcript-area {
    min-height: 120px;
    max-height: 200px;
    padding: 12px;
  }
  .empty-state { min-height: 100px; }
  .empty-state svg { width: 28px; height: 28px; margin-bottom: 8px; }
  .advanced-settings { margin-top: 10px; padding-top: 10px; }
}

/* Fix iOS zoom on input focus - inputs must be 16px+ */
input[type="number"],
input[type="text"],
input[type="range"],
select,
textarea {
  font-size: 16px;
}
.vad-select,
.setting-select,
.setting-row input[type="number"] {
  font-size: 16px;
}

/* ===========================================
   SETTINGS REDESIGN - Tooltips & Uniform Layout
   =========================================== */

/* Settings sections */
.settings-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.settings-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.settings-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Uniform setting row */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.setting-row:last-child {
  margin-bottom: 0;
}

/* Setting label with info button */
.setting-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.setting-label label {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
  white-space: nowrap;
}

/* Info button (tooltip trigger) */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.info-btn:hover {
  color: #6b7280;
}
.info-btn:focus {
  outline: none;
}
.info-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 2px;
}
.info-btn svg {
  width: 14px;
  height: 14px;
}

/* Tooltip (appears on hover/tap) */
.info-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  padding: 8px 12px;
  background: #1f2937;
  color: #f9fafb;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
  white-space: normal;
  text-align: left;
}
/* Tooltip arrow */
.info-btn::before {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #1f2937;
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Show tooltip on hover (desktop) */
@media (hover: hover) {
  .info-btn:hover::after,
  .info-btn:hover::before {
    opacity: 1;
    visibility: visible;
  }
}

/* Show tooltip when expanded (mobile tap) */
.info-btn[aria-expanded="true"]::after,
.info-btn[aria-expanded="true"]::before {
  opacity: 1;
  visibility: visible;
}

/* Tooltip positioning for edge cases */
.info-btn.tooltip-left::after {
  left: 0;
  transform: translateX(0);
}
.info-btn.tooltip-left::before {
  left: 8px;
  transform: translateX(0);
}
.info-btn.tooltip-right::after {
  left: auto;
  right: 0;
  transform: translateX(0);
}
.info-btn.tooltip-right::before {
  left: auto;
  right: 8px;
  transform: translateX(0);
}

/* Setting controls alignment */
.setting-row .setting-select,
.setting-row .vad-select {
  flex: 1;
  max-width: 200px;
}
.setting-row input[type="number"] {
  width: 80px;
  flex: none;
}
.setting-row input[type="range"] {
  flex: 1;
  max-width: 100px;
}

/* VAD sub-settings panel */
.vad-type-settings {
  margin-top: 12px;
  margin-left: 0;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
}
.vad-type-settings .setting-row {
  margin-bottom: 10px;
}
.vad-type-settings .setting-row:last-child {
  margin-bottom: 0;
}
.vad-type-settings .setting-label label {
  font-size: 12px;
}

/* Checkbox row */
.checkbox-row {
  margin-top: 0;
}
.checkbox-row .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkbox-row .checkbox-label span {
  font-size: 13px;
  color: #4b5563;
}

/* Disabled setting style */
.setting-row.disabled {
  opacity: 0.5;
}
.setting-row.disabled label,
.setting-row.disabled .checkbox-label span {
  color: #9ca3af;
}

/* Mobile responsive settings */
@media (max-width: 600px) {
  .settings-section {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }
  .settings-section-title {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .setting-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .setting-label {
    flex-basis: 100%;
    margin-bottom: 2px;
  }
  .setting-row .setting-select,
  .setting-row .vad-select {
    max-width: none;
    width: 100%;
  }
  .setting-row input[type="range"] {
    max-width: none;
    flex: 1;
  }
  /* Tooltip below on mobile */
  .info-btn::after {
    left: 0;
    transform: translateX(0);
    max-width: calc(100vw - 80px);
  }
  .info-btn::before {
    left: 8px;
    transform: translateX(0);
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .transcript-area {
    scroll-behavior: auto;
  }
}
