:root {
  color-scheme: light;
  --paper: #faf6ef;
  --card: #fffdf8;
  --ink: #30241e;
  --quiet: #6e5a4e;
  --rust: #974434;
  --rust-dark: #793024;
  --rust-light: #f5e4dc;
  --rule: #e8dcd0;
  --rose: #d8a193;
  --green: #476449;
  --green-light: #eaf0e4;
  --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
a { color: var(--rust-dark); text-underline-offset: .19em; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--rust); outline-offset: 4px;
}
h1:focus { outline: none; }
button:disabled { cursor: default; opacity: .48; }
button[hidden], [hidden] { display: none !important; }
figure, h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

.site-nav { border-bottom: 1px solid var(--rule); }
.nav-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; gap: 11px; align-items: center; border: 0; background: none; padding: 5px 0; font: 750 25px/1 var(--serif); letter-spacing: .04em; }
.brand-mark { position: relative; display: inline-block; width: 35px; height: 35px; flex: none; background: var(--rust); border-radius: 12px; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 10px; height: 9px; border: 1.5px solid #fff2e5; border-radius: 5px 5px 5px 1px; }
.brand-mark::before { left: 7px; top: 9px; }
.brand-mark::after { left: 16px; top: 15px; border-radius: 5px 5px 1px 5px; }
.nav-inner nav { display: flex; gap: 23px; align-items: center; }
.nav-link, .text-button { border: 0; background: none; padding: 7px 0; font-size: .88rem; color: var(--quiet); }
.nav-link:hover, .text-button:hover, .nav-demo { color: var(--rust-dark); }
.nav-demo span { margin-left: 3px; }

.hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(24px, 6vw, 84px); padding-top: clamp(39px, 5vw, 72px); padding-bottom: 63px; }
.hero-copy { padding-block: 12px 18px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 21px; color: var(--rust-dark); font-weight: 650; font-size: .82rem; letter-spacing: .13em; }
.eyebrow > span { width: 18px; height: 1px; background: currentColor; }
.hero h1 { font: 750 clamp(48px, 5.05vw, 76px)/1.2 var(--serif); letter-spacing: -.048em; }
.hero h1 em { color: var(--rust); font-style: normal; }
.hero-intro { margin-top: 24px; color: var(--quiet); font-size: clamp(.96rem, 1.25vw, 1.125rem); line-height: 1.8; }
.hero-actions { margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 10px 18px; border-radius: 12px; font-size: .95rem; font-weight: 680; text-decoration: none; border: 1px solid transparent; transition: background .18s, border-color .18s; }
.primary { background: var(--rust); color: #fff9ef; }
.primary:hover:not(:disabled) { background: var(--rust-dark); }
.quiet { background: var(--card); border-color: var(--rule); color: var(--quiet); }
.quiet:hover:not(:disabled) { border-color: var(--rose); color: var(--rust-dark); }
.hero-actions .button { min-height: 55px; padding-inline: 24px; gap: 34px; }
.hero-note { margin-top: 11px; color: var(--quiet); font-size: .78rem; }
.hero-note span { margin-inline: 4px; }
.hero-visual { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: .949; border-radius: 22px; background: #bd7964; box-shadow: 0 15px 35px #61341e17; }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 51%; }
.example-peek { position: absolute; inset: auto auto 20px 20px; min-width: 183px; text-align: left; border: 1px solid #f7e1d2; border-radius: 13px; padding: 12px 15px; background: #fffbf1f5; box-shadow: 0 5px 22px #361b1861; }
.example-peek:hover { background: #fffdfa; }
.example-peek:focus-visible { outline-color: white; }
.peek-label { display: flex; justify-content: space-between; gap: 12px; font-size: .72rem; color: var(--quiet); }
.topics { padding: 21px 0 31px; border-top: 1px solid var(--rule); }
.topics h2 { font: 700 22px/1.45 var(--serif); margin-bottom: 15px; }
.topics ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 0; margin: 0; list-style: none; }
.topics li { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--quiet); min-height: 44px; padding: 5px 9px; border: 1px solid var(--rule); background: #fffaf3; border-radius: 8px; }
.topics li::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--rust); border-radius: 50%; flex: none; }

.site-footer { border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 20px; padding: 17px 0 25px; font-size: .78rem; color: var(--quiet); }
.site-footer .text-button { font-size: inherit; }
dialog { padding: 24px; width: min(525px, calc(100% - 28px)); max-height: calc(100% - 30px); border: 1px solid var(--rule); border-radius: 17px; background: var(--card); color: var(--ink); box-shadow: 0 18px 80px #3b1c1655; }
dialog::backdrop { background: #30201b7c; }
dialog h2 { font: 720 22px/1.35 var(--serif); }
dialog p, dialog details { color: var(--quiet); font-size: .9rem; margin: 11px 0 0; }
dialog ul { margin: 9px 0 0; padding-inline-start: 22px; }
dialog li { margin-block: 4px; }
dialog summary { cursor: pointer; font-weight: 630; color: var(--rust-dark); }
.dialog-top, .dialog-actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.dialog-actions { justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.icon-button { background: none; border: 1px solid var(--rule); border-radius: 8px; width: 33px; height: 33px; font-size: 22px; line-height: 1; }

.flow { width: min(700px, 100%); margin: 44px auto 48px; }
.flow-head { margin-bottom: 16px; }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--quiet); font-size: .8rem; font-weight: 620; }
.flow-top strong { color: var(--rust-dark); }
.progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 9px; }
.progress > span { height: 5px; border-radius: 3px; background: #eddece; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--rust); border-radius: 3px; }
.panel { border: 1px solid var(--rule); border-radius: 19px; background: var(--card); padding: clamp(18px, 4vw, 34px); box-shadow: 0 5px 21px #6946260a; }
.panel h1, .result-header h1 { font: 730 clamp(24px, 3.6vw, 35px)/1.42 var(--serif); }
.panel h1 { margin-bottom: 9px; }
.panel .eyebrow { margin-bottom: 10px; }
.hint { color: var(--quiet); font-size: .88rem; }
.option { display: flex; align-items: flex-start; gap: 11px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; min-height: 47px; padding: 10px 11px; cursor: pointer; font-size: .92rem; }
.option:hover, .option:has(input:focus-visible) { border-color: var(--rose); }
.option:has(input:checked) { border-color: #b96d5d; background: #fbede6; color: var(--rust-dark); }
.option input { accent-color: var(--rust); margin: 4px 0 0; width: 17px; height: 17px; flex: none; }
.chip { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 50px; background: transparent; padding: 5px 11px; min-height: 34px; color: var(--quiet); font-size: .78rem; }
.chip[aria-pressed="true"], .chip:hover, .chip:has(input:checked) { border-color: #b96d5d; background: var(--rust-light); color: var(--rust-dark); }
.chip input { accent-color: var(--rust); margin: 0 5px 0 0; }
.flow-actions { display: flex; align-items: center; justify-content: space-between; gap: 11px; margin-top: 13px; }
.handoff { text-align: center; padding-block: 36px; }
.handoff .brand-mark { margin-bottom: 15px; }
.handoff .button { margin-top: 20px; }
.handoff .hint { margin: 0 auto; max-width: 390px; }

.result { width: min(893px, 100%); margin: 42px auto 47px; }
.result-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 17px; }
.result-header .eyebrow { margin-bottom: 6px; }
.result-header .hint { margin-top: 4px; }
.result-overview { border-radius: 19px; padding: clamp(18px, 4vw, 31px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; color: #fff8ed; background: #533029; }
.result-overview h2 { font: 720 clamp(24px, 4vw, 32px)/1.35 var(--serif); }
.result-overview .score { font: 770 clamp(49px, 8vw, 77px)/1.1 var(--serif); color: #ffd3a9; white-space: nowrap; }
.result-overview .score span { font-size: .51em; padding-left: 2px; }
.result-overview p { font-size: .89rem; margin-top: 4px; color: #f9e1d2; }
.result-overview > span:last-child:not(.score) { border: 1px solid #a77565; border-radius: 100px; padding: 5px 10px; font-size: .78rem; }
.result-section { margin-top: 24px; }
.result-section h2 { font: 720 22px/1.35 var(--serif); margin-bottom: 9px; }
.dimension-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dimension { border: 1px solid var(--rule); background: var(--card); border-radius: 10px; padding: 9px 11px; }
.dimension h3 { font-size: .88rem; }
.dimension p { font-size: .77rem; color: var(--quiet); }
.dim-track { margin: 7px 0 3px; background: var(--rule); height: 4px; border-radius: 4px; overflow: hidden; }
.dim-track i { display: block; height: 100%; background: #b86c5c; }
.result-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.result-list li { border-radius: 11px; background: var(--card); border: 1px solid var(--rule); padding: 10px 13px; }
.result-list h3 { font-size: .91rem; margin-bottom: 2px; }
.result-list p { font-size: .86rem; color: var(--quiet); line-height: 1.6; }
.result-list.alerts li { background: #faece4; border-color: #ebc7ba; }
.result-list.alerts h3 { color: var(--rust-dark); }
.answer-details { margin-top: 17px; font-size: .9rem; }
.answer-details summary { cursor: pointer; color: var(--rust-dark); font-weight: 650; margin-bottom: 8px; }
.answer-details ul { padding: 0 0 0 1.3em; margin: 0; }
.answer-details li { padding: 3px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 46px); }
  .hero { gap: 28px; padding-block: 46px; }
  .hero h1 { font-size: clamp(40px, 5.75vw, 53px); }
  .wide-only { display: none; }
  .topics ul { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  html { scrollbar-gutter: auto; }
  .wrap { width: calc(100% - 32px); }
  .nav-inner { min-height: 58px; }
  .nav-inner nav { gap: 12px; }
  .brand { font-size: 21px; gap: 7px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark::before { left: 6px; top: 8px; }
  .brand-mark::after { left: 15px; top: 14px; }
  .nav-link { font-size: .77rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 0 30px; }
  .hero-copy { padding: 0; }
  .eyebrow { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(39px, 10.3vw, 57px); line-height: 1.15; }
  .hero-intro { margin-top: 11px; font-size: .92rem; line-height: 1.65; }
  .hero-actions { margin-top: 15px; }
  .hero-actions .button { min-height: 48px; }
  .hero-note { margin-top: 7px; }
  .hero-visual { aspect-ratio: 1.51; border-radius: 15px; }
  .hero-visual img { object-position: 50% 55%; }
  .example-peek { left: 10px; bottom: 10px; min-width: 147px; padding: 8px 10px; }
  .topics { padding: 15px 0 21px; }
  .topics h2 { margin-bottom: 8px; font-size: 19px; }
  .topics li { font-size: .73rem; gap: 5px; padding-inline: 6px; }
  .flow, .result { margin-block: 25px 33px; }
  .result-columns, .dimension-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 435px) {
  .result-columns { grid-template-columns: 1fr; gap: 0; }
  .dialog-actions .button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

#share-card .option { margin-top: 12px; }

.hero-actions .quiet { margin-left: 7px; gap: 0; }
.profile-peek { min-width: 222px; }
.profile-peek strong { display: block; font: 720 20px/1.45 var(--serif); color: var(--rust); margin: 2px 0 4px; }
.profile-flow { width: min(790px, 100%); }
.profile-flow .progress { grid-template-columns: repeat(4, 1fr); }
.profile-flow .flow-top { gap: 14px; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 19px; margin-top: 20px; }
.profile-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-field .control-label, .profile-field legend { color: var(--ink); font-size: .90rem; font-weight: 660; }
.profile-field select, .profile-field input[type="text"] {
  width: 100%; min-height: 45px; padding: 9px 10px; border: 1px solid var(--rule); border-radius: 9px;
  background: var(--card); color: var(--ink); font: inherit; font-size: .91rem;
}
.profile-field select.is-blank { color: var(--quiet); }
.profile-field .field-note { color: var(--quiet); font-size: .77rem; line-height: 1.5; }
.profile-field-wide { grid-column: 1 / -1; }
.profile-chips { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 6px; }
.profile-chips .chip { cursor: pointer; }
.section-step { color: var(--quiet); }
.profile-report .result-header { align-items: center; }
.report-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 10px 0 15px; }
.report-identity .chip { background: #fffaf4; min-height: 29px; }
.profile-overview { align-items: center; background: #533029; }
.profile-overview .overline { color: #ffd7b7; font-size: .76rem; font-weight: 680; letter-spacing: .12em; margin-bottom: 6px; }
.profile-overview p { max-width: 625px; }
.profile-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.profile-summary .result-list h3 { color: var(--rust-dark); }
.stretch-panel { background: #fbede5; border-color: #ead0c2; }
.stretch-panel h3 { font: 730 21px/1.45 var(--serif); margin: 12px 0 4px; }
.stretch-panel .quote { border-left: 3px solid #bf8374; margin-top: 12px; padding-left: 10px; color: #633e34; font-size: .89rem; }
.stretch-panel .chip { background: #fff9f3; }
.stretch-panel .chip[aria-pressed="true"] { background: var(--rust-light); }
.profile-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 18px; }
.pair-checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.pair-check { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pair-check .assessment { margin-left: 6px; white-space: nowrap; color: var(--quiet); padding: 3px 7px; border-radius: 8px; background: #f3ebe2; font-size: .74rem; }
.pair-check .assessment.yes { color: var(--green); background: var(--green-light); }
.pair-check .assessment.no { color: var(--rust-dark); background: var(--rust-light); }
@media (max-width: 620px) {
  .hero-actions .quiet { margin-left: 4px; padding-inline: 8px; min-height: 46px; font-size: .76rem; }
  .hero-actions .primary { padding-inline: 10px; gap: 7px; }
  .profile-peek { min-width: 174px; }
  .profile-peek strong { font-size: 16px; }
  .profile-fields, .profile-summary { grid-template-columns: 1fr; }
  .profile-fields { gap: 14px; }
}

.report-navigation { display: flex; flex-wrap: wrap; gap: 5px 18px; padding: 0 0 13px; }
.report-navigation .text-button { padding: 2px 0; font-size: .84rem; }
.report-navigation .text-button:last-child { color: var(--rust-dark); font-weight: 700; }
#fit, #stretch, #improve { scroll-margin-top: 18px; }
.advice-section { padding-top: 18px; border-top: 1px solid var(--rule); }
.advice-head { margin-bottom: 13px; }
.advice-head h2 { margin-bottom: 4px; }
.action-grid { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.action-card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 13px 15px 16px; }
.action-card h3 { font: 700 17px/1.48 var(--serif); margin: 5px 0 6px; }
.action-when { width: fit-content; background: var(--rust-light); color: var(--rust-dark); border-radius: 20px; padding: 2px 8px; font-size: .73rem; font-weight: 660; }
.action-reason { color: var(--quiet); font-size: .79rem; line-height: 1.55; }
.action-step { border-top: 1px solid var(--rule); margin-top: 9px; padding-top: 8px; font-size: .87rem; line-height: 1.65; }
@media (min-width: 621px) {
  .action-grid { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
}
@media (max-width: 620px) {
  .action-grid { grid-template-columns: 1fr; }
  .action-card { padding: 11px 13px 13px; }
}

/* Personality story and report */
:root {
  --paper: #fcf8f2;
  --card: #fffdf9;
  --ink: #271d39;
  --quiet: #63566e;
  --rust: #5d33a7;
  --rust-dark: #422180;
  --rust-light: #eee3fd;
  --rule: #e7dded;
  --rose: #aa88d2;
}
.brand-mark { background: #693ab8; }
.hero { grid-template-columns: 1.04fr 1fr; gap: clamp(30px, 5vw, 72px); padding-block: clamp(34px, 4.6vw, 65px); }
.hero h1 { font-size: clamp(46px,5.05vw,75px); letter-spacing: -.05em; }
.hero h1 em { color: #6137af; }
.hero-visual { aspect-ratio: 1.035; border-radius: 22px; background: #d6b7f4; box-shadow: 0 12px 30px #51317e19; }
.hero-visual img { object-position: 50% 43%; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.hero-actions .quiet { margin-left: 0; padding-inline: 15px; white-space: nowrap; }
.hero-note { width: 100%; margin-top: 0; }
.hero-note span { color: var(--rust); }
.example-peek { background: #fffcf5; border-color: #f4e7ff; box-shadow: 0 4px 14px #40226c45; padding: 12px 15px; max-width: calc(100% - 22px); }
.profile-peek strong { letter-spacing: -.015em; }
.profile-peek strong span { font: 750 .64em/1 var(--sans); margin-left: 3px; letter-spacing: .12em; color: #704ab1; }
.story-topics ul { grid-template-columns: repeat(6, minmax(0,1fr)); }
.story-topics li { border-radius: 10px; background: #f1e8ff; border-color: transparent; color: #472576; font-weight: 600; }
.story-topics li:nth-child(2) { background: #fae4d3; color: #78442e; }
.story-topics li:nth-child(3) { background: #f6dfeb; color: #713450; }
.story-topics li:nth-child(4) { background: #e0f2e7; color: #365744; }
.story-topics li:nth-child(5) { background: #fff1c7; color: #6d4a2a; }
.story-topics li:nth-child(6) { background: #deebff; color: #36547c; }
.story-topics li::before { border-color: currentColor; }
.profile-flow .progress { grid-template-columns: repeat(4, 1fr); }
.profile-flow .progress > span, .scene-flow .progress > span { background: #eae0f4; }
.optional-fields { margin-top: 17px; border-top: 1px solid var(--rule); padding-top: 12px; }
.optional-fields summary { font-size: .89rem; color: var(--rust-dark); cursor: pointer; font-weight: 680; }
.optional-fields .profile-fields { margin-top: 11px; }
.profile-field select, .profile-field input[type="text"] { color: var(--ink); }
.chip[aria-pressed="true"], .chip:has(input:checked) { border-color: #a485c7; background: var(--rust-light); color: var(--rust-dark); }
.scene-flow { width: min(770px, 100%); margin-block: 42px 48px; }
.scene-flow .progress { grid-template-columns: repeat(var(--chapter-count, 6),minmax(0,1fr)); gap: 5px; }
.scene-stage { padding: clamp(18px, 4vw, 34px); border-radius: 22px; background: var(--scene); color: var(--scene-ink); }
.scene-stage .scene-cue { font-size: .82rem; color: var(--scene-accent); font-weight: 720; margin-bottom: 9px; }
.scene-stage h1 { font: 760 clamp(26px, 4vw, 40px)/1.42 var(--serif); }
.scene-stage .scene-caption { font-size: .94rem; margin-top: 8px; color: var(--scene-ink); }
.scene-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-block: 11px; }
.scene-choice { display: flex; align-items: flex-start; gap: 9px; text-align: left; border: 1px solid var(--rule); background: var(--card); border-radius: 13px; padding: 13px; min-height: 92px; font-size: .95rem; transition: transform .15s, border-color .15s, background .15s; }
.scene-choice:hover { border-color: var(--scene-accent); transform: translateY(-2px); }
.scene-choice[aria-pressed="true"] { border-color: var(--scene-accent); background: var(--scene); }
.choice-letter { flex: none; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--scene-accent); background: var(--scene); font-weight: 780; font-size: .84rem; }
.scene-choice[aria-pressed="true"] .choice-letter { background: var(--card); }
.scene-choice span:last-child { padding-top: 1px; line-height: 1.55; }
.scene-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.scene-footer p { color: var(--quiet); font-size: .8rem; }
.scene-stage { animation: view-in .22s ease-out both; }
@keyframes view-in { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.persona-card { position: relative; overflow: hidden; padding: clamp(18px, 4vw, 34px); border-radius: 20px; background: var(--scene); color: var(--scene-ink); }
.persona-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.persona-kicker { font-size: .78rem; color: var(--scene-ink); font-weight: 650; margin-bottom: 4px; }
.persona-card h2 { font: 780 clamp(36px, 6.1vw, 62px)/1.25 var(--serif); letter-spacing: -.035em; }
.persona-code { color: var(--scene-accent); border: 1px solid currentColor; border-radius: 10px; padding: 6px 8px 4px 11px; letter-spacing: .16em; font: 760 clamp(16px,2.7vw,21px)/1.25 var(--sans); letter-spacing: .16em; }
.persona-quote { margin-top: 10px; max-width: 650px; font: 680 clamp(16px,2.55vw,22px)/1.5 var(--serif); }
.persona-description { margin-top: 9px; max-width: 625px; font-size: .94rem; line-height: 1.7; }
.persona-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.persona-tags .chip { color: var(--scene-ink); border-color: transparent; background: #fffaf6bf; min-height: 29px; }
.persona-tags .chip:hover { background: #fffaf6bf; }
.persona-actions { margin-top: 14px; }
.persona-actions .button { color: var(--scene-ink); border-color: #ffffff; background: #fffdf8; }
.axis-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.axis { min-width: 0; padding: 10px 11px; border: 1px solid var(--rule); background: var(--card); border-radius: 11px; }
.axis .axis-title { color: var(--quiet); font-size: .78rem; }
.axis h3 { font-size: .92rem; margin: 1px 0 4px; }
.axis .dots { display: flex; gap: 4px; margin: 6px 0 5px; }
.axis .dots span { height: 4px; background: var(--rule); border-radius: 3px; flex: 1; }
.axis .dots span.fill { background: var(--rust); }
.axis p:last-child { color: var(--quiet); font-size: .74rem; }
.relationship-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.relationship-axis { background: #fffbeb; padding: 11px 12px; }
.relationship-axis:nth-child(2) { background: #f2f6ff; }
.relationship-axis p:last-child { font-size: .83rem; line-height: 1.55; }
.partner-inset { margin-top: 9px; padding: 12px 15px; border: 1px solid var(--rule); border-radius: 11px; background: #f3edf9; color: #432963; }
.partner-inset h3 { font-size: .90rem; margin-bottom: 4px; }
.partner-inset ul { display: grid; gap: 3px; padding-inline-start: 1.2em; margin: 0; font-size: .86rem; line-height: 1.65; }
.type-pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 9px; }
.pair-persona { background: var(--scene); color: var(--scene-ink); border-radius: 11px; padding: 11px 12px; }
.pair-persona p { font-size: .78rem; }
.pair-persona h3 { font: 730 21px/1.48 var(--serif); }
.type-mix-tips { gap: 4px; margin-top: 9px; }
.result-overview, .profile-overview { background: #38235c; color: #fff8ff; }
.result-overview p { color: #eee1fa; }
.result-overview .score, .profile-overview .overline { color: #ffdcb8; }
.stretch-panel { background: #f2e8fa; border-color: #ead9ef; }
.stretch-panel .quote { border-color: #ab88cd; color: #533275; }
.action-when { background: var(--rust-light); }
@media (max-width: 850px) {
  .hero { gap: 26px; }
  .hero h1 { font-size: clamp(40px,6.0vw,54px); }
}
@media (max-width: 620px) {
  .hero { gap: 20px; padding-block: 24px 28px; }
  .hero h1 { font-size: clamp(36px,9.8vw,53px); }
  .hero-visual { aspect-ratio: 1.24; border-radius: 16px; }
  .hero-visual img { object-position: 50% 43%; }
  .hero-actions .button { min-height: 45px; }
  .hero-actions .primary { padding-inline: 11px; }
  .hero-actions .quiet { font-size: .85rem; padding-inline: 10px; }
  .scene-flow { margin-block: 21px 30px; }
  .scene-choices { grid-template-columns: 1fr; gap: 7px; }
  .scene-choice { min-height: 67px; padding: 10px; }
  .scene-choice:hover { transform: none; }
  .axis-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story-topics ul { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .relationship-grid { grid-template-columns: 1fr; }
}
@media (max-width: 365px) {
  .story-topics ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { .scene-stage { animation: none; } }

#persona { scroll-margin-top: 18px; }
.fit-details { margin: 12px 0; }
.fit-details summary { cursor: pointer; font-weight: 690; font-size: .9rem; color: var(--rust-dark); margin-bottom: 8px; }

#self { scroll-margin-top: 18px; }
.profile-field input[type="number"] { width: 100%; min-height: 45px; padding: 9px 10px; border: 1px solid var(--rule); border-radius: 9px; background: var(--card); color: var(--ink); font: inherit; font-size: .91rem; }
.match-overview h2 { font: 760 clamp(27px, 4vw, 43px)/1.38 var(--serif); }
.match-criteria, .match-types { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 9px; }
.match-item, .type-fit { padding: 13px 15px; border: 1px solid var(--rule); background: var(--card); border-radius: 12px; }
.match-item h3, .type-fit h3 { font-size: 1rem; margin: 1px 0 4px; overflow-wrap: anywhere; }
.match-item p, .type-fit p { color: var(--quiet); line-height: 1.65; font-size: .86rem; }
.match-item .match-label, .type-fit .match-label { color: var(--rust-dark); font-weight: 690; font-size: .76rem; }
.type-fit { background: #f2e9fc; }
.type-fit:nth-child(2) { background: #faf0e2; }
.type-fit h3 { font: 740 22px/1.42 var(--serif); }
.match-qualities { display: grid; gap: 7px; margin: 10px 0 0; }
.match-qualities > div { display: grid; grid-template-columns: minmax(96px, 1fr) minmax(0, 5fr); gap: 6px 11px; align-items: baseline; padding: 8px 11px; border: 1px solid var(--rule); border-radius: 9px; background: var(--card); }
.match-qualities dt { font-size: .84rem; font-weight: 710; color: var(--rust-dark); }
.match-qualities dd { margin: 0; font-size: .84rem; color: var(--quiet); }
.question-guide { padding-inline-start: 1.2em; margin: 0 0 0 4px; }
.question-guide li { font-size: .85rem; margin-block: 6px; color: var(--quiet); }
.question-guide strong { color: var(--ink); }
.match-copy textarea { display: block; width: 100%; margin-top: 8px; padding: 9px 11px; min-height: 165px; border: 1px solid var(--rule); border-radius: 9px; background: var(--card); color: var(--ink); font: inherit; font-size: .86rem; resize: vertical; }
.self-section { padding-block: 17px; border-top: 1px solid var(--rule); }
.reflection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.practice-title { margin-block: 13px 7px; font: 720 19px/1.4 var(--serif); }
@media (max-width: 620px) {
  .match-criteria, .match-types, .reflection-grid { grid-template-columns: 1fr; }
  .match-item, .type-fit { padding: 11px 12px; }
  .match-qualities > div { grid-template-columns: 1fr; }
}

/* An evidence-led letter, followed by real-life choices. */
.match-letter { background: #38235c; color: #fff9f2; border-radius: 20px; padding: clamp(23px, 4vw, 38px); }
.match-letter .overline { color: #f3d1b5; font-size: .78rem; font-weight: 650; letter-spacing: .08em; }
.match-letter h2 { max-width: 820px; margin: 12px 0; font: 740 clamp(27px, 4vw, 42px)/1.45 var(--serif); text-wrap: pretty; }
.match-letter .letter-body { max-width: 760px; color: #f0e5fb; font-size: .98rem; line-height: 1.9; }
.reason-details { border-top: 1px solid var(--rule); margin-top: 13px; padding-top: 10px; }
.reason-details summary { cursor: pointer; color: var(--rust-dark); font-size: .8rem; font-weight: 650; }
.reason-details ul { padding: 0; list-style: none; margin: 10px 0 0; display: grid; gap: 12px; }
.reason-details li, .reason-details p, .reason-details blockquote { font-size: .8rem; line-height: 1.65; }
.reason-details strong { font-size: .79rem; color: var(--ink); }
.reason-details blockquote { margin: 4px 0 0; border-left: 2px solid #b69aca; padding-left: 9px; color: var(--quiet); }
.match-letter .reason-details { border-color: #6a4f8a; }
.match-letter .reason-details summary, .match-letter .reason-details strong { color: #ffdebb; }
.match-letter .reason-details p, .match-letter .reason-details blockquote { color: #f0e5fb; }
.evidence-empty { font-size: .77rem !important; margin-top: 10px; }
.match-brief { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 9px 0; }
.match-brief article { border: 1px solid #ddcee9; border-radius: 13px; padding: 15px; background: #f1e8fc; }
.match-brief article:nth-child(2) { background: #f7edde; border-color: #eadcc8; }
.match-brief article:nth-child(3) { background: #eaf2e9; border-color: #d7e4d3; }
.match-brief p { font-size: .75rem; color: var(--quiet); margin-bottom: 5px; }
.match-brief h3 { font: 700 18px/1.6 var(--serif); }
.result-kicker { font-size: .8rem; color: var(--rust-dark); font-weight: 700; margin-bottom: 5px; }
.report-note, .information-gap { color: var(--quiet); font-size: .79rem; line-height: 1.7; margin-top: 10px; }
.information-gap { background: #f4ede6; border-radius: 9px; padding: 9px 12px; }
.information-gap .text-button { padding: 3px 5px; font-size: inherit; }
.ordinary-day { background: #f4ebfa; border-left: 3px solid #a582c5; border-radius: 0 12px 12px 0; padding: 17px 21px; margin: 12px 0; }
.ordinary-day .match-label { color: var(--rust-dark); font-size: .74rem; margin-bottom: 7px; }
.ordinary-day > p:last-child { font: 650 clamp(17px, 2vw, 20px)/1.9 var(--serif); }
.behavior-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fit-caution { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--rule); }
.reality-section { padding-top: 18px; border-top: 1px solid var(--rule); }
.reality-section > .hint { margin-bottom: 13px; }
.reality-list { display: grid; gap: 11px; }
.reality-card { display: grid; grid-template-columns: 35px 1fr; gap: 13px; background: #fff8ee; border: 1px solid #ecddc7; border-radius: 14px; padding: 20px; }
.reality-number { font: 600 24px/1.4 Georgia, serif; color: #9b6446; }
.reality-card h3 { font-size: 1.04rem; margin-bottom: 7px; }
.reality-card p { font-size: .88rem; color: #68544c; line-height: 1.8; }
.reality-action { margin-top: 10px; }
.reality-action strong { display: block; color: #7b493a; font-size: .76rem; margin-bottom: 3px; }
.wish-section { background: #f3eee9; border: 1px solid #e6deda; border-radius: 12px; padding: 15px; }
.wish-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; margin: 12px 0; }
.wish-list > div { display: grid; grid-template-columns: 95px 1fr; border-top: 1px solid #e1d6d0; padding: 9px 0; gap: 10px; font-size: .82rem; }
.wish-list dt { color: var(--quiet); }
.wish-list dd { margin: 0; }
#reality { scroll-margin-top: 18px; }
@media (max-width: 740px) {
  .behavior-grid { grid-template-columns: 1fr; }
  .match-brief { grid-template-columns: 1fr; gap: 7px; }
  .match-brief article { display: grid; grid-template-columns: 40px 1fr; gap: 6px; align-items: baseline; padding: 12px 14px; }
  .match-brief p { margin: 0; }
  .match-brief h3 { font-size: 16px; }
  .wish-list { grid-template-columns: 1fr; }
  .reality-card { padding: 15px 13px; grid-template-columns: 27px 1fr; gap: 8px; }
  .reality-number { font-size: 20px; }
  .match-letter { padding: 23px 20px; }
}

/* Compact result: conditions first, then two short personality profiles. */
.compact-report { width: min(980px, 100%); }
.compact-report .result-header { margin-bottom: 23px; }
.compact-report .result-header h1 { font-size: clamp(26px, 4vw, 38px); }
.comparison-section h2 { font: 700 18px/1.5 var(--serif); margin-bottom: 12px; }
.comparison-wrap { border: 1px solid #e1d5e8; border-radius: 16px; overflow: hidden; background: #fffdfa; }
.comparison-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.comparison-table .condition-col { width: 15%; }
.comparison-table .mine-col { width: 34%; }
.comparison-table .target-col { width: 51%; }
.comparison-table th, .comparison-table td { padding: 12px 18px; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.comparison-table thead { background: #39245d; color: #fff9ef; }
.comparison-table thead th { font-weight: 650; font-size: .83rem; }
.comparison-table tbody tr + tr { border-top: 1px solid #e9dfec; }
.comparison-table tbody th { color: #706079; font-size: .83rem; font-weight: 550; }
.comparison-table td:nth-child(2) { color: #665871; }
.comparison-table td:last-child { background: #f5effb; }
.comparison-table td strong { font-weight: 680; color: #392456; }
.cell-note { display: block; color: #75647c; font-size: .76rem; margin-top: 3px; }
.basis-tag { display: inline-block; color: #796386; font-size: .68rem; background: #eae0f2; padding: 1px 5px; border-radius: 4px; margin: 3px 0 0 7px; white-space: nowrap; vertical-align: middle; }
.table-footnote { color: var(--quiet); font-size: .76rem; line-height: 1.7; margin-top: 10px; }
.comparison-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 5px; }
.comparison-actions .text-button { padding: 4px 0; font-size: .8rem; }
.concise-personalities { margin-top: 27px; }
.concise-personalities > h2 { font: 720 21px/1.5 var(--serif); margin-bottom: 13px; }
.persona-duo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.concise-persona { padding: 23px; border: 1px solid #e3d4ee; border-radius: 16px; background: #f2e9fc; }
.partner-persona { background: #edf2e9; border-color: #d9e2d0; }
.card-kicker { font-size: .74rem; letter-spacing: .04em; color: #795990; font-weight: 650; }
.card-kicker span { float: right; letter-spacing: .09em; }
.partner-persona .card-kicker { color: #596d4e; }
.concise-persona h3 { font: 740 29px/1.4 var(--serif); margin: 7px 0 10px; }
.mini-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mini-tags span { padding: 2px 8px; background: #ffffff99; border-radius: 15px; font-size: .72rem; color: #65516f; }
.concise-persona dl { display: grid; gap: 14px; margin: 17px 0 0; }
.concise-persona dt { font-size: .73rem; font-weight: 700; color: #7a5b8d; margin-bottom: 4px; }
.partner-persona dt { color: #597149; }
.concise-persona dd { margin: 0; font-size: .87rem; line-height: 1.75; }
.one-takeaway { background: #fff6e8; border: 1px solid #ebdbc3; border-radius: 15px; padding: 22px 25px; margin-top: 18px; }
.one-takeaway .card-kicker { color: #9d704a; }
.one-takeaway h2 { font: 740 23px/1.55 var(--serif); margin: 8px 0; }
.one-takeaway > p:not(.card-kicker) { font-size: .9rem; line-height: 1.8; color: #674d3d; }
.one-takeaway .one-action { margin-top: 8px; color: #704822; font-weight: 650; }
.keep-and-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 15px 0 23px; }
.keep-and-flex p { font-size: .8rem; line-height: 1.7; color: var(--quiet); }
.keep-and-flex strong { display: block; color: var(--ink); font-size: .76rem; margin-bottom: 4px; }
.report-extras { border-top: 1px solid var(--rule); }
.report-fold { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.report-fold > summary { cursor: pointer; font-size: .84rem; color: var(--rust-dark); font-weight: 650; }
.report-fold[open] > summary { margin-bottom: 13px; }
.basis-list { display: grid; gap: 10px; margin: 14px 0; }
.basis-list > div { display: grid; grid-template-columns: 145px 1fr; gap: 10px; font-size: .83rem; }
.basis-list dt { color: var(--rust-dark); }
.basis-list dt span { display: block; font-size: .7rem; color: var(--quiet); }
.basis-list dd { margin: 0; color: var(--quiet); }
.compact-prompts { padding-left: 1.2em; }
.compact-prompts li { margin-bottom: 16px; font-size: .85rem; }
.small-reality { margin-top: 15px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.small-reality h3, .fold-title { font-size: .95rem; margin-block: 8px 4px; }
.small-reality p, .fold-quote { font-size: .83rem; color: var(--quiet); line-height: 1.75; }
.report-fold #persona { margin-top: 18px; }
@media (max-width: 620px) {
  .comparison-table { font-size: .79rem; line-height: 1.55; }
  .comparison-table .condition-col { width: 17%; }
  .comparison-table .mine-col { width: 30%; }
  .comparison-table .target-col { width: 53%; }
  .comparison-table th, .comparison-table td { padding: 10px 8px; }
  .comparison-table tbody th, .comparison-table thead th { font-size: .74rem; }
  .cell-note { font-size: .69rem; }
  .basis-tag { font-size: .62rem; margin-left: 0; display: table; }
  .comparison-section h2 { font-size: 16px; }
  .persona-duo, .keep-and-flex { grid-template-columns: 1fr; }
  .concise-persona { padding: 19px; }
  .one-takeaway { padding: 19px; }
  .one-takeaway h2 { font-size: 20px; }
  .basis-list > div { grid-template-columns: 90px 1fr; }
  .compact-report .result-header { margin-bottom: 17px; }
}
