/* The simpler screens (October 2026). Loaded last. One main button per screen, big and obvious; everything else
   smaller or one tap away. Under-12s get bigger buttons with an icon and one word.
   1. menus: a student's 3 places (a bar at the bottom of a phone), the admin's group, the "⋯" menus
   2. buttons that react at once, and skeletons instead of spinners
   3. Practice, the lessons and topics a tap away, My progress, the first win
   4. the lesson screen: true / false, "I've got this"
   5. Settings
   6. teacher: Today, ready lessons, what the tutor knows, building a lesson, importing questions */

/* ============================================================ 1. menus */
/* "ניהול" / Admin (app.js adminHub): a card for each of the admin's tools */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0.75rem; }
.hub-card { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem 1.1rem; min-height: 2.75rem; color: inherit; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hub-card:hover { border-color: var(--accent); }
.hub-card .icon { flex: none; margin-top: 0.15rem; color: var(--accent-strong); }
.hub-text { display: grid; gap: 0.2rem; }
/* the rematch page's jargon, behind "פרטים" / Details (rematch.js) */
.rm-details { margin: -0.4rem 0 1rem; }
.rm-waves { margin: -0.3rem 0 0.6rem; padding-inline-start: 1.2rem; }
.rm-details > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--accent-strong); font-weight: 600; }
.more-btn { padding: 0.4rem 0.55rem; border-radius: 99px; }
.more-btn .icon { stroke-width: 3.2; }
.menu-btn { gap: 0.35rem; }
.menu-btn .caret-down { font-size: 0.8em; color: var(--muted); }
.lm-menu { max-width: calc(100vw - 16px); }

