:root {
  --red: #d7263d;
  --red-dark: #a91b2e;
  --red-soft: #fdecee;
  --ink: #14151a;
  --muted: #676a75;
  --line: #ebebef;
  --bg: #fafafb;
  --card: #ffffff;
  --gold: #f5a623;
  --green: #17a34a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 21, 26, 0.07);
  --solid: #14151a;          /* dark badges and buttons (white text on top) */
  --nav-bg: rgba(255,255,255,.92);
  --green-soft: var(--green-soft);
  --input-border: #b9bac4;
  --btn-border: #c3c5ce;     /* outline of secondary buttons */
  color-scheme: light;
}
/* ---------- Dark mode (chosen with the switch in the top-right corner) ---------- */
html[data-theme="dark"] {
  --red: #ef4458;
  --red-dark: #c92b40;
  --red-soft: rgba(239, 68, 88, .16);
  --ink: #eceef3;
  --muted: #a1a6b3;
  --line: #33292a;
  --bg: #120d0d;
  --card: #1b1516;
  --green: #34c46a;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --solid: #3b3133;
  --nav-bg: rgba(18,13,13,.88);
  --green-soft: rgba(52, 196, 106, .16);
  --input-border: #4d4143;
  --btn-border: #65575a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* Windows: keep the page from jumping sideways when a scrollbar appears, and use slim scrollbars */
html { scrollbar-gutter: stable; }
html, .ex-pane, .ex-results { scrollbar-width: thin; scrollbar-color: #c9cad3 transparent; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
#app { flex: 1; }

/* Page backdrop: soft brand-coloured glows and a faint dot grid, fixed behind everything */
:root { --glow-a: rgba(215, 38, 61, .16); --glow-b: rgba(245, 166, 35, .14); --glow-c: rgba(64, 120, 230, .09); --dots: rgba(20, 21, 26, .08); }
/* dark: warm near-black with a brown-red glow from the top and a soft band down the left edge */
html[data-theme="dark"] { --glow-a: rgba(122, 58, 44, .55); --glow-b: rgba(110, 28, 30, .42); --glow-c: rgba(70, 30, 26, .30); --glow-d: rgba(88, 48, 38, .38); --dots: rgba(255, 255, 255, .045); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -8%, var(--glow-a), transparent 70%),
    radial-gradient(760px 480px at 100% 4%, var(--glow-b), transparent 70%),
    radial-gradient(900px 600px at 70% 110%, var(--glow-c), transparent 70%),
    radial-gradient(420px 900px at -4% 45%, var(--glow-d, transparent), transparent 70%),
    radial-gradient(var(--dots) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(#000, rgba(0,0,0,.55));
  mask-image: linear-gradient(#000, rgba(0,0,0,.55));
}

/* Logo */
.logo { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -.4px; }
.logo .mark { width: auto; height: 36px; display: block; } /* the shield (images/logo-mark.png) */
/* On dark backgrounds the shield sits on a small white tile, so its black half stays visible */
.footer .logo .mark, html[data-theme="dark"] .logo .mark { height: 30px; padding: 3px; background: #fff; border-radius: 9px; }
html[data-theme="dark"] .ex-logo .mark { height: 24px; }
.logo .accent { color: var(--red); }

/* Top navigation */
.nav { position: sticky; top: 0; z-index: 30; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1360px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 30px; white-space: nowrap; font-weight: 600; font-size: 17px; color: var(--muted); }
.nav-links a { transition: color .15s; }
/* Mid-size screens: same menu with tighter spacing so it fits on one line */
@media (max-width: 1560px) {
  .nav-inner { gap: 14px; }
  .nav-links { gap: 8px; }
  .su-free { display: none; }
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-lessons { color: var(--red) !important; }
.nav-ico { margin-right: 5px; }
.nav-auth { white-space: nowrap; margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 15px; }
/* A long name shortens to "Hi, Bekhruz Abdu…" instead of pushing Log out off the screen */
.nav-auth { min-width: 0; }
.nav-hi { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-links, .nav-inner .logo, .theme-btn, .nav-auth .btn { flex-shrink: 0; }
@media (max-width: 1400px) and (min-width: 1241px) { .nav-hi { display: none; } } /* too tight for the greeting next to the full menu */
.menu-btn { display: none; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 6px 11px; font-size: 18px; }

/* Buttons */
.btn {
  border: 0; border-radius: 10px; padding: 11px 20px;
  font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  transition: transform .12s, background .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(215,38,61,.25); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-white { background: #fff; color: var(--red); }
.btn-dark { background: var(--solid); color: #fff; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Hero */
.hero { max-width: 1120px; margin: 0 auto; padding: 64px 16px 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 6px 12px; border-radius: 99px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -1.5px; margin: 18px 0 16px; }
.hero h1 span { color: var(--red); }
.hero p.lead { font-size: 18px; color: var(--muted); line-height: 1.6; margin: 0 0 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

.progress-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); position: relative; }
.progress-card::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--red); border-radius: 20px; z-index: -1; }
.progress-card h3 { margin: 0 0 4px; font-size: 17px; }
.band-ring { display: flex; align-items: center; gap: 18px; margin: 20px 0; }
.ring { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.ring-inner { width: 76px; height: 76px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-weight: 800; font-size: 26px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-stats div { background: var(--bg); border-radius: 10px; padding: 10px; text-align: center; }
.mini-stats b { display: block; font-size: 20px; }
.mini-stats span { font-size: 11px; color: var(--muted); font-weight: 600; }

/* Sections */
.section { max-width: 1120px; margin: 0 auto; padding: 40px 16px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; letter-spacing: -.6px; margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skill {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.skill:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: var(--shadow); }
.skill .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--red-soft); display: grid; place-items: center; font-size: 22px; }
/* Home page: the four skill icons float gently, one after another, and wiggle when the card is hovered */
.skills-home .ico { animation: ico-float 2.4s ease-in-out infinite; }
.skills-home > :nth-child(2) .ico { animation-delay: -.6s; }
.skills-home > :nth-child(3) .ico { animation-delay: -1.2s; }
.skills-home > :nth-child(4) .ico { animation-delay: -1.8s; }
.skills-home > :hover .ico { animation: ico-wiggle .7s ease-in-out infinite; }
@keyframes ico-float { 0%, 100% { transform: translateY(0) rotate(0) scale(1); } 25% { transform: translateY(-12px) rotate(-8deg) scale(1.06); } 50% { transform: translateY(0) rotate(0) scale(1); } 75% { transform: translateY(-6px) rotate(8deg) scale(1.03); } }
@keyframes ico-wiggle { 0%, 100% { transform: scale(1.1) rotate(0); } 25% { transform: scale(1.12) rotate(-9deg); } 75% { transform: scale(1.12) rotate(9deg); } }
@media (prefers-reduced-motion: reduce) { .skills-home .ico, .skills-home > :hover .ico { animation: none; } }
.skill h3 { margin: 4px 0 0; font-size: 18px; }
.skill p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.skill .go { color: var(--red); font-weight: 700; font-size: 14px; }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tool { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 700; font-size: 15px; transition: border-color .15s; }
.tool:hover { border-color: var(--red); }
.tool small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.tool .ico { font-size: 22px; }

.cta-band { max-width: 1088px; margin: 24px auto 56px; border-radius: 22px; background: var(--red); color: #fff; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.5px; }
.cta-band p { margin: 0; opacity: .9; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tabs .tab { font-family: inherit; }

/* Inner pages */
.page { max-width: 860px; margin: 0 auto; padding: 28px 16px 48px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -.4px; }
.back { color: var(--muted); font-size: 14px; }
.back:hover { color: var(--red); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px;
}
.card h3 { margin-top: 0; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--red-soft); color: var(--red); }

/* Flashcards */
.flashcard {
  perspective: 1000px; height: 240px; cursor: pointer; margin-bottom: 16px;
}
.flashcard-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .5s; transform-style: preserve-3d;
}
.flashcard.flipped .flashcard-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px; text-align: center;
}
.front { background: var(--red); color: #fff; }
.front .word { font-size: 34px; font-weight: 800; }
.back-face { background: var(--card); border: 2px solid var(--red); transform: rotateY(180deg); }
.back-face .def { font-size: 17px; font-weight: 600; }
.back-face .ex { color: var(--muted); font-style: italic; margin-top: 10px; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 16px; }
.progress > div { height: 100%; background: var(--red); transition: width .3s; }

/* Quiz */
.passage { line-height: 1.75; }
.passage p { margin: 0 0 12px; }
.q { padding: 14px 0; border-top: 1px solid var(--line); }
.q:first-child { border-top: 0; }
.q-text { font-weight: 600; margin-bottom: 8px; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opt {
  display: flex; gap: 10px; align-items: center;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.opt:hover { background: var(--bg); }
.opt input { accent-color: var(--red); }
.opt.correct { border-color: var(--green); background: var(--green-soft); }
.opt.wrong { border-color: var(--red); background: var(--red-soft); }
input[type=text], textarea, select {
  width: 100%; font: inherit; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card);
}
input[type=text]:focus, textarea:focus, select:focus { outline: 2px solid var(--red); border-color: transparent; }
textarea { resize: vertical; min-height: 220px; line-height: 1.6; }
.fill.correct { border-color: var(--green); background: var(--green-soft); }
.fill.wrong { border-color: var(--red); background: var(--red-soft); }
.score-box {
  text-align: center; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; margin-bottom: 16px;
}
.score-box .big { font-size: 44px; font-weight: 800; }

/* Timer */
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 20px; color: var(--red); }
.timer.big { font-size: 56px; text-align: center; margin: 12px 0; }

/* Spin wheel */
.wheel-wrap { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin: 0 auto 20px; }
.wheel { width: 100%; height: 100%; border-radius: 50%; transition: transform 4s cubic-bezier(.17,.67,.2,1); box-shadow: var(--shadow); }
.pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 26px solid #1d1d1f; z-index: 2;
}
.tabs { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.tab { border: 0; background: transparent; padding: 8px 16px; border-radius: 7px; font-weight: 600; color: var(--muted); }
.tab.active { background: var(--red); color: #fff; }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.medal { font-size: 18px; }
tr.lb-you td { background: var(--red-soft); }
.lb-me { font-size: 15px; margin: 0 0 10px; }

.feedback li { margin-bottom: 6px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.stat { background: var(--bg); border-radius: 10px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }

.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { background: var(--card); border-radius: 14px; padding: 28px; width: min(400px, 100%); position: relative; }
.modal-card h2 { margin-top: 0; }
.modal-card label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 26px; color: var(--muted); }


/* Footer */
.footer { background: #14151a; color: #c9cad1; font-size: 14px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 16px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer .logo { color: #fff; }
.footer-brand p { max-width: 280px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: #fff; margin: 0 0 4px; }
.footer-col a:hover { color: #fff; }
.footer-legal a { color: #b9bbc6; }
.footer-legal a:hover { color: #fff; }
.footer-bottom { max-width: 1120px; margin: 0 auto; padding: 18px 16px 30px; border-top: 1px solid #2a2b33; font-size: 12px; color: #8b8d97; }
.disclaimer { line-height: 1.6; max-width: 760px; }

/* Mobile */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 40px; }
  .progress-card { margin-right: 14px; }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1240px) {
  .menu-btn { display: block; }
  .nav-inner { gap: 12px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 12px 14px; gap: 6px; }
  .nav-inner .logo { font-size: 17px; gap: 6px; }
  .nav-inner .theme-btn + .nav-auth { margin-left: 0; }
  .nav-inner .theme-btn span { width: 24px; height: 24px; font-size: 12px; }
  .nav-inner .nav-auth .btn { padding: 8px 12px; }
  .su-free { display: none; }
}
@media (max-width: 760px) {
  .nav-auth .btn-ghost { display: none; }
  .nav-auth .btn { padding: 8px 14px; }
  .skills { grid-template-columns: 1fr; }
  .cta-band { margin: 16px; padding: 28px 22px; }
}

/* Empty state */
.empty { text-align: center; padding: 56px 20px; }
.empty-ico { font-size: 44px; width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 20px; background: var(--red-soft); display: grid; place-items: center; }
.empty h3 { margin: 0 0 6px; }
.empty p { margin: 0; }

/* Cambridge books */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.book {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.book:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: var(--shadow); }
.book-num { width: 52px; height: 64px; border-radius: 6px 10px 10px 6px; background: var(--red); color: #fff; font-weight: 800; font-size: 22px; display: grid; place-items: center; box-shadow: inset 6px 0 0 rgba(0,0,0,.18); }
.book-title { font-weight: 700; margin-top: 6px; }
.book-status { font-size: 12px; color: var(--muted); }

/* Cambridge tests */
.tests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.test-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.test-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.test-badge { background: var(--solid); color: #fff; font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 99px; }
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.skill-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 16px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  transition: transform .15s, border-color .15s, background .15s;
}
.skill-tile:hover { transform: translateY(-2px); border-color: var(--red); background: var(--card); }
.skill-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 4px; }
.skill-tile.listening .skill-ico { background: #e8f1fe; }
.skill-tile.reading .skill-ico { background: #e9f8ee; }
.skill-tile.writing .skill-ico { background: #fff4e0; }
.skill-tile.speaking .skill-ico { background: var(--red-soft); }
.skill-name { font-weight: 700; font-size: 15px; }
.skill-status { font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .tests { grid-template-columns: 1fr; } }

/* Reading test list */
.test-list { display: flex; flex-direction: column; gap: 12px; }
.test-row { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; flex-wrap: wrap; }
.test-row-ico { width: 46px; height: 46px; border-radius: 12px; background: #e9f8ee; display: grid; place-items: center; font-size: 22px; }
.test-row-info { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.test-row-info span { font-size: 13px; }
.p-badge { display: inline-block; vertical-align: middle; font-size: 12px !important; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--red-soft); color: var(--red); margin-right: 6px; white-space: nowrap; }

/* ================= CDI exam ================= */
body.exam-open .nav, body.exam-open .footer { display: none; }
.exam { position: fixed; inset: 0; z-index: 40; background: var(--card); display: flex; flex-direction: column; font-size: 15px; }
.ex-top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.ex-logo { font-size: 16px; }
.ex-logo .mark { height: 30px; }
.ex-title { font-weight: 700; }
.ex-title span { color: var(--muted); font-weight: 500; }
.ex-timer { margin-left: auto; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; background: var(--bg); border: 1px solid var(--line); padding: 6px 14px; border-radius: 8px; }
.ex-timer:has(.ex-timer-start) { padding: 0; border: 0; background: none; }
.ex-timer-start { font: inherit; font-weight: 800; cursor: pointer; color: #fff; background: var(--solid); border: 0; padding: 6px 14px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.ex-timer-start:hover { filter: brightness(1.08); }
.ex-timer.low { color: #fff; background: var(--red); border-color: var(--red); }
.ex-actions { display: flex; gap: 8px; }
.ex-actions .btn { padding: 8px 14px; }
.ex-switch { display: none; }
.ex-fs { width: 40px; height: 38px; flex: none; border: 1px solid var(--line); background: var(--card); color: var(--solid); border-radius: 8px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.ex-fs:hover { border-color: var(--ink); }
.ex-fs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ex-fs .fs-exit, .ex-fs.on .fs-enter { display: none; }
.ex-fs.on .fs-exit { display: block; }

.ex-main { flex: 1; display: flex; min-height: 0; background: var(--bg); }
.ex-pane { overflow-y: auto; padding: 24px 28px 40px; }
.ex-passage { flex: 0 0 50%; background: var(--card); line-height: 1.75; }
.ex-questions { flex: 1; min-width: 0; }
.ex-divider { flex: 0 0 10px; cursor: col-resize; background: var(--line); display: grid; place-items: center; }
.ex-divider span { width: 4px; height: 40px; border-radius: 4px; background: #c5c6cf; }
.ex-divider:hover span { background: var(--red); }

.p-part { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--red); }
.p-ins { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.p-title { font-size: 24px; margin: 0 0 16px; letter-spacing: -.3px; }
.ex-passage p { margin: 0 0 14px; }
.p-lab { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--solid); color: #fff; font-size: 13px; margin-right: 8px; }
mark.hl { background: #fff176; cursor: pointer; }
mark.ev { background: #ffd5db; outline: 2px solid var(--red); border-radius: 3px; }
.hl-bar { position: fixed; z-index: 60; display: flex; gap: 2px; background: var(--solid); border-radius: 10px; padding: 4px; box-shadow: var(--shadow); }
.hl-bar[hidden], .note-pop[hidden], .note-pop [hidden] { display: none; }
.hl-bar button { border: 0; background: none; color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.hl-bar button:hover { background: rgba(255,255,255,.14); }
mark.hl.has-note { background: #ffe0a3; border-bottom: 2px solid #f59e0b; }
mark.hl.note-end::after { content: "📝"; font-size: .75em; margin-left: 2px; vertical-align: super; }
.note-pop { position: fixed; z-index: 65; width: min(320px, calc(100vw - 16px)); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(20,21,26,.2); padding: 12px; }
.note-pop-head { font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.note-pop-head .muted { font-weight: 500; font-style: italic; }
.note-pop textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; resize: vertical; min-height: 80px; }
.note-pop textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
.note-pop-actions { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.note-pop-actions .btn { padding: 7px 12px; font-size: 13px; }
.note-pop-actions .spacer { flex: 1; }

.qg { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.qg-head h4 { margin: 0 0 6px; font-size: 16px; }
.qg-ins { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.qg-ins p { margin: 0 0 6px; }
.qg-ins p:last-child { margin-bottom: 0; }
.qg-key { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 6px 0 2px 18px; }
.qg-key b { color: var(--ink); }
.qg-title { text-align: center; font-size: 15px; margin: 4px 0 12px; }
.gap-text { line-height: 2.4; }
.gap-wrap { display: inline-block; }
.gap { width: 130px; display: inline-block; vertical-align: middle; padding: 3px 8px; border: 1px solid var(--input-border); border-radius: 6px; font: inherit; line-height: 1.4; text-align: center; background: var(--card); }
.gap::placeholder { color: #9a9ca6; font-weight: 700; }
.gap:focus { outline: 2px solid var(--red); border-color: transparent; }
.gap.ok { border-color: var(--green); background: var(--green-soft); }
.gap.bad { border-color: var(--red); background: var(--red-soft); }
.q-table { border-collapse: collapse; width: 100%; line-height: 1.6; }
.q-table th, .q-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; font-size: 14px; }
.q-table th { background: var(--bg); text-transform: none; letter-spacing: 0; color: var(--ink); }
.word-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 14px; background: var(--bg); }
.wb-title { font-weight: 700; font-size: 13px; margin-bottom: 8px; text-align: center; }
.wb-words { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.word { background: var(--card); border: 1px solid var(--input-border); border-radius: 6px; padding: 4px 10px; cursor: grab; user-select: none; font-size: 14px; }
.word:hover { border-color: var(--red); color: var(--red); }
.word.used { display: none; }
.wb-empty { display: none; font-size: 13px; color: var(--muted); }
.wb-words:not(:has(.word:not(.used))) .wb-empty { display: inline; }
.mo { font-size: 14px; padding: 3px 0; }
.mo b { display: inline-block; width: 22px; }

.q-item { padding: 12px 0; border-top: 1px solid var(--line); }
.qg .q-item:first-of-type { border-top: 0; padding-top: 0; }
.q-line { display: flex; gap: 10px; align-items: flex-start; }
.qn { flex-shrink: 0; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 6px; background: var(--solid); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.q-text { flex: 1; padding-top: 3px; line-height: 1.5; }
.q-flag { border: 0; background: none; color: #c5c6cf; font-size: 16px; padding: 2px 4px; }
.q-flag.on { color: var(--gold); }
.q-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 38px; }
.q-opts.col { flex-direction: column; }
.q-opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 14px; background: var(--card); }
.q-opt:hover { background: var(--bg); }
.q-opt input { accent-color: var(--red); margin: 0; }
.q-opt.is-answer { border-color: var(--green); background: var(--green-soft); }
.q-opt.is-wrong { border-color: var(--red); background: var(--red-soft); }
.m-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.m-chip { display: inline-block; background: var(--card); border: 1px solid var(--input-border); border-radius: 6px; padding: 5px 10px; cursor: grab; user-select: none; font-size: 14px; line-height: 1.4; }
.m-chip b { display: inline-block; min-width: 26px; }
.m-chip:hover, .m-chip.picked { border-color: var(--red); color: var(--red); }
.m-chip.picked { box-shadow: 0 0 0 2px var(--red-soft); }
.m-chip.dragging { opacity: 0.4; }
.m-bank.over { border-color: var(--red); background: var(--red-soft); }
.m-drop { margin: 8px 0 0 34px; min-height: 38px; padding: 4px; border: 2px dashed #c9cad3; border-radius: 8px; display: flex; align-items: center; }
.m-drop.filled { border-style: solid; border-color: var(--line); }
.m-drop.over, .m-picking .m-drop { border-color: var(--red); background: var(--red-soft); }
.m-picking .m-drop { cursor: pointer; }
.m-drop.ok { border: 2px solid var(--green); background: var(--green-soft); }
.m-drop.bad { border: 2px solid var(--red); background: var(--red-soft); }
.m-drop .m-chip { cursor: grab; }
.p-drop { margin: 18px 0 8px; gap: 8px; }
.p-drop-n { flex: none; min-width: 26px; height: 26px; border-radius: 6px; background: var(--solid); color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.m-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.m-ph { color: var(--muted); font-size: 13px; padding: 0 8px; }
.q-select { width: auto; min-width: 70px; padding: 4px 8px; font-weight: 700; }
.q-select.ok { border-color: var(--green); background: var(--green-soft); }
.q-select.bad { border-color: var(--red); background: var(--red-soft); }

.rv { margin: 12px 0 0 38px; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.55; border-left: 4px solid; }
.qg > .rv { margin-left: 0; }
.rv.ok { background: var(--green-soft); border-color: var(--green); }
.rv.bad { background: var(--red-soft); border-color: var(--red); }
.rv-why { margin-top: 6px; color: #33343b; }
.rv-loc { margin-top: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.rv-loc:hover { border-color: var(--red); color: var(--red); }

.ex-nav { display: flex; align-items: stretch; gap: 8px; border-top: 1px solid var(--line); padding: 8px 12px; background: var(--card); overflow-x: auto; }
.nav-part { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 6px; flex-shrink: 0; }
.nav-part.active { border-color: var(--ink); }
.nav-part-btn { border: 0; background: none; font-weight: 800; font-size: 14px; padding: 4px 8px; display: flex; flex-direction: column; align-items: flex-start; }
.nav-part-btn small { font-weight: 500; color: var(--muted); font-size: 11px; }
.nav-nums { display: flex; gap: 4px; flex-wrap: nowrap; }
.nav-n { position: relative; width: 32px; height: 32px; border-radius: 6px; border: 1px solid #c5c6cf; background: var(--card); font-weight: 700; font-size: 13px; }
.nav-n.answered { background: var(--solid); color: #fff; border-color: var(--ink); }
.nav-n.current { outline: 2px solid var(--red); outline-offset: 1px; }
.nav-n.flagged::after { content: ""; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }
.nav-n.ok { background: var(--green); border-color: var(--green); color: #fff; }
.nav-n.bad { background: var(--red); border-color: var(--red); color: #fff; }
.nav-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.nav-tool { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 7px 12px; font-weight: 700; font-size: 14px; }
.nav-tool.on { background: var(--gold); border-color: var(--gold); color: #fff; }

.ex-results { flex: 1; overflow-y: auto; padding: 32px 16px; max-width: 720px; margin: 0 auto; width: 100%; }
.res-table tr.ok td:last-child { color: var(--green); font-weight: 800; }
.res-table tr.bad td:last-child { color: var(--red); font-weight: 800; }

@media (max-width: 800px) {
  .ex-top { flex-wrap: wrap; gap: 8px 12px; position: relative; padding-right: 64px; }
  .ex-top .ex-set-wrap { position: absolute; top: 10px; right: 12px; }
  .ex-top .ex-fs { position: absolute; top: 10px; right: 12px; }
  .ex-top:has(.ex-set-wrap) .ex-fs { right: 60px; }
  .ex-top:has(.ex-set-wrap):has(.ex-fs) { padding-right: 112px; }
  .ex-logo { display: none; }
  .ex-timer { font-size: 15px; padding: 4px 10px; }
  .ex-actions { width: 100%; }
  .ex-actions .btn { flex: 1; }
  .ex-switch { display: flex; border-bottom: 1px solid var(--line); }
  .ex-switch[hidden] { display: none; }
  .ex-switch button { flex: 1; border: 0; background: var(--card); padding: 10px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
  .ex-switch button.active { color: var(--red); border-bottom-color: var(--red); }
  .ex-divider { display: none; }
  .ex-main[data-view="passage"] .ex-questions, .ex-main[data-view="questions"] .ex-passage { display: none; }
  .ex-passage { flex: 1 1 auto !important; }
  .ex-pane { padding: 18px 16px 32px; }
  .q-opts, .rv { margin-left: 0; }
  .nav-tool#navFlag { font-size: 0; padding: 7px 10px; }
  .nav-tool#navFlag::before { content: "⚑"; font-size: 14px; }
}

.notes { margin: 0; padding-left: 20px; line-height: 2.3; }
.notes ul { padding-left: 22px; list-style: "–  "; }

/* ---------- Practice / mock modes ---------- */
.test-row-actions { display: flex; gap: 8px; margin-left: auto; }
.ex-mode { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: 6px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.ex-mode.mock { background: var(--solid); color: #fff; border-color: var(--ink); }
.mock-intro h3 { margin-top: 0; }
.mock-rules { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.mock-rules li { display: flex; gap: 10px; line-height: 1.5; }
.mock-rules li span { flex: none; width: 24px; text-align: center; }
.mock-leaves { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--green); }
.mock-leaves.bad { color: var(--red); }
/* Full mock tests (mock.js) */
.mock-card-list { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.r-actions.one { grid-template-columns: 1fr; }
.mock-done { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--bg); }
.mock-table td { vertical-align: middle; }
.mock-table td:last-child { text-align: right; }
.mock-table .btn { padding: 7px 12px; font-size: 13px; white-space: nowrap; }
.mock-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 16px; border-radius: 12px; overflow: hidden; background: #000; }
.mock-video iframe, .mock-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ex-toast { position: fixed; left: 50%; top: 72px; transform: translateX(-50%); background: var(--solid); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 80; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }
.ex-block { position: fixed; inset: 0; background: rgba(20, 21, 26, 0.75); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 16px; }
.ex-block-card { background: var(--card); border-radius: 14px; padding: 28px; width: min(420px, 100%); text-align: center; }
.ex-block-card h3 { margin: 8px 0; }
.ex-block-card .empty-ico { margin: 0 auto; }
.ex-dialog-btns { justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ex-auto-note { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--red); }

/* ---------- Reading test: text size & colour settings ---------- */
.ex-set-wrap { position: relative; }
.ex-set-btn { width: 40px; height: 38px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.ex-set-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--solid); }
.ex-set-btn:hover, .ex-set-btn.on { border-color: var(--ink); }
.ex-set { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(20,21,26,.16); padding: 8px; width: 270px; color: var(--ink); }
.ex-set-page { display: none; }
.ex-set[data-page="menu"] [data-for="menu"], .ex-set[data-page="size"] [data-for="size"], .ex-set[data-page="contrast"] [data-for="contrast"] { display: block; }
.ex-set-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.ex-set-item:hover { background: var(--bg); }
.ex-set-item > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ex-set-item b { font-size: 15px; }
.ex-set-item small { font-size: 12px; color: var(--muted); }
.ex-set-item i { font-style: normal; font-size: 20px; color: var(--muted); }
.ex-set-ico { width: 34px; height: 34px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 17px; grid-auto-flow: column; align-items: baseline; justify-content: center; }
.ex-set-ico small { font-size: 11px; }
.ex-set-back { border: 0; background: none; font: inherit; font-weight: 800; font-size: 15px; padding: 8px 10px 10px; cursor: pointer; color: inherit; }
.ex-set-back:hover { color: var(--red); }
.ex-set-col { display: grid; gap: 6px; padding: 0 2px 2px; }
.ex-set-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); text-align: left; }
.ex-set-opt:hover { border-color: var(--ink); }
.ex-set-opt.on { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.ex-set-opt .sz { width: 34px; text-align: center; font-weight: 800; line-height: 1; }
.ex-set-opt .sw { width: 34px; height: 26px; border-radius: 6px; border: 1px solid #c9cad3; display: grid; place-items: center; font-weight: 800; font-size: 13px; }

/* Text size: scales everything inside the passage and question panes */
.ex-main[data-size="l"] .ex-pane > * { zoom: 1.18; }
.ex-main[data-size="xl"] .ex-pane > * { zoom: 1.36; }

/* Colours */
.ex-main[data-theme="dark"]   { --t-bg: #000; --t-card: #121212; --t-fg: #fff;    --t-muted: #d0d0d0; --t-line: #4a4a4a; }
.ex-main[data-theme="yellow"] { --t-bg: #000; --t-card: #121212; --t-fg: #ffe600; --t-muted: #fff3a0; --t-line: #5a5520; }
.ex-main[data-theme="cream"]  { --t-bg: #fbf3dc; --t-card: #fffaeb; --t-fg: #1a1a1a; --t-muted: #55524a; --t-line: #e3d7b3; }
.ex-main:is([data-theme="dark"], [data-theme="yellow"], [data-theme="cream"]) { --muted: var(--t-muted); --line: var(--t-line); --bg: var(--t-card); background: var(--t-bg); color: var(--t-fg); }
.ex-main:is([data-theme="dark"], [data-theme="yellow"], [data-theme="cream"]) :is(.ex-passage, .ex-questions) { background: var(--t-bg); color: var(--t-fg); }
.ex-main:is([data-theme="dark"], [data-theme="yellow"], [data-theme="cream"]) :is(.qg, .gap, .word, .q-opt, .m-chip, .rv-loc, .q-select, .q-table td) { background: var(--t-card); color: var(--t-fg); border-color: var(--t-line); }
.ex-main:is([data-theme="dark"], [data-theme="yellow"], [data-theme="cream"]) :is(.q-table th, .rv-why) { color: var(--t-fg); }
/* Dark backgrounds: flip the dark number badges, and use see-through green/red for marking */
.ex-main:is([data-theme="dark"], [data-theme="yellow"]) :is(.qn, .p-lab, .p-drop-n) { background: var(--t-fg); color: #000; }
.ex-main:is([data-theme="dark"], [data-theme="yellow"]) :is(.gap.ok, .q-opt.is-answer, .m-drop.ok, .q-select.ok, .rv.ok) { background: rgba(23, 163, 74, .28); }
.ex-main:is([data-theme="dark"], [data-theme="yellow"]) :is(.gap.bad, .q-opt.is-wrong, .m-drop.bad, .q-select.bad, .rv.bad) { background: rgba(215, 38, 61, .32); }
.ex-main:is([data-theme="dark"], [data-theme="yellow"]) :is(.m-drop.over, .m-bank.over) { background: rgba(215, 38, 61, .25); }
.ex-main:is([data-theme="dark"], [data-theme="yellow"]).m-picking .m-drop { background: rgba(215, 38, 61, .25); }
.ex-main:is([data-theme="dark"], [data-theme="yellow"]) :is(mark.hl, mark.ev) { color: #000; }
.ex-main:is([data-theme="dark"], [data-theme="yellow"]) .gap::placeholder { color: var(--t-muted); }
.ex-main:is([data-theme="dark"], [data-theme="yellow"]) .ex-divider span { background: #777; }

/* ---------- Writing ---------- */
.w-section { margin-top: 26px; }
.w-section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.w-section-head h2 { margin: 0; font-size: 22px; }
.w-section-head .muted { font-size: 14px; }
.w-task { line-height: 1.7; }
.w-ins { margin: 10px 0; }
.w-prompt { border: 2px solid var(--ink); border-radius: 6px; padding: 16px 18px; margin: 14px 0; font-weight: 600; line-height: 1.65; background: var(--card); color: var(--ink); }
.w-img { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; margin: 6px 0 12px; }
.w-answer { display: flex; flex-direction: column; padding: 16px 20px 16px; }
.w-answer textarea { flex: 1; width: 100%; box-sizing: border-box; resize: none; min-height: 300px; font: inherit; font-size: 16px; line-height: 1.75; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.w-answer textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
.w-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px 0; font-size: 15px; }
.w-foot .ok b { color: var(--green); }
#wCount.ok { color: var(--green); }
.w-essay { line-height: 1.75; white-space: normal; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.w-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.w-card { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.w-card:hover { transform: translateY(-2px); border-color: var(--red); }
.w-card b { font-size: 22px; flex: 1; }
.w-card-ico { width: 60px; height: 60px; border-radius: 14px; background: var(--red-soft); display: grid; place-items: center; font-size: 28px; flex: none; }
.w-card-go { font-size: 22px; font-weight: 700; color: var(--red); }
.w-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.w-filters input { flex: 1; min-width: 220px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); }
.w-filters select { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); }
.w-filters input:focus, .w-filters select:focus { outline: 2px solid var(--red); border-color: transparent; }
.w-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.w-chips button { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.w-chips button:hover { border-color: var(--ink); color: var(--ink); }
.w-chips button.on { background: var(--solid); border-color: var(--solid); color: #fff; }
.w-count { font-size: 13px; margin: 4px 0 10px; }
.w-row { color: inherit; }
.w-row:hover { border-color: var(--red); }
.w-num { width: 40px; height: 40px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-weight: 800; display: grid; place-items: center; flex: none; }
.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.w-tcard { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.w-tcard:hover { transform: translateY(-2px); border-color: var(--red); box-shadow: var(--shadow); }
.w-tcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.w-tcard-top .w-num { width: 34px; height: 34px; border-radius: 9px; font-size: 14px; }
.w-type { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.w-tcard-text { margin: 0; flex: 1; font-weight: 600; line-height: 1.55; font-size: 17px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.w-tcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.w-go { color: var(--red); font-weight: 700; white-space: nowrap; }
.page.page-wide { max-width: 1400px; padding-left: 24px; padding-right: 24px; }
.w-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.w-topic { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; color: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.w-topic:hover { transform: translateY(-2px); border-color: var(--red); box-shadow: var(--shadow); }
.w-topic-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft); display: grid; place-items: center; font-size: 26px; margin-bottom: 6px; }
.w-topic-name { font-size: 19px; font-weight: 800; }
.w-topic-count { font-size: 14px; color: var(--muted); }
.w-topic.all { background: var(--solid); border-color: var(--solid); color: #fff; }
.w-topic.all .w-topic-ico { background: rgba(255,255,255,.14); }
.w-topic.all .w-topic-count { color: #c9cad3; }
.page-wide .w-filters input, .page-wide .w-filters select { font-size: 16px; }
.w-topic-hint { font-size: 14px; color: var(--muted); line-height: 1.4; }
.w-topic.all .w-topic-hint { color: #c9cad3; }
.w-thumb { margin: -20px -20px 4px; height: 170px; border-bottom: 1px solid var(--line); background: #fff; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; display: grid; place-items: center; }
.w-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
.w-task .w-img { display: block; width: 100%; background: #fff; }
.w-topics.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .w-topics.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .w-topics.cols-3 { grid-template-columns: 1fr; } }
/* Reading tests as cards */
.r-card:hover { transform: none; }
.r-ico { width: 40px; height: 40px; border-radius: 10px; background: #e9f8ee; display: grid; place-items: center; font-size: 20px; }
.r-title { margin: 2px 0 0; font-size: 20px; line-height: 1.3; }
.r-preview { margin: 0; flex: 1; color: var(--muted); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* ---------- DSAT Practice (dsat.js) ---------- */
.dsat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.dsat-sec h3 small { font-size: 15px; font-weight: 600; }
.dsat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
.dsat-chips span { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); }
.dsat-chips small { color: var(--muted); font-weight: 600; margin-left: 2px; }
.dsat-find { width: 100%; max-width: 420px; box-sizing: border-box; font: inherit; padding: 10px 14px; border: 1px solid var(--input-border); border-radius: 10px; background: var(--card); color: var(--ink); margin-bottom: 14px; }
.dsat-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dsat-word { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.dsat-word b { font-size: 17px; }
.dsat-word i { font-size: 14px; }
.dsat-topic { line-height: 1.7; font-size: 16px; }

/* DSAT practice player (dsat.js) – laid out like Bluebook, the real test app */
.dsat-intro { max-width: 760px; }
.dsat-intro-facts { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.dsat-intro-facts b { font-size: 26px; color: var(--ink); margin-right: 4px; }
.dsat-intro ul { line-height: 1.7; padding-left: 20px; }
.dx { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--card); color: var(--ink); --dx-blue: #3253d3; }
.dx-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 2px dashed var(--line); }
.dx-title { display: flex; flex-direction: column; min-width: 0; }
.dx-title b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-title span { font-size: 13px; color: var(--muted); }
.dx-clock { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dx-clock #dxTime { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dx-clock #dxTime.hidden { visibility: hidden; }
.dx-clock.low #dxTime { color: var(--red); }
.dx-hide { font: inherit; font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 99px; border: 1px solid var(--btn-border); background: var(--card); color: var(--ink); cursor: pointer; }
.dx-tools { justify-self: end; }
.dx-main { flex: 1; display: flex; min-height: 0; }
.dx-pane { flex: 1; overflow-y: auto; padding: 28px 32px 40px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.65; }
.dx-passage { border-right: 3px solid var(--line); }
.dx-passage p { margin: 0 0 12px; }
.dx-passage ul { padding-left: 22px; }
.dx-passage li { margin-bottom: 6px; }
.dx-table { border-collapse: collapse; margin: 6px 0 14px; font-family: inherit; }
.dx-table th, .dx-table td { border: 1px solid var(--input-border); padding: 6px 14px; text-align: left; }
.dx-table th { background: var(--bg); }
.dx-qhead { display: flex; align-items: center; gap: 10px; background: var(--bg); border-bottom: 2px dashed var(--line); padding: 4px 6px 4px 0; margin-bottom: 14px; font-family: "Plus Jakarta Sans", sans-serif; }
.dx-num { background: var(--solid); color: #fff; font-weight: 800; font-size: 15px; min-width: 32px; height: 32px; display: grid; place-items: center; }
.dx-mark { font: inherit; font-size: 14px; background: none; border: none; color: var(--ink); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.dx-mark.on { color: var(--red); font-weight: 700; }
.dx-mark-r { font-weight: 800; font-size: 14px; }
.dx-mark-r.ok { color: var(--green); } .dx-mark-r.bad { color: var(--red); }
.dx-abc { margin-left: auto; font: inherit; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--btn-border); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: line-through; }
.dx-abc.on { background: var(--dx-blue); border-color: var(--dx-blue); color: #fff; }
.dx-q { margin-bottom: 16px; }
.dx-opts { display: flex; flex-direction: column; gap: 12px; }
.dx-opt-row { display: flex; align-items: center; gap: 10px; }
.dx-opt { flex: 1; display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--card); border: 1.5px solid var(--input-border); border-radius: 10px; padding: 11px 14px; cursor: pointer; }
.dx-opt:hover:not(:disabled) { border-color: var(--dx-blue); }
.dx-l { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 14px; }
.dx-opt.sel { border: 3px solid var(--dx-blue); padding: 9.5px 12.5px; }
.dx-opt.sel .dx-l { background: var(--dx-blue); border-color: var(--dx-blue); color: #fff; }
.dx-opt.out .dx-t { text-decoration: line-through; opacity: .45; }
.dx-opt.out .dx-l { opacity: .45; }
.dx-opt.right { border: 3px solid var(--green); background: rgba(23, 163, 74, .1); padding: 9.5px 12.5px; }
.dx-opt.right .dx-l { background: var(--green); border-color: var(--green); color: #fff; }
.dx-opt.wrong { border: 3px solid var(--red); background: rgba(215, 38, 61, .08); padding: 9.5px 12.5px; }
.dx-opt.wrong .dx-l { background: var(--red); border-color: var(--red); color: #fff; }
.dx-opt:disabled { cursor: default; }
.dx-x { flex-shrink: 0; width: 52px; font: inherit; font-size: 13px; font-weight: 700; background: none; border: none; color: var(--ink); cursor: pointer; text-decoration: underline; }
.dx-x s { font-size: 15px; }
.dx-why { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; }
.dx-why p { margin: 6px 0 8px; line-height: 1.6; }
.dx-why .muted { font-size: 13px; }
.dx-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 20px; border-top: 2px dashed var(--line); }
.dx-who { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-navbtn { font: inherit; font-weight: 700; font-size: 14px; background: var(--solid); color: #fff; border: none; border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.dx-move { justify-self: end; display: flex; gap: 8px; }
.dx-next { background: var(--dx-blue); color: #fff; border: none; }
.dx-move .btn { border-radius: 99px; padding: 9px 22px; }
.dx-pop { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(20,21,26,.22); padding: 16px 18px; z-index: 60; }
.dx-pop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dx-pop-x { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.dx-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.dx-legend i { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; font-style: normal; font-size: 12px; }
.dx-legend i.cur { border: 2px solid var(--ink); border-radius: 3px; }
.dx-legend i.un { border: 1.5px dashed var(--muted); border-radius: 3px; }
.dx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; }
.dx-cell { position: relative; height: 40px; font: inherit; font-weight: 700; font-size: 14px; border-radius: 6px; border: 1.5px dashed var(--muted); background: var(--card); color: var(--dx-blue); cursor: pointer; }
.dx-cell.done { border: 1.5px solid var(--dx-blue); background: var(--dx-blue); color: #fff; }
.dx-cell.cur { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.dx-cell.ok { border: 1.5px solid var(--green); background: var(--green); color: #fff; }
.dx-cell.bad { border: 1.5px solid var(--red); background: var(--red); color: #fff; }
.dx-cell em { position: absolute; top: -9px; right: -6px; font-style: normal; font-size: 12px; }
.dx-goreview { display: block; margin: 14px auto 0; }
.dx-check { max-width: 640px; margin: 0 auto; padding: 32px 20px; text-align: center; overflow-y: auto; }
.dx-check .card { margin: 18px 0 22px; text-align: left; }
.dsat-res { max-width: 760px; margin: 0 auto; }
.dsat-res-time { font-size: 14px; opacity: .9; margin-top: 6px; }
.dsat-domains h3 { margin: 0 0 12px; font-size: 17px; }
.dsat-dom { display: grid; grid-template-columns: minmax(150px, 230px) 1fr 44px; align-items: center; gap: 12px; padding: 6px 0; font-size: 15px; }
.dsat-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dsat-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.dsat-table tr[data-i] { cursor: pointer; }
.dsat-table tr[data-i]:hover td { background: var(--bg); }
.dsat-res .card { margin-bottom: 16px; }
@media (max-width: 800px) {
  .dx-main { flex-direction: column; overflow-y: auto; }
  .dx-pane { flex: none; overflow: visible; padding: 18px 16px; font-size: 16px; }
  .dx-passage { border-right: none; border-bottom: 3px solid var(--line); }
  .dx-top { padding: 8px 12px; grid-template-columns: 1fr auto auto; }
  .dx-bottom { padding: 8px 12px; grid-template-columns: auto 1fr; }
  .dx-who { display: none; }
  .dx-tools .btn { padding: 7px 10px; font-size: 13px; }
  .dx-move .btn { padding: 8px 14px; }
}

/* DSAT question banks (dsat.js): passages, figures and the Confirm Answer flow */
.dx-figwrap { overflow-x: auto; margin: 0 0 18px; } /* a wide table can be scrolled sideways rather than shrunk too small to read */
.dx-fig { display: block; height: auto; margin: 0 auto; background: #fff; border-radius: 6px; }
.dx-passage .dx-quote { margin-left: 1.6em; }
.dx-passage .dx-credit { text-align: right; font-size: 14px; color: var(--muted); }
.dx-passage .dx-verse { line-height: 1.75; }
.dx-passage sub, .dx-passage sup, .dx-why sub, .dx-why sup, .dx-opt sub, .dx-opt sup { font-size: 70%; line-height: 0; }
.dx-level { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 6px; }
.dx-next:disabled { opacity: .45; cursor: default; }
.dx-why.good { border-color: var(--green); background: rgba(23, 163, 74, .07); }
.dx-why.bad { border-color: var(--red); background: rgba(215, 38, 61, .06); }
.dx-verdict { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.dx-why.good .dx-verdict { color: var(--green); }
.dx-why.bad .dx-verdict { color: var(--red); }
.dx-why p { margin: 8px 0; line-height: 1.6; }
.dx-legend i.okk { background: var(--green); border-radius: 3px; }
.dx-legend i.badd { background: var(--red); border-radius: 3px; }
.dsat-source { font-size: 13px; margin: 0 0 16px; }
.dsat-levels button { font: inherit; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; }
.dsat-levels button small { font-size: 12px; background: var(--bg); border-radius: 99px; padding: 1px 8px; }
.dsat-levels button.on { background: var(--red); border-color: var(--red); color: #fff; }
.dsat-levels button.on small { background: rgba(255,255,255,.2); color: #fff; }
.dsat-skill { margin: 22px 0 10px; font-size: 18px; }
.dsat-skill small { font-size: 14px; font-weight: 600; }
.dsat-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.dsat-pack { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; color: var(--ink); transition: border-color .15s, transform .15s; }
.dsat-pack:hover { border-color: var(--red); transform: translateY(-2px); }
.dsat-pack b { font-size: 17px; }
.dsat-pack .muted { font-size: 13px; }
.dsat-pack .go { color: var(--red); font-weight: 700; font-size: 14px; }
.dsat-pack.done .go { color: var(--green); }
.dsat-pbar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dsat-pbar i { display: block; height: 100%; background: var(--red); border-radius: 99px; }
.dsat-pack.done .dsat-pbar i { background: var(--green); }

/* A diagram / map / plan above a question group (group.image) */
.qg-img { display: block; max-width: min(100%, 520px); height: auto; margin: 10px auto 4px; background: #fff; border-radius: 8px; }

/* Flow-chart completion (reading/listening gap tasks) */
.flow-chart { display: flex; flex-direction: column; align-items: center; text-align: center; }
.flow-chart .fc-box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; max-width: 560px; line-height: 2.2; }
.flow-chart .fc-arrow { color: var(--muted); font-size: 20px; line-height: 1.5; }

/* ---------- Dictation (dictation.js) ---------- */
.dict { max-width: 860px; margin: 0 auto; }
.dict-help { margin: 0 0 16px; }
.dict-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.dict-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 16px; }
.dict-bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s; }
.dict-card { padding: 22px; }
.dict-sp { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); min-height: 16px; }
.dict-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 14px; }
.dict-play { min-width: 150px; }
.dict-controls .btn[hidden] { display: none; }
.dict-keys { font-size: 13px; margin-left: auto; }
.dict-input { width: 100%; box-sizing: border-box; min-height: 0; height: 96px; font: inherit; font-size: 18px; line-height: 1.55; padding: 12px 14px; border: 1px solid var(--input-border); border-radius: 10px; background: var(--card); color: var(--ink); resize: vertical; }
.dict-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.dict-result { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 17px; line-height: 1.9; }
.dict-result.full { border-color: var(--green); }
.dict-score { font-weight: 800; margin-bottom: 4px; }
.dict-result.full .dict-score { color: var(--green); }
.dict-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.dict-lab { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 4px; }
.w-ok { color: var(--green); font-weight: 600; }
.w-miss { color: var(--red); font-weight: 700; background: var(--red-soft); border-radius: 4px; padding: 0 3px; }
.w-extra { color: var(--red); text-decoration: line-through; }
.dict-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dict-result.fail { border-color: var(--red); }
.dict-result.fail .dict-score { color: var(--red); }
.dict-fix { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.dict-need { font-size: 13px; }
.dict-transcript { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); text-align: left; }
.dict-transcript h3 { margin: 0 0 12px; }
.dict-transcript p { margin: 0 0 12px; line-height: 1.7; }
.dict-end { text-align: center; padding: 10px 0; }
.dict-end .big { font-size: 54px; font-weight: 800; color: var(--red); }
.dict-link { margin: 4px 0 14px; }
.l-dict { color: var(--red); font-weight: 700; }
@media (max-width: 640px) { .dict-keys { display: none; } .dict-row { grid-template-columns: 1fr; gap: 0; } }

/* Listening cards: one line per part (Part 1: …, Part 2: …) */
.l-parts { margin: 0; padding: 0; list-style: none; flex: 1; color: var(--muted); font-size: 15px; line-height: 1.7; }
.l-parts li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-meta { font-size: 14px; }
.r-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.r-actions .btn { justify-content: center; text-align: center; padding: 10px 8px; }
/* Listening cards: picture on the left, part badge + last score, topic, red Start */
.l-card { flex-direction: row; align-items: flex-start; gap: 16px; padding: 16px; }
.l-thumb { flex: none; width: 112px; height: 104px; border-radius: 12px; display: grid; place-items: center; font-size: 44px;
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 70% 72%), hsl(calc(var(--h) + 40) 55% 42%)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.l-photo { display: block; object-fit: cover; background: var(--solid); }
.l-thumb span { filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.l-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.l-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.l-badge, .l-status { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); white-space: nowrap; }
.l-badge { color: var(--red); background: var(--red-soft); border-color: transparent; }
.l-status.done { color: var(--green); background: var(--green-soft); border-color: transparent; }
.l-card-title { margin: 2px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -.3px; line-height: 1.3; }
.l-card-meta { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* The whole card opens the test; the Dictation link sits above the card link */
.l-card { position: relative; cursor: pointer; transition: border-color .15s, transform .15s; }
.l-card:hover { border-color: var(--red); transform: translateY(-2px); }
.l-card-link { color: inherit; text-decoration: none; }
.l-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.l-card .l-dict { position: relative; z-index: 1; }
.l-card-actions { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 6px; }
.l-start { position: relative; z-index: 1; padding: 9px 22px; }
.l-start span { margin-left: 6px; }
@media (max-width: 480px) { .l-thumb { width: 84px; height: 84px; font-size: 34px; } }
/* ---------- Accounts: sign up / log in with an email code ---------- */
.modal-card input[type=text], .modal-card input[type=email], .modal-card select { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.modal-card input:focus, .modal-card select:focus { outline: 2px solid var(--red); border-color: transparent; }
.auth-sub { font-size: 14px; margin: -6px 0 14px; line-height: 1.5; }
.auth-test { font-size: 13px; background: #fff7e0; border: 1px solid #f5d98b; color: #6b5200; border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; }
.auth-test b { font-size: 16px; letter-spacing: 2px; }
.auth-err { color: var(--red); font-size: 14px; font-weight: 600; margin: 12px 0 0; }
.auth-btn { width: 100%; justify-content: center; margin-top: 18px; }
.auth-btn:disabled { opacity: .6; cursor: default; }
.auth-google { width: 100%; justify-content: center; gap: 10px; background: var(--card); color: var(--ink); border: 1.5px solid var(--btn-border, var(--line)); margin: 2px 0 0; }
.auth-google:hover { border-color: var(--ink); }
.auth-google:disabled { opacity: .6; cursor: default; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 16px 0 4px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-switch { text-align: center; font-size: 14px; margin: 14px 0 0; }
.auth-switch a { color: var(--red); font-weight: 700; }
.auth-switch a.disabled { color: var(--muted); pointer-events: none; font-weight: 600; }
.auth-hint { text-align: center; font-size: 12px; margin: 6px 0 0; }
/* Login code: one invisible input over the boxes (auth.js), so pasting and autofill fill every box */
.code-entry { position: relative; max-width: calc(var(--n, 8) * 64px); margin: 6px auto 0; }
.code-input { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; margin: 0; padding: 0; border: 0; background: transparent; outline: none; font-size: 16px; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; }
.code-input::selection { background: transparent; }
.code-boxes { display: grid; grid-template-columns: repeat(var(--n, 8), 1fr); gap: 6px; }
.code-timer { text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); margin: 12px 0 0; font-variant-numeric: tabular-nums; }
.code-timer.low { color: var(--red); }
.code-entry.off .code-boxes span { opacity: .45; }
.code-boxes span { height: 50px; display: grid; place-items: center; font-size: 24px; font-weight: 800; border: 1px solid #c9cad3; border-radius: 10px; }
.code-boxes span.on { outline: 2px solid var(--red); border-color: transparent; }
.code-paste { display: block; margin: 10px auto 0; border: 0; background: none; padding: 4px 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--red); cursor: pointer; }
.nav-hi { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-wide .tests { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.q-example { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.cam-passage { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.ex-timer small { font-size: .72em; font-weight: 700; opacity: .7; }
/* Reading card: hover menu with passages */
.skill-menu-wrap { position: relative; padding: 0; }
.skill-main { display: flex; flex-direction: column; gap: 10px; padding: inherit; color: inherit; height: 100%; box-sizing: border-box; }
.skill.skill-menu-wrap { padding: 0; }
.skill-menu-wrap .skill-main { padding: 22px; }
.skill-menu { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .15s, transform .15s; }
.skill-menu-wrap:hover .skill-menu, .skill-menu-wrap:focus-within .skill-menu { opacity: 1; transform: none; pointer-events: auto; }
.skill-menu a { text-align: center; padding: 9px 6px; border-radius: 8px; font-weight: 700; font-size: 14px; background: var(--bg); color: var(--ink); }
.skill-menu a:first-child { background: var(--solid); color: #fff; }
.skill-menu a:hover { background: var(--red); color: #fff; }
@media (hover: none) { .skill-menu { display: none; } }
/* Reading page: passage tabs */
.r-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.r-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 15px; color: var(--muted); }
.r-tabs a small { font-size: 12px; background: var(--bg); border-radius: 99px; padding: 1px 8px; color: var(--muted); }
.r-tabs a:hover { border-color: var(--ink); color: var(--ink); }
.r-tabs a.on { background: var(--solid); border-color: var(--solid); color: #fff; }
.r-tabs a.on small { background: rgba(255,255,255,.18); color: #fff; }
/* ---------- Listening ---------- */
.ex-main.listening .ex-passage, .ex-main.listening .ex-divider { display: none; }
.ex-main.listening .ex-questions { max-width: none; margin: 0; width: 100%; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
.l-part-head { margin-bottom: 14px; }
.l-part-head .p-ins { font-weight: 700; color: var(--ink); }
.l-audio { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.l-audio[hidden] { display: none; }
.l-btn { flex: none; height: 38px; min-width: 42px; border-radius: 10px; border: 0; background: var(--solid); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; padding: 0 12px; }
.l-btn.small { background: var(--card); color: var(--ink); border: 1px solid var(--line); font-size: 13px; }
.l-btn:hover { filter: brightness(1.1); }
.l-seek { flex: 1; min-width: 80px; accent-color: var(--red); }
.l-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; white-space: nowrap; }
.l-vol { display: flex; align-items: center; gap: 4px; font-size: 16px; }
.l-vol input { width: 80px; accent-color: var(--ink); }
.l-live { color: var(--red); font-weight: 700; font-size: 14px; white-space: nowrap; }
.l-ico { background: #e8f1fe; }
@media (max-width: 700px) { .l-vol { display: none; } .l-live { font-size: 12px; white-space: normal; } }
.l-time.loading::after { content: " · loading…"; color: var(--muted); font-weight: 500; }
/* Matching with questions on the left, options on the right */
.m-side { display: grid; grid-template-columns: 1fr minmax(220px, 32%); gap: 20px; align-items: start; }
.m-side-left { order: 2; } /* the options box sits on the right */
.m-side-right { order: 1; }
.m-side-left { position: sticky; top: 0; }
.m-side-left .m-bank { margin-top: 0; }
.m-side-right .m-row { border-bottom: 1px solid var(--line); padding: 10px 0; }
.m-side-right .m-row:last-child { border-bottom: 0; }
.m-row .q-line { align-items: center; }
.m-row .q-text { flex: 1; }
.m-row .m-drop { margin: 0; min-width: 260px; max-width: 45%; flex: none; }
@media (max-width: 800px) { .m-side { grid-template-columns: 1fr; } .m-side-left { position: static; order: 0; } .m-row .q-line { flex-wrap: wrap; } .m-row .m-drop { min-width: 0; max-width: none; width: 100%; } }
.m-side-title { text-align: left; margin: 0 0 4px; }
.t-speaker { display: inline-block; min-width: 64px; margin-right: 8px; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--red); }
.ex-timer[hidden] { display: none !important; }
.ex-timer[hidden] + .ex-actions { margin-left: auto; } /* listening: no timer, keep the buttons on the right */
/* ---------- Top menu: Practice dropdown ---------- */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-caret { font-size: 11px; margin-left: 2px; opacity: .7; }
.nav-menu { position: absolute; top: calc(100% + 12px); left: -18px; display: grid; grid-template-columns: repeat(2, minmax(210px, auto)); gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(20,21,26,.16); padding: 16px; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .15s, transform .15s; z-index: 60; white-space: nowrap; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* keeps the menu open while the mouse moves down to it */
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-drop.closed .nav-menu { opacity: 0 !important; pointer-events: none !important; }
.nm-col { display: flex; flex-direction: column; gap: 2px; }
.nm-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 0 10px 6px; }
.nav-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-menu a:hover { background: var(--red-soft); color: var(--red); }
.nm-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-size: 16px; flex: none; }
.cam-menu { display: block; width: 520px; white-space: normal; }
.cam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.nav-menu .cam-grid a { gap: 8px; padding: 6px 8px; font-size: 14px; }
.cam-n { width: 26px; height: 26px; border-radius: 7px; background: var(--bg); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.nav-menu .cam-grid a:hover .cam-n { background: var(--red); color: #fff; }
.nav-menu a.cam-all { justify-content: center; margin-top: 10px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; padding-top: 12px; color: var(--red); }
@media (max-width: 1240px) { .nav-menu, .nav-caret { display: none; } .nav-drop { display: block; } }
/* Wide screens: the menu sits in the middle of the bar, between the logo and the buttons.
   Each link is a red-outlined pill with a soft pink gradient inside (a little deeper on hover);
   the page you are on is a rich red gradient. */
@media (min-width: 1241px) {
  .nav-links { margin: 0 auto; gap: 6px; font-size: 16px; font-weight: 700; }
  .nav-inner .theme-btn { margin-left: 0; }
  .nav-links > a, .nav-links > .nav-drop > .nav-drop-top {
    display: inline-block; padding: 5px 11px; border: 2px solid var(--red); border-radius: 999px; color: var(--ink);
    background: linear-gradient(180deg, #fff7f8 0%, #fde3e7 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: color .2s, background .2s, transform .2s, box-shadow .2s;
  }
  .nav-links > a:hover, .nav-links > .nav-drop:hover > .nav-drop-top {
    color: var(--red); transform: translateY(-2px);
    background: linear-gradient(180deg, #ffeef1 0%, #fbcbd3 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 5px 12px rgba(226, 43, 63, .2);
  }
  .nav-links > a.active, .nav-links > .nav-drop > .nav-drop-top.active {
    color: #fff !important; background: linear-gradient(180deg, #f2546a 0%, #d61f3a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 10px rgba(214, 31, 58, .25);
  }
  html[data-theme="dark"] .nav-links > a, html[data-theme="dark"] .nav-links > .nav-drop > .nav-drop-top {
    background: linear-gradient(180deg, rgba(239, 68, 88, .12) 0%, rgba(239, 68, 88, .26) 100%); box-shadow: none;
  }
  html[data-theme="dark"] .nav-links > a:hover, html[data-theme="dark"] .nav-links > .nav-drop:hover > .nav-drop-top {
    background: linear-gradient(180deg, rgba(239, 68, 88, .22) 0%, rgba(239, 68, 88, .4) 100%);
  }
  html[data-theme="dark"] .nav-links > a.active, html[data-theme="dark"] .nav-links > .nav-drop > .nav-drop-top.active {
    background: linear-gradient(180deg, #f2546a 0%, #d61f3a 100%);
  }
}
/* Roomier on big screens */
@media (min-width: 1440px) {
  .nav-inner { max-width: 1440px; }
  .nav-links { gap: 8px; font-size: 17px; }
  .nav-links > a, .nav-links > .nav-drop > .nav-drop-top { padding: 6px 13px; }
}
.skill-menu.items-3 a:first-child { grid-column: 1 / -1; }
.skill-menu.items-5 a:first-child { grid-column: 1 / -1; }
html[data-theme="dark"] .footer { background: #0b0707; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: var(--card); color: var(--ink); }
html[data-theme="dark"] :is(.skill-tile .skill-ico, .test-row-ico, .r-ico, .l-ico) { background: rgba(255,255,255,.07); }
/* Light / dark switch */
.theme-btn { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 3px; cursor: pointer; margin-left: auto; }
.theme-btn span { width: 30px; height: 28px; border-radius: 99px; display: grid; place-items: center; font-size: 15px; }
html:not([data-theme="dark"]) .theme-btn .t-light, html[data-theme="dark"] .theme-btn .t-dark { background: var(--solid); }
.theme-btn + .nav-auth { margin-left: 10px; }
/* Secondary (outlined) buttons: a clearly visible border in light and dark mode */
.btn-ghost, .r-tabs a, .w-chips button, .ex-set-btn, .l-btn.small, .nav-tool, .nav-part-btn, .theme-btn, .menu-btn, .rv-loc, .ex-set-opt, .skill-menu a:not(:first-child) { border: 1.5px solid var(--btn-border) !important; }
.btn-ghost:hover { border-color: var(--red) !important; }
.r-tabs a:hover, .w-chips button:hover, .nav-tool:hover, .rv-loc:hover { border-color: var(--ink) !important; }
.r-tabs a.on, .w-chips button.on { border-color: var(--solid) !important; }
html[data-theme="dark"] .r-tabs a.on, html[data-theme="dark"] .w-chips button.on { border-color: var(--btn-border) !important; }

/* Speaking: Part 1 topics and the answer box (record → what you said → grammar → phrasal verbs) */
.sp-topics { display: grid; gap: 10px; }
.sp-topic-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; cursor: pointer; transition: border-color .15s; }
.sp-topic-card:hover { border-color: var(--red); }
.sp-num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; }
.sp-topic-name { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-topic-name b { font-size: 17px; }
.sp-topic-name .muted { font-size: 14px; }
.sp-topic-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; white-space: nowrap; }
.sp-new { background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; }
.sp-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sp-nav { justify-content: space-between; margin-top: 4px; }
.sp-live { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; min-height: 48px; line-height: 1.6; }
#abPlay audio { width: 100%; margin-top: 12px; }
.sp-h4 { margin: 20px 0 6px; font-size: 16px; }
.sp-note { font-size: 14px; margin: 0 0 8px; }
.sp-text { width: 100%; box-sizing: border-box; font: inherit; line-height: 1.6; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); margin-bottom: 10px; resize: vertical; }
.sp-res { border-top: 1px solid var(--line); margin-top: 16px; }
.sp-ok { color: #1a8a4a; font-weight: 700; margin: 6px 0; }
.sp-marked { line-height: 1.9; margin: 6px 0 10px; }
.sp-err { background: rgba(214, 40, 57, .12); color: inherit; border-bottom: 2px solid var(--red); border-radius: 3px; padding: 0 2px; }
.sp-err sup { color: var(--red); font-weight: 800; font-size: 10px; margin-left: 2px; }
.sp-issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sp-issues li { display: flex; gap: 10px; line-height: 1.5; }
.sp-issues .muted { font-size: 14px; }
.sp-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.sp-tip { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; }
.sp-pv { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.sp-pv li { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.sp-pv .muted { font-size: 14px; font-style: italic; }
.sp-more { margin-top: 10px; }
.sp-more summary { cursor: pointer; font-weight: 700; color: var(--red); }
.sp-assess { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; display: grid; gap: 12px; }
.sp-overall { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 12px; padding: 12px 16px; }
.sp-overall .big { font-size: 34px; font-weight: 800; color: var(--red); line-height: 1; }
.sp-overall span { font-weight: 600; color: var(--muted); }
.sp-crit { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sp-crit-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sp-band { font-weight: 800; color: var(--red); font-size: 18px; white-space: nowrap; }
.sp-fb { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 15px; line-height: 1.5; }
.sp-fb .ok { color: #1a8a4a; }
.sp-fb .work { color: var(--ink); }
.sp-pv li:has(.sp-say) { flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; }
.sp-say { flex: none; padding: 6px 12px; font-size: 14px; }
.sp-desc { margin: 6px 0 4px; font-size: 15px; line-height: 1.5; }
.sp-facts { margin: 0 0 6px; font-size: 13px; }
.sp-next { background: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: 14px; margin-top: 6px; }
.sp-next ul { margin: 4px 0 0; padding-left: 18px; line-height: 1.5; }

/* DSAT practice tests: modules, typed math answers and the Desmos calculator */
.dx-body { flex: 1; display: flex; min-height: 0; }
.dx-body .dx-main { min-width: 0; }
.dx-calc { flex: none; width: min(520px, 46vw); display: flex; flex-direction: column; border-right: 2px dashed var(--line); background: var(--card); }
.dx-calc[hidden] { display: none; }
.dx-calc-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.dx-calc iframe { flex: 1; width: 100%; border: 0; }
#dxCalcBtn { margin-right: 8px; }
#dxCalcBtn.on { border-color: var(--red); color: var(--red); }
.dx-main.single .dx-passage { display: none; }
.dx-main.single .dx-question { max-width: 760px; margin: 0 auto; }
.dx-fig { display: block; max-width: 100%; margin: 4px 0 14px; }
.dx-spr input { font: inherit; font-size: 20px; width: 180px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.dx-spr input:focus { outline: none; border-color: #3b3fd8; }
.dx-spr input.ok { border-color: #1a8a4a; } .dx-spr input.bad { border-color: var(--red); }
.dx-spr p { font-size: 13px; margin: 8px 0 0; font-family: inherit; }
.dsat-mods { display: grid; gap: 8px; margin-top: 10px; }
.dsat-mod { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.dsat-mod:hover { border-color: var(--red); }
.dsat-mod span { grid-column: 1; font-size: 13px; color: var(--muted); }
.dsat-mod em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 700; color: var(--red); font-size: 14px; white-space: nowrap; }
.dsat-next { margin: 16px 0 0; }
.dsat-next p { margin: 6px 0 12px; }
@media (max-width: 760px) {
  .dx-body { position: relative; }
  .dx-calc { position: absolute; inset: 0; width: auto; z-index: 5; border-right: 0; }
}

/* Listening: Part 1–4 under "Sections", and the Dictation tab */
.l-dict-h { font-size: 20px; margin: 22px 0 12px; }
.l-dcard { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.l-dcard .btn { margin-top: auto; align-self: stretch; text-align: center; }
.l-dcard p { margin: 4px 0 8px; }
.l-parts a { color: var(--ink); }
.l-parts a:hover { color: var(--red); }

/* Reading practice list: two columns, title and details only */
/* compact card: title and details on the left, the two buttons on the right */
.r-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.r-grid-2 .r-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top act" "title act" "meta act"; align-items: center; gap: 2px 16px; padding: 14px 18px; }
.r-grid-2 .w-tcard-top { grid-area: top; justify-content: flex-start; }
.r-grid-2 .r-ico { display: none; }
.r-grid-2 .p-badge { font-size: 12px; padding: 2px 8px; }
.p-badge.d-badge { background: var(--red); color: #fff; margin-right: 0; }
.r-card:has(.d-badge) { position: relative; overflow: visible; }
.r-card .p-badge.d-badge { position: absolute; top: -10px; right: 14px; text-transform: uppercase; letter-spacing: .04em; }
.r-grid-2 .r-title { grid-area: title; font-size: 17px; margin: 2px 0 0; }
.r-grid-2 .r-meta { grid-area: meta; font-size: 13px; }
.r-grid-2 .r-actions { grid-area: act; grid-template-columns: auto auto; border-top: 0; padding-top: 0; }
.r-grid-2 .r-actions .btn { padding: 8px 14px; font-size: 14px; }
@media (max-width: 760px) {
  .r-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .r-grid-2 .r-card { grid-template-columns: 1fr; grid-template-areas: "top" "title" "meta" "act"; }
  .r-grid-2 .r-actions { grid-template-columns: 1fr 1fr; margin-top: 8px; }
}
/* Mid-size screens: a little less padding in the menu pills so the Telegram icon still fits on one line */
@media (min-width: 1241px) and (max-width: 1340px) {
  .nav-links { gap: 4px; }
  .nav-links > a, .nav-links > .nav-drop > .nav-drop-top { padding-left: 8px; padding-right: 8px; }
  .nav-inner { gap: 10px; }
  .nav-auth { gap: 6px; }
  .nav-auth .btn { padding: 7px 11px; font-size: 14px; }
  .nav-inner .logo { font-size: 17px; gap: 6px; }
  .nav-inner .logo .mark { height: 30px; }
}
@media (max-width: 1720px) { .su-free { display: none; } } /* "Sign up" without "free" until the bar has room for it */

/* Telegram channel button (rounded square, Telegram blue) next to the logo everywhere */
.nav-tg { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: #229ED9; box-shadow: 0 2px 8px rgba(34, 158, 217, .35); transition: transform .15s, background .15s; }
.nav-tg:hover { background: #1c8cc2; transform: translateY(-1px); }
.nav-tg svg { width: 22px; height: 22px; display: block; }
.nav-inner .nav-tg { margin-left: -4px; }
@media (max-width: 1720px) { .nav-inner .nav-tg { width: 32px; height: 32px; border-radius: 9px; } .nav-inner .nav-tg svg { width: 19px; height: 19px; } .nav-auth .btn { padding: 7px 12px; } }
.ex-top .nav-tg { width: 32px; height: 32px; border-radius: 9px; }
.ex-top .nav-tg svg { width: 19px; height: 19px; }
.dx-tools .nav-tg { width: 34px; height: 34px; margin-right: 8px; vertical-align: middle; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
@media (max-width: 1240px) { .nav-inner .nav-tg { margin-left: 0; width: 32px; height: 32px; border-radius: 9px; } }
@media (min-width: 1561px) { .nav-inner .nav-tg { margin-left: -24px; } }
@media (max-width: 480px) {
  .nav-inner .nav-tg { width: 28px; height: 28px; border-radius: 8px; }
  .nav-inner .nav-tg svg { width: 17px; height: 17px; }
  .nav-inner .logo { font-size: 15px; gap: 4px; }
  .nav-inner .logo .mark { height: 28px; }
  .nav-inner .nav-auth .btn { padding: 7px 10px; font-size: 13px; }
}

/* ===== Test screens styled like the computer-delivered IELTS test =====
   Arial, black text on white, plain question area, simple boxed answer fields. */
.exam, .exam .ex-main { font-family: Arial, Helvetica, sans-serif; }
.exam .ex-main { background: #fff; color: #000; }
.exam .ex-passage, .exam .ex-questions { background: #fff; color: #000; }
.exam .ex-pane { padding: 22px 26px 40px; }
.exam .ex-passage { line-height: 1.7; font-size: 16.5px; }
.exam .p-title { font-family: Arial, Helvetica, sans-serif; font-size: 22px; font-weight: 700; letter-spacing: 0; text-align: center; }
.exam .qg { background: none; border: 0; border-radius: 0; padding: 0; margin-bottom: 26px; }
.exam .qg-head h4 { font-size: 16px; color: #000; }
.exam .qg-ins { color: #000; font-size: 15.5px; }
.exam .qg-title { font-size: 16px; color: #000; }
.exam .gap-text, .exam .q-text, .exam .q-opt { color: #000; font-size: 16px; }
.exam .gap { border: 1px solid #333; border-radius: 3px; width: 150px; padding: 2px 8px; background: #fff; color: #000; }
.exam .gap::placeholder { color: #000; font-weight: 700; }
.exam .gap:focus { outline: 2px solid #3b6fd8; outline-offset: 0; border-color: #3b6fd8; }
.exam .q-table th, .exam .q-table td { border-color: #333; color: #000; font-size: 15.5px; }
.exam .q-table th { background: #fff; font-weight: 700; }
.exam .ex-divider { flex: 0 0 12px; background: #e3e3e3; border-left: 2px solid #4a7ab8; }
.exam .ex-divider span { width: 26px; height: 22px; border-radius: 3px; background: #fff; border: 1px solid #4a7ab8; position: relative; }
.exam .ex-divider span::after { content: "⟷"; position: absolute; inset: 0; display: grid; place-items: center; color: #4a7ab8; font-size: 15px; }
.exam .ex-divider:hover span { background: #eef3fb; }
/* the contrast settings keep working */
.ex-main:is([data-theme="dark"], [data-theme="yellow"], [data-theme="cream"]) :is(.qg-ins, .qg-title, .qg-head h4, .gap-text, .q-text, .q-opt, .q-table th, .q-table td) { color: var(--t-fg); }
.ex-main:is([data-theme="dark"], [data-theme="yellow"], [data-theme="cream"]) .gap::placeholder { color: var(--t-muted); }
/* Submit at the bottom right of the test screen */
.nav-submit { margin-left: 6px; border: 0; border-radius: 8px; padding: 8px 18px; font: inherit; font-weight: 800; font-size: 15px; color: #fff; background: var(--red); cursor: pointer; box-shadow: 0 2px 8px rgba(214, 31, 58, .3); }
.nav-submit:hover { filter: brightness(1.08); }
/* keep Review / arrows / Submit visible when the question numbers scroll sideways (phones) */
.nav-tools { position: sticky; right: 0; background: var(--card); padding-left: 8px; box-shadow: -10px 0 10px -6px var(--card); }
@media (max-width: 760px) { .nav-tools #navFlag { display: none; } .nav-submit { padding: 8px 12px; } }

/* True/False/Not Given, Yes/No and multiple choice: like the computer-delivered test –
   plain number (boxed when it's the current question), statement in normal weight,
   choices stacked full width, grey on hover, light blue when chosen. */
.exam .q-item { border-top: 0; padding: 10px 0 18px; }
.exam .q-line { align-items: baseline; gap: 12px; }
.exam .qn { background: none; color: #000; font-size: 17px; font-weight: 700; min-width: 30px; height: 30px; border: 2px solid transparent; border-radius: 3px; }
.exam .q-item.is-current .qn, .exam .q-item:focus-within .qn { border-color: #3b6fd8; }
.exam .q-text { font-weight: 400; font-size: 16.5px; padding-top: 0; margin-bottom: 4px; }
.exam .q-opts { flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 8px 0 0; }
.exam .q-opt { border: 0; border-radius: 0; padding: 11px 16px; gap: 14px; background: none; color: #000; font-size: 16.5px; width: 100%; box-sizing: border-box; }
.exam .q-opt:hover { background: #e2e2e2; }
.exam .q-opt:has(input:checked) { background: #b8d3ee; }
.exam .q-opt input { accent-color: #3b5bdb; width: 16px; height: 16px; flex: none; }
.exam .q-opt.is-answer { background: #d7f0df; }
.exam .q-opt.is-wrong { background: #fbdcdf; }
.ex-main:is([data-theme="dark"], [data-theme="yellow"]) .q-opt:hover { background: #2a2a2a; }
.ex-main:is([data-theme="dark"], [data-theme="yellow"]) .q-opt:has(input:checked) { background: #23415f; }
.ex-main:is([data-theme="dark"], [data-theme="yellow"], [data-theme="cream"]) .qn { color: var(--t-fg); }
.w-search-top { margin-bottom: 18px; } .w-search-top input { font-size: 16px; padding: 13px 16px; }
.r-card[hidden] { display: none; }

/* Writing Task 1 detailed review (writing-check.js) */
.wc-results { max-width: 900px; }
.wc-report h3 { margin: 22px 0 8px; }
.wc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.wc-head b { display: block; font-size: 18px; } .wc-head span { color: var(--muted); font-size: 14px; }
.wc-overall { text-align: center; } .wc-overall .big { font-size: 36px; font-weight: 800; color: var(--red); line-height: 1; } .wc-overall span { font-size: 12px; }
.wc-task { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 14px; } .wc-task img { max-width: 100%; max-height: 360px; display: block; margin-top: 10px; }
.wc-legend { font-size: 14px; color: var(--muted); }
.wc-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin: 2px 2px 2px 0; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.wc-essay { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; line-height: 1.85; font-size: 16px; }
.wc-essay p { margin: 0 0 12px; } .wc-essay p:last-child { margin: 0; }
.wc-err { background: #fde7ea; border-bottom: 2px solid var(--red); padding: 0 2px; border-radius: 3px; color: inherit; }
.wc-note { color: #b4233b; font-size: 14px; }
.wc-note i { color: #1a7a43; font-style: normal; font-weight: 700; }
.wc-err.wc-spelling, .wc-chip.wc-spelling { background: #fff1d6; } .wc-err.wc-vocabulary, .wc-chip.wc-vocabulary { background: #e6f0ff; }
.wc-err.wc-style, .wc-chip.wc-style, .wc-err.wc-wordiness, .wc-chip.wc-wordiness { background: #efe8ff; } .wc-err.wc-tense, .wc-chip.wc-tense { background: #ffe6d5; }
.wc-err.wc-cohesion, .wc-chip.wc-cohesion, .wc-err.wc-referencing, .wc-chip.wc-referencing { background: #e3f6ef; } .wc-err.wc-task, .wc-chip.wc-task, .wc-err.wc-ambiguity, .wc-chip.wc-ambiguity { background: #fbe3f1; }
.wc-crit { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; background: var(--card); }
.wc-crit-head { display: flex; justify-content: space-between; gap: 10px; } .wc-band { font-weight: 800; color: var(--red); }
.wc-desc { margin: 6px 0; font-size: 15px; } .wc-facts { margin: 4px 0; padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.wc-next { background: var(--bg); border-radius: 8px; padding: 8px 12px; font-size: 14px; margin-top: 6px; }
.wc-all { margin-top: 14px; } .wc-all summary { cursor: pointer; font-weight: 700; color: var(--red); }
.wc-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; line-height: 1.45; }
.wc-table th, .wc-table td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; text-align: left; }
.wc-table th { background: var(--solid); color: #fff; } .wc-table td.on { background: #fde7ea; font-weight: 700; }
.wc-disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
@media (max-width: 760px) { .wc-table { font-size: 11px; } .wc-table th, .wc-table td { padding: 4px; } }
.dx mark.hl { color: inherit; } .dx-pane ::selection { background: #b8d3ee; }
/* the PDF is drawn from this hidden, always-light copy of the review */
.wc-pdf { position: fixed; left: -10000px; top: 0; width: 760px; }
.wc-light { width: 700px; box-sizing: border-box; background: #fff; color: #14151a; font-family: Arial, Helvetica, sans-serif; padding: 4px;
  --ink: #14151a; --muted: #555a66; --line: #d9dbe1; --card: #fff; --bg: #f3f4f6; --red: #d61f3a; --solid: #14151a; }
.wc-light .wc-essay { font-size: 14px; line-height: 1.8; }
.wc-light .wc-table { font-size: 10.5px; }
.wc-light .wc-all summary { list-style: none; }

/* Map labelling as a grid (match group with grid: true): map on the left, letter table with radio buttons on the right */
.mg { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-top: 8px; }
.mg-img { flex: 1 1 340px; min-width: 0; max-width: 560px; height: auto; background: #fff; border-radius: 6px; }
.mg-box { flex: 1 1 360px; min-width: 0; overflow-x: auto; border: 1px solid var(--t-line, var(--line)); border-radius: 6px; padding: 12px 14px; background: var(--t-card, var(--card)); }
.mg-table { border-collapse: collapse; width: 100%; font-size: 16px; }
.mg-table th, .mg-table td { border-bottom: 1px solid var(--t-line, var(--line)); padding: 8px 4px; text-align: center; }
.mg-table th { font-weight: 700; font-size: 17px; color: inherit; text-transform: none; letter-spacing: 0; border-bottom-width: 2px; }
.mg-table th:first-child, .mg-table .mg-q { text-align: left; }
.mg-table th + th, .mg-table .mg-cell { border-left: 1px solid var(--t-line, var(--line)); min-width: 34px; }
.mg-table th:nth-child(2), .mg-table .mg-cell:nth-child(2) { border-left-width: 2px; border-left-color: currentColor; }
.mg-table tr:last-child td { border-bottom: 0; }
.mg-q { display: flex; align-items: center; gap: 10px; padding-right: 12px !important; min-width: 150px; }
.mg-cell label { display: flex; justify-content: center; align-items: center; padding: 4px 0; cursor: pointer; }
.mg-cell input { width: 18px; height: 18px; margin: 0; accent-color: #3b5bdb; cursor: pointer; }
.mg-cell.is-answer { background: #d7f0df; }
.mg-cell.is-wrong { background: #fbdcdf; }
.mg-row.cur .mg-q .qn { outline: 2px solid #3b5bdb; }
@media (max-width: 600px) {
  .mg-box { padding: 8px 6px; }
  .mg-table { font-size: 14px; }
  .mg-table th, .mg-table td { padding: 6px 1px; }
  .mg-table th + th, .mg-table .mg-cell { min-width: 0; }
  .mg-q { min-width: 0; gap: 6px; padding-right: 6px !important; }
  .mg-q .flag-mark, .mg-q [class*="flag"] { display: none; }
  .mg-cell input { width: 16px; height: 16px; }
}

/* DSAT maths banks: Desmos calculator on the left, the question (an image from the book) on the right */
.dx-math .dx-calc { flex: 0.85; padding: 0; overflow: hidden; border-right: 3px solid var(--line); background: #fff; }
.dx-math .dx-calc iframe { display: block; width: 100%; height: 100%; border: 0; }
.dx-math.nocalc .dx-calc { display: none; }
.dx-math.nocalc .dx-question { max-width: 820px; margin: 0 auto; }
.dxm-img { display: block; max-width: 100%; height: auto; margin: 6px 0 18px; background: #fff; border-radius: 6px; }
html[data-theme="dark"] .dxm-img, html[data-theme="dark"] .dxm-why { padding: 6px; }
.dxm-letters { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.dxm-letters .dx-opt-row { flex: 0 0 auto; }
.dxm-letters .dx-opt { flex: none; padding: 10px 18px; }
.dx-math .dx-spr { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dx-math .dx-spr .muted { font-family: "Plus Jakarta Sans", sans-serif; font-size: 13px; }
.dx-spr input.ok { border-color: var(--green); }
.dx-spr input.bad { border-color: var(--red); }
.dxm-why { display: block; max-width: 100%; height: auto; margin: 8px 0; background: #fff; border-radius: 6px; }
@media (max-width: 800px) {
  .dx-math { flex-direction: column; }
  .dx-math .dx-question { order: 0; }
  .dx-math .dx-calc { position: static; width: auto; z-index: auto; order: 1; flex: none; height: 420px; border-right: none; border-top: 3px solid var(--line); }
}

/* My progress and the teacher view (progress.js) */
.pg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pg-tile { margin: 0; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; }
.pg-tile b { font-size: 26px; letter-spacing: -.5px; color: var(--ink); }
.pg-tile .muted { font-size: 13px; }
.pg-next { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-color: var(--red); }
.pg-note { font-size: 14px; }
.pg-h { font-size: 19px; margin: 26px 0 12px; }
.pg-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pg-skill { margin: 0; padding: 16px 18px 10px; }
.pg-skill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.pg-skill-head > b { font-size: 16px; }
.pg-band { color: var(--ink); font-size: 15px; }
.pg-none { font-size: 14px; margin: 18px 0 14px; }
.pg-chart { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.pg-grid { stroke: var(--line); stroke-width: 1; }
.pg-ax { fill: var(--muted); font-size: 10px; font-family: inherit; }
.pg-line { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pg-dot { fill: var(--red); stroke: var(--card); stroke-width: 2; }
.pg-hit { fill: transparent; cursor: pointer; }
.pg-pt:hover .pg-dot { r: 6; }
.pg-areas { padding: 10px 18px; }
.pg-area { display: grid; grid-template-columns: minmax(150px, 1.3fr) 2fr auto; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pg-area:last-child { border-bottom: 0; }
.pg-area-name small { font-size: 12px; }
.pg-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pg-bar i { display: block; height: 100%; border-radius: 99px; }
.pg-bar i.low { background: var(--red); }
.pg-bar i.mid { background: #e8a33a; }
.pg-bar i.ok { background: var(--green); }
.pg-pct { font-weight: 700; min-width: 92px; text-align: right; }
.pg-pct small { font-weight: 400; }
.pg-recent, .pg-students { overflow-x: auto; }
.pg-students tr[data-id] { cursor: pointer; }
.pg-students tr[data-id]:hover td { background: var(--bg); }
.pg-students tr[hidden] { display: none; }
.pg-quiet { background: #fdecc8; color: #8a5a00; }
.nav-progress span { margin-left: 4px; }
@media (max-width: 900px) { .nav-progress span { display: none; } }
@media (max-width: 600px) {
  .pg-area { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .pg-area .pg-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* Home page progress card (progress.js → pgHomeCard) */
.hp-section:empty { display: none; }
.hp-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; box-shadow: var(--shadow); }
.hp-card h2 { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.hp-eyebrow, .hp-label { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.hp-eyebrow { color: var(--red); }
.hp-empty { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-left: 4px solid var(--red); }
.hp-empty p { margin: 6px 0 0; color: var(--muted); max-width: 560px; }
.hp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.hp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.hp-stat { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.hp-stat-head { display: flex; align-items: center; gap: 10px; }
.hp-ico { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.hp-ico svg { width: 17px; height: 17px; }
.hp-value { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 10px; }
.hp-value b { font-size: 30px; font-weight: 800; letter-spacing: -.8px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hp-value span { font-size: 14px; color: var(--muted); }
.hp-progress { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.hp-progress i { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.hp-progress.ok i { background: var(--green); }
.hp-progress.off i { background: transparent; }
.hp-stat p { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.hp-section-head { display: flex; justify-content: space-between; margin: 22px 0 10px; }
.hp-bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hp-band { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: inherit; transition: border-color .15s, box-shadow .15s; }
.hp-band:hover { border-color: var(--btn-border); box-shadow: 0 4px 14px rgba(20, 21, 26, .06); }
.hp-band-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hp-band b { font-size: 26px; font-weight: 800; letter-spacing: -.6px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hp-chip { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hp-chip.ok { background: var(--green-soft); color: var(--green); border-color: transparent; }
.hp-meter { position: relative; display: block; height: 4px; border-radius: 99px; background: var(--line); }
.hp-meter i { display: block; height: 100%; border-radius: inherit; background: var(--ink); opacity: .8; }
.hp-meter em { position: absolute; top: -3px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: var(--red); }
.hp-next { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 12px; background: var(--bg); }
.hp-next-text { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
@media (max-width: 600px) { .hp-card { padding: 18px; } .hp-bands { grid-template-columns: 1fr 1fr; } .hp-next .btn { width: 100%; justify-content: center; } }
/* DSAT mock tests: equations under the question, data tables in passages and answer choices */
.dx-eq { margin: 10px 0 4px; padding-left: 28px; line-height: 1.9; }
.dx-table { border-collapse: collapse; margin: 0 0 14px; font-size: 14px; }
.dx-table caption { font-weight: 700; padding-bottom: 6px; }
.dx-table th, .dx-table td { border: 1px solid var(--line); padding: 5px 10px; text-align: left; }
.dx-table th { background: var(--bg); }
.dx-mini { margin: 0; font-size: 13px; }
.dx-mini th, .dx-mini td { padding: 2px 12px; text-align: center; }
.dx-question .dx-fig { max-height: 440px; width: auto; }
