.audit-report { margin: 0; color: var(--color-email-text); background: var(--color-email-canvas); font: 16px/1.55 Arial, Helvetica, sans-serif; }
.audit-document { max-width: 1040px; margin: 0 auto; padding: 40px 64px 80px; background: var(--color-email-surface); }
.audit-report h1, .audit-report h2, .audit-report h3 { line-height: 1.2; letter-spacing: -.025em; color: var(--color-email-text); }
.audit-report h1 { font-size: clamp(38px, 6vw, 64px); margin: 28px 0; }
.audit-report h2 { font-size: 30px; margin: 0 0 22px; }
.audit-report h3 { font-size: 19px; margin: 24px 0 12px; }
.audit-report h4 { font-size: 16px; line-height: 1.3; margin: 4px 0 8px; }
.audit-page { font-weight: 700; margin-top: -4px; }
.audit-report p { max-width: 76ch; }
.audit-report a { color: var(--color-email-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.audit-report a:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 4px; }
.audit-toolbar { position: sticky; top: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 14px 24px; justify-content: center; background: var(--color-email-surface); border-bottom: 1px solid var(--color-email-border); font-size: 14px; z-index: 1; }
.audit-cover { padding: 12px 0 36px; border-bottom: 5px solid var(--color-email-brand); }
.audit-wordmark { font-size: 24px; font-weight: 700; color: var(--color-email-brand); }
.audit-brand { font-size: 24px; margin-bottom: 4px; font-weight: 700; }
.audit-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 36px; margin: 36px 0; }
.audit-report dt { font-weight: 700; margin-top: 16px; }
.audit-report dd { margin: 4px 0 16px; }
.audit-scope dt, .audit-meta { color: var(--color-email-muted); font-size: 13px; font-weight: 400; }
.audit-section { padding-top: 46px; margin-top: 32px; border-top: 1px solid var(--color-email-border); scroll-margin-top: 80px; }
.audit-section:first-of-type { border-top: 0; }
.audit-lead { font-size: 20px; }
.audit-note { border-left: 3px solid var(--color-email-brand); padding: 12px 18px; background: var(--color-email-canvas); font-size: 14px; }
.audit-priorities { padding-left: 26px; }
.audit-priorities li { padding: 0 0 22px 12px; }
.audit-priorities li::marker { color: var(--color-email-brand); font-size: 22px; font-weight: 700; }
.audit-report table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 16px 0 24px; }
.audit-report caption { text-align: left; font-weight: 700; margin-bottom: 10px; }
.audit-report th, .audit-report td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--color-email-border); overflow-wrap: anywhere; }
.audit-report thead { background: var(--color-email-canvas); }
.audit-report thead th { color: var(--color-email-text); overflow-wrap: normal; }
.audit-pages { table-layout: fixed; }
.audit-pages th:first-child { width: 40%; }
.audit-pages th:nth-child(2) { width: 10%; }
.audit-pages th:nth-child(3) { width: 24%; }
.audit-pages th:nth-child(4), .audit-pages th:nth-child(5) { width: 13%; }
.audit-table-wrap { overflow-x: auto; }
.audit-matrix { table-layout: fixed; }
.audit-matrix th:first-child { width: 34%; }
.audit-meta { display: block; }
.audit-url { overflow-wrap: anywhere; }
.audit-observation, .audit-source { padding: 10px 0 20px; border-bottom: 1px solid var(--color-email-border); overflow-wrap: anywhere; }
.audit-checklist { list-style: none; padding: 0; }
.audit-checklist li { padding: 12px 0; border-bottom: 1px solid var(--color-email-border); }
.audit-checklist span[aria-hidden] { padding-right: 10px; font-size: 20px; }
.audit-action { margin: 38px 0; padding: 24px 26px; border: 1px solid var(--color-email-border); border-left: 5px solid var(--color-email-brand); scroll-margin-top: 80px; }
.audit-action-item { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--color-email-border); scroll-margin-top: 80px; }
.audit-action-item dt { margin-top: 10px; }
.audit-action-item dd { margin-bottom: 10px; }
.audit-search-block { scroll-margin-top: 80px; }
.audit-answer { white-space: pre-wrap; overflow-wrap: anywhere; margin: 18px 0; }
.audit-source { scroll-margin-top: 80px; }
.audit-source-facts { margin: 8px 0; font-size: 13px; }
.audit-source-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.audit-source-facts dt, .audit-source-facts dd { margin: 0; overflow-wrap: anywhere; }
.audit-source-excerpt { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.audit-source-rows { table-layout: fixed; }
.audit-source-rows th:first-child { width: 40%; }
@media (max-width: 640px) { .audit-document { padding: 24px 20px 48px; } .audit-scope { grid-template-columns: 1fr; gap: 0; } .audit-matrix, .audit-pages { min-width: 640px; } .audit-action { padding: 18px; } }
@media print {
  .audit-report { background: var(--color-email-surface); font-size: 10pt; line-height: 1.5; print-color-adjust: exact; }
  .audit-document { max-width: none; margin: 0; padding: 0; }
  .audit-toolbar { display: none; }
  .audit-cover { padding: 0 0 22px; }
  .audit-report h1 { font-size: 40pt; }
  .audit-report h2 { font-size: 23pt; break-after: avoid; }
  .audit-report h3 { font-size: 13pt; break-after: avoid; }
  .audit-section { break-before: auto; margin: 24px 0 0; padding-top: 18px; border-top: 0; }
  .audit-cover { break-after: page; }
  /* Only the appendix starts on a new page; the main sections are short enough to follow each other. */
  #sources { break-before: page; }
  .audit-compact #sources { break-before: auto; }
  .audit-report p, .audit-report li { orphans: 3; widows: 3; }
  .audit-report dt { break-after: avoid; }
  .audit-report dd { break-before: avoid; }
  .audit-report table { font-size: 8pt; }
  .audit-report thead { display: table-header-group; }
  .audit-report tr { break-inside: avoid; }
  .audit-report tbody tr:first-child { break-before: avoid; }
  .audit-table-wrap { overflow: visible; }
  .audit-matrix, .audit-pages { min-width: 0; }
  .audit-priorities li, .audit-note, .audit-checklist li, .audit-table-short, .audit-search-block { break-inside: avoid; }
  .audit-report h4 { font-size: 11pt; break-after: avoid; }
  /* Long task entries may flow across pages; only the number and page name stay with what follows. */
  .audit-action-item > .audit-meta:first-child { break-after: avoid; }
  #actions > h2 + p { break-inside: avoid; break-after: avoid; }
  .audit-action { padding: 16px 20px; }
  .audit-action header { break-inside: avoid; break-after: avoid; }
  .audit-action h3, .audit-source h3 { break-after: avoid; }
  /* break-inside on .audit-source alone still let Chromium end a page after a source's link.
     Only the link and its "Observed" line: a trailing note with break-after would also block
     the break between sources. */
  .audit-source h3 + p, .audit-source h3 + p + .audit-meta { break-after: avoid; }
  .audit-source { break-inside: avoid; }
  .audit-source-long { break-inside: auto; }
  .audit-source-facts, .audit-source-excerpt { font-size: 8pt; }
  .audit-meta { font-size: 8pt; }
  .audit-report a { text-decoration: underline; }
}
