.dashboard-mobile {
    display: none;
}

.dashboard-desktop {
    display: block;
}

.dashboard-mobile__shell,
.dashboard-mobile-panel,
.dashboard-mini-card {
    min-width: 0;
}

@media (max-width: 800px) {
    body.page-dashboard {
        overflow: hidden;
    }

    body.page-dashboard .main-content {
        padding: 10px 10px 92px;
        height: 100dvh;
        overflow: hidden;
    }

    body.page-dashboard .alert {
        margin-bottom: 8px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .page-dashboard .dashboard-desktop {
        display: none;
    }

    .page-dashboard .dashboard-mobile {
        display: block;
        height: calc(100dvh - 112px);
    }

    .dashboard-mobile__shell {
        height: 100%;
        display: grid;
        grid-template-rows: auto auto 1fr;
        gap: 10px;
        overflow: hidden;
    }

    .dashboard-mobile__header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        padding: 4px 2px 0;
    }

    .dashboard-mobile__eyebrow {
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #60a5fa;
        margin-bottom: 4px;
    }

    .dashboard-mobile__title {
        margin: 0;
        font-size: clamp(22px, 6vw, 30px);
        line-height: 1.05;
        max-width: 210px;
    }

    .dashboard-mobile__date {
        flex: 0 0 auto;
        padding: 10px 12px;
        border-radius: 16px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.07);
        color: #9ca3af;
        font-size: 11px;
        line-height: 1.35;
        text-align: right;
    }

    .dashboard-mobile__date strong {
        display: block;
        margin-top: 2px;
        color: #fff;
        font-size: 13px;
    }

    .dashboard-mobile__stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .dashboard-mini-card {
        padding: 12px;
        border-radius: 18px;
        background: #111827;
        border: 1px solid rgba(255,255,255,0.08);
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 88px;
    }

    .dashboard-mini-card__label {
        color: #9ca3af;
        font-size: 11px;
        margin-bottom: 6px;
    }

    .dashboard-mini-card__value {
        font-size: 26px;
        line-height: 1;
        font-weight: 800;
        margin-bottom: 4px;
        color: #fff;
    }

    .dashboard-mini-card__value--text {
        font-size: 16px;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-mini-card__meta {
        color: #cbd5e1;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-mobile__grid {
        min-height: 0;
        display: grid;
        grid-template-rows: 1.2fr 1fr 1fr;
        gap: 8px;
    }

    .dashboard-mobile-panel {
        background: #111827;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 18px;
        padding: 12px;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .dashboard-mobile-panel__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 10px;
    }

    .dashboard-mobile-panel__head h2 {
        margin: 0;
        font-size: 16px;
    }

    .dashboard-mobile-panel__head a {
        color: #60a5fa;
        font-size: 12px;
        font-weight: 700;
    }

    .dashboard-mobile-list {
        display: grid;
        gap: 8px;
        min-height: 0;
    }

    .dashboard-mobile-row {
        display: grid;
        grid-template-columns: 52px 1fr;
        gap: 10px;
        align-items: center;
        padding: 10px;
        border-radius: 14px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.05);
        min-width: 0;
    }

    .dashboard-mobile-row--active {
        background: rgba(37,99,235,0.16);
        border-color: rgba(37,99,235,0.35);
    }

    .dashboard-mobile-row__time {
        font-size: 13px;
        font-weight: 800;
        color: #bfdbfe;
    }

    .dashboard-mobile-row__body {
        min-width: 0;
    }

    .dashboard-mobile-row__body strong,
    .dashboard-mobile-feature strong {
        display: block;
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-mobile-row__body span,
    .dashboard-mobile-feature span,
    .dashboard-mobile-feature small {
        display: block;
        color: #9ca3af;
        font-size: 12px;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-mobile-feature {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 0;
        height: 100%;
        padding: 10px;
        border-radius: 14px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.05);
        gap: 5px;
    }

    .dashboard-mobile-empty {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-height: 0;
        border-radius: 14px;
        background: rgba(255,255,255,0.03);
        color: #9ca3af;
        font-size: 13px;
        text-align: center;
        padding: 10px;
    }
}