:root {
  color-scheme: light dark;
  --paper: #e7dfc5;
  --paper-soft: #efe9d7;
  --licorice: #f3bf4c;
  --moon-blue: #82abcc;
  --mist: #d6d8c9;
  --ink: #2d302e;
  --ink-soft: #535751;
  --seal: #9b3f31;
  --focus: #394f5e;
  --surface-rgb: 239 233 215;
  --surface-strong-rgb: 231 223 197;
  --surface-soft-rgb: 214 216 201;
  --line-rgb: 45 48 46;
  --inverse-surface-rgb: 45 48 46;
  --inverse-ink: #efe9d7;
  --placeholder: var(--ink-soft);
  --waterwash-filter: none;
  --stage-wash: rgb(var(--surface-rgb) / .09);
  --hero-image-blend: multiply;
  --hero-image-filter: sepia(.08) contrast(.94);
  --action-hover-ink: #101210;
  --route-shadow: rgb(var(--line-rgb) / .17);
  --route-ink: rgb(var(--line-rgb) / .86);
  --province-surface: rgb(var(--surface-soft-rgb) / .42);
  --province-stroke: rgb(var(--line-rgb) / .38);
  --geo-label-fill: rgb(var(--line-rgb) / .65);
  --geo-label-stroke: rgb(var(--surface-rgb) / .74);
  --journey-mark-surface: rgb(var(--surface-rgb) / .84);
  --journey-mark-stroke: rgb(var(--line-rgb) / .72);
  --map-surface: rgb(var(--surface-rgb) / .62);
  --map-shadow: 0 0 1.2rem rgb(var(--surface-rgb) / .5);
  --map-mobile-shadow: 0 0 .8rem rgb(var(--surface-rgb) / .65);
  --frequency-ink-alpha: .55;
  --ding-surface: rgb(var(--surface-rgb) / .28);
  --footer-surface: transparent;
  --nav-surface: rgb(var(--surface-rgb) / .96);
  --nav-shadow: inset 0 0 0 3px rgb(var(--line-rgb) / .12), 0 .8rem 1.8rem rgb(var(--line-rgb) / .12);
  --serif: "Songti SC", "STSong", "SimSun", "宋体", "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif CN", "Source Han Serif", "Noto Serif SC", "Noto Serif CJK TC", "PMingLiU", "新細明體", serif;
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  display: grid;
  grid-template-rows: 4.6rem minmax(0, 1fr) 2.7rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.65;
  isolation: isolate;
}
a { color: inherit; text-underline-offset: .25em; }
button, input, textarea, select { font: inherit; }
textarea::placeholder { color: var(--placeholder); opacity: 1; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 60; padding: .55rem .8rem; border: 0; background: var(--ink); color: var(--paper); }
.skip:focus { top: 1rem; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 0;
  padding: 0 clamp(1rem, 4vw, 4rem);
  position: relative;
  z-index: 20;
  background: transparent;
}
.brand { display: inline-flex; align-items: baseline; gap: .65rem; flex: 0 0 auto; text-decoration: none; }
.brand-mark { font-size: 1.35rem; font-weight: 650; letter-spacing: .14em; }
.brand small { color: var(--ink-soft); font-size: .7rem; letter-spacing: .09em; }
nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.55rem, 1.6vw, 1.4rem); min-width: 0; font-size: .84rem; }
nav > a { position: relative; padding: .6rem 0; white-space: nowrap; text-decoration: none; cursor: pointer; }
nav > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .08rem;
  width: .48rem;
  height: .48rem;
  background: var(--licorice);
  opacity: 0;
  transform: translate(-50%, .18rem);
  transition: opacity .18s ease, transform .18s ease;
}
nav > a:hover::after, nav > a[aria-current="page"]::after { opacity: 1; transform: translate(-50%, 0); }

main { min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
main > * { height: 100%; }
.site-waterwash { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.site-waterwash img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--waterwash-filter); }
.eyebrow { margin: 0 0 .55rem; color: var(--ink-soft); font-size: .74rem; letter-spacing: .12em; }
h1, h2, h3 { text-wrap: balance; }
h1 { margin: 0; font-weight: 580; line-height: .98; }
.muted, .section-intro { color: var(--ink-soft); }
.status { margin: .45rem 0 0; padding: .2rem 0; color: var(--ink-soft); font-size: .8rem; }
.status[data-kind="error"] { color: #723329; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(16rem, .78fr) minmax(18rem, 1.22fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0 clamp(1rem, 4vw, 5rem);
  padding: clamp(1.2rem, 4vh, 3.5rem) clamp(1.25rem, 7vw, 7rem) 1rem;
  overflow: hidden;
}
.hero::after, .workspace::after, .life-stage::after, .frequency-stage::after, .plain-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--stage-wash);
  pointer-events: none;
}
.hero-copy { align-self: center; max-width: 30rem; padding-bottom: 4vh; }
.hero-copy h1 { font-size: clamp(3.5rem, 9vw, 7.2rem); letter-spacing: .2em; }
.lede { margin: 1.35rem 0 0; max-width: 24rem; font-size: clamp(.95rem, 1.7vw, 1.14rem); }
.hero-figure { align-self: end; justify-self: end; width: min(42vw, 29rem); margin: 0 1vw -2.5rem 0; position: relative; }
.hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; mix-blend-mode: var(--hero-image-blend); filter: var(--hero-image-filter); }
.hero-figure figcaption { position: absolute; right: 2.4rem; bottom: 3.8rem; width: 10rem; color: var(--ink-soft); font-size: .58rem; line-height: 1.4; }
.hero-side-note { align-self: end; grid-column: 1; margin: 0 0 .2rem; color: var(--ink-soft); font-size: .68rem; letter-spacing: .1em; }

