:root {
  /* Palette: emerald and mint from the original LiftUp site, gold for sparkle. */
  --emerald-950: #052e24;
  --emerald-900: #064536;
  --emerald-800: #06513f;
  --emerald-700: #075847;
  --emerald-600: #08735c;
  --emerald-500: #0d8a6d;
  --teal-400: #14b892;
  --ink-900: #142d29;
  --ink-700: #354943;
  --mint-100: #e5f4ed;
  --mint-200: #cbe9dd;
  --mint-300: #9ff0cf;
  --gold-400: #f5b52e;
  --gold-300: #ffe08a;
  --amber-700: #b45309;
  --canvas: #d3eedf;
  --brand-soft: var(--mint-100);
  --brand-deep: var(--ink-900);
  --primary: var(--emerald-700);
  --primary-hover: var(--emerald-900);
  --background: var(--canvas);
  --surface: #ffffff;
  --surface-selected: var(--mint-200);
  --highlight: var(--gold-400);
  --text-primary: var(--ink-900);
  --text-secondary: #4d625a;
  --border-subtle: #bfdfcd;
  --border-control: #8fa39a;
  --accent-soft: var(--mint-100);
  --success-text: #166534;
  --success-bg: #e3f6e8;
  --warning-text: #92400e;
  --warning-bg: #fff7e6;
  --error-text: #b42318;
  --error-bg: #fff1f0;
  --info-text: #1d4ed8;
  --info-bg: #eff6ff;
  --gradient-brand: linear-gradient(110deg, #064536 0%, #08735c 55%, #0d8a6d 100%);
  --gradient-text: linear-gradient(100deg, #075847 0%, #0d9a77 25%, #d99a12 50%, #0d9a77 75%, #075847 100%);
  --gradient-dream: linear-gradient(135deg, #bfe6d1 0%, #cdeedd 40%, #b6e2cb 75%, #d6eecb 100%);
  --gradient-glass: linear-gradient(135deg, rgb(255 255 255 / 0.9), rgb(236 249 242 / 0.78));
  --shadow-soft: 0 12px 40px rgb(6 69 54 / 0.1);
  --shadow-lift: 0 22px 55px rgb(6 69 54 / 0.2);
  --shadow-glow: 0 0 28px rgb(20 184 146 / 0.28);
  --shadow-button: 0 10px 30px rgb(8 115 92 / 0.35);
  --shadow-button-hover: 0 16px 40px rgb(245 181 46 / 0.4);
  --glow-gold-low: rgb(245 181 46 / 0.45);
  --glow-gold-high: rgb(245 181 46 / 0.55);
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 140ms;
  --motion-base: 200ms;
  --motion-slow: 350ms;
  --motion-showcase: 750ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --font: Inter, sans-serif;
  --top: 72px;
  --rail-width: 260px;
  --card-radius: 1.5rem;
  --card-surface: var(--surface);
  --rail: var(--brand-soft);
  --accent: var(--primary);
  --focus: var(--emerald-600);
  --timeline-line: var(--mint-200);
  color-scheme: light;
}

html[data-theme="dark"] {
  --background: var(--emerald-950);
  --card-surface: var(--ink-900);
  --rail: var(--emerald-950);
  --brand-soft: var(--emerald-900);
  --accent-soft: var(--emerald-900);
  --surface-selected: var(--emerald-800);
  --text-primary: var(--mint-100);
  --text-secondary: var(--mint-200);
  --accent: var(--mint-300);
  --border-subtle: var(--emerald-800);
  --border-control: var(--mint-200);
  --brand-deep: var(--mint-100);
  --timeline-line: var(--emerald-600);
  --gradient-dream: linear-gradient(135deg, var(--emerald-950), var(--emerald-900));
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font: 400 1rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--surface-selected); color: var(--text-primary); }
img, svg { max-width: 100%; }
.icon { flex: none; }
button, input, select, textarea, code, pre, kbd, samp { font: inherit; color: inherit; }
button, a, input, select, summary, textarea { touch-action: manipulation; }
a { color: var(--accent); text-underline-offset: .2em; }
button, .button {
  min-height: 44px;
  border: 1px solid var(--border-control);
  border-radius: 999px;
  padding: .52rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--card-surface);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--accent-soft); border-color: var(--accent); }
