/* Mobile workspace: keep the existing navigation and screens usable on phones. */
@media (max-width: 800px) {
 .tenant-workspace { height:100dvh; }
 .tw-sidebar { width:56px; min-width:56px; padding:12px 0; overflow-y:auto; }
 .tw-sidebar > * { max-width:100%; }
 .tw-nav-grouped { gap:12px; }
 .tw-nav-group { gap:8px; }
 .tw-nav-item { width:44px; height:44px; flex-shrink:0; }
 .tw-sidebar-bottom { gap:8px; }
 .tw-body,.tw-main { min-width:0; }
 .tw-topbar { position:relative; top:auto; right:auto; justify-content:flex-end; padding:10px 12px 0; gap:8px; flex-wrap:wrap; }
 .tw-topbar > * { max-width:100%; font-size:12px; }
 .th-page { padding:16px 12px 88px; height:auto!important; min-height:100%; }
 .th-card { padding:14px; min-width:0; box-sizing:border-box; }
 .th-page > div:has(> .th-card #wz-business-chat) { flex-direction:column-reverse!important; gap:16px!important; min-height:0!important; }
 .th-page > div:has(> .th-card #wz-business-chat) > .th-card { flex:none!important; width:100%!important; }
 .th-page > div:has(> .th-card #wz-business-chat) > .th-card:not(:has(#wz-business-chat)) { height:300px!important; }
 .th-card:has(#wz-business-chat) > * { min-width:0; }
 .th-card:has(#wz-business-chat) input { width:100%; box-sizing:border-box; min-width:0; }
 .wz-brain-chat { min-width:0; }
 .wz-brain-chat textarea { font-size:16px; min-height:80px; }
 .wz-brain-chat form { padding:10px; }
 .wz-brain-chat button { min-height:44px; white-space:normal; }
 .wz-brain-chat [data-attach] { width:44px; height:44px; }
 .wz-brain-chat [data-facts] { font-size:12px; flex:1 1 100px; padding:6px; }
 .wz-brain-chat button[type=submit] { padding:8px 12px; }
 .wz-brain-chat [data-history] { max-height:240px; }
 .to-numeros { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .to-palco { grid-template-columns:minmax(0,1fr); }
 .tenant-workspace input,.tenant-workspace select,.tenant-workspace textarea { max-width:100%; }
}
