/* Áudio e vídeo nas Mensagens */
.chat-form{align-items:center}
.media-btns{display:flex;gap:6px;flex-shrink:0}
.media-btn{width:44px;height:44px;padding:0;border-radius:50%}
.media-btn svg.icon{width:20px;height:20px}
.bubble.has-media{min-width:min(280px,82%)}
.media-audio{display:block;width:100%;min-width:220px;height:40px;margin-bottom:6px}
.media-video{display:block;width:100%;max-width:360px;border-radius:10px;background:#000;margin-bottom:6px}
.bubble.media-failed .media-audio,.bubble.media-failed .media-video{display:none}
.bubble.media-failed small::before{content:'Não foi possível carregar a gravação. Atualize os dados. ';display:block;color:#a13b32;margin-bottom:4px}
.bubble a{color:inherit;text-decoration:underline;overflow-wrap:anywhere}
.media-embed{position:relative;width:100%;max-width:360px;aspect-ratio:16/9;margin-top:8px;border-radius:10px;overflow:hidden;background:#000}
.media-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.rec{display:grid;gap:14px;justify-items:center;text-align:center}
.rec .sub{margin:0}
.rec-live,.rec-playback{width:100%;max-width:440px;border-radius:12px;background:#000}
audio.rec-playback{background:none}
.rec-bars{display:flex;align-items:center;justify-content:center;gap:4px;height:64px;width:100%}
.rec-bars span{display:block;width:5px;height:8px;border-radius:3px;background:var(--lime);transition:height .08s linear}
.rec-timer{font-family:var(--heading-font);font-size:1.8rem;font-weight:750;margin:0}
.rec-timer span{font-size:.9rem;font-weight:500;opacity:.6}
.rec.is-recording .rec-timer::before{content:'';display:inline-block;width:12px;height:12px;border-radius:50%;background:#d24a3c;margin-right:10px;vertical-align:middle;animation:rec-blink 1s infinite}
@keyframes rec-blink{50%{opacity:.25}}
.rec .form-actions{justify-content:center;width:100%}
@media(max-width:680px){.media-btn{width:40px;height:40px}.chat-form{flex-wrap:wrap}.chat-form input{flex:1 1 100%}.media-btns{margin-right:auto}}
@media(prefers-reduced-motion:reduce){.rec.is-recording .rec-timer::before{animation:none}}
