/* ==========================================================================
   OwlVerse PTE — OwlVerse skin (Phase 2, plan §3). Hub design language
   with PTE's OWN navy accent #002855 (Adina 11:01 PKT): navy brand,
   hub pill tabs + components + spacing. Green (#16a34a, the hub green)
   stays as the secondary / success accent (owl mascot, correct answers,
   Reading skill, referral + sale accents) — it is no longer the brand.
   Per-skill colours: Speaking coral, Writing sky, Reading green,
   Listening teal. Poppins everywhere. Playful but clean.
   Compact type scale, tighter density so sections fit with
   less scrolling. NOTE: every class name app.js emits is styled here —
   do not rename or remove selectors without checking app.js first.
   ========================================================================== */
:root{
  /* Brand — OwlVerse PTE navy (Adina 11:01 PKT; Phase 2 §3.1). Green
     (#16a34a) stays as the secondary/success accent, not the brand. */
  --brand:#002855;--brand-dark:#001a38;--brand-light:#e8eef6;
  --emerald:#10b981;--emerald-dark:#059669;
  --green:#22c55e;--green-dark:#16a34a;
  --orange:#f97316;--coral:#f97316;--coral-dark:#ea580c;
  --sky:#0ea5e9;--navy:#002855;--violet:#8b5cf6;--pink:#ec4899;
  --amber:#f59e0b;--red:#ef4444;
  /* Per-skill colours */
  --speaking:#f97316;--writing:#0ea5e9;--reading:#22c55e;--listening:#14b8a6;
  /* Neutrals */
  --ink:#0f172a;--muted:#64748b;--line:#e2e8f0;--bg:#ffffff;--card:#fff;
  /* Gradients */
  --grad-brand:linear-gradient(135deg,#002855,#001a38);
  --grad-brand-soft:linear-gradient(135deg,#e0f2fe,#e0e7ff);
  --grad-coral:linear-gradient(135deg,#fb923c,#f97316);
  --grad-violet:linear-gradient(135deg,#a78bfa,#8b5cf6);
  --grad-sun:linear-gradient(135deg,#fbbf24,#f59e0b);
  --grad-sky:linear-gradient(135deg,#38bdf8,#0ea5e9);
  --grad-listening:linear-gradient(135deg,#2dd4bf,#0d9488);
  --grad-pink:linear-gradient(135deg,#f472b6,#ec4899);
  --grad-navy:linear-gradient(135deg,#002855,#001a38);
  /* Shadows */
  --sh-sm:0 4px 16px rgba(15,23,42,.10);
  --sh-md:0 12px 32px rgba(15,23,42,.13);
  --sh-lg:0 20px 48px rgba(15,23,42,.16);
  --r-lg:16px;--r-md:10px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Poppins,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  background-color:var(--bg);color:var(--ink);font-size:14px;line-height:1.5;
  background-image:
    radial-gradient(640px 300px at 88% -4%,rgba(0,40,85,.05),transparent 62%),
    radial-gradient(520px 280px at -6% 0%,rgba(0,40,85,.04),transparent 62%);
  background-attachment:fixed;
}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:14px;padding:9px 12px;border:1.5px solid var(--line);border-radius:10px;width:100%;background:#fff;color:var(--ink);transition:border-color .15s ease,box-shadow .15s ease}
input:focus,select:focus,textarea:focus{outline:2px solid #bcd0e8;outline-offset:1px;border-color:var(--brand);box-shadow:0 0 0 3px rgba(0,40,85,.18)}
input:disabled{color:var(--muted);background:#f8fafc}
label{font-size:13px;font-weight:500;color:#334155;display:block;margin:0 0 5px}
/* Typography rule: bold (700) appears ONLY in headings (h1-h4). Every other
   text — buttons, tabs, chips, labels, numbers, b/strong — is 500 (medium)
   or lighter, so hierarchy comes from SIZE, not weight. */
b,strong{font-weight:500}
h1,h2,h3,h4{line-height:1.25;font-weight:700}

/* ---------- Buttons: solid teal, hover lift ---------- */
.btn{background:var(--brand);color:#fff;border:0;border-radius:24px;padding:9px 18px;font-weight:500;font-size:13px;box-shadow:0 3px 10px rgba(0,40,85,.22);transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease,border-color .15s ease,filter .15s ease}
.btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 16px rgba(0,40,85,.28);background:var(--brand-dark)}
.btn:active:not(:disabled){transform:translateY(0) scale(.97);box-shadow:0 2px 6px rgba(0,40,85,.2)}
.btn.ghost{background:#fff;color:var(--brand);border:1.5px solid var(--brand);box-shadow:none}
.btn.ghost:hover:not(:disabled){background:var(--brand-light);box-shadow:0 6px 14px rgba(0,40,85,.15)}
.btn.light{background:var(--brand-light);color:var(--brand-dark);box-shadow:none}
.btn.light:hover:not(:disabled){background:#dbe6f2}
.btn.danger{background:linear-gradient(135deg,#f87171,#dc2626);box-shadow:0 4px 14px rgba(220,38,38,.28)}
.btn.orange{background:var(--grad-coral);box-shadow:0 4px 14px rgba(249,115,22,.3)}
.btn.dark{background:var(--grad-navy);box-shadow:0 4px 14px rgba(15,23,42,.3)}
.btn.danger-outline{background:#fff;border:1.5px solid #e53935;color:#e53935;box-shadow:none}
.btn.danger-outline:hover:not(:disabled){background:#fef2f2}
.btn.danger-outline:disabled{opacity:.45;cursor:not-allowed}
.btn.sm{padding:6px 11px;font-size:12px;border-radius:9px}
.btn:disabled{opacity:.55;cursor:not-allowed}
button:focus-visible,a:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.hidden{display:none!important}
.muted{color:var(--muted)} .small{font-size:12px} .bold{font-weight:500}
.center{text-align:center} .mt{margin-top:12px} .mb{margin-bottom:12px}

/* ---------- Auth ---------- */
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.auth-card{background:#fff;border:1px solid var(--line);border-radius:20px;max-width:420px;width:100%;padding:24px 22px;box-shadow:var(--sh-lg);position:relative;overflow:hidden}
.auth-card::before{content:"";position:absolute;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,#002855,#0ea5e9,#8b5cf6,#f97316)}
.auth-card .logo{width:72px;height:72px;object-fit:contain;display:block;margin:0 auto 8px;filter:drop-shadow(0 4px 10px rgba(15,23,42,.18))}
.auth-card h1{text-align:center;margin:6px 0 2px;font-size:22px}
.auth-card p.sub{text-align:center;color:var(--muted);margin:0 0 16px}
/* Hub pill tabs (Phase 2 §3): rounded tab bar, navy active pill — the
   hub's tab component (owlverse-designs/styles.css .tabs) in PTE navy.
   Tabs stay full-width (flex:1) so 2–4 tab rows fill the card; long rows
   scroll horizontally on phones instead of wrapping. */
.tabs{display:flex;background:#e8eef6;border:1px solid var(--line);border-radius:999px;padding:5px;margin-bottom:16px;overflow-x:auto}
.tabs button{flex:1;border:0;background:transparent;padding:9px 16px;border-radius:999px;font-size:13px;font-weight:500;color:var(--muted);transition:background-color .15s ease,color .15s ease,box-shadow .15s ease;white-space:nowrap}
.tabs button.active{background:var(--brand);color:#fff;box-shadow:0 4px 12px rgba(0,40,85,.3)}
.field{margin-bottom:11px}
.auth-foot{text-align:center;margin-top:16px;font-size:12px;color:var(--muted)}
/* Google Sign-In button (Google Identity Services renders into the wrap). */
#googleBtnWrap{display:flex;justify-content:center}
#googleBtnWrap>div{max-width:100%}
.g-divider{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;margin:14px 0}
.g-divider::before,.g-divider::after{content:"";flex:1;height:1px;background:var(--line)}
.msg{border-radius:10px;padding:9px 11px;font-size:13px;margin-bottom:12px;animation:msgIn .25s ease both}
.msg.err{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.msg.ok{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}
.msg.info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}

/* ---------- Onboarding ---------- */
.ob-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.ob-card{background:#fff;border:1px solid var(--line);border-radius:20px;max-width:600px;width:100%;padding:24px;box-shadow:var(--sh-lg);position:relative;overflow:hidden}
.ob-card::before{content:"";position:absolute;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,#002855,#0ea5e9,#8b5cf6,#f97316)}
.ob-steps{display:flex;gap:6px;margin-bottom:16px}
.ob-steps span{flex:1;height:5px;border-radius:3px;background:#e2e8f0;transition:background-color .3s ease}
.ob-steps span.on{background:var(--brand)}
.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.preset{border:2px solid var(--line);border-radius:14px;padding:12px;text-align:left;background:#fff;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease}
.preset:hover{transform:translateY(-2px);box-shadow:var(--sh-md)}
.preset:active{transform:translateY(0) scale(.98)}
.preset.sel{border-color:var(--brand);background:var(--brand-light);box-shadow:0 0 0 3px rgba(0,40,85,.15)}
.preset b{display:block}.preset small{color:var(--muted)}

/* ---------- App shell ---------- */
.shell{display:flex;min-height:100vh}
.sidebar{width:232px;background:#fff;color:var(--ink);position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;z-index:20;border-right:1px solid var(--line);box-shadow:2px 0 16px rgba(15,23,42,.07)}
.side-head{display:flex;align-items:center;gap:10px;padding:14px;border-bottom:1px solid var(--line)}
.side-head img{width:36px;height:36px;object-fit:contain;background:#fff;border-radius:10px;padding:2px;box-shadow:0 4px 10px rgba(0,0,0,.2)}
.side-head b{font-size:16px;color:var(--ink);display:block;line-height:1.1}
.side-head small{color:var(--brand);font-size:11px}
.side-nav{flex:1;overflow-y:auto;padding:10px 8px}
.side-nav button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:#334155;padding:8px 10px;border-radius:10px;font-size:13px;text-align:left;margin-bottom:2px;transition:background-color .15s ease,color .15s ease,transform .15s ease}
.side-nav button:hover{background:var(--brand-light);color:var(--brand-dark);transform:translateX(2px)}
.side-nav button.active{background:var(--brand);color:#fff;box-shadow:0 4px 12px rgba(15,23,42,.18)}
.side-nav .ico{width:22px;text-align:center;flex-shrink:0;font-size:16px}
.side-nav .ico .ico-svg{width:19px;height:19px;vertical-align:-4px}
.side-foot{padding:12px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.main{flex:1;margin-left:232px;padding:18px 20px;max-width:1120px;width:calc(100% - 232px)}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.topbar h2{margin:0;font-size:20px;color:var(--ink)}
/* Pills & chips */
.pill{display:inline-block;padding:3px 11px;border-radius:999px;font-size:12px;font-weight:500;background:var(--brand-light);color:var(--brand-dark)}
.pill.navy{background:#dbeafe;color:var(--navy)} .pill.green{background:#dcfce7;color:#166534}
.pill.orange{background:#ffedd5;color:#9a3412} .pill.sky{background:#e0f2fe;color:#075985}
.pill.red{background:#fee2e2;color:#991b1b} .pill.amber{background:#fef3c7;color:#92400e}
.pill.orange-outline{background:#fff;border:1.5px solid #f08a4b;color:#f08a4b}
.pill.violet{background:#ede9fe;color:#6d28d9} .pill.pink{background:#fce7f3;color:#be185d}
.pill.teal{background:#ccfbf1;color:#0f766e}
.chip{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:500;background:#f1f5f9;color:#475569;margin-right:4px;border:1px solid transparent}
.chip.pred{background:#fef3c7;color:#92400e;border-color:#fde68a}
.chip.diff-easy{color:#15803d;border-color:#86efac;background:#f0fdf4}
.chip.diff-medium{color:#c2410c;border-color:#fdba74;background:#fff7ed}
.chip.diff-hard{color:#b91c1c;border-color:#fca5a5;background:#fef2f2}
.chip.practiced{background:#f0fdf4;color:#15803d;border-color:#bbf7d0}
.chip.new{background:#fdf2f8;color:#9d174d;border-color:#fbcfe8}
.chip.appeared{background:#f0fdf4;color:#166534;border-color:#bbf7d0}
/* Cards & grids */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:15px;margin-bottom:16px;box-shadow:var(--sh-sm);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease}
.card:hover{transform:translateY(-2px);box-shadow:var(--sh-md)}
.grid{display:grid;gap:14px}
.g2{grid-template-columns:1fr 1fr}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}
.stat b{font-size:22px;display:block}.stat span{color:var(--muted);font-size:12px}
.tile{cursor:pointer}.tile:hover{border-color:var(--brand)}
.qrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;margin-bottom:6px;background:#fff;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease}
.qrow:hover{border-color:var(--brand);background:#f8fafc;transform:translateY(-1px);box-shadow:var(--sh-md)}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.filters select,.filters input{width:auto;flex:1;min-width:140px}
.rules{background:linear-gradient(135deg,#fffbeb,#fef3c7);border:1px solid #fde68a;border-radius:10px;padding:11px 13px;margin-bottom:12px}
.rules h4{margin:0 0 6px;color:#92400e}
.rules ul{margin:0;padding-left:20px}
.timer{font-size:18px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--brand-dark)}
.timer.low{color:var(--red)}
.score-big{font-size:34px;font-weight:500}
.score-good{color:var(--green-dark)} .score-mid{color:var(--amber)} .score-low{color:var(--red)}
.review-correct{color:#15803d;font-weight:500} .review-wrong{color:#b91c1c;font-weight:500}
.word-ok{color:#15803d} .word-bad{color:#dc2626;text-decoration:underline}
.word-rep{color:#b45309;text-decoration:underline wavy #b45309}
.zero-gate{background:#fef2f2;border:1px solid #fecaca;border-left:4px solid #dc2626;border-radius:8px;padding:12px 14px}
.zero-gate b{color:#991b1b}
.blank-orange{color:var(--orange);font-weight:500}
.blank-slot{color:var(--orange);font-weight:500;letter-spacing:1px}
.lock{font-size:22px}
.lock-card{border-color:#f59e0b;background:#fffbeb;text-align:center}
.lock-card .lock{font-size:32px}
table{width:100%;border-collapse:collapse;font-size:13px}
th,td{padding:7px 8px;border-bottom:1px solid var(--line);text-align:left}
th{background:#f8fafc;color:#475569}
.plan-card{border:2px solid var(--line);border-radius:14px;padding:16px;text-align:center;position:relative;background:#fff;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.plan-card:hover{transform:translateY(-1px);box-shadow:var(--sh-md)}
.plan-card.popular{border-color:var(--brand);box-shadow:0 6px 20px rgba(0,40,85,.18)}
.popular-tag{position:absolute;top:-12px;left:50%;transform:translateX(-50%)}
.strike{text-decoration:line-through;color:var(--muted)}
.off-badge{background:linear-gradient(135deg,#f87171,#dc2626);color:#fff;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:500}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.thumb{border:1px solid var(--line);border-radius:10px;padding:8px;cursor:pointer;background:#fff;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.thumb:hover{border-color:var(--brand);transform:translateY(-1px);box-shadow:var(--sh-md)}
.thumb svg{width:100%;height:auto}
.thumb-chart{border-radius:8px;overflow:hidden;margin-bottom:6px}
.thumb-chart svg{width:100%;height:auto;display:block}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.85);z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;color:#fff}
.lightbox .box{background:#fff;color:var(--ink);border-radius:14px;padding:16px;max-width:900px;width:100%;max-height:88vh;overflow:auto}
.accordion{border:1px solid var(--line);border-radius:10px;margin-bottom:8px;overflow:hidden;background:#fff}
.accordion button{width:100%;text-align:left;background:#fff;border:0;padding:11px 12px;font-weight:500;font-size:14px;display:flex;justify-content:space-between;align-items:center;gap:10px;transition:background-color .15s ease}
.accordion button:hover{background:#f8fafc}
.accordion button span{color:var(--brand);font-weight:500}
.accordion .body{padding:0 14px 14px;display:none}
.accordion.open .body{display:block}
.level-bar{height:8px;background:#e2e8f0;border-radius:5px;overflow:hidden;margin:6px 0}
.level-fill{height:100%;background:#16a34a;transition:width .5s ease;border-radius:5px}
.ring-wrap{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.ring{width:96px;height:96px;margin:0 auto}
.ring svg{width:100%;height:auto;display:block}
.admin-table{overflow-x:auto}

/* ---------- Offer banner / type grid / practice bits ---------- */
.offer-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:linear-gradient(90deg,#fffbeb,#fef3c7);border:1px solid #fde68a;border-radius:14px;padding:12px 16px;margin-bottom:12px;box-shadow:var(--sh-sm)}
.offer-cd{color:#b45309;font-weight:500;font-variant-numeric:tabular-nums}
.type-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin-top:12px}
.type-card{border:1px solid var(--line);border-radius:12px;padding:12px;cursor:pointer;background:#fff;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease}
.type-card:hover{border-color:var(--brand);background:#f8fafc;transform:translateY(-1px);box-shadow:var(--sh-md)}
/* Slim type chooser (Practice page): skill tabs + compact cards with a
   done/total count and a thin progress bar. */
.type-tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin:12px 0 12px;overflow-x:auto}
.type-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 4px 10px;background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;font-size:13px;font-weight:500;color:var(--ink-soft);cursor:pointer;white-space:nowrap}
.type-tabs button .type-ico{width:22px;height:22px;border-radius:7px}
.type-tabs button .type-ico .ico-svg{width:13px;height:13px}
.type-tabs button:hover{color:var(--ink)}
.type-tabs button.sk-speaking.active{color:#ea580c;border-bottom-color:#f97316}
.type-tabs button.sk-writing.active{color:#0284c7;border-bottom-color:#0ea5e9}
.type-tabs button.sk-reading.active{color:#16a34a;border-bottom-color:#22c55e}
.type-tabs button.sk-listening.active{color:#0d9488;border-bottom-color:#14b8a6}
.type-grid-slim{grid-template-columns:1fr 1fr;gap:12px;margin-top:0}
#typeGrid .type-card{display:flex;align-items:center;gap:11px;padding:11px 13px}
#typeGrid .type-card.active{border-color:var(--brand);background:var(--brand-light);box-shadow:0 0 0 2px rgba(0,40,85,.15)}
#typeGrid .type-ico{width:34px;height:34px;border-radius:10px;flex:none}
#typeGrid .type-ico .ico-svg{width:19px;height:19px}
.tc-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.tc-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.tc-top b{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-count{font-size:12px;color:var(--ink-soft);white-space:nowrap}
.tc-count b{color:var(--brand-dark)}
.tc-bar{display:block;height:4px;border-radius:99px;background:#e8edf2;overflow:hidden}
.tc-bar span{display:block;height:100%;border-radius:99px;background:var(--brand)}
#typeGrid .type-card.sk-speaking .tc-bar span{background:#f97316}
#typeGrid .type-card.sk-writing .tc-bar span{background:#0ea5e9}
#typeGrid .type-card.sk-reading .tc-bar span{background:#22c55e}
#typeGrid .type-card.sk-listening .tc-bar span{background:#14b8a6}
.type-count{font-size:22px;font-weight:500;color:var(--brand-dark);margin:4px 0 2px}
.audio-box{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:12px;margin-top:12px}
.opt{display:flex;gap:8px;font-weight:400;padding:9px 11px;border:1.5px solid var(--line);border-radius:10px;margin-bottom:6px;cursor:pointer;background:#fff;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease}
.opt:hover{border-color:var(--brand);transform:translateY(-1px);box-shadow:var(--sh-sm)}
.opt:active{transform:translateY(0) scale(.98)}
.opt input{width:auto;margin-top:3px;accent-color:var(--brand)}
.opt-correct{background:#f0fdf4!important;border-color:#16a34a!important}
.opt-wrong{background:#fef2f2!important;border-color:#dc2626!important}
.hiw-word{cursor:pointer;padding:2px 3px;border-radius:4px;transition:background-color .12s ease}
.hiw-word:hover{background:#e0f2fe}
.hiw-word.selected{background:#fef3c7;outline:2px solid #f59e0b}
.hiw-found{background:#bbf7d0;color:#166534;font-weight:500}
.hiw-missed{background:#dcfce7;color:#166534;text-decoration:underline}
.hiw-wrongpick{background:#fee2e2;color:#dc2626;font-weight:500}
.reorder-row{cursor:default}
.model-box{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;margin-top:8px;white-space:pre-wrap}
.swt-check{background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-top:12px}
.swt-check ul{margin:6px 0;padding-left:20px}
.swt-check li.ok{color:#15803d}
.swt-check li.bad{color:#b91c1c}
.check-row{display:flex;gap:10px;font-weight:400;padding:8px 10px;border:1px solid var(--line);border-radius:10px;margin-bottom:6px;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.check-row:hover{transform:translateY(-1px);box-shadow:var(--sh-sm)}
.check-row:active{transform:translateY(0) scale(.98)}
.check-row input{width:auto;margin-top:3px;accent-color:var(--brand)}
.chart-svg{width:100%;height:auto}
/* Runner: keep Describe Image charts at a readable size so the whole
   picture, the timer and the question fit on one screen. */
#qBody .chart-svg{max-width:640px;max-height:400px;display:block;margin:8px auto}
.chart-legend{font-size:13px;line-height:1.8}
.sw{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:middle}
.combo-row{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.combo-lab{width:70px;flex-shrink:0;font-size:13px;text-align:right}
.combo-bars{flex:1}
.combo-bar{height:20px;border-radius:6px;color:#fff;font-size:12px;line-height:20px;padding:0 6px;margin-bottom:3px;min-width:34px;transition:width .4s ease}
.flow-wrap{margin-top:10px}
.flow-step{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.flow-step.diamond{border-color:var(--amber);background:#fffbeb}
.flow-num{display:inline-flex;width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;align-items:center;justify-content:center;font-weight:500;flex-shrink:0}
.flow-arrow{text-align:center;color:var(--muted);font-size:16px;line-height:1.4}
.photo-panel{background:linear-gradient(135deg,#e0f2fe,#ecfeff);border-radius:10px;padding:18px;text-align:center;margin:10px 0}
.zoom-bar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}
.mock-bar{margin-bottom:16px}
.mock-page{border-top:4px solid var(--brand)}
/* ---------- Modal ---------- */
.modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:20px;animation:fadeIn .2s ease both}
.modal-back{position:absolute;inset:0;background:rgba(15,23,42,.6)}
.modal-box{position:relative;background:#fff;border-radius:18px;padding:20px;max-width:520px;width:100%;max-height:88vh;overflow:auto;box-shadow:var(--sh-lg);animation:popIn .25s ease both}
.modal-x{position:absolute;top:12px;right:12px;border:0;background:#f1f5f9;border-radius:10px;padding:6px 10px;font-size:14px;min-height:36px;min-width:36px}
.modal-x:hover{background:#e2e8f0}
/* ---------- Animations ---------- */
@keyframes viewIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
#main.view-in{animation:viewIn .28s ease both}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes popIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
.skel-line{height:16px;border-radius:8px;margin:10px 0;background:linear-gradient(90deg,#e2e8f0 25%,#f1f5f9 50%,#e2e8f0 75%);background-size:200% 100%;animation:shimmer 1.4s linear infinite}
.skel-line.skel-title{height:24px;width:55%}
.skel-line.short{width:40%}
@keyframes micPulse{0%{box-shadow:0 0 0 0 rgba(0,40,85,.45)}70%{box-shadow:0 0 0 12px rgba(0,40,85,0)}100%{box-shadow:0 0 0 0 rgba(0,40,85,0)}}
#micBtn.mic-live{animation:micPulse 1.6s ease-out infinite}
@keyframes msgIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@keyframes resultIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.result-in{animation:resultIn .35s ease both}
@keyframes micBlink{0%,100%{opacity:1}50%{opacity:.45}}
@keyframes pulseRing{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.65);opacity:0}}
@keyframes waveBar{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
@keyframes slideUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
/* ---------- Bottom tab bar (mobile app-like; hidden on desktop) ---------- */
.bottom-nav{display:none}
.sheet-handle{display:none}

/* ============================== Dashboard (v3) ============================== */
.dash-tabs{display:flex;background:#f1f5f9;border-radius:10px;padding:4px;margin-bottom:12px}
.dash-tabs button{flex:1;border:0;background:transparent;padding:8px;border-radius:8px;font-size:14px;font-weight:500;color:var(--muted);min-height:36px;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}
.dash-tabs button.active{background:#fff;color:var(--brand);box-shadow:0 1px 4px rgba(0,0,0,.1)}
.dash-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.dash-toolbar input{flex:1;min-width:200px}
.dash-grid{display:grid;grid-template-columns:1fr 320px;gap:16px;align-items:start}
.dash-left{min-width:0}
.dash-side{min-width:0}
.dash-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:12px}
.dash-stat{cursor:pointer;margin-bottom:0}
.dash-big{font-size:22px;font-weight:500;line-height:1.1;margin:4px 0}
.dash-total{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.skill-tabs{display:flex;gap:6px;flex-wrap:wrap}
.skill-tabs button{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:500;color:var(--muted);min-height:32px;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.skill-tabs button.active{background:var(--brand);border-color:transparent;color:#fff;box-shadow:0 4px 12px rgba(0,40,85,.3)}
.skill-tabs button.sk-speaking.active{background:#f97316;border-color:transparent;box-shadow:0 4px 12px rgba(249,115,22,.3)}
.skill-tabs button.sk-writing.active{background:#0ea5e9;border-color:transparent;box-shadow:0 4px 12px rgba(14,165,233,.3)}
.skill-tabs button.sk-reading.active{background:#22c55e;border-color:transparent;box-shadow:0 4px 12px rgba(34,197,94,.3)}
.skill-tabs button.sk-listening.active{background:#14b8a6;border-color:transparent;box-shadow:0 4px 12px rgba(20,184,166,.3)}
.type-row{padding:10px 0;border-bottom:1px solid #f1f5f9;cursor:pointer}
.type-row:last-child{border-bottom:0}
.type-row-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.type-group h4{font-size:15px}
.mini-body{padding:6px 0 2px}
/* Feature tiles — colourful */
.feature-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}
.feature-tile{border:0;border-radius:14px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;gap:6px;font-weight:500;font-size:13px;color:var(--ink);min-height:72px;transition:transform .18s ease,box-shadow .18s ease}
.feature-tile:hover{transform:translateY(-2px) scale(1.02);box-shadow:var(--sh-md)}
.feature-tile .ft-ico{font-size:22px;line-height:1}
.ft-green{background:linear-gradient(135deg,#dcfce7,#bbf7d0)} .ft-orange{background:linear-gradient(135deg,#ffedd5,#fed7aa)}
.ft-blue{background:linear-gradient(135deg,#dbeafe,#bfdbfe)} .ft-red{background:linear-gradient(135deg,#fee2e2,#fecaca)}
.ft-teal{background:linear-gradient(135deg,#dcfce7,#bbf7d0)} .ft-purple{background:linear-gradient(135deg,#ede9fe,#ddd6fe)}
.ft-amber{background:linear-gradient(135deg,#fef3c7,#fde68a)} .ft-pink{background:linear-gradient(135deg,#fce7f3,#fbcfe8)}
/* Side cards */
.target-card{background:#fff;border-color:var(--line)}
.teal-head{background:var(--brand);color:#fff;font-weight:500;border-radius:10px;padding:9px 12px;margin:-15px -15px 0}
.new-task{border:1px solid var(--line);border-radius:10px;padding:9px 10px;cursor:pointer;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}
.new-task:hover{border-color:var(--brand);box-shadow:var(--sh-sm)}
.calendar{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}
.cal-head{margin:10px 0 6px;font-weight:500}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}
.cal-dow{font-size:11px;font-weight:500;color:var(--muted)}
.cal-day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:8px;font-size:12px;border:1px solid transparent}
.cal-day.empty{background:transparent}
.cal-day.done{background:#16a34a;color:#fff;font-weight:500}
.cal-day.pending{background:#e2e8f0;color:#64748b}
.cal-day.not-opened{background:#fff;border-color:#e2e8f0;color:#334155}
.cal-day.exam{border:2px solid #ea580c;font-weight:500}
.cal-day.today{outline:2px solid var(--brand);outline-offset:1px}
/* Pitch gauge */
.pitch-gauge{height:14px;background:#e2e8f0;border-radius:7px;overflow:hidden;margin:10px 0}
.pitch-fill{height:100%;width:0%;background:linear-gradient(90deg,#22c55e,#16a34a,#ea580c);transition:width .15s}
/* Mic bits */
.mic-pill{display:inline-block;background:linear-gradient(135deg,#f87171,#dc2626);color:#fff;font-weight:500;font-size:12px;border-radius:999px;padding:5px 12px;animation:micBlink 1.2s ease-in-out infinite}
.mic-chip{display:inline-block;padding:5px 12px;border-radius:999px;font-size:12px;font-weight:500;background:#f1f5f9;color:#475569}
.mic-chip.ok{background:#dcfce7;color:#166534}
.mic-blocked{background:#fef2f2;border:1px solid #fecaca;border-radius:12px;padding:14px;margin-top:8px}
.mic-blocked ol{margin:8px 0;padding-left:20px}
.mic-blocked li{margin-bottom:4px}
.hidden-text-box{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:13px}
/* Predictions */
.pred-type{padding:10px 0;border-bottom:1px solid #f1f5f9}
.pred-type:last-child{border-bottom:0}
.pred-done{color:var(--brand-dark);font-weight:500}
.pred-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.pred-chip{border:0;border-radius:999px;padding:7px 13px;font-size:12px;font-weight:500;min-height:32px;transition:transform .15s ease,filter .15s ease}
.pred-chip.diff-easy{background:#dcfce7;color:#166534}
.pred-chip.diff-medium{background:#fef3c7;color:#92400e}
.pred-chip.diff-hard{background:#fee2e2;color:#991b1b}
.pred-chip.locked{opacity:.75;cursor:not-allowed}
.pred-chip:not(.locked):hover{filter:brightness(.95);transform:translateY(-1px)}
/* Answer / score bits */
.model-answer-box{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:14px;margin-top:12px}
.model-answer-box p{margin:8px 0 0;white-space:pre-wrap}
.score-modal-head{background:#15803d;color:#fff;border-radius:10px;padding:12px 14px;margin:-20px -20px 0}
.score-modal-head h3{color:#fff}
.score-modal-head .small{color:#dcfce7}
.blank-ok{border-color:#16a34a!important;background:#f0fdf4}
.blank-wrong{border-color:#dc2626!important;background:#fef2f2}
.fib-row{padding:6px 0;border-bottom:1px solid #f1f5f9}
.mini-result{margin-top:12px}
.count-up{font-variant-numeric:tabular-nums}
/* Templates */
.tpl-var{color:#ea580c;font-weight:500}
.tpl-example{white-space:pre-wrap}
.tpl-blank{display:inline-block;width:140px;max-width:45%;border:0;border-bottom:2px solid #ea580c;background:#fff7ed;color:#c2410c;font-weight:500;padding:2px 6px;border-radius:6px 6px 0 0;margin:0 2px}
.tpl-blank:focus{outline:2px solid #fdba74}
.tpl-card{border-top:4px solid var(--brand)}
.tpl-card:nth-child(4n+2){border-top-color:var(--speaking)}
.tpl-card:nth-child(4n+3){border-top-color:var(--writing)}
.tpl-card:nth-child(4n+4){border-top-color:var(--listening)}
/* Info banner / mic chooser / language / credits */
.info-banner{background:linear-gradient(135deg,#e3f2fb,#dbeafe);color:#1e3a5f;border-radius:10px;padding:12px 14px;margin:14px 0;font-size:14px}
.mc-ico{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#fce7f3,#fbcfe8);color:#db2777;display:flex;align-items:center;justify-content:center;font-size:24px;flex:none}
.mc-row{display:flex;gap:10px;align-items:center;min-height:44px;padding:9px 12px;border:1px solid #e3e8ee;border-radius:10px;background:#f8fafc;margin-bottom:8px;cursor:pointer;font-size:14px;transition:background-color .15s ease,border-color .15s ease}
.mc-row.sel{background:#f0fdf4;border-color:#16a34a}
.mc-radio{color:#16a34a;font-size:16px;flex:none}
.lang-q{width:72px;height:72px;border-radius:50%;background:var(--brand);color:#fff;font-size:34px;font-weight:500;display:flex;align-items:center;justify-content:center;margin:0 auto;box-shadow:0 8px 20px rgba(0,40,85,.3)}
.credits-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:18px}
.check-list{list-style:none;padding:0;margin:10px 0}
/* v3.7.23: destination checkbox grid (consultant register + profile).
   The global input{width:100%} rule would balloon the checkboxes, so
   width:auto is set here (same lesson as the v3.7.19 plan radios). */
.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.check-grid .check{display:flex;gap:6px;align-items:center;font-weight:400;padding:6px 8px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.check-grid .check input{width:auto;margin:0;accent-color:var(--brand)}
.check-list li{padding:6px 0 6px 26px;position:relative;font-size:14px}
.check-list li::before{content:"✓";position:absolute;left:0;color:#16a34a;font-weight:500}

/* ---------- Practice list ---------- */
.practice-list .pl-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.pl-title{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:500}
.pl-ico{width:36px;height:36px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:500;flex:none;background:var(--brand);box-shadow:0 4px 10px rgba(0,40,85,.3)}
.pl-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:10px}
.status-check{display:flex;gap:6px;align-items:center;font-weight:500;color:#475569;cursor:pointer}
.status-check input{width:18px;height:18px;accent-color:#16a34a}
.continue-banner{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:linear-gradient(135deg,#fdf3ec,#ffedd5);border:1px solid #f5c99b;border-radius:10px;padding:10px 14px;margin-top:12px;cursor:pointer;font-size:14px}
.continue-banner b{color:#f08a4b}
.banner-x{margin-left:auto;border:0;background:transparent;color:#f08a4b;font-size:16px;cursor:pointer;min-width:44px;min-height:44px}
.pl-tabs{display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin-top:12px;border-bottom:1px solid #e3e8ee;padding-bottom:8px}
.pl-tabs>button{border:0;background:transparent;padding:8px 11px;font-weight:500;color:#64748b;cursor:pointer;min-height:38px;border-bottom:2px solid transparent}
.pl-tabs>button.active{color:#f08a4b;border-bottom-color:#f08a4b}
.pl-tabs select{margin-left:6px}
.pl-row{align-items:flex-start}
.pl-row-top{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.pl-qid{color:var(--brand);font-weight:500;white-space:nowrap}
.pl-title-text{font-weight:500}
.pl-num{white-space:nowrap}
.pl-type{background:#f0fdf4;color:#15803d;border-color:#bbf7d0}
/* Question-list checkbox (v3.7.5): single-select — checking a row opens that
   question in the runner. The open question's row stays checked + highlighted. */
.pl-check{flex:none;display:flex;align-items:center;cursor:pointer;padding-top:2px}
.pl-qcheck{width:18px;height:18px;accent-color:#16a34a;cursor:pointer;margin:0}
.pl-row.pl-active{border-color:var(--brand);background:var(--brand-light);box-shadow:0 0 0 2px rgba(0,40,85,.18)}
.pl-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.bm-btn{border:0;background:transparent;font-size:18px;cursor:pointer;min-width:36px;min-height:36px;filter:grayscale(1);opacity:.55;flex:none;transition:transform .15s ease,opacity .15s ease}
.bm-btn:hover{transform:scale(1.15);opacity:.85}
.bm-btn.bm-red{filter:none;opacity:1;color:#dc2626}
.bm-btn.bm-purple{filter:none;opacity:1;color:#7c3aed}
.bm-btn.bm-blue{filter:none;opacity:1;color:#2563eb}
.bm-btn.bm-green{filter:none;opacity:1;color:#16a34a}
/* ---------- Runner extras ---------- */
.diff-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.diff{font-size:13px;font-weight:500;color:var(--muted)}
.diff-pill{border:1.5px solid #cbd5e1;background:#fff;border-radius:999px;padding:7px 15px;font-weight:500;cursor:pointer;min-height:36px;transition:background-color .15s ease,border-color .15s ease,transform .15s ease}
.diff-pill:hover{transform:translateY(-1px)}
.diff-pill.sel{background:var(--brand);border-color:transparent;color:#fff;box-shadow:0 4px 12px rgba(0,40,85,.3)}
.info-notes{margin-top:12px;color:#475569;font-size:13px}
.info-notes p{margin:5px 0}
.runner-tabs{display:flex;gap:4px;margin-top:12px;border-bottom:1px solid #e3e8ee;overflow-x:auto}
.runner-tabs button{border:0;background:transparent;padding:8px 12px;font-weight:500;color:#64748b;cursor:pointer;min-height:38px;white-space:nowrap;border-bottom:2px solid transparent}
.runner-tabs button.active{color:#f08a4b;border-bottom-color:#f08a4b}
.runner-tab-body{margin-top:12px}
.empty-panel{background:#f8fafc;border-radius:10px;padding:24px 14px;text-align:center;color:#64748b}
.attempt-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #e3e8ee;border-radius:10px;padding:9px 11px;margin-bottom:8px}
.attempt-ava{width:34px;height:34px;border-radius:50%;background:#f1f5f9;display:flex;align-items:center;justify-content:center;font-size:17px}
.edit-toolbar .btn{min-height:44px}
/* ---------- Score Analysis modal ---------- */
.sa-modal{max-width:760px}
.sa-head{background:linear-gradient(90deg,#15803d,#166534);color:#fff;border-radius:12px;padding:12px 14px;margin:-20px -20px 0;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.sa-head .sa-qid{font-weight:500;white-space:nowrap}
.sa-title{display:flex;flex-direction:column;flex:1;min-width:140px}
.sa-title b{font-size:18px}
.sa-title .small{color:#dcfce7}
.sa-head-btns{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sa-head-btns .btn{background:transparent;border:1.5px solid rgba(255,255,255,.8);color:#fff;box-shadow:none}
.sa-head-btns .btn:hover{background:rgba(255,255,255,.15);color:#fff}
.sa-head-btns .modal-x{position:static;background:rgba(255,255,255,.2);color:#fff}
.sa-redo{white-space:nowrap}
.sa-body{padding-top:16px}
.sa-qbar{width:100%;background:#16a34a;color:#fff;border:0;border-radius:10px;padding:10px;font-weight:500;cursor:pointer;min-height:40px;box-shadow:0 4px 12px rgba(22,163,74,.25)}
.sa-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.sa-card{border:1px solid #e3e8ee;border-radius:12px;overflow:hidden;background:#fff}
.sa-card-head{color:#fff;font-weight:500;text-align:center;padding:8px}
.sa-card-head.navy{background:linear-gradient(135deg,#1e3a5f,#0f172a)}
.sa-card-head.green{background:linear-gradient(135deg,#4caf50,#16a34a)}
.sa-card-head.teal{background:#15803d}
.sa-card-body{padding:14px;text-align:center;display:flex;flex-direction:column;gap:6px;align-items:center}
.sa-ring{width:76px;height:76px;border:2px solid #e2e8f0;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:500}
.sa-time{display:flex;gap:16px;justify-content:center}
.sa-digits{display:flex;gap:4px;margin-top:4px}
.sa-digits span{background:#f0fdf4;color:#166534;font-weight:500;font-size:20px;border-radius:6px;padding:6px 10px}
.sa-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.sa-panel{border:1px solid #e3e8ee;border-radius:12px;overflow:hidden;background:#fff}
.sa-panel-head{background:#15803d;color:#fff;font-weight:500;text-align:center;padding:8px}
.sa-list{list-style:none;margin:0;padding:12px}
.sa-list li{padding:6px 0;border-bottom:1px solid #f1f5f9;font-size:14px;line-height:1.5}
.sa-list.ok li{color:#15803d}
.sa-list.ok li::before{content:"✓ "}
.sa-list.bad li{color:#b91c1c}
.sa-list.bad li::before{content:"• "}
.sa-list li.li-ok{color:#15803d}
.sa-list li.li-ok::before{content:"✓ "}
.sa-list li.li-bad{color:#b91c1c}
.sa-list li.li-bad::before{content:"• "}
/* ---------- Mock tests page ---------- */
.mock-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.mock-top .tabs{flex:1;margin-bottom:0;min-width:220px}
.mock-sub{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:14px}
.subtabs{display:flex;gap:4px;flex-wrap:wrap}
.subtabs button{border:0;background:transparent;padding:8px 11px;font-weight:500;color:#64748b;cursor:pointer;min-height:38px;border-bottom:2px solid transparent}
.subtabs button.active{color:#f08a4b;border-bottom-color:#f08a4b}
.check-inline{display:flex;gap:6px;align-items:center;font-weight:500;color:#475569;cursor:pointer}
.check-inline input{width:18px;height:18px;accent-color:#16a34a}
.mock-card{border:1px solid #e3e8ee;border-radius:12px;padding:12px 14px;margin-top:10px;background:#fff;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.mock-card:hover{transform:translateY(-1px);box-shadow:var(--sh-md)}
.mock-card.free{border-color:var(--line);background:#f8fafc}
.mock-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.mock-card-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.pager{display:flex;gap:5px;justify-content:center;align-items:center;margin-top:14px;flex-wrap:wrap}
.pg-btn{min-width:34px;min-height:34px;border:1px solid #e3e8ee;background:#fff;border-radius:8px;cursor:pointer;font-weight:500;color:#475569;font-size:13px;padding:0 8px;transition:background-color .15s ease,color .15s ease}
.pg-btn.cur{background:var(--brand);color:#fff;border-color:transparent;box-shadow:0 3px 10px rgba(0,40,85,.3)}
.pg-btn:disabled{opacity:.4;cursor:default}
.pg-dots{color:var(--muted);font-weight:500;padding:0 2px}
.pg-info{font-size:12px;color:var(--muted);text-align:center;margin-top:6px}
/* Sticky pager: stays pinned to the bottom of the viewport while the
   question list scrolls, so pagination is always in reach. */
.pl-pager-sticky{position:sticky;bottom:0;z-index:5;background:#fff;border-top:1px solid var(--line);padding:8px 0 4px;margin:12px -15px -15px}
/* ---------- Dashboard v3.2 blocks ---------- */
.today-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}
.today-skill{display:flex;gap:10px;align-items:flex-start}
.ts-ico{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;flex:none;background:#f1f5f9}
.today-big{border:1px solid #e3e8ee;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:4px;background:#fff}
.refer-card{background:linear-gradient(135deg,#fdf3ec,#ffedd5);border-color:#fed7aa}
.refer-steps{display:flex;flex-direction:column;gap:10px;margin:12px 0}
.refer-step{display:flex;gap:10px;align-items:center}
.rs-ico{width:36px;height:36px;border-radius:50%;background:#dcfce7;color:#15803d;display:flex;align-items:center;justify-content:center;font-size:18px;flex:none;box-shadow:var(--sh-sm)}
.social-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.soc-ico{width:44px;height:44px;border-radius:50%;background:#f1f5f9;display:flex;align-items:center;justify-content:center;font-size:20px;text-decoration:none;flex:none;transition:transform .15s ease,box-shadow .15s ease}
.soc-ico:hover{transform:translateY(-2px) scale(1.06);box-shadow:var(--sh-md);text-decoration:none}
.video-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.video-card{cursor:pointer}
.video-thumb{aspect-ratio:16/9;background:linear-gradient(135deg,#1e3a5f,#0f172a);color:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:24px}

/* ==========================================================================
   NEW (v3.3) — question panel drawer, mic stage, audio player, phase strip,
   template blocks, script/answer panels, DI categories, referral, banners
   ========================================================================== */
/* ---------- Question panel drawer ---------- */
.qpanel-overlay{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:140;opacity:0;pointer-events:none;transition:opacity .25s ease}
.qpanel-overlay.open{opacity:1;pointer-events:auto}
.qpanel{position:fixed;top:0;right:0;bottom:0;width:640px;max-width:94vw;background:#fff;z-index:150;box-shadow:-12px 0 40px rgba(15,23,42,.18);transform:translateX(105%);transition:transform .3s cubic-bezier(.32,.72,.35,1);display:flex;flex-direction:column;border-radius:20px 0 0 20px;overflow:hidden}
.qpanel.open{transform:translateX(0)}
.qp-head{display:flex;align-items:center;gap:10px;padding:13px 14px;background:var(--brand);color:#fff;flex:none}
.qp-title{font-size:16px;font-weight:500;flex:1;margin:0}
.qp-close{border:0;background:rgba(255,255,255,.2);color:#fff;border-radius:9px;width:34px;height:34px;font-size:17px;flex:none}
.qp-close:hover{background:rgba(255,255,255,.35)}
.qp-search{padding:10px 12px 4px;flex:none}
.qp-search input{border-radius:999px;padding-left:16px}
.qp-filters{display:flex;gap:8px;flex-wrap:wrap;padding:8px 12px;flex:none;border-bottom:1px solid var(--line)}
.qp-filters select{width:auto;flex:1;min-width:110px;border-radius:999px;padding:7px 11px;font-size:12px}
.qp-chip-row{display:flex;gap:6px;flex-wrap:wrap;width:100%}
.qp-chip{border:1px solid var(--line);background:#fff;color:var(--ink-soft);border-radius:999px;padding:6px 12px;font-size:12px;font-weight:500;cursor:pointer}
.qp-chip:hover{border-color:var(--brand);color:var(--brand-dark)}
.qp-chip.active{background:var(--brand);border-color:var(--brand);color:#fff}
#qPanel .continue-banner{margin:10px 12px 0}
.qp-list{flex:1;overflow-y:auto;padding:8px 10px}
.qp-row{display:flex;gap:10px;align-items:center;padding:9px 11px;border:1px solid var(--line);border-radius:10px;margin-bottom:6px;cursor:pointer;background:#fff;transition:border-color .15s ease,background-color .15s ease,transform .15s ease}
.qp-row:hover{border-color:var(--brand);background:#f8fafc;transform:translateX(-2px)}
.qp-row.active{border-color:var(--brand);background:var(--brand-light);box-shadow:0 0 0 2px rgba(0,40,85,.18)}
.qp-page{display:flex;gap:6px;justify-content:center;align-items:center;padding:8px;border-top:1px solid var(--line);flex:none;flex-wrap:wrap}
.qp-fab{position:fixed;right:18px;bottom:24px;z-index:130;width:52px;height:52px;border-radius:50%;border:0;background:var(--brand);color:#fff;font-size:20px;box-shadow:0 10px 24px rgba(0,40,85,.4);display:flex;align-items:center;justify-content:center;transition:transform .15s ease,box-shadow .15s ease}
.qp-fab:hover{transform:translateY(-2px) scale(1.05)}
.qp-fab:active{transform:scale(.96)}
/* ---------- Mic stage ---------- */
.mic-stage{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 12px;text-align:center;margin-top:12px;position:relative;overflow:hidden}
.mic-big{position:relative;width:72px;height:72px;border-radius:50%;border:0;background:var(--brand);color:#fff;font-size:30px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(0,40,85,.35);transition:transform .15s ease,background .2s ease;z-index:2}
.mic-big:hover{transform:scale(1.06)}
.mic-big:active{transform:scale(.95)}
.mic-big.recording{background:linear-gradient(135deg,#f87171,#dc2626);box-shadow:0 10px 24px rgba(220,38,38,.45)}
.mic-ring{position:absolute;inset:0;border-radius:50%;border:3px solid rgba(220,38,38,.5);pointer-events:none;opacity:0}
.mic-big.recording .mic-ring{animation:pulseRing 1.4s ease-out infinite}
.mic-big.recording .mic-ring:nth-child(2){animation-delay:.45s}
.mic-wave{display:flex;gap:4px;justify-content:center;align-items:flex-end;height:24px;margin:10px 0 4px}
.mic-wave span{width:5px;border-radius:3px;background:var(--brand);height:100%;transform-origin:bottom;animation:waveBar 1s ease-in-out infinite}
.mic-wave span:nth-child(2){animation-delay:.12s}.mic-wave span:nth-child(3){animation-delay:.24s}
.mic-wave span:nth-child(4){animation-delay:.36s}.mic-wave span:nth-child(5){animation-delay:.48s}
.mic-wave span:nth-child(6){animation-delay:.6s}.mic-wave span:nth-child(7){animation-delay:.72s}
.mic-wave:not(.live) span{animation:none;transform:scaleY(.25)}
.mic-timer-big{font-size:26px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--brand-dark);line-height:1.2}
.mic-hint{color:var(--muted);font-size:12px;margin-top:4px}
/* ---------- Audio player ---------- */
.audio-player{display:flex;gap:10px;align-items:center;background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:10px;margin-top:12px;flex-wrap:wrap}
.ap-play{width:42px;height:42px;border-radius:50%;border:0;background:var(--brand);color:#fff;font-size:17px;flex:none;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 14px rgba(0,40,85,.3);transition:transform .15s ease}
.ap-play:hover{transform:scale(1.07)}
.ap-play:active{transform:scale(.95)}
.ap-bar{flex:1;min-width:120px;height:8px;background:#e2e8f0;border-radius:5px;overflow:hidden;cursor:pointer}
.ap-fill{height:100%;background:var(--brand);border-radius:5px;width:0%;transition:width .2s linear}
.ap-time{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--brand-dark);white-space:nowrap}
.ap-speed{border:1.5px solid var(--brand);background:#fff;color:var(--brand-dark);border-radius:999px;padding:6px 12px;font-weight:500;font-size:13px;min-height:36px}
.ap-script-btn{border:1.5px solid var(--line);background:#fff;color:var(--ink);border-radius:999px;padding:6px 13px;font-weight:500;font-size:13px;min-height:36px}
.ap-script-btn:hover{border-color:var(--brand);color:var(--brand-dark)}
/* ---------- Phase strip (prep → listen → answer) ---------- */
.phase-strip{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 0}
.phase-step{display:flex;align-items:center;gap:6px;border-radius:999px;padding:5px 11px;font-size:12px;font-weight:500;background:#f1f5f9;color:var(--muted);border:1.5px solid transparent;transition:background-color .2s ease,color .2s ease}
.phase-step .ps-dot{width:18px;height:18px;border-radius:50%;background:#e2e8f0;color:#64748b;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:500;flex:none}
.phase-step.done{background:#f0fdf4;color:#166534;border-color:#bbf7d0}
.phase-step.done .ps-dot{background:#22c55e;color:#fff}
.phase-step.now{background:var(--brand-light);color:var(--brand-dark);border-color:var(--brand);animation:micPulse 1.8s ease-out infinite}
.phase-step.now .ps-dot{background:var(--brand);color:#fff}
.phase-step.todo{background:#f8fafc;color:#94a3b8}
/* ---------- Runner one-screen header (v3.4) ----------
   The question title + timer + phase strip stay pinned to the top of the
   viewport while the question scrolls, so timer and question are always
   visible together. Long passages still scroll underneath. The sticky
   card is a direct child of the runner host, so it pins for the whole
   runner, not just its own card. */
.run-sticky{position:sticky;top:0;z-index:30}
.run-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.run-head b{font-size:15px}
.run-head .timer{font-size:18px}
.runner-card{padding:12px 15px}
.runner-actions{margin-top:12px!important}
#qBody{font-size:14px;line-height:1.6}
#qBody p{margin:8px 0}
/* ---------- Template blocks (coloured per skill) ---------- */
.tpl-blocks{display:grid;gap:8px;margin-top:10px}
.tpl-block{background:#f8fafc;border:1px solid var(--line);border-left:5px solid var(--brand);border-radius:10px;padding:10px 12px;display:flex;gap:10px;align-items:flex-start}
.tpl-block.tpl-speaking{border-left-color:var(--speaking);background:#fff7ed}
.tpl-block.tpl-writing{border-left-color:var(--writing);background:#f0f9ff}
.tpl-block.tpl-reading{border-left-color:var(--reading);background:#f0fdf4}
.tpl-block.tpl-listening{border-left-color:var(--listening);background:#f5f3ff}
.tpl-block-num{width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:500;font-size:12px;flex:none}
.tpl-speaking .tpl-block-num{background:var(--grad-coral)}
.tpl-writing .tpl-block-num{background:var(--grad-sky)}
.tpl-reading .tpl-block-num{background:linear-gradient(135deg,#4ade80,#22c55e)}
.tpl-listening .tpl-block-num{background:var(--grad-listening)}
.tpl-filled{color:#166534;font-weight:500}
/* ---------- Script / answer reveal ---------- */
.script-box{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:12px;margin-top:10px;max-height:220px;overflow-y:auto;line-height:1.6;font-size:13px}
.script-box summary{cursor:pointer;font-weight:500;color:var(--brand-dark);list-style:none}
.script-box summary::-webkit-details-marker{display:none}
.ans-reveal{background:#f8fafc;border:1px solid #bbf7d0;border-radius:10px;padding:12px;margin-top:10px;animation:slideUp .3s ease both}
.ans-reveal b{color:#166534}
/* ---------- Describe Image categories ---------- */
/* Describe Image type filter (dropdown) — shown only for describe-image. */
.di-filter-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.di-filter-label{font-size:12px;color:var(--muted);font-weight:500;margin:0}
.di-filter-row select{width:auto;min-width:200px;flex:0 1 auto}
/* ---------- Referral ---------- */
.ref-hero{background:#f0fdf4;color:var(--ink);border:1.5px solid #bbf7d0;border-radius:16px;padding:18px;box-shadow:var(--sh-md);margin-bottom:12px}
.ref-hero h3{color:var(--ink);margin:0 0 6px}
.ref-hero p{color:var(--muted);margin:0}
.ref-link-box{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.ref-link-box input{flex:1;min-width:180px;background:#fff;border-color:var(--line)}
.ref-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#fff;border:1px dashed #86efac;color:#15803d;border-radius:10px;padding:8px 14px;font-weight:500;letter-spacing:1px;display:inline-block}
.ref-stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;text-align:center;box-shadow:var(--sh-sm)}
.ref-stat b{font-size:22px;display:block;color:#15803d}
.ref-stat span{color:var(--muted);font-size:12px;font-weight:500}
/* ---------- Dashboard banner (admin-uploaded) ---------- */
.dash-banner{border-radius:16px;overflow:hidden;margin-bottom:12px;box-shadow:var(--sh-md);background:#e2e8f0}
.dash-banner img{width:100%;max-height:180px;object-fit:cover;display:block;border-radius:16px}
/* ---------- SVG icons & generic FAB ---------- */
.ico-svg{width:20px;height:20px;flex:none;vertical-align:-4px}
.ico-svg.sm{width:16px;height:16px}
.ico-svg.lg{width:28px;height:28px}
.type-ico{width:40px;height:40px;border-radius:10px;background:var(--brand);color:#fff;display:inline-flex;align-items:center;justify-content:center;flex:none;box-shadow:0 4px 12px rgba(0,40,85,.3)}
.type-ico.speaking{background:var(--grad-coral);box-shadow:0 4px 12px rgba(249,115,22,.3)}
.type-ico.writing{background:var(--grad-sky);box-shadow:0 4px 12px rgba(14,165,233,.3)}
.type-ico.reading{background:linear-gradient(135deg,#4ade80,#22c55e);box-shadow:0 4px 12px rgba(34,197,94,.3)}
.type-ico.listening{background:var(--grad-listening);box-shadow:0 4px 12px rgba(22,163,74,.3)}
.type-ico .ico-svg{width:24px;height:24px}
.fab{position:fixed;right:18px;bottom:24px;z-index:130;width:52px;height:52px;border-radius:50%;border:0;background:var(--brand);color:#fff;font-size:20px;box-shadow:0 10px 24px rgba(0,40,85,.4);display:flex;align-items:center;justify-content:center;transition:transform .15s ease,box-shadow .15s ease}
.fab:hover{transform:translateY(-2px) scale(1.05)}
.fab:active{transform:scale(.96)}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media(max-width:900px){
  .g4{grid-template-columns:1fr 1fr}.g3{grid-template-columns:1fr 1fr}.g2{grid-template-columns:1fr}
  .sidebar{width:64px}
  .side-head b,.side-head small,.side-nav button span.lbl,.side-foot{display:none}
  .side-nav button{justify-content:center;padding:11px 0}
  .side-head{justify-content:center;padding:14px 6px}
  .main{margin-left:64px;width:calc(100% - 64px);padding:16px}
  .today-grid{grid-template-columns:repeat(2,1fr)}
  .video-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:768px){
  html,body{overflow-x:hidden}
  @supports (overflow:clip){html,body{overflow-x:clip}}
  img{max-width:100%;height:auto}
  body{padding-top:env(safe-area-inset-top)}
  /* Sidebar replaced by the bottom tab bar on phones. */
  .sidebar{display:none}
  .main{margin-left:0;width:100%;max-width:100%;padding:calc(12px + env(safe-area-inset-top)) 16px calc(104px + env(safe-area-inset-bottom))}
  /* Colourful sticky top bar on mobile. */
  .topbar{position:sticky;top:calc(8px + env(safe-area-inset-top));z-index:40;background:var(--brand);border-radius:14px;padding:12px 14px;margin:-4px -4px 12px;color:#fff;box-shadow:0 8px 20px rgba(15,23,42,.25)}
  .topbar h2{color:#fff;background:none;-webkit-text-fill-color:#fff}
  .topbar .pill{background:rgba(255,255,255,.2);color:#fff}
  /* Bottom tab bar: real app tab bar — rounded top, pill active tab. */
  .bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid var(--line);border-radius:20px 20px 0 0;box-shadow:0 -6px 20px rgba(15,23,42,.12);padding:8px 6px calc(8px + env(safe-area-inset-bottom))}
  .bottom-nav button{flex:1;min-height:56px;border:0;background:transparent;color:var(--muted);font-size:11px;font-weight:500;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 2px;border-radius:14px;transition:background-color .15s ease,color .15s ease}
  .bottom-nav button .bn-ico{font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center}
  .bottom-nav button .bn-ico .ico-svg{width:22px;height:22px}
  .bottom-nav button .bn-lbl{font-size:11px;line-height:1.2}
  .bottom-nav button.active{color:var(--brand-dark);background:var(--brand-light)}
  .bottom-nav button.active .bn-ico{color:var(--brand)}
  /* "More" menu (v3.7.12): bottom sheet listing all 16 sections — the tab
     bar only fits 5. z-index 140 sits above the chat FAB (130) and below
     modals (200). Visibility is driven by .hidden (off) + .open (animates
     the sheet up); the sheet is 92vh so it reads full-screen while the
     dimmed backdrop stays tappable to close. */
  .more-menu{position:fixed;inset:0;z-index:140}
  .more-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.5);opacity:0;transition:opacity .2s ease}
  .more-menu.open .more-backdrop{opacity:1}
  .more-sheet{position:absolute;left:0;right:0;bottom:0;height:92vh;max-height:92vh;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -10px 30px rgba(15,23,42,.25);transform:translateY(105%);transition:transform .22s ease;display:flex;flex-direction:column}
  .more-menu.open .more-sheet{transform:translateY(0)}
  .more-head{display:flex;align-items:center;gap:10px;padding:2px 16px 12px;border-bottom:1px solid var(--line);flex:none}
  .more-head b{font-size:17px}
  .more-close{margin-left:auto;width:44px;height:44px;min-height:44px;border:0;background:var(--bg);border-radius:50%;font-size:16px;color:var(--muted);display:flex;align-items:center;justify-content:center;flex:none}
  .more-list{flex:1;overflow-y:auto;padding:10px 12px calc(16px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
  .more-list button{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;border:0;background:transparent;color:#334155;padding:10px 12px;border-radius:12px;font-size:15px;text-align:left;margin-bottom:2px}
  .more-list button .ico{width:26px;text-align:center;flex-shrink:0}
  .more-list button .ico .ico-svg{width:22px;height:22px;vertical-align:-5px}
  .more-list button.active{background:#16a34a;color:#fff}
  .more-list button.active .ico{color:#fff}
  /* Sticky runner action bar: stays above the bottom tab bar. */
  .runner-actions{position:sticky;bottom:calc(68px + env(safe-area-inset-bottom));z-index:5;background:#fff;border-top:1px solid var(--line);padding:10px 0 4px}
  .runner-actions .btn{min-height:48px;flex:1}
  /* Runner header pins below the sticky mobile top bar. */
  .run-sticky{top:calc(62px + env(safe-area-inset-top))}
  /* Sticky pager clears the bottom tab bar on phones. */
  .pl-pager-sticky{bottom:calc(68px + env(safe-area-inset-bottom))}
  #micBtn,#micStop,#playBtn{min-height:44px}
  /* Drawer becomes a bottom sheet on phones. */
  .qpanel{top:auto;left:0;right:0;bottom:0;width:100%;max-width:100%;height:84vh;max-height:84vh;border-radius:22px 22px 0 0;transform:translateY(105%)}
  .qpanel.open{transform:translateY(0)}
  .qp-fab,.fab{bottom:calc(88px + env(safe-area-inset-bottom))}
  .sheet-handle{display:block;width:44px;height:5px;border-radius:3px;background:#e2e8f0;margin:10px auto 2px;flex:none}
  /* Dashboard stacks to one column. */
  .dash-grid{grid-template-columns:1fr}
  .dash-stats{grid-template-columns:1fr 1fr}
  .feature-tiles{grid-template-columns:1fr 1fr}
  .dash-side{order:2}
  /* Touch targets & type. */
  .btn,.bottom-nav button{min-height:44px}
  .btn{padding:12px 18px}
  .bottom-nav button{flex:1;min-height:calc(56px + env(safe-area-inset-bottom))}
  .type-card{padding:11px}
  .type-count{font-size:20px}
  .modal-box{padding:20px 16px}
  .score-modal-head{margin:-20px -16px 0}
  .teal-head{margin:-15px -15px 0}
  input,select,textarea{font-size:16px}
  .pred-chip{min-height:44px}
  .filters select,.filters input{min-width:0}
  .auth-card,.ob-card{padding:22px 18px}
  .dash-banner img{max-height:150px}
  .audio-player{flex-wrap:wrap}
  .ap-bar{order:3;flex-basis:100%}
}
@media (max-width:640px){
  /* Modals become bottom sheets. */
  .modal{padding:0;align-items:flex-end}
  .modal-box{max-width:100%;width:100%;min-height:88vh;max-height:92vh;border-radius:22px 22px 0 0;align-self:flex-end;animation:slideUp .3s ease both}
  .sa-modal{max-width:100%}
  .sa-head{margin:-20px -16px 0}
  .sa-cards{grid-template-columns:1fr}
  .sa-compare{grid-template-columns:1fr}
  .credits-grid{grid-template-columns:1fr}
  .today-grid{grid-template-columns:1fr}
  .video-grid{grid-template-columns:1fr}
  .mock-card-row{flex-direction:column;align-items:flex-start}
  .pl-filters input[type="search"]{max-width:100%!important;width:100%}
  .pl-tabs{overflow-x:auto;flex-wrap:nowrap}
  .pl-tabs>button{white-space:nowrap}
  .mock-sub{overflow-x:auto;flex-wrap:nowrap}
  .subtabs{flex-wrap:nowrap}
  .subtabs button{white-space:nowrap}
  .mc-row{min-height:56px}
  #dashGuideTabs{overflow-x:auto;flex-wrap:nowrap}
  #dashGuideTabs button{white-space:nowrap}
  .phase-strip{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
  .phase-step{white-space:nowrap}
  .mic-big{width:68px;height:68px;font-size:27px}
  .mic-timer-big{font-size:24px}
}
@media(max-width:560px){
  .g4,.g3{grid-template-columns:1fr}
  .auth-card,.ob-card{padding:22px 18px}
  .type-grid{grid-template-columns:1fr 1fr}
  #typeGrid.type-grid-slim{grid-template-columns:1fr}
}
@media (max-width:400px){
  .dash-stats{grid-template-columns:1fr}
}

/* ==========================================================================
   Landing page (v3.5.0) — Modern practice-platform layout, original OwlVerse PTE design/copy.
   Sticky header, hero + score preview, stats band, features, test types,
   how-it-works, FAQ, footer. Tokens reuse the app palette (teal brand).
   ========================================================================== */
.lp-wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.lp-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.lp-head-in{display:flex;align-items:center;gap:24px;height:64px}
.lp-brand{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:19px;letter-spacing:.2px}
.lp-brand:hover{text-decoration:none}
.lp-brand img{width:36px;height:36px;object-fit:contain}
.lp-brand b{font-weight:500;color:var(--brand)}
.lp-nav{display:flex;gap:22px;margin-left:12px}
.lp-nav a{color:#334155;font-size:14px;font-weight:500}
.lp-nav a:hover{color:var(--brand);text-decoration:none}
.lp-head-btns{margin-left:auto;display:flex;gap:10px}
.lp-hero{background:linear-gradient(180deg,#e8f4f6 0%,#f6f7f9 100%);padding:56px 0 40px}
.lp-hero-in{display:grid;grid-template-columns:1.15fr .85fr;gap:40px;align-items:center}
.lp-badge{display:inline-block;background:#fff;border:1px solid #bbf7d0;color:var(--brand-dark);border-radius:999px;padding:5px 13px;font-size:12px;font-weight:500}
.lp-hero h1{font-size:40px;line-height:1.15;margin:16px 0 12px;letter-spacing:-.5px}
.lp-lead{font-size:16px;color:#475569;margin:0 0 22px;max-width:520px}
.lp-cta{display:flex;gap:12px;flex-wrap:wrap}
.lp-cta-main{padding:12px 26px;font-size:14px}
.lp-note{font-size:12px;color:var(--muted);margin:14px 0 0}
.lp-hero-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh-lg);padding:20px 22px}
.lp-score-head{display:flex;justify-content:space-between;align-items:center}
.lp-score-big{font-size:48px;font-weight:500;line-height:1.1;margin:8px 0 12px;color:var(--brand-dark)}
.lp-score-big span{font-size:18px;color:var(--muted);font-weight:500}
.lp-score-rows>div{display:grid;grid-template-columns:1fr auto;gap:2px 10px;margin-bottom:10px;font-size:13px}
.lp-score-rows .level-bar{grid-column:1/3}
.lp-score-foot{margin:6px 0 0}
.lp-stats{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.lp-stats-in{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:26px 24px}
.lp-stat{text-align:center}
.lp-stat b{display:block;font-size:28px;color:var(--brand-dark)}
.lp-stat span{font-size:13px;color:var(--muted)}
.lp-section{padding:56px 0}
.lp-alt{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.lp-section h2{text-align:center;font-size:28px;margin:0 0 8px}
.lp-sec-sub{text-align:center;color:var(--muted);margin:0 0 32px}
.lp-feats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.lp-feat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:var(--sh-sm)}
.lp-feat-ico{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;font-size:21px;margin-bottom:12px}
.lp-feat b{font-size:15px}
.lp-feat p{margin:6px 0 0;color:var(--muted);font-size:13px}
.lp-tests{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.lp-test{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:20px;overflow:hidden}
.lp-test img{display:block;width:calc(100% + 40px);height:150px;object-fit:cover;margin:-20px -20px 14px;border-radius:14px 14px 0 0}
.lp-hero-img{display:block;width:100%;height:auto;max-height:420px;object-fit:cover;border-radius:16px;margin:28px 0 4px;box-shadow:var(--sh-md)}
.lp-hero-link{display:block}
@media(max-width:640px){.lp-hero-img{max-height:220px;margin-top:20px}.lp-test img{height:130px}}
/* Landing banner strips (v3.7.5, mascot banners): full image shown, clickable. */
.lp-strip{display:block;border-radius:16px;overflow:hidden;margin:28px 0;box-shadow:var(--sh-md);transition:transform .18s ease,box-shadow .18s ease}
.lp-strip img{display:block;width:100%;height:auto}
.lp-strip:hover{transform:translateY(-2px);box-shadow:var(--sh-lg)}
@media(max-width:640px){.lp-strip{margin:20px 0}}
.lp-test b{font-size:16px}
.lp-test p{color:var(--muted);font-size:13px;margin:8px 0 16px}
.lp-dest{text-align:center;margin-top:28px}
.lp-dest>div{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:10px}
.lp-chip{display:inline-block;background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 14px;font-size:13px;font-weight:500}
/* Landing PTE Hacks section (v3.7.12): the landscape promo video, centred.
   16:9 box holds its shape before the poster loads; full width on phones. */
.lp-hacks-video{max-width:860px;margin:0 auto;border-radius:16px;overflow:hidden;box-shadow:var(--sh-lg);background:#000}
.lp-hacks-video video{display:block;width:100%;height:auto;aspect-ratio:16/9}
@media(max-width:640px){.lp-hacks-video{border-radius:12px}}
/* ==========================================================================
   Landing v3.7.5.2 — HTML overlays over text-free banner backgrounds +
   fun hero (Waqar 23:34 PKT 2026-11-15). Banner text is real HTML so
   prices/currency change per visitor (see localizeLanding in app.js).
   Merged from pte-landing-v376/preview/preview.css.
   ========================================================================== */
/* ---- 1. Banner HTML overlays -------------------------------------------
   Pattern: the <a>/<div> wrapper becomes position:relative; the <img> is the
   text-free background; .bn-ov-txt is absolutely positioned over it.
   Text legibility comes from text-shadow (same dark drop as the old baked
   text_pop), NOT from a baked scrim — so any text length works.
   Font sizes mirror the old baked sizes scaled to the displayed width
   (hero/strip: 1600px image shown at max 1072px => x0.67;
   test cards: 800px image shown at ~387px => x0.48). */
.bn-ov{position:relative}
.bn-ov-txt{position:absolute;inset:0;display:flex;flex-direction:column;
  justify-content:center;align-items:flex-start;text-align:left;
  padding:0 34% 0 6%;color:#fff;pointer-events:none}
.bn-ov-txt>*{text-shadow:0 2px 8px rgba(0,0,0,.45)}
.bn-ov-brand{font-size:22px;font-weight:700;letter-spacing:.2px;margin-bottom:10px}
.bn-ov-h{font-size:60px;font-weight:800;line-height:1.05;letter-spacing:-.5px}
.bn-ov-h2{font-size:32px;font-weight:700;line-height:1.15;color:#ffd166;margin-top:10px}
.bn-ov-sub{font-size:19px;line-height:1.4;color:#dcfce7;margin-top:10px}
.bn-ov-pill{display:inline-block;margin-top:16px;background:#ffd166;color:#3c2800;
  font-weight:700;font-size:15px;padding:12px 24px;border-radius:999px;
  box-shadow:0 4px 0 rgba(0,0,0,.18);text-shadow:none;pointer-events:auto}
.bn-ov-pill.light{background:#fff;color:#065f46}
.bn-ov-chip{display:inline-block;background:#fff;color:#065f46;font-weight:700;
  font-size:11px;padding:5px 12px;border-radius:999px;box-shadow:0 2px 6px rgba(0,0,0,.2);
  text-shadow:none;margin-top:10px;pointer-events:auto}

/* Hero banner overlay: sits on .lp-hero-link (the <a> around the hero img).
   The img is object-fit:cover with max-height 420px desktop / 220px mobile,
   so the overlay uses % padding — it always tracks the displayed box. */
.lp-hero-link.bn-ov .lp-hero-img{margin-bottom:4px}

/* Test-card overlay: the img is height:150px (desktop) / 130px (mobile),
   object-fit:cover — the overlay sits on the img box, so it always aligns
   with the visible crop band. Title/sub/chip match the old baked sizes. */
.lp-test-img{position:relative;border-radius:14px 14px 0 0;overflow:hidden;
  margin:-20px -20px 14px}
.lp-test-img img{display:block;width:100%;height:150px;object-fit:cover;
  margin:0;border-radius:0}
.lp-test-img .bn-ov-txt{padding:0 42% 0 16px;justify-content:center}
.lp-test-img .bn-ov-h{font-size:21px;line-height:1.12}
.lp-test-img .bn-ov-sub{font-size:12px;margin-top:5px;color:#e0f2fe}
.lp-test-img .bn-ov-chip{margin-top:8px}
.lp-test-core .bn-ov-sub{color:#ffe4e6}
.lp-test-ukvi .bn-ov-sub{color:#dbeafe}

/* Strip overlay: full image shown (height:auto), overlay maps 1:1. */
.lp-strip.bn-ov{position:relative}
.lp-strip .bn-ov-txt{padding:0 30% 0 6%}
.lp-strip .bn-ov-h{font-size:36px}
.lp-strip .bn-ov-sub{font-size:18px;margin-top:8px}
.lp-strip .bn-ov-pill{margin-top:12px;font-size:14px;padding:9px 20px}

/* ---- 2. Fun hero redesign ----------------------------------------------
   Bigger animated mascot (300px, was 220px) on a soft blob, floating
   badges around it, confetti dots in the hero background. Score card
   unchanged (it already floats). */
.lp-hero-fun{position:relative}
.lp-hero-mascot-wrap{position:relative;width:300px;max-width:100%;
  margin:18px auto 0;text-align:center}
.lp-hero-mascot-wrap::before{content:'';position:absolute;left:50%;top:54%;
  width:280px;height:280px;transform:translate(-50%,-50%);
  background:radial-gradient(circle,rgba(255,255,255,.95) 0%,rgba(220,252,231,.55) 55%,rgba(220,252,231,0) 72%);
  border-radius:50%;z-index:0}
.lp-hero-mascot-fun{position:relative;z-index:1;width:300px;height:300px;
  max-width:100%;object-fit:contain;filter:drop-shadow(0 14px 22px rgba(13,148,136,.25));
  animation:lpMascotBob 3.2s ease-in-out infinite}
@keyframes lpMascotBob{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-10px) rotate(1.5deg)}}
.lp-float-badge{position:absolute;z-index:2;background:#fff;border:1px solid #bbf7d0;
  border-radius:999px;box-shadow:0 8px 18px rgba(15,23,42,.12);
  font-size:13px;font-weight:700;color:#14532d;padding:7px 13px;white-space:nowrap;
  animation:lpBadgeFloat 3.6s ease-in-out infinite}
/* Badges wrapper: display:contents on desktop so badges position against
   the mascot wrap; becomes a flex row on mobile (see media query). */
.lp-hero-badges-m{display:contents}
.lp-float-badge b{color:#16a34a}
.lp-fb-1{top:6%;left:-14%;animation-delay:.2s}
.lp-fb-2{top:22%;right:-18%;animation-delay:1.1s}
.lp-fb-3{bottom:8%;right:-10%;animation-delay:1.9s}
@keyframes lpBadgeFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.lp-confetti{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.lp-confetti i{position:absolute;display:block;border-radius:3px;
  animation:lpTwinkle 2.8s ease-in-out infinite}
@keyframes lpTwinkle{0%,100%{opacity:.35;transform:scale(.8) rotate(0deg)}50%{opacity:1;transform:scale(1.15) rotate(25deg)}}

/* Visitor-country chip highlight: the "accepted in" chip for the visitor's
   own country (when it is a destination) moves first + gets a green ring. */
.lp-chip.lp-chip-you{border-color:#16a34a;background:#f0fdf4;color:#14532d;
  box-shadow:0 0 0 2px #bbf7d0}

/* ---- 3. Responsive ------------------------------------------------------ */
@media(max-width:900px){
  .bn-ov-h{font-size:46px}
  .bn-ov-h2{font-size:25px}
  .bn-ov-sub{font-size:16px}
  .lp-strip .bn-ov-h{font-size:30px}
  .lp-strip .bn-ov-sub{font-size:15px}
  .lp-hero-mascot-wrap{width:260px}
  .lp-hero-mascot-fun{width:260px;height:260px}
  .lp-float-badge{font-size:12px;padding:6px 11px}
  .lp-fb-1{left:-6%}
  .lp-fb-2{right:-8%}
  .lp-fb-3{right:-4%}
}
@media(max-width:640px){
  /* Hero banner: displayed ~342x150 — brand + subline hide, headline wraps. */
  .bn-ov-txt{padding:0 32% 0 6%}
  .bn-ov-brand{display:none}
  .bn-ov-h{font-size:23px}
  .bn-ov-h2{font-size:14px;margin-top:6px}
  .bn-ov-sub{display:none}
  .bn-ov-pill{margin-top:10px;font-size:12px;padding:8px 16px}
  .lp-strip .bn-ov-txt{padding:0 32% 0 6%}
  .lp-strip .bn-ov-h{font-size:16px}
  .lp-strip .bn-ov-pill{margin-top:8px;font-size:11px;padding:7px 14px}
  .lp-test-img img{height:130px}
  .lp-test-img .bn-ov-h{font-size:18px}
  .lp-test-img .bn-ov-sub{font-size:11px}
  .lp-test-img .bn-ov-chip{font-size:10px;padding:4px 10px}
  /* Fun hero: mascot 220px, badges become a static row (no overlap). */
  .lp-hero-mascot-wrap{width:220px;margin-top:14px}
  .lp-hero-mascot-wrap::before{width:210px;height:210px}
  .lp-hero-mascot-fun{width:220px;height:220px}
  .lp-float-badge{position:static;display:inline-block;margin:4px 3px 0;
    animation:none}
  .lp-hero-badges-m{display:flex;flex-wrap:wrap;justify-content:center;margin-top:2px}
}

/* Reduced motion: badges + mascot + confetti stay still (same policy as
   the rest of the site — mascot GIFs swap to webp via <picture>). */
@media (prefers-reduced-motion:reduce){
  .lp-hero-mascot-fun,.lp-float-badge,.lp-confetti i{animation:none}
}
.lp-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.lp-step{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;text-align:center;box-shadow:var(--sh-sm)}
.lp-step-no{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--brand);color:#fff;font-size:17px;font-weight:500;margin-bottom:12px}
.lp-step b{font-size:15px;display:block}
.lp-step p{color:var(--muted);font-size:13px;margin:6px 0 0}
.lp-faq-wrap{max-width:760px}
.lp-footer{background:#0f172a;color:#cbd5e1;padding:36px 0 20px}
.lp-footer .lp-brand{color:#fff}
.lp-foot-in{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}
.lp-foot-links{display:flex;gap:20px;flex-wrap:wrap;align-items:center}
.lp-foot-links a{color:#cbd5e1;font-size:13px}
.lp-copy{margin:22px 0 0;color:#64748b}

/* Dashboard Mock Test mini-cards (v3.5.0) */
.mock-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}
.mock-mini{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:14px;cursor:pointer;text-align:left;transition:border-color .15s ease,box-shadow .15s ease}
.mock-mini:hover{border-color:var(--brand);box-shadow:var(--sh-sm)}
.mock-mini b{font-size:14px}
.mock-mini .mock-ico{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;font-size:18px;margin-bottom:8px}

@media(max-width:900px){
  .lp-hero-in{grid-template-columns:1fr}
  .lp-hero h1{font-size:32px}
  .lp-feats,.lp-tests,.lp-steps{grid-template-columns:repeat(2,1fr)}
  .lp-stats-in{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .lp-nav{display:none}
  .lp-hero{padding:36px 0 28px}
  .lp-hero h1{font-size:27px}
  .lp-feats,.lp-tests,.lp-steps,.lp-stats-in{grid-template-columns:1fr}
  .lp-section{padding:40px 0}
  .lp-head-btns .lp-login{display:none}
  .mock-mini-grid{grid-template-columns:1fr}
}

/* Type hierarchy (v3.5.1): section titles carry size, not weight. Main-column
   card titles 16px; side-column titles 15px; primary tabs 14px, secondary 13px. */
.card>b:first-child,.card>div:first-child>b:first-child{font-size:16px}
.dash-side .card>b:first-child,.dash-side .card>div:first-child>b:first-child{font-size:15px}

/* ---- Module color system (v3.5.2) ----
   Every module has its own colour, distinct from the skill colours
   (Speaking orange / Writing blue / Reading green / Listening teal).
   Sidebar icons + active pill, page title + accent line, card titles,
   mobile top bar and bottom nav all follow the current module. */
.side-nav button[data-nav="dashboard"] .ico{color:#4f46e5}
.side-nav button[data-nav="practice"] .ico{color:#7c3aed}
.side-nav button[data-nav="mocks"] .ico{color:#dc2626}
.side-nav button[data-nav="progress"] .ico{color:#65a30d}
.side-nav button[data-nav="predictions"] .ico{color:#d97706}
.side-nav button[data-nav="templates"] .ico{color:#db2777}
.side-nav button[data-nav="grammar"] .ico{color:#64748b}
.side-nav button[data-nav="vocab"] .ico{color:#c026d3}
.side-nav button[data-nav="videos"] .ico{color:#e11d48}
.side-nav button[data-nav="studyplan"] .ico{color:#0891b2}
.side-nav button[data-nav="scoring"] .ico{color:#2563eb}
.side-nav button[data-nav="guide"] .ico{color:#9333ea}
.side-nav button[data-nav="subscription"] .ico{color:#ca8a04}
.side-nav button[data-nav="profile"] .ico{color:#475569}
.side-nav button[data-nav="settings"] .ico{color:#78716c}
.side-nav button[data-nav="dashboard"].active{background:#4f46e5}
.side-nav button[data-nav="practice"].active{background:#7c3aed}
.side-nav button[data-nav="mocks"].active{background:#dc2626}
.side-nav button[data-nav="progress"].active{background:#65a30d}
.side-nav button[data-nav="predictions"].active{background:#d97706}
.side-nav button[data-nav="templates"].active{background:#db2777}
.side-nav button[data-nav="grammar"].active{background:#64748b}
.side-nav button[data-nav="vocab"].active{background:#c026d3}
.side-nav button[data-nav="videos"].active{background:#e11d48}
.side-nav button[data-nav="studyplan"].active{background:#0891b2}
.side-nav button[data-nav="scoring"].active{background:#2563eb}
.side-nav button[data-nav="guide"].active{background:#9333ea}
.side-nav button[data-nav="subscription"].active{background:#ca8a04}
.side-nav button[data-nav="profile"].active{background:#475569}
.side-nav button[data-nav="settings"].active{background:#78716c}
.side-nav button.active .ico{color:#fff}
/* "More" menu rows (v3.7.12): same per-section icon colours + active
   backgrounds as the sidebar, so the menu reads as the sidebar on phones.
   Hacks has no sidebar colour rule — it gets brand green (#16a34a), the
   Hacks section's own accent. */
.more-list button[data-nav="dashboard"] .ico{color:#4f46e5}
.more-list button[data-nav="practice"] .ico{color:#7c3aed}
.more-list button[data-nav="mocks"] .ico{color:#dc2626}
.more-list button[data-nav="progress"] .ico{color:#65a30d}
.more-list button[data-nav="predictions"] .ico{color:#d97706}
.more-list button[data-nav="templates"] .ico{color:#db2777}
.more-list button[data-nav="grammar"] .ico{color:#64748b}
.more-list button[data-nav="vocab"] .ico{color:#c026d3}
.more-list button[data-nav="videos"] .ico{color:#e11d48}
.more-list button[data-nav="studyplan"] .ico{color:#0891b2}
.more-list button[data-nav="scoring"] .ico{color:#2563eb}
.more-list button[data-nav="guide"] .ico{color:#9333ea}
.more-list button[data-nav="hacks"] .ico{color:#16a34a}
.more-list button[data-nav="subscription"] .ico{color:#ca8a04}
.more-list button[data-nav="profile"] .ico{color:#475569}
.more-list button[data-nav="settings"] .ico{color:#78716c}
.more-list button[data-nav="dashboard"].active{background:#4f46e5}
.more-list button[data-nav="practice"].active{background:#7c3aed}
.more-list button[data-nav="mocks"].active{background:#dc2626}
.more-list button[data-nav="progress"].active{background:#65a30d}
.more-list button[data-nav="predictions"].active{background:#d97706}
.more-list button[data-nav="templates"].active{background:#db2777}
.more-list button[data-nav="grammar"].active{background:#64748b}
.more-list button[data-nav="vocab"].active{background:#c026d3}
.more-list button[data-nav="videos"].active{background:#e11d48}
.more-list button[data-nav="studyplan"].active{background:#0891b2}
.more-list button[data-nav="scoring"].active{background:#2563eb}
.more-list button[data-nav="guide"].active{background:#9333ea}
.more-list button[data-nav="hacks"].active{background:#16a34a}
.more-list button[data-nav="subscription"].active{background:#ca8a04}
.more-list button[data-nav="profile"].active{background:#475569}
.more-list button[data-nav="settings"].active{background:#78716c}
#appView[data-module="dashboard"] .topbar h2{color:#4f46e5}
#appView[data-module="dashboard"] .topbar{border-bottom:3px solid #818cf8}
#appView[data-module="practice"] .topbar h2{color:#7c3aed}
#appView[data-module="practice"] .topbar{border-bottom:3px solid #a78bfa}
#appView[data-module="mocks"] .topbar h2{color:#dc2626}
#appView[data-module="mocks"] .topbar{border-bottom:3px solid #f87171}
#appView[data-module="progress"] .topbar h2{color:#65a30d}
#appView[data-module="progress"] .topbar{border-bottom:3px solid #a3e635}
#appView[data-module="predictions"] .topbar h2{color:#d97706}
#appView[data-module="predictions"] .topbar{border-bottom:3px solid #fbbf24}
#appView[data-module="templates"] .topbar h2{color:#db2777}
#appView[data-module="templates"] .topbar{border-bottom:3px solid #f472b6}
#appView[data-module="grammar"] .topbar h2{color:#64748b}
#appView[data-module="grammar"] .topbar{border-bottom:3px solid #94a3b8}
#appView[data-module="vocab"] .topbar h2{color:#c026d3}
#appView[data-module="vocab"] .topbar{border-bottom:3px solid #e879f9}
#appView[data-module="videos"] .topbar h2{color:#e11d48}
#appView[data-module="videos"] .topbar{border-bottom:3px solid #fb7185}
#appView[data-module="studyplan"] .topbar h2{color:#0891b2}
#appView[data-module="studyplan"] .topbar{border-bottom:3px solid #22d3ee}
#appView[data-module="scoring"] .topbar h2{color:#2563eb}
#appView[data-module="scoring"] .topbar{border-bottom:3px solid #60a5fa}
#appView[data-module="guide"] .topbar h2{color:#9333ea}
#appView[data-module="guide"] .topbar{border-bottom:3px solid #c084fc}
#appView[data-module="subscription"] .topbar h2{color:#ca8a04}
#appView[data-module="subscription"] .topbar{border-bottom:3px solid #facc15}
#appView[data-module="profile"] .topbar h2{color:#475569}
#appView[data-module="profile"] .topbar{border-bottom:3px solid #cbd5e1}
#appView[data-module="settings"] .topbar h2{color:#78716c}
#appView[data-module="settings"] .topbar{border-bottom:3px solid #a8a29e}
#appView[data-module="dashboard"] .card>b:first-child,#appView[data-module="dashboard"] .card>div:first-child>b:first-child{color:#4f46e5}
#appView[data-module="practice"] .card>b:first-child,#appView[data-module="practice"] .card>div:first-child>b:first-child{color:#7c3aed}
#appView[data-module="mocks"] .card>b:first-child,#appView[data-module="mocks"] .card>div:first-child>b:first-child{color:#dc2626}
#appView[data-module="progress"] .card>b:first-child,#appView[data-module="progress"] .card>div:first-child>b:first-child{color:#65a30d}
#appView[data-module="predictions"] .card>b:first-child,#appView[data-module="predictions"] .card>div:first-child>b:first-child{color:#d97706}
#appView[data-module="templates"] .card>b:first-child,#appView[data-module="templates"] .card>div:first-child>b:first-child{color:#db2777}
#appView[data-module="grammar"] .card>b:first-child,#appView[data-module="grammar"] .card>div:first-child>b:first-child{color:#64748b}
#appView[data-module="vocab"] .card>b:first-child,#appView[data-module="vocab"] .card>div:first-child>b:first-child{color:#c026d3}
#appView[data-module="videos"] .card>b:first-child,#appView[data-module="videos"] .card>div:first-child>b:first-child{color:#e11d48}
#appView[data-module="studyplan"] .card>b:first-child,#appView[data-module="studyplan"] .card>div:first-child>b:first-child{color:#0891b2}
#appView[data-module="scoring"] .card>b:first-child,#appView[data-module="scoring"] .card>div:first-child>b:first-child{color:#2563eb}
#appView[data-module="guide"] .card>b:first-child,#appView[data-module="guide"] .card>div:first-child>b:first-child{color:#9333ea}
#appView[data-module="subscription"] .card>b:first-child,#appView[data-module="subscription"] .card>div:first-child>b:first-child{color:#ca8a04}
#appView[data-module="profile"] .card>b:first-child,#appView[data-module="profile"] .card>div:first-child>b:first-child{color:#475569}
#appView[data-module="settings"] .card>b:first-child,#appView[data-module="settings"] .card>div:first-child>b:first-child{color:#78716c}
.bottom-nav button[data-nav="dashboard"] .bn-ico{color:#4f46e5}
.bottom-nav button[data-nav="practice"] .bn-ico{color:#7c3aed}
.bottom-nav button[data-nav="mocks"] .bn-ico{color:#dc2626}
.bottom-nav button[data-nav="progress"] .bn-ico{color:#65a30d}
.bottom-nav button[data-nav="predictions"] .bn-ico{color:#d97706}
.bottom-nav button[data-nav="templates"] .bn-ico{color:#db2777}
.bottom-nav button[data-nav="grammar"] .bn-ico{color:#64748b}
.bottom-nav button[data-nav="vocab"] .bn-ico{color:#c026d3}
.bottom-nav button[data-nav="videos"] .bn-ico{color:#e11d48}
.bottom-nav button[data-nav="studyplan"] .bn-ico{color:#0891b2}
.bottom-nav button[data-nav="scoring"] .bn-ico{color:#2563eb}
.bottom-nav button[data-nav="guide"] .bn-ico{color:#9333ea}
.bottom-nav button[data-nav="subscription"] .bn-ico{color:#ca8a04}
.bottom-nav button[data-nav="profile"] .bn-ico{color:#475569}
.bottom-nav button[data-nav="settings"] .bn-ico{color:#78716c}
.bottom-nav button[data-nav="dashboard"].active{color:#4f46e5;background:#eef2ff}
.bottom-nav button[data-nav="practice"].active{color:#7c3aed;background:#f5f3ff}
.bottom-nav button[data-nav="mocks"].active{color:#dc2626;background:#fef2f2}
.bottom-nav button[data-nav="progress"].active{color:#65a30d;background:#f7fee7}
.bottom-nav button[data-nav="predictions"].active{color:#d97706;background:#fffbeb}
.bottom-nav button[data-nav="templates"].active{color:#db2777;background:#fdf2f8}
.bottom-nav button[data-nav="grammar"].active{color:#64748b;background:#f8fafc}
.bottom-nav button[data-nav="vocab"].active{color:#c026d3;background:#fdf4ff}
.bottom-nav button[data-nav="videos"].active{color:#e11d48;background:#fff1f2}
.bottom-nav button[data-nav="studyplan"].active{color:#0891b2;background:#ecfeff}
.bottom-nav button[data-nav="scoring"].active{color:#2563eb;background:#eff6ff}
.bottom-nav button[data-nav="guide"].active{color:#9333ea;background:#faf5ff}
.bottom-nav button[data-nav="subscription"].active{color:#ca8a04;background:#fefce8}
.bottom-nav button[data-nav="profile"].active{color:#475569;background:#f1f5f9}
.bottom-nav button[data-nav="settings"].active{color:#78716c;background:#fafaf9}
@media (max-width:640px){
  #appView[data-module="dashboard"] .topbar{background:#4f46e5;border-bottom:0}
  #appView[data-module="practice"] .topbar{background:#7c3aed;border-bottom:0}
  #appView[data-module="mocks"] .topbar{background:#dc2626;border-bottom:0}
  #appView[data-module="progress"] .topbar{background:#65a30d;border-bottom:0}
  #appView[data-module="predictions"] .topbar{background:#d97706;border-bottom:0}
  #appView[data-module="templates"] .topbar{background:#db2777;border-bottom:0}
  #appView[data-module="grammar"] .topbar{background:#64748b;border-bottom:0}
  #appView[data-module="vocab"] .topbar{background:#c026d3;border-bottom:0}
  #appView[data-module="videos"] .topbar{background:#e11d48;border-bottom:0}
  #appView[data-module="studyplan"] .topbar{background:#0891b2;border-bottom:0}
  #appView[data-module="scoring"] .topbar{background:#2563eb;border-bottom:0}
  #appView[data-module="guide"] .topbar{background:#9333ea;border-bottom:0}
  #appView[data-module="subscription"] .topbar{background:#ca8a04;border-bottom:0}
  #appView[data-module="profile"] .topbar{background:#475569;border-bottom:0}
  #appView[data-module="settings"] .topbar{background:#78716c;border-bottom:0}
  #appView[data-module] .topbar h2{color:#fff}
}

/* ---- Interactive polish (v3.5.3): exam surfaces stay steady, everything
   else lifts on hover and presses on tap. ---- */
.card.runner-card:hover,.card.run-sticky:hover,.card.mock-bar:hover{transform:none;box-shadow:var(--sh-sm)}
.qrow:hover,.check-row:hover{transform:translateY(-1px);box-shadow:var(--sh-sm);border-color:#bbf7d0}
.lp-feat,.lp-test,.lp-step,.mock-mini,.feature-tile{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.lp-feat:hover,.lp-test:hover,.lp-step:hover,.mock-mini:hover,.feature-tile:hover{transform:translateY(-2px);box-shadow:var(--sh-md)}
.type-card:active,.opt:active,.mock-mini:active,.qrow:active{transform:scale(.98)}
.preset:hover{border-color:var(--brand)}
.tabs button:hover,.dash-tabs button:hover{background:rgba(0,40,85,.06)}

/* ---- Scoring weightage table (v3.5.5): section-wise, skill colours ---- */
.score-table th.sc-l{background:#f0fdfa;color:#0f766e}
.score-table th.sc-s{background:#fff7ed;color:#9a3412}
.score-table th.sc-r{background:#f0fdf4;color:#166534}
.score-table th.sc-w{background:#f0f9ff;color:#0369a1}
.score-sec td{font-weight:500;padding:9px 10px}
.score-sec-sw td{background:#fff7ed;color:#9a3412}
.score-sec-r td{background:#f0fdf4;color:#166534}
.score-sec-l td{background:#f0fdfa;color:#0f766e}
.score-table td.sc-cell-l{background:#f0fdfa;color:#0f766e;font-weight:500}
.score-table td.sc-cell-s{background:#fff7ed;color:#9a3412;font-weight:500}
.score-table td.sc-cell-r{background:#f0fdf4;color:#166534;font-weight:500}
.score-table td.sc-cell-w{background:#f0f9ff;color:#0369a1;font-weight:500}
.score-table td.sc-zero{color:#cbd5e1}
.score-table td.sc-total{background:#f8fafc}
.score-table tr.score-total-row th{border-top:2px solid var(--line)}

/* ---- Landing page interactivity (v3.5.6) ---- */
html{scroll-behavior:smooth}
#landingView .lp-hero{background:linear-gradient(120deg,#dcf5ef 0%,#e8f4f6 35%,#f0f9ff 70%,#dcfce7 100%);background-size:200% 200%;animation:lpHeroDrift 18s ease-in-out infinite alternate}
@keyframes lpHeroDrift{from{background-position:0% 50%}to{background-position:100% 50%}}
.lp-hero-copy{animation:lpFadeUp .7s cubic-bezier(.22,1,.36,1) both}
.lp-hero-card{animation:lpFadeUp .7s cubic-bezier(.22,1,.36,1) .15s both,lpFloat 6s ease-in-out 1s infinite}
@keyframes lpFadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes lpFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.lp-hero-card:hover{box-shadow:0 18px 40px rgba(0,40,85,.16)}
.lp-score-rows .level-fill{transform-origin:left;animation:lpBarIn 1.1s cubic-bezier(.22,1,.36,1) .55s both}
@keyframes lpBarIn{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.lp-cta-main{position:relative;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.lp-cta-main:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 10px 24px rgba(0,40,85,.35)}
.lp-cta-main:active{transform:translateY(0) scale(.99)}
.lp-cta-main::after{content:'';position:absolute;top:0;left:-80%;width:50%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);transition:left .6s ease}
.lp-cta-main:hover::after{left:130%}
.lp-header{transition:box-shadow .25s ease}
.lp-header.lp-scrolled{box-shadow:0 4px 20px rgba(15,23,42,.12)}
.lp-nav a{position:relative}
.lp-nav a::after{content:'';position:absolute;left:0;bottom:-4px;height:2px;width:0;background:var(--brand);border-radius:2px;transition:width .25s ease}
.lp-nav a:hover::after{width:100%}
.lp-feat,.lp-test,.lp-step{transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.lp-feat:hover,.lp-test:hover,.lp-step:hover{transform:translateY(-4px);box-shadow:var(--sh-md);border-color:#bbf7d0}
.lp-feat-ico{transition:transform .25s ease}
.lp-feat:hover .lp-feat-ico{transform:scale(1.12) rotate(-6deg)}
.lp-step-no{transition:transform .25s ease}
.lp-step:hover .lp-step-no{transform:scale(1.15)}
.lp-chip{transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.lp-chip:hover{transform:translateY(-2px);border-color:var(--brand);box-shadow:var(--sh-sm)}
.lp-stat b{transition:color .3s ease}
.lp-stat:hover b{color:var(--brand)}
#landingView.lp-anim .lp-reveal{opacity:0}
#landingView.lp-anim .lp-reveal.in{animation-name:lpReveal;animation-duration:.6s;animation-timing-function:cubic-bezier(.22,1,.36,1);animation-fill-mode:both}
@keyframes lpReveal{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.lp-feats .lp-reveal:nth-child(2),.lp-tests .lp-reveal:nth-child(2),.lp-steps .lp-reveal:nth-child(2){animation-delay:.08s}
.lp-feats .lp-reveal:nth-child(3),.lp-tests .lp-reveal:nth-child(3),.lp-steps .lp-reveal:nth-child(3){animation-delay:.16s}
.lp-feats .lp-reveal:nth-child(4){animation-delay:.24s}
.lp-feats .lp-reveal:nth-child(5){animation-delay:.32s}
.lp-feats .lp-reveal:nth-child(6){animation-delay:.4s}
#lpFaqList .accordion .body{display:block;max-height:0;overflow:hidden;padding-top:0;padding-bottom:0;transition:max-height .35s ease,padding .35s ease}
#lpFaqList .accordion.open .body{max-height:180px;padding-bottom:14px}
#lpFaqList .accordion button span{display:inline-block;transition:transform .3s ease}
#lpFaqList .accordion.open button span{transform:rotate(45deg)}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  #landingView .lp-hero,.lp-hero-copy,.lp-hero-card,.lp-score-rows .level-fill{animation:none!important}
  #landingView.lp-anim .lp-reveal,#landingView.lp-anim .lp-reveal.in{opacity:1;transform:none;animation:none!important}
  .lp-feat,.lp-test,.lp-step,.lp-chip,.lp-cta-main,.lp-nav a::after,.lp-cta-main::after{transition:none}
}

/* ---- Mobile responsiveness (v3.5.7) ---- */
#googleBtnWrap iframe{max-width:100%}
@media (max-width:640px){
  .tabs button,.dash-tabs button{font-size:12px;padding:8px 4px}
}
@media(max-width:560px){
  .auth-wrap{padding:16px}
}
@media (max-width:768px){
  .opt{min-height:44px;align-items:center}
}

/* ---- Strategy videos (v3.5.7): real YouTube thumbnails + channel cards ---- */
.video-thumb{position:relative;overflow:hidden}
.video-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.video-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:28px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.6);pointer-events:none}
.video-chan{display:flex;flex-direction:column;gap:2px;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:14px;color:var(--ink)}
.video-chan:hover{text-decoration:none;border-color:var(--brand);box-shadow:var(--sh-sm)}

/* ---- Chatbot (v3.5.7) ---- */
.chat-fab{position:fixed;right:18px;bottom:24px;z-index:130;width:56px;height:56px;border-radius:50%;border:0;background:var(--brand);color:#fff;box-shadow:0 10px 24px rgba(0,40,85,.4);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.chat-fab:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(0,40,85,.45)}
.chat-fab .ico-svg{width:26px;height:26px}
.chat-fab.open{background:var(--brand-dark)}
.chat-panel{position:fixed;right:18px;bottom:92px;z-index:130;width:360px;max-width:calc(100vw - 36px);height:520px;max-height:calc(100vh - 140px);background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh-lg);display:flex;flex-direction:column;overflow:hidden}
.chat-head{background:var(--brand);color:#fff;padding:14px 16px;display:flex;flex-direction:column;gap:2px;position:relative}
.chat-head b{font-size:15px}
.chat-head .muted{color:#dcfce7}
.chat-close{position:absolute;top:10px;right:12px;border:0;background:transparent;color:#fff;font-size:22px;cursor:pointer;line-height:1}
.chat-body{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:#f8fafc}
.chat-msg{display:flex;flex-direction:column;max-width:85%}
.chat-msg.user{align-self:flex-end;align-items:flex-end}
.chat-msg.bot{align-self:flex-start;align-items:flex-start}
.chat-bubble{padding:9px 12px;border-radius:14px;font-size:13px;line-height:1.45;white-space:pre-wrap}
.chat-msg.user .chat-bubble{background:var(--brand);color:#fff;border-bottom-right-radius:4px}
.chat-msg.bot .chat-bubble{background:#fff;border:1px solid var(--line);color:var(--ink);border-bottom-left-radius:4px}
.chat-msg .btn{margin-top:6px}
.chat-quick{display:flex;gap:6px;flex-wrap:wrap;padding:8px 12px;border-top:1px solid var(--line);background:#fff}
.chat-chip{border:1.5px solid var(--brand);background:var(--brand-light);color:var(--brand-dark);border-radius:20px;padding:6px 12px;font-size:12px;font-weight:500;cursor:pointer}
.chat-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--line);background:#fff}
.chat-form input{flex:1}
.chat-form-box{display:flex;flex-direction:column;gap:8px;width:100%}
.chat-form-box input,.chat-form-box textarea{font-size:13px}
@media(max-width:768px){
  /* v3.7.3 (audit P0 #1): 52px, 16px from the right edge, 84px up — clears
     the 72px bottom tab bar by 12px. (Pixel check of the v3.7.1 shots:
     the FAB was never actually off-screen — right gap 18px, bottom gap
     76px, exactly per the old rules. It only LOOKED cut off because the
     v3.7.1 white-background avatar made the circle's rim invisible
     against white cards; v3.7.2's transparent GIF + this smaller,
     higher placement fix the impression and the content overlaps.) */
  .chat-fab{width:52px;height:52px;right:16px;bottom:calc(84px + env(safe-area-inset-bottom))}
  .chat-panel{right:12px;left:12px;width:auto;bottom:calc(140px + env(safe-area-inset-bottom));height:460px}
}

/* Notifications bell + panel */
.topbar{position:relative}
.top-right{display:flex;align-items:center;gap:10px}
.notif-bell{position:relative;width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.notif-bell:hover{background:var(--brand-light);border-color:var(--brand);color:var(--brand-dark)}
.notif-bell svg{width:20px;height:20px}
.notif-badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#dc2626;color:#fff;font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center}
.notif-panel{position:absolute;top:calc(100% + 8px);right:0;width:360px;max-width:calc(100vw - 32px);max-height:440px;overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--sh-md);z-index:60}
.notif-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff}
.notif-head button{background:none;border:0;color:var(--brand);cursor:pointer;font-size:13px}
.notif-item{padding:12px 14px;border-bottom:1px solid var(--line);cursor:pointer}
.notif-item:last-child{border-bottom:0}
.notif-item.unread{background:var(--brand-light);border-left:3px solid var(--brand)}
.notif-item b{font-size:14px;font-weight:500}
.notif-item p{margin:4px 0;font-size:13px;color:var(--muted)}
/* v3.7.18: the exam-voucher code inside a notification — the important
   part, bold + brand green so it stands out at a glance. */
.notif-code{font-weight:700;color:#16a34a;font-size:15px;margin-top:4px;word-break:break-all}
.notif-time{font-size:12px;color:var(--muted)}

/* Describe Image scene photos (AI-generated, one per scene) */
.di-photo{width:100%;max-height:360px;object-fit:cover;border-radius:12px;display:block;margin-bottom:10px}

/* Side banner + slider banners (dashboard, v3.5.8) */
.side-banner{border-radius:14px;overflow:hidden;margin-bottom:12px;box-shadow:var(--sh-md);background:#e2e8f0}
.side-banner img{width:100%;display:block;border-radius:14px}
.bn-slider{position:relative;height:90px;max-width:760px;margin:0 auto 12px;border-radius:14px;overflow:hidden;box-shadow:var(--sh-md);background:#e2e8f0}
.bn-slider a{display:block;height:100%}
.bn-slider img{width:100%;height:100%;object-fit:cover;display:block}
/* Central banner strip (one per page, v3.7.4) — same treatment as .bn-slider. */
.central-banner{height:90px;max-width:760px;margin:0 auto 12px;border-radius:14px;overflow:hidden;box-shadow:var(--sh-md);background:#e2e8f0}
.central-banner a{display:block;height:100%}
.central-banner img{width:100%;height:100%;object-fit:cover;display:block}
/* Banner effects (v3.7.4, CSS-only, light): fade-in on load for every banner
   (the slider re-renders its innerHTML per slide, so the fade replays as a
   free cross-fade between slides); hover lift on desktop only, never on the
   slider (it has arrows/dots inside). Reduced motion disables both. */
@keyframes bnFadeIn{from{opacity:0;transform:translateY(4px)}}
.dash-banner,.side-banner,.bn-slider,.central-banner{animation:bnFadeIn .5s ease both}
@media (hover:hover){
  .dash-banner,.side-banner,.central-banner{transition:transform .2s ease,box-shadow .2s ease}
  .dash-banner:hover,.side-banner:hover,.central-banner:hover{transform:translateY(-2px);box-shadow:var(--sh-lg)}
}
@media (prefers-reduced-motion:reduce){
  .dash-banner,.side-banner,.bn-slider,.central-banner{animation:none}
  .dash-banner:hover,.side-banner:hover,.central-banner:hover{transform:none;box-shadow:var(--sh-md)}
}
/* Banner scroll reveal (v3.7.5): banner hosts fade/slide in when scrolled
   into view (revealBannerHost() in app.js adds .in via IntersectionObserver,
   same pattern as .lp-reveal). Hosts are empty divs until their banner
   loads, so hidden hosts cost no layout. No-JS / no-IO fallback adds .in
   immediately. */
#dashBanner,#dashSideBanner,#dashSlider,#dashStrip,[id^="centralBanner-"]{opacity:0;transform:translateY(12px);transition:opacity .55s ease,transform .55s ease}
#dashBanner.in,#dashSideBanner.in,#dashSlider.in,#dashStrip.in,[id^="centralBanner-"].in{opacity:1;transform:none}
/* Banner shimmer sweep (v3.7.5): a light sweep across the banner on hover.
   CSS-only, desktop hover only; never on the slider (it has arrows/dots
   inside, same policy as the hover lift). */
.dash-banner,.side-banner,.central-banner,.lp-strip{position:relative}
.dash-banner::after,.side-banner::after,.central-banner::after,.lp-strip::after{content:'';position:absolute;top:0;bottom:0;left:-70%;width:45%;background:linear-gradient(105deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-20deg);pointer-events:none}
@keyframes bnShimmer{from{left:-70%}to{left:135%}}
@media (hover:hover){
  .dash-banner:hover::after,.side-banner:hover::after,.central-banner:hover::after,.lp-strip:hover::after{animation:bnShimmer .9s ease}
}
@media (prefers-reduced-motion:reduce){
  #dashBanner,#dashSideBanner,#dashSlider,#dashStrip,[id^="centralBanner-"]{opacity:1;transform:none;transition:none}
  .dash-banner::after,.side-banner::after,.central-banner::after,.lp-strip::after{display:none}
}
.bn-arrow{position:absolute;top:50%;transform:translateY(-50%);width:30px;height:30px;border:none;border-radius:50%;background:rgba(255,255,255,.9);color:#0f172a;font-size:20px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2);z-index:2}
.bn-prev{left:8px}
.bn-next{right:8px}
.bn-dots{position:absolute;bottom:8px;left:0;right:0;display:flex;gap:6px;justify-content:center;z-index:2}
.bn-dot{width:8px;height:8px;border:none;border-radius:50%;background:rgba(255,255,255,.6);cursor:pointer;padding:0}
.bn-dot.active{background:#fff;width:20px;border-radius:4px}
.bn-admin-list{display:flex;flex-direction:column;gap:10px;margin:10px 0}
.bn-admin-item{display:flex;gap:10px;align-items:center}
.bn-admin-item img{width:120px;height:52px;object-fit:cover;border-radius:8px;flex:none}
@media (max-width:640px){.bn-slider{height:80px}}
@media (max-width:640px){.central-banner{height:80px}}
/* Exam switcher: PTE Academic / PTE Core (topbar + Practice page). */
.exam-switch{display:flex;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:999px;padding:2px;gap:2px}
.exam-switch button{border:0;background:transparent;color:var(--brand-dark);font-size:12px;font-weight:500;padding:5px 10px;border-radius:999px;cursor:pointer}
.exam-switch button.active{background:var(--brand);color:#fff}
.exam-tabs{display:flex;gap:8px;margin:10px 0 4px;flex-wrap:wrap}
.exam-tabs button{border:1px solid #bcd0e8;background:var(--brand-light);color:var(--brand-dark);font-size:13px;font-weight:500;padding:7px 16px;border-radius:999px;cursor:pointer}
.exam-tabs button.active{background:var(--brand);border-color:var(--brand);color:#fff}
@media(max-width:640px){.exam-switch button{padding:4px 7px;font-size:11px}}

/* ==========================================================================
   Study roadmap (v3.5.13) — day-by-day timeline matched to the user's plan.
   ========================================================================== */
.rm-phase-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;cursor:pointer}
.rm-chev{font-size:18px;color:var(--muted);flex:none;line-height:1.4}
.rm-days{margin-top:12px;border-left:2px solid #e2e8f0}
.rm-day{display:flex;gap:10px;align-items:flex-start;padding:11px 0 11px 14px;border-bottom:1px solid #f1f5f9;position:relative}
.rm-day:last-child{border-bottom:0}
.rm-day::before{content:'';position:absolute;left:-5px;top:17px;width:8px;height:8px;border-radius:50%;background:#cbd5e1}
.rm-day.rm-done::before{background:#16a34a}
.rm-day.rm-today::before{background:#f59e0b;box-shadow:0 0 0 3px #fef3c7}
.rm-day.rm-missed::before{background:#f87171}
.rm-dot{width:22px;height:22px;border-radius:50%;background:#f1f5f9;color:#64748b;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;flex:none;margin-top:1px}
.rm-day.rm-done .rm-dot{background:#dcfce7;color:#166534}
.rm-day.rm-today .rm-dot{background:#fef3c7;color:#92400e}
.rm-day.rm-missed .rm-dot{background:#fee2e2;color:#b91c1c}
.rm-day-main{flex:1;min-width:0}
.rm-day-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rm-day-title{font-weight:600;margin-top:2px}
.rm-task{font-size:13px;color:var(--brand-dark);font-weight:500;margin-top:3px}
.rm-day.rm-done .rm-task{color:#166534}
.rm-day-actions{display:flex;gap:8px;align-items:center;flex:none}
.rm-check input{width:20px;height:20px;accent-color:#16a34a;cursor:pointer}

/* Rules box is a <details> now (v3.5.13): open on desktop, collapsed on phones. */
.rules summary{cursor:pointer;font-weight:600;color:#92400e;list-style:none}
.rules summary::-webkit-details-marker{display:none}

/* ==========================================================================
   Mobile runner fixes (v3.5.13) — on phones the sticky header + rules box +
   action bar used to eat most of the screen, leaving a tiny strip for the
   question and the answer box.
   ========================================================================== */
@media (max-width:768px){
  .rules{padding:9px 11px;margin-bottom:10px}
  .rules ul{margin-top:6px}
  .run-instructions{display:none}
  .runner-card{padding:10px 12px}
  .run-head b{font-size:14px}
  .run-head .timer{font-size:16px}
  .run-head .chip{display:none}
  .phase-step{padding:3px 8px;font-size:11px}
  .phase-step .ps-dot{width:15px;height:15px;font-size:9px}
  /* Action bar: one scrollable row instead of 3 wrapped rows. */
  .runner-actions{flex-wrap:nowrap!important;overflow-x:auto;padding-bottom:8px;scrollbar-width:none}
  .runner-actions::-webkit-scrollbar{display:none}
  .runner-actions .btn{flex:none!important;min-height:44px;padding:10px 14px;font-size:13px;white-space:nowrap}
  .runner-actions #attemptCount{display:none}
  .info-notes{display:none}
  .diff-row{font-size:13px}
  .diff-row b{font-size:13px}
  .swt-check{padding:9px 11px}
  .empty-panel{padding:16px 12px}
  .mic-wave{display:none}
  .script-box{max-height:160px}
  .di-photo{max-height:220px}
  .card{padding:13px}
  .rm-day-actions .btn{padding:8px 10px}
}

/* Admin analytics 30-day strip (v3.5.14). */
.an-days{display:flex;align-items:flex-end;gap:3px;height:100px;margin-top:10px}
.an-day{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}
.an-day-bar{width:100%;background:#16a34a;border-radius:3px 3px 0 0}
.an-day span{font-size:9px;color:var(--muted);margin-top:3px}
@media(max-width:640px){.an-day span{display:none}}

/* ============================== v3.5.15 — speaking runner: image + mic + live transcript on one screen ============================== */
/* Speaking questions (DI, RA, RS, RTL, ASQ, SGD, RTS): on desktop the
   question media sits left and the speak panel (mic + timer + live
   transcript) sits right and stays stuck while scrolling — so the image,
   the mic and the words being spoken are all visible together. */
.transcript-label{display:block;text-align:left;font-size:13px;font-weight:600;color:#166534;margin:10px 0 6px}
.speak-layout .mic-wave{display:none}
@media(min-width:1024px){
  .card.speak-layout{display:grid;grid-template-columns:minmax(0,1fr) 370px;column-gap:20px;align-items:start}
  .card.speak-layout #qBody{grid-column:1;grid-row:1;min-width:0}
  .card.speak-layout #audioArea{grid-column:1;grid-row:2;min-width:0}
  .card.speak-layout #inputArea{grid-column:2;grid-row:1/span 2;position:sticky;top:118px;min-width:0}
  .card.speak-layout .runner-actions,.card.speak-layout #ansReveal,.card.speak-layout .diff-row,.card.speak-layout .info-notes,.card.speak-layout .runner-tabs,.card.speak-layout .runner-tab-body,.card.speak-layout #resultArea{grid-column:1/-1}
  .card.speak-layout #inputArea .mic-stage{margin-top:0}
  .card.speak-layout #qBody .chart-svg{max-height:320px}
  .card.speak-layout .di-photo{max-height:300px}
}
@media(max-width:1023px){
  /* Stacked on phones/tablets, but compact: smaller chart, mic + live
     transcript directly below it, minimal scrolling. */
  .card.speak-layout #qBody .chart-svg{max-height:240px}
  .card.speak-layout .di-photo{max-height:200px}
}

/* v3.7.0: language selector (topbar + landing header + settings) + RTL. */
.lang-select{padding:7px 8px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#111827;font-size:13px;max-width:150px;cursor:pointer}
.lp-head-btns .lang-select{max-width:130px}
@media(max-width:768px){
  .topbar .lang-select{max-width:88px;font-size:12px;padding:6px 4px}
  .lp-head-btns .lang-select{display:none}
}
[dir="rtl"] .lp-hero-in,[dir="rtl"] .lp-stats-in,[dir="rtl"] .lp-feats,[dir="rtl"] .lp-tests,[dir="rtl"] .lp-steps{direction:rtl}
[dir="rtl"] .transcript-label,[dir="rtl"] .field label{text-align:right}

/* ============================== owl mascot (v3.7.0, GIFs in v3.7.2) ============================== */
/* Sizes — explicit width/height on every class, so no layout shift while
   an image loads. */
/* v3.7.2: static placements wrap the img in <picture> (GIF default, webp
   under prefers-reduced-motion). display:contents keeps the img laying
   out exactly as if the wrapper were not there. */
picture.masc-pic{display:contents}
.masc-hero{width:280px;height:280px;object-fit:contain;flex:none}
.masc-lg{width:96px;height:96px;object-fit:contain;flex:none}
.masc-runner{width:72px;height:72px;object-fit:contain;flex:none}
.masc-card{width:64px;height:64px;object-fit:contain;flex:none}
.masc-sm{width:48px;height:48px;object-fit:contain;flex:none}
.masc-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none}
.masc-tab{width:40px;height:40px;object-fit:contain;border-radius:10px;flex:none}
.masc-chat{width:28px;height:28px;border-radius:50%;object-fit:cover;flex:none;margin-bottom:2px}
/* Animations */
@keyframes mascBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes mascPop{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes mascRing{0%,100%{box-shadow:0 0 0 0 rgba(22,163,74,.35)}50%{box-shadow:0 0 0 12px rgba(22,163,74,0)}}
@keyframes mascDot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
.masc-float{animation:mascBob 3s ease-in-out infinite}
.masc-pop{animation:mascPop .35s ease}
.masc-pulse{animation:mascRing 1.6s ease-in-out infinite;border-radius:16px}
.masc-think{animation:mascBob 2.2s ease-in-out infinite}
.masc-dots{display:inline-flex;gap:4px;align-items:center}
.masc-dots i{width:7px;height:7px;border-radius:50%;background:#16a34a;display:block;animation:mascDot 1.2s ease-in-out infinite}
.masc-dots i:nth-child(2){animation-delay:.15s}
.masc-dots i:nth-child(3){animation-delay:.3s}
/* Layout helpers */
.masc-row{display:flex;align-items:center;gap:12px}
.masc-center{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.run-mascot{flex:none;display:flex;align-items:center}
.run-mascot .masc-runner{border-radius:14px}
/* Landing + auth + chatbot placements */
.lp-hero-mascot{display:block;width:220px;height:220px;object-fit:contain;margin:20px auto 0}
.lp-step .masc-card{display:block;margin:0 auto 10px}
.lp-feat .masc-sm{display:block;margin-bottom:12px}
.auth-mascot{display:block;margin:0 auto 14px}
.chat-fab{padding:0;overflow:hidden}
.chat-fab img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.chat-head{flex-direction:row;align-items:center;padding-right:44px}
.chat-head-in{display:flex;align-items:center;gap:10px;min-width:0}
.chat-head-in>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.chat-msg.chat-typing{flex-direction:row;align-items:center;gap:8px}
@media(max-width:768px){
  .masc-hero{width:200px;height:200px}
  .lp-hero-mascot{width:170px;height:170px;margin-top:14px}
  .masc-runner{width:60px;height:60px}
}
@media(max-width:480px){
  /* The runner mascot hides on small phones — unless it carries state
     (pulsing = recording or audio playing), when it stays visible. */
  .run-mascot{display:none}
  .run-mascot.masc-pulse{display:flex}
  .masc-card{width:52px;height:52px}
}
@media(prefers-reduced-motion:reduce){
  .masc-float,.masc-pop,.masc-pulse,.masc-think,.masc-dots i{animation:none!important}
}

/* ==========================================================================
   v3.7.3 — UI audit fixes (Workstream A, 2026-11-15).
   Source: ~/workspace/pte-ui-audit/AUDIT.md (v3.7.1 snapshot, 390/768/1280).
   Every rule below is scoped to a mobile media query — desktop layouts
   were clean in the audit and are untouched. Horizontal-scroll rows use
   the same pattern throughout: end padding so the last item scrolls
   fully into view + a short right-edge fade (mask) so users can tell
   the row scrolls. The fade is 16px with at least 16px of end space,
   so a fully scrolled row shows its last item unfaded.
   ========================================================================== */
@media (max-width:768px){
  /* P0 #2 — speaking-runner mic: the sticky .runner-actions bar (not the
     bottom nav — .main already has 104px bottom padding) slid over the
     mic while scrolling. In speaking tasks the bar now scrolls with the
     page instead of overlaying the mic, and the card gets 96px of extra
     scroll room at the end so the mic/transcript park fully above the
     bottom nav. Other runners keep the sticky bar. */
  .card.speak-layout .runner-actions{position:static}
  .card.speak-layout{margin-bottom:96px}
  /* P0 #3 — runner action row (6 buttons, ~770px): must scroll, so make
     it a PROPER scroll row — end padding + visible fade affordance.
     The margin on the last button is belt-and-braces for browsers that
     ignore right padding on a flex scroll container. */
  .runner-actions{padding-right:20px;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 16px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 16px),transparent)}
  .runner-actions .btn:last-of-type{margin-right:20px}
  /* P0 #4 (retired in v3.7.10) — admin tabs moved to the sidebar
     (.dash-nav); the old top tab strip no longer exists. */
  /* P0 #6 — scoring table (7 cols): base table{width:100%} crushed the
     columns, and the wrapper's overflow-x:auto never engaged. A
     min-width lets the existing wrapper scroll; nowrap keeps headers
     and values on one line. The :has() wrapper rule is progressive
     enhancement (graceful no-op where :has() is unsupported). */
  .score-table{min-width:640px}
  .score-table th,.score-table td{white-space:nowrap}
  div:has(>table.score-table){padding-right:16px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 16px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 16px),transparent)}
  div:has(>table.score-table)::-webkit-scrollbar{display:none}
  /* P0 #7 — topbar: never let the user chip wrap (the '★ Premium' badge
     wrapped to two lines at 390px). */
  .topbar #topUser{white-space:nowrap;flex:none}
  .topbar .pill{white-space:nowrap}
}
@media (max-width:640px){
  /* P0 #5 — mock TYPE tabs (.subtabs in .mock-sub: 'Full / Sectional /
     Timed Sectional Mock Test', ~500px). NOTE: the overflowing row is
     .mock-sub, not .mock-top .tabs (2 buttons + Score History — fits,
     confirmed in 390_mocks.png). .mock-sub already scrolled at ≤640px
     but with no affordance and no end padding, so 'Timed…' looked cut
     off. flex:none stops the tab strip, checkboxes and select from
     shrink-wrapping inside the scroll row. */
  .mock-sub{padding-right:16px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 16px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 16px),transparent)}
  .mock-sub::-webkit-scrollbar{display:none}
  .mock-sub>*{flex:none}
}
@media (max-width:480px){
  /* P0 #7 (cont.) — compact topbar below 480px, where the row actually
     crowds (measured: controls need ~424px at default sizes; 390px
     viewport leaves 338px). Hides the name pill — the name is visible
     in Profile — leaving a single-line '★ Premium' chip when premium.
     390px check: lang 88 + exam ~106 + bell 34 + chip ~78 + gaps 18
     = ~324px < 342px available. */
  .topbar{padding:10px 12px}
  .top-right{gap:6px}
  .topbar .lang-select{font-size:11px;padding:5px 4px}
  .topbar .exam-switch button{padding:3px 6px;font-size:11px}
  .topbar .notif-bell{width:34px;height:34px}
  .topbar #topUser .pill:first-child{display:none}
  /* P2 #13 — dashboard 'Find what interests you' search: at 390px the
     input got ~200px and the 16px placeholder (~232px) clipped. Full
     width on its own row; Refresh + 'Last updated' drop to row 2. */
  .dash-toolbar #dashSearch{flex:1 1 100%;min-width:0}
}

/* PTE Hacks (v3.7.6) — type grid, 9:16 video player, practice strip. */
.hack-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin-top:12px}
.hack-type-card .masc-tab{width:52px;height:52px}
/* v3.7.11: large thumbnail on top of each Hacks type card — the 9:16
   video thumbnail cover-cropped to 16:9. Thumbnails put the type label +
   trick title at the top (y ~150-400 of 1280) and the mascot lower down,
   so the crop is biased to the top (12%) to keep the full title visible;
   the Free pill sits top-right (empty area) so it never covers the title.
   Verified by screenshot. */
.hack-type-thumb{position:relative;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#0f172a;margin-bottom:10px}
.hack-type-thumb img{width:100%;height:100%;object-fit:cover;object-position:center 12%;display:block}
.hack-type-play{position:absolute;right:8px;bottom:8px;width:34px;height:34px;border-radius:50%;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;font-size:15px;color:#fff;padding-left:2px;pointer-events:none}
.hack-type-free{position:absolute;right:8px;top:8px}
/* v3.7.11: featured promo player (Adina 10:56 PKT 2026-11-16) — YouTube
   channel style: the landscape PTE Hacks ad video on top of the section,
   then the type grid below. */
.hack-promo{margin-top:12px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#0f172a}
.hack-promo-video-wrap{aspect-ratio:16/9;background:#000}
.hack-promo-video{width:100%;height:100%;display:block}
.hack-promo-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 14px;background:#fff;flex-wrap:wrap}
.hack-promo-bar .btn{flex:none}
.hack-video-wrap{max-width:360px;margin:10px auto}
.hack-video{width:100%;aspect-ratio:9/16;background:#000;border-radius:12px;display:block}
.hack-strip{border-top:4px solid #f59e0b}
.hack-chip{border:0;background:transparent;cursor:pointer;font-size:14px;padding:0 2px;line-height:1}
.hack-acc .body h4{margin:14px 0 6px}
.hack-steps{margin:6px 0;padding-left:20px}
.hack-steps li{margin-bottom:6px}
@media(max-width:640px){.hack-grid{grid-template-columns:1fr 1fr}.hack-video-wrap{max-width:280px}}

/* Reels covers (v3.7.7) — hack cards as vertical 9:16 video covers. */
.hack-cover-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:12px}
.hack-cover{cursor:pointer;text-align:left;outline-offset:2px}
.hack-cover:focus-visible{outline:2px solid var(--brand);border-radius:14px}
.hack-cover-thumb{position:relative;aspect-ratio:9/16;border-radius:14px;overflow:hidden;background:#0f172a}
.hack-cover-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.hack-cover-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:34px;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.65);pointer-events:none}
.hack-cover-dur{position:absolute;right:8px;bottom:8px;background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:2px 7px;border-radius:20px}
.hack-cover-lock{position:absolute;left:8px;top:8px;font-size:15px;background:rgba(0,0,0,.6);border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center}
.hack-cover-title{font-weight:600;margin-top:8px;font-size:14px;line-height:1.3}
.hack-cover-meta{margin-top:2px}
.hack-cover-details{margin-top:6px}
/* v3.7.8: Practice Exercises / Hacks tabs — segmented control, full width,
   44px touch targets, labels ellipsise instead of overflowing. */
.practice-view-tabs{display:flex;background:#f1f5f9;border-radius:10px;padding:4px;margin:0 0 12px}
.practice-view-tabs button{flex:1;border:0;background:transparent;padding:10px 6px;border-radius:8px;font-size:14px;font-weight:600;color:var(--muted);min-height:44px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.practice-view-tabs button.active{background:#fff;color:var(--brand);box-shadow:0 1px 4px rgba(0,0,0,.1)}
/* Per-cover PDF button on the Practice Hacks tab (below Details). */
.hack-cover-pdf{display:block;margin-top:6px}
@media(max-width:640px){.hack-cover-grid{grid-template-columns:1fr 1fr;gap:10px}}

/* Reels player (v3.7.7) — full-screen vertical feed + side rail. */
body.reels-open{overflow:hidden}
.reels-overlay{position:fixed;inset:0;z-index:300;background:#000;display:flex;color:#fff}
.reels-stage{flex:1;min-width:0;height:100%;position:relative;display:flex;align-items:stretch;justify-content:center}
.reels-feed{height:100%;width:100%;max-width:calc(100vh * 9 / 16);overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;position:relative}
.reels-feed::-webkit-scrollbar{display:none}
.reels-slide{height:100%;scroll-snap-align:start;scroll-snap-stop:always;position:relative;display:flex;align-items:center;justify-content:center;background:#000;overflow:hidden}
.reels-video{width:100%;height:100%;object-fit:contain;display:block;cursor:pointer;background:#000}
.reels-poster-only{width:100%;height:100%;object-fit:contain;display:block}
.reels-tap-hint{position:absolute;left:0;right:0;bottom:120px;text-align:center;color:rgba(255,255,255,.75);font-size:13px;pointer-events:none;text-shadow:0 1px 6px rgba(0,0,0,.8)}
.reels-slide.playing .reels-tap-hint{display:none}
.reels-chrome{position:absolute;top:0;bottom:0;left:0;right:0;margin:0 auto;width:100%;max-width:calc(100vh * 9 / 16);pointer-events:none}
.reels-chrome button{pointer-events:auto}
.reels-close{position:absolute;top:12px;right:12px;width:40px;height:40px;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;font-size:18px;cursor:pointer;z-index:2}
.reels-list-btn{position:absolute;top:12px;left:12px;width:40px;height:40px;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;font-size:18px;cursor:pointer;z-index:2}
.reels-bottom{position:absolute;left:0;right:0;bottom:0;padding:48px 14px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to top,rgba(0,0,0,.85),transparent);pointer-events:none}
.reels-bottom button,.reels-bottom a{pointer-events:auto}
.reels-meta{margin-bottom:10px}
.reels-meta .muted{color:rgba(255,255,255,.75)!important}
.reels-controls{display:flex;align-items:center;gap:10px}
.reels-mute{width:38px;height:38px;flex:none;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;font-size:17px;cursor:pointer}
.reels-progress{flex:1;height:6px;border-radius:3px;background:rgba(255,255,255,.3);cursor:pointer;pointer-events:auto}
.reels-progress-fill{height:100%;width:0%;border-radius:3px;background:#1db954}
.reels-time{font-size:12px;color:rgba(255,255,255,.85);white-space:nowrap}
.reels-paused{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:84px;height:84px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:36px;display:none;align-items:center;justify-content:center;pointer-events:none;padding-left:4px}
.reels-paused.show{display:flex}
/* Lock card: dimmed thumbnail behind, upgrade + next in front. */
.reels-lock-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.25;filter:blur(2px)}
.reels-lock-body{position:relative;text-align:center;padding:24px;max-width:320px;display:flex;flex-direction:column;gap:10px;align-items:center}
.reels-lock-ico{font-size:44px}
.reels-lock-body .muted{color:rgba(255,255,255,.75)!important}
/* Side rail (desktop): current name on top, small Reels thumbnails below. */
.reels-rail{width:112px;flex:none;height:100%;background:#111;border-left:1px solid #222;display:none;flex-direction:column}
.reels-rail-current{padding:12px 10px;border-bottom:1px solid #222;display:flex;flex-direction:column;gap:2px}
.reels-rail-current b{font-size:13px;line-height:1.3}
.reels-rail-current .muted{color:rgba(255,255,255,.6)!important}
.reels-rail-list{flex:1;overflow-y:auto;padding:10px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin}
.reels-rail-thumb{position:relative;width:100%;aspect-ratio:9/16;border:2px solid transparent;border-radius:10px;overflow:hidden;padding:0;background:#000;cursor:pointer;flex:none}
.reels-rail-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.reels-rail-thumb.active{border-color:#1db954;box-shadow:0 0 0 2px #1db954}
.reels-rail-lock{position:absolute;top:4px;left:4px;font-size:12px;background:rgba(0,0,0,.65);border-radius:50%;width:22px;height:22px;display:flex;align-items:center;justify-content:center}
.reels-rail-name{position:absolute;left:0;right:0;bottom:0;padding:16px 6px 5px;font-size:11px;line-height:1.25;text-align:left;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.9));display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Mobile rail panel: slides in from the right, rows with thumb + name. */
.reels-rail-panel{position:fixed;top:0;right:0;bottom:0;width:288px;max-width:86vw;background:#111;z-index:310;transform:translateX(105%);transition:transform .3s ease;display:flex;flex-direction:column;box-shadow:-12px 0 40px rgba(0,0,0,.5)}
.reels-rail-panel.open{transform:none}
.reels-rail-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px;border-bottom:1px solid #222}
.reels-rail-panel-head b{font-size:14px;line-height:1.3}
.reels-rail-panel-close{width:34px;height:34px;flex:none;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:15px;cursor:pointer}
.reels-rail-panel .reels-rail-list{padding:10px}
.reels-rail-panel .reels-rail-thumb{display:flex;align-items:center;gap:10px;aspect-ratio:auto;height:auto;padding:6px;border-radius:10px;text-align:left}
.reels-rail-panel .reels-rail-thumb img{width:46px;height:82px;flex:none;border-radius:6px}
.reels-rail-panel .reels-rail-name{position:static;background:none;padding:0;font-size:13px;-webkit-line-clamp:3}
.reels-rail-panel .reels-rail-lock{top:10px;left:10px}
@media(min-width:1024px){.reels-rail{display:flex}.reels-list-btn{display:none}}
/* v3.7.11: chapter rail — type-name dividers group the rail thumbnails by
   section; the current section shows prominently at the top of the rail
   (and of the mobile panel) and updates as the user scrolls. */
.reels-rail-chapter{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#1db954;padding:8px 2px 2px}
.reels-rail-eyebrow{display:block;font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.5)}
.reels-rail-section{display:block;font-size:13px;font-weight:700;color:#1db954;line-height:1.25}
.reels-rail-endless{font-size:11px;color:rgba(255,255,255,.6);padding:8px 10px;border-bottom:1px solid #222}
.reels-rail-panel-head .reels-rail-section{margin-bottom:1px}
/* v3.7.11: banners in the player's leftover black space — flex columns
   beside the stage (never overlapping the video or the rail). Left column
   (side + slider banner) from 1280px; right column (central + slider
   banner) only on very wide screens. */
.reels-side-col{display:none;flex-direction:column;gap:16px;justify-content:center;padding:24px 16px;width:300px;flex:none;overflow-y:auto;scrollbar-width:none}
.reels-side-col::-webkit-scrollbar{display:none}
.reels-bn img{width:100%;height:auto;display:block;border-radius:12px}
@media(min-width:1280px){.reels-side-left{display:flex}}
@media(min-width:1600px){.reels-side-right{display:flex}}
/* v3.7.9: manual payment proof — upload preview (student) + admin thumbnail. */
.mp-proof-preview{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.mp-proof-preview img{max-width:240px;max-height:180px;object-fit:cover;border-radius:8px;border:1px solid #e5e7eb}
.mp-proof-thumb{width:64px;height:64px;object-fit:cover;border-radius:6px;cursor:pointer;border:1px solid #e5e7eb}

/* v3.7.10: professional admin dashboard — sidebar layout, KPI cards,
   charts, activity feed, pending queue, professional tables. */
/* v3.7.18: the admin dashboard is a full-screen app shell — the card
   chrome (max-width, radius, shadow, padding, gradient strip) is
   flattened for the dashboard state ONLY. The login state keeps the
   plain 420px centred .auth-card untouched. The sidebar stays fixed
   on the left (200px); the main content takes the remaining width,
   so wide tables (e.g. the 9-column exam-voucher inventory) need
   less horizontal scrolling. */
#adminView.dash-full{padding:0;align-items:stretch}
.auth-card.dash-wide{max-width:none;width:100%;border:0;border-radius:0;box-shadow:none;padding:0}
.auth-card.dash-wide::before{display:none}
.auth-card.dash-wide .dash-sidebar{border-radius:0}
.auth-card.dash-wide .dash-main{padding:16px 20px 20px}
/* v3.7.18: in the dashboard state the centred login header + footer are
   hidden — the sidebar already carries the OwlVerse PTE brand, and the
   header would waste a row above the app shell. */
.auth-card.dash-wide>.logo,.auth-card.dash-wide>h1,.auth-card.dash-wide>p.sub,.auth-card.dash-wide>.auth-foot{display:none}
.dash-layout{display:flex;align-items:stretch;gap:0}
.dash-sidebar{width:200px;flex:none;background:#f8fafc;border-right:1px solid var(--line);border-radius:12px 0 0 12px;padding:16px 12px;display:flex;flex-direction:column;gap:16px;align-self:stretch}
.dash-brand{display:flex;align-items:center;gap:10px;padding:2px 6px 12px;border-bottom:1px solid var(--line)}
.dash-brand img.dash-logo{width:40px;height:40px;border-radius:10px;object-fit:cover}
.dash-brand b{display:block;font-size:16px;line-height:1.2}
.dash-brand span{font-size:11px;color:var(--muted)}
.dash-nav{display:flex;flex-direction:column;gap:4px}
.dash-nav button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;padding:10px 12px;border-radius:10px;font-size:14px;font-weight:500;color:#334155;cursor:pointer;text-align:left;transition:background-color .15s ease,color .15s ease}
.dash-nav button:hover{background:#eef2f7}
.dash-nav button.active{background:var(--brand-light);color:var(--brand-dark)}
.dash-nav-ico{display:flex;align-items:center;justify-content:center;flex:none}
.dash-nav-ico .ico-svg{width:20px;height:20px}
.dash-nav-lbl{flex:1;min-width:0}
.dash-badge{background:#dc2626;color:#fff;font-size:11px;font-weight:700;line-height:1;padding:4px 7px;border-radius:999px;flex:none}
.dash-side-foot{margin-top:auto;display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding-top:12px;border-top:1px solid var(--line)}
.dash-main{flex:1;min-width:0;padding:4px 0 4px 16px}
.dash-topbar{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.dash-topbar b{font-size:19px;flex:1;min-width:0}
#adMenuBtn{display:none}
.dash-overlay{display:none}
.kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:12px}
.kpi-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px;align-items:flex-start;box-shadow:0 1px 3px rgba(15,23,42,.05);min-width:0}
.kpi-ico{width:40px;height:40px;flex:none;border-radius:10px;background:var(--brand-light);color:var(--brand);display:flex;align-items:center;justify-content:center}
.kpi-ico .ico-svg{width:22px;height:22px}
.kpi-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.kpi-val{font-size:24px;line-height:1.15;overflow-wrap:anywhere}
.kpi-lab{font-size:12px;color:var(--muted);font-weight:500}
.kpi-sub{font-size:11px;color:var(--muted)}
.dash-charts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.dash-chart-svg{width:100%;height:auto;display:block}
.dash-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.activity-feed{display:flex;flex-direction:column}
.act-row{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid #f1f5f9}
.act-row:last-child{border-bottom:0}
.act-dot{width:9px;height:9px;border-radius:50%;background:#16a34a;flex:none;margin-top:6px}
.act-dot.green{background:#16a34a}
.act-dot.red{background:#dc2626}
.act-body{flex:1;min-width:0;font-size:13px;line-height:1.45}
.act-time{flex:none;font-size:12px}
.queue-list{display:flex;flex-direction:column}
#dashViewAllPay{white-space:nowrap;flex:none}
.queue-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f1f5f9;flex-wrap:wrap}
.queue-row:last-child{border-bottom:0}
.queue-main{flex:1;min-width:180px;display:flex;flex-direction:column;gap:2px;font-size:13px}
.dash-actions{display:flex;gap:8px;flex-wrap:wrap}
.dash-actions .btn{display:inline-flex;align-items:center;gap:6px}
.dash-actions .ico-svg{width:16px;height:16px}
.dash-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px;align-items:center}
.dash-pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:12px;flex-wrap:wrap}
.dash-pager .muted{margin-right:auto}
/* Professional admin tables: sticky header, zebra rows, compact cells. */
.dash-table-wrap{overflow-x:auto}
.dash-table table{border-collapse:separate;border-spacing:0;width:100%}
.dash-table th{position:sticky;top:0;background:#f1f5f9;z-index:1;text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:#475569;padding:8px 8px;border-bottom:2px solid #e2e8f0;white-space:nowrap}
.dash-table td{padding:8px 8px;border-bottom:1px solid #f1f5f9;font-size:13px;vertical-align:middle;white-space:nowrap}
.dash-table .mp-proof-thumb{width:36px;height:36px}
.dash-table td.dash-ellipsis{max-width:130px;overflow:hidden;text-overflow:ellipsis}
.dash-table .pill{white-space:nowrap}
.dash-reason{display:inline-block;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
.dash-table tbody tr:nth-child(even){background:#f8fafc}
.dash-table tbody tr:hover{background:#f0fdf4}
@media(max-width:1100px){
  .kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .dash-sidebar{position:fixed;left:0;top:0;bottom:0;z-index:200;width:248px;border-radius:0;transform:translateX(-105%);transition:transform .2s ease;box-shadow:8px 0 24px rgba(15,23,42,.18)}
  .dash-sidebar.open{transform:none}
  .dash-overlay.show{display:block;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:190}
  .dash-main{padding:0}
  .auth-card.dash-wide .dash-main{padding:12px}
  #adMenuBtn{display:inline-flex}
  .dash-charts,.dash-cols{grid-template-columns:1fr}
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  .kpi-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .kpi-val{font-size:20px}
  .dash-topbar b{font-size:16px}
}

/* v3.7.15: two-factor authentication */
.qr-box{display:inline-block;background:#fff;padding:12px;border:1px solid var(--line);border-radius:8px}
.qr-box svg{display:block;max-width:100%;height:auto}
.backup-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.backup-grid code{background:#f1f5f9;border:1px solid var(--line);border-radius:6px;padding:8px 10px;font-size:14px;letter-spacing:1px;text-align:center;display:block}
input.twofa-code{font-size:22px;letter-spacing:6px;text-align:center;font-weight:600}

/* v3.7.17: update-available banner (iOS stale-cache fix) — fixed bottom bar,
   non-blocking; the user taps to refresh (never auto-reloads mid-test). */
.update-banner{position:fixed;left:12px;right:12px;bottom:12px;z-index:500;display:flex;gap:10px;align-items:center;justify-content:space-between;background:#0f172a;color:#fff;border-radius:12px;padding:12px 14px;box-shadow:0 8px 24px rgba(15,23,42,.35);font-size:14px}
.update-banner span{flex:1}
.update-banner .btn{flex:none}
@media(max-width:480px){.update-banner{flex-direction:column;align-items:stretch;text-align:center}}

/* ============================== v3.7.18 ============================== */
/* (I) Split-screen sign-in — form left, green marketing panel right. */
.auth-card.auth-split{max-width:960px;padding:0;display:flex;overflow:hidden;text-align:left}
.auth-card.auth-split::before{display:none}
.auth-form-side{flex:1 1 420px;max-width:480px;padding:28px 28px 20px}
.auth-form-side .logo{margin:0 auto 8px}
.auth-hero{flex:1 1 380px;background:linear-gradient(160deg,#001a38,#002855 55%,#003a6e);color:#fff;padding:32px 28px;display:flex;flex-direction:column;justify-content:center;gap:18px}
.auth-hero h2{color:#fff;margin:0;font-size:26px;line-height:1.25;text-align:left}
.auth-hero-feats{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.auth-hero-feats li{display:flex;gap:10px;align-items:center;font-size:16px}
.ah-ico{font-size:20px}
.auth-mock{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:14px;padding:14px}
.auth-mock-head{display:flex;gap:6px;align-items:center;margin-bottom:12px;font-size:13px;color:#dcfce7}
.am-dot{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.5)}
.auth-mock-row{display:grid;grid-template-columns:74px 1fr 30px;gap:8px;align-items:center;font-size:13px;margin-top:8px}
.am-bar{height:8px;background:rgba(255,255,255,.25);border-radius:4px;overflow:hidden}
.am-bar>div{height:100%;background:#4ade80;border-radius:4px}
.auth-hero-trust{margin:0;font-size:14px;color:#dcfce7}
.pw-wrap{position:relative}
.pw-wrap input{padding-right:64px}
.pw-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:0;color:var(--brand);font-weight:600;font-size:13px;cursor:pointer;padding:4px 6px}
@media(max-width:860px){
  .auth-card.auth-split{flex-direction:column;max-width:480px}
  .auth-form-side{max-width:none;padding:22px 20px 16px}
  .auth-hero{padding:22px 20px}
}
/* (K) Dashboard exam-voucher promo popup. */
.ev-popup-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}
.ev-popup{position:relative;background:#fff;border-radius:20px;max-width:420px;width:100%;padding:28px 24px 24px;text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.3)}
.ev-popup-x{position:absolute;top:10px;right:12px;background:none;border:0;font-size:26px;line-height:1;cursor:pointer;color:#64748b;padding:4px 8px}
.ev-popup-title{font-size:22px;display:block}
.ev-popup-price{background:#f0fdf4;border:1px dashed #16a34a;border-radius:12px;padding:12px;margin:14px 0}
.ev-popup-sale{font-size:28px;color:#16a34a}
/* (M) Pitch Analyzer SVG dial. */
.pitch-dial{text-align:center;margin:6px 0 2px}
.pitch-dial svg{display:block;margin:0 auto}
.pitch-hz{display:flex;justify-content:space-between;align-items:baseline}
.pitch-hz b{font-size:28px}
/* (N) Savings tag on the Book Exam nav item. */
.nav-save-tag{display:inline-block;background:#dc2626;color:#fff;font-size:10px;font-weight:700;border-radius:20px;padding:2px 7px;margin-left:6px;white-space:nowrap;vertical-align:middle}
/* (P) Refer & Earn — illustrated 3-step flow + prominent share button. */
.ref-steps3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}
.ref-step3{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:14px;padding:14px 12px;text-align:center;display:flex;flex-direction:column;gap:6px;align-items:center;position:relative}
.ref-num{position:absolute;top:-9px;left:10px;background:#16a34a;color:#fff;font-size:12px;font-weight:800;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.ref-ico{font-size:28px}
.ref-share-btn{width:100%;margin-top:12px}
@media(max-width:640px){.ref-steps3{grid-template-columns:1fr}}
/* Referral fix (Adina 18:28 PKT 2026-11-17): the dashboard sidebar card is
   ~320px wide even on a 1700px desktop, so the 3-across steps collapsed to
   ~100px each. In the narrow host the steps stack one below the other. */
.ref-narrow .ref-steps3{grid-template-columns:1fr}
/* (O) Public PTE Exam Voucher page. */
#voucherView{background:#f8fafc;min-height:100vh}
.evlp{max-width:1080px;margin:0 auto;padding:0 16px 40px}
.evlp-head{display:flex;justify-content:space-between;align-items:center;padding:16px 0}
.evlp-brand{display:flex;align-items:center;gap:8px;font-weight:800;font-size:20px;color:#14532d;text-decoration:none}
.evlp-brand img{width:36px;height:36px;object-fit:contain}
.evlp-subnav{display:flex;gap:4px;flex-wrap:wrap;position:sticky;top:0;background:#f8fafc;padding:10px 0;z-index:5;border-bottom:1px solid var(--line)}
.evlp-subnav a{padding:8px 12px;border-radius:20px;color:#334155;text-decoration:none;font-size:14px;font-weight:600}
.evlp-subnav a:hover{background:#dcfce7;color:#14532d}
.evlp-hero{display:grid;grid-template-columns:1fr 360px;gap:24px;align-items:start;padding:28px 0}
.evlp-hero h1{font-size:36px;line-height:1.15;margin:0 0 12px;color:#14532d}
.evlp-ticks{display:flex;gap:14px;flex-wrap:wrap;margin:14px 0;font-weight:600;font-size:14px}
.evlp-pay{display:inline-block;background:#fff;border:1px solid var(--line);border-radius:6px;padding:2px 8px;font-size:12px;font-weight:700;margin:0 2px}
.evlp-price-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.evlp-tabs{display:flex;gap:6px}
.evlp-tabs button{flex:1;border:1px solid var(--line);background:#f8fafc;border-radius:10px;padding:8px 4px;font-size:13px;font-weight:700;cursor:pointer}
.evlp-tabs button.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.evlp-save-badge{display:inline-block;background:#dc2626;color:#fff;font-weight:800;border-radius:8px;padding:4px 10px;margin-top:14px}
.evlp-big-price{font-size:34px;font-weight:800;margin:2px 0;color:#14532d}
.evlp-big-price.sm{font-size:26px}
.evlp-cta{width:100%;margin-top:10px}
.evlp-section{padding:28px 0}
.evlp-section h2{font-size:26px;margin:0 0 16px;color:#14532d}
.evlp-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.evlp-exam-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}
.evlp-badges{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.evlp-badge{font-size:11px;font-weight:800;border-radius:6px;padding:3px 8px}
.evlp-badge.green{background:#dcfce7;color:#166534}
.evlp-badge.amber{background:#fef3c7;color:#92400e}
.evlp-bonus{color:#166534;font-weight:700;font-size:14px}
.evlp-benefits{background:linear-gradient(90deg,#001a38,#002855);color:#fff;border-radius:16px;padding:22px;display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}
.evlp-benefit-items{display:flex;gap:18px;flex-wrap:wrap;font-weight:600}
.evlp-grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.evlp-mini-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;text-align:center}
.evlp-mini-ico{font-size:30px;display:block;margin-bottom:8px}
.evlp-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.evlp-step{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;text-align:center}
.evlp-step-num{display:inline-flex;width:36px;height:36px;border-radius:50%;background:var(--brand);color:#fff;font-weight:800;align-items:center;justify-content:center;margin-bottom:8px}
.evlp-journey{background:var(--brand-light);border:1px dashed var(--brand);border-radius:20px;padding:28px;display:flex;justify-content:space-between;gap:24px;align-items:center;flex-wrap:wrap;margin:8px 0}
.evlp-ticket{display:flex;align-items:stretch;background:#14532d;color:#fff;border-radius:14px;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.15)}
.evlp-ticket-left{padding:18px;border-right:2px dashed rgba(255,255,255,.4);display:flex;flex-direction:column;justify-content:center;gap:4px}
.evlp-ticket-code{padding:18px;display:flex;align-items:center;font-family:monospace;font-size:18px;letter-spacing:1px}
.evlp-ticket-right{padding:18px;background:#166534;display:flex;flex-direction:column;justify-content:center;gap:4px;text-align:right}
.evlp-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.evlp-why{display:flex;gap:14px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}
.evlp-why-num{font-size:28px;font-weight:800;color:#bbf7d0;line-height:1}
.evlp-final{background:linear-gradient(160deg,#14532d,#166534);color:#fff;border-radius:20px;padding:32px;text-align:center;margin:8px 0}
.evlp-final h2{color:#fff;margin:0 0 16px}
.evlp-testi{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}
.evlp-testi-body{flex:1;text-align:center}
.evlp-quote{font-size:18px;margin:0 0 8px}
.evlp-enquiry{max-width:720px;margin:0 auto}
@media(max-width:860px){
  .evlp-hero{grid-template-columns:1fr}
  .evlp-cards,.evlp-grid4,.evlp-steps{grid-template-columns:1fr 1fr}
  .evlp-grid2{grid-template-columns:1fr}
  .evlp-ticket{flex-direction:column}
  .evlp-ticket-left{border-right:0;border-bottom:2px dashed rgba(255,255,255,.4)}
}
@media(max-width:520px){
  .evlp-cards,.evlp-grid4,.evlp-steps{grid-template-columns:1fr}
  .evlp-hero h1{font-size:28px}
}

/* ============ B2B PARTNER PORTAL (v3.7.19) ============ */
.b2b-wrap{max-width:960px;margin:0 auto;padding:20px 16px 60px}
.b2b-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.b2b-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.b2b-nav button{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;color:#334155;border-radius:999px;padding:8px 14px;font-size:14px;cursor:pointer}
.b2b-nav button .ico .ico-svg{width:18px;height:18px;vertical-align:-3px}
.b2b-nav button.active{background:var(--brand);border-color:var(--brand);color:#fff}
.b2b-body .card{margin-bottom:14px}
.b2b-auth-card{max-width:520px;margin:24px auto}
.b2b-big{font-size:30px;font-weight:800;line-height:1.2}
.b2b-stats .card{margin-bottom:0}
.b2b-plan-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.b2b-plan-opt{display:flex;gap:10px;border:1px solid var(--line);border-radius:12px;padding:12px;cursor:pointer;background:#fff}
.b2b-plan-opt input{margin-top:4px;width:18px;height:18px;flex:none;padding:0;accent-color:#16a34a}
.b2b-plan-opt:has(input:checked){border-color:#16a34a;box-shadow:0 0 0 2px rgba(22,163,74,.2)}
.b2b-quote{display:flex;gap:24px;flex-wrap:wrap;margin-top:12px;padding:12px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px}
.b2b-total{font-size:20px}
.b2b-save{color:#16a34a}
/* v3.7.19: mobile logout row at the bottom of the More sheet — separated
   from the nav rows and red, so it reads as an action, not a section. */
@media (max-width:768px){
  .more-list button.more-logout{border-top:1px solid var(--line);margin-top:8px;padding-top:14px;color:#b91c1c}
  .b2b-quote{gap:14px}
}
/* v3.7.20: Exam Center Finder — Leaflet map, two-tab filters, reference
   pin (red dot) and preparation-centre pins (green). The map needs an
   explicit height or Leaflet renders a 0px box. */
.ct-map{height:420px;border-radius:12px;border:1px solid var(--line);z-index:1}
.ct-map-sm{height:280px}
.ct-map.ct-armed{cursor:crosshair}
.ct-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}
.ct-filters select{min-width:150px;flex:1}
.ct-filters .btn.active{background:var(--brand);border-color:var(--brand);color:#fff}
.ct-row:hover{background:#f8fafc}
.ct-popup{font-size:13px;line-height:1.5}
.ct-popup .pill{margin:2px 2px 0 0}
.ct-ref-icon{background:transparent;border:0}
.ct-ref-dot{display:block;width:18px;height:18px;border-radius:50%;background:#dc2626;border:3px solid #fff;box-shadow:0 0 0 2px #dc2626,0 2px 6px rgba(0,0,0,.4)}
.ct-prep-icon{background:transparent;border:0;text-align:center}
.ct-prep-pin{color:#16a34a;font-size:30px;line-height:32px;text-shadow:0 1px 3px rgba(0,0,0,.4)}
@media (max-width:768px){
  .ct-map{height:320px}
  .ct-map-sm{height:240px}
  .ct-filters select{min-width:120px}
}

/* ---------- 1-on-1 tutoring (v3.7.22) ---------- */
.ooo-avatar{width:52px;height:52px;flex:none;border-radius:50%;background:var(--brand-light,#dcfce7);color:var(--brand,#15803d);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px}
.ooo-service{margin-top:10px;padding:12px;border:1px solid var(--line,#e2e8f0);border-radius:10px}
.ooo-booking{padding:10px;border:1px solid var(--line,#e2e8f0);border-radius:10px;margin-top:8px}

/* ===== v3.7.25 AI (merged from pte-v3725/css/ai.css) ===== */
/* v3.7.25 AI features (Features 2, 3, 4) — merged into styles.css by the
   coordinator. Navy accent to match the OwlVerse PTE brand. */
.ai25-box{border:1px solid #bbf7d0;background:#f0fdf4;border-radius:10px;padding:12px 14px;margin-top:12px}
.ai25-inactive{border-color:#e2e8f0;background:#f8fafc}
.ai25-score{font-size:26px;font-weight:800;color:#15803d;line-height:1}
.ai25-pron-host{margin-top:4px}
.ai25-topics{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.ai25-topic{border:1px solid #d1d5db;background:#fff;border-radius:999px;padding:7px 14px;font-size:14px;cursor:pointer}
.ai25-topic.active{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:700}
.ai25-chat{border:1px solid #e2e8f0;border-radius:10px;padding:12px;max-height:380px;overflow-y:auto;background:#fff;display:flex;flex-direction:column;gap:10px}
.ai25-msg{max-width:88%;padding:10px 12px;border-radius:12px;line-height:1.5}
.ai25-msg.user{align-self:flex-end;background:#dcfce7;border-bottom-right-radius:4px}
.ai25-msg.ai{align-self:flex-start;background:#f1f5f9;border-bottom-left-radius:4px}
.ai25-input-row{display:flex;gap:8px;margin-top:10px}
.ai25-input-row input{flex:1}
@media (max-width:480px){
  .ai25-msg{max-width:95%}
  .ai25-chat{max-height:300px}
}
/* ===== /v3.7.25 AI ===== */

/* ===== v3.7.25 ENGAGE (merged from pte-v3725/css/engage.css) ===== */
/* OwlVerse PTE v3.7.25 ENGAGE — Features 5, 6, 7 styles.
   Merged into public/styles.css by the coordinator. All classes are
   prefixed fl25 / rem25 / lb25 so they cannot clash with other agents'
   v3.7.25 work. Navy primary (#002855) matches the app; green stays as
   the secondary accent. */

/* ---- Feature 5: vocabulary flashcards ---- */
.fl25-bar{display:flex;align-items:center;gap:12px;margin:12px 0 8px}
.fl25-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0 12px}
.fl25-card{position:relative;min-height:220px;border:2px solid #bbf7d0;border-radius:16px;background:linear-gradient(135deg,#f0fdf4,#dcfce7);cursor:pointer;overflow:hidden}
.fl25-face{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px 20px;text-align:center;transition:opacity .18s ease,transform .18s ease}
.fl25-back{opacity:0;transform:rotateY(90deg);pointer-events:none}
.fl25-card.flipped .fl25-front{opacity:0;transform:rotateY(-90deg);pointer-events:none}
.fl25-card.flipped .fl25-back{opacity:1;transform:rotateY(0);pointer-events:auto}
.fl25-word{font-size:30px;font-weight:700;color:#14532d;line-height:1.2}
.fl25-word-sm{font-size:22px}
.fl25-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.fl25-actions .btn{flex:1;min-width:140px}
.fl25-empty{margin-top:12px}

/* ---- Feature 6: study reminders ---- */
.rem25-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:linear-gradient(135deg,#fef9c3,#fef08a);border:1px solid #fde047;border-radius:12px;padding:12px 16px;margin-top:12px;font-weight:500}
.rem25-banner-btns{display:flex;gap:8px;flex-wrap:wrap}

/* ---- Feature 7: student leaderboard ---- */
.lb25-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin-top:12px}
.lb25-stat{display:flex;flex-direction:column;gap:2px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px}
.lb25-stat b{font-size:18px}
.lb25-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.lb25-badge{background:#f0fdf4;border-color:#bbf7d0}
.lb25-table{width:100%;border-collapse:collapse}
.lb25-table th,.lb25-table td{padding:10px 8px;text-align:left;border-bottom:1px solid #e2e8f0}
.lb25-table tr.lb25-me{background:#f0fdf4}
@media (max-width:560px){
  .fl25-word{font-size:24px}
  .lb25-table th:nth-child(5),.lb25-table td:nth-child(5){display:none}
}
/* ===== /v3.7.25 ENGAGE ===== */

/* ===== v3.7.25 MOCKS (merged from pte-v3725/css/mocks.css) ===== */
/* v3.7.25 MOCKS — mobile Mock tab row (Feature 1).
   The tab labels are short now (Full / Sectional / Timed — see renderMocks
   in public/app.js), so all three fit at 390px without scrolling. These
   rules are a safety net for narrower screens or longer future labels
   (e.g. if the labels are ever translated): the tab strip scrolls on its
   own if it ever overflows, and the buttons never shrink or wrap.
   Coordinator: merge into public/styles.css. */
@media (max-width:640px){
  .mock-sub .subtabs{overflow-x:auto;scrollbar-width:none;max-width:100%}
  .mock-sub .subtabs::-webkit-scrollbar{display:none}
  .mock-sub .subtabs button{flex:none}
}
@media (max-width:360px){
  .mock-sub .subtabs button{padding:8px 9px}
}
/* ===== /v3.7.25 MOCKS ===== */

/* ===== v3.7.25 LANDING (merged from pte-v3725/css/landing.css) ===== */
/* ==========================================================================
   v3.7.25 LANDING (Features 8 + 9) — merged into styles.css by the
   coordinator (merge-landing.mjs). New landing sections reuse the existing
   .lp-* classes where possible; only the genuinely new components live
   here. Nothing here changes the app shell, auth or admin views.
   ========================================================================== */

/* SEO heading hierarchy: landing card/item titles are <h3> now (they were
   <b>). Reset them to the exact look the <b> titles had. */
.lp-feat h3{font-size:15px;line-height:1.4;margin:0;font-weight:600}
.lp-test h3{font-size:16px;line-height:1.35;margin:0;font-weight:600}
.lp-step h3{font-size:15px;line-height:1.4;margin:0;font-weight:600;display:block}

/* Stats: 6 stats (questions, predictions, types, mocks, centres, hacks)
   in a 3x2 grid on desktop; 2 cols on tablet, 1 col on phones. */
.lp25-stats6{grid-template-columns:repeat(3,1fr);row-gap:22px}

/* Mock breakdown cards (lpMocks): big count + title + desc. */
.lp25-mocks{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.lp25-mock{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px 20px;box-shadow:var(--sh-sm);text-align:center;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.lp25-mock:hover{transform:translateY(-2px);box-shadow:var(--sh-md);border-color:#bbf7d0}
.lp25-mock-n{display:block;font-size:40px;font-weight:700;line-height:1;color:var(--brand-dark);margin-bottom:10px}
.lp25-mock h3{font-size:16px;line-height:1.35;margin:0 0 6px;font-weight:600}
.lp25-mock p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}

/* AI section: status badge + honesty note. The badge is a plain pill;
   .off uses the muted treatment (AI not enabled yet). */
.lp25-ai-badgewrap{text-align:center;margin:-14px 0 24px}
.lp25-ai-badge{display:inline-block;padding:5px 14px;border-radius:999px;font-size:12px;font-weight:600;background:#dcfce7;color:#166534}
.lp25-ai-badge.off{background:#f1f5f9;color:#475569}
.lp25-ai-note{max-width:720px;margin:24px auto 0;text-align:center;color:var(--muted);font-size:13px;line-height:1.6}

/* Beyond section: 2x2 grid (4 cards) instead of the 3-col feature grid. */
.lp25-grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.lp25-cardlink{display:inline-block;margin-top:10px;font-size:13px;font-weight:600}

/* Exam-day guide (Feature 8, PTE Guide tab): checklist lists + note. */
.gd25-list{margin:6px 0 16px;padding-left:20px}
.gd25-list li{margin-bottom:7px;line-height:1.55;font-size:14px}
.gd25-sub{margin:14px 0 4px;font-size:14px}
.gd25-note{margin-top:18px;padding:12px 14px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;color:#166534;font-size:13px;line-height:1.6}
/* 6 guide tabs squeeze on phones — smaller padding keeps them on one row. */
@media(max-width:640px){
  .gd25-tabs button{font-size:12px;padding:8px 3px}
  .lp25-stats6{grid-template-columns:repeat(2,1fr)}
  .lp25-mocks{grid-template-columns:1fr}
  .lp25-grid2{grid-template-columns:1fr}
}
@media(max-width:900px){
  .lp25-mocks{grid-template-columns:repeat(2,1fr)}
}
[dir="rtl"] .lp25-mocks,[dir="rtl"] .lp25-grid2,[dir="rtl"] .lp25-stats6{direction:rtl}
/* ===== /v3.7.25 LANDING ===== */

/* ===== v3.7.27 SOCIAL (Study Buddies) ===== */
/* Per-section coloured header: cyan-600 #0891b2 (CONTRACTS.md). Appended
   here rather than editing the section-colour block above — same
   specificity, later in the file, so these rules win for buddies. */
#appView[data-module="buddies"] .topbar h2{color:#0891b2}
#appView[data-module="buddies"] .topbar{border-bottom:3px solid #22d3ee}
#appView[data-module="buddies"] .card>b:first-child,#appView[data-module="buddies"] .card>div:first-child>b:first-child{color:#0891b2}
.soc-tabs button.active{color:#0891b2}
.soc-sub{font-weight:600;font-size:14px;margin:16px 0 4px}
.soc-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #f1f5f9}
.soc-row-btns{display:flex;gap:6px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}
.soc-thread{cursor:pointer}
.soc-thread:hover{background:#f8fafc}
.soc-card{border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px;margin-top:10px}
.soc-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.soc-score{text-align:right;font-weight:700;color:#0891b2;font-size:16px;line-height:1.2;white-space:nowrap}
.soc-pills{display:flex;gap:6px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}
.soc-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.chip.soc-reason{background:#ecfeff;color:#155e75;border-color:#a5f3fc}
.soc-msgs{max-height:420px;overflow-y:auto;border:1px solid #e2e8f0;border-radius:12px;padding:12px;margin-top:12px;background:#f8fafc;display:flex;flex-direction:column;gap:10px}
.soc-msg{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:8px 12px;max-width:85%;align-self:flex-start}
.soc-msg.mine{align-self:flex-end;background:#ecfdf5;border-color:#a7f3d0}
.soc-msg p{margin:4px 0 0;line-height:1.5;font-size:14px;word-break:break-word}
.soc-msg-head{display:flex;justify-content:space-between;gap:10px;font-size:12px}
.soc-mini-link{border:0;background:none;color:#0891b2;font-size:12px;padding:0;cursor:pointer;margin-top:4px}
.soc-send{display:flex;gap:8px;margin-top:12px}
.soc-send input{flex:1}
.soc-report-form{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:10px 12px;margin-top:10px}
@media(max-width:640px){
  .soc-msg{max-width:95%}
  .soc-row{flex-wrap:wrap}
  .soc-score{font-size:14px}
  /* 5 social tabs: wrap to two rows on narrow screens instead of squeezing. */
  .soc-tabs{flex-wrap:wrap}
  .soc-tabs button{flex:1 1 30%}
}
[dir="rtl"] .soc-msg.mine{align-self:flex-start}
[dir="rtl"] .soc-msg{align-self:flex-end}
/* ===== /v3.7.27 SOCIAL ===== */

/* ===== v3.8.1 TUTORING EXPANSION ===== */
/* Partner portal — left-sidebar shell (reuses the admin .dash-layout /
   .dash-sidebar / .dash-nav classes; these rules are partner-specific). */
.pt-shell{max-width:1240px;margin:0 auto;padding:16px}
.pt-shell .dash-sidebar{width:230px}
.pt-academy{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:12px;padding:12px;margin-bottom:4px}
.pt-academy b{display:block;font-size:14px;line-height:1.3}
.pt-academy span{display:block;font-size:12px;color:#64748b;margin-top:2px}
.pt-academy img{width:44px;height:44px;border-radius:10px;object-fit:cover;background:#fff;border:1px solid #a7f3d0;float:left;margin-right:10px}
.pt-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:12px}
.pt-kpi{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px}
.pt-kpi .lbl{font-size:12px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.pt-kpi .val{font-size:26px;font-weight:800;line-height:1.2;margin-top:4px}
.pt-kpi .sub{font-size:12px;color:#64748b;margin-top:2px}
.pt-cols{display:grid;grid-template-columns:1.4fr 1fr;gap:12px;align-items:start}
.pt-bar{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:6px 0 2px}
.pt-bar i{display:block;height:100%;background:#16a34a;border-radius:999px}
.pt-bar.amber i{background:#f59e0b}
.pt-claim{display:inline-flex;align-items:center;gap:8px}
.pt-menu-badge{background:#dc2626;color:#fff;font-size:11px;font-weight:700;line-height:1;padding:4px 7px;border-radius:999px;flex:none}
/* Service picker (registration + settings): track groups + cards. */
.tut81-track{margin-top:16px}
.tut81-track>h4{margin:0 0 8px;font-size:14px}
.tut81-track>h4 .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:0}
.tut81-svc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}
.tut81-svc{display:flex;gap:10px;align-items:flex-start;border:1.5px solid var(--line);border-radius:12px;padding:10px 12px;cursor:pointer;background:#fff}
.tut81-svc input{margin-top:3px;width:16px;height:16px;flex:none;accent-color:#16a34a}
.tut81-svc:has(input:checked){border-color:#16a34a;background:#f0fdf4}
.tut81-svc b{font-size:13px;line-height:1.3;display:block}
.tut81-svc span{font-size:12px;color:#64748b;line-height:1.35;display:block;margin-top:2px}
.tut81-steps{display:flex;gap:6px;margin:0 0 16px}
.tut81-steps i{flex:1;height:6px;border-radius:999px;background:#e2e8f0}
.tut81-steps i.on{background:var(--brand)}
/* Tutor profile + badges (student side). */
.tut81-photo{width:72px;height:72px;border-radius:50%;object-fit:cover;flex:none;background:#e2e8f0;border:1px solid var(--line)}
.tut81-photo-lg{width:110px;height:110px;border-radius:50%;object-fit:cover;background:#e2e8f0;border:1px solid var(--line)}
.tut81-badge{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;border:1px solid transparent}
.tut81-badge .ico-svg{width:13px;height:13px}
.tut81-badge.verified{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.tut81-badge.toprated{background:#fef9c3;color:#854d0e;border-color:#fde68a}
.tut81-badge.experienced{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.tut81-rating{color:#d97706;font-weight:700}
.tut81-banner{width:100%;height:140px;object-fit:cover;border-radius:12px;display:block;background:#e2e8f0}
.tut81-banner-ph{width:100%;height:140px;border-radius:12px;background:linear-gradient(135deg,#0d9488,#16a34a);color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;text-align:center;padding:12px}
.tut81-banner-ph b{font-size:16px}
.tut81-banner-ph span{font-size:12px;opacity:.9}
.tut81-stars{font-size:22px;letter-spacing:2px;cursor:pointer;color:#d1d5db}
.tut81-stars .on{color:#f59e0b}
.tut81-review{border-top:1px solid #f1f5f9;padding:10px 0}
.tut81-review:first-child{border-top:0}
/* My Purchases — flashing quick-access buttons (NEW badge until clicked). */
@keyframes tut81flash{0%,100%{box-shadow:0 0 0 0 rgba(22,163,74,.45)}50%{box-shadow:0 0 0 7px rgba(22,163,74,0)}}
.tut81-flash{animation:tut81flash 1.6s ease-in-out infinite}
.tut81-new{position:absolute;top:-8px;right:-8px;background:#dc2626;color:#fff;font-size:10px;font-weight:800;line-height:1;padding:4px 6px;border-radius:999px}
.tut81-unread{border-left:3px solid #16a34a;background:#f0fdf4;padding-left:10px;border-radius:6px}
.tut81-purch-btn{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;border:1.5px solid var(--line);background:#fff;border-radius:14px;padding:14px 8px;font-size:13px;font-weight:600;color:#334155;cursor:pointer;text-align:center}
.tut81-purch-btn .ico-svg{width:26px;height:26px;color:#0d9488}
.tut81-purch-btn:hover{border-color:#0d9488}
.tut81-purch-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.tut81-credit-card{background:linear-gradient(135deg,#ecfdf5,#f0fdfa);border:1px solid #a7f3d0}
/* Admin: partner detail + queues. */
.tut81-detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:10px 0}
.tut81-tree{border:1px solid var(--line);border-radius:12px;padding:12px;background:#f8fafc}
.tut81-tree ul{margin:6px 0 0 16px;padding:0;list-style:none}
.tut81-tree li{padding:3px 0;font-size:13px}
.tut81-tree li:before{content:"— ";color:#94a3b8}
.tut81-pager{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}
.tut81-bulkbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:10px 12px;margin:10px 0}
.tut81-filters{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.tut81-filters input,.tut81-filters select{max-width:220px}
@media(max-width:900px){
  .pt-kpis{grid-template-columns:repeat(2,1fr)}
  .pt-cols{grid-template-columns:1fr}
  .tut81-purch-grid{grid-template-columns:repeat(3,1fr)}
  .tut81-detail-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .tut81-purch-grid{grid-template-columns:repeat(2,1fr)}
  .pt-kpis{grid-template-columns:1fr 1fr}
}
/* ===== /v3.8.1 TUTORING EXPANSION ===== */

/* ==========================================================================
   OwlVerse Phase 2 (plan §11.2 + §11.4) — hub-linked service cards, header
   BACK + product switcher. The switcher mirrors the hub's own dropdown
   (owlverse-designs/styles.css .ov-nav-* / .ov-menu / .ov-sw-*) in PTE
   navy; the PLATFORMS list lives in app.js (OV_PLATFORMS) and must stay
   identical to the hub's assets/owlverse.js PLATFORMS (sync point noted
   there). Signed-out users never see these: they live inside #appView
   (student topbar) and the signed-in portal shells only.
   ========================================================================== */
/* --- Hub-linked service card (H1–H5): service summary + hub CTAs. --- */
.ov-hub-card{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;background:linear-gradient(135deg,#e8eef6,#f4faf5);border:1px solid #bcd0e8;border-radius:14px;padding:14px 16px;margin:12px 0}
.ov-hub-card b{font-size:15px}
.ov-hub-card p{margin:4px 0 0}
.ov-hub-ctas{display:flex;gap:8px;flex-wrap:wrap;flex:none}
.ov-hub-ctas .btn{white-space:nowrap}
/* --- Header BACK + product switcher (student topbar). --- */
.top-left{display:flex;align-items:center;gap:12px;min-width:0}
.ov-back{display:inline-flex;align-items:center;gap:4px;color:var(--brand);font-weight:500;font-size:13px;white-space:nowrap;padding:8px 10px;border-radius:999px}
.ov-back:hover{background:var(--brand-light);text-decoration:none}
.ov-back-short{display:none}
.ov-nav-item{position:relative}
.ov-nav-btn{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;font-weight:500;font-size:13px;color:var(--brand);background:#fff;border:1.5px solid var(--line)}
.ov-nav-btn:hover{border-color:var(--brand);background:var(--brand-light)}
.ov-nav-btn[aria-expanded="true"]{border-color:var(--brand);background:var(--brand-light)}
.ov-caret{font-size:10px;color:var(--muted)}
.ov-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:230px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--sh-md);padding:6px;z-index:80}
.ov-menu a,.ov-menu button{display:block;width:100%;text-align:left;padding:10px 12px;border-radius:9px;font-size:14px;font-weight:500;color:var(--ink);background:none;border:0;cursor:pointer}
.ov-menu a:hover,.ov-menu button:hover{background:var(--brand-light);text-decoration:none}
.ov-menu button[aria-current="page"]{background:var(--brand-light);color:var(--brand-dark)}
.ov-sw-menu{right:0;left:auto;max-height:70vh;overflow-y:auto}
.ov-sw-note{display:block;font-size:11px;color:var(--muted);font-weight:400}
.ov-sw-sep{height:1px;background:var(--line);margin:6px 4px}
/* BACK in portal dash-topbars (partner/tutor/admin) + consultant b2b-nav. */
.dash-topbar .ov-back{padding:6px 10px}
.b2b-nav .ov-back{display:inline-flex;align-items:center;padding:8px 10px;color:var(--brand)}
@media(max-width:768px){
  /* The mobile topbar is a solid colour bar (navy by default, per-module
     colours otherwise) — BACK + switcher go white-on-colour, and the
     exam switch gets the same treatment (it was dark-on-dark before). */
  .topbar .ov-back{color:#fff}
  .topbar .ov-back:hover{background:rgba(255,255,255,.18)}
  .topbar .ov-nav-btn{color:#fff;background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.35)}
  .topbar .ov-nav-btn:hover,.topbar .ov-nav-btn[aria-expanded="true"]{background:rgba(255,255,255,.28);border-color:rgba(255,255,255,.5)}
  .topbar .ov-caret{color:rgba(255,255,255,.85)}
  .topbar .exam-switch button{color:#fff}
  .topbar .exam-switch button.active{background:rgba(255,255,255,.28)}
  .ov-hub-card{flex-direction:column}
  .ov-hub-ctas .btn{min-height:44px}
}
@media(max-width:560px){
  .ov-back-long{display:none}
  .ov-back-short{display:inline}
  .top-left{gap:6px}
  .ov-nav-btn{padding:8px 10px}
  .ov-sw-label{display:none}
}
