/* Halten zum Sprechen: Statusanzeige über dem Aufnahmeknopf. Ruhig, einfarbig, mit Hell- und Dunkelmodus. */
#quickVoiceButton {
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.holdVoiceHud {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 90;
  width: calc(100vw - 24px);
  max-width: 420px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card, 14px);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .16);
  transform: translateX(-50%);
  font-size: 14px;
  line-height: 1.35;
}
.holdVoiceHud[hidden] { display: none; }
.holdVoiceHud.hvShown { animation: hvIn .18s ease-out; }
.holdVoiceHud .hvRow { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.holdVoiceHud .hvDot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c0392b;
  animation: hvPulse 1.4s ease-in-out infinite;
}
.holdVoiceHud[data-mode="busy"] .hvDot { background: var(--muted); animation: hvPulse .9s ease-in-out infinite; }
.holdVoiceHud[data-mode="done"] .hvDot { background: var(--strong); animation: none; }
.holdVoiceHud[data-mode="error"] .hvDot { background: #c0392b; animation: none; }
.holdVoiceHud .hvTime {
  flex: 0 0 auto;
  min-width: 34px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.holdVoiceHud[data-mode="busy"] .hvTime,
.holdVoiceHud[data-mode="done"] .hvTime,
.holdVoiceHud[data-mode="error"] .hvTime { display: none; }
.holdVoiceHud .hvText {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  transform: translateX(calc(var(--hv-cancel, 0) * -16px));
  transition: color .12s ease;
}
.holdVoiceHud[data-mode="busy"] .hvText,
.holdVoiceHud[data-mode="done"] .hvText,
.holdVoiceHud[data-mode="error"] .hvText { color: var(--text); transform: none; }
.holdVoiceHud.hvArmed { border-color: #c0392b; }
.holdVoiceHud.hvArmed .hvText { color: #c0392b; }
.holdVoiceHud .hvLock {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  opacity: calc(.45 + var(--hv-lock, 0) * .55);
  transform: translateY(calc(var(--hv-lock, 0) * -6px));
}
.holdVoiceHud .hvLock[hidden] { display: none; }
.holdVoiceHud .hvSound {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  opacity: .55;
  cursor: pointer;
}
.holdVoiceHud .hvSound.on { opacity: 1; color: var(--text); }
.holdVoiceHud[data-mode="locked"] .hvSound,
.holdVoiceHud[data-mode="recording"] .hvSound { display: inline-flex; }
.holdVoiceHud .hvActions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.holdVoiceHud .hvActions[hidden] { display: none; }
.holdVoiceHud .hvActions button {
  min-height: var(--control-sm, 36px);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 10px);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.holdVoiceHud .hvActions button.hvPrimary {
  border-color: var(--strong);
  background: var(--strong);
  color: var(--on-strong);
}
@keyframes hvIn { from { opacity: 0; transform: translateX(-50%) translateY(6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes hvPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .holdVoiceHud.hvShown,
  .holdVoiceHud .hvDot { animation: none; }
  .holdVoiceHud .hvText, .holdVoiceHud .hvLock { transition: none; transform: none; }
}
