/* ============================================================================
 * Estilos globales del prototipo DDJJ - OSPAT
 * Paleta: verde-azul salud (evitando logos/brand; paleta propia original).
 * ============================================================================ */

:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f8f9fb;
  --c-surface: #ffffff;
  --c-ink: #0f1f1a;
  --c-ink-2: #3d4a45;
  --c-ink-3: #6b7771;
  --c-ink-4: #9ba49f;
  --c-line: #e4e7e2;
  --c-line-2: #eef0ec;
  --c-brand: #1e64aa;        /* OSPAT blue (sampled from logo) */
  --c-brand-hi: #2a7dc9;
  --c-brand-lo: #174f87;
  --c-brand-ghost: #e8f0fa;
  --c-brand-tint: #f1f6fc;
  --c-accent: #f0a500;        /* warm accent */
  --c-err: #b3261e;
  --c-err-tint: #fdecea;
  --c-ok: #1e7a52;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15,31,26,0.04), 0 1px 1px rgba(15,31,26,0.03);
  --shadow-md: 0 6px 18px rgba(15,31,26,0.06), 0 2px 4px rgba(15,31,26,0.04);
  --shadow-lg: 0 24px 60px rgba(15,31,26,0.10), 0 8px 20px rgba(15,31,26,0.06);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;

  --font-sans: 'Nunito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Nunito', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root[data-density="compact"] {
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 14px;
  --space-6: 18px;
  --space-7: 24px;
}
:root[data-density="comfy"] {
  --space-3: 14px;
  --space-4: 20px;
  --space-5: 26px;
  --space-6: 30px;
  --space-7: 40px;
}

:root[data-theme="dark"] {
  --c-bg: #0d1612;
  --c-bg-alt: #121c17;
  --c-surface: #16211c;
  --c-ink: #eef2ee;
  --c-ink-2: #c6cec9;
  --c-ink-3: #8e9a93;
  --c-ink-4: #5e6a64;
  --c-line: #24312b;
  --c-line-2: #1b2621;
  --c-brand-ghost: #183128;
  --c-brand-tint: #142820;
  --c-err-tint: #33120e;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
}

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ─── App shell ──────────────────────────────────────────────────────────── */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 700px at 0% -10%, var(--c-brand-tint) 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 110%, color-mix(in oklab, var(--c-brand) 8%, transparent) 0%, transparent 55%),
    var(--c-bg);
}

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: color-mix(in oklab, var(--c-bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line-2);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 38px; width: auto; display: block; object-fit: contain; }
:root[data-theme="dark"] .brand-logo { filter: brightness(1.4) saturate(0.9); }
.brand-divider { width: 1px; height: 26px; background: var(--c-line); }
.brand-name { font-weight: 800; letter-spacing: -0.01em; font-size: 14px; color: var(--c-ink); }
.brand-sub { font-size: 12px; color: var(--c-ink-3); font-weight: 500; }

.topbar-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--c-ink-3); }
.topbar-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-ok); display: inline-block; }

/* ─── Progress rail ──────────────────────────────────────────────────────── */
.progress-rail {
  position: relative;
  height: 3px;
  background: var(--c-line-2);
  overflow: hidden;
}
.progress-rail .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-brand-hi) 100%);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Main layout ────────────────────────────────────────────────────────── */
.main {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6);
  gap: var(--space-7);
}
@media (max-width: 860px) {
  .main { grid-template-columns: 1fr; padding: var(--space-4); gap: var(--space-4); }
  .sidebar { order: 2; }
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  display: flex; flex-direction: column; gap: var(--space-5);
}
.sidebar-section { display: flex; flex-direction: column; gap: var(--space-3); }
.sidebar-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-ink-4);
}
.people-list { display: flex; flex-direction: column; gap: 2px; }
.person-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--c-ink-2);
  transition: background 0.15s, color 0.15s;
}
.person-item.current { background: var(--c-brand-ghost); color: var(--c-brand-lo); font-weight: 600; }
.person-item.done { color: var(--c-ink-3); }
.person-item .p-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-line); display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--c-ink-3);
  flex: 0 0 24px;
}
.person-item.current .p-avatar { background: var(--c-brand); color: white; }
.person-item.done .p-avatar { background: var(--c-brand-tint); color: var(--c-brand); }
.person-item .p-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-item .p-status { font-size: 11px; color: var(--c-ink-4); }
.person-item.done .p-status { color: var(--c-ok); }

.side-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm);
}
.side-card-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.side-card-h svg { width: 16px; height: 16px; color: var(--c-brand); }
.side-card-p { font-size: 12.5px; line-height: 1.55; color: var(--c-ink-3); }

