.dashboard-overview-page main {
    display: grid;
    gap: 14px;
}

.dashboard-overview-page .summary-grid,
.dashboard-overview-page .summary-grid-secondary {
    margin-bottom: 0;
}

.dashboard-resource-card {
    position: relative;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-resource-card:hover,
.dashboard-resource-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(32, 41, 54, 0.12);
}

.dashboard-card-action {
    position: absolute;
    right: 17px;
    bottom: 14px;
    color: var(--info, #0d6efd);
    font-size: 12px;
    font-weight: 700;
}

.dashboard-update-value {
    font-size: 17px;
}

.system-overview-section {
    position: relative;
    min-width: 0;
    margin-top: 4px;
    padding-top: 18px;
}

.system-overview-section::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: calc(100% - 120px);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border) 14%,
        var(--border) 86%,
        transparent 100%
    );
    content: "";
    transform: translateX(-50%);
}

.system-overview-refresh {
    padding: 2px 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.system-overview-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.system-overview-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.system-panel-header,
.compact-health-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.system-panel-header h2,
.compact-health-header h2 {
    margin: 0;
    font-size: 20px;
}

.system-panel-header p,
.compact-health-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.system-overview-checks {
    border: 1px solid var(--border);
    border-radius: 9px;
}

.system-overview-checks a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 13px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
}

.system-overview-checks a:last-child {
    border-bottom: 0;
}

.system-overview-checks strong.ok {
    color: var(--ok);
}

.system-overview-checks strong.alert {
    color: var(--alert);
}

.system-overview-checks strong.warning {
    color: var(--warning, #a46b13);
}

.system-overview-notifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.system-overview-notifications span {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.system-overview-notifications .enabled {
    background: var(--ok-soft);
    color: var(--ok);
}

.system-overview-notifications .disabled {
    background: var(--surface-soft);
    color: var(--muted);
}

.dashboard-chart-meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.compact-health-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(74px, 1fr));
    gap: 18px;
}

.compact-health-stats div {
    display: grid;
    gap: 4px;
}

.compact-health-stats span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.compact-health-stats strong {
    font-size: 18px;
}

.dashboard-chart-meta {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    align-items: center;
}

.dashboard-chart-meta a {
    color: var(--info, #0d6efd);
    font-weight: 700;
    text-decoration: none;
}

.dashboard-chart-container {
    position: relative;
    height: 220px;
    margin-top: 10px;
}

@media (max-width: 1100px) {
    .system-overview-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .system-overview-section::before {
        width: calc(100% - 32px);
    }

    .compact-health-header {
        display: grid;
    }

    .dashboard-chart-container {
        height: 210px;
    }

    .system-overview-body {
        gap: 14px;
    }

    .system-overview-panel {
        padding: 16px;
    }

}
