/* Sign in + registration (/login), plus the learner pieces shared with the portal (/app):
   one-time-code boxes, the "Who's learning today?" picker, the learner switch veil, progress rings and mini pass barcodes. */
.auth-page { background: var(--bg); }
.auth { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); min-height: 100vh; min-height: 100dvh; }
button.link { font: inherit; }
.nowrap { white-space: nowrap; }

/* Left: night panel with the learner pass, printed step by step as you register. */
.auth__art { position: sticky; top: 0; height: 100vh; height: 100dvh; background: radial-gradient(120% 90% at 50% 30%, #1E1A12, #110F0B 60%, #0A0907); color: #F2ECDD; display: grid; grid-template-rows: auto 1fr auto auto; padding: 36px clamp(28px, 4vw, 56px) 44px; overflow: hidden; --pattern-ink: rgba(229, 197, 104, 0.08); }
.auth__brand { position: relative; --logo-h: 48px; justify-self: start; }
.auth__brand .logo__word path { fill: #E5C568; }
.auth__med { position: relative; align-self: center; justify-self: center; width: min(92%, 540px); transform: rotate(-3deg); }
.auth__med .pass { filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(229, 197, 104, 0.4)); }
.auth__caption { position: relative; justify-self: center; margin: -6px 0 26px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #CC9933; display: inline-flex; align-items: center; gap: 12px; }
.auth__caption::before, .auth__caption::after { content: ''; width: 26px; height: 1px; background: currentColor; opacity: 0.55; }
.auth__verse { position: relative; display: grid; gap: 6px; text-align: center; max-width: 460px; justify-self: center; transition: opacity var(--t-4); }
.auth__verse .ar { color: #F4E7C2; line-height: 2; }
.auth__en { font-family: var(--font-accent); font-style: normal; font-stretch: var(--accent-stretch); font-size: var(--fs-18); color: #D9D1BE; }
.auth__ref { font-size: var(--fs-12); letter-spacing: 0.16em; text-transform: uppercase; color: #CC9933; margin-top: 6px; }

/* Right: the form. */
.auth__main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 22px clamp(20px, 5vw, 64px) 22px; min-width: 0; }
.auth__top { display: flex; align-items: center; gap: 8px; }
.auth__back { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-14); font-weight: 600; color: var(--text-2); padding: 8px 12px 8px 6px; border-radius: 99px; }
.auth__back:hover { color: var(--text); background: var(--accent-soft); }
.auth__back .i { width: 18px; height: 18px; }
.auth__brand-sm { display: none; --logo-h: 34px; }
.auth__tools { margin-left: auto; display: flex; gap: 2px; }
.auth__panel { width: min(100%, 480px); margin: auto; padding-block: 36px; display: grid; gap: 22px; min-width: 0; }
.auth__switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 99px; background: var(--sunken); border: 1px solid var(--line); }
.auth__switch button { position: relative; z-index: 1; min-height: 44px; border-radius: 99px; font-weight: 650; font-size: var(--fs-15); color: var(--text-2); transition: color var(--t-3); }
.auth__switch button[aria-selected='true'] { color: var(--text); }
.auth__switch-ink { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--accent-line); transition: transform var(--t-4) var(--ease-out); }
.auth__switch[data-mode='register'] .auth__switch-ink { transform: translateX(100%); }
.auth__views { display: grid; min-width: 0; }
.auth__view { min-width: 0; }
.auth__form { display: grid; gap: 22px; min-width: 0; }
.si-panels, .si-panel { display: grid; gap: 22px; min-width: 0; }
.auth__head { display: grid; gap: 10px; }
.auth__kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); }
.auth__kicker .i { width: 14px; height: 14px; }
.auth__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-44); line-height: 1.08; letter-spacing: -0.02em; padding: 0; outline: none; }
.auth__title em { font-family: var(--font-accent); font-style: normal; font-stretch: var(--accent-stretch); font-weight: 400; color: var(--accent-text); letter-spacing: 0; }
.auth__sub { color: var(--text-2); font-size: var(--fs-16); }
.auth__small { font-size: var(--fs-14); color: var(--text-2); text-align: center; }
.auth__small .link { font-weight: 650; }
.auth__status:empty { display: none; }
.auth__status { display: grid; gap: 10px; animation: vt-in 380ms var(--ease-out) both; }
.auth__more { display: grid; gap: 14px; }
.auth__or { display: flex; align-items: center; gap: 14px; color: var(--text-3); font-size: var(--fs-13); text-transform: uppercase; letter-spacing: 0.14em; }
.auth__or::before, .auth__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth__foot { display: flex; justify-content: center; gap: 10px; font-size: var(--fs-13); color: var(--text-3); }
.auth__foot a:hover { color: var(--text); }

