
/* One visual waveform across invitations, samples, help and the full assistant. */
.voice-home-wave,.welcome-sample-wave,.hm-chat-wave,#voice-agent .voice-meter{display:flex;align-items:center;justify-content:center;gap:4px;height:44px;color:#3976ac}
.voice-home-wave i,.welcome-sample-wave i,.hm-chat-wave i,#voice-agent .voice-meter i{display:block;flex:0 0 4px;width:4px;height:var(--bar,24px);max-height:none;border-radius:5px;background:#3976ac;transform-origin:center}
.voice-home-wave i:nth-child(1),.welcome-sample-wave i:nth-child(1),.hm-chat-wave i:nth-child(1){--bar:10px;height:10px}
.voice-home-wave i:nth-child(2),.welcome-sample-wave i:nth-child(2),.hm-chat-wave i:nth-child(2){--bar:16px;height:16px}
.voice-home-wave i:nth-child(3),.welcome-sample-wave i:nth-child(3),.hm-chat-wave i:nth-child(3){--bar:25px;height:25px}
.voice-home-wave i:nth-child(4),.welcome-sample-wave i:nth-child(4),.hm-chat-wave i:nth-child(4){--bar:36px;height:36px}
.voice-home-wave i:nth-child(5),.welcome-sample-wave i:nth-child(5),.hm-chat-wave i:nth-child(5){--bar:44px;height:44px}
.voice-home-wave i:nth-child(6),.welcome-sample-wave i:nth-child(6),.hm-chat-wave i:nth-child(6){--bar:36px;height:36px}
.voice-home-wave i:nth-child(7),.welcome-sample-wave i:nth-child(7),.hm-chat-wave i:nth-child(7){--bar:25px;height:25px}
.voice-home-wave i:nth-child(8),.welcome-sample-wave i:nth-child(8),.hm-chat-wave i:nth-child(8){--bar:16px;height:16px}
.voice-home-wave i:nth-child(9),.welcome-sample-wave i:nth-child(9),.hm-chat-wave i:nth-child(9){--bar:10px;height:10px}
.voice-home-wave i,.welcome-sample.is-speaking .welcome-sample-wave i,.hm-chat.is-speaking .hm-chat-wave i,#voice-agent[data-state=speaking] .voice-meter i,#voice-agent[data-state=listening] .voice-meter i{animation:shared-voice-wave 1.6s ease-in-out infinite;background:#3976ac}
.voice-home-wave i:nth-child(2n),.welcome-sample.is-speaking .welcome-sample-wave i:nth-child(2n),.hm-chat.is-speaking .hm-chat-wave i:nth-child(2n),#voice-agent .voice-meter i:nth-child(2n){animation-delay:-.35s}
.voice-home-wave i:nth-child(3n),.welcome-sample.is-speaking .welcome-sample-wave i:nth-child(3n),.hm-chat.is-speaking .hm-chat-wave i:nth-child(3n),#voice-agent .voice-meter i:nth-child(3n){animation-delay:-.8s}
.voice-home-wave i:nth-child(4n),.welcome-sample.is-speaking .welcome-sample-wave i:nth-child(4n),.hm-chat.is-speaking .hm-chat-wave i:nth-child(4n),#voice-agent .voice-meter i:nth-child(4n){animation-delay:-1.15s}
.hm-chat.is-listening .hm-chat-wave i{animation:none;background:#3976ac}
@keyframes shared-voice-wave{0%,100%{transform:scaleY(.45);opacity:.65}50%{transform:scaleY(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.voice-home-wave i,.welcome-sample.is-speaking .welcome-sample-wave i,.hm-chat.is-speaking .hm-chat-wave i,#voice-agent .voice-meter i{animation:none!important;transform:scaleY(.7);opacity:1}}

/* Invitation cards move continuously; conversation meters move only with voice. */
.welcome-sample-wave i,.hm-chat-wave i,#voice-agent #voice-meter i{transform:scaleY(.25)}
#voice-agent[data-state=listening] #voice-meter i{animation:none;height:var(--bar,24px);transform:scaleY(calc(.18 + var(--voice-level,0)*.82));transition:transform 70ms linear;background:#3976ac}
#voice-agent:not([data-state=speaking]):not([data-state=listening]) #voice-meter i{animation:none;transform:scaleY(.25)}
@media(prefers-reduced-motion:reduce){#voice-agent[data-state=listening] #voice-meter i{transform:scaleY(.65);transition:none}}

.welcome-sample-wave.is-audio-driven i,.hm-chat-wave.is-audio-driven i,#voice-agent #voice-meter.is-audio-driven i{animation:none!important;transition:transform 70ms linear}@media(prefers-reduced-motion:reduce){.is-audio-driven i{transition:none!important}}
