/* ONEnglish Studies — one design system for the student app, the partner portal and the admin app.
   Brand: night #120A1F, purple #692676, gold #FFCF5C. Two themes: [data-theme="dark"] and [data-theme="light"]
   (set by theme.js before the page draws). Colours are tokens only: never hard-code a colour in a view. */

/* ---------- tokens ---------- */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0717; --bg2: #160C24;
  --glow1: rgba(105, 38, 118, .55); --glow2: rgba(255, 207, 92, .10);
  --surface: #1A1029; --surface2: #23163A; --surface3: #2D1E47;
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14);
  --text: #F5F0FA; --mute: #BDB2CC; --dim: #998CAE;
  --purple: #8B3A9C; --purple-ink: #E7B8F0; --purple-soft: rgba(139, 58, 156, .26);
  --gold: #FFCF5C; --gold-ink: #FFD677; --gold-soft: rgba(255, 207, 92, .14); --on-gold: #1A0F05;
  --ok: #3FD0BF; --ok-soft: rgba(63, 208, 191, .14); --ok-ink: #7FE6D9;
  --bad: #FF7E8A; --bad-soft: rgba(255, 126, 138, .14); --bad-ink: #FFB1B8;
  --warn: #FF9B73;
  --hero1: #7A2C8A; --hero2: #3B1650; --on-hero: #FFFFFF;
  --tabbar: rgba(22, 12, 36, .82);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.75);
  --S1: #19A797; --S3: #F0641F; --S5: #5B82F0;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F3EC; --bg2: #FFFFFF;
  --glow1: rgba(139, 58, 156, .16); --glow2: rgba(255, 196, 60, .22);
  --surface: #FFFFFF; --surface2: #F3EDF5; --surface3: #E9DFEE;
  --line: rgba(40, 18, 56, .09); --line2: rgba(40, 18, 56, .16);
  --text: #1C1226; --mute: #5E516C; --dim: #7D7189;
  --purple: #692676; --purple-ink: #692676; --purple-soft: rgba(105, 38, 118, .10);
  --gold: #FFCF5C; --gold-ink: #8A5B00; --gold-soft: rgba(255, 190, 40, .20); --on-gold: #1A0F05;
  --ok: #0E8A7E; --ok-soft: rgba(14, 138, 126, .11); --ok-ink: #0B6E64;
  --bad: #C8283F; --bad-soft: rgba(200, 40, 63, .09); --bad-ink: #A3162C;
  --warn: #C2410C;
  --hero1: #692676; --hero2: #2A0F36; --on-hero: #FFFFFF;
  --tabbar: rgba(255, 255, 255, .86);
  --shadow: 0 1px 2px rgba(40,18,56,.05), 0 8px 24px -14px rgba(40,18,56,.25);
  --shadow-lg: 0 24px 60px -24px rgba(40,18,56,.35);
  --S1: #0E8A7E; --S3: #D9480F; --S5: #2F5BD3;
}
:root { --r: 20px; --r-sm: 14px; --tabs: 72px; --ease: cubic-bezier(.2, .8, .2, 1);
  --white: var(--text); --card: var(--surface); --soft: var(--surface2); --plum: var(--purple-soft); --tealT: var(--ok); --red: var(--bad); --orange: var(--warn); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; color: var(--text); font-family: Lexend, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; background:
  radial-gradient(900px 520px at 85% -120px, var(--glow1), transparent 65%),
  radial-gradient(700px 420px at -10% 0%, var(--glow2), transparent 60%),
  var(--bg); background-attachment: fixed; transition: background-color .3s var(--ease), color .3s var(--ease); }
a { color: var(--gold-ink); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--on-gold); }
[hidden], .tabs[hidden] { display: none !important; }

#app { max-width: 560px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px calc(var(--tabs) + 40px); display: flex; flex-direction: column; gap: 16px; }
#app.no-tabs { padding-bottom: 40px; }
#app.enter > * { animation: rise .45s var(--ease) both; }
#app.enter > *:nth-child(2) { animation-delay: .03s; } #app.enter > *:nth-child(3) { animation-delay: .06s; } #app.enter > *:nth-child(4) { animation-delay: .09s; }
#app.enter > *:nth-child(5) { animation-delay: .12s; } #app.enter > *:nth-child(n+6) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.boot { min-height: 60vh; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--mute); text-align: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--gold); animation: spin .8s linear infinite; margin: 0 auto; }

