/* The door: sign in, start for free, join. Ria's thread and the pass, shared by signin.html and join.html.
   Sits on app.css (tokens, buttons). The pass is a physical object, so its terracotta stays the same in both themes. */

/* Apple-style type on the door pages (5 Oct, her word after a friend found the fonts hard to read: "We need to follow the same
   thing"): Apple's font where there is one, Inter elsewhere; the logo and her letter's signature keep the serif (--mark) */
:root { --mark: 'Instrument Serif', 'Iowan Old Style', Georgia, serif; --sans: -apple-system, BlinkMacSystemFont, Inter, 'Segoe UI', Roboto, system-ui, sans-serif; --serif: var(--sans); }
.gate h2, .nudge h2, .dlg h2, .head h1 { font-weight: 600; }
.door { --door-pad: clamp(20px, 5vw, 56px); min-height: 100%; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 var(--door-pad) env(safe-area-inset-bottom, 0px); }
.door-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
/* a hairline under the header on a phone, edge to edge (her ask, 5 Oct; the same line as the public pages) */
@media (max-width: 900px) {
  .door-top { margin-inline: calc(-1 * var(--door-pad)); padding-inline: var(--door-pad); border-bottom: 1px solid var(--line); }
  /* the title keeps its room under the line where it sat right under it (sign in and its code screens, join); setup and the
     letter already start lower, and setup's step 2 fills a phone's screen to the pixel */
  .solo .door-h, .join-copy .door-h { margin-top: 18px; }
}
.door-mark { display: inline-flex; align-items: center; min-height: 44px; font: 400 23px/1 var(--mark); color: var(--ink); text-decoration: none; white-space: nowrap; }
.door-mark em { font-style: italic; }
.quiet { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.quiet:hover { color: var(--ink); }
button.quiet { padding: 0; border: 0; background: none; }
.door-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--sans); color: #3D2F2A; background: var(--c, #DFA78F); text-decoration: none; }
.door-main { flex: 1; display: flex; flex-direction: column; }
.door-h { margin: 0; font: 600 clamp(36px, 5.6vw, 52px)/1.08 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
.door-h em { font-style: normal; color: var(--accent-ink); } /* the second line in terracotta, as on the membership page */
.door-h:focus { outline: none; }
.door-sub { margin: 8px 0 0; font-size: 18px; color: var(--muted); }
.door-sub[hidden] { display: none; }
.door-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 16px 0 22px; font-size: 14px; color: var(--faint); }
.door-foot a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.door-foot a:hover { color: var(--ink); }
.door-foot .consent { flex-basis: 100%; margin: 0; text-align: center; }
.door-foot .consent a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: .2em; }
.preview-note { flex-basis: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.preview-note[hidden] { display: none; }
.preview-note .ico { width: 15px; height: 15px; }
[hidden] { display: none !important; }

/* ---------- Ria's thread ---------- */
.thread { display: flex; flex-direction: column; gap: 18px; }
.thread:empty { display: none; }
.say { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; animation: say-in .24s cubic-bezier(.2, .7, .2, 1) both; }
.say-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ria-soft); color: var(--ria); }
.say-av .ico { width: 17px; height: 17px; }
.say-body { display: grid; gap: 4px; padding-top: 5px; min-width: 0; }
.say-name { font-size: 14px; font-weight: 600; color: var(--ria); }
.say-text { margin: 0; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; text-wrap: pretty; }
.say-text b { font-weight: 600; }
.say.err .say-text { color: var(--err); }
.say + .say { margin-top: -8px; }
.say + .say .say-av { visibility: hidden; }
.say + .say .say-name { display: none; }
.say + .say .say-body { padding-top: 0; }
.say.busy .say-text::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--ria); animation: spin .8s linear infinite; }
.you { align-self: flex-end; max-width: 85%; margin: 0; padding: 11px 16px; border-radius: 20px 20px 6px 20px; background: var(--sand); font-size: 16px; overflow-wrap: anywhere; animation: say-in .24s cubic-bezier(.2, .7, .2, 1) both; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { min-height: 44px; padding: 8px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: transparent; font-weight: 500; font-size: 16px; line-height: 1.35; color: var(--ink); text-align: left; overflow-wrap: anywhere; }
.chip:hover { background: var(--sand-2); }
.chip-primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.chip-primary:hover { background: var(--accent-hover); }
.tips { margin: 8px 0 0; padding: 12px 16px; list-style: none; border-radius: 14px; background: var(--sand-2); display: grid; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.tips li { display: grid; grid-template-columns: 5px minmax(0, 1fr); gap: 10px; }
.tips li::before { content: ""; width: 5px; height: 5px; margin-top: 8px; border-radius: 50%; background: var(--faint); }
@keyframes say-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- the composer (sign in) ---------- */
.composer { display: grid; gap: 10px; }
.composer-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 22px; background: var(--sheet); box-shadow: 0 0 0 1px var(--line-strong); transition: box-shadow .15s; }
.composer-box:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px rgba(200, 92, 62, .16); }
.composer-box input { flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; background: transparent; font-size: 16px; }
.composer-box input::placeholder { color: var(--faint); }
.composer-box input:focus, .composer-box input:focus-visible { outline: none; }
.composer-box[data-invalid] { box-shadow: 0 0 0 2px var(--err); }
.send { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 16px; background: var(--accent); color: var(--on-accent); transition: background .15s, transform .1s; }
.send:hover { background: var(--accent-hover); }
.send:active { transform: translateY(1px); }
.send:disabled { opacity: .6; cursor: progress; }
.send .ico { width: 20px; height: 20px; }
.help { margin: 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
/* sign in: email and password; the code from the email; a password for next time */
.fields { display: grid; gap: 14px; }
.qf > input:where(:not([type="radio"]):not([type="checkbox"])) { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 16px; color: var(--ink); }
.qf > input::placeholder { color: var(--faint); }
.qf > input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(200, 92, 62, .16); }
.qf > input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--err); }
.qf .hint { justify-content: flex-start; }
.qf .note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.code-in { font: 500 22px/1 var(--mono) !important; letter-spacing: .28em; font-variant-numeric: tabular-nums; }
.alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin-top: -4px; }
.alt .linkish { padding: 0; }
.hint { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 6px; font-size: 14px; color: var(--ink); }
.hint button { min-height: 36px; padding: 0 2px; border: 0; background: none; font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }

