:root {
  --paper: #f5f5f3;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #686866;
  --faint: #969694;
  --line: #dededb;
  --line-dark: #b9b9b5;
  --gold: #b49a67;
  --gold-soft: #f2eee5;
  --wine: #5f5f5c;
  --wine-soft: #eeeeec;
  --night: #141414;
  --danger: #8f3434;
  --radius: 6px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.55em; letter-spacing: 0; }
h1 { max-width: 860px; font-family: Georgia, "Songti SC", serif; font-size: 4.35rem; font-weight: 500; line-height: 1.13; }
h2 { font-family: Georgia, "Songti SC", serif; font-size: 1.85rem; font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 600; }
[hidden] { display: none !important; }
.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; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(221, 216, 207, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; display: block; border: 1px solid var(--gold); border-radius: 4px; object-fit: cover; background: var(--night); }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-family: Georgia, "Songti SC", serif; font-size: 1.03rem; font-weight: 600; }
.brand small { margin-top: 3px; color: var(--faint); font-size: 0.66rem; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 22px; color: #4d4d4b; font-size: 0.84rem; }
.main-nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--gold); color: var(--ink); }

.workspace { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 74px 0 0; scroll-margin-top: 72px; }
.workspace.showing-result { padding-top: 0; }
.workspace.showing-result > .workspace-heading { display: none; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 68px; }
.eyebrow { margin: 0 0 13px; color: var(--wine); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.lead { max-width: 730px; margin: 22px 0 0; color: #5d5754; font-family: Georgia, "Songti SC", serif; font-size: 1.08rem; line-height: 1.9; }
.step-meter { width: 170px; flex: 0 0 auto; color: var(--faint); font-size: 0.74rem; text-align: right; }
.step-track { height: 2px; margin-top: 9px; overflow: hidden; background: var(--line); }
.step-track span { display: block; height: 100%; width: 50%; background: var(--wine); transition: width 260ms ease; }
.error-notice { margin: -34px 0 34px; padding: 14px 16px; border-left: 3px solid var(--danger); background: #faeded; color: #6f2929; font-size: 0.84rem; line-height: 1.6; }

.form-step { display: none; }
.form-step.is-active { display: block; }
.section-heading { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 0 0 26px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-bottom: 7px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.section-number { padding-top: 6px; color: var(--gold); font-family: Georgia, serif; font-size: 0.88rem; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }

.segmented { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 38px 0 48px; border: 1px solid var(--line); }
.segmented legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.segmented label { min-width: 0; border-right: 1px solid var(--line); }
.segmented label:last-child { border-right: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; color: var(--muted); font-size: 0.82rem; text-align: center; transition: background 150ms ease, color 150ms ease; }
.segmented svg { width: 16px; height: 16px; flex: 0 0 16px; }
.segmented input:checked + span { background: var(--night); color: #fffefa; }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: -3px; }

.people-grid, .advanced-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.person-fields legend { margin-bottom: 21px; font-family: Georgia, "Songti SC", serif; font-size: 1.15rem; }
.person-fields > label, .field-row > label, .qa-form > label { display: block; margin-top: 18px; }
.person-fields label > span, .field-row label > span, .qa-form label > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.77rem; }
.form-control, .form-select { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid var(--line-dark); border-radius: 3px; outline: none; background: var(--surface); color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180, 154, 103, 0.15); }
.form-control:disabled, .form-select:disabled { background: #efede8; color: var(--faint); cursor: not-allowed; }
textarea.form-control { min-height: 96px; resize: vertical; line-height: 1.7; }
.advanced-details { margin: 48px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advanced-details summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; color: #46413f; cursor: pointer; }
.advanced-details summary::-webkit-details-marker { display: none; }
.advanced-details summary > span { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; }
.advanced-details summary svg { width: 16px; height: 16px; transition: transform 160ms ease; }
.advanced-details[open] summary svg { transform: rotate(45deg); }
.advanced-details summary small { color: var(--faint); font-size: 0.73rem; }
.advanced-grid { padding: 12px 0 30px; }
.compact-fields legend { color: var(--wine); font-size: 0.86rem; }
.location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.location-grid label > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.77rem; }
.time-group { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; margin-top: 18px; }
.time-group > label:first-child { min-width: 0; }
.time-group label > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.77rem; }
.check-label { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 2px; color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.check-label input, .consent-label input { accent-color: var(--wine); }
.check-label span { margin: 0 !important; }
.field-help { margin: -6px 0 28px; color: var(--faint); font-size: 0.73rem; line-height: 1.7; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 30px; }
.consent-label { display: flex; align-items: flex-start; gap: 9px; margin-top: 34px; color: var(--muted); font-size: 0.75rem; line-height: 1.6; }
.consent-label input { margin-top: 4px; }
.consent-label a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.form-actions { display: flex; justify-content: flex-end; padding: 34px 0 76px; }
.form-actions-with-note { align-items: center; justify-content: space-between; gap: 20px; }
.form-actions-with-note > span { color: var(--muted); font-size: 0.76rem; line-height: 1.6; }

.btn, .icon-btn { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-dark); border-radius: 3px; background: var(--surface); color: var(--ink); }
.btn { padding: 10px 17px; font-size: 0.82rem; font-weight: 600; }
.btn:hover { border-color: var(--gold); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { border-color: var(--night); background: var(--night); color: #fffefa; }
.btn-primary:hover { border-color: var(--wine); background: var(--wine); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.icon-btn { width: 42px; height: 42px; min-height: 42px; padding: 0; }
.icon-btn svg { width: 18px; height: 18px; }

.result-step { margin: 0 calc(50% - 50vw); }
.result-topline, .calculation-summary, .result-overview, .free-report, .qa-band { padding-inline: max(20px, calc((100vw - 1120px) / 2)); }
.result-topline { min-height: 330px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 70px; border-top: 1px solid var(--line); background: var(--surface); }
.result-topline > div:first-child { min-width: 0; }
.result-topline h2 { margin-bottom: 16px; font-size: 4rem; }
.relation-poem { max-width: 720px; margin: 0; color: #605956; font-family: Georgia, "Songti SC", serif; font-size: 1rem; line-height: 1.9; }
.calculation-summary { padding-block: 52px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calculation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.calculation-heading > span { color: var(--faint); font-size: 0.73rem; white-space: nowrap; }
.person-hosts, .relation-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.person-hosts { margin-top: 28px; }
.person-hosts article { padding: 14px 0; border-bottom: 1px solid var(--line); }
.person-hosts strong { display: block; margin-bottom: 5px; }
.person-hosts p { margin: 0; color: var(--muted); font-size: 0.79rem; }
.relation-results { margin-top: 20px; }
.relation-results article { padding: 24px 0 18px; }
.relation-kicker { display: block; margin-bottom: 9px; color: var(--wine); font-size: 0.7rem; font-weight: 700; }
.relation-results strong { display: block; font-family: Georgia, "Songti SC", serif; font-size: 1.65rem; font-weight: 500; }
.relation-results p { margin: 8px 0 0; color: var(--muted); font-size: 0.82rem; }
.method-details { margin-top: 22px; color: var(--muted); font-size: 0.78rem; }
.method-details summary { width: fit-content; color: var(--wine); cursor: pointer; }
.method-details p { max-width: 850px; margin: 13px 0 0; line-height: 1.8; }

.result-overview { padding-block: 62px 70px; background: var(--surface); }
.result-stamp { margin-bottom: 24px; color: var(--wine); font-family: Georgia, "Songti SC", serif; font-size: 1.22rem; }
.result-summary { max-width: 850px; color: #393534; font-size: 0.96rem; line-height: 2; white-space: pre-line; }
.trait-list { max-width: 900px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 34px 0 0; border-top: 1px solid var(--line); }
.trait-list div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.trait-list div:nth-child(odd) { padding-right: 28px; }
.trait-list div:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.trait-list dt { color: var(--wine); font-size: 0.75rem; font-weight: 700; }
.trait-list dd { margin: 0; color: #4f4946; font-size: 0.82rem; line-height: 1.65; }
.share-actions { display: flex; gap: 9px; margin-top: 30px; }

.free-report { padding-block: 66px; border-top: 1px solid var(--line); }
.report-intro, .qa-heading, .paid-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.report-intro > span, .qa-heading > span { color: var(--faint); font-size: 0.74rem; white-space: nowrap; }
.evidence-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.evidence-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; }
.evidence-chip strong { color: var(--wine); font-size: 0.68rem; }
.report-section { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.report-index { padding-top: 4px; color: var(--gold); font-family: Georgia, serif; font-size: 0.8rem; }
.report-section h4 { font-family: Georgia, "Songti SC", serif; font-size: 1.2rem; font-weight: 500; }
.report-section p { max-width: 850px; margin: 10px 0 0; overflow-wrap: anywhere; color: #45403e; font-size: 0.9rem; line-height: 2; }
.two-voices { max-width: 900px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.two-voices blockquote { margin: 0; padding: 16px 18px; border-left: 2px solid var(--gold); background: var(--surface); color: #514b48; font-family: Georgia, "Songti SC", serif; font-size: 0.84rem; line-height: 1.8; }
.signal-list { max-width: 900px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 22px 0 0; padding: 0; list-style: none; background: var(--line); }
.signal-list li { min-height: 96px; padding: 18px; background: var(--surface); color: #4c4643; font-size: 0.8rem; line-height: 1.7; }
.method-note { display: flex; align-items: flex-start; gap: 8px; color: var(--faint) !important; font-size: 0.75rem !important; }
.method-note svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 5px; color: var(--wine); }
.self-check ol { max-width: 820px; margin: 15px 0 0; padding-left: 22px; color: #45403e; }
.self-check li { margin-bottom: 11px; padding-left: 4px; line-height: 1.8; }

.qa-band { padding-block: 64px 72px; border-top: 1px solid var(--line); background: var(--surface); }
.qa-form { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; align-items: end; gap: 18px; margin-top: 26px; }
.qa-form > label { margin: 0; }
.qa-form .btn { min-height: 48px; }
.qa-answer { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.answer-scope { color: var(--wine); font-size: 0.73rem; font-weight: 700; }
.qa-answer dl { margin: 0; }
.qa-answer dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.qa-answer dt { color: var(--wine); font-size: 0.77rem; font-weight: 700; }
.qa-answer dd { max-width: 850px; margin: 0; color: #484340; font-size: 0.86rem; line-height: 1.85; }
.qa-limit-note { margin: 18px 0 0; color: var(--faint); font-size: 0.74rem; line-height: 1.7; }

.paid-band { padding: 62px max(20px, calc((100vw - 1120px) / 2)) 74px; background: var(--night); color: #fffefa; }
.paid-band .eyebrow { color: #d4b98b; }
.paid-heading { padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.paid-heading h3 { max-width: 660px; margin-bottom: 0; font-family: Georgia, "Songti SC", serif; font-size: 1.8rem; font-weight: 500; }
.paid-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--wine); font-size: 0.8rem; }
.text-link svg { width: 15px; height: 15px; }
.light-link { color: #dfcaa4; }
.paid-readiness { margin: 20px 0 0; padding: 12px 14px; border-left: 2px solid var(--gold); background: rgba(255, 255, 255, 0.06); color: #d8d0cc; font-size: 0.79rem; line-height: 1.7; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 32px; background: rgba(255, 255, 255, 0.16); }
.offer-grid article { min-height: 270px; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; background: var(--night); }
.offer-label { margin-bottom: 18px; color: #dfcaa4; font-size: 0.75rem; font-weight: 700; }
.offer-grid strong { margin-bottom: 14px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.offer-grid article > p:not(.offer-label) { color: #cfc7c4; font-size: 0.8rem; line-height: 1.7; }
.offer-grid .btn { margin-top: auto; border-color: rgba(255, 255, 255, 0.28); background: transparent; color: #fff; }
.offer-grid .btn-primary { border-color: #d8bd8e; background: #d8bd8e; color: #1c191a; }
.payment-state { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,0.16); }
.payment-state svg { width: 20px; height: 20px; flex: 0 0 20px; color: #d8bd8e; }
.payment-state strong { display: block; margin-bottom: 4px; }
.payment-state p { margin: 0; color: #cfc7c4; font-size: 0.8rem; line-height: 1.6; }

footer { min-height: 70px; display: grid; place-items: center; padding: 18px 24px; border-top: 1px solid var(--line); background: var(--surface); color: var(--faint); text-align: center; font-size: 0.72rem; }
footer p { margin: 0; line-height: 1.8; }
footer a { margin-left: 10px; color: #5c5c5a; }
.beian-line { display: block; margin-top: 4px; }
.beian-line a { margin-left: 0; }

dialog { width: min(510px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgba(26, 18, 22, 0.26); }
dialog::backdrop { background: rgba(27, 25, 26, 0.72); }
.dialog-content { position: relative; padding: 34px; }
.dialog-content > p:not(.eyebrow) { color: var(--muted); line-height: 1.75; }
.dialog-close { position: absolute; top: 14px; right: 14px; }
.dialog-details { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.dialog-details span { padding: 7px 9px; border: 1px solid var(--line); color: var(--muted); font-size: 0.74rem; }
.dialog-footnote { margin: 14px 0 0 !important; color: var(--faint) !important; font-size: 0.7rem; }

.page-shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 90px; }
.page-hero { max-width: 900px; padding-bottom: 52px; }
.page-hero h1 { max-width: 900px; font-size: 3.9rem; }
.page-hero p:not(.eyebrow) { max-width: 700px; color: var(--muted); font-size: 0.96rem; line-height: 1.9; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.prose-section { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 52px; padding: 40px 0; border-top: 1px solid var(--line); }
.prose-section h2 { font-size: 1.35rem; }
.prose-section .prose-copy { max-width: 720px; }
.prose-copy p, .prose-copy li { color: #494441; font-size: 0.9rem; line-height: 1.95; }
.prose-copy ul { margin: 0; padding-left: 20px; }
.fact-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 12px 0 54px; background: var(--line); }
.fact-row div { min-height: 138px; padding: 25px; background: var(--surface); }
.fact-row strong { display: block; margin-bottom: 9px; color: var(--wine); font-family: Georgia, serif; font-size: 1.6rem; }
.fact-row span { color: var(--muted); font-size: 0.78rem; line-height: 1.6; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 58px; }
.pricing-grid-human { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pricing-section-heading { margin: 10px 0 24px; padding-top: 42px; border-top: 1px solid var(--line); }
.pricing-section-heading h2 { margin-bottom: 8px; font-size: 1.55rem; }
.pricing-section-heading > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 0.86rem; line-height: 1.8; }
.price-card { min-height: 330px; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.price-card.featured { border-color: var(--gold); box-shadow: var(--shadow); }
.price-card .price-kicker { margin-bottom: 18px; color: var(--wine); font-size: 0.73rem; font-weight: 700; }
.price-card h2 { margin-bottom: 10px; font-family: inherit; font-size: 1.05rem; font-weight: 650; }
.price-value { margin-bottom: 18px; font-family: Georgia, serif; font-size: 2.25rem; }
.price-value small { font-family: inherit; font-size: 0.92rem; color: var(--muted); }
.price-card > p:not(.price-kicker):not(.price-value) { color: var(--muted); font-size: 0.8rem; line-height: 1.7; }
.price-card ul { margin: 0 0 24px; padding-left: 18px; color: #4f4946; font-size: 0.78rem; line-height: 1.8; }
.price-card .btn { width: 100%; margin-top: auto; }
.pricing-note { padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; line-height: 1.8; }
.pricing-payment-state { margin-top: 24px; padding: 16px; border-left: 2px solid var(--gold); background: var(--gold-soft); color: #51483c; font-size: 0.82rem; }

.legal-page { width: min(780px, calc(100% - 36px)); margin: 0 auto; padding: 68px 0 90px; }
.legal-page h1 { max-width: none; font-size: 3.8rem; }
.legal-page h2 { margin-top: 38px; font-family: inherit; font-size: 1.08rem; font-weight: 650; }
.legal-page p, .legal-page li { color: #4d4744; font-size: 0.88rem; line-height: 1.95; }
.legal-page a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

/* Account and report-demo surfaces share the same quiet black, silver and gold system. */
.account-page { width: min(980px, calc(100% - 36px)); margin: 0 auto; padding: 68px 0 90px; }
.account-hero { max-width: 740px; padding-bottom: 42px; }
.account-hero h1 { max-width: none; font-size: 3.7rem; }
.account-hero p:not(.eyebrow) { max-width: 660px; color: var(--muted); font-size: 0.95rem; line-height: 1.9; }
.account-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 28px; padding: 14px 16px; border-left: 2px solid var(--gold); background: var(--gold-soft); color: #57534c; font-size: 0.8rem; line-height: 1.75; }
.account-notice svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; color: var(--gold); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); gap: 54px; align-items: start; }
.auth-panel, .account-panel { padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.auth-panel h2, .account-panel h2 { margin-bottom: 9px; font-family: Georgia, "Songti SC", serif; font-size: 1.45rem; }
.panel-intro { margin: 0 0 22px; color: var(--muted); font-size: 0.82rem; line-height: 1.75; }
.auth-method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 22px; border: 1px solid var(--line); }
.auth-method label { min-width: 0; border-right: 1px solid var(--line); }
.auth-method label:last-child { border-right: 0; }
.auth-method input { position: absolute; opacity: 0; pointer-events: none; }
.auth-method span { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 0.8rem; }
.auth-method input:checked + span { background: var(--night); color: #fff; }
.auth-method input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: -3px; }
.auth-form label { display: block; margin-top: 16px; }
.auth-form label > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.77rem; }
.auth-form .btn { width: 100%; margin-top: 22px; }
.auth-hint { margin: 14px 0 0; color: var(--faint); font-size: 0.72rem; line-height: 1.7; }
.account-panel { min-height: 260px; }
.account-empty { display: grid; place-items: center; min-height: 190px; padding: 24px; border: 1px dashed var(--line-dark); color: var(--faint); text-align: center; font-size: 0.82rem; line-height: 1.8; }
.account-empty svg { width: 23px; height: 23px; color: var(--gold); }
.account-dashboard { display: none; }
.account-dashboard.is-visible { display: block; }
.account-profile { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.account-profile strong { display: block; margin-bottom: 5px; font-family: Georgia, "Songti SC", serif; font-size: 1.16rem; font-weight: 500; }
.account-profile p { margin: 0; color: var(--muted); font-size: 0.76rem; }
.account-profile .icon-btn { flex: 0 0 auto; }
.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 22px 0; background: var(--line); }
.account-stats div { min-height: 86px; padding: 16px; background: var(--paper); }
.account-stats strong { display: block; margin-bottom: 6px; color: var(--ink); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.account-stats span { color: var(--muted); font-size: 0.7rem; line-height: 1.5; }
.account-subheading { margin: 22px 0 12px; color: var(--wine); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; }
.saved-list { margin: 0; padding: 0; list-style: none; }
.saved-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.saved-list strong { display: block; margin-bottom: 4px; font-size: 0.8rem; font-weight: 650; }
.saved-list span { display: block; color: var(--muted); font-size: 0.7rem; line-height: 1.5; }
.saved-list time { flex: 0 0 auto; color: var(--faint); font-size: 0.68rem; }
.account-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.account-links .btn { flex: 1 1 130px; }
.account-security { display: flex; align-items: flex-start; gap: 8px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.72rem; line-height: 1.8; }
.account-security svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 4px; color: var(--gold); }
.account-error { margin-top: 15px; color: var(--danger); font-size: 0.76rem; line-height: 1.6; }
.report-demo-shell { width: min(940px, calc(100% - 36px)); }
.report-demo-hero { max-width: 780px; padding-bottom: 40px; }
.report-demo-hero h1 { max-width: none; font-size: 3.7rem; }
.report-demo-hero p:not(.eyebrow) { max-width: 700px; color: var(--muted); font-size: 0.95rem; line-height: 1.9; }
.demo-notice { margin: 0 0 30px; padding: 13px 15px; border: 1px solid var(--line); color: var(--muted); font-size: 0.76rem; line-height: 1.7; }
.demo-cover { padding: 38px; border: 1px solid var(--line-dark); background: var(--night); color: #fff; }
.demo-cover .eyebrow { color: #d7c092; }
.demo-cover h2 { max-width: 640px; margin-bottom: 14px; color: #fff; font-size: 2.65rem; }
.demo-cover p { max-width: 700px; margin: 0; color: #d4d4d0; font-family: Georgia, "Songti SC", serif; font-size: 1rem; line-height: 1.9; }
.demo-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.demo-meta span { padding: 7px 9px; border: 1px solid rgba(255,255,255,0.25); color: #deded9; font-size: 0.72rem; }
.demo-toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 28px 0 0; background: var(--line); }
.demo-toc div { min-height: 70px; padding: 15px; background: var(--surface); color: var(--muted); font-size: 0.75rem; line-height: 1.55; }
.demo-toc strong { display: block; margin-bottom: 4px; color: var(--gold); font-family: Georgia, serif; font-size: 0.8rem; font-weight: 500; }
.demo-section { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.demo-section-index { padding-top: 4px; color: var(--gold); font-family: Georgia, serif; font-size: 0.8rem; }
.demo-section h3 { margin-bottom: 9px; font-family: Georgia, "Songti SC", serif; font-size: 1.35rem; font-weight: 500; }
.demo-section p, .demo-section li { max-width: 750px; overflow-wrap: anywhere; color: #474745; font-size: 0.88rem; line-height: 1.95; }
.demo-section ul { margin: 12px 0 0; padding-left: 20px; }
.demo-quote { margin: 18px 0 0; padding: 15px 17px; border-left: 2px solid var(--gold); background: var(--paper); color: #50504c; font-family: Georgia, "Songti SC", serif; font-size: 0.86rem; line-height: 1.85; }
.demo-end { margin-top: 30px; padding: 20px; background: var(--gold-soft); color: #57534c; font-size: 0.8rem; line-height: 1.8; }

@media (max-width: 860px) {
  .workspace-heading { align-items: flex-start; }
  .people-grid, .advanced-grid, .field-row { gap: 34px; }
  .qa-form { grid-template-columns: 180px minmax(0, 1fr); }
  .qa-form .btn { grid-column: 2; justify-self: start; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .app-header { min-height: 64px; padding-inline: 16px; }
  .main-nav { gap: 13px; flex-wrap: wrap; }
  .workspace { width: min(100% - 28px, 1120px); padding-top: 46px; }
  .workspace { scroll-margin-top: 64px; }
  .workspace-heading { display: block; margin-bottom: 44px; }
  h1 { font-size: 2.55rem; }
  .page-hero h1, .legal-page h1 { font-size: 2.55rem; }
  .lead { font-size: 0.98rem; }
  .step-meter { width: 100%; margin-top: 26px; }
  .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segmented label { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .segmented label:nth-of-type(2n) { border-right: 0; }
  .segmented label:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .people-grid, .advanced-grid, .field-row, .person-hosts, .relation-results, .trait-list, .two-voices, .signal-list, .offer-grid, .fact-row, .pricing-grid { grid-template-columns: 1fr; }
  .people-grid { gap: 38px; }
  .advanced-grid, .field-row { gap: 26px; }
  .location-grid { grid-template-columns: 1fr; gap: 12px; }
  .time-group { grid-template-columns: 1fr; gap: 2px; }
  .check-label { min-height: 34px; }
  .form-actions { padding-bottom: 52px; }
  .form-actions-with-note { align-items: stretch; flex-direction: column; }
  .form-actions-with-note .btn { width: 100%; }
  .result-topline { min-height: 280px; align-items: flex-start; padding-block: 50px; }
  .result-topline h2 { font-size: 2.45rem; }
  .calculation-heading, .report-intro, .qa-heading, .paid-heading { display: block; }
  .calculation-heading > span, .report-intro > span, .qa-heading > span { display: block; margin-top: 10px; white-space: normal; }
  .relation-results article { padding-bottom: 8px; }
  .trait-list div, .trait-list div:nth-child(odd), .trait-list div:nth-child(even) { padding: 16px 0; border-left: 0; }
  .share-actions { align-items: stretch; flex-direction: column; }
  .share-actions .btn { width: 100%; }
  .report-section { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding: 30px 0; }
  .qa-form { grid-template-columns: 1fr; }
  .qa-form .btn { grid-column: auto; width: 100%; }
  .qa-answer dl div { grid-template-columns: 1fr; gap: 8px; }
  .paid-heading .text-link { margin-top: 14px; }
  .offer-grid article { min-height: 245px; }
  footer a { display: inline-block; margin-top: 5px; }
  .dialog-content { padding: 30px 22px 22px; }
  .page-shell { width: min(100% - 30px, 1040px); padding-top: 52px; }
  .page-hero { padding-bottom: 34px; }
  .prose-section { grid-template-columns: 1fr; gap: 12px; padding: 30px 0; }
  .account-page, .report-demo-shell { width: min(100% - 30px, 980px); padding-top: 52px; }
  .account-hero h1, .report-demo-hero h1 { font-size: 2.55rem; }
  .account-grid { grid-template-columns: 1fr; gap: 28px; }
  .auth-panel, .account-panel { padding: 22px; }
  .demo-cover { padding: 26px 22px; }
  .demo-cover h2 { font-size: 2.1rem; }
  .demo-toc { grid-template-columns: 1fr; }
  .demo-section { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding: 30px 0; }
}

@media (max-width: 390px) {
  h1 { font-size: 2.25rem; }
  .page-hero h1, .legal-page h1 { font-size: 2.25rem; }
  .brand small { display: none; }
  .main-nav { gap: 10px; font-size: 0.78rem; }
  .result-topline h2 { font-size: 2.2rem; }
  .relation-poem { font-size: 0.9rem; }
  .trait-list div { grid-template-columns: 72px minmax(0, 1fr); }
}
