@media (max-width: 1200px) {
    .content-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .insight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: auto;
    }

    .auth-hero__body {
        position: static;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-shell__sidebar {
        display: none;
    }

    .app-shell__main {
        padding-bottom: 6.5rem;
    }

    .mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        gap: 0.35rem;
        padding: 0.65rem;
        background: rgba(15, 23, 32, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(14px);
    }

    .mobile-nav__link {
        flex-direction: column;
        justify-content: center;
        gap: 0.25rem;
        min-height: 58px;
        padding: 0.55rem 0.35rem;
        font-size: 0.76rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-grid--2,
    .content-grid--3,
    .content-grid--4 {
        grid-template-columns: 1fr;
    }

    .quick-action-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-card--wide {
        grid-column: span 1;
    }

    .toolbar {
        align-items: stretch;
    }

    .toolbar__group,
    .toolbar__search {
        width: 100%;
    }

    .stack-list__item {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .auth-panel,
    .auth-hero {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.35rem;
        border-radius: 24px;
    }

    .page-header,
    .surface-card,
    .metric-card {
        border-radius: 20px;
    }

    .page-header {
        padding: 1rem;
    }

    .app-shell__main {
        padding: 1rem 1rem 6rem;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .profile-chip {
        min-width: 0;
    }

    .profile-chip__text {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
