.admin-system {
    width: min(1280px, 100%);
    margin: 0 auto;
}
.admin-system__header, .health-panel__heading {
    display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.admin-system__header-actions { display: flex; align-items: center; gap: 12px; }
.admin-system__subtitle, .admin-system__updated, .health-panel__heading span { color: var(--text-muted); }
.health-pill { padding: 8px 12px; border-radius: 999px; font-weight: 800; text-transform: capitalize; }
.health-pill--healthy { background: #dff7e8; color: #12602f; }
.health-pill--degraded { background: #fff2c6; color: #6b4b00; }
.health-pill--unknown { background: var(--surface-muted); color: var(--text-muted); }
.health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.health-card, .health-panel { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.health-card h2, .health-panel h2 { margin-top: 0; }
.health-card dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; margin: 0; }
.health-card dt { color: var(--text-muted); }
.health-card dd { margin: 0; font-weight: 800; text-align: right; }
.health-panel { margin-top: 18px; }
.session-health-list { display: grid; gap: 12px; margin-top: 16px; }
.session-health-item { padding: 14px; border: 1px solid var(--border); border-radius: 10px; }
.session-health-item__top { display: flex; justify-content: space-between; gap: 12px; }
.session-health-item p { margin: 8px 0 0; color: var(--text-muted); }
.operational-events { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.operational-events li { display: grid; grid-template-columns: 180px 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.event-level--warning { color: #8a5a00; }
.event-level--error { color: #a12121; }
@media (max-width: 900px) { .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
    .admin-system__header, .health-panel__heading { align-items: flex-start; flex-direction: column; }
    .health-grid { grid-template-columns: 1fr; }
    .operational-events li { grid-template-columns: 1fr; gap: 3px; }
}


.health-card__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.accounting-pill {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.accounting-pill--balanced {
    background: #dff7e8;
    color: #12602f;
}

.accounting-pill--pending {
    background: #e6f0ff;
    color: #164b8a;
}

.accounting-pill--error {
    background: #ffe1e1;
    color: #8f1d1d;
}

.accounting-pill--unknown {
    background: var(--surface-muted);
    color: var(--text-muted);
}

.health-card--latency {
    grid-column: span 2;
}

.latency-sample-pill {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.latency-boundary {
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.latency-trace-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.latency-trace-item {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.latency-trace-item__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.latency-trace-item p {
    margin: 7px 0;
    color: var(--text-muted);
}

.latency-trace-item__stages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .health-card--latency {
        grid-column: span 2;
    }
}

@media (max-width: 620px) {
    .health-card--latency {
        grid-column: span 1;
    }
}

.latency-scope {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.62);
}
