/* ============================================================
   TOKENS
   ============================================================ */
:root{
  --ink:#16302C;
  --ink-soft:#2B4440;
  --muted-ink:#5C6C67;
  --paper:#FAF6EE;
  --paper-raised:#FFFEFA;
  --paper-sunken:#F1EBDC;
  --teal:#2F6F62;
  --teal-deep:#1F4D43;
  --teal-tint:#E4EEE9;
  --rust:#C1502D;
  --rust-tint:#F7E4DA;
  --alert:#A63232;
  --alert-tint:#F7E1DD;
  --line:#DED4BF;
  --line-dark:#C7B8A0;

  --font-display:'Fraunces', ui-serif, Georgia, serif;
  --font-body:'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem;
  --space-5:1.5rem; --space-6:2rem; --space-7:3rem; --space-8:4rem; --space-9:6rem;

  --radius-sm:6px; --radius-md:10px; --radius-lg:16px;
  --shadow-card:0 1px 2px rgba(22,48,44,.06), 0 8px 24px -12px rgba(22,48,44,.18);
  --ease:cubic-bezier(.22,.8,.32,1);
  --dur:220ms;
}

@media (prefers-color-scheme: dark){
  :root{
    --ink:#EFEAE0; --ink-soft:#D8D2C4; --muted-ink:#A6ADA6;
    --paper:#12211E; --paper-raised:#182B27; --paper-sunken:#0D1A17;
    --teal:#6FBBA6; --teal-deep:#8FD4BE; --teal-tint:#1C332D;
    --rust:#E58A63; --rust-tint:#332018; --alert:#E88A7B; --alert-tint:#3A1D19;
    --line:#2C443E; --line-dark:#3B5951;
    --shadow-card:0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
  }
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--font-body); font-size:16px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:var(--font-display); color:var(--ink); margin:0; font-weight:560}
p{margin:0}
button{font:inherit; color:inherit}
input,select,textarea{font:inherit; color:inherit}
a{color:var(--teal-deep)}
::selection{background:var(--teal-tint); color:var(--ink)}

.skip-link{
  position:absolute; left:-999px; top:0; z-index:200; background:var(--ink); color:var(--paper);
  padding:.75rem 1.25rem; border-radius:0 0 var(--radius-sm) 0; font-family:var(--font-mono); font-size:.85rem;
}
.skip-link:focus{left:0}

:focus-visible{outline:3px solid var(--teal); outline-offset:2px; border-radius:4px}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms !important; transition-duration:.001ms !important}
}

/* ============================================================
   PULSE PROGRESS BAR (signature element)
   ============================================================ */
.pulse-bar{
  position:sticky; top:0; z-index:100; height:34px; background:var(--paper);
  border-bottom:1px solid var(--line); overflow:hidden;
}
/* Resting state is a flat line, not the waveform: the ECG only exists while a
   beat is passing over it. The line sits at y=17 of the 34px bar with the same
   2.4px stroke as the SVG path, so the trace lands exactly on top of it. */
