@media (max-width: 820px) {
    .mobile-view {
        display: grid;
        gap: .85rem;
        width: 100%;
        min-width: 0;
        padding: .75rem .75rem calc(2rem + env(safe-area-inset-bottom));
    }

    .mobile-page-header,
    .mobile-panel,
    .mobile-list-card,
    .mobile-form-panel {
        min-width: 0;
        border: 1px solid rgba(255, 255, 255, .13);
        border-radius: 12px;
        background: #1d1e1d;
        padding: 1rem;
    }

    .mobile-page-header {
        display: grid;
        gap: .7rem;
        background: linear-gradient(145deg, rgba(28, 73, 64, .42), #202120 58%);
    }

    .mobile-page-header h1,
    .mobile-panel h2,
    .mobile-list-card h2,
    .mobile-list-card h3,
    .mobile-form-panel h2 {
        margin: .15rem 0 0;
        overflow-wrap: anywhere;
    }

    .mobile-page-header h1 {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
        line-height: 1;
    }

    .mobile-page-header p,
    .mobile-panel p,
    .mobile-list-card p,
    .mobile-form-panel p {
        margin: .4rem 0 0;
        line-height: 1.48;
    }

    .mobile-kicker {
        color: #a9f400;
        font-size: .69rem;
        font-weight: 850;
        letter-spacing: .09em;
        text-transform: uppercase;
    }

    .mobile-actions,
    .mobile-form-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: .55rem;
        margin-top: .75rem;
    }

    .mobile-actions .btn,
    .mobile-form-actions .btn,
    .mobile-actions a,
    .mobile-form-actions a {
        width: 100%;
    }

    .mobile-metric-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }

    .mobile-metric {
        min-width: 0;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 9px;
        background: rgba(255, 255, 255, .025);
        padding: .75rem;
    }

    .mobile-metric span,
    .mobile-detail-list dt,
    .mobile-card-label {
        display: block;
        margin-bottom: .28rem;
        color: #a9afad;
        font-size: .64rem;
        font-weight: 800;
        letter-spacing: .055em;
        text-transform: uppercase;
    }

    .mobile-metric strong,
    .mobile-detail-list dd {
        display: block;
        min-width: 0;
        margin: 0;
        color: #f3f5f3;
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .mobile-stack {
        display: grid;
        gap: .65rem;
    }

    .mobile-list-card {
        display: grid;
        gap: .65rem;
    }

    .mobile-list-card__head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: .75rem;
        min-width: 0;
    }

    .mobile-list-card__head > div {
        min-width: 0;
    }

    .mobile-status-pill {
        flex: 0 0 auto;
        border: 1px solid rgba(39, 181, 159, .5);
        border-radius: 999px;
        color: #62d5c5;
        font-size: .66rem;
        font-weight: 800;
        padding: .34rem .5rem;
        text-transform: uppercase;
    }

    .mobile-status-pill.is-warning {
        border-color: rgba(241, 184, 61, .55);
        color: #f4c65f;
    }

    .mobile-detail-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
        margin: 0;
    }

    .mobile-detail-list > div {
        min-width: 0;
        border-top: 1px solid rgba(255, 255, 255, .08);
        padding-top: .55rem;
    }

    .mobile-form-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: .8rem;
    }

    .mobile-form-grid > div,
    .mobile-form-grid > label {
        min-width: 0;
    }

    .mobile-form-grid label {
        display: block;
        margin-bottom: .35rem;
        font-weight: 750;
    }

    .mobile-filter-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: .7rem;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 10px;
        background: rgba(255, 255, 255, .025);
        padding: .85rem;
    }

    .mobile-empty-state {
        border: 1px dashed rgba(255, 255, 255, .16);
        border-radius: 10px;
        color: #b4bab7;
        padding: 1rem;
        text-align: center;
    }

    .mobile-section-heading {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: .7rem;
        margin-bottom: .75rem;
    }

    .mobile-section-heading h2 {
        margin: .15rem 0 0;
    }

    .mobile-load-more {
        width: 100%;
        margin-top: .75rem;
    }

    .mobile-detailed-view {
        width: 100%;
        min-height: 44px;
        border: 0;
        background: transparent;
        color: #65d5c5;
        font-weight: 750;
        text-decoration: underline;
    }

    .mobile-note {
        color: #b4bab7;
        font-size: .86rem;
    }

    .mobile-danger-panel {
        border-color: rgba(211, 92, 71, .5);
    }
}

@media (max-width: 380px) {
    .mobile-metric-grid,
    .mobile-detail-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
