/* Mobile drawer: keep account controls reachable without the bottom dock overlap. */
@media (max-width: 960px) {
    .sidebar {
        z-index: 85;
        height: 100vh;
        height: 100dvh;
        max-width: calc(100vw - 48px);
        padding-top: max(20px, env(safe-area-inset-top, 0px));
        padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
        overflow: hidden;
    }
    .sidebar > .brand,
    .sidebar > .sidebar-footer { flex-shrink: 0; }
    .sidebar > .nav-list {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar .nav-logout {
        min-height: 44px;
        align-items: center;
        color: #dce7ef;
    }
    .sidebar .nav-logout:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: -2px;
        border-radius: 8px;
    }
    .sidebar-overlay { z-index: 80; }
    .nav-open { overflow: hidden; }
    .nav-open .mobile-bottom-nav { display: none; }
}
