:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20312e;
  background: #f3f4ef;
  font-synthesis: none;
  line-height: 1.55;
  --green: #244f42;
  --muted: #5b6862;
  --line: #d8ded6;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9c511b; outline-offset: 4px; }
.page { max-width: 1280px; padding: 0 40px; margin: 0 auto; }
.topbar { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { font-size: .8rem; font-weight: 750; letter-spacing: .025em; overflow-wrap: anywhere; }
.language-control { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-control label { color: var(--muted); font-size: .8rem; }
select { border: 1px solid #aab9ae; border-radius: 7px; background: #fffefa; color: #20312e; padding: 9px 30px 9px 11px; min-height: 44px; max-width: 100%; }
.hero { padding: 42px 0 30px; max-width: 830px; }
.eyebrow { margin: 0 0 9px; color: #52674e; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .17em; }
h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.12; font-weight: 700; letter-spacing: -.045em; }
.intro { color: var(--muted); max-width: 640px; margin: 17px 0 0; font-size: 1.04rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
form { min-width: 0; }
.panel { background: #fffefa; border: 1px solid var(--line); border-radius: 14px; padding: 25px; }
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.step { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border: 1px solid #becabd; color: var(--green); border-radius: 50%; font-size: .74rem; font-weight: 700; }
h2 { margin: 0; font-size: 1.12rem; font-weight: 720; letter-spacing: -.02em; }
.section-heading p { color: var(--muted); font-size: .83rem; margin: 3px 0 0; }
.field + .field { margin-top: 23px; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.field-heading label { font-size: .87rem; font-weight: 650; }
.counter { font-size: .72rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
input[type="text"], textarea { width: 100%; min-width: 0; display: block; border: 1px solid #aebcb0; border-radius: 7px; padding: 12px 13px; color: #20312e; background: white; }
textarea { resize: vertical; min-height: 135px; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: #6f7971; opacity: 1; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid #a0352d; }
.field-help { margin: 7px 0 0; color: var(--muted); font-size: .75rem; }
.review-section { margin: 28px 0 22px; }
.review-section > .section-heading { padding: 0 2px; margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; align-items: flex-start; padding: 19px 17px 16px; background: #fffefa; border: 1px solid #cfd8ce; border-radius: 12px; cursor: pointer; min-width: 0; transition: background-color .15s, border-color .15s; }
.card:hover { border-color: #698a6b; }
.card:has(input:checked) { background: #e8f0e4; border-color: #698963; }
.card:focus-within { outline: 2px solid #9c511b; outline-offset: 3px; }
.card-number { color: #697964; font-size: .69rem; letter-spacing: .12em; margin-bottom: 13px; }
.card-title { font-size: 1.15rem; font-weight: 720; line-height: 1.3; margin-bottom: 12px; overflow-wrap: anywhere; }
.card-help { font-size: .81rem; color: #44594b; }
.example { display: block; font-size: .75rem; color: #5e6148; margin: 16px 0 18px; padding-left: 10px; border-left: 2px solid #b9a575; }
.check-row { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 650; width: 100%; border-top: 1px solid #d7dfd2; min-height: 44px; }
input[type="checkbox"] { accent-color: var(--green); width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
.actions { padding: 21px 24px; }
.progress-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .8rem; font-weight: 650; }
.state { color: #646d60; font-weight: 500; font-size: .72rem; text-align: right; }
.state.is-saved { color: #24573b; }
progress { display: block; appearance: none; width: 100%; height: 6px; margin: 13px 0 22px; border: 0; border-radius: 5px; overflow: hidden; background: #e0e6da; }
progress::-webkit-progress-bar { background: #e0e6da; }
progress::-webkit-progress-value { background: #608156; }
progress::-moz-progress-bar { background: #608156; }
.buttons { display: flex; flex-wrap: wrap; gap: 9px; }
button { min-height: 44px; border: 1px solid #a6b5a5; background: #fffefa; color: var(--green); border-radius: 7px; padding: 10px 14px; font-weight: 650; font-size: .81rem; overflow-wrap: anywhere; }
button:hover { background: #edf2e8; }
button.primary { background: var(--green); color: white; border-color: var(--green); }
button.primary:hover { background: #173c30; }
button.quiet { border-color: transparent; color: #53634f; }
button:disabled { opacity: .6; cursor: wait; }
.error, .status { margin: 12px 0 0; font-size: .82rem; overflow-wrap: anywhere; }
.error { color: #8c2925; background: #fff0e9; border-radius: 6px; padding: 10px 12px; }
.error:empty, .status:empty { display: none; }
.status { color: #3d624c; }
.saved-panel { padding: 23px 21px; }
.saved-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.saved-heading h2 { font-size: 1rem; }
.aside-hint { margin: 11px 0 21px; color: var(--muted); font-size: .79rem; }
.saved-list { padding: 0; margin: 0; list-style: none; }
.empty-records { border: 1px dashed #c3ccbe; border-radius: 8px; padding: 25px 15px; color: #63725e; text-align: center; font-size: .82rem; }
.saved-record { border-top: 1px solid var(--line); padding: 14px 0; }
.open-record { text-align: left; display: block; background: none; border: 0; width: 100%; padding: 8px 2px; font-size: .9rem; color: #254f3d; border-radius: 4px; white-space: pre-wrap; }
.record-meta { color: var(--muted); margin: 5px 0 4px; font-size: .72rem; }
.delete-record { color: #854739; border: 0; background: none; padding: 8px 4px; min-height: 44px; font-size: .75rem; }
.export { margin-top: 22px; }
.export textarea { margin-top: 14px; min-height: 220px; font-size: .85rem; background: #f7f8f2; }
footer { border-top: 1px solid var(--line); color: var(--muted); margin: 33px 0 0; padding: 22px 0 30px; max-width: 100%; font-size: .75rem; }
noscript { display: block; padding: 20px; color: #8c2925; }
@media (max-width: 1050px) {
  .page { padding: 0 25px; }
  .layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .card-number { margin-bottom: 5px; }
  .card-title { margin-bottom: 8px; }
  .example { margin: 10px 0 13px; }
}
@media (max-width: 740px) {
  .page { padding: 0 18px; }
  .topbar { min-height: 100px; align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px 0; }
  .brand { font-size: .73rem; }
  .language-control { width: 100%; justify-content: space-between; }
  .hero { padding: 29px 0 24px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .panel { padding: 20px 17px; }
  .section-heading { gap: 10px; }
  .saved-panel { order: 2; }
  .buttons > button { flex: 1 1 145px; }
  .buttons > .quiet { flex-basis: 100%; }
  .progress-heading { align-items: flex-start; }
  h1 { letter-spacing: -.035em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