/* ---------- buttons on these pages ---------- */
a.btn { text-decoration: none; }
.btn-lg { width: 100%; min-height: 54px; border-radius: 16px; font-size: 16px; font-weight: 600; }
.btn-lg .ico { width: 19px; height: 19px; }
.actions { display: grid; gap: 8px; }
/* Continue with Google (27 Oct): Google's own neutral button (its four-colour G on the page's sheet, a hairline edge, the
   words in ink), the email way under an "or" line; AWS.googleOk() shows the pair */
.g-way { display: grid; gap: 14px; }
.btn-google { gap: 12px; background: var(--sheet); color: var(--ink); border-color: var(--line-strong); }
.btn-google:hover { background: var(--ground); border-color: var(--ink); }
.btn-google .g-logo { width: 20px; height: 20px; flex-shrink: 0; }
.or-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 0; font-size: 14px; color: var(--muted); }
.or-line::before, .or-line::after { content: ""; height: 1px; background: var(--line-strong); }
.linkish { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 0; background: none; font-size: 16px; font-weight: 500; color: var(--accent-ink); }
.small { margin: 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
.small a { display: inline-flex; align-items: center; min-height: 36px; color: var(--accent-ink); font-weight: 500; }
.pay-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; text-wrap: balance; }
.pay-note .ico { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; }
/* .switch-link, not .switch: app.css already owns .switch for the Settings toggle control */
.switch-link { margin: -4px 0 0; text-align: center; }
.switch-link .quiet { min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: .2em; text-wrap: balance; }

/* ---------- the pass ---------- */
.pass { --pass-bg: #A64A30; --pass-ink: #FFFDFC; --pass-soft: rgba(255, 253, 252, .9); --pass-line: rgba(255, 253, 252, .45);
  position: relative; overflow: hidden; margin: 0; border-radius: 22px; background: var(--pass-bg); color: var(--pass-ink); }
