/* generated from design/tokens.json */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/Inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/Inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/SpaceGrotesk-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/SpaceGrotesk-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #fefcf2;
  --bg2: #f8f4e6;
  --paper: #fffefb;
  --surface: #ffffff;
  --fg: #2d2d2d;
  --muted: #6b6b6b;
  --subtle: #999999;
  --accent: #eb5c38;
  --accent-deep: #d44b29;
  --accent-soft: #fad9cc;
  --accent2: #8794ff;
  --accent2-soft: #d1d7ee;
  --border: #ece7d6;
  --rule: #a6a6a6;
  --font-heading: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
}

:root {
  --line: color-mix(in srgb, var(--rule) 55%, var(--border));
  --line-strong: color-mix(in srgb, var(--rule) 80%, var(--border));
  --field-bg: var(--surface);
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: 1.25rem;
  --focus: 0 0 0 3px color-mix(in srgb, var(--accent2) 45%, transparent);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.55;
  background: var(--bg2);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  font-feature-settings: "cv11", "ss01";
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--accent);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(1.85rem, 1.4rem + 2.2vw, 2.6rem); }

p { margin: 0 0 0.9em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 600; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1:focus, h1:focus-visible { box-shadow: none; outline: none; }

[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.muted { color: var(--muted); }

/* ---------- header / footer ---------- */

.site-header { padding: 1.5rem 0 0.5rem; }
.header-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.header-note { margin: 0; color: var(--muted); font-size: 0.85rem; }

.wordmark {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.wordmark-small { font-size: 1rem; margin-bottom: 1rem; }

main { flex: 1; padding-top: 1.5rem; padding-bottom: 4rem; }
main:focus { outline: none; }

.site-footer {
  background: var(--accent2-soft);
  padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom));
  font-size: 0.9rem;
}
.footer-inner { display: grid; gap: 1.5rem; }
.site-footer p, .site-footer address { margin: 0 0 0.35rem; font-style: normal; }
.site-footer a { color: var(--fg); }
.footer-nav { display: flex; gap: 1.25rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--fg); text-decoration: underline; }

.loading { color: var(--muted); padding: 3rem 0; }

/* ---------- panels, steps ---------- */

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
}

.lead { font-size: 1.12rem; line-height: 1.5; color: var(--fg); }

.panel { position: relative; padding: 0.5rem 0 0; }
.panel h1 { margin-bottom: 1rem; max-width: 18ch; }
.panel-intro h1 { max-width: 14ch; }
.panel-message .list { margin-bottom: 1.25rem; }

.motif {
  display: block;
  width: 84px;
  height: auto;
  margin: 0 0 1.5rem;
}

.intro-forms {
  list-style: none;
  counter-reset: f;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.5rem;
}
.intro-forms li {
  counter-increment: f;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
}
.intro-forms li::before {
  content: counter(f);
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent2-soft);
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.infobox {
  background: var(--accent2-soft);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.35rem 1.4rem;
  margin: 0 0 1.5rem;
}
.infobox h2 { font-size: 1.15rem; color: var(--fg); margin-bottom: 0.6rem; }
.infobox p { font-size: 0.97rem; }

.step-header { margin-bottom: 1.75rem; }
.step-header h1 { margin-bottom: 0.6rem; }
.step-header .lead { color: var(--muted); font-size: 1.02rem; }

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.step-nav-start { justify-content: flex-start; }

/* ---------- progress ---------- */

.progress { margin: 0 0 2rem; }
.progress-count { margin: 0 0 0.6rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 0.6rem; }
.progress-top .progress-count { margin: 0; }
.progress-reset { margin-left: auto; font-size: 0.85rem; color: var(--muted); }
.progress-current { font-weight: 500; }
.progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
}
.progress-item { flex: 1; min-width: 0; }
.progress-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  border-top: 4px solid var(--border);
  border-radius: 0;
}
button.progress-link { cursor: pointer; }
.progress-item.is-done .progress-link { border-top-color: var(--accent2); }
.progress-item.is-current .progress-link { border-top-color: var(--accent); }
.progress-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- form blocks ---------- */

