/* Local diagnostics, wide enough to read; no colour-only status coding. */
#health-dialog{width:min(820px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:34px;overflow:auto;background:#faf8f3;color:#2a3330}
#health-dialog h2{font-size:clamp(28px,4vw,44px);line-height:1.12;margin:10px 0 14px}#health-dialog h2 em{color:#426354}
#health-dialog p{font-size:14px;line-height:1.65;overflow-wrap:anywhere}#health-dialog .eyebrow{color:#486353;font-size:10px}
.health-intro{max-width:610px;color:#59635c}.health-runtime{padding:16px 18px;border:1px solid #d3ddd3;border-radius:14px;background:#edf2ea;font-size:13px;line-height:1.7;margin:20px 0}
.health-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.health-actions .btn{min-height:44px;font-size:13px;white-space:normal}
#health-summary{font-weight:600;min-height:24px}.health-row{background:#fffdfa;border:1px solid #e0e2da;border-radius:16px;padding:18px 20px;margin:12px 0}.health-row-head{display:flex;justify-content:space-between;align-items:start;gap:14px}.health-row h3{font-size:17px;font-family:inherit;font-weight:600;margin:0;line-height:1.35}.health-row p{color:#5b655e;margin:10px 0 0}.health-pill{padding:4px 9px;border-radius:20px;background:#eef0e9;color:#3e594a;font-size:11px;font-weight:600;white-space:nowrap}.health-row[data-status=warn] .health-pill{background:#fff0d9;color:#75531d}
.health-privacy{border-top:1px solid #daddd3;margin-top:24px;padding-top:18px;color:#636961}.health-privacy p{font-size:12px!important}.health-privacy summary{min-height:44px;padding-top:12px;font-size:13px;cursor:pointer}#health-report{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6;background:#f0f1ed;padding:14px;border-radius:12px}
#health-dialog button:focus-visible,#health-dialog summary:focus-visible{outline:3px solid #426354;outline-offset:3px}.health-help-link{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;font-size:13px}
.boot-problem{max-width:1000px;margin:16px auto;padding:22px;border:1px solid #d5b893;border-radius:16px;background:#fff6e8;color:#5b472e}.boot-problem h2{font-family:inherit;font-size:20px;margin:0}.boot-problem p{font-size:14px;line-height:1.7}.boot-problem .inline-actions{flex-wrap:wrap}

@media(max-width:600px){#health-dialog{padding:22px 16px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.health-row{padding:16px 13px}.health-row-head{flex-wrap:wrap;gap:8px}.health-actions{display:grid;grid-template-columns:1fr}.health-actions .btn{width:100%}.boot-problem{margin:10px;padding:16px}}

#health-title:focus{outline:none}

#preview-export-dialog{max-width:640px}#preview-export-dialog .review-context{font-size:14px;line-height:1.65}
