/* entry.css — styles for s01 s02 (with s02f forgot and s02r reset) s03 s04 s05. Every rule is scoped under its screen root
   (.scr-sNN, which the page root carries; entry sheets also carry their screen class). Tokens only; no raw colours. */

/* ------------------------------------------------------------------ shared entry pieces (scoped with :is) */
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s04, .scr-s05) .e-head { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-6); min-width: 0; }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s05) .e-head--center { align-items: center; text-align: center; }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s05) .e-head--center .hb-lede { margin: 0 auto; }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s04, .scr-s05) .e-card {
  display: flex; flex-direction: column; gap: var(--s-5); min-width: 0;
  background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-lg);
  padding: var(--s-8); box-shadow: var(--shadow-1);
}
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s04, .scr-s05) .e-card--soft { background: var(--surface-2); border-color: transparent; box-shadow: none; }
:is(.scr-s03) .e-card--inset { background: var(--surface-2); border-color: transparent; box-shadow: none; border-radius: var(--r-md); padding: var(--s-5); gap: var(--s-2); }
@media (max-width: 767px) {
  :is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s04, .scr-s05) .e-card { padding: var(--s-5) var(--s-4); border-radius: var(--r-md); gap: var(--s-4); }
}
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-form { gap: var(--s-5); }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s04, .scr-s05) .e-note { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s04, .scr-s05) .e-note .hb-ic { margin-top: 2px; color: var(--text-3); }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s04, .scr-s05) .e-after { margin-top: var(--s-5); }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s04, .scr-s05) .e-center { text-align: center; }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s04, .scr-s05) .e-dot { color: var(--text-3); margin: 0 2px; }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s04) .e-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin: var(--s-4) 0 0; padding: 0; }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s04) .e-links a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); font-weight: 500; }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s04) .e-links .hb-ic { color: var(--text-3); }
@media (max-width: 479px) { :is(.scr-s02, .scr-s02f, .scr-s02r) .e-links--icons { flex-direction: column; gap: 0; } }

/* big round state icon */
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03, .scr-s05) .e-bigic { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-bigic--brand { background: var(--brand); color: var(--on-brand); }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-bigic--caution { background: var(--caution-bg); color: var(--caution-ink); border: 1px solid var(--caution-border); }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-sent, :is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-state, .scr-s03 .e-done { align-items: flex-start; }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-sent .hb-actions, .scr-s03 .e-state .hb-actions, .scr-s03 .e-done .hb-actions { margin-top: var(--s-2); }

/* spinner (a still ring when Motion is Off) */
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-checking { align-items: center; text-align: center; padding-top: var(--s-12); padding-bottom: var(--s-12); }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-checking .hb-banner { align-self: stretch; text-align: left; }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); }
:root[data-motion="on"] :is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-spin { animation: e-spin 0.9s linear infinite; }
@keyframes e-spin { to { transform: rotate(360deg); } }

/* progress steps: labels on wide screens, "Step n of m · label" on phones */
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps { margin-bottom: var(--s-6); }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__item { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-3); font-weight: 500; }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__item + .e-steps__item::before { content: ''; width: 28px; height: 1px; background: var(--border-strong); margin-right: var(--s-1); }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__dot { width: 26px; height: 26px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; font-size: var(--t-caption); font-weight: 700; border: 1.5px solid var(--border-strong); color: var(--text-2); background: var(--surface-1); font-variant-numeric: tabular-nums; }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__item.is-current { color: var(--text-1); font-weight: 600; }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__item.is-current .e-steps__dot { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__item.is-done { color: var(--text-2); }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__item.is-done .e-steps__dot { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__now { display: none; margin-top: var(--s-2); font-size: var(--t-small); color: var(--text-2); }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__now b { color: var(--text-1); font-weight: 600; }
@media (max-width: 639px) {
  :is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__list { flex-wrap: nowrap; }
  :is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__item { flex: 1 1 0; min-width: 0; }
  :is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__item:first-child { flex: 0 0 auto; }
  :is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__item + .e-steps__item::before { flex: 1 1 auto; width: auto; min-width: 8px; margin-right: 0; }
  :is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  :is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-steps__now { display: block; }
}

/* a locator shown back to the member (kit identifier), never a credential */
:is(.scr-s01, .scr-s03) .e-locator { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-subtle); min-width: 0; }
:is(.scr-s01, .scr-s03) .e-locator__ic { color: var(--brand); display: inline-flex; }
:is(.scr-s01, .scr-s03) .e-locator__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
:is(.scr-s01, .scr-s03) .e-locator__label { font-size: var(--t-caption); line-height: var(--t-caption-lh); text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); font-weight: 600; }
:is(.scr-s01, .scr-s03) .e-locator__val { font-size: 1rem; font-weight: 600; color: var(--text-1); overflow-wrap: anywhere; letter-spacing: 0.04em; }
.scr-s01 .e-locator { margin-bottom: var(--s-5); }