/* Panel and step changes: transform + opacity only. */
.auth .is-in { animation: step-in 440ms var(--ease-out) both; }
.auth .is-back { animation: step-back 440ms var(--ease-out) both; }
@keyframes step-in { from { opacity: 0; transform: translate3d(22px, 0, 0); } }
@keyframes step-back { from { opacity: 0; transform: translate3d(-22px, 0, 0); } }

/* Wizard. */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wizard__meter { display: grid; gap: 10px; }
.wizard__progress { --n: 6; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 5px; align-items: end; height: 14px; }
.wizard__progress i { height: 8px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; transition: height var(--t-3) var(--ease-out); }
.wizard__progress i::after { content: ''; position: absolute; inset: 0; background: var(--leaf-flat); transform: scaleX(0); transform-origin: left; transition: transform var(--t-4) var(--ease-out); }
.wizard__progress i.is-on::after { transform: none; }
.wizard__progress i.is-now { height: 14px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.wizard__count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.wizard__steps { display: grid; min-width: 0; }
.wizard__step { display: grid; gap: 14px; min-width: 0; }
.wizard__step legend { margin-bottom: 4px; float: left; width: 100%; }
.wizard__step legend + * { clear: both; }
.opt-tag { display: inline-block; vertical-align: middle; font-family: var(--font-ui); font-size: var(--fs-12); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 9px; margin-left: 6px; }
.wizard__nav { display: flex; align-items: center; gap: 8px; }
.wizard__nav [data-next] { margin-left: auto; min-width: 160px; }
.wizard__nav .btn { max-width: 100%; }
/* Phones: the main action gets its own full-width row; Back and Skip share the row under it. */
@media (max-width: 560px) {
  .wizard__nav { flex-wrap: wrap; row-gap: 6px; }
  .wizard__nav [data-next] { order: -1; flex: 1 0 100%; width: 100%; margin-left: 0; min-width: 0; }
  .wizard__nav > :not([data-next]) { flex: 1 1 0; justify-content: center; }
}
.field__label .chip { font-weight: 600; }

/* Step 1: who is this account for? Each card has a small stack of tickets: one, a family, a class. */
.who { display: grid; gap: 10px; }
.who-card { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px 14px 12px; min-height: 86px; border-radius: var(--r-4); border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color var(--t-2), background-color var(--t-2), transform var(--t-1); }
.who-card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.who-card:hover { border-color: var(--accent-line); }
.who-card:active { transform: scale(0.99); }
.who-card:has(input:checked) { border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.who-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.who-card__text { display: grid; gap: 2px; min-width: 0; pointer-events: none; }
.who-card__text strong { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-20); letter-spacing: -0.01em; }
.who-card__text span { font-size: var(--fs-14); color: var(--text-2); }
.who-card__dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; pointer-events: none; transition: border-color var(--t-2); }
.who-card__dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--t-3) var(--ease-out); }
.who-card:has(input:checked) .who-card__dot { border-color: var(--accent); }
.who-card:has(input:checked) .who-card__dot::after { transform: none; }
.who-art { position: relative; width: 76px; height: 56px; pointer-events: none; }
.who-art i { position: absolute; left: 50%; top: 50%; width: 40px; height: 26px; margin: -13px 0 0 -20px; border-radius: 5px; background: linear-gradient(90deg, var(--pass-bg) 0 66%, var(--accent-soft) 66%); box-shadow: inset 0 0 0 1.5px var(--accent-line), 0 6px 12px -8px rgba(40, 30, 5, 0.5); transition: transform var(--t-3) var(--ease-out), background var(--t-3);
  -webkit-mask: radial-gradient(circle 3.5px at 66% 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 3.5px at 66% 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 3.5px at 66% 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 3.5px at 66% 100%, #0000 96%, #000) bottom / 100% 51% no-repeat; }
.who-art i::before { content: ''; position: absolute; left: 6px; right: 40%; top: 8px; height: 2px; border-radius: 2px; background: var(--line-2); box-shadow: 0 5px 0 var(--line-2); }
.who-art--1 i { width: 46px; height: 30px; margin: -15px 0 0 -23px; transform: rotate(-6deg); }
.who-art--3 i:nth-child(1) { transform: translate(-14px, 4px) rotate(-12deg); }
.who-art--3 i:nth-child(2) { transform: translate(0, -3px) rotate(-2deg); }
.who-art--3 i:nth-child(3) { transform: translate(14px, 5px) rotate(9deg); }
.who-art--5 i { width: 32px; height: 21px; margin: -10px 0 0 -16px; }
.who-art--5 i:nth-child(1) { transform: translate(-20px, -8px) rotate(-10deg); }
.who-art--5 i:nth-child(2) { transform: translate(0, -11px) rotate(-2deg); }
.who-art--5 i:nth-child(3) { transform: translate(20px, -7px) rotate(8deg); }
.who-art--5 i:nth-child(4) { transform: translate(-10px, 10px) rotate(-5deg); }
.who-art--5 i:nth-child(5) { transform: translate(11px, 11px) rotate(5deg); }
.who-card:has(input:checked) .who-art i { background: linear-gradient(90deg, #F3D98B 0 66%, #DDB453 66%); box-shadow: inset 0 0 0 1.5px #B98724, 0 6px 14px -8px rgba(116, 91, 14, 0.7); }
.who-card:has(input:checked) .who-art i::before { background: rgba(29, 21, 3, 0.35); box-shadow: 0 5px 0 rgba(29, 21, 3, 0.35); }
@media (hover: hover) { .who-card:hover .who-art--3 i:nth-child(1) { transform: translate(-17px, 5px) rotate(-15deg); } .who-card:hover .who-art--3 i:nth-child(3) { transform: translate(17px, 6px) rotate(12deg); } .who-card:hover .who-art--1 i { transform: rotate(-2deg) translateY(-2px); } }
.class-banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-3); border: 1px solid var(--accent-line); background: var(--accent-soft); font-size: var(--fs-14); }
.class-banner .i { flex: none; width: 18px; height: 18px; color: var(--accent-text); margin-top: 1px; }
.class-banner strong { font-family: var(--font-mono); letter-spacing: 0.12em; }

/* Phone + code hint. */
.otp-hint { display: flex; align-items: center; gap: 10px; font-size: var(--fs-14); color: var(--text-2); }
.otp-hint .i { flex: none; width: 19px; height: 19px; color: var(--ok); }

/* Name (just me): certificate preview + avatar colour. */
.cert-name { display: grid; gap: 4px; padding: 14px 18px; border-radius: var(--r-3); border: 1px dashed var(--accent-line); background: var(--surface-2); min-width: 0; }
.cert-name__k { font-size: var(--fs-12); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 650; }
.cert-name__v { font-family: Helvetica, Arial, sans-serif; font-weight: 700; font-size: var(--fs-20); letter-spacing: 0.02em; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.3em; }
.cert-name__v.is-empty { color: var(--text-3); }
.tone-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.tone-row__l { font-size: var(--fs-14); font-weight: 600; color: var(--text-2); }
.tone-row__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.tone-opt { position: relative; cursor: pointer; border-radius: 50%; }
.tone-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.tone-opt .avatar { --size: 38px; transition: transform var(--t-2) var(--ease-out), box-shadow var(--t-2); }
.tone-opt .avatar .i { width: 16px; height: 16px; }
.tone-opt:hover .avatar { transform: translateY(-2px); }
.tone-opt input:checked + .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.tone-opt input:focus-visible + .avatar { outline: 2px solid var(--accent); outline-offset: 5px; }

/* Age: one tap answers; any other age can be typed. */
.age-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.age-chip { min-height: 58px; border-radius: var(--r-3); border: 1.5px solid var(--line-2); background: var(--surface); font-family: var(--font-display); font-size: var(--fs-24); font-weight: 600; color: var(--text); transition: border-color var(--t-2), background-color var(--t-2), transform var(--t-1); }
.age-chip:hover { border-color: var(--accent-line); }
.age-chip:active { transform: scale(0.97); }
.age-chip[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.age-other { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 8px; }
.age-other label { font-size: var(--fs-14); font-weight: 600; color: var(--text-2); }
.age-other .input { max-width: 180px; }

/* Gender: two large choices. */
.pick2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick2__opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 0 20px; border-radius: var(--r-4); border: 1.5px solid var(--line-2); background: var(--surface); font-family: var(--font-display); font-size: var(--fs-20); font-weight: 600; cursor: pointer; transition: border-color var(--t-2), background-color var(--t-2); }
.pick2__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pick2__opt:hover { border-color: var(--accent-line); }
.pick2__dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.pick2__dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--t-3) var(--ease-out); }
.pick2__opt:has(input:checked) { border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.pick2__opt:has(input:checked) .pick2__dot { border-color: var(--accent); }
.pick2__opt:has(input:checked) .pick2__dot::after { transform: none; }
.pick2__opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Email (+ code) and class code. */
.email-ok { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 650; color: var(--ok-text); }
.email-ok .i { width: 16px; height: 16px; }
.email-code { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-4); background: var(--surface-2); border: 1px solid var(--line); }
.email-code__lead { font-size: var(--fs-14); color: var(--text-2); }
.class-code { border-radius: var(--r-4); border: 1px dashed var(--line-2); background: var(--surface); transition: border-color var(--t-2); }
.class-code.is-open { border-color: var(--accent-line); }
.class-code__toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 16px; font-weight: 600; font-size: var(--fs-15); text-align: left; color: var(--text); }
.class-code__toggle > .i:first-child { color: var(--accent-text); width: 19px; height: 19px; }
.class-code__toggle span { flex: 1; }
.class-code__chev { color: var(--text-3); transition: transform var(--t-3) var(--ease-out); }
.class-code.is-open .class-code__chev { transform: rotate(180deg); }
.class-code__body { padding: 0 16px 16px; }
.input--code { font-family: var(--font-mono); letter-spacing: 0.3em; text-transform: uppercase; }
.input--code::placeholder { letter-spacing: 0.3em; }

