/* Mobile navigation extends the existing teamdodo surfaces and typography. */
.mobile-bottom-nav,.mobile-context-heading,.mobile-chat-back,.mobile-search-label,.mobile-profile-close{display:none}
.mobile-modules-dialog{display:none}
.mobile-chat-home{max-width:760px;margin:0 auto;padding:28px 24px}.mobile-chat-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.mobile-chat-heading h1{margin:0;font-size:26px}.mobile-chat-heading .icon-button{width:44px;height:44px}.mobile-chat-filters{display:flex;gap:4px;padding:4px;background:var(--surface-muted);border-radius:12px;margin-bottom:12px}.mobile-chat-filters>a{flex:1;text-align:center;min-height:44px;display:grid;place-items:center;border-radius:8px;font-size:14px;color:var(--muted);font-weight:600}.mobile-chat-filters>a.selected{background:var(--surface);color:var(--accent-ink)}.mobile-conversation{display:flex;align-items:center;gap:12px;min-height:84px;padding:14px 0;border-bottom:1px solid var(--line);color:var(--ink)}.mobile-conversation>.avatar,.mobile-conversation-icon{width:46px;height:46px;border-radius:50%;flex:none}.mobile-conversation-icon{display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-ink)}.mobile-conversation-icon>.icon{width:22px;height:22px}.mobile-conversation-copy{flex:1;min-width:0}.mobile-conversation-copy>strong{display:block;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-conversation.has-unread .mobile-conversation-copy>strong{font-weight:800}.mobile-conversation-copy>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.5;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.mobile-conversation-copy>small{font-size:12px;color:var(--muted)}.mobile-conversation-meta{display:flex;align-self:stretch;align-items:flex-end;flex-direction:column;gap:9px;padding-top:2px;flex:none}.mobile-conversation-meta time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.mobile-unread-count{min-width:23px;height:23px;display:grid;place-items:center;padding:0 6px;border-radius:8px;background:var(--accent);color:var(--accent-on);font-size:12px;font-weight:700}.mobile-chat-empty{padding:40px 0;text-align:center}.mobile-chat-empty h2{font-size:18px;margin:0 0 20px}
@media(max-width:760px){
 :root{--mobile-call-height:0px;--mobile-connection-height:0px;--mobile-top-height:calc(56px + env(safe-area-inset-top,0px) + var(--mobile-call-height) + var(--mobile-connection-height));--mobile-bottom-height:calc(64px + env(safe-area-inset-bottom,0px));--mobile-work-height:calc(100dvh - var(--mobile-top-height) - var(--mobile-bottom-height))}
 .workbench-ui:has(#live-connection:not([hidden])){--mobile-connection-height:28px}
 .workbench-ui:has(#meeting-quick:not([hidden])){--mobile-call-height:52px}
 .suite-shell.workbench-ui{--mobile-top-height:calc(56px + env(safe-area-inset-top,0px) + var(--mobile-call-height) + var(--mobile-connection-height));--mobile-bottom-height:calc(64px + env(safe-area-inset-bottom,0px));--mobile-work-height:calc(var(--mobile-viewport-height,100dvh) - var(--mobile-top-height) - var(--mobile-bottom-height));height:var(--mobile-viewport-height,100dvh);min-height:0;padding-bottom:var(--mobile-bottom-height);overflow:hidden;display:flex;flex-direction:column}
 .workbench-ui>.app-rail{display:none!important}
 .suite-shell.workbench-ui>.topbar{position:relative;top:0;flex:none;height:var(--mobile-top-height);min-height:var(--mobile-top-height);padding:env(safe-area-inset-top,0px) 12px 0;gap:8px;background:var(--surface);border:0;border-bottom:1px solid var(--line);z-index:60;align-items:flex-start}
 .workbench-ui>.topbar>.workspace-switcher,.topbar-account{display:none!important}
 .workbench-ui>.topbar>.mobile-menu,.workbench-ui>.topbar>.mobile-chat-back{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:10px;margin-top:6px;flex:none;color:var(--ink);border:0;background:transparent}
 .workbench-ui.app-chat:has(.mobile-chat-back)>.topbar>.mobile-menu{display:none}
 .mobile-chat-back>.icon{transform:rotate(180deg)}
 .workbench-ui>.topbar>.topbar-actions{display:flex;align-items:center;gap:8px;flex:1;min-width:0;height:56px;margin:0}
 .workbench-ui>.topbar .search-trigger{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex:1;min-width:0;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-muted);color:var(--muted);font-size:15px}
 .workbench-ui>.topbar .search-trigger>span{display:block!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.workbench-ui>.topbar .search-trigger>.desktop-search-label{display:none!important}.workbench-ui>.topbar .search-trigger>kbd{display:none}.workbench-ui>.topbar .search-trigger>.icon{width:19px;height:19px;flex:none}
 .workbench-ui>.topbar .notification-button{display:flex!important;align-items:center;justify-content:center;position:relative;min-width:44px;width:44px;height:44px;padding:10px;color:var(--ink);background:transparent;border:0;border-radius:12px;flex:none}
 .workbench-ui>.topbar .notification-button>.icon{width:23px;height:23px}.workbench-ui .inbox-bell-count{top:1px;right:0}
 .workbench-ui>.topbar #live-connection[hidden]{display:none!important}.workbench-ui>.topbar #live-connection:not([hidden]){position:absolute;display:flex;align-items:center;gap:8px;height:28px;left:12px;right:12px;top:calc(56px + env(safe-area-inset-top,0px) + var(--mobile-call-height));z-index:2;background:var(--surface);color:var(--muted);padding:2px 4px;font-size:12px;pointer-events:none}

 .workbench-ui>.topbar #meeting-quick:not([hidden]){position:absolute;top:calc(56px + env(safe-area-inset-top,0px));left:12px;right:12px;height:52px;display:flex;align-items:center;min-width:0;padding:0;margin:0;gap:8px;overflow:hidden}.workbench-ui #meeting-quick .meeting-quick-trigger{min-height:44px;max-width:100%;width:100%;justify-content:space-between}.workbench-ui #meeting-quick strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .suite-shell .workspace-frame{display:contents}.suite-shell.workbench-ui .workspace-frame>.main-shell{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;width:100%;overflow:hidden}.suite-shell.workbench-ui #content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;width:100%;max-width:none;padding:20px 16px 24px}.suite-shell.workbench-ui #content:is(.workspace-content,.data-content){padding:0}
 .mobile-bottom-nav{position:fixed;bottom:0;left:0;right:0;height:var(--mobile-bottom-height);padding:4px max(12px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(12px,env(safe-area-inset-left,0px));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;background:var(--surface);border-top:1px solid var(--line);z-index:61}
 .mobile-bottom-nav .mobile-tab{min-height:56px;min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;border:0;border-radius:12px;padding:5px 8px;background:transparent;color:var(--muted);font:600 12px/1.3 Manrope,Arial,sans-serif;position:relative;text-decoration:none;cursor:pointer}.mobile-bottom-nav .mobile-tab.is-active{background:var(--accent-soft);color:var(--accent-ink)}.mobile-bottom-nav .mobile-tab>.icon,.mobile-message-icon>.icon{width:24px;height:24px}.mobile-bottom-nav .mobile-tab:disabled{opacity:.45;cursor:default}.mobile-bottom-nav .avatar{width:26px;height:26px;border-radius:50%;font-size:10px}.mobile-message-icon{position:relative;height:26px;display:grid;place-items:center}.mobile-message-badge{position:absolute;right:-14px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:6px;background:var(--accent);color:var(--accent-on);font-size:10px;line-height:18px;text-align:center;font-variant-numeric:tabular-nums}.mobile-message-badge[hidden]{display:none}
 .mobile-bottom-nav .mobile-tab:focus-visible,.mobile-module-link:focus-visible,.mobile-current-menu:focus-visible,.mobile-chat-filters>a:focus-visible,.mobile-conversation:focus-visible{outline:2px solid var(--accent-ink);outline-offset:-3px}
 .mobile-modules-dialog[open]{display:flex;flex-direction:column;position:fixed;inset:auto 0 0;width:100%;max-width:560px;max-height:calc(100dvh - env(safe-area-inset-top,0px) - 12px);margin:0 auto;padding:0;border:0;border-radius:22px 22px 0 0;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-menu);overflow:hidden}
 .mobile-modules-dialog::backdrop,#sidebar::backdrop,#account-menu::backdrop{background:rgb(18 22 34 / 38%)}
 .mobile-modules-dialog>header,.mobile-context-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:12px 16px;border-bottom:1px solid var(--line);flex:none}.mobile-modules-dialog h2,.mobile-context-heading h2{font-size:20px;font-weight:700;margin:0;line-height:1.3}.mobile-modules-dialog .icon-button,.mobile-context-heading .icon-button{width:44px;height:44px;min-height:44px;padding:11px;flex:none}
 .mobile-modules-body{padding:18px 16px max(20px,env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain}.mobile-workspace-label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:7px}.mobile-modules-body .workspace-switcher{width:100%;max-width:none;height:auto;margin:0 0 16px}.mobile-modules-body .workspace-switcher select{width:100%;height:48px;min-height:48px;border:1px solid var(--line);border-radius:10px;background:var(--surface-muted);color:var(--ink);padding:10px 38px 10px 12px;font:600 15px Manrope,Arial,sans-serif;text-overflow:ellipsis}.mobile-modules-body .workspace-switcher>.icon{right:14px}
 .mobile-current-menu{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;margin:0 0 18px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);text-align:left;font:500 14px Manrope,Arial,sans-serif}.mobile-current-menu>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-weight:600}.mobile-current-menu>span{font-size:12px;color:var(--muted)}.mobile-current-menu>.icon{width:20px;height:20px;flex:none}
 .mobile-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobile-module-link{display:flex;align-items:center;gap:10px;min-height:66px;min-width:0;padding:10px;border-radius:12px;background:var(--surface-muted);color:var(--ink)}.mobile-module-link.is-active{background:var(--accent-soft);color:var(--accent-ink)}.mobile-module-link>span{display:grid;place-items:center;width:32px;height:32px;flex:none}.mobile-module-link>span>.icon{width:23px;height:23px}.mobile-module-link>strong{font-size:14px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}.mobile-module-link>.icon{display:none}.mobile-workspace-settings{display:flex;align-items:center;gap:10px;min-height:48px;margin-top:16px;padding:10px 2px;color:var(--muted);font-size:14px}.mobile-workspace-settings>.icon{width:20px;height:20px}.mobile-workspace-settings>.icon:last-child{margin-left:auto}
 .suite-shell.workbench-ui .context-sidebar{display:none!important;position:fixed;inset:auto 8px calc(var(--mobile-bottom-height) + 8px);width:auto;max-width:560px;max-height:calc(100dvh - var(--mobile-bottom-height) - env(safe-area-inset-top,0px) - 24px);height:auto;margin:0 auto;border:0;border-radius:18px;transform:none;visibility:visible;pointer-events:auto;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-menu);padding:0;overflow:hidden;z-index:100}
 .suite-shell.workbench-ui .context-sidebar:popover-open{display:flex!important;flex-direction:column}.context-sidebar .context-brand{display:none}.context-sidebar .context-nav{overflow:auto;overscroll-behavior:contain;padding:12px 12px 18px;min-height:0}.workbench-ui .context-sidebar .nav-item{min-height:46px;padding:11px 12px;font-size:15px}.workbench-ui .context-section-heading{min-height:44px;padding-top:14px;font-size:13px}.workbench-ui .context-section-heading>.icon-button{width:44px;height:44px}.workbench-ui .context-nav input,.workbench-ui .context-nav select{font-size:16px;min-height:44px}
 #account-menu{position:fixed;inset:auto 8px calc(var(--mobile-bottom-height) + 8px);width:auto;max-width:544px;margin:0 auto;max-height:calc(100dvh - var(--mobile-bottom-height) - env(safe-area-inset-top,0px) - 24px);overflow:auto;overscroll-behavior:contain;padding:12px;border-radius:18px;background:var(--surface);color:var(--ink)}#account-menu .account-menu-identity{padding:12px 8px 18px}#account-menu .account-menu-identity>.avatar{width:42px;height:42px;border-radius:50%}#account-menu>a,#account-menu>button,#account-menu>form>button,#account-menu .account-appearance>a{min-height:46px;font-size:15px;padding:11px 12px}#account-menu .appearance-options{padding:4px 6px;gap:8px}#account-menu .appearance-options>button{min-height:44px}
 .chat-dock{display:none!important}.pwa-notice{bottom:calc(var(--mobile-bottom-height) + 12px)}body:has(.suite-shell) #toast{bottom:calc(var(--mobile-bottom-height) + 14px)}
 .workbench-ui :is(.drive-app,.file-workspace,.chat-workspace){height:var(--mobile-work-height);min-height:0;max-height:var(--mobile-work-height)}.workbench-ui .chat-main{height:100%;min-height:0}.workbench-ui .data-workspace{min-height:var(--mobile-work-height)}.workbench-ui .thread-panel{top:var(--mobile-top-height);bottom:var(--mobile-bottom-height);max-height:var(--mobile-work-height);width:100%}.workbench-ui .record-peek{top:var(--mobile-top-height)!important;bottom:var(--mobile-bottom-height)!important}.forms-theme-panel{bottom:var(--mobile-bottom-height)}
 .workbench-ui #content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]),select,textarea){font-size:16px;min-height:44px}.workbench-ui .button{min-height:44px;font-size:14px}.workbench-ui .collection-header .heading-actions>.button{min-height:44px;font-size:13px;padding:10px 12px}.workbench-ui .collection-header{gap:12px;padding:18px 16px}.workbench-ui :is(.collection-header,.page-heading) h1{font-size:23px;line-height:1.3}.workbench-ui .collection-viewbar{gap:10px}.workbench-ui .collection-viewbar .button{font-size:13px}.workbench-ui .account-tabs a{min-height:44px;display:flex;align-items:center;font-size:14px}
 .mobile-chat-home{padding:20px 16px 24px;max-width:none}.mobile-chat-heading{margin-bottom:16px}.mobile-chat-heading h1{font-size:24px}.mobile-conversation{min-height:84px}.mobile-conversation-copy>strong{font-size:16px}.mobile-chat-home .icon-button{min-height:44px;width:44px;height:44px}
 .inbox-header .icon-button{width:44px;height:44px;min-height:44px}.inbox-filters>button{min-height:44px}.inbox-item-link{min-height:76px}.inbox-item-title{font-size:15px}.inbox-toolbar{padding-block:12px}
 dialog#modal{max-width:calc(100vw - 24px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px)}dialog#modal>header .icon-button{width:44px;height:44px;min-height:44px}
}

