/* Voice turn HUD: it sits above the agent bar and always says which of
   聞いています / 考えています / 話しています the turn is actually in. */
#voice-hud{position:fixed;left:50%;bottom:128px;transform:translateX(-50%);width:640px;max-width:calc(100vw - 30px);z-index:240;padding:16px 18px 14px;border-radius:12px;border:1px solid rgba(157,204,228,.3);background:linear-gradient(160deg,rgba(21,48,66,.95),rgba(6,17,27,.97) 70%);backdrop-filter:blur(22px);box-shadow:0 26px 70px #0007}
.voice-line{display:flex;align-items:center;gap:10px;font-size:9px;letter-spacing:.16em;color:#9cc8e2}
.voice-line b{font-size:12px;font-weight:500;letter-spacing:.06em;color:#e7f4fb}
.voice-line small{margin-left:auto;font-size:9px;color:#8fa9b8;letter-spacing:.04em}
.voice-dot{width:9px;height:9px;border-radius:50%;background:#7d97a7;flex-shrink:0}
#voice-hud[data-phase=listening] .voice-dot{background:#8fd3a6;animation:voice-pulse 1.1s ease-in-out infinite}
#voice-hud[data-phase=thinking] .voice-dot{background:#ecd39a;animation:voice-pulse 1.6s ease-in-out infinite}
#voice-hud[data-phase=speaking] .voice-dot{background:#a6d0e6;animation:voice-pulse .9s ease-in-out infinite}
@keyframes voice-pulse{0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(160,220,255,.45)}50%{opacity:.55;box-shadow:0 0 0 7px rgba(160,220,255,0)}}
#voice-heard{margin:10px 0 0;font-size:15px;line-height:1.7;color:#eef7fc;min-height:26px;overflow-wrap:anywhere}
#voice-heard:empty:before{content:'話しかけてください';color:#8fa9b8;font-size:13px}
.voice-note{margin:8px 0 0;font-size:11px;line-height:1.6;color:#ecd39a}
.voice-note:empty{display:none}
.voice-tools{display:flex;gap:8px;margin-top:12px}
.voice-tools button{min-height:38px;font-size:11px;padding:0 13px}
#voice-hands[aria-pressed=true]{background:#2b4a5f;border-color:#a8cadd70;color:#eef7fc}
.voice-tools #voice-stop{margin-left:auto}
.voice-mark{display:inline-block;width:8px;height:12px;border-radius:4px;border:1px solid currentColor;margin-right:6px;vertical-align:-1px}
#voice[aria-pressed=true]{color:#8fd3a6}
#voice[aria-pressed=true] .voice-mark{background:#8fd3a6;border-color:#8fd3a6}
#voice[disabled]{opacity:.45}
@media(max-width:760px){
 #voice-hud{left:12px;right:12px;bottom:134px;width:auto;max-width:none;transform:none;padding:13px 14px 12px}
 #voice-heard{font-size:14px}
 .voice-tools button{min-height:44px;flex:1}
 .voice-tools #voice-stop{margin-left:0}
 .voice-line small{display:none}
}