.pulse-track{
  position:absolute; left:0; right:0; top:calc(50% - 1.2px); height:2.4px;
  background:var(--line-dark); opacity:.55;
}
.pulse-fill{
  position:absolute; inset:0; height:34px;
  -webkit-mask-repeat:repeat-x; mask-repeat:repeat-x;
  -webkit-mask-size:120px 34px; mask-size:120px 34px;
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 34'><path d='M0,17 L26,17 L32,6 L39,28 L46,3 L52,17 L74,17 L80,10 L86,24 L92,17 L120,17' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 34'><path d='M0,17 L26,17 L32,6 L39,28 L46,3 L52,17 L74,17 L80,10 L86,24 L92,17 L120,17' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
/* Monitor sweep: the trace draws itself left-to-right, then clears the same way,
   like a cardiac monitor — between beats only the flat line is left. clip-path
   carries the animation while `width` stays bound to real progress, so the
   sweep only ever reaches as far as the patient has actually got. The "Paso N de
   12" label carries the progress reading in the gap. The uneven keyframe spacing
   is what makes it a pulse, not a slide. */
.pulse-fill{
  background:var(--teal); width:0%; transition:width .5s var(--ease); overflow:hidden;
  animation:pulse-sweep 7s linear infinite;
}
.pulse-fill.is-urgent{background:var(--alert)}
/* The sweep itself still runs in ~2.4s; the keyframes are packed into the first
   third of a 7s cycle so the remaining ~4.6s is dead air between beats. Slowing
   the whole animation instead would drag the sweep out and lose the snap. */
@keyframes pulse-sweep{
  0%          {clip-path:inset(0 100% 0 0)}
  3%          {clip-path:inset(0 67% 0 0)}
  13%         {clip-path:inset(0 33% 0 0)}
  16%, 18%    {clip-path:inset(0 0 0 0)}
  21%         {clip-path:inset(0 0 0 33%)}
  31%         {clip-path:inset(0 0 0 67%)}
  34%, 100%   {clip-path:inset(0 0 0 100%)}
}
@media (prefers-reduced-motion: reduce){
  /* clip-path:none, not just animation:none — otherwise the trace freezes on
     keyframe 0, which is fully clipped, and progress becomes invisible. */
  .pulse-fill{animation:none; clip-path:none}
}
.pulse-marker{
  position:absolute; top:4px; bottom:4px; width:2px; background:var(--rust); opacity:.7;
  left:0; transition:left .5s var(--ease);
}
.pulse-meta{
  position:absolute; right:var(--space-4); top:0; height:34px; display:flex; align-items:center; gap:.5rem;
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.03em; color:var(--muted-ink);
  background:linear-gradient(90deg, transparent, var(--paper) 22%); padding-left:2rem;
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:var(--space-4) var(--space-5); border-bottom:1px solid var(--line);
}
.brand{display:flex; align-items:center; gap:.65rem}
.brand__mark{width:30px; height:30px; flex:none; color:var(--teal)}
.brand__text{display:flex; flex-direction:column; line-height:1.15}
.brand__name{font-family:var(--font-display); font-weight:560; font-size:1rem}
.brand__role{font-family:var(--font-mono); font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted-ink)}
.masthead__draft{font-family:var(--font-mono); font-size:.72rem; color:var(--muted-ink); display:flex; align-items:center; gap:.4rem}
.masthead__draft[hidden]{display:none}
.masthead__draft svg{width:14px; height:14px; color:var(--teal)}

/* ============================================================
   SHELL
   ============================================================ */
.app-shell{
  display:grid; grid-template-columns:1fr; max-width:1180px; margin:0 auto;
  padding:var(--space-6) var(--space-5) var(--space-9);
  gap:var(--space-6);
}
@media (min-width:1024px){
  .app-shell{grid-template-columns:250px 1fr; align-items:start}
}

/* Rail column: step tabs (desktop only) + the step navigation under them.
   On mobile the tabs collapse and the column drops below the form via `order`,
   so the same buttons stay at the foot of the card the way they always were. */
.rail-col{order:2; display:flex; flex-direction:column}
main{order:1}
@media (min-width:1024px){
  .rail-col{order:0; position:sticky; top:var(--space-6)}
  main{order:0}
}

/* Rail (desktop tabs) */
.rail{display:none}
@media (min-width:1024px){
  .rail{display:flex; flex-direction:column; gap:2px}
}
.rail__tab{
  display:flex; align-items:baseline; gap:.6rem; text-align:left; background:none; border:none;
  padding:.55rem .75rem; border-radius:var(--radius-sm); cursor:pointer; color:var(--muted-ink);
  border-left:2px solid transparent; transition:background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rail__tab:hover:not(:disabled){background:var(--paper-sunken); color:var(--ink)}
.rail__tab:disabled{opacity:.4; cursor:not-allowed}
.rail__num{font-family:var(--font-mono); font-size:.72rem; color:var(--teal)}
.rail__label{font-size:.88rem; font-weight:500}
.rail__tab.is-active{
  background:var(--paper-raised); color:var(--ink); border-left-color:var(--rust);
  box-shadow:var(--shadow-card); transform:translateX(4px);
}
.rail__tab.is-active .rail__num{color:var(--rust)}
.rail__tab.is-done .rail__num::after{content:" ✓"; color:var(--teal)}

/* Mobile step strip */
.stepper-mobile{
  display:flex; gap:.4rem; overflow-x:auto; padding:.25rem .1rem .6rem; margin-bottom:var(--space-2);
  -webkit-overflow-scrolling:touch;
}
@media (min-width:1024px){.stepper-mobile{display:none}}
.stepper-mobile__pill{
  flex:none; font-family:var(--font-mono); font-size:.72rem; padding:.4rem .7rem; border-radius:999px;
  border:1px solid var(--line); background:var(--paper-raised); color:var(--muted-ink); white-space:nowrap;
}
.stepper-mobile__pill.is-active{border-color:var(--rust); color:var(--rust); font-weight:600}
.stepper-mobile__pill.is-done{color:var(--teal); border-color:var(--teal)}

/* ============================================================
   CARD / STEP
   ============================================================ */
main{min-width:0}
.card{
  background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card); padding:var(--space-6) var(--space-6) var(--space-7);
}
@media (max-width:640px){.card{padding:var(--space-5) var(--space-4) var(--space-6)}}

.step{display:none}
.step.is-active{display:block; animation:fade-up .35s var(--ease)}
@keyframes fade-up{from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:translateY(0)}}

.step__eyebrow{
  font-family:var(--font-mono); font-size:.78rem; letter-spacing:.08em; color:var(--rust);
  display:flex; align-items:center; gap:.6rem; margin-bottom:.6rem;
}
.step__eyebrow .of{color:var(--muted-ink)}
.step__title{font-size:1.7rem; margin-bottom:.5rem}
.step__intro{color:var(--ink-soft); max-width:62ch; margin-bottom:var(--space-6); font-size:1rem}
.section-divider{
  margin:var(--space-6) 0 var(--space-4); padding-top:var(--space-5); border-top:1px dashed var(--line-dark);
}
.section-divider__title{font-family:var(--font-display); font-size:1.15rem; margin-bottom:.25rem}
.section-divider__hint{color:var(--muted-ink); font-size:.9rem; max-width:60ch}

/* ============================================================
   FIELDS
   ============================================================ */
.field{margin-bottom:var(--space-5)}
.field__label{
  display:flex; gap:.35rem; font-weight:600; font-size:.94rem; margin-bottom:.4rem; color:var(--ink);
}
.field__label .req{color:var(--rust); font-weight:700}
.field__label .opt{font-weight:400; color:var(--muted-ink); font-size:.8rem}
.field__hint{color:var(--muted-ink); font-size:.85rem; margin-bottom:.5rem; max-width:60ch}
.field-row{display:grid; gap:var(--space-4); grid-template-columns:1fr}
@media (min-width:640px){
  .field-row.cols-2{grid-template-columns:1fr 1fr}
  .field-row.cols-3{grid-template-columns:1fr 1fr 1fr}
}

input[type="text"],input[type="email"],input[type="tel"],input[type="date"],
input[type="number"],select,textarea{
  width:100%; padding:.7rem .8rem; border:1px solid var(--line-dark); border-radius:var(--radius-sm);
  background:var(--paper); color:var(--ink); min-height:44px; transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea{min-height:96px; resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--teal); box-shadow:0 0 0 3px var(--teal-tint)}
input.touched:invalid:not(:focus),
select.touched:invalid:not(:focus),
textarea.touched:invalid:not(:focus){border-color:var(--alert)}
select{appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%235C6C67' d='M5.5 7.5l4.5 4.5 4.5-4.5z'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right .7rem center; padding-right:2.2rem;
}
.data-input{font-family:var(--font-mono)}