.primary {
  background: var(--gradient-brand) left center / 145% 100%;
  border-color: var(--emerald-700);
  color: var(--surface);
}
.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.icon-button { width: 44px; min-width: 44px; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
html[data-theme="dark"] :focus-visible { outline: 2px solid var(--mint-300); box-shadow: 0 0 0 3px var(--emerald-600); }
#main:focus, [tabindex="-1"]:focus { outline: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -10rem;
  left: 1rem;
  z-index: 10;
  background: var(--primary);
  border-radius: .75rem;
  color: var(--surface);
  padding: .75rem 1rem;
}
.skip:focus { top: .75rem; }
h1, h2, h3, h4, h5, h6 { line-height: 1.35; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.25vw, 3.65rem); margin: .5rem 0 .8rem; }
h2 { font-size: clamp(1.6rem, 2.45vw, 2.125rem); margin: 2.75rem 0 1rem; }
h3 { font-size: 1.3rem; margin: 1.55rem 0 .6rem; }
p { margin: 0 0 1rem; }
small, .eyebrow { font-size: .82rem; font-weight: 600; color: var(--text-secondary); }
.eyebrow { color: var(--accent); }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--text-secondary); }
h1, h2, h3, h4, [id="placement"], [id="roadmap"] { scroll-margin-top: calc(var(--top) + 1rem); }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: var(--top);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .5rem clamp(.875rem, 2.4vw, 2.25rem);
  background: var(--rail);
  border-bottom: 1px solid var(--border-subtle);
}
.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}
.brand img { flex: none; }
.brand small { display: block; font-size: .72rem; font-weight: 500; line-height: 1.65; }
.topright { margin-left: auto; display: flex; align-items: center; gap: .7rem; }
.mainlink { font-size: .84rem; white-space: nowrap; }
#langs {
  display: flex;
  gap: 2px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 2px;
  background: var(--card-surface);
}
#langs button { min-width: 44px; border: 0; padding: 0; font-size: .8rem; }
#langs button[aria-pressed="true"] { background: var(--surface-selected); color: var(--text-primary); }

