:root {
  --paper: #f1ede5;
  --paper-deep: #e6e0d5;
  --ink: #29262d;
  --muted: #77716f;
  --line: rgba(41, 38, 45, 0.16);
  --accent: #c9523f;
  --accent-soft: #e7b5a8;
  --blue: #375e73;
  --blue-soft: #a9c2cc;
  --olive: #697057;
  --white: #fffdf8;
  --shadow: 0 30px 80px rgba(41, 38, 45, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(55, 94, 115, 0.25);
  outline-offset: 3px;
}
.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;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site-header {
  height: 74px;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(241, 237, 229, 0.88);
  backdrop-filter: blur(18px);
}
.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ink);
  letter-spacing: -0.08em;
  font-family: var(--serif);
  font-size: 13px;
}
.header-progress { display: flex; align-items: center; gap: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.header-progress-track { width: 110px; height: 3px; background: var(--line); overflow: hidden; }
.header-progress-track span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .5s ease; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.header-author { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.25; text-align: right; text-decoration: none; }
.header-author span { color: var(--accent); font-size: 16px; line-height: 1; }
.header-author:hover { color: var(--accent); }
.text-button { border: 0; padding: 10px 0; background: transparent; border-bottom: 1px solid var(--ink); font-size: 13px; }
.text-button.danger { color: #983d31; border-color: currentColor; }

main { padding-top: 74px; }
.screen { display: none; min-height: calc(100vh - 74px); padding: clamp(44px, 7vw, 110px) 5vw; animation: reveal .55s ease both; }
.screen.is-active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; }
h1, h2 { font-size: clamp(46px, 7vw, 106px); line-height: .96; letter-spacing: -.055em; }
h1 em, h2 em, h3 em { font-family: var(--serif); font-weight: 400; }

.hero-screen {
  min-height: calc(100vh - 74px);
  display: none;
  grid-template-columns: minmax(260px, .7fr) minmax(420px, 1.35fr) minmax(250px, .65fr);
  align-items: center;
  gap: 5vw;
  position: relative;
  overflow: hidden;
}
.hero-screen.is-active { display: grid; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin-bottom: 30px; }
.hero-lead { max-width: 620px; color: #555052; font-size: clamp(18px, 2vw, 25px); line-height: 1.35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 24px; }
.primary-button, .secondary-button, .ghost-button, .danger-button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 0;
  border: 1px solid var(--ink);
  font-weight: 650;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.primary-button { color: var(--paper); background: var(--ink); }
.primary-button:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.secondary-button { background: transparent; }
.secondary-button:hover { background: var(--white); transform: translateY(-2px); }
.ghost-button { border-color: transparent; background: transparent; color: var(--muted); padding-inline: 10px; }
.ghost-button:hover { color: var(--ink); }
.danger-button { color: #923b30; border-color: #923b30; background: transparent; }
.privacy-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.privacy-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--olive); }

.hero-orbit { aspect-ratio: 1; width: min(28vw, 380px); position: relative; display: grid; place-items: center; }
.hero-orbit strong { font: 400 clamp(80px, 11vw, 170px)/1 var(--serif); letter-spacing: -.08em; }
.orbit { position: absolute; inset: 4%; border: 1px solid rgba(41, 38, 45, .32); border-radius: 50%; }
.orbit-two { inset: 22%; border-color: var(--accent); transform: translate(17%, -10%); }
.orbit-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); }
.dot-one { top: 9%; left: 29%; }
.dot-two { bottom: 11%; right: 22%; width: 9px; height: 9px; background: var(--accent); }
.hero-manifesto { align-self: end; padding: 28px 0 2vh; border-top: 1px solid var(--ink); font-family: var(--serif); font-size: 17px; }
.hero-manifesto .signature { margin: 24px 0 0; font-family: var(--sans); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.section-heading { max-width: 1050px; }
.section-heading h2 { margin-bottom: 30px; }
.section-heading > p:last-child { max-width: 690px; color: var(--muted); font-size: 18px; }
.section-heading.compact h2 { font-size: clamp(42px, 6vw, 82px); }
.setup-screen { padding-inline: 8vw; }
.chapter-preview { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); margin: 56px 0 44px; }
.chapter-preview article { min-height: 210px; padding: 24px; border-right: 1px solid var(--line); position: relative; }
.chapter-preview article:last-child { border-right: 0; }
.chapter-preview span { color: var(--accent); font: 500 12px/1 var(--sans); }
.chapter-preview h3 { margin: 50px 0 12px; font: 400 23px/1.1 var(--serif); }
.chapter-preview p { color: var(--muted); font-size: 13px; }
.setup-bottom { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.name-field { flex: 1; max-width: 520px; display: grid; gap: 9px; color: var(--muted); font-size: 12px; }
.name-field input { width: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: 18px; outline: 0; }

.achievements-screen { padding: 32px 5vw 60px; }
.achievement-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 34px; }
.achievement-topbar .round-button:last-child { justify-self: end; }
.round-button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 20px; }
.round-button:hover { background: var(--white); }
.achievement-position { text-align: center; }
.achievement-position span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.achievement-position strong { font-size: 14px; font-weight: 600; }
.achievement-layout { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(500px, 1.45fr); gap: 6vw; align-items: start; max-width: 1280px; margin: auto; }
.chapter-rail { min-height: 530px; padding: 28px 24px 24px 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.chapter-number { color: var(--accent); font: 400 clamp(72px, 8vw, 122px)/.8 var(--serif); letter-spacing: -.08em; }
.chapter-rail h3 { margin: auto 0 18px; font: 400 33px/1.05 var(--serif); }
.chapter-rail p { color: var(--muted); font-size: 14px; }
.chapter-mini-progress { height: 4px; background: var(--line); margin-top: 24px; }
.chapter-mini-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }
.prompt-card { padding: clamp(24px, 4vw, 54px); background: var(--white); box-shadow: var(--shadow); }
.prompt-kicker { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.prompt-card h2 { min-height: 130px; margin: 18px 0 34px; font: 400 clamp(30px, 4vw, 54px)/1.08 var(--serif); letter-spacing: -.025em; }
.achievement-input-wrap { display: block; position: relative; }
.achievement-input-wrap textarea { width: 100%; min-height: 150px; resize: vertical; padding: 18px 18px 38px; border: 1px solid var(--line); background: #f9f6ef; font-size: 18px; line-height: 1.55; }
.character-counter { position: absolute; right: 13px; bottom: 11px; color: var(--muted); font-size: 11px; }
.domain-picker { margin: 28px 0; padding: 0; border: 0; }
.domain-picker legend { margin-bottom: 13px; color: var(--muted); font-size: 12px; }
.domain-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.domain-chip { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); background: transparent; font-size: 12px; }
.domain-chip:hover { border-color: var(--ink); }
.domain-chip.is-selected { color: var(--white); background: var(--blue); border-color: var(--blue); }
.prompt-actions { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 20px; }
.inline-message { min-height: 20px; margin: 12px 0 0; color: var(--accent); font-size: 12px; }

.review-screen { padding-inline: 6vw; }
.review-toolbar { display: flex; align-items: center; gap: 12px; margin: 44px 0 30px; }
.review-count { margin-right: auto; display: flex; align-items: baseline; gap: 10px; }
.review-count strong { font: 400 52px/1 var(--serif); }
.review-count span { color: var(--muted); font-size: 13px; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.review-item { min-height: 150px; padding: 24px 22px; display: grid; grid-template-columns: 42px 1fr auto; gap: 16px; border-bottom: 1px solid var(--line); }
.review-item:nth-child(odd) { border-right: 1px solid var(--line); }
.review-item-number { color: var(--muted); font: 400 14px/1 var(--serif); }
.review-item h3 { margin: 0 0 7px; font: 400 19px/1.25 var(--serif); }
.review-item p { margin: 0; color: var(--muted); font-size: 13px; }
.review-item.empty h3 { color: #aaa39e; }
.review-domain { align-self: start; padding: 5px 8px; color: var(--blue); background: rgba(55, 94, 115, .08); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.review-edit { grid-column: 2; justify-self: start; padding: 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: 11px; }

.balance-screen { padding-inline: 6vw; }
.balance-intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.scale-caption { min-width: 240px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.balance-layout { display: grid; grid-template-columns: minmax(440px, .9fr) minmax(440px, 1.1fr); gap: 5vw; margin-top: 52px; }
.balance-control { display: grid; grid-template-columns: 210px 1fr 32px; align-items: center; gap: 18px; min-height: 60px; border-bottom: 1px solid var(--line); }
.balance-control label { display: flex; align-items: center; gap: 10px; font: 400 18px/1 var(--serif); }
.domain-symbol { width: 10px; height: 10px; border-radius: 50%; background: var(--domain-color); }
.balance-control input[type="range"] { width: 100%; accent-color: var(--accent); }
.balance-value { text-align: right; font: 400 22px/1 var(--serif); }
.wheel-panel { min-height: 570px; padding: 26px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--white); box-shadow: var(--shadow); }
.wheel-legend { width: 100%; display: flex; justify-content: center; gap: 24px; color: var(--muted); font-size: 11px; }
.wheel-legend span { display: flex; align-items: center; gap: 7px; }
.wheel-legend i { width: 18px; height: 3px; display: inline-block; }
.legend-current { background: var(--accent); }
.legend-evidence { background: var(--blue); }
.wheel-wrap, .result-wheel { width: min(100%, 500px); aspect-ratio: 1; }
.wheel-wrap svg, .result-wheel svg { width: 100%; height: 100%; overflow: visible; }
.wheel-note { margin: 4px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.screen-footer-actions { display: flex; justify-content: space-between; margin-top: 36px; }

.results-screen { padding-inline: 5vw; }
.result-hero { display: flex; justify-content: space-between; gap: 40px; align-items: start; }
.result-hero h2 { font-size: clamp(48px, 7vw, 96px); }
.result-stamp { width: 190px; aspect-ratio: 1; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: 50%; text-align: center; transform: rotate(5deg); }
.result-stamp span { color: var(--accent); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.result-stamp strong { margin: 11px 0; font: 400 27px/1 var(--serif); }
.result-stamp small { max-width: 100px; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.result-overview { display: grid; grid-template-columns: minmax(440px, .9fr) minmax(390px, 1.1fr); gap: 6vw; align-items: center; margin: 50px 0 100px; }
.result-wheel { margin: auto; }
.result-main-insight { padding: clamp(28px, 4vw, 54px); color: var(--paper); background: var(--ink); }
.result-main-insight .insight-label { color: var(--accent-soft); font-size: 10px; text-transform: uppercase; letter-spacing: .15em; }
.result-main-insight h3 { margin: 22px 0; font: 400 clamp(30px, 4vw, 50px)/1.05 var(--serif); }
.result-main-insight p { color: #d0cbc3; font-size: 16px; }
.insight-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); }
.insight-numbers strong { display: block; font: 400 30px/1 var(--serif); }
.insight-numbers span { color: #aaa49d; font-size: 10px; }
.result-types-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.result-types-heading h3 { margin: 0; font: 400 clamp(32px, 4vw, 50px)/1 var(--serif); }
.result-cards { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.result-card { min-height: 300px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-card:nth-child(4n) { border-right: 0; }
.result-card:nth-last-child(-n+4) { border-bottom: 0; }
.result-card-top { display: flex; justify-content: space-between; align-items: center; }
.result-card-top i { width: 11px; height: 11px; border-radius: 50%; background: var(--domain-color); }
.result-card-top span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.result-card h4 { margin: 46px 0 10px; font: 400 25px/1.05 var(--serif); }
.result-card .type-name { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.result-card p { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.result-card-metrics { display: flex; gap: 20px; margin-top: 26px; }
.result-card-metrics strong { font: 400 24px/1 var(--serif); }
.result-card-metrics small { display: block; color: var(--muted); font-size: 9px; }

.next-step-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; margin: 110px 0; padding: clamp(32px, 6vw, 80px); background: var(--paper-deep); }
.next-step-copy h3 { font: 400 clamp(34px, 4vw, 57px)/1.02 var(--sans); letter-spacing: -.04em; }
.next-step-copy > p:last-child { color: var(--muted); }
.next-step-form { display: grid; gap: 18px; }
.next-step-form label { display: grid; gap: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.next-step-form select, .next-step-form textarea { width: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 16px; text-transform: none; letter-spacing: 0; }
.next-step-form textarea { resize: vertical; }
.export-section { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 34px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.export-section h3 { margin: 0; font: 400 30px/1 var(--serif); }
.export-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.author-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 52px 0 10px; }
.author-monogram { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 400 18px/1 var(--serif); }
.author-footer strong { font-size: 13px; }
.author-footer p { margin: 5px 0 0; color: var(--muted); font: 400 14px/1.3 var(--serif); }

dialog { color: var(--ink); }
dialog::backdrop { background: rgba(41, 38, 45, .68); backdrop-filter: blur(6px); }
.data-dialog, .overview-dialog { width: min(92vw, 700px); max-height: 90vh; padding: 0; border: 0; background: var(--paper); box-shadow: var(--shadow); }
.overview-dialog { width: min(94vw, 1000px); }
.dialog-shell { padding: clamp(24px, 5vw, 50px); }
.dialog-shell.wide { min-width: 0; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.dialog-head h2 { margin: 0 0 26px; font: 400 45px/1 var(--serif); letter-spacing: -.03em; }
.dialog-shell > p { color: var(--muted); }
.dialog-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0; border: 1px solid var(--line); }
.dialog-stats div { padding: 18px; border-right: 1px solid var(--line); }
.dialog-stats div:last-child { border-right: 0; }
.dialog-stats strong { display: block; font: 400 28px/1 var(--serif); }
.dialog-stats span { color: var(--muted); font-size: 10px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.file-label { cursor: pointer; }
.file-label input { display: none; }
.overview-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); max-height: 62vh; overflow: auto; }
.overview-entry { min-height: 100px; padding: 16px; display: grid; grid-template-columns: 30px 1fr; gap: 12px; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.overview-entry:nth-child(odd) { border-right: 1px solid var(--line); }
.overview-entry strong { font: 400 15px/1.25 var(--serif); }
.overview-entry span { color: var(--muted); font-size: 11px; }
.overview-entry.has-answer { background: rgba(55, 94, 115, .05); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); padding: 12px 18px; color: var(--paper); background: var(--ink); opacity: 0; pointer-events: none; transition: .25s ease; font-size: 13px; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .hero-screen { grid-template-columns: .75fr 1.25fr; }
  .hero-manifesto { grid-column: 2; }
  .chapter-preview { grid-template-columns: repeat(3, 1fr); }
  .chapter-preview article:nth-child(3) { border-right: 0; }
  .chapter-preview article:nth-child(n+4) { border-top: 1px solid var(--line); }
  .balance-layout, .result-overview { grid-template-columns: 1fr; }
  .wheel-panel { min-height: 0; }
  .result-cards { grid-template-columns: repeat(2, 1fr); }
  .result-card:nth-child(4n) { border-right: 1px solid var(--line); }
  .result-card:nth-child(2n) { border-right: 0; }
  .result-card:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .result-card:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { height: 64px; padding: 0 18px; grid-template-columns: 1fr auto; gap: 14px; }
  main { padding-top: 64px; }
  .brand > span:last-child, .header-progress { display: none; }
  .header-actions { gap: 12px; }
  .header-author { max-width: 150px; font-size: 9px; }
  .header-author span { font-size: 13px; }
  .text-button { font-size: 11px; white-space: nowrap; }
  .screen { min-height: calc(100vh - 64px); padding: 36px 20px 70px; }
  h1, h2 { font-size: clamp(40px, 13vw, 58px); }
  .hero-screen.is-active { display: flex; flex-direction: column; align-items: stretch; gap: 34px; }
  .hero-orbit { width: 64vw; max-width: 260px; align-self: center; order: -1; }
  .hero-orbit strong { font-size: 30vw; }
  .hero-copy h1 { margin-bottom: 22px; }
  .hero-actions { display: grid; }
  .primary-button, .secondary-button, .danger-button { width: 100%; min-height: 54px; }
  .hero-manifesto { padding-bottom: 0; }
  .setup-screen { padding-inline: 20px; }
  .chapter-preview { grid-template-columns: 1fr; margin: 38px 0 28px; }
  .chapter-preview article { min-height: 135px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chapter-preview article:nth-child(n+4) { border-top: 0; }
  .chapter-preview article:last-child { border-bottom: 0; }
  .chapter-preview h3 { margin: 25px 0 8px; }
  .setup-bottom { align-items: stretch; flex-direction: column; }
  .achievements-screen { padding: 18px 14px 90px; }
  .achievement-topbar { margin-bottom: 16px; }
  .achievement-layout { display: block; }
  .chapter-rail { min-height: 0; margin: 0 6px 14px; padding: 12px 0 15px; display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chapter-number { grid-row: 1 / span 2; font-size: 54px; }
  .chapter-rail h3 { margin: 0; font-size: 22px; }
  .chapter-rail p { margin: 0; font-size: 12px; }
  .chapter-mini-progress { grid-column: 1 / -1; margin-top: 8px; }
  .prompt-card { padding: 24px 18px; box-shadow: 0 18px 45px rgba(41, 38, 45, .1); }
  .prompt-card h2 { min-height: 0; margin: 15px 0 24px; font-size: 30px; }
  .achievement-input-wrap textarea { min-height: 140px; font-size: 16px; }
  .domain-chips { display: grid; grid-template-columns: repeat(2, 1fr); }
  .domain-chip { min-height: 44px; padding: 0 8px; }
  .prompt-actions { align-items: stretch; flex-direction: column-reverse; }
  .prompt-actions .ghost-button { min-height: 44px; }
  .review-toolbar { align-items: stretch; flex-direction: column; }
  .review-count { margin-right: 0; }
  .review-grid { grid-template-columns: 1fr; }
  .review-item:nth-child(odd) { border-right: 0; }
  .balance-intro { display: block; }
  .scale-caption { margin-top: 20px; }
  .balance-layout { margin-top: 28px; }
  .balance-control { grid-template-columns: 145px 1fr 26px; gap: 10px; }
  .balance-control label { font-size: 15px; }
  .wheel-panel { padding: 16px 7px; }
  .wheel-legend { gap: 12px; }
  .screen-footer-actions { flex-direction: column-reverse; gap: 10px; }
  .result-hero { align-items: center; }
  .result-stamp { width: 112px; }
  .result-stamp strong { font-size: 17px; }
  .result-stamp small { display: none; }
  .result-overview { margin: 30px 0 70px; }
  .result-cards { grid-template-columns: 1fr; }
  .result-card, .result-card:nth-child(4n), .result-card:nth-child(2n), .result-card:nth-last-child(-n+2) { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .result-card:last-child { border-bottom: 0; }
  .next-step-section { grid-template-columns: 1fr; margin: 70px 0; padding: 28px 20px; }
  .export-section { align-items: stretch; flex-direction: column; }
  .export-actions { display: grid; }
  .author-footer { grid-template-columns: auto 1fr; }
  .author-footer .text-button { grid-column: 1 / -1; justify-self: start; margin-top: 20px; }
  .overview-list { grid-template-columns: 1fr; }
  .overview-entry:nth-child(odd) { border-right: 0; }
  .dialog-stats { grid-template-columns: 1fr; }
  .dialog-stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .dialog-stats div:last-child { border-bottom: 0; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; color: #111; }
  .grain, .site-header, .result-hero .eyebrow, .result-types-heading .eyebrow, .next-step-form button, .export-section, .author-footer .text-button { display: none !important; }
  main { padding: 0; }
  .screen { display: none !important; }
  .results-screen { display: block !important; padding: 0; }
  .result-hero h2 { font-size: 42px; }
  .result-stamp { width: 120px; }
  .result-overview { grid-template-columns: 42% 58%; gap: 18px; margin: 20px 0 28px; page-break-inside: avoid; }
  .result-main-insight { padding: 22px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .result-main-insight h3 { font-size: 27px; }
  .result-main-insight p { font-size: 12px; }
  .result-cards { grid-template-columns: repeat(4, 1fr); page-break-inside: avoid; }
  .result-card { min-height: 180px; padding: 13px; }
  .result-card h4 { margin-top: 22px; font-size: 17px; }
  .result-card p { font-size: 9px; }
  .next-step-section { margin: 28px 0 0; padding: 22px; grid-template-columns: 42% 58%; page-break-before: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .next-step-copy h3 { font-size: 30px; }
  .next-step-form select, .next-step-form textarea { border-bottom-color: #333; }
  .author-footer { padding-top: 24px; }
}
