/* HUMINI 1.8.30: mobile unified fullscreen workspace only. Desktop is untouched. */
.hm-mobile-toolbar{display:none}
@media(max-width:780px){
 html,body{height:100%;overflow:hidden}
 .hm-page{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;margin:0;padding:0;background:#fff;display:flex;flex-direction:column;overflow:hidden;z-index:1}
 .hm-page .hm-header{display:none}
 .hm-mobile-toolbar{display:flex;flex:0 0 auto;align-items:center;gap:7px;min-height:56px;padding:calc(6px + env(safe-area-inset-top)) 12px 7px;border-bottom:1px solid #eee;background:#fff}
 .hm-mobile-title{font-size:17px;font-weight:700;color:#292929;margin-right:auto}
 .hm-mobile-back{font-size:31px;text-decoration:none;color:#444;line-height:1;min-width:36px;text-align:center}
 .hm-mobile-panel-button{background:#fff;border:1px solid #e5e5e5;border-radius:18px;padding:8px 10px;font-size:12px;color:#555;white-space:nowrap;min-height:38px}
 .hm-main-grid{display:block;flex:1 1 0;min-height:0;overflow:hidden;margin:0;padding:0}
 .hm-chat.hm-card{display:flex;height:100%;max-height:none;min-height:0;border:0;border-radius:0;overflow:hidden}
 .hm-chat>.hm-section-head{display:none}
 .hm-temp-strip,.hm-saved-strip,.hm-temp-note{flex:0 0 auto;max-height:80px;overflow:auto}
 .hm-conversation{display:flex;flex:1 1 0;height:0;min-height:0;max-height:none;overflow:hidden;background:#fff}
 .hm-conversation .hm-chat-stream{height:100%;max-height:none;min-height:0;flex:1 1 0;overflow-y:auto;padding:16px 14px 22px;scrollbar-gutter:auto}
 .hm-mascot{display:none}
 .hm-chat-bottom{flex:0 0 auto;max-height:min(48dvh,360px);overflow-y:auto;overscroll-behavior:contain;padding:8px 12px calc(9px + env(safe-area-inset-bottom));border-top:1px solid #ededed}
 .hm-chat-hint{display:none}.hm-quick-tools{margin-bottom:7px}
 .hm-quick-tools>button{min-height:38px;font-size:12px}
 .hm-chat-input textarea{font-size:16px;min-height:44px;max-height:110px}
 .hm-chat-input button,.hm-chat-input button:not(:disabled){width:42px;height:42px;min-height:42px;flex-basis:42px}
 .hm-msg-bubble,.hm-greeting .hm-bubble,.hm-msg-assistant .hm-msg-bubble{font-size:15px;line-height:1.7}
 .hm-msg-user .hm-msg-bubble{font-size:15px}
 .hm-page .hm-structure,.hm-page .hm-surveys{display:none;position:fixed;z-index:15;inset:calc(56px + env(safe-area-inset-top)) 0 0;max-height:none;height:auto;margin:0;border:0;border-radius:0;background:#fff;overflow-y:auto;padding-bottom:env(safe-area-inset-bottom)}
 .hm-page.hm-mobile-show-structure .hm-structure{display:flex}
 .hm-page.hm-mobile-show-surveys .hm-surveys{display:block}
 .hm-page .hm-footer-note{display:none}
 .hm-page.hm-mobile-show-structure .hm-chat,.hm-page.hm-mobile-show-surveys .hm-chat{visibility:hidden}
 .hm-mobile-panel-button[aria-expanded="true"]{background:#f1effa;border-color:#b9b0dc;color:#55449b}
 .hm-page.hm-mobile-has-message .hm-greeting{display:none}
 .hm-page .hm-action-menu button,.hm-page .hm-jrx-actions button{min-height:40px;font-size:13px}
}

/* 1.8.31: isolate the mobile workspace from public page chrome and legacy CSS. */
@media (max-width:780px) {
 html:has(main[data-humini-workspace]), body:has(main[data-humini-workspace]) {width:100%;height:100%;overflow:hidden!important;overscroll-behavior:none}
 body.hm-mobile-workspace-active > header, body.hm-mobile-workspace-active > footer,
 body.hm-mobile-workspace-active > .site-header, body.hm-mobile-workspace-active > .site-footer {display:none!important}
 body.hm-mobile-workspace-active #hm-mini-launcher, body.hm-mobile-workspace-active #hm-mini-panel {display:none!important}
 body.hm-mobile-workspace-active main.hm-page[data-humini-workspace] {
  position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;
  width:100vw!important;max-width:100vw!important;height:100vh!important;height:100dvh!important;
  min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  z-index:2147483000!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:#fff!important;
 }
 body.hm-mobile-workspace-active .hm-page .hm-main-grid {display:block!important;flex:1 1 0!important;min-height:0!important;overflow:hidden!important;padding:0!important;margin:0!important}
 body.hm-mobile-workspace-active .hm-page .hm-chat.hm-card {height:100%!important;max-height:none!important;min-height:0!important;border:0!important;border-radius:0!important;display:flex!important;flex-direction:column!important}
 body.hm-mobile-workspace-active .hm-page .hm-conversation {display:flex!important;flex:1 1 0!important;min-height:0!important;height:0!important;max-height:none!important;overflow:hidden!important}
 body.hm-mobile-workspace-active .hm-page .hm-chat-stream {flex:1 1 0!important;min-height:0!important;height:100%!important;max-height:none!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}
 body.hm-mobile-workspace-active .hm-page .hm-mobile-toolbar {display:flex!important;flex-shrink:0!important}
 body.hm-mobile-workspace-active .hm-page .hm-chat-bottom {flex:0 0 auto!important;min-height:0!important;max-height:min(45dvh,340px)!important;overflow-y:auto!important}
 body.hm-mobile-workspace-active .hm-page .hm-mascot {display:none!important}
 body.hm-mobile-workspace-active .hm-page .hm-header,body.hm-mobile-workspace-active .hm-page .hm-footer-note {display:none!important}
 body.hm-mobile-workspace-active .hm-page .hm-structure,body.hm-mobile-workspace-active .hm-page .hm-surveys {z-index:2147483001!important}
 body.hm-mobile-workspace-active .hm-page.hm-mobile-show-structure .hm-structure {display:flex!important}
 body.hm-mobile-workspace-active .hm-page.hm-mobile-show-surveys .hm-surveys {display:block!important}
 body.hm-mobile-workspace-active .hm-page.hm-mobile-has-message .hm-greeting {display:none!important}
 body.hm-mobile-workspace-active .hm-page #hm-message {font-size:16px!important}
}
