/* Review copies use an explicit gray panel; adopted content stays unchanged. */
.prefix-intro .prefix-heading-letters { white-space: nowrap; }
.zero-prefix-block { margin: 36px 0; padding-top: 26px; border-top: 1px solid var(--line); }
.zero-prefix-block > h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 23px; }
.zero-prefix-block > h3 .zero-word { font-size: 23px; }
.zero-prefix-card { max-width: 780px; }
.zero-prefix-card > .word { font-size: 28px; }
.grammar-draft, .grammar-tree-proposal { background: #f0f1ee; color: #646c63; border: 1px solid #d9dcd5; border-left: 3px solid #bdc4b9; padding: 24px; margin: 26px 0 34px; max-width: none; }
.draft-label { font-family: var(--font-ui); font-size: 10px; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; color: #737b71; margin-bottom: 16px; }
.grammar-draft > h4, .grammar-tree-proposal > h4 { font-family: var(--font-heading); font-size: 23px; font-weight: 500; color: #555e53; line-height: 1.4; margin: 25px 0 16px; }
.grammar-draft > .draft-label + h4, .grammar-tree-proposal > h4 { margin-top: 0; }
.grammar-draft p, .grammar-tree-proposal p { color: inherit; font-size: 14px; line-height: 1.85; }
.grammar-draft .example-card { background: #fafbf8; border: 1px solid #dce0d7; margin: 16px 0; padding: 18px; }
.grammar-draft .example-card > .word, .grammar-draft .example-card > .phrase { font-size: 23px; }
.grammar-draft p:last-child, .grammar-tree-proposal p:last-child { margin-bottom: 0; }
.grammar-tree-alternatives { min-width: 0; }
.grammar-tree-proposal { overflow: hidden; }
.review-tree, .review-tree ul { list-style: none; margin: 0; padding: 0; }
.review-tree li { list-style: none; min-width: 0; }
.review-tree-question { padding: 13px 16px; border: 1px solid #aeb7a7; border-radius: 5px; background: #f9faf7; color: #46523e; font-size: 14px; font-weight: 500; line-height: 1.65; }
.review-tree-leaf { padding: 14px 16px; border: 1px solid #c7cec1; border-radius: 5px; background: #fff; font-size: 13px; line-height: 1.65; }
.review-tree-leaf > strong { display: block; font-size: 23px; font-weight: 400; line-height: 1.4; margin-bottom: 8px; }
.review-tree-leaf > strong .word { font-size: 23px; }
.review-branch-label { display: inline-block; background: #f0f1ee; color: #65725c; font-size: 11px; font-weight: 600; line-height: 1.6; padding: 2px 6px; margin-bottom: 5px; }
.review-tree-nested > li > .review-tree-question { max-width: 650px; }
.review-tree-nested li > ul { border-left: 1px solid #9eac94; margin: 0 0 4px 12px; padding: 10px 0 2px 23px; }
.review-tree-nested li > ul > li { position: relative; padding: 6px 0 16px; }
.review-tree-nested li > ul > li::before { content: ""; position: absolute; left: -23px; top: 23px; width: 22px; border-top: 1px solid #9eac94; }
.review-tree-nested .review-tree-leaf { display: flex; gap: 20px; align-items: center; max-width: 760px; }
.review-tree-nested .review-tree-leaf > strong { flex: 0 0 55px; margin: 0; text-align: center; }
.tree-pan { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; padding: 5px 8px 24px; border: 1px solid #d8ddd2; border-radius: 6px; background: #f7f8f4; scrollbar-color: #aebba2 #e5e9df; }
.tree-pan:focus-visible { outline: 2px solid #71865f; outline-offset: 3px; }
.grammar-tree-proposal .tree-pan-hint { font-size: 12px; margin-bottom: 14px; }
.review-tree-canopy { display: flex; justify-content: center; width: max-content; min-width: 100%; }
.review-tree-canopy ul { position: relative; display: flex; align-items: flex-start; padding-top: 24px; }
.review-tree-canopy ul::before { content: ""; position: absolute; left: 50%; top: 0; height: 24px; border-left: 1px solid #9eac94; }
.review-tree-canopy li { position: relative; padding: 33px 7px 0; text-align: center; flex: 0 0 auto; }
.review-tree-canopy li::before, .review-tree-canopy li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 30px; border-top: 1px solid #9eac94; }
.review-tree-canopy li::after { left: 50%; right: auto; border-left: 1px solid #9eac94; }
.review-tree-canopy li:first-child::before, .review-tree-canopy li:last-child::after { border: 0; }
.review-tree-canopy li:last-child::before { border-right: 1px solid #9eac94; }
.review-tree-canopy > li { padding-top: 0; }
.review-tree-canopy > li::before, .review-tree-canopy > li::after { display: none; }
.review-tree-canopy .review-tree-question { width: 165px; margin: 0 auto; min-height: 82px; display: flex; justify-content: center; align-items: center; font-size: 13px; padding: 13px; }
.review-tree-canopy > li > .review-tree-question { width: 310px; }
.review-tree-canopy .review-tree-leaf { width: 122px; margin: 0 auto; font-size: 12px; min-height: 150px; padding: 14px 10px; }
.review-tree-canopy .review-branch-label { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #f7f8f4; }
.grammar-tree-proposal .review-tree-key { font-size: 12px; padding: 16px 0 0; }
.review-tree-additions { margin-top: 24px; padding-top: 20px; border-top: 1px solid #cbd1c4; }
.review-tree-additions > h5 { font-size: 15px; font-weight: 500; margin: 0 0 16px; }
.review-addition-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.review-addition-grid > div { border-left: 1px solid #c1c9b9; padding-left: 15px; }
.review-addition-grid strong { display: block; font-size: 21px; font-weight: 400; margin-bottom: 12px; }
.review-addition-grid p { font-size: 12px; margin-bottom: 0; }
@media (max-width: 700px) {
  .grammar-draft, .grammar-tree-proposal { padding: 18px 14px; }
  .grammar-draft > h4, .grammar-tree-proposal > h4 { font-size: 21px; }
  .review-addition-grid { grid-template-columns: 1fr; }
  .review-tree-nested li > ul { margin-left: 4px; padding-left: 13px; }
  .review-tree-nested li > ul > li::before { width: 12px; left: -13px; }
  .review-tree-nested .review-tree-leaf { display: block; padding: 12px; }
  .review-tree-nested .review-tree-leaf > strong { margin-bottom: 8px; text-align: left; }
  .review-tree-question { font-size: 13px; padding: 12px; }
  .zero-prefix-block > h3 { font-size: 21px; }
}

/* Word introductions: one font run preserves Seiso joins across the color boundary. */
.vocabulary-intro-heading { margin: 26px 0 12px; font-family: var(--font-ui); font-size: 14px; font-weight: 500; line-height: 1.75; color: var(--muted); }
.vocabulary-intro-heading + .vocabulary-introductions { margin-top: 12px; }
.suffix-lab .lab-header { display: block; }
.suffix-lab .suffix-intro { margin: 0 0 12px; max-width: none; font-size: 15px; line-height: 1.75; }
.suffix-reading { padding-left: 22px; }
.suffix-reading > li + li { margin-top: 12px; }
.juxtaposition-example .example-translation { margin: 14px 0 0; color: var(--ink); font-size: 17px; }
.juxtaposition-example .example-literal { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.vocabulary-introductions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: 100%; margin: 26px 0; }
.vocabulary-families { display: grid; gap: 24px; margin: 26px 0; }
.vocabulary-families > .vocabulary-introductions { margin: 0; }
.vocabulary-families > .vocabulary-introductions + .vocabulary-introductions { padding-top: 24px; border-top: 1px solid var(--line); }
.vocabulary-card { display: grid; align-content: start; gap: 10px; width: 100%; min-width: 0; padding: 12px 16px 16px; background: #fffefb; border: 1px solid #d9dcd2; border-radius: 14px; color: #151713; }
.vocabulary-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-width: 0; }
.vocabulary-class { flex: 0 1 170px; max-width: 100%; margin-left: auto; padding: 6px 9px; background: #f3f3ee; border: 1px solid #e2e4dc; border-radius: 9px; }
.vocabulary-class > .word { font-size: 23px; }
.vocabulary-class > p { font-size: 11px; line-height: 1.55; margin: 3px 0 0; max-width: none; color: #60665c; }
.vocabulary-specimen { display: flex; flex: 1 1 auto; justify-content: center; min-width: 0; }
.vocabulary-specimen > .word { font-size: clamp(36px, 4.2vw, 52px); max-width: 100%; }
.vocabulary-specimen .romanization { font-size: 14px; line-height: 1.6; }
.vocabulary-emoji { display: inline-block; font-size: 1.15em; line-height: 1; vertical-align: -.1em; }
.vocabulary-emoji > svg { width: 1em; height: 1em; display: block; }
.vocabulary-card .root-head { color: #111310; }
.vocabulary-card .root-tail { color: #969891; }
.vocabulary-card .vocabulary-meaning { max-width: none; margin: 0; text-align: center; color: #343a31; font-size: 17px; line-height: 1.6; }
.vocabulary-paper { box-shadow: 0 4px 14px #28351a07; }
.zero-word { justify-items: center; }
.zero-word .romanization { white-space: nowrap; }

/* Lexical extensions share one cycle across three examples. */
.tail-lab { padding: 28px; background: #f1f3eb; border: 1px solid #d4ddcb; border-radius: 16px; }
.tail-lab .lab-header { display: block; margin-bottom: 22px; }
.tail-lab .lab-header h4 { margin: 0 0 10px; font-size: 23px; line-height: 1.4; }
.tail-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.tail-tabs > button { display: grid; place-items: center; width: 64px; height: 64px; padding: 8px; border: 1px solid #d3dbcd; border-radius: 12px; background: #e8ede2; color: #68765e; cursor: pointer; }
.tail-tabs > button > span { font-size: 30px; line-height: 1; }
.tail-tabs > button.selected { border-color: #819871; background: #fffef9; color: #30472c; box-shadow: 0 3px 9px #30472c0d; }
.tail-tabs > button:focus-visible { outline: 2px solid #54784c; outline-offset: 3px; }
.tail-panel { padding: 22px; background: #fffef9; border: 1px solid #dce2d5; border-radius: 12px; }
.tail-result { display: grid; justify-items: center; align-content: start; gap: 16px; min-height: 400px; text-align: center; }
.tail-specimen { display: grid; grid-template-rows: 54px auto; justify-items: center; align-items: center; gap: 8px; max-width: 100%; }
.tail-specimen > .word { justify-items: center; margin-inline: 0; font-size: clamp(23px, 5vw, 38px); }
.tail-lab .classification-icon { font-size: 36px; line-height: 1; letter-spacing: -.08em; }
.tail-lab .classification-icon > svg { display: block; width: 54px; height: 54px; }
.tail-lab .tail-chain { justify-content: center; margin: 0; gap: 8px; }
.tail-lab :is(.lexical-base, .tail-extension) { display: grid; justify-items: center; gap: 5px; padding: 7px 10px; border-radius: 8px; }
.tail-lab .tail-chain .word { justify-items: center; margin-inline: 0; font-size: 21px; }
.tail-lab .lexical-base { background: #ecf0e5; border-color: #bbcbb0; }
.tail-lab .tail-extension { background: #f5f2e7; border-color: #c9c3ad; }
.tail-result > p { max-width: 58ch; margin: 0; font-size: 15px; line-height: 1.8; }
.tail-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.tail-roles > li { display: flex; align-items: center; justify-content: center; gap: 6px; }
.tail-role-icon { display: inline-flex; font-size: 17px; }
.tail-role-icon > svg { width: 1em; height: 1em; }
.tail-steps { margin-top: 12px; }
[data-carousel] { cursor: pointer; }
.lexical-emotion-example { margin: 20px 0; }
.lexical-emotion-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.lexical-emotion-chain > .word { font-size: 28px; }
@media (max-width: 650px) {
  .tail-lab { padding: 18px 12px; }
  .tail-lab .lab-header h4 { font-size: 20px; }
  .tail-tabs { gap: 10px; }
  .tail-tabs > button { width: 56px; height: 56px; }
  .tail-tabs > button > span { font-size: 28px; }
  .tail-panel { padding: 16px 12px; }
  .tail-result { gap: 12px; min-height: 375px; }
  .tail-lab .tail-chain { gap: 5px; }
  .tail-lab :is(.lexical-base, .tail-extension) { padding-inline: 7px; }
  .tail-lab .tail-chain .word { font-size: 18px; }
  .tail-result > p { font-size: 14px; line-height: 1.65; }
}
.lexical-infixation-section { margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.sequence-lab { padding: 24px; background: #f1f3eb; border: 1px solid #d4ddcb; border-radius: 16px; }
.sequence-result {
  display: grid;
  grid-template-rows: minmax(115px, auto) minmax(3.5em, auto);
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 265px;
  padding: 22px 16px;
  overflow: hidden;
  background: #fffef9;
  border: 1px solid #dce2d5;
  border-radius: 12px;
  cursor: pointer;
  touch-action: pan-y pinch-zoom;
}
.sequence-script, .sequence-insert { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; }
.sequence-script { align-self: center; max-width: 100%; }
.sequence-script .word { justify-items: center; margin-inline: 0; font-size: clamp(17px, 3.4vw, 32px); }
.sequence-insert { max-width: 100%; padding: 6px 10px; background: #f6ecd8; border: 1px solid #e3d3ad; border-radius: 8px; }
.sequence-boundary { color: var(--muted); }
.sequence-translation { align-self: center; width: 100%; max-width: 48ch; margin: 0; text-align: center; font-size: 18px; line-height: 1.65; }
.sequence-translation > .sequence-piece { display: inline-block; max-width: 100%; }
.sequence-added, .sequence-added .script-ink, .sequence-added .romanization span { color: #835610; }
.sequence-script .sequence-added { padding-inline: .13em; border-radius: 4px; background: #f3e2bb; }
.sequence-insert .sequence-added { background: transparent; }
.tail-lab .tail-extension.sequence-added { background: #f3e2bb; border-color: #bf9f60; }
.infix-opening { display: grid; place-items: center; min-width: 0; max-width: 100%; }
.infix-base-preview, .infix-split { grid-area: 1 / 1; }
.infix-base-preview { animation: infix-base-fade var(--infix-cycle) both; }
.infix-split, .infix-parts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; min-width: 0; max-width: 100%; }
.infix-split { animation: infix-split-appear var(--infix-cycle) both; }
.infix-reveal {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  animation: infix-insert var(--infix-cycle) both;
}
.infix-reveal > * { flex-shrink: 0; max-width: min(34rem, calc(100vw - 7rem)); }
.infix-translation-reveal { vertical-align: bottom; animation: infix-translation var(--infix-cycle) both; }
.infix-continued :is(.infix-base-preview, .infix-split, .infix-reveal, .infix-translation-reveal) { animation-delay: calc(-1 * var(--infix-prelude)); }
[data-carousel="infixation"][data-carousel-running="false"] :is(.infix-base-preview, .infix-split, .infix-reveal, .infix-translation-reveal) { animation-play-state: paused; }
@keyframes infix-base-fade { 0%, 17% { opacity: 1; } 24%, 100% { visibility: hidden; opacity: 0; } }
@keyframes infix-split-appear { 0%, 18% { visibility: hidden; opacity: 0; } 24%, 100% { visibility: visible; opacity: 1; } }
@keyframes infix-insert {
  0%, 28% { max-width: 0; margin-inline: 0; overflow: clip; opacity: 0; }
  50%, 100% { max-width: min(34rem, calc(100vw - 7rem)); margin-inline: .2em; overflow: visible; opacity: 1; }
}
@keyframes infix-translation {
  0%, 28% { max-width: 0; overflow: clip; white-space: nowrap; opacity: 0; }
  50%, 100% { max-width: 100%; overflow: visible; white-space: normal; opacity: 1; }
}
.sequence-controls { display: grid; gap: 7px; margin-top: 16px; }
.sequence-examples, .sequence-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.sequence-examples > button {
  min-width: 54px;
  min-height: 42px;
  padding: 5px 8px;
  border: 1px solid #c4cebb;
  border-radius: 8px;
  background: #fffef9;
  cursor: pointer;
  font-size: 20px;
}
.sequence-examples > button[aria-pressed="true"] { background: #dee9d5; border-color: #839a76; }
.sequence-steps { gap: 1px; }
.sequence-steps > button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.sequence-steps > button > span { width: 8px; height: 8px; border-radius: 50%; background: #b4c5a9; }
.sequence-steps > button[aria-pressed="true"] > span { width: 11px; height: 11px; background: #547448; }
.sequence-controls button:focus-visible { outline: 2px solid #547448; outline-offset: 2px; }
#grammar-patterns > section + section { margin-top: 34px; }
#grammar-pronominal-patterns > .further-point { margin-top: 28px; }
.tail-lab .carousel-slide-enter { animation: grammar-example-enter .225s ease-out; }
@keyframes grammar-example-enter {
  from { opacity: .2; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.carousel-footer { display: flex; align-items: center; gap: 12px; margin-top: 12px; cursor: pointer; }
.carousel-footer > .carousel-pause { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #48633e; color: #fffef9; cursor: pointer; opacity: 0; }
.carousel-pause > svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
[data-playback="paused"] .carousel-pause, .carousel-pause:is(:hover, :focus-visible) { opacity: 1; }
.carousel-pause:focus-visible { outline: 2px solid #547448; outline-offset: 3px; }
@media (max-width: 650px) {
  .sequence-lab { padding: 16px 10px; }
  .sequence-result { padding: 15px 8px; min-height: 255px; }
  .sequence-script, .sequence-insert { gap: 4px 7px; }
  .sequence-insert { padding: 4px 6px; }
  .sequence-translation { font-size: 15px; }
  .sequence-examples { gap: 4px; }
  .sequence-examples > button { min-width: 44px; padding-inline: 4px; font-size: 17px; }
}
@media (max-width: 380px) {
  [data-carousel="infixation"] .sequence-script .word { font-size: 16px; }
  .sequence-script, .sequence-insert { column-gap: 4px; }
  .sequence-examples > button { padding-inline: 3px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .tail-lab .carousel-slide-enter { animation: none; }
  .infix-base-preview { display: none; }
  .infix-split, .infix-reveal, .infix-translation-reveal { animation: none; }
}

/* HTML graph nodes, with shared fallback nodes and light SVG connectors. */
.suffix-step + .suffix-step { margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.suffix-graph { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px 32px; max-width: 900px; margin: 26px auto; padding: 22px 8px; }
.suffix-graph-core { max-width: 660px; }
.suffix-graph-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; pointer-events: none; }
.suffix-graph-lines path { stroke: #a1b094; stroke-width: 1.5; fill: none; }
.suffix-graph-lines .graph-arrow { stroke: none; fill: #a1b094; }
.suffix-graph-lines text { font: 10px var(--font-ui); fill: #6c7b62; paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.suffix-graph-node { min-width: 0; align-self: center; text-align: center; }
.suffix-graph-question { padding: 10px 4px; color: #43543d; font-size: 14px; line-height: 1.7; }
.suffix-graph-subtitle { display: block; margin-top: 10px; color: var(--muted); font-size: .82em; font-weight: 400; line-height: 1.6; }
.suffix-graph-choice { position: relative; z-index: 1; padding: 14px 10px; background: #fffef9; border-radius: 10px; }
.suffix-graph-choice > strong { display: block; margin-bottom: 8px; font-size: 23px; font-weight: 400; }
.suffix-graph-choice > span { display: block; font-size: 12px; line-height: 1.6; }
.suffix-graph-volume { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px auto; padding: 12px 16px; max-width: 760px; border-top: 1px dashed #bdc6b5; color: #43543d; font-size: 12px; }
.suffix-graph-volume > strong { display: flex; align-items: baseline; font-size: 22px; font-weight: 400; }
.suffix-graph-volume.active { background: #e7eddd; }
.example-placeholder { margin: 22px 0; padding: 20px; border: 1px dashed #bfcab5; border-radius: 10px; background: #f8f8f2; }
.example-placeholder > p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.retained-examples { margin-top: 30px; }
.retained-examples > h4 { padding: 14px 0; }
@media (max-width: 650px) {
  .suffix-graph { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); padding: 16px 0; column-gap: 20px; row-gap: 48px; }
  .suffix-graph-question { font-size: 12px; padding-inline: 0; }
  .suffix-graph-choice { padding: 12px 3px; }
  .suffix-graph-choice > span { font-size: 10px; overflow-wrap: anywhere; }
}

/* The syntax chapter closes with word order; additional remarks have four topics. */
.grammar-guide > .chapter-map { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.syntax-word-order { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.remarks-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.remark-topics { margin-top: 24px; padding: 18px 20px; border: 1px dashed #bdc6b5; border-radius: 8px; background: #f8f8f3; }
.remark-topics > h4 { margin: 0 0 10px; font-size: 16px; }
.remark-topics > ul { margin: 0; padding-left: 20px; }
.working-note > p { margin: 8px 0 0; max-width: none; font-size: 14px; line-height: 1.8; }
.remark-topics li { padding-left: 4px; font-size: 14px; line-height: 1.8; }
.remark-topics li + li { margin-top: 8px; }
#grammar-patterns .action-lesson > h4 { font-size: 23px; line-height: 1.45; }
#grammar-patterns .action-sequence h5 { margin: 0 0 12px; font-size: 19px; line-height: 1.5; }
#grammar-patterns .pattern-lab .lab-header h4 { margin: 0; font-size: 23px; }
.syntax-examples { margin-top: 36px; }
@media (max-width: 850px) {
  .grammar-guide > .chapter-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .grammar-guide > .chapter-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .remarks-index { grid-template-columns: 1fr; }
  .remark-topics { padding: 16px 12px; }
}

/* Every diagram uses the same ordered s → h subtree and shared + → p fallback. */
.review-tree-end { padding: 12px; border: 1px dashed #abb5a2; font-size: 12px; color: #65725c; }
.review-tree-fallback { margin-top: 24px; padding-top: 24px; border-top: 2px dashed #a7b39c; }
.review-tree-primary > li > .review-tree-question { max-width: none; }
.review-tree-primary > li > ul { display: grid; grid-template-columns: minmax(130px, .45fr) minmax(0, 2fr); gap: 18px; }
.review-tree-primary > li > ul > li > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.review-tree-primary .review-tree-leaf { display: block; }
.review-tree-primary .review-tree-leaf > strong { text-align: left; margin-bottom: 8px; }
.review-tree-primary li > ul { padding-left: 15px; margin-left: 0; }
.review-tree-primary li > ul > li::before { width: 14px; left: -15px; }
.review-tree-canopy .review-tree-end { width: 122px; margin: auto; }
.review-tree-primary .priority-node.omitted > strong { text-decoration: line-through; }
@media (max-width: 900px) {
  .review-tree-primary > li > ul, .review-tree-primary > li > ul > li > ul { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .vocabulary-introductions { grid-template-columns: 1fr; }
  .vocabulary-card { padding: 12px 14px 16px; }
  .vocabulary-specimen > .word { font-size: 42px; }
}

/* Three explicit experience branches; keep the third lane legible on phones. */
.suffix-graph-scroll { max-width: 100%; overflow-x: auto; }
.suffix-graph-three-options {
  grid-template-columns: repeat(3, minmax(0, 1.3fr) minmax(0, 1fr));
  min-width: 640px;
  max-width: 1080px;
}
