html:has(.reader-body) { background: #fffcf5; }
html:has(.reader-body dialog[open]) { overflow: hidden; }
.reader-body {
  --paper: #fffcf5;
  --ink: #202820;
  --muted: #546055;
  --line: #dedfd2;
  --green: #234b36;
  --light-green: #edf0e4;
  --stage: #eeeadd;
  --notice: #f7ebd9;
  --reader-width: 720px;
  --reader-gutter: clamp(14px, 4.5vw, 25px);
  color: var(--ink);
  background: var(--paper);
}
.reader-body :is(button, input[type='text'], a.button) { min-height: 44px; }
.reader-body :is(button, a) { -webkit-tap-highlight-color: transparent; }
.reader-body button { touch-action: manipulation; }
.reader-body button:active:not(:disabled) { filter: brightness(.92); }
.reader-body :is(h1, h2, h3) { overflow-wrap: anywhere; }
.reader { min-height: 100svh; padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
.reader > :is(.loading, .feedback) { max-width: var(--reader-width); margin-inline: auto; padding-inline: var(--reader-gutter); }
.reader-heading {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.reader-heading-inner, .reader-content, .reader-nav > div {
  max-width: var(--reader-width);
  margin-inline: auto;
  padding-left: max(var(--reader-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--reader-gutter), env(safe-area-inset-right, 0px));
}
.reader-heading-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 3px;
  min-height: 50px;
}
.reader-heading h1 { font-size: .95rem; line-height: 1.25; letter-spacing: -.015em; }
.reader-heading p { font-size: .75rem; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.reader-heading button, .step-top button, .text-button {
  flex-shrink: 0;
  padding-inline: 8px;
  border-color: transparent;
  background: transparent;
}
.reader-content { padding-top: 6px; }
.step-top { display: flex; align-items: center; gap: 9px; }
.step-position { flex: 0 0 auto; font-size: .78rem; color: var(--green); font-weight: 750; font-variant-numeric: tabular-nums; }
.current-step .step-top h2 { margin: 0; font-size: 1.12rem; line-height: 1.24; }
.step-top button { margin-left: auto; color: var(--green); }
.step-track { height: 3px; margin: 0 0 9px; border-radius: 2px; background: var(--line); }
.step-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.step-switcher { display: flex; margin: 3px 0 16px; border-bottom: 1px solid var(--line); }
.step-switcher button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: -1px; padding: 6px 3px; color: var(--muted); background: transparent;
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; white-space: normal; font-size: .86rem;
}
.step-switcher [aria-current='step'] { border-bottom-color: var(--green); color: var(--green); }
.step-switcher [aria-current='step'] .cover-index { background: var(--green); color: white; }
.step-switcher .cover-index { width: 22px; height: 22px; }
.reader-content h2 { font-size: clamp(1.37rem, 5.9vw, 1.9rem); line-height: 1.22; letter-spacing: -.035em; margin: 12px 0; }
.reader-content h2:focus, .focus-heading h2:focus { outline: none; }
.prep-visual { position: relative; margin-bottom: 14px; border-radius: 14px; overflow: hidden; background: var(--stage); }
.prep-instructions + .prep-instructions { margin-top: 10px; }
.prep-checklist { list-style: none; padding: 0; margin: 0; }
.prep-checklist li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.prep-checklist strong, .prep-checklist span { display: block; }
.prep-checklist span { color: var(--muted); font-size: .875rem; margin-top: 2px; }

.model-panel { border-radius: 14px; overflow: hidden; background: var(--stage); margin-bottom: 13px; }
.current-step .model-panel { position: relative; }
.current-step .model-scene { height: clamp(110px, min(52svh, calc(100svh - 242px)), 540px); }
.visual-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0 8px; padding-bottom: 5px; background: var(--paper);
}
.model-modes { display: flex; align-items: center; gap: 4px; }
.model-modes button, .visual-source {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 10px; font-size: .85rem; font-weight: 600;
}
.model-modes button { position: relative; color: var(--muted); border: 0; background: transparent; }
.model-modes button[aria-pressed='true'] { color: var(--green); }
.model-modes button[aria-pressed='true']::after {
  content: ''; position: absolute; bottom: 3px; inset-inline: 10px; height: 3px;
  border-radius: 2px; background: currentColor;
}
.focus-visual .visual-header { padding-inline: 10px; }
.model-scene {
  display: grid;
  height: clamp(168px, min(55vw, 34svh), 330px);
  overflow: hidden;
}
.model-canvas, .model-static { grid-area: 1 / 1; min-width: 0; min-height: 0; }
.model-canvas { position: relative; isolation: isolate; }
.foot-callouts { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.foot-callouts path, .foot-callouts line { fill: none; stroke: #296448; stroke-width: 1.3px; }
.foot-callouts .insertion-axis { stroke-dasharray: 4 4; }
.foot-callouts circle { fill: none; stroke: #21573e; stroke-width: 2px; }
.foot-callouts rect { fill: #fbfcf4; stroke: #aab8a3; stroke-width: .8px; }
.foot-callouts text { fill: #234b36; font-size: 12px; font-weight: 650; }
.model-canvas canvas, .model-static img { display: block; width: 100%; height: 100%; }
.model-static img { object-fit: contain; }
.model-canvas canvas { cursor: grab; }
.model-canvas canvas:active { cursor: grabbing; }
.inline-gesture { visibility: hidden; color: var(--muted); font-size: .74rem; }
:is(.model-panel, .prep-visual, .focus-visual):has(canvas) .inline-gesture { visibility: visible; }
.cover-stage { position: relative; }
.cover-stage .inline-gesture { position: absolute; bottom: 3px; left: 14px; pointer-events: none; }
.model-status, .model-unavailable { display: grid; place-items: center; height: 100%; padding: 12px; font-size: .86rem; color: var(--muted); }
.model-caption { font-size: .78rem; color: var(--green); font-weight: 650; padding-inline: 5px; }
.model-caption:empty { display: none; }
.model-caption:not(:empty) { margin-right: auto; }
.step-diagram { padding: 8px; }
.diagram-preview {
  display: flex; justify-content: center; width: 100%; padding: 0; background: #fff;
  border: 0; border-radius: 7px; overflow: hidden;
}
.diagram-preview img { display: block; width: 100%; max-height: min(54svh, 490px); object-fit: contain; }
.diagram-preview.source-section { display: block; width: min(100%, 510px); margin-inline: auto; position: relative; aspect-ratio: 987 / 700; }
.source-section img { position: absolute; max-height: none; width: 100%; }
.source-section.upper img { top: 0; }
.source-section.lower img { bottom: 0; }
.step-diagram figcaption { padding-top: 6px; text-align: center; font-size: .75rem; color: var(--muted); }
.step-instructions { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.68; }
.step-materials { border-top: 1px solid var(--line); margin-top: 11px; padding-top: 7px; }
.step-materials h3 { font-size: .9rem; margin-bottom: 5px; }
.step-parts, .model-parts { display: flex; flex-wrap: wrap; gap: 7px; }
.step-parts button {
  max-width: 100%; padding: 6px 10px; background: var(--light-green); border-color: transparent;
  text-align: left; white-space: normal; overflow-wrap: anywhere; font-size: .84rem;
}
.step-parts [data-inventory-state='missing'], .step-safety { background: var(--notice); color: #6d3b19; }
.step-safety { margin-bottom: 8px; padding: 5px 10px; border-radius: 8px; font-size: .875rem; }
.step-safety button { border: 0; background: transparent; color: inherit; text-decoration: underline; }
.undo-completion { margin-top: 8px; padding-inline: 0; border-color: transparent; background: transparent; color: var(--muted); font-size: .79rem; }
.reader-nav {
  position: fixed; z-index: 1; inset: auto 0 0; border-top: 1px solid var(--line);
  background: var(--paper); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.reader-nav > div { display: grid; grid-template-columns: minmax(90px, .75fr) 1.6fr; gap: 8px; padding-block: 9px 10px; }
.reader-nav button { padding-inline: 8px; }
.reader-nav button span { font-size: 1.15em; }

.reader-sheet {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: min(100%, 540px);
  max-width: 100%;
  max-height: 86vh;
  max-height: 86dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 -8px 40px #16241a2b;
  overflow: hidden;
}
.reader-sheet[open] { display: flex; flex-direction: column; }
.reader-sheet::backdrop, .reader-focus::backdrop { background: #14231983; }
.sheet-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-shrink: 0;
  padding: 10px 16px 8px; border-bottom: 1px solid var(--line);
}
.sheet-heading h2 { font-size: 1.14rem; }
.sheet-heading button { border-color: transparent; background: var(--light-green); }
.sheet-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.sheet-body h3 { font-size: .94rem; margin: 12px 0 6px; }
.sheet-hint { font-size: .85rem; color: var(--muted); }
.sheet-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0; }
.sheet-shortcuts button { margin: 0; padding-inline: 9px; font-size: .8rem; background: var(--light-green); }
.step-directory button[aria-current='step'] { color: var(--green); background: var(--light-green); }
.directory-progress { margin: 2px 0 10px; color: var(--muted); font-size: .83rem; }
.step-directory.cover-steps button {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 9px;
  align-items: center; width: 100%; padding: 8px; min-height: 50px;
}
.step-directory small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .74rem; white-space: nowrap; }
.step-directory [aria-current='step'] small { color: var(--green); }
.step-directory [aria-current='step'] .cover-index { background: var(--green); color: white; }
.directory-links { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.directory-links button { padding-inline: 5px; background: transparent; border: 0; color: var(--muted); font-size: .77rem; }
.part-facts { margin: 0 0 10px; }
.part-facts > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.part-facts dt { flex-shrink: 0; color: var(--muted); }
.part-facts dd { text-align: right; font-weight: 650; margin: 0; overflow-wrap: anywhere; }
.image-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; background: #fff; }
.image-scroll img { display: block; width: 100%; max-width: none; }
.image-controls { display: flex; justify-content: center; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
.image-controls button { min-width: 44px; }
.image-clue { padding: 0 12px calc(8px + env(safe-area-inset-bottom, 0px)); text-align: center; }

.reader-focus {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.reader-focus[open] { display: flex; flex-direction: column; }
.focus-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 8px max(14px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line); background: var(--paper);
}
.focus-heading p { font-size: .76rem; color: var(--green); font-weight: 650; }
.focus-heading h2 { font-size: 1.12rem; line-height: 1.22; margin-top: 2px; }
.focus-body { display: flex; flex-direction: column; overflow: hidden; flex: 1; min-height: 0; }
.focus-visual { flex: 0 0 auto; background: var(--stage); }
.focus-visual .model-scene, .focus-visual .step-diagram {
  height: clamp(140px, 45dvh, 570px);
}
.focus-visual .step-diagram { display: flex; flex-direction: column; align-items: center; padding: 8px; }
.focus-visual .diagram-preview { min-height: 0; height: calc(100% - 24px); width: auto; max-width: 100%; }
.focus-visual .diagram-preview:not(.source-section) img { width: auto; height: 100%; max-height: none; max-width: 100%; }
.focus-visual .step-diagram figcaption { color: var(--muted); }
.focus-details { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); flex: 1; }
.focus-details .model-caption:not(:empty) { padding: 0; margin-bottom: 4px; }
.focus-details .model-parts { margin-top: 8px; }
.model-parts button { max-width: 100%; padding-inline: 8px; white-space: normal; }
.model-parts button[aria-pressed='true'], .model-parts button[aria-pressed='true']:hover {
  background: var(--green); border-color: var(--green); color: white;
}
.reader-focus .reader-nav { position: static; flex: 0 0 auto; }

@media (max-height: 710px) and (orientation: portrait) {
  .focus-visual .model-scene, .focus-visual .step-diagram { height: 37dvh; }
}
@media (orientation: landscape) and (max-height: 640px), (orientation: landscape) and (min-width: 900px) {
  .reader-focus[open] {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(215px, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "model heading" "model details" "model nav";
  }
  .focus-body { display: contents; }
  .focus-heading { grid-area: heading; }
  .focus-heading, .focus-details { padding-left: clamp(12px, 2vw, 28px); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
  .focus-visual {
    grid-area: model; display: flex; flex-direction: column; min-height: 0;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    border-right: 1px solid var(--line);
  }
  .focus-visual .model-scene, .focus-visual .step-diagram { min-height: 0; flex: 1 1 0; }
  .focus-details { grid-area: details; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .reader-focus .reader-nav { grid-area: nav; }
  .reader-focus .reader-nav > div { padding-inline: 10px max(10px, env(safe-area-inset-right, 0px)); grid-template-columns: auto minmax(0, 1fr); }
  .reader-focus .reader-nav > div:has(> button:only-child) { grid-template-columns: 1fr; }
  .reader-focus .reader-nav button { white-space: normal; }
}
.focus-overview .focus-visual { background: #e7ecdf; }
@media (orientation: portrait), (min-height: 641px) and (max-width: 899px) {
  .focus-overview .focus-visual { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .focus-overview .model-scene { min-height: 0; flex: 1 1 0; }
  .focus-overview .focus-details { flex: 0 1 auto; max-height: 25dvh; }
}
.prep-space { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; margin: 8px 0; }
.prep-space strong { color: var(--green); font-size: clamp(1.2rem, 5vw, 1.5rem); line-height: 1.22; letter-spacing: -.04em; }
.prep-space strong span { font-size: .61em; letter-spacing: 0; }
.prep-space p, .inventory-help { color: var(--muted); font-size: .82rem; }
.prep-instructions { font-size: .88rem; }
.layout-guide { margin-top: 11px; padding: 9px; border: 1px solid #d1dccb; border-radius: 10px; background: #f1f5ec; }
.layout-guide figcaption { padding-bottom: 5px; font-size: .81rem; font-weight: 680; }
.layout-zones { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 4px; }
.layout-zones > div { display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 39px; padding: 5px 7px; border-radius: 5px; background: #e6ede0; color: var(--green); font-size: .74rem; font-weight: 650; }
.layout-zones .layout-space { justify-content: center; border: 1px dashed #adc0ab; background: #f8faf4; }
.layout-zones img { width: 27px; height: 29px; flex: 0 0 auto; object-fit: contain; mix-blend-mode: multiply; }
.layout-zones .layout-wood img { width: clamp(25px, 10vw, 48px); }
.layout-zones small { color: var(--muted); font-size: .69rem; font-weight: 500; }
.inventory-help { margin: 5px 0 10px; }
.inventory-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.inventory-counter { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 5px; align-items: end; }
.inventory-counter button, .inventory-counter input[type='text'] { min-height: 44px; padding: 0; border-radius: 7px; text-align: center; }
.inventory-counter button { font-size: 1.1rem; }
.inventory-counter label { color: var(--muted); font-size: .7rem; }
.inventory-counter input[type='text'] { display: block; margin-top: 2px; color: var(--ink); font-size: 1rem; font-variant-numeric: tabular-nums; }
.inventory-note { margin-top: 10px; color: var(--muted); font-size: .8rem; }

/* The cover and the steps share the typography of a printed assembly booklet. */
.cover-mast { border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.cover-mast > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: var(--reader-width); margin: auto; padding: 9px var(--reader-gutter); min-height: 46px; }
.cover-mast strong { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--green); }
.cover-mast .mark { width: 16px; height: 18px; }
.cover-mast small { font-size: .73rem; color: var(--muted); }
.cover-content { padding-top: 16px; }
.cover-hero { padding: 17px 17px 0; overflow: hidden; border-radius: 16px; background: #e7ecdf; }
.cover-hero h1 { margin: 5px 0 0; font-size: clamp(1.25rem, 5.2vw, 1.5rem); line-height: 1.2; letter-spacing: -.04em; }
.cover-hero:not(:has(.prep-visual)) { padding-bottom: 18px; }
.cover-meta { color: var(--green); font-size: .81rem; font-weight: 680; }
.cover-meta span { padding-inline: 4px; }
.cover-hero .prep-visual { margin: 0 -17px; border-radius: 0; background: transparent; }
.cover-hero .model-scene { height: clamp(146px, min(48vw, 24svh), 210px); }
.cover-section { margin-top: 18px; }
.cover-section h2 { margin: 0 0 5px; font-size: 1.05rem; letter-spacing: 0; }
.cover-steps { margin: 0; padding: 0; list-style: none; }
.cover-steps li + li { border-top: 1px solid var(--line); }
.cover-steps button, .cover-links button { display: flex; align-items: center; width: 100%; gap: 10px; padding: 6px 1px; text-align: left; white-space: normal; background: transparent; border: 0; }
.cover-index { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; background: #e9ede1; border-radius: 50%; color: var(--green); font-variant-numeric: tabular-nums; font-size: .79rem; }
.cover-index.checked { background: var(--green); color: white; }
.cover-links { margin-top: 12px; border-top: 1px solid var(--line); }
.cover-links button + button { border-top: 1px solid var(--line); }
.cover-links small { margin-left: auto; font-weight: 450; color: var(--muted); }
.row-arrow, .cover-links button span:last-child { margin-left: auto; color: var(--muted); font-size: 1.15rem; }
.cover-links small + span:last-child { margin-left: 0; }
.cover-nav > div { grid-template-columns: 1fr; }
.reader-heading-inner .home-link { padding-inline: 0 8px; color: var(--green); }
.reader-heading-inner h1 { font-size: .83rem; }
.current-step > h2:not(.sr-only) { margin: 2px 0 10px; font-size: clamp(1.15rem, 4.7vw, 1.32rem); }
.current-step > .sr-only { margin: 0; }
.current-step > .step-instructions { margin-bottom: 13px; }
.material-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.material-heading h3 { margin: 0; }
.material-heading button { padding: 0 3px; border: 0; color: var(--muted); background: transparent; font-size: .77rem; }
.current-step .step-materials { margin: 0 0 12px; padding-top: 0; }
.reader-nav > div:has(> button:only-child) { grid-template-columns: 1fr; }
.cover-links button { border-radius: 0; }
.part-count { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0 12px; }
.part-count output { display: block; font-size: .78rem; color: var(--muted); }
.part-count .inventory-counter, .count-edit .inventory-counter { width: 151px; }
.count-item { position: relative; border-bottom: 1px solid var(--line); }
.count-item summary { display: flex; gap: 9px; align-items: center; min-height: 61px; padding: 6px 64px 6px 2px; }
.count-item summary::-webkit-details-marker { display: none; }
.count-item summary strong, .count-item summary small { display: block; overflow-wrap: anywhere; }
.count-item summary strong { font-size: .94rem; }
.count-item summary small, .count-edit p { color: var(--muted); font-size: .8rem; }
.count-item summary img { width: 56px; height: 44px; object-fit: contain; }
.count-item .match-count { position: absolute; top: 8px; right: 0; padding-inline: 11px; color: var(--green); background: var(--light-green); }
.count-item .match-count:disabled { opacity: 1; background: transparent; }
.count-edit { padding: 2px 0 8px; }
.count-edit p { margin-top: 6px; }
@media (max-height: 700px) and (orientation: portrait) {
  .cover-content { padding-top: 10px; }
  .cover-section { margin-top: 13px; }
  .cover-hero .model-scene { height: 145px; }
}

.step-directions { margin: 0 0 14px; padding-left: 1.6em; line-height: 1.56; }
.step-directions li + li { margin-top: 3px; }
.step-directions li::marker { color: var(--green); font-size: .86em; font-weight: 700; }
.count-item[data-inventory-state='missing'] output { color: #893812; }

.model-variants { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 8px; }
.model-variants button { flex: 1 1 min-content; min-width: min-content; max-width: 100%; white-space: normal; font-size: .83rem; color: var(--green); background: var(--paper); }
.model-variants button[aria-pressed='true'], .model-variants button[aria-pressed='true']:hover { background: var(--green); color: white; }

.assembly-labels { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.assembly-labels path { fill: none; stroke: #32675c; stroke-width: 1.3; }
.assembly-labels circle { fill: #e1a45d; stroke: #354a42; }
.assembly-labels rect { fill: #fafaf2; stroke: #a4b3a9; stroke-width: .8; }
.assembly-labels text { font-size: 12px; font-weight: 650; fill: #214a3b; }

@media (max-width: 520px) {
  .current-step .step-stage:has(.model-variants) .model-scene { height: clamp(160px, 43svh, 355px); }
}

.inventory-comparison { display: block; width: 100%; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.inventory-comparison img { display: block; width: 100%; height: auto; }
.inventory-comparison span { display: block; margin-block: 4px; font-size: .82rem; }

/* Stage one: shared inventory content, with the current single-column reader. */
.step-utilities { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .77rem; }
.step-utilities button { padding-inline: 0; font-size: .8rem; }
.step-utilities button { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; white-space: nowrap; }
.step-utilities svg { width: 15px; height: 15px; flex-shrink: 0; }
.step-utilities .step-progress { margin-left: auto; white-space: nowrap; }
.step-done-label { color: var(--green); font-size: .72rem; white-space: nowrap; }
.material-heading .step-done-label { margin-right: auto; }
.step-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step-parts button { display: flex; align-items: center; gap: 9px; min-width: 0; text-align: left; white-space: normal; padding: 8px 10px; }
.step-parts img { width: 44px; height: 42px; flex-shrink: 0; object-fit: contain; mix-blend-mode: multiply; }
.step-parts strong, .step-parts small { display: block; }
.step-parts strong { font-size: .86rem; font-weight: 650; }
.step-parts small { color: var(--muted); font-size: .73rem; line-height: 1.45; margin-top: 3px; }
.step-parts button > span:last-child { margin-left: auto; }
.step-parts [data-inventory-state='missing'] small { color: #893812; }
.inventory-tabs { display: flex; gap: 4px; background: var(--light-green); padding: 3px; border-radius: 9px; }
.inventory-tabs button { flex: 1; min-width: 0; padding-inline: 5px; border: 0; background: transparent; color: var(--muted); font-size: .85rem; }
.inventory-tabs [aria-pressed='true'] { color: var(--green); background: var(--paper); font-weight: 700; box-shadow: 0 1px 3px #203d2417; }
.inventory-basis { margin: 10px 0; color: var(--muted); font-size: .77rem; line-height: 1.5; }
.inventory-empty { margin: 20px 0; font-size: .9rem; }
.prepare-step { width: 100%; margin-block: 14px 6px; background: var(--light-green); color: var(--green); }
.prepare-step[aria-pressed='true'] { border-color: var(--green); }
.used-parts { list-style: none; margin: 0; padding: 0; }
.used-parts li { padding-block: 8px; border-bottom: 1px solid var(--line); }
.used-part-title { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: transparent; padding: 4px 0; white-space: normal; }
.used-part-title strong { margin-left: auto; flex-shrink: 0; font-size: .8rem; color: var(--green); }
.usage-links { display: flex; flex-wrap: wrap; gap: 0 6px; }
.usage-links button { padding: 3px 6px; font-size: .78rem; color: var(--green); }
.part-illustration { display: block; width: 100%; padding: 8px; border: 0; background: var(--stage); border-radius: 12px; }
.part-illustration img { display: block; width: 100%; height: 116px; object-fit: contain; mix-blend-mode: multiply; }
.part-illustration span { display: block; color: var(--muted); font-size: .74rem; margin-top: 5px; }
.step-link-input { width: 100%; padding: 12px; margin-block: 12px; }
.reader-toast { position: fixed; z-index: 10; left: 50%; bottom: 94px; transform: translateX(-50%); width: max-content; max-width: min(90vw, 480px); margin: 0; padding: 12px 17px; border-radius: 12px; background: var(--green); color: white; box-shadow: 0 3px 20px #152b3026; text-align: center; font-size: .86rem; pointer-events: none; }
.completion-content { padding-top: 18px; }
.completion-hero > p:not(.cover-meta) { font-size: .88rem; color: var(--muted); margin-block: 6px; }
.completion-summary { margin-block: 20px 8px; }
.completion-summary > strong { font-size: 1.1rem; color: var(--green); }
.completion-summary p { margin-top: 8px; }
.completion-summary .sheet-shortcuts { margin-top: 12px; }
.part-count .inventory-counter, .count-edit .inventory-counter { width: 180px; }

/* One navigation bar; the same reader state serves both layouts. */
.reader-heading { position: relative; z-index: 2; }
.reader-heading-inner { max-width: none; min-height: 52px; padding-inline: 24px; justify-content: flex-start; }
.manual-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.reader-language { min-inline-size: 44px; }
.reader-heading-inner:has(.reader-language) .manual-name { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.reader-heading-inner > :last-child { margin-left: auto; }
.reader .cover-mast { display: none; }
#layout-toggle { position: fixed; z-index: 3; top: 5px; right: 20px; min-height: 42px; color: var(--green); background: var(--light-green); }
.reader-wide .reader-heading-inner { padding-right: 170px; }
.manual-more { display: grid; gap: 15px; }
.manual-more h3 { margin: 0 0 8px; font-size: .8rem; color: var(--muted); }
.share-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.share-actions button {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 5px; padding: 12px 3px 8px; background: var(--light-green); color: var(--green);
  border: 0; font-size: .83rem; white-space: normal;
}
.share-actions button:disabled { opacity: 1; color: var(--muted); background: #f2f1ea; cursor: default; }
.share-actions small { font-size: .68rem; font-weight: 450; line-height: 1.1; }
.more-rows { display: grid; }
.more-rows :is(a, button) {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-align: left; text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 550;
  min-height: 44px; padding: 8px 2px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent;
}
.more-rows span { color: var(--muted); }
.more-rows .player-icon { width: 16px; height: 16px; }
.share-code { text-align: center; }
.share-code figcaption { font-weight: 650; overflow-wrap: anywhere; }
.share-code img { display: block; width: min(100%, 232px); height: auto; margin: 10px auto; }
.qr-hint { text-align: center; font-size: .85rem; color: var(--muted); }
.share-code-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.inventory-sidebar, .wide-completion { display: none; }
.current-step { display: flex; flex-direction: column; }
.step-information { display: contents; }
.step-top { order: 0; }
.step-track { order: 1; }
.step-information > .step-safety { order: 2; margin-bottom: 10px; }
.step-stage { order: 3; min-width: 0; }
.step-copy { order: 4; }
.mobile-materials { order: 5; }
.step-utilities { order: 6; }
.step-information > .reader-nav { order: 7; }
.step-copy .step-instructions { margin-bottom: 12px; }
.reader-wide { --reader-width: 1440px; --reader-gutter: 28px; }
.reader-wide .reader { padding-bottom: 0; }
.reader-wide .current-step { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); gap: 28px; padding-block: 24px; align-items: start; }
.reader-wide .step-stage { order: initial; position: sticky; top: 20px; }
.reader-wide .step-information { display: flex; flex-direction: column; min-width: 0; }
.reader-wide .step-information > * { order: initial; }
.reader-wide .step-top { align-items: flex-start; }
.reader-wide .step-top h2 { font-size: 1.25rem; margin-top: 7px; }
.reader-wide .step-position { padding-top: 10px; }
.reader-wide .step-track { margin-block: 8px 16px; }
.reader-wide .current-step .model-scene { height: clamp(320px, calc(100dvh - 220px), 760px); }
.reader-wide .current-step .diagram-preview img { max-height: calc(100dvh - 220px); min-height: 320px; }
.reader-wide .current-step .diagram-preview { width: 100%; }
.reader-wide .step-stage .model-panel { margin: 0; }
.reader-wide .mobile-materials { display: none; }
.reader-wide .inventory-sidebar, .reader-wide .wide-completion { display: block; }
.reader-wide .inventory-sidebar { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; }
.panel-title { font-size: .9rem; margin: 0 0 10px; }
.reader-wide .step-information > .reader-nav { position: sticky; bottom: 0; z-index: 1; margin-top: 14px; }
.reader-wide .step-information > .reader-nav > div { padding-inline: 0; }
.reader-wide .cover-content, .reader-wide .completion-content { max-width: 720px; }
.reader-wide .cover-nav > div { max-width: 720px; }
.reader-wide .reader-sheet { inset: 0; margin: auto; height: fit-content; max-height: min(86dvh, 800px); border-radius: 16px; }
.reader-wide .reader-image { width: min(100% - 64px, 960px); }
.reader-wide .part-illustration img { height: 105px; }
.reader-wide .part-facts > div { padding-block: 7px; }
.reader-phone { max-width: 390px; margin-inline: auto; box-shadow: 0 0 0 1px #dedfd2, 0 8px 40px #14231916; --reader-gutter: 16px; }
html:has(.reader-phone) { background: #e6e8e3; }
.reader-phone .reader-heading-inner { padding-inline: 12px; }
.reader-phone .reader-nav { left: 50%; right: auto; width: 390px; transform: translateX(-50%); }
.reader-phone .reader-sheet { max-width: 390px; }
.reader-phone .part-preview { max-width: 362px; }
.reader-phone .reader-focus { width: 390px; left: 50%; transform: translateX(-50%); display: none; }
.reader-phone .reader-focus[open] { display: flex; flex-direction: column; }
.reader-phone .focus-body { display: flex; flex-direction: column; }
.reader-phone .focus-visual { border: 0; display: block; flex: 0 0 auto; }
.reader-phone .focus-visual .model-scene, .reader-phone .focus-visual .step-diagram { height: 40dvh; flex: initial; }
.reader-phone .focus-details { flex: 1; }
.reader-phone .reader-focus .reader-nav { position: static; width: 100%; transform: none; }
.reader-phone .cover-hero h1 { font-size: 1.35rem; }
.reader-phone .reader-toast { max-width: 350px; }
@media (max-width: 959px) {
 .reader-heading-inner { padding-inline: 14px; }
 .current-step .model-scene { height: clamp(160px, min(42svh, calc(100svh - 430px)), 360px); }
}
.reader-phone .current-step .model-scene { height: clamp(160px, min(42svh, calc(100svh - 430px)), 360px); }
.reader-sheet:is([data-sheet-kind='more'], [data-sheet-kind='share']) {
  inset: 0;
  margin: auto;
  width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: fit-content;
  max-height: calc(100dvh - 40px);
  border-radius: 18px;
}
.reader-phone .reader-sheet:is([data-sheet-kind='more'], [data-sheet-kind='share']) { width: 358px; max-width: calc(100vw - 32px); }
.overview-entry { display: flex; gap: 8px; padding: 10px 12px; }
.overview-entry button { flex: 1; min-height: 44px; color: var(--green); background: var(--paper); }
.manual-home { max-width: 720px; padding-block: 20px 16px; }
.reader-wide .manual-home:has(+ .cover-nav) { padding-bottom: 84px; }
.manual-home h1 { font-size: clamp(1.38rem, 4.9vw, 1.8rem); line-height: 1.24; margin: 4px 0 8px; }
.identity-overview { display: grid; align-items: center; gap: 14px; }
.identity-overview:has(.identity-images) { grid-template-columns: minmax(0, 1fr) clamp(88px, 24%, 150px); }
.home-sku, .home-description { font-size: .84rem; color: var(--muted); }
.home-sku strong { color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.home-description { margin-top: 8px; }
.identity-images { display: flex; gap: 8px; min-width: 0; overflow-x: auto; }
.identity-images button {
  flex: 0 0 100%; border-radius: 10px; padding: 4px; overflow: hidden; background: white; cursor: zoom-in;
}
.identity-images img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.identity-overview:has(.identity-images button:nth-child(2)) { grid-template-columns: 1fr; }
.identity-images:has(button:nth-child(2)) button { flex-basis: 105px; }
.identity-specs { margin: 14px 0 0; padding-block: 6px; border-block: 1px solid var(--line); }
.identity-specs > div { display: grid; grid-template-columns: minmax(5em, 28%) minmax(0, 1fr); gap: 12px; padding-block: 4px; font-size: .86rem; }
.identity-specs dt { color: var(--muted); }
.identity-specs dd { margin: 0; overflow-wrap: anywhere; }
.home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.home-actions button {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  text-align: left; white-space: normal; border-radius: 11px; color: var(--green);
}
.home-actions button.primary { color: white; }
.home-actions button:not(.primary):hover { background: var(--light-green); }
.home-actions .player-icon { width: 20px; height: 20px; }
.home-actions strong, .home-actions small { display: block; }
.home-actions strong { font-size: .93rem; }
.home-actions small { margin-top: 3px; font-size: .76rem; font-weight: 450; color: var(--muted); }
.home-actions .primary small { color: #e2ebdf; }
.manual-home :is(.home-structure, .home-resources) { margin-top: 22px; }
.manual-home h2 { font-size: 1rem; margin: 0 0 9px; }
.manual-home .cover-stage .model-scene { height: clamp(160px, 26svh, 220px); }
.reader-phone .manual-home .cover-stage .model-scene { height: 180px; }
.home-resource-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: .88rem; }
.home-resource-links a { display: inline-flex; align-items: center; min-height: 44px; }
.home-source { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .79rem; color: var(--muted); }
.home-source p + p { margin-top: 4px; }
.home-source a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 350px) {
  .home-actions button { gap: 6px; padding-inline: 8px; }
}
.preparation-content { padding-top: 20px; }
.preparation-content h1 { margin: 0 0 16px; font-size: 1.55rem; line-height: 1.25; }
.unpacking-entry {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  width: 100%; padding: 14px 16px; text-align: left; white-space: normal;
  background: var(--light-green); color: var(--green); border: 1px solid #d5ddce; border-radius: 12px;
}
.unpacking-entry strong { font-size: 1.06rem; }
.unpacking-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 1.45rem; }
.unpacking-categories, .unpacking-entry small { font-size: .82rem; font-weight: 500; }
.unpacking-progress {
  grid-column: 1 / -1; width: 100%; height: 4px; margin: 8px 0 2px;
  appearance: none; border: 0; background: #d3dccb; border-radius: 4px; overflow: hidden;
}
.unpacking-progress::-webkit-progress-bar { background: #d3dccb; }
.unpacking-progress::-webkit-progress-value { background: var(--green); }
.unpacking-progress::-moz-progress-bar { background: var(--green); }
.preparation-content .cover-section { margin-top: 20px; }
.preparation-content .cover-section h2 { margin-bottom: 8px; font-size: 1rem; }
.prep-own-tools ul { display: flex; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.prep-own-tools li { color: var(--muted); font-size: .9rem; }
.prep-own-tools li:not(:last-child)::after { content: '、'; }
.prep-summary .prep-checklist { border-left: 2px solid var(--line); padding-left: 12px; }
.prep-summary .prep-checklist li { border: 0; padding: 0; }
.prep-summary .prep-checklist li + li { margin-top: 10px; }
.prep-summary .prep-checklist strong { font-size: .88rem; }
.prep-safety { border-top: 1px solid var(--line); padding-top: 14px; }
.prep-safety p { font-size: .86rem; }
.prep-safety summary { width: fit-content; padding-block: 11px; font-size: .82rem; color: var(--green); cursor: pointer; }
.reader-sheet[data-sheet-kind='unpacking'] .sheet-body { padding-top: 14px; }
.reader-sheet[data-sheet-kind='unpacking'] #inventory-progress { color: var(--green); font-weight: 650; }
.unpacking-kinds {
  position: sticky; top: -1px; z-index: 1; display: flex; gap: 12px;
  border-bottom: 1px solid var(--line); background: var(--paper);
}
.unpacking-kinds button {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 3px;
  border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: var(--muted);
}
.unpacking-kinds [aria-pressed='true'] { color: var(--green); border-bottom-color: currentColor; }
.unpacking-kinds span { font-size: .75rem; font-variant-numeric: tabular-nums; }
.reader-sheet[data-sheet-kind='unpacking'] .inventory-list { gap: 0; }
.reader-sheet[data-sheet-kind='unpacking'] .count-item summary { cursor: pointer; }
.reader-sheet[data-sheet-kind='unpacking'] .count-item summary strong::after {
  content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 7px;
  border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.reader-sheet[data-sheet-kind='unpacking'] .count-item details[open] summary strong::after { transform: rotate(225deg); }
.reader-wide .manual-home + .cover-nav > div { max-width: 720px; }
.player-controls {
  display: flex; align-items: center; gap: 2px; flex: 0 0 auto;
  padding: 4px 8px; border-top: 1px solid #dcded1; background: #f5f4ec;
}
.player-controls .inline-gesture {
  flex: 1; min-width: 0; text-align: center; line-height: 1.35; text-wrap: balance; pointer-events: none;
}
.picked-part {
  flex: 1; min-width: 0; padding-inline: 8px; font-size: .8rem;
  color: var(--muted); line-height: 1.4; overflow-wrap: anywhere;
}
.picked-part.has-selection { color: var(--green); font-weight: 700; }
.camera-controls { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.camera-controls [data-expand] { margin-left: 5px; }
.camera-controls [data-expand]::before {
  content: ''; position: absolute; left: -4px; height: 17px; border-left: 1px solid #cdd2c6;
}
.step-directions { padding-left: 1.5em; }
.step-directions li { padding: 7px 10px; border-radius: 7px; border-left: 3px solid transparent; }
.step-directions .active-action { background: var(--light-green); border-left-color: var(--green); font-weight: 650; }
.action-progress { margin: 8px 0 4px; font-size: .76rem; color: var(--green); }
.player-icon { display: block; width: 21px; height: 21px; flex-shrink: 0; }
.reader .player-button, .reader-focus .player-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--green); flex-shrink: 0; }
.reader .player-button-labeled, .reader-focus .player-button-labeled { width: auto; padding-inline: 6px; font-size: .8rem; }
.visual-header .player-icon { width: 17px; height: 17px; }
.player-controls .player-button[data-action='playback'] { color: #fff; background: var(--green); border-radius: 50%; }
.reader .player-button:disabled, .reader-focus .player-button:disabled { opacity: .4; cursor: default; }
.reader .player-button:focus-visible, .reader-focus .player-button:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
.player-button[data-tooltip]::after { content: attr(data-tooltip); position: absolute; z-index: 4; right: 0; bottom: calc(100% + 6px); width: max-content; max-width: 200px; padding: 6px 9px; border-radius: 6px; color: white; background: var(--green); font-size: .75rem; font-weight: 400; line-height: 1.5; white-space: normal; pointer-events: none; opacity: 0; visibility: hidden; }
.player-button[data-action='playback']::after, .player-button[data-model-action='play']::after { left: 0; right: auto; }
.player-controls .player-button[data-action='playback']:focus-visible { outline-color: white; }
.player-button:focus-visible::after { opacity: 1; visibility: visible; }
.reader .player-button[data-wide-tool], .player-controls .player-button[hidden] { display: none; }
.reader-wide .player-controls .player-button[data-wide-tool] { display: inline-flex; }
@media (hover: hover) {
  .reader .player-button:hover:not(:disabled), .reader-focus .player-button:hover:not(:disabled) { background: #234b3720; }
  .player-controls .player-button[data-action='playback']:hover:not(:disabled) { background: #315e47; }
  .player-button:hover:not(:disabled)::after { opacity: 1; visibility: visible; }
}
.focus-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.focus-heading > button { flex-shrink: 0; color: var(--green); }
.reader-sheet[data-sheet-kind='directory'] .sheet-heading { flex-wrap: wrap; }
.reader-sheet[data-sheet-kind='directory'] .directory-progress { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--muted); }
.reader-wide .reader-sheet[data-sheet-kind='directory'] { inset: 0 0 0 auto; margin: 0; width: 420px; height: 100dvh; max-height: 100dvh; border-radius: 16px 0 0 16px; }
.reader-wide .reader-sheet[data-sheet-kind='directory']::backdrop { background: #14231930; }
.cover-content .cover-stage .model-scene { height: 180px; }
.reader-phone .cover-content .cover-stage .model-scene { height: 150px; }

.step-help { display:flex; flex-wrap:wrap; align-items:center; gap:0 12px; margin:0 0 10px; }
.step-help button { min-height:44px; text-align:left; font-size:.85rem; }
.step-help .step-question { max-width:100%; white-space:normal; overflow-wrap:anywhere; color:var(--green); background:#edf1e6; padding:8px 12px; border:0; border-radius:8px; }
.step-help .ask-step { border:none; background:none; padding:5px 0; color:var(--muted); text-decoration:underline; text-underline-offset:4px; }
.help-topics { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.help-topics button[aria-pressed="true"] { background:#234b37; color:white; }
.help-answer { line-height:1.7; margin:0 0 12px; }
.help-detail { margin:0; }
.help-detail svg { display:block; width:100%; max-height:32dvh; background:white; border-radius:10px; }
.help-detail figcaption, .help-result > p:first-child { color:var(--muted); font-size:.85rem; }
.more-hotspots { display:flex; align-items:center; gap:12px; padding:12px 16px; border-radius:10px; background:#183834; color:#f2f8e7; text-decoration:none; }
.more-hotspots small { display:block; color:#c4d7cd; font-size:.76rem; }
.more-hotspots b { margin-left:auto; color:#c4ed89; }
.mini-plot { display:flex; gap:3px; align-items:end; height:26px; }
.mini-plot i { width:4px; height:44%; background:#bde98a; }
.mini-plot i:nth-child(2) {height:76%}.mini-plot i:nth-child(3){height:58%}.mini-plot i:nth-child(4){height:100%}.mini-plot i:nth-child(5){height:70%}

.manual-transcript {
  max-width: var(--reader-width);
  margin: 0 auto;
  padding: 1rem var(--reader-gutter) calc(100px + env(safe-area-inset-bottom, 0px));
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.manual-transcript summary { cursor: pointer; color: var(--green); padding-block: .75rem; font-weight: 600; }
.manual-transcript article h1 { font-size: 1.35rem; line-height: 1.3; margin: .75rem 0 .4rem; }
.manual-transcript article h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.manual-transcript :is(ol, ul) { padding-inline-start: 1.6em; }
.manual-transcript .transcript-specs,
.manual-transcript .transcript-faq { margin: .5rem 0 1rem; border-top: 1px solid var(--line); }
.manual-transcript .transcript-specs > div,
.manual-transcript .transcript-faq > div { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.manual-transcript .transcript-specs dt,
.manual-transcript .transcript-faq dt { font-weight: 650; color: var(--ink); }
.manual-transcript .transcript-faq dt span { font-weight: 450; font-size: .85em; color: var(--muted); }
.manual-transcript .transcript-specs dd,
.manual-transcript .transcript-faq dd { margin: .25rem 0 0; color: var(--muted); }
.manual-transcript .transcript-source { margin-top: .5rem; font-size: .9rem; }
.manual-transcript .transcript-source a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.manual-transcript .transcript-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.manual-transcript .transcript-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
@media print {
  .reader-body:has(.manual-transcript) > :not(.manual-transcript) { display: none; }
  .manual-transcript { padding: 0; max-width: none; }
  .manual-transcript summary, .manual-transcript .transcript-links { display: none; }
  .manual-transcript::details-content { display: contents; content-visibility: visible; }
}
