/* Compact voice island; independent from settings action buttons. */
.live-voice-message .msg-content{white-space:pre-wrap}
body.live-audio-active .welcome-icon,body.live-audio-active #btn-mic,body.live-audio-active #session-title{animation:none!important}
#live-voice-context-status{white-space:pre-line}
#live-voice-controls{width:fit-content;max-width:calc(100% - 24px);margin:8px auto 4px;padding:7px 9px!important;border:1px solid #45404f;border-radius:999px;background:#18171c;color:#f5f3ff;box-shadow:0 6px 20px rgba(0,0,0,.3);flex:0 0 auto;align-self:center}
#live-voice-controls[hidden]{display:none!important}
.live-island-row{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:nowrap}
.live-island-label{display:inline-flex;align-items:center;gap:6px;padding-left:4px;font-size:13px;font-weight:700;white-space:nowrap}
.live-island-dot{width:7px;height:7px;background:#4ade80;border-radius:50%;box-shadow:0 0 0 3px rgba(74,222,128,.12)}
#live-voice-controls #live-voice-clock{font:600 13px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;color:#e9e5f5;white-space:nowrap;min-width:40px}
.live-island-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;color:#fff;cursor:pointer;touch-action:manipulation;flex:0 0 44px}
.live-island-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.live-island-button:focus-visible{outline:2px solid #c4b5fd;outline-offset:2px}
.live-island-button:disabled{opacity:.5;cursor:default}
.live-island-mic{background:#6d28d9}.live-island-mic[aria-pressed=true]{background:#44404c}
.live-island-end{background:#b91c1c}.live-island-end svg rect{fill:currentColor;stroke:0}
.live-island-info{background:transparent;color:#ccc6dc;border:1px solid #494352}
.live-mic-slash{display:none}.mic-muted .live-mic-slash{display:block}
.mic-muted .live-island-dot{background:#fbbf24;box-shadow:0 0 0 3px rgba(251,191,36,.12)}
#live-voice-controls.with-details{border-radius:25px}
#live-voice-context-status{display:block;max-width:290px;margin:7px 0 3px;padding:0 4px;color:#bdb6cd;font:12px/1.5 -apple-system,BlinkMacSystemFont,sans-serif;overflow-wrap:anywhere}
#live-voice-context-status[hidden]{display:none!important}
body.light #live-voice-controls{background:#f5f3ff;color:#282133;border-color:#d6ccea;box-shadow:0 5px 18px rgba(76,29,149,.1)}
body.light #live-voice-controls #live-voice-clock{color:#3b304e}body.light .live-island-info{color:#514460;border-color:#c5b9d8}
body.light #live-voice-context-status{color:#675877}
@media(max-width:768px),(pointer:coarse){
 /* Keep the original full-height/safe-area layout when the keyboard is shut. */
 /* Follow the document-space visual viewport, including iOS caret panning. */
 body.keyboard-open #app{position:absolute;left:0;top:var(--app-top,0px);height:var(--app-height,100dvh)!important;min-height:0!important;width:100%;max-width:100vw}
 body.keyboard-open #main{height:100%!important;min-height:0!important}
 #main .messages{min-height:0;overscroll-behavior:contain}
 body.keyboard-open #main .topbar{position:absolute!important;top:env(safe-area-inset-top)!important;left:0;right:0}
 body.keyboard-open .sidebar{position:absolute;top:0;bottom:auto;height:100%}
 #main .chat-area{flex-shrink:0}
 body.keyboard-open #main .chat-area{padding-top:6px;padding-bottom:8px!important}
 body.keyboard-open .composer .chat-input{min-height:44px;height:44px;max-height:72px}
 body.keyboard-open .status-wrap{display:none}
 body.keyboard-open .composer-tools{padding-top:4px}
 body.keyboard-open #live-voice-controls{margin-top:5px;margin-bottom:3px}
 body.keyboard-open #live-voice-context-status{display:none!important}
 body.keyboard-open .live-island-info{display:none}
 body.keyboard-open .chat-todo-panel{display:none!important}
 .composer .chat-input{font-size:16px}
}
