/* IUAI_MOBILE_REFERENCE_HISTORY_20261024 */
.iuai-mobile-records-bar-v1{display:none}
@media(max-width:949px){
 :root{--iuai-mobile-safe-top:env(safe-area-inset-top,0px);--iuai-mobile-safe-bottom:env(safe-area-inset-bottom,0px);--iuai-mobile-header-height:calc(64px + var(--iuai-mobile-safe-top))}
 body.workspace-flow-active{--ui-bar:var(--iuai-mobile-header-height)!important}
 body.workspace-flow-active #workspace .app-topbar{
  top:0!important;height:var(--iuai-mobile-header-height)!important;min-height:var(--iuai-mobile-header-height)!important;box-sizing:border-box!important;
  padding:var(--iuai-mobile-safe-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left))!important;align-items:center!important;
 }
 body.workspace-flow-active #workspace .app-topbar .mobile-workspace-brand{min-width:0;gap:6px}
 body.workspace-flow-active #workspace .app-topbar #top-new-research{width:44px!important;min-width:44px!important;height:40px!important;padding:0!important;overflow:hidden}
 body.workspace-flow-active #workspace .app-topbar #top-new-research span{display:none!important}
 body.workspace-flow-active #workspace .app-topbar #top-avatar{flex-shrink:0;width:40px;height:40px}
 body.workspace-flow-active #workspace .app-topbar :is(#iuai-toggle-primary-v232,#iuai-toggle-ai-v232,#iuai-research-panel-collapse-v1){display:none!important}
 body.workspace-flow-active #workspace .app-topbar #sidebar-toggle{display:grid!important;position:static!important;width:40px;height:40px;flex-shrink:0}
 .iuai-mobile-records-bar-v1{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:0 0 14px}
 .iuai-mobile-records-bar-v1 button{border:1px solid var(--line,#293747);background:var(--card,#111923);color:var(--ink,#e8eef7);border-radius:10px;padding:9px 12px;font:inherit;font-size:13px;min-height:40px}
 .iuai-mobile-records-bar-v1 .iuai-chat-sync-status-v1{background:transparent;border:0;color:var(--muted);font-size:11px;padding:6px}
 body:is(.iuai-mobile-chat-records-open,.iuai-mobile-research-records-open){overflow:hidden!important}
 body.iuai-mobile-chat-records-open #iuai-ai-conversation-panel-v21,
 body.iuai-mobile-research-records-open #iuai-research-conversation-panel-v1{
  display:flex!important;position:fixed!important;left:0!important;top:var(--iuai-mobile-header-height)!important;bottom:var(--iuai-mobile-safe-bottom)!important;width:min(90vw,360px)!important;height:auto!important;max-height:none!important;z-index:202!important;transform:none!important;visibility:visible!important;pointer-events:auto!important;box-sizing:border-box!important;
 }
 #iuai-mobile-records-backdrop-v1{position:fixed;inset:var(--iuai-mobile-header-height) 0 0;z-index:201;background:rgba(0,0,0,.5);border:0;backdrop-filter:blur(3px)}
 #iuai-mobile-records-close-v1{flex-shrink:0;align-self:flex-end;margin:10px 12px 0;padding:6px 10px;border:1px solid var(--line,#293747);border-radius:8px;color:var(--ink,#e8eef7);background:transparent;min-height:36px}
 body.workspace-flow-active #workspace [data-app-view="history"]{min-width:0;width:100%;overflow-wrap:anywhere}
 body.workspace-flow-active #workspace [data-app-view="history"] .page-head{margin-inline:0!important;width:100%;padding-inline:0}
}
@media(display-mode:standalone) and (max-width:949px){
 @supports(-webkit-touch-callout:none){:root{--iuai-mobile-safe-top:max(env(safe-area-inset-top,0px),44px)}}
}
