.check-in {margin:.4rem 0 1rem}
.check-in a,.start-over {display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-weight:650;text-decoration:underline;text-underline-offset:.18em}
.check-in small {display:block;font-size:.94rem;line-height:1.45}
button.start-over {background:transparent;border:0;padding:0;font-size:1rem}
button.start-over:hover {background:transparent;color:var(--accent);text-decoration-thickness:2px}
.reset-confirmation {width:min(28rem,92vw);padding:1.5rem;border:1px solid var(--accent);border-radius:.5rem;color:inherit}
.reset-confirmation::backdrop {background:rgb(12 30 32 / 48%)}
.reset-confirmation form {display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.25rem}
.reset-confirmation button {min-height:44px;flex:1 1 9rem}
@media print {
  .check-in,button.start-over,.reset-confirmation {display:none!important}
  .completion-line,#print-note {white-space:pre-wrap;overflow-wrap:anywhere}
}
:root:lang(en) .save-handout [lang=es],:root:lang(es) .save-handout [lang=en],
:root:lang(en) .guide-note [lang=es],:root:lang(es) .guide-note [lang=en] {display:none}
#copy-fallback {width:100%;min-height:10rem;font:inherit;line-height:1.45}
#cost-summary {white-space:pre-line}

@media screen {
  :root {
    --back: #fbfaf5;
    --ink: #19392f;
    --line: #cbd2c8;
    --muted-ink: #4b6056;
    --field-line: #849589;
    font-family: system-ui, sans-serif;
    scroll-padding-top: 1.25rem;
  }

  main, .mast {max-width: 73rem}
  .mast {height: auto; min-height: 4.6rem}
  .wordmark {font-size: 2.45rem; letter-spacing: -.075em}
  .wordmark::after {content: "."; color: #a34a2c}
  .mast span:last-child {color: var(--muted-ink); text-align: right; line-height: 1.35}
  main .directory-return {margin-top: .65rem; font-size: .94rem; font-weight: 600}
  .lang-menu {display: inline-flex; margin: .65rem 0 0 1.25rem; vertical-align: middle}
  .lang-menu a {min-height: 44px; padding: .6rem .9rem; border-radius: 2rem}
  .lang-menu [aria-current] {color: white; background: var(--accent)}

  .hero {padding: clamp(1.15rem, 3vw, 2.2rem) 0 clamp(1.7rem, 4vw, 3.2rem)}
  .hero .tag {font-size: .82rem; letter-spacing: .085em; text-transform: uppercase; margin-bottom: .7rem}
  .hero h1 {
    max-width: 27ch;
    font-size: clamp(2.65rem, 5.6vw, 4.8rem);
    line-height: 1.01;
    letter-spacing: -.059em;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }
  .lead {color: var(--muted-ink); max-width: 57ch; font-size: clamp(1rem, 1.6vw, 1.15rem)}

  .workroom {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4.6rem);
  }
  .controls {border: 0; background: transparent; padding: .65rem 0 0}
  .controls h2, .paper h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -.045em;
  }
  .controls h2 {margin-bottom: 1.4rem}
  .choice {
    min-height: 3.35rem;
    padding: .8rem 1rem;
    margin: 0 0 .55rem;
    gap: .85rem;
    border-radius: .55rem;
    border-color: var(--line);
    line-height: 1.4;
  }
  .choice input {margin: 0; width: 1.2rem; height: 1.2rem; cursor: pointer}
  /* Reserve the mark's space so long translated labels stay in place. */
  .choice::after {
    content: "";
    flex: 0 0 1.1rem;
    height: 1.1rem;
    margin-inline-start: auto;
    background: currentColor;
    clip-path: polygon(3% 51%, 14% 40%, 39% 64%, 86% 13%, 98% 24%, 39% 87%);
    opacity: 0;
  }
  .choice:has(:checked)::after {opacity: 1}
  .choice:has(:focus-visible) {outline: 3px solid #a94a07; outline-offset: 2px}
  .choice:has(:focus-visible) input:focus-visible {outline: none}
  .choice:has(:checked) {
    color: var(--accent);
    background: var(--light);
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
    font-weight: 650;
  }
  .extras {margin-top: .65rem; border-top: 1px solid var(--line)}
  .extras > summary {padding: .9rem 0 .5rem; color: var(--accent)}
  .extras[open] {padding-bottom: .7rem}
  .controls > .source {padding-top: 1.15rem; border-top: 1px solid var(--line)}
  .source a {font-weight: 600; text-underline-offset: .2em}
  .hint, .foot, .paper .program {color: var(--muted-ink); line-height: 1.5}
  .guide-note {max-width: 46ch}

  .paper {
    padding: clamp(1.35rem, 3.3vw, 2.6rem);
    border-radius: .18rem;
    border-top-width: .32rem;
    box-shadow: 0 5px 0 -1px #fff, 0 5px 0 var(--line), 0 14px 36px #183c2c10;
  }
  .paper h2 {font-style: italic; margin-bottom: .4rem}
  .paper .program {margin-bottom: 1.35rem; font-size: .94rem}
  .selected {position: relative; padding-top: 1.3rem; font-size: 1rem}
  .selected::before {
    content: "";
    position: absolute;
    inset: -1px auto auto 0;
    width: 3.2rem;
    height: 3px;
    background: var(--accent);
    transform-origin: left;
  }
  .instruction {min-height: 0; line-height: 1.5; margin-bottom: 1.35rem}
  .meta:not(:empty), .result:not(:empty) {
    background: var(--light);
    padding: .85rem 1rem;
    border-left: .22rem solid var(--accent);
    color: var(--ink);
  }
  .meta:empty, .result:empty {margin: 0}
  .custom-fields {gap: 1rem; margin-bottom: 1rem}
  .custom-field, .write-label, .nums label {font-size: 1rem; line-height: 1.4}
  .handoff-field, textarea, select, input[type=date], input[type=number] {
    display: block;
    min-width: 0;
    min-height: 2.9rem;
    margin-top: .35rem;
    padding: .55rem .75rem;
    font-size: 1rem;
    color: var(--ink);
    background: white;
    border: 1px solid var(--field-line);
    border-radius: .4rem;
  }
  textarea {min-height: 5.4rem}
  textarea::placeholder {color: var(--muted-ink)}
  .nums {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem}
  .paper .source {margin-top: 1.2rem}
  .actions {margin: 1.25rem 0 .25rem; padding-top: 1.3rem; border-top: 1px solid var(--line)}
  .actions button, .reset-confirmation button {border-radius: .45rem; min-height: 3rem}
  .actions button {flex: 1 1 auto; padding-inline: .8rem}
  .actions #copy {box-shadow: 0 2px 0 #10291f38}
  button.start-over {font-size: .94rem; color: var(--muted-ink)}
  .status:empty {margin: 0; min-height: 0}
  .footer {margin-top: 2.6rem; padding-top: 1.25rem}
}

