/* Bookside Print Studio: controls stay quiet; the actual sheet is the focal point. */
.pm-studio {
  --pm-ink:#202420; --pm-muted:#636962; --pm-rule:#d5d9d1; --pm-soft:#f4f5f2;
  color:var(--pm-ink); min-width:0;
}
.pm-start {display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 0 18px}
.pm-start h2 {font-size:1.35rem;line-height:1.8;margin:0 0 7px}
.pm-start p {font-size:.93rem;line-height:1.9;color:var(--pm-muted);margin:0;max-width:580px}
.pm-print-button {flex-shrink:0;align-self:center;min-height:50px}
.pm-presets {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 18px}
.pm-preset-card {position:relative;display:flex;align-items:flex-start;text-align:left;gap:13px;padding:13px 34px 13px 14px;border:1px solid #c6cdc0;background:#fff;color:var(--pm-ink);border-radius:4px;min-height:92px}
.pm-preset-card>.icon {width:28px;height:28px;flex-shrink:0;margin-top:3px}
.pm-preset-card>span:not(.pm-preset-tick) {display:flex;flex-direction:column;gap:4px}
.pm-preset-card strong {font-size:.94rem;line-height:1.8}
.pm-preset-card small {font-size:.875rem;line-height:1.9;color:var(--pm-muted)}
.pm-preset-card:hover {border-color:#6c7764;background:#fafbf8}
.pm-preset-card.is-selected {border:2px solid #2b3528;padding:12px 33px 12px 13px;background:#f2f5ee}
.pm-preset-tick {position:absolute;top:14px;right:10px;width:19px;height:19px}
.pm-preset-tick .icon {width:19px;height:19px}
.pm-studio-grid {display:grid;grid-template-columns:275px minmax(0,1fr);gap:30px;align-items:start}
.pm-controls {min-width:0}
.pm-control-group {padding:0 0 22px;margin:0 0 21px;border-bottom:1px solid var(--pm-rule)}
.pm-control-group h3 {font-size:1rem;line-height:1.8;margin:0 0 13px}
.pm-layout-options {display:grid;grid-template-columns:1fr;gap:7px}
.pm-option {display:flex;align-items:center;justify-content:flex-start;gap:11px;min-height:49px;padding:11px 12px;border:1px solid #c4ccbd;background:#fff;border-radius:4px;font-size:.875rem;line-height:1.8;text-align:left;color:var(--pm-ink)}
.pm-option:hover {background:#f1f4ed;border-color:#7c8872}
.pm-option.is-selected {background:#293226;color:#fff;border-color:#293226}
.pm-option>.icon {width:23px;height:23px;flex-shrink:0}
.pm-layout-picture path {fill:none;stroke:currentColor;stroke-width:1.4;stroke-dasharray:2 1.5}
.pm-control-note {font-size:.875rem!important;color:var(--pm-muted);line-height:1.9!important;margin:12px 0 0}
.pm-stepper {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid #e3e6df;font-size:.875rem;line-height:1.8}
.pm-stepper>div {display:flex;align-items:center;gap:0;border:1px solid #bdc6b5;border-radius:4px;background:#fff;flex-shrink:0}
.pm-stepper output {font-size:.96rem;min-width:36px;text-align:center}
.pm-step-button {display:grid;place-items:center;min-width:40px;width:40px;height:42px;padding:0;font-size:1.12rem;line-height:1;border:0;background:transparent;color:#293226}
.pm-step-button:hover:not(:disabled) {background:#edf1e7}
.pm-step-button:disabled {opacity:.3;cursor:default}
.pm-options {margin-top:12px}
.pm-options summary,.pm-exact summary,.pm-print-notes summary {display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;font-size:.875rem;line-height:1.9;min-height:45px;padding:10px 0}
.pm-options summary::-webkit-details-marker,.pm-exact summary::-webkit-details-marker,.pm-print-notes summary::-webkit-details-marker {display:none}
.pm-options summary>.icon,.pm-exact summary>.icon,.pm-print-notes summary>.icon {width:19px;height:19px;flex-shrink:0}
.pm-options[open]>summary>.icon,.pm-exact[open]>summary>.icon,.pm-print-notes[open]>summary>.icon {transform:rotate(180deg)}
.pm-option-body {border-top:1px solid var(--pm-rule);padding-top:8px}
.pm-toggle {display:flex;align-items:flex-start;gap:11px;width:100%;padding:11px 0;text-align:left;border:0;background:transparent;color:var(--pm-ink);line-height:1.8}
.pm-toggle>span:last-child {display:flex;flex-direction:column;gap:4px;flex:1}
.pm-toggle strong {font-size:.875rem}
.pm-toggle small {font-size:.875rem;line-height:1.9;color:var(--pm-muted)}
.pm-tick {border:1px solid #8a967e;border-radius:3px;display:grid;place-items:center;width:23px;height:23px;flex-shrink:0;margin-top:3px;background:white}
.pm-tick>.icon {width:17px;height:17px}
.pm-toggle.is-on .pm-tick,.pm-stem-choice.is-selected .pm-tick {background:#2b3528;color:white;border-color:#2b3528}
.pm-ink-options {display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:8px}
.pm-ink-options .pm-option {font-size:.875rem;padding:11px 8px;gap:7px}
.pm-ink-options .pm-option>.icon {width:19px;height:19px}
.pm-exact {border-top:1px solid var(--pm-rule);border-bottom:1px solid var(--pm-rule)}
.pm-exact-body {padding:7px 0 16px}
.pm-exact-body>p {font-size:.875rem;line-height:1.95;color:var(--pm-muted);margin:0 0 15px}
.pm-exact-body h4 {font-size:.9rem;line-height:1.9;margin:16px 0 10px}
.pm-stem-choices {display:flex;flex-direction:column;gap:8px}
.pm-stem-choice {display:flex;align-items:flex-start;gap:9px;border:1px solid #cbd2c4;background:#fff;padding:12px 10px;border-radius:4px;text-align:left;font-size:.875rem;line-height:1.95;color:var(--pm-ink)}
.pm-stem-choice.is-selected {border-color:#718264;background:#f4f7ef}
.pm-stem-choice .pm-tick {width:20px;height:20px}
.pm-stem-choice .pm-tick .icon {width:15px;height:15px}
.pm-word-choices {display:flex;flex-wrap:wrap;gap:7px}
.pm-word-choice {display:flex;align-items:center;gap:7px;border:1px solid #c2ccba;border-radius:4px;background:#fff;color:var(--pm-ink);padding:9px 10px;font-size:.875rem;line-height:1.9;min-height:43px}
.pm-word-choice>.icon {width:19px;height:19px;flex-shrink:0}
.pm-word-choice.is-selected {border-color:#293226;background:#e9efdf}
.pm-more-words {margin-top:12px}
.pm-adaptation-note {display:flex;align-items:flex-start;gap:10px;margin-top:20px}
.pm-adaptation-note>.icon {width:22px;height:22px;flex-shrink:0;margin-top:3px}
.pm-preview-panel {min-width:0;background:#eceee9;border:1px solid #d0d6c8;border-radius:5px;padding:19px 16px 17px;overflow:hidden}
.pm-preview-head {display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 18px}
.pm-preview-head h3 {font-size:1.02rem;margin:0 0 5px;line-height:1.8}
.pm-preview-head p {font-size:.875rem;line-height:1.8;color:var(--pm-muted);margin:0}
.pm-preview-zoom {display:flex;align-items:center;gap:8px;padding:8px 10px;min-height:42px;font-size:.875rem;line-height:1.9;border:1px solid #bec7b5;border-radius:4px;background:#fff;color:#2b3528}
.pm-preview-zoom>.icon {width:19px;height:19px}
.pm-preview-scroll {--pm-scale:.57;overflow:auto;max-width:100%;padding:0 1px 15px;overscroll-behavior:contain}
.pm-preview-size {position:relative;width:calc(210mm * var(--pm-scale));height:calc(297mm * var(--pm-scale));min-height:calc(297mm * var(--pm-scale));margin:0 auto}
.pm-preview-size>.pm-pages {transform:scale(var(--pm-scale));transform-origin:top left;position:absolute;top:0;left:0;width:210mm;height:297mm}
.pm-preview-scroll.pm-actual {max-height:78vh}
.pm-actual .pm-preview-size {width:210mm;height:auto;min-height:297mm}
.pm-actual .pm-preview-size>.pm-pages {transform:none;position:relative;height:auto}
.pm-fit-summary {border-top:1px solid #ccd3c3;padding:15px 1px 0;margin-top:3px}
.pm-fit-summary>strong {display:flex;gap:9px;align-items:flex-start;font-size:.875rem;line-height:1.9}
.pm-fit-summary>strong>.icon {width:21px;height:21px;flex-shrink:0;margin-top:3px}
.pm-fit-summary p,.pm-fit-summary li {font-size:.875rem;line-height:1.95;color:#5e6757;margin:7px 0}
.pm-fit-summary ul {padding-left:22px;margin:8px 0}
.pm-print-notes {margin-top:14px;border-top:1px solid #ccd3c3}
.pm-print-notes summary {font-size:.875rem}
.pm-print-notes p {font-size:.875rem;line-height:1.95;margin:7px 0;color:#5e6757}

/* Small version tabs and one reading row leave the sheet in view. */
.pm-studio,.pm-studio button,.pm-studio input,.pm-studio select {font-family:'Playwrite IT Moderna',cursive;font-synthesis:none}
.pm-version-area {margin:0 0 20px}
.pm-version-tabs {display:flex;align-items:stretch;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;padding:0 0 9px;scrollbar-width:thin}
.pm-version-tab {display:flex;flex-direction:row;align-items:center;gap:11px;flex:0 0 auto;min-height:44px;max-width:none;padding:8px 12px;border:1px solid #c4cabf;border-radius:4px;background:#fff;color:#20251f!important;text-align:left;line-height:1.8}
.pm-version-tab strong {font-size:.875rem;font-weight:400;white-space:nowrap;color:#20251f!important}
.pm-version-tab span {font-size:.875rem;white-space:nowrap;color:#20251f!important;opacity:.78}
.pm-version-tab:hover {border-color:#68745c;background:#f6f8f2}
.pm-version-tab.is-active,.pm-version-tab[aria-pressed=true] {border-color:#6c775f;background:#e8eddf;color:#20251f!important;box-shadow:inset 0 -2px #2d3926}
.pm-version-tab.is-active span {color:#20251f!important;opacity:1}
.pm-duplicate-tab {display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:44px;padding:8px 12px;border:1px dashed #9faa94;border-radius:4px;background:#fff;color:#273322;font-size:.875rem;line-height:1.8}
.pm-duplicate-tab>.icon {width:19px;height:19px;flex-shrink:0}
.pm-duplicate-tab:hover:not(:disabled) {background:#f0f4e9;border-color:#46593a}
.pm-duplicate-tab:disabled {opacity:.45;cursor:default}
.pm-version-count {align-self:center;flex:0 0 auto;white-space:nowrap;font-size:.875rem;line-height:1.8;color:#6a7460;padding:0 5px}
.pm-version-reading {border-top:1px solid #d4d9ce;border-bottom:1px solid #d4d9ce;padding:10px 0 0;background:transparent}
.pm-profile-controls {display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start;gap:26px}
.pm-version-reading-head,.pm-version-depth {min-width:0;margin:0;padding:0}
.pm-profile-heading {display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:31px;margin:0 0 5px}
.pm-profile-heading>label,.pm-profile-heading>h3 {font-size:.94rem;line-height:1.8;color:#20251f;margin:0;font-weight:400}
.pm-profile-heading>output {display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:.875rem;line-height:1.8;color:#20251f;text-align:right}
.pm-reading-step {font-size:.75rem;white-space:nowrap;color:#69735f;border-left:1px solid #ccd3c5;padding-left:8px}
.pm-profile-heading>span {font-size:.8rem;line-height:1.8;color:#68725f;text-align:right}
.pm-depth-options {display:grid;grid-template-columns:.9fr 1.05fr 1.55fr;gap:6px}
.pm-depth-option {display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:8px 9px;border:1px solid #bfc8b7;border-radius:4px;background:#fff;color:#20251f!important;font-size:.875rem;line-height:1.8;text-align:center}
.pm-depth-option>.icon {width:18px;height:18px;flex-shrink:0}
.pm-depth-option>span {color:#20251f!important}
.pm-depth-option:hover {border-color:#7a896a;background:#f4f7ee}
.pm-depth-option.is-active,.pm-depth-option[aria-pressed=true] {border-color:#68775b;background:#e8eddf!important;color:#20251f!important;box-shadow:inset 0 -2px #2d3926}
 .pm-remove-version {display:flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:44px;padding:6px 2px 6px 6px;border:0;background:transparent;color:#5d6654;font-size:.875rem;line-height:1.8}
.pm-remove-version>.icon {width:17px;height:17px;flex-shrink:0}
.pm-remove-version:hover:not(:disabled) {text-decoration:underline;text-underline-offset:4px;color:#263020}
.pm-remove-version:disabled {visibility:hidden;pointer-events:none}
.pm-slider-row {display:flex;align-items:center;gap:10px;min-height:44px}
.pm-slider-row>button {display:grid;place-items:center;flex-shrink:0;width:40px;min-width:40px;height:44px;background:#fff;border:1px solid #bfc8b7;border-radius:4px;font-size:1.1rem;color:#273322;padding:0}
.pm-slider-row>button:hover:not(:disabled) {background:#eef3e6}
.pm-slider-row>button:disabled {opacity:.35}
.pm-reading-range {display:block;width:100%;min-width:0;margin:0;cursor:pointer;accent-color:#2c3925;appearance:none;-webkit-appearance:none;height:36px;background:transparent}
.pm-reading-range::-webkit-slider-runnable-track {height:4px;background:#cbd3c2;border-radius:3px}
.pm-reading-range::-webkit-slider-thumb {appearance:none;-webkit-appearance:none;width:23px;height:23px;border:4px solid #fff;border-radius:50%;background:#273322;box-shadow:0 0 0 1px #7f8c73;margin-top:-9.5px}
.pm-reading-range::-moz-range-track {height:4px;background:#cbd3c2;border-radius:3px}
.pm-reading-range::-moz-range-thumb {width:16px;height:16px;border:4px solid #fff;border-radius:50%;background:#273322;box-shadow:0 0 0 1px #7f8c73}
.pm-current-level {font-size:.875rem;line-height:1.8;margin:0}
.pm-version-details {margin:2px 0 0}
.pm-version-details>summary {display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;width:max-content;list-style:none;cursor:pointer;font-size:.8rem;line-height:1.8;color:#65705c;padding:5px 0}
.pm-version-details>summary::-webkit-details-marker {display:none}
.pm-version-details>summary>.icon {width:15px;height:15px}
.pm-version-details[open]>summary>.icon {transform:rotate(180deg)}
.pm-version-details>div {padding:2px 0 12px;max-width:82ch}
.pm-version-details p {font-size:.875rem;line-height:1.9;color:#58634e;margin:5px 0}
.pm-sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pm-review-note {display:flex;align-items:flex-start;gap:10px;border-top:1px solid #bfc8b5;margin-top:13px;padding-top:13px}
.pm-review-note>.icon {width:22px;height:22px;flex-shrink:0;margin-top:4px}
.pm-review-note>div {min-width:0}
.pm-review-note strong {font-size:.875rem;line-height:1.9}
.pm-review-note p {margin:5px 0 0}
.pm-studio :is(button,select,input,summary):focus-visible {outline:3px solid #687b52;outline-offset:3px}
@media(max-width:1050px){
 .pm-profile-controls {grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:18px}
 .pm-depth-option {gap:5px;padding:8px 7px}
 .pm-remove-version>span {display:none}
}
@media(max-width:760px){
 .pm-version-area {margin-bottom:20px}
 .pm-version-tabs {gap:6px;padding-bottom:9px}
 .pm-version-tab {flex-direction:column;align-items:flex-start;gap:0;min-width:112px;padding:7px 11px;max-width:none}
 .pm-version-tab strong,.pm-version-tab span {font-size:.8rem;line-height:1.8}
 .pm-duplicate-tab {font-size:.875rem;padding:7px 11px}
 .pm-version-count {font-size:.8rem;padding:0 3px}
 .pm-profile-controls {grid-template-columns:1fr;gap:16px}
 .pm-version-depth {padding-top:11px;border-top:1px solid #e0e5d9}
 .pm-profile-heading {min-height:28px;margin-bottom:6px}
 .pm-profile-heading>label,.pm-profile-heading>h3 {font-size:.94rem}
 .pm-profile-heading>span {font-size:.8rem}
 .pm-depth-option {padding:9px 7px;min-height:48px;font-size:.875rem}
 .pm-depth-option>.icon {width:17px;height:17px}
 .pm-slider-row {min-height:46px}
 .pm-version-details>summary {min-height:44px}
}

/* Measure natural content at its final physical width, without minimum mat height. */
.pm-measure {position:fixed;left:-10000px;top:0;width:210mm;visibility:hidden!important;pointer-events:none!important;z-index:-1}
.pm-measure .pm-piece,.pm-measure .pm-mat {min-height:0!important;height:auto!important}
.pm-measure .pm-page-content {min-height:0!important;height:auto!important}

/* These rules define the actual paper, in millimetres and points.
   The preview only scales this same geometry; print uses it at 100%. */
.pm-pages,.pm-pages * {box-sizing:border-box;font-family:'Playwrite IT Moderna',cursive!important;font-weight:400!important;font-synthesis:none!important;letter-spacing:0}
.pm-page {width:210mm;min-height:297mm;padding:10mm;background:#fff!important;color:#202420;font-size:10.5pt;line-height:1.8;margin:0;overflow:visible;border:0}
.pm-page-content {display:flex;flex-direction:column;gap:0;width:190mm;min-height:277mm}
.pm-piece {position:relative;flex:0 0 auto;width:100%;overflow:visible}
.pm-layout-full .pm-piece {min-height:277mm}
.pm-layout-half .pm-piece {min-height:135mm}
.pm-layout-third .pm-piece {min-height:89mm}
.pm-layout-half .pm-piece:not(:last-child) {margin-bottom:7mm}
.pm-layout-third .pm-piece:not(:last-child) {margin-bottom:5mm}
.pm-mat {display:flex;flex-direction:column;min-height:inherit;padding:4.2mm 4.5mm;border:.25mm solid #808b78;border-radius:1.1mm;overflow:visible;background:#fff}
.pm-mat-head {border-bottom:.2mm solid #aab4a1;margin:0 0 3mm;padding:0 0 2.5mm;break-inside:avoid}
.pm-mat-title {display:flex;align-items:flex-start;gap:2.7mm}
.pm-mat-title>.icon {width:6.5mm;height:6.5mm;flex-shrink:0;margin-top:1.1mm;color:#313b2c}
.pm-mat-title h2 {font-size:14pt!important;line-height:1.8!important;color:#202420;margin:0!important;overflow-wrap:break-word}
.pm-mat-meta {display:flex;align-items:flex-start;justify-content:space-between;gap:4mm;margin-top:1mm;font-size:10pt;line-height:1.8;color:#505a48}
.pm-mat-meta>span:first-child {flex:1;min-width:0}
.pm-reading-tag {flex-shrink:0;font-size:10pt;max-width:55mm;text-align:right}
.pm-mat section {margin:0 0 3.1mm;break-inside:avoid}
.pm-depth-cue {display:flex;align-items:flex-start;gap:2mm;border-left:.55mm solid #7b886e;padding:2mm 2.7mm;background:#fff}
.pm-depth-cue>.icon {width:5mm;height:5mm;flex-shrink:0;margin-top:.7mm;color:#35452a}
.pm-depth-cue>p {flex:1;min-width:0}
.pm-layout-third .pm-depth-cue {padding:1.7mm 2.4mm}
.pm-section-title {display:flex;align-items:center;gap:2mm;font-size:10.5pt!important;line-height:1.75!important;margin:0 0 1.8mm!important;color:#263020}
.pm-section-title>.icon {width:5mm;height:5mm;flex-shrink:0}
.pm-mat p {font-size:10.5pt!important;line-height:1.85!important;margin:0;overflow-wrap:break-word}
.pm-focus {margin-top:1.8mm!important}
.pm-focus>span {border-bottom:.2mm solid #7f8a72}
.pm-stems {display:flex;flex-direction:column;gap:2mm}
.pm-stem {padding:2.2mm 2.8mm;border:.2mm solid #c3cbbd;border-radius:.7mm;font-size:11pt;line-height:2.0;background:#fff;overflow-wrap:break-word;break-inside:avoid}
.pm-stem .slot {padding:.3mm 1mm;line-height:inherit;box-decoration-break:clone;-webkit-box-decoration-break:clone;border-radius:.5mm}
.pm-word-grid {display:flex;flex-wrap:wrap;align-items:flex-start;gap:1.7mm}
.pm-word {display:inline-flex;align-items:center;gap:1.6mm;border:.2mm solid #879679;border-radius:.7mm;padding:1.3mm 2mm;font-size:10.5pt;line-height:1.8;max-width:100%;break-inside:avoid}
.pm-word>.icon {width:5mm;height:5mm;flex-shrink:0}
.pm-plan-grid {display:flex;flex-direction:column;gap:2.3mm}
.pm-plan-item {display:flex;align-items:flex-start;gap:2.6mm;padding:2.5mm 3mm;border:.2mm solid #c0c9b8;border-radius:.8mm;break-inside:avoid;background:#fff}
.pm-plan-picture {width:7mm;flex-shrink:0;padding-top:.5mm}
.pm-plan-picture>.icon {width:7mm;height:7mm}
.pm-plan-item>div {flex:1;min-width:0}
.pm-plan-item h4 {font-size:10.5pt!important;line-height:1.8!important;margin:0!important;color:#273322}
.pm-plan-choice {margin-top:1mm!important}
.pm-plan-prompt {margin-top:1.1mm!important;color:#525d49}
.pm-note-line {height:8mm;border-bottom:.2mm solid #c1c9bb;margin-top:1.7mm}
.pm-preset-plan.pm-mat {padding:5mm}
.pm-preset-plan .pm-plan-section {flex:1;display:flex;flex-direction:column}
.pm-preset-plan .pm-plan-grid {flex:1;gap:3mm}
.pm-preset-plan .pm-plan-item {flex:1}
.pm-model {border-left:.5mm solid #77846a;padding:2mm 3mm;background:#fafbf8}
.pm-example-note {font-size:10pt!important;color:#535f48;margin-top:1.8mm!important}
.pm-checks {margin-top:auto;padding-top:2.8mm;border-top:.2mm solid #abb5a0;break-inside:avoid}
.pm-checks .pm-section-title {margin-bottom:1.2mm!important}
.pm-checks>div {display:flex;flex-direction:column;gap:1.1mm}
.pm-checks p {display:flex;align-items:flex-start;gap:2mm;font-size:10pt!important;line-height:1.8!important}
.pm-check-box {display:block;width:3.2mm;height:3.2mm;border:.2mm solid #71805f;border-radius:.4mm;margin-top:1.5mm;flex-shrink:0}
.pm-cut-line {position:absolute;left:0;right:0;bottom:-4mm;border-top:.2mm dashed #8e9785;height:1px;display:flex;align-items:center;justify-content:center}
.pm-layout-third .pm-cut-line {bottom:-3mm}
.pm-cut-line>span {display:flex;align-items:center;gap:1.3mm;background:white;padding:0 2mm;color:#647157;font-size:10pt;line-height:1.2;transform:translateY(-.1mm)}
.pm-cut-line .icon {width:3.8mm;height:3.8mm}
.pm-layout-third .pm-mat {padding:3mm 4mm}
.pm-layout-third .pm-mat-title h2 {font-size:12pt!important}
.pm-layout-third .pm-mat-title>.icon {width:5.5mm;height:5.5mm}
.pm-layout-third .pm-mat-head {margin-bottom:2.2mm;padding-bottom:1.8mm}
.pm-layout-third .pm-mat section {margin-bottom:2.2mm}
.pm-layout-third .pm-stem {font-size:10.5pt;line-height:1.9;padding:1.8mm 2.3mm}
.pm-layout-third .pm-word {font-size:10pt;padding:1mm 1.8mm}
.pm-layout-third .pm-checks {padding-top:2mm}
/* Compact paper spacing preserves useful content without reducing type size. */
:is(.pm-layout-half,.pm-layout-third) .pm-mat {padding:3mm 4mm}
:is(.pm-layout-half,.pm-layout-third) .pm-mat-head {margin-bottom:1.8mm;padding-bottom:1.4mm}
:is(.pm-layout-half,.pm-layout-third) .pm-mat-title h2 {line-height:1.55!important}
:is(.pm-layout-half,.pm-layout-third) .pm-mat-meta {line-height:1.55;margin-top:.5mm}
:is(.pm-layout-half,.pm-layout-third) .pm-mat section {margin-bottom:1.8mm}
:is(.pm-layout-half,.pm-layout-third) .pm-section-title {line-height:1.55!important;margin-bottom:1mm!important}
:is(.pm-layout-half,.pm-layout-third) .pm-mat p {line-height:1.65!important}
:is(.pm-layout-half,.pm-layout-third) .pm-depth-cue {padding:1.2mm 2.3mm;gap:1.8mm}
:is(.pm-layout-half,.pm-layout-third) .pm-depth-cue>.icon {margin-top:.2mm}
:is(.pm-layout-half,.pm-layout-third) .pm-stems {gap:1.5mm}
:is(.pm-layout-half,.pm-layout-third) .pm-stem {line-height:1.7;padding:1.4mm 2.3mm}
:is(.pm-layout-half,.pm-layout-third) .pm-word-grid {gap:1.4mm}
:is(.pm-layout-half,.pm-layout-third) .pm-word {line-height:1.6;padding:1mm 1.8mm;gap:1.3mm}
:is(.pm-layout-half,.pm-layout-third) .pm-focus {margin-top:1mm!important}
:is(.pm-layout-half,.pm-layout-third) .pm-checks {padding-top:1.4mm}
:is(.pm-layout-half,.pm-layout-third) .pm-checks .pm-section-title {margin-bottom:.7mm!important}
:is(.pm-layout-half,.pm-layout-third) .pm-checks>div {gap:.6mm}
:is(.pm-layout-half,.pm-layout-third) .pm-checks p {line-height:1.6!important}
:is(.pm-layout-half,.pm-layout-third) .pm-check-box {margin-top:.9mm}
:is(.pm-layout-half,.pm-layout-third) .pm-plan-grid {gap:1.8mm}
:is(.pm-layout-half,.pm-layout-third) .pm-plan-item {padding:1.8mm 2.4mm}
.pm-ink-mono .cs-who,.pm-ink-mono .cs-doing,.pm-ink-mono .cs-what,.pm-ink-mono .cs-where,.pm-ink-mono .cs-describe,.pm-ink-mono .cs-extra {background:#fff!important;color:#202420!important;border-color:#626a5b!important}
.pm-ink-mono .pm-stem .slot {border-bottom:.3mm solid #596151;background:#fff!important}
.pm-ink-mono .pm-word {border:.25mm solid #697260}
.pm-no-pictures .pm-mat-title {gap:0}
.pm-no-pictures .pm-plan-item {gap:0}
.pm-page .icon {stroke-width:1.7;vertical-align:middle}

@media(min-width:1450px){.pm-preview-scroll{--pm-scale:.65}}
@media(max-width:1150px){.pm-studio-grid{grid-template-columns:245px minmax(0,1fr);gap:20px}.pm-preview-scroll{--pm-scale:.49}.pm-preset-card{padding:15px 25px 15px 12px;gap:9px}.pm-preset-card.is-selected{padding:14px 24px 14px 11px}.pm-preset-card>.icon{width:24px;height:24px}.pm-preset-card small{font-size:.875rem}}
@media(max-width:1000px){.pm-studio-grid{grid-template-columns:1fr}.pm-controls{display:grid;grid-template-columns:1fr 1fr;gap:20px}.pm-control-group{margin-bottom:0}.pm-exact{grid-column:1/-1}.pm-adaptation-note{grid-column:1/-1;margin:0}.pm-preview-scroll{--pm-scale:.68}.pm-preview-panel{padding:20px}.pm-start{gap:18px}.pm-start h2{font-size:1.2rem}.pm-start p{font-size:.9rem}.pm-print-button{font-size:.875rem}.pm-preset-card strong{font-size:.88rem}}
@media(max-width:760px){.pm-start{flex-direction:column;gap:17px;margin-bottom:21px}.pm-start h2{font-size:1.16rem}.pm-start p{font-size:.91rem}.pm-print-button{align-self:stretch;justify-content:center;font-size:.94rem}.pm-presets{grid-template-columns:1fr;gap:8px;margin-bottom:22px}.pm-preset-card{min-height:80px;padding:14px 36px 14px 14px;align-items:center;gap:12px}.pm-preset-card.is-selected{padding:13px 35px 13px 13px}.pm-preset-card strong{font-size:.94rem}.pm-preset-card small{font-size:.875rem}.pm-preset-card>span:not(.pm-preset-tick){gap:4px}.pm-preset-card>.icon{width:28px;height:28px}.pm-preset-tick{top:18px;right:12px}.pm-controls{display:block}.pm-control-group{padding-bottom:20px;margin-bottom:20px}.pm-layout-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.pm-layout-options .pm-option{flex-direction:column;text-align:center;justify-content:center;padding:12px 7px;font-size:.875rem;line-height:1.9;gap:8px;min-height:103px}.pm-layout-options .pm-option>.icon{width:28px;height:28px}.pm-control-group h3{font-size:1rem}.pm-stepper{font-size:.94rem;padding:12px 0}.pm-step-button{width:44px;min-width:44px;height:45px}.pm-stepper output{min-width:40px}.pm-toggle strong,.pm-options summary,.pm-exact summary{font-size:.94rem}.pm-toggle small{font-size:.875rem}.pm-control-note{font-size:.875rem!important}.pm-ink-options .pm-option{font-size:.9rem;padding:13px 11px}.pm-ink-options .pm-option>.icon{width:23px;height:23px}.pm-adaptation-note{margin-top:18px}.pm-preview-panel{padding:15px 11px}.pm-preview-scroll{--pm-scale:.48}.pm-preview-head h3{font-size:.98rem}.pm-preview-head p{font-size:.875rem}.pm-preview-zoom{font-size:.875rem;padding:9px 8px}.pm-preview-zoom>.icon{width:18px;height:18px}.pm-fit-summary>strong{font-size:.91rem}.pm-fit-summary p,.pm-fit-summary li,.pm-print-notes p,.pm-print-notes summary{font-size:.875rem}.pm-stem-choice{font-size:.91rem}.pm-exact-body>p{font-size:.87rem}.pm-word-choice{font-size:.91rem}.pm-exact-body h4{font-size:.97rem}}
@media(max-width:600px){.pm-preview-scroll{--pm-scale:.42}}
@media(max-width:500px){.pm-preview-scroll{--pm-scale:.35}}
@media(max-width:400px){.pm-preview-scroll{--pm-scale:.30}}
@media(prefers-reduced-motion:reduce){.pm-studio *{transition:none!important;animation:none!important}}

@media print {
  @page pm-sheet {size:A4 portrait;margin:0}
  .pm-pages {display:block!important;width:210mm!important;margin:0!important;padding:0!important;color:#202420;background:#fff!important}
  .pm-page {page:pm-sheet;width:210mm!important;min-height:297mm!important;height:auto!important;margin:0!important;padding:10mm!important;transform:none!important;border:0!important;box-shadow:none!important;overflow:visible!important;break-after:page;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .pm-page:last-child {break-after:auto}
  .pm-batch-pages>.pm-pages:not(:last-child)>.pm-page {break-after:page!important;page-break-after:always!important}
  .pm-batch-pages>.pm-pages:last-child>.pm-page {break-after:auto!important;page-break-after:auto!important}
  .pm-page-content {width:190mm!important;min-height:277mm!important;height:auto!important;overflow:visible!important}
  .pm-piece {break-inside:avoid-page;page-break-inside:avoid;height:auto!important;overflow:visible!important}
  .pm-mat {break-inside:avoid-page;page-break-inside:avoid;overflow:visible!important;height:auto!important}
  .pm-preview-size,.pm-preview-size>.pm-pages {transform:none!important;width:auto!important;height:auto!important}
  .pm-page .slot {color:#202420}
}

/* V6 control hierarchy. These rules never affect a printed mat. */
@media screen {
 .pm-start{align-items:center;gap:20px;margin-bottom:17px}
 .pm-start p{font-size:13px;line-height:1.9;max-width:52ch}
 .pm-print-button{min-height:46px;font-size:13px;padding:10px 16px}
 .pm-presets{gap:9px;margin-bottom:17px}
 .pm-preset-card{min-height:76px;padding:12px 30px 12px 13px;gap:11px;align-items:center}
 .pm-preset-card.is-selected{padding:11px 29px 11px 12px}
 .pm-preset-card strong{font-size:13px}.pm-preset-card small{font-size:11px;line-height:1.9}
 .pm-preset-card>.icon{width:25px;height:25px;margin-top:0}
 .pm-version-tab{gap:8px;padding:8px 10px}.pm-version-tab strong{font-size:12px}.pm-version-tab span{font-size:11px}
 .pm-duplicate-tab{font-size:12px;padding:8px 10px}.pm-version-count{font-size:11px}.pm-remove-version{font-size:11px}
 .pm-version-area{margin-bottom:18px}.pm-version-reading{padding-top:9px}
 .pm-profile-heading>label,.pm-profile-heading>h3{font-size:13px}.pm-profile-heading>output{font-size:12px}.pm-profile-heading>span{font-size:11px}
 .pm-depth-option{font-size:12px;min-height:44px}.pm-reading-step{font-size:10px}
 .pm-version-details>summary{font-size:11px}.pm-version-details p{font-size:12px}
 .pm-studio-grid{grid-template-columns:245px minmax(0,1fr);gap:26px}
 .pm-control-group h3{font-size:14px;margin-bottom:11px}.pm-control-group{padding-bottom:18px;margin-bottom:18px}
 .pm-preview-panel{background:#ecefe7;border-color:#d9ded2;padding:18px}
 .pm-preview-head h3{font-size:14px}.pm-preview-head p{font-size:11px}.pm-preview-zoom{font-size:11px;min-height:44px}
 .pm-preview-size{filter:drop-shadow(0 3px 7px #20251f10)}
 .pm-exact-body{max-height:68vh;overflow:auto;overscroll-behavior:contain;padding-right:6px}
 .pm-fit-summary>strong{font-size:12px}.pm-fit-summary p,.pm-fit-summary li{font-size:11px;line-height:1.9}
}
@media screen and (max-width:1000px){.pm-studio-grid{grid-template-columns:1fr;gap:22px}.pm-controls{display:grid;grid-template-columns:1fr 1fr;gap:18px}.pm-control-group{margin:0}.pm-exact{grid-column:1/-1}.pm-profile-controls{gap:16px}.pm-depth-option{font-size:11px;gap:5px}}
@media screen and (max-width:760px){.pm-start{flex-direction:row;align-items:center;gap:16px;margin-bottom:16px}.pm-start p{font-size:11px}.pm-print-button{font-size:11px;min-width:130px;align-self:center}.pm-print-button>.icon{width:20px;height:20px}.pm-presets{grid-template-columns:1fr;gap:7px;margin-bottom:18px}.pm-preset-card{min-height:64px;padding:10px 34px 10px 12px;gap:12px}.pm-preset-card.is-selected{padding:9px 33px 9px 11px}.pm-preset-card strong{font-size:12px}.pm-preset-card small{font-size:10px}.pm-preset-card>.icon{width:24px;height:24px}.pm-preset-card>span:not(.pm-preset-tick){gap:2px}.pm-version-tab{min-width:115px;gap:1px;padding:7px 10px}.pm-version-tab strong,.pm-version-tab span{font-size:10px}.pm-duplicate-tab{font-size:11px}.pm-profile-controls{grid-template-columns:1fr;gap:9px}.pm-version-depth{padding-top:9px}.pm-profile-heading>label,.pm-profile-heading>h3{font-size:12px}.pm-profile-heading>output{font-size:11px}.pm-depth-option{font-size:11px;min-height:44px}.pm-controls{display:block}.pm-control-group{margin-bottom:18px}.pm-layout-options .pm-option{min-height:85px;font-size:11px;padding:10px 5px}.pm-control-note{font-size:11px!important}.pm-stepper{font-size:12px;padding:10px 0}.pm-toggle strong,.pm-options summary,.pm-exact summary{font-size:12px}.pm-toggle small{font-size:11px}.pm-preview-panel{padding:14px 10px}.pm-preview-head{gap:10px}.pm-preview-head h3{font-size:12px}.pm-preview-head p,.pm-preview-zoom{font-size:10px}.pm-preview-zoom>.icon{width:17px;height:17px}.pm-word-choice,.pm-stem-choice{font-size:12px}}
@media screen and (max-width:420px){.pm-start{display:block}.pm-start p{margin-bottom:12px}.pm-print-button{width:100%;font-size:12px}.pm-depth-option>.icon{display:none}.pm-preview-head{align-items:flex-start}.pm-preview-zoom{padding:8px 7px}.pm-exact-body{max-height:60vh}}

/* Keep copy actions visible while version tabs scroll. */
@media screen {
 .pm-version-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;margin-bottom:0}
 .pm-version-tabs{min-width:0}
 .pm-version-actions{display:flex;align-items:center;gap:6px;padding-bottom:9px}
 .pm-duplicate-tab{border-style:solid}
 .pm-remove-version{min-width:44px;min-height:44px;padding:7px}
 .pm-reading-range{height:44px}
 .pm-slider-row>button{width:44px;min-width:44px}
}
@media screen and (max-width:760px){
 .pm-version-bar{grid-template-columns:minmax(0,1fr);gap:0}
 .pm-version-actions{padding:3px 0 10px}
 .pm-version-actions .pm-remove-version{margin-left:auto}
}

/* V7: task and scaffold are one teaching sheet, with an uncluttered paper hierarchy. */
.pm-with-task{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4mm 5mm;align-content:start}
.pm-with-task>.pm-mat-head,.pm-with-task>.pm-assignment,.pm-with-task>.pm-depth-cue,.pm-with-task>.pm-purpose,.pm-with-task>.pm-model-section,.pm-with-task>.pm-technique{grid-column:1/-1}
.pm-with-task>section{margin-bottom:0}
.pm-with-task>.pm-mat-head{margin-bottom:0}
.pm-with-task .pm-reading-tag{max-width:62mm}
.pm-with-task .pm-mat-title h2{font-size:15pt!important;line-height:1.65!important}
.pm-assignment{padding-bottom:3mm;border-bottom:.2mm solid #bac4b0}
.pm-assignment .pm-task-brief{font-size:11pt!important;line-height:1.85!important}
.pm-task-context{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:4mm;margin-top:2.4mm}
.pm-task-context>p{display:flex;flex-direction:column;gap:.7mm}
.pm-task-context strong{font-size:10pt;line-height:1.65;font-weight:400;color:#4d5944}
.pm-task-context span{font-size:10.5pt;line-height:1.8}
.pm-task-knowledge{margin-top:3mm;padding:2.2mm 2.8mm;border:.2mm solid #c0cbb7;background:#f8faf5}
.pm-task-knowledge h4{display:flex;align-items:center;gap:2mm;font-size:10.5pt!important;line-height:1.75;margin:0 0 1mm!important;font-weight:400}
.pm-task-knowledge h4>.icon{width:4.5mm;height:4.5mm;flex-shrink:0}
.pm-task-knowledge p{font-size:10pt!important;line-height:1.75!important;white-space:pre-line}
.pm-assignment .pm-task-book-note{font-size:10pt!important;line-height:1.75!important;color:#4f5c45;margin-top:2.5mm}
.pm-with-task .pm-plan-item{padding:2mm 2.3mm;gap:2mm}
.pm-with-task .pm-plan-picture{width:5mm}
.pm-with-task .pm-plan-picture>.icon{width:5mm;height:5mm}
.pm-with-task .pm-plan-item h4{line-height:1.7!important}
.pm-with-task .pm-plan-prompt{font-size:10pt!important;line-height:1.75!important}
.pm-with-task .pm-stem{font-size:10.5pt;line-height:1.9;padding:2mm 2.4mm}
.pm-with-task .pm-word{font-size:10pt;padding:1.2mm 1.6mm;gap:1.2mm}
.pm-with-task .pm-word>.icon{width:4.5mm;height:4.5mm}
.pm-with-task .pm-checks{margin-top:0;padding-top:0;border:0}
.pm-with-task .pm-checks>div{gap:2mm}
.pm-with-task .pm-model-section{padding-top:3mm;border-top:.2mm solid #c0cbb7}
.pm-with-task .pm-depth-cue{padding:1.6mm 2.3mm}
.pm-layout-half .pm-with-task{gap:2mm 4mm}
.pm-layout-half .pm-assignment{padding-bottom:2mm}
.pm-layout-half .pm-assignment .pm-task-brief{font-size:10.5pt!important;line-height:1.65!important}
.pm-layout-half .pm-task-context{margin-top:1.8mm;gap:3mm}
.pm-layout-half .pm-task-context span{font-size:10pt;line-height:1.6}
.pm-layout-half .pm-task-knowledge{margin-top:1.8mm;padding:1.5mm 2mm}
.pm-layout-half .pm-task-book-note{margin-top:1.7mm}
.pm-layout-half .pm-with-task .pm-plan-item{padding:1.2mm 1.8mm}
.pm-layout-half .pm-with-task .pm-stem{font-size:10pt;line-height:1.7;padding:1.2mm 1.8mm}
.pm-ink-mono .pm-task-knowledge{background:#fff!important;border-color:#747d6b}
@media screen{
 .pm-task-launch{display:inline-flex;align-items:center;gap:7px;min-height:44px;margin:6px 0 0;padding:5px 0;border:0;background:none;text-decoration:underline;text-underline-offset:4px;font:inherit;font-size:.875rem;color:#3b4a30}
 .pm-task-launch>.icon{width:19px;height:19px}
 .pm-start p{font-size:.875rem}.pm-print-button{font-size:.875rem}
 .pm-preset-card strong{font-size:.9375rem}.pm-preset-card small{font-size:.8125rem}
 .pm-version-tab strong{font-size:.875rem}.pm-version-tab span{font-size:.8125rem}
 .pm-duplicate-tab,.pm-remove-version{font-size:.875rem}.pm-version-count{font-size:.8125rem}
 .pm-profile-heading>label,.pm-profile-heading>h3{font-size:.9375rem}.pm-profile-heading>output{font-size:.875rem}.pm-profile-heading>span{font-size:.8125rem}
 .pm-depth-option{font-size:.875rem}.pm-version-details>summary{font-size:.875rem}.pm-version-details p{font-size:.875rem}
 .pm-control-group h3{font-size:1rem}.pm-stepper{font-size:.875rem}.pm-control-note{font-size:.875rem!important}
 .pm-option,.pm-ink-options .pm-option{font-size:.875rem}.pm-options summary,.pm-exact summary,.pm-print-notes summary{font-size:.875rem}
 .pm-toggle strong,.pm-toggle small{font-size:.875rem}.pm-preview-head h3{font-size:1rem}.pm-preview-head p,.pm-preview-zoom{font-size:.875rem}
 .pm-fit-summary>strong,.pm-fit-summary p,.pm-fit-summary li,.pm-print-notes p{font-size:.875rem}
}
@media screen and (max-width:760px){
 .pm-start{align-items:flex-start;flex-direction:column;gap:12px}.pm-print-button{align-self:stretch;justify-content:center;min-height:48px}
 .pm-preset-card{min-height:76px}.pm-preset-card strong{font-size:.9375rem}.pm-preset-card small{font-size:.8125rem}
 .pm-version-tab strong{font-size:.875rem}.pm-version-tab span{font-size:.8125rem}.pm-duplicate-tab{font-size:.875rem}
 .pm-profile-heading>label,.pm-profile-heading>h3{font-size:.9375rem}.pm-profile-heading>output{font-size:.875rem}.pm-depth-option{font-size:.875rem}
 .pm-layout-options .pm-option{font-size:.875rem}.pm-layout-options:has(>.pm-option:nth-child(2):last-child){grid-template-columns:1fr 1fr}
}
/* Definitions stay on the full task sheet; compact mats retain the chosen words. */
.pm-word-text{min-width:0}
.pm-word-meaning{display:block;font-size:10pt;line-height:1.7;margin-top:.8mm;color:#3d4934;overflow-wrap:break-word}
.pm-layout-full .pm-with-task>.pm-words-section,.pm-layout-full .pm-with-task>.pm-checks{grid-column:1/-1}
.pm-layout-full .pm-with-task .pm-word-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2mm}
.pm-layout-full .pm-with-task .pm-word{align-items:flex-start;padding:1.8mm 2mm}
.pm-layout-full .pm-with-task .pm-word>.icon{margin-top:.8mm}
.pm-layout-full .pm-with-task .pm-checks>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3mm}
.pm-ink-mono .pm-word-meaning{color:#202420}
.pm-task-focus{margin-top:3mm;padding-top:2mm;border-top:.2mm solid #c0cbb7}
.pm-task-focus h4{font-size:10.5pt!important;line-height:1.75!important;margin:0 0 1mm!important;font-weight:400;color:#4d5944}
.pm-task-focus p{font-size:10.5pt!important;line-height:1.8!important}
.pm-layout-half .pm-task-focus{margin-top:2mm;padding-top:1.5mm}
