#system-health-view{min-width:0}.sh-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.sh-toolbar>small{color:var(--muted);line-height:1.5}.sh-card{background:#fff;border:1px solid var(--border,#dce5d9);border-radius:20px;padding:24px;margin-bottom:20px;min-width:0}.sh-card h2{font-size:20px;margin:0 0 18px}.sh-note{font-size:13px;line-height:1.65;color:var(--muted,#536653);margin:10px 0;overflow-wrap:anywhere}.sh-error{color:#92382e;background:#fff1ee;border-radius:10px;padding:12px}.sh-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.sh-metric{border:1px solid #e0e7df;border-radius:15px;background:#fff;padding:20px 14px;display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;text-align:center;min-width:0}.sh-metric>span{font-size:12px;font-weight:650;color:var(--muted)}.sh-metric>strong{font-size:26px;line-height:1.3;overflow-wrap:anywhere}.sh-metric>small{font-size:11px;line-height:1.5;color:var(--muted)}.sh-integrations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}.sh-integration{border:1px solid #e0e7df;border-radius:16px;padding:20px;text-align:center;min-width:0}.sh-integration h3{font-size:17px;margin:0 0 14px}.sh-integration dl{display:grid;gap:12px;margin:18px 0 0}.sh-integration dt{font-size:11px;font-weight:650;color:var(--muted)}.sh-integration dd{margin:4px 0 0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.sh-integration>small{display:block;margin-top:12px;font-size:11px;line-height:1.5;color:#7c5c1b}.sh-table-scroll{overflow:auto;max-width:100%;border:1px solid #e0e7df;border-radius:12px}.sh-table-scroll table{width:100%;min-width:650px;border-collapse:collapse;font-size:12px}.sh-table-scroll th,.sh-table-scroll td{padding:12px;text-align:center;border-bottom:1px solid #e7ece5}.sh-table-scroll th{background:#f4f6f2}.sh-table-scroll th:first-child,.sh-table-scroll td:first-child{text-align:left}.sh-table-scroll tr:last-child td{border-bottom:0}.sh-index-details{margin-top:18px;font-size:13px}.sh-index-details summary{cursor:pointer;color:#315c31;font-weight:650;padding:10px 0}.sh-index-details ul{padding:0;list-style:none;max-height:380px;overflow:auto}.sh-index-details li{padding:12px;border-bottom:1px solid #e7ece5;display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}.sh-index-details li span{color:var(--muted)}.sh-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.sh-actions .button{min-height:44px;white-space:normal}.sh-preview{margin-top:20px;border:1px solid #e0e7df;border-radius:16px;padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.sh-preview>.sh-note,.sh-preview>.sh-confirm,.sh-preview>.sh-actions{grid-column:1/-1}.sh-confirm{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6;margin:10px 0}.sh-confirm input{flex:0 0 auto;width:18px;height:18px;margin-top:2px}.button.sh-delete{background:#fff0eb;border-color:#dfb7ae;color:#92382e}.button.sh-delete:hover{background:#ffe1d8;border-color:#be7361}.sh-result{margin-top:18px;padding:18px;border:1px solid #c8ddbf;border-radius:12px;background:#fff}.sh-result>strong{font-size:14px}.sh-card button:focus-visible,.sh-card summary:focus-visible,.sh-table-scroll:focus-visible{outline:none;border-color:#6b9860}.sh-index-details summary:focus-visible{text-decoration:underline;text-underline-offset:4px}@media(max-width:1200px){.sh-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sh-integrations{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.sh-toolbar{align-items:flex-start;flex-direction:column}.sh-card{padding:18px 14px}.sh-integrations{grid-template-columns:1fr}.sh-metric{padding:16px 10px}.sh-metric>strong{font-size:21px}.sh-preview{padding:14px;grid-template-columns:1fr}.sh-preview>.sh-note,.sh-preview>.sh-confirm,.sh-preview>.sh-actions{grid-column:1}.sh-actions{flex-direction:column}.sh-actions .button{width:100%}.sh-card h2{font-size:18px}}
.sh-integration>.integration-mark{display:grid;margin:0 auto 14px;width:52px;height:52px;place-items:center}.sh-integration>.integration-mark svg{width:28px;height:28px}

.sh-toolbar{row-gap:10px;margin-bottom:14px}@media(max-width:620px){.sh-toolbar>small:empty{display:none}}

.page-heading:has(> .sh-provider) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
}
.page-heading:has(> .sh-provider) > #company-filter-group { justify-self: end; }
.sh-provider {
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 0;
  gap: 5px;
  text-align: center;
}
.sh-provider-heading, .sh-provider-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 14px;
}
.sh-provider-heading h2 { margin: 0; font-size: 15px; line-height: 1.5; }
.page-heading .sh-provider p:not(.eyebrow), .sh-provider-meta { margin: 0; font-size: 13px; color: var(--muted); }
.sh-provider p { max-width: 100%; overflow-wrap: anywhere; }
.page-heading .sh-provider p.sh-provider-incidents { color: var(--ink); font-weight: 600; }
.sh-provider-meta a { color: var(--green); text-underline-offset: 3px; }
.sh-provider-meta a:hover { text-decoration-thickness: 2px; }
.sh-provider-option { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; color: var(--muted); font-size: 13px; cursor: pointer; }
.sh-provider-option input[type=checkbox] { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--green); }
.sh-provider-feedback { color: var(--muted); font-size: 12px; }
.sh-provider-feedback:empty { display: none; }
@media (max-width: 1200px) {
  .page-heading:has(> .sh-provider) { grid-template-columns: minmax(0, 1fr) auto; row-gap: 14px; }
  .page-heading > .sh-provider { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .page-heading:has(> .sh-provider) { grid-template-columns: minmax(0, 1fr); }
  .page-heading:has(> .sh-provider) > #company-filter-group { grid-row: 2; justify-self: start; }
  .page-heading:has(> #company-filter-group:not([hidden])) > .sh-provider { grid-row: 3; }
}
@media (max-width: 480px) {
  .sh-provider-meta { flex-direction: column; gap: 3px; }
}

/* The refresh control and title share a row even when the provider reports a long incident. */
.page-heading:has(> .sh-refresh) {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) max-content;
  grid-template-rows: auto 1fr;
  grid-template-areas: "title provider refresh" "description provider .";
  align-items: start;
  gap: 6px clamp(16px, 2vw, 30px);
}
.page-heading:has(> .sh-refresh) > :first-child { display: contents; }
.page-heading:has(> .sh-refresh) #panel-title { grid-area: title; align-self: center; }
.page-heading:has(> .sh-refresh) #page-description { grid-area: description; margin: 0; }
.page-heading:has(> .sh-refresh) > .sh-provider { grid-area: provider; }
.page-heading > .sh-refresh { grid-area: refresh; justify-self: end; align-self: center; }
.sh-refresh[aria-disabled="true"] { opacity: .65; cursor: default; }
@media (max-width: 1200px) {
  .page-heading:has(> .sh-refresh) {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-rows: auto;
    grid-template-areas: "title refresh" "description description" "provider provider";
  }
  .page-heading:has(> .sh-refresh) > .sh-provider { margin-top: 8px; }
}
@media (max-width: 430px) {
  .page-heading:has(> .sh-refresh) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "description" "refresh" "provider";
  }
  .page-heading > .sh-refresh { justify-self: start; margin-top: 4px; }
}
