.sidebar-close,.sidebar-shade{display:none}
@media(max-width:800px){
  .sidebar{top:0;bottom:0;left:0;width:min(280px,calc(100vw - 56px));height:100vh;height:100dvh;max-width:100%;transform:translateX(-100%);visibility:hidden;pointer-events:none;transition:transform .2s ease,visibility .2s;box-shadow:12px 0 30px #18263a25}
  .sidebar.open{left:0;transform:translateX(0);visibility:visible;pointer-events:auto}
  .sidebar-close{display:flex;align-items:center;justify-content:center;gap:8px;align-self:flex-end;flex-shrink:0;min-height:44px;padding:6px 12px;margin:0 0 12px;border:1px solid #e5eaf1;border-radius:10px;background:#f4f7fa;color:#506176;cursor:pointer}
  .sidebar-close span{font-size:25px;line-height:1}
  .sidebar .brand{flex-shrink:0}.sidebar .nav{min-height:0;overscroll-behavior:contain}.sidebar-footer{flex-shrink:0}
  .sidebar-shade:not([hidden]){display:block;position:fixed;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:#18263a66;z-index:29;touch-action:manipulation;cursor:pointer}
  body.mobile-menu-open{overflow:hidden}
  #menuBtn{flex-shrink:0;min-width:44px;min-height:44px}
}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}

@media(max-width:800px){.topbar>div:not(.topbar-actions){min-width:0}.topbar h1{overflow-wrap:anywhere}.topbar-actions{flex-shrink:0;gap:6px}}