.shell { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.workspace, #main, #page, .article-body { min-width: 0; }
#page { width: 100%; max-width: 860px; margin: auto; padding: 2.4rem clamp(1rem, 3.4vw, 3rem) 4rem; overflow-wrap: anywhere; }
#page.home { max-width: 1280px; padding-top: clamp(1rem, 2.7vw, 2.5rem); }
.collapsed .shell { grid-template-columns: minmax(0, 1fr); }
.collapsed #sidebar { display: none; }

#sidebar {
  position: sticky;
  top: var(--top);
  height: calc(100dvh - var(--top));
  overflow: auto;
  background: var(--rail);
  border-right: 1px solid var(--border-subtle);
}
.sidehead { padding: 1.15rem 1rem .35rem; }
.sidehead h2 { font-size: 1rem; margin: 0 0 .75rem; }
.nav-search { position: relative; display: block; }
#nav-search-icon { position: absolute; inset: 0 auto 0 .75rem; display: flex; align-items: center; pointer-events: none; color: var(--text-secondary); }
#nav-search {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: .35rem .75rem .35rem 2.35rem;
  border: 1px solid var(--border-control);
  border-radius: 999px;
  background: var(--card-surface);
  font-size: .83rem;
}
#nav-search::placeholder { color: var(--text-secondary); opacity: 1; }
.sideprogress { padding: .75rem 1rem 1rem; font-size: .78rem; color: var(--text-secondary); }
progress { display: block; width: 100%; height: .55rem; margin-top: .5rem; accent-color: var(--accent); }
.navgroup { padding: .8rem .7rem; border-top: 1px solid var(--border-subtle); }
.navgroup h2 { margin: 0 .4rem .35rem; color: var(--text-secondary); font-size: .78rem; letter-spacing: 0; }
.navgroup a {
  display: flex;
  gap: .55rem;
  align-items: center;
  min-height: 44px;
  padding: .35rem .6rem;
  border-radius: .65rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: .85rem;
  line-height: 1.65;
}
.navgroup a:hover { background: var(--background); }
.navgroup a[aria-current] {
  background: var(--surface-selected);
  box-shadow: inset 3px 0 var(--emerald-600);
  font-weight: 700;
}
.num { min-width: 2.25rem; color: var(--accent); font-size: .73rem; font-weight: 700; }
.num:empty { display: none; }
.navgroup .icon { margin-left: auto; color: var(--accent); }
.nav-empty { padding: .75rem 1rem; font-size: .85rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3.75rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  border-radius: var(--card-radius);
  background: var(--gradient-dream);
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 4.25rem); letter-spacing: -.045em; margin: .8rem 0 1rem; }
.hero .eyebrow {
  display: inline-flex;
  padding: .2rem .75rem;
  border-radius: 999px;
  background: var(--card-surface);
  box-shadow: var(--shadow-soft);
  font-size: .72rem;
}
.hero .actions { margin-bottom: 0; }
.hero .primary, .mainlink { box-shadow: var(--shadow-button); }
.hero figure {
  border: .35rem solid var(--card-surface);
  border-radius: 30% 30% 1.5rem 1.5rem / 37% 37% 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.hero figure img { aspect-ratio: 1.12; object-fit: cover; object-position: 53% center; }
.hero-enter > div { animation: hero-rise var(--motion-slow) var(--ease-enter) both; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.brand-highlight { color: var(--accent); position: relative; display: inline-block; }
.brand-underline {
  position: absolute;
  bottom: -.05em;
  left: 0;
  width: 100%;
  height: .22em;
  color: var(--highlight);
  pointer-events: none;
}
.hero-enter .brand-underline path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-underline 650ms var(--ease-enter) 150ms forwards;
}
@keyframes draw-underline { to { stroke-dashoffset: 0; } }

figure { margin: 0; border-radius: 1rem; overflow: hidden; }
figure img { display: block; width: 100%; height: auto; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; margin: 1.1rem 0; }
.cardgrid, .summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card, .summary-grid > div, .callout, .checkpoint, .placement, .diagram, .remember, .matrix {
  min-width: 0;
  background: var(--card-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: clamp(1rem, 2.1vw, 1.5rem);
  box-shadow: var(--shadow-soft);
}
.card h3 { margin: 0 0 .45rem; }
.card p { margin: 0; }
.card figure { margin-bottom: .8rem; }
.home .cardgrid { margin-top: 1rem; }
.card > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.summary-grid { margin: 1.4rem 0; }
.summary-grid small, .summary-grid strong { display: block; }
.summary-grid strong { font-size: 1.1rem; }
.profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.5rem; }
.profile-grid .card { display: flex; flex-direction: column; gap: .65rem; }
.profile-grid .actions { margin: auto 0 0; }
.profile-grid .button { font-size: .82rem; }
.chapter-toc {
  margin: 1rem 0;
  border: 1px solid var(--border-subtle);
  background: var(--card-surface);
  border-radius: 1rem;
  padding: 0 1rem;
}
summary { cursor: pointer; font-weight: 700; padding-block: .55rem; min-height: 44px; }
.chapter-toc nav { display: flex; flex-wrap: wrap; gap: .25rem; max-height: 22vh; overflow: auto; padding: .15rem .3rem .65rem; }
.chapter-toc button { font-size: .79rem; padding: .3rem .75rem; justify-content: flex-start; }
.callout, .checkpoint, .remember { margin: 1.25rem 0; border-inline-start: 4px solid var(--emerald-600); }
.callout.note, .remember { background: var(--accent-soft); }
.callout.warn { border-inline-start-color: var(--warning-text); background: var(--warning-bg); color: var(--warning-text); }
.callout.warn a { color: inherit; }
.callout > :last-child, .checkpoint > :last-child, .remember > :last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: 1rem; margin: 1.05rem 0; background: var(--card-surface); }
table { width: 100%; border-collapse: collapse; font-size: .86rem; text-align: left; }
th, td { padding: .7rem .8rem; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
th { background: var(--accent-soft); }
tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.table-wrap table { min-width: 32rem; }
.matrix-mobile, .table-cards { display: none; }
.placement label, .estimator label { display: block; font-weight: 600; margin-bottom: .65rem; }
select, input[type="number"], input[type="text"], textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .5rem .65rem;
  background: var(--card-surface);
  border: 1px solid var(--border-control);
  border-radius: .65rem;
}
output { display: block; margin-top: 1rem; padding: 1rem; background: var(--accent-soft); border-radius: 1rem; }
.matrix > svg { display: block; width: 100%; height: auto; }
.matrix text { fill: var(--text-primary); font-family: var(--font); font-size: 14px; }
.matrix .matrix-label { font-size: 12px; }
.matrix a rect { fill: var(--accent-soft); stroke: var(--border-subtle); stroke-width: 1.5; }
.matrix a:hover rect, .matrix a:focus rect { stroke: var(--accent); stroke-width: 3; }
.matrix .path { stroke: var(--accent); fill: none; stroke-width: 2; stroke-dasharray: 500; }
.matrix.visible .path { animation: matrix-in var(--motion-slow) var(--ease-enter) both; }
@keyframes matrix-in { from { stroke-dashoffset: 500; } }
.matrix .transfer { stroke: var(--text-secondary); stroke-dasharray: 5 5; fill: none; }
.diagram-caption { color: var(--text-secondary); font-size: .84rem; margin: .75rem 0 0; }
.examrow { display: grid; grid-template-columns: 1fr 2fr; gap: .75rem; border-bottom: 1px solid var(--border-subtle); padding: .75rem 0; }

