/* Compact brand header. Keep navigation destinations and the existing drawer behavior. */
body .sidebar>.brand{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;justify-content:space-between;gap:10px;flex:none;margin:0;padding:2px 0 12px;min-height:0}
body .sidebar .brand .brand-lockup,body.menu-open .sidebar .brand .brand-lockup,body.menu-collapsed .sidebar .brand .brand-lockup{box-sizing:border-box;display:block;width:144px;max-width:100%;height:auto;margin:0;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none}
body .sidebar .brand .brand-logo,body.menu-open .sidebar .brand .brand-logo,body.menu-collapsed .sidebar .brand .brand-logo{box-sizing:border-box;display:block;width:100%;max-width:100%;height:auto;max-height:48px;aspect-ratio:3/1;object-fit:contain;margin:0;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none}
body .sidebar .brand>.brand-caption{display:none}
body .sidebar .brand .drawer-close{position:static;display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:44px;height:34px;min-height:34px;max-height:34px;margin:0;padding:0 10px;border-radius:8px;font-size:11px;line-height:1.2;box-shadow:none;flex:none}
body .sidebar>.navlabel{margin:0;padding:8px 10px;font-size:9px;line-height:1.5;letter-spacing:.12em;flex:none}
@media(min-width:761px){body.menu-collapsed:not(.menu-open):not(.navigation-open) .sidebar>.brand{grid-template-columns:1fr;justify-items:center;padding:0 0 10px;gap:0}body.menu-collapsed:not(.menu-open):not(.navigation-open) .sidebar .brand .brand-lockup{width:44px;max-width:44px}body.menu-collapsed:not(.menu-open):not(.navigation-open) .sidebar .brand .brand-logo{width:44px;height:auto;max-height:16px;aspect-ratio:3/1}body.menu-collapsed:not(.menu-open):not(.navigation-open) .sidebar .brand .drawer-close{display:none!important}}
@media(max-width:760px){body .sidebar,body.menu-collapsed .sidebar{box-sizing:border-box;width:min(264px,84vw);max-width:calc(100vw - 32px);padding-inline:14px;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}body .sidebar>.brand{padding:0 0 10px;gap:10px}body .sidebar .brand .brand-lockup,body.menu-open .sidebar .brand .brand-lockup,body.menu-collapsed .sidebar .brand .brand-lockup{width:132px;max-width:100%}body .sidebar .brand .brand-logo,body.menu-open .sidebar .brand .brand-logo,body.menu-collapsed .sidebar .brand .brand-logo{height:auto;max-height:44px;aspect-ratio:3/1}body .sidebar .brand .drawer-close{height:44px;min-height:44px;max-height:44px;min-width:44px;padding:0 10px;font-size:11px}body .sidebar>.navlabel{padding:6px 10px 8px;font-size:9px}body .sidebar #nav .role-menu-heading{padding-top:15px;padding-bottom:7px;font-size:10px}body .sidebar #nav button[data-menu-target]{min-height:44px;padding-block:6px}}
@media(max-width:360px){body .sidebar,body.menu-collapsed .sidebar{width:min(252px,86vw);padding-inline:12px}body .sidebar .brand .brand-lockup,body.menu-open .sidebar .brand .brand-lockup,body.menu-collapsed .sidebar .brand .brand-lockup{width:120px}body .sidebar .brand .brand-logo,body.menu-open .sidebar .brand .brand-logo,body.menu-collapsed .sidebar .brand .brand-logo{max-height:40px}}
@media(max-height:520px) and (max-width:760px){body .sidebar,body.menu-collapsed .sidebar{padding-top:max(6px,env(safe-area-inset-top));padding-bottom:max(6px,env(safe-area-inset-bottom))}body .sidebar>.brand{padding-bottom:6px}body .sidebar .brand .brand-lockup,body.menu-open .sidebar .brand .brand-lockup,body.menu-collapsed .sidebar .brand .brand-lockup{width:114px}body .sidebar .brand .brand-logo,body.menu-open .sidebar .brand .brand-logo,body.menu-collapsed .sidebar .brand .brand-logo{max-height:38px}body .sidebar>.navlabel{display:none}}

/* Keep account, theme and language controls visible within the workspace scroll. */
.topbar{position:sticky!important;top:0;z-index:20;flex-shrink:0}
