/* =====================================================================
   assets/pages-ui.css — the "Classic" look of the list pages (6 Nov 2026)
   =====================================================================
   Used by the page bodies in views/classic/*.php (Listening, Reading,
   Writing, Speaking, Grammar, Word Library shelves, Library, Documentaries,
   Games, Leaderboard, Profile, Mock). The top menu and the phone bar come
   from the site look (includes/look.php); this file is only the page body.

   Copied from the approved preview (IELTS-Planet-Dashboard-Style.html),
   which copies assets/student-ui.css: the same colours, cards, rings,
   numbers, labels and motion. Every class starts with "cp-" so nothing
   here can touch another page. Everything sits inside <div class="cp">.

   Day = .cp            Night = html.dark .cp (the site's one night rule)
   Skills: .L Listening (cyan) .R Reading (violet) .W Writing (pink)
           .S Speaking (amber) .M gold .G green (grammar) .B brand violet
   Motion: only transform/opacity; "reduce motion" turns it all off.
   ===================================================================== */

/* ── 1. DAY tokens ──────────────────────────────────────────────────── */
.cp {
  --bg: #f4f3fb; --card: #ffffff; --glass: rgba(255,255,255,.82);
  --line: #e4e2f0; --line2: #edecf5;
  --ink: #12102e; --body: #45436a; --mute: #6f6d8f;
  --brand: #6d4ee0; --brand-dk: #5b3ed0; --brand-ink: #4c2fb8; --brand-soft: #ece7fd;
  --gold: #ffc947; --gold-fill: #f0b429; --gold-ink: #1a1400; --gold-soft: #fff3d1; --gold-txt: #8a5b00;
  --l: #0ea5d9; --l-soft: #e0f6ff; --l-ink: #006f94;
  --r: #7c5ce6; --r-soft: #ede8ff; --r-ink: #5235b8;
  --w: #db2777; --w-soft: #ffe4f1; --w-ink: #a3155a;
  --s: #d97706; --s-soft: #fff1dc; --s-ink: #8a4b00;
  --ok: #0f9d6e; --ok-soft: #e0f7ee; --bad: #d12d4a; --bad-soft: #ffe3e8;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18,16,46,.05), 0 8px 24px -18px rgba(18,16,46,.25);
  --shadow-up: 0 16px 36px -14px rgba(18,16,46,.28);
  --num-font: Anton, Impact, "Arial Narrow Bold", sans-serif;
  --lab-font: Orbitron, "Segoe UI", Inter, sans-serif;
  --sub: var(--bg); --hero-bg: var(--card); --btn-ink: #fff; --ring-track: var(--line2);
  --gold-num: var(--gold-txt); --l-num: var(--l-ink); --r-num: var(--r-ink); --w-num: var(--w-ink); --s-num: var(--s-ink); --ok-num: var(--ok);
  --num-glow: none; --sky: none; --scrim: rgba(4,6,20,.5); --chart-bg: #ffffff;
  color-scheme: light;
}
/* ── 2. NIGHT tokens ───────────────────────────────────────────────── */
html.dark .cp {
  --bg: #070b1c; --card: #0f1430; --glass: rgba(10,14,36,.74);
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.05);
  --ink: #f2f3ff; --body: #c3c7e6; --mute: #8b90b8;
  --brand: #a78bfa; --brand-dk: #8f6ff5; --brand-ink: #cdbcff; --brand-soft: rgba(167,139,250,.14);
  --gold: #ffc947; --gold-fill: #ffc947; --gold-ink: #1a1400; --gold-soft: rgba(255,201,71,.13); --gold-txt: #ffd978;
  --l: #38d6ff; --l-soft: rgba(56,214,255,.13); --l-ink: #9ae9ff;
  --r: #a78bfa; --r-soft: rgba(167,139,250,.14); --r-ink: #cdbcff;
  --w: #f472b6; --w-soft: rgba(244,114,182,.14); --w-ink: #ffb0d6;
  --s: #ffb347; --s-soft: rgba(255,179,71,.14); --s-ink: #ffd08c;
  --ok: #34d399; --ok-soft: rgba(52,211,153,.14); --bad: #fb7185; --bad-soft: rgba(251,113,133,.14);
  --shadow: 0 1px 0 rgba(255,255,255,.02), 0 10px 30px -18px rgba(0,0,0,.8);
  --shadow-up: 0 18px 40px -16px rgba(0,0,0,.85);
  --sub: rgba(255,255,255,.03);
  --hero-bg: linear-gradient(135deg, #121840 0%, #0f1430 55%, #0c1130 100%);
  --btn-ink: #0a0820; --ring-track: rgba(255,255,255,.1);
  --gold-num: #ffc947; --l-num: #38d6ff; --r-num: #a78bfa; --w-num: #f472b6; --s-num: #ffb347; --ok-num: #34d399;
  --num-glow: 0 0 24px rgba(255,201,71,.35);
  --sky: radial-gradient(ellipse 60% 40% at 15% 0%, rgba(167,139,250,.14), transparent 70%), radial-gradient(ellipse 50% 35% at 90% 5%, rgba(56,214,255,.10), transparent 70%), radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.55), transparent 60%), radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.4), transparent 60%), radial-gradient(1.5px 1.5px at 230px 40px, rgba(255,255,255,.5), transparent 60%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  --scrim: rgba(4,6,20,.66); --chart-bg: #000000;
  color-scheme: dark;
}

/* ── 3. BASE ───────────────────────────────────────────────────────── */
.cp {
  --gl: max(16px, env(safe-area-inset-left)); --gr: max(16px, env(safe-area-inset-right));
  background-color: var(--bg); background-image: var(--sky);
  background-size: 100% 900px, 100% 700px, 300px 260px, 300px 260px, 300px 260px, 56px 56px, 56px 56px;
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat;
  color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.5;
  padding: 0 var(--gr) 0 var(--gl); min-height: 70vh; overflow-x: clip; text-align: left;
}
.cp *, .cp *::before, .cp *::after { box-sizing: border-box; }
.cp [hidden] { display: none !important; }
.cp a { color: var(--brand); }
.cp button, .cp input, .cp select { font: inherit; }
.cp h1, .cp h2, .cp h3 { letter-spacing: -.01em; color: var(--ink); }
.cp p { margin: 0; }
.cp img { max-width: 100%; }
.cp :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cp .cp-ic { flex: none; }
.cp .cp-lab { font-family: var(--lab-font); font-weight: 700; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.cp .cp-num { font-family: var(--num-font); font-weight: 400; letter-spacing: .01em; line-height: 1; font-variant-numeric: tabular-nums; }
.cp .cp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 4. LAYOUT + CARDS ─────────────────────────────────────────────── */
.cp-main { max-width: 1200px; margin: 0 auto; padding: 24px 0 56px; display: flex; flex-direction: column; gap: 18px; }
.cp-g2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.cp-g2 > * { min-width: 0; }
.cp-g2.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cp-g2, .cp-g2.even { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cp-main { padding: 14px 0 40px; gap: 14px; } }
.cp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
@media (max-width: 760px) { .cp-card { padding: 16px; } }
.cp-card h2 { margin: 0; font-size: 17px; font-weight: 800; }
.cp h2.cp-lab { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; margin: 0; }
.cp .cp-sub { margin: 4px 0 14px; font-size: 13.5px; color: var(--mute); }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.cp .cp-link { font-weight: 700; font-size: 13.5px; text-decoration: none; color: var(--brand); }
.cp .cp-link:hover { text-decoration: underline; }
.cp-lift { transition: transform .2s ease, box-shadow .2s ease; }
.cp-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.cp .cp-foot { text-align: center; color: var(--mute); font-size: 12.5px; margin: 6px 0 0; }
.cp .cp-foot a { font-weight: 700; }
.cp-seclab { padding-left: 2px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cp-seclab span:last-child { font-family: Inter, sans-serif; letter-spacing: 0; text-transform: none; font-size: 12.5px; font-weight: 600; }
.cp-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* buttons, chips, pills */
.cp .cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--brand); color: var(--btn-ink); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; transition: transform .15s, background-color .15s, filter .15s; white-space: nowrap; }
.cp .cp-btn:hover { background: var(--brand-dk); transform: translateY(-2px); }
.cp .cp-btn.sm { min-height: 38px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.cp .cp-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cp .cp-btn.ghost:hover { background: var(--brand-soft); }
.cp .cp-btn.gold { background: var(--gold-fill); color: var(--gold-ink); }
.cp .cp-btn.gold:hover { filter: brightness(1.05); background: var(--gold-fill); }
.cp .cp-btn.k { background: var(--k); color: var(--btn-ink); }
.cp .cp-btn.k:hover { filter: brightness(1.08); }
.cp .cp-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--body); font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; flex: none; }
.cp .cp-chip:hover { border-color: var(--brand); }
.cp .cp-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cp .cp-chip .n { opacity: .7; font-weight: 600; }
.cp .cp-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--brand)); flex: none; }
.cp-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-width: 0; }
.cp-chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cp-chips.scroll::-webkit-scrollbar { display: none; }
.cp .cp-band { display: inline-block; min-width: 46px; text-align: center; font-weight: 800; border-radius: 10px; padding: 3px 9px; font-size: 14px; font-variant-numeric: tabular-nums; }
.cp .cp-band.hi { background: var(--ok-soft); color: var(--ok); } .cp .cp-band.mid { background: var(--l-soft); color: var(--l-ink); } .cp .cp-band.lo { background: var(--s-soft); color: var(--s-ink); }
.cp .cp-sk { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; background: var(--ks); color: var(--ki); }
.cp .cp-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); vertical-align: 1px; }
.cp .cp-tag.gold { background: var(--gold-soft); color: var(--gold-txt); }
.cp .cp-tag.bad { background: var(--bad-soft); color: var(--bad); }
.cp .cp-tag.ok { background: var(--ok-soft); color: var(--ok); }