.pass.free { --pass-bg: var(--sand); --pass-ink: var(--ink); --pass-soft: var(--muted); --pass-line: var(--line-strong); }
.pass-top { display: grid; gap: 14px; padding: 20px 22px 18px; }
.pass-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pass-mark { font: 400 19px/1 var(--mark); white-space: nowrap; }
.pass-mark em { font-style: italic; }
.pass-pill { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--pass-line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pass-price { font: 600 clamp(52px, 7vw, 68px)/1.04 var(--sans); letter-spacing: -.01em; }
.pass-dates { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pass-dates dt { font-size: 14px; color: var(--pass-soft); }
.pass-dates dd { margin: 3px 0 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pass-areas { margin: 0; font-size: 14px; line-height: 1.5; color: var(--pass-soft); }
.pass-perf { position: relative; margin: 0 19px; border-top: 2px dashed var(--pass-line); }
.pass-perf::before, .pass-perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--ground); }
.pass-perf::before { left: -31px; }
.pass-perf::after { right: -31px; }
.pass-slot { display: grid; gap: 8px; padding: 14px 22px 20px; }
.pass-slot label { font-size: 14px; font-weight: 500; color: var(--pass-soft); }
.pass-slot input { width: 100%; height: 50px; padding: 0 14px; border: 0; border-radius: 12px; background: #FFFDFC; color: #3D2F2A; font-size: 16px; }
.pass-slot input::placeholder { color: #715F57; }
.pass-slot input:focus-visible { outline: 2px solid var(--pass-ink); outline-offset: 2px; }
.pass-slot input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #B23A2B; }
.pass.free .pass-slot input { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pass.free .pass-slot input::placeholder { color: var(--faint); }
.pass.free .pass-slot input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--err); }
.pass-slot .hint { justify-content: flex-start; color: var(--pass-ink); }
/* the free pass's name and password boxes (28 Oct): a little room above each label after the first, and the password box
   drawn once (the box is .pwf; the input inside it takes none of the pass's own input look) */
.pass-slot label:not(:first-child) { margin-top: 6px; }
.pass-slot .pwf { height: 50px; border-radius: 12px; }
.pass.free .pass-slot .pwf input, .pass-slot .pwf input { height: 100%; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.pass-slot .note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--pass-soft); }
.pass-slot .hint button { color: var(--pass-ink); }
.pass.free .pass-slot .hint button { color: var(--accent-ink); }
.pass-holder { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 22px 18px; font-size: 14px; }
.pass-holder span { color: var(--pass-soft); white-space: nowrap; }
.pass-holder b { font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.pass-holder b.mono { font: 400 14px/1.4 var(--mono); }
.pass-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* the founding price: the standard price crossed out before the price, the % off after it, the places left under the row */
.pass-amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.was { font: 600 clamp(24px, 3.4vw, 30px)/1.08 var(--sans); color: var(--pass-soft); text-decoration: line-through; text-decoration-thickness: 2px; }
.pass-off { align-self: center; padding: 5px 12px; border-radius: 999px; background: var(--pass-ink); color: var(--pass-bg); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pass-places { margin: -6px 0 0; font-size: 14px; line-height: 1.5; color: var(--pass-soft); }
.pass-stamp { flex-shrink: 0; width: 88px; height: 88px; margin: 6px 6px 6px 0; border-radius: 50%; border: 2px solid var(--pass-ink); display: grid; place-content: center; justify-items: center; gap: 2px; transform: rotate(-10deg); animation: stamp .45s cubic-bezier(.2, .8, .2, 1) both; pointer-events: none; }
.pass-stamp b { font: 600 22px/1.08 var(--sans); }
.pass-stamp small { font-size: 14px; font-weight: 600; white-space: nowrap; }
@keyframes stamp { from { opacity: 0; transform: rotate(-10deg) scale(1.35); } }

/* ---------- sign in: one column, the conversation near the thumb ---------- */
.solo { width: min(560px, 100%); margin: 0 auto; flex: 1; display: flex; flex-direction: column; padding: 8px 0 20px; }
.solo .gap { flex: 1 1 28px; min-height: 28px; }
.solo .talk { display: grid; gap: 20px; }

/* ---------- join: the pass beside the words on wide screens ---------- */
.join-grid { flex: 1; display: grid; gap: 18px; align-content: start; width: min(480px, 100%); margin: 0 auto; padding: 4px 0 24px; }
.join-copy { display: grid; gap: 18px; align-content: start; }
.join-copy .door-h { font-size: clamp(32px, 4.4vw, 52px); }
.join-act { display: grid; gap: 14px; }
.gets { display: none; margin: 0; padding: 0 0 0 44px; list-style: none; gap: 12px; font-size: 16px; line-height: 1.4; }
.gets li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.gets .ico { color: var(--accent-ink); margin-top: 1px; }

@media (min-width: 720px) {
  .solo { justify-content: center; padding-bottom: 48px; }
  .solo .gap { flex: 0 0 40px; }
}
@media (min-width: 960px) {
  .join-grid { width: min(1080px, 100%); grid-template-columns: minmax(0, 1fr) 440px; column-gap: clamp(48px, 7vw, 104px); align-content: center; align-items: center; padding-bottom: 56px; }
  .gets { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .say, .you, .pass-stamp { animation: none; }
  .say.busy .say-text::after { animation-duration: 2.4s; }
}

/* ---------- welcome: first-run setup, the pass filling in as you answer ---------- */
.welcome-grid { flex: 1; display: grid; gap: 18px; width: min(480px, 100%); margin: 0 auto; padding: 4px 0 24px; align-content: start;
  grid-template-areas: "copy" "pass" "form"; }
.w-copy { grid-area: copy; display: grid; gap: 14px; align-content: start; }
.w-pass { grid-area: pass; }
.w-form { grid-area: form; display: grid; gap: 14px; align-content: start; }
.w-act { display: grid; gap: 14px; }
.w-act:has(> #go[hidden]):has(> #nav[hidden]) { display: none; }
/* setup's Continue stays on a phone's screen: pinned to the bottom while the step runs past it, fading what scrolls under */
@media (max-width: 959px) {
  .w-act { position: sticky; bottom: 0; z-index: 2; padding: 18px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to bottom, transparent, var(--ground) 18px); }
}
.qs { display: grid; gap: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 132px; margin: 0; padding: 0; list-style: none; }
.steps li { height: 4px; border-radius: 999px; background: var(--line-strong); transition: background .3s; }
.steps li.on { background: var(--accent); }
.qf { display: grid; gap: 8px; }
.qf label, .qf legend { padding: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.qf input[type="text"] { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 16px; }
.qf input[type="text"]:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(200, 92, 62, .16); }
.qf input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--err); }
.at { display: flex; align-items: center; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line-strong); }
.at:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(200, 92, 62, .16); }
.at[data-invalid] { box-shadow: inset 0 0 0 2px var(--err); }
.at span { color: var(--muted); font-size: 16px; }
.at input { flex: 1; min-width: 0; height: 100%; padding: 0 0 0 2px; border: 0; background: transparent; font-size: 16px; }
.at input:focus, .at input:focus-visible { outline: none; }
.at input[aria-invalid="true"] { box-shadow: none; } /* the field's frame shows the error, not the input inside it */
.status { margin: 0; min-height: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.status .ico { width: 16px; height: 16px; }
.status button { min-height: 36px; padding: 0 2px; border: 0; background: none; font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: .2em; }
fieldset.qf { margin: 0; padding: 0; border: 0; min-width: 0; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks.stack { display: grid; }
.qf-label { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.pick { position: relative; display: flex; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick span { display: flex; align-items: center; min-height: 44px; padding: 9px 14px; border-radius: 14px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; font-weight: 500; line-height: 1.3; transition: box-shadow .15s, background .15s; }
.picks.stack .pick span { width: 100%; min-height: 52px; }
.pick:hover span { background: var(--sand-2); }
.pick input:checked + span { background: rgba(200, 92, 62, .08); box-shadow: inset 0 0 0 2px var(--accent); }
.pick input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.row2 { display: flex; justify-content: space-between; gap: 12px; }
.row2 .linkish { color: var(--muted); }
.row2 .linkish:hover { color: var(--ink); }
.pass-name { font: 600 clamp(30px, 4.4vw, 44px)/1.08 var(--sans); letter-spacing: -.02em; overflow-wrap: anywhere; }
.pass-name.empty, .pass-rows dd.empty { color: var(--pass-soft); opacity: .7; }
.pass-handle { margin-top: -6px; font-size: 16px; color: var(--pass-soft); overflow-wrap: anywhere; }
/* the Ready stamp lands over the name block like a real stamp, without pushing the handle away */
.pass-name-row { position: relative; }
.pass-name-row .pass-stamp { position: absolute; top: 0; right: 0; width: 80px; height: 80px; margin: 0; }
.pass-name-row .pass-stamp b { font-size: 22px; }
.pass.stamped .pass-name { padding-right: 92px; }
@media (max-width: 959px) {
  .pass-name-row .pass-stamp { width: 72px; height: 72px; }
  .pass-name-row .pass-stamp b { font-size: 22px; }
  .pass.stamped .pass-name { padding-right: 84px; }
}
.pass-rows { margin: 0; padding: 14px 22px 18px; display: grid; gap: 10px; }
.pass-rows div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.pass-rows dt { font-size: 14px; color: var(--pass-soft); }
.pass-rows dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.pass-rows dd.fill { animation: say-in .3s cubic-bezier(.2, .7, .2, 1) both; }
@media (max-width: 959px) {
  .pass.compact .pass-top { gap: 6px; padding: 10px 18px 8px; }
  .pass.compact .pass-mark { font-size: 16px; }
  .pass.compact .pass-pill { padding: 2px 10px; font-size: 14px; }
  .pass.compact .pass-name { font-size: 26px; }
  .pass.compact .pass-handle { margin-top: -2px; font-size: 14px; }
  .pass.compact .pass-rows dd { font-size: 14px; } /* setup's steps 2 and 3 fill a phone's screen to the pixel */
  .pass.compact .pass-rows { gap: 4px; padding: 8px 18px 10px; } /* 14px text needs it: steps 2 and 3 fit a phone to the pixel */
}
@media (min-width: 960px) {
  /* the question keeps its place from step to step; only the answers below it change */
  .welcome-grid { width: min(1080px, 100%); grid-template-columns: minmax(0, 1fr) 440px; grid-template-areas: "copy pass" "form pass";
    grid-template-rows: auto 1fr; column-gap: clamp(48px, 7vw, 104px); align-content: start; padding: clamp(24px, 9vh, 96px) 0 56px; }
  .w-pass { align-self: start; margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .pass-rows dd.fill { animation: none; } .steps li { transition: none; } }

/* ---------- Spoorthi's letter: before first-run setup (welcome.html) and from Settings (letter.html) ---------- */
.letter { width: min(560px, 100%); margin: 0 auto; padding: 8px 0 28px; display: grid; gap: 20px; align-content: start; animation: say-in .3s cubic-bezier(.2, .7, .2, 1) both; }
.letter-av { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--sand); box-shadow: 0 0 0 1px var(--line); }
.letter-av img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
:root[data-theme="dark"] .letter-av img { filter: brightness(.88); }
.letter-words { display: grid; gap: 24px; min-width: 0; }
.letter-body { display: grid; gap: 14px; font-size: 18px; line-height: 1.62; text-wrap: pretty; overflow-wrap: anywhere; }
.letter-body p { margin: 0; }
.letter-body b { font-weight: 600; }
.letter-body h2 { margin: 18px 0 0; font: 600 clamp(24px, 3vw, 28px)/1.15 var(--sans); letter-spacing: -.005em; text-wrap: balance; }
.letter.full .letter-body { gap: 10px; }
.letter-sign { display: grid; gap: 4px; }
.letter-sign p { margin: 0; }
.letter-name { font: italic 400 32px/1 var(--mark); } /* a sign-off, a clear step under the 40px title (it was 38) */
.letter-role { font-size: 14px; line-height: 1.45; color: var(--muted); }
.letter-bye { margin-top: 12px !important; font-size: 16px; }
.letter-acts { padding-top: 4px; }
@media (min-width: 960px) {
  /* the portrait as an arch beside the letter, staying in view while you read */
  .letter { width: min(1000px, 100%); grid-template-columns: 300px minmax(0, 580px); justify-content: center; column-gap: clamp(48px, 7vw, 96px); align-items: start; padding: clamp(24px, 8vh, 80px) 0 64px; }
  .letter-av { position: sticky; top: 32px; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; display: flex; align-items: flex-end; justify-content: center; }
  .letter-av img { width: 104%; max-width: none; height: auto; object-fit: initial; }
  .letter-body { font-size: 18px; }
  .letter-acts { grid-template-columns: minmax(0, 320px) auto; justify-content: start; align-items: center; column-gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .letter { animation: none; } }

/* setup's password is optional since 6 Oct (the ad path): the word says so, quietly */
.pw-opt { color: var(--muted); font-weight: 400; }