/* ─── Content stage ──────────────────────────────────────────────────────── */
.stage {
  display: flex; flex-direction: column; gap: var(--space-5);
  min-width: 0;
}
.stage-h {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
}
.step-counter {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--c-ink-4);
  text-transform: uppercase;
}
.section-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--c-brand-ghost);
  color: var(--c-brand-lo);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.section-chip .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) {
  .card { padding: var(--space-5); border-radius: var(--radius); }
}

.card-title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
  color: var(--c-ink);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.card-sub {
  color: var(--c-ink-3);
  font-size: 15px;
  margin: 0 0 var(--space-6);
  max-width: 60ch;
}

/* ─── Fields ─────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-5); }
.field:last-child { margin-bottom: 0; }
.fld-lbl { display: flex; flex-direction: column; gap: 4px; }
.fld-lbl-row { display: flex; align-items: baseline; gap: 10px; }
.fld-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-ink-4);
  letter-spacing: 0.02em;
  font-weight: 500;
  min-width: 28px;
}
.fld-title {
  font-size: 16px;
  color: var(--c-ink);
  font-weight: 500;
  line-height: 1.4;
}
.fld-req { color: var(--c-brand); margin-left: 2px; }
.fld-help { font-size: 13px; color: var(--c-ink-3); margin-left: 38px; line-height: 1.5; }

.fld-input-wrap { position: relative; }
.fld-input-wrap.has-suffix .fld-input { padding-right: 56px; }
.fld-suffix {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-ink-4);
  pointer-events: none;
}

.fld-input, .fld-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--c-ink);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}
.fld-input:focus, .fld-textarea:focus {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-brand) 15%, transparent);
  background: var(--c-surface);
}
.fld-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.field.is-err .fld-input, .field.is-err .fld-textarea { border-color: var(--c-err); }
.field.is-err .fld-input:focus, .field.is-err .fld-textarea:focus {
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-err) 12%, transparent);
}
.fld-err {
  font-size: 13px;
  color: var(--c-err);
  margin-top: 2px;
  display: flex; align-items: center; gap: 6px;
}
.fld-err::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--c-err); display: inline-block;
}

/* ─── Radio pills (Sí / No) ──────────────────────────────────────────────── */
.rdo-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 420px;
}
.rdo-pill {
  appearance: none;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 18px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500;
  color: var(--c-ink-2);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}
.rdo-pill:hover { border-color: var(--c-ink-4); background: var(--c-surface); }
.rdo-pill-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--c-line);
  display: grid; place-items: center;
  background: var(--c-bg-alt);
  transition: all 0.18s;
  flex: 0 0 20px;
  color: white;
}
.rdo-pill.is-selected {
  border-color: var(--c-brand);
  background: var(--c-brand-ghost);
  color: var(--c-brand-lo);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-brand) 10%, transparent);
}
.rdo-pill.is-selected .rdo-pill-check {
  background: var(--c-brand); border-color: var(--c-brand);
}
.rdo-pill.rdo-no.is-selected {
  border-color: var(--c-ink-2);
  background: color-mix(in oklab, var(--c-ink-2) 6%, var(--c-bg-alt));
  color: var(--c-ink);
}
.rdo-pill.rdo-no.is-selected .rdo-pill-check { background: var(--c-ink-2); border-color: var(--c-ink-2); }

/* ─── Radio list ─────────────────────────────────────────────────────────── */
.rdo-list { display: flex; flex-direction: column; gap: 6px; }
.rdo-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-bg-alt);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 15px;
  color: var(--c-ink-2);
}
.rdo-row:hover { border-color: var(--c-ink-4); }
.rdo-row input { position: absolute; opacity: 0; pointer-events: none; }
.rdo-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--c-line);
  background: var(--c-bg-alt);
  transition: all 0.18s;
  position: relative;
  flex: 0 0 18px;
}
.rdo-row.is-selected {
  border-color: var(--c-brand);
  background: var(--c-brand-ghost);
  color: var(--c-brand-lo);
}
.rdo-row.is-selected .rdo-dot { border-color: var(--c-brand); }
.rdo-row.is-selected .rdo-dot::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--c-brand);
}

/* ─── Checkbox grid ──────────────────────────────────────────────────────── */
.chk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.chk-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-bg-alt);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14.5px;
  color: var(--c-ink-2);
}
.chk-row:hover { border-color: var(--c-ink-4); }
.chk-row input { position: absolute; opacity: 0; pointer-events: none; }
.chk-box {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--c-line);
  background: var(--c-bg-alt);
  display: grid; place-items: center;
  color: white;
  transition: all 0.18s;
  flex: 0 0 18px;
}
.chk-row.is-selected {
  border-color: var(--c-brand);
  background: var(--c-brand-ghost);
  color: var(--c-brand-lo);
}
.chk-row.is-selected .chk-box {
  background: var(--c-brand); border-color: var(--c-brand);
}

