/* Recording controls stay within the conversation at every width. */
.chat-record-studio{min-width:0;width:100%;box-sizing:border-box}
.chat-record-studio .record-control-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;width:100%;max-width:100%;gap:10px;padding:8px;min-width:0;box-sizing:border-box}
.chat-record-studio .record-review{width:auto;max-width:100%;min-width:0}
.chat-record-studio .record-review .chat-voice-player{width:100%;min-width:0;max-width:100%;background:#f5f1fa;backdrop-filter:none;padding:4px 8px;border-radius:12px}
.chat-record-studio .record-actions{width:auto;min-width:0;margin:0;justify-content:end;gap:8px}
.chat-record-studio .record-actions button{min-height:44px;white-space:nowrap;font-size:14px;padding:10px 12px}
.chat-record-studio .record-timer{min-width:0;justify-content:center;padding:10px 8px;white-space:normal;text-align:center}
.chat-record-studio .record-review[hidden]{display:none}
.chat-record-studio .record-review .chat-voice-player small{font-size:12px;font-variant-numeric:tabular-nums}
.chat-record-studio .record-review input[type=range]{min-width:12px;flex:1 1 24px;width:0}
.chat-voice-player>button,.record-review .chat-voice-player>button{display:grid;place-items:center;align-self:center;min-width:44px;width:44px;height:44px;min-height:44px;margin:0;padding:11px;color:#292230;background:#e5d9f5;border:0;border-radius:12px}
.chat-voice-player>button svg{width:22px;height:22px;stroke:currentColor}
.chat-message .chat-bubble>.chat-file{padding:0;min-width:0}
.chat-message .chat-audio-row{align-items:center;min-height:52px;min-width:0;margin:0;width:min(300px,calc(100vw - 100px));max-width:100%}
.chat-message .chat-voice-player{display:flex;align-items:center;min-width:0;min-height:52px;width:100%;margin:0;padding:0;gap:9px;box-sizing:border-box}
.chat-message .chat-voice-player small{line-height:1.3;font-size:11px;font-variant-numeric:tabular-nums}
.chat-message .chat-voice-player input[type=range]{align-self:center;flex:1 1 40px;width:0;min-width:20px;margin:0}
.chat-message .chat-message-meta{align-items:center;min-height:40px;gap:4px}
.chat-message-meta .message-transcript{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;margin-left:3px}
.message-transcript .chat-transcript-toggle{display:grid;place-items:center;position:relative;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;color:#4d365f;border-radius:8px}
.transcript-letter{display:grid;place-items:center;width:23px;height:23px;border-radius:6px;background:#e8def4;color:#4a335e;font-family:Manrope,sans-serif;font-size:14px;font-weight:800;line-height:1}
.message-transcript .chat-transcript-toggle:hover .transcript-letter{background:#d9c5ef}
.message-transcript.is-busy .transcript-letter{opacity:.55}
.message-transcript.is-busy .chat-transcript-toggle::after{content:'';position:absolute;width:5px;height:5px;right:4px;top:7px;background:#72538c;border-radius:50%;animation:record-pulse 1s ease-in-out infinite}
.message-transcript.has-error .transcript-letter{color:#8e334b;background:#fae4eb}
.chat-message.has-circle .chat-circle-layout .circle-time{padding:0;min-height:22px}
.chat-circle-player .chat-circle-play,.chat-circle-player.playing .chat-circle-play{opacity:0!important;pointer-events:none;transition:opacity .16s ease}
.chat-circle-player.show-playback-feedback .chat-circle-play,.chat-circle-player:has(.chat-circle-play:focus-visible) .chat-circle-play{opacity:1!important}
.chat-circle-stage>video{cursor:pointer}
.chat-circle-player .chat-circle-play:focus-visible{pointer-events:auto;outline:2px solid #72538c;outline-offset:3px}
@media(max-width:650px){
 .chat-record-studio .record-control-bar{grid-template-columns:minmax(0,1fr);gap:8px;padding:8px}
 .chat-record-studio .record-review,.chat-record-studio .record-timer{grid-column:1;width:100%;max-width:100%;box-sizing:border-box}
 .chat-record-studio .record-actions{grid-column:1;display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
 .chat-record-studio .record-actions button{width:100%;min-width:0;min-height:44px;font-size:14px}
 .chat-record-studio .record-actions button[hidden]{display:none!important}
 .chat-record-studio:not(.is-review) .record-actions{grid-template-columns:1fr 1fr}
 .chat-record-studio .record-actions:has([data-record-stop][hidden]):has([data-record-send][hidden]){grid-template-columns:1fr}
 .chat-record-studio .record-control-bar:has(.record-timer:not([hidden])){grid-template-columns:minmax(0,1fr)}
 .chat-message .chat-voice-player{gap:7px}
 .chat-message .chat-voice-player>button{width:44px;min-width:44px;height:44px}
 .chat-message-meta .message-transcript{height:44px;width:44px}
 .message-transcript .chat-transcript-toggle{height:44px;width:44px;min-height:44px;min-width:44px}
}
@media(prefers-reduced-motion:reduce){.chat-circle-player .chat-circle-play{transition:none}.message-transcript.is-busy .chat-transcript-toggle::after{animation:none}}
@media(pointer:coarse){.chat-message-meta .message-transcript{width:44px;height:44px}.message-transcript .chat-transcript-toggle{width:44px;min-width:44px;height:44px;min-height:44px}}
