/* Voice replaces the existing composer without moving surrounding content. */
.agent-presence[data-voice-phase]{position:relative}
.agent-presence[data-voice-phase]>.avatar{position:relative;isolation:isolate;animation:none;transform:none}
.agent-presence[data-voice-phase]>.avatar:before,.agent-presence[data-voice-phase]>.avatar:after{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;opacity:0}
.agent-presence[data-voice-phase]>.avatar:before{padding:2px;background:linear-gradient(135deg,#ffffffef 0%,#ffffff1a 40%,#ffffffb8 72%,#ffffff20 100%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude}
.agent-presence[data-voice-phase]>.avatar:after{inset:1px;box-shadow:inset 0 0 7px 1px #ffffff70}
.agent-presence[data-voice-phase="listening"]>.avatar:before{animation:voice-edge-glow 2.8s ease-in-out infinite}
.agent-presence[data-voice-phase="listening"]>.avatar:after{opacity:.3}
.agent-presence[data-voice-phase="thinking"]>.avatar:before{animation:voice-edge-think 2.2s ease-in-out infinite}
.agent-presence[data-voice-phase="thinking"]>.avatar:after{opacity:.2}
.agent-presence[data-voice-phase="speaking"]>.avatar:before{animation:voice-edge-glow 1.4s ease-in-out infinite}
.agent-presence[data-voice-phase="speaking"]>.avatar:after{animation:voice-inner-glow 1.4s ease-in-out infinite}
.agent-presence[data-voice-phase="muted"]>.avatar:before{opacity:.12}
.voice-composer{height:56px;min-height:56px;max-height:56px;margin:0 0 10px;padding:0}
.voice-main-controls,.voice-text-form{height:56px;min-height:56px;max-height:56px;border-radius:30px;background:#ffffffc9;border:1px solid #e9e9e8;display:flex;align-items:center;gap:3px;padding:4px;margin:0;box-sizing:border-box}
.voice-icon-control{height:44px;width:44px;min-width:44px;border-radius:50%;display:grid;place-items:center;color:#858c95;position:relative;background:#eff0f1a8;padding:0}
.voice-icon-control svg{width:21px;height:21px}
.voice-icon-control.is-on{color:#3f4c5e;background:#dce2e9}
.voice-icon-control.is-off:after{content:"";width:24px;height:1px;background:#858c95;position:absolute;transform:rotate(45deg);box-shadow:0 1px #fff}
.voice-end{height:44px;min-height:44px;flex:1;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:24px;background:#f4e5e1;color:#a35e57;font-size:14px;white-space:nowrap;padding:5px 9px;font-weight:400}
.voice-end svg,.voice-end-inline svg{width:18px;height:18px;transform:rotate(135deg)}
.voice-end-label{display:flex;flex-direction:column;align-items:center;line-height:18px}
.voice-end-label small{font-size:10px;line-height:12px;font-variant-numeric:tabular-nums;color:#ad7f79}
.voice-text-form input{width:0;min-width:0;flex:1;border:0;outline:none;background:none;font-size:16px;line-height:24px;height:44px;padding:0 5px}
.voice-text-form input::placeholder{color:#a0a5ae}
.voice-text-form .voice-send,.voice-end-inline{display:grid;place-items:center;width:44px;height:44px;min-width:44px;border-radius:50%;padding:0}
.voice-text-form .voice-send{background:#9ba2aa;color:white}
.voice-text-form .voice-send svg{width:20px;height:20px}
.voice-end-inline{background:#f4e5e1;color:#a35e57}
#voice-float{position:absolute;bottom:calc(82px + env(safe-area-inset-bottom,0px));right:16px;left:16px;z-index:12;pointer-events:none}
.voice-floating{pointer-events:auto;margin-left:auto;display:flex;align-items:center;gap:0;width:100%;max-width:348px;min-height:70px;padding:8px;border:1px solid #ffffffbd;border-radius:26px;background:#f8fafbe8;box-shadow:0 4px 19px #50617b14;backdrop-filter:blur(20px)}
.voice-float-return{display:flex;align-items:center;gap:10px;padding:3px 2px 3px 5px;min-height:48px;flex:1;min-width:0;text-align:left}
.voice-float-return>.avatar{width:34px;height:34px;flex-shrink:0;box-shadow:none}
.voice-float-return>.avatar svg{width:29px;height:29px}
.voice-float-copy{min-width:0;flex:1}
.voice-float-copy strong{display:flex;align-items:center;gap:7px;font-size:13px;line-height:21px;font-weight:400;color:#4a5461}
.voice-float-copy strong>[data-voice-status]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:142px}
.voice-float-copy strong>[data-voice-clock]{font-size:11px;font-variant-numeric:tabular-nums;color:#949ba5;flex-shrink:0}
.voice-float-copy small{display:block;margin-top:2px;color:#949aa3;font-size:11px;line-height:17px;white-space:nowrap}
.voice-float-collapse{width:32px;min-width:32px;height:44px;color:#8f98a3;font-size:22px;display:grid;place-items:center;padding:0}
.voice-float-end{width:44px;height:44px;min-width:44px;border-radius:50%;display:grid;place-items:center;background:#f4e5e1;color:#a35e57;padding:0}
.voice-float-end svg{width:18px;height:18px;transform:rotate(135deg)}
.voice-floating.is-compact{width:auto;max-width:175px;min-height:60px;border-radius:32px;padding:6px;gap:8px}
.voice-mini-return{display:flex;align-items:center;gap:8px;min-height:44px;padding:5px 5px 5px 10px;color:#657184;font-size:12px;font-variant-numeric:tabular-nums}
.voice-wave{display:inline-flex;align-items:center;gap:3px;height:22px;width:23px}
.voice-wave i{width:2px;height:7px;display:block;border-radius:2px;background:#89a6cb}
.voice-wave i:nth-child(2),.voice-wave i:nth-child(4){height:13px}.voice-wave i:nth-child(3){height:19px}
[data-voice-phase="speaking"] .voice-wave i,[data-voice-phase="listening"] .voice-wave i{animation:voice-wave .9s ease-in-out infinite alternate}
[data-voice-phase="speaking"] .voice-wave i:nth-child(2),[data-voice-phase="listening"] .voice-wave i:nth-child(2){animation-delay:.15s}
[data-voice-phase="speaking"] .voice-wave i:nth-child(3),[data-voice-phase="listening"] .voice-wave i:nth-child(3){animation-delay:.3s}
[data-voice-phase="speaking"] .voice-wave i:nth-child(4),[data-voice-phase="listening"] .voice-wave i:nth-child(4){animation-delay:.1s}
.app[data-voice-active="true"]:not([data-screen="chat"])>.main{padding-bottom:108px}
@keyframes voice-edge-glow{0%,100%{opacity:.38}50%{opacity:.9}}
@keyframes voice-edge-think{0%,100%{opacity:.28}50%{opacity:.62}}
@keyframes voice-inner-glow{0%,100%{opacity:.15}50%{opacity:.45}}
@keyframes voice-wave{from{opacity:.45}to{opacity:1}}
@media(max-width:359px){.voice-end{padding:5px 6px;font-size:13px;gap:5px}.voice-float-copy strong>[data-voice-status]{max-width:106px}.voice-floating{padding:6px}.voice-float-collapse{width:28px;min-width:28px}.voice-float-return{gap:8px}.voice-float-return>.avatar{width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){.agent-presence>.avatar,.agent-presence>.avatar:before,.agent-presence>.avatar:after,.voice-wave i{animation:none!important}.agent-presence[data-voice-phase="listening"]>.avatar:before,.agent-presence[data-voice-phase="thinking"]>.avatar:before,.agent-presence[data-voice-phase="speaking"]>.avatar:before{opacity:.6}}
