/* Log in / Sign up (login.html) and setting up an account (setup.html).
   Loaded after css/pages.css, whose colours, fields and buttons these pages use. Laid out for a
   laptop first: two columns from 900px, one column below it. */

:root { --ac-radius: 22px; --ac-tint: rgba(255, 68, 0, .07); --ac-tint-2: rgba(255, 68, 0, .14); }
[data-theme="dark"] { --ac-tint: rgba(239, 128, 0, .1); --ac-tint-2: rgba(239, 128, 0, .2); }

/* ── Log in / Sign up ─────────────────────────────────────────────────── */
.ac-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; width: 100%; max-width: 1180px; min-height: calc(100vh - 96px); min-height: calc(100dvh - 96px); margin-inline: auto; padding: clamp(16px, 3vw, 40px) clamp(16px, 5vw, 56px) clamp(48px, 6vw, 80px); }
.ac-brand { position: relative; overflow: hidden; padding: clamp(32px, 4vw, 56px); border: 1px solid var(--hm-line); border-radius: 28px; background: radial-gradient(120% 90% at 100% 0%, var(--ac-tint-2), transparent 60%), linear-gradient(160deg, var(--hm-peach), var(--hm-card)); }
.ac-eyebrow { color: var(--orange); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ac-brand h2 { margin-top: 12px; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); font-weight: 700; line-height: 1.06; letter-spacing: -.04em; }
.ac-brand h2 em { color: var(--orange); font-style: normal; }
.ac-brand > p { max-width: 44ch; margin-top: 16px; color: var(--hm-body); font-size: 1.0625rem; }
.ac-points { display: grid; gap: 18px; margin-top: 32px; }
.ac-points li { display: flex; gap: 14px; color: var(--hm-body); font-size: .9375rem; line-height: 1.5; }
.ac-points strong { display: block; color: var(--hm-ink); font-size: 1rem; font-weight: 700; }
.ac-points .ac-ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--hm-card); box-shadow: var(--hm-lift), inset 0 0 0 1px var(--hm-line); color: var(--orange); }
.ac-points svg { width: 22px; height: 22px; }
.ac-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hm-line); color: var(--hm-soft); font-size: .875rem; }
.ac-apps a { color: var(--hm-ink); font-weight: 600; text-underline-offset: 3px; }

.ac-card { width: 100%; max-width: 480px; justify-self: center; padding: clamp(24px, 3.2vw, 40px); border-radius: var(--ac-radius); }
.ac-card h1, .ac-card .ac-h { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.ac-sub { margin-top: 8px; color: var(--hm-body); }
.ac-sub strong { color: var(--hm-ink); font-weight: 700; overflow-wrap: anywhere; }
.ac-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 28px; padding: 4px; border-radius: 14px; background: var(--hm-bg); box-shadow: inset 0 0 0 1px var(--hm-line); }
.ac-tabs a { display: grid; place-items: center; min-height: 42px; border-radius: 10px; color: var(--hm-body); font-size: .9375rem; font-weight: 600; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.ac-tabs a:hover { color: var(--hm-ink); }
.ac-tabs a[aria-current="page"] { background: var(--hm-field); box-shadow: inset 0 0 0 1.5px var(--orange), 0 1px 6px rgba(0, 0, 0, .08); color: var(--hm-ink); font-weight: 700; }
.ac-form { display: grid; gap: 16px; margin-top: 24px; }
.ac-form .f input { min-height: 54px; font-size: 1.0625rem; }
.ac-terms { color: var(--hm-soft); font-size: .875rem; text-align: center; }
[data-theme="dark"] .ac-terms a, [data-theme="dark"] .ac-switch a { color: var(--orange); }
.ac-terms a, .ac-switch a { color: #c2410c; font-weight: 600; text-underline-offset: 3px; }
.ac-or { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--hm-soft); font-size: .875rem; }
.ac-or::before, .ac-or::after { content: ''; flex: 1; height: 1px; background: var(--hm-line); }
.ac-social { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--hm-field); color: var(--hm-ink); font-weight: 600; text-decoration: none; transition: border-color .15s ease; }
.ac-social:hover { border-color: var(--orange); }
.ac-social svg { width: 20px; height: 20px; stroke: none; }
.ac-switch { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hm-line); color: var(--hm-body); text-align: center; }
.ac-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px -4px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--hm-body); cursor: pointer; font-size: .9375rem; font-weight: 600; }
.ac-back:hover { background: var(--ac-tint); color: var(--hm-ink); }
.ac-back svg { width: 18px; height: 18px; }

