body.ai-fullscreen .content[data-page="ai"]{height:var(--voice-viewport-height,100dvh)!important;bottom:auto!important}
body.ai-fullscreen .content[data-page="ai"] .ai-dialog-shell.is-expanded{height:100%!important;max-height:100%!important}
body.ai-fullscreen .content[data-page="ai"] .ai-dialog-toolbar,
.jarvis-voice-screen>header,.settings-screen>header{
  padding-top:calc(12px + max(env(safe-area-inset-top,0px),var(--voice-safe-top,0px)))!important;
  padding-left:calc(12px + var(--voice-safe-left,0px))!important;
  padding-right:calc(12px + var(--voice-safe-right,0px))!important;
  flex-shrink:0;position:relative;z-index:5;
}
.ai-dialog-toolbar button,.jarvis-voice-screen>header button{min-height:44px!important;flex-shrink:0;white-space:nowrap}
.jarvis-voice-screen{height:var(--voice-viewport-height,100dvh)!important;min-height:0!important;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.jarvis-voice-stage{min-height:0;overflow-y:auto;padding:16px!important}
.jarvis-voice-screen>header h2{color:#f1f8fc!important;font-size:clamp(18px,4.5vw,26px)}
.jarvis-voice-screen>header .hero-kicker{color:#80dadd!important}
#jarvis-voice-transcript{white-space:pre-wrap;overflow-wrap:anywhere;max-height:35vh;overflow-y:auto}
.jarvis-voice-screen>footer,body.ai-fullscreen .content[data-page="ai"] .ai-compose{
  padding-bottom:calc(12px + max(env(safe-area-inset-bottom,0px),var(--voice-safe-bottom,0px)))!important;
}
body.ai-fullscreen .ai-inline-listening{position:absolute;left:8px;right:8px;bottom:100px;z-index:6;background:var(--card,#fff)}

/* Confirmation remains reachable without a working speaker or microphone. */
.jarvis-action-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;margin-top:12px}
.jarvis-action-controls[hidden]{display:none}
.jarvis-action-controls button{min-height:46px}
.jarvis-voice-screen>footer{display:flex;flex-wrap:wrap;gap:8px;flex:0 0 auto}
.jarvis-voice-screen>footer>button:first-child{flex:1 1 100%}
.jarvis-voice-screen>footer>button{flex:1 1 40%;min-height:44px}
.jarvis-voice-stage{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:16px}
#jarvis-answer-details{min-height:0;overflow-y:auto;max-height:none}
#jarvis-voice-transcript{overflow-wrap:anywhere;text-align:left}
.jarvis-voice-stage:has(.jarvis-action-controls:not([hidden])) .jarvis-orb{flex:0 0 auto;width:116px;height:116px;margin:12px auto}
@media(max-height:650px){.jarvis-voice-stage .jarvis-orb{width:92px;height:92px;flex:0 0 auto;margin:8px auto}.jarvis-voice-stage{justify-content:flex-start}}
