:root {
  --ink: #172033;
  --muted: #586174;
  --paper: #ffffff;
  --canvas: #eef1f5;
  --line: #d6dce7;
  --accent: #1f5fbf;
  --accent-dark: #16488f;
  --soft: #edf4ff;
  --warning: #fff7df;
  --code: #111827;
  --code-text: #e5edf8;
  --radius: 0.5rem;
  --measure: 74rem;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.62; }
a { color: var(--accent-dark); text-underline-offset: 0.18em; }
button, select, textarea { font: inherit; }
button, select { min-height: 2.75rem; }
:focus-visible { outline: 3px solid #f4a024; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 20; padding: 0.7rem 1rem; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.65rem max(1rem, calc((100vw - var(--measure)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(10px);
}
.wordmark { color: var(--ink); font-weight: 800; text-decoration: none; }
.breadcrumb { display: flex; align-items: center; min-width: 0; gap: 0.45rem; color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.breadcrumb a { color: var(--accent-dark); font-weight: 750; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { overflow: hidden; color: var(--ink); font-weight: 800; text-overflow: ellipsis; }
.toolbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.toolbar-actions label { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.section-navigation { max-width: 15rem; }
select { padding: 0 2.25rem 0 0.7rem; border: 1px solid #9ca8bb; border-radius: var(--radius); background: #fff; color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid #9ca8bb;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { border-color: var(--accent); }
.button-primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button-primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }

main { width: min(100% - 2rem, var(--measure)); margin: 2rem auto 5rem; }
.toc-page, .course-document, .lab-heading, .lab-context, .lab-workspace, .lab-challenge {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 1rem 3rem rgb(26 39 65 / 0.08);
}
.toc-page { min-height: 54rem; padding: clamp(2rem, 6vw, 5rem); }
.document-mark { padding-bottom: 1.25rem; border-bottom: 3px solid var(--accent); color: var(--muted); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.eyebrow, .section-number { margin: 2rem 0 0.45rem; color: var(--accent); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.025em; }
h1 { max-width: 18ch; margin: 0; font-size: clamp(2.4rem, 7vw, 4.8rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { margin: 0 0 0.55rem; font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.toc-intro, .lead { max-width: 48rem; color: var(--muted); font-size: 1.12rem; }
.toc-intro { margin-top: 1rem; }
.days-overview { margin: 2.25rem 0; }
.day-overview { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfcfe; }
.day-overview summary { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; align-items: center; gap: 0.35rem 1rem; padding: 1rem 1.15rem; cursor: pointer; list-style: none; }
.day-overview summary::-webkit-details-marker { display: none; }
.day-overview summary::after { grid-column: 3; grid-row: 1 / 3; content: "+"; color: var(--accent); font-size: 1.6rem; font-weight: 500; }
.day-overview[open] summary::after { content: "−"; }
.day-overview summary:hover { background: var(--soft); }
.day-label { grid-column: 1; grid-row: 1 / 3; color: var(--accent); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.day-overview summary strong { grid-column: 2; }
.day-duration { grid-column: 2; color: var(--muted); font-size: 0.82rem; }
.day-sections { padding: 0 1.15rem 1.15rem; border-top: 1px solid var(--line); }
.day-sections .toc-list { margin: 0; }
.toc-list { display: grid; gap: 0; margin: 2.25rem 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.toc-list a { display: grid; grid-template-columns: 3rem 1fr; gap: 0.75rem; padding: 0.72rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.toc-list span { color: var(--accent); font-variant-numeric: tabular-nums; }
.toc-list a:hover strong { color: var(--accent-dark); }
.toc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 0; }
.toc-meta div { padding-top: 0.75rem; border-top: 3px solid var(--ink); }
.toc-meta dt { color: var(--muted); font-size: 0.8rem; font-weight: 750; text-transform: uppercase; }
.toc-meta dd { margin: 0.2rem 0 0; font-weight: 700; }

.course-document { margin-top: 2rem; }
.lesson-section { padding: clamp(2rem, 6vw, 5rem); border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.lesson-section:first-child { border-top: 0; }
.section-number { margin-top: 0; }
.section-heading-number { display: inline-block; margin-right: 4px; color: var(--accent); font-size: .46em; font-weight: 850; letter-spacing: .1em; vertical-align: .25em; }
.section-heading-number::after { content: "."; }
.lesson-lab-action { margin: 1.5rem 0 0; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.lesson-actions .lesson-lab-action { margin: 0; }
.quiz-dialog {
  width: min(calc(100% - 2rem), 54rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1.5rem 5rem rgb(15 25 42 / .35);
}
.quiz-dialog::backdrop { background: rgb(12 20 34 / .74); backdrop-filter: blur(4px); }
.quiz-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; border-bottom: 1px solid var(--line); background: #fff; }
.quiz-dialog-heading { min-width: 0; }
.quiz-dialog-kicker { margin: 0 0 .25rem; color: var(--accent-dark); font-size: .72rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.quiz-dialog-title { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.quiz-close { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.quiz-close:hover { border-color: var(--accent); }
.quiz-dialog-body { max-height: calc(100vh - 8rem); padding: 1.35rem; overflow-y: auto; }
.quiz-intro { margin-top: 0; color: var(--muted); }
.quiz-progress-card { padding: 1rem 1.1rem; border-left: 4px solid var(--accent); background: var(--soft); }
.quiz-progress-card p { margin: 0; }
.quiz-progress-card p + p { margin-top: .45rem; }
.quiz-score { color: var(--accent-dark); font-weight: 850; }
.quiz-setting { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .7rem; margin-top: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.quiz-setting:has(input:checked) { border-color: var(--accent); background: #fbfcff; }
.quiz-setting input { width: 1.05rem; height: 1.05rem; margin: .12rem 0 0; accent-color: var(--accent); }
.quiz-summary-actions, .quiz-question-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; margin-top: 1.25rem; }
.quiz-question-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .82rem; font-weight: 750; }
.quiz-level { padding: .25rem .55rem; border-radius: 99rem; background: var(--soft); color: var(--accent-dark); }
.quiz-level-advanced { background: #fff2d6; color: #7b4d00; }
.quiz-question-prompt { margin: 1rem 0 .35rem; font-size: clamp(1.2rem, 3vw, 1.6rem); }
.quiz-question-hint { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
.quiz-options { display: grid; gap: .65rem; margin: 0; padding: 0; border: 0; }
.quiz-option { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .75rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.quiz-option:hover { border-color: var(--accent); background: #fbfcff; }
.quiz-option:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.quiz-option input { width: 1.05rem; height: 1.05rem; margin: .13rem 0 0; accent-color: var(--accent); }
.quiz-option-copy { line-height: 1.45; }
.quiz-review-list { display: grid; gap: 1rem; }
.quiz-review-item { padding: 1rem 1.1rem; border: 1px solid var(--line); border-left: 4px solid #8b97aa; border-radius: var(--radius); }
.quiz-review-item.is-correct { border-left-color: #26734d; }
.quiz-review-item.is-incorrect { border-left-color: #b7791f; }
.quiz-review-question { margin: 0 0 .45rem; font-size: 1rem; line-height: 1.45; }
.quiz-review-status { margin: 0 0 .8rem; color: var(--muted); font-size: .8rem; font-weight: 850; text-transform: uppercase; }
.quiz-review-item.is-correct .quiz-review-status { color: #26734d; }
.quiz-review-item.is-incorrect .quiz-review-status { color: #8a5100; }
.quiz-review-details { display: grid; grid-template-columns: minmax(8rem, .35fr) minmax(0, 1fr); gap: .35rem 1rem; margin: 0; }
.quiz-review-details dt { font-weight: 800; }
.quiz-review-details dd { margin: 0; color: var(--muted); }
.quiz-immediate-review { display: grid; gap: .8rem; }
.quiz-immediate-review .quiz-review-question, .quiz-immediate-review .quiz-review-status { margin-bottom: 0; }
.quiz-feedback-options { display: grid; gap: .6rem; }
.quiz-feedback-option { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.quiz-feedback-option.is-selected { border-color: #b7791f; background: #fff8e8; }
.quiz-feedback-option.is-correct { border-color: #26734d; background: #edf8f2; }
.quiz-feedback-option-copy { min-width: 0; line-height: 1.45; }
.quiz-feedback-badges { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.quiz-feedback-badge { padding: .2rem .45rem; border-radius: 99rem; background: rgb(255 255 255 / .78); color: var(--muted); font-size: .68rem; font-weight: 800; }
.quiz-feedback-explanation { padding: 1rem 1.1rem; border-left: 4px solid var(--accent); background: var(--soft); }
.quiz-feedback-explanation p { margin: .35rem 0 0; color: var(--muted); }
.section-copyright { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .5rem 1rem; margin-top: 2.5rem; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; letter-spacing: .03em; }
.section-copyright-notice { text-align: center; }
.section-copyright a { justify-self: end; color: inherit; text-align: right; }
.section-legal-links { display: flex; flex-wrap: wrap; justify-self: end; justify-content: flex-end; gap: .35rem .8rem; }
.section-visual { margin: 1.5rem 0; break-inside: avoid; }
.section-visual img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--code); }
.section-visual figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: .55rem; color: var(--muted); font-size: .78rem; }
.section-visual figcaption a { flex: 0 0 auto; }
.extra-mile { margin: 1.5rem 0; overflow: hidden; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: #fbfcfe; }
.extra-mile summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; font-weight: 800; cursor: pointer; list-style: none; }
.extra-mile summary::-webkit-details-marker { display: none; }
.extra-mile summary::after { flex: 0 0 auto; content: "+"; color: var(--accent); font-size: 1.25rem; font-weight: 600; }
.extra-mile[open] summary { border-bottom: 1px solid var(--line); background: var(--soft); }
.extra-mile[open] summary::after { content: "−"; }
.extra-mile > :not(summary) { margin: 0; padding: 1rem; color: var(--muted); }
.learning-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.note, .checkpoint, .completion { margin: 1.5rem 0; padding: 1rem 1.15rem; border-left: 4px solid var(--accent); background: var(--soft); }
.note p, .checkpoint p, .completion p { margin-bottom: 0; }
.warning { border-color: #b7791f; background: var(--warning); }
.checkpoint strong { display: block; margin-bottom: 0.35rem; color: var(--accent-dark); }
.completion { border-color: #26734d; background: #edf8f2; }
.steps { display: grid; gap: 0.7rem; padding-left: 1.4rem; }
.steps li { padding-left: 0.35rem; }
pre { max-width: 100%; margin: 1.35rem 0; padding: 1.15rem; overflow-x: auto; border-radius: var(--radius); background: var(--code); color: var(--code-text); font: 0.9rem/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; tab-size: 2; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
:not(pre) > code { padding: 0.08em 0.32em; border-radius: 0.25rem; background: #edf0f5; font-size: 0.92em; }
table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
th, td { padding: 0.7rem 0.8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: #f3f5f8; font-size: 0.82rem; text-transform: uppercase; }
.api-list { margin: 1.5rem 0; }
.api-list div { display: grid; grid-template-columns: minmax(13rem, 0.7fr) 1.3fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.api-list dt { font-weight: 750; }
.api-list dd { margin: 0; color: var(--muted); }

.lab-page { min-height: 100vh; }
.lab-shell { width: min(100% - 2rem, 88rem); }
.lab-heading, .lab-context, .lab-challenge { padding: clamp(1.5rem, 4vw, 2.5rem); }
.lab-heading h1 { max-width: 24ch; font-size: clamp(2rem, 5vw, 3.6rem); }
.lab-heading .eyebrow { margin-top: 0; }
.lab-context { margin-top: 1rem; border-left: 4px solid var(--accent); }
.lab-context h2 { margin-bottom: .5rem; font-size: 1.35rem; }
.lab-context > p:last-child { margin-bottom: 0; }
.lab-guidance { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.lab-guidance summary { font-weight: 800; cursor: pointer; }
.lab-guidance ol { margin-bottom: 0; padding-left: 1.4rem; }
.lab-workspace { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 1rem; }
.editor-panel, .output-panel { display: flex; min-width: 0; padding: 1rem; flex-direction: column; }
.output-panel { border-top: 1px solid var(--line); border-left: 0; background: #f7f8fa; }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.panel-heading h2 { margin: 0; font-size: 1.2rem; }
.panel-heading span { color: var(--muted); font-size: 0.8rem; }
textarea { display: block; width: 100%; min-height: 30rem; resize: vertical; padding: 1rem; border: 1px solid #8b97aa; border-radius: var(--radius); background: var(--code); color: var(--code-text); font: 0.9rem/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; tab-size: 2; }
.code-editor { position: relative; min-height: 30rem; overflow: hidden; border: 1px solid #8b97aa; border-radius: var(--radius); background: #1e1e1e; }
.code-editor:focus-within { outline: 3px solid #f4a024; outline-offset: 3px; }
pre#editor-highlight, .editor-highlight, .code-editor textarea { width: 100%; min-height: 30rem; margin: 0; padding: 1rem; border: 0; border-radius: 0; white-space: pre; overflow: auto; font: 0.9rem/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; tab-size: 2; }
pre#editor-highlight, .editor-highlight { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: #1e1e1e; color: #d4d4d4; }
.code-editor textarea { position: relative; z-index: 1; background: transparent; color: transparent; caret-color: #ffffff; -webkit-text-fill-color: transparent; }
.code-editor textarea:focus-visible { outline: 0; }
.code-editor textarea::selection { background: rgb(38 79 120 / 0.78); color: transparent; }
.editor-highlight .token-comment, .editor-highlight .token-comment * { color: #6a9955; }
.editor-highlight .token-keyword, .editor-highlight .token-literal, .editor-highlight .token-boolean, .editor-highlight .token-null { color: #569cd6; }
.editor-highlight .token-string, .editor-highlight .token-template, .editor-highlight .token-regex { color: #ce9178; }
.editor-highlight .token-number { color: #b5cea8; }
.editor-highlight .token-function { color: #dcdcaa; }
.editor-highlight .token-variable, .editor-highlight .token-identifier, .editor-highlight .token-property, .editor-highlight .token-parameter { color: #9cdcfe; }
.editor-highlight .token-class, .editor-highlight .token-constant { color: #4ec9b0; }
.editor-highlight .token-operator, .editor-highlight .token-punctuation { color: #d4d4d4; }
.lab-actions { display: flex; gap: 0.75rem; margin-top: 0.85rem; }
.output-panel pre { min-height: 30rem; margin-top: 0; margin-bottom: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.lab-challenge { margin-top: 1rem; border-left: 4px solid var(--accent); }
.lab-challenge h2 { font-size: 1.35rem; }
#sandbox { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); border: 0; }
.lab-footer { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; width: min(100% - 2rem, 88rem); margin: 0 auto 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.lab-brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ink); text-decoration: none; }
.lab-brand::after { position: absolute; inset: 0; z-index: 1; content: ""; }
.lab-brand:focus-visible::after { outline: 3px solid #f4a024; outline-offset: 3px; }
.lab-brand img { width: 4.5rem; height: 4.5rem; object-fit: contain; }
.lab-brand-copy { display: grid; min-width: 15rem; }
.lab-brand-copy strong { font-size: 1.35rem; letter-spacing: .22em; line-height: 1.1; }
.lab-brand-copy > span:last-child { font-size: .65rem; font-weight: 800; letter-spacing: .14em; }
.lab-brand-rule { display: block; height: 2px; margin: .35rem 0 .3rem; background: currentColor; }
.lab-runtime { display: grid; gap: .2rem; margin: 0; font-size: .75rem; text-align: right; pointer-events: none; }
.lab-runtime strong { color: var(--ink); }
.lab-runtime a { position: relative; z-index: 2; color: inherit; opacity: .78; pointer-events: auto; }
.lab-runtime a:hover { opacity: 1; }

@media (min-width: 120rem) {
  .lab-workspace { grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr); }
  .output-panel { border-top: 0; border-left: 1px solid var(--line); }
}

@media (max-width: 48rem) {
  .toolbar { position: static; align-items: flex-start; flex-direction: column; }
  .breadcrumb { max-width: 100%; white-space: normal; }
  .toolbar-actions { width: 100%; flex-wrap: wrap; }
  .section-navigation, .toolbar-actions select { flex: 1 1 10rem; max-width: none; }
  .toolbar-actions .button { flex: 1 1 100%; }
  .lesson-actions .button { flex: 1 1 100%; }
  .quiz-dialog { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); }
  .quiz-dialog-body { max-height: calc(100vh - 7.5rem); padding: 1rem; }
  .quiz-review-details { grid-template-columns: 1fr; gap: .15rem; }
  .quiz-review-details dd + dt { margin-top: .55rem; }
  .quiz-feedback-option { align-items: flex-start; flex-direction: column; }
  .quiz-feedback-badges { justify-content: flex-start; }
  main, .lab-shell { width: min(100% - 1rem, var(--measure)); margin-top: 0.5rem; }
  .toc-page, .lesson-section { padding: 1.4rem; }
  .day-overview summary { grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 0.3rem 0.65rem; }
  .toc-meta, .learning-grid, .lab-workspace { grid-template-columns: 1fr; }
  .api-list div { grid-template-columns: 1fr; gap: 0.3rem; }
  .output-panel { border-top: 1px solid var(--line); border-left: 0; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 0.25rem; margin-bottom: 0.7rem; }
  .lab-footer { align-items: flex-start; flex-direction: column; }
  .lab-runtime { text-align: left; }
  .section-copyright { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .section-copyright a { justify-self: center; text-align: center; }
}

@media print {
  @page { size: A4 portrait; margin: 16mm 16mm 18mm; }
  :root { font-size: 10.5pt; }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #000; line-height: 1.45; }
  .screen-only, .no-print { display: none !important; }
  main { width: auto; margin: 0; }
  .toc-page, .course-document { border: 0; box-shadow: none; }
  .toc-page { min-height: 263mm; padding: 0; break-after: page; }
  .document-mark { padding-top: 0; }
  .toc-list { margin: 12mm 0; }
  .toc-list a { color: #000; }
  .day-overview { border-color: #aaa; }
  .day-overview summary { padding-inline: 0; cursor: default; }
  .day-overview summary::after { display: none; }
  .day-overview > :not(summary) { display: block !important; }
  .day-sections { padding-inline: 0; }
  .course-document { margin: 0; }
  .lesson-section { padding: 0; border-top: 0; }
  .lesson-section + .lesson-section { margin-top: 14mm; padding-top: 10mm; border-top: 1px solid #aaa; }
  .lesson-opening { break-before: auto; }
  .lesson-opening .section-number { display: none; }
  h2, h3, .checkpoint strong { break-after: avoid-page; }
  pre, table, .note, .checkpoint, .completion, .extra-mile, .lab-guidance, .learning-grid, .api-list div { break-inside: avoid; }
  .extra-mile > :not(summary), .lab-guidance > :not(summary) { display: block !important; }
  .extra-mile summary::after { display: none; }
  pre { border: 1px solid #777; background: #f4f4f4; color: #000; white-space: pre-wrap; overflow-wrap: anywhere; }
  a { color: #000; text-decoration: none; }
}
