/*
 * Document-export integrity corrections.
 * Keeps the existing 29-page contract and report copy, while reserving a
 * true footer position and preventing the three dense source pages from
 * clipping or overlapping.
 */
@media print {
  /* Folios that live on shorter internal page hosts are extended into the
   * physical A4 footer margin. All other folios use the default 5 mm inset. */
  :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 > .ugr-unified-folio {
    --ugr-folio-shift-y: 7mm;
  }

  :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 > .ugr-unified-folio {
    --ugr-folio-shift-y: 9mm;
  }

  :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 {
    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-growth .ugr-growth-pdf-resource-page > .ugr-unified-folio {
    --ugr-folio-shift-y: 5mm;
  }

  :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 {
    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 [data-testid="project-thinking-model"] > .ugr-unified-folio {
    --ugr-folio-shift-y: 13mm;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .is-project-manual > .ugr-unified-folio {
    --ugr-folio-shift-y: 15mm;
  }

  /* Page 03: keep the five-section index and the three real reading tips in
   * separate A4 tracks. The web card's badge/content columns are reset here,
   * otherwise each tip is squeezed into a vertical text strip. */
  :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-page {
    box-sizing: border-box !important;
    grid-template-rows: 58mm 124mm 64mm !important;
    align-content: start !important;
    gap: 7mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    padding: 16mm 16mm 14mm !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-report-directory .ugr-directory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    align-self: stretch !important;
    align-content: stretch !important;
    gap: 4mm !important;
    min-height: 124mm !important;
    height: 124mm !important;
    max-height: 124mm !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 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-self: stretch !important;
    align-items: stretch !important;
    gap: 5mm !important;
    min-height: 64mm !important;
    height: 64mm !important;
    max-height: 64mm !important;
    margin: 0 !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-report-directory .ugr-directory-spotlight > article {
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    align-content: start !important;
    align-items: start !important;
    gap: 2mm !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 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-report-directory .ugr-directory-spotlight > article > span {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: start !important;
    align-self: start !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 1.5mm 3mm !important;
    font-size: 9.8pt !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-report-directory .ugr-directory-spotlight > article > b {
    grid-column: 1 !important;
    margin: 0 !important;
    font-size: 11.8pt !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-report-directory .ugr-directory-spotlight > article > p {
    grid-column: 1 !important;
    margin: 0 !important;
    font-size: 10.8pt !important;
    line-height: 1.42 !important;
  }

  /* Page 09: use the available A4 height and restore readable, complete cards. */
  :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-main-page {
    box-sizing: border-box !important;
    grid-template-rows: 76mm 45mm minmax(0, 1fr) 18mm !important;
    align-content: stretch !important;
    gap: 4mm !important;
    height: 282mm !important;
    min-height: 282mm !important;
    max-height: 282mm !important;
    padding-bottom: 8mm !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-main-page :where(p, li, span) {
    font-size: 10.8pt !important;
    line-height: 1.27 !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-main-grid {
    align-items: stretch !important;
    min-height: 0 !important;
    height: 100% !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-main-card {
    box-sizing: border-box !important;
    align-content: start !important;
    gap: 2mm !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 3mm !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-main-card section {
    padding: 2.5mm !important;
  }

  /* Page 11: keep the verified source layout intact. Its host is shorter than
   * physical A4, so only extend the folio into the reserved footer margin. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .is-project-rationale {
    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 .is-project-rationale > .ugr-unified-folio {
    --ugr-folio-shift-y: 24mm;
  }

  /* Page 12: seven real task rows receive one adaptive row each. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root .ugr-root[data-report-layout="legacy16"]
    #ugr-chapter-action .is-project-manual {
    box-sizing: border-box !important;
    grid-template-rows: 98mm 178mm !important;
    align-content: stretch !important;
    gap: 4mm !important;
    height: 280mm !important;
    min-height: 280mm !important;
    max-height: 280mm !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 [data-testid="pbl-seven-day-route-page"] {
    box-sizing: border-box !important;
    height: 98mm !important;
    min-height: 98mm !important;
    max-height: 98mm !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 {
    box-sizing: border-box !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    align-content: stretch !important;
    gap: 2mm !important;
    height: 178mm !important;
    min-height: 178mm !important;
    max-height: 178mm !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-grid {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    min-height: 0 !important;
    height: 100% !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-action .pbl-child-task-grid > * {
    box-sizing: border-box !important;
    grid-template-columns: 25mm minmax(0, 1.2fr) minmax(0, 0.8fr) !important;
    grid-column: auto !important;
    grid-row: auto !important;
    flex: 1 1 0 !important;
    align-items: center !important;
    align-content: center !important;
    gap: 3mm !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 1mm 2mm !important;
    display: grid !important;
    overflow: visible !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !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(4),
  :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(4) > *,
  :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(4) > * > * {
    color: #0a2f50 !important;
    -webkit-text-fill-color: #0a2f50 !important;
    visibility: visible !important;
    opacity: 1 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    position: relative !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) {
    margin: 0 !important;
    font-size: 9.8pt !important;
    line-height: 1.16 !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-tip {
    margin: 0 !important;
    padding-top: 1mm !important;
    font-size: 9.5pt !important;
    line-height: 1.15 !important;
  }

  /* Page 13: repair the four real tracks and keep the full map on one sheet. */
  :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="project-thinking-model"],
  :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;
    break-before: page !important;
    page-break-before: always !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    grid-template-rows: 30mm 48mm 188mm 10mm !important;
    align-content: stretch !important;
    gap: 2mm !important;
    height: 282mm !important;
    min-height: 282mm !important;
    max-height: 282mm !important;
    padding: 0 !important;
    display: grid !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 [data-testid="pbl-task-mind-map-block"] {
    box-sizing: border-box !important;
    grid-template-rows: 18mm 156mm 12mm !important;
    align-content: stretch !important;
    gap: 1mm !important;
    height: 188mm !important;
    min-height: 188mm !important;
    max-height: 188mm !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-action [data-testid="pbl-task-mind-map-block"] figure {
    grid-template-rows: 130mm 24mm !important;
    align-content: stretch !important;
    gap: 2mm !important;
    height: 156mm !important;
    min-height: 156mm !important;
    max-height: 156mm !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: 130mm !important;
    min-height: 130mm !important;
    max-height: 130mm !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: 80mm 50mm !important;
    grid-auto-flow: row !important;
    gap: 0 !important;
    height: 130mm !important;
    min-height: 130mm !important;
    max-height: 130mm !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(7, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    grid-auto-flow: column !important;
    gap: 0 !important;
    height: 100% !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="thinking-training-card"] :where(p, li, span, figcaption) {
    font-size: 9.5pt !important;
    line-height: 1.14 !important;
  }
}

@media print {
  /* Page 13: keep the proven web information hierarchy in the A4 export.
   * The previous print-only 3-column override made the copy unnaturally
   * narrow and left an accidental empty quadrant. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child {
    grid-template-columns: 52mm minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    height: 130mm !important;
    min-height: 130mm !important;
    max-height: 130mm !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > figcaption {
    box-sizing: border-box !important;
    align-self: stretch !important;
    height: 130mm !important;
    min-height: 130mm !important;
    max-height: 130mm !important;
    padding: 5mm 4mm !important;
    border-right: 0.35mm solid #d9e1dd !important;
    border-bottom: 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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > figcaption > p:first-child {
    margin: 0 !important;
    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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > figcaption > h4 {
    margin: 4mm 0 0 !important;
    font-size: 15pt !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > figcaption > p:last-child {
    margin: 4mm 0 0 !important;
    padding-left: 3mm !important;
    font-size: 9.5pt !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > ol {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 64mm 32mm 34mm !important;
    grid-auto-flow: row !important;
    gap: 0 !important;
    height: 130mm !important;
    min-height: 130mm !important;
    max-height: 130mm !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > ol > li {
    box-sizing: border-box !important;
    grid-template-columns: 5mm minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-content: start !important;
    align-items: start !important;
    gap: 1.5mm !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 2.5mm !important;
    border-right: 0.35mm solid #e2e7e4 !important;
    border-bottom: 0.35mm solid #e2e7e4 !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > ol > li:nth-child(even) {
    border-right: 0 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > ol > li:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > ol > li > span {
    font-size: 9.2pt !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > ol > li > div > p:first-child {
    margin: 0 !important;
    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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > ol > li > div > p:last-child {
    margin: 1.5mm 0 0 !important;
    font-size: 9.5pt !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:first-child > ol > li:first-child > div > p:last-child {
    font-size: 9.2pt !important;
    line-height: 1.24 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:nth-child(2) {
    box-sizing: border-box !important;
    height: 24mm !important;
    min-height: 24mm !important;
    max-height: 24mm !important;
    padding: 2mm 0 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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [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: 18mm !important;
    min-height: 18mm !important;
    max-height: 18mm !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:nth-child(2) > ol > li {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 18mm !important;
    padding: 2mm 2mm 1mm !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:nth-child(2) > ol > li > p:first-of-type {
    margin: 0 !important;
    font-size: 8pt !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:nth-child(2) > ol > li > h5 {
    margin: 1mm 0 0 !important;
    font-size: 8.8pt !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-action
    [data-testid="project-thinking-model"]
    [data-testid="pbl-task-mind-map-block"]
    figure > div:nth-child(2) > ol > li > p:last-child {
    display: none !important;
  }
}

@media print {
  /* Page 05: restore the balanced portrait spread. The legacy print bundle
   * capped the figure at 91 mm while stretching the copy into narrow cards,
   * leaving the right/lower half of the A4 sheet visually empty. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-hero {
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(76mm, 0.88fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-content: stretch !important;
    align-items: stretch !important;
    gap: 7mm !important;
    width: 100% !important;
    height: 264mm !important;
    min-height: 264mm !important;
    max-height: 264mm !important;
    padding: 8mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-copy {
    box-sizing: border-box !important;
    grid-template-rows: auto 52mm 60mm 60mm !important;
    align-content: center !important;
    align-items: stretch !important;
    align-self: stretch !important;
    gap: 5mm !important;
    height: 100% !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-copy > h2 {
    white-space: nowrap !important;
    margin: 0 !important;
    font-size: 19.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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-copy > h2 .ugr-title-keep {
    white-space: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    display: inline !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-type {
    box-sizing: border-box !important;
    color: #f8fbff !important;
    background:
      radial-gradient(circle at 96% 10%, rgba(240, 201, 120, 0.16), transparent 30%),
      linear-gradient(135deg, #071a2d 0%, #102f3d 62%, #0b4f47 100%) !important;
    border: 1px solid rgba(255, 253, 247, 0.28) !important;
    border-radius: 4mm !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    align-content: center !important;
    gap: 1.8mm !important;
    width: 100% !important;
    height: 52mm !important;
    margin: 0 !important;
    padding: 4mm 5mm !important;
    display: grid !important;
    box-shadow: inset 0 -2mm #12918c !important;
    overflow: hidden !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-type .ugr-cover-type-label {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 999px !important;
    width: fit-content !important;
    padding: 1mm 2.2mm !important;
    font-size: 8.4pt !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-type .ugr-cover-type-name {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    margin: 0 !important;
    font-size: 21pt !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-type .ugr-cover-type-insight {
    color: rgba(248, 251, 255, 0.94) !important;
    -webkit-text-fill-color: rgba(248, 251, 255, 0.94) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
    margin: 0 !important;
    padding-top: 1.6mm !important;
    font-size: 9.7pt !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 4mm !important;
    width: 100% !important;
    height: 60mm !important;
    margin: 0 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-feature-grid > section {
    align-content: center !important;
    height: 100% !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-feature-grid :where(li, p) {
    font-size: 9.6pt !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-copy
    .ugr-cover-feature-grid > section > b {
    padding: 1mm 2.2mm !important;
    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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-copy
    .ugr-cover-feature-grid > section > ul {
    gap: 1.4mm !important;
    margin-top: 2mm !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-copy
    .ugr-cover-feature-grid > section > ul > li {
    font-size: 9.5pt !important;
    line-height: 1.32 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-compact-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 3mm !important;
    width: 100% !important;
    height: 60mm !important;
    margin: 0 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-compact-summary > article {
    align-content: center !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 3.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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-compact-summary span {
    font-size: 8.2pt !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-compact-summary b {
    margin-top: 1mm !important;
    font-size: 11pt !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-compact-summary p {
    margin-top: 1.4mm !important;
    font-size: 9.1pt !important;
    line-height: 1.38 !important;
  }

  /* The general document type floor carries two ID-bearing exclusions, so
   * this page-level lock must match that specificity to keep the adaptive
   * portrait typography instead of inheriting the 13.2 pt dense-page size. */
  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child.ugr-page:not(#ugr-report-front-cover):not(#ugr-report-back-cover)
    .ugr-cover-type .ugr-cover-type-insight {
    font-size: 10pt !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child.ugr-page:not(#ugr-report-front-cover):not(#ugr-report-back-cover)
    .ugr-cover-feature-grid > section > ul > li {
    font-size: 9.5pt !important;
    line-height: 1.32 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child.ugr-page:not(#ugr-report-front-cover):not(#ugr-report-back-cover)
    .ugr-cover-compact-summary > article > span {
    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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child.ugr-page:not(#ugr-report-front-cover):not(#ugr-report-back-cover)
    .ugr-cover-compact-summary > article > b {
    font-size: 11pt !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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child.ugr-page:not(#ugr-report-front-cover):not(#ugr-report-back-cover)
    .ugr-cover-compact-summary > article > p {
    font-size: 9.5pt !important;
    line-height: 1.34 !important;
  }

  :is(html[data-report-export-mode="document"], html[data-pdf-export="document"])
    body #root
    .ugr-root[data-report-layout="legacy16"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-type-visual {
    grid-area: auto !important;
    place-self: stretch !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 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"][data-report-product="seven-day-motivation"]:is(
      [data-report-audience="parent"],
      [data-report-audience="internal"]
    )
    #ugr-chapter-child .ugr-cover-type-visual img {
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center 43% !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}
