/* EPIC UI-01 — Fixed application shell
   Desktop: fixed sidebar, sticky topbar, independent menu/content scrolling.
   Compact/mobile: returns to the existing stacked responsive layout. */

@media (min-width: 1121px) {
    html,
    body {
        min-height: 100%;
    }

    body {
        overflow-x: hidden;
    }

    .na-shell {
        display: block;
        min-height: 100vh;
        padding-left: var(--na-sidebar-width);
    }

    .na-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 120;
        width: var(--na-sidebar-width);
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        padding: 14px 10px 12px;
        gap: 12px;
    }

    .na-brand {
        flex: 0 0 auto;
    }

    .na-brand-logo {
        width: min(138px, calc(var(--na-sidebar-width) - 32px));
        max-height: 116px;
    }

    .na-sidebar .na-nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        padding-right: 4px;
    }

    .na-sidebar .na-nav::-webkit-scrollbar {
        width: 7px;
    }

    .na-sidebar .na-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .na-sidebar .na-nav::-webkit-scrollbar-thumb {
        background: rgba(143, 92, 246, .28);
        border-radius: 999px;
    }

    .na-sidebar .na-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 45, 141, .42);
    }

    .na-sidebar-footer {
        flex: 0 0 auto;
        margin-top: 0;
        background: rgba(7, 7, 12, .88);
        backdrop-filter: blur(12px);
    }

    .na-main {
        width: 100%;
        min-width: 0;
        min-height: 100vh;
    }

    .na-topbar {
        position: sticky;
        top: 0;
        z-index: 110;
        width: 100%;
        background: rgba(7, 7, 10, .91);
        box-shadow: 0 1px 0 rgba(255,255,255,.035), 0 14px 34px rgba(0,0,0,.18);
    }

    .na-content {
        width: min(1320px, calc(100vw - var(--na-sidebar-width) - 48px));
    }

    .na-footer {
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 1120px) {
    .na-shell {
        padding-left: 0;
    }

    .na-sidebar {
        overflow: visible;
    }

    .na-sidebar .na-nav {
        overflow: visible;
    }

    .na-topbar {
        position: relative;
        top: auto;
    }
}
