/* Shared chrome for guided flows, for both audiences (04-prototype/shared/stepper.css, neutral since 2026-10-11): the profile-setup stepper, the sign-in
   and code screens of the learner app and the portal. Spec: 03-modules/learner/profile-setup/README.md "Shared stepper chrome"; the sign-in pieces:
   03-modules/learner/auth and 03-modules/admin/auth. Tokens only (theme.css). */
@import url('./otp.css');   /* the code block (Verify email, Secure your account) lives in its own file since 2026-10-03, so pushed screens can load it */
body { font-family: var(--font-family); background: var(--page-bg); color: var(--text-primary); min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; margin: 0; }
@media (min-width: 600px) { body { align-items: center; } }

.phone { width: 100%; max-width: 400px; min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; padding: 16px; position: relative; }
@media (min-width: 600px) {
  .phone { min-height: 720px; max-width: 480px; margin: 32px 0; border-radius: 24px; box-shadow: var(--elev-3); overflow: hidden; padding: 24px; }
}

/* header: back, progress, count, menu */
.step-header { display: flex; align-items: center; gap: 8px; }
.step-header .spacer { width: 48px; height: 48px; flex-shrink: 0; }
/* the dev-only Theme Lab sits bottom-end, above the footer: at its default top-end it covered the header's Sign out (⋮) on phones */
.theme-lab { top: auto !important; bottom: 136px; inset-inline-end: 12px; }
.theme-lab-panel { top: auto !important; bottom: 44px; inset-inline-end: 0; max-height: 70vh; overflow: auto; }
/* the progress bar (.progress) lives in components.css since 2026-10-19 (one recipe, one file: the module bars moved onto it) */
.step-count { font-size: calc(12px * var(--font-scale)); font-weight: 600; color: var(--text-secondary); min-width: 44px; text-align: end; }

.step-body { flex: 1; display: flex; flex-direction: column; padding-top: 24px; }
.step-title { font-size: calc(24px * var(--font-scale)); line-height: 1.33; font-weight: 700; margin: 0; }
.step-title span { color: var(--primary-text); }   /* the key word of every guided-flow title: "What's your name?", "Pick your username", "Verify your email" … (tokens §2.2, Guided-flow titles) */
.step-sub { font-size: calc(14px * var(--font-scale)); line-height: 1.57; color: var(--text-secondary); margin: 8px 0 0; }
.step-footer { padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.step-footer .btn-primary { width: 100%; }

/* the labelled field (.f-label, .field, .help, shake) lives in theme.css: the profile sheets use it too (2026-10-03) */

/* the chips (.chips, .chip) are shared primitives: ../../shared/components.css since 2026-10-11 */

.row-2 { display: block; } /* fields always stack: names are long and the card is narrow */
.row-2 > div + div { margin-top: 16px; }   /* each stacked field's label is the first child of its wrapper, so .f-label:first-child zeroes its gap; the wrapper carries it (2026-10-27, name step looked congested) */
.note { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); line-height: 1.5; margin: 24px 0 0; }
.step-body .link { display: flex; width: fit-content; gap: 8px; margin-top: 4px; }   /* the step's secondary actions (resume, invite code) stack as rows of their own with room between icon and label */
.step-body .link + .link { margin-top: 0; }
.step-body .link + div { margin-top: 8px; }   /* the field a link reveals (invite code) stands off the link row */
/* toast, avatar and bottom sheet (.sheet2, .grab): theme.css */
/* the option row (.opt) is a shared primitive: ../../shared/components.css since 2026-10-11 */
[hidden] { display: none !important; }

/* mi-clones: icon-font sizes mirroring the svg size rules */
/* mi-clones */

/* ---------- sign-in (auth 00 of both audiences, 2026-10-11: the learner's sign-in gave up its own card for this frame) ---------- */
.auth-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 8px; }
.auth-head .logo-mark { width: 80px; height: 80px; }
@media (min-width: 600px) { .auth-head .logo-mark { width: 100px; height: 100px; } }
.auth-head small { display: block; margin-top: 4px; font-size: calc(12px * var(--font-scale)); font-weight: 700; letter-spacing: .02em; color: var(--text-secondary); }   /* "PrepBuddy Portal" under the mark */
.auth-head h1 { margin: 20px 0 0; font-size: calc(28px * var(--font-scale)); line-height: 1.29; font-weight: 700; }
.auth-head h1 span { color: var(--primary-text); }   /* the key word (tokens §2.2, Guided-flow titles) */
.auth-head .step-sub { margin-top: 8px; }
.auth-field { margin-top: 32px; }
.auth-cta { margin-top: 24px; } .auth-cta .btn-primary { width: 100%; }
.auth-or { margin-top: 24px; }
.auth-social { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.auth-legal { margin: 24px 0 0; text-align: center; font-size: calc(12px * var(--font-scale)); line-height: 1.5; color: var(--text-secondary); }
.auth-legal a { color: var(--text-primary); white-space: nowrap; }
/* the portal's waiting state: an internal address is on its way to Keycloak; the field and the button give way to it */
.auth-wait { display: none; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-top: 32px; }
.auth-wait h2 { margin: 8px 0 0; font-size: calc(20px * var(--font-scale)); line-height: 1.4; font-weight: 600; }
.auth-wait p { margin: 0; font-size: calc(14px * var(--font-scale)); line-height: 1.57; color: var(--text-secondary); }
.auth-wait .btn-primary { margin-top: 12px; width: 100%; }
.phone.waiting .auth-field, .phone.waiting .auth-cta { display: none; }
.phone.waiting .auth-wait { display: flex; }
