body .eg-chat-form .eg-voice-mic{display:grid;place-items:center;width:33px;height:33px;padding:6px;border:0;border-radius:50%;color:#b29acc;background:transparent;cursor:pointer;transition:color .2s,background .2s,transform .25s}
body .eg-chat-form .eg-voice-mic:hover{background:#9868ff1a;color:#cfb8ff;transform:translateY(-2px)}
body .eg-chat-form .eg-voice-mic:disabled{opacity:.35;cursor:not-allowed}
body .eg-chat-form .eg-voice-mic svg{width:21px;height:21px}
body .eg-chat-form.is-voice-mode>.eg-compose-shell,body .eg-chat-form.is-voice-mode>input,body .eg-chat-form.is-voice-mode>button{display:none!important}
body .eg-chat-form .eg-voice-recorder{display:flex;align-items:center;gap:13px;flex:1;min-width:0;width:100%;padding:12px 14px;background:linear-gradient(115deg,#9868ff10,transparent 75%),#0c0b10;border:1px solid #ad8df62d;border-radius:25px;animation:eg-voice-enter .28s cubic-bezier(.2,.8,.2,1)}
body .eg-chat-form .eg-voice-recorder[hidden],body .eg-chat-form .eg-voice-recorder button[hidden]{display:none!important}
body .eg-chat-form .eg-voice-recorder button{display:grid;place-items:center;flex:none;width:39px;height:39px;padding:9px;border:0;border-radius:50%;background:#ffffff07;color:#c5bfce;cursor:pointer;transition:background .2s,transform .2s}
body .eg-chat-form .eg-voice-recorder button:hover{transform:translateY(-1px);background:#ffffff10}
body .eg-chat-form .eg-voice-recorder button svg{width:20px;height:20px}
body .eg-chat-form .eg-voice-recorder .eg-voice-stop,body .eg-chat-form .eg-voice-recorder .eg-voice-send{width:44px;height:44px;background:#9868ff;color:#fff;box-shadow:0 5px 20px #9868ff20}
body .eg-chat-form .eg-voice-stop svg{fill:currentColor;stroke-width:1}
body .eg-chat-form .eg-voice-discard:hover{color:#ff9aa9!important}
body .eg-chat-form .eg-voice-preview{background:#9868ff18!important;color:#d4baff!important}
.eg-voice-capture{flex:1;min-width:0}.eg-voice-capture-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.eg-voice-state{display:flex;align-items:center;gap:8px;color:#d4c4eb}.eg-voice-state b{font-size:12px;font-weight:500}.eg-voice-state i{width:6px;height:6px;background:#fa718e;border-radius:50%;box-shadow:0 0 11px #fa718e4d;animation:eg-voice-pulse 1.2s infinite}.eg-voice-capture time{font-size:12px;color:#d7c9eb;font-variant-numeric:tabular-nums}.eg-voice-capture canvas{display:block;width:100%;height:38px}.eg-voice-capture small{display:block;font-size:10px;color:#898091}.eg-voice-recorder[data-state=preview] .eg-voice-state i{background:#aa80ff;box-shadow:0 0 12px #9868ff40;animation:none}.eg-voice-recorder[data-state=sending] canvas{animation:eg-voice-breathe .85s infinite alternate}.eg-voice-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body .eg-chat-message .eg-chat-bubble:has(.eg-voice-message){padding:11px 13px;white-space:normal}
.eg-voice-message{display:flex;align-items:center;gap:12px;width:252px;max-width:100%;--voice-progress:0%}
.eg-voice-play{display:grid;place-items:center;flex:none;width:42px;height:42px;padding:12px;border:0;border-radius:50%;background:#9868ff;color:#fff;box-shadow:0 4px 16px #9868ff20;cursor:pointer;transition:transform .2s,background .2s}
.eg-voice-play:hover{background:#ad85ff;transform:scale(1.05)}.eg-voice-play svg{width:19px;height:19px}.eg-voice-message.is-playing .eg-voice-play{box-shadow:0 0 0 5px #9868ff0e}.eg-voice-content{flex:1;min-width:0}.eg-voice-track{height:33px;position:relative;display:flex;align-items:center}.eg-voice-bars{width:100%;height:30px;display:flex;align-items:center;justify-content:space-between;gap:2px;background:linear-gradient(90deg,#cfb6ff var(--voice-progress),#8d759f var(--voice-progress));mask-image:none}.eg-voice-bars i{flex:1;max-width:4px;min-width:2px;border-radius:5px;background:#a98ac9}.eg-voice-bars{background:none}.eg-voice-track:before{content:'';position:absolute;inset:0 auto 0 0;width:var(--voice-progress);background:linear-gradient(90deg,#d4bdff55,#d4bdff15);border-radius:4px;pointer-events:none;transition:width .15s linear}.eg-voice-track input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.eg-voice-track:focus-within{outline:1px solid #ba96ff;outline-offset:3px;border-radius:4px}.eg-voice-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#a59aad;font-size:10px;line-height:1.5;font-variant-numeric:tabular-nums}.eg-voice-caption>span:last-child{display:flex;align-items:center;gap:4px}.eg-voice-caption svg{width:11px;height:11px}.eg-voice-message.is-loading .eg-voice-play{animation:eg-voice-breathe .7s infinite alternate}
@keyframes eg-voice-enter{from{opacity:0;transform:translateY(7px) scale(.98)}to{opacity:1;transform:none}}@keyframes eg-voice-pulse{50%{opacity:.35;box-shadow:0 0 0 4px #fa718e0c}}@keyframes eg-voice-breathe{to{opacity:.45}}
@media(max-width:600px){body .eg-chat-form .eg-voice-recorder{gap:8px;padding:10px;border-radius:23px}.eg-voice-message{width:210px;gap:10px}.eg-voice-play{width:38px;height:38px;padding:10px}.eg-voice-caption{font-size:9px}.eg-voice-state b{font-size:11px}body .eg-chat-form .eg-voice-recorder button{width:33px;height:33px;padding:8px}.eg-voice-bars{gap:1.5px}}
@media(prefers-reduced-motion:reduce){.eg-voice-recorder,.eg-voice-state i,.eg-voice-recorder canvas,.eg-voice-play{animation:none!important;transition:none!important}}
