:root {
  --paper: #f7f4ec;
  --paper-deep: #eee8da;
  --ink: #18372f;
  --text: #202522;
  --moss: #63867b;
  --vermilion: #d96f45;
  --mist: #dde6e3;
  --soft-blue: #b9d2d0;
  --warning: #a84f32;
  --line: rgba(24, 55, 47, .18);
  --muted: rgba(32, 37, 34, .57);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Iowan Old Style", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --content: 760px;
}

html[lang="en"] {
  --serif: "Iowan Old Style", Baskerville, Georgia, "Times New Roman",
    "Noto Serif SC", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper-deep); }
body { margin: 0; color: var(--text); background: var(--paper); font-family: var(--sans); line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, label, select, input[type="radio"], input[type="checkbox"] { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

.prototype-bar {
  min-height: 36px; padding: .35rem clamp(.75rem, 3vw, 2rem); display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; color: rgba(32,37,34,.68); background: #e9e3d7;
  border-bottom: 1px solid var(--line); font-size: .7rem;
}
.prototype-bar b { color: var(--ink); }
.prototype-bar label { display: flex; align-items: center; gap: .5rem; }
.prototype-bar select { padding: .2rem 1.6rem .2rem .45rem; color: var(--text); background: rgba(255,255,255,.55); border: 1px solid var(--line); }
html[data-runtime-mode="production"] .prototype-bar,
html[data-runtime-mode="blocked"] .prototype-bar,
[hidden] { display: none !important; }

.site-header {
  height: 64px; padding: 0 clamp(1rem, 4vw, 3.5rem); display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(247,244,236,.94); backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font: 700 1.12rem/1 var(--serif); }
.brand-mark {
  width: 31px; height: 31px; display: grid; place-items: center;
  color: var(--ink); border: 1px solid var(--ink); border-radius: 50%;
}
.brand-paw {
  width: 21px; height: 21px; display: block; overflow: visible;
  fill: currentColor;
}
.brand-paw-dog { display: none; }
.brand-paw .paw-claws {
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round;
}
.brand-mark[data-species="dog"] .brand-paw-cat { display: none; }
.brand-mark[data-species="dog"] .brand-paw-dog { display: block; }
.header-actions { min-width: 0; display: flex; align-items: center; gap: .85rem; }
.language-switch {
  padding: .24rem .5rem; color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; font-size: .68rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
}
.stage-indicator { min-width: 0; color: var(--muted); font: .64rem var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

#app { min-height: calc(100vh - 190px); outline: none; }
.screen { width: min(var(--content), calc(100% - 2rem)); margin: 0 auto; padding: clamp(2.6rem, 8vw, 6rem) 0; animation: enter .36s ease both; }
.screen-wide { width: min(1080px, calc(100% - 2rem)); }
.screen-narrow { width: min(620px, calc(100% - 2rem)); }
.eyebrow { margin: 0 0 1rem; color: var(--vermilion); font: 700 .65rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); }
h1 { margin: 0; font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 6vw, 3.8rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { margin: 0 0 .65rem; font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.3; }
.lede { max-width: 640px; margin: 1.2rem 0 0; color: rgba(32,37,34,.76); font: clamp(1rem, 2.4vw, 1.2rem)/1.75 var(--serif); }
.muted, .microcopy { color: var(--muted); }
.microcopy { margin: .65rem 0 0; font-size: .72rem; }
.text-link { padding: 0; border: 0; color: var(--ink); background: none; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

.button-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.button {
  min-height: 48px; padding: .78rem 1.2rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink); border-radius: 8px; background: transparent; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .36; }
.button-primary { color: #fff; background: var(--ink); }
.button-accent { color: #fff; background: var(--vermilion); border-color: var(--vermilion); }
.button-soft { background: rgba(221,230,227,.58); border-color: var(--line); }
.button-block { width: 100%; }
:focus-visible { outline: 3px solid var(--soft-blue); outline-offset: 3px; }

.intro-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.intro-copy { padding: 1rem 0; }
.intro-copy h1 span { display: block; color: var(--vermilion); }
.quota-card { margin: 2rem 0; padding: 1rem 0; display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.quota-card strong { font-family: var(--serif); }
.quota-card b { color: var(--vermilion); font-family: var(--mono); }
.quota-track { grid-column: 1 / -1; height: 5px; background: var(--mist); overflow: hidden; }
.quota-track i { display: block; width: 0; height: 100%; background: var(--moss); transition: width .3s ease; }
.benefits { margin: 1.6rem 0 0; padding: 0; list-style: none; }
.benefits li { padding: .48rem 0 .48rem 1.35rem; position: relative; }
.benefits li::before { content: "◇"; position: absolute; left: 0; color: var(--vermilion); }
.portrait {
  min-height: 570px; position: relative; overflow: hidden; background: var(--soft-blue); border-radius: 48% 48% 14px 14px;
  isolation: isolate; box-shadow: 16px 18px 0 var(--paper-deep);
}
.portrait::before { content: ""; position: absolute; width: 56%; aspect-ratio: 1; right: -9%; top: 10%; border-radius: 50%; background: #e9bc87; opacity: .9; }
.portrait::after { content: "MOCHI · OBSERVATION 01"; position: absolute; left: 1.2rem; bottom: 1rem; font: .62rem var(--mono); letter-spacing: .1em; }
.cat { position: absolute; width: 51%; height: 48%; left: 24%; bottom: 16%; border-radius: 49% 49% 35% 35%; background: var(--ink); }
.cat::before, .cat::after { content: ""; position: absolute; width: 45%; height: 35%; top: -17%; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 82%); }
.cat::before { left: 0; transform: rotate(-7deg); }
.cat::after { right: 0; transform: rotate(7deg); }
.cat.dog::before, .cat.dog::after { width: 30%; height: 34%; top: -8%; border-radius: 50% 50% 45% 45%; clip-path: none; }
.cat.dog::before { left: -8%; transform: rotate(20deg); }
.cat.dog::after { right: -8%; transform: rotate(-20deg); }
.cat-eyes { position: absolute; inset: 36% 25% auto; display: flex; justify-content: space-between; z-index: 1; }
.cat-eyes i { width: 13px; aspect-ratio: 1; border-radius: 50%; background: #f4e7bd; }
.observation-route { position: absolute; inset: 9% auto 12% 9%; width: 1px; background: rgba(24,55,47,.3); }
.observation-route i { position: absolute; left: -4px; width: 9px; height: 9px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); }
.observation-route i:nth-child(1) { top: 2%; } .observation-route i:nth-child(2) { top: 43%; } .observation-route i:nth-child(3) { bottom: 0; background: var(--vermilion); border-color: var(--vermilion); }

.panel { padding: clamp(1.3rem, 4vw, 2.2rem); background: rgba(255,255,255,.36); border: 1px solid var(--line); border-radius: 12px; }
.panel + .panel { margin-top: 1rem; }
.form-stack { margin-top: 2rem; display: grid; gap: 1.15rem; }
.turnstile-slot {
  min-height: 65px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.field { display: grid; gap: .45rem; font-size: .86rem; }
.field > span, .field-title { color: var(--ink); font-weight: 650; }
.input, .select, .textarea { width: 100%; padding: .83rem .9rem; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.textarea { min-height: 130px; resize: vertical; }
.checkbox-row { display: grid; grid-template-columns: 20px 1fr; gap: .75rem; align-items: start; cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; margin: .22rem 0 0; accent-color: var(--vermilion); }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.choice-grid label { position: relative; }
.choice-grid input { position: absolute; opacity: 0; }
.choice-grid span { min-height: 48px; padding: .6rem; display: grid; place-items: center; text-align: center; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.42); cursor: pointer; }
.choice-grid input:checked + span { color: #fff; background: var(--ink); border-color: var(--ink); }
.disclosure { padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.disclosure summary { color: var(--ink); font-weight: 650; cursor: pointer; }
.disclosure ul { margin-bottom: 0; padding-left: 1.15rem; }

.question-shell { min-height: calc(100vh - 190px); display: grid; align-content: center; }
.preview-badge {
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--warning) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--warning) 10%, var(--paper));
  color: var(--warning);
  font: 700 .72rem/1.2 var(--sans);
  letter-spacing: .09em;
}
.fuzzy-progress { margin-bottom: 2.4rem; }
.fuzzy-progress p { margin: 0 0 .55rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .72rem; }
.pet-progress { display: inline-flex; align-items: center; gap: .45rem; }
.question-paw {
  width: 19px; height: 19px; flex: 0 0 auto; display: block;
  overflow: visible; color: var(--moss); fill: currentColor;
}
.question-paw .paw-claws {
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round;
}
.fuzzy-track { height: 4px; overflow: hidden; background: var(--mist); }
.fuzzy-track i { display: block; width: var(--progress); height: 100%; background: linear-gradient(90deg, var(--moss), var(--vermilion)); transition: width .35s ease; }
.question-text { margin: 0 0 2rem; font: clamp(1.45rem, 4vw, 2.25rem)/1.5 var(--serif); }
.branch-scene { margin: 0 0 1rem; font: clamp(1.25rem, 3.6vw, 1.8rem)/1.5 var(--serif); }
.branch-contrast { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.5rem; }
.branch-contrast > div { padding: 1rem; border: 1px solid var(--line); background: rgba(255,255,255,.4); }
.branch-contrast span {
  width: 28px; height: 28px; display: grid; place-items: center;
  color: #fff; background: var(--ink); border-radius: 50%; font: 700 .7rem var(--mono);
}
.branch-contrast p { margin: .75rem 0 0; font-size: .86rem; }
.answer-list { display: grid; gap: .58rem; }
.answer-card { position: relative; }
.answer-card input { position: absolute; opacity: 0; }
.answer-card span { min-height: 52px; padding: .78rem 1rem; display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.44); cursor: pointer; }
.answer-card span::before { content: ""; width: 17px; height: 17px; flex: 0 0 17px; border: 1px solid var(--moss); border-radius: 50%; }
.answer-card input:checked + span { background: var(--mist); border-color: var(--ink); }
.answer-card input:checked + span::before {
  content: "🐾"; display: grid; place-items: center; border: 0;
  color: var(--ink); font-size: 15px; line-height: 1;
}
.paw-confirm { gap: .5rem; }
.paw-confirm i { font-style: normal; font-size: 1rem; }
.lock-note { margin: .55rem 0 0; text-align: center; color: rgba(32,37,34,.42); font-size: .68rem; }

.generating { min-height: calc(100vh - 190px); display: grid; place-content: center; text-align: center; }
.seal-loader { width: 148px; aspect-ratio: 1; margin: 0 auto 2rem; position: relative; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.seal-loader::before { content: ""; position: absolute; width: 128%; height: 1px; background: var(--moss); transform-origin: center; animation: gather 1.8s ease-in-out infinite; }
.seal-loader span { width: 72px; height: 88px; display: grid; place-content: center; color: var(--vermilion); border: 2px solid var(--vermilion); font: 700 1.35rem/1.2 var(--serif); transform: rotate(-3deg); opacity: .22; animation: reveal 1.8s ease-in-out infinite; }

.result-cover { width: min(940px, calc(100% - 2rem)); padding-top: clamp(2.2rem, 6vw, 5rem); }
.result-card { display: grid; grid-template-columns: minmax(280px,.82fr) minmax(0,1.18fr); overflow: hidden; border: 1px solid var(--ink); background: #fff; box-shadow: 15px 15px 0 var(--soft-blue); }
.result-image { min-height: 610px; position: relative; overflow: hidden; background: var(--soft-blue); }
.result-image .cat { bottom: 19%; }
.result-stamp { position: absolute; top: 1.6rem; left: 1.6rem; width: 62px; height: 78px; display: grid; place-content: center; color: var(--vermilion); border: 2px solid var(--vermilion); font: 700 1.3rem/1.15 var(--serif); text-align: center; transform: rotate(-4deg); }
.result-pet-name {
  position: absolute; left: 1.6rem; bottom: 1.35rem; z-index: 2;
  color: var(--ink); font: 700 1.1rem/1.2 var(--serif);
}
.result-copy { padding: clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.pillar-title { margin: 0; color: var(--ink); font: 700 clamp(3.5rem, 9vw, 7rem)/1 var(--serif); letter-spacing: -.06em; }
.pillar-pinyin { margin: .65rem 0 2.2rem; color: var(--muted); font: .75rem var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.match-row { padding: 1rem 0; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.match-row span { font-family: var(--serif); }
.match-row b { color: var(--vermilion); font-family: var(--mono); }
.family-name { margin: 1.45rem 0 0; color: var(--moss); font: 600 clamp(1rem, 2.2vw, 1.28rem)/1.35 var(--serif); }
.role-name {
  margin: .65rem 0 .2rem; display: flex; flex-wrap: wrap;
  align-items: baseline; gap: .45rem .65rem;
}
.role-name small {
  color: var(--muted); font: 700 .58rem/1 var(--mono);
  letter-spacing: .1em;
}
.role-name strong {
  color: var(--ink); font: 600 clamp(1rem, 2vw, 1.3rem)/1.2 var(--serif);
}
.result-line { margin: 1.8rem 0; font: 1.15rem/1.7 var(--serif); }
.secondary-result { margin: 1rem 0 0; padding: 1rem 0; border-top: 1px solid var(--line); }
.secondary-result small { display: block; color: var(--muted); }
.secondary-result div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem .8rem; }
.secondary-result strong { color: var(--muted); font: 600 .82rem var(--serif); }
.secondary-result b { margin-left: auto; color: var(--vermilion); }

.report-head { margin-bottom: 2rem; }
.report-identity { color: var(--muted); font: .7rem var(--mono); letter-spacing: .1em; }
.chapter-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.5rem 0 2rem; }
.chapter-tab { padding: .7rem .4rem; border: 1px solid var(--line); border-radius: 7px; background: transparent; font-size: .74rem; cursor: pointer; }
.chapter-tab[aria-selected="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.chapter { min-height: 430px; padding: clamp(1.4rem, 4vw, 2.5rem); background: rgba(255,255,255,.38); border: 1px solid var(--line); }
.chapter-number { color: var(--vermilion); font: .68rem var(--mono); }
.chapter-intro { font: 1.15rem/1.7 var(--serif); }
.chapter p { max-width: 68ch; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1.3rem; background: var(--line); border: 1px solid var(--line); }
.report-grid section { padding: 1.2rem; background: var(--paper); }
.report-grid h4 { margin: 0 0 .5rem; color: var(--ink); font-family: var(--serif); }
.guide-columns { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.guide-box { padding: 1rem 1.2rem; background: #e5ece3; }
.guide-box.avoid { background: #f2e0d8; }
.guide-box h4 { margin: 0; font-family: var(--serif); }
.guide-box ul { padding-left: 1.1rem; }
.medical-note { padding: 1rem; background: #f2e0d8; border-left: 3px solid var(--vermilion); font-size: .82rem; }
.chapter-controls { margin-top: 1rem; display: flex; justify-content: space-between; gap: .6rem; }
.report-actions { margin-top: 1.4rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(221,230,227,.46); }
.email-action { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: center; }
.email-action p, .email-action small { margin: 0; }
.email-action small { color: var(--muted); }
.save-note { margin: 1rem 0 0; color: var(--muted); font-size: .75rem; }

.report-page {
  --report-paper: #f5f1e8;
  --report-sheet: #fffdf8;
  --report-surface: var(--report-sheet);
  --report-ink: #202824;
  --report-wood: #42645b;
  --report-jade: #afc4bf;
  --report-cinnabar: #b65b45;
  --report-brass: #9a815a;
  --report-line: rgba(32,40,36,.14);
  --report-shadow: rgba(32,40,36,.07);
  --report-portrait-shadow: rgba(154,129,90,.12);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1040px, calc(100% - 2rem));
  margin-top: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4.25rem);
  background: var(--report-surface);
  border: 1px solid var(--report-line);
  box-shadow: 0 24px 70px var(--report-shadow);
}
.report-page[data-report-theme="jia-wood"] {
  --report-paper: #f3f0df;
  --report-sheet: #fbf8ec;
  --report-surface:
    linear-gradient(90deg, rgba(168,200,191,.15), transparent 23%, transparent 76%, rgba(127,159,105,.08)),
    #fbf8ec;
  --report-ink: #26322c;
  --report-wood: #244f44;
  --report-jade: #a8c8bf;
  --report-cinnabar: #db7d4f;
  --report-brass: #72523e;
  --report-line: rgba(36,79,68,.18);
  --report-shadow: rgba(36,79,68,.12);
  --report-portrait-shadow: rgba(127,159,105,.2);
}
.report-page[data-report-theme="yi-wood"] {
  --report-paper: #f5efdf;
  --report-sheet: #fcf8ed;
  --report-surface:
    radial-gradient(ellipse at 96% 8%, rgba(141,120,162,.09), transparent 19rem),
    linear-gradient(105deg, rgba(140,157,125,.08), transparent 26%, transparent 76%, rgba(141,120,162,.05)),
    #fcf8ed;
  --report-ink: #30352f;
  --report-wood: #405847;
  --report-jade: #8c9d7d;
  --report-cinnabar: #dc8e67;
  --report-brass: #8d78a2;
  --report-line: rgba(64,88,71,.18);
  --report-shadow: rgba(64,88,71,.12);
  --report-portrait-shadow: rgba(141,120,162,.18);
}
.report-page[data-report-theme="bing-fire"] {
  --report-paper: #fbf1df;
  --report-sheet: #fffaf0;
  --report-surface:
    radial-gradient(circle at 88% 9%, rgba(255,238,167,.42), transparent 15rem),
    linear-gradient(90deg, rgba(242,198,109,.08), transparent 24%, transparent 76%, rgba(216,103,54,.045)),
    #fffaf0;
  --report-ink: #302823;
  --report-wood: #28545b;
  --report-jade: #d9a56a;
  --report-cinnabar: #d86736;
  --report-brass: #8a4935;
  --report-line: rgba(95,66,45,.18);
  --report-shadow: rgba(138,73,53,.13);
  --report-portrait-shadow: rgba(242,198,109,.24);
}
.report-page[data-report-theme="ding-fire"] {
  --report-paper: #fff9e7;
  --report-sheet: #fffdf7;
  --report-surface:
    radial-gradient(circle at 88% 7%, rgba(244,189,50,.15), transparent 17rem),
    linear-gradient(118deg, rgba(154,197,212,.28), rgba(255,253,247,.78) 44%, rgba(202,223,228,.18)),
    #f1f8f9;
  --report-ink: #332c25;
  --report-wood: #164e9c;
  --report-jade: #9ac5d4;
  --report-cinnabar: #e85f1c;
  --report-brass: #713c28;
  --report-line: rgba(113,60,40,.18);
  --report-shadow: rgba(22,78,156,.11);
  --report-portrait-shadow: rgba(154,197,212,.26);
}
.report-page[data-report-theme="wu-earth"] {
  --report-paper: #f1e6cf;
  --report-sheet: #f7ecd6;
  --report-surface:
    linear-gradient(90deg, rgba(212,155,76,.05), transparent 24%, transparent 82%, rgba(136,164,167,.08)),
    #f7ecd6;
  --report-ink: #342b27;
  --report-wood: #475e5f;
  --report-jade: #88a4a7;
  --report-cinnabar: #8f3f26;
  --report-brass: #b5792f;
  --report-line: rgba(52,43,39,.2);
  --report-shadow: rgba(65,42,30,.14);
  --report-portrait-shadow: rgba(136,164,167,.22);
}
.report-page[data-report-theme="ji-earth"] {
  --report-paper: #f3e4bd;
  --report-sheet: #f8eacb;
  --report-surface:
    radial-gradient(circle at 88% 9%, rgba(201,146,116,.12), transparent 18rem),
    linear-gradient(90deg, rgba(93,107,63,.055), transparent 22%, transparent 82%, rgba(201,146,116,.05)),
    #f8eacb;
  --report-ink: #493b32;
  --report-wood: #566442;
  --report-jade: #ccc184;
  --report-cinnabar: #a64b30;
  --report-brass: #5d6b3f;
  --report-line: rgba(73,59,50,.19);
  --report-shadow: rgba(61,54,38,.14);
  --report-portrait-shadow: rgba(201,146,116,.2);
}
.report-page[data-report-theme="geng-metal"] {
  --report-paper: #f3ead9;
  --report-sheet: #f9efdf;
  --report-surface:
    linear-gradient(112deg, rgba(255,255,255,.34), transparent 25%, transparent 78%, rgba(33,72,117,.06)),
    #f9efdf;
  --report-ink: #2e3235;
  --report-wood: #214875;
  --report-jade: #9ea5a6;
  --report-cinnabar: #b64620;
  --report-brass: #5f6262;
  --report-line: rgba(46,50,53,.2);
  --report-shadow: rgba(25,37,48,.15);
  --report-portrait-shadow: rgba(33,72,117,.2);
}
.report-page[data-report-theme="xin-metal"] {
  --report-paper: #f4ece4;
  --report-sheet: #fbf1e9;
  --report-surface:
    linear-gradient(90deg, rgba(139,94,114,.07), transparent 19%, transparent 82%, rgba(82,108,104,.07)),
    #fbf1e9;
  --report-ink: #463a40;
  --report-wood: #526c68;
  --report-jade: #c6b2b9;
  --report-cinnabar: #8b5e72;
  --report-brass: #a96f30;
  --report-line: rgba(70,58,64,.2);
  --report-shadow: rgba(62,42,53,.15);
  --report-portrait-shadow: rgba(139,94,114,.2);
}
.report-page[data-report-theme="ren-water"] {
  --report-paper: #f0ebdf;
  --report-sheet: #f7efe2;
  --report-surface:
    radial-gradient(ellipse at 105% 62%, rgba(39,95,112,.08) 0 25%, transparent 25.4%),
    linear-gradient(100deg, rgba(255,255,255,.38), transparent 23%, transparent 82%, rgba(79,112,107,.06)),
    #f7efe2;
  --report-ink: #24343a;
  --report-wood: #275f70;
  --report-jade: #95aaa5;
  --report-cinnabar: #a7442f;
  --report-brass: #4f706b;
  --report-line: rgba(36,52,58,.2);
  --report-shadow: rgba(36,70,76,.14);
  --report-portrait-shadow: rgba(39,95,112,.2);
}
.report-page[data-report-theme="gui-water"] {
  --report-paper: #f0ebee;
  --report-sheet: #f7eef1;
  --report-surface:
    radial-gradient(circle at 94% 67%, rgba(114,85,114,.09) 0 19%, transparent 19.4%),
    linear-gradient(110deg, rgba(255,255,255,.36), transparent 25%, transparent 78%, rgba(75,101,124,.06)),
    #f7eef1;
  --report-ink: #2b2d3a;
  --report-wood: #4b657c;
  --report-jade: #aeb7c6;
  --report-cinnabar: #9b504b;
  --report-brass: #725572;
  --report-line: rgba(43,45,58,.19);
  --report-shadow: rgba(34,36,54,.15);
  --report-portrait-shadow: rgba(75,101,124,.2);
}
.report-page > :not(.report-theme-mark) { position: relative; z-index: 1; }
.report-theme-mark {
  position: absolute; z-index: 0; top: 0; right: 0;
  width: clamp(170px, 26vw, 270px); height: 230px;
  overflow: hidden; pointer-events: none; opacity: .9;
}
.report-theme-mark::before,
.report-theme-mark::after,
.report-theme-mark i {
  content: ""; position: absolute; display: block;
}
.report-page[data-report-theme="jia-wood"] .report-theme-mark::before {
  top: 20px; right: 52px; width: 2px; height: 190px;
  background: linear-gradient(transparent, var(--report-wood) 12%, #7f9f69 78%, transparent);
}
.report-page[data-report-theme="jia-wood"] .report-theme-mark::after {
  top: 88px; right: 48px; width: 76px; height: 2px;
  background: #7f9f69; transform: rotate(-38deg); transform-origin: right;
}
.report-page[data-report-theme="jia-wood"] .report-theme-mark i {
  right: 47px; width: 11px; height: 11px; border-radius: 50%;
  background: #7f9f69; border: 2px solid var(--report-sheet);
}
.report-page[data-report-theme="jia-wood"] .report-theme-mark i:nth-child(1) { top: 44px; }
.report-page[data-report-theme="jia-wood"] .report-theme-mark i:nth-child(2) { top: 112px; right: 95px; background: var(--report-cinnabar); }
.report-page[data-report-theme="jia-wood"] .report-theme-mark i:nth-child(3) { top: 165px; }
.report-page[data-report-theme="yi-wood"] .report-theme-mark::before,
.report-page[data-report-theme="yi-wood"] .report-theme-mark::after {
  right: -32px; width: 205px; height: 126px;
  border: 2px solid rgba(64,88,71,.2); border-left-color: transparent; border-radius: 50%;
}
.report-page[data-report-theme="yi-wood"] .report-theme-mark::before { top: 22px; transform: rotate(-8deg); }
.report-page[data-report-theme="yi-wood"] .report-theme-mark::after { top: 63px; right: -45px; border-color: rgba(141,120,162,.24); border-left-color: transparent; }
.report-page[data-report-theme="yi-wood"] .report-theme-mark i {
  width: 9px; height: 9px; border-radius: 50%; background: #8c9d7d;
}
.report-page[data-report-theme="yi-wood"] .report-theme-mark i:nth-child(1) { top: 53px; right: 143px; }
.report-page[data-report-theme="yi-wood"] .report-theme-mark i:nth-child(2) { top: 105px; right: 112px; background: var(--report-cinnabar); }
.report-page[data-report-theme="yi-wood"] .report-theme-mark i:nth-child(3) { top: 148px; right: 70px; background: #8d78a2; }
.report-page[data-report-theme="bing-fire"] .report-theme-mark::before {
  top: -50px; right: -20px; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,238,167,.72), rgba(242,198,109,.16) 48%, transparent 72%);
}
.report-page[data-report-theme="bing-fire"] .report-theme-mark::after {
  top: 28px; right: 86px; width: 2px; height: 184px;
  background: linear-gradient(var(--report-brass), rgba(138,73,53,0));
}
.report-page[data-report-theme="bing-fire"] .report-theme-mark i {
  right: 81px; width: 12px; height: 12px; border-radius: 50%;
  background: #f2c66d; border: 2px solid var(--report-sheet);
}
.report-page[data-report-theme="bing-fire"] .report-theme-mark i:nth-child(1) { top: 56px; }
.report-page[data-report-theme="bing-fire"] .report-theme-mark i:nth-child(2) { top: 112px; width: 7px; height: 7px; right: 83px; }
.report-page[data-report-theme="bing-fire"] .report-theme-mark i:nth-child(3) { top: 166px; width: 9px; height: 9px; right: 82px; background: var(--report-cinnabar); }
.report-page[data-report-theme="ding-fire"] .report-theme-mark::before {
  top: -112px; right: -54px; width: 260px; height: 260px;
  border: 2px solid rgba(244,189,50,.42); border-radius: 50%;
}
.report-page[data-report-theme="ding-fire"] .report-theme-mark::after {
  top: 120px; right: 0; width: 205px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(22,78,156,.66));
}
.report-page[data-report-theme="ding-fire"] .report-theme-mark i {
  top: 24px; right: 86px; width: 2px; height: 112px;
  background: linear-gradient(var(--report-cinnabar), transparent); transform-origin: top;
}
.report-page[data-report-theme="ding-fire"] .report-theme-mark i:nth-child(1) { transform: rotate(24deg); }
.report-page[data-report-theme="ding-fire"] .report-theme-mark i:nth-child(2) { transform: rotate(62deg); }
.report-page[data-report-theme="ding-fire"] .report-theme-mark i:nth-child(3) {
  top: 111px; right: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--report-cinnabar);
}
.report-page[data-report-theme="wu-earth"] .report-theme-mark::before {
  top: 0; right: 52px; width: 2px; height: 225px;
  background: linear-gradient(var(--report-cinnabar), rgba(143,63,38,.08));
}
.report-page[data-report-theme="wu-earth"] .report-theme-mark i {
  right: 38px; width: 29px; height: 3px; background: var(--report-cinnabar);
}
.report-page[data-report-theme="wu-earth"] .report-theme-mark i:nth-child(1) { top: 42px; }
.report-page[data-report-theme="wu-earth"] .report-theme-mark i:nth-child(2) { top: 89px; width: 18px; right: 38px; background: var(--report-brass); }
.report-page[data-report-theme="wu-earth"] .report-theme-mark i:nth-child(3) { top: 137px; width: 24px; background: var(--report-wood); }
.report-page[data-report-theme="wu-earth"] .report-theme-mark i:nth-child(4) {
  top: 185px; right: 39px; width: 18px; height: 18px;
  background: var(--report-sheet); border: 3px solid var(--report-cinnabar);
}
.report-page[data-report-theme="ji-earth"] .report-theme-mark::before {
  top: 38px; right: 57px; height: 152px; border-left: 1px dashed rgba(86,100,66,.55);
}
.report-page[data-report-theme="ji-earth"] .report-theme-mark i {
  right: 51px; width: 12px; height: 12px; border-radius: 52% 48%;
  background: #c99274; border: 2px solid var(--report-sheet);
}
.report-page[data-report-theme="ji-earth"] .report-theme-mark i:nth-child(1) { top: 42px; }
.report-page[data-report-theme="ji-earth"] .report-theme-mark i:nth-child(2) { top: 77px; background: var(--report-wood); }
.report-page[data-report-theme="ji-earth"] .report-theme-mark i:nth-child(3) { top: 112px; background: var(--report-cinnabar); }
.report-page[data-report-theme="ji-earth"] .report-theme-mark i:nth-child(4) { top: 147px; background: var(--report-wood); }
.report-page[data-report-theme="ji-earth"] .report-theme-mark i:nth-child(5) {
  top: 185px; right: 48px; width: 16px; height: 10px; border: 0;
  border-radius: 100% 0 100% 0; background: var(--report-wood); transform: rotate(-28deg);
}
.report-page[data-report-theme="geng-metal"] .report-theme-mark::before {
  top: 0; right: 0; width: 176px; height: 60px; background: rgba(33,72,117,.12);
}
.report-page[data-report-theme="geng-metal"] .report-theme-mark::after {
  top: 75px; right: 0; width: 112px; height: 38px; background: rgba(158,165,166,.28);
}
.report-page[data-report-theme="geng-metal"] .report-theme-mark i:nth-child(1) {
  top: 132px; right: 70px; width: 24px; height: 24px;
  background: var(--report-sheet); border: 4px solid var(--report-cinnabar);
  box-shadow: 10px 10px 0 rgba(33,72,117,.11);
}
.report-page[data-report-theme="xin-metal"] { border-radius: 18px; }
.report-page[data-report-theme="xin-metal"]::before {
  content: ""; position: absolute; z-index: 0; inset: 18px;
  border: 1px solid rgba(139,94,114,.12); border-radius: 18px; pointer-events: none;
}
.report-page[data-report-theme="xin-metal"] .report-theme-mark::before,
.report-page[data-report-theme="xin-metal"] .report-theme-mark::after {
  right: -28px; width: 188px; height: 110px; border-radius: 24px;
  border: 1px solid rgba(139,94,114,.24);
}
.report-page[data-report-theme="xin-metal"] .report-theme-mark::before { top: 18px; }
.report-page[data-report-theme="xin-metal"] .report-theme-mark::after { top: 42px; right: -48px; border-color: rgba(82,108,104,.26); }
.report-page[data-report-theme="xin-metal"] .report-theme-mark i {
  border-radius: 50%; background: var(--report-wood);
}
.report-page[data-report-theme="xin-metal"] .report-theme-mark i:nth-child(1) {
  top: 86px; right: 108px; width: 22px; height: 22px; background: var(--report-sheet);
  border: 5px solid var(--report-brass); box-shadow: 0 0 0 6px rgba(244,236,228,.72);
}
.report-page[data-report-theme="xin-metal"] .report-theme-mark i:nth-child(2) { top: 26px; right: 56px; width: 7px; height: 7px; }
.report-page[data-report-theme="xin-metal"] .report-theme-mark i:nth-child(3) { top: 132px; right: 31px; width: 9px; height: 9px; background: var(--report-cinnabar); }
.report-page[data-report-theme="ren-water"] .report-theme-mark::before,
.report-page[data-report-theme="ren-water"] .report-theme-mark::after {
  right: -30px; width: 244px; height: 112px; border: 2px solid rgba(39,95,112,.23);
  border-left-color: transparent; border-radius: 50%; transform: rotate(-8deg);
}
.report-page[data-report-theme="ren-water"] .report-theme-mark::before { top: 30px; }
.report-page[data-report-theme="ren-water"] .report-theme-mark::after { top: 64px; right: -42px; width: 224px; height: 98px; border-width: 1px; border-color: rgba(79,112,107,.28); border-left-color: transparent; }
.report-page[data-report-theme="ren-water"] .report-theme-mark i {
  border-radius: 50%; background: var(--report-wood);
}
.report-page[data-report-theme="ren-water"] .report-theme-mark i:nth-child(1) {
  top: 114px; right: 87px; width: 18px; height: 18px;
  background: var(--report-cinnabar); border: 5px solid var(--report-sheet);
}
.report-page[data-report-theme="ren-water"] .report-theme-mark i:nth-child(2) { top: 91px; right: 58px; width: 7px; height: 7px; background: var(--report-brass); }
.report-page[data-report-theme="ren-water"] .report-theme-mark i:nth-child(3) { top: 143px; right: 136px; width: 6px; height: 6px; }
.report-page[data-report-theme="gui-water"] .report-theme-mark::before {
  top: 16px; right: -26px; width: 184px; height: 184px;
  border: 1px solid rgba(75,101,124,.24); border-radius: 50%;
}
.report-page[data-report-theme="gui-water"] .report-theme-mark::after {
  top: 50px; right: 7px; width: 116px; height: 116px;
  border: 1px solid rgba(114,85,114,.24); border-radius: 50%;
}
.report-page[data-report-theme="gui-water"] .report-theme-mark i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--report-wood);
}
.report-page[data-report-theme="gui-water"] .report-theme-mark i:nth-child(1) { top: 42px; right: 182px; width: 6px; height: 6px; background: var(--report-brass); }
.report-page[data-report-theme="gui-water"] .report-theme-mark i:nth-child(2) { top: 74px; right: 154px; }
.report-page[data-report-theme="gui-water"] .report-theme-mark i:nth-child(3) {
  top: 111px; right: 132px; width: 12px; height: 12px; background: var(--report-sheet);
  border: 3px solid var(--report-cinnabar); box-shadow: 0 0 0 6px rgba(155,80,75,.08);
}
.report-page[data-report-theme="gui-water"] .report-theme-mark i:nth-child(4) { top: 151px; right: 109px; width: 7px; height: 7px; background: var(--report-brass); }
.report-page[data-report-theme="gui-water"] .report-theme-mark i:nth-child(5) { top: 179px; right: 74px; width: 5px; height: 5px; }
.report-hero {
  min-height: 0;
  padding-bottom: clamp(3.2rem, 7vw, 5.5rem);
}
.report-edition {
  margin: 0 0 clamp(2rem, 4vw, 3.25rem); padding: 0 0 .8rem;
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--report-brass); border-bottom: 1px solid var(--report-line);
  font: 700 .62rem var(--mono); letter-spacing: .13em; text-transform: uppercase;
}
.report-cover-grid {
  display: grid; grid-template-columns: minmax(270px, .86fr) minmax(0, 1.14fr);
  gap: clamp(2.5rem, 7vw, 6rem); align-items: center;
}
.report-portrait {
  width: min(100%, 420px); aspect-ratio: 1; position: relative;
}
.report-portrait-crop {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  background: var(--report-jade);
  border: 1px solid color-mix(in srgb, var(--report-ink) 28%, transparent);
  box-shadow: 12px 12px 0 var(--report-portrait-shadow);
}
.report-avatar-image,
.manual-avatar-image {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.report-portrait-caption {
  position: absolute; left: 1rem; bottom: .85rem; display: grid; gap: .08rem;
  padding: .35rem .45rem; color: color-mix(in srgb, var(--report-ink) 82%, transparent);
  background: color-mix(in srgb, var(--report-sheet) 78%, transparent); text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.report-portrait-caption b {
  font: 700 .66rem var(--mono); letter-spacing: .12em;
}
.report-portrait-caption small {
  font: 500 .5rem var(--mono); letter-spacing: .16em;
}
.report-stamp {
  top: auto; left: auto; right: -10px; bottom: 18px; z-index: 3;
  width: 52px; height: 62px; color: var(--report-cinnabar);
  background: var(--report-sheet); border-color: var(--report-cinnabar);
  font-size: 1rem; transform: none;
}
.report-hero-copy { align-self: center; }
.report-hero-copy h2 {
  margin: clamp(2.2rem, 5vw, 3.4rem) 0 0;
  color: var(--report-ink); font-size: clamp(2.2rem, 4.8vw, 3.55rem);
  line-height: 1.15; letter-spacing: -.045em; text-wrap: balance;
}
.report-identity-block { position: relative; padding-top: 1.15rem; }
.report-identity-block::before {
  content: ""; width: 38px; height: 2px; position: absolute; left: 0; top: 0;
  background: var(--report-cinnabar);
}
.report-pillar {
  margin: 0; display: grid; gap: .45rem; color: var(--report-ink);
}
.report-pillar span {
  color: var(--report-brass); font: 700 .7rem var(--mono);
  letter-spacing: .18em; text-transform: uppercase;
}
.report-pillar b { font: 700 clamp(3.4rem, 7vw, 5.6rem)/.98 var(--serif); letter-spacing: -.08em; }
.report-family { margin: .9rem 0 0; color: var(--report-wood); font-size: .86rem; letter-spacing: .08em; }
.report-role {
  margin: .8rem 0 0; display: flex; align-items: baseline; gap: .65rem;
  color: var(--report-ink);
}
.report-role small {
  color: var(--muted); font: 700 .6rem var(--mono);
  letter-spacing: .1em;
}
.report-role strong {
  font: 600 .96rem/1.3 var(--serif);
}
.report-hero blockquote {
  margin: 1.5rem 0 0; padding-left: 1.1rem;
  color: color-mix(in srgb, var(--report-ink) 82%, transparent); border-left: 1px solid var(--report-cinnabar);
  font: clamp(1.02rem, 1.65vw, 1.16rem)/1.8 var(--serif);
}
.report-journal { max-width: 880px; margin: 0 auto; }
.report-section {
  position: relative; padding: clamp(3.7rem, 7vw, 5.8rem) 0;
  display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: clamp(1.8rem, 4vw, 3.5rem);
}
.report-section + .report-section {
  border-top: 1px solid var(--report-line);
}
.report-margin {
  padding-top: .35rem; align-self: start;
  display: grid; gap: .5rem;
}
.report-margin span {
  color: var(--report-brass); font: 700 .56rem var(--mono);
  letter-spacing: .1em;
}
.report-margin strong {
  color: var(--report-wood); font: 700 .92rem/1.35 var(--serif);
  letter-spacing: .12em;
}
.report-section-body { min-width: 0; max-width: 760px; }
.report-section h3 {
  margin: 0 0 clamp(1.4rem, 3vw, 2.1rem); color: var(--report-ink);
  font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.32;
  letter-spacing: -.02em; text-wrap: balance;
}
.report-section-body > p {
  max-width: 66ch; margin: 0 0 1.2rem;
  font-size: .98rem; line-height: 1.92; text-wrap: pretty;
}
.report-section-body > p:first-of-type { color: color-mix(in srgb, var(--report-ink) 90%, transparent); font: 1.08rem/1.9 var(--serif); }
.report-card-grid {
  margin: 2.2rem 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: .8rem;
  list-style: none;
}
.report-card-grid li, .key-grid li {
  min-width: 0; padding: 1.15rem;
  background: color-mix(in srgb, var(--report-paper) 62%, transparent); border: 1px solid var(--report-line);
}
.report-card-grid h4, .key-grid h4 { margin: 0 0 .6rem; color: var(--report-ink); font-family: var(--serif); font-size: 1.02rem; }
.report-card-grid p, .key-grid p { margin: 0; font-size: .87rem; line-height: 1.78; text-wrap: pretty; }
.key-grid {
  margin: 2rem 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: .8rem;
  list-style: none;
}
.key-grid li {
  background: color-mix(in srgb, var(--report-cinnabar) 5%, transparent);
  border-color: color-mix(in srgb, var(--report-cinnabar) 22%, transparent);
}
.report-manual {
  margin: 0 0 clamp(3rem, 6vw, 5rem); padding: clamp(1.5rem, 4vw, 2.7rem);
  display: grid; grid-template-columns: minmax(0, 1fr) 180px;
  gap: clamp(2rem, 5vw, 3.6rem); color: var(--report-ink);
  background: color-mix(in srgb, var(--report-paper) 74%, transparent); border: 1px solid var(--report-line);
}
.report-manual-copy { min-width: 0; }
.manual-kicker {
  margin: 0 0 .9rem; color: var(--report-cinnabar);
  font: 700 .62rem var(--mono); letter-spacing: .14em;
}
.report-manual h3 {
  margin: 0 0 .65rem; color: var(--report-ink);
  font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.24; text-wrap: balance;
}
.manual-identity {
  margin: 0 0 1.8rem; color: var(--report-wood);
  font: .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.report-manual ul { margin: 0; padding: 0; list-style: none; }
.report-manual li {
  position: relative; padding: .9rem 0 .9rem 1.35rem;
  border-bottom: 1px solid var(--report-line); font: .98rem/1.74 var(--serif);
}
.report-manual li::before { content: "◇"; position: absolute; left: 0; top: .92rem; color: var(--report-cinnabar); }
.report-manual li:last-child { border-bottom: 0; }
.manual-portrait {
  width: 180px; aspect-ratio: 1; position: relative; overflow: hidden;
  align-self: start; background: var(--report-jade); border: 1px solid var(--report-line);
}
.manual-portrait-name {
  position: absolute; left: .75rem; bottom: .55rem; padding: .25rem .35rem;
  color: var(--report-ink); background: color-mix(in srgb, var(--report-sheet) 78%, transparent);
  font: 700 .55rem var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.report-safety {
  margin-bottom: 2rem; padding: 1.5rem 0 0;
  display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem;
  border-top: 1px solid var(--report-cinnabar);
}
.report-safety h3 { margin: 0; font-size: 1rem; }
.report-safety p { max-width: 72ch; margin: 0; color: color-mix(in srgb, var(--report-ink) 66%, transparent); font-size: .8rem; line-height: 1.75; }

html[lang="en"] .report-hero-copy h2 {
  max-width: 16ch; font-size: clamp(2.05rem, 3.8vw, 2.9rem);
  line-height: 1.08; letter-spacing: -.035em;
}
html[lang="en"] .report-pillar b {
  font-size: clamp(3.15rem, 5.8vw, 4.75rem);
}
html[lang="en"] .report-family {
  font-size: .98rem; letter-spacing: .03em;
}
html[lang="en"] .report-role small,
html[lang="en"] .report-margin strong,
html[lang="en"] .manual-kicker {
  font-family: var(--sans); text-transform: uppercase;
}
html[lang="en"] .report-role strong {
  font: 600 1.08rem/1.3 var(--serif);
}
html[lang="en"] .report-section h3 {
  max-width: 26ch; font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.18; letter-spacing: -.025em;
}
html[lang="en"] .report-section-body > p {
  max-width: 68ch; font-size: 1rem; line-height: 1.8;
}
html[lang="en"] .report-section-body > p:first-of-type {
  font-size: 1.08rem; line-height: 1.78;
}
html[lang="en"] .report-card-grid h4,
html[lang="en"] .key-grid h4 {
  line-height: 1.3;
}
html[lang="en"] .report-manual h3 {
  max-width: 18ch; letter-spacing: -.025em;
}
html[lang="en"] .report-manual li { line-height: 1.65; }
html[lang="en"] .report-safety h3 { line-height: 1.25; }

.rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; }
.rating label { position: relative; }
.rating input { position: absolute; opacity: 0; }
.rating span { min-height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.rating input:checked + span { color: #fff; background: var(--vermilion); border-color: var(--vermilion); }
.scale-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.behavior-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.behavior-card { position: relative; }
.behavior-card input { position: absolute; opacity: 0; }
.behavior-card > span { min-height: 210px; padding: 1.15rem; display: block; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.behavior-card input:checked + span { background: var(--mist); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.behavior-label { width: 30px; height: 30px; margin-bottom: .8rem; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 700 .75rem var(--mono); }
.behavior-card ul { margin: 0; padding-left: 1.05rem; }
.neutral-options { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.neutral-options label { position: relative; }
.neutral-options input { position: absolute; opacity: 0; }
.neutral-options span { min-height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.neutral-options input:checked + span { color: #fff; background: var(--ink); }
.counter { justify-self: end; color: var(--muted); font: .68rem var(--mono); }

.status-card { text-align: center; }
.status-symbol { width: 78px; height: 78px; margin: 0 auto 1.5rem; display: grid; place-items: center; color: var(--vermilion); border: 1px solid var(--vermilion); border-radius: 50%; font: 700 1.7rem var(--serif); }
.status-card p { max-width: 520px; margin-left: auto; margin-right: auto; }
.status-card .button-row { justify-content: center; }
.a2-card { margin-top: 2rem; padding: 1.4rem; text-align: left; background: var(--mist); border-radius: 10px; }
.a2-rules { padding-left: 1.15rem; }
.review-box { margin: 1rem 0; padding: 1rem; text-align: left; border: 1px solid var(--vermilion); border-radius: 9px; }

.site-footer {
  padding: 1.5rem clamp(1rem, 4vw, 3.5rem); display: flex; justify-content: space-between; gap: 2rem;
  color: rgba(32,37,34,.55); background: var(--paper-deep); border-top: 1px solid var(--line); font-size: .68rem;
}
.site-footer p { max-width: 620px; margin: 0; }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; max-width: min(360px, calc(100% - 2rem)); padding: .85rem 1rem; color: #fff; background: var(--ink); border: 1px solid rgba(255,255,255,.24); border-radius: 8px; transform: translateY(150%); transition: transform .22s ease; }
.toast.show { transform: translateY(0); }
.print-only { display: none; }

@keyframes enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gather { 0%,100% { transform: rotate(0deg) scaleX(.35); opacity: .28; } 50% { transform: rotate(180deg) scaleX(1); opacity: .72; } }
@keyframes reveal { 0%,100% { opacity: .22; } 50% { opacity: 1; } }

@media (max-width: 760px) {
  .prototype-bar { align-items: flex-start; flex-direction: column; gap: .3rem; }
  .prototype-bar label { width: 100%; justify-content: space-between; }
  .prototype-bar select { max-width: 190px; }
  .intro-layout, .result-card { grid-template-columns: 1fr; }
  .portrait { min-height: 430px; order: -1; }
  .result-image { min-height: 380px; }
  .result-image .cat { width: 38%; height: 51%; left: 31%; }
  .chapter-nav { grid-template-columns: 1fr 1fr; }
  .branch-contrast { grid-template-columns: 1fr; }
  .chapter { min-height: 0; }
  .report-grid, .guide-columns { grid-template-columns: 1fr; }
  .report-page { padding: clamp(1.4rem, 5vw, 2.8rem); }
  .report-cover-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .report-portrait { width: min(100%, 370px); margin: 0 auto; }
  .report-section { grid-template-columns: 68px minmax(0, 1fr); gap: 1.5rem; }
  .report-card-grid, .key-grid { grid-template-columns: 1fr; gap: 0; }
  .report-card-grid li, .key-grid li { margin-bottom: .7rem; padding: 1.15rem; }
  .report-manual { grid-template-columns: minmax(0, 1fr) 160px; gap: 1.5rem; }
  .manual-portrait { width: 160px; }
  .result-card { box-shadow: 8px 9px 0 var(--soft-blue); }
}

@media (max-width: 520px) {
  .site-header { height: 58px; }
  .header-actions { gap: .45rem; }
  .stage-indicator { max-width: 35vw; overflow: hidden; text-overflow: ellipsis; }
  .screen, .screen-wide, .screen-narrow, .result-cover { width: min(100% - 1.4rem, var(--content)); }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .behavior-cards, .neutral-options { grid-template-columns: 1fr; }
  .behavior-card > span { min-height: 0; }
  .email-action { grid-template-columns: 1fr; }
  .email-action .button { margin-top: .65rem; }
  .chapter-controls { flex-direction: column-reverse; }
  .chapter-controls .button { width: 100%; }
  .button-row.mobile-stack { flex-direction: column; }
  .button-row.mobile-stack .button { width: 100%; }
  .site-footer { flex-direction: column; gap: .5rem; }
  .report-page {
    width: 100%; margin-top: 0; margin-bottom: 0;
    padding: 1.25rem 1.15rem 2.8rem; border: 0; box-shadow: none;
  }
  .report-theme-mark { width: 170px; height: 190px; opacity: .76; }
  .report-hero { padding-bottom: 3.2rem; }
  .report-edition { margin-bottom: 1.5rem; font-size: .55rem; }
  .report-cover-grid { gap: 2rem; }
  .report-portrait { width: min(100%, 320px); }
  .report-portrait-crop { box-shadow: 8px 8px 0 rgba(154,129,90,.11); }
  .report-portrait-crop::before { font-size: 7.5rem; }
  .report-stamp { right: -7px; bottom: 15px; width: 47px; height: 57px; }
  .report-pillar b { font-size: clamp(3.5rem, 19vw, 4.65rem); }
  .report-family { font-size: .8rem; }
  .report-role strong { font-size: .92rem; }
  .report-hero-copy h2 { margin-top: 1.9rem; font-size: clamp(2rem, 10vw, 2.6rem); }
  html[lang="en"] .report-hero-copy h2 {
    max-width: 17ch; font-size: clamp(1.9rem, 8.6vw, 2.35rem);
  }
  html[lang="en"] .report-pillar b {
    font-size: clamp(3.2rem, 15.5vw, 4.1rem);
  }
  html[lang="en"] .report-family { font-size: .92rem; }
  html[lang="en"] .report-role strong { font-size: 1.02rem; }
  .report-hero blockquote { margin-top: 1.3rem; }
  .report-section {
    padding: 3.3rem 0; grid-template-columns: 1fr; gap: 1.25rem;
  }
  .report-margin {
    padding: 0 0 .65rem; display: flex;
    flex-direction: row; justify-content: space-between; align-items: baseline;
    border-bottom: 1px solid var(--report-line);
  }
  .report-margin strong { font-size: .9rem; letter-spacing: .12em; }
  .report-section h3 { font-size: 1.7rem; }
  html[lang="en"] .report-section h3 {
    max-width: 100%; font-size: 1.85rem; line-height: 1.16;
  }
  .report-section-body > p { font-size: .96rem; line-height: 1.88; }
  .report-section-body > p:first-of-type { font-size: 1.05rem; }
  .report-card-grid, .key-grid { margin-top: 1.5rem; }
  .report-manual {
    padding: 1.35rem;
    grid-template-columns: 1fr; gap: 1.5rem;
  }
  .report-manual h3 { font-size: 1.65rem; word-break: keep-all; }
  html[lang="en"] .report-manual h3 {
    max-width: 100%; font-size: 1.85rem; word-break: normal;
  }
  .manual-portrait { width: 150px; justify-self: center; }
  .report-safety { grid-template-columns: 1fr; gap: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  .prototype-bar, .site-header, .site-footer, .toast, .chapter-nav, .chapter-controls, .report-actions, .button-row { display: none !important; }
  body { background: #fff; }
  #app { min-height: 0; }
  .screen, .screen-wide, .screen-narrow, .result-cover { width: 100%; padding: 0; }
  .report-page { width: 100%; margin: 0; padding: 0; box-shadow: none; }
  .report-hero { min-height: 0; padding-bottom: 2.5rem; }
  .report-cover-grid { grid-template-columns: 240px 1fr; gap: 2.5rem; }
  .report-portrait { width: 240px; }
  .report-section { grid-template-columns: 72px 1fr; gap: 1.5rem; padding: 2.25rem 0; }
  .report-section { break-inside: avoid; }
  .report-manual { grid-template-columns: 1fr 180px; gap: 1.5rem; }
  .manual-portrait { width: 180px; }
  .report-manual, .report-safety { break-inside: avoid; }
  .chapter.screen-only { display: none; }
  .print-only { display: block; }
  .print-only .chapter { min-height: 0; margin-bottom: 1rem; break-inside: avoid; }
  .result-card { box-shadow: none; break-inside: avoid; }
}