/* Consent (India DPDP Act). */
.consent { gap: 10px; padding: 16px; border-radius: var(--r-4); background: var(--surface-2); border: 1px solid var(--accent-line); }
.consent__check { font-size: var(--fs-15); line-height: 1.5; }
.consent__more { display: flex; gap: 10px; font-size: var(--fs-13); color: var(--text-2); }
.consent__more .i { flex: none; width: 16px; height: 16px; color: var(--accent-text); margin-top: 2px; }
.consent.has-error { border-color: var(--bad); }
.consent.has-error .check input { border-color: var(--bad); }

/* Learners (parents / teachers): quick add + cards. */
.lrn { display: grid; gap: 14px; }
.lrn-list { display: grid; gap: 8px; }
.lrn-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 4px 10px; padding: 10px 8px 10px 10px; border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line); }
.lrn-card.is-new { animation: lrn-in 0.5s var(--ease-out) both; }
.lrn-card.is-editing { border-color: var(--accent); background: var(--accent-soft); }
@keyframes lrn-in { from { opacity: 0; transform: translate3d(0, -8px, 0) scale(0.98); } }
.lrn-card__av { border-radius: 50%; }
.lrn-card__av .avatar { --size: 40px; }
.lrn-card__text { display: grid; min-width: 0; }
.lrn-card__text strong { font-family: Helvetica, Arial, sans-serif; font-size: var(--fs-15); letter-spacing: 0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrn-card__text span { font-size: var(--fs-13); color: var(--text-3); }
.lrn-card__num { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--text-3); padding-inline: 4px; }
.lrn-card__btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.lrn-card__btn:hover { background: var(--sunken); color: var(--text); }
.lrn-card__btn--x:hover { background: var(--bad-bg); color: var(--bad-text); }
.lrn-card__btn .i { width: 17px; height: 17px; }
.lrn-add { display: grid; gap: 14px; padding: 16px; border-radius: var(--r-4); border: 1.5px dashed var(--accent-line); background: var(--surface-2); }
.lrn-add.is-editing { border-style: solid; border-color: var(--accent); }
.lrn-add__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lrn-add__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-18); }
.lrn-count { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.lrn-count.is-full { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); }
.lrn-add__main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 12px; }
.lrn-av { border-radius: 50%; margin-bottom: 6px; transition: transform var(--t-2) var(--ease-out); }
.lrn-av:hover { transform: scale(1.05); }
.lrn-av .avatar { --size: 52px; }
.lrn-av .avatar .i { width: 20px; height: 20px; }
.lrn-add__hint { display: flex; gap: 8px; font-size: var(--fs-13); color: var(--text-3); }
.lrn-add__hint .i { flex: none; width: 15px; height: 15px; color: var(--accent-text); margin-top: 2px; }
.lrn-add__grid { display: grid; grid-template-columns: 0.7fr 1fr 1.3fr; gap: 10px; }
.lrn-add__grid .field__label { font-size: var(--fs-13); }
.lrn-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-3); background: var(--sunken); border: 1px solid var(--line); min-height: 52px; }
.lrn-seg button { border-radius: calc(var(--r-3) - 4px); font-weight: 600; font-size: var(--fs-14); color: var(--text-2); }
.lrn-seg button[aria-pressed='true'] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--accent-line); }
.lrn-add__actions { display: flex; justify-content: flex-end; gap: 8px; }
.lrn-full { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-3); background: var(--accent-soft); font-size: var(--fs-14); }
.lrn-full .i { flex: none; color: var(--accent-text); }
@media (max-width: 520px) { .lrn-add__grid { grid-template-columns: 1fr 1fr; } .lrn-gender { grid-column: 1 / -1; } .lrn-card__num { display: none; } .lrn-card { grid-template-columns: auto minmax(0, 1fr) auto auto; } }