/* ─── Nav actions ────────────────────────────────────────────────────────── */
.actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-line-2);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--c-brand);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--c-brand-hi); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--c-ink-2);
  border-color: var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-ink-4); background: var(--c-bg-alt); }
.btn-subtle {
  background: var(--c-bg-alt);
  color: var(--c-ink-2);
  border-color: var(--c-line);
}
.btn-subtle:hover { background: var(--c-surface); border-color: var(--c-ink-4); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-danger-ghost { color: var(--c-err); border-color: transparent; }
.btn-danger-ghost:hover { background: var(--c-err-tint); }

/* ─── Welcome screen ─────────────────────────────────────────────────────── */
.welcome {
  max-width: 720px; margin: 0 auto; padding: var(--space-9) var(--space-4);
}
.welcome-logo { height: 72px; width: auto; display: block; margin-bottom: var(--space-6); object-fit: contain; }
:root[data-theme="dark"] .welcome-logo { filter: brightness(1.4) saturate(0.9); }
.welcome-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--c-brand-ghost);
  color: var(--c-brand-lo);
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.welcome-eyebrow svg { width: 13px; height: 13px; }
.welcome h1 {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-5);
  font-weight: 900;
  color: var(--c-ink);
}
.welcome h1 em { font-style: italic; color: var(--c-brand); }
.welcome-lead {
  font-size: 19px; line-height: 1.55;
  color: var(--c-ink-2);
  max-width: 56ch;
  margin-bottom: var(--space-7);
}
.welcome-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
@media (max-width: 720px) {
  .welcome h1 { font-size: 40px; }
  .welcome-info { grid-template-columns: 1fr; }
}
.info-tile {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: 10px;
}
.info-tile svg { width: 20px; height: 20px; color: var(--c-brand); }
.info-tile-label { font-size: 13px; font-weight: 600; color: var(--c-ink); }
.info-tile-desc { font-size: 13px; color: var(--c-ink-3); line-height: 1.5; }

.disclaimer {
  background: var(--c-brand-tint);
  border: 1px solid color-mix(in oklab, var(--c-brand) 20%, var(--c-line));
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-ink-2);
  margin-bottom: var(--space-6);
  display: flex; gap: 12px;
}
.disclaimer svg { width: 18px; height: 18px; color: var(--c-brand); flex: 0 0 18px; margin-top: 2px; }

/* ─── Person intro ───────────────────────────────────────────────────────── */
.person-intro-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: var(--space-5);
}
.person-avatar-lg {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-hi) 100%);
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  box-shadow: var(--shadow-sm);
}
.person-intro-h { font-size: 13px; color: var(--c-ink-3); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.person-intro-n { font-family: var(--font-display); font-size: 26px; line-height: 1.1; color: var(--c-ink); font-weight: 800; letter-spacing: -0.01em; }

/* ─── Success ────────────────────────────────────────────────────────────── */
.success {
  max-width: 640px; margin: 0 auto; padding: var(--space-9) var(--space-4);
  text-align: center;
}
.success-mark {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--c-brand-ghost);
  color: var(--c-brand);
  display: grid; place-items: center;
  margin: 0 auto var(--space-6);
  position: relative;
  animation: successPop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.success-mark svg { width: 40px; height: 40px; stroke-width: 2.4; }
.success-mark::after {
  content: ''; position: absolute; inset: -8px;
  border: 2px solid var(--c-brand-ghost);
  border-radius: 50%;
  animation: successRing 1.2s ease-out;
}
@keyframes successPop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes successRing { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.2); opacity: 0; } }
.success h2 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 var(--space-4);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.success p { font-size: 16px; color: var(--c-ink-3); margin-bottom: var(--space-6); }
.success-receipt {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-align: left;
  font-size: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.success-receipt .row { display: flex; justify-content: space-between; gap: 16px; }
.success-receipt .k { color: var(--c-ink-3); }
.success-receipt .v { color: var(--c-ink); font-weight: 500; font-family: var(--font-mono); font-size: 13px; }

/* ─── Review screen ──────────────────────────────────────────────────────── */
.review-section { margin-bottom: var(--space-6); }
.review-section-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--c-line-2);
}
.review-section-h h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}
.review-edit {
  background: transparent; border: none; color: var(--c-brand);
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
}
.review-edit:hover { background: var(--c-brand-ghost); }
.review-edit svg { width: 14px; height: 14px; }

