/* Keep printed reports independent of viewport breakpoints and grid pagination. */
@page { size: A4; margin: 14mm; }
@media print {
  html, body { width: auto!important; min-width: 0!important; min-height: 0!important; height: auto!important; margin: 0!important; padding: 0!important; background: #fff!important; color: #20382b; }
  #view.screening-view, #view.account-view { display: block!important; width: auto!important; max-width: none!important; min-height: 0!important; margin: 0!important; padding: 0!important; }
  #web-sidebar, #tabbar, #overlay, #toast, .sc-top, .sc-actions, .sc-home-entry, #ai-print { display: none!important; }
  .sc-report-heading { margin: 0 0 12pt; gap: 12pt; break-inside: avoid; }
  .sc-report-heading h1 { font-size: 23pt; margin: 5pt 0; }
  .sc-report-heading p { font-size: 10pt; }
  .sc-report-heading .sc-check { width: 34pt; height: 34pt; font-size: 20pt; }
  .sc-report-heading .eyebrow { font-size: 8pt; letter-spacing: 1pt; }
  .sc-rule-note { font-size: 9pt; line-height: 1.5; padding: 8pt 10pt; margin: 8pt 0; break-inside: avoid; }
  .sc-report-grid { display: block; margin: 12pt 0 0; font-size: 0; }
  .sc-report-card { display: inline-block; box-sizing: border-box; width: 48.5%; margin: 0 0 10pt; padding: 12pt; vertical-align: top; break-inside: avoid-page; page-break-inside: avoid; border: 1px solid #c8d4cb; border-radius: 10pt; box-shadow: none; font-size: 10pt; }
  .sc-report-card:nth-child(odd) { margin-right: 3%; }
  .sc-report-card .eyebrow { display: block; font-size: 8pt; line-height: 1.4; letter-spacing: .5pt; overflow-wrap: anywhere; }
  .sc-report-card .sc-score { font-size: 29pt; line-height: 1.15; letter-spacing: -1pt; margin-top: 9pt; }
  .sc-report-card .sc-score small { font-size: 12pt; }
  .sc-report-card > p { font-size: 9pt; margin: 2pt 0 10pt; }
  .sc-report-card dl { display: block; margin: 0; }
  .sc-report-card dl > div { display: flex; align-items: baseline; gap: 8pt; font-size: 9pt; line-height: 1.5; margin: 4pt 0; }
  .sc-report-card dt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .sc-report-card dd { flex: 0 0 auto; text-align: right; white-space: nowrap; }
  .sc-report-card details { margin-top: 8pt; }
  .sc-report-card details:not([open]) { display: none; }
  .sc-report-card summary { padding-top: 6pt; font-size: 8pt; }
  .sc-report-card .sc-formula, .sc-report-card li { font-size: 8pt; line-height: 1.45; overflow-wrap: anywhere; }
  .sc-footnote { font-size: 8pt!important; line-height: 1.5; margin: 4pt 0; }
  #view.ai-report-view > :not(#ai-output) { display: none!important; }
  #ai-output .card { padding: 0; border: 0; border-radius: 0; box-shadow: none; gap: 9pt; }
  #ai-output h2 { font-size: 21pt; margin: 8pt 0; }
  #ai-output h3 { font-size: 12pt; margin: 10pt 0 5pt; break-after: avoid; }
  #ai-output p, #ai-output li { font-size: 10pt; line-height: 1.6; }
  #ai-output li { margin-bottom: 6pt; break-inside: avoid; }
  #ai-output .ai-note { font-size: 8pt; }
  #ai-output .ai-plan-grid { display: block; }
  #ai-output .ai-plan-grid article { break-inside: avoid; margin: 12pt 0; }
}
