.health-page {
    display: grid;
    gap: 1rem;
}

.health-hero,
.health-summary-grid article,
.health-attention-strip article,
.health-group-card,
.health-side-panel article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.health-hero {
    align-items: center;
    border-left: 4px solid var(--success);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, .3fr);
    padding: 1rem 1.1rem;
}

.health-hero.degraded {
    border-left-color: var(--warning);
}

.health-hero h1 {
    color: var(--heading);
    font-size: clamp(1.7rem, 2vw, 2.25rem);
    line-height: 1.1;
    margin: 0;
}

.health-hero p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.45;
    margin: .45rem 0 0;
    max-width: 58rem;
}

.health-hero-status {
    background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: .24rem;
    padding: .8rem .9rem;
}

.health-hero-status span,
.health-summary-grid article > span {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.health-hero-status strong {
    color: var(--heading);
    font-size: 1.35rem;
    line-height: 1.1;
}

.health-hero-status small,
.health-summary-grid small {
    color: var(--muted);
    line-height: 1.35;
}

.health-summary-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.health-summary-grid article {
    display: grid;
    gap: .24rem;
    padding: .85rem .95rem;
}

.health-summary-grid strong {
    color: var(--heading);
    font-size: 1.32rem;
    line-height: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.health-attention-strip {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.health-attention-strip article {
    border-left: 4px solid var(--warning);
    display: grid;
    gap: .32rem;
    padding: .8rem .9rem;
}

.health-attention-strip span {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.health-attention-strip strong {
    color: var(--heading);
    font-size: .98rem;
}

.health-attention-strip p {
    color: var(--muted);
    line-height: 1.38;
    margin: 0;
    overflow-wrap: anywhere;
}

.health-workspace {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, .32fr);
}

.health-main,
.health-side-panel {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.health-side-panel {
    position: sticky;
    top: var(--sticky-panel-offset);
}

.health-group-card,
.health-side-panel article {
    display: grid;
    overflow: hidden;
}

.health-group-header {
    align-items: center;
    border-bottom: 1px solid var(--table-border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 4.1rem;
    padding: .85rem .95rem;
}

.health-side-panel article {
    padding: .9rem .95rem;
}

.health-group-header h2,
.health-side-panel h2 {
    color: var(--heading);
    font-size: 1rem;
    line-height: 1.2;
    margin: .12rem 0 0;
}

.health-component-list,
.health-raw-list {
    display: grid;
}

.health-component-row {
    align-items: center;
    border-top: 1px solid var(--table-border);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .78rem .95rem;
}

.health-component-row:first-child {
    border-top: 0;
}

.health-component-row.degraded {
    background: color-mix(in srgb, var(--warning) 8%, transparent);
}

.health-component-row div {
    display: grid;
    gap: .18rem;
    min-width: 0;
}

.health-component-row strong {
    color: var(--heading);
    font-size: .94rem;
    line-height: 1.25;
}

.health-component-row p {
    color: var(--muted);
    line-height: 1.38;
    margin: 0;
    overflow-wrap: anywhere;
}

.health-status-pill {
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 850;
    justify-content: center;
    line-height: 1;
    padding: .22rem .52rem;
    white-space: nowrap;
}

.health-status-pill.ok {
    background: var(--success-soft);
    border-color: color-mix(in srgb, var(--success) 35%, var(--border));
    color: var(--success);
}

.health-status-pill.degraded {
    background: var(--warning-soft);
    border-color: color-mix(in srgb, var(--warning) 35%, var(--border));
    color: var(--warning);
}

.health-empty {
    color: var(--muted);
    margin: 0;
    padding: .95rem;
}

.health-snapshot {
    display: grid;
    gap: 0;
    grid-template-columns: max-content minmax(0, 1fr);
    margin: .2rem 0 0;
}

.health-snapshot dt,
.health-snapshot dd {
    border-bottom: 1px solid var(--table-border);
    margin: 0;
    padding: .5rem 0;
}

.health-snapshot dt {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.health-snapshot dd {
    color: var(--heading);
    font-size: .84rem;
    font-weight: 750;
    text-align: right;
}

.health-raw-list {
    gap: .45rem;
    margin-top: .1rem;
}

.health-raw-list details {
    background: color-mix(in srgb, var(--surface-muted) 56%, transparent);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.health-raw-list summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: .65rem;
    justify-content: space-between;
    list-style: none;
    padding: .55rem .6rem;
}

.health-raw-list summary::-webkit-details-marker {
    display: none;
}

.health-raw-list summary > span:first-child {
    color: var(--heading);
    font-size: .84rem;
    font-weight: 850;
}

.health-raw-list p {
    border-top: 1px solid var(--table-border);
    color: var(--muted);
    line-height: 1.38;
    margin: 0;
    overflow-wrap: anywhere;
    padding: .6rem;
}
