/* Chat occupies the visible viewport; only the message history scrolls. */
@media(max-width:899px){
 body.hub-mobile-chat{overflow:hidden!important;overscroll-behavior:none}
 body.hub-mobile-chat #prisma-mobile-ux{position:fixed!important;inset:auto 0 auto 0!important;top:var(--hub-visible-top,0px)!important;height:var(--hub-visible-height,100dvh)!important;min-height:0!important;width:100%!important;display:block!important;overflow:hidden!important;margin:0!important;padding:0!important}
 body.hub-mobile-chat #prisma-mobile-ux>.prisma-phone{height:100%!important;min-height:0!important;max-height:100%!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important;box-sizing:border-box!important}
 body.hub-mobile-chat #prisma-mobile-ux .prisma-tabs{flex:0 0 auto!important}
 body.hub-mobile-chat #hub-ai-pane{flex:1 1 0!important;height:auto!important;min-height:0!important;overflow:hidden!important;padding:0 8px max(8px,env(safe-area-inset-bottom))!important}
 body.hub-mobile-chat #hub-ai-pane .hub-testar{height:100%;min-height:0;overflow:hidden}
 body.hub-mobile-chat #hub-ai-pane .hub-search-results{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;padding:16px 8px 20px!important;scroll-padding-bottom:20px}
 body.hub-mobile-chat #hub-ai-pane .hub-composer{position:relative!important;bottom:auto!important;flex:0 0 auto!important;transition:none!important;width:100%!important;max-height:none!important}
 body.hub-mobile-chat #hub-ai-pane .hub-message-input{font-size:16px!important}
 body.hub-mobile-chat.hub-keyboard-open #prisma-mobile-ux .prisma-tabs{min-height:52px!important;padding:4px 0!important}
 body.hub-mobile-chat.hub-keyboard-open #prisma-mobile-ux .prisma-tabs>button{min-height:44px!important;flex-direction:row!important;gap:5px!important;padding:0 3px!important}
 body.hub-mobile-chat.hub-keyboard-open #prisma-mobile-ux .prisma-tabs .hub-nav-icon{width:28px!important;height:28px!important;flex-basis:28px!important}
 body.hub-mobile-chat.hub-keyboard-open #prisma-mobile-ux .prisma-tabs>button b{font-size:14px!important}
 body.hub-mobile-chat.hub-keyboard-open #hub-ai-pane{padding-bottom:6px!important}
 body.hub-mobile-chat.hub-keyboard-open #hub-ai-pane .hub-case-toolbar{padding:3px 0!important}
 body.hub-mobile-chat.hub-keyboard-open #hub-ai-pane [data-new-case]{height:34px!important;min-height:34px!important;padding:4px 18px!important}
}

@media(max-width:899px){body.hub-mobile-chat #hub-ai-pane .hub-search-results{mask-image:linear-gradient(to bottom,var(--hub-fade-top,black),black 10px,black calc(100% - 16px),var(--hub-fade-bottom,black));-webkit-mask-image:linear-gradient(to bottom,var(--hub-fade-top,black),black 10px,black calc(100% - 16px),var(--hub-fade-bottom,black))}body.hub-mobile-chat #hub-ai-pane .hub-composer{border-radius:28px!important;min-height:54px!important}body.hub-mobile-chat #hub-ai-pane .hub-message-input{top:6px!important;left:42px!important;right:88px!important;padding:8px 0!important;line-height:24px!important;min-height:40px!important}body.hub-mobile-chat #hub-ai-pane .hub-message-input:empty:before{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.hub-mobile-chat #hub-ai-pane .hub-add{left:3px!important;bottom:6px!important}body.hub-mobile-chat #hub-ai-pane .hub-composer-tools{right:6px!important;bottom:6px!important}body.hub-mobile-chat #hub-ai-pane .hub-composer.voice-active .hub-message-input{visibility:hidden}body.hub-mobile-chat #hub-ai-pane .hub-attachments{bottom:48px!important}}

@media(max-width:899px){
 body.hub-mobile-chat #prisma-mobile-ux .prisma-sticky{flex:0 0 auto!important;padding-top:env(safe-area-inset-top,0px)!important}
 body.hub-mobile-chat #prisma-mobile-ux>.prisma-phone{padding-left:env(safe-area-inset-left,0px)!important;padding-right:env(safe-area-inset-right,0px)!important}
 body.hub-mobile-chat #hub-ai-pane .hub-composer.has-attachments .hub-message-input{top:44px!important}
 body.hub-mobile-chat #hub-ai-pane .hub-attachments{top:6px!important;bottom:auto!important;height:30px!important}
}

@media(min-width:900px){body #prisma-mobile-ux #hub-ai-pane{height:calc(100dvh - var(--hub-ai-top, 104px))!important;padding-bottom:24px!important;box-sizing:border-box}body #prisma-mobile-ux #hub-ai-pane .hub-testar{height:100%!important;min-height:0}body #prisma-mobile-ux #hub-ai-pane .hub-composer{position:relative!important;bottom:auto!important;flex-shrink:0}}
@media(min-width:900px){body #prisma-mobile-ux #hub-ai-pane .hub-search-results{min-height:0!important;flex:1 1 0!important;overflow-y:auto!important}}
@media(min-width:900px){body #prisma-mobile-ux #hub-ai-pane{min-height:0!important}}
@media(max-width:899px){body.hub-mobile-chat:not(.hub-keyboard-open) #hub-ai-pane .hub-case-toolbar{padding:7px 0 16px!important}}