/* Pill-groups (short choices) */
.pill-group{display:flex; flex-wrap:wrap; gap:.5rem}
.pill{
  position:relative; display:inline-flex; align-items:center; min-height:44px; padding:.5rem 1rem;
  border:1px solid var(--line-dark); border-radius:999px; background:var(--paper); cursor:pointer;
  font-size:.9rem; transition:background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pill input{position:absolute; opacity:0; width:1px; height:1px}
.pill:has(input:checked), .pill.is-checked{background:var(--teal); border-color:var(--teal); color:#fff; font-weight:600}
.pill:has(input:focus-visible){outline:3px solid var(--teal); outline-offset:2px}
.pill--danger:has(input:checked), .pill--danger.is-checked{background:var(--alert); border-color:var(--alert)}

/* Checkbox rows (long labels, consent, symptom lists) */
.check-list{display:flex; flex-direction:column; gap:.6rem}
.check-row{
  display:flex; align-items:flex-start; gap:.7rem; padding:.75rem .9rem; border:1px solid var(--line);
  border-radius:var(--radius-sm); background:var(--paper); cursor:pointer;
}
.check-row:has(input:checked), .check-row.is-checked{border-color:var(--teal); background:var(--teal-tint)}
.check-row.symptom-flag:has(input:checked), .check-row.symptom-flag.is-checked{border-color:var(--alert); background:var(--alert-tint)}
.check-row input{margin-top:.2rem; width:20px; height:20px; accent-color:var(--teal); flex:none}
.check-row.symptom-flag input{accent-color:var(--alert)}
.check-row__text{font-size:.92rem}
.check-row__text b{display:block; font-weight:600}

/* Diet frequency grid */
.freq-grid{display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius-md); overflow:hidden}
.freq-row{display:grid; grid-template-columns:1fr; gap:.6rem; padding:.85rem 1rem; border-bottom:1px solid var(--line)}
.freq-row:last-child{border-bottom:none}
.freq-row:nth-child(even){background:var(--paper-sunken)}
.freq-row__label{font-weight:500; font-size:.9rem}
@media (min-width:640px){
  .freq-row{grid-template-columns:1fr auto; align-items:center}
}

/* Dropzone */
.dropzone{
  border:1.5px dashed var(--line-dark); border-radius:var(--radius-md); padding:var(--space-6) var(--space-4);
  text-align:center; cursor:pointer; background:var(--paper); transition:border-color var(--dur), background var(--dur);
}
.dropzone.is-drag{border-color:var(--teal); background:var(--teal-tint)}
.dropzone svg{width:30px; height:30px; color:var(--teal); margin-bottom:.5rem}
.dropzone__title{font-weight:600}
.dropzone__sub{color:var(--muted-ink); font-size:.85rem; margin-top:.25rem}
.file-list{list-style:none; padding:0; margin:.75rem 0 0; display:flex; flex-direction:column; gap:.4rem}
.file-list li{
  display:flex; align-items:center; justify-content:space-between; gap:.5rem; font-size:.85rem;
  padding:.5rem .7rem; background:var(--paper-sunken); border-radius:var(--radius-sm); font-family:var(--font-mono);
}
.file-list button{background:none; border:none; color:var(--alert); cursor:pointer; font-size:.8rem; text-decoration:underline}

/* Repeaters */
.repeater{display:flex; flex-direction:column; gap:var(--space-4)}
.repeater__item{
  position:relative; border:1px solid var(--line-dark); border-radius:var(--radius-md);
  padding:var(--space-5); background:
    radial-gradient(circle at 14px 14px, var(--paper-sunken) 4px, transparent 4.5px) top left/28px 28px repeat-x,
    radial-gradient(circle at 14px 14px, var(--paper-sunken) 4px, transparent 4.5px) bottom left/28px 28px repeat-x,
    var(--paper-raised);
}
.repeater__head{display:flex; align-items:center; justify-content:space-between; margin-bottom:var(--space-4)}
.repeater__badge{
  font-family:var(--font-mono); font-size:.75rem; background:var(--teal-tint); color:var(--teal-deep);
  padding:.25rem .6rem; border-radius:999px; font-weight:600;
}
.repeater__remove{
  background:none; border:none; color:var(--alert); cursor:pointer; font-size:.82rem; font-weight:600;
  display:flex; align-items:center; gap:.3rem; padding:.4rem .3rem;
}
.repeater__add{
  align-self:flex-start; display:inline-flex; align-items:center; gap:.5rem; background:none;
  border:1.5px dashed var(--teal); color:var(--teal-deep); border-radius:var(--radius-sm);
  padding:.7rem 1.1rem; cursor:pointer; font-weight:600; font-size:.9rem; min-height:44px;
}
.repeater__add:hover{background:var(--teal-tint)}

/* Alerts */
.alert{
  border:1.5px solid var(--alert); background:var(--alert-tint); border-radius:var(--radius-md);
  padding:var(--space-5); margin:var(--space-5) 0; display:flex; gap:var(--space-3);
}
.alert[hidden]{display:none}
.alert svg{flex:none; width:24px; height:24px; color:var(--alert); margin-top:2px}
.alert__title{font-weight:700; color:var(--alert); margin-bottom:.3rem}
.alert__body{font-size:.92rem; color:var(--ink-soft)}
.alert__body a{color:var(--alert); font-weight:700}
.alert--info{border-color:var(--teal); background:var(--teal-tint)}
.alert--info svg{color:var(--teal-deep)}
.alert--info .alert__title{color:var(--teal-deep)}

/* Buttons / nav */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:48px;
  padding:.8rem 1.5rem; border-radius:999px; font-weight:600; font-size:.95rem; cursor:pointer;
  border:1.5px solid transparent; transition:transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn[hidden]{display:none}
.btn:active{transform:scale(.97)}
.btn--primary{background:var(--ink); color:var(--paper)}
.btn--primary:hover{background:var(--teal-deep)}
.btn--primary:disabled{opacity:.55; cursor:not-allowed; transform:none}
.btn--ghost{background:transparent; border-color:var(--line-dark); color:var(--ink)}
.btn--ghost:hover{background:var(--paper-sunken)}
.btn--danger-ghost{background:transparent; border-color:var(--alert); color:var(--alert)}

/* Regenerar/Generar análisis IA — inline progress-fill button, driven by
   ai-regen.js. The fill grows inside the pill itself (no separate track),
   so the button never changes size or position — same shape, same place,
   only its content states change: idle -> loading fill -> done/error. */
.btn-ai{position:relative; overflow:hidden; isolation:isolate}
.btn-ai__fill{
  position:absolute; inset:0; z-index:0; width:0%; background:var(--teal-tint);
  transition:width 2.4s cubic-bezier(.16,.84,.44,1);
}
.btn-ai__label{position:relative; z-index:1}
.btn-ai.is-loading{cursor:progress}
.btn-ai.is-loading .btn-ai__fill{width:85%}
.btn-ai.is-done,.btn-ai.is-error{transition:border-color var(--dur) var(--ease), color var(--dur) var(--ease)}
.btn-ai.is-done{border-color:var(--teal); color:var(--paper)}
.btn-ai.is-done .btn-ai__fill{width:100%; background:var(--teal); transition:width .3s var(--ease)}
.btn-ai.is-error{border-color:var(--alert); color:var(--alert)}
.btn-ai.is-error .btn-ai__fill{width:100%; background:var(--alert-tint); transition:width .3s var(--ease)}
.step__nav{
  display:flex; align-items:center; justify-content:space-between; gap:var(--space-4);
  margin-top:var(--space-7); padding-top:var(--space-5); border-top:1px solid var(--line);
}
.step__nav[hidden]{display:none}
.step__nav-spacer{flex:1}

/* Step navigation, desktop: stacked full-width under the rail, Siguiente on top.
   Scoped to #mainNav so the intro screen's own .step__nav stays a row. */
@media (min-width:1024px){
  #mainNav{
    flex-direction:column; align-items:stretch; gap:var(--space-2);
    margin-top:var(--space-5); padding-top:var(--space-4);
  }
  #mainNav .btn{width:100%}
  #nextBtn, #submitBtn{order:1}
  #backBtn{order:2; min-height:44px; font-size:.88rem}
  .rail-meta{order:3}
}
.rail-meta{
  font-family:var(--font-mono); font-size:.68rem; color:var(--muted-ink);
  text-align:center; margin-top:.25rem;
}
@media (max-width:1023px){.rail-meta{display:none}}
.spinner{width:16px; height:16px; border-radius:50%; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Hero / intro */
.hero{display:grid; gap:var(--space-6)}
@media (min-width:860px){.hero{grid-template-columns:1.15fr .85fr}}
.hero__eyebrow{font-family:var(--font-mono); font-size:.78rem; letter-spacing:.08em; color:var(--rust); text-transform:uppercase}
.hero__title{font-size:clamp(1.9rem, 4vw, 2.7rem); line-height:1.08; margin:.5rem 0 var(--space-4)}
.hero__lede{font-style:italic; font-family:var(--font-display); font-size:1.2rem; color:var(--ink-soft); max-width:52ch; margin-bottom:var(--space-5)}
.hero__meta{display:flex; flex-wrap:wrap; gap:var(--space-5); margin:var(--space-5) 0}
.hero__meta-item{display:flex; align-items:center; gap:.5rem; font-size:.88rem; color:var(--muted-ink)}
.hero__meta-item svg{width:18px; height:18px; color:var(--teal)}
.hero__panel{
  background:var(--paper-sunken); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-5);
}
.hero__panel h2{font-size:1.05rem; margin-bottom:.75rem}
.hero__panel ol{margin:0; padding-left:1.1rem; display:flex; flex-direction:column; gap:.6rem; font-size:.9rem; color:var(--ink-soft)}
.draft-banner{
  border:1.5px solid var(--teal); background:var(--teal-tint); border-radius:var(--radius-md);
  padding:var(--space-4) var(--space-5); margin-bottom:var(--space-5); display:flex; flex-wrap:wrap;
  align-items:center; justify-content:space-between; gap:var(--space-3);
}
.draft-banner[hidden]{display:none}
.draft-banner p{font-size:.9rem}
.draft-banner strong{display:block; margin-bottom:.15rem}

