.dashboard-page-slot {
    display: none;
}

.dashboard-page-slot--active {
    display: block;
    animation:
        dashboard-page-enter
        150ms ease-out both;
}

.dashboard-page-loading {
    min-height: 46vh;
    padding: clamp(18px, 3vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background:
        rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.dashboard-page-loading__line,
.dashboard-page-loading__card {
    position: relative;
    overflow: hidden;
    background:
        rgba(255, 255, 255, 0.075);
}

.dashboard-page-loading__line::after,
.dashboard-page-loading__card::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    animation:
        dashboard-page-shimmer
        1.35s ease-in-out infinite;
}

.dashboard-page-loading__line {
    height: 16px;
    margin-bottom: 14px;
    border-radius: 999px;
}

.dashboard-page-loading__line--title {
    width: min(340px, 72%);
    height: 24px;
}

.dashboard-page-loading__line--wide {
    width: min(620px, 92%);
}

.dashboard-page-loading__grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.dashboard-page-loading__card {
    min-height: 180px;
    border-radius: 16px;
}

.dashboard-page-loading__label {
    display: inline-block;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.9rem;
}

@keyframes dashboard-page-enter {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dashboard-page-shimmer {
    to {
        transform: translateX(100%);
    }
}

@media (max-width: 760px) {
    .dashboard-page-loading__grid {
        grid-template-columns: 1fr;
    }

    .dashboard-page-loading__card {
        min-height: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-page-slot--active,
    .dashboard-page-loading__line::after,
    .dashboard-page-loading__card::after {
        animation: none;
    }
}
