.mobile-nav-toggle,.mobile-menu-shade,.mobile-menu-close,.mobile-search-toggle,.mobile-folders-toggle,.mobile-folder-shade,.mobile-folders-close{display:none}
@media(max-width:1100px){
 html,body{max-width:100%;overflow-x:hidden}.portal-shell>.portal-sidebar{position:fixed!important;inset:0 auto 0 0!important;max-height:none!important;height:100dvh!important;width:min(300px,86vw)!important;z-index:110!important;transform:translateX(-100%);transition:transform .18s;box-shadow:none;padding-top:54px;padding-bottom:calc(24px + env(safe-area-inset-bottom));display:flex!important;overflow-y:auto!important}.portal-shell.mobile-menu-open>.portal-sidebar{transform:translateX(0);box-shadow:12px 0 40px #152b4333}.portal-shell .portal-account{display:block}.portal-shell .portal-brand{margin-bottom:14px}.portal-shell .mobile-menu-close{display:block;position:absolute;right:14px;top:10px;width:36px;height:36px;background:transparent;color:white;border:0;font-size:26px}.mobile-menu-open>.mobile-menu-shade{display:block;position:fixed;inset:0;border:0!important;border-radius:0!important;background:#172b4d66!important;z-index:105}.mobile-menu-open{overflow:hidden!important}
 .portal-shell>main,.portal-shell>.app-header,.portal-shell>footer{margin-left:0!important;width:100%!important;box-sizing:border-box}.portal-shell>.app-header{min-height:60px!important;padding:8px 12px!important;gap:10px;position:relative;z-index:90}.portal-shell>.app-header .main-nav{flex-wrap:nowrap!important;gap:8px!important;width:auto!important}.portal-shell .nav-spacer{display:none}.portal-shell .mobile-nav-toggle{display:flex;align-items:center;justify-content:center;flex:none;background:#edf4f8;color:#125871;border:0;padding:10px;min-height:42px;min-width:42px}.mobile-nav-toggle svg,.mobile-search-toggle svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8}.portal-shell .nav-dropdown{right:0;left:auto;max-width:calc(100vw - 24px)}
 .portal-shell>main{padding:16px!important;min-width:0}.portal-shell .page-head{flex-wrap:wrap;gap:10px;margin-bottom:12px!important}.portal-shell .page-head h1{font-size:23px}.portal-shell .card{min-width:0}.portal-shell .table-wrap{max-width:100%;overflow-x:auto}.portal-shell .two{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.portal-shell:not(.mail-embedded) .mail-split{grid-template-columns:170px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;min-width:0}.mail-split>.mail-reader{display:none}body.portal-shell:not(.mail-embedded) .mail-split.reading{grid-template-columns:minmax(0,1fr)!important}.mail-split.reading>.mail-reader{display:block!important}.mail-split.reading>.mail-list-panel,.mail-split.reading>.mail-sidebar{display:none!important}.reader-toolbar .reader-close{display:block!important}.mail-resizer{display:none!important}.portal-course-frame{height:calc(100dvh - 100px)}
 .composer-expanded{inset:70px 16px 16px!important}.portal-shell .notify-panel{left:auto!important;right:0!important;width:min(360px,calc(100vw - 24px))!important}
}
@media(max-width:700px){
 .portal-shell>.app-header{height:60px!important;min-height:60px!important;gap:6px}.portal-shell>.app-header .main-nav{gap:5px!important;justify-content:flex-end!important}.portal-shell>.app-header .global-search{display:none!important}.portal-shell .mobile-search-toggle{display:flex;align-items:center;justify-content:center;background:transparent;border:0;padding:8px;color:#125871;min-width:36px}.portal-shell .nav-menu summary{padding:10px 8px;font-size:12px;white-space:nowrap}.portal-shell .nav-icon{min-width:36px;padding:8px}.portal-shell.mobile-search-open>.app-header .global-search{display:flex!important;position:absolute;top:62px;left:12px;right:12px;width:auto!important;max-width:none!important;background:#fff;padding:10px;box-shadow:0 8px 28px #17395222;border-radius:12px}.global-search input{flex:1;min-width:0}.portal-shell .nav-dropdown,.portal-shell .notify-panel{position:fixed!important;top:62px!important;left:12px!important;right:12px!important;width:auto!important;max-height:calc(100dvh - 90px)!important;overflow:auto}
 .portal-shell>main{padding:10px!important}.portal-shell .two{grid-template-columns:minmax(0,1fr)}.portal-shell input:not([type=checkbox]):not([type=radio]),.portal-shell textarea,.portal-shell select{font-size:16px}.portal-shell .page-head .button-link{min-height:40px;padding:10px 12px!important}.portal-shell .page-head{align-items:center}.portal-shell .card{border-radius:16px}.portal-shell .portal-permissions{margin:0;padding:14px!important}.portal-permissions td:first-child{overflow-wrap:anywhere}.portal-permissions th:last-child,.portal-permissions td:last-child{width:70px!important}.portal-shell .user-row{grid-template-columns:36px minmax(0,1fr) auto;gap:10px}
 body.portal-shell:not(.mail-embedded):has(.mail-split)>main{padding:8px!important;gap:6px}.portal-shell:has(.mail-split) .page-head{margin:0!important}.portal-shell:has(.mail-split) .page-head h1{font-size:19px}body.portal-shell:not(.mail-embedded) .mail-split{grid-template-columns:minmax(0,1fr)!important;border-radius:14px;position:relative}.mail-split>.mail-sidebar{display:none!important}.portal-shell .mobile-folders-toggle{display:block;align-self:flex-start;flex:none;min-height:36px;background:#edf4f8;color:#1c5872;border:0;font-size:13px;padding:6px 12px}.mail-split.folders-open>.mail-sidebar{display:block!important;position:absolute!important;inset:0 auto 0 0!important;width:min(280px,86%)!important;height:100%!important;max-height:100%!important;z-index:35;box-shadow:10px 0 25px #17395222}.mail-split.folders-open>.mobile-folder-shade{display:block;position:absolute;inset:0;background:#17395255;border:0;border-radius:0;z-index:30}.mobile-folders-close{display:block;width:100%;background:transparent!important;color:#145873!important;border:0;text-align:right;margin-bottom:6px}.mail-split .mail-list-panel{border-right:0}.mail-split .mail-row{padding:14px 10px;grid-template-columns:22px minmax(0,1fr) 28px!important}.mail-split .mail-sender,.mail-split .mail-subject{font-size:14px}.mail-split .mail-subject{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.mail-split .bulk-bar{gap:6px;padding:8px}.mail-split .inbox-search{padding:10px}.mail-split .inbox-search input[name=q]{font-size:16px;padding:9px}.mail-split .reader-toolbar{gap:8px}.mail-split .mail-reader{padding:14px;height:100%!important}.mail-reader h2{font-size:21px;overflow-wrap:anywhere}.mail-reader .reader-sender{flex-wrap:wrap;overflow-wrap:anywhere}.mail-split .reader-toolbar button,.mail-split .reader-toolbar a{min-height:40px}
 .portal-shell .chat-fab{right:10px;bottom:calc(10px + env(safe-area-inset-bottom));min-width:42px;width:42px;height:42px;padding:8px;border-radius:50%;font-size:18px}.chat-fab>span{display:none}.chat-dock{left:10px!important;right:10px!important;bottom:62px!important;width:auto!important;max-height:70dvh}.has-composer .chat-fab{display:none!important}
 .has-composer .mail-editor-pane{padding:0!important}.has-composer .gmail-composer{border-radius:12px!important}.gmail-composer form{padding:0 12px 12px}.composer-header{padding:10px 12px}.composer-header strong{font-size:16px}.gmail-composer .composer-field{gap:6px}.gmail-composer .composer-from select{width:0;flex:1;text-overflow:ellipsis}.composer-editor{min-height:180px;font-size:16px}.composer-format{gap:2px;padding:4px}.portal-shell .composer-format button{min-width:34px;padding:6px}.portal-shell .composer-format select{max-width:120px}.gmail-composer .composer-footer{position:sticky;bottom:0;background:#fff;padding:10px 0 max(6px,env(safe-area-inset-bottom));z-index:3}.composer-expanded{inset:0!important;border-radius:0!important;height:100dvh}.composer-signature{max-width:100%}
}
@media(prefers-reduced-motion:reduce){.portal-shell>.portal-sidebar{transition:none}}
@media(min-width:701px) and (max-width:1100px){body.portal-shell .mail-sidebar{display:block!important;overflow-x:hidden!important;overflow-y:auto!important}.mail-sidebar .side-title,.mail-sidebar .side-divider{display:block!important}.mail-sidebar .side-item{white-space:normal!important}.mail-sidebar .mail-compose-side{display:block!important;margin-bottom:12px!important}body.portal-shell .mail-split.reading>.mail-sidebar{display:none!important}}
/* Navigation now lives in the sidebar, leaving the workspace clear. */
body.portal-shell>.app-header{display:none!important}.sidebar-management{padding:8px 10px}.sidebar-management summary{cursor:pointer;color:inherit;padding:8px}.portal-account>a{display:block;margin-top:8px}.native-notify-enable{margin-top:10px;padding:9px!important;background:#ffffff18!important;border:1px solid #ffffff55!important;color:white!important;font-size:12px}.portal-account small[role=status]{white-space:normal;margin-top:8px}.sidebar-management .portal-link{padding:8px;font-size:13px}
@media(max-width:1100px){body.portal-shell>.app-header{display:flex!important;min-height:48px!important;padding:4px 10px!important;background:transparent!important;border:0!important;box-shadow:none!important}.app-header>.main-nav{display:none!important}.app-header>.mobile-nav-toggle{display:block!important}}
/* Single-pane mail navigation on phones and tablets. Keep the empty reader
   out of the grid; desktop flex rules must not allocate a second mobile row. */
@media(max-width:1100px){
 body.portal-shell:not(.mail-embedded) .mail-split:not(.reading)>.mail-reader{display:none!important}
 body.portal-shell:not(.mail-embedded) .mail-split.reading>.mail-reader{display:flex!important;flex-direction:column;min-height:0!important}
 body.portal-shell:not(.mail-embedded) .mail-split:not(.reading)>.mail-list-panel{display:block!important;min-height:0!important;overflow-y:auto!important}
 body.portal-shell:not(.mail-embedded) .mail-split.reading>.mail-list-panel{display:none!important}
 .mail-split.reading .reader-close{display:inline-flex!important}
}
@media(max-width:700px){
 body.portal-shell:not(.mail-embedded):has(.mail-split)>main{height:calc(100dvh - 48px)!important;min-height:0!important;display:flex!important;flex-direction:column!important}
 body.portal-shell:has(.mail-split)>main>.section-back{margin:0!important;padding:4px 0!important;font-size:13px}
 body.portal-shell:has(.mail-split) .page-head{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;padding:4px 0!important}
 body.portal-shell:has(.mail-split) .page-head>a{width:auto!important;min-width:42px;flex:0 0 auto!important}
 body.portal-shell:not(.mail-embedded) .mail-split{flex:1 1 0!important;grid-template-rows:minmax(0,1fr)!important;min-height:200px!important}
 body.portal-shell:not(.mail-embedded) .mail-split.reading>.mail-reader{padding:10px!important;overflow-y:auto!important}
 .mail-split.reading>.mail-reader>iframe{flex:1 0 240px!important;min-height:240px!important}
 .mail-split .reader-toolbar{gap:5px!important}
 .mail-split .reader-toolbar a,.mail-split .reader-toolbar button{padding:7px 9px!important;font-size:12px!important}
}
