/* v2.css — layout glue for the version 2 mockup. Uses only the site's own colours and components
   (site.css + theme.css); nothing here changes how existing parts look. */

/* the "Start learning" button and the student shell in the header */
.site-nav .v2-start { margin-left: 4px; }
.site-nav .v2-kid { font-weight: 800; }

/* continue banner (Home, signed-in student or saved progress) */
.v2-continue { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; padding: 14px 18px; border-radius: 18px;
  background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.v2-continue[hidden] { display: none; }
.v2-continue b { font: 800 18px var(--head); }
.v2-continue span { opacity: .85; font-weight: 700; flex: 1 1 220px; }

/* home: how it works */
.v2-loop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.v2-loop .goal-tile { align-items: center; text-align: center; }
.v2-loop .goal-tile b { font-size: 34px; }
.v2-loop .goal-tile strong { font: 800 18px var(--head); }
@media (max-width: 760px) { .v2-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* unit page: learning path of lessons */
.v2-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.v2-path a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink);
  border: 2px solid var(--line); transition: transform .15s, border-color .15s; }
.v2-path a:hover { transform: translateX(4px); border-color: var(--tc); }
.v2-path .v2-n { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font: 800 18px var(--head);
  background: color-mix(in srgb, var(--tc) 14%, #fff); color: color-mix(in srgb, var(--tc) 75%, #1d1a3a); }
.v2-path .v2-t { flex: 1; display: flex; flex-direction: column; }
.v2-path .v2-t b { font: 800 18px var(--head); }
.v2-path .v2-t small { color: var(--muted); font-weight: 700; }
.v2-path .v2-s { font-weight: 800; font-size: 14px; color: var(--muted); white-space: nowrap; }
.v2-path li.done .v2-n { background: #e3f8ee; color: #1f9c70; }
.v2-path li.done .v2-s { color: #1f9c70; }
.v2-path li.next a { border-color: var(--tc); box-shadow: 0 8px 20px rgba(27,23,71,.08); }
.v2-path li.next .v2-s { color: var(--tc); }
.v2-objs { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-bottom: 18px; }
.v2-objs ul { margin: 0; padding-left: 20px; font-weight: 700; }
.v2-objs li { margin: 4px 0; }
@media (max-width: 760px) { .v2-objs { grid-template-columns: 1fr; } }
/* the book's sections (Teacher's Resource scheme of work) on each unit page */
.v2-book { margin-bottom: 18px; }
.v2-book-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.v2-book-list li { display: flex; gap: 12px; align-items: flex-start; }
.v2-book-n { flex: none; min-width: 48px; padding: 4px 8px; border-radius: 10px; background: var(--tc, #6c5ce7); color: #fff; font-weight: 800; text-align: center; }
.v2-book-list b { display: block; }
.v2-book-list small { display: block; color: var(--muted, #5b6170); font-size: .95em; }
.v2-link-row { margin-top: 14px; font-weight: 700; }

/* lesson stepper */
.v2-lesson { padding-top: 18px; padding-bottom: 40px; }
.v2-lesson-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.v2-lesson-top .crumbs { margin: 0; flex: 1; }
.v2-exit { font-weight: 800; color: var(--muted); text-decoration: none; }
.v2-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
.v2-steps button { border: 2px solid var(--line); background: #fff; font: 800 14px var(--body); color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.v2-steps button.on { border-color: var(--tc); background: var(--tc); color: #fff; }
.v2-steps button.done { color: #1f9c70; border-color: #bfe9d4; }
.v2-steps button:disabled { opacity: .45; cursor: not-allowed; }
.v2-stage { min-height: 320px; }
.v2-stage h2 { margin: 6px 0 10px; }
.v2-big { font: 800 26px/1.35 var(--head); margin: 8px 0 14px; }
.v2-nextbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.v2-video { width: 100%; max-width: 860px; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; display: block; }
.v2-video-soon { max-width: 860px; aspect-ratio: 16 / 9; border-radius: 18px; display: grid; place-items: center; text-align: center; padding: 20px;
  background: linear-gradient(160deg, var(--space-2), var(--space-3)); color: #fff; }
.v2-video-soon b { font: 800 24px var(--head); display: block; margin-bottom: 6px; }
.v2-example ol { margin: 0; padding-left: 22px; }
.v2-example li { font: 700 19px/1.5 var(--body); margin: 8px 0; }
.v2-hint-btn { border: 0; background: var(--soft); border-radius: 999px; padding: 6px 12px; font: 800 14px var(--body); cursor: pointer; margin-top: 10px; }
.v2-hint { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: #fffaee; color: #6a4a00; font-weight: 700; }
.v2-review-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; text-align: left; }
.v2-review-list li { padding: 10px 14px; border-radius: 14px; background: #fff; border: 2px solid var(--line); }
.v2-review-list li b { display: block; }
.v2-review-list li span { color: var(--muted); font-weight: 700; }
.v2-mastery { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 800; background: #e3f8ee; color: #1f9c70; }
.v2-mastery.no { background: #fffaee; color: #8a6200; }
.v2-say { border: 0; background: var(--soft); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: 18px; vertical-align: middle; }

/* practice hub */
.v2-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
.v2-levels .seg button { white-space: nowrap; }
.v2-filters label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.v2-filters select { font: 700 16px var(--body); padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
@media (max-width: 560px) { .v2-filters { grid-template-columns: 1fr; } .v2-levels .seg { flex-wrap: wrap; } }
.v2-levels .seg { margin: 0; }

/* dashboards */
.v2-bar { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; margin-top: 6px; }
.v2-bar i { display: block; height: 100%; background: var(--tc, var(--violet)); border-radius: 999px; }
.v2-units { display: grid; gap: 12px; }
.v2-unit-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; text-decoration: none; color: var(--ink); }
.v2-unit-row b { font: 800 17px var(--head); }
.v2-unit-row small { color: var(--muted); font-weight: 800; }
.v2-unit-row .v2-bar { grid-column: 1 / -1; }
.v2-topic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.v2-topic-list li { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; padding: 8px 12px; border-radius: 12px; background: var(--soft); }
.v2-demo { font-weight: 700; color: var(--muted); }

/* header v2: Learn mega-menu, quiet account links, search */
.site-nav .v2-quiet { font-size: 14px; opacity: .85; }
.v2-search-btn { border: 0; background: rgba(255,255,255,.08); color: #fff; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 16px; flex: none; }
.v2-search-btn:hover { background: rgba(255,255,255,.18); }
.v2-search-mobile { display: none; }
.v2-mega { width: min(940px, 94vw); left: 0; padding: 18px 20px; grid-template-columns: 1.1fr 1.1fr .9fr; gap: 6px 22px; }
.nav-drop:hover .v2-mega, .nav-drop:focus-within .v2-mega { display: grid; }
.v2-mega-col { display: flex; flex-direction: column; min-width: 0; }
.v2-mega-col a { white-space: normal !important; font-size: 14px !important; padding: 6px 10px !important; }
.v2-mega-top { font: 800 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); padding: 8px 10px 4px; }
.v2-mega-h { display: block; color: #fff; font: 800 14px var(--head); padding: 8px 10px 2px; }
.v2-mega .v2-soon { opacity: .55; }
@media (max-width: 1180px) {
  .v2-search-mobile { display: block; margin-left: auto; }
  .site-header .nav-toggle { margin-left: 8px; }
  .site-nav .v2-search-btn { display: none; }
  .v2-mega { width: auto; padding: 0 0 0 14px; }
  .nav-drop .v2-mega { display: block; }
  .v2-mega .v2-mega-units { display: none; }
}
.v2-search { position: fixed; inset: 0; z-index: 100; background: rgba(14, 11, 51, .55); display: flex; justify-content: center; align-items: flex-start; padding: 80px 16px 16px; }
.v2-search[hidden] { display: none; }
.v2-search-box { position: relative; width: min(640px, 100%); background: var(--card, #fff); border-radius: 22px; padding: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.v2-search-box input { width: 100%; font: 700 19px var(--body); padding: 12px 48px 12px 16px; border-radius: 14px; border: 2px solid var(--line); color: var(--ink); background: #fff; }
.v2-search-box input::-webkit-search-cancel-button { display: none; }
.v2-search-close { position: absolute; top: 24px; right: 26px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.v2-search-results { list-style: none; margin: 10px 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.v2-search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.v2-search-results a:hover, .v2-search-results li:first-child a { background: var(--soft); }
.v2-search-results small { color: var(--muted); font-weight: 800; white-space: nowrap; }
.v2-search-none { padding: 12px; color: var(--muted); font-weight: 700; }

/* unit page v2: units sidebar · path · practise more */
.v2-unit { display: grid; grid-template-columns: 250px minmax(0, 1fr) 230px; gap: 22px; align-items: start; padding-top: 26px; padding-bottom: 48px; }
.wrap.v2-unit { max-width: 1400px; }
.v2-side, .v2-right { position: sticky; top: 80px; }
.v2-side details { background: var(--card, #fff); border-radius: 20px; padding: 12px 10px; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(27,23,71,.06); max-height: calc(100vh - 100px); overflow: auto; }
.v2-side summary { font: 800 16px var(--head); padding: 4px 8px 8px; cursor: pointer; }
.v2-side-h { display: block; font: 800 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 8px 4px; }
.v2-side a { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; }
.v2-side a:hover { background: var(--soft); }
.v2-side a.on { background: color-mix(in srgb, var(--tc) 14%, #fff); box-shadow: inset 3px 0 0 var(--tc); }
.v2-side a.soon { opacity: .5; }
.v2-side-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 800; font-size: 13px; background: color-mix(in srgb, var(--tc) 18%, #fff); color: color-mix(in srgb, var(--tc) 75%, #1d1a3a); }
.v2-side-t { line-height: 1.25; }
.v2-side-p { font-size: 12px; font-weight: 800; color: var(--muted); }
.v2-main > * + * { margin-top: 18px; }
.v2-main .v2-objs { margin-bottom: 0; }
.v2-path-h { margin: 26px 0 10px; scroll-margin-top: 90px; }
.v2-right .my-card h3 { margin: 0 0 8px; }
.v2-right-link { display: flex; flex-direction: column; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 800; }
.v2-right-link small { color: var(--muted); font-weight: 700; }
.v2-right-link:hover { background: var(--soft); }
.v2-right-guide { margin-top: 18px; display: flex; flex-direction: column; align-items: center; }
.v2-right-guide img { width: 120px; }
.v2-mastery-card .v2-big { margin: 0; color: var(--tc); }
.v2-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.v2-lvl { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 800 12px var(--body); background: #f1f1f5; color: var(--muted); white-space: nowrap; }
.v2-lvl:empty { display: none; }
.v2-lvl.l1 { background: #fff1ec; color: #c2410c; }
.v2-lvl.l2 { background: #fffaee; color: #8a6200; }
.v2-lvl.l3 { background: #e8f1ff; color: #2563c4; }
.v2-lvl.l4 { background: #e3f8ee; color: #1f9c70; }
.v2-path .v2-s { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.v2-check { scroll-margin-top: 90px; }
.v2-check-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px 6px; }
.v2-check { border-radius: 18px; background: color-mix(in srgb, var(--tc) 6%, #fff); border: 2px dashed color-mix(in srgb, var(--tc) 35%, #fff); }
.v2-check .v2-n { background: #fff; }
.v2-check-body { padding: 0 16px 14px; }
.v2-check-body .pr-done { padding: 10px 0 0; background: none; text-align: left; }
.v2-check-body .pr-done .btn-row { justify-content: flex-start; }
.v2-main .unit-sec { scroll-margin-top: 90px; }
@media (max-width: 1180px) {
  .v2-unit { grid-template-columns: 220px minmax(0, 1fr); }
  .v2-right { position: static; grid-column: 2; }
  .v2-right-guide { display: none; }
}
@media (max-width: 860px) {
  .v2-unit { grid-template-columns: minmax(0, 1fr); }
  .v2-side, .v2-right { position: static; grid-column: auto; }
  .v2-side details:not([open]) { padding-bottom: 6px; }
}

/* ============ KID-FIRST version (Grade 3 · Stage 4) ============ */
/* menu: 4 big picture tabs + a small "Grown-ups" link; on phones the tabs become a bottom bar like an app */
.site-nav.v2-kidnav { gap: 6px; }
.v2-kidnav .v2-tab { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 4px 16px !important; border-radius: 16px; font: 800 14px var(--body) !important; color: #dcd6ff; }
.v2-kidnav .v2-tab span { font-size: 24px; line-height: 1.1; }
.v2-kidnav .v2-tab.on { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.v2-grownups { margin-left: 14px; color: #cfc8f5; font-weight: 700; font-size: 13.5px; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); white-space: nowrap; }
.v2-grownups:hover { color: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 1180px) {
  .site-nav.v2-kidnav { display: flex; position: static; flex-direction: row; padding: 0; background: none; border: 0; margin-left: auto; gap: 2px; }
  .v2-kidnav .v2-tab { padding: 4px 9px !important; font-size: 13px !important; }
  .logo small { display: none; }
}
@media (max-width: 760px) {
  .site-header { backdrop-filter: none; background: var(--space-1); }   /* a blur would trap the fixed bottom bar inside the header */
  .site-nav.v2-kidnav { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: var(--space-1); border-top: 1px solid rgba(255,255,255,.12); margin: 0; }
  .v2-kidnav .v2-tab { flex: 1; min-width: 0; padding: 4px 0 !important; font-size: 10px !important; letter-spacing: -.2px; line-height: 1.1; text-align: center; white-space: normal; }
  .v2-kidnav .v2-tab span { font-size: 22px; }
  .v2-grownups { margin-left: auto; }
  body { padding-bottom: 72px; }
  .logo small { display: none; }
}

/* home */
.btn.v2-giant { font-size: 22px; padding: 18px 34px; border-radius: 22px; margin-top: 10px; }
.v2-next-line { margin: 12px 0 0; font-weight: 800; opacity: .85; }
.v2-next-line:empty { display: none; }
.v2-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.v2-doors .hub-card { min-height: 190px; }
.v2-doors .hub-card .hc-icon { font-size: 44px; }
.v2-doors .hub-card b { font-size: 30px; }
@media (max-width: 760px) { .v2-doors { grid-template-columns: 1fr; } .v2-doors .hub-card { min-height: 130px; } }
.v2-grownup-strip { padding: 18px 0; }
.v2-grownup-strip .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14.5px; color: var(--muted); }
.v2-grownup-strip a { color: var(--muted); font-weight: 700; }
/* home layout trials (mockup only): switcher, A+C buddy + mission, B+D galaxy + 5 doors */
.v2-homeswitch { background: #fff7dc; border-bottom: 1px solid #f1dfa6; font-size: 13.5px; }
.v2-homeswitch .wrap { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.v2-homeswitch a { padding: 4px 12px; border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none; border: 1.5px solid #ecd58f; }
.v2-homeswitch a.on { background: var(--gold); border-color: var(--gold); }
.v2-buddy-hero .wrap.v2-buddy { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: center; }
.v2-buddy-pal { position: relative; text-align: center; }
.v2-buddy-pal img { width: 210px; max-width: 100%; animation: v2-bob 3s ease-in-out infinite; }
.v2-buddy-pal .tc-name { position: relative; display: inline-block; margin-top: 6px; }
@keyframes v2-bob { 50% { transform: translateY(-10px); } }
.v2-bubble { position: relative; background: #fff; color: var(--ink); border-radius: 28px; padding: 26px 30px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.v2-bubble::before { content: ""; position: absolute; left: -16px; top: 50%; margin-top: -16px; border: 16px solid transparent; border-left: 0; border-right-color: #fff; }
.v2-bubble p { font-size: 24px; line-height: 1.35; margin: 0 0 6px; font-weight: 700; color: var(--ink) !important; }
.v2-bubble b { color: #7b3fd1; }
.v2-buddy-alt { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.v2-buddy-alt a { font-weight: 800; color: var(--ink); }
.v2-mix-hero .v2-bubble-right { margin: 14px 0 6px; padding: 16px 22px; max-width: 560px; }
.v2-mix-hero .v2-bubble-right p { font-size: 20px; margin: 0; }
.v2-bubble-right::before { left: auto; right: -16px; border: 16px solid transparent; border-right: 0; border-left-color: #fff; }
.v2-buddy-alt-dark a { color: #fff; }
.v2-bubble-face { display: none; }
.v2-bubble-tag { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .3px; color: #7b3fd1; background: #f1e8ff; padding: 3px 10px; border-radius: 999px; margin-bottom: 6px; }
.v2-bubble-prog { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.v2-bubble-prog[hidden] { display: none; }
.v2-bubble-prog .v2-bar { display: block; height: 10px; }
.v2-bubble-prog small { color: var(--muted); font-weight: 800; font-size: 13.5px; }
.v2-mix-hero h1 { margin-bottom: 4px; }
.v2-mix-hero .v2-giant { margin-top: 8px; }
.v2-mission-sec { padding-bottom: 10px; }
.v2-mission-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; max-width: 900px; }
.v2-mission-sec { padding-bottom: 40px; }
.v2-mission-head h2 { margin: 0; }
.v2-mission-head .v2-mission-stats { margin: 0; font-size: 15px; }
.v2-mission-head .v2-mission-stats a { background: #fff4d6; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.v2-doors-sec { padding-top: 10px; }
.v2-doors-compact { gap: 14px; }
.v2-doors-compact .hub-card { min-height: 0; padding-top: 18px; padding-bottom: 18px; }
.v2-doors-compact .hub-card .hc-icon { font-size: 32px; }
.v2-doors-compact .hub-card b { font-size: 22px; }
.v2-mix-hero .v2-buddy-pal { display: flex; flex-direction: column; align-items: center; }
.v2-mix-hero .v2-buddy-pal img { width: 250px; }
.v2-mix-hero .v2-buddy-pal .tc-name { position: static; transform: none; margin-top: 4px; }
/* Today's mission = ONE checklist panel: progress on top, then 3 rows (number · icon · task · Go) */
.v2-mission { background: #fff; border: 2.5px solid var(--line); border-radius: 26px; padding: 8px 22px 10px; max-width: 900px; }
.v2-mission-bar { display: flex; align-items: center; gap: 14px; padding: 14px 0 12px; font-weight: 800; border-bottom: 2px dashed var(--line); }
.v2-mission-bar > span:first-child { white-space: nowrap; }
.v2-mission-bar .v2-bar { flex: 1; }
.v2-mtask { display: grid; grid-template-columns: 40px 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; color: var(--ink); text-decoration: none; }
.v2-mtask + .v2-mtask { border-top: 1.5px solid var(--line); }
.v2-mtask b { display: block; font-size: 20px; }
.v2-mtask small { display: block; color: var(--muted); font-size: 14.5px; }
.v2-mtask-ic { font-size: 38px; line-height: 1; text-align: center; }
.v2-mtask-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: #fff; border: 2.5px solid var(--line); color: var(--muted); }
.v2-mtask-go { font-weight: 900; padding: 9px 18px; border-radius: 999px; background: var(--gold); color: var(--ink); white-space: nowrap; transition: transform .15s; }
.v2-mtask:hover .v2-mtask-go { transform: translateX(3px); }
.v2-mtask.done .v2-mtask-n { background: #39b66a; border-color: #39b66a; color: #fff; }
.v2-mtask.done b { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.v2-mtask.done .v2-mtask-go { background: #e3f6ea; color: #23864a; }
.v2-mission-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 18px; font-weight: 800; font-size: 17px; }
.v2-mission-stats span { background: #fff4d6; padding: 8px 14px; border-radius: 999px; }
.v2-galaxy-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 26px; }
.v2-galaxy-top h1 { margin: 0; }
.v2-galaxy-top .v2-giant { margin-top: 0; }
.v2-galaxy { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 14px; padding: 10px 0 30px; }
.v2-planet { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; color: #fff; text-decoration: none; transform: translateY(var(--dy, 0)); }
.v2-planet-ball { position: relative; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 60%), var(--tc); display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(255,255,255,.14); transition: transform .15s; }
.v2-planet:hover .v2-planet-ball { transform: scale(1.07); }
.v2-planet-ball img { width: 60px; }
.v2-planet b { font-size: 15px; margin-top: 6px; }
.v2-planet small { font-size: 12px; opacity: .85; line-height: 1.2; }
.v2-planet-tag { font-size: 12.5px; font-weight: 800; margin-top: 3px; background: rgba(255,255,255,.14); padding: 2px 9px; border-radius: 999px; }
.v2-planet.locked { opacity: .5; }
.v2-planet.locked .v2-planet-ball { filter: grayscale(.7); }
.v2-planet.here .v2-planet-ball { box-shadow: 0 0 0 5px var(--gold), 0 0 26px var(--gold); }
.v2-rocket { position: absolute; top: -26px; right: -14px; font-size: 34px; animation: v2-bob 1.6s ease-in-out infinite; }
.v2-galaxy-go { text-align: center; }
.v2-galaxy-go .v2-next-line { margin-top: 6px; }
.v2-doors-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.v2-doors-5 .hub-card b { font-size: 22px; }
@media (max-width: 1000px) { .v2-galaxy { grid-template-columns: repeat(3, minmax(0, 1fr)); } .v2-doors-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .v2-buddy-hero .wrap.v2-buddy { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .v2-buddy-pal img { width: 130px; }
  .v2-bubble { padding: 20px; }
  .v2-bubble::before { left: 50%; top: -16px; margin: 0 0 0 -16px; border: 16px solid transparent; border-top: 0; border-bottom-color: #fff; }
  .v2-bubble p { font-size: 19px; }
  .v2-buddy-alt { justify-content: center; }
  .v2-mission { padding: 4px 14px 6px; border-radius: 20px; }
  .v2-mtask { grid-template-columns: 32px 36px minmax(0, 1fr) auto; gap: 10px; }
  .v2-mtask-n { width: 30px; height: 30px; }
  .v2-mtask-ic { font-size: 30px; }
  .v2-mtask b { font-size: 17px; }
  .v2-mtask small { font-size: 13px; }
  .v2-mtask-go { padding: 7px 12px; font-size: 14px; }
  /* phones: the big buddy would fall below the buttons, so a small face sits inside the bubble instead */
  .v2-bubble-right::before { display: none; }
  .v2-mix-hero .v2-buddy-pal { display: none; }
  .v2-mix-hero .v2-bubble-right { display: flex; align-items: center; gap: 12px; text-align: left; }
  .v2-bubble-face { display: block; width: 58px; flex: none; align-self: flex-start; }
  .v2-bubble-in { min-width: 0; flex: 1; }
  .v2-mix-hero .v2-giant { display: block; text-align: center; }
  .v2-doors-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .v2-doors-compact .hub-card { padding: 12px 6px; text-align: center; }
  .v2-doors-compact .hub-card b { font-size: 15px; }
  .v2-doors-compact .hub-card > span:not(.hc-icon), .v2-doors-compact .hc-pal { display: none; }
  .v2-mix-hero .v2-bubble-right p { font-size: 17px; }
  .v2-mtask { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
  .v2-mtask small { flex-basis: 100%; padding-left: 52px; margin-top: -6px; }
  .v2-galaxy { gap: 30px 8px; }
  .v2-planet-ball { width: 74px; height: 74px; } .v2-planet-ball img { width: 56px; }
  .v2-doors-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-homeswitch b { flex-basis: 100%; }
}
/* Times tables icon (× and ÷ in one tile), sized like the emoji around it */
.v2-muldiv { width: 1em; height: 1em; vertical-align: -0.14em; display: inline-block; }
.v2-kidnav .v2-tab span .v2-muldiv { width: 24px; height: 24px; vertical-align: middle; }
/* Tests page: the chosen unit's test runs here */
.v2-test-run { max-width: 860px; margin: 0 auto; }
[data-test-pick][hidden], .v2-test-run[hidden] { display: none !important; }
/* online worksheet: Question type + Level pickers replace the one mixed list */
.v2-ws-pickers { display: inline-flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.v2-ws-pickers label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; }
.v2-ws-pickers select { font: 700 15px var(--body); padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); max-width: 280px; }
.us-tools .us-pick[hidden] { display: none !important; }
/* unit worksheets page: question-type filter over the worksheet cards */
.v2-ws-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; padding: 12px 14px; background: #fff; border: 2px solid var(--line); border-radius: 18px; }
.v2-ws-filter b { margin-right: 4px; }
.v2-ws-filter button { font: 800 14px var(--body); padding: 7px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.v2-ws-filter button.on { background: var(--tc, var(--gold)); border-color: var(--tc, var(--gold)); color: #fff; }
.v2-ws-unit .mw-card[hidden], .v2-ws-unit .mw-grid[hidden], .v2-ws-unit .mw-sub[hidden] { display: none !important; }
.v2-test-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.v2-test-tile { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 2.5px solid var(--line); border-left: 8px solid var(--tc); border-radius: 18px; color: var(--ink); text-decoration: none; transition: transform .15s; }
.v2-test-tile:hover { transform: translateY(-2px); }
.v2-test-tile img { width: 52px; }
.v2-tt-t small { display: block; font-weight: 900; font-size: 12.5px; color: var(--tc); letter-spacing: .4px; text-transform: uppercase; }
.v2-tt-t b { display: block; font-size: 16.5px; line-height: 1.25; }
.v2-test-stars { display: block; font-size: 13px; margin-top: 2px; }
.v2-test-stars:empty { display: none; }
.v2-tt-go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); font-weight: 900; }
.v2-test-soon { margin: 18px 0 0; color: var(--muted); font-weight: 700; }
@media (max-width: 900px) { .v2-test-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .v2-test-tiles { grid-template-columns: 1fr; } }
.v2-test-pick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-weight: 800; color: #fff; }
.v2-test-pick select { font: 800 16px var(--body); padding: 10px 14px; border-radius: 14px; border: 0; background: #fff; color: var(--ink); max-width: 100%; }
.v2-back.v2-back-dark { display: inline-block; margin-bottom: 12px; font-weight: 800; color: var(--ink) !important; opacity: 1; }
.v2-test-card { padding: 22px; border-top: 6px solid var(--tc, var(--gold)); }
.v2-test-stars i { opacity: .35; font-style: normal; }
.v2-kid-h { margin: 8px 0 14px; }
.v2-kid-h + .unit-grid + .v2-kid-h { margin-top: 34px; }

/* unit page: the trail */
.v2-back { display: inline-block; margin-bottom: 10px; color: #dcd6ff; font-weight: 800; text-decoration: none; }
.v2-kidunit { max-width: 820px; padding-top: 28px; padding-bottom: 48px; }
.v2-trail { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.v2-trail::before { content: ""; position: absolute; left: 39px; top: 30px; bottom: 30px; border-left: 4px dotted color-mix(in srgb, var(--tc) 40%, #fff); }
.v2-stop > a, .v2-stop-btn { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 18px 12px 12px; border-radius: 24px;
  background: #fff; border: 3px solid var(--line); text-decoration: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: transform .15s; }
.v2-stop > a:hover, .v2-stop-btn:hover { transform: scale(1.015); }
.v2-stop-dot { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font: 800 24px var(--head);
  background: color-mix(in srgb, var(--tc) 16%, #fff); color: color-mix(in srgb, var(--tc) 75%, #1d1a3a); }
.v2-stop-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.v2-stop-t b { font: 800 20px/1.25 var(--head); }
.v2-stop-go { font: 800 16px var(--head); color: var(--tc); white-space: nowrap; }
.v2-stop.done .v2-stop-dot { background: #e3f8ee; color: #1f9c70; }
.v2-stop.done .v2-stop-go { color: var(--muted); }
.v2-stop.next > a, .v2-stop.next > .v2-stop-btn { border-color: var(--tc); box-shadow: 0 10px 24px rgba(27,23,71,.12); }
.v2-stop.next .v2-stop-dot { background: var(--tc); color: #fff; }
.v2-stop-quiz .v2-stop-dot, .v2-stop-test .v2-stop-dot { background: #fff4d6; }
.v2-stop-body { margin: 8px 0 0 30px; }
.v2-stop-body .pr-done { text-align: left; }
.v2-stars { font-size: 18px; letter-spacing: 2px; }
.v2-stars i { font-style: normal; color: #c9c4dd; }
.v2-stars-big { font-size: 34px; margin: 6px 0; }
.v2-more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.v2-soon-box { display: flex; gap: 20px; align-items: center; padding: 22px; border-radius: 24px; background: var(--card, #fff); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(27,23,71,.06); }
.v2-soon-box h2 { margin: 0 0 6px; }
@media (max-width: 560px) { .v2-soon-box { flex-direction: column; text-align: center; } }
.v2-grownups-box { margin-top: 34px; border-radius: 20px; background: var(--soft); padding: 4px 18px; }
.v2-grownups-box > summary { cursor: pointer; font-weight: 800; color: var(--muted); padding: 12px 0; }
.v2-grownups-box[open] { padding-bottom: 18px; }
.v2-grownups-in > * + * { margin-top: 16px; }

/* practice for kids */
.v2-kid-practice { display: grid; gap: 16px; }
.v2-kid-step { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font: 800 20px var(--head); }
.v2-kid-step > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 18px; }
.v2-kid-step select { font: 700 18px var(--body); padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); max-width: 100%; }
.v2-kid-step .seg button { font-size: 16px; padding: 10px 14px; }
.v2-topic-pick summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.v2-topic-pick select { margin-top: 8px; font: 700 16px var(--body); padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); }

.btn[hidden] { display: none !important; }   /* the site's .btn display would otherwise beat the hidden attribute */

/* worked example */
.v2-worked { border-style: dashed; }
.v2-ex-steps { margin: 6px 0 0; padding-left: 26px; }
.v2-ex-steps li { font: 700 19px/1.5 var(--body); margin: 8px 0; animation: v2-pop .3s ease; }
.v2-ex-steps li.v2-ex-answer { list-style: none; margin-left: -26px; padding: 10px 14px; border-radius: 14px; background: #e9f9f1; color: #157a56; font-weight: 800; }
.btn.v2-try { animation: v2-pop .4s ease; }
/* the number line next to the steps */
.v2-worked-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: center; }
@media (max-width: 860px) { .v2-worked-grid { grid-template-columns: 1fr; } .v2-nl-box { order: -1; } }
.v2-nl-box { background: #fff; border-radius: 18px; border: 2px solid var(--line); padding: 6px; }
.v2-nl { width: 100%; height: auto; display: block; }
.v2-nl .nl-line { stroke: #2b2457; stroke-width: 3; stroke-linecap: round; }
.v2-nl .nl-tick { stroke: #2b2457; stroke-width: 3; }
.v2-nl .nl-tick.hi { stroke: #1f9c70; stroke-width: 4; }
.v2-nl .nl-lab { font: 800 20px var(--head); fill: #2b2457; text-anchor: middle; }
.v2-nl .nl-lab.hi { fill: #1f9c70; }
.v2-nl .nl-lab.ask { fill: #e0573a; font-size: 26px; }
.v2-nl .nl-bar { stroke: #2b2457; stroke-width: 2; }
.v2-nl .nl-bar.hi { stroke: #1f9c70; }
.v2-nl .nl-jump { fill: none; stroke: var(--tc, #7b61ff); stroke-width: 3.5; stroke-linecap: round; }
.v2-nl .nl-n { font: 800 15px var(--body); fill: var(--tc, #7b61ff); text-anchor: middle; }
.v2-nl .nl-start { fill: #fff; stroke: #2b2457; stroke-width: 3; }
.v2-nl .nl-hi { fill: #1f9c70; stroke: #fff; stroke-width: 3; }
.v2-nl .nl-ask { font: 800 30px var(--head); fill: #e0573a; text-anchor: middle; }
.v2-nl .nl-jump.nl-new { stroke-dasharray: 400; stroke-dashoffset: 400; animation: nl-draw .5s ease forwards; }
.v2-nl .nl-n.nl-new { opacity: 0; animation: nl-fade .3s ease forwards; }
@keyframes nl-draw { to { stroke-dashoffset: 0; } }
@keyframes nl-fade { to { opacity: 1; } }
/* a picture next to every question */
.v2-qgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.v2-qpic { align-self: start; }
@media (max-width: 860px) { .v2-qgrid { grid-template-columns: 1fr; } .v2-qpic { order: -1; } }

/* pictures in the lessons' worked examples */
.v2-pic { animation: v2-grow .3s ease; }   /* size only: a picture must never stay invisible if animations are paused */
@keyframes v2-grow { from { transform: scale(.97); } to { transform: none; } }
.v2-pic .pic-t { font: 800 18px var(--head); fill: #2b2457; text-anchor: middle; }
.v2-pic .pic-t.big { font-size: 24px; }
.v2-pic .pic-t.small { font-size: 15px; }
.v2-pic .pic-t.hi { fill: #1f9c70; }
.v2-pic .pic-t.white { fill: #fff; }
.v2-pic .pic-f { font: 800 24px var(--head); fill: var(--tc, #7b61ff); text-anchor: middle; }
.v2-pic .pic-f.big { font-size: 34px; }
.v2-pic .pic-bar { stroke: var(--tc, #7b61ff); stroke-width: 3; }
.v2-pic .pic-part { fill: #fff; stroke: #2b2457; stroke-width: 2.5; }
.v2-pic .pic-part.on { fill: color-mix(in srgb, var(--tc, #7b61ff) 55%, #fff); }
.v2-pic .pic-part.gold { fill: #ffd166; }
.v2-pic .pic-dash { stroke: #e0573a; stroke-width: 3; stroke-dasharray: 7 6; }
.v2-pic .pic-brace { fill: none; stroke: #2b2457; stroke-width: 2.5; }
.v2-pic .pic-clock { fill: #fff; stroke: #2b2457; stroke-width: 5; }
.v2-pic .pic-hand { stroke: #2b2457; stroke-linecap: round; }
.v2-pic .pic-hand.hour { stroke-width: 8; } .v2-pic .pic-hand.min { stroke-width: 5; }
.v2-pic .pic-hand.hi { stroke: #e0573a; }
.v2-pic .pic-dot { fill: #2b2457; }
.v2-pic .pic-screen { fill: #1d1a3a; }
.v2-pic .pic-digital { font: 800 30px ui-monospace, Consolas, monospace; fill: #7cf3c0; text-anchor: middle; }
.v2-pic .pic-card { fill: #fff; stroke: var(--line, #ddd); stroke-width: 3; }
.v2-pic .pic-card.hi { fill: #e9f9f1; stroke: #1f9c70; }
.v2-pic .pic-dot2 { fill: #c9c4dd; }
.v2-pic .pic-dot2.on { fill: var(--tc, #7b61ff); }
.v2-pic .pic-cell { fill: #fff; stroke: #2b2457; stroke-width: 2; }
.v2-pic .pic-cell.head { fill: #f1eefe; }
.v2-pic .pic-cell.on { fill: #e9f9f1; }
.v2-pic .pic-num { fill: #fff; stroke: #c9c4dd; stroke-width: 2.5; }
.v2-pic .pic-num.on { fill: #1f9c70; stroke: #1f9c70; }
.v2-pic .pic-group { fill: none; stroke: #c9c4dd; stroke-width: 2.5; stroke-dasharray: 6 5; }
.v2-pic .pic-group.on { stroke: var(--tc, #7b61ff); stroke-dasharray: none; fill: color-mix(in srgb, var(--tc, #7b61ff) 8%, #fff); }
@media (prefers-reduced-motion: reduce) { .v2-pic { animation: none; } .v2-nl .nl-new { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; } }
@keyframes v2-pop { from { transform: scale(.96); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .v2-ex-steps li, .btn.v2-try { animation: none; } }

/* log in tabs */
.v2-tabs { display: flex; justify-content: center; margin-bottom: 16px; }
.v2-pane[hidden] { display: none; }

/* ================= sitemap version (teacher's sheet, 2026-11-15) ================= */
.v2s-hero h1 { font-size: clamp(28px, 4vw, 44px); }
.v2s-intro { max-width: 900px; } .v2s-intro p { font-size: 18px; line-height: 1.6; }
.v2s-journey { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; counter-reset: j; }
.v2s-journey li { position: relative; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 4px 14px rgba(27,23,71,.08); display: flex; flex-direction: column; gap: 4px; }
.v2s-journey li span { font-size: 30px; } .v2s-journey li b { font: 800 18px var(--head); letter-spacing: .04em; color: var(--ink); } .v2s-journey li small { color: var(--muted); }
.v2s-journey li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 40%; font-weight: 800; color: var(--muted); }
.v2s-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }
.v2s-mission { margin-top: 18px; font-size: 18px; font-weight: 600; text-align: center; color: var(--ink); }
.v2s-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.v2s-stage { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(27,23,71,.08); text-decoration: none; color: var(--ink); }
.v2s-stage b { font: 800 22px var(--head); } .v2s-stage small { color: var(--muted); }
.v2s-stage.on { box-shadow: 0 0 0 3px var(--gold, #ffc83d), 0 6px 18px rgba(27,23,71,.12); }
.v2s-stage.soon { opacity: .6; }
.v2s-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: #eee9fb; color: #5b4b8a; }
.v2s-tag.on { background: #dff7e7; color: #17733a; }
.v2s-h3 { margin: 22px 0 10px; }
.v2s-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.v2s-feat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: #fff; border-left: 6px solid var(--tc); text-decoration: none; color: var(--ink); box-shadow: 0 3px 10px rgba(27,23,71,.07); }
.v2s-feat small { color: var(--tc); font-weight: 700; } .v2s-feat span { color: var(--muted); font-size: 14px; }
.v2s-vids { display: flex; flex-wrap: wrap; gap: 10px; }
.v2s-vid { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #1b1747; color: #fff; text-decoration: none; }
.v2s-vid span { width: 28px; height: 28px; border-radius: 50%; background: #e8475b; display: grid; place-items: center; font-size: 12px; }
.v2s-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.v2s-why > div { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 3px 10px rgba(27,23,71,.07); display: flex; flex-direction: column; gap: 6px; }
.v2s-why span { color: var(--muted); }
.v2s-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.v2s-overview .v2s-journey { grid-template-columns: 1fr 1fr; } .v2s-overview .v2s-journey li::after { display: none; }
.v2s-pbar { display: inline-block; vertical-align: middle; width: 180px; height: 10px; border-radius: 99px; background: #e9e4f7; overflow: hidden; margin-left: 8px; }
.v2s-pbar i { display: block; height: 100%; background: var(--gold, #ffc83d); }
.v2s-unit-sec { margin: 26px 0; }
.v2s-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.v2s-path-h { margin: 26px 0 8px; }
.v2s-includes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.v2s-wide { grid-column: 1 / -1; }
.v2s-hop { position: relative; list-style: none; padding: 0 0 0 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.v2s-hop > li { display: flex; gap: 10px; background: color-mix(in srgb, var(--tc) 8%, #fff); border-radius: 16px; padding: 12px; }
.v2s-hop > li ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.v2s-hop-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--tc); color: #fff; display: grid; place-items: center; font-weight: 800; }
.v2s-hop-alien { position: absolute; right: 6px; top: -56px; width: 58px; animation: v2s-hop 2.4s ease-in-out infinite; }
@keyframes v2s-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .v2s-hop-alien { animation: none; } }
.v2s-vocab { width: 100%; border-collapse: collapse; } .v2s-vocab th, .v2s-vocab td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.v2s-vocab th { white-space: nowrap; color: var(--ink); }
.v2s-assess { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.v2s-as { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: #fff; text-decoration: none; color: var(--ink); box-shadow: 0 3px 12px rgba(27,23,71,.08); }
.v2s-as small { color: var(--muted); } .v2s-as.test { background: #1b1747; color: #fff; } .v2s-as.test small { color: #cfc8f0; }
.v2s-dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.v2s-dl > div { background: #f4f0ff; border-radius: 12px; padding: 6px 12px; } .v2s-dl dt { font-size: 12px; color: var(--muted); } .v2s-dl dd { margin: 0; font-weight: 700; }
.v2s-explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.v2s-explain > h3 { grid-column: auto; }
.v2s-xp { font: 800 22px var(--head); color: #8a5a00; }
.v2s-back60 { background: #fff4d6; border-radius: 12px; padding: 8px 12px; }
.v2s-prac-by { display: grid; gap: 12px; }
.chip.soon { opacity: .55; } .chip.on { background: var(--gold, #ffc83d); }

/* number lines like the teacher's picture: dotted red hops with arrow heads, red/blue numbers, arrows at the ends, an alien hopping (2026-11-15) */
.v2-nl .nl-jump { stroke: #e0473a; stroke-width: 3; stroke-dasharray: 1 7; stroke-linecap: round; }
.v2-nl .nl-jump.nl-new { stroke-dasharray: 1 7; stroke-dashoffset: 0; animation: nl-fade .5s ease both; }
.v2-nl .nl-head { fill: #e0473a; }
.v2-nl .nl-head.nl-new, .v2-nl .nl-n.nl-new { animation: nl-fade .5s ease both; }
@keyframes nl-fade { from { opacity: 0; } to { opacity: 1; } }
.v2-nl .nl-n { fill: #e0473a; }
.v2-nl .nl-arrow { fill: #2b2457; }
.v2-nl .nl-lab.c0 { fill: #e0473a; } .v2-nl .nl-lab.c1 { fill: #3d5bd9; }
.v2-nl .nl-lab.hi { fill: #1f9c70; } .v2-nl .nl-lab.ask { fill: #e0573a; }
.v2-nl .nl-alien { animation: nl-bounce 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes nl-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px) scale(1.05, .95); } }
@media (prefers-reduced-motion: reduce) { .v2-nl .nl-alien, .v2-nl .nl-new { animation: none; } }
/* steps written as "Step 1:", "Step 2:" … (user) */
.v2-ex-steps, .v2-example ol { list-style: none; padding-left: 0; }
.v2-ex-steps li.v2-ex-answer { margin-left: 0; }
.v2s-stepn { color: var(--tc, #7b61ff); margin-right: 4px; white-space: nowrap; }
.v2-ex-answer .v2s-stepn { color: #157a56; }

/* Chilli challenge choice in the lesson's Practice step (user) */
.v2s-chilli { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 10px 0 6px; }
.v2s-chilli-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 18px; border-radius: 18px; border: 3px solid transparent; background: #fff4f0; cursor: pointer; font: inherit; color: var(--ink); box-shadow: 0 3px 10px rgba(27,23,71,.08); transition: transform .15s; }
.v2s-chilli-btn:hover { transform: translateY(-3px); border-color: #ff8a65; }
.v2s-chilli-btn span { font-size: 26px; } .v2s-chilli-btn b { font: 800 20px var(--head); } .v2s-chilli-btn small { color: var(--muted); } .v2s-chilli-btn em { font-style: normal; font-weight: 700; color: #17733a; }
.v2s-chilli-btn.lv-Spicy { background: #ffece4; } .v2s-chilli-btn.lv-Hot { background: #ffe0d6; }

/* the learning journey as an arrow flow with aliens and pictures (user, 2026-11-15) */
.v2s-flow { list-style: none; padding: 0; margin: 16px 0; display: flex; align-items: stretch; gap: 6px; }
.v2s-fl { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: #fff; border-radius: 20px; padding: 14px 12px 16px; border-top: 6px solid var(--c); box-shadow: 0 4px 14px rgba(27,23,71,.08); }
.v2s-fl-art { position: relative; width: 100%; max-width: 150px; aspect-ratio: 120 / 84; margin-bottom: 8px; }
.v2s-fl-art svg { width: 100%; height: 100%; }
.v2s-fl-art img { position: absolute; right: -18px; bottom: -14px; width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(27,23,71,.25)); animation: v2s-fl-bob 2.6s ease-in-out infinite; }
.v2s-fl:nth-child(3) .v2s-fl-art img { animation-delay: .4s; } .v2s-fl:nth-child(5) .v2s-fl-art img { animation-delay: .8s; } .v2s-fl:nth-child(7) .v2s-fl-art img { animation-delay: 1.2s; }
@keyframes v2s-fl-bob { 50% { transform: translateY(-7px) rotate(-5deg); } }
.v2s-fl-n { width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; display: grid; place-items: center; }
.v2s-fl b { font: 800 18px var(--head); letter-spacing: .05em; color: var(--c); }
.v2s-fl small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.v2s-arr { flex: none; align-self: center; width: 34px; }
.v2s-arr svg { width: 34px; height: 26px; fill: #c7bfe6; }
@media (max-width: 760px) {
  .v2s-flow { flex-direction: column; align-items: stretch; }
  .v2s-arr { align-self: center; transform: rotate(90deg); }
  .v2s-fl-art { max-width: 130px; }
}
@media (prefers-reduced-motion: reduce) { .v2s-fl-art img { animation: none; } }

/* Back beside every Next (user) */
.v2-back-btn { color: var(--ink) !important; background: #fff !important; box-shadow: inset 0 0 0 2px var(--line) !important; }
.v2-nextbar-r { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.pr-actions .v2-back-btn { margin-right: 6px; }

/* the arc draws itself as the alien jumps (user) */
.v2-nl .nl-reveal { animation-name: nl-reveal; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes nl-reveal { to { stroke-dashoffset: 0; } }
.v2-nl .nl-jump { stroke-dashoffset: 0; }

/* round of fixes 2026-11-15 (user) */
.v2-worked-grid { display: flex !important; flex-direction: column; gap: 14px; }      /* steps first, going down; the picture under them */
.v2-worked-grid > .v2-nl-box { max-width: 620px; width: 100%; }
.v2-video { display: block; margin-bottom: 18px; }
.v2s-term-h { margin-top: 26px !important; padding-top: 6px; }
.v2s-vocab td.v2s-no { width: 44px; color: var(--muted); font-weight: 700; text-align: center; }
.v2s-explain1 { background: #fff8e6; border-radius: 16px; padding: 4px 16px 10px; margin: 6px 0 16px; }
.v2s-explain1 ul { margin: 4px 0 0; } .v2s-explain1 li { margin: 4px 0; }

/* alien perched on the Complete tab, cheering when the lesson is done (user) */
.v2-steps button.v2s-finish { position: relative; overflow: visible; }
.v2s-perch { position: absolute; right: -12px; top: -30px; width: 34px; height: 34px; object-fit: contain; pointer-events: none;
  animation: v2s-wait 2.4s ease-in-out infinite; transform-origin: 50% 100%; filter: drop-shadow(0 2px 2px rgba(27,23,71,.3)); }
@keyframes v2s-wait { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-2px); } }
.v2s-perch.cheer { animation: v2s-cheer .7s ease-in-out infinite; }
@keyframes v2s-cheer { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-16px) scale(1.12) rotate(-8deg); } }
.v2s-perch-say { position: absolute; right: 22px; top: -34px; background: #fff; border-radius: 12px; padding: 2px 8px; font-size: 12px; font-weight: 800; color: #e8475b; box-shadow: 0 2px 8px rgba(27,23,71,.18); white-space: nowrap; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .v2s-perch, .v2s-perch.cheer { animation: none; } }
/* the unit's journey bar + completed stops (user) */
.v2s-trailbar { display: flex; align-items: center; gap: 14px; margin: 6px 0 22px; padding-top: 26px; }
.v2s-tb-road { position: relative; flex: 1; height: 14px; border-radius: 99px; background: repeating-linear-gradient(90deg, #e6e1f5 0 14px, #f1edfb 14px 22px); }
.v2s-tb-road > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--tc, #e8475b), #ffc83d); transition: width .6s ease; }
.v2s-tb-road > img { position: absolute; top: -34px; width: 38px; height: 38px; transform: translateX(-50%); object-fit: contain; animation: v2s-fl-bob 2.6s ease-in-out infinite; }
.v2s-trailbar > span { font-weight: 700; white-space: nowrap; }
.v2s-done-tag { display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 99px; background: #dff7e7; color: #17733a; font-size: 13px; font-weight: 800; vertical-align: middle; }
.v2-stop a, .v2-stop .v2-stop-btn { position: relative; }
.v2s-stop-alien { position: absolute; right: 54px; top: -18px; width: 42px; height: 42px; object-fit: contain; animation: v2s-cheer 1.4s ease-in-out infinite; pointer-events: none; }
@media (max-width: 600px) { .v2s-trailbar { flex-direction: column; align-items: stretch; } }

.v2s-prac-sec .v2s-prac-by { margin-bottom: 14px; } .v2s-prac-sec .v2s-prac-by .muted { margin: 6px 0 0; } .v2s-prac-sec [data-v2-practice] .v2-kid-practice { margin-top: 0; }

.v2-stop-t .v2s-done-tag { align-self: flex-start; width: auto; margin: 4px 0 0; }

.v2-worked-grid { align-items: flex-start !important; } .v2-worked-grid > ol { align-self: stretch; text-align: left; margin: 0; padding-left: 0; } .v2-worked-grid > .v2-nl-box { align-self: flex-start; }

/* round 2026-11-15 c (user) */
.v2-nl-box .v2-pic { animation: none; }                 /* the table/picture stays still while steps are added (no flicker) */
.v2-worked-grid .v2-nl-box { order: 0 !important; }     /* steps first on phones too */
.v2s-lo { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 12px 16px; margin: 6px 0 4px;
  border-radius: 16px; background: color-mix(in srgb, var(--tc, #e8475b) 7%, #fff); }
.v2s-lo ul { margin: 6px 0 0; padding-left: 20px; font-size: 15px; } .v2s-lo b { font-size: 16px; }
.v2s-lo-go { flex: none; }
@media (max-width: 600px) { .v2s-lo { flex-direction: column; align-items: stretch; } }
.v2s-row3 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .v2s-row3 { grid-template-columns: 1fr; } }
.v2s-as-one { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 22px; border-radius: 18px;
  background: #1b1747; color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(27,23,71,.18); }
.v2s-as-one span { color: #d9d2f5; } .v2s-as-one b { font: 800 18px var(--head); color: #ffc83d; }

/* worked example: steps on one side, the picture on the other (user 2026-11-15 d); the picture stays put and only the new parts pop in */
@media (min-width: 861px) {
  .v2-worked-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start !important; }
  .v2-worked-grid > .v2-nl-box { position: sticky; top: 90px; max-width: none; }
}
.v2-pic .pic-chg { transform-box: fill-box; transform-origin: center; animation: pic-chg .45s ease-out; }
@keyframes pic-chg { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
.v2-pic rect.pic-chg { animation-name: pic-fill; } @keyframes pic-fill { from { opacity: .3; } to { opacity: 1; } }
.v2-pic .pic-cell.hi { fill: #fff3c4; stroke: #e8a400; stroke-width: 3; }
.v2-pic .pic-t.dim { opacity: .35; }
@media (prefers-reduced-motion: reduce) { .v2-pic .pic-chg { animation: none; } }

/* step label, text and 🔊 stay on one row (user) */
.v2-worked-grid > ol > li, .v2-ex-steps > li { display: flex; align-items: center; gap: 8px; }
.v2-worked-grid > ol > li > b, .v2-ex-steps > li > b { flex: none; }
.v2-worked-grid > ol > li > button, .v2-ex-steps > li > button { flex: none; margin: 0; }

/* buses on a timetable number line (user) */
.v2-nl .nl-bus-t { font: 800 14px var(--body, sans-serif); text-anchor: middle; }


/* every unit like Unit 1 (user 2026-11-15): units without lessons yet */
.v2s-soon-tag { flex: none; display: inline-block; padding: 4px 12px; border-radius: 99px; background: #fff1e0; color: #d4600b; font-size: 13px; font-weight: 800; white-space: nowrap; }
.v2-row3 .v2s-soon-tag, .v2s-row3 .v2s-soon-tag { margin-top: 4px; }
.v2-stop.v2s-soon .v2-stop-dot { opacity: .55; }
.v2-stop.v2s-soon .v2-stop-go::after { content: "Coming soon"; padding: 3px 10px; border-radius: 99px; background: #fff1e0; color: #d4600b; font-size: 12px; font-weight: 800; white-space: nowrap; }
.v2s-as-one.v2s-as-soon { opacity: .75; cursor: default; }

/* 2026-11-15 (user): the journey aliens sit fully inside their card (no part over the edge) */
.v2s-fl { overflow: visible; }
.v2s-fl-art { max-width: 128px; margin-right: 22px; }
.v2s-fl-art img { right: -26px; bottom: -8px; width: 50px; height: 50px; }
/* How it works = the 7 lesson steps (user) */
.v2-loop.v2-loop7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.v2-loop7 .goal-tile { position: relative; padding-top: 22px; }
.v2-loop7 .goal-tile strong { font-size: 16px; }
.v2-loop7 .goal-tile > span:last-child { font-size: 13px; }
.v2-loop-n { position: absolute; top: 8px; left: 10px; width: 22px; height: 22px; border-radius: 50%; background: #e8475b; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.v2-loop-path { margin: 16px 0 0; font-weight: 700; color: var(--ink); }
@media (max-width: 1000px) { .v2-loop.v2-loop7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .v2-loop.v2-loop7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* For Parents: 6 cards = 3 on top, 3 below (user) */
.hub-grid.v2-hub3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .hub-grid.v2-hub3 { grid-template-columns: 1fr; } }
/* every visitor's own student code + name (user) */
.v2-me-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.v2-me-form input { font: inherit; padding: 4px 10px; border-radius: 10px; border: 2px solid var(--line, #ddd); width: 150px; color: #1b1747; background: #fff; }
.v2-me-code { letter-spacing: .06em; color: #ffc83d; }
.v2-me-form em { font-style: normal; font-weight: 800; color: #3ccf8e; }
.v2-me-card { margin: 14px 0 6px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.12); color: #fff; max-width: 640px; }
.v2-me-form.big { font-size: 17px; } .v2-me-form.big input { width: 190px; font-size: 17px; }
.v2-me-note { margin: 8px 0 0; font-size: 13px; opacity: .85; }

/* Key vocabulary on the unit page (user 2026-11-17: replaces the three "In this unit" cards; her booklet) */
.v2s-kv-card { padding: 18px 22px; }
.v2s-kv-sec { margin: 14px 0 8px; font: 800 20px var(--head); color: var(--tc, #7b3fd1); }
.v2s-kv-sec:first-child { margin-top: 0; }
.v2s-kv-wrap { overflow-x: auto; }
.v2s-kv { width: 100%; }
.v2s-kv th, .v2s-kv td { vertical-align: top; }
.v2s-kv tbody th { white-space: nowrap; }
.v2s-kv td.v2s-kv-ex { color: var(--muted, #5b5878); font-style: italic; }
@media (max-width: 720px) { .v2s-kv tbody th { white-space: normal; } .v2s-kv td.v2s-kv-ex { min-width: 140px; } }

/* ---------- free accounts, product tour, admin dashboard (user 2026-11-18) ---------- */
.acct-cta { display: flex; align-items: center; gap: 8px; margin-left: 12px; flex: none; }
.acct-start { white-space: nowrap; }
.acct-me { color: #fff; font-weight: 800; text-decoration: none; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.14); white-space: nowrap; font-size: 14px; }
.acct-out { background: none; border: 0; color: rgba(255,255,255,.8); font: 700 13px var(--body); cursor: pointer; text-decoration: underline; }
@media (max-width: 900px) { .acct-cta { position: fixed; right: 10px; bottom: 76px; z-index: 40; } .acct-out { display: none; } }
.acct-hero h1 { margin: 6px 0 8px; }
.acct-card { display: grid; gap: 14px; padding: 24px; max-width: 560px; }
.acct-card label { display: grid; gap: 6px; font-weight: 700; }
.acct-card .acct-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px; }
.acct-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: #7b3fd1; }
.acct-status { min-height: 1.2em; margin: 0; font-weight: 700; color: #b0306a; }
.acct-demo { background: #fff6d8; border: 2px dashed #e7b93a; border-radius: 14px; padding: 10px 14px; font-size: 14px; max-width: 560px; }
.acct-demo-mail { background: #f6f3ff; border: 2px solid #d6ccf5; border-radius: 16px; padding: 14px 16px; }
.acct-demo-mail p { margin: 6px 0 10px; font-style: italic; }
.acct-link { background: none; border: 0; padding: 0; color: var(--link, #3f6fe0); font: inherit; text-decoration: underline; cursor: pointer; }
/* Google / Apple buttons */
.acct-social { display: grid; gap: 10px; }
.acct-sso { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 16px;
  border-radius: 10px; font: 700 16px var(--body); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.acct-sso svg { width: 20px; height: 20px; flex: none; }
.acct-sso:hover { box-shadow: 0 3px 10px rgba(0,0,0,.12); transform: translateY(-1px); }
.acct-sso:disabled { opacity: .6; cursor: wait; }
.acct-sso[hidden] { display: none; }
.acct-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.acct-apple { background: #000; color: #fff; border: 1px solid #000; }
.acct-social-note { font-size: 13px; margin: 0; text-align: center; }
.acct-sso-status { margin: 0; font-weight: 700; color: #b0306a; font-size: 14px; text-align: center; }
.acct-sso-status:empty { display: none; }
.acct-or { display: flex; align-items: center; gap: 12px; color: #8a8f98; font-size: 14px; margin: 4px 0 2px; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: #d9dce1; }
/* the sign-in box (like the user's picture) */
.acct-signin-bg { background: linear-gradient(180deg, #6fd6d0 0%, #a8ecdf 55%, #d4f6c4 100%); padding: 48px 16px 64px; }
.acct-signin { display: grid; gap: 8px; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 14px; padding: 28px 40px 30px;
  box-shadow: 0 6px 24px rgba(20,80,80,.16); }
.acct-signin h1 { margin: 0 0 14px; text-align: center; color: #1a9fd8; font: 400 40px/1.1 "Roboto Slab", Georgia, serif; }
.acct-signin .acct-social { margin-bottom: 4px; }
.acct-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; }
.acct-row > label { font-weight: 500; font-size: 17px; color: #444; }
.acct-signin .acct-link { color: #3c8c00; text-decoration: none; font-size: 16px; }
.acct-signin .acct-link:hover { text-decoration: underline; }
.acct-signin .field { width: 100%; height: 50px; border: 1px solid #c9ccd1; border-radius: 4px; padding: 0 12px; font-size: 17px; box-sizing: border-box; }
.acct-signin .field:focus { outline: none; border-color: #4caf1a; box-shadow: 0 0 0 3px rgba(76,175,26,.2); }
.acct-help { margin: 4px 0 0; padding: 10px 12px; background: #f3faef; border-radius: 8px; font-size: 14px; }
.acct-row-go { align-items: center; margin-top: 22px; }
.acct-go { background: #4caa00; color: #fff; border: 0; border-radius: 6px; min-width: 210px; height: 62px; font: 700 22px var(--body); cursor: pointer; }
.acct-go:hover { background: #3f9300; }
.acct-go:disabled { opacity: .7; cursor: wait; }
.acct-remember { display: flex; align-items: center; gap: 10px; color: #3c8c00; font-size: 17px; cursor: pointer; }
.acct-remember input { width: 20px; height: 20px; accent-color: #4caa00; }
.acct-signin .acct-status { margin-top: 8px; }
.acct-foot { font-size: 14px; text-align: center; margin: 6px 0 0; }
@media (max-width: 520px) { .acct-signin { padding: 22px 18px 24px; } .acct-go { min-width: 0; flex: 1; } }
.acct-alien { width: 84px; height: 84px; object-fit: contain; justify-self: center; }
.acct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.acct-chips label { cursor: pointer; }
.acct-chips input { position: absolute; opacity: 0; pointer-events: none; }
.acct-chips span { display: inline-block; padding: 8px 16px; border-radius: 99px; border: 2px solid #d8d2ec; background: #fff; font-weight: 800; }
.acct-chips input:checked + span { background: #7b3fd1; border-color: #7b3fd1; color: #fff; }
.acct-chips input:focus-visible + span { outline: 3px solid #ffc83d; }
.acct-plan-card { max-width: none; }
.acct-plan-sum { background: #eef9f3; border-radius: 14px; padding: 12px 16px; margin: 4px 0 12px; }
.acct-weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.acct-week { background: #f8f6ff; border-radius: 16px; padding: 12px 14px; }
.acct-week h3 { margin: 0 0 6px; font-size: 17px; }
.acct-week ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.acct-week li { display: grid; grid-template-columns: 42px 1fr; gap: 6px; }
/* the profile step after 2 units */
body.acct-locked { overflow: hidden; }
.acct-modal { position: fixed; inset: 0; z-index: 200; background: rgba(27, 23, 71, .55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.acct-box { background: #fff; border-radius: 24px; padding: 26px; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); text-align: center; }
.acct-box h2 { margin: 6px 0; }
.acct-box .btn-row { justify-content: center; }
.acct-small { font-size: 14px; margin: 12px 0 0; }
/* 👁 show password */
.acct-pw { position: relative; display: block; }
.acct-pw input { width: 100%; padding-right: 48px !important; box-sizing: border-box; }
.acct-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 8px;
  background: transparent; color: #6b6f78; cursor: pointer; display: grid; place-items: center; padding: 0; }
.acct-eye:hover { background: #f1f2f5; color: #333; }
.acct-eye svg { width: 22px; height: 22px; }
.acct-skip-lock { font-size: 13px; color: #8a8f98; align-self: center; }
.acct-status a { color: #3f6fe0; }
/* the welcome pop-up */
.acct-modal-pop .acct-box { position: relative; width: min(440px, 100%); padding: 24px 28px 20px; }
.acct-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1eff8; font-size: 22px; line-height: 1; cursor: pointer; color: #555; }
.acct-x:hover { background: #e4e0f3; }
.acct-pop { display: grid; gap: 10px; text-align: left; }
.acct-pop .acct-alien { width: 72px; height: 72px; }
.acct-pop h2 { text-align: center; margin: 0; }
.acct-pop-lead { text-align: center; margin: 0 0 4px; font-size: 15px; }
.acct-pop label { display: grid; gap: 4px; font-weight: 700; }
.acct-pop .field { width: 100%; box-sizing: border-box; }
.acct-pop .btn { width: 100%; justify-content: center; }
.acct-pop .acct-small { text-align: center; margin: 4px 0 0; }
.acct-pop-go { display: grid; gap: 8px; }
.acct-remember { display: flex !important; align-items: center; gap: 10px; font-weight: 600 !important; cursor: pointer; }
.acct-remember input { width: 20px; height: 20px; accent-color: #4caa00; margin: 0; }
.acct-form { text-align: left; display: grid; gap: 14px; margin-top: 12px; }
.acct-role { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.acct-role legend { font-weight: 800; margin-bottom: 6px; }
.acct-role label { cursor: pointer; }
.acct-role input { position: absolute; opacity: 0; }
.acct-role span { display: inline-block; padding: 10px 16px; border-radius: 14px; border: 2px solid #d8d2ec; font-weight: 800; }
.acct-role input:checked + span { border-color: #7b3fd1; background: #f1eafd; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acct-grid label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.acct-grid select, .acct-grid input { font: inherit; padding: 9px 10px; border-radius: 12px; border: 2px solid #d8d2ec; background: #fff; }
@media (max-width: 560px) { .acct-grid { grid-template-columns: 1fr; } }
/* product tour */
.acct-tour { position: fixed; inset: 0; z-index: 210; background: rgba(27, 23, 71, .45); }
.acct-tour-on { position: relative; z-index: 220; box-shadow: 0 0 0 4px #ffc83d, 0 0 0 9999px rgba(27,23,71,.0); border-radius: 14px; background: rgba(255,255,255,.12); }
.site-header:has(.acct-tour-on) { z-index: 215; position: relative; }
.acct-tip { position: fixed; width: 320px; background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 16px 40px rgba(0,0,0,.3); z-index: 230; }
.acct-tip h3 { margin: 4px 0 6px; } .acct-tip p { margin: 0 0 12px; font-size: 15px; }
.acct-step { font-size: 12px; font-weight: 800; color: #7b3fd1; }
/* admin dashboard */
.adm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-mode select { margin-left: 6px; padding: 6px 10px; border-radius: 10px; font: inherit; }
.adm-src { background: #fff6d8; border-radius: 12px; padding: 8px 14px; font-size: 14px; }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.adm-kpi { background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 4px 14px rgba(27,23,71,.08); display: grid; gap: 2px; }
.adm-kpi span { font-size: 22px; } .adm-kpi b { font: 800 26px var(--head); } .adm-kpi small { color: var(--muted, #6b6889); font-weight: 700; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.adm-bars { display: grid; gap: 8px; }
.adm-bar { display: grid; grid-template-columns: minmax(90px, 150px) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.adm-bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-bt { height: 14px; background: #efecfa; border-radius: 99px; overflow: hidden; }
.adm-bt i { display: block; height: 100%; background: linear-gradient(90deg, #7b3fd1, #e8475b); border-radius: 99px; }
.adm-users { margin-top: 14px; }
.adm-uhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adm-uhead h3 { margin: 0 auto 0 0; }
.adm-uhead input { padding: 8px 12px; border-radius: 12px; border: 2px solid #d8d2ec; font: inherit; min-width: 220px; }
.adm-twrap { overflow-x: auto; margin-top: 10px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th, .adm-table td { padding: 7px 9px; border-bottom: 1px solid #ece9f6; text-align: left; white-space: nowrap; }
.adm-table th { background: #f6f3ff; position: sticky; top: 0; }

/* two views (user 2026-11-19): teacher things only for the signed-in site admin in "View: Admin" */
html:not(.eep-admin) .eep-admin-only { display: none !important; }
.acct-view { display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--body); color: #dcd6ff; }
.acct-view select { font: 800 13px var(--body); padding: 4px 8px; border-radius: 10px; border: 0; background: #fff; color: var(--ink); }
/* admin-only class page: the 3-step "create a class" guide */
.t-wizard { margin: 16px 0; }
.t-steps { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0 0 14px; font-weight: 800; color: var(--muted); }
.t-steps li { display: flex; align-items: center; gap: 8px; }
.t-steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #eef0f7; color: var(--ink); }
.t-steps li.on { color: var(--ink); } .t-steps li.on span { background: var(--gold); }
.t-steps li.done span { background: #39b66a; color: #fff; }
.t-wizard label { display: block; font-weight: 800; margin: 8px 0; }
.t-wizard .field { width: 100%; }
.t-preview { font-weight: 800; color: #23864a; margin: 6px 0; min-height: 1.2em; }
.t-done { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; margin: 10px 0 14px; }
.t-code { text-align: center; background: #fff7dc; border: 2px dashed var(--gold); border-radius: 18px; padding: 12px 18px; }
.t-code span { display: block; font-weight: 800; color: var(--muted); }
.t-code b { font-size: 34px; letter-spacing: 3px; }
.t-gate { margin-top: 12px; }
@media (max-width: 600px) { .t-done { grid-template-columns: 1fr; } }
.acct-adm { position: relative; }
.acct-adm > summary { list-style: none; cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 10px; background: rgba(255,255,255,.12); }
.acct-adm > summary::-webkit-details-marker { display: none; }
.acct-adm-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: flex; flex-direction: column; gap: 8px; min-width: 190px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.acct-adm-pop a { color: var(--ink); font-weight: 800; text-decoration: none; }
.acct-adm-pop .acct-view { color: var(--ink); justify-content: space-between; }
.acct-adm-pop .acct-view select { border: 2px solid var(--line); }
/* 🔍 search button in the header (user 2026-11-19) */
.v2-search-top { margin-left: 10px; }
@media (max-width: 760px) { .v2-search-top { margin-left: auto; } }
/* phones (2026-11-19): 7 bottom tabs + header search + "Start for free" must fit 375 px */
@media (max-width: 760px) {
  .site-nav.v2-kidnav { gap: 0; padding-left: 2px; padding-right: 2px; }
  .v2-kidnav .v2-tab { flex: 1 1 0 !important; min-width: 0 !important; overflow: hidden; font-size: 9.5px !important; letter-spacing: -.3px; word-break: break-word; }
  .v2-kidnav .v2-tab span { font-size: 20px; }
  .site-header .wrap { gap: 6px; min-width: 0; }
  .site-header .logo { min-width: 0; flex: 0 1 auto; }
  .site-header .logo span { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .v2-search-top { width: 34px; height: 34px; }
  .acct-cta { flex: none; }
  .acct-cta .acct-start { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
  .v2-kid-step select, .v2-kid-practice select { max-width: 100%; min-width: 0; }
  .v2-kid-step { flex-wrap: wrap; min-width: 0; }
}
/* header right column (user 2026-11-19): "Start for free" (or the name) on top, 🔍 Search underneath, same edges */
.hdr-right { display: flex; flex-direction: column; align-items: stretch; gap: 5px; margin-left: 10px; flex: none; }
.hdr-right .acct-cta { justify-content: center; }
.hdr-right .acct-start { display: block; text-align: center; }
.hdr-right .v2-search-top { width: auto; height: 28px; margin: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 6px; font: 800 13px var(--body); color: #fff; padding: 0 12px; }
.v2-search-label { font: 800 13px var(--body); }
@media (max-width: 760px) {
  .hdr-right { display: contents; }
  .hdr-right .v2-search-top { width: 34px; height: 34px; padding: 0; margin-left: auto; order: 2; }
  .v2-search-label { display: none; }
}
@media (min-width: 761px) {
  .hdr-right { gap: 4px; justify-content: center; }
  .hdr-right .acct-cta { padding: 0; margin: 0; width: 100%; }
  .hdr-right .acct-start { width: 100%; margin: 0; padding: 4px 14px; min-height: 0; height: 28px; line-height: 20px; font-size: 13px; box-shadow: 0 3px 0 #d98a10; transform: none; }
  .hdr-right .v2-search-top { height: 26px; width: 100%; box-sizing: border-box; }
}
@media (min-width: 761px) { .hdr-right .v2-search-top { border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.1); } }
/* 🔁 Revision sheets (user 2026-11-19): her review sheet, question pictures + answer boxes */
.v2-rev-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.v2-rev-tabs button { font: 800 14.5px var(--body); padding: 9px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.v2-rev-tabs button.on { background: var(--tc, var(--gold)); border-color: var(--tc, var(--gold)); color: #fff; }
.v2-rev-sheet { background: #fff; border-radius: 22px; padding: 22px 24px; border-top: 6px solid var(--tc, var(--gold)); box-shadow: 0 6px 24px rgba(20,16,60,.08); }
.v2-rev-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin: 12px 0 6px; }
.v2-rev-head h2 { margin: 0 0 4px; }
.v2-rev-sec { margin: 22px 0 8px; padding: 6px 12px; border-radius: 10px; background: #f3f0ff; display: inline-block; }
.v2-rev-q { border-top: 1.5px dashed var(--line); padding: 14px 0; }
.v2-rev-pic img { display: block; max-width: 100%; height: auto; }
.v2-rev-boxes { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 8px; padding-left: 36px; }
.v2-rev-part { display: flex; align-items: center; gap: 8px; font-weight: 800; flex-wrap: wrap; }
.v2-rev-part .field { width: 190px; padding: 8px 10px; }
.v2-rev-part[data-k="seq"] .field { width: 260px; }
.v2-rev-part[data-k="open"] { flex-basis: 100%; }
.v2-rev-part[data-k="open"] .field { width: min(620px, 100%); }
.v2-rev-part.right .field { border-color: #39b66a; background: #effaf2; }
.v2-rev-part.wrong .field { border-color: #e2554f; background: #fff1f0; }
.v2-rev-mark { font-style: normal; font-weight: 800; color: #c0392b; }
.v2-rev-part.right .v2-rev-mark { color: #23864a; }
.v2-rev-part.open .v2-rev-mark { color: var(--muted); }
.v2-rev-key { margin: 8px 0 0 36px; padding: 10px 14px; border-radius: 12px; background: #fff7dc; font-size: 15px; }
@media (max-width: 760px) { .v2-rev-sheet { padding: 14px; } .v2-rev-boxes, .v2-rev-key { padding-left: 0; margin-left: 0; } .v2-rev-head { flex-direction: column; } }
@media (max-width: 760px) {
  .v2-test-hero h1 { font-size: 26px; overflow-wrap: anywhere; }
  .v2-rev-sheet .sheet-top { flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
  .v2-rev-sheet .sheet-top span { overflow: hidden; text-overflow: clip; white-space: nowrap; max-width: 100%; }
}
@media (max-width: 760px) { .unit-hero h1 { white-space: normal !important; overflow-wrap: anywhere; max-width: 100%; } .unit-hero-in > div { min-width: 0; } }
/* search BAR under the header (user 2026-11-19: "thanh tìm kiếm nằm hẳn ở dưới"), right edge = "Start for free" right edge */
.site-header .wrap { position: relative; }
.hdr-search { position: absolute; top: calc(100% + 10px); width: 300px; z-index: 45; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 40px;
  background: #fff; border-radius: 999px; box-shadow: 0 6px 20px rgba(10, 8, 40, .25); cursor: text; }
.hdr-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 700 14.5px var(--body); color: var(--ink); cursor: text; }
.hdr-search input::placeholder { color: var(--muted); }
@media (min-width: 761px) { .v2-search-top { display: none !important; } }
@media (max-width: 760px) { .hdr-search { display: none; } }
/* answers ON the sheet (user 2026-11-19): boxes sit on her dotted blanks, a writing box on her lines */
.v2-rev-tools { margin-bottom: 16px; }
.v2-rev-pic { position: relative; }
.v2-rev-slot { position: absolute; transform: translateY(-86%); height: 2.1em; min-width: 46px; padding: 0 6px; border: 2px solid #c9c2f2; border-radius: 8px;
  background: rgba(255,255,255,.92); font: 800 clamp(12px, 1.35vw, 16px) var(--body); color: #3b2fc9; text-align: center; }
.v2-rev-slot:focus { outline: 0; border-color: var(--tc, #7b3fd1); background: #fff; box-shadow: 0 0 0 3px rgba(123,63,209,.18); }
.v2-rev-area { position: absolute; resize: none; border: 2px dashed #c9c2f2; border-radius: 10px; background: rgba(255,255,255,.55);
  font: 700 clamp(12px, 1.3vw, 15.5px)/1.9 var(--body); color: #3b2fc9; padding: 2px 8px; }
.v2-rev-area:focus { outline: 0; border-color: var(--tc, #7b3fd1); background: rgba(255,255,255,.85); }
.v2-rev-slot.right { border-color: #39b66a; background: #effaf2; color: #23864a; }
.v2-rev-slot.wrong { border-color: #e2554f; background: #fff1f0; color: #c0392b; text-decoration: line-through; }
.v2-rev-fix { position: absolute; transform: translateY(18%); font: 900 12.5px var(--body); color: #fff; background: #23864a; padding: 1px 7px; border-radius: 999px; white-space: nowrap; z-index: 2; }
.v2-rev-head { display: block; }
/* Revision control row (user 2026-11-19): spread over the sheet's width, everything on one line */
.v2-rev-tools.us-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; width: 100%; box-sizing: border-box; }
.v2-rev-tools .us-pick { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.v2-rev-tools .us-pick select { width: 100%; min-width: 0; height: 48px; box-sizing: border-box; }
.v2-rev-tools [data-rev-print] { height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; margin: 0; box-sizing: border-box; }
@media (max-width: 760px) { .v2-rev-tools.us-tools { grid-template-columns: 1fr; } }
/* the hero alien drops below the search bar that hangs under the header (desktop) */
@media (min-width: 761px) { .unit-hero .unit-guide, .hub-hero .hub-art { margin-top: 56px; } }
.v2-rev-tools.us-tools { max-width: 820px; }   /* exactly the sheet's width */
/* units without revision sheets yet: same row and the same sheet frame (user 2026-11-19) */
.v2-rev-print-off { opacity: .45; pointer-events: none; }
.v2-rev-tools select:disabled { color: var(--muted); background: #f6f5fb; }
.v2-rev-soon-in { display: flex; align-items: center; gap: 22px; padding: 26px 6px 10px; border-top: 1.5px dashed var(--line); }
.v2-rev-soon-in p { margin: 6px 0 12px; color: var(--muted); }
@media (max-width: 760px) { .v2-rev-soon-in { flex-direction: column; text-align: center; } }
/* the search bar belongs to the top of the PAGE, not to the sticky header (user 2026-11-19) */
body > .hdr-search { position: absolute; right: auto; }
/* logo (user 2026-11-21): no rocket; brand and "Where Learning Becomes Easy" each on ONE line */
.v2-logo span { white-space: nowrap; line-height: 1.15; }
.v2-logo small { display: block; white-space: nowrap; }
/* My Space → 👩‍🏫 Teacher tab: the class dashboard (user 2026-11-22; admin only for now) */
.v2-me-tabs-sec { padding-bottom: 0; }
.v2-me-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; border: 2px solid var(--line); }
.v2-me-tabs button { font: 800 15px var(--body); padding: 9px 18px; border-radius: 999px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.v2-me-tabs button.on { background: var(--gold); }
.t-dash-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.t-dash-top .us-pick { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.t-dash-top select { font: 700 15px var(--body); padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); min-width: 280px; }
.t-dash-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.t-dash-tile { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.t-dash-tile b { font-size: 30px; line-height: 1.1; color: var(--ink); }
.t-dash-tile span { font-weight: 800; color: var(--ink); }
.t-dash-tile small { color: var(--muted); font-weight: 700; }
.t-dash-note { background: #fff7dc; border-radius: 12px; padding: 10px 14px; }
.t-dash-table td small { display: block; color: var(--muted); }
.t-dash-table tr.idle td { color: var(--muted); }
@media (max-width: 760px) { .t-dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .t-dash-top select { min-width: 0; width: 100%; } }
/* sign in without a password (user 2026-11-22): one-time link by email */
.acct-magic { width: 100%; margin-top: 10px; background: #fff; color: var(--ink); border: 2px solid var(--line); font-weight: 800; }
.acct-magic:hover { border-color: var(--gold); }

/* ---- My Space dashboard (user 2026-11-23, her reference layout) ----------------------------------------- */
.ms { --ms-acc: #ff7a3d; --ms-soft: #fff0e8; --ms-line: #e6e8f0; }
.ms-nav { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; margin: 0 0 18px;
  background: #d8f0e4; border-radius: 16px; }
.ms-nav a { padding: 8px 14px; border-radius: 12px; font-weight: 800; color: var(--ink); text-decoration: none; }
.ms-nav a.on, .ms-nav a:hover { background: #fff; color: var(--ms-acc); }
.ms-title { font-size: 24px; margin: 26px 0 12px; scroll-margin-top: 130px; }
.ms-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 860px) { .ms-row { grid-template-columns: 1fr; } }
.ms-card { background: #fff; border-radius: 18px; box-shadow: 0 6px 20px rgba(30,40,90,.08); overflow: hidden; }
.ms-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--ms-line); }
.ms-head h3 { margin: 0; font-size: 18px; }
.ms-head p { margin: 2px 0 0; font-size: 13px; color: #7a7f99; }
.ms-legend { font-size: 13px; color: #555; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.ms-legend i { width: 12px; height: 12px; border-radius: 50%; background: #20b26b; display: inline-block; }
.ms-goals { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 10px; padding: 14px; }
.ms-test { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .ms-goals { grid-template-columns: 1fr 1fr; } }
.ms-tile { position: relative; border: 1px solid #d5d8e3; border-radius: 12px; padding: 10px 12px; min-height: 72px; display: flex; flex-direction: column; justify-content: space-between; }
.ms-tile span { font-size: 13px; color: #555; }
.ms-tile b { font-size: 22px; color: var(--ink); }
.ms-tile.hot { background: var(--ms-soft); border-color: transparent; }
.ms-tile.hot span, .ms-tile.hot b { color: var(--ms-acc); }
.ms-tile.met { border-color: #20b26b; background: #eafaf1; }
.ms-pen { position: absolute; right: 10px; bottom: 10px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.ms-pen input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ms-cal { padding: 12px 18px 4px; }
.ms-cal-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ms-cal-nav b { font-size: 18px; min-width: 150px; }
.ms-cal-nav button { border: 1px solid var(--ms-line); background: #fff; border-radius: 10px; width: 32px; height: 32px; font-size: 18px; cursor: pointer; }
.ms-cal-grid { display: grid; grid-template-columns: 70px repeat(7, 1fr); row-gap: 6px; text-align: center; align-items: center; }
.ms-cal-grid .dow { font-size: 12px; color: #9aa0b8; font-weight: 700; }
.ms-cal-grid .wk { border: 0; border-right: 1px solid var(--ms-line); background: none; color: #b0555a; font-size: 13px; cursor: pointer; padding: 8px 0; }
.ms-cal-grid .wk:hover { color: var(--ms-acc); }
.ms-cal-grid .d { position: relative; border: 0; background: none; font: inherit; font-size: 16px; padding: 8px 0; border-radius: 10px; cursor: pointer; color: var(--ink); }
.ms-cal-grid .d:hover { background: #f2f4fa; }
.ms-cal-grid .d.today { background: var(--ms-soft); color: var(--ms-acc); font-weight: 800; }
.ms-cal-grid .d.on::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #20b26b; }
.ms-pick { padding: 4px 18px 16px; font-size: 14px; }
.ms-pick p { margin: 6px 0; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-chips span { background: #f2f4fa; border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.ms-week { width: 100%; border-collapse: collapse; font-size: 14px; }
.ms-week th, .ms-week td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--ms-line); border-left: 1px solid var(--ms-line); }
.ms-week thead th { background: #f1f2f8; font-weight: 800; }
.ms-week tbody th { font-weight: 600; text-align: left; border-left: 0; white-space: nowrap; }
.ms-week tr.today { background: var(--ms-soft); }
.ms-week tfoot th, .ms-week tfoot td { font-weight: 800; border-top: 2px solid var(--ink); }
.ms-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 14px 0; border-bottom: 1px solid var(--ms-line); }
.ms-tabs button { border: 0; background: none; font: inherit; font-weight: 800; color: #7a7f99; padding: 8px 14px 12px; border-radius: 12px 12px 0 0; cursor: pointer; border-bottom: 3px solid transparent; }
.ms-tabs button.on { color: var(--ms-acc); border-bottom-color: var(--ms-acc); background: var(--ms-soft); }
.ms-empty { text-align: center; padding: 30px 16px 34px; }
.ms-empty img { width: 120px; height: auto; }
.ms-empty p { max-width: 340px; margin: 10px auto 14px; }
.ms-histt { width: 100%; border-collapse: collapse; font-size: 14px; }
.ms-histt th, .ms-histt td { padding: 10px; border-bottom: 1px solid var(--ms-line); text-align: left; }
.ms-histt td small { display: block; color: #8a8fa8; }
.ms-histt .nm { font-weight: 700; max-width: 320px; }
.ms-histt .pill { display: inline-block; min-width: 28px; text-align: center; border-radius: 999px; padding: 2px 8px; background: #eef0f6; }
.ms-histt .pill.ok { background: #e3f8ec; color: #138a4f; } .ms-histt .pill.no { background: #fde8e8; color: #c0392b; }
.ms-histt .sc { min-width: 110px; } .ms-histt .bar { display: block; height: 6px; background: #eef0f6; border-radius: 4px; margin-top: 4px; }
.ms-histt .bar i { display: block; height: 100%; background: #20b26b; border-radius: 4px; }
/* home page: the Teacher button under the two cards */
.v2s-teacher-btn { text-align: center; margin: 18px 0 0; }

/* teacher dashboard: a student's profile (user 2026-11-23) */
.t-dash-who { border: 0; background: none; padding: 0; text-align: left; font: inherit; cursor: pointer; color: inherit; }
.t-dash-who b { display: block; } .t-dash-who small { display: block; }
.t-dash-who span { font-size: 12px; color: #ff7a3d; font-weight: 800; }
.t-dash-who:hover b { color: #ff7a3d; text-decoration: underline; }
.t-prof { position: fixed; inset: 0; z-index: 1000; background: rgba(15,18,45,.55); display: flex; justify-content: center; align-items: flex-start; padding: 24px 12px; overflow-y: auto; }
.t-prof-card { background: #f4f6fb; border-radius: 22px; width: min(1100px, 100%); padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.t-prof-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.t-prof-top h2 { margin: 2px 0 0; font-size: 28px; }
.t-prof-x { border: 0; background: #fff; border-radius: 50%; width: 40px; height: 40px; font-size: 18px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.t-prof .t-dash-tiles { margin-bottom: 16px; }
.t-prof .ms-goals { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 600px) { .t-prof .ms-goals { grid-template-columns: 1fr 1fr; } }
.t-note-form { display: grid; gap: 8px; padding: 14px 18px 4px; }
.t-note-form textarea { width: 100%; border: 1px solid #d5d8e3; border-radius: 12px; padding: 10px; font: inherit; resize: vertical; box-sizing: border-box; }
.t-note-form .btn { justify-self: start; }
.t-note-list { list-style: none; margin: 0; padding: 8px 18px 16px; max-height: 260px; overflow-y: auto; }
.t-note-list li { position: relative; background: #fff8f3; border: 1px solid #ffe1cf; border-radius: 12px; padding: 10px 40px 10px 12px; margin-top: 8px; }
.t-note-list li.muted { background: none; border: 0; padding: 6px 0; }
.t-note-list p { margin: 0 0 4px; } .t-note-list small { color: #8a8fa8; }
.t-note-list button { position: absolute; right: 8px; top: 8px; border: 0; background: none; cursor: pointer; font-size: 16px; }

/* user 2026-11-24: sign in / log in hidden for now (every entry point) */
a[href^="/login/"], a[href^="/start/login/"], a[href^="/start/signup"], .acct-login-only, [data-login-row],
#t-login, #t-logout, .v2-tab[href^="/login/"] { display: none !important; }
@media (min-width: 900px) { .v2s-three { grid-template-columns: repeat(3, 1fr); } }   /* Students · Parents · Teachers on one row */

/* revision sheets: her Word bank on top, and answers that come with a drawing (user 2026-11-24) */
.v2-rev-wordbank { margin: 0 0 16px; }
.v2-rev-wordbank img { display: block; width: 100%; height: auto; }
.v2-rev-key img { display: block; max-width: 100%; height: auto; margin-top: 6px; }

/* revision sheets: write, type and draw straight on her sheet (user 2026-11-24) */
.v2-rev-pg { position: relative; }
.v2-rev-pg + .v2-rev-pg { margin-top: 4px; }
.v2-rev-cell { position: absolute; z-index: 2; border: 2px solid #c9c2f2; border-radius: 6px; background: rgba(255,255,255,.7);
  text-align: center; font: 800 16px var(--body); color: var(--ink); padding: 0; box-sizing: border-box; }
.v2-rev-cell:focus { outline: 0; border-color: var(--tc, #7b3fd1); background: #fff; }
.v2-rev-pg .v2-rev-slot, .v2-rev-pg .v2-rev-area { z-index: 2; }
.v2-rev-draw { position: absolute; z-index: 1; touch-action: none; cursor: crosshair; border-radius: 10px; }
.v2-rev-draw:not(.whole) { background: rgba(255,255,255,.35); box-shadow: inset 0 0 0 2px rgba(29,78,216,.25); }
.v2-rev-draw.whole { inset: 0; width: 100%; height: 100%; }
.v2-rev-clear { position: absolute; z-index: 3; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; font-size: 14px; line-height: 24px; padding: 0; }
.v2-rev-q .free.open { border-color: #9aa3c7; background: #f6f7fb; }
.v2-rev-tick { position: absolute; z-index: 2; border: 2px dashed #c9c2f2; border-radius: 6px; background: rgba(255,255,255,.5); cursor: pointer;
  font: 900 20px var(--body); color: #1d4ed8; padding: 0; }
.v2-rev-tick:hover { border-color: var(--tc, #7b3fd1); } .v2-rev-tick[aria-pressed="true"] { border-style: solid; background: #eef4ff; }

/* user 2026-11-24: neater answers on her sheet; frames hug each picture so % positions stay on target */
.v2-rev-pg { width: fit-content; max-width: 100%; }
.v2-rev-pg img { max-width: 100%; }
.v2-rev-q .v2-rev-slot { border: 0; border-radius: 8px; background: rgba(123,63,209,.08); box-shadow: inset 0 -2px 0 rgba(123,63,209,.45);
  font: 800 15px var(--body); color: #1d2a6b; text-align: center; }
.v2-rev-q .v2-rev-slot:focus { background: #fff; box-shadow: 0 0 0 2px var(--tc, #7b3fd1); }
.v2-rev-q .v2-rev-cell { border: 0; background: transparent; box-shadow: none; }
.v2-rev-q .v2-rev-cell:focus { background: rgba(123,63,209,.10); outline: 2px solid var(--tc, #7b3fd1); outline-offset: -2px; border-radius: 4px; }
.v2-rev-q .v2-rev-area { border: 0; background: transparent; padding: 22px 12px 8px; font: 600 15px/1.5 var(--body); color: #1d2a6b; }
.v2-rev-q .v2-rev-area:focus { outline: 2px solid var(--tc, #7b3fd1); outline-offset: -2px; background: rgba(255,255,255,.4); border-radius: 12px; }
.v2-rev-q .v2-rev-tick { border: 0; background: transparent; }
.v2-rev-q .v2-rev-tick:hover { background: rgba(123,63,209,.08); }
.v2-rev-q .v2-rev-tick[aria-pressed="true"] { background: rgba(29,78,216,.06); }
.v2-rev-q .free.open { background: rgba(154,163,199,.12); }
/* draw boxes: a grid of faint dots to tap */
.v2-rev-dots { position: absolute; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr);
  place-items: center; padding: 8%; box-sizing: border-box; background: rgba(255,255,255,.85); border-radius: 10px; }
.v2-rev-dots .d { width: 70%; aspect-ratio: 1; max-width: 26px; border-radius: 50%; border: 1.5px dashed #c3c8dc; background: transparent; padding: 0; cursor: pointer; }
.v2-rev-dots .d.on { background: #1b1f3b; border: 0; }
.v2-rev-dots .d.ring { background: #fff; border: 3px solid #7b3fd1; }
.v2-rev-dclear { position: absolute; right: 2px; top: 2px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; font-size: 13px; padding: 0; }
/* matching: lines between her dots */
.v2-rev-match { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; touch-action: none; }
.v2-rev-match .hit { fill: rgba(123,63,209,.12); stroke: rgba(123,63,209,.35); cursor: pointer; }
.v2-rev-match line { stroke: #1d4ed8; stroke-width: 3.5; stroke-linecap: round; cursor: pointer; }
.v2-rev-match line.temp { stroke-dasharray: 6 5; pointer-events: none; }

.v2-rev-dots { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); }
.v2-rev-dots .d { width: min(24px, 78%); height: auto; }
/* tick cells: a faint box in the middle shows where to tap */
.v2-rev-q .v2-rev-tick:not([aria-pressed="true"])::after { content: ""; display: block; width: 18px; height: 18px; margin: auto;
  border: 2px dashed rgba(123,63,209,.45); border-radius: 5px; }
.v2-rev-dots { padding: 8px; }   /* (a % padding is measured from the whole picture's width) */
