.autoplay-toggle {
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  color: #555;
  padding: 0.1rem 0.45rem;
  font-size: 0.95rem;
  cursor: pointer;
}
.autoplay-toggle:hover { color: #c8a96e; border-color: #c8a96e; }
.autoplay-toggle.on { color: #c8a96e; border-color: #c8a96e; }
.voice-quality {
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  color: #555;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.voice-quality:hover { color: #c8a96e; border-color: #c8a96e; }
.voice-quality.low { color: #888; }
.msg-audio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #777;
}
.audio-play-btn {
  background: #131313;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  color: #c8a96e;
  cursor: pointer;
  padding: 0.1rem 0.55rem;
  font-size: 0.85rem;
}
.audio-play-btn:hover { background: #1a1a1a; }
.audio-pill {
  background: #131313;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.7rem;
}
.audio-pill.fallback { color: #c46e6e; border-color: #5a2a2a; }
.audio-pill.truncated { color: #c8a96e; }
.mic-btn {
  background: transparent;
  border: 1px solid #c8a96e;
  color: #c8a96e;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.mic-btn:hover { background: #c8a96e; color: #0d0d0d; }
.mic-btn.recording {
  border-color: #c46e6e;
  color: #c46e6e;
  box-shadow: 0 0 0 2px rgba(196, 110, 110, 0.35);
  animation: mic-pulse 1.2s infinite;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(196, 110, 110, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(196, 110, 110, 0.15); }
}
/* Slice 3: inline :style on .mic-btn.recording paints the live RMS
   ring; suppress the keyframe pulse so the two don't fight. */
.mic-btn.recording { animation: none; }
.mic-btn.blocked { border-color: #c46e6e; color: #c46e6e; opacity: 0.6; }
.rec-pill, .mic-blocked-pill, .rec-outcome {
  max-width: 60rem;
  margin: 0 auto 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rec-pill {
  background: #14201a;
  border: 1px solid #4a7d62;
  color: #9ad0b1;
}
.rec-pill.near {
  border-color: #c8a96e;
  color: #e3c98a;
}
.rec-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #c46e6e;
  animation: rec-blink 1s infinite;
}
@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.rec-elapsed { font-variant-numeric: tabular-nums; opacity: 0.85; }
.rec-countdown { margin-left: auto; font-variant-numeric: tabular-nums; }
.rec-pill-tag {
  font-size: 0.7rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.7;
}
.mic-blocked-pill {
  background: #2a1010;
  border: 1px solid #c46e6e;
  color: #c46e6e;
}
.mic-blocked-pill a { color: inherit; text-decoration: underline; }
.rec-outcome {
  background: transparent;
  border: 1px dashed #4a4a4a;
  color: #9a9a9a;
  opacity: 0.85;
}
.rec-outcome.cancelled, .rec-outcome.empty { border-color: #6e6e6e; }
.rec-outcome.sent { border-color: #4a7d62; color: #9ad0b1; }
