/* QuizStride app pages (accounts + families). Loaded after quibzy.css. No external resources. */
.wrap.app { max-width: 640px; }
.preview-banner { padding: 12px 14px; border-radius: 14px; background: rgba(56,189,248,0.12); border: 1.5px solid rgba(56,189,248,0.55); color: #bae6fd; font-size: 0.92rem; }
.preview-banner a { color: #e0f2fe; font-weight: 700; }
.form { gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.98rem; }
.form input[type=text], .form input[type=email], .form input[type=password], .form select { font: inherit; font-weight: 500; color: var(--text); background: rgba(255,255,255,0.07); border: 1.5px solid var(--card-border); border-radius: 12px; padding: 12px 14px; min-height: 50px; width: 100%; }
.form input:focus-visible, .form select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.form select option { color: #0b1220; }
.hint { font-weight: 500; font-size: 0.85rem; color: var(--text-muted); }
.form label.check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 500; cursor: pointer; }
.form label.check input { width: 24px; height: 24px; min-width: 24px; margin-top: 2px; accent-color: #38bdf8; }
.msg { min-height: 1.3em; font-size: 0.95rem; overflow-wrap: anywhere; }
.msg.err { color: #fca5a5; font-weight: 700; }
.msg.ok { color: #6ee7b7; font-weight: 700; }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 0.95rem; }
.btn.danger { background: rgba(239,68,68,0.16); border-color: rgba(239,68,68,0.7); color: #fecaca; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar .who { color: var(--text-muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.list { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 8px; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); }
.list .name { font-weight: 800; overflow-wrap: anywhere; }
.list .sub { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(167,139,250,0.2); border: 1px solid rgba(167,139,250,0.6); color: #ddd6fe; }
.confirm { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(239,68,68,0.1); border: 1.5px solid rgba(239,68,68,0.6); }
.confirm[hidden] { display: none; }
.linkbox { display: flex; gap: 8px; flex-wrap: wrap; }
.linkbox input { flex: 1; min-width: 200px; font: inherit; font-size: 0.85rem; color: var(--text); background: rgba(255,255,255,0.07); border: 1.5px solid var(--card-border); border-radius: 12px; padding: 10px 12px; min-height: 46px; }
.mail { border: 1px solid var(--card-border); border-radius: 12px; padding: 12px; background: rgba(255,255,255,0.04); display: flex; flex-direction: column; gap: 6px; }
.mail pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 0.88rem; color: var(--text-muted); }
.mail a { overflow-wrap: anywhere; }
.center { text-align: center; }

/* ===== QuizStride phase 3: quiz features (ported from the Kids look and feel, in QuizStride colours: pink / violet / sky). Appended to the phase 2 app CSS. ===== */
:root { --violet: #a78bfa; --good: #34d399; --bad: #fda4af; --rose: #f472b6; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap.app.with-side { max-width: 1040px; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 20px; background: rgba(244,114,182,0.2); color: #fbcfe8; }
.badge.amber { background: rgba(245,158,11,0.2); color: #fbbf24; }
.badge.violet { background: rgba(167,139,250,0.2); color: #c4b5fd; }
.notice { font-size: 0.9rem; border-radius: 12px; padding: 10px 14px; background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.3); color: #7dd3fc; }
.notice.good { border-color: rgba(52,211,153,0.5); color: #a7f3d0; }
.notice.bad { border-color: rgba(244,63,94,0.5); color: #fecdd3; }
.err { color: var(--bad); font-size: 0.95rem; font-weight: 700; min-height: 1.4em; }
.btn.tiny { min-height: 40px; padding: 4px 12px; font-size: 0.85rem; border-radius: 10px; }
.privacy-note { font-size: 0.82rem; color: var(--text-muted); }
label.lbl { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-muted); line-height: 1.35; }
.chk input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--accent); }
input[type=file] { width: 100%; padding: 12px; min-height: 56px; font: inherit; color: var(--text); background: #0d1322; border: 2px dashed var(--card-border); border-radius: 14px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 800; margin-right: 12px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--card-border); background: rgba(255,255,255,0.1); color: var(--text); cursor: pointer; }
.form input[type=text], .form select, .card input[type=text] { font: inherit; font-weight: 500; color: var(--text); background: rgba(255,255,255,0.07); border: 1.5px solid var(--card-border); border-radius: 12px; padding: 12px 14px; min-height: 50px; width: 100%; }
.card select option { color: #0b1220; }

/* sidebar layout (parent sections and child subjects) */
.subj-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.subj-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 12px; padding: 10px; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--card-border); }
.subj-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid transparent; background: transparent; color: var(--text); font: inherit; font-size: 1.02rem; font-weight: 700; text-align: left; cursor: pointer; }
.subj-name { min-width: 0; }
.subj-btn:hover { background: rgba(255,255,255,0.06); }
.subj-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.subj-btn[aria-current="true"] { background: rgba(167,139,250,0.2); border-color: rgba(167,139,250,0.6); }
.subj-btn.is-empty { color: var(--text-muted); font-weight: 600; }
.subj-btn.grp { margin-top: 8px; position: relative; }
.subj-btn.grp::before { content: ''; position: absolute; top: -7px; left: 14px; right: 14px; height: 1px; background: var(--card-border); }
.subj-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; background: rgba(245,158,11,0.25); color: #fbbf24; font-variant-numeric: tabular-nums; }
.subj-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.subj-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.subsec { display: flex; flex-direction: column; gap: 10px; }
.subsec h3 { font-size: 1rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; display: flex; align-items: center; gap: 10px; }
.subsec .cnt { font-size: 0.8rem; padding: 2px 10px; border-radius: 12px; background: rgba(255,255,255,0.08); color: var(--text); letter-spacing: 0; }
.sec-empty { padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--card-border); }
@media (max-width: 719px) {
  .wrap.app.with-side { max-width: 640px; }
  .subj-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .subj-nav { flex-direction: row; overflow-x: auto; position: sticky; top: 0; z-index: 5; padding: 8px; gap: 8px; border-radius: 16px; background: rgba(9,13,22,0.94); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .subj-btn { width: auto; flex: 0 0 auto; min-height: 56px; padding: 10px 16px; white-space: nowrap; border-color: var(--card-border); }
  .subj-btn.grp { margin-top: 0; margin-left: 10px; }
  .subj-btn.grp::before { top: 12px; bottom: 12px; left: -9px; right: auto; width: 1px; height: auto; }
}

/* quiz list, player, results (child) */
.quiz-list { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0 !important; }
.quiz-item { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--card-bg); border: 1.5px solid var(--card-border); }
.quiz-item h2 { font-size: 1.15rem; }
.quiz-item.is-taken { border-color: rgba(52,211,153,0.35); }
.quiz-item .row { margin-top: 4px; }
.quiz-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.last-score { font-size: 0.85rem; font-weight: 700; color: var(--good); }
.progress { height: 10px; border-radius: 10px; background: rgba(255,255,255,0.08); overflow: hidden; width: 100%; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #f472b6, #a78bfa, #38bdf8); transition: width .25s ease; }
.q-prompt { font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.q-count { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
fieldset.choices { border: 0; display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--card-border); background: rgba(255,255,255,0.05); font-size: 1.05rem; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.choice:hover { border-color: rgba(167,139,250,0.6); }
.choice input { width: 26px; height: 26px; accent-color: #a78bfa; flex: none; }
.choice.picked { border-color: var(--accent); background: rgba(56,189,248,0.16); }
.nav-row { display: flex; gap: 10px; }
.nav-row .btn { flex: 1; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dots button { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--card-border); background: transparent; color: var(--text-muted); font: inherit; font-weight: 800; cursor: pointer; }
.dots button.answered { background: rgba(167,139,250,0.2); border-color: rgba(167,139,250,0.6); color: var(--text); }
.dots button[aria-current=true] { outline: 2px solid var(--accent); outline-offset: 2px; }
.score-big { font-size: 3.2rem; font-weight: 900; text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.score-big small { font-size: 1.3rem; color: var(--text-muted); font-weight: 700; }
.score-msg { text-align: center; font-weight: 800; font-size: 1.15rem; }
.card.center { align-items: center; text-align: center; }
.topics { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0 !important; }
.topics li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.05); font-weight: 700; }
.topics li.weak { border: 1.5px solid rgba(245,158,11,0.6); }
.corr { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0 !important; }
.corr li { padding: 14px 16px; border-radius: 16px; border: 2px solid var(--card-border); background: var(--card-bg); display: flex; flex-direction: column; gap: 6px; }
.corr li.right { border-color: rgba(52,211,153,0.6); }
.corr li.wrong { border-color: rgba(253,164,175,0.7); }
.corr .c-head { font-weight: 800; }
.corr .mark { font-weight: 900; }
.corr li.right .mark { color: var(--good); }
.corr li.wrong .mark { color: var(--bad); }
.corr dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 0.95rem; }
.corr dt { color: var(--text-muted); font-weight: 700; }
.corr dd { font-weight: 700; overflow-wrap: anywhere; }
.corr .expl { font-size: 0.92rem; color: #cbd5e1; border-left: 3px solid var(--accent); padding-left: 10px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-row button { flex: 1; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--card-border); background: transparent; color: var(--text-muted); font: inherit; font-weight: 800; cursor: pointer; padding: 0 12px; }
.filter-row button[aria-pressed=true] { color: var(--text); background: rgba(167,139,250,0.2); border-color: rgba(167,139,250,0.6); }
.pass-input { text-align: center; font-size: 2rem !important; font-weight: 800; letter-spacing: 0.5em; padding-left: 0.5em !important; font-variant-numeric: tabular-nums; }

/* parent: stats, tables, library, review lists */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.8rem; color: var(--text-muted); font-weight: 700; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th, table.data td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--card-border); overflow-wrap: anywhere; }
table.data th { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.act, table.data th.act { text-align: right; width: 1%; white-space: nowrap; }
.tablewrap { overflow-x: auto; }
.bar-cell { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.bar-cell .track { flex: 1; height: 10px; border-radius: 10px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar-cell .track i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #f43f5e); }
.chips { margin: 4px 0; }
.lib-quiz { border-top: 1px solid var(--card-border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.qv-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; padding: 0 !important; }
.qv { border: 1px solid var(--card-border); border-radius: 14px; padding: 12px 14px; background: rgba(255,255,255,0.03); display: flex; flex-direction: column; gap: 6px; }
.qv-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.qv-topic { font-size: 0.78rem; color: var(--amber); text-transform: uppercase; letter-spacing: 0.05em; text-align: right; }
.qv-prompt { font-weight: 600; }
.qv-choices { padding-left: 1.6em !important; display: flex; flex-direction: column; gap: 4px; }
.qv-choices li.right { color: #a7f3d0; font-weight: 700; }
.qv-choices .tick { font-size: 0.85rem; }
.qv-answer { color: #a7f3d0; font-weight: 700; }
.qv-why { font-size: 0.9rem; }
.warns { font-size: 0.9rem; color: var(--text-muted); } .warns summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; } .warns ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
#upStatus { display: flex; flex-direction: column; gap: 12px; outline: none; }
#upStatus:empty { display: none; }
.up-quiz summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
#upErrors td { white-space: normal; word-break: break-word; }

/* manual quiz editor */
.qed-list { list-style: none; display: flex; flex-direction: column; gap: 14px; padding: 0 !important; }
.qed { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--card-border); background: rgba(255,255,255,0.03); }
.qed-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.qed-head select { width: auto; min-height: 44px; }
.choice-ed { display: flex; align-items: center; gap: 10px; }
.choice-ed input[type=radio] { width: 24px; height: 24px; accent-color: #a78bfa; flex: none; }
.choice-ed .letter { font-weight: 800; width: 1.2em; }
#editorMsg ul { padding-left: 1.2em; margin-top: 6px; }

/* the child page: Kids-style big tap targets; full-width buttons only here */
body.play .btn { display: flex; width: 100%; min-height: 60px; font-size: 1.1rem; border-radius: 16px; background: rgba(255,255,255,0.07); }
body.play .btn.primary { background: linear-gradient(135deg, #f472b6, #a78bfa 55%, #38bdf8); color: #06121a; border-color: transparent; box-shadow: 0 10px 28px rgba(167,139,250,0.3); }
body.play .btn.small { width: auto; min-height: 48px; font-size: 0.95rem; padding: 8px 16px; border-radius: 12px; }
body.play .row { display: flex; gap: 10px; flex-wrap: wrap; }
body.play .row > * { flex: 1 1 160px; }
body.play input[type=text], body.play input[type=password] { width: 100%; min-height: 56px; padding: 12px 16px; font: inherit; font-size: 1.1rem; font-weight: 600; color: var(--text); background: #0d1322; border: 2px solid var(--card-border); border-radius: 14px; }
body.play input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,0.25); outline: none; }
body.play .topbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.wrap.play-wrap { max-width: 560px; }
.wrap.play-wrap.with-side { max-width: 1040px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* v15 (phase 3B): retention banner + people card */
.retention-banner { border-color: rgba(245,158,11,0.6); background: rgba(245,158,11,0.09); }
.retention-banner h2 { color: #fcd34d; }
.retention-banner.soon { border-color: rgba(248,113,113,0.7); background: rgba(248,113,113,0.1); }
.retention-banner.soon h2 { color: #fca5a5; }
.sub-h { font-size: 0.95rem; font-weight: 700; color: var(--text-muted); margin-top: 6px; }
#addPerson .row { gap: 18px; }

/* v16 (private test) */
#inviteLinkCard { border-color: rgba(52,211,153,0.6); background: rgba(52,211,153,0.08); }
#inviteLinkCard input { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; }

/* v17: subject filter (How they're doing, Weak spots, Quizzes) */
.subject-filter { margin: 8px 0 4px; }
.subject-filter .filter-label { margin: 0 0 6px; font-size: 0.85rem; font-weight: 800; color: var(--text); }
.subject-filter .filter-label .muted { font-weight: 600; }
.filter-row.subject-row { gap: 8px; }
.filter-row.subject-row button.subj-chip { flex: 0 1 auto; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; font-size: 0.95rem; }
.subj-chip .sc-n { min-width: 1.6em; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,0.10); font-size: 0.8rem; font-variant-numeric: tabular-nums; text-align: center; }
.subj-chip[aria-pressed=true] .sc-n { background: rgba(167,139,250,0.45); color: var(--text); }
@media (max-width: 719px) {
  .filter-row.subject-row button.subj-chip { min-height: 44px; padding: 0 12px; font-size: 0.92rem; }
}

/* ===== v18: visual redesign (mockups-revamp): light violet / coral, rounded white cards, kid picker, play HUD, subject chips, dark bottom nav on phone. Look only. ===== */
:root { --bg: #eef7f7; --card-bg: #ffffff; --card-border: #d3ecea; --text: #0d1b2a; --text-muted: #4d5b6b; --accent: #00796f; --violet: #00796f; --coral: #ff7a5a; --sun: #ffd84d; --good: #16a36a; --bad: #d6336c; --amber: #b7791f; --ink: #0d1b2a; }
body { background: var(--bg); color: var(--text); font-weight: 500; }
button, .btn, input, select { font-family: inherit; }
body::before { display: none; }
a { color: var(--violet); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--violet); }
.brand { font-size: 1.7rem; font-weight: 900; color: var(--violet); letter-spacing: -0.03em; line-height: 1; }
.brand b { color: var(--coral); font-weight: 900; }
h1 { text-align: left; color: var(--ink); font-weight: 900; }
.back-link { color: var(--text-muted); }
.back-link:hover { color: var(--ink); }
.card { background: #fff; border: 0; border-radius: 22px; box-shadow: 0 4px 16px rgba(0,121,111,0.08); }
.preview-banner { background: #fff6dc; border: 1.5px solid #f3cf63; color: #6b4e00; }
.preview-banner a { color: #5a3d00; }
.muted, .hint, .privacy-note, .q-count { color: var(--text-muted); }
.btn { background: #fff; color: var(--ink); border: 1.5px solid var(--card-border); border-radius: 16px; box-shadow: 0 2px 6px rgba(0,121,111,0.06); }
.btn:hover { border-color: #9ed8d3; }
.btn.primary { background: var(--violet); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(0,121,111,0.28); }
.btn.danger { background: #ffe8ee; border-color: #f3a5bb; color: #a0174a; }
.msg.err, .err { color: #c0264f; }
.msg.ok { color: #0f7a4f; }
.tag { background: #e3f4f2; border-color: #cfc5ff; color: #00645c; }
.tag.soon { background: #ffe8dc; border-color: #ffc2a6; color: #b5441a; }
.badge { background: #ffe8dc; color: #b5441a; }
.badge.amber { background: #fff1c7; color: #7a5600; }
.badge.violet { background: #e3f4f2; color: #00645c; }
.notice { background: #eef4ff; border-color: #bcd2ff; color: #1d4ea8; }
.notice.good { background: #e3f7ec; border-color: #9ddbb9; color: #0f6a43; }
.notice.bad { background: #ffe8ee; border-color: #f3a5bb; color: #a0174a; }
.form input[type=text], .form input[type=email], .form input[type=password], .form select, .card input[type=text], .card input[type=password], .card select, .linkbox input, body.play input[type=text], body.play input[type=password], .confirm input { background: #f7fbfb; color: var(--ink); border: 1.5px solid var(--card-border); border-radius: 14px; }
.form input:focus-visible, .form select:focus-visible { outline: 3px solid rgba(0,121,111,0.45); }
input[type=file] { background: #f7fbfb; color: var(--ink); border-color: #9ed8d3; }
input[type=file]::file-selector-button { background: #e3f4f2; color: var(--ink); border-color: #9ed8d3; }
.list li, .mail, .stat, .topics li, .qed, .corr li { background: #f7fbfb; border-color: var(--card-border); }
.confirm { background: #fff1f4; border-color: #f3a5bb; }
.retention-banner { background: #fff6dc; } .retention-banner h2 { color: #7a5600; }
.retention-banner.soon { background: #fff1f4; } .retention-banner.soon h2 { color: #a0174a; }
#inviteLinkCard { background: #e3f7ec; border: 1.5px solid #9ddbb9; }
.foot, .foot nav a { color: var(--text-muted); }
.topbar .who { color: var(--text-muted); }
table.data th { color: var(--text-muted); }
.qv-choices li.right, .qv-answer { color: #0f7a4f; }
.corr .expl { color: #45426e; border-left-color: var(--violet); }
.ph { background: #fff1c7; color: #7a5600; }

/* sidebar / tabs and subject buttons */
.subj-nav { background: #fff; border: 0; box-shadow: 0 4px 16px rgba(0,121,111,0.08); }
.subj-btn { color: var(--ink); justify-content: flex-start; }
.subj-btn .subj-count { margin-left: auto; }
.subj-btn:hover { background: #eef7f7; }
.subj-btn[aria-current="true"] { background: var(--violet); color: #fff; border-color: transparent; }
.subj-btn.is-empty { color: #9a97bd; }
.nav-ico { width: 1.4em; text-align: center; flex: none; font-size: 1.05em; }
.subj-count { background: #ffe8dc; color: #b5441a; }
.subj-btn[aria-current="true"] .subj-count { background: rgba(255,255,255,0.25); color: #fff; }
.filter-row button { background: #fff; color: var(--ink); border-color: var(--card-border); border-radius: 999px; }
.filter-row button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.subj-chip .sc-n { background: #e3f4f2; color: #00645c; }
.subj-chip[aria-pressed=true] .sc-n { background: rgba(255,255,255,0.22); color: #fff; }
.subsec .cnt { background: #e3f4f2; color: #00645c; }

/* "Who's playing?" kid picker */
.picker h2 { font-size: 1.45rem; font-weight: 900; }
.kid-row { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.kid-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 84px; min-height: 44px; padding: 4px; border: 0; background: transparent; font: inherit; color: var(--ink); cursor: pointer; border-radius: 16px; }
.kid-pick:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.av { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 900; color: #fff; background: var(--violet); flex: none; }
.kid-pick:hover .av { box-shadow: 0 0 0 4px var(--sun); }
.kid-pick.add .av { background: #d3ecea; color: var(--violet); }
.kp-name { font-weight: 800; } .kid-pick.add .kp-name { color: var(--text-muted); }
.kp-sub { font-size: 0.78rem; color: var(--text-muted); }

/* Helper stub */
.helper-stub { background: linear-gradient(135deg, #00796f, #8e6bff); color: #fff; }
.helper-stub .muted { color: #e6e0ff; }
.helper-ideas { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.helper-ideas li { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.18); font-weight: 700; font-size: 0.92rem; }

/* child mode: kid header, library cards, HUD, quiz play */
.kid-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #00796f, #8e6bff); box-shadow: 0 8px 22px rgba(0,121,111,0.25); }
.kid-head .av { width: 52px; height: 52px; background: var(--coral); box-shadow: 0 0 0 3px var(--sun); }
.kid-head b { display: block; font-size: 1.15rem; font-weight: 900; } .kid-head .muted { color: #e6e0ff; }
.quiz-item { background: #fff; border: 0; border-radius: 22px; box-shadow: 0 4px 16px rgba(0,121,111,0.08); position: relative; }
.quiz-item.is-taken { border: 0; box-shadow: 0 4px 16px rgba(22,163,106,0.12); }
.q-ico { width: 48px; height: 48px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: #e3f4f2; }
.quiz-item[data-subj=math] .q-ico { background: #e3f7ec; } .quiz-item[data-subj=bible] .q-ico { background: #fff1d6; } .quiz-item[data-subj=social-studies] .q-ico { background: #e1eeff; }
.quiz-item[data-subj=science] .q-ico { background: #ffe4da; } .quiz-item[data-subj=english] .q-ico { background: #f1e6ff; }
.last-score { color: var(--good); }
.hud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hud-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: #fff; font-weight: 800; font-size: 0.92rem; box-shadow: 0 2px 8px rgba(0,121,111,0.08); }
.hud-chip.subj { background: #e3f7ec; color: #0f6a43; }
.hud-chip.streak { background: #ffe8dc; color: #b5441a; }
.progress { background: #d3ecea; height: 12px; }
.progress > i { background: var(--violet); }
.q-prompt { font-size: 1.4rem; font-weight: 900; color: var(--ink); }
.choice { background: #fff; border: 2px solid transparent; box-shadow: 0 2px 10px rgba(0,121,111,0.07); border-radius: 18px; }
.choice:hover { border-color: #9ed8d3; }
.choice input { accent-color: var(--violet); }
.choice.picked { border-color: var(--violet); background: #efebff; }
.dots button { background: #fff; color: var(--text-muted); border-color: var(--card-border); }
.dots button.answered { background: #e3f4f2; border-color: #9ed8d3; color: #00645c; }
.dots button[aria-current=true] { outline-color: var(--violet); }
body.play .btn { background: #fff; color: var(--ink); }
body.play .btn.primary { background: var(--violet); color: #fff; box-shadow: 0 8px 20px rgba(0,121,111,0.3); }
body.play input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(0,121,111,0.2); }
.score-big { color: var(--violet); }
.corr li.right { border-color: #9ddbb9; background: #effaf4; } .corr li.wrong { border-color: #f3a5bb; background: #fff4f7; }
.corr li.right .mark { color: var(--good); } .corr li.wrong .mark { color: var(--bad); }
.topics li.weak { border-color: #f3cf63; }

/* desktop: library as a 2-column card grid */
@media (min-width: 720px) {
  #todoList, #takenList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* phone: dark bottom nav for the parent sections, chip strip for the kid subjects */
@media (max-width: 719px) {
  body[data-page=dashboard] { padding-bottom: 110px; }
  body[data-page=dashboard] #dashNav { position: fixed; top: auto; bottom: 10px; left: 10px; right: 10px; z-index: 20; flex-direction: row; overflow-x: auto; gap: 2px; padding: 6px; border-radius: 22px; background: #0d1b2a; box-shadow: 0 10px 30px rgba(34,32,74,0.35); }
  body[data-page=dashboard] #dashNav .subj-btn { flex: 0 0 auto; flex-direction: column; justify-content: center; gap: 2px; min-width: 64px; min-height: 58px; padding: 6px 8px; border: 0; background: transparent; color: #a9a6d6; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
  body[data-page=dashboard] #dashNav .subj-btn .nav-ico { font-size: 1.25rem; width: auto; }
  body[data-page=dashboard] #dashNav .subj-btn[aria-current="true"] { color: #fff; font-weight: 900; background: rgba(255,255,255,0.08); }
  body.play .subj-nav { background: transparent; box-shadow: none; padding: 4px 0; top: 0; }
  body.play .subj-nav .subj-btn { min-height: 44px; border-radius: 999px; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,121,111,0.08); font-size: 0.92rem; padding: 6px 14px; }
  body.play .subj-nav .subj-btn[aria-current="true"] { background: var(--ink); color: #fff; }
  .kid-row { gap: 10px 12px; } .kid-pick { min-width: 76px; } .av { width: 58px; height: 58px; }
}

/* ---------------- v21: Switch / Who's playing, kid PIN, Progress toggle, quiz tabs, archive requests, subject editor, Add-quiz tiles. Same purple / orange look. */
.kid-head > div { flex: 1; min-width: 0; }
.kid-head .switch-btn { flex: none; background: #fff; color: var(--violet); border: 0; border-radius: 999px; font-weight: 900; min-height: 44px; padding: 0 16px; box-shadow: 0 0 0 3px var(--sun); }
.kid-head .switch-btn:hover { background: var(--sun); color: var(--ink); }
.who-card h2 { margin-bottom: 4px; }
.who-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 12px 0; }
.who-kid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 120px; padding: 16px 14px; border-radius: 22px; border: 2px solid var(--card-border); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.who-kid:hover, .who-kid:focus-visible { border-color: var(--violet); box-shadow: 0 6px 18px rgba(0,121,111,0.18); }
.who-kid b { font-size: 1.1rem; font-weight: 900; }
.who-kid.is-current { border-color: var(--coral); background: #fff6f1; }
.who-kid.is-current .av { background: var(--coral); }
.kid-pin-form { max-width: 360px; margin: 0 auto; text-align: left; }
.kid-pin-form .pass-input { letter-spacing: 0.4em; font-size: 1.4rem; text-align: center; }
.kid-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.kid-tabs button { flex: 1; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--card-border); background: #fff; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; }
.kid-tabs button[aria-selected=true] { background: var(--violet); border-color: var(--violet); color: #fff; }
.kid-tabs .cnt { display: inline-block; min-width: 24px; padding: 0 6px; border-radius: 999px; background: rgba(0,121,111,0.12); font-size: 0.85rem; }
.kid-tabs button[aria-selected=true] .cnt { background: var(--coral); color: #fff; }
.quiz-item.is-archived { opacity: 0.85; border-style: dashed; }
.ask-btn { font-weight: 800; }
.ask-msg:empty { display: none; }
.badge.coral { background: #ffe8dc; color: #b5441a; }
.badge.grey { background: #eceaf5; color: #55527a; }
.req-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 0.78rem; font-weight: 900; }
.subj-edit-btn[aria-pressed=true] { background: var(--violet); color: #fff; border-color: var(--violet); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 22px; background: #e3f4f2; margin: 8px 0; }
.seg button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; }
.seg button[aria-pressed=true] { background: var(--violet); color: #fff; }
.filter-label { margin: 6px 0 2px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.weak-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 6px 0 14px; }
.tool-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--card-border); background: #f7fbfb; }
.tool-card .row { gap: 8px; align-items: center; }
.tool-card.soon { background: #fff6f1; border-color: #ffc2a6; }
.arch-row { margin-top: 6px; gap: 6px; align-items: center; }
.arch-row select, .subj-edit-list select, #subjAdd select { min-height: 40px; border-radius: 10px; border: 1.5px solid var(--card-border); background: #fff; color: var(--ink); font: inherit; padding: 0 8px; }
.subj-edit-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.subj-edit-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 14px; border: 1.5px solid var(--card-border); background: #fff; }
.subj-edit-list li.is-hidden { opacity: 0.6; border-style: dashed; }
.subj-edit-list .subj-name-in { flex: 1 1 140px; min-width: 120px; min-height: 40px; }
.subj-edit-list .sub { font-size: 0.85rem; color: var(--text-muted); }
.subj-edit-list .subj-acts { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
#subjAdd .row { gap: 6px; flex-wrap: wrap; } #subjAdd input { flex: 1 1 160px; }
.way-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 8px; }
.way-tile { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: center; padding: 14px; border-radius: 18px; border: 2px solid var(--card-border); background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.way-tile b { font-weight: 900; font-size: 1.05rem; }
.way-tile .way-ico { font-size: 1.5rem; grid-row: span 2; }
.way-tile .tag { grid-column: 2; justify-self: start; }
.way-tile[aria-pressed=true] { border-color: var(--violet); background: #f4f0ff; box-shadow: 0 6px 18px rgba(0,121,111,0.15); }
.way-tile.soon[aria-pressed=true] { border-color: var(--coral); background: #fff6f1; }
.locked-card .pass-input { max-width: 220px; }
.kid-pin-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.kid-pin-state { font-size: 0.85rem; font-weight: 800; color: var(--text-muted); }
@media (max-width: 719px) {
  .kid-head .switch-btn { padding: 0 12px; }
  .who-kid { min-width: 100px; }
}

/* ---------------- Pack 1: teacher page (classes, class code, class quizzes, dashboard, reports). Same purple / orange card look. */
.teach .code-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; margin: 8px 0; border-radius: 18px; background: #fff6f1; border: 1.5px dashed #ffc2a6; }
.teach .class-code { font-size: 1.9rem; font-weight: 900; letter-spacing: 0.18em; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.teach .code-chip { display: inline-block; padding: 4px 10px; border-radius: 10px; background: #fff6f1; color: #b5441a; font-weight: 900; letter-spacing: 0.12em; font-size: 0.9rem; }
.teach .badge.pub { background: #e3f7ec; color: #0f6a43; }
.teach .hidden-stat, .teach .hidden-note { display: inline-block; color: var(--text-muted); font-size: 0.86rem; font-weight: 700; font-style: italic; }
.teach .hidden-note { padding: 10px 12px; border-radius: 12px; background: #f6f5fc; border: 1px dashed var(--card-border); }
.teach .legal-placeholder { padding: 10px 12px; border-radius: 12px; background: #fff1c7; color: #7a5600; font-weight: 700; font-size: 0.9rem; }
.teach .bar-cell.good .track { background: #e3f4f2; }
.teach .bar-cell.good .track i { background: linear-gradient(90deg, var(--violet), var(--coral)); }
.teach .trend { font-weight: 800; font-size: 0.9rem; white-space: nowrap; }
.teach .trend.up { color: var(--good); } .teach .trend.down { color: var(--bad); } .teach .trend.flat { color: var(--text-muted); }
.teach .topic-sub { display: block; font-size: 0.8rem; color: var(--text-muted); }
.teach .missed-topics { margin: 4px 0 0; }
.teach .wrong-ans { font-weight: 800; color: #b5441a; }
.teach ul.plain { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.teach #classViews { margin: 0; }
.teach .list li .code-chip { margin-left: auto; }
.teach #classMsg:empty, .teach #tQuizMsg:empty, .teach #repMsg:empty { display: none; }
.teach table.data th.num { white-space: nowrap; }
.teach #repQuiz { min-height: 40px; border-radius: 10px; border: 1.5px solid var(--card-border); background: #fff; color: var(--ink); font: inherit; padding: 0 8px; max-width: 100%; }
@media (max-width: 719px) {
  .teach .class-code { font-size: 1.5rem; letter-spacing: 0.12em; }
  .teach table.data { font-size: 0.86rem; }
  .teach .bar-cell { min-width: 84px; }
  .teach .seg button { padding: 0 12px; }
}

/* ---------------- Pack 1 Task 2: parent "Classes" tab, "From <class>" badges. Same purple / orange card look. */
.badge.class-badge { background: #e3f7ec; color: #0f6a43; }
.class-preview { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--card-border); background: #f7fbfb; }
.class-preview .pv-name { font-size: 1.15rem; font-weight: 900; }
.class-privacy { padding: 10px 12px; border-radius: 12px; background: #e3f7ec; color: #0f6a43; font-weight: 700; }
.class-kids li { flex-direction: column; align-items: flex-start; gap: 4px; }
.class-kids label.check.share { margin-left: 28px; font-size: 0.9rem; color: var(--text-muted); }
.joined-class .class-kids { margin: 4px 0; }
#classCodeIn { text-transform: uppercase; letter-spacing: 0.15em; font-weight: 800; max-width: 260px; }
.teach .updated-note { margin: 0 0 8px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }

/* ---------------- Pack 2 Task 1: quiz sharing ("Find quizzes" tab, "Share this quiz" panel). Same purple / orange card look. */
.badge.pub { background: #e3f7ec; color: #0f6a43; }
.badge.unreviewed-badge { background: #fff1c7; color: #7a5600; }
.endorse-note { margin: 4px 0 8px; padding: 10px 12px; border-radius: 12px; background: #fff7e8; color: #6b4a00; font-weight: 700; font-size: 0.9rem; border: 1.5px solid #f6dfa8; }
.market-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.market-filters input, .market-filters select { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--card-border); background: #fff; color: var(--ink); font: inherit; padding: 0 10px; flex: 1 1 150px; min-width: 0; max-width: 100%; }
.market-filters #mfQ { flex: 2 1 220px; }
.market-item .share-by { margin: 2px 0 0; font-size: 0.88rem; }
.market-qs { display: flex; flex-direction: column; gap: 10px; padding-left: 0; list-style: none; }
#marketDetail h3, .share-form h3, .rate-box h3 { text-transform: none; letter-spacing: normal; color: var(--ink); }
#marketDetail h3.qz-title { font-size: 1.15rem; margin: 0; }
.market-qs > li { overflow-wrap: anywhere; }
.market-qs .qv-choices { margin: 4px 0 0; }
.pager { justify-content: space-between; align-items: center; }
.share-panel, .share-manage { margin-top: 8px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--card-border); background: #f7fbfb; display: flex; flex-direction: column; gap: 8px; }
.share-manage { margin-top: 0; }
.share-form h3 { margin: 0; font-size: 1.02rem; overflow-wrap: anywhere; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.share-form select, .share-form input[type=text], .report-form select, .report-form textarea { width: 100%; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--card-border); background: #fff; color: var(--ink); font: inherit; padding: 6px 10px; box-sizing: border-box; }
.share-form label.check.attest { align-items: flex-start; gap: 10px; font-weight: 700; line-height: 1.35; }
.share-form label.check.attest input { margin-top: 3px; flex: none; width: 22px; height: 22px; }
.legal-ph { font-style: italic; }
.errlist { margin: 0; padding-left: 20px; color: #b42318; font-size: 0.88rem; }
.errlist:empty, [data-msg]:empty, #mMsg:empty, #rateMsg:empty, #repMsg:empty { display: none; }
.rate-box, .report-box { margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed var(--card-border); display: flex; flex-direction: column; gap: 6px; }
.rate-box h3 { margin: 0; font-size: 1rem; }
.stars { display: flex; gap: 4px; }
.stars .star { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--card-border); background: #fff; color: var(--coral, #ff7a5a); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.stars .star[aria-pressed=true] { background: #fff1e8; border-color: #ffb48f; }
.stars .star:focus-visible, .market-filters :focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.report-box > .btn { align-self: flex-start; }
@media (max-width: 719px) {
  .market-filters input, .market-filters select, .market-filters .btn { flex: 1 1 100%; }
  .stars .star { min-width: 48px; }
}

/* ---------------- Pack 2 fix 9: phone tab bar: fade at the edge while more tabs are hidden that way (set by app.js; none once the end is reached). */
@media (max-width: 719px) {
  #dashNav.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
  #dashNav.more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); }
  #dashNav.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
}

/* ---------------- Pack 2 Task 2: new question types (editor pairs, kid player for matching / spelling) */
.pairs-ed { display: flex; flex-direction: column; gap: 6px; }
.pair-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.pair-ed { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pair-ed input { flex: 1 1 120px; min-width: 0; }
.pair-ed .arrow, .match-row .arrow { color: var(--text-muted); font-weight: 800; }
.spell-warn:empty { display: none; }
.msg.warn { background: #fff7e8; color: #6b4a00; border-radius: 12px; padding: 8px 10px; font-weight: 700; }
.match-play { display: flex; flex-direction: column; gap: 10px; }
.match-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); align-items: center; gap: 8px; }
.match-row .match-left { font-weight: 800; overflow-wrap: anywhere; }
.match-row select { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--card-border); background: #fff; color: var(--ink); font: inherit; padding: 0 10px; width: 100%; min-width: 0; }
.match-row select:focus-visible, #hearWord:focus-visible, #hearExample:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.spell-play { display: flex; flex-direction: column; gap: 10px; }
#hearWord, #hearExample { min-height: 48px; }
@media (max-width: 719px) {
  .match-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .match-row .arrow { display: none; }
}

/* ===== QuizStride brand (logo concept B): navy #0D1B2A text, teal #00B3A6 -> blue #1E88E5 icon gradient, coral #FF7A5A buttons.
 * Accessible variants: text/links use a darker teal (#00796F, 5.3:1 on white); coral buttons carry navy text (7:1). Same layout; colours only. ===== */
:root { --qs-navy: #0d1b2a; --qs-teal: #00b3a6; --qs-blue: #1e88e5; --qs-coral: #ff7a5a; --qs-teal-text: #00796f; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--qs-navy); letter-spacing: -0.02em; }
.brand b { color: var(--qs-teal-text); }
.brand-icon { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.btn.primary, body.play .btn.primary { background: var(--qs-coral); color: var(--qs-navy); border-color: transparent; box-shadow: 0 6px 16px rgba(255,122,90,0.32); }
.btn.primary:hover, body.play .btn.primary:hover { background: #ff6a45; }
.beta-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; line-height: 1.4; background: #e3f4f2; border: 1px solid #9ed8d3; color: #00645c; }