/* skill keys: --k colour, --ks soft, --ki ink, --kn big number */
.cp .L { --k: var(--l); --ks: var(--l-soft); --ki: var(--l-ink); --kn: var(--l-num); }
.cp .R { --k: var(--r); --ks: var(--r-soft); --ki: var(--r-ink); --kn: var(--r-num); }
.cp .W { --k: var(--w); --ks: var(--w-soft); --ki: var(--w-ink); --kn: var(--w-num); }
.cp .S { --k: var(--s); --ks: var(--s-soft); --ki: var(--s-ink); --kn: var(--s-num); }
.cp .M { --k: var(--gold-fill); --ks: var(--gold-soft); --ki: var(--gold-txt); --kn: var(--gold-num); }
.cp .G { --k: var(--ok); --ks: var(--ok-soft); --ki: var(--ok); --kn: var(--ok-num); }
.cp .B { --k: var(--brand); --ks: var(--brand-soft); --ki: var(--brand-ink); --kn: var(--brand); }

/* ── 5. HERO ("command deck") ───────────────────────────────────────── */
.cp-hero { position: relative; overflow: hidden; background: var(--hero-bg); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; box-shadow: var(--shadow); }
.cp-hero.one { grid-template-columns: 1fr; }
.cp-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,201,71,.16), transparent 62%); pointer-events: none; }
.cp-hero.k::before { background: radial-gradient(circle, color-mix(in srgb, var(--k) 20%, transparent), transparent 62%); }
.cp-hero > * { position: relative; min-width: 0; }
.cp-hero h1 { margin: 6px 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.cp-hero h1 em { font-style: normal; color: var(--kn, var(--gold-num)); }
.cp-hero .mot { margin: 0; color: var(--body); font-size: 15px; max-width: 600px; }
.cp-hero-l { display: flex; flex-direction: column; gap: 4px; }
.cp-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cp-ringbox { display: flex; align-items: center; gap: 18px; }
.cp-ring { position: relative; width: 156px; height: 156px; flex: none; }
.cp-ring svg { display: block; width: 100%; height: 100%; }
.cp-ring .val { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.cp-ring .track { stroke: var(--ring-track); }
.cp-ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cp-ring .num b { font-family: var(--num-font); font-weight: 400; font-size: 46px; line-height: 1; color: var(--kn, var(--gold-num)); letter-spacing: .01em; text-shadow: var(--num-glow); }
.cp-ring .num b small { font-family: Inter, sans-serif; font-size: 13px; font-weight: 700; color: var(--mute); text-shadow: none; margin-left: 2px; }
.cp-ring .num .cp-lab { margin-top: 6px; font-size: 9.5px; }
.cp-ringside { min-width: 0; }
.cp-ringside .big { font-family: var(--num-font); font-size: 30px; line-height: 1; margin-top: 6px; display: block; color: var(--kn, var(--ink)); }
.cp-ringside .hint { margin-top: 4px; font-size: 12px; color: var(--mute); max-width: 180px; }
.cp-ringside a { font-weight: 700; font-size: 13px; }
.cp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cp-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cp-stat { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--sub); color: var(--ink); display: block; min-width: 0; position: relative; overflow: hidden; text-decoration: none; }
.cp-stat .v { display: block; font-family: var(--num-font); font-weight: 400; font-size: 30px; line-height: 1; margin-top: 6px; color: var(--kn, var(--ink)); }
.cp-stat .v small { font-family: Inter, system-ui, sans-serif; font-size: 12px; font-weight: 700; color: var(--mute); margin-left: 4px; letter-spacing: 0; }
.cp-stat .u { display: block; font-size: 12px; color: var(--mute); margin-top: 4px; }
.cp-stat .cp-lab { display: flex; align-items: center; gap: 6px; }
.cp-stat.lit::after { content: ""; position: absolute; right: -20px; top: -20px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(255,179,71,.35), transparent 70%); }
.cp .cp-cont { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(240,180,41,.45); background: var(--sub); text-decoration: none; color: var(--ink); }
.cp-cont .cp-sk { width: 38px; height: 38px; }
.cp-cont .txt { flex: 1; min-width: 0; }
.cp-cont .txt .cp-lab { display: block; font-size: 9.5px; margin-bottom: 2px; color: var(--gold-txt); }
.cp-cont .txt b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-cont .txt span.s { font-size: 12.5px; color: var(--mute); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-cont.late { border-color: var(--bad); }
.cp-flame { animation: cpFlame 1.6s ease-in-out infinite; transform-origin: 50% 80%; display: inline-flex; }
@media (max-width: 1000px) { .cp-hero { grid-template-columns: 1fr; } .cp-ringbox { order: -1; } }
@media (max-width: 760px) {
  .cp-hero { padding: 18px; gap: 14px; border-radius: 20px; }
  .cp-hero h1 { font-size: 24px; margin: 2px 0 4px; }
  .cp-hero .mot { font-size: 14px; }
  .cp-ring { width: 124px; height: 124px; } .cp-ring .num b { font-size: 38px; }
  .cp-stats, .cp-stats.four { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); } .cp-stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-stat { padding: 10px 11px; } .cp-stat .v { font-size: 24px; }
  .cp-stat .u { font-size: 11px; line-height: 1.3; }
  .cp-stat .cp-lab { letter-spacing: .06em; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .cp-stat .cp-lab svg { display: none; }
  .cp-acts .cp-btn { flex: 1 1 auto; }
}
@media (max-width: 480px) { .cp-ring { width: 112px; height: 112px; } .cp-ring .num b { font-size: 34px; } .cp-ring .num .cp-lab { font-size: 8.5px; letter-spacing: .12em; } .cp-ringside .big { font-size: 26px; } }
@media (max-width: 480px) { .cp-cont { flex-wrap: wrap; } .cp-cont .cp-btn { width: 100%; } .cp-cont .cp-sk { display: none; } }

/* ── 6. TOOLBAR: search, selects, tabs, toggles ────────────────────── */
.cp-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cp-tools .grow { flex: 1 1 260px; min-width: 0; }
.cp-search { display: flex; align-items: center; gap: 8px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); padding: 0 12px; color: var(--mute); min-width: 0; }
.cp-search input { border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); width: 100%; min-width: 0; height: 100%; }
.cp-search input::placeholder { color: var(--mute); }
.cp-search:focus-within { border-color: var(--brand); }
/* 10 Nov 2026: ".cp-search input { outline: 0 }" above was beaten by ".cp :focus-visible" (a stronger rule), so a gold box
   appeared inside the search field. The frame already changes colour when the field is active; this line removes the box. */
.cp .cp-search input:focus-visible { outline: 0; }
.cp .cp-sel { height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); padding: 0 10px; max-width: 100%; font-size: 14px; font-weight: 600; }
.cp .cp-tog { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 700; color: var(--body); cursor: pointer; white-space: nowrap; }
.cp .cp-tog input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.cp .cp-count { font-size: 13px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.cp-tablist { display: inline-flex; gap: 6px; background: var(--card); border: 1px solid var(--line); padding: 6px; border-radius: 18px; box-shadow: var(--shadow); max-width: 100%; overflow-x: auto; }
.cp .cp-tab { height: 44px; padding: 0 18px; border-radius: 13px; border: 0; background: transparent; font-weight: 800; font-size: 14.5px; color: var(--body); cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.cp .cp-tab[aria-selected="true"], .cp .cp-tab[aria-current="page"] { background: var(--brand); color: var(--btn-ink); }
.cp .cp-tab small { font-weight: 700; opacity: .75; margin-left: 4px; }
@media (max-width: 480px) { .cp-tablist { display: flex; } .cp .cp-tab { flex: 1; padding: 0 10px; font-size: 13.5px; justify-content: center; } }
.cp-recent { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--mute); font-weight: 600; }
.cp-recent a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-recent a:hover { border-color: var(--brand); }
.cp .cp-empty { text-align: center; padding: 30px 10px; color: var(--mute); font-weight: 600; }
.cp .cp-note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid rgba(240,180,41,.45); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cp .cp-note a { font-weight: 800; }

/* ── 7. TEST CARDS ─────────────────────────────────────────────────── */
.cp-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.cp-tgrid.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
@media (max-width: 760px) { .cp-tgrid { gap: 10px; } }
.cp-tc { --k: var(--brand); --ks: var(--brand-soft); --ki: var(--brand-ink); --kn: var(--brand);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); min-width: 0; }
.cp .cp-tc.L { --k: var(--l); --ks: var(--l-soft); --ki: var(--l-ink); --kn: var(--l-num); }
.cp .cp-tc.R { --k: var(--r); --ks: var(--r-soft); --ki: var(--r-ink); --kn: var(--r-num); }
.cp .cp-tc.W { --k: var(--w); --ks: var(--w-soft); --ki: var(--w-ink); --kn: var(--w-num); }
.cp .cp-tc.S { --k: var(--s); --ks: var(--s-soft); --ki: var(--s-ink); --kn: var(--s-num); }
.cp-tc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--k); z-index: 2; }
.cp-tc::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--ks); opacity: .9; transition: transform .25s; pointer-events: none; }
.cp-tc:hover::after { transform: scale(1.4); }
.cp-tc > * { position: relative; z-index: 1; }
.cp-tc .cp-stretch { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cp-tc .cp-stretch:focus-visible { outline-offset: -3px; }
.cp-tc .up { position: relative; z-index: 2; }   /* things you can press inside a card, above the card link */
.cp-tc .hd { display: flex; align-items: center; gap: 12px; }
.cp-tc .hd .nmb { min-width: 0; flex: 1; }
.cp-tc .hd .cp-lab { display: block; font-size: 9.5px; color: var(--ki); }
.cp-tc .no { font-family: var(--num-font); font-size: 34px; line-height: 1; color: var(--kn); min-width: 46px; }
.cp-tc h3 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.3; }
.cp-tc .meta { font-size: 12.5px; color: var(--mute); font-weight: 600; }
.cp-tc .time { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--body); padding: 3px 8px; border-radius: 99px; background: var(--sub); border: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-tc .parts { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 3px; }
.cp-tc .parts li { min-width: 0; }
.cp-tc .parts a, .cp-tc .parts span.pr { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; color: var(--body); min-width: 0; text-decoration: none; padding: 2px 4px; margin: 0 -4px; border-radius: 8px; }
.cp-tc .parts a:hover { background: var(--ks); color: var(--ink); }
.cp-tc .parts i { font-style: normal; flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--ks); color: var(--ki); font-size: 10.5px; font-weight: 800; display: inline-grid; place-items: center; transform: translateY(2px); }
.cp-tc .parts .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.cp-tc .parts small { margin-left: auto; flex: none; color: var(--mute); font-weight: 600; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cp-tc .parts mark { background: var(--gold-soft); color: inherit; border-radius: 3px; }
.cp-tc .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.cp-tc .tags span { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--sub); border: 1px solid var(--line); color: var(--body); white-space: nowrap; }
.cp-tc .tags span.k { background: var(--ks); border-color: transparent; color: var(--ki); }
.cp-tc .ft { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; padding-right: 36px; min-height: 28px; font-size: 12.5px; color: var(--mute); font-weight: 600; flex-wrap: wrap; }
.cp-tc .ft b { color: var(--ink); }
.cp-tc .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; color: var(--body); margin: 0; }
.cp-tc .task { border-radius: 12px; background: var(--sub); border: 1px solid var(--line); padding: 9px 11px; }
.cp-tc .task .cp-lab { font-size: 9px; color: var(--ki); display: flex; justify-content: space-between; gap: 6px; }
.cp-tc .cue { border: 1.5px dashed color-mix(in srgb, var(--k) 55%, transparent); border-radius: 12px; padding: 10px 12px; background: var(--ks); }
.cp-tc .cue p { margin: 3px 0 0; font-weight: 700; font-size: 14px; line-height: 1.4; color: var(--ink); }
.cp-tc .go { position: absolute; right: 12px; bottom: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--k); color: #0a0820; display: grid; place-items: center; transition: transform .2s; z-index: 1; pointer-events: none; }
.cp-tc:hover > .go { transform: translateX(3px); }
.cp-tc .save { position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--mute); display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .15s, color .15s; }
.cp-tc .save:hover { transform: scale(1.08); color: var(--ink); }
.cp-tc .save[aria-pressed="true"] { color: var(--gold-ink); background: var(--gold-fill); border-color: transparent; }
.cp-tc .save[aria-pressed="true"] svg { fill: currentColor; }
.cp-tc.has-save .hd { padding-right: 40px; }
.cp-tc .mini { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--body); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.cp-tc .mini:hover { border-color: var(--k); color: var(--ink); }
.cp-tc .mini.hw { border-color: var(--k); color: var(--ki); }
.cp-tc .draft { color: var(--s-ink); font-weight: 800; }
.cp-tc.dim { opacity: .55; }
@media (max-width: 760px) { .cp-tc { padding: 14px 14px; } .cp-tc .go { width: 26px; height: 26px; right: 10px; bottom: 10px; } }

/* reading (6 Nov 2026, item 17): a soft cover made of three small pictures, one per passage; no title on the cover */
.cp .rv0 { --rb: #eaf3fb; --rm: #d3e7f7; } .cp .rv1 { --rb: #eaf6ef; --rm: #d0ebdc; } .cp .rv2 { --rb: #f1edfb; --rm: #dfd7f6; }
.cp .rv3 { --rb: #fdf0e7; --rm: #f8dbc8; } .cp .rv4 { --rb: #f8f2e1; --rm: #eee0b9; } .cp .rv5 { --rb: #fbecf1; --rm: #f4d2de; }
.cp .rv6 { --rb: #e8f4f4; --rm: #cce7e7; } .cp .rv7 { --rb: #eef0fb; --rm: #d8dcf6; } .cp .rv8 { --rb: #f3f1ea; --rm: #e3ddcc; }
.cp .rv9 { --rb: #edf5e6; --rm: #d6e9c6; }
html.dark .cp .rv0 { --rb: #14233a; --rm: #1c3250; } html.dark .cp .rv1 { --rb: #132a25; --rm: #1b3b32; } html.dark .cp .rv2 { --rb: #1e1a3a; --rm: #2b2552; }
html.dark .cp .rv3 { --rb: #2d1f1a; --rm: #3f2b22; } html.dark .cp .rv4 { --rb: #29261a; --rm: #3a3422; } html.dark .cp .rv5 { --rb: #2b1824; --rm: #3e2333; }
html.dark .cp .rv6 { --rb: #12292b; --rm: #1a393c; } html.dark .cp .rv7 { --rb: #181d38; --rm: #232a4e; } html.dark .cp .rv8 { --rb: #24221d; --rm: #34302a; }
html.dark .cp .rv9 { --rb: #1c2a19; --rm: #283c23; }
/* five soft backgrounds (one gradient each, painted once): a sun, hills, lined paper, a band, rings */
.cp .m0 { background: radial-gradient(circle at 80% 22%, var(--rm) 0 40px, transparent 41px) var(--rb); }
.cp .m1 { background: radial-gradient(ellipse 58% 46% at 18% 112%, var(--rm) 98%, transparent 100%), radial-gradient(ellipse 52% 40% at 88% 118%, var(--rm) 98%, transparent 100%) var(--rb); }
.cp .m2 { background: linear-gradient(90deg, transparent 0 30px, var(--rm) 30px 32px, transparent 32px), repeating-linear-gradient(transparent 0 15px, var(--rm) 15px 17px) var(--rb); }
.cp .m3 { background: linear-gradient(118deg, transparent 0 46%, var(--rm) 46% 68%, transparent 68%) var(--rb); }
.cp .m4 { background: radial-gradient(circle at 104% 110%, transparent 0 42px, var(--rm) 43px 54px, transparent 55px 72px, var(--rm) 73px 80px, transparent 81px) var(--rb); }
.cp-rc { position: relative; margin: -16px -18px 4px; height: 124px; overflow: hidden; border-bottom: 1px solid var(--line); }
.cp-rc .tn { position: absolute; left: 18px; bottom: 14px; font-family: var(--num-font); font-size: 44px; line-height: 1; color: var(--ink); letter-spacing: .01em; }
.cp-rc .tn small { display: block; font-family: var(--lab-font); font-size: 9.5px; font-weight: 700; letter-spacing: .2em; margin-bottom: 5px; color: var(--r-ink); }
.cp-rc .bd { position: absolute; left: 18px; top: 12px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--gold-fill); color: var(--gold-ink); }
.cp-rc .trio { position: absolute; right: 14px; bottom: 9px; display: flex; gap: 6px; align-items: flex-end; }
.cp-rc .e { position: relative; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.78); display: grid; place-items: center; box-shadow: 0 6px 14px -10px rgba(18,16,46,.45); transition: transform .3s ease; }
html.dark .cp .cp-rc .e { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.cp-rc .e img { width: 44px; height: 44px; display: block; }
.cp-rc .e i { position: absolute; left: -3px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); color: var(--r-ink); font: 800 10.5px/18px Inter, sans-serif; text-align: center; font-style: normal; box-shadow: 0 0 0 1px var(--line); }
.cp-rc .a0 .e:nth-child(2) { transform: translateY(-14px); }
.cp-rc .a1 .e:nth-child(1) { transform: translateY(-14px) rotate(-6deg); } .cp-rc .a1 .e:nth-child(2) { transform: translateY(-4px); }
.cp-rc .a2 .e:nth-child(1) { transform: translateY(-6px); } .cp-rc .a2 .e:nth-child(2) { transform: translateY(-16px) rotate(5deg); }
.cp-tc:hover .cp-rc .e:nth-child(2) { transform: translateY(-18px) rotate(-4deg); }
@media (max-width: 760px) { .cp-rc { margin: -14px -14px 4px; height: 112px; } .cp-rc .tn { font-size: 38px; } .cp-rc .e { width: 52px; height: 52px; } .cp-rc .e img { width: 40px; height: 40px; } .cp-rc .trio { gap: 4px; } }
@media (max-width: 360px) { .cp-rc .e { width: 46px; height: 46px; } .cp-rc .e img { width: 34px; height: 34px; } }

/* reading: single passages — compact rows with a small cover */
.cp-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; }
.cp-pc { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; min-width: 0; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.cp-pc:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); border-color: var(--r); }
.cp-pc .th { width: 92px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line); }
.cp-pc .th:not([class*="rv"]) { background: var(--pbg, var(--r-soft)); }
.cp-pc .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-pc .th[class*="rv"] { display: grid; place-items: center; }
.cp-pc .th img.em { width: 44px; height: 44px; object-fit: contain; transition: transform .3s ease; }
.cp-pc:hover .th img.em { transform: rotate(-6deg) scale(1.08); }
.cp-pc .tx { min-width: 0; flex: 1; }
.cp-pc .tx .cp-lab { display: block; font-size: 9px; color: var(--r-ink); letter-spacing: .14em; }
.cp-pc .tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.3; margin: 2px 0 2px; }
.cp-pc .tx small { display: block; font-size: 12px; color: var(--mute); font-weight: 600; }
.cp-pc .tx small .ok { color: var(--ok); font-weight: 800; }
.cp-pc .ar { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--r-soft); color: var(--r-ink); display: grid; place-items: center; }

/* writing: the Task 1 chart as the cover */
.cp-wcover { position: relative; margin: -16px -18px 4px; aspect-ratio: 16 / 9; background: var(--chart-bg); overflow: hidden; border-bottom: 1px solid var(--line); }
.cp-wcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s ease; }
.cp-tc:hover .cp-wcover img { transform: scale(1.03); }
.cp-wcover .dk { display: none; }
html.dark .cp .cp-wcover .dk { display: block; } html.dark .cp .cp-wcover .lt { display: none; }
.cp-wcover .ty { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--w); color: #fff; }
.cp-wcover .bd { position: absolute; right: 10px; bottom: 10px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--gold-fill); color: var(--gold-ink); }
@media (max-width: 760px) { .cp-wcover { margin: -14px -14px 4px; } }