/* Review */
.review-group{margin-bottom:var(--space-6)}
.review-group h3{font-size:1rem; margin-bottom:.75rem; display:flex; align-items:center; gap:.5rem}
.review-group h3 .rail__num{font-size:.75rem}
.review-grid{display:grid; grid-template-columns:1fr; gap:.5rem 1.5rem; font-size:.9rem}
@media (min-width:640px){.review-grid{grid-template-columns:1fr 1fr}}
.review-row{display:flex; flex-direction:column; gap:.15rem; padding:.6rem 0; border-bottom:1px solid var(--line)}
.review-row dt{font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted-ink); font-family:var(--font-mono)}
.review-row dd{margin:0; color:var(--ink)}
.review-empty{color:var(--muted-ink); font-style:italic}
.edit-link{font-family:var(--font-mono); font-size:.75rem; color:var(--teal-deep); background:none; border:none; cursor:pointer; text-decoration:underline}

/* Done screen */
.done{text-align:center; padding:var(--space-7) var(--space-4)}
.done__icon{width:64px; height:64px; color:var(--teal); margin:0 auto var(--space-5)}
.done__title{font-size:1.8rem; margin-bottom:var(--space-3)}
.done__body{max-width:52ch; margin:0 auto; color:var(--ink-soft)}

footer.legal{max-width:1180px; margin:0 auto; padding:0 var(--space-5) var(--space-8); color:var(--muted-ink); font-size:.78rem}