/* mock email preview */
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s05) .e-mail { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); border: 1px dashed var(--border-strong); background: var(--surface-0); font-size: var(--t-small); line-height: var(--t-small-lh); }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s05) .e-mail__meta { color: var(--text-1); }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s05) .e-mail__meta span { display: inline-block; min-width: 4.5rem; color: var(--text-3); font-size: var(--t-caption); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s05) .e-mail__body { color: var(--text-2); }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s05) .e-mail__meta + .e-mail__body { margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--border-subtle); }

/* numbered "what happens next" */
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s04) .e-next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); counter-reset: none; }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s04) .e-next li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s-3); align-items: start; font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-1); }
:is(.scr-s02, .scr-s02f, .scr-s02r, .scr-s04) .e-next__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-1); font-weight: 700; font-size: var(--t-caption); }

/* definition lists */

:is(.scr-s03) .e-bul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-1); }
.scr-s03 .e-receipt { padding: var(--s-3) var(--s-4); border-radius: 12px; background: var(--surface-0); border: 1px solid var(--border-subtle); }
:is(.scr-s05) .e-saved { font-size: var(--t-small); font-weight: 600; color: var(--text-1); }
:is(.scr-s05) .e-saved .hb-ic { color: var(--brand); }

/* ------------------------------------------------------------------ s01 — the sign-in door */
.scr-s01 .e-door { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-10); align-items: start; }
@media (min-width: 1024px) {
  .scr-s01 .e-door { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--s-12) 72px; padding-top: var(--s-4); }
  .scr-s01 .e-door__main { max-width: 560px; }
  .scr-s01 .e-door__aside { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}
.scr-s01 .e-door__main { display: flex; flex-direction: column; min-width: 0; }
.scr-s01 .e-door__main > .hb-banner { margin-bottom: var(--s-6); }
.scr-s01 .e-lookup .hb-input { min-height: 56px; font-size: 1.0625rem; border-radius: 14px; }
.scr-s01 .e-kind { display: flex; gap: var(--s-2); align-items: flex-start; min-height: 1.25rem; margin-top: var(--s-1); font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
.scr-s01 .e-kind:empty { display: none; }
.scr-s01 .e-kind .hb-ic { margin-top: 2px; color: var(--brand); }
.scr-s01 .e-kind b { color: var(--text-1); font-weight: 600; }

.scr-s01 .e-alt { margin-top: var(--s-8); display: flex; flex-direction: column; gap: var(--s-2); }
.scr-s01 .e-alt__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-subtle); }
.scr-s01 .e-alt__list li { border-bottom: 1px solid var(--border-subtle); }
.scr-s01 .e-alt__row { -webkit-appearance: none; appearance: none; width: 100%; display: flex; align-items: center; gap: var(--s-4); min-height: 60px; padding: var(--s-2) var(--s-2); border: 0; background: transparent; color: var(--text-1); text-decoration: none; text-align: left; cursor: pointer; border-radius: var(--r-sm); transition: background var(--dur-fast) var(--ease-out); }
.scr-s01 .e-alt__row:hover { background: var(--brand-softer); }
.scr-s01 .e-alt__ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--brand); }
.scr-s01 .e-alt__ic .hb-ic { width: 18px; height: 18px; }
.scr-s01 .e-alt__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.scr-s01 .e-alt__q { font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
.scr-s01 .e-alt__a { font-weight: 600; color: var(--interactive); }
.scr-s01 .e-alt__chev { color: var(--text-3); }
/* the rest of the ways in: one quiet 14/20 line of 44 px links */
/* spacing, not separator dots, so a wrapped line never starts with a dangling separator */
.scr-s01 .e-altlinks { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-5); font-size: var(--t-small); line-height: var(--t-small-lh); }
.scr-s01 .e-altlinks li { display: inline-flex; align-items: center; }
.scr-s01 .e-altlinks a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 2px; font-weight: 500; color: var(--interactive); border-radius: var(--r-sm); }

