:root {
  --ink: #1f2521;
  --muted: #69736c;
  --line: #d9dfda;
  --paper: #f4f6f1;
  --surface: #ffffff;
  --warm: #9c4e38;
  --warm-soft: #f1dfd8;
  --gold: #ad8151;
  --dark: #28332d;
  --shadow: 0 16px 42px rgba(31, 37, 33, .08);
}

* { box-sizing: border-box; letter-spacing: 0; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
button, input, textarea, select { font: inherit; }
button, select, input, textarea { min-height: 44px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #bd6548; outline-offset: 2px; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 72px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { border-radius: 13px; box-shadow: var(--shadow); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; }
.brand small { color: var(--muted); font-size: 11px; }
.account { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: #b2bbb5; }
.connection-dot.is-online { background: #58826a; }
.band { border-top: 1px solid var(--line); padding: 52px 0; }
.intro { position: relative; display: block; min-height: 610px; overflow: hidden; padding: 82px 48px 58px; border-top: 0; }
.intro-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.intro-content, .intro .principle-note { position: relative; z-index: 1; max-width: 570px; }
.intro-content { padding: 22px 0; }
.eyebrow { margin: 0 0 10px; color: var(--warm); font-size: 11px; font-weight: 700; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 20px; font-size: 4.8rem; line-height: 1.12; font-weight: 600; }
h1 em { color: var(--warm); font-style: normal; }
h2 { margin-bottom: 0; font-size: 2rem; line-height: 1.25; }
h3 { margin-bottom: 0; font-size: 1.12rem; line-height: 1.35; }
.intro-copy { max-width: 600px; color: var(--muted); font-size: 17px; }
.principle-note { margin-top: 20px; border-left: 3px solid var(--gold); padding: 8px 0 8px 20px; color: var(--muted); }
.principle-note p { margin: 0; }
.note-mark { display: block; margin-bottom: 10px; color: var(--gold); font-size: 38px; line-height: 1; font-family: serif; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading.compact { margin-bottom: 16px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 5px; padding: 9px 16px; font-size: 14px; font-weight: 700; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.button-primary { color: #fff; background: var(--warm); }
.button-primary:hover { background: #813b2a; }
.button-outline { color: var(--ink); border-color: #aeb9b0; background: transparent; }
.button-outline:hover { border-color: var(--warm); color: var(--warm); }
.button-quiet { border-color: transparent; color: var(--warm); background: transparent; }
.button-dark { color: #fff; background: var(--dark); }
.button-dark:hover { background: #17211b; }
.full { width: 100%; }
.metrics { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.metric { min-height: 122px; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.metric span, .metric small { display: block; color: var(--muted); font-size: 12px; }
.metric strong {
  display: block;
  max-width: 100%;
  margin: 12px 0 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.metric-main { border-top: 3px solid var(--warm); }
.metric-main strong { color: var(--warm); font-size: 2.6rem; }
.progress-track { height: 10px; overflow: hidden; background: #e2e8e1; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--warm); transition: width .4s ease; }
.progress-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.progress-meta b { color: var(--ink); font-size: 16px; }
.power-realm { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.realm-summary { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.realm-summary h3 { display: flex; align-items: baseline; gap: 12px; font-size: 2rem; }
.realm-summary h3 small { color: var(--warm); font-size: .9rem; font-weight: 700; }
.realm-summary > strong { color: var(--warm); font-size: 2rem; font-variant-numeric: tabular-nums; }
.realm-progress { height: 12px; overflow: hidden; background: #e2e8e1; }
.realm-progress span { display: block; width: 0; height: 100%; background: var(--gold); transition: width .4s ease; }
.minor-stage-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; color: var(--muted); font-size: 12px; }
.minor-stage-list span { min-width: 0; border-left: 1px solid var(--line); padding-left: 8px; }
.minor-stage-list span:last-child { border-right: 1px solid var(--line); }
.minor-stage-list .is-complete { color: var(--gold); }
.minor-stage-list .is-current { color: var(--warm); font-weight: 700; }
.realm-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.section-illustration { position: relative; margin: 30px 0 0; overflow: hidden; background: var(--dark); }
.section-illustration img { display: block; width: 100%; height: 410px; object-fit: cover; object-position: center; }
.section-illustration figcaption { position: absolute; right: 0; bottom: 0; width: min(440px, 56%); padding: 18px 22px; color: #fff; background: rgba(24, 32, 27, .88); }
.section-illustration figcaption span, .section-illustration figcaption strong { display: block; }
.section-illustration figcaption span { margin-bottom: 5px; color: #e2c39d; font-size: 11px; font-weight: 700; }
.section-illustration figcaption strong { font-size: 14px; line-height: 1.55; }
.realm-illustration img { object-position: center 46%; }
.ledger-illustration { grid-column: 1 / -1; margin: 0 0 16px; }
.ledger-illustration img { height: 360px; object-position: 55% center; }
.ledger-illustration figcaption { position: static; width: 100%; }
.method-illustration { margin: 0 0 28px; }
.method-illustration img { height: 390px; object-position: center 48%; }
.practice-guidance { max-width: 760px; margin-bottom: 24px; color: var(--muted); }
.self-report { max-width: 760px; margin: 28px auto 0; padding: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.form-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.form-title span { color: var(--muted); font-size: 12px; }
.self-report label, .stage label { display: block; color: var(--muted); font-size: 13px; }
.self-report textarea, .self-report select, .stage textarea, .stage select { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; color: var(--ink); background: #fbfcfa; resize: vertical; }
.seat-count-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seat-count-field { min-width: 0; padding: 18px 20px 18px 0; }
.seat-count-field + .seat-count-field { border-left: 1px solid var(--line); padding-right: 0; padding-left: 20px; }
.seat-input-line { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.seat-input-line input { width: min(150px, calc(100% - 28px)); min-width: 0; border: 0; border-bottom: 2px solid #aeb9b0; border-radius: 0; padding: 0 2px; color: var(--ink); background: transparent; font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.seat-input-line input:focus { border-bottom-color: var(--warm); }
.seat-input-line small { color: var(--muted); font-size: 13px; }
.seat-definition { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.seat-definition strong { margin-right: 6px; color: var(--ink); }
.report-grid, .power-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.self-report > label { margin-top: 16px; }
.report-extras { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.report-extras summary { color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.report-extras .report-grid { margin-top: 16px; }
.report-extras > label { margin-top: 16px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.panel { padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.muted { color: var(--muted); font-size: 13px; }
.inline-form { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(0, 1fr) auto; gap: 8px; }
.inline-form select, .inline-form input, .stage select, .stage textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; color: var(--ink); background: #fbfcfa; }
.form-message { min-height: 1.4em; margin: 10px 0 0; color: var(--warm); font-size: 12px; }
.stage textarea { margin: 12px 0; resize: vertical; }
.long-road { max-width: 820px; margin-top: 28px; padding-left: 20px; border-left: 3px solid var(--gold); }
.long-road p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.manual-heading { align-items: end; }
.manual-page-count { margin: 0; color: var(--muted); font-size: 13px; }
.manual-toc { display: none; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 14px; border: 1px solid #b8c4bc; background: #e7ece8; }
.manual.is-enhanced .manual-toc { display: grid; }
.manual-tab { min-width: 0; min-height: 42px; border: 0; border-right: 1px solid #b8c4bc; padding: 8px 6px; color: #53625a; background: transparent; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.manual-tab:nth-child(5n) { border-right: 0; }
.manual-tab:nth-child(-n+5) { border-bottom: 1px solid #b8c4bc; }
.manual-tab:hover, .manual-tab[aria-selected="true"] { color: #fff; background: #243d35; }
.manual-book { position: relative; perspective: 1800px; }
.manual-page { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); min-height: 620px; overflow: hidden; border: 1px solid #b8c4bc; color: #202a25; background: #f3f5ef; box-shadow: 0 22px 52px rgba(31, 37, 33, .13); transform-style: preserve-3d; }
.manual-page + .manual-page { margin-top: 24px; }
.manual.is-enhanced .manual-page { display: none; margin-top: 0; }
.manual.is-enhanced .manual-page.is-active, .manual.is-enhanced .manual-page.is-departing { display: grid; }
.manual.is-enhanced .manual-page.is-departing { position: absolute; inset: 0; z-index: 3; width: 100%; }
.manual-page::after { position: absolute; inset: 18px auto 18px 50%; width: 1px; content: ""; background: #cbd4cd; pointer-events: none; }
.manual-art { min-width: 0; min-height: 618px; margin: 0; overflow: hidden; background: #1c302b; }
.manual-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.manual-art-step-1 img, .manual-art-step-2 img, .manual-art-step-3 img, .manual-art-step-4 img, .manual-art-step-5 img { object-position: 56% center; }
.manual-copy { min-width: 0; align-self: center; padding: 52px 48px 60px; }
.manual-copy section { margin-top: 24px; }
.manual-copy h3 { margin-bottom: 20px; font: 600 2.35rem/1.18 "Noto Serif SC", "Songti SC", STSong, serif; }
.manual-copy h4 { margin: 0 0 6px; color: var(--warm); font-size: 14px; }
.manual-copy p { color: #59615a; font-size: 14px; }
.manual-volume { margin-bottom: 10px; color: var(--gold) !important; font-size: 12px !important; font-weight: 700; }
.manual-lead { color: #363d37 !important; font-size: 17px !important; line-height: 1.8; }
.manual-caution { margin: 24px 0 0; border-left: 3px solid var(--warm); padding-left: 14px; color: #6c5b52 !important; font-size: 12px !important; }
.manual-folio { position: absolute; right: 20px; bottom: 10px; margin: 0; color: #8a8378; font: 12px/1 serif; }
.manual-cover { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); align-items: center; min-height: 560px; padding: 60px 10%; color: #f1e8d8; background: var(--dark); }
.manual-cover::after { background: #68746c; }
.manual-cover-mark { color: #d6b17d; font: 400 10rem/1 "Noto Serif SC", "Songti SC", STSong, serif; text-align: center; }
.manual-cover-copy { max-width: 530px; border-left: 1px solid #879087; padding: 32px 0 32px 64px; }
.manual-cover-copy .eyebrow { color: #d6b17d; }
.manual-cover-copy h3 { margin-bottom: 26px; color: #fff; font: 600 3.5rem/1.15 "Noto Serif SC", "Songti SC", STSong, serif; }
.manual-cover-copy .manual-lead { color: #d9ddd7 !important; }
.manual-seal { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-top: 20px; border: 2px solid #b45a42; color: #e1a18f; font: 700 14px/1.2 "Noto Serif SC", "Songti SC", STSong, serif; }
.manual-current { margin: 0 0 22px; border-top: 1px solid #d8d0c2; border-bottom: 1px solid #d8d0c2; padding: 14px 0; }
.manual-current span, .manual-current strong, .manual-current small { display: block; }
.manual-current span { color: var(--warm); font-size: 11px; font-weight: 700; }
.manual-current strong { margin: 4px 0; color: var(--ink); font-size: 1.45rem; }
.manual-current small { color: var(--muted); font-size: 12px; }
.manual-step-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 38px 38px 48px; }
.manual-step-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-bottom: 1px solid #cbd4cd; margin-bottom: 18px; padding-bottom: 10px; }
.manual-step-heading .manual-volume { margin: 0; }
.manual-stage-state { color: #68776e; font-size: 11px; font-weight: 700; white-space: nowrap; }
.manual-step-page.is-current-stage .manual-stage-state { color: var(--warm); }
.manual-verse { margin: 0 0 18px; border: 0; border-left: 3px solid #a98b5c; padding: 4px 0 4px 16px; color: #355047; font: 600 16px/1.75 "Noto Serif SC", "Songti SC", STSong, serif; }
.manual-practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #cbd4cd; }
.manual-practice-grid section { min-width: 0; margin: 0; border-bottom: 1px solid #cbd4cd; padding: 12px 0; }
.manual-practice-grid section:first-child { grid-column: 1 / -1; }
.manual-practice-grid section:nth-child(2) { padding-right: 14px; }
.manual-practice-grid section:nth-child(3) { border-left: 1px solid #cbd4cd; padding-left: 14px; }
.manual-practice-grid h4 { color: #44695d; }
.manual-practice-grid p { margin: 0; font-size: 12px; line-height: 1.65; }
.manual-step-copy .manual-caution { margin-top: 18px; }
.manual-closing .manual-copy { padding: 42px 38px 52px; }
.manual-route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 28px 0; border-top: 1px solid #c9c0b2; border-left: 1px solid #c9c0b2; }
.manual-route span { min-width: 0; border-right: 1px solid #c9c0b2; border-bottom: 1px solid #c9c0b2; padding: 10px 8px; color: #4f574f; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.manual-seal-bottom { position: absolute; right: 8%; bottom: 56px; }
.manual-controls { display: none; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 12px; width: min(340px, 100%); margin: 18px auto 0; color: var(--muted); font-size: 12px; text-align: center; }
.manual.is-enhanced .manual-controls { display: grid; }
.manual-nav { width: 46px; min-height: 42px; border: 1px solid #aeb9b0; border-radius: 5px; color: var(--ink); background: transparent; font-size: 22px; line-height: 1; }
.manual-nav:hover { border-color: var(--warm); color: var(--warm); }
.manual-page.is-departing-next { transform-origin: left center; animation: manual-leave-next .46s cubic-bezier(.42, 0, .2, 1) both; }
.manual-page.is-entering-next { transform-origin: right center; animation: manual-enter-next .46s cubic-bezier(.42, 0, .2, 1) both; }
.manual-page.is-departing-prev { transform-origin: right center; animation: manual-leave-prev .46s cubic-bezier(.42, 0, .2, 1) both; }
.manual-page.is-entering-prev { transform-origin: left center; animation: manual-enter-prev .46s cubic-bezier(.42, 0, .2, 1) both; }
@keyframes manual-leave-next { from { opacity: 1; transform: rotateY(0) translateX(0); } to { opacity: 0; transform: rotateY(-12deg) translateX(-3%); } }
@keyframes manual-enter-next { from { opacity: 0; transform: rotateY(10deg) translateX(3%); } to { opacity: 1; transform: rotateY(0) translateX(0); } }
@keyframes manual-leave-prev { from { opacity: 1; transform: rotateY(0) translateX(0); } to { opacity: 0; transform: rotateY(12deg) translateX(3%); } }
@keyframes manual-enter-prev { from { opacity: 0; transform: rotateY(-10deg) translateX(-3%); } to { opacity: 1; transform: rotateY(0) translateX(0); } }
.event-list { display: grid; gap: 8px; }
.event { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.event time, .event small { color: var(--muted); font-size: 12px; }
.event strong { display: block; font-size: 14px; }
.event .delta { color: var(--warm); font-size: 14px; font-weight: 700; }
.empty { color: var(--muted); font-size: 13px; }
.responsibility { padding-bottom: 12px; color: var(--muted); font-size: 12px; }
.responsibility p:last-child { max-width: 820px; margin-bottom: 0; }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 620px); }
  .topbar { align-items: flex-start; }
  .account { flex-wrap: wrap; justify-content: flex-end; }
  .intro { min-height: auto; overflow: visible; padding: 290px 20px 38px; }
  .intro-art { height: 260px; object-position: 56% center; }
  .intro-content { padding: 0; }
  .band { padding: 38px 0; }
  .intro { padding: 290px 20px 38px; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 1.6rem; }
  .intro-copy { font-size: 15px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-main { grid-column: 1 / -1; }
  .progress-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .realm-summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .realm-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .section-illustration img, .ledger-illustration img, .method-illustration img { height: 280px; }
  .section-illustration figcaption { position: static; width: 100%; padding: 14px 16px; }
  .report-grid, .power-grid { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr 1fr; }
  .inline-form select { grid-column: 1 / -1; }
  .inline-form button { width: 100%; }
  .manual-toc { grid-auto-flow: column; grid-auto-columns: minmax(78px, 1fr); grid-template-columns: none; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .manual-tab, .manual-tab:nth-child(5n), .manual-tab:nth-child(-n+5) { border-right: 1px solid #b8c4bc; border-bottom: 0; }
  .manual-tab:last-child { border-right: 0; }
  .manual-page, .manual-cover { grid-template-columns: 1fr; min-height: 0; }
  .manual-page::after { display: none; }
  .manual-art { min-height: 0; height: auto; aspect-ratio: 3 / 2; }
  .manual-copy, .manual-step-copy, .manual-closing .manual-copy { padding: 30px 22px 42px; }
  .manual-copy h3 { font-size: 1.85rem; }
  .manual-cover { gap: 20px; padding: 48px 28px 60px; }
  .manual-cover-mark { font-size: 6.5rem; }
  .manual-cover-copy { border-top: 1px solid #879087; border-left: 0; padding: 28px 0 0; }
  .manual-cover-copy h3 { font-size: 2.65rem; }
  .manual-practice-grid { grid-template-columns: 1fr; }
  .manual-practice-grid section:first-child { grid-column: auto; }
  .manual-practice-grid section:nth-child(2) { padding-right: 0; }
  .manual-practice-grid section:nth-child(3) { border-left: 0; padding-left: 0; }
  .manual-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .event time { grid-column: 1 / -1; }
  .event .delta { grid-row: 2 / span 2; grid-column: 2; }
}

@media (max-width: 390px) {
  .shell { width: calc(100% - 20px); }
  .topbar { gap: 8px; }
  .account { font-size: 11px; }
  .account .button { padding-inline: 10px; }
  .metrics { gap: 6px; }
  .metric { min-height: 106px; padding: 14px; }
  .metric strong { font-size: 1.6rem; }
  .metric-main strong { font-size: 2.2rem; }
  .intro { padding-inline: 12px; }
  .realm-summary h3 { align-items: flex-start; flex-direction: column; gap: 4px; font-size: 1.7rem; }
  .panel, .self-report { padding: 18px 14px; }
  .seat-count-field { padding-right: 12px; }
  .seat-count-field + .seat-count-field { padding-left: 12px; }
  .seat-input-line input { font-size: 1.7rem; }
  .inline-form { grid-template-columns: 1fr; }
  .inline-form select { grid-column: auto; }
  .form-actions { flex-direction: column; }
  .manual-page-count { max-width: 110px; text-align: right; }
  .manual-cover-copy h3 { font-size: 2.25rem; }
  .manual-copy h3 { font-size: 1.65rem; }
  .manual-step-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .manual-verse { font-size: 15px; }
  .manual-route span { padding-inline: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-track span, .realm-progress span { transition: none; }
  .manual-page.is-departing-next, .manual-page.is-entering-next, .manual-page.is-departing-prev, .manual-page.is-entering-prev { animation: none; }
}