.review-list { display: flex; flex-direction: column; gap: 2px; }
.review-item {
  display: grid;
  grid-template-columns: 40px 1fr 1.2fr;
  gap: var(--space-3);
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line-2);
  align-items: start;
  font-size: 14.5px;
}
.review-item:last-child { border-bottom: none; }
.review-item .rv-num { font-family: var(--font-mono); font-size: 12px; color: var(--c-ink-4); padding-top: 2px; }
.review-item .rv-q { color: var(--c-ink-2); line-height: 1.5; }
.review-item .rv-a { color: var(--c-ink); font-weight: 500; line-height: 1.5; white-space: pre-wrap; }
.review-item .rv-a.empty { color: var(--c-ink-4); font-weight: 400; font-style: italic; }

/* ─── Add another ben dialog ─────────────────────────────────────────────── */
.add-ben-hero {
  background: linear-gradient(135deg, var(--c-brand-tint) 0%, var(--c-brand-ghost) 100%);
  border: 1px solid color-mix(in oklab, var(--c-brand) 15%, var(--c-line));
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  display: flex; align-items: center; gap: var(--space-4);
}
.add-ben-hero-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: white; color: var(--c-brand);
  display: grid; place-items: center;
  flex: 0 0 48px;
}
.add-ben-hero-icon svg { width: 24px; height: 24px; }
.add-ben-hero h4 { margin: 0 0 4px; font-size: 17px; color: var(--c-brand-lo); }
.add-ben-hero p { margin: 0; font-size: 14px; color: var(--c-ink-2); line-height: 1.5; }

/* ─── Closing jurament ───────────────────────────────────────────────────── */
.jurament-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: var(--space-5);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s;
}
.jurament-row.is-selected {
  background: var(--c-brand-ghost);
  border-color: var(--c-brand);
}
.jurament-row input { position: absolute; opacity: 0; pointer-events: none; }
.jurament-row .chk-box { margin-top: 2px; flex-shrink: 0; }
.jurament-row.is-selected .chk-box {
  background: var(--c-brand); border-color: var(--c-brand);
  color: #fff;
}
.jurament-row.is-selected .chk-box svg { color: #fff; }
.jurament-row .text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--c-ink-2);
}
.jurament-row.is-selected .text { color: var(--c-brand-lo); }

/* ─── Transitions ────────────────────────────────────────────────────────── */
.fade-enter { animation: fadeSlide 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Autosave pill ──────────────────────────────────────────────────────── */
.save-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--c-ink-3);
  padding: 4px 10px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: 999px;
}
.save-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-ok); }

/* ─── Print / PDF ────────────────────────────────────────────────────────── */
.print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: white !important; }
  .no-print, .topbar, .progress-rail, .twk-panel, .sidebar { display: none !important; }
  .print-sheet {
    display: block !important;
    color: #111;
    font-size: 11pt;
    line-height: 1.45;
    font-family: var(--font-sans);
  }
  .print-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    border-bottom: 2px solid #1e64aa; padding-bottom: 10px; margin-bottom: 14px;
  }
  .print-meta { text-align: right; font-size: 10pt; color: #333; }
  .print-ident {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    font-size: 10pt; margin-bottom: 18px;
    background: #f4f7fb; padding: 10px 12px; border-radius: 4px;
  }
  .print-ident span { color: #555; font-weight: 600; margin-right: 4px; }
  .print-person { break-inside: avoid; margin-bottom: 18px; }
  .print-person h3 {
    font-size: 13pt; font-family: var(--font-display); font-weight: 800;
    margin: 12px 0 6px; color: #1e64aa;
    border-bottom: 1px solid #ddd; padding-bottom: 4px;
  }
  .print-person h3 small { color: #777; font-size: 9pt; }
  .print-table { width: 100%; border-collapse: collapse; }
  .print-table td {
    padding: 5px 6px; border-bottom: 1px solid #eee;
    vertical-align: top; font-size: 10pt;
  }
  .print-table .pr-num { width: 40px; color: #777; font-family: var(--font-mono); font-size: 9pt; }
  .print-table .pr-q { width: 45%; color: #333; }
  .print-table .pr-a { font-weight: 500; color: #111; }
  .print-closing { margin-top: 20px; font-size: 10pt; break-inside: avoid; }
  .print-sign {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px;
    text-align: center; font-size: 9pt; color: #555;
  }
  .sign-line { border-top: 1px solid #333; margin-bottom: 6px; }
}
.follow-ups {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  padding-left: var(--space-4);
  border-left: 2px solid var(--c-brand-tint);
  display: flex; flex-direction: column; gap: var(--space-4);
  animation: fadeSlide 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.follow-ups .fld-help { margin-left: 0; }

/* ─── Identification stacked ─────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }
