.voice-launcher {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 23px;
  background: #eef5fd;
  color: var(--accent-dark);
  font-weight: 800;
}
.voice-launcher span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #e9f3ff;
}
.voice-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 30, 52, .58);
  backdrop-filter: blur(8px);
}
.voice-panel[hidden] { display: none; }
.voice-card {
  width: min(440px, 100%);
  padding: 22px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 28px 80px rgba(9, 31, 58, .3);
}
.voice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.voice-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.voice-close { border: 0; background: transparent; color: var(--muted); font-size: 28px; line-height: 1; }
.voice-stage { display: grid; justify-items: center; gap: 12px; padding: 28px 0 24px; }
.voice-orb {
  width: 112px;
  height: 112px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7bb9ff, var(--accent));
  box-shadow: 0 14px 36px rgba(7,95,201,.3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.voice-panel[data-voice-status="listening"] .voice-orb {
  animation: voicePulse 1.35s ease-in-out infinite;
}
.voice-panel[data-voice-status="thinking"] .voice-orb,
.voice-panel[data-voice-status="transcribing"] .voice-orb {
  animation: voiceSpin 1.5s linear infinite;
}
.voice-panel[data-voice-status="speaking"] .voice-orb {
  transform: scale(1.07);
  box-shadow: 0 18px 46px rgba(7,95,201,.42);
}
.voice-panel[data-voice-status="error"] .voice-orb {
  background: radial-gradient(circle at 35% 30%, #f2a2a2, #b52f2f);
}
@keyframes voicePulse { 50% { transform: scale(1.08); box-shadow: 0 20px 52px rgba(7,95,201,.44); } }
@keyframes voiceSpin { to { transform: rotate(360deg); } }
.voice-status { margin: 0; font-size: 21px; font-weight: 800; }
.voice-copy { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #f5f8fc; }
.voice-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.voice-copy strong { color: var(--ink); font-size: 14px; }
.voice-debug { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.voice-debug summary { padding: 11px 13px; color: var(--muted); font-size: 13px; font-weight: 800; cursor: pointer; }
.voice-debug[open] summary { border-bottom: 1px solid var(--line); }
.voice-observer { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; margin: 14px 0 0; padding: 12px; border-radius: 12px; background: #f5f8fc; }
.voice-observer div { min-width: 0; }
.voice-observer dt { color: var(--muted); font-size: 11px; }
.voice-observer dd { margin: 2px 0 0; color: var(--ink); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.voice-metrics { min-height: 18px; margin: 12px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.voice-end {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: #b52f2f;
  color: white;
  font-weight: 800;
}
.voice-resume { width: 100%; min-height: 48px; margin-top: 14px; border: 0; border-radius: 12px; background: var(--accent); color: white; font-weight: 800; }
.voice-presence { width: 100%; min-height: 44px; margin-top: 14px; border: 1px solid #9abce4; border-radius: 12px; background: #eef5fd; color: var(--accent-dark); font-weight: 800; }
.voice-hint { margin: 10px 12px 12px; color: var(--muted); font-size: 11px; text-align: center; }

@media (max-width: 650px) {
  .voice-launcher { min-height: 44px; padding: 0 13px; }
  .voice-panel { padding: 0; place-items: stretch; }
  .voice-card { width: 100%; min-height: 100dvh; border-radius: 0; display: flex; flex-direction: column; }
  .voice-stage { flex: 1; align-content: center; }
  .voice-observer { grid-template-columns: 1fr 1fr; }
}