.scr-s01 .e-how { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-8); border-radius: var(--r-lg); border: 1px solid var(--border-subtle); background: linear-gradient(165deg, var(--brand-soft), var(--surface-1) 58%); }
@media (max-width: 767px) { .scr-s01 .e-how { padding: var(--s-6) var(--s-5); border-radius: var(--r-md); } }
.scr-s01 .e-how__art { margin: calc(-1 * var(--s-2)) 0 calc(-1 * var(--s-2)); }
/* The brand stage bleeds to the panel's top and sides; its network fades out before the heading (never behind text). */
.scr-s01 .e-how__art:has(.e-stage) { margin: calc(-1 * var(--s-8)) calc(-1 * var(--s-8)) calc(-1 * var(--s-3)); }
@media (max-width: 767px) { .scr-s01 .e-how__art:has(.e-stage) { margin: calc(-1 * var(--s-6)) calc(-1 * var(--s-5)) calc(-1 * var(--s-3)); } }
.scr-s01 .e-stage { height: 188px; }
.scr-s01 .e-stage .hb-stage__mark { width: 176px; }
@media (max-width: 767px) { .scr-s01 .e-stage { height: 164px; } .scr-s01 .e-stage .hb-stage__mark { width: 152px; } }
.scr-s01 .e-const { width: 150px; height: auto; display: block; }
.scr-s01 .e-const line { stroke: var(--brand); stroke-width: 1; opacity: 0.35; }
.scr-s01 .e-const circle { fill: var(--brand); opacity: 0.85; }
.scr-s01 .e-how__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.scr-s01 .e-how__step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-4); padding-bottom: var(--s-5); }
.scr-s01 .e-how__step:last-child { padding-bottom: 0; }
.scr-s01 .e-how__step:not(:last-child)::after { content: ''; position: absolute; left: 19.5px; top: 44px; bottom: 6px; width: 1px; background: var(--border-strong); opacity: 0.45; }
.scr-s01 .e-how__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-1); color: var(--brand); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-1); }
.scr-s01 .e-how__txt { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.scr-s01 .e-how__foot { padding-top: var(--s-4); border-top: 1px solid var(--border-subtle); }

/* ------------------------------------------------------------------ s02 — verification, device, recovery */
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-narrow { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; min-width: 0; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-narrow--wide { max-width: 640px; }
@media (min-width: 768px) { :is(.scr-s02, .scr-s02f, .scr-s02r) .e-narrow { padding-top: var(--s-4); } }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-head .hb-body strong { color: var(--text-1); }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-head + .hb-banner { margin-bottom: var(--s-5); }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-codeform { display: flex; flex-direction: column; gap: var(--s-5); }
:is(.scr-s02, .scr-s02f, .scr-s02r) .hb-code { max-width: none; min-height: 64px; font-size: 1.875rem; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-resend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--border-subtle); }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-resend .hb-banner { flex: 1 1 100%; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-resend:first-child { border-top: 0; padding-top: 0; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-resend .hb-small { flex: 1 1 220px; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-confirm { align-items: flex-start; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-devhome .hb-btn--link { min-height: var(--tap); display: inline-flex; align-items: center; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-confirm .hb-btn--lg { margin-top: var(--s-1); }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-devices { list-style: none; margin: 0 0 var(--s-5); padding: 0; border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--surface-1); overflow: hidden; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-device { display: flex; align-items: center; gap: var(--s-4); min-height: var(--row-h); padding: var(--s-3) var(--s-5); flex-wrap: wrap; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-device + .e-device { border-top: 1px solid var(--border-subtle); }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-device__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); flex: none; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-device__txt { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 0; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-activity { margin-top: var(--s-8); }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-activity__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-activity__list li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--s-3); font-size: var(--t-small); line-height: var(--t-small-lh); }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-activity__list time { color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 479px) { :is(.scr-s02, .scr-s02f, .scr-s02r) .e-activity__list li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ------------------------------------------------------------------ s03 — claim a kit */
.scr-s03 .e-claim { max-width: 640px; }
.scr-s03 .e-subtitle { font-size: 1.0625rem; line-height: 1.625rem; font-weight: 600; color: var(--text-1); margin-top: calc(-1 * var(--s-3)); }
.scr-s03 .e-claim__main { display: flex; flex-direction: column; min-width: 0; }
.scr-s03 .e-head__body { color: var(--text-2); max-width: 60ch; }
.scr-s03 .e-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.scr-s03 .e-checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-1); }
.scr-s03 .e-checks .hb-ic { margin-top: 2px; color: var(--brand); }
.scr-s03 .e-sub { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--border-subtle); }
.scr-s03 .e-sub.e-form { gap: var(--s-4); }
.scr-s03 .e-sub .hb-btn[type="submit"] { align-self: flex-start; }
.scr-s03 .e-verified { flex-direction: row; align-items: flex-start; gap: var(--s-3); padding: var(--s-4); border-top: 0; border-radius: 12px; background: var(--brand-softer); border: 1px solid var(--brand-soft); font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-1); }
.scr-s03 .e-verified .hb-ic { color: var(--brand); flex: none; }
.scr-s03 .e-secret { padding-top: var(--s-4); border-top: 1px solid var(--border-subtle); }
.scr-s03 .e-secret .hb-btn--link { min-height: var(--tap); display: inline-flex; align-items: center; }
.scr-s03 .e-secret .hb-caption { display: block; }
.scr-s03 .e-addform { display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--border-subtle); }
.scr-s03 .hb-btn:disabled { opacity: 1; background: var(--surface-2); border-color: var(--border-subtle); color: var(--text-2); cursor: not-allowed; }
.scr-s03 .hb-code { max-width: 320px; }
.scr-s03 .e-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--surface-2); }
.scr-s03 .e-compare > div { display: flex; flex-direction: column; gap: var(--s-1); }
.scr-s03 .e-attest.is-error { border-color: var(--error-ink); }
.scr-s03 .e-state .hb-h1, .scr-s03 .e-done .hb-h1 { max-width: 30ch; }
.scr-s03 .e-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.scr-s03 .e-tick { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s-4); padding-bottom: var(--s-5); }
.scr-s03 .e-tick:last-child { padding-bottom: 0; }
.scr-s03 .e-tick:not(:last-child)::after { content: ''; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: var(--border-strong); opacity: 0.5; }
.scr-s03 .e-tick__mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--border-strong); background: var(--surface-1); }
.scr-s03 .e-tick.is-done .e-tick__mark { background: var(--brand); border: 0; color: var(--on-brand); }
.scr-s03 .e-tick__txt { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.scr-s03 .e-tick:not(.is-done) .hb-h3 { color: var(--text-1); }

/* sheets opened from s03 carry .scr-s03 too */

/* ------------------------------------------------------------------ s04 — pending kit home and tracker */
.scr-s04 .e-kit { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); align-items: start; }
@media (min-width: 1024px) { .scr-s04 .e-kit { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-10); } }
.scr-s04 .e-kit__main, .scr-s04 .e-kit__side { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.scr-s04 .e-kit__side .e-card { padding: var(--s-6); gap: var(--s-3); border-radius: var(--r-md); }
@media (max-width: 767px) { .scr-s04 .e-kit__side .e-card { padding: var(--s-5) var(--s-4); } }
.scr-s04 .hb-tracker__head { align-items: center; }
.scr-s04 .e-trk-note { padding: var(--s-4) var(--s-6) 0; }
.scr-s04 .e-trk-note .hb-banner { margin: 0; }
.scr-s04 .e-mine { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-1); }
.scr-s04 .e-mine .hb-ic { margin-top: 2px; color: var(--text-3); }
.scr-s04 .e-src { color: var(--text-2); font-size: var(--t-small); }
.scr-s04 .e-mine .e-src::before { content: '· '; }
.scr-s04 .e-trk-actions { padding: var(--s-4) var(--s-6) 0; }
/* quiet links under the actions: instructions and "Something does not look right" (44 px targets) */
.scr-s04 .e-trk-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); padding: var(--s-2) var(--s-6) var(--s-4); margin-left: calc(-1 * var(--s-3)); }
.scr-s04 .e-trk-links .hb-btn--quiet { font-weight: 500; font-size: var(--t-small); }
.scr-s04 .e-trk-actions + .e-trk-links { padding-top: var(--s-1); }
.scr-s04 .e-trk-actions--end { padding-bottom: var(--s-5); }
/* health context (owner B7): the member's own answers for this collection, inside the kit card */
.scr-s04 .e-trk-ci { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); margin: 0 var(--s-6) var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border-subtle); }
.scr-s04 .e-trk-ci__head { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
.scr-s04 .e-trk-ci__head .hb-ic { margin-top: 2px; flex: none; }
.scr-s04 .e-trk-ci__head strong { color: var(--text-1); }
.scr-s04 .e-trk-ci .hb-btn--quiet { margin-left: calc(-1 * var(--s-3)); }
.scr-s04 .hb-limit .hb-btn--link { display: inline-flex; align-items: center; min-height: 44px; }
/* tracker foot: the last confirmed event (14/20) and the separately labelled service update (12/17) */
.scr-s04 .e-foot { display: flex; flex-direction: column; gap: var(--s-1); }
.scr-s04 .e-foot .hb-small { color: var(--text-1); }
.scr-s04 .e-foot .hb-caption { color: var(--text-2); }
@media (max-width: 767px) {
  .scr-s04 .e-trk-note { padding-left: var(--s-4); padding-right: var(--s-4); }
  .scr-s04 .e-trk-actions { padding-left: var(--s-4); padding-right: var(--s-4); }
  .scr-s04 .e-trk-links { padding-left: var(--s-4); padding-right: var(--s-4); }
  .scr-s04 .e-trk-ci { margin-left: var(--s-4); margin-right: var(--s-4); }
  .scr-s04 .e-trk-actions .hb-btn { flex: 1 1 100%; justify-content: flex-start; }
}
/* Samples → Kits and Reports */
.scr-s04 .e-panel { display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }
.scr-s04 .e-panel .hb-list { margin: 0 calc(-1 * var(--s-3)); }
.scr-s04 :is(.e-kits, .e-colls) { padding: var(--s-6); gap: var(--s-3); border-radius: var(--r-md); }
@media (max-width: 767px) { .scr-s04 :is(.e-kits, .e-colls) { padding: var(--s-5) var(--s-4); } }
.scr-s04 .hb-prompt { margin-top: var(--s-10); }
.scr-s04 .hb-pagehead .hb-display { max-width: 24ch; }
.scr-s04 .e-kitdot { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid var(--border-strong); background: transparent; }
.scr-s04 .e-kitdot--ready { background: var(--brand); border-color: var(--brand); }
.scr-s04 .e-kit__side .hb-list, .scr-s04 :is(.e-kits, .e-colls) .hb-list { margin: 0 calc(-1 * var(--s-3)); }
.scr-s04 .e-wait__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.scr-s04 .e-wait__list a { display: flex; align-items: flex-start; gap: var(--s-3); min-height: var(--tap); padding: var(--s-2) 0; font-weight: 500; line-height: 1.375rem; }
.scr-s04 .e-wait__list .hb-ic { flex: none; margin-top: 3px; color: var(--brand); }
.scr-s04 .e-wait .hb-btn { align-self: flex-start; }
.scr-s04.hb-sheet .e-next { margin-bottom: var(--s-2); }
.scr-s04.hb-sheet .e-sheetform { display: flex; flex-direction: column; gap: var(--s-3); }
.scr-s04.hb-sheet input[type="date"] { max-width: 280px; }

/* ------------------------------------------------------------------ s05 — first report arrival */
.scr-s05 .e-arrive { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-6); padding-top: var(--s-4); }
.scr-s05 .e-arrive > .hb-banner { margin-bottom: var(--s-2); }
.scr-s05 .e-head { margin-bottom: 0; }
.scr-s05 .e-arrive__mark { display: block; margin-bottom: var(--s-2); }
.scr-s05 .e-arrive__mark svg { width: 132px; height: auto; display: block; margin: 0 auto; }
.scr-s05 .e-arrive__mark .e-const line { stroke: var(--brand); stroke-width: 1; opacity: 0.35; }
.scr-s05 .e-arrive__mark .e-const circle { fill: var(--brand); opacity: 0.85; }
/* The real mark, still, with the landing page's card entrance (once per visit; off under Motion: Off). */
.scr-s05 .e-arrive__mark .hblogo { width: 112px; filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--pill-b) 32%, transparent)); }
:root[data-motion="on"] .scr-s05 .e-arrive__mark { animation: hb-settle var(--dur-slow) var(--ease-out) both; }
.scr-s05 .e-head .hb-display { max-width: 18ch; }
/* one primary path (52 px, at least 280 px, centred), then one quiet line with the other two starting points */
.scr-s05 .e-start { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); text-align: center; margin-top: var(--s-2); }
.scr-s05 .e-start__primary { min-width: min(280px, 100%); min-height: 52px; }
.scr-s05 .e-start__or { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--s-1); font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-2); }
.scr-s05 .e-start__or > span:first-child { margin-right: var(--s-1); }
.scr-s05 .e-start__links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s-2); }
.scr-s05 .e-start__or .hb-btn--quiet { font-size: var(--t-small); font-weight: 600; padding: 0 var(--s-2); }
.scr-s05 .e-start .hb-caption { color: var(--text-2); max-width: 46ch; }
.scr-s05 .e-arrive__more { max-width: 560px; margin: 0 auto; width: 100%; }
.scr-s05 .e-pref { max-width: 560px; margin: 0 auto; width: 100%; }
.scr-s05 .e-pref + .e-after { margin-top: 0; }