/* small link cards ("quick tools") */
.cp-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.cp-quick a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 14px 16px; }
.cp-quick b { display: block; font-size: 14.5px; }
.cp-quick span.s { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.4; }
@media (max-width: 760px) { .cp-quick { grid-template-columns: 1fr 1fr; gap: 10px; } .cp-quick a.cp-card { padding: 12px; align-items: flex-start; flex-direction: column; gap: 8px; } }

/* rows (lists inside a card) */
.cp-rows { list-style: none; margin: 0; padding: 0; }
.cp-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line2); min-width: 0; }
.cp-row:last-child { border-bottom: 0; }
.cp-row .ti { flex: 1; min-width: 0; }
.cp-row .ti b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-row .ti span { font-size: 13px; color: var(--mute); }
a.cp-row { text-decoration: none; color: var(--ink); }
a.cp-row:hover b { color: var(--brand); }
.cp-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cp-bars .t { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.cp-bars .t small { color: var(--mute); font-weight: 600; }
.cp-bars .tr { height: 8px; background: var(--line2); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.cp-bars .tr i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); background: var(--k, var(--brand)); }

/* ── 8. GRAMMAR ────────────────────────────────────────────────────── */
.cp-gq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.cp-gq a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--sub); color: var(--ink); text-decoration: none; border: 1px solid var(--line); min-width: 0; }
.cp-gq a span { grid-row: span 2; font-size: 22px; }
.cp-gq a b { font-size: 14px; } .cp-gq a small { color: var(--mute); font-weight: 600; font-size: 12px; }
.cp-gq a.hot { border-color: var(--gold-fill); background: var(--gold-soft); }
.cp-gq a:hover { border-color: var(--ok); }
@media (max-width: 480px) { .cp-gq { grid-template-columns: 1fr 1fr; } }
.cp-gt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.cp-gt li { min-width: 0; }
.cp-gt a, .cp-gt .soon { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--sub); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; min-width: 0; transition: border-color .15s, transform .2s ease, box-shadow .2s ease; }
.cp-gt a:hover { border-color: var(--gc); transform: translateY(-3px); box-shadow: var(--shadow-up); }
.cp-gt .soon { opacity: .6; border-style: dashed; }
.cp-gt .em { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; flex: none; background: color-mix(in srgb, var(--gc) 16%, transparent); }
.cp-gt .em svg { width: 20px; height: 20px; }
.cp-gt .tt { flex: 1; min-width: 0; line-height: 1.3; }
.cp-gt .tt small { display: block; font-size: 11.5px; color: var(--mute); font-weight: 700; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-gt .st { color: var(--line); white-space: nowrap; font-size: 13px; letter-spacing: 1px; }
.cp-gt .st i { font-style: normal; color: var(--gold-fill); }
html.dark .cp .cp-gt .st { color: rgba(255,255,255,.18); }
.cp-ghead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cp-ghead .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--gc); }
.cp-ghead h2 { font-size: 17px; }
.cp-ghead .cp-lab { color: var(--gc); }
.cp-ghead .n { font-size: 13px; color: var(--mute); font-weight: 600; white-space: nowrap; }
.cp-gtests { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.cp-gtests a { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--sub); border: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.cp-gtests a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.cp-gtests a:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.cp-gtests .e { font-size: 22px; }
.cp-gtests b { font-size: 14.5px; } .cp-gtests small { font-size: 12px; color: var(--mute); font-weight: 600; }
.cp-gtests .cefr { position: absolute; right: 12px; top: 12px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--body); }
.cp-lang { position: relative; }
.cp-lang details > summary { list-style: none; cursor: pointer; }