.form-body { display: grid; gap: 1.25rem; }
.form-body > *, .card > *, .options > *, .trow > *, .sig-row > * { min-width: 0; }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.15rem 1.5rem;
  display: grid;
  gap: 1.15rem;
}
.card-title { font-size: 1.3rem; }
.card-hint { margin: -0.75rem 0 0; color: var(--muted); font-size: 0.92rem; }

.block-heading { color: var(--fg); margin-top: 0.75rem; }
h2.block-heading { font-size: 1.35rem; color: var(--accent); }
h2.level-0 { font-size: 1.6rem; }
h3.block-heading { font-size: 1.1rem; }

.para { max-width: 38rem; line-height: 1.65; }
.para-small { font-size: 0.82rem; color: var(--muted); }
.para-note {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}
.list { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.4rem; line-height: 1.6; }
.list li::marker { color: var(--accent2); }

.field { display: grid; gap: 0.4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.field { min-inline-size: 0; }
.field-label {
  display: block;
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--fg);
}
.req { color: var(--accent-deep); font-weight: 600; }
.field-hint { display: block; margin-top: -0.25rem; color: var(--muted); font-size: 0.86rem; }
legend.field-label { margin-bottom: 0.4rem; float: left; width: 100%; }
legend.field-label + * { clear: both; }
fieldset.field > .field-hint { clear: both; margin: -0.15rem 0 0.45rem; }

.input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--fg);
  background: var(--field-bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.input { resize: vertical; min-height: 6.5rem; }
.input::placeholder { color: var(--subtle); opacity: 1; }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--accent2); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--accent-deep); }

.parts { display: grid; gap: 0.9rem; clear: both; }
.parts .field-label { font-weight: 500; font-size: 0.88rem; color: var(--muted); }

.gap { display: inline; }
.input.input-gap {
  display: inline-block;
  width: var(--gap-w, 12em);
  min-width: 7em;
  max-width: 100%;
  min-height: 0;
  height: 2.1rem;
  margin: 0.15rem 0;
  padding: 0.2rem 0.5rem;
  vertical-align: baseline;
  border: 0;
  border-bottom: 1.5px solid var(--line-strong);
  border-radius: 6px 6px 0 0;
  background: var(--bg);
}
.input.input-gap:focus { border-bottom-color: var(--accent2); box-shadow: 0 2px 0 0 var(--accent2); }
.input.input-gap[aria-invalid="true"] { border-bottom-color: var(--accent-deep); }

.field-error, .gap-errors .field-error {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-deep);
}
.field-error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--accent-deep);
  color: var(--surface);
  font-size: 0.72rem;
  font-weight: 700;
}
.gap-errors:empty { display: none; }
.gap-errors { display: grid; gap: 0.25rem; }

.step-errors {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 500;
}

/* ---------- choices ---------- */