/* Success. */
.auth__done { display: grid; gap: 16px; justify-items: center; text-align: center; }
.done__med { width: 100%; margin-bottom: 6px; }
.done__people { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.done__people li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); animation: lrn-in 0.5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 200ms); }
.done__people .avatar { --size: 32px; }
.done__pn { font-weight: 650; font-size: var(--fs-14); }
.done__pl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--accent-text); padding-left: 8px; border-left: 1.5px dashed var(--line-2); }
.done__class { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-3); background: var(--ok-bg); color: var(--ok-text); font-size: var(--fs-14); text-align: left; }
.done__class .i { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.done__class.is-miss { background: var(--accent-soft); color: var(--text); }
.done__class.is-miss .i { color: var(--accent-text); }
.done__actions { display: grid; gap: 10px; width: 100%; margin-top: 8px; }

/* Demo accounts. */
.demo { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-4); border: 1px solid var(--line); background: var(--surface); }
.demo__k { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo__k h2 { font-family: var(--font-ui); font-size: var(--fs-14); font-weight: 700; color: var(--text); }
.demo__note { font-size: var(--fs-13); color: var(--text-3); margin-top: -4px; }
.demo__list { display: grid; gap: 8px; }
.demo__btn { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-3); border: 1px solid var(--line); text-align: left; transition: border-color var(--t-2), background-color var(--t-2), transform var(--t-1); }
.demo__btn:hover { border-color: var(--accent-line); background: var(--surface-2); }
.demo__btn:active { transform: scale(0.99); }
.demo__btn:disabled { opacity: 0.55; }
.demo__btn.is-busy { opacity: 1; border-color: var(--accent); }
.demo__avs { display: flex; align-items: center; min-width: 52px; }
.demo__avs .avatar { --size: 38px; box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.demo__avs.is-stack { gap: 0; }
.demo__avs.is-stack .avatar { --size: 30px; font-size: 10.5px; letter-spacing: 0; }
.demo__avs.is-stack .avatar + .avatar { margin-left: -6px; }
.demo__avs.is-stack { flex-wrap: wrap; max-width: 64px; row-gap: 4px; }
.demo__plus { font-size: 10px !important; }
.demo__text { display: grid; gap: 1px; min-width: 0; }
.demo__text strong { font-size: var(--fs-15); }
.demo__text .d { font-size: var(--fs-13); color: var(--text-2); }
.demo__ph { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-top: 3px; }
.demo__kind { font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); }
.demo__go { display: grid; place-items: center; color: var(--text-3); }
.demo__go .spinner { display: none; }
.demo__btn.is-busy .demo__go .spinner { display: block; }
.demo__btn.is-busy .demo__go .i { display: none; }

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__art { display: none; }
  .auth__brand-sm { display: inline-flex; margin-inline: auto; }
  .auth__back span { display: none; }
  .auth__panel { padding-block: 20px 28px; }
  .auth__title { font-size: var(--fs-32); }
  .auth__tools { margin-left: 0; }
}
@media (max-width: 420px) {
  .wizard__nav [data-next] { padding-inline: 18px; }
  .who-card { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; padding-right: 14px; }
  .who-art { width: 62px; transform: scale(0.88); }
  .age-chip { min-height: 52px; font-size: var(--fs-20); }
  .demo__btn { gap: 10px; }
}

