/* Full-page launcher and a separate module drawer. Desktop layout stays intact. */
#mobile-section-toggle,#mobile-drawer-scrim{display:none}
.mobile-menu-page,.mobile-settings-page{max-width:720px;margin-inline:auto}
.mobile-page-heading,.mobile-menu-section,.mobile-user-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mobile-page-heading h1{font-size:22px;margin:0}.mobile-menu-section h2{font-size:13px;color:var(--muted);font-weight:500}
.mobile-icon-button{border:0;background:transparent;box-shadow:none;width:44px;height:44px;padding:10px}
.mobile-menu-page svg,.mobile-settings-page svg,#mobile-section-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.mobile-user-row{margin:14px 0 26px}.mobile-user-row #mobile-profile{border:0;box-shadow:none;background:transparent;padding-left:0;font-size:17px;font-weight:600}.mobile-user-row #mobile-logout{font-size:12px;padding:0 10px;height:var(--ui-control-height);min-height:var(--ui-control-height)}
.mobile-user-row #mobile-profile{text-align:left;min-width:0}.mobile-user-row #mobile-profile small{display:block;font-size:12px;font-weight:400;color:var(--muted);overflow-wrap:anywhere;margin-top:4px}
.mobile-launch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 14px;margin:12px 0 28px}
.mobile-launch-grid>button{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;border:0;background:transparent;box-shadow:none;padding:0;font-size:13px;white-space:normal;color:var(--text)}
.mobile-launch-icon{display:grid;place-items:center;width:64px;height:64px;max-width:100%;border-radius:var(--ui-radius-surface);background:var(--soft)}
.mobile-launch-grid .nav-count{position:absolute;top:-4px;right:3px}
.mobile-settings-page h2{font-size:12px;font-weight:500;color:var(--muted);margin:26px 0 8px;padding-top:16px;border-top:1px solid var(--line)}
.mobile-settings-page>button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 0;border:0;background:transparent;box-shadow:none;text-align:left;font-size:14px;min-height:48px}
.mobile-settings-page>p{font-size:12px;line-height:1.7}.mobile-settings-page input[type=checkbox]{pointer-events:none}
#mobile-pin-editor{border-top:1px solid var(--line);padding-top:16px}#mobile-pin-editor[hidden]{display:none}#mobile-pin-editor h2{font-size:17px}#mobile-pin-editor p{font-size:12px;line-height:1.6}
.mobile-pin-order>div{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:var(--ui-radius-control);margin:6px 0;padding:4px}
.mobile-pin-order>div>span{display:flex;gap:10px;align-items:center;flex:1}.mobile-pin-order button{width:40px;min-height:44px;border:0;box-shadow:none;background:transparent}.mobile-pin-order .reorder-handle{touch-action:none}
.mobile-pin-options{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.mobile-pin-options button{display:flex;align-items:center;gap:4px;padding:6px 8px;font-size:12px}.mobile-pin-options svg{width:16px;height:16px}.mobile-pin-options [aria-pressed=true]{color:var(--accent,#2563eb);border-color:currentColor}
@media(max-width:700px){
 #mobile-section-toggle:not([hidden]){display:grid;place-items:center;min-width:44px;padding:8px;border:0;background:transparent;box-shadow:none}
 #mobile-section-toggle[hidden]{display:none}
 .shell[data-page=menu]>.topbar,.shell[data-page=mobile-settings]>.topbar{display:none!important}
 .shell[data-page=menu],.shell[data-page=mobile-settings]{padding-top:env(safe-area-inset-top,0px)!important}
 #mobile-drawer-scrim:not([hidden]){display:block;position:fixed;inset:var(--mobile-top) 0 var(--mobile-bottom);z-index:43;width:100%;height:auto;border:0;border-radius:0;background:#0004;box-shadow:none}
 #mobile-menu{inset:var(--mobile-top) auto var(--mobile-bottom) 0;width:min(320px,85vw);height:calc(100dvh - var(--mobile-top) - var(--mobile-bottom));max-height:none;padding:0;border-right:1px solid var(--line);box-shadow:8px 0 24px #0002}
 #mobile-menu-body{display:block;overflow-y:auto;padding:12px;flex:1}
 .mobile-menu-open .main{visibility:visible}
 .office-shell[data-page=chat]:has(.mobile-room-open) .mobile-tabs,.office-shell[data-page=chat]:has(.mobile-room-open)>.topbar{display:none!important}
 .office-shell[data-page=chat] .chat-layout.mobile-room-open{top:var(--visual-top,0px);height:var(--visual-height,100dvh);z-index:50}
 .keyboard-open .office-shell[data-page=chat] .chat-layout.mobile-room-open{top:var(--visual-top,0px);height:var(--visual-height,100dvh)}
 .keyboard-open .office-shell[data-page=chat]:has(.mobile-room-open)>.topbar,.keyboard-open .office-shell[data-page=chat]:has(.mobile-room-open) .mobile-tabs{display:none!important}
 .mobile-room-open .chat-messages{min-height:0}
 .mobile-tabs{box-sizing:border-box}
}
@media(prefers-reduced-motion:no-preference){#mobile-menu[open]{animation:mobile-drawer-enter .14s ease-out}.mobile-launch-grid>button:active .mobile-launch-icon{transform:scale(.95);transition:transform .1s}}
@keyframes mobile-drawer-enter{from{transform:translateX(-20px);opacity:0}to{transform:translateX(0);opacity:1}}

/* Mobile chrome uses one geometry in the browser and native WKWebView. */
#mobile-page-title,#mobile-search-toggle,#mobile-create-fab,#mobile-calendar-cycle,.mobile-mail-header,.mobile-mail-selection,.mail-sender-avatar,.mail-swipe-actions{display:none}
#message-search{display:flex;align-items:center;gap:8px}#message-search input{flex:1;min-width:0}#message-search button{flex:0 0 auto}
#chat-room-tools>summary{display:none}
.mobile-font-setting{display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-font-setting select{width:140px}
@media(max-width:700px){
 :root{--mobile-top:calc(48px + env(safe-area-inset-top,0px));--mobile-bottom:calc(58px + env(safe-area-inset-bottom,0px))}
 html,body,#app{min-width:0!important;width:100%;max-width:100%}
 .office-shell,.office-shell.collapsed,.office-shell>.topbar{min-width:0!important;width:100%!important;max-width:100%}
 .office-shell{display:block!important}.office-shell .main{width:100%;min-width:0}
 .home-gadget-columns{grid-template-columns:minmax(0,1fr)!important}.home-gadget-column{min-width:0}
 .shell>.topbar{display:grid!important;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:4px;min-height:var(--mobile-top);height:var(--mobile-top);padding:env(safe-area-inset-top,0px) 8px 0;box-sizing:border-box}
 .shell>.topbar .brand-links,.shell>.topbar .top-tools,.shell>.topbar .desktop-web-shortcuts{display:none!important}
 #mobile-page-title{display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;grid-column:2;grid-row:1;line-height:44px}
 #mobile-search-toggle{display:grid;place-items:center;grid-column:3;grid-row:1;width:40px;height:44px;min-height:44px;padding:10px;border:0;box-shadow:none;background:transparent}
 #mobile-search-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
 #mobile-section-toggle{grid-column:1;grid-row:1;min-width:40px!important;width:40px;height:44px;min-height:44px}
 .shell>.topbar #global-search{display:none!important}
 .shell>.topbar.mobile-search-open #global-search{display:flex!important;position:absolute;left:8px;right:8px;top:100%;width:auto;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:var(--ui-radius-control);box-shadow:0 5px 16px #0002;z-index:4;gap:4px}
 .mobile-search-open #global-search input{display:block!important;min-width:0;flex:1}.mobile-search-open #global-search select{width:72px;min-width:0}.mobile-search-open #global-search button{width:36px;min-width:36px}
 #content{padding:12px 10px!important;font-size:var(--mobile-font-size,14px);min-width:0}
 #content :is(p,label,td,li,.detail-value,.bubble,.mail-person,.mail-title button){font-size:var(--mobile-font-size,14px)}
 #content .mobile-heading-title{display:none}.heading{margin-bottom:10px;gap:8px}.heading:has(.mobile-heading-title):not(:has(button,input,select,a)) {margin-bottom:0}
 #content :is(button,select){min-height:36px;padding:6px 9px;font-size:var(--mobile-font-size,14px)}
 #content :is(input:not([type=checkbox]):not([type=radio]),textarea){font-size:max(16px,var(--mobile-font-size,14px));min-height:36px;padding:7px 9px}
 .mobile-tabs{height:var(--mobile-bottom);padding:4px 6px calc(4px + env(safe-area-inset-bottom,0px));gap:4px;align-items:stretch}
 .mobile-tabs>button{min-height:0!important;height:50px;box-sizing:border-box;padding:5px 2px!important;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;border-radius:var(--ui-radius-control);line-height:1.1}
 .mobile-tabs>button svg{width:21px;height:21px}.mobile-tabs>button span:not(.nav-count){font-size:10px;line-height:12px}
 body.office-overlay-locked{position:fixed;top:var(--overlay-scroll-y);left:0;right:0;width:100%;overflow:hidden;overscroll-behavior:none}
 #mobile-drawer-scrim{touch-action:none}
 #mobile-menu{width:min(280px,82vw);overscroll-behavior:none;display:none;border-radius:0}
 #mobile-menu[open]{display:flex;flex-direction:column}
 #mobile-menu>header{display:none!important}
 #mobile-menu-body{min-height:0;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px;touch-action:pan-y}
 #mobile-menu #subnav{display:block!important;width:100%;max-width:100%;overflow:visible!important;position:static;flex:none}
 #mobile-menu #subnav{--ui-menu-height:var(--ui-mobile-menu-height)}
 #mobile-menu #subnav :is(button,summary){box-sizing:border-box;min-height:var(--ui-mobile-menu-height)!important;height:var(--ui-mobile-menu-height);margin:0;padding:6px 8px!important;font-size:13px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:var(--ui-radius-control)}
 #mobile-menu #subnav :is(h2,h3){margin:10px 8px 4px;font-size:12px}#mobile-menu #subnav .module-title{display:none}
 #mobile-menu #subnav :is(.menu-row,.setting-row,.board-menu-row,.setting-menu-row){min-height:var(--ui-mobile-menu-height);margin:0;align-items:center}
 #mobile-menu #subnav :is(.module-environment,.module-bottom-setting,.portal-return)>button{height:var(--ui-mobile-menu-height);min-height:var(--ui-mobile-menu-height)!important;font-size:13px;line-height:20px}
 #mobile-menu #subnav .module-primary{height:36px;min-height:36px!important;margin-bottom:12px}
 #mobile-menu #subnav :is(.menu-fold,.sub-tree){margin-block:0}
 #mobile-menu #subnav .setting-menu-row>.setting-star{height:var(--ui-sidebar-tool-size);min-height:var(--ui-sidebar-tool-size)!important;padding:2px!important;flex:0 0 var(--ui-sidebar-tool-size);min-width:var(--ui-sidebar-tool-size)}
 .shell[data-page=mail] #mobile-menu .module-primary{display:none}
 #mobile-create-fab{display:grid;place-items:center;position:fixed;right:16px;bottom:calc(var(--mobile-bottom) + 14px);z-index:35;width:48px;height:48px;min-height:48px;border:0;border-radius:50%;background:var(--text);color:var(--panel);box-shadow:0 4px 12px #0003;font-size:30px;line-height:1;padding:0}
 .mobile-menu-open #mobile-create-fab,.shell:has(.mobile-mail-selecting) #mobile-create-fab{display:none}
 .shell[data-page=mail] #content #new-mail,.cal-heading #new-event{display:none}
 .shell[data-page=mail] #content>.heading .actions{display:none}
 .mail-connection{font-size:11px!important;line-height:1.4;padding:6px 8px!important}.mail-connection>strong{display:none}.mail-connection span{font-size:11px}
 .mail-search{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;margin-bottom:8px!important}.mail-search select{width:70px!important;min-width:60px!important;flex:none}.mail-search input{flex:1;min-width:0;width:100%}.mail-search button{width:34px;min-width:34px;padding:6px!important;flex:none}
 .mail-search [data-search-reset]{font-size:0!important}.mail-search [data-search-reset]:after{content:'↻';font-size:18px}
 .mobile-mail-list .mail-commandbar>.mail-command-actions,.mobile-mail-list .mail-command-end{display:none}
 .mobile-mail-list .mail-commandbar{padding:0;min-height:0;margin:0;border:0}
 .mobile-mail-header{display:flex;position:fixed;top:env(safe-area-inset-top,0px);right:47px;height:48px;align-items:center;gap:0;z-index:42;background:var(--panel)}
 .mobile-mail-header span{font-size:10px;color:var(--muted);max-width:38px;overflow:hidden}.mobile-mail-header button{border:0;background:transparent;box-shadow:none;width:32px;height:40px;padding:7px!important}.mobile-mail-header svg{width:18px;height:18px}
 .shell:has(.mobile-mail-header) #mobile-page-title{margin-inline:66px;font-size:14px}
 .mobile-mail-selection{display:none}.mobile-mail-selecting .mobile-mail-selection{display:flex;align-items:center;gap:3px;position:fixed;top:0;left:0;right:0;height:var(--mobile-top);padding:env(safe-area-inset-top,0px) 6px 0;box-sizing:border-box;background:var(--panel);z-index:45;border-bottom:1px solid var(--line)}
 .mobile-mail-selection strong{flex:1;font-size:13px;white-space:nowrap}.mobile-mail-selection button{width:36px;min-width:32px;height:42px;border:0;box-shadow:none;background:transparent;padding:8px!important}.mobile-mail-selection svg{width:20px;height:20px}
 .mobile-mail-list .mail-action-popup:not([hidden]){position:fixed;top:var(--mobile-top);left:auto!important;right:8px;z-index:46;max-height:60dvh;overflow:auto;width:230px}
 .mobile-mail-list .mail-table-wrap{overflow:hidden}.mail-inbox-table{display:block!important;min-width:0!important;width:100%;border:0}.mail-inbox-table colgroup,.mail-inbox-table thead{display:none!important}.mail-inbox-table tbody{display:block}
 .mail-inbox-table tr[data-mail-row]{display:grid!important;grid-template-columns:40px minmax(0,1fr) 75px;grid-template-rows:auto auto;gap:2px 8px;position:relative;isolation:isolate;overflow:hidden;padding:10px 2px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;touch-action:pan-y;min-height:64px;box-sizing:border-box;background:var(--panel)}
 .mail-inbox-table tr[data-mail-row]>td{display:block!important;padding:0!important;min-width:0;border:0!important;background:var(--panel);position:relative;z-index:1;transition:transform .14s ease}
 .mail-inbox-table td:before{display:none!important}.mail-inbox-table tr[data-mail-row]>td:first-child{grid-column:1;grid-row:1/3;align-self:center}.mail-inbox-table [data-select-mail]{display:none}.mail-sender-avatar{display:grid;place-items:center;width:36px;height:36px;min-height:36px;border-radius:50%;background:var(--soft);border:0;box-shadow:none;color:var(--muted);padding:0!important;font-size:13px!important}
 .mail-inbox-table tr.is-selected .mail-sender-avatar{background:var(--accent,#2563eb);color:var(--panel,#fff)}
 .mail-inbox-table tr[data-mail-row]>td:nth-child(2){grid-column:3;grid-row:2;justify-self:end}.mail-inbox-table [data-important]{min-height:22px!important;height:22px;width:24px;padding:2px!important}
 .mail-inbox-table .mail-person{grid-column:2;grid-row:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px!important}.mail-inbox-table tr[data-mail-row]>.mail-title{grid-column:2;grid-row:2;display:flex!important;align-items:center;gap:3px;overflow:hidden}
 .mail-inbox-table .mail-mobile-clip{display:inline-flex;flex:none;align-items:center;width:14px;height:18px}.mail-mobile-clip svg{width:14px;height:14px}
 .mail-inbox-table .mail-sender-avatar{display:grid;background:var(--soft);border-radius:50%;width:36px;min-width:36px;min-height:36px!important;height:36px;padding:0!important}
 .mobile-mail-list [data-mail-selection]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .mail-inbox-table .mail-title button{display:block;min-height:24px!important;line-height:24px;padding:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;font-size:13px!important}
 .mail-inbox-table .mail-date{grid-column:3;grid-row:1;font-size:10px!important;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
 .mail-inbox-table tr[data-mail-row]>.mail-attach,.mail-inbox-table tr[data-mail-row]>.mail-size,.mail-mobile-size{display:none!important}
 .mail-inbox-table tr[data-mail-row]>.mail-swipe-actions{display:flex!important;position:absolute;inset:0;z-index:0;justify-content:space-between;align-items:stretch;background:transparent;transform:none!important}
 .mail-swipe-actions>span{display:flex}.mail-swipe-actions button{border:0;border-radius:0;box-shadow:none;width:72px;color:white;font-size:13px!important}.mail-swipe-actions [data-swipe=important]{background:#2563eb}.mail-swipe-actions [data-swipe=read]{background:#687385}.mail-swipe-actions [data-swipe=trash]{background:#d83a3a}
 .mail-inbox-table .swipe-right>td:not(.mail-swipe-actions){transform:translateX(var(--swipe))}.mail-inbox-table .swipe-left>td:not(.mail-swipe-actions){transform:translateX(calc(-1 * var(--swipe)))}
 .mail-swipe-actions{visibility:hidden}.swipe-right .mail-swipe-actions,.swipe-left .mail-swipe-actions{visibility:visible}
 .swipe-right .mail-swipe-actions>[data-swipe=important]{width:max(76px,var(--swipe));text-align:left;padding-left:18px!important}
 .swipe-right .mail-swipe-actions>span,.swipe-left .mail-swipe-actions>[data-swipe=important]{visibility:hidden}
 .swipe-left .mail-swipe-actions [data-swipe=trash]{width:max(72px,calc(var(--swipe) - 72px))}
 .iw-calendar .cal-heading{display:none}.iw-calendar .cal-toolbar{display:block;min-width:0;margin:0 0 10px}.iw-calendar .cal-views{display:none}
 #mobile-calendar-cycle{display:block;flex:0 0 38px;min-width:38px;width:38px;padding:4px!important;font-size:13px}
 .iw-calendar .cal-period{position:static;transform:none;width:100%;min-width:0}.iw-calendar .period-track{display:flex;position:static;transform:none;justify-content:center;gap:3px;width:100%}.iw-calendar .period-core{display:flex;position:static;transform:none;gap:3px;min-width:0}
 .iw-calendar .period-today{position:static;transform:none;min-width:43px;width:43px;padding:4px!important;font-size:11px!important;white-space:nowrap}.iw-calendar .period-arrow{min-width:28px;width:28px;padding:4px!important}
 .iw-calendar .period-value{min-width:0}.iw-calendar .period-input{width:132px!important;min-width:0!important;max-width:100%;padding:5px!important;font-size:14px!important;height:36px}
 .iw-calendar .cal-drag-handle,.iw-calendar [data-agenda-add]{display:none!important}
 .office-shell[data-page=chat] #content{height:calc(100dvh - var(--mobile-top) - var(--mobile-bottom));display:flex;flex-direction:column;padding:0!important}
 .office-shell[data-page=chat] #content>.heading{display:none}.office-shell[data-page=chat] .chat-layout{flex:1;height:auto!important;min-height:0;margin:0;border:0;border-radius:0}.office-shell[data-page=chat] .chat-layout.mobile-room-open{height:var(--visual-height,100dvh)!important}
 .chat-layout .room-list{padding:6px!important;box-sizing:border-box}.chat-filter-bar{gap:4px!important;margin:4px 8px 6px!important;flex-wrap:nowrap!important}.chat-filter-bar [data-chat-filter]{padding-inline:10px;font-size:12px}
 .mobile-room-open .conversation>header{display:grid!important;grid-template-columns:38px minmax(0,1fr) 40px!important;padding:calc(4px + env(safe-area-inset-top,0px)) 8px 4px!important;gap:0 5px;min-height:48px}
 .mobile-room-open #chat-header-profile{display:none}.mobile-room-open .conversation>header>h2,.mobile-room-open .conversation>header>#chat-status{grid-column:2!important}.mobile-room-open .conversation>header>#chat-room-tools{grid-column:3!important;grid-row:1/3!important;position:static}
 .mobile-room-open #mobile-chat-back{width:38px!important;min-width:38px!important;min-height:40px!important;height:40px!important}
 .mobile-room-open #chat-room-tools>summary{display:grid!important;place-items:center;font-size:22px!important;width:38px;height:40px;min-height:40px;padding:0}.mobile-room-open #chat-room-tools>summary:after{display:none}
 .mobile-room-open #chat-room-tools:not([open])>.actions{display:none!important}.mobile-room-open #chat-room-tools[open]>.actions{display:grid!important;position:absolute!important;right:8px!important;top:100%!important;width:190px!important;background:var(--panel)!important;padding:6px!important;border:1px solid var(--line)!important;border-radius:10px;box-shadow:0 6px 20px #0003;z-index:8}
 .mobile-room-open #chat-room-tools .actions button{width:100%!important;min-height:38px!important;height:auto!important;display:flex!important;justify-content:flex-start;gap:10px;padding:8px!important;font-size:13px!important}.mobile-room-open #chat-room-tools .actions button span{display:inline!important}
 .mobile-room-open #chat-room-tools .actions button::after{content:attr(aria-label);font:inherit;white-space:nowrap}
 .mobile-room-open .composer{display:grid!important;grid-template-columns:36px minmax(0,1fr) 42px;gap:0 3px!important;border:1px solid var(--line)!important;border-radius:14px!important;margin:6px 8px calc(6px + env(safe-area-inset-bottom,0px));padding:4px 6px!important;box-shadow:none}
 .keyboard-open .mobile-room-open .composer{margin-bottom:6px}.mobile-room-open .composer textarea,.mobile-room-open .chat-mention-editor{grid-column:1/-1!important;grid-row:3!important;height:36px;min-height:36px!important;max-height:100px;line-height:22px;padding:7px 6px!important;border:0!important;background:transparent;box-shadow:none!important}
 .mobile-room-open .chat-file-control{grid-column:1;grid-row:4!important}.mobile-room-open .chat-compose-tools{grid-column:1/3!important;grid-row:4!important;display:flex;min-width:0;gap:1px;padding:0;margin:0;overflow:visible}
 .mobile-room-open .composer>.actions{grid-column:3;grid-row:4!important;margin:0!important}.mobile-room-open .composer>.actions>button{min-height:var(--ui-control-height)!important;height:var(--ui-control-height);min-width:38px;padding:4px!important;font-size:12px!important}
 .mobile-room-open #chat-attach{min-width:36px!important;width:36px;min-height:36px!important;height:36px;padding:7px!important;background:transparent}.mobile-room-open #chat-attach:before{display:none}.mobile-room-open #chat-attach svg{display:block;width:var(--ui-icon-size);height:var(--ui-icon-size)}
 .mobile-room-open .chat-compose-tools button{min-height:36px!important;height:36px;min-width:36px;width:36px;padding:7px!important;font-size:18px!important}.mobile-room-open .chat-format-options{position:absolute;bottom:100%;right:0;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:3px;z-index:3}
 .mobile-room-open #chat-attachments{grid-row:2!important;grid-column:1/-1}.mobile-room-open #chat-reply-draft{grid-row:1!important;grid-column:1/-1}
 /* Documents keep their tabular meaning, with scrolling limited to the sheet. */
 #content :is(.approval-document,.approval-sheet,.document-sheet) .table-wrap{overflow-x:auto!important;max-width:100%;-webkit-overflow-scrolling:touch}
 #content :is(.approval-document,.approval-sheet,.document-sheet) :is(table.document-table,table.repeat-grid){display:table!important;min-width:660px!important;width:100%;border-collapse:collapse;table-layout:fixed}
 #content :is(.approval-document,.approval-sheet,.document-sheet) :is(table.document-table,table.repeat-grid) thead{display:table-header-group!important}#content :is(.approval-document,.approval-sheet,.document-sheet) :is(table.document-table,table.repeat-grid) tbody{display:table-row-group!important}#content :is(.approval-document,.approval-sheet,.document-sheet) table.repeat-grid tfoot{display:table-footer-group!important}
 #content :is(.approval-document,.approval-sheet,.document-sheet) :is(table.document-table,table.repeat-grid) tr{display:table-row!important;border:0!important;padding:0!important;margin:0!important}
 #content :is(.approval-document,.approval-sheet,.document-sheet) :is(table.document-table,table.repeat-grid) :is(th,td){display:table-cell!important;padding:8px!important;white-space:normal;min-width:70px;font-size:12px!important;border-bottom:1px solid var(--line)}
 #content :is(.approval-document,.approval-sheet,.document-sheet) :is(table.document-table,table.repeat-grid) td:before{display:none!important}
 #content :is(.approval-document,.approval-sheet,.document-sheet) :is(.record-mobile-controls,.record-list-tools){display:none!important}
 /* A local reading-size preference must reach the actual content, not only body. */
 #content :is(p,li,.message-bubble,.message-text,.mail-person,.mail-title button,.room-name,.room-preview),#mobile-menu :is(a,button,label){font-size:var(--mobile-font-size,14px)!important}
 .mobile-font-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}.mobile-font-setting select{width:110px!important}
 .date-editor:not([data-kind=datetime-local])>.date-text{padding-left:6px!important;padding-right:28px!important;letter-spacing:-.4px}
 .date-editor>.date-picker{width:26px!important;min-width:26px!important;padding:4px!important;right:1px}
 /* Mobile is for completing work; configuration and bulk exports stay on PC. */
 .mobile-pc-task{display:none!important}
 dialog[open],.date-popover{overscroll-behavior:contain;max-height:calc(100dvh - 24px);overflow-y:auto;-webkit-overflow-scrolling:touch}
 .date-popover-time-only{max-height:min(260px,50dvh)}
 #mobile-timeline-toggle{display:none!important}
 .reservation-toolbar{display:flex!important}.reservation-calendar-pane{display:block!important;order:0;width:100%}
 .reservation-mine .record-list-tools{display:none!important}
 .reservation-editor-layout{display:flex!important;flex-direction:column}.reservation-compose{width:100%!important;max-width:none!important;margin:0 0 16px!important;order:1}
 .reservation-compose .reservation-datetime{display:flex;gap:6px;min-width:0}.reservation-datetime .date-editor{min-width:0;flex:1}.reservation-datetime .time-only-editor{flex:0 0 106px}
 /* One opaque moving sheet covers action colours, including gaps between cells. */
 .mail-inbox-table tr[data-mail-row]:before{content:'';display:block!important;position:absolute;inset:0;z-index:1;background:var(--panel);transition:transform .14s ease;pointer-events:none}
 .mail-inbox-table tr[data-mail-row]>td:not(.mail-swipe-actions){z-index:2;background:transparent!important;cursor:pointer}
 .mail-inbox-table tr.swipe-right:before{transform:translateX(var(--swipe))}.mail-inbox-table tr.swipe-left:before{transform:translateX(calc(-1 * var(--swipe)))}
 #mobile-menu #subnav .sub-tree{gap:0}
 #mobile-menu #subnav :is([data-mail-folder],[data-server-folder],.sidebar-mail-row,.mail-folder-branch,.cal-side-row,.cal-all){box-sizing:border-box;min-height:34px!important;margin-block:0!important;align-items:center;line-height:20px}
 #mobile-menu #subnav :is(h3,.sidebar-mail-heading,.menu-fold>summary){margin-block:10px 3px!important;height:24px;min-height:24px!important;padding-block:2px!important}
 #mobile-menu #subnav :is(.sidebar-mini-action,.sidebar-tool,.mail-folder-toggle){height:24px!important;min-height:24px!important;min-width:24px;padding:2px 4px!important;line-height:18px;font-size:11px!important;flex:none}
 #mobile-menu #subnav .sidebar-mail-row>button:first-child{flex:1;min-width:0}
 #mobile-menu #subnav .cal-side-row{display:flex;gap:6px;padding:0 8px}
 #mobile-menu #subnav .cal-side-row>label{display:flex;flex:1;align-items:center;gap:7px;min-width:0;margin:0}
 #mobile-menu #subnav .cal-color-dot{margin:0!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-height:16px;padding:0!important;border-radius:50%!important;flex:0 0 16px;align-self:center;box-shadow:none}
 /* Detail is one tap away. Do not expand each employee into a tall card. */
 #content table.mobile-compact-table{display:table!important;min-width:0!important;width:100%!important;table-layout:fixed}
 #content table.mobile-compact-table thead{display:table-header-group!important}
 #content table.mobile-compact-table tbody{display:table-row-group!important}
 #content table.mobile-compact-table tr{display:table-row!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
 #content table.mobile-compact-table :is(th,td){display:table-cell!important;min-width:0!important;width:auto!important;padding:9px 6px!important;font-size:12px!important;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
 #content table.mobile-compact-table td:before{display:none!important}
 #content table.mobile-compact-table thead th{width:33.3333%!important}
 #content .company-attendance-table [data-field]:not([data-field=name]):not([data-field=start_seconds]):not([data-field=end_seconds]):not([data-field=remaining_seconds]):not([data-field=worked_seconds]){display:none!important}
 #content .company-attendance-table:has([data-field=remaining_seconds]) :is([data-field=start_seconds],[data-field=end_seconds]){display:none!important}
 #content .company-attendance-table:not(:has([data-field=remaining_seconds])) [data-field=worked_seconds]{display:none!important}
 #content .company-annual-table [data-field]:not([data-field=name]):not([data-field=remaining]):not([data-field=used]),#content .company-annual-table :is(th,td):not([data-field]){display:none!important}
 #content .leave-period-table [data-field]:not([data-field="실사용(소진)연차"]):not([data-field="잔여연차"]){display:none!important}
 #content .leave-period-table{display:table!important}.leave-period-cards{display:none!important}
 .record-list-tools:has(+ .table-wrap table.mobile-compact-table),.record-list-tools:has(+ table.mobile-compact-table){display:none!important}
 #content table.mobile-compact-table .record-sort{font-size:12px!important;padding:0!important;min-height:28px!important;white-space:normal}
 .mobile-launch-grid button:active{transform:scale(.96)}.mobile-launch-grid button{transition:transform .12s ease}
}
.leave-period-detail{width:min(420px,calc(100vw - 24px));box-sizing:border-box;padding:20px;border:1px solid var(--line);border-radius:var(--ui-radius-panel,12px);background:var(--panel);color:var(--text)}
.leave-period-detail header{display:flex;align-items:center;justify-content:space-between;gap:12px}.leave-period-detail h2{font-size:18px;margin:0}
.leave-period-detail dl>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}.leave-period-detail dd{margin:0;font-weight:600}
@media(prefers-reduced-motion:reduce){.mobile-launch-grid button{transition:none}.mobile-launch-grid button:active{transform:none}}

.mobile-attendance-filters-toggle{display:none}
@media(max-width:700px){
 .mobile-attendance-filters-toggle{display:inline-flex}
 .company-attendance-filter:not([data-filters-open="true"]) :is(.company-attendance-audience,.company-attendance-search){display:none}
 .company-attendance-search [name="limit"]{display:none!important}
}

#mobile-create-fab svg{display:block;flex:none;width:24px;height:24px;min-width:24px;min-height:24px;margin:0;align-self:center;justify-self:center}
#mobile-pin-editor{user-select:none;-webkit-user-select:none}
#mobile-pin-editor button{touch-action:manipulation}
.mobile-pin-number{display:inline-grid;place-items:center;width:22px;height:22px;flex:none;border-radius:50%;background:var(--accent,#2563eb);color:var(--panel,#fff);font-size:12px}
/* Mobile navigation is icon-only; keep the hit area, not a decorative square. */
@media(max-width:700px){
 .navigation-icon-button:is(#mobile-section-toggle,#mobile-settings-back,#mobile-chat-back,.period-arrow,[data-month-step]){border:0!important;background:transparent!important;box-shadow:none!important;border-radius:50%;padding:0!important;align-items:center;justify-content:center}
 #mobile-settings-back.navigation-icon-button{display:inline-flex;width:44px;height:44px;min-width:44px;margin:0}
 .navigation-icon-button:is(.period-arrow,[data-month-step]){height:44px;min-height:44px}
 .navigation-icon-button:active:not(:disabled){background:var(--hover,rgba(127,127,127,.12))!important}
 .navigation-icon-button:disabled{opacity:.35}
}
/* The native permission explanation uses the same compact dialog on phones. */
dialog.native-push-intro{width:min(420px,calc(100vw - 32px));box-sizing:border-box;padding:24px;color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:var(--ui-radius-panel,16px)}
dialog.native-push-intro h2{font-size:18px;margin:0 0 12px}
dialog.native-push-intro p{line-height:1.6;margin:12px 0}
dialog.native-push-intro form{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}

/* Mobile reading surfaces keep the primary action; management stays on desktop. */
@media(max-width:700px){
 #board-main :is(#board-access,#board-permission,#new-post,#board-favorite,#post-actions,#board-fields,#post-size),
 #subnav :is(#add-department-board,#board-favorites-edit),
 #post-filters :is(.office-list-bar,.office-date-filter,[name="field"],#post-reset){display:none!important}
 #post-filters .office-list-search{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
 #post-filters .office-list-search>*{min-width:0}
 #post-filters .office-search-criteria{display:block;flex:1}
 #post-filters .office-search-actions{flex:0 0 auto}
 #post-filters .office-list-search input[name="q"]{width:100%;min-width:0}
 #posts :is(th,td):has(input[type="checkbox"]),#posts .mobile-special-tools{display:none!important}
 .mail-message-preview>.actions{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
 .mail-message-preview>.actions :is([data-reply="reply-all"],[data-read],[data-unread]){display:none!important}
 .mail-message-preview>.actions>button{flex:0 0 auto;min-height:36px;padding:6px 9px;font-size:13px}
 .mail-search[hidden]{display:none!important}
 .mail-heading :is(#mail-trial-open,.mail-preview-label){display:none!important}
 .mobile-mail-selection [data-mobile-mail-cancel].navigation-icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:0;border:0;background:transparent;box-shadow:none}
 .mobile-mail-selection [data-mobile-mail-cancel].navigation-icon-button svg{width:24px;height:24px;flex:none}
 [data-mail-row],.room-list .room-row{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
 .room-list .room-row{grid-template-columns:minmax(0,1fr)}
 .room-list .room-row .room-more{display:none!important}
 .room-list .room-row .room-item{padding-right:8px!important}
}

/* Keep the daily attendance arrows attached to their date at mobile widths. */
@media(max-width:700px){
 .company-attendance-filter .attendance-date-range{width:100%;min-width:0}
 .company-attendance-filter .attendance-date-range>label:has([data-attendance-day]:not([hidden])){display:grid;grid-template-columns:var(--ui-control-height,36px) minmax(0,1fr) var(--ui-control-height,36px);gap:6px;flex:1 1 100%;min-width:0;width:100%}
 .company-attendance-filter .attendance-date-range>label:has([data-attendance-day]:not([hidden]))>#attendance-date-caption{grid-column:1/-1}
 .company-attendance-filter .attendance-date-range>label:has([data-attendance-day]:not([hidden]))>:is(.date-editor,input[type=date]){width:100%!important;max-width:none!important;min-width:0!important;margin:0}
 .company-attendance-filter .attendance-date-range [data-attendance-day]{width:var(--ui-control-height,36px)!important;min-width:0;padding-inline:0}
}
/* 2026-11-13 사용자 요청: 모바일 대화 입력창의 예약·전송 버튼을 손가락으로 누르기 쉬운 크기로 키운다. */
@media(max-width:700px){
 .mobile-room-open .composer{grid-template-columns:36px minmax(0,1fr) auto}
 .mobile-room-open .composer>.actions{gap:6px;flex-wrap:nowrap;align-self:center}
 .mobile-room-open .composer>.actions>button{min-height:40px!important;height:40px;min-width:54px!important;padding:0 12px!important;font-size:14px!important;font-weight:700}
}
/* 2026-11-17 PC '새 창에서 열기' 대화창(html.chat-popout)이 700px 이하일 때: 휴대폰 머리글 규칙 때문에 "닫기"와 메뉴가 겹치고
   메뉴 글자가 빠지던 것. 제목 | 닫기 | 메뉴(글자 있는 펼침 목록) 세 칸으로 나누고 가로 넘침을 막는다. */
@media(max-width:700px){
 html.chat-popout .mobile-room-open .conversation>header{grid-template-columns:minmax(0,1fr) auto auto!important;padding:8px 10px!important;gap:0 6px!important}
 html.chat-popout .mobile-room-open .conversation>header>h2,html.chat-popout .mobile-room-open .conversation>header>#chat-status{grid-column:1!important}
 html.chat-popout .mobile-room-open #mobile-chat-back{grid-column:2!important;grid-row:1/3!important;width:auto!important;min-width:44px!important;padding:0 10px!important;font-size:13px}
 html.chat-popout .mobile-room-open .conversation>header>#chat-room-tools{grid-column:3!important;grid-row:1/3!important}
 html.chat-popout .mobile-room-open #chat-room-tools .actions button::after{content:attr(aria-label)!important}
 html.chat-popout .conversation .messages{overflow-x:hidden}
}
