.health-group{margin-top:28px;scroll-margin-top:24px}.health-group>h2,.health-group-heading h2{margin:0;font-size:1.22rem}.health-group-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.health-group-heading p,.health-group-count{color:var(--muted);font-size:.84rem;margin:5px 0 0}.health-group-count{flex-shrink:0}
.health-attention{border:1px solid var(--line);border-radius:15px;padding:20px;background:var(--panel);margin:18px 0}.health-attention-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center}.health-attention h2{font-size:1.15rem;margin:0}.health-attention-heading span{font-size:.84rem;color:var(--muted)}.health-attention>p{font-size:.86rem;color:var(--muted)}#healthAttentionList{padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:0}.health-attention-item{min-width:0;padding:16px;border:1px solid var(--line);border-left:3px solid var(--warn);border-radius:10px;background:var(--panel2)}.health-attention-item.bad{border-left-color:var(--bad)}.health-attention-item h3{margin:0 0 6px;font-size:.98rem}.health-attention-item p{font-size:.83rem;color:var(--muted);margin:7px 0;line-height:1.6}.health-attention-item .health-next-step{color:var(--text)}.health-attention-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:.81rem}.health-attention-actions a{min-height:44px;display:inline-flex;align-items:center;text-underline-offset:3px}.health-attention-actions button,.health-retry{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel2);color:var(--text);cursor:pointer}.health-retry:disabled,.health-attention-actions button:disabled{opacity:.55;cursor:wait}
.health-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:.87rem}.health-toolbar label{min-height:44px;display:inline-flex;align-items:center;gap:10px;color:var(--text);cursor:pointer}.health-toolbar input{width:20px;height:20px;accent-color:var(--accent)}.health-jumps{display:flex;flex-wrap:wrap;gap:8px 18px;margin:10px 0}.health-jumps a{display:inline-flex;min-height:44px;align-items:center;font-size:.85rem;text-underline-offset:4px}
.health-impact{color:var(--muted);font-size:.83rem;line-height:1.6;margin:12px 0}.health-technical summary{cursor:pointer;min-height:44px;display:list-item;padding:12px 0;font-size:.8rem;color:var(--accent)}.health-technical[open]{border-bottom:1px solid var(--line);padding-bottom:10px}.health-card-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px}.health-check-time{color:var(--muted);font-size:.71rem;line-height:1.5}.health-group .card{scroll-margin-top:24px}.health-group .metric{font-size:clamp(1.15rem,2vw,1.55rem);overflow-wrap:anywhere}.health-group .badge{text-transform:none;line-height:1.15;white-space:normal;text-align:center;max-width:110px;min-width:62px}.health-session{margin-top:28px;padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:15px}.health-session h2{font-size:1.18rem;margin:0}.health-session p,.health-session li{color:var(--muted);font-size:.84rem;line-height:1.65}.health-session ul{padding-left:20px;display:grid;gap:8px}.health-action-link{display:inline-flex;min-height:44px;align-items:center;margin-top:10px;font-size:.85rem}.health-group[hidden],.health-group .card[hidden],#healthFilteredEmpty[hidden]{display:none!important}.refresh{min-height:44px}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:650px){#healthAttentionList{grid-template-columns:1fr}.health-group-heading{align-items:flex-start;flex-direction:column;gap:3px}.health-attention{padding:16px}.health-toolbar{align-items:flex-start;flex-direction:column;gap:4px}.health-group .card-head{flex-wrap:wrap}.health-card-footer{align-items:flex-start}.health-check-time{max-width:70%}}

/* Keep each status badge beside its title at every card width. */
.health-group .card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}
.health-group .card-head h2{margin:0;min-width:0}
.health-group .card-head>.badge{justify-self:end;align-self:start;box-sizing:border-box}