/* ───────────────────────────── one-time code (sign-in page + portal) ───────────────────────────── */
.otp { position: relative; }
.otp__input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; outline: none; -webkit-text-fill-color: transparent; cursor: text; }
.otp__input::selection { background: transparent; }
.otp__slots { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: clamp(5px, 1.6vw, 9px); }
.otp__slot { position: relative; display: grid; place-items: center; height: 66px; border-radius: var(--r-3); border: 1.5px solid var(--line-2); background: var(--surface); font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); transition: border-color var(--t-2), color var(--t-2), opacity var(--t-2); }
.otp__slot--gap { margin-right: clamp(4px, 1.6vw, 12px); }
.otp__slot.is-filled { border-color: var(--accent-line); animation: otp-pop 0.22s var(--ease-out); }
.otp__slot.is-active { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.otp__slot.is-active:empty::after { content: ''; width: 2px; height: 1.7rem; border-radius: 2px; background: var(--accent); animation: otp-caret 1s steps(1) infinite; }
@keyframes otp-caret { 50% { opacity: 0; } }
@keyframes otp-pop { from { transform: scale(0.9); } }
.has-error .otp__slot { border-color: var(--bad); }
.otp.is-checking .otp__slot { opacity: 0.55; }
.otp.is-ok .otp__slot { border-color: var(--ok); color: var(--ok-text); }
.otp__check { position: absolute; right: -8px; top: -10px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; box-shadow: 0 0 0 3px var(--bg); opacity: 0; transform: scale(0.4); transition: opacity 0.25s, transform 0.45s var(--ease-out); pointer-events: none; }
.otp__check .i { width: 16px; height: 16px; }
.otp.is-ok .otp__check { opacity: 1; transform: none; }
.otp-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-3); border: 1.5px dashed var(--accent-line); background: var(--accent-soft); }
.otp-demo p { flex: 1 1 12rem; font-size: var(--fs-14); color: var(--text-2); line-height: 1.4; }
.otp-demo__code { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.12em; color: var(--text); white-space: nowrap; }
.otp-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 10px; min-height: 40px; font-size: var(--fs-14); color: var(--text-3); }
.otp-meta__wait { font-family: var(--font-mono); font-size: var(--fs-13); }
.otp-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 2px; border-radius: 8px; font-size: var(--fs-14); font-weight: 650; color: var(--accent-text); }
.otp-link .i { width: 16px; height: 16px; }
.otp-link span { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.otp-link:hover span { text-decoration-color: currentColor; }
.otp-link--soft { color: var(--text-2); margin-left: auto; }
@media (max-width: 380px) { .otp__slot { height: 56px; font-size: 1.4rem; } }

/* ───────────────────────────── learner visuals (shared) ───────────────────────────── */
.lring { position: relative; flex: none; width: var(--ls); height: var(--ls); display: inline-grid; place-items: center; }
.lring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lring__t { fill: none; stroke: var(--line-2); }
.lring__f { fill: none; stroke: var(--accent); stroke-linecap: round; }
.lring .avatar { position: relative; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3); }
.mcode { --mc-on: var(--accent); --mc-off: var(--pass-off); --mc-now: var(--accent-2); display: grid; grid-template-columns: repeat(50, minmax(0, 1fr)); align-items: end; gap: 1.5px; height: 16px; width: 100%; }
.mcode i { height: 72%; border-radius: 1px; background: var(--mc-off); }
.mcode i.g { height: 100%; }
.mcode i.on { background: var(--mc-on); }
.mcode i.now { background: var(--mc-now); animation: bc-blink 1.8s var(--ease-in-out) infinite; }

