/* RusChat 1.6.24: private voice notes. Theme colors follow RusChat. */
#composer .rc-voice-open{flex:0 0 38px;display:inline-grid;place-items:center;min-width:38px;min-height:38px;padding:7px;border:1px solid var(--line,#374a5e);border-radius:4px;background:var(--surface,#233349);color:var(--accent,#8abaff);cursor:pointer}
#composer .rc-voice-open[hidden]{display:none!important}
#composer .rc-voice-open:disabled{opacity:.5;cursor:not-allowed}
#composer .rc-voice-open svg{display:block;flex:none}
.rc-voice-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(520px,calc(100vw - 20px));max-height:calc(100dvh - 24px);overflow:auto;padding:22px;border:1px solid var(--line,#374a5e);border-radius:8px;background:var(--panel,#18283b);color:var(--text,#eff5ff);box-shadow:0 24px 75px #0009;font:inherit}
.rc-voice-dialog::backdrop{background:#030b19ad;backdrop-filter:blur(4px)}
.rc-voice-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:13px;border-bottom:1px solid var(--line,#374a5e)}
.rc-voice-dialog-head h2{font-size:21px;font-weight:800;margin:0;color:inherit}
.rc-voice-dialog-head button{flex:none;width:36px;height:36px;padding:0;display:grid;place-items:center;border:1px solid var(--line,#374a5e);border-radius:4px;background:var(--surface,#233349);color:inherit;font-size:24px;line-height:1;cursor:pointer}
.rc-voice-description{font-size:13px;line-height:1.55;color:var(--muted,#a9bacd);margin:15px 0 9px}
.rc-voice-recipient{font-size:13px;font-weight:700;color:var(--accent,#9bb6ff);margin:0 0 8px}
.rc-voice-recording-indicator{display:flex;align-items:center;justify-content:center;gap:8px;color:#ec8095;font-size:13px}
.rc-voice-live-dot{width:8px;height:8px;background:#f36e83;border-radius:50%;box-shadow:0 0 0 5px #f36e831b;animation:rc-voice-pulse 1.2s ease-in-out infinite}
@keyframes rc-voice-pulse{50%{opacity:.3}}
.rc-voice-timer{text-align:center;font-size:clamp(36px,6vw,50px);font-weight:850;font-variant-numeric:tabular-nums;letter-spacing:-1px;margin:18px 0;color:var(--text,#eff5ff)}
.rc-voice-preview[hidden],.rc-voice-recording-indicator[hidden],.rc-voice-dialog-actions button[hidden]{display:none!important}
.rc-voice-preview{margin:12px 0}.rc-voice-preview p{font-size:12px;color:var(--muted,#a9bacd)}.rc-voice-preview audio{display:block;width:100%;height:42px}
.rc-voice-feedback{min-height:19px;font-size:12px;color:var(--accent,#9bb6ff)}
.rc-voice-dialog-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}.rc-voice-dialog-actions button{min-height:42px;padding:10px 16px;border:1px solid var(--line,#374a5e);border-radius:4px;background:var(--surface,#233349);color:var(--text,#eff5ff);font-weight:700;cursor:pointer}
.rc-voice-dialog-actions #rc-voice-record,.rc-voice-dialog-actions #rc-voice-send{background:var(--accent,#85b5ff);border-color:var(--accent,#85b5ff);color:#102438}
.rc-voice-dialog-actions #rc-voice-stop{background:#c94764;color:white;border-color:#c94764}
.rc-voice-dialog-actions button:disabled{opacity:.6;cursor:wait}
.rc-voice-message{display:flex;align-items:center;gap:9px;width:min(420px,100%);max-width:100%;padding:11px 13px;border:1px solid var(--line,#34475c);border-radius:10px;background:color-mix(in srgb,var(--accent,#80bbff) 9%,var(--panel,#1b2938));box-sizing:border-box;color:var(--text,#eff5ff)}
.rc-voice-message .rc-voice-play{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;border-radius:50%;border:0;background:var(--accent,#80bbff);color:#102438;font-weight:900;font-size:18px;cursor:pointer}
.rc-voice-message .rc-voice-play:disabled{opacity:.5;cursor:wait}
.rc-voice-wave{display:flex;align-items:center;gap:2px;min-width:0;flex:1;height:38px;cursor:pointer;touch-action:manipulation}
.rc-voice-bar{flex:1 1 0;min-width:2px;border-radius:3px;background:color-mix(in srgb,var(--accent,#80bbff) 48%,var(--muted,#9fb1c6));min-height:3px;max-height:32px}
.rc-voice-bar.is-played{background:var(--accent,#80bbff)}
.rc-voice-message .rc-voice-duration{flex:none;color:var(--muted,#9fb1c6);font-size:11px;font-variant-numeric:tabular-nums;min-width:38px;text-align:right}
@media(max-width:767px){.rc-voice-dialog{padding:17px}.rc-voice-message{width:100%;padding:8px 10px}.rc-voice-wave{gap:1px}.rc-voice-message .rc-voice-play{flex-basis:36px;width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.rc-voice-live-dot{animation:none}}

/* 1.6.25: explain missing metadata without showing the technical third-party IRC fallback message. */
.rc-voice-unavailable{display:inline-block;padding:10px 13px;border:1px solid var(--line,#34475c);border-radius:7px;background:var(--surface,#233349);color:var(--muted,#b4c2d2);font-size:13px}