.actions { display: flex; align-items: center; gap: .75rem 1.4rem; margin-top: 1.4rem; flex-wrap: wrap; }
.primary, .secondary, .text-action, .ink-action {
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
.primary, .ink-action { padding: .35rem .4rem; font-weight: 650; }
.primary::before, .ink-action::before {
  content: "";
  width: 1.55rem;
  height: 1.55rem;
  margin-right: .55rem;
  background: var(--seal);
  box-shadow: inset 0 0 0 3px rgb(var(--surface-rgb) / .48);
}
.ink-action::before { background: var(--ink); }
.primary:hover, .primary:focus-visible, .ink-action:hover, .ink-action:focus-visible { transform: translateY(-2px); }
.secondary, .text-action { padding: .35rem .1rem; }
.secondary::before, .text-action::before {
  content: "";
  width: .72rem;
  height: .72rem;
  margin-right: .45rem;
  background: var(--moon-blue);
  box-shadow: inset 0 0 0 2px rgb(var(--surface-rgb) / .7);
}
.secondary:hover, .secondary:focus-visible, .text-action:hover, .text-action:focus-visible { color: var(--action-hover-ink); }

.workspace {
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.3rem, 4vh, 3rem) clamp(1.25rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(12rem, .6fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.workspace:not(.is-session) { grid-template-columns: minmax(0, 52rem); justify-content: center; }
.workspace-main { min-width: 0; max-height: 100%; }
.workspace-main h1, .page-head h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); line-height: 1.15; }
.today-title { white-space: nowrap; letter-spacing: .08em; }
.topic-form { margin-top: clamp(1.2rem, 3vh, 2.3rem); }
.topic-form label { display: block; margin-bottom: .55rem; font-size: clamp(1rem, 2vw, 1.4rem); }
.topic-form textarea {
  width: 100%;
  min-height: 6rem;
  max-height: 8rem;
  padding: .8rem .95rem;
  border: 0;
  background: rgb(var(--surface-rgb) / .68);
  box-shadow: inset 0 0 2rem rgba(130, 171, 204, .11);
  color: var(--ink);
  resize: none;
}
.topic-form button { margin-top: .65rem; }
.aside { align-self: center; max-width: 16rem; }
.aside h2 { margin: 0 0 .55rem; font-size: 1.12rem; font-weight: 600; }
.aside p { margin: .45rem 0; }
.workspace.is-session { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); align-items: stretch; padding-top: 1rem; padding-bottom: .5rem; }
.workspace.is-session .aside { display: none; }
.workspace.is-session .workspace-main > h1 { max-width: 42rem; font-size: clamp(1.55rem, 3vw, 2.5rem); }
.session-stage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; min-height: 0; }
.passages { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .8rem 1.4rem; margin: .7rem 0; min-height: 0; }
.passage-card, .dialogue-step, .ai-turn, .callout { padding: .5rem 0; border: 0; background: transparent; }
.passage-card h2, .dialogue-step h2 { margin: .2rem 0; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.passage-card blockquote, .selected-chapter blockquote { margin: .4rem 0; font-size: clamp(.92rem, 1.45vw, 1.18rem); line-height: 1.65; }
.passage-card p { margin: .35rem 0; font-size: .8rem; line-height: 1.55; }
.annotation-note { color: var(--ink-soft); }
.annotation-note b { color: var(--ink); margin-right: .4rem; }
.dialogue-step { margin: .4rem 0; }
.dialogue-step form > label { font-size: .8rem; }
.dialogue-step fieldset { margin: .7rem 0; padding: 0; border: 0; }
.dialogue-step fieldset:disabled { opacity: .58; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; margin: .35rem 0; padding: .45rem .6rem; border: 0; background: rgb(var(--surface-soft-rgb) / .18); cursor: pointer; }
.choice input { appearance: none; width: 1rem; height: 1rem; margin: .3rem 0 0; border: 3px double var(--moon-blue); }
.choice input:checked { box-shadow: inset 0 0 0 3px var(--paper-soft), inset 0 0 0 9px var(--moon-blue); }
.choice:has(input:checked) { background: rgba(130, 171, 204, .2); }
.callout { color: var(--ink-soft); }

.plain-stage {
  width: 100%;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(15rem, .75fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
  padding: clamp(1.5rem, 6vh, 4rem) clamp(1.25rem, 8vw, 8rem);
  overflow: hidden;
}
.page-head { padding: 0; }
.section-intro { max-width: 34rem; margin: .8rem 0 0; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .8rem; padding: .85rem 0; font-size: 1rem; }
.plain-list li strong { font-size: 1.02rem; }
.life-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  padding: 1rem clamp(1rem, 5vw, 5rem) .45rem;
  overflow: hidden;
}
.life-copy { position: absolute; z-index: 2; top: 1.3rem; left: clamp(1rem, 5vw, 5rem); width: min(25rem, 32%); }
.life-copy h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); letter-spacing: .08em; }
.journey-layout { width: min(78rem, 100%); height: 100%; min-height: 0; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(15rem, .45fr); gap: clamp(1rem, 5vw, 4rem); align-items: center; }
.journey-map-wrap { min-width: 0; min-height: 0; padding-top: 9.5rem; }
.journey-map { position: relative; width: min(100%, 34rem); aspect-ratio: 230 / 175; margin: 0 auto; }
.journey-overlay { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
.geo-province { fill: var(--province-surface); stroke: var(--province-stroke); stroke-width: .55; vector-effect: non-scaling-stroke; }
.geo-shandong, .geo-henan { fill: rgba(130, 171, 204, .34); }
.geo-label { fill: var(--geo-label-fill); font-size: 7px; font-weight: 650; text-anchor: middle; paint-order: stroke; stroke: var(--geo-label-stroke); stroke-width: 1.8px; }
.journey-route-shadow, .journey-route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.journey-route-shadow { stroke: var(--route-shadow); stroke-width: 1.8; }
.journey-route { stroke: var(--route-ink); stroke-width: 1.25; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .8s cubic-bezier(.2, .75, .2, 1); }
.journey-mark { opacity: 0; transition: opacity .35s ease; }
.journey-mark.is-visible { opacity: 1; }
.journey-mark rect:first-child { fill: var(--journey-mark-surface); stroke: var(--journey-mark-stroke); stroke-width: .8; }
.journey-mark rect:last-child { fill: var(--seal); }
.map-note { margin: .45rem auto 0; max-width: 34rem; padding: .35rem .5rem; background: var(--map-surface); color: var(--ink-soft); font-size: .62rem; line-height: 1.42; }
.journey-reading { align-self: center; min-height: 0; padding: 1rem; background: var(--map-surface); box-shadow: var(--map-shadow); }
.journey-reading :is(.eyebrow, small), .map-note { color: var(--ink); }
.journey-reading h2 { margin: 0; font-size: clamp(1.4rem, 2.8vw, 2.4rem); line-height: 1.2; }
.journey-reading > p { margin: .35rem 0; font-size: .82rem; }
.tradition-mark { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; margin-left: .35rem; background: var(--ink); color: var(--paper-soft); font-size: .64rem; vertical-align: middle; }
.journey-chapters { margin-top: .6rem; }
.chapter-link { display: block; padding: .34rem 0; text-decoration: none; font-size: .75rem; line-height: 1.45; }
.chapter-link small { display: block; color: var(--ink-soft); }
.chapter-link span { display: block; }
.chapter-link:hover span, .chapter-link:focus-visible span { text-decoration: underline; text-decoration-thickness: .08em; }
.life-controls { display: flex; align-items: center; justify-content: flex-end; gap: .3rem 1rem; width: min(78rem, 100%); margin: 0 auto; flex-wrap: wrap; }
.life-controls button { font-weight: inherit; }
.year-ribbon { width: min(78rem, 100%); margin: .25rem auto 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: .2rem; }
.year-step { min-width: 0; padding: .35rem .22rem; border: 0; background: rgb(var(--surface-soft-rgb) / .2); color: var(--ink-soft); text-align: left; }
.year-step span, .year-step small { display: block; overflow: hidden; white-space: nowrap; text-overflow: clip; }
.year-step span { font-size: .65rem; }
.year-step small { margin-top: .05rem; font-size: .58rem; }
.year-step.is-current { background: rgba(130, 171, 204, .27); color: var(--ink); box-shadow: inset 0 4px 0 var(--licorice); }
.life-stage > .status { position: absolute; right: clamp(1rem, 5vw, 5rem); bottom: .1rem; margin: 0; }

.frequency-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 1rem clamp(1rem, 6vw, 6rem) .55rem;
  overflow: hidden;
}
.frequency-head { position: absolute; z-index: 2; top: 1.3rem; right: clamp(1rem, 6vw, 6rem); width: min(25rem, 33%); }
.frequency-head h1 { font-size: clamp(3rem, 7vw, 6.2rem); }
.data-tabs { display: flex; gap: .28rem; margin-top: .65rem; }
.data-tabs a { min-width: 3.25rem; padding: .26rem .4rem; background: rgb(var(--surface-soft-rgb) / .28); text-align: center; text-decoration: none; font-size: .72rem; }
.data-tabs a.is-current { background: var(--ink); color: var(--paper-soft); box-shadow: inset 0 0 0 3px rgb(var(--surface-rgb) / .42); }
.frequency-layout { width: min(78rem, 100%); height: 100%; min-height: 0; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(15rem, .45fr); gap: clamp(1rem, 5vw, 4rem); align-items: end; }
.frequency-table { height: min(58vh, 31rem); display: grid; grid-auto-flow: column; grid-template-rows: repeat(8, minmax(0, 1fr)); grid-auto-columns: minmax(0, 1fr); gap: .16rem; direction: rtl; }
.frequency-entry { display: flex; align-items: baseline; justify-content: center; gap: .18rem; min-width: 0; min-height: 0; padding: .18rem .1rem; border: 0; background: rgb(var(--surface-soft-rgb) / .16); color: rgb(var(--line-rgb) / calc(var(--frequency-ink-alpha) + var(--word-scale) * .22)); direction: ltr; }
.frequency-entry span { font-size: calc(1.2rem * var(--word-scale)); line-height: 1; }
.frequency-entry small { font-size: .55rem; color: var(--ink-soft); }
.frequency-entry:hover, .frequency-entry:focus-visible { background: rgba(243, 191, 76, .17); }
.frequency-entry.is-current { background: rgba(130, 171, 204, .28); color: var(--ink); box-shadow: inset 0 4px 0 var(--licorice); }
.frequency-reading { min-height: 0; align-self: end; padding-top: 7rem; }
.frequency-reading h2 { margin: 0; font-size: clamp(2.7rem, 6vw, 5.2rem); font-weight: 560; line-height: 1; }
.frequency-reading > p { margin: .4rem 0 .7rem; }
.frequency-reading > p strong { font-size: 1.25rem; }
.selected-chapter { padding: .5rem 0; font-size: .78rem; line-height: 1.55; }
.selected-chapter p { margin: .35rem 0; }

.overview-layout { width: min(78rem, 100%); height: 100%; min-height: 0; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .8fr 1.15fr; gap: clamp(.8rem, 3vw, 2.5rem); align-items: center; padding-top: 4rem; }
.speech-board { align-self: center; }
.speech-board > strong { display: block; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; font-weight: 560; }
.speech-board > strong small { display: block; margin-top: .35rem; font-size: .2em; font-weight: 500; }
.speech-board > p:last-child { max-width: 18rem; font-size: .78rem; }
.counting-board { width: min(18rem, 100%); display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; margin: .9rem 0; }
.counting-board i { aspect-ratio: 1; background: rgb(var(--surface-soft-rgb) / .28); }
.counting-board i.is-filled { background: var(--moon-blue); box-shadow: inset 0 0 0 3px rgb(var(--surface-rgb) / .42); }
.chapter-measures { height: 18rem; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: .55rem; }
.chapter-measures > p { grid-column: 1 / -1; align-self: start; }
.chapter-measures div { height: 14rem; display: grid; grid-template-rows: 1fr auto auto; align-items: end; text-align: center; font-size: .68rem; }
.chapter-measures i { display: block; width: 100%; height: calc(100% * var(--measure)); min-height: .5rem; background: rgba(243, 191, 76, .58); box-shadow: inset 0 0 0 3px rgb(var(--surface-rgb) / .4); }
.chapter-measures b, .chapter-measures span { display: block; }
.inscription-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.inscription-grid article { aspect-ratio: 1; display: grid; place-content: center; padding: .65rem; background: rgb(var(--inverse-surface-rgb) / .94); color: var(--inverse-ink); text-align: center; box-shadow: inset 0 0 0 4px rgb(var(--surface-rgb) / .26); }
.inscription-grid strong { display: block; font-size: clamp(1.35rem, 3vw, 2.4rem); line-height: 1; }
.inscription-grid span { margin-top: .4rem; font-size: .66rem; }

.disciple-layout { width: min(78rem, 100%); height: 100%; min-height: 0; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(15rem, .5fr); gap: clamp(1rem, 5vw, 4rem); align-items: end; }
.disciple-grid { align-self: center; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .42rem; padding-top: 2rem; }
.disciple-entry { position: relative; aspect-ratio: 1; display: grid; place-content: center; overflow: hidden; background: rgb(var(--surface-soft-rgb) / .25); color: var(--ink); text-align: center; text-decoration: none; box-shadow: inset 0 calc(-100% * var(--fill)) 0 rgba(130, 171, 204, .34); }
.disciple-entry::after { content: ""; position: absolute; inset: 4px; box-shadow: inset 0 0 0 2px rgb(var(--line-rgb) / .17); }
.disciple-entry.is-current { background: rgba(243, 191, 76, .45); box-shadow: inset 0 calc(-100% * var(--fill)) 0 rgba(155, 63, 49, .28); }
.disciple-entry span { position: relative; z-index: 1; font-size: clamp(.82rem, 1.5vw, 1.15rem); }
.disciple-entry b { position: relative; z-index: 1; font-size: .65rem; }
.disciple-reading { align-self: end; padding-top: 6.5rem; }
.disciple-reading h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; }
.disciple-summary { margin: .55rem 0; font-size: .72rem; line-height: 1.5; }
.disciple-summary b { font-size: .9rem; }
.classic-links { display: flex; gap: .8rem; margin: .45rem 0; font-size: .67rem; }
.disciple-reading dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; margin: .8rem 0; }
.disciple-reading dl div { padding: .35rem; background: rgb(var(--surface-soft-rgb) / .28); text-align: center; }
.disciple-reading dt { font-size: .6rem; color: var(--ink-soft); }
.disciple-reading dd { margin: 0; font-size: 1.2rem; }

.progress-stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(16rem, .8fr) minmax(20rem, 1.2fr); align-items: center; gap: clamp(1rem, 6vw, 5rem); padding: clamp(1rem, 4vh, 3rem) clamp(1.2rem, 9vw, 9rem); overflow: hidden; }
.progress-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--stage-wash); pointer-events: none; }
.progress-copy { max-width: 27rem; }
.progress-copy h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: .08em; }
.progress-copy > p:not(.eyebrow) { max-width: 23rem; }
.ding-progress { position: relative; width: min(38vw, 26rem); margin: 0 auto; }
.ding-artifact { position: relative; width: 100%; aspect-ratio: 1501 / 2000; overflow: hidden; background: var(--ding-surface); box-shadow: inset 0 0 0 4px rgb(var(--line-rgb) / .08), 0 1.1rem 2.8rem rgb(var(--line-rgb) / .08); }
.ding-empty { position: absolute; inset: 0; display: grid; place-content: center; color: var(--ink-soft); text-align: center; font-size: .78rem; letter-spacing: .1em; }
.ding-artifact:not([data-revealed="0"]) .ding-empty { display: none; }
.ding-piece { position: absolute; left: var(--piece-left); top: var(--piece-top); width: 5%; height: 6.6667%; background-image: url("https://img.bdfz.net/20260826008.webp?v=20260826"); background-repeat: no-repeat; background-size: 2000% 1500%; background-position: var(--piece-bg-x) var(--piece-bg-y); opacity: 0; transition: opacity .4s ease; }
.ding-piece.is-revealed { opacity: 1; }
.ding-progress figcaption { position: static; display: flex; align-items: end; justify-content: center; gap: .7rem; margin-top: .45rem; text-align: center; }
.progress-numbers { display: grid; }
.ding-progress figcaption strong { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; }
.ding-progress figcaption span, .ding-progress figcaption small { color: var(--ink-soft); }
.progress-status { position: absolute; right: clamp(1.2rem, 9vw, 9rem); bottom: .4rem; }

.my-stage { height: 100%; overflow-y: auto; scroll-behavior: smooth; padding: clamp(1.2rem, 4vh, 3rem) clamp(1.1rem, 7vw, 7rem) 4rem; }
.my-section { display: grid; align-content: start; padding: clamp(2rem, 6vh, 4rem) 0; box-shadow: inset 0 1px 0 rgb(var(--line-rgb) / .22); scroll-margin-top: 1rem; }
.my-section > header { max-width: 48rem; margin-bottom: .8rem; }
.my-section h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; }
.my-section p { font-size: .96rem; }
.my-progress-panel { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: .65rem; padding-top: .5rem; box-shadow: none; }
.my-progress-panel > .status { width: min(40rem, 100%); margin: 0 auto; text-align: center; }
.my-progress-panel .ding-progress { width: min(26rem, 100%); margin: 0 auto; }
.archive-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .8rem; }
.archive-list article { padding: 1rem; background: rgb(var(--surface-rgb) / .52); box-shadow: inset 4px 0 0 var(--moon-blue); }
.archive-list h3 { margin: .2rem 0; font-size: 1.15rem; }
.archive-list p, .archive-list small { margin: 0; color: var(--ink-soft); font-size: .82rem; }
footer { position: relative; display: flex; align-items: center; min-width: 0; padding: 0 clamp(.75rem, 4vw, 4rem); color: var(--ink-soft); background: var(--footer-surface); }
.footer-controls { display: flex; align-items: center; min-width: 0; gap: .45rem; }
footer button { min-height: 2rem; padding: .2rem .45rem; border: 0; background: transparent; color: inherit; font-size: .875rem; white-space: nowrap; }
footer button:hover, footer button:focus-visible { color: var(--ink); box-shadow: inset 0 -3px 0 var(--moon-blue); }
#palette-select { min-height: 2rem; padding: .2rem .4rem; border: 0; background: transparent; color: var(--ink); font-size: .875rem; }
#palette-select option { background: var(--paper); color: var(--ink); }

