/* The hosted collector pages (#collector, hosted-collector.js): the app's own tokens (app.css), so light and dark follow the
   theme. Pass and fail are words, never color alone; everything reflows to 320 px. */
.hc-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 860px; }
.hc-page > * { min-width: 0; }
.hc-page h2 { font-size: 18px; margin: 0 0 8px; }
.hc-kinds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 860px; }
a.hc-kind { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; }
.hc-kind-health { font-weight: 700; }
.hc-kind-health[data-state="failed"] { color: var(--warn); }
.hc-kind-cause:empty { display: none; }
.hc-front-strip { max-width: 860px; margin-bottom: 14px; }
.hc-pill[data-health="stale"] { background: var(--st-blocked); color: var(--on-blocked); border-color: transparent; }
a.hc-kind:hover { border-color: var(--accent); }
.hc-facts { display: grid; gap: 12px; margin: 0; }
.hc-fact dt { font-size: 12px; color: var(--muted); }
.hc-fact dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.hc-fact code { overflow-wrap: anywhere; min-width: 0; }
.hc-copy { padding: 4px 10px; font-size: 13px; }
.hc-instructions h3, .hc-instructions h4, .hc-instructions h5 { margin: 14px 0 6px; font-size: 15px; }
.hc-instructions p, .hc-instructions li { overflow-wrap: anywhere; }
.hc-instructions pre { max-width: 100%; box-sizing: border-box; overflow-x: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.hc-scroll { overflow-x: auto; }
.hc-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hc-scroll table { border-collapse: collapse; }
.hc-scroll th, .hc-scroll td { text-align: left; padding: 4px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hc-ph { border: 1px dashed var(--line); padding: 0 4px; }
.hc-copyable { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 100%; }
div.hc-copyable { display: grid; justify-items: start; }
.hc-form { display: grid; gap: 12px; }
.hc-field { display: grid; gap: 4px; min-width: 0; }
.hc-field label { font-size: 13px; color: var(--muted); }
.hc-field input[type="text"], .hc-field input[type="password"], .hc-field input[type="number"], .hc-field select, .hc-field textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); min-width: 0; width: 100%; box-sizing: border-box; }
.hc-field.hc-check { display: flex; gap: 8px; align-items: center; }
.hc-group { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; min-width: 0; }
.hc-group legend { font-weight: 600; padding: 0 6px; }
.hc-actions { flex-wrap: wrap; gap: 10px; align-items: center; }
.hc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hc-items li { display: grid; gap: 6px; }
.hc-sh-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hc-sh-items li { display: grid; gap: 6px; }
.hc-pass, .hc-fail { margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 6px; overflow-wrap: anywhere; }
.hc-pass { border-left-color: var(--tone-green); }
.hc-fail { border-left-color: var(--st-blocked); }
.hc-tick { color: var(--tone-green); font-weight: 600; }
.hc-ticked { border-left: 3px solid var(--tone-green); padding-left: 8px; }
.hc-proved { margin: 6px 0 0; }
.hc-details { margin: 6px 0 0; padding-left: 20px; overflow-wrap: anywhere; }

.hc-clusters table { width: 100%; border-collapse: collapse; }
.hc-clusters th, .hc-clusters td { text-align: left; vertical-align: top; padding: .4rem .6rem; border-bottom: 1px solid var(--line, rgba(128, 128, 128, .3)); }
.hc-clusters tr[data-state="left_out"] { opacity: .65; }
.hc-clusters .hc-switch { width: 1.25rem; height: 1.25rem; }
.hc-github { display: grid; gap: 18px; min-width: 0; }
.hc-rules p { margin: 8px 0 0; }
.hc-banner:empty { display: none; }

/* The account tables of an AWS check (P1-AWO-04): they shrink to the screen, long values wrap, and past that they scroll inside. */
.hc-result, .hc-form > *, .hc-accounts { min-width: 0; max-width: 100%; }
.hc-accounts { margin-top: 8px; }
.hc-accounts table { width: 100%; }
.hc-accounts th, .hc-accounts td { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 600px) {
  .hc-accounts th, .hc-accounts td { padding: 4px 6px; font-size: 13px; }
}
.hc-steps li { overflow-wrap: anywhere; margin: 4px 0; }
.hc-downloads .hc-field { margin: 12px 0; }

.hc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; max-width: 860px; }
.hc-tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted, inherit); cursor: pointer; }
.hc-tab[aria-selected="true"] { color: inherit; border-bottom-color: currentColor; }
.hc-tab:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; border-radius: 4px; }
.hc-tabpanel[hidden] { display: none; }
.hc-guide { display: grid; gap: 12px; }
.hc-guide h3, .hc-guide h4 { margin: 14px 0 6px; font-size: 15px; }
.hc-guide p, .hc-guide li { overflow-wrap: anywhere; }
.hc-guide pre { max-width: 100%; box-sizing: border-box; overflow-x: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.hc-values { display: grid; gap: 12px; margin: 12px 0; }
.hc-part > summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.hc-part[open] > summary { margin-bottom: 8px; }
.hc-contents { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; margin: 0; }
.hc-contents-wrap p { margin: 0 0 4px; }
.hc-filter { margin: 8px 0; }
.hc-filter input { max-width: 360px; }
tr[hidden] { display: none; }
.hc-guide-cols { display: grid; gap: 12px; align-items: start; }
.hc-guide-side { display: grid; gap: 12px; }
@media (min-width: 1100px) { .hc-guide-cols:has(.hc-guide-side) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .hc-tabpanel:has(.hc-guide-side) { max-width: 1280px; } }
.hc-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 9px; border: 1px solid currentColor; }
.hc-pill[data-health="healthy"] { background: var(--st-done); color: var(--on-done); border-color: transparent; }
.hc-pill[data-health="partial"] { background: var(--st-in_progress); color: var(--on-in_progress); border-color: transparent; }
.hc-pill[data-health="failed"] { background: var(--st-blocked); color: var(--on-blocked); border-color: transparent; }
.hc-pill[data-health="not run yet"], .hc-pill[data-health="turned off"] { background: var(--st-not_started); color: var(--on-not_started); border-color: transparent; }
.hc-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.hc-box { border: 1px solid var(--line, #8883); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; }
.hc-strip { display: grid; gap: 8px; margin-bottom: 14px; }

/* The Runs tab (P1-CX-09) */
.hc-table-wrap { overflow-x: auto; }
.hc-runs { width: 100%; border-collapse: collapse; }
.hc-runs th, .hc-runs td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hc-run-detail td { padding-left: 24px; }
