/* The app's own screens in the "Bright and friendly" look (4 Dec 2026): welcome, sign in, home, a
   chapter, Ask, Me, paying, a photo doubt, reviews, notes and "class done". The colours and the
   buttons are in student.css; the class itself is in /player/player.css.

   Three sizes of screen, one design:
     a phone     one column; Home, Ask and Me in a bar at the bottom
     a tablet    the same column, wider; the next class's card lies on its side
     a laptop    Home, Ask and Me in a column down the left; the next class beside the list

   Rules of the look: a green tick is done, solid violet is the thing to do next, lilac is everything
   else. Yellow is kept for the streak, the stars and the teacher's voice. */

/* ---------- small things used everywhere ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sp { flex: 1; }
.glass { background: var(--surface); border: 2px solid var(--lilac-2); } /* the practice test's white cards (practice.js keeps this name) */
.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 23px; font-weight: 900; letter-spacing: -.01em; color: var(--ink); }
.brand-mark { flex: none; width: 36px; height: 36px; margin-bottom: 3px; border-radius: 12px; background: var(--v); box-shadow: 0 3px 0 var(--v-d); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.flame { flex: none; display: inline-grid; width: 16px; height: 19px; }
.flame svg { width: 100%; height: 100%; }
.flame .f1 { fill: var(--flame); } .flame .f2 { fill: #FFE08A; }
.rate { flex: none; display: inline-flex; gap: 2px; font-size: 14px; color: var(--lilac-3); }
.rate span { display: grid; } .rate svg { width: 1em; height: 1em; }
.rate .on { color: var(--y); }
.due { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--v); color: #ffffff; font-size: 12.5px; font-weight: 900; display: inline-grid; place-items: center; }
.round-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--lilac); color: var(--v-ink); display: grid; place-items: center; }
.round-btn .ic { font-size: 20px; }
.pill-go { min-height: 46px; padding: 0 18px; margin-bottom: 4px; border-radius: 16px; background: var(--v); color: #ffffff; font-weight: 900; font-size: 15.5px; box-shadow: 0 4px 0 var(--v-d); display: inline-flex; align-items: center; gap: 8px; transition: transform .08s, box-shadow .08s; }
.pill-go:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--v-d); }
.pill-go .ic { font-size: 18px; }
.ghost { min-height: 46px; padding: 0 14px; border-radius: 16px; color: var(--v-text); font-weight: 800; font-size: 15.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.go .ic, .again .ic, .link .ic { flex: none; font-size: 20px; }
@media (hover: hover) {
  .go:hover:not(:disabled), .pill-go:hover, .google-btn:hover:not(:disabled) { filter: brightness(1.06); }
  .ghost:hover, .again:hover:not(:disabled), .link:hover, .round-btn:hover { background: var(--lilac); }
  .round-btn:hover { background: var(--lilac-3); }
}

/* a row to tap: a sign, a name, a line under it */
.class-list, .lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.class-row, .lesson { width: calc(100% + 20px); min-height: 64px; margin: 0 -10px; padding: 8px 10px; border-radius: 18px; display: flex; align-items: center; gap: 14px; text-align: left; color: var(--ink); }
.class-row .g, .lesson .badge { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--lilac); color: var(--v-ink); display: grid; place-items: center; font-size: 17px; font-weight: 900; }
.class-row .g .ic { font-size: 21px; }
.class-row .t, .lesson .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.class-row b, .lesson b { font-size: 16.5px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.class-row small, .lesson small { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.class-row > .ic:last-child, .lesson > .ic:last-child { flex: none; color: var(--ink-3); font-size: 18px; }
.class-row.now .g { background: var(--v); color: #ffffff; box-shadow: 0 3px 0 var(--v-d); }
.class-row.done .g { background: var(--done); color: var(--done-ink); }
@media (hover: hover) { .class-row:hover, .lesson:hover { background: var(--lilac); } .class-row:hover .g, .lesson.open:hover .badge, .lesson.locked:hover .badge { background: var(--lilac-3); } }

/* a state in the page: what happened, and the one thing to do about it */
.state { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 16px; border-radius: 22px; background: var(--lilac); }
.state > .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); color: var(--v); display: grid; place-items: center; font-size: 22px; }
.state-text b { display: block; font-size: 16.5px; font-weight: 900; line-height: 1.25; }
.state-text p { margin: 2px 0 0; color: var(--ink-2); font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.state > button, .state > .offer-acts { grid-column: 1 / -1; }
.state.bad { background: var(--red-soft); } .state.bad > .ic { color: var(--red); }
.state-slot:empty { display: none; }
.offer-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan-banner { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 22px; background: var(--lilac); text-align: left; color: var(--ink); }
.plan-banner > .ic { flex: none; font-size: 22px; color: var(--v); }
.plan-banner > span:not(.ic, .cgo) { flex: 1; min-width: 0; }
.plan-banner b { display: block; font-weight: 900; font-size: 15.5px; } .plan-banner small { display: block; color: var(--ink-2); font-weight: 700; font-size: 13.5px; }
.plan-go { flex: none; min-height: 40px; padding: 0 14px; border-radius: 14px; background: var(--v); color: #ffffff; font-weight: 900; font-size: 14.5px; box-shadow: 0 3px 0 var(--v-d); margin-bottom: 3px; }
.plan-banner .cgo { color: var(--ink-3); }

/* inputs */
.name-input, .q-input { width: 100%; min-width: 0; height: 56px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--lilac-3); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 16.5px; outline: none; }
.name-input:focus, .q-input:focus, .code-input:focus { border-color: var(--v); }
.name-input::placeholder, .q-input::placeholder, .search-input::placeholder { color: var(--ink-3); }
.code-input { width: 100%; height: 64px; padding: 0 12px; border-radius: 18px; border: 2px solid var(--lilac-3); background: var(--surface); color: var(--ink); text-align: center; font-size: 27px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; outline: none; }
.code-input::placeholder { color: var(--ink-3); }
.code-input[aria-invalid="true"] { border-color: var(--red); }
.search-box { display: flex; align-items: center; gap: 8px; height: 60px; margin-bottom: 4px; padding: 0 8px 0 16px; border-radius: 18px; background: var(--surface); border: 2px solid var(--lilac-3); box-shadow: 0 4px 0 var(--lilac-3); }
.search-box:focus-within { border-color: var(--v); box-shadow: 0 4px 0 var(--v-soft); }
.search-ic { flex: none; color: var(--ink-3); font-size: 21px; }
.search-input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--ink); font-weight: 700; font-size: 16.5px; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-go { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--v); color: #ffffff; display: grid; place-items: center; font-size: 20px; }

/* a page's own head: the way back, and its name */
.notes-head { display: flex; align-items: center; gap: 14px; }
.notes-head h1, .notes-head h2 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.01em; line-height: 1.15; }
.notes-head p { margin: 0 0 1px; color: var(--ink-2); font-weight: 700; font-size: 14.5px; }
.page-title { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }

/* ---------- the pages with Home, Ask and Me ---------- */
.screen.app { padding: calc(16px + var(--safe-t)) 20px calc(122px + var(--safe-b)); gap: 18px; }
.screen.app > * { flex: none; width: 100%; max-width: 640px; margin-inline: auto; }
/* what scrolls under the bar fades out before it */
.screen.app::after { content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: calc(124px + var(--safe-b)); z-index: 20; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--page) 0%, transparent) 0%, var(--page) 60%); }
.screen.app > .tabs { position: fixed; left: 20px; right: 20px; bottom: calc(16px + var(--safe-b)); z-index: 30; width: auto; max-width: 420px; height: 68px; padding: 7px; border-radius: 24px; background: var(--surface); border: 2px solid var(--lilac-2); box-shadow: 0 5px 0 var(--lilac-2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.tabs-brand { display: none; }
.tab { position: relative; border-radius: 16px; color: var(--ink-2); font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tab .ic { font-size: 22px; }
.tab[aria-current] { background: var(--lilac); color: var(--v-ink); font-weight: 900; }
.tab[aria-current] .ic { color: var(--v); }
@media (hover: hover) { .tab:hover:not([aria-current]) { background: var(--lilac); } }

/* ---------- home ---------- */
.home-head { display: flex; flex-direction: column; gap: 16px; }
.top { position: relative; display: flex; align-items: center; gap: 8px; }
.where { min-width: 0; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--lilac); color: var(--v-ink); font-weight: 800; font-size: 15.5px; display: flex; align-items: center; gap: 6px; }
.where > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where .ic { flex: none; font-size: 16px; rotate: 90deg; transition: rotate .15s; }
.where[aria-expanded="true"] .ic { rotate: -90deg; }
.streak { flex: none; height: 44px; padding: 0 12px; border-radius: 14px; background: var(--butter); color: var(--butter-ink-2); font-size: 15px; font-weight: 800; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.streak.none { background: var(--lilac); color: var(--ink-2); }
.streak.none .f1 { fill: var(--ink-3); } .streak.none .f2 { fill: var(--lilac); }
.me-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--v); color: #ffffff; font-weight: 900; font-size: 17px; }
.menu { position: absolute; left: 0; top: 52px; z-index: 40; min-width: 250px; max-width: min(320px, 100%); padding: 8px; border-radius: 20px; background: var(--surface); border: 2px solid var(--lilac-2); box-shadow: 0 6px 0 var(--lilac-2); display: grid; gap: 2px; }
.menu button { min-height: 48px; padding: 8px 12px; border-radius: 14px; text-align: left; }
.menu button:hover { background: var(--lilac); }
.menu b { display: block; font-weight: 800; font-size: 15.5px; } .menu small { display: block; color: var(--ink-2); font-weight: 700; font-size: 13px; }
.menu hr { border: 0; height: 2px; margin: 4px 8px; background: var(--lilac-2); }
.hello { margin: 0; font-size: 33px; line-height: 1.1; font-weight: 900; letter-spacing: -.02em; overflow-wrap: anywhere; }

.home-cols { display: flex; flex-direction: column; gap: 30px; }
.home-list { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
/* the next class: the ONE violet card, and the one white button on it */
.hero { margin-bottom: 8px; padding: 14px; border-radius: 30px; background: #6C4CF1; box-shadow: 0 8px 0 #4C30C9; color: #ffffff; display: flex; flex-direction: column; }
.hero-board { display: block; height: 128px; border-radius: 20px; background: var(--board-bg); overflow: hidden; }
.hero-text { margin-top: 14px; padding: 0 4px; display: flex; flex-direction: column; gap: 2px; }
.hero-text h2 { margin: 0; font-size: 21px; font-weight: 900; letter-spacing: -.01em; line-height: 1.2; }
.hero-text p { margin: 0; font-size: 14.5px; font-weight: 700; color: #F0EBFF; line-height: 1.35; }
.hero-go { min-height: 56px; margin: 14px 0 5px; border-radius: 18px; background: #ffffff; color: #4C30C9; font-weight: 900; font-size: 18.5px; box-shadow: 0 5px 0 #C6B8FF; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .08s, box-shadow .08s; }
.hero-go:active { transform: translateY(4px); box-shadow: 0 1px 0 #C6B8FF; }
.hero-go .ic { font-size: 20px; }
.hero-go:focus-visible { outline-color: #ffffff; }
/* a class's name, in chalk, on its small board */
.cpic { display: block; width: 100%; height: 100%; }
.cpic.tb { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; padding: 12px 20px; }
.cpic.tb span { font: 700 calc(var(--k, 10) * 2.6px)/1.14 var(--chalk); color: #F4F1E6; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.cpic.tb::after { content: ''; flex: none; width: min(46%, 190px); height: 3px; border-radius: 2px; background: #F7D46A; rotate: -1deg; }
.cpic .doodle, .cpic .mini-board { display: block; width: 100%; height: 100%; }

.chap { display: flex; flex-direction: column; gap: 8px; }
.chap-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chap-head h2 { margin: 0; font-size: 19px; font-weight: 900; letter-spacing: -.01em; line-height: 1.2; }
.chap-head > span { flex: none; font-size: 14.5px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.chap-soon { margin: 0; color: var(--ink-2); font-weight: 700; font-size: 14.5px; }
.lesson .badge { font-size: 18px; }
.lesson.done .badge { background: var(--done); color: var(--done-ink); font-size: 23px; }
.lesson.done b { color: var(--ink-2); } .lesson.done small { color: var(--done-ink); }
.lesson.now .badge { background: var(--v); color: #ffffff; box-shadow: 0 3px 0 var(--v-d); }
.lesson.now b { font-weight: 900; } .lesson.now small { color: var(--v-text); }
.lesson.locked b { color: var(--ink-2); }

/* ---------- Ask ---------- */
.results { display: flex; flex-direction: column; gap: 14px; }
.results:empty { display: none; }
.idea { padding: 16px; border-radius: 22px; border: 2px solid var(--lilac-2); display: flex; flex-direction: column; gap: 8px; }
.idea.big { padding: 0; overflow: hidden; }
.idea-board { min-height: 112px; padding: 22px 20px; background: var(--board-bg); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.idea-board .cl { font: 700 25px/1.2 var(--chalk); color: #F4F1E6; text-wrap: balance; }
.idea-board .stp { font-weight: 800; font-size: 13.5px; color: #F7D46A; }
.idea-in { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.path { font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.idea-inst { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.logo-tile { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #ffffff; font-size: 11px; font-weight: 900; }
.tag { padding: 3px 8px; border-radius: 8px; background: var(--lilac); color: var(--v-ink); font-size: 12px; font-weight: 800; }
.idea-name { font-size: 17px; font-weight: 900; line-height: 1.25; }
.idea-rule { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.idea-unsure { color: var(--ink-2); font-weight: 700; font-size: 13.5px; }
.idea-acts { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.idea-acts .go, .idea-acts .again { width: auto; flex: 1 1 210px; }
.finding { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 700; }
.ch-head { margin-top: 6px; font-size: 14.5px; font-weight: 800; color: var(--ink-2); }
.ask-teacher { min-height: 58px; padding: 8px 16px; border-radius: 18px; border: 2px dashed var(--lilac-3); color: var(--v-text); font-weight: 800; text-align: left; display: flex; align-items: center; gap: 10px; }
.ask-teacher .ic { flex: none; font-size: 22px; }

/* ---------- Me ---------- */
.me-a, .me-b, .me-c { display: flex; flex-direction: column; gap: 18px; }
.me-card { display: flex; align-items: center; gap: 16px; }
.avatar-xl { flex: none; width: 76px; height: 76px; margin-bottom: 5px; border-radius: 50%; background: var(--v); box-shadow: 0 5px 0 var(--v-d); color: #ffffff; font-size: 32px; font-weight: 900; display: grid; place-items: center; }
.me-id { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.me-id h1 { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.profile-chip { min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--lilac); color: var(--v-ink); font-weight: 800; font-size: 14.5px; }
.profile-chip span { font-weight: 700; color: var(--v-text); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.stat { padding: 14px 8px; border-radius: 20px; background: var(--lilac); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat b { font-size: 22px; font-weight: 900; line-height: 1.2; display: inline-flex; align-items: center; gap: 6px; }
.stat b .ic { color: var(--y); font-size: 20px; }
.stat small { font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.week-strip { padding: 16px 18px; border-radius: 22px; border: 2px solid var(--lilac-2); display: flex; flex-direction: column; gap: 12px; }
.week-strip > b { font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.ws-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ws-days span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.ws-days i { width: 100%; max-width: 36px; aspect-ratio: 1; margin-bottom: 3px; border-radius: 12px; background: var(--lilac); }
.ws-days .lit i { background: var(--y); box-shadow: 0 3px 0 var(--y-d); }
.ws-days .is-today { color: var(--ink); }
.ws-days .is-today:not(.lit) i { box-shadow: inset 0 0 0 2px var(--v-hi); }
.gcard, .parent-card, .pay-card { padding: 16px 18px; border-radius: 22px; border: 2px solid var(--lilac-2); display: flex; flex-direction: column; gap: 8px; }
.gcard h2, .parent-card h2 { margin: 0 0 2px; font-size: 17px; font-weight: 900; }
.parent-card p { margin: 0; color: var(--ink-2); font-weight: 700; font-size: 14.5px; line-height: 1.45; }
.parent-form { display: flex; align-items: flex-start; gap: 10px; }
.parent-form .again { flex: none; width: auto; min-height: 56px; padding: 0 20px; }
.parent-card > .again { margin-top: 4px; }
.sub-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ctext { flex: 1; min-width: 0; } .ctext b { display: block; font-weight: 800; } .ctext small { color: var(--ink-2); font-weight: 700; }
.look-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--lilac); }
.look-switch button { min-height: 44px; border-radius: 12px; font-weight: 800; font-size: 15px; color: var(--ink-2); }
.look-switch button[aria-pressed="true"] { background: var(--surface); color: var(--v-ink); box-shadow: 0 2px 0 var(--lilac-3); }

/* ---------- paying, a photo doubt, notes ---------- */
.pay-price { display: flex; align-items: baseline; gap: 8px; } .pay-price b { font-size: 34px; font-weight: 900; letter-spacing: -.02em; } .pay-price small { color: var(--ink-2); font-weight: 800; }
.pay-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 700; line-height: 1.4; }
.pay-list li { position: relative; padding-left: 26px; }
.pay-list li::before { content: ''; position: absolute; left: 2px; top: .28em; width: 14px; height: 8px; border-left: 3px solid var(--done-ink); border-bottom: 3px solid var(--done-ink); border-radius: 1px; rotate: -45deg; scale: .8; }
.pay-when { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--lilac); font-weight: 700; font-size: 14.5px; line-height: 1.45; }
.tree-note { margin: 0; color: var(--ink-2); font-weight: 700; font-size: 13.5px; line-height: 1.5; }
.photo-drop { min-height: 220px; padding: 16px; border-radius: 24px; border: 2px dashed var(--lilac-3); background: var(--lilac); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.drop-ic { width: 60px; height: 60px; margin-bottom: 6px; border-radius: 20px; background: var(--surface); color: var(--v); display: grid; place-items: center; font-size: 28px; }
.photo-drop b { font-weight: 900; font-size: 17px; } .photo-drop small { color: var(--ink-2); font-weight: 700; }
.photo-drop img { max-width: 100%; max-height: 46dvh; border-radius: 16px; }
.screen.notes > * { flex: none; width: 100%; max-width: 720px; margin-inline: auto; }
.note-n { background: rgba(0,0,0,.4); color: #F7D46A; }

/* ---------- welcome and sign in ---------- */
.screen.front { padding: calc(24px + var(--safe-t)) 24px calc(18px + var(--safe-b)); }
.front-main { flex: 1 0 auto; width: 100%; max-width: 440px; margin-inline: auto; display: flex; flex-direction: column; }
.front-hero { flex: none; position: relative; height: clamp(210px, 37dvh, 318px); margin-top: 22px; border-radius: 34px; background: var(--lilac); overflow: hidden; }
.front-hero::before, .front-hero::after { content: ''; position: absolute; border-radius: 50%; background: var(--lilac-3); }
.front-hero::before { width: 190px; height: 190px; left: -56px; top: -64px; }
.front-hero::after { width: 150px; height: 150px; right: -40px; bottom: -52px; }
.front-board { position: absolute; z-index: 1; left: 50%; top: 50%; height: 62%; aspect-ratio: 270 / 192; max-width: 80%; translate: -56% -52%; rotate: -4deg; border: 7px solid #ffffff; border-radius: 24px; background: var(--board-bg); box-shadow: 0 20px 30px -14px rgba(76,48,201,.5); overflow: hidden; }
.front-board .cimg { display: block; width: 100%; height: 100%; }
.front-voice { position: absolute; z-index: 2; right: 8%; bottom: 9%; width: 66px; height: 66px; border-radius: 50%; background: var(--y); box-shadow: 0 6px 0 var(--y-d); color: #3D2A00; display: grid; place-items: center; }
.front-voice svg { width: 30px; height: 30px; }
.front-line { margin: 24px 0 0; font-size: clamp(27px, 8.2vw, 32px); line-height: 1.14; font-weight: 900; letter-spacing: -.02em; }
.front-box { margin-top: auto; padding-top: 22px; }
.front-pane { display: flex; flex-direction: column; gap: 15px; }
.front-pane > .link { align-self: center; margin-top: -8px; }
.front-saved { display: flex; flex-direction: column; gap: 10px; }
.front-saved:empty { display: none; }
.front-saved > .link { align-self: center; font-size: 15px; }
.front-links { display: flex; justify-content: center; gap: 22px; font-size: 14px; font-weight: 700; }
.front-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); text-decoration: none; } .front-links a:hover { color: var(--ink); }
.front-main.in-step .front-hero { display: none; }
.front-main.in-step .front-box { margin-top: 0; }
.google-btn { width: 100%; min-height: 58px; margin-bottom: 5px; padding: 6px 18px; border-radius: 18px; background: var(--v); color: #ffffff; font-weight: 800; font-size: 17.5px; box-shadow: 0 5px 0 var(--v-d); display: flex; align-items: center; justify-content: center; gap: 12px; transition: transform .08s, box-shadow .08s; }
.google-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--v-d); }
.google-btn:disabled { opacity: .7; }
.google-btn svg { flex: none; box-sizing: border-box; width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: #ffffff; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
/* on the sign-in page the class code is the one thing to do; Google is the second way in */
.sheet .google-btn { background: var(--surface); color: var(--ink); border: 2px solid var(--lilac-3); box-shadow: 0 4px 0 var(--lilac-3); font-size: 16.5px; }
.sheet .google-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--lilac-3); }
.screen.login { align-items: center; justify-content: center; }
.sheet { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.sheet-title { margin: 8px 0 0; font-size: 26px; font-weight: 900; letter-spacing: -.02em; line-height: 1.16; text-wrap: balance; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-weight: 800; font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 2px; border-radius: 1px; background: var(--lilac-2); }
.login-note { padding: 14px 16px; border-radius: 18px; background: var(--lilac); font-weight: 700; display: flex; flex-direction: column; gap: 6px; }
.login-note:empty { display: none; }
.login-note p { margin: 0; }
.note-link { padding: 6px 0; color: var(--v-text); font-weight: 800; text-align: left; text-decoration: none; }
.pick-list { display: flex; flex-direction: column; gap: 14px; }

/* ---------- pick your class, about you ---------- */
.screen.pick { gap: 20px; }
.screen.pick > * { flex: none; width: 100%; max-width: 480px; margin-inline: auto; }
.screen.pick > .pick-back { width: 44px; margin-inline: max(0px, calc(50% - 240px)) auto; }
.pick-title { margin: 0 0 4px; font-size: 28px; font-weight: 900; letter-spacing: -.02em; line-height: 1.12; }
.pick-part { display: flex; flex-direction: column; gap: 8px; }
.pick-label { font-size: 14.5px; font-weight: 800; color: var(--ink-2); }
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .opts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opt { min-height: 52px; margin-bottom: 3px; padding: 6px 8px; border-radius: 16px; background: var(--surface); border: 2px solid var(--lilac-3); box-shadow: 0 3px 0 var(--lilac-3); color: var(--ink); font-weight: 800; font-size: 15.5px; line-height: 1.2; }
.opt.on { background: var(--lilac); border-color: var(--v); box-shadow: 0 3px 0 var(--v); color: var(--v-ink); }
.pick-foot { margin-top: 4px; }

/* ---------- class done, review done ---------- */
.screen.cele { align-items: center; text-align: center; gap: 14px; padding-top: calc(36px + var(--safe-t)); }
.screen.cele > * { flex: none; width: 100%; max-width: 440px; }
.screen.cele > .cele-mark { position: relative; width: 96px; height: 96px; margin-bottom: 8px; border-radius: 32px; background: var(--done); color: var(--done-ink); box-shadow: 0 6px 0 color-mix(in srgb, var(--done-ink) 22%, var(--done)); display: grid; place-items: center; font-size: 54px; }
.screen.cele h1 { margin: 4px 0 0; font-size: 38px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; outline: none; }
.screen.cele h1 em { font-style: normal; color: var(--v-text); }
.screen.cele .lede small { display: block; margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.screen.cele > .rate { width: auto; font-size: 36px; gap: 6px; }
.sent { margin: 0; color: var(--ink-2); font-weight: 700; font-size: 14.5px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sent .ic { font-size: 18px; }
.next { padding: 14px 16px; border-radius: 20px; background: var(--lilac); text-align: left; }
.next small { display: block; color: var(--v-text); font-weight: 800; font-size: 13px; } .next b { font-weight: 900; font-size: 16.5px; line-height: 1.25; }
.cele-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.sparkle { position: absolute; inset: 0; pointer-events: none; }
.sparkle i { position: absolute; left: 50%; top: 50%; width: 5px; height: 14px; margin: -7px 0 0 -2.5px; border-radius: 3px; background: var(--y); opacity: 0; }

/* ---------- a tablet: the same column, wider ---------- */
@media (min-width: 600px) {
  .screen.app { padding-left: 32px; padding-right: 32px; }
  .screen.app > * { max-width: 704px; }
  .hello { font-size: 38px; }
  /* the next class lies on its side: its board on the left, the words and Start on the right */
  .hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 22px; padding: 16px; }
  .hero-board { grid-row: 1 / -1; height: auto; min-height: 178px; }
  .hero-text { align-self: center; margin: 0; padding: 0; gap: 4px; }
  .hero-text h2 { font-size: 27px; } .hero-text p { font-size: 16px; }
  .hero-go { margin: 0 0 5px; font-size: 19px; }
  .where, .streak { height: 46px; border-radius: 15px; font-size: 16px; } .where { font-size: 16.5px; }
  .me-btn { width: 46px; height: 46px; font-size: 18px; }
  .chap-head h2 { font-size: 22px; } .chap-head > span { font-size: 16px; }
  /* a class's row: its name, and the minutes on the right */
  .lesson .t { flex-direction: row; align-items: center; gap: 16px; }
  .lesson .t b { flex: 1; min-width: 0; font-size: 18px; }
  .lesson .t small { flex: none; max-width: 45%; text-align: right; font-size: 15px; }
  .lesson.now small, .lesson.done small { font-weight: 800; }
  .hero:not(:has(.hero-board)) { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; }
  .hero:not(:has(.hero-board)) .hero-go { padding: 0 28px; }
  .cpic.tb { padding: 16px 26px; }
  .cpic.tb span { font-size: calc(var(--k, 10) * 3.1px); }
  .class-row, .lesson { min-height: 68px; }
  .front-hero { height: clamp(240px, 40dvh, 360px); }
}

/* ---------- a laptop: the three places down the left, the next class beside the list ---------- */
@media (min-width: 1024px) {
  .screen.app { padding: 26px 44px 44px 244px; gap: 24px; }
  .screen.app::after { display: none; }
  .screen.app > * { max-width: 1040px; }
  .screen.app > .tabs { left: 0; right: auto; top: 0; bottom: 0; width: 200px; max-width: none; height: auto; margin: 0; padding: 28px 16px; border: 0; border-right: 2px solid var(--lilac-2); border-radius: 0; box-shadow: none; display: flex; flex-direction: column; gap: 6px; }
  .tabs-brand { display: flex; align-items: center; min-height: 44px; margin: -4px 0 20px; padding: 0 8px; border-radius: 14px; }
  .tab { flex: none; height: 52px; padding: 0 14px; justify-content: flex-start; gap: 12px; font-size: 17px; }
  .tab .due { margin-left: auto; }
  .home-head { flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 20px; }
  .home-head .top { flex: none; } .home-head .top .sp { display: none; }
  .home-head .menu { left: auto; right: 0; }
  .hello { font-size: 40px; }
  .home-cols { flex-direction: row; align-items: flex-start; gap: 44px; }
  .hero { flex: 1 1 380px; max-width: 480px; position: sticky; top: 0; display: flex; padding: 18px; border-radius: 32px; }
  .hero-board { height: auto; min-height: 0; aspect-ratio: 16 / 8; border-radius: 22px; }
  .hero-text { align-self: stretch; margin-top: 18px; padding: 0 4px; gap: 3px; }
  .hero-go { margin: 18px 0 5px; min-height: 60px; font-size: 20px; }
  .lesson { min-height: 58px; } .lesson .t b { font-size: 17px; } .lesson .t small { font-size: 14.5px; }
  .hero:not(:has(.hero-board)) .hero-go { padding: 0; }
  .home-list { flex: 1.25 1 420px; }
  .screen.app.sub > * , .screen.app.search > * { max-width: 760px; }
  .screen.app.me { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 560px); grid-template-rows: auto 1fr; grid-template-areas: "a b" "c b"; justify-content: center; align-content: start; column-gap: 48px; row-gap: 18px; }
  .screen.app.me > * { max-width: none; margin: 0; }
  .me-a { grid-area: a; } .me-b { grid-area: b; } .me-c { grid-area: c; }
  /* welcome: the picture on the left, the words and the ways in on the right */
  .screen.front { justify-content: center; padding: 40px 48px; }
  .front-main { flex: none; max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 420px); grid-template-rows: 1fr auto auto auto auto 1fr; grid-template-areas: "hero ." "hero brand" "hero line" "hero box" "hero links" "hero ."; column-gap: 64px; }
  .front-main > .brand { grid-area: brand; }
  /* the picture stays in view while a doubt's answers scroll beside it */
  .front-hero { grid-area: hero; align-self: start; position: sticky; top: 0; height: min(560px, 72dvh); margin: 0; border-radius: 44px; }
  .front-hero::before { width: 300px; height: 300px; left: -80px; top: -90px; } .front-hero::after { width: 240px; height: 240px; right: -60px; bottom: -80px; }
  .front-board { height: 56%; border-width: 9px; border-radius: 30px; }
  .front-voice { width: 88px; height: 88px; } .front-voice svg { width: 40px; height: 40px; }
  .front-line { grid-area: line; margin-top: 26px; font-size: 40px; }
  .front-box { grid-area: box; margin-top: 30px; padding: 0; }
  .front-links { grid-area: links; justify-content: flex-start; margin-top: 10px; }
  .front-main.in-step .front-hero { display: block; }
  .front-main.in-step .front-box { margin-top: 30px; }
  .screen.cele { justify-content: center; padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) { .go, .again, .pill-go, .hero-go, .google-btn { transition: none; } }