.ac-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 10px); max-width: 400px; }
.ac-otp input { width: 100%; min-width: 0; height: 62px; padding: 0; border: 1px solid var(--field-line); border-radius: 14px; background: var(--hm-field); color: var(--hm-ink); font-size: 1.625rem; font-weight: 700; text-align: center; caret-color: var(--orange); transition: border-color .15s ease, box-shadow .15s ease; }
.ac-otp input:focus { border-color: var(--orange); outline: 0; box-shadow: 0 0 0 3px var(--ac-tint-2); }
.ac-otp input[aria-invalid="true"] { border-color: var(--error); }
.ac-resend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; color: var(--hm-soft); font-size: .9375rem; }
.ac-resend .pg-text-btn { padding: 0; color: var(--orange); }
.ac-resend button:disabled { color: var(--hm-soft); cursor: default; text-decoration: none; opacity: .8; }
.ac-done { display: grid; gap: 12px; margin-top: 24px; }
.ac-note { padding: 12px 14px; border-radius: 12px; background: var(--ac-tint); color: var(--hm-ink); font-size: .9375rem; }
.ac-note a { color: var(--orange); font-weight: 600; }
.ac-spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ac-spin .7s linear infinite; vertical-align: -3px; }
@keyframes ac-spin { to { transform: rotate(360deg); } }
.ac-step { animation: ac-in .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes ac-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 900px) {
  .ac-wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; align-items: start; padding-top: 8px; }
  .ac-card { order: -1; max-width: 560px; }
  .ac-brand { max-width: 560px; width: 100%; justify-self: center; padding: 28px 24px; }
  .ac-brand h2 { font-size: 1.75rem; }
}
@media (max-width: 480px) {
  .ac-card { padding: 22px 18px; border-radius: 18px; }
  .ac-otp input { height: 54px; font-size: 1.375rem; border-radius: 12px; }
}