/* "Who's learning today?" — a full-screen night board of learner passes. */
.has-whos, .has-whos body { overflow: hidden; }
.whos { position: fixed; inset: 0; z-index: calc(var(--z-modal) + 20); overflow-y: auto; overscroll-behavior: contain; color: #F2ECDD; background: radial-gradient(120% 80% at 50% 0%, #241F15, #110F0B 58%, #0A0907); --pattern-ink: rgba(229, 197, 104, 0.07); opacity: 0; transition: opacity 0.38s var(--ease-out); color-scheme: dark; }
.whos.is-in { opacity: 1; }
.whos.is-out { opacity: 0; pointer-events: none; }
.whos__bg { position: fixed; inset: 0; pointer-events: none; }
.whos__top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 18px clamp(16px, 4vw, 40px); }
.whos__logo { --logo-h: 40px; }
.whos__logo .logo__word path { fill: #E5C568; }
.whos__tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.whos .btn--ghost { --btn-fg: #D9D1BE; }
.whos .btn--ghost:hover { background: rgba(229, 197, 104, 0.12); }
.whos__x { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #D9D1BE; border: 1px solid rgba(229, 197, 104, 0.22); }
.whos__x:hover { background: rgba(229, 197, 104, 0.12); color: #fff; }
.whos__in { position: relative; z-index: 1; width: min(100% - 32px, 1040px); margin: 0 auto; padding: clamp(8px, 4vh, 48px) 0 48px; display: grid; justify-items: center; text-align: center; gap: 14px; }
.whos__k { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #CC9933; display: inline-flex; align-items: center; gap: 12px; }
.whos__k::before, .whos__k::after { content: ''; width: 24px; height: 1px; background: currentColor; opacity: 0.6; }
.whos__t { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-60); line-height: 1.02; letter-spacing: -0.03em; outline: none; color: #F7F1E3; }
.whos__t em { font-family: var(--font-accent); font-style: normal; font-stretch: var(--accent-stretch); font-weight: 400; color: #E5C568; letter-spacing: 0; }
.whos__s { color: #B9B19F; max-width: 52ch; }
.whos__search { position: relative; width: min(100%, 420px); margin-top: 8px; }
.whos__search > .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #958C78; pointer-events: none; }
.whos__search .input { padding-left: 46px; background: rgba(242, 236, 221, 0.06); border-color: rgba(229, 197, 104, 0.25); color: #F2ECDD; }
.whos__search .input::placeholder { color: #958C78; }
.whos__grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 18px; text-align: left; }
.whos--duo .whos__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 420px)); justify-content: center; }
.whos--list .whos__grid { grid-template-columns: 1fr; gap: 8px; max-width: 760px; }
.whos__grid > li { animation: whos-in 0.6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
@keyframes whos-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
.whos__none { color: #B9B19F; }
.whos__status { width: min(100%, 480px); }
.whos__status:empty { display: none; }
.whos__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; margin-top: 14px; font-size: var(--fs-14); color: #958C78; }
.whos__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-13); }
.whos__phone .i { width: 15px; height: 15px; }

/* A learner pass on the board: main part, perforation, stub. */
.wpass { --cut: 92px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--cut); width: 100%; min-height: 150px; text-align: left; color: #F2ECDD; border-radius: 18px; background: linear-gradient(160deg, #2A251A, #1A1711 60%); box-shadow: inset 0 0 0 1px rgba(229, 197, 104, 0.2); transition: transform var(--t-3) var(--ease-out), box-shadow var(--t-3), opacity var(--t-3);
  -webkit-mask: radial-gradient(circle 10px at calc(100% - var(--cut)) 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at calc(100% - var(--cut)) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 10px at calc(100% - var(--cut)) 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at calc(100% - var(--cut)) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat; }
.wpass::after { content: ''; position: absolute; top: 16px; bottom: 16px; right: var(--cut); border-left: 1.5px dashed rgba(229, 197, 104, 0.28); }
.wpass:hover:not(:disabled) { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px rgba(229, 197, 104, 0.55); }
.wpass:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #E5C568; }
.wpass:disabled { cursor: default; }
.whos.is-choosing .wpass:not(.is-chosen) { opacity: 0.35; }
.wpass.is-chosen { box-shadow: inset 0 0 0 2px #E5C568; transform: scale(1.02); }
.wpass__main { display: grid; gap: 14px; align-content: center; padding: 18px 18px 18px 20px; min-width: 0; }
.wpass__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wpass__names { display: grid; min-width: 0; }
.wpass__names strong { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-24); line-height: 1.1; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpass__names small { font-size: var(--fs-13); color: #A99F8A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpass__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: #A99F8A; }
.wpass__meta span:first-child { color: #E5C568; font-weight: 600; }
.wpass__stub { display: grid; place-content: center; justify-items: center; gap: 2px; padding: 12px 8px; background: radial-gradient(120% 90% at 50% 0%, rgba(229, 197, 104, 0.14), transparent 70%); }
.wpass__stub small { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #958C78; }
.wpass__stub b { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; letter-spacing: -0.04em; color: #E5C568; }
.wpass__stamp { --pass-bg: #1E1B15; --stamp: #E5C568; mix-blend-mode: normal; }
.wpass__stamp b { font-size: 11px; }
.wpass__tag { position: absolute; top: 12px; right: calc(var(--cut) + 14px); font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #1D1503; background: linear-gradient(180deg, #E2BC5C, #C9982F); padding: 3px 8px; border-radius: 99px; }
.wpass .lring__t { stroke: rgba(242, 236, 221, 0.14); }
.wpass .lring__f { stroke: #E5C568; }
.wpass .mcode, .swv .mcode { --mc-on: #E5C568; --mc-off: rgba(242, 236, 221, 0.13); --mc-now: #FFF1BF; }
.wpass.is-done { background: linear-gradient(160deg, #3A3020, #1E1A12 60%); }
/* Compact list for big classes. */
.whos--list .wpass { --cut: 72px; min-height: 0; border-radius: 14px; }
.whos--list .wpass__main { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 10px 14px; }
.whos--list .wpass__names strong { font-size: var(--fs-18); }
.whos--list .wpass__meta { justify-content: flex-end; }
.whos--list .wpass__meta span:last-child { display: none; }
.whos--list .wpass__stub b { font-size: 1.5rem; }
.whos--list .wpass__stub small { font-size: 8.5px; }
.whos--list .wpass__stamp { transform: scale(0.8) rotate(var(--r)); }
.whos--list .wpass__tag { top: 50%; transform: translateY(-50%); right: calc(var(--cut) + 12px); }
.whos--list .wpass.is-last .wpass__meta { display: none; }
@media (max-width: 640px) {
  .whos__t { font-size: var(--fs-44); }
  .whos__out span { display: none; }
  .wpass { --cut: 78px; min-height: 136px; }
  .wpass__names strong { font-size: var(--fs-20); }
  .whos--list .wpass { --cut: 62px; }
  .whos--list .wpass__main { grid-template-columns: 1fr; }
  .whos--list .wpass__meta { justify-content: flex-start; padding-left: 58px; }
  .whos--list .wpass.is-last .wpass__meta { display: flex; }
  .whos--list .wpass__tag { top: 10px; transform: none; }
}

/* Switching learner: a calm night veil with the next learner's pass. */
.swv { position: fixed; inset: 0; z-index: calc(var(--z-modal) + 30); display: grid; place-items: center; color: #F2ECDD; background: radial-gradient(110% 80% at 50% 40%, #241F15, #0F0D09 70%); --pattern-ink: rgba(229, 197, 104, 0.07); opacity: 0; transition: opacity 0.32s var(--ease-out); }
.swv.is-in { opacity: 1; }
.swv.is-out { opacity: 0; transition-duration: 0.45s; }
.swv__bg { position: absolute; inset: 0; }
.swv__in { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 24px; width: min(100%, 420px); transform: translate3d(0, 14px, 0); transition: transform 0.6s var(--ease-out); }
.swv.is-in .swv__in { transform: none; }
.swv__art { margin-bottom: 10px; }
.swv .lring__t { stroke: rgba(242, 236, 221, 0.14); }
.swv .lring__f { stroke: #E5C568; }
.swv__k { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #CC9933; }
.swv__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-44); line-height: 1.05; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.swv__sub { color: #B9B19F; font-size: var(--fs-15); }
.mcode--veil { width: min(100%, 300px); height: 20px; margin-top: 14px; }
.avatar > svg { width: 56%; height: 56%; }

/* "Outside India?" beside the mobile number label: jumps to the country-code box. */
.field__label--split { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cc-switch { display: inline-flex; align-items: center; gap: 5px; padding: 4px 2px; border: 0; background: none; font: 600 var(--fs-13)/1 var(--font-ui); color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; cursor: pointer; }
.cc-switch .i { width: 14px; height: 14px; }
.cc-switch:hover { text-decoration-color: currentColor; }
.phone.is-cc-hint .phone__code { box-shadow: inset 0 0 0 2px var(--accent); }