/* ---------- type ---------- */
h1 { font-size: 28px; margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: 16px; margin: 0; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0; line-height: 1.55; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
h2.small.mute, .section { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
.mute { color: var(--mute); } .dim { color: var(--dim); } .small { font-size: 13.5px; } .tiny { font-size: 12px; }
.gold { color: var(--gold-ink); } .teal { color: var(--ok-ink); } .err { color: var(--bad-ink); }
.row { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; } .grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- brand ---------- */
/* The official logo (icons/logo.png, cropped from the ONEnglish.ma artwork). The text inside stays for screen readers only. */
.brand { display: inline-block; flex: none; width: 156px; height: 29px; background: url("icons/logo.png") center / contain no-repeat; border-radius: 7px;
  font-size: 0; color: transparent; overflow: hidden; box-shadow: 0 6px 18px -8px rgba(105, 38, 118, .8); }
.brand b { font-size: 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line2); display: grid; place-items: center; color: var(--gold-ink); font-weight: 700; font-size: 14px; text-decoration: none; flex: none; }
.avatar.vipring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.avatar.prof { background: linear-gradient(135deg, var(--hero1), var(--hero2)); color: var(--gold); border: 0; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text); cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), background .2s; }
.iconbtn:hover { background: var(--surface2); } .iconbtn:active { transform: scale(.92); }

