.app-shell {
    display: grid;
    min-height: 100dvh;
    grid-template:
        "header" auto
        "main" 1fr
        "mobile" auto / 1fr;
}

.app-header {
    grid-area: header;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border-subtle);
}

.app-main {
    grid-area: main;
    padding: var(--space-4);
}

.app-sidebar {
    display: none;
}

.app-mobile-nav {
    grid-area: mobile;
    border-top: 1px solid var(--border-subtle);
    background: var(--surface-1);
}

.responsive-container {
    width: min(100%, 1100px);
    margin: 0 auto;
}

.top-nav-shell {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 0 var(--space-4);
}

.brand-link {
    color: var(--text-strong);
    text-decoration: none;
    font-weight: 700;
}

.about-link {
    text-decoration: none;
}

.nav-rail {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
}

.nav-rail-link {
    text-decoration: none;
    color: var(--text-default);
    border-radius: var(--radius-1);
    padding: var(--space-2) var(--space-3);
}

.nav-rail-link.active {
    background: #dceadb;
    color: var(--text-strong);
}

.mobile-nav-shell {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-default);
    text-align: center;
    padding: var(--space-3) var(--space-2);
    font-size: 0.85rem;
}

.mobile-nav-link.active {
    color: var(--text-strong);
    background: #e9f2e8;
}

@media (min-width: 1024px) {
    .app-shell {
        grid-template:
            "header header" auto
            "sidebar main" 1fr / 250px 1fr;
    }

    .app-sidebar {
        grid-area: sidebar;
        display: block;
        border-right: 1px solid var(--border-subtle);
        background: var(--surface-1);
    }

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