.hero-copy { animation: settle .65s ease-out both; }
.hero-figure { animation: portrait-in .9s .12s ease-out both; }
.hero-side-note { animation: settle .55s .28s ease-out both; }
.reveal { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes settle { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes portrait-in { from { opacity: 0; transform: translate(1.2rem, 1.4rem) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-palette]) {
    --paper: #292d2d;
    --paper-soft: #373c3a;
    --licorice: #f3bf4c;
    --moon-blue: #82abcc;
    --mist: #d6d8c9;
    --ink: #e7dfc5;
    --ink-soft: #bdc4bb;
    --seal: #9b3f31;
    --focus: #d4b659;
    --surface-rgb: 54 60 59;
    --surface-strong-rgb: 64 69 66;
    --surface-soft-rgb: 47 54 53;
    --line-rgb: 231 223 197;
    --inverse-surface-rgb: 231 223 197;
    --inverse-ink: #292d2d;
    --placeholder: var(--ink-soft);
    --waterwash-filter: brightness(.39) saturate(.76) contrast(1.04);
    --stage-wash: rgb(var(--surface-rgb) / .2);
    --hero-image-blend: screen;
    --hero-image-filter: grayscale(.25) sepia(.15) brightness(.72) contrast(.95);
    --action-hover-ink: #fff8e9;
    --route-shadow: rgb(var(--line-rgb) / .18);
    --route-ink: rgb(var(--line-rgb) / .82);
    --province-surface: rgb(var(--surface-rgb) / .68);
    --province-stroke: rgb(var(--line-rgb) / .34);
    --geo-label-fill: rgb(var(--line-rgb) / .8);
    --geo-label-stroke: rgb(var(--surface-rgb) / .86);
    --journey-mark-surface: rgb(var(--surface-rgb) / .68);
    --journey-mark-stroke: rgb(var(--line-rgb) / .72);
    --map-surface: rgb(var(--surface-rgb) / .72);
    --map-shadow: 0 0 1.2rem rgb(var(--surface-rgb) / .58);
    --map-mobile-shadow: 0 0 .8rem rgb(var(--surface-rgb) / .58);
    --frequency-ink-alpha: .48;
    --ding-surface: rgb(var(--surface-rgb) / .5);
    --footer-surface: transparent;
    --nav-surface: rgb(var(--surface-rgb) / .97);
    --nav-shadow: inset 0 0 0 3px rgb(var(--line-rgb) / .14), 0 .8rem 1.8rem rgb(0 0 0 / .24);
  }
}

:root[data-palette="paper"] {
  color-scheme: light;
  --paper: #e7dfc5; --paper-soft: #efe9d7; --licorice: #f3bf4c; --moon-blue: #82abcc; --mist: #d6d8c9;
  --ink: #2d302e; --ink-soft: #535751; --seal: #9b3f31; --focus: #394f5e;
  --surface-rgb: 239 233 215; --surface-strong-rgb: 231 223 197; --surface-soft-rgb: 214 216 201; --line-rgb: 45 48 46;
  --inverse-surface-rgb: 45 48 46; --inverse-ink: #efe9d7; --placeholder: var(--ink-soft);
  --waterwash-filter: none; --stage-wash: rgb(var(--surface-rgb) / .09); --hero-image-blend: multiply; --hero-image-filter: sepia(.08) contrast(.94);
  --action-hover-ink: #101210; --route-shadow: rgb(var(--line-rgb) / .17); --route-ink: rgb(var(--line-rgb) / .86);
  --province-surface: rgb(var(--surface-soft-rgb) / .42); --province-stroke: rgb(var(--line-rgb) / .38); --geo-label-fill: rgb(var(--line-rgb) / .65); --geo-label-stroke: rgb(var(--surface-rgb) / .74);
  --journey-mark-surface: rgb(var(--surface-rgb) / .84); --journey-mark-stroke: rgb(var(--line-rgb) / .72); --map-surface: rgb(var(--surface-rgb) / .62); --map-shadow: 0 0 1.2rem rgb(var(--surface-rgb) / .5); --map-mobile-shadow: 0 0 .8rem rgb(var(--surface-rgb) / .65);
  --frequency-ink-alpha: .55; --ding-surface: rgb(var(--surface-rgb) / .28); --footer-surface: transparent; --nav-surface: rgb(var(--surface-rgb) / .96); --nav-shadow: inset 0 0 0 3px rgb(var(--line-rgb) / .12), 0 .8rem 1.8rem rgb(var(--line-rgb) / .12);
}

:root[data-palette="ink"] {
  color-scheme: light;
  --paper: #ffffff; --paper-soft: #f2f2f2; --licorice: #111111; --moon-blue: #555555; --mist: #d5d5d5;
  --ink: #000000; --ink-soft: #333333; --seal: #690000; --focus: #0000cc;
  --surface-rgb: 255 255 255; --surface-strong-rgb: 242 242 242; --surface-soft-rgb: 213 213 213; --line-rgb: 0 0 0;
  --inverse-surface-rgb: 0 0 0; --inverse-ink: #ffffff; --placeholder: var(--ink-soft);
  --waterwash-filter: grayscale(1) contrast(1.08); --stage-wash: rgb(var(--surface-rgb) / .12); --hero-image-blend: multiply; --hero-image-filter: grayscale(1) contrast(1.12);
  --action-hover-ink: #000000; --route-shadow: rgb(var(--line-rgb) / .2); --route-ink: rgb(var(--line-rgb) / .9);
  --province-surface: rgb(var(--surface-soft-rgb) / .48); --province-stroke: rgb(var(--line-rgb) / .46); --geo-label-fill: rgb(var(--line-rgb) / .76); --geo-label-stroke: rgb(var(--surface-rgb) / .9);
  --journey-mark-surface: rgb(var(--surface-rgb) / .9); --journey-mark-stroke: rgb(var(--line-rgb) / .8); --map-surface: rgb(var(--surface-rgb) / .72); --map-shadow: 0 0 1.2rem rgb(var(--line-rgb) / .12); --map-mobile-shadow: 0 0 .8rem rgb(var(--line-rgb) / .14);
  --frequency-ink-alpha: .65; --ding-surface: rgb(var(--surface-soft-rgb) / .36); --footer-surface: transparent; --nav-surface: rgb(var(--surface-rgb) / .98); --nav-shadow: inset 0 0 0 3px rgb(var(--line-rgb) / .16), 0 .8rem 1.8rem rgb(var(--line-rgb) / .12);
}

:root[data-palette="azurite"] {
  color-scheme: light;
  --paper: #e8f0ed; --paper-soft: #f1f6f4; --licorice: #b76824; --moon-blue: #387a83; --mist: #c8d9d5;
  --ink: #183236; --ink-soft: #365554; --seal: #8b3d2f; --focus: #145b66;
  --surface-rgb: 241 246 244; --surface-strong-rgb: 224 237 233; --surface-soft-rgb: 200 217 213; --line-rgb: 24 50 54;
  --inverse-surface-rgb: 24 50 54; --inverse-ink: #f1f6f4; --placeholder: var(--ink-soft);
  --waterwash-filter: hue-rotate(125deg) saturate(.58) brightness(.98); --stage-wash: rgb(var(--surface-rgb) / .12); --hero-image-blend: multiply; --hero-image-filter: sepia(.18) hue-rotate(125deg) saturate(.68) contrast(.96);
  --action-hover-ink: #0a272b; --route-shadow: rgb(var(--line-rgb) / .18); --route-ink: rgb(var(--line-rgb) / .88);
  --province-surface: rgb(var(--surface-soft-rgb) / .48); --province-stroke: rgb(var(--line-rgb) / .42); --geo-label-fill: rgb(var(--line-rgb) / .72); --geo-label-stroke: rgb(var(--surface-rgb) / .82);
  --journey-mark-surface: rgb(var(--surface-rgb) / .86); --journey-mark-stroke: rgb(var(--line-rgb) / .76); --map-surface: rgb(var(--surface-rgb) / .68); --map-shadow: 0 0 1.2rem rgb(var(--surface-rgb) / .56); --map-mobile-shadow: 0 0 .8rem rgb(var(--surface-rgb) / .62);
  --frequency-ink-alpha: .58; --ding-surface: rgb(var(--surface-rgb) / .38); --footer-surface: transparent; --nav-surface: rgb(var(--surface-rgb) / .97); --nav-shadow: inset 0 0 0 3px rgb(var(--line-rgb) / .14), 0 .8rem 1.8rem rgb(var(--line-rgb) / .13);
}

:root[data-palette="umber"] {
  color-scheme: light;
  --paper: #eadfce; --paper-soft: #f2e9dc; --licorice: #c3893f; --moon-blue: #6f8580; --mist: #d8c9b6;
  --ink: #36281f; --ink-soft: #5c493a; --seal: #8d3728; --focus: #664a32;
  --surface-rgb: 242 233 220; --surface-strong-rgb: 232 219 201; --surface-soft-rgb: 216 201 182; --line-rgb: 54 40 31;
  --inverse-surface-rgb: 54 40 31; --inverse-ink: #f2e9dc; --placeholder: var(--ink-soft);
  --waterwash-filter: sepia(.32) saturate(.7) brightness(.96); --stage-wash: rgb(var(--surface-rgb) / .11); --hero-image-blend: multiply; --hero-image-filter: sepia(.35) saturate(.72) contrast(.96);
  --action-hover-ink: #21160f; --route-shadow: rgb(var(--line-rgb) / .18); --route-ink: rgb(var(--line-rgb) / .88);
  --province-surface: rgb(var(--surface-soft-rgb) / .46); --province-stroke: rgb(var(--line-rgb) / .4); --geo-label-fill: rgb(var(--line-rgb) / .7); --geo-label-stroke: rgb(var(--surface-rgb) / .78);
  --journey-mark-surface: rgb(var(--surface-rgb) / .86); --journey-mark-stroke: rgb(var(--line-rgb) / .74); --map-surface: rgb(var(--surface-rgb) / .66); --map-shadow: 0 0 1.2rem rgb(var(--surface-rgb) / .54); --map-mobile-shadow: 0 0 .8rem rgb(var(--surface-rgb) / .62);
  --frequency-ink-alpha: .58; --ding-surface: rgb(var(--surface-rgb) / .34); --footer-surface: transparent; --nav-surface: rgb(var(--surface-rgb) / .97); --nav-shadow: inset 0 0 0 3px rgb(var(--line-rgb) / .14), 0 .8rem 1.8rem rgb(var(--line-rgb) / .13);
}

:root[data-palette="night"] {
  color-scheme: dark;
  --paper: #292d2d; --paper-soft: #373c3a; --licorice: #f3bf4c; --moon-blue: #82abcc; --mist: #d6d8c9;
  --ink: #e7dfc5; --ink-soft: #bdc4bb; --seal: #9b3f31; --focus: #d4b659;
  --surface-rgb: 54 60 59; --surface-strong-rgb: 64 69 66; --surface-soft-rgb: 47 54 53; --line-rgb: 231 223 197;
  --inverse-surface-rgb: 231 223 197; --inverse-ink: #292d2d; --placeholder: var(--ink-soft);
  --waterwash-filter: brightness(.39) saturate(.76) contrast(1.04); --stage-wash: rgb(var(--surface-rgb) / .2); --hero-image-blend: screen; --hero-image-filter: grayscale(.25) sepia(.15) brightness(.72) contrast(.95);
  --action-hover-ink: #fff8e9; --route-shadow: rgb(var(--line-rgb) / .18); --route-ink: rgb(var(--line-rgb) / .82);
  --province-surface: rgb(var(--surface-rgb) / .68); --province-stroke: rgb(var(--line-rgb) / .34); --geo-label-fill: rgb(var(--line-rgb) / .8); --geo-label-stroke: rgb(var(--surface-rgb) / .86);
  --journey-mark-surface: rgb(var(--surface-rgb) / .68); --journey-mark-stroke: rgb(var(--line-rgb) / .72); --map-surface: rgb(var(--surface-rgb) / .72); --map-shadow: 0 0 1.2rem rgb(var(--surface-rgb) / .58); --map-mobile-shadow: 0 0 .8rem rgb(var(--surface-rgb) / .58);
  --frequency-ink-alpha: .48; --ding-surface: rgb(var(--surface-rgb) / .5); --footer-surface: transparent; --nav-surface: rgb(var(--surface-rgb) / .97); --nav-shadow: inset 0 0 0 3px rgb(var(--line-rgb) / .14), 0 .8rem 1.8rem rgb(0 0 0 / .24);
}

@media (max-width: 760px) {
  #bdfz-unified-widget { display: none !important; }
  body { grid-template-rows: 4.25rem minmax(0, 1fr) 2.25rem; }
  .masthead { gap: .7rem; padding: 0 .75rem; }
  .brand { gap: .25rem; }
  .brand-mark { font-size: 1.05rem; }
  .brand small { display: none; }
  nav { gap: .5rem; font-size: .62rem; line-height: 1.15; }
  nav > a, .nav-group > summary { padding: .5rem 0; }
  nav > a::after, .nav-group > summary::after { bottom: -.02rem; width: .36rem; height: .36rem; border-width: 2px; }
  .nav-sheet { right: -.35rem; min-width: 7.2rem; padding: .35rem .5rem; font-size: .66rem; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; align-content: start; padding: 4vh 1rem .7rem; }
  .hero-copy { width: 74%; padding: 0; z-index: 2; }
  .hero-copy h1 { font-size: clamp(3.4rem, 19vw, 5rem); }
  .lede { margin-top: .75rem; font-size: .88rem; }
  .actions { margin-top: .8rem; gap: .25rem 1rem; }
  .primary, .secondary, .text-action, .ink-action { min-height: 2.2rem; font-size: .78rem; }
  .primary::before, .ink-action::before { width: 1.25rem; height: 1.25rem; box-shadow: inset 0 0 0 2px rgb(var(--surface-rgb) / .5); }
  .hero-figure { grid-row: 2; width: min(72vw, 17rem); margin: -1.6rem 0 -1rem auto; }
  .hero-figure figcaption { right: 1.8rem; bottom: 2.7rem; width: 8rem; font-size: .5rem; }
  .hero-side-note { grid-column: 1; grid-row: 3; font-size: .62rem; }

  .workspace { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: .6rem; padding: 1.2rem 1rem .6rem; align-items: center; }
  .workspace-main h1 { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .workspace-main > .muted { margin: .55rem 0; font-size: .8rem; }
  .topic-form { margin-top: 1rem; }
  .topic-form label { font-size: 1rem; }
  .topic-form textarea { min-height: 5.5rem; }
  .aside { max-width: none; padding-left: 18%; font-size: .72rem; }
  .aside h2 { margin: 0; font-size: .9rem; }
  .workspace.is-session { padding: .65rem .8rem .3rem; }
  .workspace.is-session .workspace-main > .eyebrow { margin-bottom: .15rem; }
  .workspace.is-session .workspace-main > h1 { font-size: 1.3rem; }
  .session-stage { grid-template-columns: 1fr; gap: .35rem; align-content: center; }
  .passages { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .35rem .7rem; margin: .25rem 0; }
  .passage-card { padding: .1rem 0; }
  .passage-card h2 { font-size: .86rem; }
  .passage-card blockquote { margin: .2rem 0; font-size: .78rem; line-height: 1.45; }
  .passage-card p { margin: .15rem 0; font-size: .67rem; line-height: 1.4; }
  .annotation-note { display: none; }
  .dialogue-step { padding: .15rem 0; }
  .dialogue-step h2 { font-size: .92rem; }
  .choice { margin: .2rem 0; padding: .3rem .4rem; font-size: .74rem; }

  .plain-stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto; align-items: center; gap: .7rem; padding: 1.3rem 1.1rem; }
  .page-head h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .section-intro { margin-top: .6rem; font-size: .85rem; }
  .plain-list { width: 100%; margin-left: 0; font-size: .94rem; }
  .plain-list li { grid-template-columns: 3.2rem 1fr; padding: .45rem 0; }
  .plain-list li, .plain-list li strong { font-size: .94rem; }

  .life-stage { padding: .6rem .7rem .25rem; }
  .life-copy { top: .7rem; left: .8rem; width: 42%; }
  .life-copy h1 { font-size: clamp(2rem, 10.5vw, 2.8rem); }
  .journey-layout { position: relative; grid-template-columns: 1fr; gap: 0; align-items: center; }
  .journey-map-wrap { width: 100%; padding-top: 5.5rem; }
  .journey-map { width: 100%; height: auto; }
  .map-note { margin: .25rem 0 0; padding: .22rem .3rem; font-size: .49rem; line-height: 1.25; }
  .journey-reading { position: absolute; z-index: 2; top: 14.3rem; right: .15rem; width: 43%; padding: .35rem; box-shadow: var(--map-mobile-shadow); }
  .journey-reading h2 { font-size: 1.05rem; }
  .journey-reading > p { margin: .2rem 0; font-size: .62rem; line-height: 1.4; }
  .chapter-link { padding: .18rem 0; font-size: .59rem; line-height: 1.35; }
  .life-controls { justify-content: flex-start; gap: 0 .7rem; }
  .life-controls .text-action { font-size: .66rem; }
  .year-ribbon { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .14rem; margin-top: .15rem; }
  .year-step { padding: .2rem .12rem; }
  .year-step span { font-size: .54rem; }
  .year-step small { font-size: .48rem; }
  .life-stage > .status { display: none; }

  .frequency-stage { padding: .65rem .7rem .35rem; }
  .frequency-head { top: .8rem; right: .8rem; width: 37%; }
  .frequency-head h1 { font-size: 2.5rem; }
  .data-tabs { gap: .15rem; margin-top: .35rem; }
  .data-tabs a { min-width: 2.5rem; padding: .18rem .2rem; font-size: .56rem; }
  .frequency-layout { grid-template-columns: minmax(0, 1.28fr) minmax(8.2rem, .72fr); gap: .45rem; align-items: center; }
  .frequency-table { height: min(61vh, 28rem); grid-template-rows: repeat(8, minmax(0, 1fr)); gap: .1rem; }
  .frequency-entry { padding: .05rem; }
  .frequency-entry span { font-size: calc(.85rem * var(--word-scale)); }
  .frequency-entry small { font-size: .43rem; }
  .frequency-reading { padding-top: 6rem; }
  .frequency-reading h2 { font-size: 2.7rem; }
  .frequency-reading > p { margin: .2rem 0 .35rem; font-size: .68rem; }
  .frequency-reading .chapter-link:nth-child(n+4) { display: none; }
  .selected-chapter { font-size: .64rem; line-height: 1.4; }
  .selected-chapter blockquote { font-size: .78rem; line-height: 1.45; }
  .overview-layout { grid-template-columns: 1fr .75fr 1fr; gap: .35rem; padding-top: 4.3rem; }
  .speech-board > strong { font-size: 2.5rem; }
  .speech-board > p:last-child { font-size: .54rem; line-height: 1.35; }
  .counting-board { gap: .12rem; margin: .45rem 0; }
  .counting-board i.is-filled { box-shadow: inset 0 0 0 2px rgb(var(--surface-rgb) / .42); }
  .chapter-measures { height: 13rem; gap: .2rem; }
  .chapter-measures div { height: 10.5rem; font-size: .5rem; }
  .inscription-grid { gap: .2rem; }
  .inscription-grid article { padding: .25rem; box-shadow: inset 0 0 0 2px rgb(var(--surface-rgb) / .26); }
  .inscription-grid strong { font-size: 1rem; }
  .inscription-grid span { margin-top: .2rem; font-size: .45rem; line-height: 1.2; }
  .disciple-layout { grid-template-columns: minmax(0, 1.25fr) minmax(7.8rem, .75fr); gap: .4rem; align-items: center; }
  .disciple-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .18rem; padding-top: 4rem; }
  .disciple-entry span { font-size: .61rem; }
  .disciple-entry b { font-size: .47rem; }
  .disciple-entry::after { inset: 2px; }
  .disciple-reading { padding-top: 5.2rem; }
  .disciple-reading h2 { font-size: 2rem; }
  .disciple-summary { margin: .25rem 0; font-size: .5rem; line-height: 1.32; }
  .disciple-summary b { font-size: .62rem; }
  .classic-links { gap: .35rem; margin: .2rem 0; font-size: .48rem; }
  .disciple-reading dl { gap: .12rem; margin: .4rem 0; }
  .disciple-reading dl div { padding: .2rem; }
  .disciple-reading dt { font-size: .43rem; }
  .disciple-reading dd { font-size: .85rem; }
  .disciple-reading .chapter-link { font-size: .51rem; }
  .progress-stage { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: .35rem; padding: .8rem .9rem; }
  .progress-copy h1 { font-size: 2.1rem; letter-spacing: .04em; }
  .progress-copy > p:not(.eyebrow) { font-size: .66rem; line-height: 1.42; }
  .ding-progress { width: 100%; }
  .ding-progress figcaption { gap: .25rem; margin-top: .25rem; }
  .ding-progress figcaption strong { font-size: 2.2rem; }
  .ding-progress figcaption span, .ding-progress figcaption small { font-size: .58rem; }
  .progress-status { display: none; }
  .my-stage { padding: 1rem .9rem 3rem; }
  .my-section p { font-size: .9rem; }
  .my-section { min-height: 0; padding: 1.8rem 0; }
  .my-progress-panel { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .my-section h2 { font-size: 1.55rem; }
  .my-progress-panel .ding-progress { width: 100%; }
  .archive-list { grid-template-columns: 1fr; }
  footer { padding: 0 .5rem; }
  footer button { padding-inline: .35rem; }
}

@media (max-height: 700px) {
  body { grid-template-rows: 3.9rem minmax(0, 1fr) 2rem; }
  .hero-copy h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
  .hero-figure { width: min(37vw, 24rem); }
  .life-copy h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
  .journey-map { width: min(100%, 32rem); }
  .frequency-table { height: min(50vh, 25rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .journey-route { stroke-dashoffset: 0 !important; }
  .journey-mark { opacity: 1 !important; }
}

/* 《字與章句》是一卷可上下翻讀的數觀冊；算籌與冊簡只用直角器形。 */
.frequency-stage { display: block; height: 100%; padding: 0 clamp(1rem, 5vw, 5rem) 3rem; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; scroll-behavior: smooth; }
.analects-journey { width: min(78rem, 100%); min-height: calc(100svh - 7.3rem); margin: 0 auto; padding: 1rem 0 1.25rem; box-shadow: inset 0 -4px 0 rgb(var(--line-rgb) / .12); }
.analects-journey .life-copy { left: 0; }
.analects-journey > .status { right: 0; }
.frequency-head { position: relative; inset: auto; width: min(68rem, 100%); margin: 0 auto; padding: clamp(2.5rem, 7vh, 5.5rem) 0 2rem; }
.frequency-head h1 { font-size: clamp(3.8rem, 8vw, 7rem); }
.scroll-index { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.scroll-index a { padding: .4rem .75rem; background: rgb(var(--surface-soft-rgb) / .34); color: var(--ink); text-decoration: none; box-shadow: inset 0 -3px 0 rgb(var(--line-rgb) / .18); }
.data-section { width: min(78rem, 100%); min-height: 34rem; margin: 0 auto; padding: clamp(2.5rem, 7vh, 5rem) 0; scroll-margin-top: 1rem; box-shadow: inset 0 4px 0 rgb(var(--line-rgb) / .12); }
.data-section > header { max-width: 37rem; margin-bottom: 1.5rem; }
.data-section > header h2 { margin: .15rem 0 .45rem; font-size: clamp(1.8rem, 4vw, 3.5rem); }
.data-section > header p:last-child { color: var(--ink-soft); }
.disciple-layout, .overview-layout, .frequency-layout { width: 100%; height: auto; min-height: 23rem; padding: 0; align-items: stretch; }
.disciple-layout { grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .65fr); }
.disciple-rods { display: grid; gap: .48rem; align-content: center; }
.disciple-entry { aspect-ratio: auto; min-height: 2.15rem; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 3.5rem; align-items: center; gap: .5rem; padding: .28rem .5rem; border: 0; background: rgb(var(--surface-soft-rgb) / .22); color: var(--ink); text-align: left; box-shadow: none; }
.disciple-entry::after { display: none; }
.disciple-entry i { display: block; width: calc(100% * var(--fill)); min-width: .35rem; height: .52rem; background: var(--moon-blue); box-shadow: inset 0 0 0 2px rgb(var(--surface-rgb) / .48); }
.disciple-entry.is-current { background: rgba(243, 191, 76, .2); box-shadow: inset 4px 0 0 var(--licorice); }
.disciple-entry.is-current i { background: var(--licorice); }
.disciple-entry span, .disciple-entry b { position: static; font-size: .75rem; }
.disciple-reading { padding: 0; align-self: center; }
.overview-layout { grid-template-columns: 1.05fr .8fr 1.15fr; }
.book-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(16rem, .55fr); gap: clamp(1rem, 4vw, 3.5rem); align-items: stretch; }
.book-scrolls { min-height: 24rem; display: grid; grid-template-columns: repeat(10, minmax(2.6rem, 1fr)); align-items: end; gap: .35rem; }
.book-slip { min-width: 0; height: calc(8rem + 13rem * var(--slip)); display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; gap: .3rem; padding: .55rem .22rem; border: 0; background: rgb(var(--surface-soft-rgb) / .38); color: var(--ink); box-shadow: inset 0 0 0 3px rgb(var(--line-rgb) / .12); }
.book-slip span { writing-mode: vertical-rl; letter-spacing: .08em; }
.book-slip i { width: .46rem; height: calc(100% * var(--slip)); min-height: 1.5rem; background: var(--moon-blue); }
.book-slip small { font-size: .55rem; }
.book-slip.is-current { background: rgba(243, 191, 76, .32); box-shadow: inset 0 4px 0 var(--licorice); }
.book-slip.is-current i { background: var(--licorice); }
.book-reading { align-self: center; padding: 1.1rem; background: rgb(var(--surface-rgb) / .46); box-shadow: inset 0 0 0 4px rgb(var(--line-rgb) / .1); }
.book-reading h3 { margin: .2rem 0 .8rem; font-size: clamp(2rem, 4vw, 3.5rem); }
.book-reading dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; }
.book-reading dl div { padding: .5rem; background: rgb(var(--surface-soft-rgb) / .35); }
.book-reading dt { font-size: .62rem; color: var(--ink-soft); }
.book-reading dd { margin: 0; font-size: 1.25rem; }
.frequency-layout { grid-template-columns: minmax(0, 1.45fr) minmax(16rem, .55fr); }
.frequency-table { height: 27rem; }
.frequency-reading { padding-top: 0; align-self: center; }
.topic-bridge { padding: .55rem .7rem; background: rgba(243, 191, 76, .18); box-shadow: inset 4px 0 0 var(--licorice); }
.topic-bridge b { display: block; margin-bottom: .2rem; font-size: .68rem; letter-spacing: .08em; }
.corpus-overview { display: grid; gap: 1.5rem; }
.corpus-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; }
.corpus-metric, .length-entry, .dialogue-entry { min-width: 0; padding: .65rem .45rem; border: 0; background: rgb(var(--surface-soft-rgb) / .25); color: var(--ink); text-align: left; }
.corpus-metric strong, .length-entry strong, .dialogue-entry strong { display: block; font-size: clamp(1.15rem, 2.3vw, 2rem); }
.corpus-metric span, .length-entry span, .dialogue-entry span { display: block; font-size: .62rem; color: var(--ink-soft); }
.corpus-metric:hover, .corpus-metric:focus-visible, .length-entry:hover, .length-entry:focus-visible, .dialogue-entry:hover, .dialogue-entry:focus-visible { background: rgba(243, 191, 76, .22); box-shadow: inset 0 4px 0 var(--licorice); }
.length-ruler { display: grid; grid-template-columns: repeat(5, 1fr); gap: .28rem; }
.dialogue-ruler { display: grid; grid-template-columns: repeat(3, 1fr); gap: .28rem; }
.definition-note { margin: .35rem 0 0; color: var(--ink-soft); font-size: .64rem; }
.evidence-chapters { min-width: 0; padding: .7rem; background: rgb(var(--surface-rgb) / .45); box-shadow: inset 4px 0 0 rgba(130, 171, 204, .55); }
.evidence-chapters .chapter-link { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .7rem; }
.discipline-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, .8fr); gap: clamp(1rem, 4vw, 3.5rem); }
.discipline-groups { display: grid; gap: .45rem; }
.discipline-entry { display: grid; grid-template-columns: 4rem minmax(0, 1fr) 4rem; align-items: center; gap: .65rem; padding: .6rem .7rem; border: 0; background: rgb(var(--surface-soft-rgb) / .22); color: var(--ink); text-align: left; }
.discipline-entry i { height: .7rem; width: calc(100% * var(--discipline)); background: var(--moon-blue); }
.discipline-entry small { grid-column: 2 / -1; color: var(--ink-soft); }
.discipline-entry.is-current { background: rgba(243, 191, 76, .2); box-shadow: inset 4px 0 0 var(--licorice); }
.keyword-heat { display: grid; gap: .8rem; }
.heat-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: .7rem; }
.heat-row h3 { margin: 0; font-size: 2rem; }
.heat-row h3 small { display: block; color: var(--ink-soft); font-size: .58rem; }
.heat-row > div { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: .14rem; }
.heat-entry { min-width: 0; min-height: 3.2rem; display: grid; place-content: center; padding: .15rem; border: 0; background: rgb(var(--surface-soft-rgb) / calc(.28 + var(--heat) * .62)); color: var(--ink); }
.heat-entry b, .heat-entry span { display: block; font-size: .55rem; }
.heat-entry:hover, .heat-entry:focus-visible { background: rgb(var(--surface-strong-rgb) / .95); box-shadow: inset 0 4px 0 var(--licorice); }
.book-chapters { margin-top: .7rem; }

