.dashboard-page {
    margin: 0 auto;
    max-width: 1280px;
    width: 100%;
}

.dashboard-hero {
    max-width: 820px;
}

.dashboard-hero h1 {
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    margin: 0.85rem 0 1.25rem;
}

.dashboard-hero p {
    font-size: 1.02rem;
    max-width: 720px;
}

.dashboard-message {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    display: grid;
    gap: 0.45rem;
    margin-top: 2.5rem;
    padding: 1.4rem;
}

.dashboard-message-error {
    background: var(--danger-surface);
    border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
}

.dashboard-message span {
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.dashboard-card {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, transparent),
        color-mix(in srgb, var(--primary) 5%, var(--surface)));
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    min-height: 210px;
    overflow: hidden;
    padding: clamp(1.35rem, 3vw, 2rem);
    position: relative;
}

.dashboard-card::after {
    border: 1px solid var(--line);
    border-radius: 50%;
    content: "";
    height: 120px;
    opacity: 0.45;
    position: absolute;
    right: -58px;
    top: -62px;
    width: 120px;
}

.dashboard-card.is-available {
    border-color: color-mix(in srgb, var(--success) 40%, var(--line));
}

.dashboard-card.is-empty {
    border-color: color-mix(in srgb, var(--cyan) 34%, var(--line));
}

.dashboard-card.is-unavailable {
    background: color-mix(in srgb, var(--surface) 82%, var(--page-soft));
}

.dashboard-card-wide {
    grid-column: span 3;
    min-height: 170px;
}

.dashboard-card-index {
    color: var(--cyan);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.dashboard-card h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    margin: 1.6rem 0 0.7rem;
}

.dashboard-card p {
    margin-bottom: 0;
    max-width: 54ch;
}

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

    .dashboard-card-wide {
        grid-column: span 2;
    }
}

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

    .dashboard-card,
    .dashboard-card-wide {
        grid-column: auto;
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-card {
        scroll-behavior: auto;
    }
}