.week-group { margin: .85rem 0; border-radius: var(--card-radius); padding: .2rem 1rem .65rem; background: var(--card-surface); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-soft); }
.week-group > summary { color: var(--accent); }
.week-count { margin-inline-start: .65rem; white-space: nowrap; }
.timeline-status { color: var(--text-secondary); font-size: .9rem; }
.timeline { position: relative; list-style: none; padding: 0 0 0 1.05rem; margin: .6rem 0 .3rem; }
.timeline::before {
  content: "";
  position: absolute;
  inset: 1rem auto 1rem .12rem;
  width: 2px;
  background: var(--timeline-line);
  transform-origin: top;
}
.timeline.is-revealed::before { animation: timeline-line var(--motion-showcase) var(--ease-enter) both; }
@keyframes timeline-line { from { transform: scaleY(0); } }
.timeline li { position: relative; margin: 0 0 .65rem; background: var(--accent-soft); border: 1px solid var(--border-subtle); border-radius: 1rem; padding: .7rem .8rem; }
.timeline li.is-revealed { animation: timeline-in var(--motion-base) var(--ease-enter) both; }
@keyframes timeline-in { from { opacity: .45; transform: translateY(6px); } }
.timeline li::before { content: ""; position: absolute; left: -1.18rem; top: 1.4rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); }
.timeline label { display: flex; align-items: flex-start; gap: .6rem; min-height: 44px; cursor: pointer; }
.timeline label > span { min-width: 0; }
.timeline-title { display: block; margin-bottom: .2rem; }
.timeline-emphasis { font-weight: 600; }
.timeline .checked { border-color: var(--accent); }
.timeline .pack-link { margin: .55rem 0 0 1.8rem; font-size: .87rem; }
.pack-mode { display: flex; flex-wrap: wrap; gap: .4rem; }
.pack-mode button[aria-pressed="true"], .pack-light[aria-pressed="true"] {
  background: var(--surface-selected);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.pack-header [data-mode-save-status]:empty { margin: 0; }
.pack-header .pack-worker-note, .pack-header .pack-exam-rule { margin-block: .75rem; }
.pack-exam-rule { display: flex; align-items: baseline; gap: .6rem; }
.pack-exam-rule p { margin: 0; }
.pack-exam-rule strong { display: block; }
.pack-light { margin-block: 0 .8rem; }
.pack-calendar > h3, .pack-day .pack-row h4 { margin: 0; }
.pack-review {
  min-width: 0;
  padding-inline: .8rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
}
.pack-review[open] { padding-bottom: .8rem; }
.pack-day .task-content { min-width: 0; overflow-wrap: anywhere; }
.pack-day .task-meta { flex-wrap: wrap; }
.task-device { display: inline-flex; align-items: center; gap: .2rem; }
.task-device .icon, .pack-task-link .icon { width: 1rem; height: 1rem; }
.pack-day .pack-task-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: calc(100% - 1.75rem);
  margin-inline-start: 1.75rem;
  min-height: 36px;
  font-size: .88rem;
  overflow-wrap: anywhere;
}
.pack-task-link span { min-width: 0; }
.pack-score-summary { margin-block: .75rem; }
.pack-score-summary ul { margin: .25rem 0 0; padding-inline-start: 1.25rem; }
.practice-set[id] { scroll-margin-top: calc(var(--top) + 1rem); }
.practice-set, .practice-question { min-inline-size: 0; overflow-wrap: anywhere; }
.practice-question legend { max-inline-size: 100%; }
.practice-set, .practice-set *, .practice-model, .practice-model * { animation: none; transition: none; }
.practice-set .practice-actions { flex-wrap: wrap; }
.practice-recording { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.practice-recording audio { width: 100%; max-width: 20rem; }
.practice-criteria { margin-block: .25rem .75rem; }
.practice-model { margin-block: .5rem; }
input[type="checkbox"], input[type="radio"] { flex: none; width: 1.15rem; height: 1.15rem; margin: .28em 0 0; accent-color: var(--accent); }
.timeline-controls { margin-top: .8rem; }
.print-page { font-size: .85rem; margin: .15rem 0 .45rem; }

.lesson-end { border-top: 1px solid var(--border-subtle); margin-top: 2.5rem; padding-top: 1.5rem; }
footer { border-top: 1px solid var(--border-subtle); padding: 1.1rem; text-align: center; font-size: .8rem; color: var(--text-secondary); }
footer p { margin-bottom: .25rem; }
footer p:last-child { margin-bottom: 0; }
.fallback { font-size: .86rem; color: var(--text-secondary); }
hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 1.6rem 0; }
pre { overflow: auto; white-space: pre-wrap; }

