/* =====================================================================
   Sign in & registration
   ===================================================================== */
.auth { background: var(--cream); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100dvh; }

/* ------------------------------------------------------------------ garden panel */
.auth-garden { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100dvh; position: sticky; top: 0; height: 100dvh; }
.auth-garden__sky { position: absolute; inset: 0; z-index: -3; background: linear-gradient(180deg, #FFD6A5 0%, #FFE8C6 30%, #FFF6E6 58%, #E6F4FF 100%); }
.auth-garden__sky::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern-star); background-size: 70px 70px; opacity: 0.1; }
.auth-garden__sun { position: absolute; z-index: -2; width: 34vmin; aspect-ratio: 1; right: 12%; top: 12%; border-radius: 50%; background: radial-gradient(circle, #FFFBE0 0%, #FFE38A 42%, #FAC54F 64%, rgba(250, 197, 79, 0) 70%); animation: float 9s ease-in-out infinite; }
.auth-garden__petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.auth-garden__copy { position: absolute; left: 8%; right: 8%; top: 16%; }
.auth-garden__motto { font-size: clamp(1.8rem, 3.2vw, 2.8rem); color: var(--gold-900); line-height: 1.2; text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6); }
.auth-garden__sub { margin-top: 10px; font: 800 1.2rem/1.3 var(--f-head); color: var(--ink-2); }
.auth-garden__sub.is-swap { animation: rise 0.5s var(--ease-out); }
.auth-garden__beds { --n: 5; position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; gap: 0; padding: 0 4%; margin-bottom: -2.5vh; }
.auth-plot { flex: 0 1 calc(92% / var(--n)); min-width: 0; display: flex; justify-content: center; }
.auth-plot > .sway { width: 100%; }
.auth-plot svg { width: 100%; height: auto; }
.auth-plot--big { flex-basis: calc(136% / var(--n)); }
.auth-garden__hill { position: relative; z-index: 1; width: 100%; height: 16vh; display: block; }

/* ------------------------------------------------------------------ main column */
.auth-main { display: flex; flex-direction: column; align-items: center; padding: 20px clamp(16px, 5vw, 56px) 28px; min-width: 0; }
.auth-top { width: 100%; max-width: 520px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-top__back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); font: 700 0.95rem/1 var(--f-head); color: var(--ink-2); text-decoration: none; transition: border-color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.auth-top__back:hover { border-color: var(--gold-300); color: var(--gold-900); transform: translateX(-2px); }
.auth-top__back .i { width: 18px; height: 18px; }
.auth-top__logo { width: 150px; display: block; }
.auth-top__logo svg { width: 100%; height: auto; }
.auth-top__spacer { width: 92px; }

.auth-card { position: relative; width: 100%; max-width: 520px; margin: clamp(18px, 5vh, 56px) 0 auto; padding: clamp(20px, 4vw, 34px); border-radius: var(--r-2xl); background: #fff; border: 1.5px solid var(--line); box-shadow: var(--sh-lg); outline: none; }
.auth-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 99px; background: var(--cream-2); border: 1.5px solid var(--line); margin-bottom: 24px; }
.auth-switch button { position: relative; z-index: 1; padding: 12px 10px; border-radius: 99px; font: 800 1rem/1 var(--f-head); color: var(--ink-3); transition: color var(--dur-2); }
.auth-switch button[aria-selected="true"] { color: var(--gold-900); }
/* small phones: "Create account" stays on one line in its half of the switch */
@media (max-width: 360px) { .auth-switch button { padding-inline: 4px; font-size: 0.875rem; white-space: nowrap; } }
.auth-switch__ink { position: absolute; top: 5px; bottom: 5px; left: 0; width: calc(50% - 5px); transform: translateX(5px); border-radius: 99px; background: #fff; box-shadow: var(--sh-sm); transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out); }
/* Already under the chosen tab before the page's script runs (auth.js then measures it exactly). */
.auth-switch:has([data-switch="register"][aria-selected="true"]) .auth-switch__ink { transform: translateX(calc(100% + 5px)); }
.auth-view > * + * { margin-top: 18px; }
.auth-view__head { text-align: center; }
.auth-bubble { display: block; width: 64px; height: 64px; margin: 0 auto 10px; animation: spin 20s linear infinite; }
.auth-bubble svg { width: 100%; height: 100%; }
/* Until auth.js draws the flower, a soft bud of the same colours keeps its place (no empty gap while the page loads). */
.auth-bubble[data-flower-badge]:empty::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle, #8A5A1C 0 24%, #B57A2A 26% 30%, #F7C948 32% 58%, rgba(247, 201, 72, 0.35) 60% 70%, transparent 72%); }
.auth-title { font: 800 clamp(1.6rem, 3.4vw, 2.1rem)/1.15 var(--f-head); color: var(--ink); padding: 0; letter-spacing: -0.01em; }
.auth-sub { color: var(--ink-2); margin-top: 6px; }
.alert__body { display: grid; gap: 6px; }
.alert__action { padding: 0; color: inherit; text-decoration: underline; }

.auth-demo { padding: 14px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--gold-25), var(--rose-50)); border: 1.5px dashed var(--gold-300); }
.auth-demo__title { display: flex; align-items: center; gap: 8px; font: 800 0.9rem/1.2 var(--f-head); color: var(--gold-900); }
.auth-demo__title .i { color: var(--gold-600); }
.auth-demo__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.auth-demo__item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); text-align: left; transition: transform var(--dur-2) var(--ease-spring), border-color var(--dur-2), box-shadow var(--dur-2); }
.auth-demo__item:hover { transform: translateY(-2px); border-color: var(--gold-300); box-shadow: var(--sh-md); }
.auth-demo__item > span:first-child { width: 38px; height: 38px; flex: none; }
.auth-demo__item svg { width: 100%; height: 100%; }
.auth-demo__item strong { display: block; font-family: var(--f-head); }
.auth-demo__item small { color: var(--ink-3); font-weight: 700; font-size: 0.78rem; line-height: 1.2; display: block; }
@media (max-width: 420px) { .auth-demo__list { grid-template-columns: 1fr; } }

.auth-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; color: var(--ink-3); font-weight: 700; }
.auth-guest { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--sky-50); border: 1.5px solid var(--sky-100); color: var(--ink); text-decoration: none; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.auth-guest:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--sh-md); }
.auth-guest__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--sky); flex: none; }
.auth-guest__icon .i { width: 16px; height: 16px; margin-left: 2px; }
.auth-guest strong { display: block; font-family: var(--f-head); }
.auth-guest small { color: var(--ink-3); font-weight: 700; }
.auth-guest > .i:last-child { margin-left: auto; color: var(--ink-3); }

/* Steps */
.steps { display: flex; align-items: center; justify-content: center; gap: 6px; }
.steps__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--cream-3); border: 2px solid var(--line-2); transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-spring); }
.steps__dot.is-on { background: var(--gold-500); border-color: var(--gold-500); transform: scale(1.15); }
.steps__dot.is-done { background: var(--leaf); border-color: var(--leaf); transform: scale(1); }
.steps__line { width: 34px; height: 3px; border-radius: 3px; background: var(--line-2); transition: background 0.4s; }
.steps__line.is-on { background: var(--leaf); }
.steps__label { text-align: center; font: 700 0.85rem/1 var(--f-head); color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 10px !important; }
.wizard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.wizard__step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.wizard__step legend { float: left; width: 100%; }
.wizard__step legend + * { clear: both; }
.wizard__nav { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.wizard__next { margin-left: auto; }
.choices--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.choices--2 .choice__card > span:first-child { width: 58px; height: 58px; display: block; }
.choices--2 .choice__card svg { width: 100%; height: 100%; }
.choices--avatars { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.choice--avatar .choice__card { padding: 12px 6px 10px; font-size: 0.8rem; gap: 6px; }
.choice--avatar .choice__card svg { width: 54px; height: 54px; }
@media (max-width: 420px) { .choices--avatars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .wizard__nav [data-prev] span { display: none; }
  .wizard__nav [data-prev] { width: 48px; padding: 0; }
  .wizard__skip { padding-inline: 10px; margin-left: auto; }
  /* When Next ("Plant my family's garden") does not fit beside Back and Skip it takes a row of its own (and, on the
     narrowest phones, wraps its label there rather than being cut off) */
  .wizard__nav { flex-wrap: wrap; }
  .wizard__next { flex: 1 1 auto; }
}
.hello { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--gold-25); border: 1.5px solid var(--gold-200); animation: rise 0.4s var(--ease-out); }
.hello__flower { width: 40px; height: 40px; flex: none; animation: spin 16s linear infinite; }
.hello__flower svg { width: 100%; height: 100%; }
.hello__text { font: 700 1.1rem/1.3 var(--f-hand); color: var(--gold-900); }
.hello__text strong { text-transform: capitalize; }
.auth-legal { font-size: 0.88rem; color: var(--ink-3); text-align: center; }
.auth-done { text-align: center; padding: 16px 0 6px; }
.auth-done__flower { width: min(220px, 60vw); aspect-ratio: 1; margin: 0 auto 6px; }
.auth-done__flower svg { width: 100%; height: 100%; }
.auth-done .btn { margin-top: 22px; }
.auth-foot { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; color: var(--ink-4); font-weight: 700; font-size: 0.9rem; text-align: center; }
.auth-foot a { color: var(--ink-3); text-decoration: none; }
.auth-foot a:hover { color: var(--gold-800); text-decoration: underline; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-garden { position: relative; height: auto; min-height: 0; aspect-ratio: auto; order: -1; padding-top: 0; }
  .auth-garden { height: 230px; }
  .auth-garden__copy { top: auto; bottom: 150px; left: 50%; right: auto; transform: translateX(-50%); text-align: center; width: 90%; display: none; }
  .auth-garden__beds { max-width: 460px; margin: 0 auto -18px; width: 100%; }
  .auth-garden__hill { height: 60px; }
  .auth-garden__sun { width: 110px; top: 18px; right: 8%; }
  .auth-main { margin-top: -26px; position: relative; z-index: 3; padding-top: 0; }
  .auth-top { position: absolute; top: -204px; left: 0; right: 0; padding: 0 16px; max-width: none; }
  .auth-top__logo { width: 132px; }
  .auth-card { margin-top: 0; }
}
@media (max-width: 480px) {
  .auth-garden { height: 200px; }
  .auth-top { top: -174px; }
  .auth-top__back span { display: none; }
  .auth-top__back { padding: 8px; }
  .auth-top__spacer { width: 38px; }
  .auth-card { border-radius: 28px; }
}

/* =====================================================================
   Version 2 — account types, login codes, families & classes
   ===================================================================== */
.auth-status:empty { display: none; }
.auth-title[tabindex="-1"]:focus { outline: none; }
.auth-status > .alert + * { margin-top: 10px; }
.si-panel > * + * { margin-top: 18px; }
.auth-bubble--code { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #E7F8EC, #C9EFD6); color: #1F7A45; animation: none; box-shadow: inset 0 0 0 2px #fff, 0 8px 18px -10px rgba(31, 122, 69, 0.6); }
.auth-bubble--code .i { width: 30px; height: 30px; }
.auth-demo__title { flex-wrap: wrap; }
.auth-demo__admin { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--gold-800); text-decoration: none; }
.auth-demo__admin:hover { text-decoration: underline; }
.auth-demo__admin .i { width: 14px; height: 14px; }
.auth-demo__art { position: relative; width: 38px; height: 38px; flex: none; }
.auth-demo__art svg { width: 100%; height: 100%; }
.auth-demo__art.is-duo svg { position: absolute; width: 76%; height: 76%; }
.auth-demo__art.is-duo svg:first-child { left: 0; top: 0; }
.auth-demo__art.is-duo svg:last-child { right: -4px; bottom: -4px; }
.auth-demo__item.is-busy { opacity: 0.7; cursor: progress; }
.auth-demo__item:disabled { cursor: default; }

/* the wizard's steps live in one box so they can cross-fade */
.wizard__steps { display: grid; grid-template-columns: minmax(0, 1fr); }
.steps { flex-wrap: wrap; row-gap: 8px; }
.steps__dot.is-skip { background: #fff; border-color: var(--leaf); transform: scale(1); }
.steps__line { width: clamp(16px, 5vw, 34px); }

/* step: who is this account for? */
.class-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--sky-50); border: 1.5px solid var(--sky-100); color: #245E9E; font-weight: 700; }
.class-banner[hidden] { display: none; }
.class-banner .i { width: 20px; height: 20px; flex: none; }
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.who-card { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; padding: 16px 10px 14px; border-radius: var(--r-lg); border: 2px solid var(--line-2); background: #fff; text-align: center; cursor: pointer; transition: border-color var(--dur-2), transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-2), background-color var(--dur-2); }
.who-card[hidden] { display: none; }
.who-card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.who-card:hover { border-color: var(--gold-300); transform: translateY(-2px); box-shadow: var(--sh-md); }
.who-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.who-card:has(input:checked) { border-color: var(--gold-500); background: var(--gold-25); box-shadow: 0 0 0 4px var(--gold-glow), var(--sh-sm); transform: translateY(-2px); }
.who-card input:checked ~ .choice__tick { transform: scale(1); }
.who-card__art { width: 100%; height: 74px; display: grid; place-items: center; }
.who-card__text { display: grid; gap: 3px; }
.who-card__text strong { font: 800 1.08rem/1.15 var(--f-head); color: var(--ink); }
.who-card__text span { font-size: 0.86rem; font-weight: 700; color: var(--ink-3); line-height: 1.3; }
.who-art { position: relative; display: block; width: 100%; height: 100%; }
.who-art svg { width: 100%; height: 100%; }
.who-art--solo { width: 70px; height: 70px; }
.who-art__f { position: absolute; display: block; transition: transform 0.5s var(--ease-spring); }
.who-art--family .who-art__f--0 { width: 50px; height: 50px; left: calc(50% - 46px); top: 16px; }
.who-art--family .who-art__f--1 { width: 58px; height: 58px; left: calc(50% - 29px); top: 2px; z-index: 1; }
.who-art--family .who-art__f--2 { width: 46px; height: 46px; left: calc(50% + 2px); top: 22px; }
.who-art--class .who-art__f { width: 34px; height: 34px; }
.who-art--class .who-art__f--s0 { left: calc(50% - 58px); top: 30px; }
.who-art--class .who-art__f--s1 { left: calc(50% - 36px); top: 6px; }
.who-art--class .who-art__f--s2 { left: calc(50% - 17px); top: 34px; z-index: 1; }
.who-art--class .who-art__f--s3 { left: calc(50% + 2px); top: 6px; }
.who-art--class .who-art__f--s4 { left: calc(50% + 24px); top: 30px; }
.who-card:has(input:checked) .who-art__f, .who-card:has(input:checked) .who-art--solo svg { transform: scale(1.08) rotate(-6deg); }
@media (max-width: 520px) {
  .who { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .who-card { grid-template-columns: 92px minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; padding: 10px 44px 10px 10px; }
  .who-card__art { height: 64px; }
  .who-art--solo { width: 60px; height: 60px; }
}

/* login codes */
.otp-hint { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: #EAF8EF; border: 1.5px solid #BFE6CC; color: #1F6E44; font-weight: 700; font-size: 0.95rem; }
.otp-hint[hidden] { display: none; }
.otp-hint .i { width: 20px; height: 20px; flex: none; }
.otp-field { gap: 10px; }
.otp { --n: 6; position: relative; display: block; max-width: 420px; }
.otp__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; font-size: 16px; color: transparent; background: transparent; caret-color: transparent; z-index: 2; cursor: text; }
.otp__slots { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.otp__slot { height: 62px; display: grid; place-items: center; border-radius: 16px; background: #fff; border: 2px solid var(--line-2); font: 800 1.7rem/1 var(--f-head); color: var(--ink); transition: border-color var(--dur-2), box-shadow var(--dur-2), background-color var(--dur-2); }
.otp__slot--gap { margin-right: 10px; }
.otp__slot.is-filled { border-color: var(--gold-300); background: var(--gold-25); animation: otp-pop 0.25s var(--ease-spring); }
.otp__slot.is-active { border-color: var(--gold-500); box-shadow: 0 0 0 4px var(--gold-glow); }
.otp__slot.is-active:not(.is-filled)::after { content: ""; width: 2px; height: 26px; border-radius: 2px; background: var(--gold-700); animation: otp-blink 1s steps(1) infinite; }
.otp.is-checking .otp__slot { opacity: 0.7; }
.otp.is-ok .otp__slot { border-color: var(--ok); background: var(--ok-bg); color: #1F6E44; }
.otp__check { position: absolute; right: -12px; top: -12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; transform: scale(0); transition: transform 0.35s var(--ease-spring); z-index: 3; }
.otp__check .i { width: 18px; height: 18px; }
.otp.is-ok .otp__check { transform: scale(1); }
.otp__input[aria-invalid="true"] ~ .otp__slots .otp__slot { border-color: var(--bad-line); }
.otp-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--gold-25), var(--rose-50)); border: 1.5px dashed var(--gold-300); }
.otp-demo[hidden] { display: none; }
.otp-demo p { flex: 1 1 180px; font-weight: 700; color: var(--ink-2); }
.otp-demo__code { font: 800 1.2rem/1 var(--f-head); letter-spacing: 0.12em; color: var(--gold-900); white-space: nowrap; }
.otp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 28px; }
.otp-meta__wait { font-weight: 700; color: var(--ink-3); font-size: 0.92rem; }
.otp-meta__wait[hidden], .otp-link[hidden] { display: none; }
.otp-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; font: 700 0.95rem/1.2 var(--f-head); color: var(--gold-800); }
.otp-link:hover { color: var(--gold-950); text-decoration: underline; text-underline-offset: 3px; }
.otp-link .i { width: 16px; height: 16px; }
.otp-link--soft { color: var(--ink-3); margin-left: auto; }
@keyframes otp-blink { 50% { opacity: 0; } }
@keyframes otp-pop { from { transform: scale(0.86); } to { transform: none; } }
@media (max-width: 420px) {
  .otp__slots { gap: 6px; }
  .otp__slot { height: 54px; border-radius: 14px; font-size: 1.45rem; }
  .otp__slot--gap { margin-right: 4px; }
}

/* email + class code */
.email-ok { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font: 800 0.78rem/1 var(--f-body); color: #1F6E44; }
.email-ok[hidden] { display: none; }
.email-ok .i { width: 14px; height: 14px; }
.email-code { display: grid; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--cream); border: 1.5px solid var(--line); }
.email-code[hidden] { display: none; }
.email-code__lead { color: var(--ink-2); font-weight: 600; }
.class-code { border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); background: #fff; }
.class-code[hidden] { display: none; }
.class-code.is-open { border-style: solid; border-color: var(--sky-100); background: var(--sky-50); }
.class-code__toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; font: 700 1rem/1.2 var(--f-head); color: var(--ink-2); text-align: left; }
.class-code__toggle > .i:first-child { width: 20px; height: 20px; color: var(--sky); flex: none; }
.class-code__chev { margin-left: auto; width: 18px; height: 18px; transition: transform var(--dur-2); }
.class-code.is-open .class-code__chev { transform: rotate(180deg); }
.class-code__body { padding: 0 16px 16px; }
.class-code__body[hidden] { display: none; }
.input--code { text-transform: uppercase; letter-spacing: 0.3em; text-align: center; }
.input--code::placeholder { letter-spacing: 0.3em; }

/* consent (India DPDP Act) */
.consent { margin-top: 2px; gap: 8px; }
.consent[hidden] { display: none; }
.consent__check { background: #fff; border-color: var(--line-2); }
.consent__check:has(input[aria-invalid="true"]) { border-color: var(--bad-line); background: var(--bad-bg); }
.consent__more { display: flex; align-items: flex-start; gap: 8px; font-size: 0.86rem; color: var(--ink-3); font-weight: 600; }
.consent__more .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--leaf); }

/* quick-add learners (parents, teachers) */
.lrn { display: grid; gap: 14px; }
.lrn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 330px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lrn-list[hidden] { display: none; }
.lrn-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); transition: border-color var(--dur-2), background-color var(--dur-2); }
.lrn-card.is-new { animation: rise 0.45s var(--ease-out); border-color: var(--ok-line); background: #F4FBF6; }
.lrn-card.is-editing { border-color: var(--gold-400); background: var(--gold-25); }
.lrn-card__flower { width: 46px; height: 46px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; transition: transform var(--dur-2) var(--ease-spring); }
.lrn-card__flower:hover { transform: rotate(-8deg) scale(1.06); }
.lrn-card__flower svg { width: 82%; height: 82%; }
.lrn-card__text { display: grid; gap: 2px; min-width: 0; }
.lrn-card__text strong { font: 800 1rem/1.2 var(--f-head); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrn-card__text span { font-size: 0.82rem; font-weight: 700; color: var(--ink-3); }
.lrn-card__num { font: 800 0.78rem/1 var(--f-head); color: var(--ink-4); padding-right: 2px; }
.lrn-card__btn { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-3); transition: background-color var(--dur-1), color var(--dur-1); }
.lrn-card__btn:hover { background: var(--gold-50); color: var(--gold-900); }
.lrn-card__btn--x:hover { background: var(--bad-bg); color: var(--bad); }
.lrn-card__btn .i { width: 17px; height: 17px; }
.lrn-add { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--cream); border: 1.5px solid var(--line); }
.lrn-add[hidden] { display: none; }
.lrn-add.is-editing { border-color: var(--gold-300); background: var(--gold-25); }
.lrn-add__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lrn-add__title { font: 800 1.05rem/1.2 var(--f-head); color: var(--ink); }
.lrn-count { padding: 5px 10px; border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--line-2); font: 800 0.8rem/1 var(--f-head); color: var(--gold-900); white-space: nowrap; }
.lrn-add__main { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: end; }
.lrn-flower { width: 64px; height: 64px; border-radius: 20px; background: #fff; border: 2px solid var(--line-2); display: grid; place-items: center; transition: transform var(--dur-2) var(--ease-spring), border-color var(--dur-2); }
.lrn-flower:hover { border-color: var(--gold-300); transform: rotate(-6deg); }
.lrn-flower svg { width: 80%; height: 80%; }
.lrn-add__hint { display: flex; gap: 8px; align-items: flex-start; font-size: 0.84rem; font-weight: 600; color: var(--ink-3); }
.lrn-add__hint .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--gold-600); }
.lrn-add__grid { display: grid; grid-template-columns: 90px 110px minmax(0, 1fr); gap: 10px; align-items: end; }
.lrn-add__grid .input { min-height: 48px; }
.lrn-seg { display: flex; width: 100%; }
.lrn-seg button { flex: 1; padding: 11px 8px; }
.lrn-add__actions { display: flex; justify-content: flex-end; gap: 8px; }
.lrn-full { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--info-bg); border: 1.5px solid var(--info-line); color: #245E9E; font-weight: 700; font-size: 0.92rem; }
.lrn-full[hidden] { display: none; }
.lrn-full .i { width: 18px; height: 18px; flex: none; margin-top: 1px; }
@media (max-width: 480px) {
  .lrn-add { padding: 12px; }
  .lrn-add__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lrn-gender { grid-column: 1 / -1; }
  .lrn-card { grid-template-columns: 42px minmax(0, 1fr) auto auto; }
  .lrn-card__num { display: none; }
  .lrn-add__actions .btn { flex: 1; }
}