/* ── Setting up an account ────────────────────────────────────────────── */
.su { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; width: 100%; max-width: 1180px; margin-inline: auto; padding: clamp(12px, 2.4vw, 32px) clamp(16px, 5vw, 56px) clamp(48px, 6vw, 80px); }
.su-rail { position: sticky; top: 96px; display: grid; gap: 18px; padding: 24px; border: 1px solid var(--hm-line); border-radius: var(--ac-radius); background: var(--hm-card); box-shadow: var(--hm-shadow); }
.su-rail h1 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.su-bar { height: 6px; overflow: hidden; border-radius: 99px; background: var(--hm-peach); box-shadow: inset 0 0 0 1px var(--hm-line); }
.su-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad-brand); transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.su-bar-label { margin-top: -10px; color: var(--hm-soft); font-size: .8125rem; }
.su-steps { display: grid; gap: 2px; }
.su-steps li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 12px; color: var(--hm-soft); font-size: .9375rem; font-weight: 600; }
.su-steps li .su-dot { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--field-line); border-radius: 50%; font-size: .75rem; font-weight: 700; }
.su-steps li .su-dot svg { width: 14px; height: 14px; stroke-width: 3; }
.su-steps li[data-state="done"] { color: var(--hm-body); }
.su-steps li[data-state="done"] .su-dot { border-color: transparent; background: var(--ok); color: #fff; }
.su-steps li[data-state="current"] { background: var(--ac-tint); color: var(--hm-ink); }
.su-steps li[data-state="current"] .su-dot { border-color: var(--orange); background: var(--orange); color: #fff; }
.su-who { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--hm-line); color: var(--hm-soft); font-size: .875rem; }
.su-who strong { display: block; overflow: hidden; max-width: 170px; color: var(--hm-ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.su-main { min-width: 0; }
.su-card { display: flex; flex-direction: column; min-height: min(640px, calc(100vh - 140px)); padding: clamp(22px, 3.4vw, 44px); border: 1px solid var(--hm-line); border-radius: var(--ac-radius); background: var(--hm-card); box-shadow: var(--hm-shadow); }
.su-body { flex: 1; }
.su-eyebrow { color: var(--hm-soft); font-size: 1rem; }
.su-title:focus, .ac-card [tabindex="-1"]:focus { outline: 0; }
.su-title { margin-top: 4px; color: var(--orange); font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.375rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.su-lede { max-width: 60ch; margin-top: 10px; color: var(--hm-body); }
.su-content { display: grid; gap: 16px; margin-top: 28px; }
.su-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--hm-line); }
.su-foot .pg-btn { min-width: 180px; }
.su-foot .pg-btn--line { min-width: 0; padding-inline: 18px 22px; }
.su-foot .pg-btn svg, .su-check .pg-btn svg { flex: none; width: 18px; height: 18px; stroke-width: 2.2; }
.su-foot .su-foot__note { flex: 1 1 220px; color: var(--hm-soft); font-size: .875rem; }
.su-foot .su-next { margin-left: auto; }
.su-loading { display: grid; flex: 1; place-items: center; min-height: 360px; color: var(--hm-soft); }
.su-loading p { display: flex; align-items: center; gap: 12px; }
.su-alert { padding: 12px 14px; border: 1px solid var(--error); border-radius: 12px; color: var(--hm-ink); font-size: .9375rem; }
.su-alert:focus { outline: 0; }

/* Two fields side by side on a laptop, stacked on a phone */
.su-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.su-grid .f-wide { grid-column: 1 / -1; }
.su-dob { display: grid; grid-template-columns: 1fr 1.4fr 1.1fr; gap: 10px; }

/* Answer rows: a radio list drawn as cards */
.su-opts { display: grid; gap: 12px; }
.su-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.su-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.su-opt { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 14px 16px; border: 1.5px solid var(--hm-line); border-radius: 16px; background: var(--hm-field); color: var(--hm-ink); cursor: pointer; text-align: left; transition: border-color .15s ease, background-color .15s ease, transform .12s ease; }
.su-opt:hover { border-color: var(--field-line); }
.su-opt:active { transform: scale(.99); }
.su-opt:disabled { opacity: .45; cursor: not-allowed; }
.su-opt:disabled:hover { border-color: var(--hm-line); }
.su-opt:disabled:active { transform: none; }
.su-opt[aria-checked="true"], .su-opt[aria-pressed="true"] { border-color: var(--orange); background: var(--ac-tint); }
.su-opt .su-opt__ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--hm-peach); color: var(--orange); }
.su-opt[aria-checked="true"] .su-opt__ico, .su-opt[aria-pressed="true"] .su-opt__ico { background: var(--orange); color: #fff; }
.su-opt .su-opt__ico svg { width: 22px; height: 22px; }
.su-opt strong { display: block; font-weight: 700; }
.su-opt small { display: block; margin-top: 2px; color: var(--hm-soft); font-size: .875rem; }
.su-opt .su-opt__tick { display: grid; flex: none; place-items: center; width: 24px; height: 24px; margin-left: auto; border: 1.5px solid var(--field-line); border-radius: 50%; color: #fff; }
.su-opt .su-opt__tick svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.su-opt[aria-checked="true"] .su-opt__tick, .su-opt[aria-pressed="true"] .su-opt__tick { border-color: var(--orange); background: var(--orange); }
.su-opt[aria-checked="true"] .su-opt__tick svg, .su-opt[aria-pressed="true"] .su-opt__tick svg { opacity: 1; }
.su-opt--multi .su-opt__tick { border-radius: 7px; }
.su-opt--tall { flex-direction: column; justify-content: center; min-height: 170px; text-align: center; }
.su-opt--tall .su-opt__ico { width: 72px; height: 72px; border-radius: 50%; }
.su-opt--tall .su-opt__ico svg { width: 36px; height: 36px; }
.su-opt--tall .su-opt__tick { position: absolute; top: 12px; right: 12px; }
.su-opt--chip { min-height: 52px; padding: 10px 14px; }
.su-owner { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--field-line); border-radius: 16px; background: linear-gradient(135deg, var(--ac-tint-2), var(--ac-tint)); color: var(--hm-ink); cursor: pointer; text-align: left; transition: border-color .15s ease; }
.su-owner:hover { border-color: var(--orange); }
.su-owner .su-opt__ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--orange); color: #fff; }
.su-owner .su-opt__ico svg { width: 22px; height: 22px; }
.su-owner strong { display: block; font-weight: 700; }
.su-owner small { color: var(--hm-soft); font-size: .875rem; }
.su-owner > svg { width: 20px; height: 20px; margin-left: auto; color: var(--orange); }
.su-step-dots { display: flex; gap: 6px; margin-top: 18px; }
.su-step-dots span { width: 22px; height: 4px; border-radius: 99px; background: var(--hm-line); }
.su-step-dots span[data-on] { background: var(--orange); }

