:root {
  color-scheme: light;
  --paper: #f1f7f6;
  --card: #fff;
  --ink: #172433;
  --muted: #63727f;
  --line: #dce7e5;
  --green: #0f766e;
  --light-green: #e9f7f3;
  --terra: #ad6135;
  --accent: #0d9488;
  --soft: #f7faf9;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; min-width: 280px; line-height: 1.5; }
body.sandbox-site { background: radial-gradient(ellipse 420px 360px at 3% 150px, #c4efe855, transparent), radial-gradient(ellipse 340px 350px at 99% 320px, #fff3cd55, transparent), var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .6; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, select, textarea, a { transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease; }
:focus-visible { outline: 3px solid #20a99a; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { line-height: 1.2; letter-spacing: -.045em; }
h2 { font-size: 1.28rem; line-height: 1.45; letter-spacing: -.025em; }
svg { flex-shrink: 0; }
.ui-icon { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: middle; flex-shrink: 0; }
.primary:has(> .ui-icon), .text-button:not(.resume-home):has(> .ui-icon) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
::selection { color: #103f3d; background: #b7ece4; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 9px; background: white; color: var(--green); box-shadow: 0 6px 25px #163d3526; }
.skip-link:focus { top: 12px; }
.page-loading { padding: 100px 0; text-align: center; color: var(--muted); }

/* Shared header, including the local retrospective entry. */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding: 0 clamp(20px, 5vw, 64px); border-bottom: 1px solid #d9e6e4; background: #f7fbfaed; backdrop-filter: blur(16px); }
.topbar-inner { width: 100%; max-width: 1200px; min-height: 88px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 11px; color: var(--ink); font-size: 1rem; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 15px; background: linear-gradient(140deg, #12b6a6, #0c807a); color: white; box-shadow: 0 3px 6px #0f817a12; }
.brand-mark svg { width: 25px; height: 25px; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 1.05rem; line-height: 1.3; letter-spacing: -.025em; }
.brand-copy small { color: #72858f; font-size: .6rem; letter-spacing: .17em; font-weight: 600; }
.topnav { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.nav-link { color: #5f727c; font-size: .82rem; text-decoration: none; }
.nav-link:hover { color: var(--green); }
.topnav .account-toggle { min-height: 43px; padding: 10px 18px; border: 1px solid var(--green); border-radius: 12px; background: var(--green); color: white; font-size: .82rem; text-decoration: none; }
.topnav .account-toggle:hover { background: #0b625c; border-color: #0b625c; }
.account-toggle { white-space: nowrap; }
.top-note { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.top-note span { padding-inline: 5px; }
.shell { max-width: 1280px; padding: 0 clamp(20px, 5vw, 64px) 72px; margin: 0 auto; }
.shell[data-screen="home"] { max-width: 1280px; padding-bottom: 76px; }

/* Landing page */
.welcome-bar { display: flex; align-items: center; justify-content: center; gap: 13px; width: fit-content; max-width: 100%; margin: 24px auto 0; padding: 10px 12px 10px 18px; border: 1px solid #b4e6dd; border-radius: 13px; background: #effcf9cf; color: #15766f; }
.welcome-bar > svg { width: 19px; height: 19px; color: var(--accent); }
.welcome-bar p { font-size: .76rem; line-height: 1.65; }
.welcome-bar button { flex-shrink: 0; border: 0; border-radius: 9px; background: var(--green); color: white; padding: 10px 14px; font-size: .76rem; font-weight: 700; }
.welcome-bar button:hover { background: #0b625c; }
.home-hero { padding: 54px 0 34px; text-align: center; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; color: var(--green); background: #fbfffe; border: 1px solid #caf0e8; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.eyebrow-pill svg { width: 15px; height: 15px; }
.home-hero h1 { max-width: 960px; margin: 18px auto 0; font-size: clamp(2.25rem, 4.7vw, 3.6rem); line-height: 1.32; letter-spacing: -.045em; font-weight: 800; }
.home-hero h1 span { display: block; color: var(--accent); }
.hero-copy { max-width: 780px; margin: 18px auto 0; color: #657482; font-size: 1rem; line-height: 1.9; }
.hero-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin-top: 22px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid #d7e3df; border-radius: 999px; background: #ffffffb8; color: #667671; font-size: .71rem; }
.hero-badges svg { width: 13px; height: 13px; color: #63998c; }
.start-card { width: 100%; display: flex; align-items: center; gap: 21px; margin: 0 auto; padding: 27px 29px; text-align: left; color: var(--ink); background: linear-gradient(105deg, #fff 62%, #ebf9f5); border: 1px solid #cfdfdb; border-radius: 23px; box-shadow: 0 13px 30px #355e5210; }
.start-card:hover { border-color: #78c4b6; box-shadow: 0 15px 35px #245b4f18; }
.start-icon { flex-shrink: 0; display: grid; place-items: center; width: 58px; height: 58px; color: var(--accent); background: #d7faf0; border-radius: 18px; }
.start-icon svg { width: 28px; height: 28px; }
.start-copy { flex: 1; min-width: 0; }
.start-copy > small { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--green); font-size: .72rem; letter-spacing: .04em; }
.start-copy > small > span { padding: 3px 8px; color: #9e6d21; background: #fff2c9; border-radius: 999px; font-size: .65rem; letter-spacing: 0; }
.start-copy h2 { margin-top: 6px; font-size: 1.2rem; }
.start-copy p { margin-top: 5px; color: var(--muted); font-size: .85rem; line-height: 1.75; }
.start-arrow { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; color: #6ca597; font-size: 1.5rem; }
.start-arrow svg { width: 23px; height: 23px; }
.resume-home { display: block; width: fit-content; margin: 17px auto 0; }
.home-section { padding-top: 72px; scroll-margin-top: 116px; }
.section-heading { max-width: 720px; margin-bottom: 25px; }
.eyebrow { display: block; color: var(--green); font-size: .7rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.section-heading h2 { margin-top: 8px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.section-heading p { margin-top: 10px; color: var(--muted); font-size: .87rem; line-height: 1.85; }
.topic-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 300px; padding: 26px; color: var(--ink); text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 21px; box-shadow: 0 5px 15px #294a4210; }
.topic-card:hover { border-color: #8dcabc; box-shadow: 0 14px 28px #365e5115; }
.topic-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 14px; background: #eaf7f1; color: #208872; }
.topic-icon svg { width: 24px; height: 24px; }
.topic-card[data-theme="marriage"] .topic-icon { background: #fff0ee; color: #b87878; }
.topic-card[data-theme="work"] .topic-icon { background: #edf3fd; color: #6487b5; }
.topic-card[data-theme="invest"] .topic-icon { background: #fff5df; color: #b58c35; }
.topic-kicker { position: absolute; top: 35px; right: 24px; color: #738684; font-size: .7rem; letter-spacing: .06em; }
.topic-card h3 { font-size: 1.17rem; line-height: 1.5; }
.topic-card > p { margin-top: 10px; color: var(--muted); font-size: .81rem; line-height: 1.85; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; margin-bottom: 24px; }
.topic-tags span { padding: 4px 8px; color: #667a6f; background: #f4f8f6; border: 1px solid #e8eeeb; border-radius: 6px; font-size: .66rem; }
.topic-cta { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; color: var(--green); font-size: .76rem; font-weight: 700; border-top: 1px solid #edf2f0; }
.topic-cta svg { width: 17px; height: 17px; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.how-card { min-width: 0; padding: 24px; border: 1px solid #dce8e4; border-radius: 20px; background: #ffffffa6; }
.step-number { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 17px; border-radius: 50%; background: #e4f4ee; color: var(--green); font-size: .75rem; font-weight: 750; }
.how-card h3 { font-size: 1rem; }
.how-card > p { margin-top: 9px; color: var(--muted); font-size: .79rem; line-height: 1.8; }
.mini-context, .mini-scene, .mini-comparison { min-height: 98px; display: grid; align-content: center; gap: 7px; margin-top: 20px; padding: 14px; border: 1px solid #e4ece8; border-radius: 11px; background: #f7fbf9; font-size: .7rem; color: #687c74; }
.mini-context span { display: flex; justify-content: space-between; gap: 12px; }
.mini-context > div { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-context > div > span { display: inline-flex; padding: 4px 7px; border: 1px solid #e0ebe5; border-radius: 5px; background: white; font-size: .63rem; }
.mini-context strong { color: #527568; font-size: .7rem; font-weight: 650; }
.mini-context small { display: flex; align-items: center; gap: 5px; color: #58796b; font-size: .64rem; }
.mini-context small svg { width: 12px; height: 12px; }
.mini-scene p { line-height: 1.7; }
.mini-scene small { color: #4f7b68; font-size: .66rem; }
.mini-scene > div { display: flex; gap: 6px; }
.mini-scene span { display: inline-block; width: fit-content; border: 1px solid #cfe6dc; border-radius: 6px; padding: 5px 7px; background: white; color: #568775; font-size: .65rem; }
.mini-comparison > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini-comparison strong { color: #32826d; }
.mini-comparison i { display: block; height: 5px; border-radius: 99px; background: #a2d4bf; }
.report-showcase { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; margin-top: 72px; padding: 40px; border: 1px solid #d7e7e0; border-radius: 24px; background: linear-gradient(120deg, #edf8f2, #f8fcf9 60%, #f3f7ed); }
.showcase-copy h2 { margin-top: 10px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.45; }
.showcase-copy > p { margin-top: 13px; color: var(--muted); font-size: .84rem; line-height: 1.9; }
.showcase-copy ul { display: grid; gap: 12px; list-style: none; margin: 22px 0 0; padding: 0; color: #4f6b60; font-size: .8rem; }
.showcase-copy li { display: flex; align-items: flex-start; gap: 8px; }
.showcase-copy li svg { width: 16px; height: 16px; margin-top: 2px; color: #339a7b; }
.showcase-visual { min-width: 0; padding: 22px; border: 1px solid #d6e5df; border-radius: 16px; background: #ffffffec; box-shadow: 0 10px 26px #2e685315; }
.visual-label { color: #658176; font-size: .7rem; font-weight: 650; }
.path-illustration { display: block; width: 100%; height: auto; max-height: 200px; margin: 16px 0; overflow: visible; }
.path-illustration svg { display: block; width: 100%; height: auto; }
.illustration-grid { fill: none; stroke: #e6efea; stroke-width: 1; }
.illustration-area { fill: #bfe8d94d; stroke: none; }
.illustration-alt { fill: none; stroke: #b6c6bc; stroke-width: 2; stroke-dasharray: 5 5; }
.illustration-main { fill: none; stroke: #27a082; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.illustration-node { fill: white; stroke: #27a082; stroke-width: 2; }
.visual-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px solid #e6eee9; }
.visual-stats > div { min-width: 0; display: grid; gap: 4px; }
.visual-stats strong { color: #337c64; font-size: 1.02rem; }
.visual-stats span { color: #72867a; font-size: .65rem; }
.visual-caption { margin-top: 14px; color: #73877b; font-size: .65rem; line-height: 1.65; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px 26px; max-width: 1152px; margin: 0 auto; padding: 25px 0 36px; border-top: 1px solid #d9e6e1; }
.footer-brand { color: #52716a; font-size: .83rem; font-weight: 750; }
.site-footer p, .site-footer small { color: #718278; font-size: .7rem; line-height: 1.7; }
.site-footer p { flex: 1; }

/* Setup */
.setup-intro { padding: 28px 0 30px; }
.back-home { margin-bottom: 26px; }
.setup-intro h1 { margin-top: 9px; font-size: clamp(1.95rem, 3.7vw, 2.75rem); }
.setup-intro > p { max-width: 700px; margin-top: 12px; color: var(--muted); font-size: .91rem; line-height: 1.8; }
.setup-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; padding-top: 22px; color: #75887d; font-size: .75rem; }
.setup-steps span { display: inline-flex; align-items: center; gap: 8px; }
.setup-steps span + span::before { content: "→"; margin-right: 12px; color: #9fb6a9; }
.setup-steps .current { color: var(--green); font-weight: 750; }
.setup-layout { display: grid; grid-template-columns: minmax(190px, 245px) minmax(0, 1fr); gap: 24px; align-items: start; }
.setup-sidebar { position: sticky; top: 112px; display: grid; gap: 22px; min-width: 0; }
.topics { display: grid; gap: 10px; }
.topics #resume { grid-column: 1 / -1; }
.topic { display: grid; gap: 7px; min-width: 0; padding: 17px 18px; color: var(--ink); text-align: left; background: #ffffff8c; border: 1px solid #d7e6e0; border-radius: 14px; }
.topic:hover { background: #f3fcf8; border-color: #83c6b4; }
.topic.selected { border-color: #6bb8a5; background: #e7f6ef; box-shadow: inset 3px 0 0 #0d9488; }
.topic-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; font-weight: 750; }
.topic-title > span { color: #729b8c; }
.topic-detail { color: #667f6f; font-size: .73rem; line-height: 1.7; }
.setup-guide { padding: 20px 16px; color: #637b70; border-top: 1px solid #d7e5de; }
.setup-guide h3, .setup-guide > strong { font-size: .8rem; color: #466c5b; }
.setup-guide .intro-panel { margin-top: 15px; }
.setup-guide ol { display: grid; gap: 10px; padding-left: 18px; margin: 14px 0 18px; font-size: .74rem; line-height: 1.75; }
.setup-guide > p { margin-top: 15px; color: #718478; font-size: .71rem; line-height: 1.8; }
.intro-panel { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 12px; padding: 18px 0; border-top: 1px solid #dce8e1; border-bottom: 1px solid #dce8e1; }
.intro-panel > div { display: grid; align-content: start; gap: 4px; min-width: 0; }
.intro-panel strong { color: var(--green); font-size: 1.2rem; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.intro-panel span { color: #6c8172; font-size: .61rem; line-height: 1.55; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 42px 0; }
.intro h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.intro h1 span { color: var(--accent); }
.intro p { margin-top: 16px; color: var(--muted); line-height: 1.8; }
.card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 21px; box-shadow: 0 4px 20px #234c3d06; }
.setup-card, .decision-card, .metrics-card, .history-card { padding: clamp(20px, 2.8vw, 32px); }
.card-heading p { margin-top: 7px; color: var(--muted); font-size: .83rem; line-height: 1.8; }
.setup-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 23px 0 8px; padding-bottom: 23px; border-bottom: 1px solid #e7eeea; }
.setup-controls .provider-field { max-width: none; margin-top: 0; }
.form-section-title { display: flex; align-items: center; gap: 9px; margin-top: 27px; }
.form-section-title h3 { font-size: .95rem; }
.form-section-title small { color: #728779; font-size: .7rem; }
.section-number { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #eaf6ef; color: var(--green); font-size: .68rem; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 18px; margin-top: 21px; }
.field { display: grid; gap: 8px; align-content: end; min-width: 0; color: #42594f; font-size: .81rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 45px; padding: 10px 12px; color: #263e34; background: #fafcfb; border: 1px solid #d9e5df; border-radius: 9px; font-size: .84rem; font-weight: 450; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b4cfc0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #58ad95; box-shadow: 0 0 0 3px #35a58514; background: white; }
.field input::placeholder, .field textarea::placeholder { color: #788d80; font-size: .79rem; }
.field textarea { resize: vertical; line-height: 1.7; }
.profile { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e4ece7; }
.profile h3 { font-size: .95rem; }
.profile h3 span { color: #718778; font-size: .7rem; margin-left: 7px; font-weight: 450; }
.profile > p { margin-top: 8px; color: #6b8172; font-size: .76rem; line-height: 1.8; }
.profile .field-grid { margin-top: 17px; }
.profile .form-section-title { margin-top: 0; }
.full-width { grid-column: 1 / -1; }
.privacy-notice { margin-top: 25px; padding: 16px 18px; background: #f1f8f4; border: 1px solid #e0eee5; border-radius: 12px; font-size: .76rem; line-height: 1.8; }
.privacy-notice > strong { color: #47715c; font-size: .78rem; }
.privacy-notice p { margin-top: 6px; color: #687f6e; }
.privacy-notice a { color: #47735d; }
.provider-field { max-width: 420px; margin-top: 17px; }
.provider-note { margin-top: 7px; color: var(--muted); font-size: .75rem; line-height: 1.75; overflow-wrap: anywhere; }
.assumptions, .method { margin-top: 25px; padding-top: 19px; border-top: 1px solid #e4ece7; }
summary { color: #46735e; cursor: pointer; font-size: .82rem; font-weight: 650; }
details p { margin-top: 10px; color: var(--muted); font-size: .77rem; line-height: 1.8; }
.assumptions .field-grid { margin-top: 17px; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 25px; }
.form-footer > span { color: #6d8373; font-size: .73rem; }
.primary { min-height: 46px; padding: 11px 21px; color: white; background: var(--green); border: 1px solid var(--green); border-radius: 10px; font-size: .86rem; font-weight: 700; box-shadow: 0 4px 10px #178a7112; }
.primary:hover { background: #0b625c; border-color: #0b625c; }
.primary span { margin-left: 7px; }
.text-button { min-height: 32px; border: 0; background: transparent; padding: 5px 1px; color: var(--green); text-align: left; font-size: .78rem; line-height: 1.5; font-weight: 650; }
.text-button:hover, .reference:hover { text-decoration: underline; }

/* Account and explicit privacy choices */
#account-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 36px); padding: 27px; border: 1px solid #d1e4d9; border-radius: 22px; color: var(--ink); background: white; box-shadow: 0 30px 100px #172c3540; }
#account-dialog::backdrop { background: #203e4259; backdrop-filter: blur(5px); }
.account-header, .account-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.account-header { margin-bottom: 10px; }
.account-header h2 { font-size: 1.35rem; }
.account-header [data-account-close] { min-width: 40px; text-align: center; color: #6b8072; }
.account-identity { max-width: 100%; color: #466557; font-size: .84rem; overflow-wrap: anywhere; }
.account-form { display: grid; gap: 16px; margin-top: 20px; }
.account-form .account-actions { margin-top: 7px; }
.account-section { margin-top: 23px; padding-top: 20px; border-top: 1px solid #e1ebe4; }
.account-section h3 { font-size: .92rem; }
.account-section .account-actions { margin-top: 9px; }
.account-runs { list-style: none; margin: 10px 0 0; padding: 0; }
.account-runs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e7eee9; }
.account-runs li > div:first-child { min-width: 0; }
.account-runs li .account-actions { margin: 0; flex-shrink: 0; }
.account-runs strong { font-size: .81rem; }
.account-runs small, .preference-list small { display: block; margin-top: 5px; color: #6e8575; font-size: .69rem; line-height: 1.6; }
.account-error, .text-button.danger { color: #ad5543; }
.text-button.danger:hover { color: #85392d; }
.account-error { margin-top: 12px; font-size: .79rem; }
.account-notice { margin-top: 14px; padding: 12px 14px; border-radius: 10px; color: #285c4b; background: #edf7f1; font-size: .8rem; line-height: 1.8; overflow-wrap: anywhere; }
.email-privacy { margin-top: 12px; }
.auth-resend { justify-self: start; max-width: 100%; text-align: left; white-space: normal; }
.memory-opt-in { display: flex; gap: 9px; align-items: flex-start; margin-top: 18px; color: #4c725d; font-size: .79rem; line-height: 1.8; }
.memory-opt-in input { flex: none; width: 16px; height: 16px; margin: .25em 0 0; accent-color: var(--green); }
.result-privacy { margin-bottom: 22px; padding: clamp(20px, 2.8vw, 28px); border-color: #c9e4d6; }
.result-privacy .memory-opt-in { margin-top: 12px; }
.result-privacy button { margin-top: 12px; }

/* Story, choice preview, and quantitative results */
.run-top { display: flex; justify-content: space-between; gap: 15px; align-items: center; min-height: 78px; }
.run-top > span { font-size: .78rem; font-weight: 600; color: #6c8274; text-align: right; }
.run-progress { margin-bottom: 24px; padding: 16px 20px; border: 1px solid #dbe8e0; border-radius: 13px; background: #ffffffc9; }
.run-progress-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; font-size: .73rem; color: #6b8271; }
.run-progress-meta strong { color: var(--green); font-size: .76rem; }
.run-progress progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 99px; overflow: hidden; background: #e5eee8; accent-color: var(--accent); }
.run-progress progress::-webkit-progress-bar { background: #e5eee8; border-radius: 99px; }
.run-progress progress::-webkit-progress-value { background: #47b59d; border-radius: 99px; }
.run-progress progress::-moz-progress-bar { background: #47b59d; border-radius: 99px; }
.run-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 22px; }
.decision-column { display: grid; gap: 22px; }
.metrics-card { position: sticky; top: 108px; }
.round-label { font-size: .76rem; font-weight: 750; color: var(--green); }
.round-label span { margin-left: 11px; padding-left: 11px; border-left: 1px solid #dce7df; color: #6a8171; font-weight: 500; }
.decision-card h1 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1.45; margin-top: 13px; }
.question-copy { color: #5d7366; margin-top: 17px; font-size: .89rem; line-height: 1.85; }
.story-scene { margin-top: 20px; padding: 18px 20px; background: #f1f8f4; border: 1px solid #e2eee5; border-left: 3px solid #7dbda2; border-radius: 0 12px 12px 0; }
.story-scene > span { color: #527d65; font-size: .67rem; font-weight: 700; letter-spacing: .06em; }
.story-scene p { margin-top: 8px; color: #3b5748; font-size: .9rem; line-height: 1.95; }
.current-budget { margin-top: 14px; color: #557e64; font-size: .77rem; line-height: 1.7; }
.option-note { margin-top: 21px; color: #6b8373; font-size: .7rem; line-height: 1.8; }
.options { display: grid; gap: 12px; margin-top: 13px; }
.option-card { border: 1px solid #dfe9e2; border-radius: 13px; background: #fcfefd; transition: border-color .18s ease, background-color .18s ease; }
.option-card:has(.choice:hover) { border-color: #8bc8ac; background: #f6fcf8; }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 65px; width: 100%; padding: 14px; border: 0; border-radius: 12px 12px 0 0; background: transparent; text-align: left; color: #314f3e; font-size: .85rem; font-weight: 600; }
.choice:hover { background: #eff9f3; }
.choice small { display: block; margin-top: 5px; color: #6a8272; font-size: .71rem; font-weight: 450; line-height: 1.7; }
.option-footer { padding: 0 14px 8px; color: #6d8576; font-size: .69rem; line-height: 1.75; }
.choice-editor { padding: 0 14px 12px; }
.choice-editor summary { color: #557c64; font-size: .71rem; font-weight: 500; }
.choice-editor form { margin-top: 12px; padding-top: 14px; border-top: 1px solid #e2ece4; }
.choice-editor .field-grid { margin-top: 13px; gap: 13px; }
.choice-editor button { margin-top: 13px; }
.choice-editor [data-review-form] { padding-top: 16px; }
.choice-editor [data-review-form] > strong, .custom-preview > strong { font-size: .81rem; }
.choice-editor .needs-answer { color: #a36230; line-height: 1.75; font-weight: 600; }
.custom-preview { margin-top: 13px; padding: 16px; background: #eaf7ed; border: 1px solid #d4e8d8; border-radius: 10px; }
.letter { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #d8e7dc; border-radius: 9px; color: #518065; background: white; font-weight: 700; font-size: .76rem; }
.choice-arrow { color: #7a9d87; }
.preference-list { list-style: none; padding: 0; margin: 12px 0 0; }
.preference-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e5ece6; font-size: .77rem; }
.memory-evidence li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; row-gap: 6px; }
.memory-evidence meter { grid-column: 1 / -1; width: 100%; height: 8px; accent-color: var(--green); }
.history-card .card-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.history-card h2 { font-size: 1.05rem; }
.empty { margin-top: 12px; color: #6b8273; font-size: .78rem; line-height: 1.8; }
.history { display: grid; list-style: none; padding: 0; margin: 15px 0 0; }
.history li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid #e5eee7; }
.history li div { min-width: 0; display: grid; gap: 6px; }
.history li div span { color: #708777; font-size: .71rem; }
.history li strong { color: #577260; font-size: .79rem; line-height: 1.7; }
.history li button { flex-shrink: 0; }
.reference { display: inline-block; margin-top: 20px; font-size: .78rem; font-weight: 650; }
.checklist { margin-top: 24px; }
.checklist h2 { font-size: .9rem; }
.checklist ul { margin: 11px 0 0; padding-inline-start: 1.2em; color: #647f6c; font-size: .79rem; line-height: 1.9; }
.big-metric { display: grid; gap: 7px; padding: 22px 0 16px; }
.big-metric strong { font-size: clamp(1.85rem, 3.3vw, 2.65rem); line-height: 1.2; letter-spacing: -.055em; color: var(--green); font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.big-metric > span, .metric-grid span { color: #637f6c; font-size: .77rem; }
.big-metric small, .metric-grid small { font-size: .68rem; color: #6c8473; line-height: 1.7; }
#chart { width: 100%; height: 184px; display: block; }
.chart-key { display: flex; flex-wrap: wrap; gap: 7px 13px; color: #6a8272; font-size: .68rem; }
.chart-key span:first-child { color: var(--green); }
.chart-key span:last-child { color: var(--terra); }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 18px; }
.metric-grid > div { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 14px; background: #f3f8f4; border: 1px solid #e9f0e9; border-radius: 11px; }
.metric-grid strong { font-size: clamp(1rem, 1.8vw, 1.3rem); color: #398167; line-height: 1.4; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* Completed reports */
.report-card { margin-bottom: 24px; padding: clamp(20px, 3vw, 34px); }
.report-overview { margin-top: 18px; max-width: 80ch; line-height: 1.9; color: #526d5d; font-size: .87rem; }
.report-overview h3, .report-section-heading { margin: 21px 0 9px; font-size: 1.02rem; }
.report-evidence { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 15px 0 0; list-style: none; }
.report-evidence li { border-radius: 8px; padding: 8px 11px; background: #edf7ef; color: #5c7d66; font-size: .74rem; line-height: 1.75; }
.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 17px; }
.report-node { border: 1px solid #dfe9e2; border-radius: 14px; padding: 18px; min-width: 0; overflow-wrap: anywhere; }
.report-node h3 { margin: 8px 0 11px; font-size: .92rem; line-height: 1.7; }
.report-node p { margin-top: 8px; font-size: .78rem; line-height: 1.8; color: #617c6b; }
.report-node dl { display: grid; gap: 10px; margin: 15px 0; padding: 13px; background: #f2f8f3; border-radius: 9px; }
.report-node dt { color: #68826f; font-size: .69rem; }
.report-node dd { margin: 4px 0 0; color: #3c8161; font-weight: 700; font-size: .83rem; }
.report-node small { color: #728777; font-weight: 450; }
.report-node table { width: 100%; border-collapse: collapse; margin-top: 11px; font-size: .7rem; }
.report-node th, .report-node td { text-align: right; padding: 6px 0 6px 3px; border-bottom: 1px solid #e5ede6; }
.report-node th:first-child { text-align: left; }
.report-node > .text-button { margin-top: 12px; }
.report-robustness { display: grid; gap: 11px; margin-top: 22px; }
.report-robustness p { margin: 0; }
.report-table-wrap { overflow-x: auto; border: 1px solid #e0ebe2; border-radius: 11px; }
.report-robustness table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.report-robustness thead { background: #f0f7f1; color: #5c7c65; }
.report-robustness th, .report-robustness td { padding: 11px 12px; border-bottom: 1px solid #e5ede6; text-align: left; vertical-align: top; }
.report-robustness td span { display: block; min-width: 9em; line-height: 1.8; }
.report-robustness tbody tr:last-child > * { border-bottom: 0; }
.report-thresholds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 13px; padding: 0; list-style: none; }
.report-thresholds li { border: 1px solid #dde9e0; border-radius: 11px; padding: 15px; color: #5a7a63; font-size: .78rem; line-height: 1.8; }
.report-thresholds small { color: #728875; }
#notification { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 13px 18px; border: 1px solid #e7c3af; border-radius: 12px; background: #fff5ed; color: #935b39; box-shadow: 0 8px 28px #603a2c1f; z-index: 70; font-size: .84rem; line-height: 1.7; }
#generation-status { position: fixed; bottom: 20px; right: 20px; max-width: calc(100vw - 40px); padding: 12px 17px; border-radius: 12px; background: var(--green); color: white; font-size: .8rem; box-shadow: 0 8px 25px #1f5b4326; z-index: 60; }

/* Responsive layouts */
@media (max-width: 1100px) {
  .topnav { gap: 19px; }
  .topic-card, .how-card { padding: 21px; }
  .topic-kicker { right: 21px; }
  .report-showcase { padding: 30px; gap: 30px; }
  .site-footer { margin-inline: 5vw; }
  .setup-layout { grid-template-columns: minmax(170px, 215px) minmax(0, 1fr); gap: 20px; }
  .run-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
  .decision-card, .metrics-card, .history-card { padding: 23px; }
}
@media (max-width: 960px) {
  .report-grid { grid-template-columns: 1fr; }
  .topic-cards, .how-grid { gap: 13px; }
  .topic-card { min-height: 320px; }
  .home-hero h1 { font-size: clamp(2.25rem, 5.3vw, 3.2rem); }
  .setup-layout { grid-template-columns: minmax(160px, 190px) minmax(0, 1fr); }
  .setup-controls { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .metrics-card { position: static; grid-row: 2; grid-column: 1; }
  .run-layout { grid-template-columns: minmax(0, 1fr); }
  .decision-column { display: contents; }
  .history-card { grid-row: auto; grid-column: 1; }
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric-grid strong { font-size: 1.15rem; }
}
@media (max-width: 790px) {
  .topbar, .topbar-inner { min-height: 76px; }
  .topnav { gap: 15px; }
  .nav-link { font-size: .73rem; }
  .brand-copy strong { font-size: .94rem; }
  .brand-copy small { font-size: .53rem; }
  .home-hero { padding-top: 43px; }
  .home-hero h1 { font-size: clamp(2.1rem, 5.4vw, 2.75rem); }
  .hero-copy { font-size: .89rem; }
  .start-card { padding: 24px; gap: 17px; }
  .start-copy p { font-size: .79rem; }
  .topic-cards { grid-template-columns: minmax(0, 1fr); }
  .topic-card { min-height: 0; padding: 23px; }
  .topic-icon { margin-bottom: 15px; }
  .topic-card h3 { font-size: 1.14rem; }
  .topic-card > p { max-width: 45em; }
  .topic-tags { margin-bottom: 17px; }
  .topic-kicker { top: 38px; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .how-card { padding: 24px; }
  .mini-context, .mini-scene, .mini-comparison { min-height: 88px; }
  .report-showcase { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .path-illustration { max-height: 185px; }
  .site-footer { gap: 9px 20px; }
  .site-footer small { width: 100%; }
  .setup-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .setup-sidebar { position: static; gap: 0; }
  .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topic { padding: 14px; }
  .topic-title { font-size: .79rem; }
  .topic-title > span { display: none; }
  .topic-detail { font-size: .67rem; }
  .setup-guide { padding: 16px 3px 0; border-top: 0; }
  .setup-guide > h3, .setup-guide > strong, .setup-guide > ol, .setup-guide > p { display: none; }
  .intro-panel { display: flex; justify-content: space-between; gap: 10px; padding: 0 0 17px; border-top: 0; }
  .setup-guide .intro-panel { margin-top: 0; }
  .intro-panel > div { display: flex; align-items: baseline; gap: 8px; }
  .intro-panel strong { font-size: 1rem; }
  .intro-panel span { font-size: .65rem; }
  .setup-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { grid-template-columns: 1fr; gap: 24px; }
  .intro h1 br { display: none; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 90px; }
  .topbar { padding-inline: 19px; }
  .topbar, .topbar-inner { min-height: 72px; }
  .topbar-inner { gap: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 12px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .brand-copy strong { font-size: .91rem; }
  .brand-copy small { font-size: .47rem; letter-spacing: .12em; }
  .topnav { gap: 11px; }
  .topnav .nav-link { display: none; }
  .topnav #retrospective-link { max-width: 72px; font-size: .64rem; line-height: 1.6; }
  .topnav .account-toggle { min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: .73rem; }
  .shell { padding-inline: 19px; padding-bottom: 46px; }
  .welcome-bar { gap: 9px; margin-top: 19px; padding: 9px 10px 9px 12px; width: 100%; }
  .welcome-bar > svg { width: 16px; height: 16px; }
  .welcome-bar p { flex: 1; font-size: .65rem; }
  .welcome-bar button { min-height: 44px; padding: 9px 11px; font-size: .67rem; }
  .home-hero { padding: 38px 0 27px; }
  .eyebrow-pill { font-size: .66rem; }
  .home-hero h1 { margin-top: 16px; font-size: clamp(1.85rem, 6.1vw, 2.5rem); line-height: 1.42; letter-spacing: -.045em; }
  .hero-copy { margin-top: 16px; font-size: .8rem; line-height: 1.85; }
  .hero-badges { gap: 6px; margin-top: 19px; }
  .hero-badges span { padding: 5px 8px; font-size: .61rem; }
  .hero-badges svg { width: 11px; height: 11px; }
  .start-card { align-items: flex-start; gap: 13px; padding: 20px 17px; border-radius: 18px; }
  .start-icon { width: 42px; height: 42px; margin-top: 3px; border-radius: 13px; }
  .start-icon svg { width: 23px; height: 23px; }
  .start-copy > small { font-size: .62rem; }
  .start-copy > small > span { font-size: .58rem; }
  .start-copy h2 { font-size: .97rem; line-height: 1.7; margin-top: 3px; }
  .start-copy p { font-size: .72rem; line-height: 1.8; }
  .start-arrow { width: 18px; height: 24px; margin-top: 28px; font-size: 1.1rem; }
  .start-arrow svg { width: 18px; height: 18px; }
  .home-section { padding-top: 45px; }
  .section-heading { margin-bottom: 20px; }
  .eyebrow { font-size: .64rem; }
  .section-heading h2, .showcase-copy h2 { font-size: 1.43rem; }
  .section-heading p { font-size: .78rem; margin-top: 8px; }
  .report-showcase { margin-top: 44px; padding: 24px 20px; border-radius: 19px; }
  .showcase-copy > p { font-size: .78rem; }
  .showcase-copy ul { font-size: .75rem; }
  .showcase-visual { padding: 18px; }
  .visual-stats { gap: 7px; }
  .visual-stats strong { font-size: .9rem; }
  .visual-stats span { font-size: .6rem; }
  .site-footer { display: block; margin-inline: 19px; padding: 23px 0 29px; }
  .site-footer p { margin-top: 8px; }
  .site-footer small { display: block; margin-top: 7px; }
  .setup-intro { padding-top: 19px; padding-bottom: 23px; }
  .back-home { margin-bottom: 18px; }
  .setup-intro h1 { font-size: 1.9rem; }
  .setup-intro > p { font-size: .8rem; }
  .setup-steps { gap: 8px; font-size: .67rem; padding-top: 19px; }
  .setup-steps span + span::before { margin-right: 4px; }
  .topic { padding: 12px 10px; gap: 5px; }
  .topic-title { font-size: .73rem; }
  .topic-title > svg { display: none; }
  .topic-detail { font-size: .61rem; line-height: 1.6; }
  .intro-panel { gap: 8px; }
  .intro-panel > div { gap: 5px; }
  .intro-panel strong { font-size: .94rem; }
  .intro-panel span { font-size: .58rem; }
  .card { border-radius: 17px; }
  .setup-card, .decision-card, .metrics-card, .history-card { padding: 20px 18px; }
  .card-heading h2 { font-size: 1.16rem; }
  .card-heading p { font-size: .76rem; }
  .setup-controls { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .field { font-size: .78rem; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .form-section-title { flex-wrap: wrap; }
  .form-footer > span { display: none; }
  .form-footer .primary { width: 100%; }
  .text-button { min-height: 44px; }
  .privacy-notice { padding: 14px; font-size: .71rem; }
  .privacy-notice > strong { font-size: .73rem; }
  #account-dialog { width: calc(100vw - 28px); padding: 21px; border-radius: 18px; }
  .account-runs li { align-items: flex-start; flex-wrap: wrap; gap: 6px; }
  .account-runs li .account-actions { margin-left: auto; }
  .run-top { min-height: 66px; gap: 10px; }
  .run-top > span { font-size: .68rem; }
  .run-progress { padding: 13px 15px; margin-bottom: 18px; }
  .run-progress-meta { font-size: .65rem; }
  .run-progress-meta strong { font-size: .68rem; }
  .run-layout, .decision-column { gap: 18px; }
  .decision-card h1 { font-size: 1.55rem; }
  .story-scene { padding: 15px 16px; }
  .story-scene p { font-size: .84rem; }
  .question-copy { font-size: .82rem; }
  .choice { gap: 10px; padding: 13px 11px; font-size: .8rem; }
  .letter { width: 27px; height: 27px; font-size: .7rem; }
  .choice-arrow { font-size: .8rem; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid > div { padding: 12px; }
  .metric-grid strong { font-size: 1.03rem; }
  .report-card { padding: 22px 18px; }
  .report-node { padding: 16px; }
  .report-robustness th, .report-robustness td { padding: 9px; }
  .history li { gap: 9px; }
  .history li strong { font-size: .74rem; }
  .history li button { font-size: .7rem; }
  #generation-status { right: 16px; bottom: 16px; font-size: .75rem; }
}
@media (max-width: 360px) {
  .topbar { padding-inline: 14px; }
  .shell { padding-inline: 14px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: .83rem; }
  .brand-mark { width: 31px; height: 31px; }
  .topnav { gap: 7px; }
  .topnav .account-toggle { padding-inline: 9px; font-size: .69rem; }
  .topnav #retrospective-link { max-width: 54px; font-size: .6rem; }
  .welcome-bar > svg { display: none; }
  .home-hero h1 { font-size: 1.73rem; }
  .start-card { gap: 10px; padding: 17px 14px; }
  .start-icon { width: 35px; height: 35px; }
  .start-copy h2 { font-size: .91rem; }
  .start-arrow { display: none; }
  .topics { gap: 7px; }
  .topic { padding-inline: 8px; }
  .topic-title { font-size: .68rem; }
  .setup-card, .decision-card, .metrics-card, .history-card { padding-inline: 15px; }
  .intro-panel > div { display: grid; gap: 1px; }
  .round-label { font-size: .69rem; }
  .round-label span { margin-left: 7px; padding-left: 7px; }
  .report-showcase { padding: 21px 15px; }
  .showcase-visual { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
