/* 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; }
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-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-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; }