/* Identity checks */
.su-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.su-check { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--hm-line); border-radius: 18px; background: var(--hm-field); }
.su-check header { display: flex; align-items: center; gap: 12px; }
.su-check .su-opt__ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--hm-peach); color: var(--orange); }
.su-check .su-opt__ico svg { width: 22px; height: 22px; }
.su-check h3 { font-size: 1.0625rem; font-weight: 700; }
.su-check p { flex: 1; color: var(--hm-body); font-size: .9375rem; }
.su-check .pg-btn { min-height: 46px; }
.su-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 10px; border-radius: 99px; background: var(--hm-peach); color: var(--hm-body); font-size: .8125rem; font-weight: 700; }
.su-badge[data-tone="ok"] { background: rgba(23, 121, 79, .12); color: var(--ok); }
.su-badge[data-tone="bad"] { background: rgba(185, 52, 8, .1); color: var(--error); }
.su-badge[data-tone="wait"] { background: var(--ac-tint-2); color: var(--orange); }
.su-reward { padding: 14px 16px; border-radius: 14px; background: var(--ac-tint); color: var(--hm-ink); font-size: .9375rem; }

/* Photos: the main photo beside a column of two */
.su-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; max-width: 420px; }
.su-photos__side { display: grid; gap: 12px; }
.su-tile { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border: 1.5px dashed var(--field-line); border-radius: 18px; background: var(--hm-field); }
.su-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.su-tile button.su-tile__add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; border: 0; background: none; color: var(--hm-body); cursor: pointer; font-weight: 600; }
.su-tile button.su-tile__add:hover { color: var(--orange); }
.su-tile button.su-tile__add svg { width: 30px; height: 30px; color: var(--orange); }
.su-tile button.su-tile__add small { color: var(--hm-soft); font-size: .8125rem; font-weight: 400; }
.su-tile[data-filled] { border-style: solid; border-color: var(--hm-line); }
.su-tile.is-drop { border-color: var(--orange); background: var(--ac-tint); }
.su-tile__tag { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .62); color: #fff; font-size: .75rem; font-weight: 700; }
.su-tile__tag[data-tone="bad"] { background: #b93408; }
.su-tile__tag--main { top: 10px; bottom: auto; background: var(--orange); }
.su-tile__x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .62); color: #fff; cursor: pointer; }
.su-tile__x svg { width: 14px; height: 14px; stroke-width: 2.6; }
.su-tile__busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; }

