/* Transparent voice controls inside the existing message bubble. */
.vcp-voice{box-sizing:border-box;position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) 44px;align-items:center;gap:12px;width:100%;min-width:0;max-width:540px;padding:4px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#edf8f4;font-family:Inter,Arial,sans-serif;font-size:12px;isolation:isolate}.vcp-voice *{box-sizing:border-box}.vcp-voice audio{display:none}.vcp-voice button{font-family:inherit;cursor:pointer;margin:0;min-height:44px;touch-action:manipulation}.vcp-voice .vcp-voice-play{display:grid;place-items:center;width:48px;height:48px;padding:12px;border:1.5px solid #efb17e;border-radius:50%;background:rgba(0,25,23,.22);color:#f2b584;box-shadow:inset 0 0 12px #dca16c0b,0 0 12px #f5b88712}.vcp-voice-play svg{width:24px;height:24px;fill:currentColor}.vcp-voice-pause,.vcp-voice.is-playing .vcp-voice-triangle{display:none}.vcp-voice.is-playing .vcp-voice-pause{display:block}.vcp-voice-track{min-width:0}.vcp-voice-wave{display:block;width:100%;height:44px;cursor:pointer;touch-action:manipulation}.vcp-voice-seek-label{display:block;height:16px;margin:-1px 0 0}.vcp-voice .vcp-voice-seek{display:block;appearance:none;-webkit-appearance:none;width:100%;height:44px;min-height:0;margin:-14px 0;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;--voice-progress:0%}.vcp-voice-seek::-webkit-slider-runnable-track{height:3px;border-radius:4px;background:linear-gradient(to right,#f1ad79 var(--voice-progress),#5a7973 var(--voice-progress))}.vcp-voice-seek::-moz-range-track{height:3px;border-radius:4px;background:#5a7973}.vcp-voice-seek::-moz-range-progress{height:3px;background:#f1ad79}.vcp-voice-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:12px;margin-top:-4.5px;border:2px solid #163e35;border-radius:50%;background:#f7bb8b;box-shadow:0 0 0 2px #fac29180}.vcp-voice-seek::-moz-range-thumb{width:10px;height:10px;border:2px solid #163e35;border-radius:50%;background:#f7bb8b;box-shadow:0 0 0 2px #fac29180}.vcp-voice-seek:disabled{cursor:default;opacity:.6}.vcp-voice-times{margin-top:10px;display:flex;justify-content:space-between;gap:8px;font-variant-numeric:tabular-nums;line-height:1.3}.vcp-voice .vcp-voice-speed{align-self:center;width:44px;min-width:44px;padding:0;border:1px solid #a3c8bf;border-radius:24px;background:transparent;color:#f2faf7;font-size:13px;font-weight:500}.vcp-voice button:focus-visible,.vcp-voice input:focus-visible,.vcp-voice a:focus-visible{outline:2px solid #ffd0a6;outline-offset:4px}.vcp-voice-status{grid-column:2/4;min-width:0;font-size:10px;color:#b3cec6;line-height:1.3}.vcp-voice-status:empty{display:none}.vcp-voice .vcp-voice-error{grid-column:1/-1;margin:0;color:#ffd2b0;font-size:12px;line-height:1.5}.vcp-voice .vcp-voice-error[hidden]{display:none}.vcp-voice .vcp-voice-download{grid-column:2/4;justify-self:start;min-height:44px;display:flex;align-items:center;color:#bcd5ce;font-size:10px;text-decoration:underline;text-underline-offset:3px}.vcp-voice-sr{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:420px){.vcp-voice{gap:8px;padding:4px 0;grid-template-columns:44px minmax(0,1fr) 44px;border-radius:0}.vcp-voice .vcp-voice-play{width:44px;height:44px;padding:10px}}@media(prefers-reduced-motion:reduce){.vcp-voice *{transition:none!important}}

.vcp-voice .vcp-voice-error[hidden]+.vcp-voice-download{display:none}
/* Media currentTime drives progress each frame; no delayed CSS interpolation. */
.vcp-voice .vcp-voice-seek{transition:none!important}
.vcp-voice-seek::-webkit-slider-thumb{transition:none!important}
.vcp-voice-seek::-moz-range-thumb{transition:none!important}

/* Keep the focus frame on buttons, never around the voice track or its seek input. */
.vcp .vcp-voice,.vcp .vcp-voice-track,.vcp .vcp-voice input:focus-visible{outline:none;box-shadow:none}