/* Students: Practice, My progress, Settings. On a phone they are a bar at the bottom, always in reach. */
.student-shell .sidebar-foot .who { display: none; }
body[data-theme="kids"] .student-shell .nav-link { padding: 0.8rem 0.9rem; font-size: 1.12rem; }
body[data-theme="kids"] .student-shell .nav-link .icon { width: 1.6rem; height: 1.6rem; }
@media (max-width: 860px) {
  .student-shell .sidebar {
    position: fixed; inset: auto 0 0 0; top: auto; width: 100%; height: auto; transform: none; z-index: 25;
    flex-direction: row; padding: 0.3rem 0.5rem calc(0.3rem + env(safe-area-inset-bottom)); overflow: visible;
    border-inline-end: 0; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(21, 32, 59, 0.06);
  }
  [dir="rtl"] .student-shell .sidebar { transform: none; }
  .student-shell .sidebar > .wordmark, .student-shell .sidebar-foot { display: none; }
  .student-shell .nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; margin: 0; gap: 0.3rem; }
  .student-shell .nav-link { flex-direction: column; gap: 0.15rem; justify-content: center; text-align: center; padding: 0.4rem 0.2rem;
    font-size: 0.82rem; min-height: 3.2rem; }
  body[data-theme="kids"] .student-shell .nav-link { font-size: 0.95rem; min-height: 3.8rem; padding: 0.4rem 0.2rem; }
  .student-shell .shell-main { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
  body[data-theme="kids"] .student-shell .shell-main { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .student-shell .scrim { display: none !important; }
}

/* ============================================================ 2. buttons react at once; skeletons */
.btn[aria-busy="true"], button[aria-busy="true"] { cursor: progress; opacity: 0.7; }
.btn:active:not([disabled]) { filter: brightness(0.95); }
.btn.quiet:active:not([disabled]), .btn.text:active:not([disabled]) { background: var(--bg); }
.tile:active { transform: translateY(1px); }

.sk { display: block; border-radius: var(--radius); background: linear-gradient(90deg, var(--line) 25%, var(--bg) 50%, var(--line) 75%);
  background-size: 400% 100%; animation: sk-shine 1.3s ease-in-out infinite; }
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-title { height: 2rem; width: min(18rem, 70%); }
.sk-big { height: 6rem; }
.sk-row { height: 3.2rem; }
.sk-row.short { width: 60%; }
.sk-line { height: 0.9rem; margin: 0.45rem 0; width: 100%; }
.sk-line:nth-child(3n) { width: 70%; }
.sk-card { height: 7.5rem; }
.sk-page { padding-top: 2rem; }

/* ============================================================ 3. Practice and the pages around it */
.back-link { justify-self: start; color: var(--muted); text-decoration: none; font-size: 0.92rem; padding: 0.2rem 0; }
.back-link:hover { color: var(--ink); text-decoration: underline; }
.page .greeting { min-height: 0; }

.review-strip { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; padding: 0.7rem 1rem; border-radius: var(--radius-lg);
  background: var(--mark-soft); border: 1.5px solid var(--mark); }
.review-strip .grow { flex: 1; min-width: 10rem; }
.review-icon { font-size: 1.3rem; }

.go-card { display: grid; justify-items: center; gap: 0.7rem; padding: clamp(1.4rem, 5vw, 2.4rem) 1.2rem; text-align: center;
  background: var(--surface); border-radius: var(--radius-lg); border: 1.5px solid var(--line); }
.go-btn { font-size: clamp(1.2rem, 3.5vw, 1.45rem); min-height: 4rem; width: min(100%, 26rem); padding: 0.9rem 1.6rem; gap: 0.7rem;
  border-radius: calc(var(--radius) + 6px); white-space: normal; }
.go-icon { font-size: 0.85em; line-height: 1; }
.go-line { max-width: 34rem; color: var(--muted); overflow-wrap: anywhere; }
.go-line a { color: inherit; }
body[data-theme="kids"] .go-btn { font-size: 1.8rem; min-height: 5.4rem; width: min(100%, 22rem); }
body[data-theme="kids"] .go-icon { font-size: 1.1em; }
body[data-theme="kids"] .go-line { color: var(--ink); font-weight: 700; font-size: 1.05rem; }

.empty-state { display: grid; gap: 0.6rem; justify-items: start; padding: 1.2rem 1.25rem; background: var(--surface);
  border-radius: var(--radius-lg); border: 1.5px dashed var(--line); }
.empty-state h2 { font-size: 1.1rem; }
.empty-state .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.empty-state .join { margin-top: 0.2rem; }

.ways { display: grid; gap: 0.5rem; }
.ways .section-title { margin-bottom: 0; }
.tiles { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); }
.tile { position: relative; display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 0.95rem; min-height: 3.4rem;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); color: var(--ink);
  text-decoration: none; font-weight: 700; }
.tile:hover { border-color: var(--accent); }
.tile-icon { font-size: 1.3rem; line-height: 1; }
.tile-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tile-count { min-width: 1.6rem; padding: 0.05rem 0.45rem; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 0.8rem; text-align: center; }
body[data-theme="kids"] .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); }
body[data-theme="kids"] .tile { flex-direction: column; justify-content: center; text-align: center; min-height: 7rem; font-size: 1.15rem;
  border-width: 2px; box-shadow: 0 var(--press) 0 var(--line); }
body[data-theme="kids"] .tile-icon { font-size: 2.3rem; }
body[data-theme="kids"] .tile-count { position: absolute; top: 0.5rem; inset-inline-end: 0.5rem; }
body[data-theme="kids"] .ways .section-title { display: none; }

/* by topic */
.topic-group { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.topic-group > summary { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.85rem 1rem; cursor: pointer; font-weight: 700; list-style: none; }
.topic-group > summary::-webkit-details-marker { display: none; }
.topic-group > summary::after { content: "▾"; margin-inline-start: auto; color: var(--muted); }
.topic-group[open] > summary::after { content: "▴"; }
.topic-list, .topic-parts { list-style: none; margin: 0; padding: 0; }
.topic-row { border-top: 1px solid var(--line); padding: 0.6rem 1rem; display: grid; gap: 0.4rem; }
.topic-main { display: flex; align-items: center; gap: 0.5rem 0.7rem; flex-wrap: wrap; }
.topic-name { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.topic-main .btn { padding: 0.45rem 0.9rem; }
.topic-parts { display: grid; gap: 0.3rem; padding-inline-start: 1rem; border-inline-start: 2px solid var(--line); }
.topic-parts li { display: flex; align-items: center; gap: 0.6rem; }
.topic-parts li .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
body[data-theme="kids"] .topic-main .btn { padding: 0.6rem 1.2rem; font-size: 1.05rem; }

/* My progress */
.done-lines { display: grid; gap: 0.35rem; }
.done-lines .section-title { margin-bottom: 0.2rem; }
.bank-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; }
.bank-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.bank-item .grow { display: grid; gap: 0.1rem; min-width: 0; flex: 1; }
.bank-q { font-weight: 700; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.bank-item.paused .bank-q { color: var(--muted); }
.bank-panel .panel-head .btn { margin-inline-start: auto; }
.more-box { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 0 1rem; }
.more-box > summary { cursor: pointer; padding: 0.8rem 0; font-weight: 700; color: var(--muted); }
.more-box[open] { padding-bottom: 1rem; }
.more-box[open] > summary { color: var(--ink); }
.more-box .bars { margin-top: 0.4rem; }
.panel .more-box, .plan-panel .more-box { border: 0; padding: 0; background: none; }
.plan-focus-line { font-size: 1.05rem; }
.badges.compact .badge { padding: 0.45rem 0.4rem; }
body[data-theme="kids"] .stars-bar .star-count { font-size: 2.2rem; padding: 0.2rem 1.3rem; }
body[data-theme="kids"] .badges.compact { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
body[data-theme="kids"] .badges.compact .badge .icon-emoji { font-size: 2.2rem; }

/* the first win: one card, one button, before any menu */
.first-win-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem var(--gutter, 1rem); }
.fw-card { width: min(28rem, 100%); display: grid; justify-items: center; gap: 0.9rem; text-align: center; background: var(--surface);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 6vw, 2.6rem) 1.4rem; box-shadow: 0 10px 40px rgba(21, 32, 59, 0.08); }
.fw-card h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.25; }
.fw-emoji { font-size: 3rem; line-height: 1; }

/* ============================================================ 4. the lesson screen */
.tf-form .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.tf-form .choice { justify-content: center; align-items: center; min-height: 3.6rem; font-weight: 700; font-size: 1.1rem; }
.tf-form .choice input { position: absolute; opacity: 0; pointer-events: none; }
.tf-form .choice { position: relative; }
body[data-theme="kids"] .tf-form .choice { min-height: 4.6rem; font-size: 1.35rem; }
.got-it { white-space: nowrap; }
.session.first-win .session-head { padding-block: 0.9rem; }

/* ============================================================ 5. Settings */
.more-settings { padding: 0; }
.more-settings > summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; color: var(--muted); }
.more-settings[open] > summary { border-bottom: 1px solid var(--line); color: var(--ink); }
.class-setting { display: grid; gap: 0.5rem; min-width: min(100%, 16rem); }
.class-setting .join { margin-top: 0; }

/* ============================================================ 6. teacher */
.teacher-go { justify-items: start; text-align: start; padding: 1.1rem 1.25rem; }
.teacher-go .go-btn { width: auto; min-height: 3.2rem; font-size: 1.15rem; padding-inline: 1.6rem; }
.week-line { margin-top: -0.4rem; }
.stuck-list, .reteach-list, .kn-list, .kn-mistakes { list-style: none; margin: 0; padding: 0; display: grid; }
.stuck-list li { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.stuck-list li:first-child, .reteach-list li:first-child, .kn-mistakes li:first-child { border-top: 0; padding-top: 0; }
.stuck-list .grow { flex: 1; min-width: 12rem; display: grid; gap: 0.15rem; }
.reteach { display: grid; gap: 0.3rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.reteach-q { unicode-bidi: plaintext; overflow-wrap: anywhere; }
.reteach-note { background: var(--accent-soft); border-radius: var(--radius); padding: 0.7rem 0.85rem; white-space: pre-wrap; }
.wrong-text { color: var(--wrong); font-weight: 700; }
.good-text { color: var(--accent-strong); }
.panel-head .btn { white-space: normal; }

.examples { display: grid; gap: 0.6rem; margin-top: 0.4rem; }
.example-list { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.example { display: grid; gap: 0.35rem; align-content: start; padding: 0.85rem 0.95rem; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.example .btn { justify-self: start; margin-top: 0.3rem; }
.example-kinds .chip { margin-inline-end: 0.25rem; font-size: 0.76rem; }
.first-lesson .panel-body { display: grid; gap: 0.6rem; }

.knows-btn { margin-inline-start: auto; }
.knows-dialog { width: min(640px, calc(100vw - 2rem)); padding: 1.2rem 1.4rem 1.4rem; }
.knows-head { display: flex; align-items: flex-start; gap: 0.6rem; }
.knows-head h2 { flex: 1; }
.knows-head .btn.text { font-size: 1.5rem; line-height: 1; padding: 0.1rem 0.4rem; }
.knows { display: grid; gap: 0.9rem; margin-top: 0.8rem; }
.kn-summary { background: var(--accent-soft); border-radius: var(--radius); padding: 0.7rem 0.85rem; }
.kn-section h3 { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.35rem; }
.kn-list li { padding: 0.25rem 0; }
.kn-list.good li::before { content: "✓ "; color: var(--accent-strong); }
.kn-list.weak li::before { content: "• "; color: var(--wrong); }
.kn-mistakes li { display: grid; gap: 0.1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.kn-mistakes b { unicode-bidi: plaintext; }

/* building a lesson */
.q-more { margin-top: 0.1rem; }
.q-more > summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; padding: 0.2rem 0; }
.q-more-fields { display: grid; gap: 0.6rem; margin-top: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.q-more-fields .full { grid-column: 1 / -1; }
.q-option.fixed input[type="text"] { background: var(--bg); font-weight: 700; }
.build-options > summary { cursor: pointer; color: var(--muted); font-size: 0.92rem; }
.build-options .check { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.draft-card h2 { unicode-bidi: plaintext; }

/* importing questions */
.im-dialog { width: min(760px, calc(100vw - 2rem)); padding: 1.2rem 1.4rem 1.4rem; }
.im-body { display: grid; gap: 0.75rem; margin-top: 0.6rem; }
.im-body .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.im-columns { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: 0.15rem; }
.im-errors { background: var(--wrong-soft); border-radius: var(--radius); padding: 0.7rem 0.9rem; max-height: 14rem; overflow-y: auto; }
.im-errors ul { margin: 0.3rem 0 0; padding-inline-start: 1.1rem; display: grid; gap: 0.2rem; }
.im-table { max-height: 18rem; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.im-table td { vertical-align: top; }
.join-code { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.08em; background: var(--bg); padding: 0.1rem 0.5rem; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* Lines that keep their own direction (a maths-only question, an English title) still line up with the page. */
.bank-q, .reteach-q, .kn-mistakes b, .topic-name, .example b, .draft-card h2 { unicode-bidi: plaintext; }
[dir="rtl"] :is(.bank-q, .reteach-q, .kn-mistakes b, .topic-name, .example b, .draft-card h2) { text-align: right; }
[dir="ltr"] :is(.bank-q, .reteach-q, .kn-mistakes b, .topic-name, .example b, .draft-card h2) { text-align: left; }

/* The help button stays above a student's bar at the bottom of a phone, and is smaller there. */
@media (max-width: 860px) {
  body:has(.student-shell) .help-fab { bottom: calc(5rem + env(safe-area-inset-bottom)); width: 3rem; height: 3rem; }
  body[data-theme="kids"]:has(.student-shell) .help-fab { bottom: calc(5.6rem + env(safe-area-inset-bottom)); }
  body:has(.student-shell) .help-fab .help-agent { width: 2rem; height: 2rem; }
}

/* In a lesson on a phone the help button would cover the answer buttons: the tutor is right there, so it hides. */
@media (max-width: 860px) { body:has(#app > .session) .help-fab { display: none; } }

/* The payment window (pay.js): instead of an error when something needs paying */
.pay-dialog { width: min(520px, calc(100vw - 2rem)); }
.pay-body { display: grid; gap: 0.8rem; padding: 1.3rem 1.4rem 1.4rem; }
.pay-body p { margin: 0; }
.pay-dialog .pay-form { padding: 0; gap: 0.8rem; }
.pay-choices { display: grid; gap: 0.6rem; }
.pay-choice { display: flex; gap: 0.7rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.75rem 0.9rem; cursor: pointer; }
.pay-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-choice > input { margin-top: 0.25rem; accent-color: var(--accent); }
.pay-choice .grow { display: grid; gap: 0.2rem; }
.pay-input { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; }
.pay-input[hidden] { display: none; }
.pay-input input { width: 7rem; }
.org-blocked { display: grid; gap: 0.5rem; }
.org-blocked p { margin: 0; }
.org-blocked .btn { justify-self: start; }

/* Signing in with an email, or a code by email (signin.js); the code box of the sign-up too (signup.js) */
.si-form { display: grid; gap: 0.9rem; }
.si-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin: 0.4rem 0 0; }
.si-links .btn.text { padding-inline: 0; }
.si-code { font-size: 1.6rem; letter-spacing: 0.5em; text-align: center; font-variant-numeric: tabular-nums; max-width: 14rem; }

/* The "not a robot" box (Cloudflare Turnstile; kit.captcha in signup.js) */
.cap-box { margin: 10px 0 2px; min-height: 65px; }
.cap-box iframe { max-width: 100%; }

/* A dialog's action that cannot be undone (deleting the account, the end of the school year): red, not green */
.btn.danger-btn { background: var(--wrong); box-shadow: 0 var(--press, 3px) 0 color-mix(in srgb, var(--wrong) 78%, #000); }
.btn.danger-btn:hover { background: color-mix(in srgb, var(--wrong) 90%, #000); }
/* Tap targets of 44px on touch screens and phone widths where people sign in, sign up, change settings and find the
   menus (WCAG 2.5.5 / IS 5568): the sign-in tabs and text buttons, Settings' choices, the admin's teacher/student
   switch, the menu and "⋯" buttons, and "Have a code?" */
@media (pointer: coarse), (max-width: 860px) {
  .auth-card .segmented button, .auth-card .btn.text, .setting-row .btn.text, .setting-row .segmented button, dialog .btn,
  .role-switch .segmented button, .btn.text.code-have { min-height: 2.75rem; }
  .mobile-bar > .icon-btn, .more-btn { min-height: 2.75rem; min-width: 2.75rem; }
}
/* On a phone the sign-in and sign-up cards reach the bottom corner: the help button would cover their links */
@media (max-width: 860px) { body:has(#app > main.auth) .help-fab { display: none; } }

/* The terms of use and the privacy policy (legal.js): the sign-up's unticked box, and the links under the sign-in card
   and in Settings. The box is big enough to tap; the links inside it open the pages in a new tab. */
.terms-box { display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1.5; cursor: pointer; margin-top: 0.2rem; }
.terms-box input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--accent); cursor: pointer; }
.terms-box a, .legal-links a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.legal-links { margin: 0.4rem 0 0; text-align: center; color: var(--muted); }
.setting-row .legal-links { margin: 0; text-align: start; }
.legal-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.3rem; }   /* 44px */
@media (pointer: coarse) {
  .terms-box input { width: 1.5rem; height: 1.5rem; }
}

/* --- accounts slice (helper 1) --- */
/* Free-trial codes (pay.js "Enter your code", codes.js Settings row and the admin's Trial codes card) */
.code-have { min-height: 44px; justify-self: start; }
.code-input { font-size: 1.25rem; letter-spacing: 0.12em; text-transform: uppercase; max-width: 16rem; min-height: 44px; }
.code-note { margin: 0; min-height: 1.3em; }
.code-note.bad { color: var(--wrong); }
.code-ended { font-weight: 700; }
.pay-dialog .actions .btn, .tc-panel .btn { min-height: 44px; }
.tc-form { display: grid; gap: 0.8rem; margin: 0.6rem 0 1rem; }
.tc-count { max-width: 7rem; }
.tc-counter { display: block; margin-top: 0.2rem; }
.tc-fresh { border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 0.8rem 1rem; margin-bottom: 1rem; }
.tc-fresh[hidden] { display: none; }
.tc-fresh-list, .tc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.tc-fresh-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.tc-code { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.08em; }
.tc-all { margin: 0.5rem 0 0; font-size: 0.9rem; white-space: pre-wrap; }
.tc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.tc-row .grow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; min-width: 12rem; }
.tc-row .grow p { flex-basis: 100%; margin: 0; }
.tc-hint { font-weight: 700; }
/* The grade instead of the birth date (signup.js): "finished school" on a row of its own, then which maths */
.su-grade { min-height: 44px; }
.su-grades .su-finished { grid-column: 1 / -1; }
.su-maths { display: grid; gap: 0.5rem; margin-top: 0.8rem; }
.su-maths[hidden] { display: none; }
.su-maths-q { margin: 0; font-weight: 700; }
.su-adult { font-size: 1.05rem; min-height: 44px; align-items: center; }
.gr-setting { display: grid; gap: 0.5rem; justify-items: start; }
.gr-setting .select, .gr-setting .btn { min-height: 44px; }
.gr-note { margin: 0; }
/* The account button and its menu (app.js accountButton): a plain white popover, thin border, soft shadow, 44px rows */
.acct-btn { display: flex; align-items: center; gap: 0.65rem; width: 100%; min-height: 48px; padding: 0.45rem 0.6rem; border: 0;
  border-radius: var(--radius); background: none; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { background: var(--bg); }
.acct-avatar { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; line-height: 1; }
.acct-text { display: grid; min-width: 0; line-height: 1.3; }
.acct-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-mini { width: auto; min-width: 44px; min-height: 44px; padding: 0.2rem; justify-content: center; flex: none; border-radius: 50%; }
.mobile-bar .acct-mini { margin-inline-start: auto; }
.mobile-bar .install-top ~ .acct-mini, .mobile-bar .role-switch ~ .acct-mini { margin-inline-start: 0; }
.acct-pop { position: fixed; z-index: 45; min-width: 15rem; max-width: calc(100vw - 16px); margin: 0; padding: 0.35rem; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(21, 32, 59, 0.16); }
.acct-sub { min-width: 11rem; }
.acct-head { padding: 0.45rem 0.7rem 0.4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { list-style: none; margin: 0; padding: 0; }
.acct-item { display: flex; align-items: center; gap: 0.65rem; width: 100%; min-height: 44px; padding: 0.5rem 0.7rem; border: 0;
  border-radius: calc(var(--radius) - 4px); background: none; color: var(--ink); font: inherit; text-align: start; text-decoration: none; cursor: pointer; }
.acct-item:hover, .acct-item:focus-visible, .acct-item[aria-expanded="true"] { background: var(--bg); }
.acct-item:focus-visible { outline-offset: -3px; }
.acct-label { flex: 1; }
.acct-sub .acct-item .icon { color: var(--accent-strong); }
[dir="rtl"] .acct-has-sub > .icon:last-child { transform: scaleX(-1); }     /* the arrow points toward the list */
.acct-sep { height: 1px; background: var(--line); margin: 0.3rem 0.4rem; }
body[data-theme="kids"] .acct-avatar { width: 2.6rem; height: 2.6rem; font-size: 1.15rem; }
body[data-theme="kids"] .acct-item { min-height: 52px; font-size: 1.08rem; }
@media (max-width: 860px) { .sidebar-foot .acct-btn { display: none; } }   /* a phone: the corner button instead */
/* --- end accounts slice (helper 1) --- */