/* Location search */
.su-search { position: relative; }
.su-search .f input { padding-left: 46px; }
.su-search > svg { position: absolute; left: 15px; top: 15px; width: 20px; height: 20px; color: var(--hm-soft); pointer-events: none; }
.su-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5; overflow: hidden; border: 1px solid var(--hm-line); border-radius: 14px; background: var(--hm-card); box-shadow: var(--hm-shadow); }
.su-suggest li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.su-suggest li + li { border-top: 1px solid var(--hm-line); }
.su-suggest li[aria-selected="true"], .su-suggest li:hover { background: var(--ac-tint); }
.su-suggest li svg { flex: none; width: 18px; height: 18px; color: var(--orange); }
.su-suggest li strong { display: block; font-weight: 600; }
.su-suggest li small { color: var(--hm-soft); font-size: .8125rem; }
.su-suggest .su-suggest__empty { color: var(--hm-soft); cursor: default; }
.su-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.su-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 99px; background: var(--ac-tint); box-shadow: inset 0 0 0 1px var(--ac-tint-2); color: var(--hm-ink); font-size: .9375rem; font-weight: 600; }
.su-chip button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--hm-card); color: var(--hm-body); cursor: pointer; }
.su-chip button svg { width: 12px; height: 12px; stroke-width: 2.6; }
.su-hint { color: var(--hm-soft); font-size: .9375rem; }

/* Budget and range answers */
.su-range { display: grid; gap: 18px; max-width: 560px; }
.su-range__out { display: flex; align-items: baseline; gap: 10px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.su-range__out span { color: var(--hm-soft); font-size: 1rem; font-weight: 600; }
.su-slider { position: relative; height: 32px; }
.su-slider__track { position: absolute; left: 0; right: 0; top: 13px; height: 6px; border-radius: 99px; background: var(--hm-line); }
.su-slider__fill { position: absolute; top: 13px; height: 6px; border-radius: 99px; background: var(--grad-brand); }
.su-slider input[type="range"] { position: absolute; inset: 0; width: 100%; height: 32px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.su-slider input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; border: 3px solid #fff; border-radius: 50%; background: var(--orange); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: grab; pointer-events: auto; -webkit-appearance: none; }
.su-slider input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%; background: var(--orange); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: grab; pointer-events: auto; }
.su-slider input[type="range"]::-webkit-slider-runnable-track { background: none; }
.su-slider input[type="range"]::-moz-range-track { background: none; }
.su-slider input[type="range"]:focus-visible { outline: 0; }
.su-slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--ac-tint-2), 0 2px 8px rgba(0, 0, 0, .25); }
.su-range .su-grid .f input { font-weight: 600; }

.su-dealbreaker { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--hm-line); border-radius: 14px; cursor: pointer; }
.su-dealbreaker input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); }
.su-dealbreaker strong { display: block; font-weight: 600; }
.su-dealbreaker small { color: var(--hm-soft); font-size: .875rem; }
.su-dealbreaker:has(input:checked) { border-color: var(--orange); background: var(--ac-tint); }
.su-dealbreaker:has(input:checked) strong { color: var(--orange); }
.su-q-count { margin-top: 10px; color: var(--hm-soft); font-size: .875rem; font-weight: 600; }