@media (max-width: 999px) {
  :root { --top: 66px; }
  .shell, .collapsed .shell { display: block; }
  #sidebar { display: none; position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .menu-open #sidebar { display: block; }
  .top { gap: .55rem; }
  .chapter-toc nav { max-height: none; }
  .profile-grid { grid-template-columns: 1fr; }
}
@container (max-width: 699px) {
  .matrix > svg { display: none; }
  .matrix-mobile { display: grid; gap: .85rem; }
  .matrix-lane { min-width: 0; border-top: 3px solid var(--lane); padding-top: .55rem; }
  .matrix-lane h3 { margin: 0 0 .4rem; }
  .matrix-lane a { display: grid; grid-template-columns: 1fr auto; gap: .15rem .4rem; background: var(--accent-soft); border: 1px solid var(--border-subtle); border-radius: .7rem; padding: .55rem .7rem; margin: .4rem 0; color: var(--text-primary); text-decoration: none; }
  .matrix-lane a:hover { border-color: var(--accent); }
  .matrix-lane a small { grid-column: 1/-1; }
  .matrix-lane a span { font-size: .82rem; align-self: center; }
  .matrix-lane p { font-size: .85rem; margin: .6rem 0 0; }
  .table-wrap.has-cards { display: none; }
  .table-cards { display: grid; gap: .65rem; margin: 1rem 0; }
  .table-cards dl { margin: 0; padding: .85rem; border: 1px solid var(--border-subtle); border-radius: .8rem; background: var(--card-surface); }
  .table-cards dt { font-size: .78rem; font-weight: 600; color: var(--text-secondary); margin-top: .5rem; }
  .table-cards dt:first-child { margin-top: 0; }
  .table-cards dd { margin: .1rem 0 0; }
  .table-wrap table { min-width: 0; }
  .hero { grid-template-columns: 1fr; }
  .hero figure { border-radius: 1.25rem; }
  .hero figure img { aspect-ratio: 1.8; }
}
.article-body { container-type: inline-size; }
@media (max-width: 520px) {
  .top { padding-inline: .5rem; gap: .35rem; }
  .topright { gap: .25rem; }
  .brand { font-size: .82rem; gap: .3rem; }
  .brand img { width: 24px; height: 27px; }
  .brand small { font-size: .65rem; }
  .mainlink { padding-inline: .6rem; }
  #page { padding-top: 1.2rem; }
  .cardgrid, .summary-grid { grid-template-columns: 1fr; }
  .hero .actions > * { flex: 1 1 100%; }
  .examrow { grid-template-columns: 1fr; gap: .1rem; }
}
@media (max-width: 345px) {
  .brand small { display: none; }
  .brand img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; --motion-base: 0ms; --motion-slow: 0ms; --motion-showcase: 0ms; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-enter .brand-underline path { stroke-dashoffset: 0; }
}
@media print {
  @page { margin: 15mm; }
  html[data-theme], :root {
    color-scheme: light;
    --background: var(--surface);
    --card-surface: var(--surface);
    --text-primary: var(--ink-900);
    --text-secondary: var(--ink-700);
    --accent: var(--primary);
    --accent-soft: var(--mint-100);
  }
  body { font-size: 10pt; }
  .shell, .workspace, #main { display: block !important; width: 100%; }
  #sidebar, .top, .skip, .chapter-toc, .timeline-controls, .print-page, .lesson-end, .save-status, footer, .table-cards, .pack-link { display: none !important; }
  #page { max-width: none; padding: 0; width: 100%; }
  .table-wrap.has-cards { display: block !important; }
  .table-wrap { overflow: visible; }
  table, .table-wrap table { min-width: 0; font-size: 9pt; }
  thead { display: table-header-group; }
  tr, .timeline li, .summary-grid > div, .checkpoint { break-inside: avoid; }
  h1, h2, h3, summary { break-after: avoid; }
  h1 { font-size: 25pt; }
  h2 { font-size: 18pt; margin-top: 20px; }
  .week-group { padding: 6px; border: 0; }
  .week-group::details-content { content-visibility: visible !important; display: block !important; height: auto !important; }
  .matrix > svg { display: block; }
  .matrix-mobile { display: none; }
}
