/* Waveform players share the normal message bubble and its actions. */
.voice-note.incoming .message-wrap,.voice-note.outgoing .message-wrap{width:316px;max-width:calc(100% - 44px)}
.voice-note .message-bubble{padding:13px 12px 8px}
.voice-note .message-author{margin-bottom:10px}
.voice-note .message-file{width:100%;max-width:100%}
.voice-note .message-time{position:absolute;right:12px;bottom:7px;margin:0;font-size:11px}
.voice-note .message-file+p{margin-top:12px;padding-bottom:18px}
.voice-player{--voice-progress:0%;--voice-unplayed:#a6b8ac;--voice-played:#336e62;position:relative;display:grid;grid-template-columns:40px 39px minmax(0,1fr);align-items:center;column-gap:7px;min-width:0;padding:0 0 6px;min-height:70px}
.voice-note.incoming .voice-player{--voice-unplayed:#d5ccb5;--voice-played:#a38244}
.voice-audio-element{display:none!important}
.voice-sender{position:relative;align-self:center;margin-top:-15px}
.voice-avatar,.voice-sender .self-avatar{height:40px;width:40px;min-width:40px;display:grid;place-items:center;border:1px solid #d2c9ab;background:#2b6266;color:#fff;font-family:var(--serif);font-size:18px;overflow:hidden;border-radius:50%;box-shadow:none}
.voice-avatar img{width:100%;height:100%;object-fit:cover}
.voice-sender>i{position:absolute;bottom:-3px;right:-4px;display:grid;place-items:center;width:18px;height:23px;background:var(--voice-badge,#deece6);border-radius:10px}
.voice-sender>i>.icon{width:14px;height:19px;color:var(--voice-played);stroke-width:2.2}
.incoming .voice-sender{--voice-badge:#fffdf8}
.voice-play{height:44px;width:39px;padding:8px 6px;align-self:center;margin-top:-15px;display:grid;place-items:center;color:var(--voice-played);border-radius:50%}
.voice-play .icon{width:27px;height:29px;stroke-width:1.8}
.voice-play .icon path:first-child{fill:currentColor;stroke:none}
.voice-player.is-playing .voice-play .icon path{fill:none;stroke:currentColor;stroke-width:4.5}
.voice-wave-stack{min-width:0;padding-top:1px}
.voice-wave-track{height:42px;position:relative;margin:0 0 5px;min-width:0}
.voice-wave-base,.voice-wave-played{position:absolute;inset:0;pointer-events:none}
.voice-wave-base svg,.voice-wave-played svg{width:100%;height:100%;display:block}
.voice-wave-base{fill:var(--voice-unplayed)}
.voice-wave-played{fill:var(--voice-played);clip-path:inset(0 calc(100% - var(--voice-progress)) 0 0)}
.voice-seek{appearance:none;-webkit-appearance:none;position:absolute;inset:0;background:transparent;margin:0;width:100%;height:42px;border:0;padding:0;cursor:pointer;border-radius:5px;touch-action:pan-x}
.voice-seek::-webkit-slider-runnable-track{height:4px;background:transparent}
.voice-seek::-moz-range-track{height:4px;background:transparent}
.voice-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:var(--voice-played);border:2px solid #edf4ed;margin-top:-4px;box-shadow:0 0 0 1px #346d5f22}
.voice-seek::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:var(--voice-played);border:2px solid #edf4ed}
.voice-seek:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.voice-clock{display:block;font-size:12px;line-height:16px;color:#71877c;font-variant-numeric:tabular-nums;min-height:16px;padding-left:1px}
.voice-note.incoming .voice-clock{color:#94856b}
.voice-error .voice-play{opacity:.5}
.voice-composer-wave{padding:16px 19px max(17px,env(safe-area-inset-bottom));background:#faf8f1}
.voice-record-wave{display:flex;align-items:center;gap:18px;min-height:49px}
.voice-record-wave>time{font-size:22px;font-variant-numeric:tabular-nums;min-width:52px;line-height:1}
#voice-live-wave{height:44px;flex:1;min-width:0;color:#92a99b;fill:currentColor}
#voice-live-wave svg{width:100%;height:100%}
.voice-record-wave .voice-live-dot{height:8px;width:8px}
.voice-record-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:17px;min-height:50px}
.voice-record-controls .round{height:48px;width:48px;border:0;padding:11px;background:none}
.voice-record-controls .round .icon{height:27px;width:27px}
.voice-record-controls .voice-pause{color:#ad6357;border:2px solid #bb7567;border-radius:50%;height:43px;width:43px;padding:8px}
.voice-record-controls .voice-pause .icon{stroke-width:3}
.voice-record-controls .chat-send{width:50px;height:50px;border:1px solid var(--gold)}
.voice-listen-link{display:block;text-align:center;margin:8px auto 0;color:#607e72;font-size:12px;min-height:32px;text-decoration:underline;text-underline-offset:4px}
.voice-preview-hint{font-size:12px;color:var(--muted)}
.voice-draft-player{grid-template-columns:42px minmax(0,1fr);column-gap:12px;min-height:64px;padding-bottom:0;--voice-played:#346f62;--voice-unplayed:#bdc8bb}
.voice-draft-player .voice-play{margin-top:0}
.voice-draft-player .voice-wave-track{margin-bottom:0}
.voice-draft-player .voice-clock{font-size:13px}
.contact-media .voice-player{width:100%}
@media(max-width:360px){
 .voice-note .message-bubble{padding-left:9px;padding-right:9px}
 .voice-player{grid-template-columns:34px 32px minmax(0,1fr);column-gap:5px}
 .voice-avatar,.voice-sender .self-avatar{width:34px;height:34px;min-width:34px;font-size:16px}
 .voice-play{width:32px;padding:7px 3px}
 .voice-play .icon{width:24px;height:26px}
 .voice-clock{font-size:11px}
 .voice-draft-player{grid-template-columns:36px minmax(0,1fr)}
 .voice-composer-wave{padding-left:14px;padding-right:14px}
}