/* ── 9. WORD LIBRARY shelves ───────────────────────────────────────── */
.cp-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.cp .cp-book { color: var(--ink); }
.cp-book { display: flex; gap: 14px; align-items: center; padding: 14px; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; }
.cp-book .bk { width: 56px; aspect-ratio: 3 / 4; border-radius: 6px 9px 9px 6px; flex: none; display: grid; place-items: center; background: linear-gradient(150deg, var(--bc), color-mix(in srgb, var(--bc) 60%, #000)); color: #fff; box-shadow: 0 8px 18px -10px rgba(0,0,0,.6), inset 4px 0 0 rgba(0,0,0,.18); text-align: center; padding: 4px; }
.cp-book .bk b { font-family: var(--num-font); font-size: 22px; font-weight: 400; line-height: 1; }
.cp-book .bk small { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; opacity: .9; margin-top: 3px; }
.cp-book .tt { min-width: 0; flex: 1; }
.cp-book .tt b { display: block; font-size: 14.5px; line-height: 1.3; }
.cp-book .tt span { display: block; font-size: 12.5px; color: var(--mute); }
.cp-book .prog { height: 6px; border-radius: 99px; background: var(--line2); margin-top: 8px; overflow: hidden; }
.cp-book .prog i { display: block; height: 100%; width: 0; background: var(--bc); border-radius: 99px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.cp-book .pct { font-size: 11.5px; font-weight: 800; color: var(--body); margin-top: 3px; display: block; }
.cp-book.soon { border-style: dashed; box-shadow: none; background: transparent; }
.cp-book.soon .tt b { color: var(--body); }
.cp-wotd .w { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-wotd .w h3 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.cp-wotd .ipa { color: var(--mute); font-size: 14px; }
.cp-wotd .def { margin: 8px 0 0; font-size: 15px; }
.cp-wotd .tr { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--brand-ink); }
.cp-wotd .ex { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--sub); border-left: 3px solid var(--gold-fill); font-size: 14px; color: var(--body); font-style: italic; }
.cp-wotd .ex mark { background: var(--gold-soft); color: inherit; font-style: normal; font-weight: 800; }
.cp .cp-say { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.cp .cp-say::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9zM16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9zM16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11'/%3E%3C/svg%3E") center / contain no-repeat; }
.cp-kv { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.cp-kv b { display: block; font-family: var(--num-font); font-weight: 400; font-size: 24px; line-height: 1.1; }
.cp-kv span { color: var(--mute); font-size: 12px; font-weight: 600; }
.cp-sres { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-up); max-height: 360px; overflow: auto; }
.cp-sres a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.cp-sres a:hover, .cp-sres a:focus, .cp-sres [aria-selected="true"] a { background: var(--brand-soft); }
.cp-hwl li { align-items: flex-start; }
.cp-hwl .cp-btn { flex: none; }

/* ── 10. LIBRARY (real cover photos) ───────────────────────────────── */
.cp-lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 168px), 1fr)); gap: 18px 14px; }
@media (max-width: 480px) { .cp-lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }
.cp-litem { text-decoration: none; color: var(--ink); display: block; min-width: 0; position: relative; cursor: pointer; text-align: left; background: none; border: 0; padding: 0; width: 100%; }
.cp-frame { aspect-ratio: 2 / 3; border-radius: 6px 12px 12px 6px; background: linear-gradient(135deg, var(--sub), var(--line2)); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(18,16,46,.06), 0 14px 26px -16px rgba(18,16,46,.45); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.cp-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-frame::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent); z-index: 1; }
.cp-litem:hover .cp-frame, .cp-litem:focus-visible .cp-frame { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.cp-frame .rt { position: absolute; top: 8px; left: 12px; font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--gold-fill); color: var(--gold-ink); z-index: 2; }
.cp-frame .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--mute); padding: 10px; text-align: center; }
.cp-fav { position: absolute; top: 6px; right: 6px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: #8b90b8; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 4px 10px -4px rgba(0,0,0,.4); transition: transform .15s; }
.cp-fav:hover { transform: scale(1.1); }
.cp-fav[aria-pressed="true"] { color: #e11d48; }
.cp-fav[aria-pressed="true"] svg { fill: currentColor; }
.cp-litem .cap { margin-top: 8px; }
.cp-litem .cap b { display: block; font-size: 14px; line-height: 1.3; }
.cp-litem .cap span { display: block; font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* documentaries */
.cp-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.cp-doc { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; min-width: 0; }
.cp-doc .pic { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a2160, #12102e 60%, #3a2a10); overflow: hidden; display: block; }
.cp-doc .pic .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; }
.cp-doc .pic img { position: relative; }
.cp-doc .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.cp-doc:hover .pic img { transform: scale(1.05); }
.cp-doc .play { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,201,71,.95); color: #1a1400; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0,0,0,.6); transition: transform .2s; }
.cp-doc:hover .play { transform: scale(1.1); }
.cp-doc .cat { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: rgba(10,8,32,.72); color: #fff; }
.cp-doc .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-doc .bd b { font-size: 15px; line-height: 1.3; }
.cp-doc .bd small { font-size: 12.5px; color: var(--mute); font-weight: 600; }
.cp-doc .bd p { font-size: 13px; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-doc .cp-fav { top: 8px; right: 8px; }

/* ── 11. LEADERBOARD ───────────────────────────────────────────────── */
.cp-pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.cp-pod .p { text-align: center; padding: 16px 10px 14px; position: relative; min-width: 0; }
.cp-pod .p.first { padding-top: 28px; border-color: rgba(240,180,41,.55); background: linear-gradient(180deg, var(--gold-soft), var(--card) 70%); }
.cp-pod .av { margin: 0 auto 8px; display: grid; place-items: center; width: fit-content; border-radius: 50%; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--k, var(--brand)); }
.cp-pod .rk { position: absolute; top: 10px; left: 12px; font-family: var(--num-font); font-size: 20px; color: var(--mute); }
.cp-pod .first .rk { color: var(--gold-num); }
.cp-pod .crown { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-size: 18px; }
.cp-pod b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-pod .pts { font-family: var(--num-font); font-size: 26px; line-height: 1.1; color: var(--kn, var(--gold-num)); display: block; margin-top: 4px; }
.cp-pod .pts small { font-family: Inter, sans-serif; font-size: 11px; color: var(--mute); font-weight: 700; margin-left: 3px; }
@media (max-width: 480px) { .cp-pod { gap: 8px; } .cp-pod .p { padding: 12px 6px; } .cp-pod b { font-size: 12.5px; } .cp-pod .pts { font-size: 22px; } }
.cp-lb .rk { width: 32px; font-family: var(--num-font); font-size: 18px; color: var(--mute); text-align: center; flex: none; }
.cp-lb .pt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-lb .pt small { font-weight: 600; color: var(--mute); margin-left: 3px; font-size: 11.5px; }
.cp-lb .me { background: var(--gold-soft); border-radius: 12px; border-bottom-color: transparent; padding-left: 8px; padding-right: 8px; }
.cp-lb .gap { justify-content: center; color: var(--mute); }
.cp-lb img, .cp-pod img { border-radius: 50%; }

/* ── 12. MODAL + TOAST ─────────────────────────────────────────────── */
.cp-modal { position: fixed; inset: 0; z-index: 90; background: var(--scrim); display: none; align-items: flex-end; justify-content: center; }
.cp-modal.open { display: flex; }
.cp-modal .box { position: relative; background: var(--card); color: var(--ink); border: 1px solid var(--line); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 22px; animation: cpUp .25s ease both; }
@media (min-width: 640px) { .cp-modal { align-items: center; padding: 16px; } .cp-modal .box { border-radius: 22px; } }
.cp-modal .x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.cp-modal h3 { margin: 4px 0 4px; font-size: 22px; font-weight: 800; }
.cp-mbook { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; }
.cp-mbook img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px 12px 12px 6px; box-shadow: var(--shadow-up); }
@media (max-width: 480px) { .cp-mbook { grid-template-columns: 96px 1fr; gap: 14px; } .cp-modal h3 { font-size: 19px; } }
.cp-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 95; max-width: calc(100% - 32px); text-align: center; }
.cp-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .cp-toast { bottom: 92px; } }

/* ── 13. MOTION (student-ui.css, unchanged) ────────────────────────── */
@keyframes cpRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cpFlame { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
@keyframes cpUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.cp-rise { animation: cpRise .55s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .cp *, .cp *::before, .cp *::after { animation: none !important; transition: none !important; }
  .cp .cp-rise { opacity: 1; transform: none; }
}

/* ── 14. SKILL DRAWINGS (6 Nov 2026, round 2 — owner's items 16, 17, 19) ──
   Small hand-drawn pictures from views/classic/_art.php (one hidden sprite per page; cards say <use href="#…">).
   Lines = currentColor (--lc), soft fill = --la, paper = --lp. Six calm tints .lt0–.lt5. No filters, no blur. */
.cp .lt0 { --lt: #e5f3fb; --la: #bde3f5; --lc: #0e5f80; }
.cp .lt1 { --lt: #e3f5ee; --la: #b8e6d1; --lc: #11684a; }
.cp .lt2 { --lt: #efecfb; --la: #d6cff7; --lc: #4b3a99; }
.cp .lt3 { --lt: #fdefe6; --la: #f8d2bc; --lc: #8a4421; }
.cp .lt4 { --lt: #f7f1de; --la: #eddfb2; --lc: #6e5512; }
.cp .lt5 { --lt: #fbeaf0; --la: #f3cbd9; --lc: #8a2c4f; }
html.dark .cp .lt0 { --lt: rgba(56,189,248,.10); --la: rgba(56,189,248,.26); --lc: #a3def7; }
html.dark .cp .lt1 { --lt: rgba(52,211,153,.10); --la: rgba(52,211,153,.24); --lc: #9fe6c7; }
html.dark .cp .lt2 { --lt: rgba(167,139,250,.11); --la: rgba(167,139,250,.28); --lc: #d0c2ff; }
html.dark .cp .lt3 { --lt: rgba(251,146,90,.10); --la: rgba(251,146,90,.26); --lc: #ffc8a8; }
html.dark .cp .lt4 { --lt: rgba(234,196,90,.10); --la: rgba(234,196,90,.24); --lc: #f1da95; }
html.dark .cp .lt5 { --lt: rgba(244,114,160,.10); --la: rgba(244,114,160,.26); --lc: #ffb8d0; }

/* the faint skill drawing in every hero's corner */
.cp-hero > .cp-motif { position: absolute; right: -4px; bottom: -10px; width: 230px; height: 138px; color: var(--k, var(--brand)); opacity: .17; pointer-events: none; }
html.dark .cp-hero > .cp-motif { opacity: .22; }
@media (max-width: 760px) { .cp-hero > .cp-motif { width: 124px; height: 74px; right: -12px; bottom: -12px; opacity: .1; } }

/* the picture tile at the top of a card, with the test number on its corner */
.cp .cp-tile { --lp: #ffffff; position: relative; width: 64px; height: 64px; border-radius: 18px; background: var(--lt, var(--ks)); color: var(--lc, var(--ki)); flex: none; display: grid; place-items: center; }
html.dark .cp .cp-tile { --lp: #0f1430; }
.cp .cp-tile .art { width: 54px; height: 54px; display: block; transition: transform .3s ease; }
.cp-tc:hover .cp-tile .art { transform: rotate(-5deg) scale(1.05); }
.cp .cp-tc .cp-tile .no { position: absolute; left: -7px; bottom: -7px; min-width: 0; font-size: 15px; padding: 4px 6px 3px; border-radius: 8px; background: var(--card); color: var(--kn); box-shadow: 0 0 0 1px var(--line), 0 4px 10px -6px rgba(18,16,46,.35); }
.cp-tc::after { background: var(--lt, var(--ks)); }
.cp-tc .hd .meta { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; }
.cp-tc .hd .meta b { color: var(--ki); font-weight: 800; }
.cp .qs { width: 14px; height: 14px; flex: none; color: var(--mute); }
.cp-tc .parts .qs { align-self: center; opacity: .85; }
.cp-tc .tags span .qs { width: 13px; height: 13px; color: var(--ki); }
@media (max-width: 760px) { .cp .cp-tile { width: 56px; height: 56px; border-radius: 16px; } .cp .cp-tile .art { width: 46px; height: 46px; } }

/* Listening: the four part badges get a soft step of colour (Part 1 lightest → Part 4 strongest) */
.cp-lc .parts li:nth-child(2) i { background: color-mix(in srgb, var(--l) 22%, var(--card)); }
.cp-lc .parts li:nth-child(3) i { background: color-mix(in srgb, var(--l) 34%, var(--card)); }
.cp-lc .parts li:nth-child(4) i { background: var(--l); color: #fff; }
html.dark .cp-lc .parts li:nth-child(4) i { color: #062030; }

/* ── Listening cards: "Sticker banner" (13 Nov 2026) ─────────────────────────────────────────────
   The card Sharifjon chose from the second set of previews. A blue banner with the big test number and four small
   drawings (one for each part) like stickers; under it the four part names, the time, the score and the Start button.
   The card is printed by views/classic/listening.php; the drawings are named in includes/listening_pics.php. */
.cp-tc.cp-ls5 { --ld: #075e7d; --l5-btn: #006f94; --l5-on: #fff; padding: 0; gap: 0; }
html.dark .cp-tc.cp-ls5 { --ld: #0b4a63; --l5-btn: var(--l); --l5-on: #04202b; }
.cp-tc.cp-ls5::before, .cp-tc.cp-ls5::after { display: none; }
.cp-ls5 > .ban { position: relative; flex: none; height: 96px; overflow: hidden; background: linear-gradient(120deg, var(--ld), var(--l)); }
.cp-ls5 > .ban small { position: absolute; left: 16px; top: 12px; font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #fff; opacity: .88; }
.cp .cp-ls5 > .ban .no { position: absolute; left: 14px; bottom: 7px; min-width: 0; font-size: 54px; line-height: 1; font-weight: 400; color: #fff; }
.cp .cp-ls5 > .ban .no.n3 { font-size: 42px; bottom: 9px; }
.cp-ls5 .stk { position: absolute; width: 54px; height: 54px; padding: 7px; border-radius: 16px; background: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.45); transition: transform .25s ease; }
.cp-ls5 .stk img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cp-ls5 .stk.s1 { right: 162px; top: 26px; transform: rotate(-8deg); }
.cp-ls5 .stk.s2 { right: 112px; top: 12px; transform: rotate(5deg); }
.cp-ls5 .stk.s3 { right: 62px; top: 28px; transform: rotate(-4deg); }
.cp-ls5 .stk.s4 { right: 12px; top: 14px; transform: rotate(8deg); }
.cp-ls5:hover .stk.s1 { transform: rotate(-3deg) translateY(-2px); } .cp-ls5:hover .stk.s2 { transform: rotate(1deg) translateY(2px); }
.cp-ls5:hover .stk.s3 { transform: rotate(0deg) translateY(-3px); } .cp-ls5:hover .stk.s4 { transform: rotate(3deg) translateY(2px); }
.cp-tc.cp-ls5 > .bd { position: static; z-index: auto; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 12px 14px 14px; }   /* static: the part links and the save button must lie above the card's own link */
.cp-tc.cp-ls5 .hd { align-items: flex-start; gap: 10px; padding-right: 0; }
.cp-ls5 .hd h3 { flex: 1; min-width: 0; padding-top: 6px; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.cp-tc.cp-ls5 .save { position: relative; top: auto; right: auto; flex: none; }
.cp-ls5 .parts { margin: 0; gap: 3px; }
.cp-ls5 .parts a { align-items: flex-start; }
.cp-ls5 .parts i { transform: none; margin-top: 1px; }
.cp-ls5 .parts .t { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; }   /* the whole name of every part is shown, on two lines if it is long */
.cp-tc.cp-ls5 .ft { margin-top: auto; padding: 10px 0 0; min-height: 0; gap: 6px 8px; border-top: 1px solid var(--line2); }
.cp-ls5 .ft .meta { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-ls5 .ft .st { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.cp-ls5 .ft .st:empty { display: none; }
.cp-ls5 .l5-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--sub); color: var(--body); font-size: 11.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-ls5 .l5-chip.map { background: var(--gold-soft); color: var(--gold-txt); }
.cp-ls5 .l5-chip.done { background: var(--ok-soft); color: var(--ok); }
.cp-ls5 .l5-chip.band { background: var(--l-soft); color: var(--l-ink); }
.cp-ls5 .l5-btn { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 15px; border-radius: 11px; background: var(--l5-btn); color: var(--l5-on); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.cp-ls5 .l5-btn.ghost { background: none; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.cp-ls5 .l5-btn svg { transition: transform .2s; }
.cp-ls5:hover .l5-btn svg { transform: translateX(3px); }
.cp-ls5 .cp-lps { margin: 0; }
@media (max-width: 760px) { .cp-tc.cp-ls5 { padding: 0; } }
@media (max-width: 359px) { .cp-ls5 .stk { width: 46px; height: 46px; padding: 6px; border-radius: 14px; } .cp-ls5 .stk.s1 { right: 138px; } .cp-ls5 .stk.s2 { right: 96px; } .cp-ls5 .stk.s3 { right: 54px; } }   /* very narrow phones: smaller stickers, so they never touch the number */
@media (prefers-reduced-motion: reduce) { .cp-ls5 .stk, .cp-ls5 .l5-btn svg { transition: none; } .cp-ls5:hover .stk.s1 { transform: rotate(-8deg); } .cp-ls5:hover .stk.s2 { transform: rotate(5deg); } .cp-ls5:hover .stk.s3 { transform: rotate(-4deg); } .cp-ls5:hover .stk.s4 { transform: rotate(8deg); } .cp-ls5:hover .l5-btn svg { transform: none; } }
html.lk-lite .cp-ls5 .stk { box-shadow: none; transition: none; }

/* Speaking: the cue card looks like a real card (ruled lines, a strip of tape) */
.cp-sc .cue { position: relative; border: 1px solid var(--line); border-radius: 6px 6px 12px 12px; padding: 16px 14px 12px; margin-top: 4px; transform: rotate(-.6deg);
  background: var(--card) repeating-linear-gradient(transparent 0 23px, color-mix(in srgb, var(--s) 18%, transparent) 23px 24px); background-position: 0 6px; box-shadow: 0 6px 14px -10px rgba(18,16,46,.35); }
.cp-sc .cue::before { content: ""; position: absolute; left: 50%; top: -7px; width: 64px; height: 14px; margin-left: -32px; background: color-mix(in srgb, var(--s) 30%, transparent); border-radius: 2px; transform: rotate(2deg); }
.cp-sc .cue .cp-lab { display: flex; align-items: center; gap: 5px; color: var(--s-ink); }
.cp-sc .cue p { line-height: 24px; margin-top: 2px; }
.cp-sc .tags span.k { display: inline-flex; align-items: center; gap: 4px; }

@media (prefers-reduced-motion: reduce) { .cp-tc:hover .cp-tile .art { transform: none; } .cp-sc .cue { transform: none; } }

/* ── 15. GRAMMAR topic list (6 Nov 2026, item 22): "By level" / "By topic", progress as three sentence blocks ── */
#cp-gview[data-gv="level"] .cp-gv-group, #cp-gview[data-gv="group"] .cp-gv-level { display: none; }
.cp-gv-level, .cp-gv-group { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 760px) { .cp-gv-level, .cp-gv-group { gap: 14px; } }
.cp .cp-gt2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.cp .cp-gt2 a, .cp .cp-gt2 .soon { gap: 12px; padding: 12px 12px 12px 12px; background: var(--card); border-left: 3px solid var(--gc); }
.cp .cp-gt2 a > .cp-ic { color: var(--mute); transition: transform .2s; }
.cp .cp-gt2 a:hover > .cp-ic { transform: translateX(3px); color: var(--ink); }
.cp-gt2 .tt b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.cp-gt2 .gp { display: flex; align-items: center; gap: 8px; margin-top: 7px; min-width: 0; }
.cp-gt2 .blk { display: inline-flex; gap: 3px; flex: none; }
.cp-gt2 .blk i { width: 22px; height: 9px; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--gc) 60%, transparent) var(--v), var(--line) 0); }
.cp-gt2 .blk i:nth-child(2) { width: 18px; } .cp-gt2 .blk i:nth-child(3) { width: 26px; }
.cp-gt2 .blk i.full { background: var(--gold-fill); }
.cp-gt2 .gs { font-size: 11.5px; color: var(--mute); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-gt2 .gs .ok { color: var(--ok); }
.cp-gt2 li.is-done .em { box-shadow: 0 0 0 2px var(--gold-fill); }
.cp-glv .lvb { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--gc); color: #fff; font-family: var(--num-font); font-size: 20px; box-shadow: 6px 6px 0 -1px color-mix(in srgb, var(--gc) 28%, transparent); }
.cp-glv .cp-ghead .cp-lab { color: var(--gc); }
html.dark .cp-glv .cp-ghead .cp-lab { color: color-mix(in srgb, var(--gc) 55%, #fff); }
.cp-glbar { height: 6px; border-radius: 99px; background: var(--line2); margin: -2px 0 14px; overflow: hidden; }
.cp-glbar i { display: block; height: 100%; border-radius: 99px; background: var(--gc); }

/* ── 16. WORD LIBRARY book cards (6 Nov 2026, item 14): three real words of the book as word tiles ── */
.cp .cp-book2 { align-items: flex-start; }
.cp .cp-book2 > img { transition: transform .3s ease; transform-origin: 0 100%; }
.cp .cp-book2:hover > img { transform: rotate(-4deg) translateY(-2px); }
.cp .cp-book .tt span.wt { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cp .cp-book2 .wt i { font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 8px 4px; border-radius: 6px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 2px 0 color-mix(in srgb, var(--bc) 45%, var(--line)); transform: rotate(-1.5deg); transition: transform .2s ease; }
.cp .cp-book2 .wt i:nth-child(2) { transform: rotate(1.2deg); } .cp .cp-book2 .wt i:nth-child(3) { transform: rotate(-.6deg); }
.cp .cp-book2:hover .wt i { transform: translateY(-2px); }
html.dark .cp .cp-book2 .wt i { background: rgba(255,255,255,.05); }
@media (prefers-reduced-motion: reduce) { .cp .cp-book2:hover > img, .cp .cp-book2:hover .wt i { transform: none; } }
.cp-hero > .cp-motif.top { top: 8px; bottom: auto; }

/* ── 17. LITE MODE (6 Nov 2026, NOV6B rule 10): weak phones/laptops (html.lk-lite, set by look.php) get no rise-in motion,
   no hover lifts and no night-sky background layers. Everything still shows at once. ── */
html.lk-lite .cp .cp-rise { animation: none; }
html.lk-lite .cp { background-image: none; }
html.lk-lite .cp .cp-lift:hover, html.lk-lite .cp-tc:hover .cp-tile .art, html.lk-lite .cp-tc:hover .cp-rc .e:nth-child(2), html.lk-lite .cp-pc:hover { transform: none; }
html.lk-lite .cp-tc::after { transition: none; }
/* writing: the chart and pen signs (item 19); the Task 2 box looks like lined writing paper */
.cp-wcover .ty { display: inline-flex; align-items: center; gap: 5px; }
.cp-tc .task .cp-lab > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.cp-tc.W .task { background: var(--card) repeating-linear-gradient(transparent 0 20px, color-mix(in srgb, var(--w) 12%, transparent) 20px 21px); background-position: 0 24px; border-left: 3px solid color-mix(in srgb, var(--w) 45%, transparent); }
.cp-tc.W .task .clamp { line-height: 21px; }

/* ── 18. SKILL HEROES (6 Nov 2026, round 3, HEROES helper hr9) ─────────────────────────────────────────────
   Drawn by views/classic/_heroes.php. Kept in this file (not a file of its own) so it rides in the page's ONE style sheet
   (includes/asset_bundle.php). Every class starts with "cph". */
.cp .cph { --paper: #ffffff; --cph-ki: #ffffff; --bar-o: #c9c6e0; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 34px; align-items: center; padding: 32px 34px; border-radius: 24px; background: var(--hero-bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
html.dark .cp .cph { --paper: #131a3a; --cph-ki: #0a0820; --bar-o: #5d628a; }
.cp .cph.L, .cp .cph.S, .cp .cph.G { --cph-ki: #0a0820; }
.cp .cph::before { content: ""; position: absolute; right: -80px; top: -150px; width: 540px; height: 540px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--k) 16%, transparent), transparent 62%); }
.cp .cph > * { position: relative; min-width: 0; }

/* ── left: the words ── */
.cph-kick { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--lab-font); font-weight: 700; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ki); }
.cph-kick .cp-ic { color: var(--k); }
.cp .cph h1 { margin: 12px 0 0; font-size: 42px; font-weight: 800; letter-spacing: -.025em; line-height: 1.06; color: var(--ink); text-wrap: balance; }
.cp .cph h1 em { font-style: normal; color: var(--kn); }
.cph-lead { margin: 12px 0 0; font-size: 16px; line-height: 1.45; color: var(--body); max-width: 470px; }
.cph-lead b { color: var(--ink); }
.cph-prog { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--mute); max-width: 470px; }
.cph-prog > span:first-child, .cph-prog > span:last-child { white-space: nowrap; }
.cph-prog b { color: var(--ink); font-weight: 800; }
.cph-prog .bar { flex: 1; min-width: 60px; height: 8px; border-radius: 99px; background: var(--ring-track); overflow: hidden; }
.cph-prog .bar i { display: block; height: 100%; border-radius: 99px; background: var(--k); transform-origin: left; transform: scaleX(var(--p, 0)); }
.cph-prog .n { font: 400 21px/1 var(--num-font); color: var(--kn); vertical-align: -2px; margin-left: 2px; }
.cph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cph-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 99px; background: var(--sub); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--body); white-space: nowrap; }
.cph-chip b { font: 400 17px/1 var(--num-font); color: var(--ink); letter-spacing: .01em; }
.cph-chip .cp-ic { color: var(--k); }
.cph-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.cp .cph .cp-btn.cph-key { min-height: 50px; padding: 0 22px; border-radius: 14px; font-size: 15px; font-weight: 800; color: var(--cph-ki); gap: 10px; }
.cp .cph .cp-btn.cph-key .cp-ic { transition: transform .2s; }
.cp .cph .cp-btn.cph-key:hover .cp-ic { transform: translateX(3px); }
.cph-line { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 800; font-size: 14.5px; color: var(--body) !important; text-decoration: none !important; }
.cph-line::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--k); transform: scaleX(.3); transform-origin: left; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cph-line:hover::after, .cph-line:focus-visible::after { transform: scaleX(1); }
.cph-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.cph-more .cp-btn { min-height: 36px; }
.cph-more .hint { width: 100%; margin: 2px 0 0; font-size: 12.5px; color: var(--mute); }
.cph-note { margin: 10px 0 0; font-size: 12.5px; color: var(--mute); }
.cph-note a { font-weight: 700; }

/* ── right: the paper ── */
.cph-ppr { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-up); min-width: 0; }
.cph-hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; min-width: 0; }
.cph-hd .cp-lab { color: var(--ki); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cph-tag { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--ks); color: var(--ki); white-space: nowrap; }
.cph-tag.gold { background: var(--gold-soft); color: var(--gold-txt); }
.cph-slip { font-family: Inter, system-ui, sans-serif; position: relative; display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 13px; background: var(--gold-soft); border: 1px solid rgba(240,180,41,.55);
  font-size: 13.5px; line-height: 1.4; color: var(--ink) !important; text-decoration: none !important; }
.cph-slip > .cp-ic { color: var(--gold-txt); flex: none; align-self: flex-start; margin-top: 2px; }
.cph-slip .cph-tx { flex: 1; min-width: 0; }
.cph-slip .cp-lab { display: block; font-size: 9px; color: var(--gold-txt); margin-bottom: 2px; }
.cph-slip b { font-weight: 800; }
.cph-slip .m { color: var(--body); }
.cph-slip .cph-go { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 9px; background: var(--gold-fill); color: var(--gold-ink); font-weight: 800; font-size: 12.5px; }
a.cph-slip:hover .cph-go .cp-ic { transform: translateX(2px); }
.cph-slip .cph-go .cp-ic { transition: transform .2s; }
.cph-slip.late { border-color: var(--bad); }

/* ════════ LISTENING · PART BY PART ════════ */
.cph-pb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cph-pc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 8px 11px; border-radius: 14px; background: var(--sub); border: 1px solid var(--line); text-align: center; min-width: 0; }
.cph-pc.weak { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold-fill) 70%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-fill) 70%, transparent); }
.cph-pc .flag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--gold-fill); color: var(--gold-ink); white-space: nowrap; }
.cph-pc .top { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.cph-pc .top i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 400 12px/1 var(--num-font); font-style: normal; background: color-mix(in srgb, var(--k) calc(var(--t) * 100%), var(--card)); color: var(--cph-pt, var(--ki)); }
.cph-pc .top i.dk { --cph-pt: #fff; }
html.dark .cph-pc .top i.dk { --cph-pt: #0a0820; }
.cph-ring { position: relative; width: 70px; height: 70px; }
.cph-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.cph-ring .tr { stroke: var(--ring-track); }
.cph-ring .vl { stroke: var(--k); }
.cph-pc.weak .cph-ring .vl { stroke: var(--gold-fill); }
.cph-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 400 20px/1 var(--num-font); font-weight: 400; color: var(--kn); letter-spacing: .01em; }
.cph-ring b small { font: 700 10px/1 Inter, sans-serif; color: var(--mute); margin: 5px 0 0 1px; }
.cph-pc.weak .cph-ring b { color: var(--gold-num); }
.cph-pc .who { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--body); line-height: 1.25; }
.cph-pc .who svg { flex: none; color: var(--k); }
.cph-pc .ds { font-size: 11px; color: var(--mute); font-weight: 600; line-height: 1.3; }
.cph-pc .ty { width: 100%; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 10.5px; line-height: 1.3; font-weight: 700; color: var(--body); }
.cph-pc .ty b { font: 400 13px/1 var(--num-font); color: var(--kn); }
.cph-dots { display: grid; grid-template-columns: repeat(5, 9px); gap: 4px; justify-content: center; }
.cph-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--mute) 55%, transparent); }
.cph-dots i.r { background: var(--k); border-color: var(--k); }
.cph-dots i.b { border-style: dashed; opacity: .6; }
.cph-pc.weak .cph-dots i.r { background: var(--gold-fill); border-color: var(--gold-fill); }
.cph-key2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--mute); }
.cph-key2 span { display: inline-flex; align-items: center; gap: 5px; }
.cph-key2 i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--mute) 55%, transparent); }
.cph-key2 i.r { background: var(--k); border-color: var(--k); }
.cph-key2 i.b { border-style: dashed; opacity: .6; }
.cph-tot { display: flex; justify-content: space-between; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; font-weight: 700; color: var(--mute); }
.cph-tot b { color: var(--ink); }
.cph-tot .n { font: 400 21px/1 var(--num-font); color: var(--kn); vertical-align: -2px; }
.cph-tot .g { font: 400 21px/1 var(--num-font); color: var(--gold-num); vertical-align: -2px; }

/* ════════ WRITING · ONE HOUR ════════ */
.cph-wtwo { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.cph-wtwo .cph-ppr { padding: 12px 14px; display: flex; flex-direction: column; }
.cph-chart { position: relative; flex: 1; display: grid; place-items: center; border-radius: 10px; background: #fff; overflow: hidden; aspect-ratio: 16 / 9; }
html.dark .cph-chart { background: #0f1430; }
.cph-chart img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cph-chart img.dk { display: none; }
html.dark .cph-chart.has-dk img.lt { display: none; } html.dark .cph-chart.has-dk img.dk { display: block; }
.cph-t1n { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: var(--body); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cph-t2q { flex: 1; margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--ink);
  background: repeating-linear-gradient(transparent 0 25px, color-mix(in srgb, var(--k) 14%, transparent) 25px 26px); }
.cph-t2q::before { content: "“"; font: 400 30px/0 Georgia, serif; color: var(--k); vertical-align: -10px; margin-right: 3px; }
.cph-wft { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; font-weight: 700; color: var(--mute); }
.cph-stamp { position: absolute; right: -8px; top: -12px; z-index: 2; transform: rotate(-9deg); border: 2.5px solid var(--w); border-radius: 12px; padding: 4px 10px 3px; text-align: center; background: var(--paper); color: var(--w-ink); }
.cph-stamp b { display: block; font: 400 24px/1 var(--num-font); color: var(--w-num); }
.cph-stamp small { font-family: var(--lab-font); font-weight: 700; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.cph-tline { margin-top: 14px; }
.cph-tline .bar { display: grid; grid-template-columns: 1fr 2fr; gap: 4px; height: 36px; }
.cph-tline .bar span { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 12px; border-radius: 10px; font-weight: 800; font-size: 12.5px; transform-origin: left; min-width: 0; white-space: nowrap; overflow: hidden; }
.cph-tline .bar .a { background: var(--w-soft); color: var(--w-ink); }
.cph-tline .bar .b { background: var(--w); color: #fff; }
html.dark .cph-tline .bar .b { color: #0a0820; }
.cph-tline .bar span b { font: 400 17px/1 var(--num-font); }
.cph-tline .sc { display: grid; grid-template-columns: 1fr 2fr; margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--mute); }
.cph-tline .sc span:last-child { display: flex; justify-content: space-between; }
.cph-tline .note { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--body); }
.cph-tline .note b { color: var(--w-ink); }

/* ════════ READING · PASSAGE + QUESTION TYPE ════════ */
.cph-psg h3 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.cph-psg .tx { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.62; color: var(--body); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cph-psg .tx .pl { font-family: var(--lab-font); font-weight: 700; font-size: 10px; color: var(--r-ink); margin-right: 6px; }
.cph-q { margin-top: 12px; padding: 11px 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--sub); }
.cph-q .ins { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; color: var(--mute); }
.cph-q p { margin: 0 0 9px; font-size: 14px; font-weight: 600; line-height: 1.42; color: var(--ink); }
.cph-q p .gap { display: inline-block; min-width: 70px; border-bottom: 2px solid var(--k); margin: 0 3px; vertical-align: -2px; }
.cph-op { display: flex; gap: 6px; flex-wrap: wrap; }
.cph-op a { height: 32px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); display: inline-flex; align-items: center; font-weight: 800; font-size: 11.5px; letter-spacing: .04em; color: var(--body) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.cph-op a:hover { border-color: var(--k); transform: translateY(-1px); }
.cph-ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.cph-ol a { display: flex; gap: 8px; align-items: baseline; padding: 6px 9px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--body) !important; text-decoration: none !important; min-width: 0; }
.cph-ol a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cph-ol a b { flex: none; font-weight: 800; color: var(--ki); }
.cph-ol a:hover { border-color: var(--k); }

/* ════════ SPEAKING · EXAMINER CHAT ════════ */
.cph-chat { display: grid; gap: 8px; }
.cph-bub { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.4; min-width: 0; }
.cph-bub .cp-lab { display: block; font-size: 8.5px; color: var(--s-ink); margin-bottom: 3px; }
.cph-bub.ex { justify-self: start; display: flex; gap: 10px; align-items: center; background: var(--sub); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.cph-bub.ex .tx { min-width: 0; }
.cph-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--s); color: #1a0f00; transition: transform .15s; }
.cph-play:hover { transform: scale(1.06); }
.cph-play .pa { display: none; }
.cph-play.on .pl { display: none; } .cph-play.on .pa { display: block; }
.cph-bub.me { justify-self: end; display: flex; align-items: center; gap: 10px; background: var(--s); color: #1a0f00; border-bottom-right-radius: 5px; font-weight: 800; }
.cph-bub.me .rec { position: relative; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.5); display: grid; place-items: center; flex: none; }
.cph-bub.me .lv { display: inline-flex; gap: 2px; align-items: center; height: 16px; }
.cph-bub.me .lv i { width: 3px; height: 100%; border-radius: 2px; background: #1a0f00; opacity: .5; transform: scaleY(var(--h)); }
.cph-bub.cue { justify-self: start; max-width: 94%; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--s); box-shadow: var(--shadow); color: var(--ink); }
.cph-bub.cue b { display: block; }
.cph-bub.cue ul { margin: 5px 0 0; padding-left: 17px; font-size: 12.5px; color: var(--body); }
.cph-bub.cue small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--mute); font-weight: 700; }
.cph-crit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.cph-crit span { display: grid; gap: 2px; padding: 7px 4px 6px; border-radius: 10px; background: var(--sub); border: 1px solid var(--line); text-align: center; font-size: 10.5px; font-weight: 700; color: var(--mute); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cph-crit span b { font: 400 18px/1 var(--num-font); color: var(--s-num); }
.cph-crit span.low { border: 2px solid var(--gold-fill); background: var(--gold-soft); color: var(--gold-txt); padding: 6px 3px 5px; }
.cph-crit span.low b { color: var(--gold-num); }

/* ════════ GRAMMAR · RULE CARD + LEVELS ════════ */
.cph-rule h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.cph-rule h3 small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--mute); letter-spacing: 0; }
.cph-rule .sum { margin: 6px 0 10px; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--body); }
.cph-ex { padding: 9px 12px; border-radius: 12px; background: var(--sub); border: 1px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.cph-ex + .cph-ex { margin-top: 6px; }
.cph-ex em { font-style: normal; font-weight: 800; color: var(--ok); background-image: linear-gradient(var(--gold-fill), var(--gold-fill)); background-size: 100% 2.5px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 1px; }
.cph-ex small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.cph-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cph-langs span { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); }
.cph-langs span.on { background: var(--ok); color: #fff; }
html.dark .cph-langs span.on { color: #04140d; }
.cph-lvh { margin-top: 13px; font-size: 11.5px; font-weight: 700; color: var(--mute); }
.cph-lvl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 7px; }
.cph-lvl a { position: relative; display: grid; gap: 3px; padding: 8px 4px 7px; border-radius: 11px; background: var(--sub); border: 1px solid var(--line); text-align: center; font-size: 10.5px; font-weight: 700; color: var(--mute) !important; text-decoration: none !important; min-width: 0; }
.cph-lvl a b { font: 400 18px/1 var(--num-font); color: var(--ink); }
.cph-lvl a i { display: block; height: 4px; margin: 2px 6px 0; border-radius: 4px; background: var(--ring-track); overflow: hidden; }
.cph-lvl a i::after { content: ""; display: block; height: 100%; background: var(--ok); transform-origin: left; transform: scaleX(var(--v, 0)); }
.cph-lvl a.me { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok) !important; }
.cph-lvl a.me b { color: var(--ok); }
.cph-lvl a.me::after { content: attr(data-me); position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: var(--gold-fill); color: var(--gold-ink); white-space: nowrap; }
.cph-lvl a:hover { border-color: var(--k); }

/* ── motion: once, transform + opacity only ── */
@media (prefers-reduced-motion: no-preference) {
  html:not(.lk-lite) .cph-ppr, html:not(.lk-lite) .cph-wtwo > .cph-ppr { animation: cphUp .6s cubic-bezier(.2,.8,.2,1) .08s both; }
  html:not(.lk-lite) .cph-wtwo > .cph-ppr + .cph-ppr { animation-delay: .18s; }
  html:not(.lk-lite) .cph-prog .bar i, html:not(.lk-lite) .cph-tline .bar span, html:not(.lk-lite) .cph-lvl a i::after { animation: cphGrow .9s cubic-bezier(.2,.8,.2,1) .3s both; }
  html:not(.lk-lite) .cph-tline .bar .b { animation-delay: .5s; }
  html:not(.lk-lite) .cph-pc { animation: cphUp .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.2s + var(--i, 0) * .09s); }
  html:not(.lk-lite) .cph-dots i { animation: cphPop .35s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.55s + var(--d, 0) * 16ms); }
  html:not(.lk-lite) .cph-slip { animation: cphUp .5s cubic-bezier(.2,.8,.2,1) .7s both; }
  html:not(.lk-lite) .cph-bub { animation: cphUp .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.2s + var(--i, 0) * .35s); }
  html:not(.lk-lite) .cph-op a, html:not(.lk-lite) .cph-ol li { animation: cphPop .4s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.55s + var(--i, 0) * .08s); }
  html:not(.lk-lite) .cph-stamp { animation: cphStamp .5s cubic-bezier(.2,.8,.2,1) .9s both; }
}
@keyframes cphUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cphPop { 0% { opacity: 0; transform: scale(.5); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes cphGrow { from { transform: scaleX(0); } }
@keyframes cphStamp { 0% { opacity: 0; transform: scale(.4) rotate(-9deg); } 70% { transform: scale(1.08) rotate(-9deg); } 100% { opacity: 1; transform: scale(1) rotate(-9deg); } }
html.lk-lite .cp .cph { box-shadow: none; }
html.lk-lite .cph-ppr { box-shadow: none; }
html.lk-lite .cp .cph::before { display: none; }

/* ── laptops below 1100, tablets, phones ── */
@media (max-width: 1100px) { .cp .cph h1 { font-size: 36px; } .cp .cph { gap: 26px; padding: 28px; } }
@media (max-width: 1000px) { .cp .cph { grid-template-columns: minmax(0, 1fr); } .cph-lead, .cph-prog { max-width: none; } }
@media (max-width: 760px) {
  .cp .cph { padding: 20px 16px 18px; gap: 20px; border-radius: 20px; }
  .cp .cph::before { width: 360px; height: 360px; right: -140px; top: -170px; }
  .cp .cph h1 { font-size: 29px; line-height: 1.1; margin-top: 10px; }
  .cph-lead { font-size: 14.5px; margin-top: 8px; }
  .cph-acts { margin-top: 18px; gap: 10px 14px; }
  .cph-acts .cp-btn.cph-key { flex: 1 1 100%; }
  .cph-more { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-top: 12px; padding-bottom: 2px; }
  .cph-more::-webkit-scrollbar { display: none; }
  .cph-more > * { flex: none; }
  .cph-more .cp-btn { min-height: 36px; padding: 0 11px; font-size: 12.5px; }
  .cph-more .hint { flex: none; width: auto; white-space: normal; }
  .cph-ppr { padding: 14px 12px; border-radius: 16px; }
  .cph-pb { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .cph-wtwo { grid-template-columns: minmax(0, 1fr); }
  .cph-tline .bar span { font-size: 11.5px; padding: 0 9px; }
  .cph-psg h3 { font-size: 18px; }
  .cph-bub { max-width: 94%; font-size: 13.5px; }
  .cph-crit span { font-size: 9.5px; }
  .cph-lvl a { font-size: 9.5px; padding: 7px 2px 6px; }
  .cph-ex { font-size: 14px; }
}
@media (max-width: 380px) { .cph-chip { font-size: 12px; padding: 0 10px; } .cph-tot { font-size: 12px; } }

/* ── 19. GRAMMAR: the 12-tense map and richer topic cards (16 Nov 2026, owner: "explain every single tense separately") ── */
.cp-gt2 .fm { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--gc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gc) 28%, transparent); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-gt2 .sm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; font-size: 12.5px; line-height: 1.4; font-weight: 500; color: var(--body); }
.cp-tmap .tm { display: flex; flex-direction: column; gap: 10px; }
.cp-tmap .tm-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: stretch; }
.cp-tmap .tm-h { border-radius: 14px; padding: 10px; background: var(--tc); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.cp-tmap .tm-h b { font-size: 15px; } .cp-tmap .tm-h small { font-size: 11.5px; font-weight: 700; opacity: .85; }
.cp-tmap .tm-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cp-tmap .tm-c { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 11px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--tc); text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .15s; }
.cp-tmap a.tm-c:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: var(--tc); }
.cp-tmap .tm-c.soon { opacity: .55; border-style: dashed; }
.cp-tmap .tm-c.done { box-shadow: inset 0 0 0 2px var(--gold-fill); }
.cp-tmap .tm-e { position: absolute; right: 9px; top: 8px; font-size: 17px; }
.cp-tmap .tm-n { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--tc) 80%, var(--ink)); padding-right: 22px; }
.cp-tmap .tm-c b { font-size: 14px; line-height: 1.25; }
.cp-tmap .tm-f { font-size: 12px; color: var(--body); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-tmap .tm-s { font-size: 12px; letter-spacing: 1px; color: var(--line); } .cp-tmap .tm-s i { font-style: normal; } .cp-tmap .tm-s i.on { color: var(--gold-fill); }
html.dark .cp-tmap .tm-n { color: color-mix(in srgb, var(--tc) 55%, #fff); } html.dark .cp-tmap .tm-s { color: rgba(255,255,255,.2); }
.cp-tmap .tm-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; font-weight: 700; color: var(--mute); }
.cp-tmap .tm-more a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 11px; border-radius: 99px; background: var(--sub); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cp-tmap .tm-more a:hover { border-color: var(--ink); }
@media (max-width: 760px) {
  .cp-tmap .tm-row { grid-template-columns: 1fr; gap: 6px; }
  .cp-tmap .tm-h { flex-direction: row; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: 11px; }
  .cp-tmap .tm-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
