:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --ink: #193f32;
  --muted: #536459;
  --green: #265e43;
  --line: #d4dace;
  --soft: #e9eee2;
  --white: #fffef9;
  --error: #953b27;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; -webkit-text-size-adjust: 100%; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .22em; }
button, .button { min-height: 48px; cursor: pointer; touch-action: manipulation; }
button { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 14px; padding: 12px 18px; line-height: 1.45; }
button:hover, .topic:hover { border-color: var(--green); background: #f0f3e9; }
button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: .58; }
:focus-visible { outline: 3px solid #98652b; outline-offset: 4px; }
h1:focus, h2:focus, main:focus { outline: none; }
.topbar { max-width: 1080px; margin: auto; display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; gap: 20px; }
.brand { font-size: 30px; font-weight: 750; text-decoration: none; letter-spacing: -1.7px; min-height: 48px; display: flex; align-items: center; }
.brand-dot { color: #5c7e3c; font-size: 38px; }
.languages { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 15px; }
.languages button { border: 0; background: transparent; padding: 8px 13px; min-height: 44px; border-radius: 10px; font-size: 14px; font-weight: 650; }
.languages button[aria-pressed="true"] { background: var(--ink); color: white; }
main { width: min(100% - 48px, 720px); margin: 34px auto 0; min-height: 45vh; }
main.index { max-width: 960px; width: min(100% - 48px, 960px); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 4.5vw, 43px); line-height: 1.2; font-weight: 650; letter-spacing: -.035em; margin-bottom: 22px; overflow-wrap: anywhere; }
h2 { font-size: clamp(23px, 3.2vw, 30px); line-height: 1.25; letter-spacing: -.025em; font-weight: 650; margin-bottom: 20px; }
h3 { font-size: 19px; line-height: 1.4; margin-bottom: 12px; }
p { margin-bottom: 18px; }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.lead { font-size: 19px; line-height: 1.6; max-width: 650px; }
.muted, .small, .helper { color: var(--muted); }
.small, .helper { font-size: 14px; line-height: 1.6; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.intro-card { margin: 30px 0 22px; }
.intro-card .actions { margin-bottom: 0; }
.pill { display: inline-block; font-size: 13px; color: var(--green); background: var(--soft); border-radius: 30px; padding: 6px 13px; margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; align-items: stretch; }
.primary { color: white; background: var(--green); border-color: var(--green); font-weight: 650; }
.primary:hover { color: white; background: var(--ink); }
.quiet { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .25em; }
.danger { color: var(--error); }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.topic { padding: 24px; border: 1px solid var(--line); border-radius: 21px; background: var(--white); text-decoration: none; display: flex; flex-direction: column; gap: 12px; min-height: 190px; transition: border-color .16s ease; }
.topic-number { font-size: 13px; color: var(--muted); }
.topic h2 { font-size: 23px; margin-bottom: 0; }
.topic p { font-size: 15px; margin-bottom: 0; color: var(--muted); }
.topic-arrow { margin-top: auto; color: var(--green); font-size: 24px; line-height: 1; }
.question-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.question-nav button { padding-left: 0; }
.question-count { font-size: 14px; color: var(--muted); text-align: right; }
progress { width: 100%; height: 5px; border: 0; border-radius: 10px; background: var(--line); display: block; margin-bottom: 32px; accent-color: var(--green); }
progress::-webkit-progress-bar { background: var(--line); border-radius: 10px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 10px; }
.transition { padding: 14px 18px; border-left: 3px solid var(--green); background: var(--soft); border-radius: 0 12px 12px 0; font-size: 15px; margin-bottom: 25px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.options { display: grid; gap: 10px; margin: 25px 0 18px; }
.option { width: 100%; text-align: left; padding: 16px 18px; display: flex; align-items: center; gap: 14px; overflow-wrap: anywhere; }
.option::before { content: ''; width: 19px; height: 19px; border: 1.5px solid #8c9c8d; border-radius: 50%; flex: 0 0 19px; }
.option[aria-pressed="true"] { background: var(--soft); border-color: var(--green); }
.option[aria-pressed="true"]::before { border: 6px solid var(--green); }
.option.auxiliary { font-size: 14px; background: transparent; padding: 13px 17px; }
.option.auxiliary::before { width: 16px; height: 16px; flex-basis: 16px; }
.option.auxiliary[aria-pressed="true"] { background: var(--soft); }
.exception-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.exception-options .option { width: auto; flex: 1 1 auto; min-height: 48px; padding: 10px 12px; gap: 8px; }
.preference-card { padding: 18px 22px; }
.preference-row + .preference-row { border-top: 1px solid var(--line); }
.preference-row { padding: 10px 0; }
.preference-row dt { margin-bottom: 3px; font-size: 13px; }
.preference-row dd { font-size: 16px; line-height: 1.45; }
.preference-row p { margin-bottom: 0; }
.topic-links { display: grid; gap: 4px; margin: 14px 0; }
.topic-links a { display: flex; align-items: center; min-height: 48px; font-size: 14px; }
.transcript > summary { font-size: 18px; }
label { display: block; font-weight: 600; margin: 22px 0 9px; }
textarea, input[type="email"] { display: block; width: 100%; min-height: 50px; padding: 14px; color: var(--ink); background: var(--white); border: 1px solid #8c9c8d; border-radius: 12px; }
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.character-count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }
.summary-group { margin: 30px 0; }
.summary-group h2 { font-size: 20px; margin: 0 0 16px; }
dl { margin: 0; }
.answer-row { padding: 18px 0; border-top: 1px solid var(--line); }
dt { font-size: 14px; color: var(--muted); margin-bottom: 7px; }
dd { margin: 0; font-size: 17px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.note { white-space: pre-wrap; overflow-wrap: anywhere; }
.result-head { padding-bottom: 3px; }
.result-head h1 { margin-bottom: 12px; }
.section { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 30px; }
.save-section { background: var(--soft); border-radius: 21px; padding: 25px; margin-top: 30px; }
.save-section h2 { font-size: 23px; }
.save-section .actions { margin-bottom: 0; }
details { margin-top: 20px; }
summary { min-height: 48px; padding: 11px 0; cursor: pointer; font-weight: 600; }
details p { margin-top: 15px; }
.demo-block { margin-top: 22px; }
.demo-draft { white-space: pre-wrap; padding: 24px; border-left: 3px solid var(--green); background: var(--soft); border-radius: 0 16px 16px 0; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 400; cursor: pointer; padding: 10px 0; }
.consent input { width: 23px; height: 23px; flex: 0 0 23px; margin: 2px 0 0; accent-color: var(--green); }
.consent span { padding-bottom: 7px; }
.status, .storage-note { max-width: 720px; width: calc(100% - 48px); margin: 18px auto; font-size: 14px; }
.status:empty, .storage-note:empty { display: none; }
.status { padding: 16px 18px; background: var(--soft); border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.status.error { color: var(--error); background: #f7e8df; }
.storage-note { color: var(--error); }
.receipt { color: var(--green); padding: 16px; background: var(--soft); border-radius: 12px; }
.error-inline { color: var(--error); font-size: 14px; }
footer { max-width: 960px; margin: 42px auto 25px; padding: 0 24px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px 24px; }
[hidden] { display: none !important; }
@media (min-width: 1000px) { main { margin-top: 55px; } main.index > h1 { max-width: 660px; } .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .topbar { padding: 14px 20px; }
  main, main.index { width: calc(100% - 36px); margin-top: 22px; }
  .card { padding: 23px 19px; border-radius: 20px; }
  .topics { grid-template-columns: 1fr; gap: 12px; }
  .topic { min-height: 150px; padding: 21px; }
  .topic h2 { font-size: 23px; }
  .lead { font-size: 17px; }
  .actions > button { flex: 1 1 190px; }
  .question-nav button { flex-shrink: 0; }
  .save-section { padding: 21px 18px; }
  .option { padding: 15px 14px; gap: 12px; }
  .status, .storage-note { width: calc(100% - 36px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