@media(max-width:760px){
 .suite-shell.workbench-ui.mobile-keyboard{--mobile-bottom-height:0px}.mobile-keyboard .mobile-bottom-nav{display:none}
 .workbench-ui.mobile-compact .chat-heading{min-height:48px;padding:2px 12px}.workbench-ui.mobile-compact .chat-heading h1{font-size:16px}.workbench-ui.mobile-compact .chat-main .conversation-tabs{min-height:34px;height:34px;padding-inline:10px;gap:16px}.workbench-ui.mobile-compact .chat-main>.messages{padding:4px 0;min-height:0}.workbench-ui.mobile-compact .message-composer{margin:4px 10px 6px;display:flex;align-items:end;gap:4px;padding:4px}.workbench-ui.mobile-compact .message-composer textarea{height:44px!important;min-height:44px!important;max-height:72px!important;padding:10px 8px;flex:1;min-width:0}.workbench-ui.mobile-compact .chat-composer-tools{padding:0 6px}.workbench-ui.mobile-compact .composer-bottom{padding:0;flex:none;gap:4px;border:0}
 html.mobile-keyboard #global-search-dialog{inset:0;width:100%;height:var(--mobile-viewport-height);max-height:var(--mobile-viewport-height);margin:0;border-radius:0}html.mobile-keyboard dialog#modal{inset:12px 12px auto;margin:0 auto;max-height:calc(var(--mobile-viewport-height) - 24px)}
 .workbench-ui.app-crm .collection-header>.heading-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px}.workbench-ui.app-crm .collection-header>.heading-actions>.button{width:100%;min-width:0;min-height:48px;white-space:normal;line-height:1.25;padding:8px;font-size:13px}.workbench-ui.app-crm .collection-header>.heading-actions>.button>.icon{flex:none}
}
@media(max-width:360px){.mobile-module-link{flex-direction:column;justify-content:center;gap:4px;padding:8px}.mobile-module-link>span{width:24px;height:24px}.mobile-module-link>strong{font-size:14px;text-align:center;overflow-wrap:normal}}

@media(max-width:760px){
 #account-menu .mobile-profile-close{position:absolute;right:10px;top:10px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:10px;background:transparent;color:var(--ink);border:0;border-radius:10px}#account-menu .account-menu-identity{padding-right:52px}
 .mobile-compose-tools:popover-open{display:flex;flex-direction:column;gap:8px;position:fixed;inset:auto;width:min(340px,calc(100vw - 24px));max-height:calc(var(--mobile-viewport-height,100dvh) - var(--mobile-top-height) - 24px);overflow:auto;margin:0;padding:12px;border:0;border-radius:12px;box-shadow:var(--shadow-menu);background:var(--surface);color:var(--ink)}.mobile-compose-tools .chat-composer-tools{padding:0;flex-wrap:wrap}.mobile-compose-tools .icon-button{width:44px;height:44px;min-height:44px;padding:10px}.mobile-compose-tools .mobile-secondary-actions{display:flex;flex-wrap:wrap;gap:4px}.mobile-compose-tools .button{min-height:44px;font-size:14px}.workbench-ui.mobile-compact .composer-bottom>.button{min-height:44px;font-size:14px;padding:10px 12px}.workbench-ui.mobile-compact .chat-typing:empty{display:none}.mobile-compose-more{margin-right:auto}
}
