.status-page header {
    min-height: 65vh;
}


.status-page .hero-avatar.status-avatar {
    background: rgba(15, 23, 42, 0.4);
    color: #f8fafc;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.status-avatar-link {
    text-decoration: none;
}

.status-hero-badge {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.status-hero-badge[data-state="up"] {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.35);
}

.status-hero-badge[data-state="partial"] {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.35);
}

.status-hero-badge[data-state="down"] {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.35);
}

.status-hero-badge[data-state="down"] .dot {
    background: #f87171;
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.6);
}

.status-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    color: #cbd5f5;
    font-size: 0.95em;
}

.status-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.4);
    color: #e2e8f0;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
}

.status-refresh:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(248, 113, 113, 0.6);
}

.beta-banner__link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
}

.beta-banner__link::after {
    content: '\2192';
}

.status-page .grid-pattern {
    pointer-events: none;
}

.status-page .hero-content {
    padding-bottom: 80px;
}

.status-page #overview .stat-label {
    font-size: 0.75em;
    white-space: nowrap;
}

.status-page #overview .stat-card {
    padding: 20px 14px;
    overflow: visible;
}

.status-page #overview .stat-number {
    font-size: clamp(1.35rem, 1.9vw, 1.9rem);
    line-height: 1.15;
    white-space: nowrap;
}

.status-page #overview .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.status-page .beta-banner__content {
    gap: 12px;
}

.status-metrics-grid {
    margin-top: 32px;
    gap: 20px;
}

.status-metric-card {
    text-align: left;
    padding: 24px 20px 20px;
    position: relative;
    overflow: hidden;
}

.status-metric-card .status-value {
    font-size: 1.9em;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text-primary);
}

.status-metric-card .stat-label {
    font-size: 0.82em;
    letter-spacing: 0.08em;
}

.metric-bar--hidden {
    display: none;
}

.stat-meta {
    margin-top: 6px;
    font-size: 0.8em;
    color: var(--text-muted);
}

.metric-bar {
    margin-top: 12px;
    height: 8px;
    border-radius: 999px;
    background: var(--bg-tertiary);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.metric-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    transition: width 0.6s ease;
}

.sparkline {
    width: 100%;
    height: 70px;
    margin-top: 12px;
    display: block;
}

.disk-ring {
    --disk-percent: 0deg;
    width: 120px;
    height: 120px;
    margin-top: 14px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-primary) var(--disk-percent), var(--bg-tertiary) 0deg);
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
}

.disk-ring::after {
    content: '';
    position: absolute;
    inset: 12px;
    background: var(--card-bg);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--border-color);
}

.disk-ring span {
    position: relative;
    z-index: 1;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: var(--text-secondary);
}

.status-alert {
    margin-top: 18px;
    margin-bottom: 32px;
    min-height: 20px;
    font-size: 0.95em;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-alert[data-state="ok"] {
    color: #10b981;
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.35);
}

.status-alert[data-state="warn"] {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

.status-alert[data-state="error"] {
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.status-alert::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
}

.services-grid {
    gap: 18px;
}

.service-card {
    text-align: left;
    padding: 22px 20px;
}

.service-header {
    display: grid;
    grid-template-columns: minmax(12ch, 1fr) max-content;
    align-items: center;
    column-gap: 12px;
    row-gap: 6px;
    width: 100%;
}

.service-name {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
    overflow-wrap: anywhere;
}

.service-meta {
    margin-top: 10px;
    font-size: 0.85em;
    color: var(--text-muted);
}

.service-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    justify-self: end;
    align-self: center;
    white-space: nowrap;
}

.service-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
}

.service-pill[data-state="active"] {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.12);
}

.service-pill[data-state="inactive"],
.service-pill[data-state="failed"],
.service-pill[data-state="deactivating"] {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
}

.service-pill[data-state="activating"],
.service-pill[data-state="reloading"] {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.12);
}

.service-pill[data-state="unknown"] {
    color: var(--text-secondary);
}


@media (max-width: 720px) {
    .status-page header {
        min-height: 55vh;
    }

    .status-meta {
        font-size: 0.85em;
    }

    .status-metric-card {
        padding: 20px 18px 18px;
    }

    .disk-ring {
        width: 104px;
        height: 104px;
    }

    .service-header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .service-pill {
        justify-self: start;
    }
}
