/*
 * Final 29-page document-export overrides.
 * Loaded after the legacy bundle so these rules are the single authoritative
 * layout boundary for the fixed 29-page Chromium/Skia document.
 */
@media print {
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-child > .ugr-page-content,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-child .ugr-cover-layout,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-child .ugr-cover-main {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 264mm !important;
    min-height: 264mm !important;
    max-height: 264mm !important;
    margin: 0 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-child .ugr-cover-layout {
    display: block !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-child .ugr-cover-main {
    flex-direction: column !important;
    gap: 0 !important;
    display: flex !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-child .ugr-cover-hero {
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(60mm, 0.85fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 7mm !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 264mm !important;
    min-height: 264mm !important;
    padding: 10mm !important;
    display: grid !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-child .ugr-cover-copy {
    grid-template-rows: auto 48mm 72mm 60mm !important;
    align-content: center !important;
    gap: 6mm !important;
    min-width: 0 !important;
    display: grid !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-child .ugr-cover-copy :where(p, li, span) {
    font-size: 11.8pt !important;
    line-height: 1.38 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-child .ugr-cover-type-visual {
    align-self: stretch !important;
    min-width: 0 !important;
    height: 100% !important;
  }

  /* Four real PBL sections in a stable 2×2 document grid. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] .pbl-brief-body {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
    grid-template-rows: 116mm 70mm !important;
    align-content: stretch !important;
    gap: 5mm !important;
    height: 191mm !important;
    display: grid !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-brief-definition {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-brief-rationale {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-brief-action {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-brief-observe {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] .pbl-brief-body > * {
    box-sizing: border-box !important;
    align-content: start !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 4mm !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] :where(p, li, span, em) {
    font-size: 11.55pt !important;
    line-height: 1.34 !important;
  }

  /* Seven child actions flow as four wide rows, never as vertical text strips. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-child-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    gap: 2mm 3mm !important;
    display: grid !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-child-task-grid > * {
    grid-column: auto !important;
    grid-row: auto !important;
    align-content: center !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 2mm 3mm !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-child-task-card-page :where(p, li, span, em) {
    font-size: 11.15pt !important;
    line-height: 1.28 !important;
  }

  /* Dense thinking page: all four source blocks remain, using two efficient grids. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="thinking-training-card"] {
    box-sizing: border-box !important;
    grid-template-rows: 38mm 40mm 146mm 13mm !important;
    align-content: stretch !important;
    gap: 3mm !important;
    height: 246mm !important;
    min-height: 246mm !important;
    padding: 0 !important;
    display: grid !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="thinking-training-card"] > * {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"] {
    grid-template-rows: 24mm minmax(0, 1fr) 10mm !important;
    align-content: stretch !important;
    gap: 2mm !important;
    height: 146mm !important;
    padding: 2mm 0 !important;
    display: grid !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"] figure {
    grid-template-rows: 70mm 36mm !important;
    gap: 2mm !important;
    min-height: 0 !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"] figure > div:first-child {
    grid-template-columns: minmax(52mm, 0.72fr) minmax(0, 1.28fr) !important;
    min-height: 0 !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"] figure > div:first-child > ol {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-height: 0 !important;
    display: grid !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"] figure > div:nth-child(2) {
    min-height: 0 !important;
    padding: 1.5mm 0 !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"] figure > div:nth-child(2) > ol {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    min-height: 0 !important;
    margin-top: 1mm !important;
    display: grid !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="thinking-training-card"] :where(p, li, span, figcaption) {
    font-size: 11pt !important;
    line-height: 1.24 !important;
  }

  /* Compact horizontal chapter rails remove the old 35–50mm empty top band. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    :is(#ugr-chapter-parent-guide, #ugr-chapter-archive) > .ugr-page-top {
    box-sizing: border-box !important;
    flex: 0 0 14mm !important;
    width: 100% !important;
    height: 14mm !important;
    min-height: 14mm !important;
    max-height: 14mm !important;
    padding: 0 !important;
    display: flex !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    :is(#ugr-chapter-parent-guide, #ugr-chapter-archive) > .ugr-page-top .ugr-page-title {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 14mm !important;
    min-height: 14mm !important;
    max-height: 14mm !important;
    border-radius: 4mm !important;
    padding: 2mm 5mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-parent-guide > .ugr-page-content {
    grid-template-rows: 58mm minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 4mm !important;
    height: 246mm !important;
    min-height: 246mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive > .ugr-page-content {
    grid-template-rows: 48mm 58mm 62mm 44mm 18mm !important;
    gap: 4mm !important;
    height: 246mm !important;
    min-height: 246mm !important;
  }

  /* Annex theory pages share the 12pt body scale used by the other annexes. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    .ugr-annex-education .ugr-annex-theory-section p {
    color: #0a2f50 !important;
    font-size: 13.2pt !important;
    line-height: 1.42 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    .ugr-annex-education :is(
      .ugr-annex-theory-lead,
      .ugr-annex-theory-lens,
      .ugr-annex-theory-section h4
    ) {
    color: #0f766e !important;
    font-size: 11.1pt !important;
    line-height: 1.34 !important;
  }
}

/*
 * 07 / 29 — content-density adaptation.
 *
 * This page has four short evidence modules, two explanatory modules and one
 * boundary note. A single global "large type" value made the upper half feel
 * crowded while the legacy 246 mm editorial canvas left an empty strip at the
 * bottom of the A4 sheet. Keep each real module visible, but give every region
 * its own readable type scale and let the physical page occupy the full
 * document safe area.
 */
@media print {
  /* 06 / 29 — the adjacent assessment page uses the same density scale. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page {
    box-sizing: border-box !important;
    grid-template-rows:
      auto
      125mm
      66mm !important;
    align-content: space-between !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 277mm !important;
    min-height: 277mm !important;
    max-height: 277mm !important;
    padding: 6mm 0 !important;
    background: #fbf8f1 !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page .motivation-editorial-head h2 {
    max-width: 170mm !important;
    font-size: 23pt !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page .motivation-editorial-head p {
    font-size: 10.5pt !important;
    line-height: 1.42 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page .motivation-strength-visual {
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 52mm minmax(0, 1fr) !important;
    gap: 5mm !important;
    align-self: stretch !important;
    min-height: 125mm !important;
    height: 125mm !important;
    max-height: 125mm !important;
    padding: 6mm !important;
    overflow: visible !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page
    .motivation-strength-visual:has(.motivation-strength-chart > ol) {
    grid-template-rows: 76mm minmax(0, 1fr) !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page .motivation-strength-chart {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-content: space-between !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page
    .motivation-strength-chart:has(> ol) {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    align-content: stretch !important;
    gap: 2mm !important;
    padding: 4mm 5mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page
    .motivation-strength-chart:has(> ol) > ol {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 3mm !important;
    min-height: 0 !important;
    height: 100% !important;
    display: grid !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page
    .motivation-strength-chart:has(> ol) > ol > li {
    box-sizing: border-box !important;
    grid-template-rows: auto 4mm minmax(0, 1fr) !important;
    align-content: start !important;
    gap: 1mm !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 2.5mm 3mm !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page .motivation-activation-conditions {
    grid-column: 1 !important;
    grid-row: 2 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 4mm !important;
    align-content: stretch !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page
    .motivation-activation-conditions > article {
    align-content: center !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 5mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page
    :is(.motivation-strength-visual, .motivation-activation-conditions)
    :where(p, li, span, b, strong, em) {
    font-size: 10.2pt !important;
    line-height: 1.4 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page .motivation-parent-action {
    box-sizing: border-box !important;
    align-content: center !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 7mm 9mm !important;
    overflow: visible !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page .motivation-parent-action
    :where(p, span, b, strong, em) {
    font-size: 10.2pt !important;
    line-height: 1.38 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page
    :where(small, footer, footer *) {
    font-size: 9.5pt !important;
    line-height: 1.35 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page {
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows:
      auto
      minmax(min-content, 65mm)
      minmax(min-content, 88mm)
      minmax(min-content, 70mm) !important;
    align-content: stretch !important;
    gap: 4mm !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 289mm !important;
    min-height: 289mm !important;
    max-height: 289mm !important;
    padding: 6mm 0 !important;
    background: #fbf8f1 !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page .motivation-editorial-head {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page .motivation-cause-map {
    grid-column: 1 !important;
    grid-row: 2 !important;
    grid-template-columns:
      minmax(0, 0.92fr) 5mm
      minmax(0, 1.16fr) 5mm
      minmax(0, 1.16fr) 5mm
      minmax(0, 0.92fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 1.5mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page .motivation-barrier-reading {
    grid-column: 1 !important;
    grid-row: 3 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 5mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page .motivation-boundary-note {
    grid-column: 1 !important;
    grid-row: 4 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page .motivation-editorial-head {
    align-content: start !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page .motivation-editorial-head h2 {
    max-width: 168mm !important;
    font-size: 21pt !important;
    line-height: 1.14 !important;
    letter-spacing: -0.035em !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page .motivation-editorial-head p {
    font-size: 10.4pt !important;
    line-height: 1.42 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page
    :is(.motivation-cause-map, .motivation-barrier-reading) {
    align-self: stretch !important;
    align-items: stretch !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page
    :is(.motivation-cause-map, .motivation-barrier-reading) > article {
    box-sizing: border-box !important;
    align-content: center !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 5mm !important;
    overflow: visible !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page .motivation-cause-map > svg {
    align-self: center !important;
    justify-self: center !important;
    width: 4.5mm !important;
    min-width: 4.5mm !important;
    max-width: 4.5mm !important;
    height: 4.5mm !important;
    min-height: 4.5mm !important;
    max-height: 4.5mm !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page
    .motivation-barrier-reading > article {
    background: #fffdf8 !important;
    border: 1px solid rgb(10 122 116 / 22%) !important;
    border-left: 1.2mm solid #0a7a74 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page
    :is(.motivation-cause-map, .motivation-barrier-reading)
    :where(p, li, span, b, strong, em) {
    font-size: 10pt !important;
    line-height: 1.4 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page .motivation-boundary-note {
    box-sizing: border-box !important;
    align-content: center !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 6mm 8mm !important;
    overflow: visible !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page .motivation-boundary-note
    :where(p, span, b, strong, em) {
    font-size: 10.2pt !important;
    line-height: 1.38 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page
    :where(small, footer, footer *) {
    font-size: 9.5pt !important;
    line-height: 1.35 !important;
  }

  /* Longer report copy automatically steps down one or two paper type levels. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page[data-print-density="balanced"]
    .motivation-editorial-head h2 {
    font-size: 21.5pt !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page[data-print-density="balanced"]
    .motivation-editorial-head h2 {
    font-size: 19.5pt !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-editorial-page[data-print-density="balanced"]
    :where(p, li, span, b, strong, em) {
    font-size: 9.6pt !important;
    line-height: 1.36 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-strength-page[data-print-density="compact"]
    .motivation-editorial-head h2 {
    font-size: 20pt !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-barrier-page[data-print-density="compact"]
    .motivation-editorial-head h2 {
    font-size: 18.5pt !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-assessment .motivation-editorial-page[data-print-density="compact"]
    :where(p, li, span, b, strong, em) {
    font-size: 9.2pt !important;
    line-height: 1.32 !important;
  }
}

/* Final fit pass: keep every real block visible at the 11pt dense-page floor. */
@media print {
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-report-directory .ugr-directory-spotlight {
    align-self: end !important;
    min-height: 52mm !important;
    padding-bottom: 2mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] {
    grid-template-rows: 45mm 182mm !important;
    align-content: stretch !important;
    gap: 5mm !important;
    height: 232mm !important;
    min-height: 232mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] .pbl-brief-hero {
    min-height: 45mm !important;
    height: 45mm !important;
    padding: 5mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] .pbl-brief-body {
    grid-template-rows: 108mm 69mm !important;
    gap: 5mm !important;
    height: 182mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] .pbl-brief-body > * {
    padding: 3mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] :where(p, li, span, em) {
    font-size: 11pt !important;
    line-height: 1.26 !important;
  }

  /* Seven full-width rows make every day deterministic in paged media. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-child-task-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: repeat(7, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-child-task-grid > * {
    grid-template-columns: 24mm minmax(0, 1.2fr) minmax(0, 0.8fr) !important;
    align-items: center !important;
    gap: 3mm !important;
    padding: 1.2mm 2mm !important;
    display: grid !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-child-task-card-page :where(p, li, span, em) {
    font-size: 11pt !important;
    line-height: 1.22 !important;
  }

  /* Give the complete project diagram more height and remove web paddings. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="thinking-training-card"] {
    grid-template-rows: 34mm 34mm 157mm 12mm !important;
    gap: 3mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"] {
    grid-template-rows: 20mm minmax(0, 1fr) 8mm !important;
    height: 157mm !important;
    padding: 1mm 0 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"] > header {
    align-items: center !important;
    gap: 3mm !important;
    padding: 1mm 0 2mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"] figure {
    grid-template-rows: 84mm 41mm !important;
    gap: 2mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > :is(figcaption, ol > li) {
    padding: 2mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:nth-child(2) {
    padding: 1mm 0 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:nth-child(2) > ol {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    grid-auto-flow: column !important;
    gap: 0 !important;
    height: 100% !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:nth-child(2) > ol > li {
    padding: 0.8mm 1mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:nth-child(2) > ol > li,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:nth-child(2) > ol > li * {
    font-size: 9.5pt !important;
    line-height: 1.05 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="thinking-training-card"] :where(p, li, span, figcaption) {
    font-size: 11pt !important;
    line-height: 1.18 !important;
  }

  /* The rail owns the teal background; its title stays in normal flow. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    :is(#ugr-chapter-parent-guide, #ugr-chapter-archive) > .ugr-page-top {
    background: #0f766e !important;
    border-radius: 0 0 4mm 4mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    :is(#ugr-chapter-parent-guide, #ugr-chapter-archive) > .ugr-page-top .ugr-page-title {
    color: #fffdf8 !important;
    -webkit-text-fill-color: #fffdf8 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: flex !important;
  }
}

@media print {
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-report-directory .ugr-directory-spotlight {
    align-items: stretch !important;
    min-height: 65mm !important;
    height: 65mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-report-directory .ugr-directory-spotlight > * {
    align-content: center !important;
    height: 100% !important;
    padding: 5mm !important;
    display: grid !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-report-directory .ugr-directory-spotlight :where(p, span, b, strong) {
    font-size: 12.2pt !important;
    line-height: 1.36 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] {
    grid-template-rows: 45mm 220mm !important;
    height: 270mm !important;
    min-height: 270mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] .pbl-brief-body {
    grid-template-rows: 132mm 83mm !important;
    height: 220mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-child-task-grid > * {
    break-inside: auto !important;
    page-break-inside: auto !important;
    align-items: center !important;
    gap: 3mm !important;
    min-height: 0 !important;
    padding: 1.1mm 2mm !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    display: flex !important;
    overflow: visible !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-child-task-grid > * > :first-child {
    flex: 0 0 24mm !important;
    min-width: 24mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-child-task-grid > * > :nth-child(2) {
    flex: 1.2 1 0 !important;
    min-width: 0 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .pbl-child-task-grid > * > :nth-child(3) {
    flex: 0.8 1 0 !important;
    min-width: 0 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child {
    grid-template-columns: 48mm minmax(0, 1fr) !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > ol {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    :is(#ugr-chapter-parent-guide, #ugr-chapter-archive) > .ugr-page-content::before {
    content: none !important;
    box-sizing: border-box !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
  }
}

/*
 * Final content-fit correction.
 * These rules use the report's real copy to fill the page. They deliberately
 * avoid oversized empty cards and stay below Chromium's page-break threshold.
 */
@media print {
  /* Auxiliary copy remains readable at normal A4 viewing distance. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    .ugr-page:not(#ugr-report-front-cover):not(#ugr-report-back-cover)
    :where(small, dt, figcaption, label) {
    font-size: 9.5pt !important;
    line-height: 1.3 !important;
  }

  /*
   * Page 11 — a 250 mm content block is the largest stable size that Chromium
   * keeps on the same sheet. The four source sections remain in a 2 × 2 grid.
   */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] {
    grid-template-rows: 32mm 223mm !important;
    align-content: stretch !important;
    gap: 5mm !important;
    height: 260mm !important;
    min-height: 260mm !important;
    max-height: 260mm !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] .pbl-brief-hero {
    box-sizing: border-box !important;
    align-content: center !important;
    height: 32mm !important;
    min-height: 32mm !important;
    max-height: 32mm !important;
    padding: 2mm 5mm !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] .pbl-brief-body {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
    grid-template-rows: 119mm 99mm !important;
    align-content: stretch !important;
    gap: 5mm !important;
    height: 223mm !important;
    min-height: 223mm !important;
    max-height: 223mm !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] .pbl-brief-body > * {
    box-sizing: border-box !important;
    align-content: start !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 2.5mm 3mm !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"] :where(p, li, span, em, b, strong) {
    font-size: 11pt !important;
    line-height: 1.1 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"]
    .pbl-brief-rationale-grid :where(p, span, em) {
    font-size: 9.2pt !important;
    line-height: 1.14 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"]
    .pbl-brief-rationale-grid :where(b, strong) {
    font-size: 9.6pt !important;
    line-height: 1.12 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"]
    .pbl-brief-rationale-grid,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-project-overview-page"]
    .pbl-brief-rationale-grid * {
    font-size: 9.2pt !important;
    line-height: 1.14 !important;
  }

  /*
   * Page 13 — all six project blocks and all seven day nodes must be visible.
   * The extra height is assigned to those real lists, not to decorative space.
   */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="thinking-training-card"] {
    grid-template-rows: 28mm 44mm 198mm 10mm !important;
    align-content: stretch !important;
    gap: 3mm !important;
    height: 289mm !important;
    min-height: 289mm !important;
    max-height: 289mm !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"] {
    grid-template-rows: 20mm 167mm 9mm !important;
    gap: 1mm !important;
    height: 198mm !important;
    min-height: 198mm !important;
    max-height: 198mm !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"] figure {
    grid-template-rows: 140mm 25mm !important;
    align-content: stretch !important;
    gap: 2mm !important;
    height: 167mm !important;
    min-height: 167mm !important;
    max-height: 167mm !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child {
    grid-template-columns: 52mm minmax(0, 1fr) !important;
    height: 140mm !important;
    min-height: 140mm !important;
    max-height: 140mm !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > ol {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: 88mm 52mm !important;
    grid-auto-flow: row !important;
    gap: 0 !important;
    width: 100% !important;
    height: 140mm !important;
    min-height: 140mm !important;
    max-height: 140mm !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > ol > li {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 1mm 1.5mm !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > ol > li :where(p, span) {
    line-height: 1.08 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > figcaption :where(p, span) {
    line-height: 1.08 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure :where(p, li, span, figcaption) {
    font-size: 9.2pt !important;
    line-height: 1.15 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"] figure,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"] figure * {
    font-size: 9.5pt !important;
    line-height: 1.15 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > figcaption > :last-child,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > ol > li > :nth-child(2) {
    width: 100% !important;
    zoom: 1 !important;
  }

  /* Page 14 — two real two-card communication grids occupy the lower page. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-parent-guide > .ugr-page-content {
    grid-template-rows: 58mm 102mm 107mm !important;
    align-content: stretch !important;
    gap: 4mm !important;
    height: 275mm !important;
    min-height: 275mm !important;
    max-height: 275mm !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-parent-guide :is(.ugr-parent-secret-hero, .ugr-parent-communication-panel) {
    box-sizing: border-box !important;
    align-content: stretch !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 4mm 5mm !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-parent-guide :is(.ugr-parent-say-grid, .ugr-parent-dont-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    align-items: start !important;
    align-content: start !important;
    gap: 4mm !important;
    min-height: 0 !important;
    height: auto !important;
    display: grid !important;
    width: 114.95% !important;
    zoom: 0.87 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-parent-guide :is(.ugr-parent-say-grid, .ugr-parent-dont-grid) > * {
    box-sizing: border-box !important;
    align-content: start !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 3mm 4mm !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-parent-guide .ugr-parent-secret-hero :where(p, li, span, em) {
    font-size: 11.5pt !important;
    line-height: 1.14 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-parent-guide .ugr-parent-communication-panel :where(p, li, span, em) {
    font-size: 11.5pt !important;
    line-height: 1.15 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-parent-guide .ugr-parent-communication-panel,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-parent-guide .ugr-parent-communication-panel * {
    font-size: 11pt !important;
    line-height: 1.15 !important;
  }

  /*
   * Page 16 — the formerly invisible route strip contains substantial real
   * 7/30/365-day copy. Give that copy the largest row and keep the boundary
   * note readable, eliminating the false blank lower half.
   */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive > .ugr-page-content {
    grid-template-rows: 29mm 67mm 52mm 113mm 5mm !important;
    align-content: stretch !important;
    gap: 3mm !important;
    height: 278mm !important;
    min-height: 278mm !important;
    max-height: 278mm !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-compact-hero,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-compact-hero * {
    font-size: 11.5pt !important;
    line-height: 1.1 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-day7-contract {
    grid-template-rows: 18mm 44mm !important;
    align-content: stretch !important;
    gap: 1mm !important;
    padding: 2mm 4mm !important;
    display: grid !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-day7-contract-head,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-day7-contract-grid {
    box-sizing: border-box !important;
    align-content: stretch !important;
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-day7-contract,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-day7-contract * {
    font-size: 11.5pt !important;
    line-height: 1.18 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive :is(
      .ugr-archive-compact-hero,
      .ugr-day7-contract,
      .ugr-archive-compact-grid,
      .ugr-archive-route-strip,
      .ugr-boundary-note
    ) {
    box-sizing: border-box !important;
    align-content: center !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 3mm 5mm !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-compact-hero {
    padding: 2mm 5mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-day7-contract {
    padding: 2mm 4mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-boundary-note {
    padding: 0 5mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-strip {
    grid-template-rows: 6mm minmax(0, 1fr) !important;
    align-content: stretch !important;
    gap: 2mm !important;
    padding: 3mm 4mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-lead {
    align-items: center !important;
    gap: 3mm !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: flex !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-lead,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-lead * {
    font-size: 9.5pt !important;
    line-height: 1 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 2mm !important;
    min-height: 0 !important;
    height: 100% !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-card {
    grid-template-rows: 22mm minmax(0, 1fr) !important;
    align-content: stretch !important;
    gap: 0.5mm !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-title,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-title * {
    font-size: 9.5pt !important;
    line-height: 1 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-steps {
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    align-content: stretch !important;
    gap: 0.5mm !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    display: grid !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-steps > * {
    box-sizing: border-box !important;
    align-items: center !important;
    gap: 1mm !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0.5mm 1mm !important;
    display: flex !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-steps > * > :first-child {
    flex: 0 0 6mm !important;
    min-width: 6mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-steps > * > :last-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    align-content: start !important;
    justify-content: start !important;
    gap: 0 !important;
    height: auto !important;
    display: grid !important;
    overflow: hidden !important;
    width: 100% !important;
    zoom: 1 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-steps > * :where(p, span, b, strong) {
    color: #0a2f50 !important;
    -webkit-text-fill-color: #0a2f50 !important;
    font-size: 9.2pt !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-steps,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-archive-route-steps * {
    font-size: 9.5pt !important;
    line-height: 1 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    .ugr-annex-page .ugr-annex-footer,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    .ugr-annex-page .ugr-annex-footer * {
    font-size: 10pt !important;
    line-height: 1.2 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    .ugr-annex-page .ugr-annex-eyebrow {
    font-size: 10pt !important;
    line-height: 1.3 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-growth .ugr-growth-pdf-resource-page.ugr-has-annex-overview {
    box-sizing: border-box !important;
    grid-template-rows: 38mm minmax(0, 1fr) !important;
    gap: 5mm !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 289mm !important;
    min-height: 289mm !important;
    max-height: 289mm !important;
    padding: 5mm 7mm 7mm !important;
    background: var(--ugr-paper) !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-growth .ugr-growth-pdf-resource-page.ugr-has-annex-overview
    .ugr-main-resource-overview,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-growth .ugr-growth-pdf-resource-page.ugr-has-annex-overview
    .ugr-main-resource-card {
    min-height: 0 !important;
    height: 100% !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-growth .ugr-recommendation-drawer:nth-child(1) > summary::after,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-growth .ugr-recommendation-drawer:nth-child(2) > summary::after,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-growth .ugr-recommendation-drawer:nth-child(3) > summary::after {
    content: "完整推荐见后续资源页" !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-boundary-note,
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive .ugr-boundary-note * {
    font-size: 9.5pt !important;
    line-height: 1.2 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-archive :where(p, li, span, small) {
    font-size: 11pt !important;
    line-height: 1.16 !important;
  }
}
