.app-shell {
    display: flex;
    min-height: 100svh;
    background:
        radial-gradient(circle at 86% 0%, rgba(32, 142, 170, 0.08), transparent 28rem),
        #f3f7fa;
}

.app-sidebar {
    width: 268px;
    flex: 0 0 268px;
    background:
        radial-gradient(circle at 50% 20%, rgba(5, 104, 127, 0.2), transparent 24rem),
        linear-gradient(180deg, #062c3d 0%, #032638 55%, #022235 100%);
    color: #d9e9ef;
    box-shadow: 14px 0 40px rgba(3, 38, 56, 0.08);
    transition: width 220ms ease, flex-basis 220ms ease, transform 220ms ease;
}

.app-sidebar.is-collapsed {
    width: 84px;
    flex-basis: 84px;
}

.app-sidebar__brand {
    min-height: 92px;
    border-bottom: 1px solid rgba(199, 224, 233, 0.13);
}

.app-sidebar__logo {
    background: linear-gradient(135deg, #0d8c91, #22b9a7);
    box-shadow: 0 9px 24px rgba(16, 185, 165, 0.22);
}

.app-sidebar__nav {
    scrollbar-color: rgba(211, 232, 238, 0.2) transparent;
}

.app-sidebar__group-label {
    color: rgba(211, 232, 238, 0.62);
}

.app-sidebar__link {
    color: rgba(230, 242, 246, 0.84);
    border: 1px solid transparent;
}

.app-sidebar__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.app-sidebar__link.is-active {
    color: #fff;
    background: linear-gradient(100deg, #087d85, #1cae9d);
    border-color: rgba(130, 240, 222, 0.18);
    box-shadow: 0 10px 24px rgba(1, 20, 31, 0.2);
}

.app-sidebar__user {
    border: 1px solid rgba(205, 228, 236, 0.16);
    background: rgba(4, 31, 45, 0.34);
}

.app-sidebar__footer {
    border-top: 1px solid rgba(199, 224, 233, 0.13);
}

.app-workspace {
    min-width: 0;
    flex: 1;
}

.app-mobile-header {
    display: none;
}

.app-main {
    height: 100svh;
    overflow-y: auto;
}

.app-page {
    width: min(100%, 1540px);
    margin: 0 auto;
    padding: clamp(20px, 2.1vw, 34px);
}

.app-page__heading {
    margin-bottom: 22px;
}

.app-page__heading h1 {
    font-family: var(--font-body);
    letter-spacing: -0.02em;
}

.app-sidebar-scrim {
    display: none;
}

@media (max-width: 1023px) {
    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 60;
        width: min(292px, calc(100vw - 48px));
        transform: translateX(-105%);
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .app-sidebar-scrim {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: block;
        background: rgba(2, 22, 34, 0.52);
        backdrop-filter: blur(3px);
    }

    .app-mobile-header {
        position: sticky;
        top: 0;
        z-index: 40;
        display: flex;
        min-height: 68px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(175, 203, 211, 0.72);
        background: rgba(255, 255, 255, 0.92);
        padding: 12px 18px;
        backdrop-filter: blur(16px);
    }

    .app-main {
        height: calc(100svh - 68px);
    }
}

@media (max-width: 639px) {
    .app-page {
        padding: 16px 12px 24px;
    }

    .app-page__heading {
        margin-bottom: 16px;
    }
}
