/* Fonts are served from eLearn itself (SIL Open Font License; see /fonts/*-OFL.txt), so no page calls Google. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2"); }

/* Brainy Indigo eLearn — uses Brainy Indigo Connect's brand tokens so the two
   apps feel like one product. */
:root {
  --indigo: #2E1B8C;
  --indigo-soft: #4A37B0;
  --indigo-dark: #251573;
  --cyan: #00AADC;
  --cyan-deep: #0090BC;
  --ink: #1A1538;
  --text-2: #4A4566;
  --text-3: #7A7592;
  --offwhite: #F4F4FB;
  --line: #E6E3F2;
  --row-line: #F0EEF8;
  --indigo-tint: #EEEBFB;
  --cyan-tint: #E0F6FC;
  --green: #2E9E5B;
  --green-tint: #E6F8EC;
  --amber: #B7791F;
  --amber-tint: #FDF3DC;
  --red: #C53030;
  --red-tint: #FDE8E8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(26, 21, 56, .06), 0 4px 16px rgba(26, 21, 56, .06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--offwhite);
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3 { font-family: "Poppins", "Nunito", sans-serif; line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.2rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
a { color: var(--indigo-soft); }
p { margin: 0 0 .75rem; }
.muted { color: var(--text-3); }
.small { font-size: .875rem; }

/* top bar */
.topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 10px 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 42px; }
.brand-text { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.1rem; }
.brand-text span { color: var(--cyan); }
.topbar nav { display: flex; gap: 4px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.topbar nav a, .linkbtn {
  text-decoration: none; color: var(--text-2); font-weight: 700; padding: 8px 12px; border-radius: 10px;
  background: none; border: 0; font: inherit; cursor: pointer;
}
.topbar nav a:hover, .linkbtn:hover { background: var(--indigo-tint); color: var(--indigo); }
.topbar nav a.live { color: var(--cyan-deep); }
.topbar nav a.on { color: var(--indigo); background: var(--indigo-tint); }
.topbar form { margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 24px 20px 64px; }
.wrap.wide { max-width: 1280px; }

/* cards & buttons */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--indigo); color: #fff; border: 0; border-radius: 12px; padding: 10px 18px;
  font: 700 1rem "Nunito", sans-serif; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--indigo-dark); }
.btn.cyan { background: var(--cyan); } .btn.cyan:hover { background: var(--cyan-deep); }
.btn.ghost { background: #fff; color: var(--indigo); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--indigo-tint); }
.btn.small { padding: 6px 12px; font-size: .875rem; border-radius: 10px; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #F3C4C4; }
.btn.danger:hover { background: var(--red-tint); }
.btn[disabled] { opacity: .5; cursor: default; }

/* progress */
.bar { height: 8px; background: var(--row-line); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--indigo-soft)); border-radius: 99px; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--indigo-tint); color: var(--indigo); white-space: nowrap; }
.pill.green { background: var(--green-tint); color: var(--green); }
.pill.amber { background: var(--amber-tint); color: var(--amber); }
.pill.red { background: var(--red-tint); color: var(--red); }
.pill.grey { background: var(--row-line); color: var(--text-3); }
.pill.cyan { background: var(--cyan-tint); color: var(--cyan-deep); }

/* course cards */
.course-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: transform .12s ease; }
.course-card:hover { transform: translateY(-2px); }
.course-card h2 { margin: 0; }
.course-card .meta { display: flex; justify-content: space-between; font-size: .875rem; color: var(--text-3); }

/* lesson list */
.lesson { margin-bottom: 14px; }
.lesson > h2 { font-size: 1.05rem; margin-bottom: 8px; }
.topics { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.topics li { border-top: 1px solid var(--row-line); }
.topics li:first-child { border-top: 0; }
.topics a, .topics .static { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.topics a:hover { background: var(--offwhite); }
.tick { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px; display: grid; place-items: center; border: 2px solid var(--line); color: #fff; font-size: 14px; font-weight: 800; }
.tick.done { background: var(--green); border-color: var(--green); }
.tick.started { border-color: var(--cyan); }
.tick.failed { border-color: var(--amber); }
.topics .grow { flex: 1; }

/* player */
.player-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.player-head .crumbs { color: var(--text-3); font-size: .9rem; }
/* 16:9, but never taller than the window (laptops): cap the width so the
   whole Storyline slide, including its bottom bar, is visible. */
.player-frame { position: relative; width: 100%; max-width: min(100%, calc((100vh - 190px) * 16 / 9)); margin: 0 auto; aspect-ratio: 16 / 9; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-frame { background: #000; }
.media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; }
.pdf-frame { aspect-ratio: auto; height: 80vh; }
.player-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 12px; flex-wrap: wrap; }
.fs-on .player-frame { position: fixed; inset: 0; z-index: 50; aspect-ratio: auto; border-radius: 0; max-width: none; }
.pdf-frame { max-width: 100%; }

/* tables (admin) */
table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.list th, table.list td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--row-line); vertical-align: middle; font-size: .95rem; }
table.list thead th { border-top: 0; background: var(--offwhite); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
table.list td.num, table.list th.num { text-align: right; }
.tablewrap { overflow-x: auto; }

/* forms */
label { display: block; font-weight: 700; font-size: .875rem; color: var(--text-2); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=date], input[type=search], input[type=number], select, textarea {
  font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan); }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row > div { flex: 1 1 160px; }
.row > .shrink { flex: 0 0 auto; }
.inline { display: inline; margin: 0; }

.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 700; }
.flash.ok { background: var(--green-tint); color: var(--green); }
.flash.error { background: var(--red-tint); color: var(--red); }
.flash.notice { background: var(--amber-tint); color: var(--ink, #2b2350); font-weight: 400; line-height: 1.5; text-align: left; }
.flash.notice strong { display: block; margin-bottom: 4px; }

.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.empty { text-align: center; padding: 40px 20px; color: var(--text-3); }
.stack > * + * { margin-top: 16px; }

.login { max-width: 420px; margin: 8vh auto; text-align: center; }
.login img { height: 56px; margin-bottom: 12px; }

details.edit summary { cursor: pointer; color: var(--indigo-soft); font-weight: 700; font-size: .875rem; }
details.edit[open] { background: var(--offwhite); padding: 10px; border-radius: 10px; }

@media (max-width: 640px) {
  .wrap { padding: 16px 12px 48px; }
  h1 { font-size: 1.35rem; }
  .topbar { padding: 8px 12px; }
  .topbar nav { margin-left: 0; width: 100%; }
}

/* ---------------------------------------------------------------------------
   Landing page (signed-out visitors at "/")
   ------------------------------------------------------------------------- */
body.landing { background: #fff; }
.lp-top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; gap: 16px; padding: 18px clamp(16px, 4vw, 48px);
}
.lp-top .brand { background: #fff; padding: 8px 18px 8px 12px; border-radius: 16px; box-shadow: 0 6px 20px rgba(14, 6, 60, .25); gap: 12px; }
.lp-top .brand img { height: 66px; }
.lp-top .brand-text { font-size: 1.35rem; }
.lp-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lp-nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; opacity: .9; }
.lp-nav a:not(.btn):hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.lp-nav .btn { background: #fff; color: var(--indigo); }
.lp-nav .btn:hover { background: var(--cyan-tint); }

.btn.lg { padding: 14px 22px; font-size: 1.05rem; border-radius: 14px; }
.btn.ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.lp-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #1B0F5E 0%, var(--indigo) 55%, #3A2AA3 100%);
  padding: clamp(110px, 14vw, 150px) clamp(16px, 4vw, 48px) clamp(64px, 8vw, 96px);
}
.lp-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-hero-in {
  position: relative; max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.lp-eyebrow {
  display: inline-block; font: 800 .8rem "Nunito", sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.lp-eyebrow.dark { color: var(--cyan-deep); }
.lp-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 18px; }
.lp-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .86); max-width: 34em; margin-bottom: 26px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.lp-note { font-size: .9rem; color: rgba(255, 255, 255, .7); margin: 0; }

.lp-hero-art { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.lp-hero-art svg { width: 100%; height: auto; display: block; animation: lp-float 9s ease-in-out infinite; }
.lp-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #fff; color: var(--ink); font-weight: 800; font-size: .88rem;
  padding: 10px 14px; border-radius: 14px; box-shadow: 0 12px 30px rgba(10, 4, 50, .35);
}
.lp-chip .tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: .75rem; }
.lp-chip .bar { width: 64px; height: 8px; border-radius: 99px; background: var(--indigo-tint); overflow: hidden; }
.lp-chip .bar i { display: block; height: 100%; background: var(--cyan); border-radius: inherit; }
.lp-chip-a { left: -4%; top: 12%; }
.lp-chip-b { right: -6%; top: 52%; }
.lp-chip-c { left: 8%; bottom: 4%; background: #FFC857; }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .lp-hero-art svg { animation: none; } }

.lp-section { max-width: 1160px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 48px) 0; }
.lp-head { max-width: 640px; margin-bottom: 32px; }
.lp-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; margin-bottom: 10px; }

