.health-shell {
    min-height: 100vh;
    padding: 34px clamp(18px, 4vw, 56px) 64px;
    background:
        radial-gradient(circle at 12% 8%, rgba(34, 197, 94, .18), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(56, 189, 248, .16), transparent 30%),
        linear-gradient(180deg, #07111f 0%, #091525 48%, #07101d 100%);
    color: #e5eefc;
}
.health-back {
    display: inline-flex;
    margin-bottom: 18px;
    color: #8bd3ff;
    font-weight: 800;
}
.health-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
}
.health-eyebrow,
.health-panel__eyebrow {
    margin: 0 0 9px;
    color: #34d399;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.health-topbar h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 72px);
    line-height: .98;
}
.health-lead {
    max-width: 800px;
    margin: 0;
    color: #aebdd2;
    font-size: 18px;
}
.health-topbar__actions,
.health-filter-row,
.health-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.health-btn,
.health-mini-btn,
.health-filter {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 999px;
    background: rgba(15, 23, 42, .78);
    color: #dbeafe;
    font-weight: 900;
    cursor: pointer;
}
.health-btn--primary,
.health-mini-btn {
    border-color: rgba(52, 211, 153, .48);
    background: linear-gradient(135deg, #059669, #0ea5e9);
    color: #fff;
}
.health-btn--ghost,
.health-mini-btn--ghost { background: rgba(15, 23, 42, .72); }
.health-alert,
.health-score-card,
.health-stat-card,
.health-panel {
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(12, 24, 44, .78);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
    backdrop-filter: blur(18px);
}
.health-alert {
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 20px;
    color: #cbd5e1;
}
.health-alert strong { color: #86efac; }
.health-score-panel {
    display: grid;
    grid-template-columns: minmax(260px, .55fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}
.health-score-card {
    padding: 24px;
    border-radius: 26px;
}
.health-score-card span,
.health-stat-card span,
.health-stat-card small,
.health-hint,
.health-muted { color: #93a4bc; }
.health-score-card strong {
    display: block;
    margin: 10px 0;
    color: #86efac;
    font-size: 56px;
    line-height: 1;
}
.health-score-card p { margin: 0; color: #cbd5e1; }
.health-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.health-stat-card {
    padding: 18px;
    border-radius: 22px;
}
.health-stat-card strong {
    display: block;
    margin: 8px 0;
    font-size: 30px;
}
.health-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr);
    gap: 18px;
}
.health-panel {
    padding: 20px;
    border-radius: 26px;
}
.health-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
    margin-bottom: 16px;
}
.health-panel h2,
.health-detail h3 { margin: 0 0 12px; }
.health-filter { min-height: 36px; padding: 0 13px; font-size: 13px; }
.health-filter--active { border-color: rgba(52, 211, 153, .62); color: #86efac; }
.health-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}
.health-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}
.health-table th,
.health-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
    text-align: left;
}
.health-table th {
    color: #93a4bc;
    font-size: 12px;
    text-transform: uppercase;
}
.health-row { cursor: pointer; }
.health-row:hover,
.health-row--selected { background: rgba(56, 189, 248, .08); }
.health-risk,
.health-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}
.health-risk--critical { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.health-risk--high { background: rgba(249, 115, 22, .18); color: #fdba74; }
.health-risk--medium { background: rgba(250, 204, 21, .14); color: #fde68a; }
.health-risk--low { background: rgba(52, 211, 153, .14); color: #86efac; }
.health-status--new { background: rgba(56, 189, 248, .14); color: #93c5fd; }
.health-status--review { background: rgba(250, 204, 21, .14); color: #fde68a; }
.health-status--fixed { background: rgba(52, 211, 153, .14); color: #86efac; }
.health-side {
    display: grid;
    gap: 18px;
    align-content: start;
}
.health-impact {
    color: #cbd5e1;
    line-height: 1.6;
}
.health-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.health-detail-meta span {
    padding: 7px 10px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 999px;
    color: #dbeafe;
}
.health-detail ul {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}
.health-detail li {
    padding: 12px 13px;
    border: 1px solid rgba(148, 163, 184, .13);
    border-radius: 14px;
    background: rgba(8, 18, 34, .58);
    color: #dbeafe;
}
.health-timeline {
    display: grid;
    gap: 10px;
}
.health-event {
    padding: 12px 13px;
    border-left: 3px solid #38bdf8;
    border-radius: 14px;
    background: rgba(8, 18, 34, .55);
}
.health-event--ok { border-color: #34d399; }
.health-event--warn { border-color: #f59e0b; }
.health-event span { color: #93a4bc; font-size: 12px; }
.health-event p { margin: 4px 0 0; color: #dbeafe; }
.health-empty { color: #93a4bc; text-align: center; }
@media (max-width: 1080px) {
    .health-topbar,
    .health-score-panel,
    .health-layout { grid-template-columns: 1fr; }
    .health-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .health-shell { padding: 24px 14px 44px; }
    .health-topbar h1 { font-size: 38px; }
    .health-stats { grid-template-columns: 1fr; }
    .health-panel__header { display: block; }
    .health-topbar__actions .health-btn { width: 100%; }
}