/* 首頁與四輪共用同一條訊息流；訊息只追加，輸入區固定在底部。 */
.fuzi-chat { width: 100%; height: min(100%, calc(100dvh - 7.3rem)); min-height: min(100%, calc(100svh - 7.3rem)); overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .45rem; padding: .35rem clamp(.75rem, 4vw, 3rem) .2rem; }
.fuzi-chat__messages { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .9rem; padding: .8rem max(.2rem, calc((100% - 64rem) / 2)) 1.2rem; scroll-padding-block: 1rem; }
.fuzi-chat[data-chat-phase="topic"] .fuzi-chat__messages { justify-content: center; }
.fuzi-message { width: min(64rem, 100%); flex: 0 0 auto; animation: message-arrive .22s ease-out both; }
.fuzi-message--teacher { display: grid; grid-template-columns: 3.5rem minmax(0, 52rem); align-items: start; gap: .7rem; margin-right: auto; }
.fuzi-message--student { display: flex; justify-content: flex-end; margin-left: auto; }
.fuzi-message__bubble { min-width: 0; padding: .8rem 1rem; background: rgb(var(--surface-rgb) / .72); box-shadow: inset 5px 0 0 rgba(243, 191, 76, .72); }
.fuzi-message--student .fuzi-message__bubble { max-width: min(76%, 42rem); background: rgba(130, 171, 204, .22); box-shadow: inset -5px 0 0 rgba(130, 171, 204, .78); }
.fuzi-message__bubble > p { margin: 0; font-size: clamp(.96rem, 1.35vw, 1.08rem); line-height: 1.62; white-space: pre-wrap; }
.fuzi-message__bubble > p + p { margin-top: .45rem; }
.fuzi-message__context { color: var(--ink-soft); }
.fuzi-persona { width: 3.5rem; height: 3.5rem; margin: 0; overflow: hidden; border-radius: 50%; }
.fuzi-persona__image { display: block; width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; object-position: center 18%; mix-blend-mode: multiply; filter: sepia(.08) contrast(.94); }
.fuzi-topic-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .75rem; }
.fuzi-topic-chip { width: fit-content; min-height: 2.5rem; padding: .3rem .85rem; border: 0; border-radius: 50%; background: rgba(130, 171, 204, .2); color: var(--ink); text-align: center; box-shadow: none; }
.fuzi-topic-chip:hover, .fuzi-topic-chip:focus-visible { background: rgba(243, 191, 76, .32); }
.reading-passages { display: grid; gap: .75rem; margin-top: .8rem; }
.fuzi-passage { min-height: min(24rem, 64vh); display: grid; align-content: center; gap: .65rem; padding: clamp(1rem, 3vh, 2rem) clamp(.9rem, 3vw, 2.2rem); margin-bottom: .8rem; background: rgb(var(--surface-rgb) / .56); box-shadow: inset 5px 0 0 rgba(130, 171, 204, .62); }
.fuzi-passage h2 { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.8rem); }
.fuzi-passage .eyebrow { font-size: .9rem; }
.fuzi-passage__heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .5rem; }
.fuzi-passage__text { min-width: 0; padding: .55rem .65rem; background: rgb(var(--surface-rgb) / .52); box-shadow: inset 4px 0 0 rgb(var(--line-rgb) / .12); }
.fuzi-passage__text h3 { margin: 0 0 .2rem; color: var(--ink-soft); font-size: .9rem; letter-spacing: .08em; }
.fuzi-passage__text blockquote, .fuzi-passage__text p { margin: 0; font-size: clamp(.98rem, 1.7vw, 1.2rem); line-height: 1.72; }
.fuzi-passage__translation { box-shadow: inset 4px 0 0 rgba(243, 191, 76, .66); }
.evidence-mark { padding: 0 .12em; background: rgb(var(--inverse-surface-rgb)); color: var(--inverse-ink); box-shadow: inset 0 -.12em 0 var(--licorice); }
.fuzi-passage__bridge { margin: .25rem 0 0; padding-top: .6rem; box-shadow: inset 0 1px 0 rgb(var(--line-rgb) / .18); font-size: .9rem; }
.fuzi-passage__annotations { font-size: .9rem; }
.fuzi-passage__annotations summary { cursor: pointer; color: var(--ink-soft); }
.fuzi-passage__annotations ul { margin: .45rem 0 0; padding-left: 1.2rem; }
.fuzi-passage__annotations li { margin: .35rem 0; }
.fuzi-passage__annotations li b { margin-right: .5rem; }
.fuzi-passage__select { justify-self: end; font-size: .9rem; }
.fuzi-passage--chat { min-height: 0; align-content: start; padding: .85rem 1rem; margin: 0; }
.fuzi-passage--chat.is-selected { box-shadow: inset 7px 0 0 var(--seal); }
.fuzi-passage--review { min-height: 0; align-content: start; }
.my-passage-list { display: grid; gap: .8rem; margin-top: 1.2rem; }
.fuzi-chat__composer { width: min(64rem, 100%); min-height: 7rem; margin: 0 auto; padding: .65rem .8rem .45rem; background: rgb(var(--surface-strong-rgb) / .94); box-shadow: inset 0 4px 0 rgb(var(--line-rgb) / .12); }
.fuzi-chat[data-chat-phase="reading"] .fuzi-chat__composer,
.fuzi-chat[data-chat-phase="followup"] .fuzi-chat__composer,
.fuzi-chat[data-chat-phase="complete"] .fuzi-chat__composer { min-height: 5.5rem; }
.fuzi-composer__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: end; gap: .35rem .5rem; }
.fuzi-composer__form textarea { width: 100%; min-height: 4.5rem; max-height: calc(1.6em * 6 + 1.4rem); field-sizing: content; overflow-y: auto; padding: .7rem .85rem; border: 0; resize: none; background: rgb(var(--surface-rgb) / .78); color: var(--ink); box-shadow: inset 0 0 0 2px rgb(var(--line-rgb) / .2); }
.fuzi-composer__form .primary { grid-column: 2; grid-row: 1; align-self: end; justify-self: end; }
.fuzi-composer__form .status { grid-column: 1 / -1; min-height: 1.2rem; margin: 0; }
.fuzi-composer__notice, .fuzi-composer__action, .fuzi-composer__complete { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem; color: var(--ink-soft); }
.fuzi-composer__action { justify-content: flex-end; }
.fuzi-quick-replies { height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; align-content: center; }
.fuzi-quick-reply { min-height: 4.5rem; padding: .55rem .7rem; border: 0; background: rgba(130, 171, 204, .2); color: var(--ink); box-shadow: inset 0 0 0 2px rgb(var(--line-rgb) / .16); text-align: left; }
.fuzi-quick-reply:hover, .fuzi-quick-reply:focus-visible { background: rgba(243, 191, 76, .32); }
.fuzi-quick-replies .status { grid-column: 1 / -1; margin: 0; }
.teacher-note { color: var(--ink-soft); }
@keyframes message-arrive { from { opacity: 0; transform: translateY(.55rem); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .frequency-stage { padding: 0 .8rem 2.5rem; }
  .analects-journey { min-height: calc(100svh - 7.25rem); padding: .6rem 0 1rem; }
  .analects-journey .life-copy { left: .1rem; }
  .frequency-head { position: relative; inset: auto; width: 100%; padding: 1.7rem .2rem 1.2rem; }
  .frequency-head h1 { font-size: 3.3rem; }
  .scroll-index { gap: .25rem; }
  .scroll-index a { padding: .3rem .45rem; font-size: .65rem; }
  .data-section { min-height: 0; padding: 2rem .1rem; }
  .data-section > header { margin-bottom: 1rem; }
  .data-section > header h2 { font-size: 1.65rem; }
  .data-section > header p { font-size: .7rem; }
  .disciple-layout, .overview-layout, .frequency-layout, .book-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; min-height: 0; }
  .disciple-rods { gap: .25rem; padding: 0; }
  .disciple-entry { grid-template-columns: 3.2rem minmax(0, 1fr) 2.8rem; min-height: 1.8rem; }
  .disciple-entry span, .disciple-entry b { font-size: .6rem; }
  .disciple-reading { padding: .4rem; }
  .disciple-reading h2 { font-size: 2rem; }
  .overview-layout { grid-template-columns: 1fr; padding-top: 0; }
  .speech-board > strong { font-size: 3rem; }
  .chapter-measures { height: 12rem; }
  .chapter-measures div { height: 9rem; }
  .inscription-grid article { aspect-ratio: auto; min-height: 5rem; }
  .book-scrolls { min-height: 18rem; grid-template-columns: repeat(10, minmax(1.65rem, 1fr)); gap: .15rem; overflow: hidden; }
  .book-slip { height: calc(6rem + 10rem * var(--slip)); padding: .35rem .08rem; }
  .book-slip span { font-size: .58rem; }
  .book-slip small { display: none; }
  .book-reading { padding: .7rem; }
  .frequency-table { height: 24rem; grid-template-rows: repeat(10, minmax(0, 1fr)); }
  .frequency-reading { padding: .5rem; }
  .frequency-reading .chapter-link:nth-child(n+4) { display: block; }
  .corpus-metrics { grid-template-columns: repeat(3, 1fr); }
  .length-ruler { grid-template-columns: repeat(3, 1fr); }
  .dialogue-ruler { grid-template-columns: 1fr; }
  .corpus-metric, .length-entry, .dialogue-entry { padding: .45rem .35rem; }
  .corpus-metric strong, .length-entry strong, .dialogue-entry strong { font-size: 1rem; }
  .evidence-chapters .chapter-link { grid-template-columns: 4.2rem minmax(0, 1fr); }
  .discipline-layout { grid-template-columns: 1fr; }
  .discipline-entry { grid-template-columns: 3rem minmax(0, 1fr) 3.2rem; padding: .45rem; font-size: .72rem; }
  .heat-row { grid-template-columns: 2.8rem minmax(0, 1fr); gap: .3rem; }
  .heat-row h3 { font-size: 1.35rem; }
  .heat-row > div { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .heat-entry { min-height: 2.35rem; }
  .fuzi-chat { height: min(100%, calc(100dvh - 6.5rem)); min-height: min(100%, calc(100svh - 6.5rem)); gap: .25rem; padding: .15rem .35rem .1rem; }
  .fuzi-chat__messages { gap: .65rem; padding: .45rem .15rem .8rem; }
  .fuzi-message--teacher { grid-template-columns: 2.75rem minmax(0, 1fr); gap: .45rem; }
  .fuzi-message--student .fuzi-message__bubble { max-width: 88%; }
  .fuzi-message__bubble { padding: .62rem .7rem; }
  .fuzi-message__bubble > p { font-size: .92rem; line-height: 1.5; }
  .fuzi-persona { width: 2.75rem; height: 2.75rem; }
  .fuzi-persona__image { width: 2.75rem; height: 2.75rem; }
  .fuzi-topic-chips { gap: .4rem; margin-top: .65rem; }
  .fuzi-topic-chip { min-height: 2.25rem; padding: .3rem .7rem; }
  .reading-passages { gap: .55rem; margin-top: .65rem; }
  .fuzi-passage { min-height: 0; align-content: start; gap: .42rem; padding: .7rem .75rem; }
  .fuzi-passage h2 { font-size: 1.12rem; }
  .fuzi-passage__text { padding: .42rem .5rem; }
  .fuzi-passage__text blockquote, .fuzi-passage__text p { font-size: .9rem; line-height: 1.55; }
  .fuzi-passage__bridge, .fuzi-passage__annotations, .fuzi-passage__select { font-size: .9rem; }
  .fuzi-passage--chat { padding: .62rem .68rem; }
  .fuzi-chat__composer { min-height: 7rem; padding: .5rem .55rem .35rem; }
  .fuzi-chat[data-chat-phase="reading"] .fuzi-chat__composer,
  .fuzi-chat[data-chat-phase="followup"] .fuzi-chat__composer,
  .fuzi-chat[data-chat-phase="complete"] .fuzi-chat__composer { min-height: 5.25rem; }
  .fuzi-composer__form { gap: .25rem .35rem; }
  .fuzi-composer__form textarea { padding: .58rem .65rem; }
  .fuzi-composer__form .status { font-size: .75rem; }
  .fuzi-composer__notice, .fuzi-composer__action, .fuzi-composer__complete { padding: .55rem; }
  .fuzi-quick-replies { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; }
  .fuzi-quick-reply { min-height: 4.5rem; padding: .4rem .42rem; font-size: .78rem; }
}

/* Readability floor: ordinary and secondary copy never drops below 14px. */
body { font-size: 14px; }
body :is(p, a, button, input, textarea, select, label, summary, li, dd, blockquote, figcaption, small, span, b, dt, code) {
  font-size: max(.875rem, 1em) !important;
}
.geo-label { font-size: 12px !important; }
@media (max-width: 760px) {
  body { grid-template-rows: 4.25rem minmax(0, 1fr) 3rem; }
}
