.department-mobile-bar{display:none}
.department-mobile-dialog{padding:0;border:0;border-radius:16px 16px 0 0;width:100%;max-width:600px;max-height:75dvh;margin:auto auto 0;box-sizing:border-box;color:#1f1f1f;background:#fff;box-shadow:0 -4px 24px #0002}
.department-mobile-dialog::backdrop{background:#0006}
.department-mobile-dialog header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:1px solid #eee}
.department-mobile-dialog button,.department-mobile-bar button{font:inherit;border:0;background:transparent;color:#1677ff;padding:10px 12px;min-height:44px;cursor:pointer}
.department-mobile-dialog nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px 16px calc(16px + env(safe-area-inset-bottom));gap:0 16px}
.department-mobile-dialog a{display:flex;align-items:center;min-height:52px;padding:8px 0;box-sizing:border-box;border-bottom:1px solid #f0f0f0;color:#333;text-decoration:none;overflow-wrap:anywhere;font-size:15px}
.department-mobile-dialog a[aria-current]{color:#1677ff;font-weight:600}
@media(max-width:1023px){
 html.wecom-h5 #root .department-mobile-bar{display:flex!important;align-items:center;justify-content:space-between;flex:0 0 52px!important;height:52px!important;min-height:52px!important;padding:0 4px 0 16px!important;box-sizing:border-box;background:#fff;border-bottom:1px solid #eee;gap:8px!important}
 .department-mobile-title{margin-right:auto;font-size:16px;line-height:24px;font-weight:600}
 html.wecom-h5 #root .assistant-work-tools[aria-label="部门工作工具"],html.wecom-h5 #root .employee-workspace .assistant-work-tools[aria-label="部门工作工具"],html.wecom-h5 #root .wecom-department-menus,html.wecom-h5 #root .wecom-agent-tools{display:none!important}
 html.wecom-h5.department-mobile-chat #root .employee-workspace,html.wecom-h5.department-mobile-chat #root .sales-assistant-workspace{height:calc(100dvh - 59px - env(safe-area-inset-bottom))!important;min-height:0!important;max-height:calc(100dvh - 59px - env(safe-area-inset-bottom))!important;padding:0!important;gap:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
 html.wecom-h5.department-mobile-chat #root .employee-workspace>[aria-label="工作方式"],html.wecom-h5.department-mobile-chat #root .sales-assistant-workspace>[role="tablist"]{display:none!important}
 html.wecom-h5.department-mobile-chat #root .employee-ai-view,html.wecom-h5.department-mobile-chat #root .sales-assistant-workspace>.integrated-ai-workspace{flex:1 1 0!important;min-height:0!important;height:auto!important}
 html.wecom-h5.department-mobile-chat #root .assistant-composer-wrap{flex:0 0 auto!important}
}

@media(max-width:1023px){html.wecom-h5 #root .department-mobile-heading{display:none!important}}
@media(max-width:1023px){
 html.wecom-h5.department-mobile-chat #root .department-unified-heading,html.wecom-h5.department-mobile-chat #root .department-unified-nav{display:none!important}
 html.wecom-h5.department-mobile-chat #root .ant-pro-layout-content,html.wecom-h5.department-mobile-chat #root .ant-pro-page-container-children-container{padding:0!important;margin:0!important}
 html.wecom-h5.department-mobile-chat #root .employee-ai-view .assistant-page,html.wecom-h5.department-mobile-chat #root .employee-ai-view .integrated-ai-workspace,html.wecom-h5.department-mobile-chat #root .employee-ai-view .assistant-layout{height:100%!important;min-height:0!important;max-height:100%!important}
 html.wecom-h5.department-mobile-chat #root .assistant-main{min-height:0!important}
 html.wecom-h5.department-mobile-chat #root .assistant-messages{min-height:0!important;overflow-y:auto!important}
}
.department-mobile-dialog .department-mobile-action{text-align:left;color:#333;border-bottom:1px solid #f0f0f0;padding:8px 0;min-height:52px;font-size:15px}
.department-mobile-dialog .department-mobile-action:disabled{color:#bfbfbf;cursor:default}
@media(max-width:1023px){html.wecom-h5 #root .employee-workspace:has(>.department-mobile-bar)>.department-unified-nav{display:none!important}html.wecom-h5 #root .department-mobile-bar{order:-10!important}html.wecom-h5 #root .department-mobile-bar button[hidden]{display:none!important}}
@media(max-width:1023px){html.wecom-h5.department-mobile-chat #root#root .ant-pro-page-container-children-container:has(.employee-workspace){padding:0!important;margin:0!important}}