.options { display: flex; flex-wrap: wrap; gap: 0.5rem; clear: both; }
.options.cols-1 { display: grid; grid-template-columns: 1fr; }
.options.cols-2, .options.cols-3, .options.cols-4, .options.cols-5 { display: grid; grid-template-columns: 1fr 1fr; }

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.7rem 0.95rem 0.7rem 0.8rem;
  background: var(--field-bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  line-height: 1.4;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.option:hover { border-color: var(--line-strong); }
.option:has(.box:checked) {
  border-color: var(--accent2);
  background: color-mix(in srgb, var(--accent2-soft) 45%, var(--surface));
}
.option:has(.box:focus-visible) { box-shadow: var(--focus); }
.option-text { flex: 1; min-width: 0; padding-top: 0.05rem; }
.option:has(.gap) { flex-wrap: wrap; row-gap: 0.4rem; }
.option:has(> .gap) > .option-text { flex: none; }
.choice-row .option:has(.gap) { flex-basis: 100%; }
.option > .gap { flex: 1 1 9em; min-width: 0; }
.option > .gap .input-gap { width: 100%; }

.box {
  flex: none;
  appearance: none;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.05rem 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface) center / 0.85rem no-repeat;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.box[type="radio"] { border-radius: 50%; }
.box:focus-visible { box-shadow: none; }
.box:checked {
  border-color: var(--accent2);
  background-color: var(--accent2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.box[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.6' fill='white'/%3E%3C/svg%3E");
  background-size: 1rem;
}
.choice[aria-invalid="true"] .option, .has-error > .options .option { border-color: color-mix(in srgb, var(--accent-deep) 55%, var(--line)); }

/* ---------- tables ---------- */

.table-block { display: grid; gap: 0.75rem; }
.thead { display: none; }
.trow {
  margin: 0;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  display: grid;
  gap: 0.75rem;
  min-inline-size: 0;
}
.trow-legend { padding: 0 0.35rem; margin-left: -0.35rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent2); }
.tcell .field-label { font-weight: 500; font-size: 0.88rem; color: var(--muted); }

/* ---------- signatures ---------- */

.card-signature { gap: 1.5rem; }
.sig-pad { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sig-row { display: grid; gap: 1.25rem; }
.sig-box {
  position: relative;
  height: 11rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.has-error .sig-box { border-color: var(--accent-deep); }
.sig-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  z-index: 1;
}
.sig-line {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 2.6rem;
  border-bottom: 1.5px solid var(--line-strong);
}
.sig-line::before {
  content: "×";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  font-size: 1.1rem;
  color: var(--subtle);
}
.sig-help {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--subtle);
  pointer-events: none;
}
.sig-box.is-signed .sig-help { visibility: hidden; }
.sig-box:has(.sig-canvas:focus-visible) { box-shadow: var(--focus); }
.sig-actions { display: flex; justify-content: flex-end; margin-top: 0.4rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.6rem;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn-primary { background: var(--accent-deep); color: var(--surface); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent-deep) 88%, black); }
.btn-primary:disabled { background: var(--rule); cursor: progress; }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--fg); }
.btn-large { min-height: 3.4rem; padding: 0.85rem 2rem; font-size: 1.1rem; }
.btn:focus-visible { box-shadow: var(--focus); border-radius: 999px; }

.btn-quiet {
  padding: 0.35rem 0.2rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-deep);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s ease;
}
.btn-quiet:hover { text-decoration-color: currentColor; }
.btn-danger { background: var(--accent-deep); color: var(--surface); }
.btn-danger:hover { background: color-mix(in srgb, var(--accent-deep) 85%, black); }

/* ---------- confirm dialog ---------- */

.confirm {
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 1.6rem 1.6rem 1.3rem;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.18);
}
.confirm::backdrop { background: rgb(45 45 45 / 0.45); }
.confirm h2 { margin: 0 0 0.6rem; font-size: 1.25rem; }
.confirm p { margin: 0 0 1.4rem; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; }

/* ---------- review ---------- */

.review-body { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.summary { display: grid; gap: 0.25rem; }
.summary-title {
  margin: 0.9rem 0 0.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
}
.summary-title:first-child { margin-top: 0; }
.summary-list { margin: 0; display: grid; }
.summary-row { display: grid; gap: 0.1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { font-size: 0.85rem; color: var(--muted); }
.summary-row dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.summary-sig { display: block; max-width: 16rem; height: auto; margin-top: 0.25rem; }

.send-box { margin-top: 0.5rem; }
.send-row { margin-top: 1.1rem; }
.send-status { margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--muted); }
.send-status:empty { display: none; }
.send-status.is-error {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent-deep);
  font-weight: 500;
}

.print-only { display: none; }

/* ---------- larger screens ---------- */