/* ------------------------------------------------------------------ focus rings keep each control's own shape */
.scr-s01 .e-alt__row:focus-visible { border-radius: var(--r-sm); outline-offset: 0; }
.scr-s04 .e-wait__list a:focus-visible, .scr-s04 .hb-listrow:focus-visible { border-radius: var(--r-sm); }

/* ---------------------------------------------------------------- integration additions */
:is(.scr-s02, .scr-s02f, .scr-s02r) h1.hb-h1, .scr-s03 h1.hb-h1 { font-size: var(--t-display); line-height: var(--t-display-lh); font-weight: 380; letter-spacing: -0.018em; font-variation-settings: 'opsz' 72; }
.scr-s04 .e-kit__side .e-card > .hb-btn { align-self: flex-start; }

/* ------------------------------------------------------------------ beta: password sign-in pieces (s01, s02, s02f, s02r) */
/* Password field with its Show / Hide toggle inside the field (44 px target; the field keeps its 48 px height). */
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r) .e-pw { position: relative; display: flex; align-items: center; min-width: 0; }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r) .e-pw__input { padding-right: 104px; }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r) .e-pw__toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); min-height: var(--tap); padding: 0 var(--s-3); border-radius: calc(var(--r-sm) - 2px); gap: 6px; font-size: var(--t-small); }
.scr-s01 .e-lookup .e-pw__toggle { right: 6px; }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r) .e-pw__toggle:hover { background: var(--surface-2); }
:is(.scr-s02, .scr-s02r) .e-rules { list-style: none; margin: 0; padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); border-radius: var(--r-md); background: var(--surface-2); }
:is(.scr-s02, .scr-s02r) .e-rules li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--s-2); font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-1); }
:is(.scr-s02, .scr-s02r) .e-rules .hb-ic { margin-top: 2px; color: var(--brand); }
:is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-spin--btn { width: 18px; height: 18px; border-width: 2px; border-color: rgba(255, 255, 255, 0.35); border-top-color: var(--on-brand); border-style: solid; border-radius: 50%; flex: none; }
:root[data-motion="on"] :is(.scr-s01, .scr-s02, .scr-s02f, .scr-s02r, .scr-s03) .e-spin--btn { animation: e-spin 0.9s linear infinite; }
.scr-s01 .e-remember { margin-top: calc(-1 * var(--s-1)); }
.scr-s01 .e-forgot { margin: calc(-1 * var(--s-2)) 0 0; text-align: center; font-size: var(--t-small); line-height: var(--t-small-lh); }
.scr-s01 .e-forgot a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-2); font-weight: 600; }
.scr-s01 .e-door__main > .e-head + .hb-banner { margin-bottom: var(--s-6); }
.scr-s01 .e-alt__row--static { cursor: default; }
.scr-s01 .e-alt__row--static:hover { background: transparent; }
.scr-s01 .e-alt__a--plain { color: var(--text-1); font-weight: 500; font-size: 0.9375rem; line-height: 1.375rem; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-head + .hb-banner { margin-bottom: var(--s-5); }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-state { align-items: flex-start; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-state .hb-actions { margin-top: var(--s-2); }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-after .hb-btn--link { min-height: var(--tap); display: inline-flex; align-items: center; }
:is(.scr-s02, .scr-s02f, .scr-s02r) .e-after a { display: inline-flex; align-items: center; min-height: var(--tap); }
.scr-s03 .e-head + .hb-banner { margin-bottom: var(--s-5); }
.scr-s04 .e-kits .hb-listrow[aria-current="true"] { background: var(--brand-softer); }