/* who's learning today? */
.auth-picker .auth-view__head .eyebrow { justify-content: center; }
.picker-search[hidden] { display: none; }
.picker { list-style: none; padding: 0; display: grid; gap: 10px; }
.picker > li { animation: rise 0.45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.picker--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pk { position: relative; width: 100%; display: grid; grid-template-columns: 72px minmax(0, 1fr) 30px; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: var(--r-lg); background: #fff; border: 2px solid var(--line); text-align: left; transition: border-color var(--dur-2), transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-2), opacity var(--dur-2); }
.pk:hover:not(:disabled) { border-color: var(--gold-300); transform: translateY(-2px); box-shadow: var(--sh-md); }
.pk:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.pk.is-last { border-color: var(--gold-200); background: var(--gold-25); }
.pk:disabled { cursor: default; opacity: 0.6; }
.picker.has-chosen .pk:not(.is-chosen) { opacity: 0.45; }
.pk.is-chosen { border-color: var(--gold-500); box-shadow: 0 0 0 4px var(--gold-glow); }
.pk__orb { position: relative; width: 72px; height: 72px; display: grid; place-items: center; }
.pk__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pk__track { fill: none; stroke: var(--cream-3); stroke-width: 6; }
.pk__arc { fill: none; stroke: var(--leaf); stroke-width: 6; stroke-linecap: round; }
.pk--done .pk__arc { stroke: var(--gold-500); }
.pk__flower { width: 52px; height: 52px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; }
.pk__flower svg { width: 86%; height: 86%; }
.pk__badge { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: #fff; box-shadow: 0 0 0 3px #fff; }
.pk__badge .i { width: 15px; height: 15px; }
.pk__text { display: grid; gap: 3px; min-width: 0; }
.pk__name { font: 800 1.15rem/1.15 var(--f-head); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk__levels { font-weight: 800; font-size: 0.9rem; color: #2E7A4B; }
.pk--done .pk__levels { color: var(--gold-800); }
.pk__active { font-size: 0.82rem; font-weight: 700; color: var(--ink-3); }
.pk__cert { display: inline-flex; align-items: center; gap: 3px; color: var(--gold-800); }
.pk__cert .i { width: 13px; height: 13px; }
.pk__go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-800); }
.pk__go .i { width: 16px; height: 16px; }
.pk__go .spinner { display: none; }
.pk.is-chosen .pk__go .spinner { display: block; width: 16px; height: 16px; }
.pk.is-chosen .pk__go .i { display: none; }
.picker--duo .pk { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 18px 12px 16px; }
.picker--duo .pk__orb { width: 104px; height: 104px; }
.picker--duo .pk__flower { width: 76px; height: 76px; }
.picker--duo .pk__go { display: none; }
.picker--list { gap: 6px; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.picker--list .pk { grid-template-columns: 52px minmax(0, 1fr) 28px; padding: 8px 10px; gap: 10px; border-width: 1.5px; }
.picker--list .pk__orb { width: 52px; height: 52px; }
.picker--list .pk__flower { width: 38px; height: 38px; }
.picker--list .pk__badge { width: 20px; height: 20px; }
.picker--list .pk__badge .i { width: 12px; height: 12px; }
.picker--list .pk__name { font-size: 1rem; }
.picker-empty { text-align: center; color: var(--ink-3); font-weight: 700; }
.picker-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; color: var(--ink-3); font-weight: 700; font-size: 0.9rem; }
.picker-foot .link-btn { display: inline-flex; align-items: center; gap: 6px; }
.picker-foot .i { width: 16px; height: 16px; }
@media (max-width: 420px) {
  .picker--duo { grid-template-columns: minmax(0, 1fr); }
  .picker--duo .pk { grid-template-columns: 72px minmax(0, 1fr); justify-items: start; text-align: left; padding: 12px; }
  .picker--duo .pk__orb { width: 72px; height: 72px; }
  .picker--duo .pk__flower { width: 52px; height: 52px; }
}

/* welcome: the family / class as little flowers */
.done-kids { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
.done-kids[hidden] { display: none; }
.done-kids > li { display: grid; justify-items: center; gap: 4px; width: 72px; animation: rise 0.5s var(--ease-out) both; animation-delay: calc(400ms + var(--i, 0) * 90ms); font: 800 0.9rem/1.1 var(--f-head); color: var(--ink-2); }
.done-kids > li > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.done-kid__flower { width: 58px; height: 58px; border-radius: 50%; background: var(--gold-25); border: 2px solid var(--gold-200); display: grid; place-items: center; }
.done-kid__flower svg { width: 84%; height: 84%; }
.done-kids__plus { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); border: 2px dashed var(--line-2); font: 800 1.1rem/1 var(--f-head); color: var(--gold-900); }
.auth-done__actions { display: grid; gap: 10px; margin-top: 22px; }
.auth-done__actions[hidden] { display: none; }
.auth-done .auth-done__actions .btn { margin-top: 0; }
