/* QA page. Colours come from style.css tokens, so both themes follow. */
.qa-main { width: 100%; max-width: 1400px; margin: 0 auto; padding: 22px clamp(12px, 3vw, 36px) 30px; }
.qa-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.qa-head h1 { margin-bottom: 4px; font-size: clamp(22px, 3vw, 30px); }
.qa-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-count { min-width: 74px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; text-align: left; color: var(--ink); }
.qa-count strong { display: block; font-size: 20px; line-height: 1.1; }
.qa-count span { color: var(--muted); font-size: 11px; }
.qa-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.qa-filters label { display: grid; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 650; }
.qa-filters input[type="search"], .qa-filters select { min-width: 130px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; color: var(--ink); background: var(--paper); font-size: 12px; }
.qa-filters .qa-check { display: flex; align-items: center; gap: 6px; padding-bottom: 7px; }
.qa-shown { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.qa-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.qa-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.qa-table th { position: sticky; top: 0; background: var(--paper); text-align: left; font-size: 11px; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.qa-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.qa-table tr:last-child td { border-bottom: 0; }
.qa-test a { color: var(--ink); font-weight: 650; text-decoration: none; }
.qa-test a:hover { text-decoration: underline; }
.qa-id { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); margin-right: 6px; }
.qa-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.qa-flag { display: inline-block; margin: 3px 4px 0 0; padding: 1px 6px; border-radius: 6px; background: var(--amber-bg); color: var(--amber); font-size: 10px; font-weight: 700; }
.qa-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.qa-chip.pass { background: var(--mint); color: var(--green-dark); border-color: transparent; }
.qa-chip.fail { background: #fde8e6; color: var(--red); border-color: transparent; }
.qa-chip.blocked { background: var(--amber-bg); color: var(--amber); border-color: transparent; }
.qa-chip.na { background: #e8eef9; color: #34507f; border-color: transparent; }
.qa-stale { display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: 6px; background: var(--amber-bg); color: var(--amber); font-size: 10px; font-weight: 750; }
.qa-mono { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.qa-links a { display: inline-block; margin-right: 6px; color: var(--green-dark); }
.qa-retired td { opacity: .55; }
:root[data-theme="dark"] .qa-chip.fail { background: #3a1d1b; }
:root[data-theme="dark"] .qa-chip.na { background: #1f2a3d; color: #a9c1ea; }
@media (max-width: 700px) {
  .qa-filters input[type="search"], .qa-filters select { min-width: 0; width: 100%; }
  .qa-filters label { flex: 1 1 140px; }
}
#qa-source a { color: var(--green-dark); }
