@font-face { font-family: 'Young Serif'; src: url('/fonts/young-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Next'; src: url('/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --cotton: #f6f8f7;
  --paper: #ffffff;
  --chambray: #cbd7e3;
  --chambray-soft: #dfe7ee;
  --indigo: #1e2c55;
  --ink: #26335c;
  --ink-soft: #4a5777;
  --rose: #b91e55;
  --beech: #d6ae7b;
  --brass: #a4812f;
  --marker: #1f66d1;
  --stop: #a3202c;
  --warn: #805200;
  --ok: #1f6b45;
  --line: #c8d2dc;
  --weave-chambray: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='6' height='6' fill='%23cbd7e3'/%3E%3Cpath d='M0 1.5h3M3 4.5h3' stroke='%23fff' stroke-opacity='.3' stroke-width='1.1'/%3E%3Cpath d='M1.5 3v3M4.5 0v3' stroke='%23264878' stroke-opacity='.09' stroke-width='1.1'/%3E%3C/svg%3E");
  --stitch-indigo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='6'%3E%3Cpath d='M2 3h13' stroke='%231e2c55' stroke-opacity='.55' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --stitch-rose: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='6'%3E%3Cpath d='M2 3h13' stroke='%23b91e55' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --display: 'Young Serif', Georgia, serif;
  --body: 'Atkinson Next', 'Atkinson Hyperlegible', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--cotton); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img, svg, canvas { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--indigo); margin: 0; line-height: 1.12; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.45rem, 4vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
a { color: var(--indigo); text-decoration-color: var(--rose); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; padding: 10px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 10px; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: clamp(16px, 3.5vw, 40px); }

/* ---------- header and footer ---------- */
.site-top { background: var(--weave-chambray); }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--indigo); font: 400 1.4rem/1 var(--display); }
.brand svg { width: 34px; height: 38px; }
.site-nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 1rem; }
.site-nav a { text-decoration: none; padding-block: 4px; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--rose); }
.stitch-line { height: 6px; background: var(--stitch-indigo) repeat-x left center; border: 0; margin: 0; }
footer.site-foot { margin-top: 72px; padding-block: 36px 44px; background: var(--chambray-soft); font-size: 0.97rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; align-items: start; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.foot-grid h2 { font-size: 1.05rem; margin-bottom: 8px; }
.foot-note { color: var(--ink-soft); margin-top: 10px; }

/* ---------- hero bench ---------- */
.hero { background: var(--weave-chambray); padding-block: 14px 44px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "intro hoop" "tools hoop"; column-gap: clamp(24px, 4vw, 60px); align-items: start; grid-template-rows: auto 1fr; }
.hero-intro { grid-area: intro; padding-top: clamp(8px, 3vw, 34px); }
.hero-tools { grid-area: tools; }
.hoop-col { grid-area: hoop; min-width: 0; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.5; margin-top: 18px; color: var(--ink); }
#loaded-title { font-size: clamp(1.75rem, 3.2vw, 2.7rem); overflow-wrap: anywhere; line-height: 1.1; }
#loaded-format { margin-top: 12px; }
.open-row { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 24px; }
.open-hint { color: var(--ink); font-size: 1rem; }

.btn { font: 600 1.0625rem/1.2 var(--body); padding: 13px 20px; border-radius: 7px; border: 1.5px solid var(--indigo); background: var(--paper); color: var(--indigo); cursor: pointer; min-height: 48px; position: relative; }
.btn:hover { background: var(--chambray-soft); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.primary { background: var(--indigo); color: #fff; padding: 15px 26px; border: 0; font-size: 1.13rem; isolation: isolate; }
.btn.primary::after { content: ''; position: absolute; inset: 4px; border: 1.5px dashed #e6c994; border-radius: 4px; pointer-events: none; }
.btn.primary:hover { background: #2a3b70; }
.btn.small { padding: 8px 12px; min-height: 40px; font-size: 0.97rem; }

.error { margin-top: 16px; padding: 12px 14px; background: #fff; border-left: 4px solid var(--stop); color: var(--ink); }
.error strong { display: block; color: var(--stop); }

.tool-box { margin-top: 26px; background: var(--paper); border-radius: 10px; padding: 18px; box-shadow: 0 1px 0 rgba(30, 44, 85, 0.12), 0 8px 24px -14px rgba(30, 44, 85, 0.4); }
.tool-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.field { display: grid; gap: 5px; font-weight: 600; font-size: 0.97rem; color: var(--indigo); }
select, input[type='text'], input[type='number'], input[type='date'], textarea {
  font: 400 1rem/1.3 var(--body); color: var(--ink); background: #fff; border: 1.5px solid #9eadc0; border-radius: 6px; padding: 10px; width: 100%; min-height: 46px;
}
select { padding-right: 6px; }
.tool-note { margin-top: 10px; font-size: 0.98rem; color: var(--ink-soft); }
.tool-status { margin-top: 8px; font-size: 0.98rem; font-weight: 600; }
.tool-status:empty { display: none; }
.tool-status[data-level='ok'] { color: var(--ok); }
.tool-status[data-level='stop'] { color: var(--stop); }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 0.97rem; margin-top: 10px; }
.check input { width: 20px; height: 20px; accent-color: var(--indigo); }

dl.facts { margin: 12px 0 0; display: grid; gap: 0; }
.fact { display: grid; grid-template-columns: minmax(7.5em, 34%) 1fr; gap: 12px; padding-block: 8px; background: linear-gradient(to right, rgba(30,44,85,.3) 62%, transparent 0) repeat-x left bottom / 13px 1.5px; }
.fact:last-child { background: none; }
.fact dt { color: var(--ink-soft); }
.fact dd { margin: 0; font-weight: 600; color: var(--indigo); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.design-title { margin-top: 26px; font-size: 1.28rem; overflow-wrap: anywhere; }

.canvas-wrap { position: relative; width: min(100%, max(420px, 70vh)); aspect-ratio: 1 / 1; margin-inline: auto; }
#hoop { width: 100%; height: 100%; touch-action: pan-y; }
.has-zoom #hoop { cursor: grab; }
.stage-controls { position: absolute; right: 0; bottom: 3%; display: flex; flex-direction: column; gap: 6px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); color: var(--indigo); font: 600 1.25rem/1 var(--body); cursor: pointer; box-shadow: 0 2px 8px rgba(30, 44, 85, 0.25); }
.round:hover { background: var(--chambray-soft); }
.fabric-row { position: absolute; left: 0; bottom: 3%; display: flex; gap: 6px; flex-direction: column; }
.fabric-row label { display: block; cursor: pointer; }
.fabric-row input { position: absolute; opacity: 0; width: 28px; height: 28px; cursor: pointer; }
.fab-swatch { display: block; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(30, 44, 85, 0.4); }
.fabric-row input:checked + .fab-swatch { outline: 2.5px solid var(--indigo); outline-offset: 1.5px; }
.fabric-row input:focus-visible + .fab-swatch { outline: 3px solid var(--marker); outline-offset: 2px; }

.player { margin-top: 12px; }
#spools { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.spool { width: 30px; padding: 2px; background: none; border: 0; border-radius: 5px; cursor: pointer; transition: transform 0.12s ease; }
.spool svg { width: 100%; height: auto; filter: drop-shadow(0 1px 1px rgba(30, 44, 85, 0.35)); }
.spool:hover { transform: translateY(-2px); }
.spool.now { transform: translateY(-4px); }
#band { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(30, 44, 85, 0.2); }
#band i { display: block; min-width: 1px; }
#scrub { width: 100%; margin: 6px 0 0; accent-color: var(--indigo); height: 26px; cursor: pointer; }
.player-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin-top: 4px; }
.player-buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#progress { font-size: 0.97rem; font-variant-numeric: tabular-nums; }
.player select { width: auto; min-height: 40px; padding: 6px 8px; }
.mini-label { display: inline-flex; gap: 6px; align-items: center; font-size: 0.97rem; }
.mini-label input[type='checkbox'] { width: 20px; height: 20px; accent-color: var(--indigo); }

#drop-veil { position: fixed; inset: 0; z-index: 40; background: rgba(30, 44, 85, 0.86); color: #fff; display: grid; place-items: center; padding: 24px; text-align: center; font: 400 clamp(1.5rem, 3vw, 2.4rem)/1.2 var(--display); }
#drop-veil div { border: 2.5px dashed #e6c994; border-radius: 16px; padding: 48px; }

/* ---------- bench sections ---------- */
section.bench { padding-block: clamp(34px, 5vw, 56px) 0; }
.bench h2 + p { margin-top: 10px; }
.bench h2 + .field { margin-top: 14px; }
.run-two { margin-top: 20px; }
.buttons { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 10px; }
.sep + h2 { margin-top: clamp(30px, 4vw, 44px); }
#fit-verdict[data-level='none'] { display: none; }
.sub { color: var(--ink-soft); }
.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(26px, 5vw, 64px); align-items: start; }
.sep { height: 6px; background: var(--stitch-indigo) repeat-x left center; margin: 0; border: 0; }

table.stops { width: 100%; border-collapse: collapse; margin-top: 16px; font-variant-numeric: tabular-nums; }
table.stops th { text-align: left; font-size: 0.93rem; color: var(--ink-soft); font-weight: 600; padding: 6px 8px 8px 0; border-bottom: 1.5px solid var(--indigo); }
table.stops td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.stops .num { text-align: right; white-space: nowrap; }
table.stops th.num { text-align: right; }
table.stops input[type='color'] { width: 42px; height: 42px; padding: 2px; border: 1.5px solid #9eadc0; border-radius: 50%; background: #fff; cursor: pointer; display: block; }
table.stops input[type='color']::-webkit-color-swatch-wrapper { padding: 0; }
table.stops input[type='color']::-webkit-color-swatch { border: 0; border-radius: 50%; }
table.stops input[type='color']::-moz-color-swatch { border: 0; border-radius: 50%; }
table.stops input[type='text'] { min-height: 42px; border-color: transparent; background: transparent; padding-inline: 6px; }
table.stops input[type='text']:hover, table.stops input[type='text']:focus { border-color: #9eadc0; background: #fff; }
table.stops small { display: block; padding-left: 7px; color: var(--ink-soft); }

#fit-verdict { font-weight: 600; margin-top: 12px; padding: 10px 12px 10px 14px; border-left: 4px solid var(--ink-soft); background: var(--paper); }
#fit-verdict[data-level='ok'] { border-color: var(--ok); color: var(--ok); }
#fit-verdict[data-level='stop'] { border-color: var(--stop); color: var(--stop); }
#fit-verdict[data-level='note'] { border-color: var(--warn); color: var(--warn); }
ul#warnings { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.warn { padding-left: 14px; border-left: 3px solid var(--line); }
.warn strong { display: block; color: var(--indigo); }
.warn span { color: var(--ink); }
.warn.stop { border-color: var(--stop); } .warn.stop strong { color: var(--stop); }
.warn.warn { border-color: var(--brass); }
.warn.note { border-color: var(--chambray); }
.warn.ok { border-color: var(--ok); } .warn.ok strong { color: var(--ok); }
.check-note { margin-top: 12px; font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- run sheet ---------- */
.sheet-side { display: grid; gap: 14px; align-content: start; }
.sheet-side .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-side .buttons { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.sheet-paper { background: var(--paper); color: #1a2340; padding: clamp(16px, 2.8vw, 28px); border-radius: 3px; box-shadow: 0 1px 2px rgba(30, 44, 85, 0.25), 0 18px 40px -22px rgba(30, 44, 85, 0.55); font-size: 0.93rem; line-height: 1.4; }
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding-bottom: 10px; background: var(--stitch-indigo) repeat-x left bottom / 16px 3px; }
#sheet-brand { display: flex; align-items: center; gap: 10px; font: 400 1.1rem/1.2 var(--display); color: var(--indigo); }
#sheet-brand strong { font-weight: 400; }
#sheet-brand img { max-height: 44px; max-width: 150px; object-fit: contain; }
#sheet-title { font: 400 1.25rem/1.2 var(--display); text-align: right; overflow-wrap: anywhere; color: var(--indigo); }
.sheet-body { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%); gap: 18px; margin-top: 14px; align-items: start; }
#sheet-image img { width: 100%; height: auto; max-height: 280px; object-fit: contain; }
dl.sheet-facts { margin: 0; display: grid; gap: 3px; }
dl.sheet-facts > div { display: grid; grid-template-columns: 7em 1fr; gap: 8px; }
dl.sheet-facts dt { color: #4a5777; }
dl.sheet-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 14px; margin-top: 14px; }
.sheet-fields label { display: grid; gap: 2px; font-size: 0.82rem; color: #4a5777; }
.sheet-fields input { border: 0; border-bottom: 1px solid #7f8ca4; border-radius: 0; padding: 2px 0; min-height: 26px; font-size: 0.94rem; background: transparent; color: #1a2340; }
.sheet-fields .wide { grid-column: 1 / -1; }
table.sheet-threads { width: 100%; border-collapse: collapse; margin-top: 14px; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
table.sheet-threads th { text-align: left; font-weight: 600; border-bottom: 1.2px solid #1a2340; padding: 3px 6px 3px 0; color: #4a5777; }
table.sheet-threads td { border-bottom: 1px solid #d3dae3; padding: 3px 6px 3px 0; }
.num { text-align: right; white-space: nowrap; }
table.sheet-threads th.num { text-align: right; }
.chip { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.4); vertical-align: -1px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.tick { width: 28px; }
.tick::after { content: ''; display: inline-block; width: 13px; height: 13px; border: 1.2px solid #1a2340; border-radius: 2px; vertical-align: -2px; }
#sheet-credit { margin-top: 10px; font-size: 0.8rem; color: #4a5777; }
#sheet-credit:empty { display: none; }
#template-page { margin-top: 18px; background: #fff; padding: 18px; box-shadow: 0 1px 2px rgba(30, 44, 85, 0.25); overflow: auto; }
#template-img { max-width: none; }
#template-page p { font-size: 0.9rem; margin-bottom: 10px; }

/* ---------- price ---------- */
#price-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 16px; }
#price-result { background: var(--paper); padding: 20px; border-radius: 10px; box-shadow: 0 1px 0 rgba(30, 44, 85, 0.12), 0 8px 24px -14px rgba(30, 44, 85, 0.4); }
.price-total { display: flex; flex-direction: column; gap: 2px; }
.price-total span { color: var(--ink-soft); }
.price-total strong { font: 700 clamp(2.2rem, 4vw, 3rem)/1.1 var(--body); color: var(--indigo); font-variant-numeric: tabular-nums; }
.price-lines { margin: 10px 0 0; }
.link-btn { background: none; border: 0; color: var(--indigo); text-decoration: underline; text-decoration-color: var(--rose); font: inherit; cursor: pointer; padding: 4px 0; }

/* ---------- unlock ---------- */
.unlock { background: var(--weave-chambray); margin-top: clamp(40px, 6vw, 72px); padding-block: clamp(30px, 5vw, 56px); }
.unlock-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(26px, 5vw, 64px); align-items: start; }
.unlock ul { margin: 12px 0 0; padding-left: 1.2em; }
.unlock li { margin-top: 4px; }
.soon { display: inline-block; font-weight: 600; background: var(--paper); color: var(--indigo); padding: 10px 14px; border-radius: 6px; border: 1.5px dashed var(--indigo); }
.price-tag { font: 400 2.2rem/1 var(--display); color: var(--indigo); margin-bottom: 14px; }
.unlock .soon + .sub { margin-top: 10px; }
#batch-results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
#batch-results li { padding-left: 12px; border-left: 3px solid var(--ok); }
#batch-results li.failed { border-color: var(--stop); }
#batch-results strong { display: block; overflow-wrap: anywhere; }

/* ---------- content pages ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(26px, 5vw, 60px); align-items: start; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 34px; }
.prose h3 { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose .lead-note { font-size: 1.15rem; line-height: 1.55; }
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table th { text-align: left; font-weight: 400; color: var(--ink-soft); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary-table td { font-weight: 600; color: var(--indigo); padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.link-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.aside h2 { font-size: 1.25rem; }
.aside { display: grid; gap: 24px; }
table.format-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
table.format-table th { text-align: left; font-size: 0.95rem; color: var(--ink-soft); font-weight: 600; padding: 6px 12px 8px 0; border-bottom: 1.5px solid var(--indigo); }
table.format-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.page-head { background: var(--weave-chambray); padding-block: 22px 40px; }
.page-head p { margin-top: 12px; font-size: 1.15rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 18px; }
.why-grid h3 { margin-bottom: 6px; }

.pop-h { margin-top: 40px; }
.convert-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px clamp(20px, 3vw, 44px); }
.convert-index h2 { font-size: 1.35rem; }
.vh:focus-visible + label { outline: 3px solid var(--marker); outline-offset: 3px; }
label.btn { display: inline-block; }
.ad-slot { margin-block: 24px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "hoop" "tools"; }
  .hero-intro { padding-top: 6px; }
  .canvas-wrap { width: 100%; margin-top: 18px; }
  .two, .unlock-grid, .article-grid { grid-template-columns: minmax(0, 1fr); }
  .why-grid, .convert-index { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  #price-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .tool-row { grid-template-columns: minmax(0, 1fr); }
  .btn.primary, .tool-row .btn { width: 100%; }
  .sheet-body { grid-template-columns: minmax(0, 1fr); }
  .sheet-fields { grid-template-columns: 1fr 1fr; }
  .fact { grid-template-columns: minmax(6.2em, 34%) 1fr; }
  .open-hint { display: none; }
  .fabric-row { flex-direction: row; bottom: -38px; gap: 7px; }
  .fab-swatch { width: 32px; height: 32px; }
  .fabric-row input { width: 32px; height: 32px; }
  .stage-controls { bottom: -42px; flex-direction: row; }
  .canvas-wrap { margin-bottom: 54px; }
  table.stops { font-size: 0.95rem; }
  table.stops th:nth-child(5), table.stops td:nth-child(5) { display: none; }
  .spool { width: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- print: only the run sheet ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff; color: #000; }
  body > *:not(.page-main), .page-main > *:not(#runsheet), #runsheet .sheet-side, #runsheet > .wrap > h2, #runsheet > .wrap > p, #runsheet .sep { display: none !important; }
  #runsheet { padding: 0; }
  #runsheet .two { display: block; }
  .wrap { width: 100%; padding: 0; }
  .sheet-paper { box-shadow: none; padding: 0; font-size: 10.5pt; }
  #sheet-image img { max-height: 95mm; }
  #template-page { box-shadow: none; padding: 0; break-before: page; overflow: visible; }
}