/* ---------- surfaces ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); color: var(--text); }
.card.flat { box-shadow: none; background: var(--surface2); border-color: transparent; }
.card.accent { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: linear-gradient(180deg, var(--gold-soft), transparent 70%), var(--surface); }
.card.dashed { border: 1.5px dashed color-mix(in srgb, var(--gold) 60%, transparent); box-shadow: none; background: transparent; }
.card.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: linear-gradient(180deg, var(--ok-soft), transparent), var(--surface); }
.card.bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: linear-gradient(180deg, var(--bad-soft), transparent), var(--surface); }
.card.purple { background: linear-gradient(135deg, var(--hero1), var(--hero2)); color: var(--on-hero); border: 0; }
.card.purple .mute, .card.purple .dim { color: rgba(255,255,255,.75); }
a.card { text-decoration: none; transition: transform .2s var(--ease), border-color .2s; } a.card:hover { transform: translateY(-2px); } a.card:active { transform: scale(.99); }

.hero { position: relative; overflow: hidden; isolation: isolate; color: var(--on-hero); background: linear-gradient(140deg, var(--hero1) 0%, var(--hero2) 100%); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-lg); }
.hero::before { content: ''; position: absolute; z-index: -1; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.10) 0 1px, transparent 1px 22px); }
.hero::after { content: ''; position: absolute; z-index: -1; left: -40px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 207, 92, .35), transparent 65%); }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero .mute, .hero .dim { color: rgba(255,255,255,.78); }
.countdown { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 84px; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.countdown b { font-size: 38px; line-height: 1; color: var(--gold); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; background: var(--surface2); color: var(--text); white-space: nowrap; text-decoration: none; border: 1px solid var(--line); }
.chip.gold { background: var(--gold); color: var(--on-gold); border-color: transparent; }
.chip.plum { background: var(--purple-soft); color: var(--purple-ink); border-color: transparent; }
.chip.ok { background: var(--ok-soft); color: var(--ok-ink); border-color: transparent; }
.chip.vip { background: linear-gradient(135deg, #FFE08A, #F0B93E); color: #2A1A00; border-color: transparent; }
.chip.S1, .chip.S3, .chip.S5 { color: #fff; border-color: transparent; }
.chip.S1 { background: var(--S1); } .chip.S3 { background: var(--S3); } .chip.S5 { background: var(--S5); }
.chip.big { font-size: 14px; padding: 6px 12px; }
.bar { height: 8px; background: var(--surface3); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #FFB347); border-radius: 99px; transition: width .5s var(--ease); }

/* ---------- buttons ---------- */
.btn { position: relative; min-height: 50px; border: 0; border-radius: 16px; padding: 0 20px; background: var(--gold); color: var(--on-gold); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 -2px 0 rgba(0,0,0,.12) inset, 0 10px 24px -12px rgba(255, 170, 30, .8); transition: transform .15s var(--ease), filter .2s, box-shadow .2s; }
.btn:hover { filter: brightness(1.04); } .btn:active { transform: translateY(1px) scale(.985); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost:hover { background: var(--surface2); filter: none; }
.btn.purple { background: linear-gradient(135deg, #7A2C8A, #55195F); color: #fff; box-shadow: 0 10px 24px -12px rgba(105, 38, 118, .9); }
.btn.danger { background: var(--bad-soft); color: var(--bad-ink); box-shadow: none; border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); }
.btn.wa { background: #1FAF54; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 22px -12px rgba(31, 175, 84, .9); }
.btn.small { min-height: 40px; font-size: 14px; border-radius: 12px; padding: 0 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.linkbtn { background: none; border: 0; color: var(--gold-ink); padding: 8px 0; cursor: pointer; font-size: 14px; font-weight: 500; }
.back { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); text-decoration: none; cursor: pointer; flex: none; }

/* ---------- forms ---------- */
label.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
.input, select.input, textarea.input { width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg2); padding: 0 14px; font-size: 16px; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
textarea.input { padding: 12px 14px; min-height: 100px; line-height: 1.55; }
.input::placeholder { color: var(--dim); }
.input.on-color { background: #fff; color: #1C1226; border-color: transparent; }
.input.code { letter-spacing: 3px; font-weight: 600; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.hint { font-size: 12px; color: var(--dim); font-weight: 400; }
.msg { font-size: 13.5px; padding: 11px 14px; border-radius: 14px; background: var(--bad-soft); color: var(--bad-ink); border: 1px solid color-mix(in srgb, var(--bad) 25%, transparent); }
.msg.ok { background: var(--ok-soft); color: var(--ok-ink); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.switch { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 99px; background: var(--surface3); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch:checked { background: var(--ok); } .switch:checked::after { transform: translateX(20px); }

.seg { display: grid; gap: 4px; background: var(--surface2); border: 1px solid var(--line); border-radius: 16px; padding: 4px; }
.seg button { min-height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--mute); cursor: pointer; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 2px 10px -4px rgba(0,0,0,.35); }
[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--surface3); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { text-align: left; border-radius: 18px; padding: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--text); transition: transform .15s var(--ease), border-color .2s; }
.tile:active { transform: scale(.98); }
.tile strong { font-size: 24px; letter-spacing: -.02em; }
.tile[aria-pressed="true"] { background: linear-gradient(140deg, var(--hero1), var(--hero2)); color: #fff; border-color: transparent; box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.tile[aria-pressed="true"] strong { color: var(--gold); } .tile[aria-pressed="true"] .mute { color: rgba(255,255,255,.8); }

/* ---------- list items ---------- */
.item { --acc: var(--ok); display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; text-decoration: none; color: var(--text); width: 100%; text-align: left; cursor: pointer; min-height: 62px; transition: transform .15s var(--ease), border-color .2s, background .2s; }
.item:hover { border-color: var(--line2); } .item:active { transform: scale(.99); }
.item .ic { width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc); display: grid; place-items: center; flex: none; font-size: 18px; }
.item .ic.gold, .item.locked .ic { background: var(--gold-soft); color: var(--gold-ink); }
.item .ic.xp { background: var(--purple-soft); color: var(--gold-ink); }
.item.S1 { --acc: var(--S1); } .item.S3 { --acc: var(--S3); } .item.S5 { --acc: var(--S5); }
.item.later { background: transparent; border: 1px dashed var(--line2); cursor: default; box-shadow: none; }
.item .chev { color: var(--dim); }
.ttl { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { font-size: 12.5px; color: var(--mute); margin-top: 1px; }

/* practice answers */
.choice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 58px; padding: 12px 14px; border-radius: 18px; border: 2px solid var(--line2); background: var(--surface); color: var(--text); cursor: pointer; font-size: 15px; transition: transform .12s var(--ease), border-color .2s, background .2s; }
.choice:active { transform: scale(.99); }
.choice .key { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 700; background: var(--surface2); color: var(--mute); border: 1px solid var(--line2); }
.choice.chosen { border-color: var(--gold); background: var(--gold-soft); } .choice.chosen .key { background: var(--gold); color: var(--on-gold); border-color: transparent; }
.choice.right { border-color: var(--ok); background: var(--ok-soft); } .choice.right .key { background: var(--ok); color: #fff; border-color: transparent; }
.choice.wrong { border-color: var(--bad); background: var(--bad-soft); animation: shake .35s; } .choice.wrong .key { background: var(--bad); color: #fff; border-color: transparent; }
.choice[disabled] { cursor: default; } .choice[disabled]:not(.right):not(.wrong) { opacity: .6; }
@keyframes shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.gapline { display: inline-block; min-width: 56px; border-bottom: 3px solid var(--gold); margin: 0 4px; transform: translateY(-4px); }
.question { font-size: 23px; line-height: 1.4; letter-spacing: -.015em; font-weight: 600; }
.feedback { position: sticky; bottom: 12px; z-index: 3; }
.resultEmoji { font-size: 72px; line-height: 1; animation: pop .6s var(--ease) both; filter: drop-shadow(0 12px 24px rgba(0,0,0,.25)); }

/* timetable */
.day { display: flex; gap: 12px; }
.day .d { width: 46px; flex: none; display: flex; flex-direction: column; align-items: center; color: var(--dim); padding-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.day .d b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: var(--text); letter-spacing: 0; margin-top: 4px; }
.day.today .d b { background: var(--gold); color: var(--on-gold); box-shadow: 0 6px 16px -6px rgba(255, 170, 30, .8); }
.cls { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--acc, var(--ok)); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.day.today .cls { border-left-color: var(--gold); background: linear-gradient(90deg, var(--gold-soft), transparent 60%), var(--surface); }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.slot { display: flex; gap: 12px; align-items: stretch; }
.slot .t { width: 50px; flex: none; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 2px; }
.slot .t span { display: block; font-size: 11px; color: var(--dim); font-weight: 400; }
.slot .c { flex: 1; min-width: 0; border-left: 2px solid var(--line2); padding-left: 12px; }

/* news */
.news img, .news video { border-radius: 14px; width: 100%; background: #000; display: block; }
.news .body { white-space: pre-wrap; line-height: 1.6; font-size: 14.5px; color: var(--text); }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* stats ring strip */
.ringtrack { stroke: var(--surface3); } .ringfill { stroke: var(--gold); } .ringfill.done { stroke: var(--ok); } .ringtext { fill: var(--text); }
.streak { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.streak .flame { font-size: 28px; line-height: 1; }
.streak.off .flame { filter: grayscale(1); opacity: .45; }
.statline { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }

/* rankings */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; }
.podium .p { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.podium .p .avatar { width: 52px; height: 52px; font-size: 16px; }
.podium .p.first .avatar { width: 64px; height: 64px; box-shadow: 0 0 0 3px var(--gold); }
.podium .step { width: 100%; border-radius: 14px 14px 6px 6px; background: var(--surface2); display: grid; place-items: center; font-weight: 700; font-size: 20px; border: 1px solid var(--line); }
.podium .p.first .step { height: 76px; background: linear-gradient(180deg, var(--gold-soft), var(--surface2)); }
.podium .p.second .step { height: 56px; } .podium .p.third .step { height: 42px; }
.podium .name { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rankrow { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; }
.rankrow.me { background: var(--purple-soft); box-shadow: 0 0 0 1px color-mix(in srgb, var(--purple) 40%, transparent) inset; }
.rankrow .pos { width: 28px; text-align: center; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; }

/* badges */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge { text-align: center; padding: 10px 6px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
.badge .e { font-size: 28px; line-height: 1.1; }
.badge.off { opacity: .4; filter: grayscale(1); }
.badge.on { background: linear-gradient(180deg, var(--gold-soft), var(--surface2)); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }

/* plan cards */
.plan { gap: 12px; }
.plan .price { white-space: nowrap; flex: none; font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.plan.best { border: 2px solid var(--gold); box-shadow: 0 0 0 6px var(--gold-soft), var(--shadow); }
.plan.mine { background: linear-gradient(180deg, var(--purple-soft), transparent), var(--surface); }
.perk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.perk .tick { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok-ink); margin-top: 1px; }
.perk.no { color: var(--dim); }
.perk.no .tick { background: var(--bad-soft); color: var(--bad); }
.perk.no span:last-child { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.stepnum { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }

/* settings rows */
.rows { display: flex; flex-direction: column; }
.rows > * { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows > *:first-child { border-top: 0; padding-top: 2px; }

/* bottom tab bar: floating glass pill */
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); width: min(540px, calc(100% - 20px)); height: var(--tabs); padding: 6px; background: var(--tabbar);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border: 1px solid var(--line2); border-radius: 26px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); z-index: 5; box-shadow: var(--shadow-lg); }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--dim); font-size: 11px; font-weight: 500; border-radius: 20px; transition: color .2s, background .25s var(--ease); }
.tabs a span { display: grid; place-items: center; transition: transform .25s var(--ease); }
.tabs a[aria-current="page"] { color: var(--text); font-weight: 600; background: var(--surface2); }
.tabs a[aria-current="page"] span { color: var(--gold-ink); transform: translateY(-1px); }
[data-theme="dark"] .tabs a[aria-current="page"] { background: rgba(255,255,255,.07); }
.tabs .dot { position: absolute; top: 9px; left: calc(50% + 8px); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); display: inline-block; box-shadow: 0 0 0 2px var(--bg); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs) + 24px + env(safe-area-inset-bottom)); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 16px; max-width: calc(100% - 32px); font-size: 14px; font-weight: 500; z-index: 30; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); }

.viewer { position: fixed; inset: 0; background: rgba(8, 4, 14, .94); z-index: 20; display: flex; flex-direction: column; gap: 12px; padding: 16px; color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.viewer .back { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }

/* avatars */
.avatar.has-av { padding: 0; overflow: hidden; background: transparent; border: 0; }
.avatar.has-av svg, .avpreview svg { display: block; width: 100%; height: 100%; }
.avpreview { width: 56px; height: 56px; flex: none; }
.avedit { position: relative; text-decoration: none; flex: none; }
.avpen { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-size: 13px; box-shadow: 0 0 0 3px var(--bg); }
.avstage { position: sticky; top: calc(6px + env(safe-area-inset-top)); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.avstage svg { width: 150px; height: 150px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.25)); animation: pop .4s var(--ease); }
.avtabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.avtabs::-webkit-scrollbar { display: none; }
.avtabs button { flex: none; border: 1px solid var(--line2); background: var(--surface); color: var(--mute); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.avtabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: transparent; font-weight: 600; }
.avgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.avtile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 18px; border: 2px solid transparent; background: var(--surface); cursor: pointer; color: var(--text); font-size: 12px; font-weight: 500; transition: transform .15s var(--ease), border-color .2s; }
.avtile:active { transform: scale(.96); }
.avtile.on { border-color: var(--gold); background: var(--gold-soft); }
.avtile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line2); cursor: pointer; }
.sw.on { box-shadow: 0 0 0 3px var(--gold); transform: scale(1.06); }
.avsave { position: sticky; bottom: calc(var(--tabs) + 18px + env(safe-area-inset-bottom)); display: flex; gap: 8px; z-index: 4; }

/* compete */
a.hero.vs { text-decoration: none; }
.vsbadge { flex: none; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-weight: 800; font-size: 22px; letter-spacing: -.04em; color: var(--on-gold); background: linear-gradient(135deg, #FFE08A, #F0B93E); transform: rotate(-8deg); box-shadow: 0 12px 26px -10px rgba(255, 170, 30, .9); }
.codein { text-align: center; font-size: 30px; min-height: 66px; letter-spacing: 6px; font-weight: 700; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.roomcode { font-size: 46px; letter-spacing: 6px; color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; user-select: all; }
.lobbygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px; }
.lobbyp { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: pop .45s var(--ease) both; min-width: 0; }
.lobbyp .tiny { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobbyp .avatar { width: 54px; height: 54px; font-size: 16px; }
.lobbyp.wait { opacity: .5; animation: none; } .lobbyp.wait .avatar { border-style: dashed; }
.countdown-full { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.countdown-full b { font-size: 120px; line-height: 1; color: var(--gold-ink); letter-spacing: -.05em; }
.beat { animation: pop .6s var(--ease) both; }
.timer { display: flex; align-items: center; gap: 10px; } .timer .bar { flex: 1; height: 10px; } .timer .bar > i { transition: width .2s linear; }
.timer b { min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; font-size: 18px; }

/* admin "Student view" bar */
.previewbar { position: sticky; top: calc(6px + env(safe-area-inset-top)); z-index: 6; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1.5px dashed color-mix(in srgb, var(--purple) 55%, transparent); box-shadow: var(--shadow-lg); animation: none !important; }
.pvgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } .pvgrid .span2 { grid-column: 1 / -1; }
.pvgrid select.input { min-height: 42px; font-size: 14px; padding: 0 10px; }
.previewbar .seg { padding: 3px; } .previewbar .seg button { min-height: 34px; font-size: 13px; }
.livedot { width: 9px; height: 9px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }

/* theme picker */
.themepick { grid-template-columns: repeat(3, 1fr); }
.themepick button { display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- partner portal & wide pages ---------- */
.wide { max-width: 1040px !important; }
table.list { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { color: var(--dim); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; position: sticky; top: 0; background: var(--surface); }
table.list tbody tr { transition: background .15s; } table.list tbody tr:hover { background: var(--surface2); }
table.list tbody tr:last-child td { border-bottom: 0; }
.codebox { font-size: 34px; font-weight: 700; letter-spacing: 4px; color: var(--gold-ink); background: var(--gold-soft); border: 2px dashed color-mix(in srgb, var(--gold) 70%, transparent); border-radius: 18px; padding: 18px; text-align: center; font-variant-numeric: tabular-nums; user-select: all; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 26px; color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat::after { content: ''; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 70%); }
.stat.hl { background: linear-gradient(140deg, var(--hero1), var(--hero2)); color: #fff; border: 0; } .stat.hl b { color: var(--gold); } .stat.hl .mute, .stat.hl .dim { color: rgba(255,255,255,.75); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

@media print {
  body { background: #fff !important; color: #000; } .no-print, .tabs, .toast { display: none !important; }
  .print-only { display: block !important; } .card { box-shadow: none; border-color: #ccc; background: #fff; color: #000; }
  .codebox { color: #000; background: #fff; border-color: #000; }
}
.print-only { display: none; }

/* ---------- sales features (1.2): locked answers, crash pack, social proof, invites, install, offline ---------- */
.blurred { filter: blur(5px); user-select: none; pointer-events: none; opacity: .85; }
.lockbox { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface2); }
.lockbox .btn { align-self: flex-start; }
.lockcard { text-decoration: none; color: var(--text); }
.lockcard .btn { align-self: flex-start; }
.hintbox { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; border-left: 3px solid var(--gold); background: var(--gold-soft); }
.hero.crash { text-decoration: none; background: linear-gradient(140deg, #B4380C 0%, #5A1A4F 100%); }
.hero.crash .countdown b { color: #FFCF5C; }
.card.summary h3 { font-size: 15px; margin: 6px 0 0; color: var(--gold-ink); }
.card.summary p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.card.summary ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.5; }
.proof { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); align-self: flex-start; }
.card.missed { text-decoration: none; color: var(--text); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.card.invite, .card.group { text-decoration: none; color: var(--text); border-color: color-mix(in srgb, var(--purple) 45%, transparent); background: linear-gradient(180deg, var(--purple-soft), transparent 75%), var(--surface); }
.card.install { border-style: dashed; }
.reviewrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.reviewrow:last-of-type { border-bottom: 0; }
.reviewrow > span:first-child { font-weight: 700; width: 16px; flex: none; }
body.offline::before { content: 'Offline · showing saved pages'; position: fixed; z-index: 50; top: 0; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 0 0 12px 12px; background: var(--warn, #B7791F); color: #fff; font: 600 12px Lexend, sans-serif; }

/* ---------- exam texts with numbered gaps, Canadian grading (1.3) ---------- */
.card.passage { max-height: 42dvh; overflow-y: auto; gap: 8px; font-size: 16px; line-height: 1.75; }
.card.passage p { margin: 0; }
.pgap { display: inline-block; min-width: 46px; padding: 0 6px; border-bottom: 2px solid var(--line); border-radius: 6px 6px 0 0; text-align: center; color: var(--mute); }
.pgap sup { font-size: 10px; font-weight: 700; margin-right: 3px; }
.pgap.cur { background: var(--gold); color: var(--on-gold); border-color: var(--gold); font-weight: 700; }
.pgap.ok { color: var(--ok); border-color: var(--ok); }
.pgap.bad { color: var(--bad); border-color: var(--bad); }
.warn { color: var(--warn); }

/* phonetic transcriptions */
.ipa { font-family: "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif; font-size: 1.14em; letter-spacing: .03em; }

/* ---------- lessons ---------- */
.lesson { gap: 12px; padding: 18px 15px; }
.lesson h2 { font-size: 18px; margin: 12px 0 0; color: var(--purple-ink); line-height: 1.3; }
.lesson h2:first-child { margin-top: 0; }
.lesson p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.lesson ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; line-height: 1.55; }
.lesson .lex { border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 12px 12px 0; padding: 10px 14px; display: flex; flex-direction: column; gap: 5px; }
.lesson .ltip { display: flex; gap: 10px; background: var(--purple-soft); border-radius: 12px; padding: 12px 14px; }
.lesson .ltip p { font-size: 14.5px; }
.lesson .lno, .lesson .lyes { padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.lesson .lno { background: var(--bad-soft); color: var(--bad-ink); }
.lesson .lyes { background: var(--ok-soft); color: var(--ok-ink); }
.lesson .lno + .lyes { margin-top: -6px; }
.lesson .ltable { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.lesson table { width: 100%;  border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.lesson th { text-align: left; font-weight: 600; background: var(--surface2); }
.lesson th, .lesson td { padding: 8px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lesson tr:last-child td { border-bottom: 0; }
.lesson .lq { border: 1px solid var(--line2); border-radius: 12px; padding: 0 14px; }
.lesson .lq summary { cursor: pointer; padding: 12px 0; font-size: 15px; line-height: 1.5; min-height: 44px; }
.lesson .lq p { padding: 0 0 12px; font-weight: 600; color: var(--ok-ink); }
.lesson .lhelp { border: 1px dashed var(--gold); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); }
.lesson .lhelp b { font-size: 13px; color: var(--gold-ink); }
.lesson .lhelp p { font-size: 14.5px; }
/* partner page: French / Arabic */
.langsw.plang { display: inline-grid; padding: 3px; }
.langsw.plang > * { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
[dir="rtl"][lang="ar"] body, [dir="rtl"][lang="ar"] button, [dir="rtl"][lang="ar"] input, [dir="rtl"][lang="ar"] select { font-family: "Readex Pro", Lexend, "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif; }
[dir="rtl"][lang="ar"] .list th, [dir="rtl"][lang="ar"] .list td { text-align: right; }
[dir="rtl"][lang="ar"] .brand { direction: ltr; }
[dir="rtl"][lang="ar"] .eyebrow { letter-spacing: 0; }

/* password with a show button */
.pwbox { position: relative; display: block; }
.pwbox .input { padding-right: 52px; }
.pweye { position: absolute; right: 2px; top: 0; width: 48px; height: 100%; border: 0; background: none; color: var(--mute); display: grid; place-items: center; cursor: pointer; border-radius: 14px; }
.pweye[aria-pressed="true"] { color: var(--gold-ink); }
.field .flabel { font-size: 13px; font-weight: 600; }
div.field { display: flex; flex-direction: column; gap: 7px; }
.grid2.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Darija version of a lesson: right to left, English pieces left to right */
.lesson[dir="rtl"], .langsw [lang="ar"] { font-family: "Readex Pro", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif; }
.lesson[dir="rtl"] p, .lesson[dir="rtl"] li { line-height: 1.85; }
.lesson[dir="rtl"] h2 { line-height: 1.6; }
.lesson[dir="rtl"] [dir="ltr"] { font-family: Lexend, system-ui, sans-serif; line-height: 1.6; }
.lesson[dir="rtl"] bdi.en { color: var(--purple-ink); font-weight: 500; line-height: 1; }
.lesson[dir="rtl"] h2[dir="ltr"], .lesson[dir="rtl"] .lex [dir="ltr"] { text-align: right; }
.lesson[dir="rtl"] .lex [dir="ltr"] { font-weight: 500; }
.lesson[dir="rtl"] .lex .long[dir="ltr"] { text-align: left; font-weight: 400; margin-bottom: 6px; }
.lesson[dir="rtl"] .lno, .lesson[dir="rtl"] .lyes, .lesson[dir="rtl"] summary[dir="ltr"], .lesson[dir="rtl"] p[dir="ltr"]:not(.lex p) { text-align: left; }
.lesson[dir="rtl"] ul { padding-left: 0; padding-right: 20px; }
.lesson[dir="rtl"] th, .lesson[dir="rtl"] td { text-align: right; }
.lesson[dir="rtl"] table { font-size: 14.5px; line-height: 1.7; }
.lesson[dir="rtl"] .lex { border-left: 0; border-right: 3px solid var(--gold); border-radius: 12px 0 0 12px; gap: 2px; }
.lesson[dir="rtl"] .lq .why { font-weight: 400; color: var(--text); }
.langsw { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface2); border-radius: 14px; padding: 4px; }
.langsw > * { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 0; border-radius: 11px; background: none; color: var(--mute); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.langsw [aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }
.item.les .ttl { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }

/* ---- live matches: reactions, who answered, awards, confetti (2026-11-25) ---- */
.reactbar { display: flex; justify-content: space-between; gap: 4px; }
.reactbar button { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 20px; line-height: 1; padding: 0; cursor: pointer; }
.reactbar button:active { transform: scale(1.15); }
.flyreact { position: fixed; bottom: 18%; z-index: 60; display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: fly 2.5s ease-out both; }
.flyreact b { font-size: 40px; line-height: 1.1; } .flyreact span { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
@keyframes fly { from { transform: translateY(30px) scale(.5); opacity: 0; } 20% { transform: none; opacity: 1; } 75% { opacity: 1; } to { transform: translateY(-260px); opacity: 0; } }
.answered { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 34px; }
.answered .mini { opacity: .35; border-radius: 50%; transition: opacity .2s; display: inline-flex; }
.answered .mini.done { opacity: 1; box-shadow: 0 0 0 2px var(--ok); animation: pop .4s var(--ease) both; }
.choice.slim { min-height: 44px; padding: 7px 12px; cursor: default; } .choice.slim.off { opacity: .6; }
.reveal { animation: pop .4s var(--ease) both; }
.timer .bar > i.low { background: var(--bad); }
.countdown-full.final b { color: var(--bad); } .countdown-full.final .eyebrow { font-size: 16px; color: var(--gold-ink); }
.podium.fresh .p { animation: rise .6s var(--ease) both; } .podium.fresh .p.third { animation-delay: .2s; } .podium.fresh .p.second { animation-delay: .8s; } .podium.fresh .p.first { animation-delay: 1.5s; }
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.award { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 10px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.award b { font-size: 24px; line-height: 1.1; } .award.me { border-color: var(--gold); background: var(--gold-soft); }
.confetti { position: fixed; inset: 0; z-index: 70; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 15px; border-radius: 2px; animation: confetti 2.4s linear both; }
@keyframes confetti { to { transform: translateY(110vh) rotate(720deg); opacity: .3; } }
details.card.lq > summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
s.err { text-decoration-thickness: 1.5px; }
.pgap.cur.ok { background: var(--ok); border-color: var(--ok); color: #fff; } .pgap.cur.bad { background: var(--bad); border-color: var(--bad); color: #fff; }
