/* Explicit visibility overrides legacy responsive drawers across all roles. */
body.sidebar-choice #appShell #menuBtn.sidebar-toggle{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:10px;border:1px solid rgba(255,255,255,.45);border-radius:8px;background:#173c58;color:#fff;cursor:pointer}
body.sidebar-choice #menuBtn svg{width:21px;height:21px;stroke:currentColor}
body.sidebar-choice.nav-open{touch-action:auto!important}
body.sidebar-choice #appShell #side[hidden]{display:none!important}
body.sidebar-choice:not(.sidebar-visible) #appShell .shell{grid-template-columns:minmax(0,1fr)!important}
body.sidebar-choice:not(.sidebar-visible) #appShell #main{width:100%!important;max-width:none!important;margin-left:0!important;grid-column:1/-1!important}
body.sidebar-choice:not(.sidebar-visible) #appShell .sidebar-overlay{display:none!important}
body.sidebar-choice #menuBtn:focus-visible,body.sidebar-choice #sideClose:focus-visible{outline:3px solid #ffcf70!important;outline-offset:3px}
body.sidebar-choice #appShell #side .mobile-side-head{display:flex!important;position:sticky!important;top:0!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;flex:0 0 auto!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;height:auto!important;min-height:56px!important;padding:4px 0 10px!important;margin:0 0 8px!important;z-index:5!important;background:#0b253d!important;border-bottom:1px solid #294459!important}
body.sidebar-choice #appShell #side .mobile-side-head:before{content:none!important;display:none!important}
body.sidebar-choice #appShell #side .mobile-side-head>span{display:block!important;flex:1 1 auto!important;min-width:0!important;margin:0!important;padding-left:10px!important;color:#b8cada!important;font-size:12px!important;font-weight:600!important;letter-spacing:.04em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.sidebar-choice #appShell #side #sideClose{display:inline-flex!important;position:static!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:11px!important;line-height:1!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;color:#edf4fa!important;opacity:1!important;visibility:visible!important;cursor:pointer!important}
body.sidebar-choice #appShell #side #sideClose:hover{background:#203b51!important;border-color:#58758b!important}
body.sidebar-choice #appShell #side #sideClose svg{display:block;width:20px;height:20px;flex:0 0 20px;pointer-events:none}
@media(min-width:801px){body.sidebar-choice.sidebar-visible #appShell #side{display:flex!important;flex-direction:column!important;top:var(--sidebar-header-bottom,72px)!important;height:calc(100dvh - var(--sidebar-header-bottom,72px))!important;transform:none!important;visibility:visible!important;opacity:1!important}body.sidebar-choice #appShell .sidebar-overlay{display:none!important}body.sidebar-choice.nav-open{overflow:auto!important;touch-action:auto!important}}
@media(max-width:800px){
 body.sidebar-choice #appShell #main{margin-left:0!important}
 body.sidebar-choice.sidebar-visible #appShell #side{display:flex!important;flex-direction:column!important;position:fixed!important;inset:var(--sidebar-header-bottom,64px) auto 0 0!important;width:min(310px,86vw)!important;max-width:86vw!important;height:calc(100dvh - var(--sidebar-header-bottom,64px))!important;transform:none!important;visibility:visible!important;opacity:1!important;z-index:210!important;overflow-y:auto!important;padding-bottom:90px!important}
 body.sidebar-choice.sidebar-visible #appShell .sidebar-overlay.open{display:block!important;inset:var(--sidebar-header-bottom,64px) 0 0!important;z-index:205!important;opacity:1!important;pointer-events:auto!important}
 body.sidebar-choice #appShell .top{z-index:220!important;position:sticky!important;top:0!important}
 body.sidebar-choice #appShell #mobileBottomNav{display:grid!important;z-index:220!important}
}
@media(prefers-reduced-motion:reduce){body.sidebar-choice #side{transition:none!important}}
/* The rail stays put; only its menu scrolls, so Workspace and Close never drift. */
body.sidebar-choice.sidebar-visible #appShell #side{box-sizing:border-box!important;overflow:hidden!important;padding-top:8px!important;max-height:calc(100dvh - var(--sidebar-header-bottom,72px))!important}
body.sidebar-choice #appShell #side .mobile-side-head{position:relative!important;top:auto!important;order:-2!important;flex:0 0 auto!important;isolation:isolate}
body.sidebar-choice #appShell #side .ui-menu-search{order:-1!important;flex:0 0 auto!important}
body.sidebar-choice #appShell #side #nav{order:0!important;display:block!important;flex:1 1 auto!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;scrollbar-color:#718296 transparent!important;scroll-padding-block:8px}
body.sidebar-choice #appShell #side .mobile-drawer-account{order:1!important;flex:0 0 auto!important;margin-top:12px!important}
