/* Exact-message reading and call-like, turn-based speech UI. No hidden capture. */
#view-brain .message-listen{font-size:12px;padding:5px 10px;min-height:36px;background:#f6faf8;color:#17392f;border:1px solid #d2ded9;border-radius:8px;cursor:pointer}
#view-brain .bubble.voice-selected{outline:2px solid #477768;outline-offset:1px}
#view-brain .voice-session[hidden]{display:none!important}
#view-brain .voice-session{padding:12px;border:1px solid #bbd6cc;border-radius:12px;background:#f7fbf9;margin:8px 0;max-height:240px;overflow:auto;flex-shrink:0}
#view-brain .voice-session-head{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
#view-brain .voice-badge{font-size:12px;color:#45665c}
#view-brain .voice-session p{margin:6px 0;line-height:1.6}
#view-brain .voice-privacy{font-size:12px;color:#53655e}
#view-brain .voice-heard{white-space:pre-wrap;padding:6px;color:#111;background:white;min-height:25px;border-radius:6px}
#view-brain .voice-session-actions{display:flex;flex-wrap:wrap;gap:6px}
#view-brain .voice-session-actions button{min-height:40px;padding:8px 12px}
#view-brain .voice-session button[hidden]{display:none}
#view-brain .sahm-voice-player{padding:8px 12px;line-height:1.5}
#view-brain .sahm-voice-player .sahm-voice-disclosure{font-size:11px;line-height:1.5;max-height:34px;overflow:auto}
#view-brain .sahm-voice-player button{padding:5px 10px;margin:4px}
#view-brain .sahm-voice-player .sahm-service-status{font-size:12px;line-height:1.5}
#view-brain .chat-card.chat-focus{height:calc(100dvh - 20px);box-sizing:border-box;overflow:hidden;max-width:none}
#view-brain .chat-card.chat-focus .chat-messages{flex:1 1 0;min-height:200px;overflow:auto}
#view-brain .chat-focus>.sahm-voice-player{max-height:116px;overflow:auto}
#view-brain .chat-focus .chat-view-controls{margin:4px 0}
#view-brain .chat-focus>.voice-session{max-height:190px;margin:4px 0}
#view-brain .chat-focus>#brainContextCards:not(:empty),#view-brain .chat-focus>#chatInlineTools:not(:empty){max-height:70px}
#view-brain .chat-focus>.section-title{font-size:15px;padding:0;margin:0}
#view-brain .chat-focus>#chatStatus{font-size:12px;line-height:1.5;margin:4px 0}
#view-brain .chat-focus>textarea{flex:0 0 65px;min-height:55px}
#view-brain .chat-focus>.chat-recovery-actions{margin:2px 0}
@media(max-width:700px){
 #view-brain .chat-card.chat-focus{height:100dvh;padding:8px;inset:0}
 #view-brain .chat-card.chat-focus .chat-messages{min-height:160px}
 #view-brain .chat-focus>.sahm-voice-player{max-height:92px}
 #view-brain .chat-focus>.voice-session{max-height:150px}
 #view-brain .chat-focus>textarea{flex-basis:56px}
 #view-brain .chat-focus .chat-toolbar button{padding:7px;font-size:12px;min-height:36px}
 #view-brain .message-meta{gap:6px}
 #view-brain .message-copy,#view-brain .message-listen{min-height:40px}
 #view-brain .chat-focus .voice-privacy{max-height:40px;overflow:auto}
}
/* Preserve the transcript area: empty legacy action containers must not reserve space. */
#view-brain #brainContextCards:empty,#view-brain #chatInlineTools:empty{display:none!important;margin:0!important;padding:0!important}
#view-brain .voice-heard:empty{display:none}
#view-brain .chat-focus>.section-title h2{margin:3px 0;font-size:19px;line-height:1.7}
#view-brain .chat-focus #chatInput{min-height:55px;height:65px;max-height:100px;flex:0 0 65px}
#view-brain .chat-focus #sahmBrainServices summary{padding:8px 10px}
#view-brain .chat-focus .voice-session{padding:8px 10px}
#view-brain .chat-focus .voice-session p{margin:4px 0}
#view-brain .chat-focus .voice-session-head{gap:8px}
#view-brain .chat-focus .sahm-voice-player{margin-top:6px}
@media(max-width:700px){
 #view-brain .chat-focus #chatInput{min-height:48px;height:50px;flex-basis:50px}
 #view-brain .chat-focus .voice-session-actions button{padding:7px;min-height:36px;font-size:12px}
 #view-brain .chat-focus>.section-title h2{font-size:17px}
}
#view-brain .voice-session-actions{position:sticky;top:0;background:#f7fbf9;padding:3px 0;z-index:1}
#view-brain .voice-heard{max-height:55px;overflow:auto}
@media(max-width:700px){#view-brain .voice-heard{max-height:35px}#view-brain .chat-focus .voice-session-head .voice-badge{display:none}}
