.health-pane{display:grid;gap:16px;min-width:0}
.health-pane h2,.health-pane h3{margin:0;font-weight:500}
.health-pane h2{font-size:20px;line-height:24px;overflow-wrap:anywhere}
.health-pane h3{font-size:16px;line-height:24px}
.health-head{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;min-height:36px}
.health-heading{display:flex;align-items:center;gap:8px;min-width:0}
.health-heading>.btn{flex:none}
.health-head .actions{gap:8px}
.health-head .primary{order:1}
.health-progress{font-variant-numeric:tabular-nums;color:var(--muted)}
.health-status{display:inline-flex;align-items:center;border-radius:999px;padding:0 8px;line-height:24px;background:var(--surface-muted);color:var(--muted);white-space:nowrap}
.health-status[data-state=complete]{background:var(--success-soft);color:var(--green)}
.health-status[data-state=running]{background:var(--info-soft);color:var(--ink)}
.health-status:is([data-state=failed],[data-state=partial],[data-state=waiting_browser],[data-state=needs_browser],[data-state=waiting_user]){background:var(--sand);color:var(--amber)}
.health-targets{list-style:none;margin:8px 0 0;padding:0}
.health-targets{display:flex;gap:8px;flex-wrap:wrap}
.health-targets li{padding:2px 10px;border-radius:6px;background:var(--surface-muted)}
.health-pane [data-health-list-error]:empty{display:none}
.health-check-table{min-width:790px;table-layout:fixed}
.health-check-table :is(th,td){padding:8px 12px;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.health-check-table thead th:first-child{width:17%}
.health-check-table th:nth-child(2){width:27%}
.health-check-table th:nth-child(3){width:26%}
.health-check-table th:nth-child(4){width:14%}
.health-check-table tbody th{position:static;background:none}
.health-pane .click-row th strong{font-weight:600}
.health-long-field>summary{display:flex;align-items:start;gap:4px;list-style:none;cursor:pointer}
.health-long-field>summary::-webkit-details-marker{display:none}
.health-long-field>summary .icon{width:12px;height:16px;flex:none;color:var(--muted);margin-top:4px}
.health-long-field[open]>summary .icon{transform:rotate(180deg)}
.health-long-field:not([open]) .health-long-full,.health-long-field[open] .health-long-preview{display:none}
.health-error{display:flex;align-items:center;gap:8px}
.health-pane .table-wrap{margin-top:8px}
.health-results-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.health-results{table-layout:auto;min-width:0}
.health-results thead th{background:var(--surface-muted);height:38px}
.health-results tbody th{position:static;color:var(--ink);background:transparent}
.health-results :is(th,td){padding:8px 12px;vertical-align:top}
.health-results :is(td,thead th){white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
.health-results td,.health-results th{line-height:24px}
.health-results thead th:first-child{width:24%}
.health-results thead th:nth-child(2){width:26%}
@media(max-width:650px){
  .health-results{display:block}
  .health-results thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  .health-results tbody,.health-results tbody tr{display:block}
  .health-results tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:8px 0;border-bottom:1px solid var(--line)}
  .health-results tbody :is(th,td){width:auto;height:auto;padding:0;border:0}
  .health-results tbody th{font-weight:600}
  .health-results .health-attachment{grid-column:1/-1}
  .health-results .health-attachment:empty{display:none}
}
.page:has(.health-run-page){background:none;box-shadow:none;border-radius:0}
.health-run-page{display:flex;flex:1;min-height:0;min-width:0;gap:16px}
.health-run-chat.copilot{order:0;position:relative;inset:auto;width:clamp(290px,28%,400px);max-width:none;z-index:auto}
.health-run-chat .copilot-name{display:flex;align-items:center}
.health-run-chat .copilot-form .actions{justify-content:flex-end}
.health-run-results{flex:1;min-width:0;overflow:auto;border-radius:16px;background:var(--white);box-shadow:var(--shadow-surface);padding:24px 28px;overflow-wrap:anywhere}
.health-run-header{border-bottom:1px solid var(--line);padding-bottom:20px}
.health-run-header>.btn{padding:0;min-height:24px;margin-bottom:20px}
.health-run-heading{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap}
.health-run-header h1{margin:0;font-size:24px;line-height:1.4;font-weight:500}
.health-run-header p{margin:4px 0 0}
.health-run-section{margin:24px 0 28px}
.health-run-section h2{font-size:18px;line-height:24px;font-weight:600;margin:0 0 10px}
.health-run-section p{white-space:pre-line;margin:8px 0}
.health-related-marks{min-width:580px;table-layout:auto}
.health-related-marks :is(th,td){padding:8px 12px;line-height:24px;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.health-related-marks thead th,.health-check-table thead th{background:var(--surface-muted)}
.health-related-marks tbody th{position:static;background:none;color:var(--ink)}
.health-related-marks td:last-child{white-space:nowrap}
.health-run-results .text-link{color:var(--link)}
.health-run-sources{padding:0;list-style:none}
.health-run-results>.health-error{margin-top:16px}
@media(max-width:920px){
  .health-run-page{gap:10px}
  .health-run-results{padding:16px}
}
@media(max-width:720px){
  .health-run-page{flex-direction:column;overflow:auto}
  .health-run-results{order:-1;overflow:visible;flex:none}
  .health-run-chat.copilot{width:100%;min-height:420px;height:68vh}
  .health-run-header h1{font-size:20px}
  :is(.health-related-marks,.health-check-table){display:block;min-width:0}
  :is(.health-related-marks,.health-check-table) thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  :is(.health-related-marks,.health-check-table) tbody{display:block}
  :is(.health-related-marks,.health-check-table) tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:8px 0;border-bottom:1px solid var(--line)}
  :is(.health-related-marks,.health-check-table) tbody :is(th,td){width:auto;height:auto;padding:0;border:0}
  :is(.health-related-marks,.health-check-table) td[data-label]{grid-column:1/-1;display:grid;grid-template-columns:minmax(68px,25%) minmax(0,1fr);gap:8px}
  :is(.health-related-marks,.health-check-table) td[data-label]:before{content:attr(data-label);color:var(--muted)}
  .health-related-marks td:nth-child(3),.health-check-table [data-health-record]{grid-row:1;grid-column:2}
  .record-table.health-check-table td.case-row-actions{padding:0;justify-self:end}
}
.health-markets{border:0;padding:0;margin:0}
.health-markets legend{width:100%;padding:0;margin-bottom:10px}
.health-markets-heading,.health-market-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px 12px}
.health-markets-heading{align-items:center}
.health-markets-heading>.check{grid-column:-2;justify-self:start}
.health-markets .check{gap:6px;min-height:24px}
