/* C44 phone command bar: two rows, readable dates, unobstructed navigation. */
body[data-bt-portal='worker'] #portal.app.hidden{display:none!important}
body[data-bt-portal='worker']:has(#portal.hidden) :is(.v4-mobile-nav,#bt84SoundButton){display:none!important}
body[data-bt-portal]:has(.modal.open) :is(.v4-mobile-nav,#bt84SoundButton){display:none!important}
body[data-bt-portal]:has(#content :is(.bt132-chat-shell,.chat-card,.ai-shell,.bt11-ai-wrap)) #bt84SoundButton{display:none!important}
html[data-bt-theme='dark'] body[data-bt-portal] .bt76-filter{color:#cbbfff!important;border-color:#9b87f5!important}
@media(max-width:780px){
 html[data-bt-theme] body[data-bt-portal='worker'] #portal #side{left:0!important;z-index:180!important;width:min(280px,86vw)!important;position:fixed!important;transform:translateX(-110%)!important;display:flex!important}
 html[data-bt-theme] body[data-bt-portal='worker'] #portal #side:is(.v4-open,.open){transform:translateX(0)!important}
 html[data-bt-theme] body[data-bt-portal] :is(.topbar,.top){height:112px!important;min-height:112px!important;max-height:none!important;padding:10px 12px 57px!important;box-sizing:border-box!important;align-items:center!important;position:relative!important;overflow:visible!important}
 body[data-bt-portal] .topbar>.top-actions{position:static!important}
 body[data-bt-portal] #bt10ActivePage{display:none!important}
 body[data-bt-portal='worker'] #portal>.main{grid-template-rows:112px minmax(0,1fr)!important;min-height:0!important}
 html[data-bt-theme] body[data-bt-portal='worker'] #content:has(.chat-card,.ai-shell){display:flex!important;flex-direction:column!important;min-height:0!important;height:auto!important;overflow:hidden!important;padding:7px 7px 82px!important}
 html[data-bt-theme] body[data-bt-portal='worker'] #content :is(.chat-card,.ai-shell){flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:100%!important;margin:0!important}
 html[data-bt-theme] body[data-bt-portal='worker'] #content .ai-shell{display:flex!important;flex-direction:column!important}
 html[data-bt-theme] body[data-bt-portal='worker'] #content .ai-shell .ai-log{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important}
 html[data-bt-theme] body[data-bt-portal] #bt76-host{position:absolute!important;top:63px!important;left:12px!important;right:12px!important;width:auto!important;height:38px!important;display:grid!important;grid-template-columns:minmax(115px,.85fr) minmax(0,1.3fr)!important;gap:7px!important;flex-wrap:nowrap!important;z-index:100!important}
 html[data-bt-theme] body[data-bt-portal] #bt76-host .bt76-filter{width:100%!important;max-width:none!important;min-width:0!important;padding:0 9px!important;font-size:11px!important;height:38px!important}
 html[data-bt-theme] body[data-bt-portal] #bt76-host .bt76-exact{min-width:0!important;width:auto!important;height:38px!important;padding:0 5px!important;font-size:10px!important;gap:4px!important}
 html[data-bt-theme] body[data-bt-portal] #bt76-host .bt76-exact .bt76-ico{display:none!important}
 html[data-bt-theme] body[data-bt-portal] #bt76-host .bt76-menu{position:fixed!important;left:12px!important;right:12px!important;top:110px!important;width:auto!important;box-sizing:border-box!important;max-height:calc(100dvh - 200px)!important;padding:14px!important;z-index:9999!important}
 body[data-bt-portal] .v4-mobile-menu,body[data-bt-portal] .v4-theme-button,body[data-bt-portal] .top-actions #bt1213Alerts,body[data-bt-portal] .top>.bell{min-height:40px!important;height:40px!important;min-width:36px!important}
 body[data-bt-portal] #bt84SoundButton{bottom:calc(83px + env(safe-area-inset-bottom))!important;right:13px!important;z-index:130!important}
 body[data-bt-portal]:has(#content :is(.bt132-chat-shell,.chat-card,.ai-shell,.bt11-ai-wrap)) #bt84SoundButton{display:none!important}
 body[data-bt-portal] #content{scroll-padding-bottom:90px!important}
 body[data-bt-portal='owner'].bt134-owner-messages #content{overflow:hidden!important;padding:10px 10px 82px!important;min-height:0!important}
 body[data-bt-portal='owner'].bt134-owner-messages #content>.bt132-chat-shell{display:flex!important;flex-direction:column!important;grid-template-rows:none!important;height:auto!important;min-height:180px!important;flex:1 1 0!important}
 body[data-bt-portal='owner'].bt134-owner-messages #content>.bt132-chat-shell>.bt132-list{display:flex!important;flex:1 1 0!important;height:auto!important;max-height:none!important;min-height:0!important}
 body[data-bt-portal='owner'].bt134-owner-messages #content>.bt132-chat-shell>#bt132ChatHost{display:none!important}
 body[data-bt-portal='owner'].bt134-owner-messages #content>.bt132-chat-shell.v44-conversation-open>.bt132-list{display:none!important}
 body[data-bt-portal='owner'].bt134-owner-messages #content>.bt132-chat-shell.v44-conversation-open>#bt132ChatHost{display:flex!important;flex-direction:column!important;flex:1 1 0!important;height:auto!important;min-height:0!important}
 body[data-bt-portal='owner'].bt134-owner-messages #content .bt132-chat-shell #bt132MainChat{display:flex!important;flex-direction:column!important;flex:1 1 0!important;height:auto!important;min-height:0!important}
 body[data-bt-portal='owner'].bt134-owner-messages #content .bt132-chat-shell .bt132-chat-log{flex:1 1 0!important;min-height:0!important;height:auto!important;overflow-y:auto!important}
 body[data-bt-portal='owner'].bt134-owner-messages #content .bt132-chat-shell :is(.bt132-chat-head,.bt132-compose,.v44-chat-back){flex:0 0 auto!important}
 html[data-bt-theme] body[data-bt-portal]:not(.c44-keyboard-open):not(:has(.modal.open)):has(#content textarea:focus) .v4-mobile-nav{display:grid!important}
 html[data-bt-theme] body[data-bt-portal].c44-keyboard-open .v4-mobile-nav{display:none!important}
 html[data-bt-theme] body[data-bt-portal].c44-keyboard-open #content:has(.chat-card,.bt132-chat-shell,.ai-shell,.bt11-ai-wrap){padding-bottom:12px!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content:has(.bt11-ai-wrap){display:flex!important;flex-direction:column!important;min-height:0!important;height:auto!important;max-height:100%!important;overflow:hidden!important;padding:8px 10px 82px!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content:has(.bt11-ai-wrap)>.section-head{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;flex:0 0 auto!important;margin:8px 0!important;gap:8px!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content:has(.bt11-ai-wrap)>.section-head h2{font-size:17px!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;min-width:0!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content:has(.bt11-ai-wrap)>.section-head .btn{flex:0 0 auto!important;min-width:0!important;max-width:100px!important;padding:8px!important;font-size:12px!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content:has(.bt11-ai-wrap)>.section-head p{display:none!important}
 body[data-bt-portal='owner'] .c44-ai-settings{flex:0 0 auto;max-height:210px;overflow-y:auto;border:1px solid var(--v4-line);border-radius:12px;background:var(--v4-card)}
 body[data-bt-portal='owner'] .c44-ai-settings>summary{min-height:42px;padding:10px 12px;box-sizing:border-box;cursor:pointer;font-size:13px;font-weight:700;color:var(--v4-text)}
 body[data-bt-portal='owner'] .c44-ai-settings:not([open])>#bt1211AIStack{display:none!important}
 body[data-bt-portal='owner'] .c44-ai-settings #bt1211AIStack{margin:0!important;border:0!important;padding:12px!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content .bt11-ai-wrap{display:flex!important;flex-direction:column!important;flex:1 1 0!important;height:auto!important;min-height:0!important;overflow:hidden!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content .bt11-ai-wrap .bt11-ai-side.v44-show-options{max-height:120px!important;flex:0 0 auto!important;overflow:auto!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content .bt11-ai-wrap .bt11-ai-main{display:flex!important;flex-direction:column!important;flex:1 1 0!important;height:auto!important;min-height:0!important;overflow:hidden!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content .bt11-ai-wrap .bt11-ai-title{display:none!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content .bt11-ai-wrap .bt11-ai-messages{flex:1 1 0!important;height:auto!important;min-height:0!important;overflow-y:auto!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content .bt11-ai-wrap .bt11-ai-compose{flex:0 0 auto!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content:has(.c44-ai-settings[open],.bt11-ai-side.v44-show-options){overflow-y:auto!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content:has(.c44-ai-settings[open]) .bt11-ai-wrap{min-height:200px!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content:has(.bt11-ai-side.v44-show-options) .bt11-ai-wrap{min-height:320px!important}
 body[data-bt-portal] .c44-drawer-close{position:absolute;right:12px;top:18px;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--v4-line);border-radius:12px;background:var(--v4-card2);color:var(--v4-text);font-size:24px;z-index:2;cursor:pointer}
 body[data-bt-portal] :is(.sidebar,.side) .brandbar{padding-right:62px!important}
 body[data-bt-portal] :is(input,select,textarea){font-size:16px!important}
 body[data-bt-portal] :is(#modal,.modal) :is(input,select,textarea){max-width:100%!important;box-sizing:border-box!important}
 body[data-bt-portal] .modal.open .modal-head{position:sticky!important;top:0!important;z-index:2!important;background:var(--v4-card)!important;padding:8px 0!important}
}
@media(min-width:781px){.c44-drawer-close{display:none!important}}
@media(min-width:781px){.c44-ai-settings{display:contents}.c44-ai-settings>summary{display:none}}
@media(max-width:359px){body[data-bt-portal] .v4-live-clock{display:none!important}body[data-bt-portal] #bt76-host .bt76-exact{font-size:8px!important}}
/* A short landscape viewport must scroll to controls instead of clipping them. */
@media(min-width:781px) and (max-width:1000px){
 html[data-bt-theme] body[data-bt-portal='owner']>.app{display:grid!important;grid-template-columns:210px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;height:100dvh!important;min-height:0!important;padding:0!important;gap:0!important;overflow:hidden!important}
 html[data-bt-theme] body[data-bt-portal='owner']>.app>#sidebar{display:flex!important;flex-direction:column!important;position:relative!important;left:auto!important;top:auto!important;width:210px!important;height:100dvh!important;min-height:0!important;transform:none!important;overflow:hidden!important;border-radius:0!important}
 html[data-bt-theme] body[data-bt-portal='owner']>.app>#sidebar #nav{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important}
 html[data-bt-theme] body[data-bt-portal='owner']>.app>.main{display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;height:100dvh!important;width:auto!important;overflow:hidden!important}
}
@media(min-width:781px) and (max-height:560px){
 html[data-bt-theme] body[data-bt-portal='owner'] #content:has(.bt11-ai-wrap){display:block!important;height:auto!important;min-height:0!important;overflow-y:auto!important;padding-bottom:24px!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content .bt11-ai-wrap{height:420px!important;min-height:420px!important;max-height:none!important;overflow:hidden!important}
 html[data-bt-theme] body[data-bt-portal='owner'] #content .bt11-ai-wrap .bt11-ai-main{height:420px!important;min-height:0!important;max-height:none!important}
}
