/* Four reusable controls: the existing buttons move outside the inert app while training. */
.app>header,.app:has(#home:not([hidden]))>header,.app:has(#builder:not([hidden]))>header{grid-template-columns:176px minmax(66px,1fr) 98px;column-gap:6px}
.app>header .headeractions{gap:0}
.app>header .headeractions #header2Q{width:44px;min-width:44px;height:44px;min-height:44px;padding:6px;flex:0 0 44px;font-size:17px;font-weight:800}
#trainingToolbar{position:absolute;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:20;direction:ltr}
#trainingToolbar .headeractions{display:flex;align-items:center;gap:4px;direction:ltr}
#trainingToolbar .languagepicker{position:relative;order:-1}
#trainingToolbar .headeractions :is(#language,#appFullscreen,#crtVoiceHeaderToggle,#header2Q){display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:9px;flex:0 0 44px;border:1px solid #775134;border-radius:10px;background:#17120e;color:#ffb66b}
#trainingToolbar .headeractions svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}
#trainingToolbar #header2Q{font-size:17px;font-weight:800}
#trainingToolbar #languageMenu{left:0;right:auto;inset-inline-end:auto;z-index:25;direction:ltr}
#trainingToolbar #languageMenu button{min-width:100px;min-height:44px}
#trainingToolbar #crtVoiceHeaderToggle[data-state=listening]{border-color:#57b86e;color:#70df8b;background:#173b23}
#training #pause{top:max(12px,env(safe-area-inset-top));right:12px;width:44px;height:44px;min-height:44px;padding:6px}
#training #time{top:max(24px,calc(env(safe-area-inset-top) + 12px));left:12px;max-width:44px;font-size:20px}
#training :is(#cue,#launch,#breakLabel){top:max(16%,calc(env(safe-area-inset-top) + 72px))}
#training #overlay{padding-top:max(80px,calc(env(safe-area-inset-top) + 80px))}
#training .crt-voice.crt-voice--overlay{z-index:22;top:max(64px,calc(env(safe-area-inset-top) + 64px));width:min(440px,calc(100% - 24px));max-height:calc(100% - 130px);overflow-y:auto;padding:10px;border:1px solid #68472e;border-radius:10px;background:#17120e;font-size:12px}
#training .crt-voice--overlay :is(.cv-title,.cv-action-label,.cv-privacy,.cv-help,.cv-error,.cv-outcome){display:revert!important}
#training .crt-voice--overlay [hidden]{display:none!important}
#training .crt-voice--overlay .cv-action{width:auto;min-width:44px;min-height:44px}
#training .crt-voice--overlay .cv-help summary{min-height:44px;display:flex;align-items:center}
@media(max-width:600px){.app>header,.app:has(#home:not([hidden]))>header,.app:has(#builder:not([hidden]))>header{grid-template-columns:176px minmax(44px,1fr) 66px;column-gap:3px;grid-template-areas:"controls create brand"}.app>header #add{white-space:normal;font-size:10px;padding:6px 4px;gap:3px}}
@media(max-width:359px){.app>header,.app:has(#home:not([hidden]))>header,.app:has(#builder:not([hidden]))>header{grid-template-columns:176px minmax(44px,1fr) 50px;column-gap:2px}.app>header #add{font-size:0;gap:0;width:44px;padding:6px}.app>header #add::before{font-size:24px}}