@media (min-width: 560px) {
  :root { --gutter: 2rem; }
  .parts { grid-template-columns: 1fr 1fr; }
  .options.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .sig-row:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; align-items: start; }
  .field-sig { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 760px) {
  .site-header { padding-top: 2.5rem; }
  .wordmark { font-size: 1.2rem; }
  main { padding-top: 2.5rem; }
  .card { padding: 1.9rem 2rem 2.1rem; }
  .options.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .options.cols-5 { grid-template-columns: repeat(5, 1fr); }
  .motif { position: absolute; right: 0; top: 0; width: 120px; margin: 0; }
  .panel-intro { padding-top: 1rem; }
  .infobox { padding: 1.6rem 1.8rem; }
  .summary-row { grid-template-columns: 15rem 1fr; gap: 1.25rem; }
  .progress-text {
    position: static;
    width: auto; height: auto;
    overflow: hidden;
    clip-path: none;
    display: block;
    padding-top: 0.5rem;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    color: var(--muted);
  }
  .progress-item.is-current .progress-text { color: var(--fg); font-weight: 600; }
  button.progress-link:hover .progress-text { color: var(--fg); text-decoration: underline; }
  .progress-count { display: none; }

  .thead, .trow { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
  .thead { display: grid; gap: 0.6rem; padding: 0 0.1rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
  .trow { border: 0; padding: 0; background: none; gap: 0.6rem; }
  .trow-legend, .tcell .field-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .table-block { gap: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- print: only the answers ---------- */

@media print {
  @page { margin: 18mm 16mm; }
  html, body { background: #fff; color: #000; font-size: 10.5pt; }
  .site-header, .site-footer, main > :not(#print-root) { display: none !important; }
  main { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .print-only { display: block; }
  .print-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 8mm; font-size: 9pt; color: #444; }
  .print-header p:last-child { text-align: right; margin: 0; }
  #print-root h1 { font-size: 20pt; margin-bottom: 2mm; }
  .print-form { margin-top: 8mm; }
  .print-form h2 { font-size: 14pt; margin-bottom: 3mm; padding-bottom: 2mm; border-bottom: 1px solid #999; }
  .summary-title { color: #555; margin-top: 4mm; }
  .summary-row { grid-template-columns: 62mm 1fr; gap: 4mm; padding: 1.6mm 0; border-color: #ddd; break-inside: avoid; }
  .summary-row dt { color: #555; }
  .summary-sig { max-width: 60mm; }
}

/* ---------- shared details, consent, final signature ---------- */

.date-echo { min-height: 1.2em; color: var(--muted); font-size: 0.86rem; }
.bound { font-weight: 600; color: var(--fg); }
.card-consent .option { align-items: flex-start; }
.card-consent .option-text { font-weight: 600; }
.card-consent .field-hint { margin: 0.6rem 0 0; }
.final-signature .list { margin: 0 0 1.2rem; }
.final-signature.has-error .sig-box { border-color: var(--accent-deep); }
.notice { margin: 1.5rem 0 0; background: var(--accent-soft); }
.notice h2 { color: var(--accent-deep); }
.co-signature { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* ---------- yes/no toggle ---------- */

.field-switch { padding: 0.35rem 0; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; }
.switch-text { display: grid; gap: 0.25rem; }
.switch-label { font-weight: 600; }
.switch-text .field-hint { margin: 0; }
.switch-control { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; flex: none; }
.switch-input { position: absolute; inset: 0; width: 3.1rem; height: 1.8rem; margin: 0; opacity: 0; cursor: pointer; }
.switch-track {
  position: relative;
  width: 3.1rem;
  height: 1.8rem;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background-color 0.15s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
  transition: transform 0.15s ease;
}
.switch-input:checked + .switch-track { background: var(--accent-deep); }
.switch-input:checked + .switch-track::after { transform: translateX(1.3rem); }
.switch-input:focus-visible + .switch-track { box-shadow: var(--focus); }
.switch-state { min-width: 2.2rem; font-size: 0.92rem; color: var(--muted); }