/* The last screen */
.su-done { display: grid; justify-items: start; gap: 14px; }
.su-done__tick { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--grad-brand); color: #fff; box-shadow: 0 8px 24px rgba(255, 68, 0, .3); }
.su-done__tick svg { width: 30px; height: 30px; stroke-width: 2.6; }
.su-next-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 12px; }
.su-next-list a { display: grid; align-content: start; gap: 6px; padding: 18px; border: 1px solid var(--hm-line); border-radius: 16px; background: var(--hm-field); color: var(--hm-ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.su-next-list a:hover { border-color: var(--orange); transform: translateY(-2px); }
.su-next-list svg { width: 24px; height: 24px; color: var(--orange); }
.su-next-list strong { font-weight: 700; }
.su-next-list small { color: var(--hm-soft); font-size: .875rem; }

/* Liveness recorder */
.su-live { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 24px; background: var(--hm-card); color: var(--hm-ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.su-live::backdrop { background: var(--hm-scrim); backdrop-filter: blur(4px); }
/* The dialog sits outside <main>, where css/pages.css draws icons as lines */
.su-live svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.su-live__in { display: grid; gap: 16px; padding: 24px; }
.su-live__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.su-live__head h2 { font-size: 1.25rem; font-weight: 700; }
.su-live__x { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border: 1px solid var(--hm-line); border-radius: 50%; background: var(--hm-peach); color: var(--hm-ink); cursor: pointer; }
.su-live__x:hover { border-color: var(--orange); color: var(--orange); }
.su-live__x svg { width: 18px; height: 18px; stroke-width: 2.4; }
.su-live__cam { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 18px; background: #000; }
.su-live__cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.su-live__guide { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 3 / 4; border: 3px solid rgba(255, 255, 255, .85); border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); transform: translate(-50%, -52%); pointer-events: none; }
.su-live__cam[data-rec] .su-live__guide { border-color: var(--orange); }
.su-live__prompt { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .66); color: #fff; font-weight: 700; text-align: center; }
.su-live__rec { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .8125rem; font-weight: 700; }
.su-live__rec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: su-blink 1s steps(2) infinite; }
@keyframes su-blink { 50% { opacity: 0; } }
.su-live__tips { display: grid; gap: 6px; color: var(--hm-body); font-size: .9375rem; }
.su-live__tips li::before { content: '·'; margin-right: 8px; color: var(--orange); font-weight: 700; }
.su-live__meter { height: 6px; overflow: hidden; border-radius: 99px; background: var(--hm-line); }
.su-live__meter span { display: block; width: 0; height: 100%; background: var(--grad-brand); transition: width .2s linear; }

/* A short laptop screen (1366×768 and the like): the photos stay above the fold with Continue */
@media (min-width: 961px) and (max-height: 860px) {
  .su-photos { max-width: 330px; }
  .su-card { min-height: 0; }
}
@media (max-width: 960px) {
  .su { grid-template-columns: minmax(0, 1fr); }
  .su-rail { position: static; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 16px 18px; }
  .su-rail h1 { font-size: 1rem; }
  .su-rail .su-steps { display: none; }
  .su-bar { grid-column: 1 / -1; }
  .su-bar-label { grid-column: 1 / -1; margin-top: -4px; }
  .su-who { grid-column: 2; grid-row: 1; padding: 0; border: 0; }
  .su-who > div { display: none; }
  .su-card { min-height: 0; }
}
@media (max-width: 680px) {
  .su-card { padding: 20px 18px; border-radius: 18px; }
  .su-grid, .su-checks, .su-opts--2, .su-next-list { grid-template-columns: minmax(0, 1fr); }
  .su-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .su-opt--tall { min-height: 130px; padding: 12px 8px; }
  .su-opt--tall .su-opt__ico { width: 54px; height: 54px; }
  .su-foot { position: sticky; bottom: 0; z-index: 3; margin: 24px -18px -20px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-radius: 0 0 18px 18px; background: var(--hm-card); }
  .su-foot .pg-btn { flex: 1; min-width: 0; }
  .su-foot .su-foot__note { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-step, .su-bar span { animation: none; transition: none; }
}

.ac-social[hidden] { display: none; }
.ac-social + .ac-social { margin-top: 10px; }