.lp-programs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lp-prog {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  border-radius: 24px; padding: clamp(22px, 3vw, 34px); overflow: hidden;
}
.lp-prog > .btn { align-self: flex-start; margin-top: auto; }
.lp-prog.warm { background: linear-gradient(170deg, #FFF6E3 0%, #FFFDF8 100%); border: 1px solid #F6E3BA; }
.lp-prog.cosmic { background: linear-gradient(170deg, var(--indigo-tint) 0%, #F8FCFF 100%); border: 1px solid #DCD6F5; }
.lp-prog.cosmic::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  border: 1.5px dashed rgba(46, 27, 140, .18); pointer-events: none;
}
.lp-prog h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0; }
.lp-prog-top { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-age { font-weight: 800; font-size: .85rem; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: #fff; }
.lp-prog.warm .lp-age { background: #B7791F; }
.lp-prog.cosmic .lp-age { background: var(--indigo); }
.lp-tag { font-weight: 800; font-size: .85rem; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text-2); }
.lp-prog-lead { color: var(--text-2); margin: 0; }
.lp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lp-list li { position: relative; padding-left: 28px; font-weight: 700; }
.lp-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem; color: #fff; background: var(--cyan);
}
.lp-prog.warm .lp-list li::before { background: #E3A23B; }
.lp-on-elearn { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.lp-on-title { font: 800 .75rem "Nunito", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.lp-on-elearn .small { margin: 0; color: var(--text-2); }
.lp-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-topics span { font-weight: 700; font-size: .85rem; padding: 5px 11px; border-radius: 99px; background: var(--cyan-tint); color: #04607D; }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.lp-steps li { background: var(--offwhite); border-radius: 20px; padding: 24px; }
.lp-steps p { color: var(--text-2); margin: 0; }
.lp-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: var(--indigo); color: #fff; font: 700 1.1rem "Poppins", sans-serif;
}

.lp-signin {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center;
  background: linear-gradient(135deg, var(--indigo) 0%, #3A2AA3 100%); color: #fff;
  border-radius: 28px; padding: clamp(26px, 4vw, 44px);
}
.lp-signin h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.lp-signin p { color: rgba(255, 255, 255, .82); margin: 0; }
.lp-signin-act { display: grid; gap: 12px; justify-items: start; }
.lp-signin a:not(.btn):not(.lx-btn-sun) { color: #fff; font-weight: 700; }

.lp-foot { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.lp-foot-in {
  max-width: 1160px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--text-3); font-size: .9rem;
}
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.lp-foot a { color: var(--text-2); text-decoration: none; font-weight: 700; }
.lp-foot a:hover { color: var(--indigo); }

@media (max-width: 900px) {
  .lp-hero-in { grid-template-columns: 1fr; }
  .lp-hero-art { max-width: 340px; }
  .lp-programs, .lp-steps, .lp-signin { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lp-nav a:not(.btn) { display: none; }
  .lp-top .brand img { height: 46px; }
  .lp-top .brand-text { font-size: 1.15rem; }
  .lp-cta .btn, .lp-cta .lx-btn-sun { width: 100%; }
  .lp-chip { font-size: .78rem; padding: 8px 11px; }
  .lp-chip-a { left: 0; } .lp-chip-b { right: 0; }
}

/* ---------------------------------------------------------------------------
   IEBT teacher certification
   ------------------------------------------------------------------------- */
.iebt-eyebrow { font: 800 .72rem "Nunito", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-deep); margin: 0 0 4px; }
.iebt-mark { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.iebt-login { max-width: 460px; }
.iebt-tip { background: var(--cyan-tint); border-radius: 12px; padding: 10px 14px; text-align: left; line-height: 1.5; }
.iebt-login h1 { font-size: 1.5rem; margin-bottom: 10px; }
.iebt-logos { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; }
.iebt-logos img { height: 56px; width: auto; margin: 0; }
.iebt-logos img.iebt-mark { height: 72px; width: 72px; }
.code-input { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; font-weight: 800; }
.iebt-item { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.iebt-item h2 { font-size: 1.15rem; margin-bottom: 4px; }
.iebt-item p { margin: 2px 0; }
.iebt-item-main { min-width: 0; flex: 1 1 320px; }
.iebt-item-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 18px; }
.formgrid label input, .formgrid label select { margin-top: 4px; }
details.actions summary { cursor: pointer; color: var(--indigo); font-weight: 700; }
details.actions[open] { min-width: 230px; }
details.actions .linkbtn { padding: 4px 0; }

/* ---------------------------------------------------------------------------
   Quiz: intro, one question at a time, review, result
   ------------------------------------------------------------------------- */
.btn.lg { padding: 13px 22px; font-size: 1.02rem; }
.quiz-intro h2 { margin-top: 0; }
.quiz-facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.quiz-facts li { position: relative; padding-left: 28px; color: var(--text-2); }
.quiz-facts li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: #fff; background: var(--cyan); }
.quiz-result { text-align: center; }
.quiz-result-label { font: 800 .8rem "Nunito", sans-serif; letter-spacing: .12em; text-transform: uppercase; margin: 0; color: var(--text-3); }
.quiz-result.is-pass .quiz-result-label { color: var(--green); }
.quiz-result.is-fail .quiz-result-label { color: var(--amber); }
.quiz-score { font: 700 3rem/1.1 "Poppins", sans-serif; color: var(--indigo); margin: 4px 0; }

.qz-progress { position: sticky; top: 0; z-index: 5; background: var(--offwhite); padding: 10px 0 12px; margin-bottom: 8px; }
.qz-progress-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 800; color: var(--text-2); font-size: .92rem; }
.qz-progress .bar span { display: block; height: 100%; background: var(--cyan); border-radius: inherit; transition: width .2s ease; }
.qz-map-toggle { background: none; border: 0; font: inherit; color: var(--indigo-soft); font-weight: 800; cursor: pointer; padding: 4px 0; }
.qz-map { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qz-dot { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 700 .85rem "Nunito", sans-serif; color: var(--text-2); cursor: pointer; }
.qz-dot.done { background: var(--indigo-tint); color: var(--indigo); border-color: #D6CFF5; }
.qz-dot.here { outline: 2px solid var(--cyan); outline-offset: 1px; }
.qz-review .qz-dot { background: var(--amber-tint); color: var(--amber); border-color: #F2DFB0; }

.qz-q { border: 1px solid var(--line); margin: 0; min-width: 0; }
.qz-legend { font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 0 6px; }
.qz-prompt { font-weight: 700; font-size: 1.12rem; line-height: 1.45; white-space: pre-line; margin: 4px 0 16px; }
.qz-options { display: grid; gap: 10px; }
.qz-opt { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; font-size: 1rem; cursor: pointer; margin: 0; transition: border-color .12s ease, background .12s ease; }
.qz-opt:hover { border-color: #CFC8F0; }
.qz-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--indigo); flex: 0 0 auto; }
.qz-opt:has(input:checked) { border-color: var(--indigo); background: var(--indigo-tint); }
.qz-opt input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.qz-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 16px; }
.qz-nav #qz-next, .qz-nav #qz-submit { margin-left: auto; }
form.paged .qz-questions > * + * { margin-top: 0; }

@media (max-width: 560px) {
  .qz-nav { position: sticky; bottom: 0; background: var(--offwhite); padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); margin-top: 8px; }
  .qz-nav .btn { flex: 1 1 0; text-align: center; padding: 13px 10px; }
  .qz-nav #qz-next, .qz-nav #qz-submit { margin-left: 0; }
  .qz-prompt { font-size: 1.05rem; }
}

/* Small screens: keep the top bar on one line */
@media (max-width: 560px) {
  .topbar { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
  .brand img { height: 32px; }
  .brand-text { font-size: 1rem; }
  .topbar nav { flex-wrap: nowrap; overflow-x: auto; gap: 0; }
  .topbar nav a, .topbar .linkbtn { padding: 6px 8px; font-size: .9rem; white-space: nowrap; }
  .pagehead .iebt-mark { display: none; }
}

/* IEBT sign-in card */
.iebt-login .btn { width: 100%; justify-content: center; text-align: center; }
.iebt-logos img { mix-blend-mode: multiply; }
.brand-iebt { height: 30px !important; width: 30px; margin-left: 2px; mix-blend-mode: multiply; }
/* One question at a time: the progress line already says "Question N of M",
   so the card's own label is kept for screen readers only. */
form.paged .qz-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
form.paged .qz-prompt { margin-top: 0; }

/* ---------------------------------------------------------------------------
   Admin layout: section pill tabs, page header, sub-tabs, filters
   ------------------------------------------------------------------------- */
.admin-tabs { display: flex; gap: 6px; padding: 6px; margin: 0 0 22px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a { flex: 0 0 auto; text-decoration: none; font-weight: 800; font-size: .92rem; color: var(--text-2); padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.admin-tabs a:hover { background: var(--indigo-tint); color: var(--indigo); }
.admin-tabs a.on { background: var(--indigo); color: #fff; }

.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.ph-main { min-width: 0; flex: 1 1 360px; }
.ph h1 { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ph h1 .pill { font-family: "Nunito", sans-serif; font-size: .78rem; }
.ph-sub { color: var(--text-3); font-size: .92rem; margin: 6px 0 0; }
.ph-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; font-weight: 700; color: var(--text-3); margin-bottom: 6px; }
.crumbs a { color: var(--indigo-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: #C5C0DA; }

.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 120px; }
.stat b { display: block; font: 700 1.35rem "Poppins", sans-serif; color: var(--indigo); line-height: 1.2; }
.stat span { font-size: .8rem; font-weight: 700; color: var(--text-3); }

.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button, .subtabs a { flex: 0 0 auto; background: none; border: 0; font: 800 .92rem "Nunito", sans-serif; color: var(--text-3); padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.subtabs button:hover, .subtabs a:hover { color: var(--indigo); }
.subtabs .on { color: var(--indigo); border-bottom-color: var(--cyan); }
.subtabs .count { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--row-line); color: var(--text-2); font-size: .75rem; text-align: center; }
.subtabs .on .count { background: var(--indigo-tint); color: var(--indigo); }
.tabset:not(.js) > .subtabs { display: none; }
.tabset:not(.js) > [data-panel] + [data-panel] { margin-top: 24px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filters a, .filters button { font: 800 .85rem "Nunito", sans-serif; color: var(--text-2); background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; text-decoration: none; cursor: pointer; }
.filters .on { background: var(--indigo-tint); border-color: #D6CFF5; color: var(--indigo); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .filters { margin: 0; }
.toolbar form.search { display: flex; gap: 8px; flex: 0 1 380px; }
.panel-card { margin-bottom: 20px; }
.panel-card > h2:first-child { margin-top: 0; }

@media (max-width: 560px) {
  .admin-tabs { border-radius: 14px; }
  .admin-tabs a { padding: 7px 12px; font-size: .88rem; }
  .toolbar form.search { flex: 1 1 100%; }
}
.qa-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: qa; }
.qa-list > li { counter-increment: qa; position: relative; padding-left: 56px; }
.qa-list > li::before { content: counter(qa); position: absolute; left: 18px; top: 20px; width: 26px; height: 26px; border-radius: 8px; background: var(--indigo-tint); color: var(--indigo); font: 700 .8rem "Poppins", sans-serif; display: grid; place-items: center; }
.qa-list ul { margin: 6px 0 0; padding-left: 18px; }
.qa-list li.right { font-weight: 700; }
@media (max-width: 560px) {
  .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .stat { min-width: 0; padding: 8px 10px; }
  .stat b { font-size: 1.1rem; }
  .stat span { font-size: .7rem; line-height: 1.2; display: block; }
}

/* Inputs without a type attribute look like the rest */
input:not([type]) { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }

/* Sectioned forms (IEBT batch) */
.bform { padding: 0; overflow: hidden; }
.bform-sec { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px 32px; padding: 22px 24px; border-bottom: 1px solid var(--row-line); }
.bform-head { display: flex; gap: 12px; align-items: flex-start; }
.bform-head h3 { margin: 2px 0 2px; font-size: 1rem; }
.bform-head p { margin: 0; font-size: .85rem; color: var(--text-3); }
.bform-num { flex: 0 0 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--indigo-tint); color: var(--indigo); font: 700 .85rem "Poppins", sans-serif; }
.bform-fields { display: grid; gap: 14px 18px; }
.bform-fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bform-fields .wide { grid-column: 1 / -1; }
.field label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.field .opt { font-weight: 600; font-size: .78rem; color: var(--text-3); }
.field input, .field select { padding: 11px 13px; }
.hint { margin: 6px 0 0; font-size: .82rem; color: var(--text-3); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick button { font: 700 .8rem "Nunito", sans-serif; color: var(--indigo-soft); background: var(--offwhite); border: 1px solid var(--line); border-radius: 99px; padding: 4px 11px; cursor: pointer; }
.quick button:hover { background: var(--indigo-tint); color: var(--indigo); }
.bform-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 24px; background: var(--offwhite); }
@media (max-width: 760px) {
  .bform-sec { grid-template-columns: 1fr; padding: 18px 16px; }
  .bform-fields.two { grid-template-columns: 1fr; }
  .bform-foot { padding: 16px; }
  .bform-foot .btn { width: 100%; }
}

/* ---------------------------------------------------------------------------
   Walkthrough round: phone menu, family & learner pages, errors, sign-in
   ------------------------------------------------------------------------- */
.topbar { position: relative; z-index: 20; }
.menu-btn { display: none; align-items: center; gap: 8px; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font: 800 .9rem "Nunito", sans-serif; color: var(--indigo); cursor: pointer; }
.menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
.menu-ico::before { top: -5px; } .menu-ico::after { top: 5px; }
@media (max-width: 640px) {
  .topbar { flex-wrap: nowrap; }
  .brand-text { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar nav { display: none; position: absolute; top: calc(100% + 6px); right: 10px; left: auto; min-width: 220px; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(26, 21, 56, .16); overflow: visible; margin: 0; }
  .topbar.open nav { display: flex; }
  .topbar nav a, .topbar nav .linkbtn { padding: 11px 12px; font-size: 1rem; text-align: left; width: 100%; }
  .topbar nav form { width: 100%; border-top: 1px solid var(--row-line); margin-top: 4px; padding-top: 4px; }
}

/* Choose a child */
.kid-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.kid-card { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease; }
a.kid-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(46, 27, 140, .12); }
.kid-avatar { flex: 0 0 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; font: 700 1.5rem "Poppins", sans-serif; background: var(--text-3); }
.kid-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.kid-body strong { font: 700 1.15rem "Poppins", sans-serif; }
.kid-go { font-size: 1.4rem; color: var(--cyan); font-weight: 800; }
.kid-card.is-paused { opacity: .7; }

/* Course cards */
.course-card { position: relative; overflow: hidden; }
.course-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--indigo), var(--cyan)); }
.course-card.is-done::before { background: var(--green); }
.course-cta { font-weight: 800; color: var(--indigo-soft); }
.course-card.is-done .course-cta { color: var(--green); }

/* Course page */
.course-progress { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.course-progress .bar { flex: 0 1 260px; min-width: 120px; }
.bar > span { display: block; height: 100%; background: var(--cyan); border-radius: inherit; }
details.about { margin: 0 0 20px; }
details.about summary { list-style: none; cursor: pointer; color: var(--text-2); }
details.about summary::-webkit-details-marker { display: none; }
details.about .about-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
details.about .about-more { display: inline-block; margin-top: 4px; font-weight: 800; color: var(--indigo-soft); font-size: .9rem; }
details.about[open] summary { display: none; }
details.about p { color: var(--text-2); }
.lesson-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.kind { flex: 0 0 auto; font: 800 .72rem "Nunito", sans-serif; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--offwhite); color: var(--text-3); }
.kind-lesson { background: var(--indigo-tint); color: var(--indigo); }
.kind-video { background: var(--cyan-tint); color: #04607D; }
.kind-quiz { background: var(--amber-tint); color: var(--amber); }
.kind-pdf, .kind-audio { background: var(--green-tint); color: var(--green); }
.topics li.is-next a { background: #F7FCFE; }
.next-tag { display: inline-block; margin-left: 6px; font: 800 .7rem "Nunito", sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--cyan-deep); }

/* Player */
.player-head { align-items: flex-end; }
.player-title { flex: 1 1 320px; min-width: 0; }
.player-tools { display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px) {
  .player-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .player-title { flex: none; }
  .player-title h1 { font-size: 1.3rem; }
  .player-foot .btn { padding: 10px 12px; }
  .player-foot .next-label { display: none; }
}

/* Error + sign-in */
.err-card h1 { font-size: 1.4rem; }
.err-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.login-btn { width: 100%; }
.login-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.login-links span { color: var(--text-3); }

/* ===========================================================================
   "Little explorers" — family & trainer learner pages
   (design/design_handoff_elearn_vibrant_family). Phone layout up to 700px.
   ========================================================================= */
:root {
  --indigo-deep: #1F1270; --indigo-panel: #24157A;
  --cyan-text: #007DA3; --ink-muted: #4A4566; --page: #F4F4FB;
  --line-soft: #EFEDF7; --line-strong: #D9D5EE;
  --green-text: #1F6E40; --green-tint-2: #E3F4EA;
  --sun: #FFC93C; --sun-press: #E0A400; --sun-tint: #FFF1C7; --sun-text: #7A4E00; --sun-deep: #FFB020;
  --step-lesson: #7B61FF; --step-video: #FF5A5F; --step-audio: #00AADC; --step-pdf: #0FA37F; --step-quiz: #FFB020;
  --sh-row: 0 2px 8px rgba(26,21,56,.06); --sh-card: 0 2px 12px rgba(26,21,56,.07); --sh-hero: 0 12px 30px -12px rgba(46,27,140,.35);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.lx { background: var(--page); }

/* Topic art */
.ta { position: relative; width: 100%; height: 100%; overflow: hidden; container-type: size; }
.ta i { position: absolute; display: block; aspect-ratio: 1; box-sizing: border-box; }
.ta i.c { left: 50%; transform: translate(-50%, -50%); }
.ta-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 14%; font: 700 42cqh/1 "Poppins", sans-serif; color: #fff; }

/* Buttons */
.lx-btn-sun { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border: 0; border-radius: 18px; background: var(--sun); color: var(--ink); font: 700 1.1rem "Poppins", sans-serif; text-decoration: none; text-align: center; box-shadow: 0 5px 0 var(--sun-press); cursor: pointer; transition: transform .08s ease, box-shadow .08s ease; }
.lx-btn-sun:hover { background: #FFD25C; color: var(--ink); }
.lx-btn-sun:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sun-press); }
.lx-btn-sun:focus-visible, .lx-btn-2:focus-visible, .lx-btn-q:focus-visible, .lx-row:focus-visible, .lx-card:focus-visible, .lx-kid:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
.lx-btn-2 { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 16px; background: var(--indigo); color: #fff; font-weight: 800; text-decoration: none; }
.lx-btn-2:hover { background: var(--indigo-panel); color: #fff; }
.lx-btn-q { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 16px; border: 2px solid var(--line-strong); background: #fff; color: var(--indigo); font-weight: 800; text-decoration: none; }
.lx-btn-q:hover { background: var(--indigo-tint); }
.lx-btn-ghost-dark { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 18px; border-radius: 18px; border: 2px solid rgba(255,255,255,.4); background: none; color: #fff; font: 800 1rem "Nunito", sans-serif; text-decoration: none; cursor: pointer; }
.lx-btn-ghost-dark:hover { background: rgba(255,255,255,.08); color: #fff; }
.lx-pill-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 2px 8px rgba(26,21,56,.08); }
.lx-pill-btn.glass { background: rgba(255,255,255,.2); color: #fff; box-shadow: none; }

/* Progress bars */
.lx-bar { display: block; height: 10px; border-radius: 999px; background: var(--tt, var(--indigo-tint)); overflow: hidden; }
.lx-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--tc, var(--indigo)); min-width: 0; }
.lx-bar.sm { height: 8px; } .lx-bar.lg { height: 12px; }

/* Learner top bar */
.lx-top { padding: 10px 24px; gap: 12px; border-bottom-color: #ECEAF5; }
.lx-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.lx-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--page); color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; }
.lx-av-sm { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font: 700 1rem "Poppins", sans-serif; color: var(--ink); }
.lx-av-sm.circle { border-radius: 50%; }
.lx-top nav a, .lx-top .linkbtn { padding: 10px 16px; border-radius: 999px; font-size: 16px; color: var(--ink-muted); }
.lx-top nav a.on { background: var(--indigo-tint); color: var(--indigo); }
.lx-top nav a.live { color: var(--cyan-text); }
.lx-only-menu { display: none; }
.menu-btn.lx-menu { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px rgba(26,21,56,.08); flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.lx-menu span { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--ink); }
@media (max-width: 700px) {
  .lx-top { background: var(--page); border-bottom: 0; padding: 12px 16px 0; flex-wrap: nowrap; }
  .lx-brand { display: none; }
  .lx-switch { background: #fff; box-shadow: 0 2px 8px rgba(26,21,56,.08); }
  .menu-btn.lx-menu { display: inline-flex; margin-left: auto; }
  .lx-top nav { display: none; position: absolute; top: calc(100% + 6px); right: 12px; min-width: 230px; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; background: #fff; border-radius: 18px; box-shadow: 0 12px 30px rgba(26,21,56,.16); margin: 0; }
  .lx-top.open nav { display: flex; }
  .lx-top nav a, .lx-top nav .linkbtn { width: 100%; text-align: left; border-radius: 12px; padding: 12px 14px; }
  .lx-top nav form { width: 100%; border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 4px; }
  .lx-only-menu { display: block; }
}

/* Page frame */
.lx-wrap { max-width: 1120px; margin: 0 auto; padding: 40px 40px 56px; display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 701px) { .lx-hi-phone { display: none !important; } }
@media (max-width: 700px) {
  .lx-wrap { padding: 20px 20px 40px; gap: 18px; }
  .lx-hi-desk { display: none !important; }
}
.lx-empty { background: #fff; border-radius: 24px; padding: 28px; text-align: center; color: var(--ink-muted); box-shadow: var(--sh-card); }
.lx-h2 { font: 600 18px "Poppins", sans-serif; margin: 0; }

/* Greeting + streak */
.lx-greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.lx-greet h1 { margin: 0; font: 700 40px/1.1 "Poppins", sans-serif; }
.lx-greet p { margin: 4px 0 0; font-size: 18px; color: var(--ink-muted); }
.lx-streak { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--sun-tint); color: var(--sun-text); font-weight: 800; font-size: 15px; }
.lx-streak i { width: 11px; height: 11px; background: var(--sun-deep); transform: rotate(45deg); }
@media (max-width: 700px) {
  .lx-greet h1 { font-size: 30px; }
  .lx-greet p { font-size: 16px; margin-top: 2px; }
  .lx-streak { padding: 8px 12px; font-size: 14px; }
  .lx-streak i { width: 10px; height: 10px; }
}

/* Hero "Keep going" */
.lx-hero { display: grid; grid-template-columns: 440px 1fr; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 16px 40px -18px rgba(46,27,140,.4); }
.lx-hero-art { position: relative; display: block; min-height: 260px; }
.lx-hero-art .ta { position: absolute; inset: 0; }
.lx-tag-on-art { display: none; position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--tx); font-weight: 800; font-size: 13px; }
.lx-hero-body { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.lx-tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--indigo-tint); color: var(--tx); font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.lx-hero-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lx-hero-title a { font: 700 30px/1.15 "Poppins", sans-serif; color: var(--ink); text-decoration: none; }
.lx-count { flex: none; font-weight: 800; font-size: 16px; color: var(--tx); text-align: right; white-space: nowrap; }
.lx-hero .lx-bar { height: 14px; }
.lx-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.lx-upnext { font-size: 17px; color: var(--ink-muted); }
.lx-upnext b { color: var(--ink); }
.lx-hero-foot .lx-btn-sun { padding: 0 30px; min-height: 54px; }
@media (max-width: 700px) {
  .lx-hero { grid-template-columns: 1fr; box-shadow: var(--sh-hero); }
  .lx-hero-art { min-height: 150px; }
  .lx-tag-on-art { display: inline-block; }
  .lx-hero-body { padding: 16px 18px 18px; gap: 10px; }
  .lx-hero-title a { font-size: 22px; }
  .lx-count { font-size: 14px; }
  .lx-hero .lx-bar { height: 12px; }
  .lx-hero-foot { flex-direction: column; align-items: stretch; gap: 10px; margin: 0; }
  .lx-upnext { font-size: 15px; }
  .lx-hero-foot .lx-btn-sun { width: 100%; }
}

/* Phone course rows */
.lx-rows { display: flex; flex-direction: column; gap: 12px; }
.lx-row { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 22px; padding: 10px; box-shadow: 0 2px 10px rgba(26,21,56,.06); text-decoration: none; color: var(--ink); }
.lx-thumb { flex: none; width: 76px; height: 76px; border-radius: 16px; overflow: hidden; }
.lx-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lx-row-body strong { font: 700 17px "Poppins", sans-serif; }
.lx-meta { font-size: 14px; color: var(--ink-muted); }
.lx-chip { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 14px; background: var(--tt); color: var(--tx); font-weight: 800; font-size: 15px; }

/* Desktop course grid */
.lx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.lx-card { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--sh-card); text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.lx-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(46,27,140,.3); }
.lx-card-art { display: block; height: 150px; }
.lx-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.lx-card-body strong { font: 700 20px "Poppins", sans-serif; }
.lx-card-row { display: flex; justify-content: space-between; align-items: center; }
.lx-cta { font-weight: 800; color: var(--tx); }
.lx-until { padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-muted); }

/* 10 · Who's learning today? */
body.lx-indigo { background: var(--indigo); }
.lx-choose { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; color: #fff; }
.lx-choose .deco { position: absolute; display: block; }
.lx-choose .d1 { right: -90px; top: 120px; width: 260px; height: 260px; border-radius: 50%; background: #3B27A6; }
.lx-choose .d2 { left: -60px; bottom: 120px; width: 180px; height: 180px; border-radius: 50%; background: #3B27A6; }
.lx-choose .d3 { right: 48px; top: 110px; width: 14px; height: 14px; background: var(--sun); transform: rotate(45deg); }
.lx-choose .d4 { left: 40px; top: 330px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.lx-choose-top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; max-width: 760px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.lx-wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 6px 12px 6px 8px; background: #fff; border-radius: 14px; }
.lx-wordmark img { height: 30px; }
.lx-wordmark span { font: 600 17px "Poppins", sans-serif; color: var(--cyan-text); }
.lx-choose-top form { margin: 0; }
.lx-ghost-pill { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.4); background: none; color: #fff; font: 700 15px "Nunito", sans-serif; cursor: pointer; }
.lx-ghost-pill:hover { background: rgba(255,255,255,.1); }
.lx-choose-main { position: relative; padding: 44px 20px 0; max-width: 760px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.lx-choose-main h1 { margin: 0 4px; font: 700 34px/1.1 "Poppins", sans-serif; color: #fff; }
.lx-choose-sub { margin: 8px 4px 0; font-size: 17px; color: #D9D3FF; }
.lx-kids { display: grid; gap: 14px 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 28px; }
.lx-kid { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 26px; padding: 16px; box-shadow: 0 10px 0 var(--indigo-deep); color: var(--ink); text-decoration: none; transition: transform .1s ease, box-shadow .1s ease; }
.lx-kid:hover { color: var(--ink); transform: translateY(-2px); }
.lx-kid:active { transform: translateY(6px); box-shadow: 0 4px 0 var(--indigo-deep); }
.lx-kid-empty { display: block; font-size: 16px; }
.lx-av { position: relative; flex: none; width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; font: 700 34px "Poppins", sans-serif; color: var(--ink); }
.lx-av.circle { border-radius: 50%; }
.lx-av-badge { position: absolute; right: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-sizing: border-box; }
.lx-av-badge.diamond { border-radius: 3px; right: -4px; top: -4px; width: 24px; height: 24px; transform: rotate(45deg); }
.lx-kid-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lx-kid-body strong { font: 700 22px "Poppins", sans-serif; }
.lx-kid-body span { font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.lx-go { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--indigo); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.lx-kid.is-resting { background: #ECE9FA; }
.lx-kid.is-resting .lx-go { background: #B8AEEA; }
.lx-grownups { position: relative; margin: auto auto 34px; width: calc(100% - 40px); max-width: 720px; box-sizing: border-box; padding: 16px 18px; border-radius: 20px; background: var(--indigo-panel); color: #E6E1FF; font-size: 15px; line-height: 1.45; display: flex; flex-direction: column; gap: 4px; }
.lx-choose-main + .lx-grownups { margin-top: 40px; }
.lx-grownups strong { color: #fff; font-weight: 800; }
.lx-grownups a { color: #7FDDF7; font-weight: 800; text-decoration: none; }

/* 15 · Resting / paused */
.lx-narrow { max-width: 520px; margin: 0 auto; padding: 16px 20px 40px; }
.lx-paused { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lx-paused > .lx-pill-btn { align-self: flex-start; }
.lx-paused-art { position: relative; width: 150px; height: 150px; border-radius: 50%; background: #E3DEFB; margin-top: 56px; overflow: hidden; }
.lx-paused-art i { position: absolute; display: block; }
.lx-paused-art .sun { left: 38px; top: 34px; width: 76px; height: 76px; border-radius: 50%; background: var(--sun); }
.lx-paused-art .cut { left: 58px; top: 24px; width: 76px; height: 76px; border-radius: 50%; background: #E3DEFB; }
.lx-paused-art .dia { right: 26px; bottom: 34px; width: 12px; height: 12px; background: #4B2FD0; transform: rotate(45deg); }
.lx-paused h1 { margin: 24px 0 0; font: 700 28px/1.15 "Poppins", sans-serif; }
.lx-lead { margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-muted); }
.lx-help { align-self: stretch; margin-top: 28px; padding: 18px; border-radius: 22px; background: #fff; display: flex; flex-direction: column; gap: 12px; text-align: left; box-shadow: 0 2px 10px rgba(26,21,56,.06); }
.lx-help strong { font-size: 16px; font-weight: 800; }
.lx-help > span { font-size: 15px; color: var(--ink-muted); line-height: 1.45; }
.lx-signout { margin-top: 18px; }

/* 12 · Course page */
.lx-course { position: relative; }
.lx-course-art { position: relative; height: 260px; background: var(--tc); }
.lx-course-art .ta { position: absolute; top: 0; bottom: 0; left: 50%; width: min(100%, 560px); transform: translateX(-50%); }
.lx-course-pills { position: relative; z-index: 2; display: flex; justify-content: space-between; max-width: 820px; margin: 0 auto; padding: 16px 20px 0; }
.lx-sheet { position: relative; z-index: 3; max-width: 820px; margin: -80px auto 0; background: var(--page); border-radius: 30px 30px 0 0; padding: 24px 24px 48px; box-sizing: border-box; }
.lx-sheet-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.lx-sheet-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lx-sheet-title h1 { margin: 0; font: 700 30px/1.15 "Poppins", sans-serif; }
.lx-sheet-title span { flex: none; font-weight: 800; font-size: 14px; color: var(--ink-muted); }
.lx-segs { display: flex; gap: 4px; }
.lx-segs span { flex: 1; height: 10px; border-radius: 999px; background: #E2DEF5; overflow: hidden; }
.lx-segs i { display: block; height: 100%; background: var(--tc); border-radius: inherit; }
.lx-sheet-head .lx-btn-sun { margin-top: 4px; }
.lx-sticker-banner { display: block; padding: 12px 16px; border-radius: 16px; background: var(--sun-tint); color: var(--sun-text); font-weight: 800; text-decoration: none; }
.lx-all-done { padding: 14px 16px; border-radius: 16px; background: var(--green-tint-2); color: var(--green-text); font-weight: 800; }
.lx-all-done a { color: inherit; }
.lx-lessons { display: flex; flex-direction: column; gap: 10px; }
.lx-lesson { flex: none; background: #fff; border-radius: 20px; box-shadow: var(--sh-row); overflow: hidden; }
.lx-lesson summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; cursor: pointer; box-sizing: border-box; }
.lx-lesson summary::-webkit-details-marker { display: none; }
.lx-lesson summary:focus-visible { outline: 3px solid var(--indigo); outline-offset: -3px; border-radius: 20px; }
.lx-badge { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-tint); color: var(--indigo); font: 700 16px "Poppins", sans-serif; }
.lx-badge.done { background: var(--green); }
.lx-badge.now { background: var(--sun); color: var(--ink); box-shadow: 0 0 0 4px var(--sun-tint); }
.lx-lesson-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lx-lesson-name strong { font: 600 16px "Poppins", sans-serif; }
.lx-lesson-name span { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.lx-now { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--cyan-tint); color: #00607D; font-weight: 800; font-size: 12px; }
.lx-chev { flex: none; width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink-muted); font-size: 18px; transition: transform .15s ease; }
.lx-lesson[open] .lx-chev { transform: rotate(180deg); }
.lx-steps { list-style: none; margin: 0; padding: 0 14px 12px 64px; display: flex; flex-direction: column; }
.lx-steps a { display: flex; align-items: center; gap: 12px; min-height: 48px; border-top: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.lx-steps a:hover .lx-step-name { color: var(--indigo); }
.lx-step-ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 800 10px "Nunito", sans-serif; }
.lx-step-ico.lesson { background: var(--step-lesson); } .lx-step-ico.video { background: var(--step-video); }
.lx-step-ico.audio { background: var(--step-audio); } .lx-step-ico.pdf { background: var(--step-pdf); }
.lx-step-ico.quiz { background: var(--step-quiz); color: var(--ink); font: 700 17px "Poppins", sans-serif; }
.lx-step-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; padding: 6px 0; }
.lx-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.lx-empty-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); }
.lx-p { flex: none; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.lx-p.sun { background: var(--sun); color: var(--ink); }
.lx-p.amber { background: var(--sun-tint); color: var(--sun-text); }
.lx-about { margin-top: 22px; padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: var(--sh-row); scroll-margin-top: 20px; }
.lx-about h2 { font: 600 17px "Poppins", sans-serif; margin: 0 0 6px; }
.lx-about p { margin: 0; color: var(--ink-muted); line-height: 1.55; }
@media (max-width: 700px) {
  body.lx-course-page .lx-top { display: none; }
  .lx-course-art { height: 230px; }
  .lx-course-pills { padding: 12px 16px 0; }
  .lx-sheet { margin-top: -110px; padding: 22px 16px 32px; }
  .lx-sheet-title h1 { font-size: 28px; }
  .lx-steps { padding-left: 54px; }
}

/* 13 · Player */
body.lx-player { background: #140D3A; color: #fff; }
.lx-player-page { min-height: 100vh; display: flex; flex-direction: column; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
.lx-ptop { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.lx-close { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 800; text-decoration: none; }
.lx-close:hover { background: rgba(255,255,255,.2); color: #fff; }
.lx-ptitle { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lx-ptitle span { font-size: 13px; font-weight: 700; color: #BFB6F5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-ptitle h1 { margin: 0; font: 600 18px/1.3 "Poppins", sans-serif; color: #fff; }
.lx-pstatus { flex: none; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #E6E1FF; font-weight: 800; font-size: 13px; }
.lx-pstatus.done { background: var(--green); color: #fff; }
.lx-fs-desk { flex: none; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 2px solid rgba(255,255,255,.25); background: none; color: #fff; font: 800 14px "Nunito", sans-serif; cursor: pointer; }
.lx-pbody { padding: 0 16px; color: #D9D3FF; }
.lx-pmain { padding: 12px 16px 0; display: flex; flex-direction: column; gap: 18px; }
.lx-frame { border: 0; border-radius: 18px; background: #1D1359; box-shadow: 0 0 0 3px var(--tc); max-width: min(100%, calc((100vh - 200px) * 16 / 9)); }
.lx-audio { background: #24186B; border-radius: 18px; padding: 18px; }
.lx-audio audio { width: 100%; }
.lx-pnote { background: #24186B; border-radius: 18px; padding: 24px; text-align: center; color: #D9D3FF; }
.lx-sideways { display: none; flex-direction: column; gap: 14px; padding: 18px; border-radius: 24px; background: #24186B; }
.lx-sideways-row { display: flex; align-items: center; gap: 16px; }
.lx-sideways-row > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.lx-sideways strong { font: 600 17px "Poppins", sans-serif; }
.lx-sideways-row > span:last-child > span { font-size: 15px; color: #D9D3FF; line-height: 1.4; }
.lx-phone-ico { position: relative; flex: none; width: 56px; height: 56px; display: grid; place-items: center; }
.lx-phone-ico i { width: 26px; height: 44px; border-radius: 7px; border: 3px solid var(--sun); box-sizing: border-box; transform: rotate(-90deg); }
.lx-phone-ico b { position: absolute; right: 0; top: 2px; width: 10px; height: 10px; border-top: 3px solid var(--sun); border-right: 3px solid var(--sun); border-radius: 0 10px 0 0; }
.lx-sq { width: 18px; height: 18px; border: 3px solid var(--ink); border-radius: 4px; box-sizing: border-box; }
.lx-done-form { margin: 0; display: flex; justify-content: center; }
.lx-celebrate[hidden] { display: none; }
.lx-pfoot { margin-top: auto; display: flex; gap: 10px; padding: 16px 16px 28px; }
.lx-back { flex: none; display: flex; align-items: center; min-height: 56px; padding: 0 18px; border-radius: 18px; border: 2px solid rgba(255,255,255,.25); color: #fff; font-weight: 800; text-decoration: none; }
.lx-back:hover { background: rgba(255,255,255,.08); color: #fff; }
.lx-next { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: 6px 14px; border-radius: 18px; background: #fff; color: var(--indigo); font-weight: 800; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center; }
.lx-next span { font-size: 12px; color: var(--ink-muted); }
.lx-next:hover { background: #F1EFFC; color: var(--indigo); }
@media (min-width: 701px) { .lx-next { flex: 0 1 420px; margin-left: auto; } }
@media (orientation: portrait) and (pointer: coarse) { .lx-sideways { display: flex; } }
@media (pointer: coarse) { .lx-fs-desk { display: none; } }
@media (orientation: landscape) and (pointer: coarse) {
  .lx-ptop { padding-top: 6px; } .lx-pfoot { padding-bottom: 10px; }
  .lx-frame { max-width: min(100%, calc((100vh - 140px) * 16 / 9)); }
}
.fs-on .lx-frame { box-shadow: none; }

/* NEW · Lesson finished */
body.lx-finished { background: var(--deep, #4B2FD0); }
.lx-fin { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; padding: 0 20px; box-sizing: border-box; background: var(--deep); }
.lx-fin-glow { position: absolute; left: 50%; top: 80px; width: 420px; height: 420px; margin-left: -210px; border-radius: 50%; background: var(--glow); }
.lx-fin .cf { position: absolute; display: block; animation: lx-drift .6s ease-out both; }
.lx-fin .c1 { left: 12%; top: 110px; width: 16px; height: 16px; background: var(--sun); transform: rotate(45deg); }
.lx-fin .c2 { right: 15%; top: 86px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); }
.lx-fin .c3 { right: 10%; top: 290px; width: 18px; height: 18px; background: #FF6FA8; transform: rotate(20deg); }
.lx-fin .c4 { left: 8%; top: 350px; width: 10px; height: 10px; border-radius: 50%; background: #7CFFB2; }
.lx-fin .c5 { left: 22%; top: 210px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.lx-fin .c6 { right: 25%; top: 180px; width: 10px; height: 10px; background: var(--sun); transform: rotate(45deg); }
.lx-fin .c7 { left: 30%; top: 60px; width: 9px; height: 9px; background: #fff; opacity: .8; }
.lx-fin-sticker { position: relative; margin-top: 110px; width: 190px; height: 190px; border-radius: 50%; overflow: hidden; border: 8px solid #fff; box-shadow: 0 14px 0 rgba(0,0,0,.25); animation: lx-pop .45s cubic-bezier(.34,1.56,.64,1) both; }
.lx-fin-new { position: relative; margin-top: -18px; padding: 6px 14px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 14px; }
.lx-fin h1 { position: relative; margin: 28px 0 0; font: 700 34px/1.1 "Poppins", sans-serif; color: #fff; max-width: 520px; }
.lx-fin p { position: relative; margin: 10px 12px 0; font-size: 17px; line-height: 1.45; color: #F1EEFF; max-width: 460px; }
.lx-fin-actions { position: relative; margin-top: auto; padding: 32px 0 34px; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
@keyframes lx-pop { from { transform: scale(.6); } to { transform: scale(1); } }
@keyframes lx-drift { from { opacity: 0; translate: 0 -20px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .lx-fin-sticker, .lx-fin .cf { animation: none; } }

/* Stickers page */
.lx-book { background: #fff; border-radius: 24px; padding: 20px; box-shadow: var(--sh-card); }
.lx-book-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.lx-book-head h2 { margin: 0; font: 700 20px "Poppins", sans-serif; }
.lx-book-head h2 a { color: var(--ink); text-decoration: none; }
.lx-book-head > span { font-weight: 800; color: var(--tx); }
.lx-sticker-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px 12px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.lx-sticker-grid li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.lx-sticker { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: 0 4px 0 rgba(26,21,56,.12), 0 0 0 2px var(--tt); display: block; }
.lx-sticker-q { display: grid; place-items: center; width: 100%; height: 100%; background: var(--page); color: #B8B3CC; font: 700 26px "Poppins", sans-serif; }
.lx-sticker-grid li.todo .lx-sticker { box-shadow: inset 0 0 0 2px var(--line-strong); border-color: var(--page); }
.lx-sticker-name { font-size: 13px; font-weight: 700; color: var(--ink-muted); line-height: 1.3; }
.lx-sticker-grid li.got .lx-sticker-name { color: var(--ink); }

.lx-btn-sun.lx-inline { display: inline-flex; min-height: 54px; padding: 0 26px; }

/* Family fixes (stage walkthrough, 12 Nov 2026) */
/* Course page: art fully above the card on desktop; ink step rows, whole row clickable. */
@media (min-width: 701px) {
  .lx-course-art { height: 300px; }
  .lx-course-art { overflow: hidden; }
  .lx-course-art .ta { bottom: 92px; height: auto; width: min(100%, 420px); overflow: visible; }
}
.lx-steps a, .lx-steps a:visited, .lx-steps a:hover { color: var(--ink); }
.lx-steps a:hover .lx-step-name { color: var(--ink); }
.lx-steps li { margin: 0 -10px; }
.lx-steps a { padding: 0 10px; transition: background .12s ease; }
.lx-steps a:hover { background: #F6F4FE; }
.lx-steps a:focus-visible { outline: 3px solid var(--indigo); outline-offset: -3px; }
.lx-chev svg { display: block; }

/* Stickers: readable locked numbers, a ring per lesson, the next one to earn. */
.lx-sticker-wrap { position: relative; display: block; }
.lx-sticker-q { color: #6B6690; }
.lx-sticker-grid li.got .lx-sticker { box-shadow: 0 4px 0 rgba(26,21,56,.12), 0 0 0 4px var(--lc, var(--tt)); }
.lx-sticker-n { position: absolute; right: -4px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-sizing: border-box; display: grid; place-items: center; }
.lx-sticker-grid li.next .lx-sticker-wrap::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 3px dashed var(--sun-deep); }
.lx-sticker-next { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 11px; line-height: 1.4; letter-spacing: .02em; }
.lx-sticker-grid li.next .lx-sticker-name { color: var(--ink); margin-top: 4px; }
.lx-fin-sticker { box-shadow: 0 14px 0 rgba(0,0,0,.25), 0 0 0 6px var(--lc, transparent); }

/* Player: "Loading your lesson…", and the lesson as large as the screen allows. */
.lx-frame { width: 100%; max-width: min(100%, 1120px, calc((100vh - var(--pchrome, 180px)) * 16 / 9)); }
@supports (height: 100dvh) { .lx-frame { max-width: min(100%, 1120px, calc((100dvh - var(--pchrome, 180px)) * 16 / 9)); } }
@media (min-width: 701px) { .lx-pfoot { padding: 12px 16px 16px; } }
.lx-loading { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #1D1359; color: #E6E1FF; font-weight: 800; font-size: 16px; transition: opacity .3s ease, visibility .3s; }
.lx-loading.done { opacity: 0; visibility: hidden; pointer-events: none; }
.lx-spin { width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(255,255,255,.18); border-top-color: var(--sun); animation: lx-spin .9s linear infinite; }
@keyframes lx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lx-spin { animation-duration: 2.4s; } }
.fs-on .lx-frame { max-width: none; }

/* Family fixes, round 2: "Who's learning today?" cards wide enough for one line of details. */
.lx-kids { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.lx-kid-body span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-choose-main, .lx-choose-top { max-width: 900px; }

/* Admin: a trainer's course card shows access only. */
.ad-course-cols.one { grid-template-columns: 1fr; }

/* Trainers: My training is a plain library of teaching material (no progress). */
.lx-tlessons { list-style: none; margin: 8px 0 0; padding: 0; }
.lx-tlessons > li { border-top: 1px solid #EEEAF7; }
.lx-tlessons > li:first-child { border-top: 0; }
.lx-tlesson { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 10px; margin: 0 -10px; color: var(--ink); text-decoration: none; }
a.lx-tlesson:hover { background: #F6F4FE; }
a.lx-tlesson:focus-visible, .lx-tsteps a:focus-visible { outline: 3px solid var(--indigo); outline-offset: -3px; }
.lx-tlesson-name { flex: 1; font-weight: 800; font-size: 16px; }
.lx-topen { flex: none; font-weight: 800; font-size: 14px; color: var(--indigo); }
.lx-tsteps { list-style: none; margin: 0 0 10px; padding: 0 0 0 50px; }
.lx-tsteps a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 10px; margin: 0 -10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lx-tsteps a > span:first-child { flex: 1; }
.lx-tsteps a:hover { background: #F6F4FE; }
.lx-grownups { max-width: 860px; }

/* ===========================================================================
   Admin — calm variant (design/design_handoff_elearn_admin). Indigo buttons
   only, no sunshine yellow. Everything is scoped to body.ad.
   =========================================================================== */
body.ad {
  --ad-ink: #1A1538; --ad-muted: #4A4566; --ad-link: #007DA3; --ad-line: #ECEAF5; --ad-line-strong: #D9D5EC;
  --ad-th: #FAFAFD; --ad-hover: #F8F7FD; --ad-seg-line: #E3E0F1; --ad-scrim: rgba(26,21,56,.45);
  --ad-indigo: #2E1B8C; --ad-indigo-hover: #24157A; --ad-tint: #EEEBFB;
  --ad-danger: #C53030; --ad-danger-text: #A12626; --ad-danger-line: #F2C4C4; --ad-danger-tint: #FDECEC;
  --ad-sh: 0 1px 2px rgba(26,21,56,.05), 0 10px 28px -16px rgba(26,21,56,.22);
  --ad-sh-menu: 0 18px 40px -12px rgba(26,21,56,.35), 0 0 0 1px #ECEAF5;
  background: #F4F4FA; color: var(--ad-ink);
}
body.ad :focus-visible { outline: 3px solid var(--ad-indigo); outline-offset: 2px; border-radius: 6px; }
body.ad h1, body.ad h2, body.ad h3 { font-family: "Poppins", sans-serif; color: var(--ad-ink); }
body.ad a { color: var(--ad-link); font-weight: 800; text-decoration: none; }
body.ad a:hover { text-decoration: underline; }

/* Shell */
.ad-top { height: 64px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 40px; border-bottom: 1px solid var(--ad-line); }
.ad-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.ad-word { font: 700 1.15rem "Poppins", sans-serif; color: var(--ad-indigo); white-space: nowrap; }
.ad-word b { color: #007DA3; font-weight: 700; }
.ad-chip { background: var(--ad-tint); color: var(--ad-indigo); font: 800 12px "Nunito", sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.ad-top-links { display: flex; align-items: center; gap: 20px; }
.ad-quiet-link { color: var(--ad-muted) !important; font-weight: 700 !important; }
.ad-connect { color: var(--ad-link) !important; }
.ad-acct { position: relative; }
.ad-acct-btn { display: flex; align-items: center; gap: 8px; background: #F4F4FA; border: 0; border-radius: 99px; padding: 4px 12px 4px 4px; font: 800 15px "Nunito", sans-serif; color: var(--ad-ink); cursor: pointer; min-height: 40px; }
.ad-av { width: 32px; height: 32px; border-radius: 50%; background: var(--ad-indigo); color: #fff; display: grid; place-items: center; font: 700 14px "Poppins", sans-serif; }
.ad-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 240px; background: #fff; border-radius: 14px; box-shadow: var(--ad-sh-menu); padding: 6px; display: flex; flex-direction: column; text-align: left; }
.ad-menu[hidden] { display: none; }
.ad-menu.ad-menu-float { position: fixed; top: auto; z-index: 60; }
.ad-menu a, .ad-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; border: 0; background: none; font: 700 15px "Nunito", sans-serif; color: var(--ad-ink) !important; cursor: pointer; text-decoration: none !important; }
.ad-menu a:hover, .ad-menu button:hover { background: var(--ad-hover); }
.ad-menu button.danger { color: var(--ad-danger-text) !important; }
.ad-menu hr { border: 0; border-top: 1px solid var(--ad-line); margin: 6px 4px; }
.ad-menu form { margin: 0; }
.ad-menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--ad-line); margin-bottom: 6px; }
.ad-menu-head strong { display: block; }
.ad-menu-head span { font-size: 13px; color: var(--ad-muted); word-break: break-all; }
.ad-menu-head .ad-menu-who { display: block; font-size: 12px; font-weight: 700; color: var(--ad-muted); margin-bottom: 2px; word-break: normal; }
@media (min-width: 701px) { .ad-menu .ad-menu-phone { display: none; } }
.ad-menu-off { display: block; padding: 10px 12px; color: #8C88A3; font-weight: 700; cursor: not-allowed; }
.ad-menu-off small { display: block; font-weight: 600; font-size: 12.5px; color: var(--ad-muted); margin-top: 3px; line-height: 1.35; }
.ad-tabs { background: #fff; border-bottom: 1px solid var(--ad-seg-line); }
.ad-tabs-in { display: flex; align-items: center; gap: 4px; padding: 0 30px; overflow-x: auto; scrollbar-width: none; }
.ad-tabs-in::-webkit-scrollbar { display: none; }
body.ad .ad-tabs a { flex: 0 0 auto; height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 14px; color: var(--ad-muted); font: 700 15px "Nunito", sans-serif; border-bottom: 3px solid transparent; text-decoration: none !important; white-space: nowrap; }
body.ad .ad-tabs a:hover { color: var(--ad-indigo); }
body.ad .ad-tabs a.on { color: var(--ad-indigo); font-weight: 800; border-bottom-color: var(--ad-indigo); }
.ad-badge { background: #FFF1C7; color: #7A4E00; font: 800 12px "Nunito", sans-serif; min-width: 22px; padding: 1px 7px; border-radius: 99px; text-align: center; }
.ad-tabs-sep { width: 1px; height: 22px; background: var(--ad-seg-line); margin: 0 8px; flex: 0 0 1px; }
.ad-tabs-label { font: 800 12px "Nunito", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ad-muted); margin-right: 4px; white-space: nowrap; }

/* Page */
.ad-wrap { max-width: 1280px; margin: 0 auto; padding: 28px 40px 64px; }
.ad-ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.ad-ph h1 { margin: 0; font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.ad-count { font: 800 14px "Nunito", sans-serif; background: #E9E7F3; color: var(--ad-muted); padding: 3px 11px; border-radius: 99px; }
.ad-sub { color: var(--ad-muted); margin: 6px 0 0; font-size: 15px; }
.ad-eyebrow { font: 800 12px "Nunito", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #007DA3; margin: 0 0 6px; }
.ad-h2 { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.ad-h2.sm { font-size: 16px; margin-top: 28px; }
.ad-h2-n { font: 800 14px "Nunito", sans-serif; color: var(--ad-muted); }
.ad-muted { color: var(--ad-muted); }
.ad-muted-sm { display: block; font-size: 13px; color: var(--ad-muted); font-weight: 600; }
.ad-mono, .ad-mono-in { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; color: var(--ad-muted); }
.ad-mono { display: block; }
.ad-link { color: var(--ad-link) !important; font-weight: 800; }
.ad-linkbtn { background: none; border: 0; padding: 0; color: var(--ad-link); font: 800 15px "Nunito", sans-serif; cursor: pointer; }
.ad-linkbtn:hover { text-decoration: underline; }
.ad-help { background: #fff; border-radius: 14px; box-shadow: var(--ad-sh); padding: 14px 18px; margin-top: 12px; max-width: 760px; font-size: 14.5px; color: var(--ad-muted); }
.ad-help ul { margin: 0 0 8px; padding-left: 18px; }
.ad-help strong { color: var(--ad-ink); }
.ad-crumbs { display: flex; gap: 8px; font-weight: 700; color: var(--ad-muted); font-size: 15px; margin-bottom: 18px; }
.ad-note { background: #fff; border-left: 4px solid #2E1B8C; border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; color: var(--ad-muted); box-shadow: var(--ad-sh); }
.ad-note strong { color: var(--ad-ink); }

/* Buttons */
.ad-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; font: 800 15px "Nunito", sans-serif; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.ad-btn.sm { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.ad-btn.pri { background: var(--ad-indigo); color: #fff !important; }
.ad-btn.pri:hover { background: var(--ad-indigo-hover); }
.ad-btn.pri:disabled { background: #B9B3D9; cursor: not-allowed; }
.ad-btn.quiet { background: #fff; color: var(--ad-indigo) !important; box-shadow: inset 0 0 0 1.5px var(--ad-line-strong); }
.ad-btn.quiet:hover { background: var(--ad-tint); }
.ad-btn.ghost { background: none; color: var(--ad-indigo) !important; }
.ad-btn.ghost:hover { background: var(--ad-tint); }
.ad-btn.danger { background: var(--ad-danger); color: #fff !important; }
.ad-btn.danger:hover { background: #A82828; }
.ad-btn.danger-quiet { background: #fff; color: var(--ad-danger-text) !important; box-shadow: inset 0 0 0 1.5px var(--ad-danger-line); }
.ad-btn.danger-quiet:hover { background: var(--ad-danger-tint); }
.ad-icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; color: var(--ad-muted); font-size: 20px; font-weight: 800; cursor: pointer; line-height: 1; }
.ad-icon-btn:hover, .ad-icon-btn[aria-expanded="true"] { background: var(--ad-tint); color: var(--ad-indigo); }

/* Pills and chips */
.ad-pill { display: inline-flex; align-items: center; gap: 7px; font: 800 13px "Nunito", sans-serif; padding: 4px 10px; border-radius: 99px; white-space: nowrap; vertical-align: middle; }
.ad-pill.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.p-active { background: #E3F4EA; color: #1F6E40; }
.p-paused { background: #EEEBFB; color: #2E1B8C; }
.p-left, .p-closed, .p-removed { background: #ECEBF2; color: #4A4566; }
.p-soon { background: #FFF1C7; color: #7A4E00; }
.p-none { background: #F1F0F7; color: #4A4566; }
.p-up { background: #E0F6FC; color: #00607D; }
.p-off { background: #FDECEC; color: #A12626; }
.p-test { background: #fff; color: #4A4566; box-shadow: inset 0 0 0 1px var(--ad-line-strong); font-weight: 700; padding: 2px 8px; }
.p-you { background: var(--ad-indigo); color: #fff; padding: 2px 9px; }
.ad-role { display: inline-block; font: 800 13px "Nunito", sans-serif; padding: 4px 10px; border-radius: 8px; margin: 2px 6px 2px 0; white-space: nowrap; }
.r-super { background: #2E1B8C; color: #fff; }
.r-online { background: #E0F6FC; color: #00607D; }
.r-trainer { background: #E3F4EA; color: #1F6E40; }
.r-iebt { background: #FFF1C7; color: #7A4E00; }

/* Cards, bars */
.ad-card { background: #fff; border-radius: 18px; box-shadow: var(--ad-sh); }
.ad-empty { padding: 40px 20px; text-align: center; color: var(--ad-muted); }
.ad-empty p { margin: 4px 0; }
.ad-bar { height: 8px; border-radius: 99px; background: var(--ad-tint); overflow: hidden; margin-top: 6px; }
.ad-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--fill, var(--ad-indigo)); }
.ad-bar.green > span { background: #2E9E5B; }
.ad-prog-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ad-prog-line span { color: var(--ad-muted); font-weight: 700; white-space: nowrap; }
.ad-more-n { color: var(--ad-indigo); font-weight: 800; font-size: 14px; }

/* Toolbar: search, segmented control, filters */
.ad-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 16px; }
.ad-search { position: relative; display: flex; align-items: center; width: 340px; max-width: 100%; margin: 0 0 14px; }
.ad-toolbar .ad-search { margin: 0; }
.ad-search input { width: 100%; height: 48px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1.5px var(--ad-seg-line); background: #fff; padding: 0 14px 0 42px; font: 600 15px "Nunito", sans-serif; color: var(--ad-ink); outline: none; }
.ad-search input:focus { box-shadow: inset 0 0 0 2px var(--ad-indigo); }
.ad-search-ico { position: absolute; left: 14px; width: 16px; height: 16px; border: 2.5px solid var(--ad-muted); border-radius: 50%; pointer-events: none; }
.ad-search-ico::after { content: ""; position: absolute; width: 7px; height: 2.5px; background: var(--ad-muted); right: -6px; bottom: -3px; transform: rotate(45deg); border-radius: 2px; }
.ad-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ad-seg-line); border-radius: 12px; padding: 4px; }
.ad-seg a, .ad-seg button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 9px; border: 0; background: none; color: var(--ad-muted) !important; font: 700 15px "Nunito", sans-serif; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.ad-seg a:hover, .ad-seg button:hover { color: var(--ad-indigo) !important; }
.ad-seg .on { background: var(--ad-tint); color: var(--ad-indigo) !important; font-weight: 800; }
.ad-n { font: 800 12px "Nunito", sans-serif; background: #F1F0F7; color: var(--ad-muted); padding: 1px 7px; border-radius: 99px; }
.ad-seg .on .ad-n { background: #fff; color: var(--ad-indigo); }
.ad-more { flex: 1 1 auto; }
.ad-more > summary { list-style: none; display: none; }
.ad-more > summary::-webkit-details-marker { display: none; }
.ad-more-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.ad-selects { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.ad-select { position: relative; display: inline-flex; align-items: center; height: 48px; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--ad-seg-line); padding-left: 14px; font: 700 15px "Nunito", sans-serif; color: var(--ad-muted); }
.ad-select select { border: 0; background: transparent; font: 800 15px "Nunito", sans-serif; color: var(--ad-ink); height: 46px; padding: 0 12px 0 8px; width: auto; max-width: 220px; cursor: pointer; }
.ad-select select:focus { outline: none; }
.ad-select:focus-within { box-shadow: inset 0 0 0 2px var(--ad-indigo); }
.ad-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; order: 3; }
.ad-quick-label { font-weight: 700; color: var(--ad-muted); font-size: 14.5px; }
.ad-chip-f { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ad-seg-line); color: var(--ad-ink) !important; font: 800 14.5px "Nunito", sans-serif; text-decoration: none !important; }
.ad-chip-f:hover { background: var(--ad-hover); }
.ad-chip-f.on { background: var(--ad-indigo); color: #fff !important; box-shadow: none; }
.ad-switch { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--ad-ink) !important; font: 800 15px "Nunito", sans-serif; text-decoration: none !important; min-height: 44px; }
.ad-switch-ui { width: 44px; height: 26px; border-radius: 99px; background: #D9D5EC; position: relative; transition: background .15s; }
.ad-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.ad-switch[aria-checked="true"] .ad-switch-ui { background: var(--ad-indigo); }
.ad-switch[aria-checked="true"] .ad-switch-ui::after { left: 21px; }

/* Tables */
.ad-tablebox { overflow-x: auto; }
.ad-tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.ad-tbl th { background: var(--ad-th); text-align: left; font: 800 12px "Nunito", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ad-muted); padding: 14px 16px; white-space: nowrap; border-bottom: 1px solid var(--ad-line); }
.ad-tbl th a { color: var(--ad-muted) !important; text-decoration: none !important; }
.ad-tbl th a.sorted { color: var(--ad-indigo) !important; }
.ad-tbl td { padding: 14px 16px; border-bottom: 1px solid var(--ad-line); vertical-align: middle; }
.ad-tbl tbody tr:last-child td { border-bottom: 0; }
.ad-tbl .num { text-align: right; }
.ad-row { cursor: pointer; }
.ad-row:hover td, .ad-staff tbody tr:hover td { background: var(--ad-hover); }
.ad-rowlink { color: var(--ad-ink) !important; font-weight: 800; text-decoration: none !important; }
.c-go { color: var(--ad-muted); font-size: 18px; width: 24px; text-align: right; }
.c-courses { min-width: 220px; }
.c-courses .ad-bar { max-width: 260px; }
.ad-tfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--ad-line); color: var(--ad-muted); font-weight: 600; margin: 0; }
.ad-pager { display: flex; gap: 8px; }
.s-name-in { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-av-sm { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ad-tint); color: var(--ad-indigo); font: 700 15px "Poppins", sans-serif; flex: 0 0 36px; }
.ad-av-sm.me { background: var(--ad-indigo); color: #fff; }
.s-menu { width: 56px; text-align: right; }
.ad-menuwrap { position: relative; display: inline-block; }
.ad-menuwrap .ad-menu { min-width: 270px; }

/* KPI cards */
.ad-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.ad-kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.ad-kpi b { font: 700 30px "Poppins", sans-serif; color: var(--ad-ink); line-height: 1.15; }
.ad-kpi b.green { color: #1F6E40; }
.ad-kpi b small { font-size: 18px; }
.ad-kpi strong { font-size: 15px; font-weight: 800; }
.ad-kpi span { font-size: 13px; color: var(--ad-muted); font-weight: 600; }

/* Child page */
.ad-child-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.ad-av-lg { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font: 700 26px "Poppins", sans-serif; color: #1A1538; flex: 0 0 60px; }
.ad-av-lg.circle { border-radius: 50%; }
.ad-child-id { flex: 1 1 320px; min-width: 0; }
.ad-child-id h1 { margin: 0; font-size: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-child-actions { display: flex; gap: 8px; }
.ad-child-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.ad-course { padding: 20px 22px; margin-bottom: 16px; }
.ad-course-top { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.ad-tile { width: 48px; height: 48px; border-radius: 12px; flex: 0 0 48px; }
.ad-tile.sm { width: 36px; height: 36px; border-radius: 10px; flex-basis: 36px; }
.ad-course-name { flex: 1 1 260px; min-width: 0; }
.ad-course-name h3 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-course-name .ad-sub { margin-top: 4px; font-size: 14.5px; }
.ad-course-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ad-course-cols { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 20px; margin-top: 18px; }
.ad-k { font-size: 14px; color: var(--ad-muted); font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.ad-k b { color: var(--ad-ink); }
.ad-v { font-weight: 800; font-size: 16px; margin-top: 2px; }
.ad-addcard { border: 2px dashed #D9D5EC; border-radius: 18px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--ad-muted); }
.ad-addcard p { margin: 0; flex: 1 1 280px; }
.ad-removed { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 14px; box-shadow: var(--ad-sh); }
.ad-removed li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--ad-line); }
.ad-removed li:last-child { border-bottom: 0; }
.ad-removed form { margin: 0; }
.ad-side { display: flex; flex-direction: column; gap: 16px; }
.ad-side-card > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--ad-line); }
.ad-side-card h2 { margin: 0; font-size: 18px; }
.ad-side-body { padding: 14px 20px 16px; margin: 0; }
.ad-side-body p { margin: 0 0 10px; }
.ad-side-body p:last-child { margin-bottom: 0; }
.ad-strong { font-weight: 800; font-size: 16px; }
.ad-copyline { display: flex; align-items: center; justify-content: space-between; gap: 8px; word-break: break-all; }
.ad-feed { list-style: none; margin: 0; padding: 0; }
.ad-feed li { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--ad-line); font-size: 14.5px; }
.ad-feed li:last-child { border-bottom: 0; }
.ad-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: 0 0 10px; background: var(--ad-indigo); }
.ad-dot.done { background: #2E9E5B; }

/* Drawers and confirm dialogs */
dialog.ad-drawer { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: 480px; max-width: 100%; border: 0; padding: 0; background: #fff; box-shadow: -24px 0 48px -24px rgba(26,21,56,.5); color: var(--ad-ink); }
dialog.ad-drawer.wide { width: 560px; }
dialog.ad-drawer[open] { display: flex; }
dialog.ad-drawer::backdrop, dialog.ad-confirm::backdrop { background: rgba(26,21,56,.45); }
.ad-drawer-form { display: flex; flex-direction: column; width: 100%; height: 100%; margin: 0; }
.ad-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 16px; border-bottom: 1px solid var(--ad-line); }
.ad-drawer-head h2 { margin: 0; font-size: 22px; }
.ad-drawer-head .ad-sub { margin-top: 2px; font-size: 14.5px; }
.ad-x { width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; font-size: 20px; color: var(--ad-muted); cursor: pointer; }
.ad-x:hover { background: var(--ad-tint); }
.ad-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 24px; }
.ad-drawer-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--ad-line); background: #fff; }
.ad-picker { border: 0; margin: 0 0 16px; padding: 0; }
.ad-picker legend, .ad-label, .ad-dates label > span { font-weight: 800; font-size: 15px; margin-bottom: 6px; padding: 0; display: block; }
.ad-search.in-drawer { width: 100%; margin-bottom: 10px; }
.ad-options { display: flex; flex-direction: column; gap: 8px; max-height: 330px; overflow-y: auto; padding: 2px; }
.ad-option { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--ad-seg-line); cursor: pointer; }
.ad-option:hover { background: var(--ad-hover); }
.ad-option.on, .ad-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ad-indigo); background: var(--ad-hover); }
.ad-option input { width: 20px; height: 20px; accent-color: var(--ad-indigo); flex: 0 0 20px; margin: 0; }
.ad-option-text { display: flex; flex-direction: column; font-size: 14px; color: var(--ad-muted); font-weight: 600; }
.ad-option-text strong { color: var(--ad-ink); font-size: 15px; font-weight: 800; }
.ad-option.is-held { opacity: .62; cursor: not-allowed; }
.ad-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ad-dates input { width: 100%; height: 48px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1.5px var(--ad-seg-line); padding: 0 12px; font: 600 15px "Nunito", sans-serif; color: var(--ad-ink); background: #fff; }
.ad-dates input:disabled { background: #F4F4FA; color: #8C88A3; }
.ad-dates small { display: block; color: var(--ad-muted); font-size: 13px; margin-top: 4px; }
.ad-plus { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ad-check { display: flex; align-items: center; gap: 10px; font-weight: 800; margin: 4px 0 16px; cursor: pointer; }
.ad-check input { width: 20px; height: 20px; accent-color: var(--ad-indigo); margin: 0; }
.ad-summary { background: #F4F4FA; border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; line-height: 1.5; }
.ad-warn { margin: 0 0 12px; font-weight: 800; color: #7A4E00; }
.ad-warn.bad { color: var(--ad-danger-text); }
.ad-danger-zone { margin-top: 18px; }
.ad-danger-box { border: 1.5px solid var(--ad-danger-line); background: #FFF8F8; border-radius: 14px; padding: 14px 16px; }
.ad-danger-title { color: var(--ad-danger-text); font-weight: 800; margin: 0 0 6px; font-size: 16px; }
.ad-danger-box p { margin: 0 0 12px; }
.ad-row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
dialog.ad-drawer .bform { box-shadow: none; border: 0; padding: 0; background: none; margin: 0 -24px; overflow: visible; }
dialog.ad-drawer .bform-sec { grid-template-columns: 1fr; gap: 14px; padding: 18px 24px; }
dialog.ad-drawer .bform-sec:first-child { padding-top: 4px; }
dialog.ad-confirm { width: 460px; max-width: calc(100% - 32px); border: 0; border-radius: 20px; padding: 24px; box-shadow: 0 30px 60px -20px rgba(26,21,56,.5); color: var(--ad-ink); text-align: left; }
dialog.ad-confirm h2 { margin: 0 0 10px; font-size: 20px; }
dialog.ad-confirm p { margin: 0 0 20px; color: var(--ad-muted); line-height: 1.5; }
.ad-confirm-btns { display: flex; justify-content: flex-end; gap: 10px; }

/* Toast */
.ad-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: #1A1538; color: #fff; font: 700 15px "Nunito", sans-serif; padding: 12px 20px; border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(26,21,56,.5); transition: opacity .3s, transform .3s; max-width: calc(100% - 32px); }
.ad-toast.gone { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }

/* Pages not redesigned yet (quizzes, courses, modules, batch detail,
   progress, trainer profile) pick up the calm look through these. */
body.ad .wrap { max-width: 1280px; padding: 28px 40px 64px; }
body.ad .ph h1 { font-size: 28px; }
body.ad .ph-sub { color: var(--ad-muted); font-size: 15px; }
body.ad .card { border: 0; border-radius: 18px; box-shadow: var(--ad-sh); }
body.ad table.list { border: 0; border-radius: 18px; box-shadow: var(--ad-sh); }
body.ad table.list th { background: var(--ad-th); font: 800 12px "Nunito", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ad-muted); }
body.ad table.list td { border-color: var(--ad-line); }
body.ad .btn { background: var(--ad-indigo); border-radius: 12px; font-weight: 800; }
body.ad .btn:hover { background: var(--ad-indigo-hover); }
body.ad .btn.ghost { background: #fff; color: var(--ad-indigo); border: 0; box-shadow: inset 0 0 0 1.5px var(--ad-line-strong); }
body.ad .btn.ghost:hover { background: var(--ad-tint); }
body.ad .btn.danger { background: var(--ad-danger); }
body.ad .btn.cyan { background: var(--ad-indigo); }
body.ad .stat { border: 0; border-radius: 16px; box-shadow: var(--ad-sh); }
body.ad .stat b { color: var(--ad-ink); }
body.ad .subtabs .on { border-bottom-color: var(--ad-indigo); }
body.ad .filters button, body.ad .filters a { border-radius: 9px; }
body.ad .crumbs a { color: var(--ad-link); }
body.ad .flash { border-radius: 12px; }

/* Phone (below 700px) */
@media (max-width: 700px) {
  .ad-top { height: 60px; padding: 0 16px; }
  .ad-chip, .ad-top-links > .ad-quiet-link, .ad-top-links > .ad-connect, .ad-acct-name, .ad-acct-btn > span[aria-hidden="true"]:last-child { display: none; }
  .ad-acct-btn { padding: 4px; background: none; }
  .ad-tabs-in { padding: 0 6px; }
  .ad-wrap, body.ad .wrap { padding: 20px 16px 48px; }
  .ad-ph h1, .ad-child-id h1 { font-size: 24px; }
  .ad-search { width: 100%; }
  .ad-toolbar { gap: 10px; }
  .ad-more { flex: 0 0 auto; }
  .ad-more > summary { display: inline-flex; }
  .ad-more[open] > .ad-more-in { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-radius: 20px 20px 0 0; padding: 20px 16px 28px; box-shadow: 0 -20px 40px -10px rgba(26,21,56,.35); flex-direction: column; align-items: stretch; }
  .ad-more[open] > summary::before { content: ""; position: fixed; inset: 0; background: rgba(26,21,56,.45); z-index: 39; }
  .ad-selects { flex-direction: column; }
  .ad-select select { max-width: none; flex: 1; }
  .ad-switch { margin-left: 0; }
  .ad-seg a, .ad-seg button { height: 40px; }
  .ad-btn, .ad-btn.sm { min-height: 44px; }
  .ad-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ad-child-grid { grid-template-columns: 1fr; }
  .ad-course-cols { grid-template-columns: 1fr; gap: 12px; }
  dialog.ad-drawer, dialog.ad-drawer.wide { width: 100%; }
  .ad-dates { grid-template-columns: 1fr; }
  /* Table rows become cards */
  .ad-tablebox { background: none; box-shadow: none; overflow: visible; }
  .ad-tbl, .ad-tbl tbody { display: block; }
  .ad-tbl thead { display: none; }
  .ad-tbl tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; background: #fff; border-radius: 18px; box-shadow: var(--ad-sh); padding: 16px; margin-bottom: 12px; }
  .ad-tbl td { display: block; padding: 0; border: 0; grid-column: 1 / -1; }
  .ad-tbl tr[hidden] { display: none; }
  .ad-row:hover td { background: none; }
  .ad-tbl .c-name, .ad-tbl .b-name, .ad-tbl .s-name { grid-column: 1; font-size: 17px; }
  .ad-tbl .c-status, .ad-tbl .b-status, .ad-tbl .s-access { grid-column: 2; grid-row: 1; justify-self: end; }
  .ad-tbl .c-go, .ad-tbl .c-ends, .ad-tbl .num::before { display: none; }
  .ad-kids .c-branch { color: var(--ad-muted); }
  .ad-kids .ad-mono { display: none; }
  .ad-kids .c-last::before { content: "Active: "; color: var(--ad-muted); }
  .ad-tbl .num { text-align: left; }
  .ad-batches .b-teachers::after { content: " teachers"; }
  .ad-staff .s-menu { grid-column: 2; grid-row: 2; justify-self: end; width: auto; }
  .ad-staff .s-email { grid-column: 1; }
  .ad-tfoot { background: #fff; border-radius: 14px; border: 0; }
}

/* Admin Home (Phase 2) */
.ad-kpi-link { text-decoration: none !important; color: var(--ad-ink) !important; transition: box-shadow .15s, transform .15s; }
.ad-kpi-link:hover { transform: translateY(-1px); box-shadow: 0 1px 2px rgba(26,21,56,.05), 0 16px 32px -16px rgba(26,21,56,.3); }
.ad-kpi b.sun { color: #7A4E00; }
.ad-kpi em { font-style: normal; color: var(--ad-link); font-weight: 800; font-size: 14px; margin-top: 8px; }
.ad-home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ad-home-grid.one { grid-template-columns: minmax(0, 720px); }
.ad-attn { list-style: none; margin: 0; padding: 0; }
.ad-attn li { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--ad-line); }
.ad-attn li:last-child { border-bottom: 0; }
.ad-attn-who { flex: 1 1 auto; min-width: 0; }
.ad-allclear { padding: 28px 20px; }
.ad-batchrow { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-bottom: 1px solid var(--ad-line); color: var(--ad-ink) !important; text-decoration: none !important; }
.ad-batchrow:last-child { border-bottom: 0; }
.ad-batchrow:hover { background: var(--ad-hover); }
.ad-batchrow-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ad-batchrow .ad-prog-line b { color: var(--ad-ink); }
.ad-dot.cyan { background: #00AADC; }
.ad-dot.green { background: #2E9E5B; }
@media (max-width: 900px) { .ad-home-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .ad-attn li { flex-wrap: wrap; gap: 8px 12px; padding: 14px 16px; }
  .ad-attn-who { flex: 1 1 calc(100% - 52px); }
  .ad-attn .ad-pill { margin-left: 50px; }
  .ad-attn .ad-btn { margin-left: auto; }
}
@media (max-width: 700px) { .ad-staff .s-last::before { content: "Signed in: "; color: var(--ad-muted); } }

/* Pages not redesigned in detail: the admin status colours and words. */
body.ad .pill { font: 800 13px "Nunito", sans-serif; padding: 4px 10px; border-radius: 99px; background: #EEEBFB; color: #2E1B8C; }
body.ad .pill::first-letter { text-transform: uppercase; }
body.ad .pill.green { background: #E3F4EA; color: #1F6E40; }
body.ad .pill.amber { background: #FFF1C7; color: #7A4E00; }
body.ad .pill.grey { background: #ECEBF2; color: #4A4566; }
body.ad .pill.cyan { background: #E0F6FC; color: #00607D; }
body.ad .pill.red { background: #FDECEC; color: #A12626; }
body.ad .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
body.ad .stat { padding: 18px 20px; background: #fff; }
body.ad .stat b { font: 700 30px "Poppins", sans-serif; }
body.ad .stat span { font-size: 15px; font-weight: 800; color: var(--ad-ink); }
body.ad table.list th, body.ad table.list td { padding: 14px 16px; }
body.ad table.list tbody tr:hover td { background: var(--ad-hover); }
body.ad .tablewrap { border-radius: 18px; }
body.ad .subtabs { border-bottom-color: var(--ad-seg-line); }
body.ad .subtabs button, body.ad .subtabs a { font-size: 15px; color: var(--ad-muted); }
body.ad .subtabs .on { color: var(--ad-indigo); }
body.ad .crumbs { font-size: 15px; color: var(--ad-muted); }
body.ad .ph { margin-bottom: 20px; }
body.ad label { font-weight: 800; }
body.ad input[type=text], body.ad input[type=email], body.ad input[type=date], body.ad input[type=number], body.ad select, body.ad textarea { border: 0; box-shadow: inset 0 0 0 1.5px var(--ad-seg-line); border-radius: 12px; min-height: 44px; }
body.ad input:focus, body.ad select:focus, body.ad textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ad-indigo); }
@media (max-width: 700px) { body.ad .stats { grid-template-columns: 1fr 1fr; gap: 10px; } }
body.ad .stat span { display: block; }
body.ad .stat span::first-letter { text-transform: uppercase; }

/* --- Fixes after the first build (12 Nov) -------------------------------- */
/* 1. One left edge: top bar, tabs and content share the 1280px container. */
.ad-top { padding-inline: max(40px, calc(50% - 600px)); }
.ad-tabs-in { padding-inline: max(26px, calc(50% - 614px)); }
/* 4/5. Cards: one shadow; lift only on hover; zero cards are quiet. */
.ad-kpi { box-shadow: var(--ad-sh); }
.ad-kpi-link:hover { transform: translateY(-2px); }
.ad-kpi.is-zero b { color: #4A4566; }
/* 7. Children toolbar on one row: search, status, branch, course … test switch. */
.ad-toolbar { flex-wrap: wrap; }
.ad-toolbar > .ad-search { margin: 0; flex: 0 1 340px; }
.ad-swap#ad-controls { display: contents; }
.ad-push { margin-left: auto; }
.ad-toolbar .ad-selects { flex-wrap: nowrap; }
#ad-quick { margin: -4px 0 16px; }
.ad-filter-btn { display: none; }
/* 8. Branch / Course: one 44px box, label inside, the select has no box. */
.ad-select { height: 44px; padding: 0 34px 0 14px; position: relative; }
body.ad .ad-select select { box-shadow: none !important; border: 0 !important; background: transparent !important; min-height: 0; height: 42px; padding: 0 0 0 6px; appearance: none; -webkit-appearance: none; border-radius: 0; }
.ad-select::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ad-ink); font-size: 13px; pointer-events: none; }
/* The test switch as a form button. */
.ad-switch-form { margin: 0; display: inline-flex; }
.ad-switch-form .ad-switch { background: none; border: 0; padding: 0; cursor: pointer; margin: 0; }
.ad-switch-form.in-menu { display: flex; padding: 6px 12px; }
.ad-switch-form.in-menu .ad-switch { font-size: 15px; min-height: 36px; width: auto !important; padding: 0 !important; }
.ad-switch-form.ad-center { justify-content: center; margin-top: 10px; }
/* 10/11/12. IEBT numbers. */
.ad-kpi-pct { font-size: 18px; margin-left: 8px; font-weight: 700; }
.ad-cert-line { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.ad-cert-line span { color: var(--ad-muted); font-weight: 700; }
.ad-tbl th.num, .ad-tbl td.num { text-align: right; }
/* 16. Courses: topic tile before the name. */
.ad-tile.xs { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px; }
.ad-course-cell { display: inline-flex; align-items: center; gap: 10px; }
body.ad table.list .c-go { color: var(--ad-muted); width: 24px; text-align: right; }
@media (max-width: 700px) {
  .ad-top { padding-inline: 16px; }
  .ad-tabs-in { padding-inline: 2px; }
  .ad-toolbar > .ad-search { flex: 1 1 100%; }
  .ad-filter-btn { display: inline-flex; }
  .ad-phone-hide { display: none !important; }
  body.ad-filters-open .ad-phone-hide { display: flex !important; }
  body.ad-filters-open .ad-toolbar .ad-selects { flex-direction: column; width: 100%; }
  body.ad-filters-open .ad-toolbar .ad-select { width: 100%; }
  .ad-push { margin-left: 0; }
}
/* Keep the Children toolbar on one row at desktop widths. */
.ad-toolbar { gap: 12px; }
.ad-toolbar > .ad-search { flex: 1 1 220px; max-width: 340px; }
body.ad .ad-select select { max-width: 150px; text-overflow: ellipsis; }
.ad-toolbar .ad-seg a { padding: 0 10px; }
.ad-tab-intro { margin: -6px 0 16px; }
.ad-subtabs .ad-badge { margin-left: 4px; }
/* Legacy red buttons on admin pages: white text on red (the label had gone red-on-red). */
body.ad .btn.danger { color: #fff; border: 0; }
body.ad .btn.danger:hover { background: #A82828; }
body.ad .ad-menu form { margin: 0; }
/* Old-style link buttons on admin pages keep their own text colour (they
   were picking up the admin link colour: blue on indigo). */
body.ad a.btn { color: #fff; text-decoration: none; }
body.ad a.btn.ghost { color: var(--ad-indigo); }
.ad-attn-more { display: block; padding: 14px 20px; border-top: 1px solid var(--ad-line); font-weight: 800; color: var(--ad-link) !important; }
.ad-attn-more:hover { background: var(--ad-hover); text-decoration: none !important; }
/* Assign drawer: only the course list scrolls; dates, summary and footer stay in view. */
.ad-drawer-body.fit { display: flex; flex-direction: column; overflow: hidden; }
.ad-drawer-body.fit > * { flex: 0 0 auto; }
.ad-drawer-body.fit > .ad-picker { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin-bottom: 14px; }
.ad-drawer-body.fit .ad-options { flex: 1 1 auto; min-height: 140px; max-height: 300px; overflow-y: auto; }
.ad-drawer-body.fit .ad-summary { margin-bottom: 0; }
/* Short windows: the course list never shrinks over the dates; the drawer body scrolls instead. */
.ad-drawer-body.fit { overflow-y: auto; }
.ad-drawer-body.fit > .ad-picker { min-height: 232px; }
/* Disabled buttons and labels read as off. */
.ad-btn:disabled { opacity: .45; cursor: not-allowed; }
.ad-label.is-off { opacity: .45; }
/* Focus rings for keyboard users only. */
body.ad :focus:not(:focus-visible) { outline: none; }
dialog.ad-drawer:focus, dialog.ad-confirm:focus { outline: none; }
/* Course detail (round 2) */
.ad-lesson { margin-bottom: 22px; }
.ad-steps .ad-muted-cell { color: var(--ad-muted); font-size: 14px; }
.ad-step-actions { white-space: nowrap; text-align: right; }
.ad-step-actions .ad-btn + .ad-btn { margin-left: 8px; }
.ad-form-card { padding: 20px 22px; max-width: 760px; }
.ad-field { display: block; margin-bottom: 16px; }
.ad-field > span { display: block; font-weight: 800; margin-bottom: 6px; }
.ad-field input { width: 100%; height: 48px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1.5px var(--ad-seg-line); padding: 0 12px; font: 600 15px "Nunito", sans-serif; }
.ad-field small { display: block; color: var(--ad-muted); font-size: 13px; margin-top: 4px; }

/* New batch drawer (round 3): header fixed, body scrolls, footer always in view. */
.ad-drawer-foot.spread { justify-content: space-between; align-items: center; }
.bform .quick { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 8px; }
.bform .quick button { white-space: nowrap; }
.bform .quick button.on { background: #EEEBFB; color: #2E1B8C; box-shadow: inset 0 0 0 1.5px #B9AEEF; }
.bform .quick button:disabled { opacity: .45; cursor: not-allowed; }
.bform-noend { margin: 10px 0 0; font-size: 15px; }
.bform input:disabled { background: #F4F4FA; color: #8C88A3; }
/* Quick filters (round 3): the active chip uses the same tint as the status segment, with ✕ to clear. */
.ad-chip-f.on { background: #EEEBFB; color: #2E1B8C !important; box-shadow: inset 0 0 0 1.5px #B9AEEF; }
.ad-chip-x { font-size: 12px; margin-left: 2px; opacity: .8; }

/* --- Trainer: My children (13 Nov 2026) --------------------------------------- */
.lx-tkids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-top: 24px; align-items: start; }
.lx-tkid { --tt: var(--indigo-tint); --tx: var(--indigo); display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 24px; padding: 18px 20px; box-shadow: var(--sh-card); color: var(--ink); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.lx-tkid:hover { transform: translateY(-2px); }
.lx-tkid-head { display: flex; align-items: center; gap: 12px; }
.lx-tkid-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lx-tkid-name strong { font: 700 18px/1.2 "Poppins", sans-serif; }
.lx-tkid-course { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.lx-tkid-row { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; }
.lx-tkid-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-muted); }
.lx-tkid-foot strong { color: var(--ink); }
.lx-tback { margin: 0 0 12px; }
.lx-tback a { font-weight: 800; color: var(--indigo); text-decoration: none; }
.lx-tkid-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #fff; border-radius: 24px; padding: 20px 24px; box-shadow: var(--sh-card); }
.lx-tkid-hero h1 { margin: 0; font: 700 30px/1.15 "Poppins", sans-serif; }
.lx-av-lg { flex: none; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font: 700 28px "Poppins", sans-serif; color: var(--ink); }
.lx-av-lg.circle { border-radius: 50%; }
.lx-tkid-stats { margin: 0 0 0 auto; display: flex; gap: 22px; }
.lx-tkid-stats div { text-align: center; }
.lx-tkid-stats dt { font-size: 13px; color: var(--ink-muted); font-weight: 700; }
.lx-tkid-stats dd { margin: 2px 0 0; font: 700 20px "Poppins", sans-serif; }
.lx-tcourse { background: #fff; border-radius: 24px; padding: 20px 24px; box-shadow: var(--sh-card); margin-top: 20px; }
.lx-tcourse header { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.lx-tcourse h2 { margin: 0; font: 700 22px "Poppins", sans-serif; }
.lx-tnext { margin: 2px 0 0; font-weight: 800; color: var(--indigo); }
.lx-tprog { list-style: none; margin: 0; padding: 0; }
.lx-tprog > li { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.lx-tprog-head { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; min-height: 36px; }
.lx-tprog-head::-webkit-details-marker { display: none; }
.lx-tchev { flex: none; font-size: 20px; color: var(--ink-muted); transition: transform .15s ease; }
.lx-tprog details[open] .lx-tchev { transform: rotate(90deg); }
.lx-tprog > li.current .lx-tprog-head strong { color: var(--indigo); }
.lx-tprog-head strong { flex: 1; }
.lx-tprog .lx-badge { width: 30px; height: 30px; font-size: 14px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 3px var(--lc, var(--indigo)); }
.lx-tprog > li.done .lx-badge { background: var(--lc, var(--indigo)); color: #fff; }
.lx-tprog ul { list-style: none; margin: 6px 0 6px 40px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lx-tprog ul li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-muted); }
.lx-tprog ul li.done { color: var(--ink); }
.lx-tprog ul li.next { color: var(--indigo); font-weight: 800; }
.lx-tick { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--line-soft); color: transparent; }
.lx-tprog ul li.done .lx-tick { background: var(--green, #2E9E5B); color: #fff; }
.lx-tprog ul li.next .lx-tick { background: var(--indigo-tint); color: var(--indigo); font-size: 9px; }
.lx-qz { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--sun-tint); color: var(--sun-text); font-weight: 800; font-size: 13px; }
.lx-tquiz { list-style: none; margin: 0; padding: 0; }
.lx-tquiz li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.lx-tquiz li > span:first-child { flex: 1; }
.lx-tquiz .lx-qz { margin-left: 0; }
@media (max-width: 700px) {
  .lx-tkid-stats { margin-left: 0; width: 100%; justify-content: space-around; }
  .lx-tprog ul { margin-left: 8px; }
}
