.voicePanelRow {
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.voiceControls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.voiceControlsLeft {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.voiceControlsRight {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.voiceLabel {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-right: 6px;
}

.voiceModeGroup {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.voiceModeButton {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms ease;
}

.voiceModeButton.isActive {
  background: rgba(99, 102, 241, 0.25);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.4);
}

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

.voiceMicBtn.isListening {
  background: rgba(16, 185, 129, 0.18);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.4);
}

.voiceStatus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.voiceDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.7);
}

.voiceDot.isReady {
  background: #22c55e;
}

.voiceDot.isError {
  background: #ef4444;
}

.voiceMeter {
  position: relative;
  height: 6px;
  width: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.voiceMeterFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  transition: width 80ms linear;
}

.voiceProgress {
  position: relative;
  height: 6px;
  width: 140px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: none;
}

.voiceProgress.isIdle {
  opacity: 0.4;
}

.voiceProgress.isIndeterminate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.7), transparent);
  animation: voiceSweep 1.6s linear infinite;
}

.voiceProgressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  transition: width 180ms ease;
}

.voiceProgressLabel {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes voiceSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.voiceHint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.voiceSelect {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.ttsPanelRow {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.ttsHeader {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

.ttsStatus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.ttsDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.7);
}

.ttsDot.isReady {
  background: #22c55e;
}

.ttsDot.isError {
  background: #ef4444;
}

.ttsProgress {
  position: relative;
  height: 6px;
  width: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ttsProgressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22d3ee, #f472b6);
  transition: width 180ms ease;
}

.ttsProgressLabel {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.ttsToggles {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ttsControls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ttsHint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.ttsSpeed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.voiceToggles {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.voiceToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.voiceToggle input {
  accent-color: #6366f1;
}

@media (max-width: 900px) {
  .voicePanelRow {
    align-items: flex-start;
  }

  .voiceActions {
    width: 100%;
    justify-content: flex-start;
  }
}
