.br-voice-mic,.br-voice-panel{display:none!important}
.is-voice-recording .br-mini-chat-compose-row,
body.bt-chat #window .br-static-chat-compose.is-voice-recording .br-static-chat-compose-row,
.is-voice-recording .br-mini-chat-emoji-panel,.is-voice-recording .cp-imgs,
.is-voice-recording .br-mini-chat-preview{display:none!important}
.is-voice-empty .br-voice-mic,.is-voice-recording .br-voice-panel{display:flex!important}
.br-voice-mic,.br-voice-panel button,.br-voice-message button{
 border:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;
 padding:0;cursor:pointer;flex-shrink:0;color:#1b2429;background:#f2f3f4;
}
.br-voice-mic,.br-voice-message button{width:42px;height:42px;border-radius:50%;background:#2588ed;color:white}
.br-static-chat-send-slot>.br-voice-mic{width:38px;height:38px}
.br-voice-mic svg,.br-voice-panel svg,.br-voice-message svg{width:20px;height:20px;flex-shrink:0}
.br-voice-panel{
 box-sizing:border-box;flex-direction:column;gap:12px;padding:12px;
 width:100%;margin-inline:auto;background:#fff;color:#1b2429;
 border-radius:18px 18px 0 0;font:500 14px/1.3 system-ui,sans-serif;
}
.br-voice-top,.br-voice-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}
.br-voice-top{min-height:24px;padding:0 8px}
.br-voice-time{font-variant-numeric:tabular-nums}
.br-voice-wave{flex:1;min-width:0;height:24px;display:flex;align-items:center;justify-content:space-between;gap:2px;color:#637078}
.br-voice-wave i{display:block;width:2px;height:2px;border-radius:2px;background:currentColor}
.br-voice-panel button{height:42px;min-width:42px;border-radius:24px}
.br-voice-panel .br-voice-trash{background:#fce9ed;color:#c62547}
.br-voice-panel .br-voice-send{background:#149f5c;color:white}
.br-voice-panel .br-voice-pause{flex:1;min-width:0;padding:0 8px}
.br-voice-panel:not(.is-paused):not(.is-finalized) .br-voice-preview{display:none}
.br-voice-panel.is-finalized .br-voice-pause{display:none}
.br-voice-panel button:disabled{opacity:.5;cursor:default}
.br-voice-notice{font:12px/1.4 system-ui,sans-serif;color:#a82438;padding:4px 8px}
.br-voice-notice:empty{display:none}
.br-voice-message{display:flex;align-items:center;gap:8px;width:230px;min-width:0;max-width:100%;box-sizing:border-box}
.br-voice-message button{width:34px;height:34px}
.br-voice-message small{display:block;flex:none;min-width:4ch;font:400 12px/1.3 system-ui,sans-serif;font-variant-numeric:tabular-nums;text-align:right}
.br-voice-message .br-voice-notice{position:absolute;bottom:100%;background:white;border-radius:8px}

.br-voice-message button[aria-busy="true"]{position:relative;}
.br-voice-message button[aria-busy="true"] svg{display:none}
.br-voice-message button[aria-busy="true"]::after{
 content:"";position:absolute;inset:0;margin:auto;box-sizing:border-box;width:16px;height:16px;pointer-events:none;
 border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;
 animation:br-voice-play-loading .75s linear infinite
}
@keyframes br-voice-play-loading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){
 .br-voice-message button[aria-busy="true"]::after{animation:none}
}

.br-voice-message button[aria-busy="true"]:disabled { opacity:1; cursor:wait; }

.br-voice-message{
 --voice-wave-pending:#727f8d;--voice-wave-played:#0969c2;
}
.w-bubble-right .br-voice-message,
.br-mini-chat-row.is-me .br-voice-message{
 --voice-wave-pending:#143e66;--voice-wave-played:#fff;
}
.br-voice-message-track{position:relative;flex:1;min-width:0;height:34px;--voice-progress:0%}
.br-voice-message-wave{position:absolute;inset:0 6px;pointer-events:none}
.br-voice-message .br-voice-message-wave svg{
 position:absolute;inset:1px 0;width:100%;height:32px;fill:none;stroke:var(--voice-wave-pending);
 stroke-width:2.2;stroke-linecap:round;
}
.br-voice-message .br-voice-message-wave .br-voice-message-progress{
 stroke:var(--voice-wave-played);clip-path:inset(0 calc(100% - var(--voice-progress)) 0 0);
}
.br-voice-message-wave i{
 position:absolute;top:50%;left:var(--voice-progress);width:12px;height:12px;
 border-radius:50%;background:var(--voice-wave-played);transform:translate(-50%,-50%);
}
.br-voice-message-track input[type=range]{
 appearance:none;-webkit-appearance:none;position:absolute;inset:0;
 width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer;
}
.br-voice-message-track input::-webkit-slider-thumb{
 appearance:none;-webkit-appearance:none;width:12px;height:12px;
}
.br-voice-message-track input::-moz-range-thumb{width:12px;height:12px;border:0}
.br-voice-message-track:focus-within{outline:2px solid var(--voice-wave-played);outline-offset:2px;border-radius:6px}
