/* A short operational checklist; secondary evidence stays behind disclosure. */
.health-page { --health-space: 21px; font-variant-numeric: tabular-nums; max-width: 1100px; }
.health-toolbar { display: flex; align-items: center; gap: 17px; margin-bottom: 15px; flex-wrap: wrap; }
.health-environment-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.health-label { font-size: 11px; font-weight: 500; color: var(--muted); }
.health-environments { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--deep); gap: 3px; }
.health-environments button { border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 6px; padding: 6px 15px; min-height: 34px; font-size: 11px; font-weight: 600; }
.health-environments button[aria-pressed=true] { color: var(--accent-strong); background: var(--accent-soft); border-color: #354769; }
.health-environments button:hover:not(:disabled) { color: var(--ink); }
.health-scope { color: var(--muted); font-size: 10px; }
.health-status-line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; font-size: 11px; color: var(--muted); }
.health-status-line > p { overflow-wrap: anywhere; }
.health-status-line > button { white-space: nowrap; flex-shrink: 0; font-size: 11px; }
.health-status-line .is-error { color: var(--danger); }
.health-summary { display: flex; align-items: center; gap: 12px; padding: 13px 0 22px; }
.health-summary > p { color: var(--ink); font-size: 12px; font-weight: 500; }
.health-badge { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 10px; font-weight: 600; color: var(--muted); padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-raised); line-height: 1.5; }
.health-badge::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.health-state-healthy { color: var(--success); background: var(--success-soft); border-color: #36584c; }
.health-state-warning, .health-state-stale { color: var(--warning); background: var(--warning-soft); border-color: #5a4930; }
.health-state-error { color: var(--danger); background: var(--danger-soft); border-color: #61414d; }
.health-state-paused { color: var(--accent); background: var(--accent-soft); border-color: #354769; }
.health-state-paused::before { border-radius: 0; width: 5px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; background: transparent; height: 6px; }
.health-state-unknown::before, .health-state-unconfigured::before { background: transparent; border: 1px solid currentColor; }
.health-services-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; overflow: hidden; }
.health-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px var(--health-space); background: var(--deep); border-bottom: 1px solid var(--line); }
.health-section-heading h2 { font-size: 16px; }
.health-section-heading > span { color: var(--muted); font-size: 10px; }
.health-service + .health-service { border-top: 1px solid var(--line); }
.health-service > summary { display: grid; grid-template-columns: minmax(0,1fr) auto 9px; align-items: center; gap: 19px; cursor: pointer; padding: 19px var(--health-space); list-style: none; }
.health-service > summary::-webkit-details-marker { display: none; }
.health-service > summary::after { content: ''; width: 6px; height: 6px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg); margin-top: -3px; }
.health-service[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.health-service > summary:hover { background: var(--panel-raised); }
.health-service > summary:focus-visible { outline-offset: -4px; border-radius: 4px; }
.health-service-name { min-width: 0; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.health-service-meta { display: grid; grid-template-columns: 160px 112px; align-items: center; gap: 21px; justify-items: start; }
.health-service-meta .health-badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.health-observation { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; }
.health-service-body { padding: 0 var(--health-space) 19px; }
.health-service-body > p { color: var(--muted); font-size: 11px; line-height: 1.8; max-width: 780px; margin-bottom: 10px; }
.health-facts { margin: 0 0 9px; background: var(--deep); padding: 3px 13px; border-radius: 8px; }
.health-facts > div { display: grid; grid-template-columns: minmax(120px,.6fr) minmax(0,1.4fr); gap: 16px; padding: 9px 0; font-size: 11px; }
.health-facts > div + div { border-top: 1px solid var(--line); }
.health-facts dt { color: var(--muted); }
.health-facts dd { margin: 0; overflow-wrap: anywhere; }
.health-link { display: inline-block; color: var(--accent); font-size: 11px; font-weight: 500; text-decoration: none; padding-block: 4px; }
.health-link:hover { text-decoration: underline; color: var(--accent-hover); }
.health-empty { color: var(--muted); font-size: 11px; line-height: 1.8; padding: 22px var(--health-space); }
.health-attention { margin-top: 20px; border-left: 2px solid var(--warning); padding-left: 18px; }
.health-attention h2 { font-size: 13px; margin-bottom: 6px; }
#health-incidents { list-style: none; margin: 0; padding: 0; }
.health-incident { display: flex; align-items: start; justify-content: space-between; gap: 17px; padding: 10px 0; }
.health-incident + .health-incident { border-top: 1px solid var(--line); }
.health-incident strong { color: var(--ink); font-size: 11px; font-weight: 550; }
.health-incident p, .health-incident small { color: var(--muted); font-size: 11px; line-height: 1.75; }
.health-incident small { display: block; font-size: 10px; }
.health-incident > .health-link { flex-shrink: 0; }
.health-secondary { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--deep); color: var(--muted); font-size: 11px; overflow: hidden; }
.health-secondary > summary { padding: 16px var(--health-space); cursor: pointer; color: var(--ink); font-size: 12px; font-weight: 500; }
.health-secondary > summary > span { color: var(--warning); font-size: 10px; font-weight: 400; margin-left: 12px; }
.health-secondary > summary:focus-visible { outline-offset: -4px; }
#health-other-services { border-top: 1px solid var(--line); background: var(--panel); }
.health-coverage { background: transparent; border-color: transparent; margin-top: 10px; }
.health-coverage > summary { color: var(--muted); padding-block: 12px; font-size: 11px; }
.health-coverage > p { padding: 0 var(--health-space); max-width: 900px; line-height: 1.8; margin: 0 0 10px; }
#health-coverage-list { margin: 0 var(--health-space) 7px; }
#health-coverage-list > div { display: grid; grid-template-columns: minmax(150px,.3fr) 1fr; gap: 20px; padding: 10px 0; border-top: 1px solid var(--line); }
#health-coverage-list dt { color: var(--ink); }
#health-coverage-list dd { margin: 0; line-height: 1.8; }
@media (max-width: 1000px) { .health-service-meta { grid-template-columns: 125px; gap: 5px; } .health-page { --health-space: 18px; } }
@media (max-width: 600px) { .health-page { --health-space: 15px; } .health-toolbar { gap: 7px; } .health-environment-field { gap: 10px; } .health-status-line { font-size: 10px; align-items: start; gap: 12px; } .health-status-line > button { font-size: 10px; } .health-summary { padding-bottom: 17px; align-items: start; } .health-summary > p { font-size: 11px; padding-top: 4px; } .health-service > summary { gap: 10px; padding-block: 16px; } .health-service-name { font-size: 11px; } .health-service-meta { grid-template-columns: 118px; gap: 4px; } .health-observation { font-size: 9px; } .health-section-heading > span { display: none; } .health-facts > div, #health-coverage-list > div { grid-template-columns: minmax(0,1fr); gap: 4px; } .health-incident { flex-direction: column; gap: 4px; } .health-environments button { min-height: 40px; padding-inline: 11px; } .health-secondary > summary { min-height: 46px; } }
@media (prefers-reduced-motion: reduce) { .health-page *, .health-page *::before, .health-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