@media screen and (hover: hover) {
  .choice:hover, .handoff-field:hover, textarea:hover {border-color: var(--accent)}
  .choice:hover:not(:has(:checked)) {
    background: color-mix(in srgb, var(--light) 42%, white);
    box-shadow: 0 3px 12px #19392f12;
  }
  .actions #copy:hover, .reset-confirmation button:not(.secondary):hover {filter: brightness(.88)}
  button.secondary:hover, .lang-menu a:not([aria-current]):hover {background: var(--light)}
  .extras > summary:hover, .source a:hover {text-decoration: underline; text-underline-offset: .2em}
}

@media screen and (prefers-reduced-motion: no-preference) {
  .choice, .actions button, .lang-menu a, .jump {
    transition: background-color .18s, border-color .18s, box-shadow .18s, transform .18s, filter .18s;
  }
  .choice:has(:checked)::after {animation: confirm-choice .25s ease-out}
  .paper.changed .selected::before {animation: mark-step .4s ease-out}
  .actions button:active, .jump:active {transform: translateY(1px)}
  @keyframes confirm-choice {
    from {opacity: 0; transform: scale(.55) rotate(-10deg)}
    65% {opacity: 1; transform: scale(1.12)}
    to {transform: none}
  }
  @keyframes mark-step {
    from {transform: scaleX(0)}
    60% {transform: scaleX(1.65)}
    to {transform: scaleX(1)}
  }
}

@media screen and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .choice:hover:not(:has(:checked)) {transform: translateX(.18rem)}
  .actions button:hover:not(:active), .jump:hover:not(:active) {transform: translateY(-2px)}
}

@media screen and (max-width: 710px) {
  .mast {min-height: 3.7rem}
  .wordmark {font-size: 2rem}
  .mast span:last-child {max-width: 17ch}
  .hero {padding: 1.1rem 0 1.5rem}
  .hero h1 {font-size: clamp(2.15rem, 8.6vw, 3.3rem)}
  .workroom {grid-template-columns: minmax(0, 1fr); gap: 1.6rem}
  .controls {padding-top: 0}
  .controls h2 {margin-bottom: .95rem}
  .jump {justify-content: center; width: 100%; border-radius: .45rem; background: var(--accent); color: white; text-decoration: none}
  .paper {padding: clamp(1rem, 5vw, 1.75rem)}
  .actions #copy {flex-basis: 100%}
  .footer {margin-top: 2rem}
}

@media screen and (max-width: 390px) {
  .lang-menu {display: flex; margin: .2rem 0 0}
  .nums {grid-template-columns: minmax(0, 1fr)}
}
