.hero { align-items: start; }
.action.secondary { color: var(--link); background: transparent; border-color: var(--rule); }
.action.secondary:hover { border-color: var(--link); }
.category-index { padding: 0; list-style: none; }
.category-index li { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--rule); }
.category-index a { display: inline-flex; align-items: center; min-height: 44px; }
.ledger .tool-domain { margin-block: 1px 5px; }
.ledger tbody tr:hover { background: var(--wash); }
.hero-copy { padding-top: clamp(0px, 2vw, 22px); }
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lede { max-width: 47ch; }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.action { gap: 12px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--stamp-radius); background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 650; font-size: 13px; }
.action:hover { background: var(--link); border-color: var(--link); }
.action:active { color: var(--ink); background: var(--wash); }
.evidence-reader { padding: clamp(13px, 2vw, 24px); container: reader / inline-size; }
.reader-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 4px 12px; }
.reader-heading h2 { font-size: clamp(25px, 2.8vw, 36px); margin: 3px 0 6px; }
.reader-ref { color: var(--muted); font-size: 11px; }
.finding { border-top: 1px solid var(--rule); }
.finding:last-child { border-bottom: 1px solid var(--rule); }
.finding-details { min-width: 0; }
.finding-details summary { display: flex; align-items: center; gap: 9px; min-height: 44px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; }
.finding-details summary::-webkit-details-marker { display: none; }
.finding-details summary:hover, .finding-details[open] summary { background: var(--wash); }
.finding-details summary::after { content: ''; width: 7px; height: 7px; margin-inline: 5px 3px; flex: none; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.finding-details[open] summary::after { transform: rotate(225deg); }
.finding-count { margin-inline-start: auto; font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.finding-note { margin: 0 0 8px; padding: 9px 10px; border-left: 1px solid var(--rule); background: var(--wash); font-size: 12px; }
.finding-primary, .finding-related { display: flex; flex-wrap: wrap; gap: 0 14px; }
.finding a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
@container reader (min-width: 350px) {
  .finding { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px); column-gap: 14px; align-items: start; }
  .finding-primary { justify-content: flex-end; text-align: right; }
  .finding-related { grid-column: 1 / -1; }
}
#har-file-input { display: block; max-width: 100%; margin-top: 12px; min-height: 44px; }
#har-file-input::file-selector-button { min-height: 44px; cursor: pointer; }
#har-results dt { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .finding-details summary::after { transition: transform 180ms cubic-bezier(.22, 1, .36, 1); }
  .finding-details[open] .finding-note { animation: evidence-reveal 180ms cubic-bezier(.22, 1, .36, 1) both; }
  @keyframes evidence-reveal { from { opacity: .7; transform: translateY(-2px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 620px) {
  .masthead { padding-top: 10px; }
  .folio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead-inner { display: block; }
  .wordmark { display: inline-flex; min-height: 44px; padding-bottom: 0; }
  .nav { gap: 0 12px; }
  .nav a { font-size: 12px; }
}
@media print {
  html { background: white; }
  .wrap { width: 100%; }
  .nav, .action, .skip { display: none; }
  .panel, .finding, .ledger tr { break-inside: avoid; }
}
