/* educads LMS components (prototype, 21 Nov 2026).
   Loaded after vendor.min.css, style.css, polish.css and v2.css. It never edits
   the v2 theme: every rule hangs off body.v2 and an lms- class, and it reuses the
   v2 tokens (--v2-ink, --v2-teal, --v2-orange ...) instead of new colours.
   Layout widths follow the topuniversitiesusa.com measurements recorded in
   DESIGN-NOTES.md: a 1060px reading wrap (688px main + 300px rail, 32px gap)
   and, for a chapter, the full 1160px v2 container (200 + 604 + 300). */

:root {
  --lms-ok: #12715A;          /* correct: 5.9:1 on white */
  --lms-ok-tint: #E6F4EF;
  --lms-bad: #B42318;         /* incorrect: 6.5:1 on white */
  --lms-bad-tint: #FDECEA;
  --lms-flag: #B45309;        /* = --v2-orange-ink, flagged in the exam */
  --lms-focus: #005A61;       /* = --v2-teal-dd */
  --lms-rail: 300px;
  --lms-gap: 32px;
  --lms-measure: 68ch;
  --lms-shadow: 0 1px 2px rgba(20,32,42,.04), 0 8px 24px rgba(20,32,42,.06);
}

/* ---------- old theme resets inside LMS markup ---------- */
body.v2 section.lms-s { padding: 0; overflow: visible; background: transparent; }
body.v2 section.lms-s.lms-card { padding: 22px 24px; background: #fff; }
body.v2 section.lms-s.lms-card.is-tint { background: #F4FBFB; }
@media (max-width: 767px) { body.v2 section.lms-s.lms-card { padding: 18px 16px; } }
body.v2 .lms-s p, body.v2 .lms-card p, body.v2 .lms-book p { color: var(--v2-body); font-size: 15px; line-height: 24px; }
body.v2 .lms-s ul, body.v2 .lms-card ul { margin-bottom: 0; }
body.v2 [class*="lms-"] h1, body.v2 [class*="lms-"] h2, body.v2 [class*="lms-"] h3, body.v2 [class*="lms-"] h4 { text-transform: none; font-family: inherit; }
body.v2 :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--lms-focus); outline-offset: 2px; border-radius: 6px;
}
body.v2 .v2-band :is(a, button):focus-visible, body.v2 .v2-hero :is(a, button):focus-visible { outline-color: #fff; }
.lms-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- page grids ---------- */
/* The reading wrap: 1020px of content inside the 1200px v2 container. */
.lms-page { max-width: 1020px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) var(--lms-rail); gap: var(--lms-gap); align-items: start; padding-top: 24px; }
.lms-page.is-single { grid-template-columns: minmax(0, 1fr); }
.lms-narrowband { max-width: 1020px; margin: 0 auto; }
/* A chapter: contents rail, the book, the ad rail. 200 + 28 + 604 + 28 + 300 = 1160. */
.lms-shell { display: grid; grid-template-columns: 200px minmax(0, 1fr) var(--lms-rail); gap: 28px; align-items: start; padding-top: 24px; }
.lms-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lms-rail { align-self: stretch; min-width: 0; }
.lms-rail-in { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- independence line and official notice ---------- */
.lms-indep {
  background: #fff; border-bottom: 1px solid var(--v2-line); font-size: 13px; line-height: 19px; color: var(--v2-muted);
}
.lms-indep-in { max-width: 1020px; margin: 0 auto; padding: 10px 0; display: flex; gap: 10px; align-items: flex-start; }
.lms-indep-in.is-wide { max-width: none; }
.lms-indep b { color: var(--v2-ink); font-weight: 600; }
.lms-indep-mark { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--v2-teal-d); box-sizing: border-box; position: relative; }
.lms-indep-mark::after { content: ""; position: absolute; left: 6px; top: 2px; width: 2px; height: 8px; background: var(--v2-teal-d); border-radius: 1px; }
.lms-official {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 12px 16px; border-radius: var(--v2-radius); background: var(--v2-orange-tint); border-left: 3px solid var(--v2-orange);
  font-size: 14px; line-height: 21px; color: var(--v2-ink);
}
body.v2 .lms-official a { font-size: 13px; font-weight: 600; color: var(--v2-teal-dd); text-decoration: underline; text-underline-offset: 2px; }

/* "Texto de ejemplo": every sample block carries it until real, sourced copy replaces it. */
.lms-sample {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #6B4A00; background: #FFE8B8; vertical-align: middle; white-space: nowrap;
}

/* ---------- buttons, chips, bookmark ---------- */
body.v2 .lms-btn, body.v2 a.lms-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  background: var(--v2-teal-d); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
}
body.v2 .lms-btn:hover { background: var(--v2-teal-dd); color: #fff; }
body.v2 .lms-btn.is-ghost { background: #fff; color: var(--v2-teal-dd); border-color: #9FCFD3; }
body.v2 .lms-btn.is-ghost:hover { background: var(--v2-tint); }
body.v2 .lms-btn.is-light { background: #fff; color: var(--v2-teal-dd); }
body.v2 .lms-btn.is-light:hover { background: var(--v2-tint); }
body.v2 .lms-btn.is-onband { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
body.v2 .lms-btn.is-onband:hover { background: rgba(255,255,255,.14); }
body.v2 .lms-btn.is-warm { background: linear-gradient(180deg, #F7B64A, #F4A234); color: var(--v2-ink); }
body.v2 .lms-btn.is-warm:hover { background: #E8952A; color: var(--v2-ink); }
body.v2 .lms-btn.is-block { width: 100%; }
body.v2 .lms-btn.is-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.lms-btn svg { flex: none; }
.lms-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

body.v2 .lms-bookmark {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--v2-line); border-radius: 8px; background: #fff; color: var(--v2-ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.lms-bookmark svg path { fill: none; stroke: currentColor; stroke-width: 1.8; }
body.v2 .lms-bookmark[aria-pressed="true"] { color: var(--v2-teal-dd); border-color: #9FCFD3; background: var(--v2-tint); }
.lms-bookmark[aria-pressed="true"] svg path { fill: var(--v2-teal-d); stroke: var(--v2-teal-d); }
body.v2 .v2-band .lms-bookmark { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.7); color: #fff; }
body.v2 .v2-band .lms-bookmark[aria-pressed="true"] { background: #fff; color: var(--v2-teal-dd); }
.lms-bookmark.is-icon { padding: 0; width: 44px; justify-content: center; }

.lms-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 4px; font-size: 12px; font-weight: 600; background: #EEF4F6; color: #3B4A55; white-space: nowrap; }
.lms-tag.is-teal { background: var(--v2-tint); color: var(--v2-teal-dd); }
.lms-tag.is-warm { background: var(--v2-orange-tint); color: var(--v2-orange-ink); }
.lms-tag.is-ok { background: var(--lms-ok-tint); color: var(--lms-ok); }
.lms-tag.is-bad { background: var(--lms-bad-tint); color: var(--lms-bad); }
.lms-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- course header band (inside .v2-band) ---------- */
.lms-head { position: relative; z-index: 1; max-width: 1020px; margin: 0 auto; }
.lms-head.is-wide { max-width: none; }
.lms-eyebrow { display: block; margin: 18px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.9); }
body.v2 .lms-h1 { margin: 0; max-width: 860px; font-size: 34px; line-height: 42px; font-weight: 700; letter-spacing: -.4px; color: #fff; }
body.v2 .lms-sub { margin: 10px 0 0; max-width: 720px; font-size: 16px; line-height: 25px; color: rgba(255,255,255,.95); }
.lms-head-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13px; color: #fff; }
.lms-head-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lms-head-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--v2-orange); }
.lms-head-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-top: 20px; }
.lms-head-progress { flex: 1 1 280px; max-width: 420px; }
.lms-head-progress .lms-bar { background: rgba(255,255,255,.3); }
.lms-head-progress .lms-bar > i { background: #fff; }
.lms-head-progress-l { display: flex; justify-content: space-between; font-size: 13px; color: #fff; margin-bottom: 6px; }

/* ---------- progress bar and chapter stepper ---------- */
.lms-bar { height: 8px; border-radius: 999px; background: var(--v2-line-soft); overflow: hidden; }
.lms-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--v2-teal); }
.lms-bar.is-warm > i { background: var(--v2-orange); }
.lms-bar.is-thin { height: 6px; }
.lms-stepper { display: flex; align-items: center; gap: 14px; margin-top: 18px; color: #fff; }
.lms-stepper-l { font-size: 14px; font-weight: 600; white-space: nowrap; }
.lms-stepper ol { display: flex; flex: 1; gap: 6px; margin: 0; padding: 0; list-style: none; max-width: 420px; }
.lms-stepper li { flex: 1; }
.lms-stepper li a, .lms-stepper li span { display: block; height: 6px; border-radius: 999px; background: rgba(255,255,255,.35); }
.lms-stepper li.is-done a { background: #fff; }
.lms-stepper li.is-now span { background: var(--v2-orange); }
/* the stepper's links are 6px tall; the 44px tap area is the list item */
.lms-stepper li { padding: 19px 0; margin: -19px 0; }

/* ---------- table of contents rail ---------- */
.lms-toc { position: sticky; top: 16px; font-size: 14px; }
.lms-toc-h { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--v2-muted); }
.lms-toc ol { list-style: none; margin: 0 0 18px; padding: 0; border-left: 2px solid var(--v2-line); }
body.v2 .lms-toc li a { display: block; padding: 7px 0 7px 12px; margin-left: -2px; border-left: 2px solid transparent; color: #3B4A55; line-height: 19px; }
body.v2 .lms-toc li a:hover { color: var(--v2-teal-dd); }
body.v2 .lms-toc li.is-now > a { color: var(--v2-teal-dd); font-weight: 600; border-left-color: var(--v2-teal); }
.lms-toc-chap li a { display: flex !important; gap: 8px; align-items: baseline; }
.lms-toc-chap .n { flex: none; width: 18px; font-size: 12px; color: var(--v2-muted); font-variant-numeric: tabular-nums; }
.lms-toc-chap li.is-done .n { color: var(--lms-ok); }
.lms-toc-mini { display: none; }

/* ---------- study book typography ---------- */
.lms-book { background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); padding: 32px 40px 36px; }
.lms-book > * { max-width: var(--lms-measure); }
.lms-book > .is-full, .lms-book > .lms-figure, .lms-book > .lms-table-wrap, .lms-book > .lms-ad { max-width: none; }
body.v2 .lms-book p, body.v2 .lms-book li { font-size: 17px; line-height: 29px; color: #2E3B45; }
body.v2 .lms-book p { margin: 0 0 20px; }
body.v2 .lms-book h2 { margin: 36px 0 12px; font-size: 25px; line-height: 32px; font-weight: 700; letter-spacing: -.3px; color: var(--v2-ink); scroll-margin-top: 16px; }
body.v2 .lms-book h2:first-child, body.v2 .lms-book .lms-sec-n + h2 { margin-top: 0; }
body.v2 .lms-book h3 { margin: 26px 0 10px; font-size: 19px; line-height: 26px; font-weight: 600; color: var(--v2-ink); }
.lms-book ul, .lms-book ol { padding-left: 24px; margin: 0 0 20px; }
.lms-book li { margin-bottom: 6px; }
.lms-sec-n { display: block; margin: 36px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--v2-teal-d); }
.lms-sec-n:first-child { margin-top: 0; }
.lms-lead { font-size: 19px !important; line-height: 31px !important; color: var(--v2-ink) !important; }
.lms-src { margin: 8px 0 0; font-size: 12.5px; line-height: 19px; color: var(--v2-muted); }
.lms-src a { color: var(--v2-teal-dd); }
.lms-book-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--v2-line); font-size: 13px; color: var(--v2-muted); }

/* ---------- key fact, common mistake, memory aid ---------- */
.lms-box { margin: 0 0 22px; padding: 16px 18px 16px 18px; border-radius: var(--v2-radius); border: 1px solid; position: relative; }
.lms-box-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.lms-box-h svg { flex: none; }
body.v2 .lms-box p { margin: 0; font-size: 16px; line-height: 26px; color: var(--v2-ink); }
body.v2 .lms-box p + p { margin-top: 8px; }
.lms-box .lms-src { margin-top: 10px; }
.lms-box.is-fact { background: var(--v2-tint); border-color: #B9DFE2; }
.lms-box.is-fact .lms-box-h { color: var(--v2-teal-dd); }
.lms-box.is-error { background: var(--lms-bad-tint); border-color: #F4C7C2; }
.lms-box.is-error .lms-box-h { color: var(--lms-bad); }
.lms-box.is-memo { background: var(--v2-orange-tint); border-color: #F6D9A8; }
.lms-box.is-memo .lms-box-h { color: var(--v2-orange-ink); }
.lms-memo-letters { display: flex; gap: 8px; margin: 8px 0 4px; flex-wrap: wrap; }
.lms-memo-letters span { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 6px; background: #fff; font-size: 14px; color: var(--v2-ink); }
.lms-memo-letters b { font-size: 18px; color: var(--v2-orange-ink); }
.lms-box.is-exam { background: #F6F9FA; border-color: var(--v2-line); }
.lms-box.is-exam .lms-box-h { color: var(--v2-ink); }

/* ---------- comparison table ---------- */
.lms-table-wrap { margin: 0 0 22px; overflow-x: auto; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); }
.lms-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.lms-table caption { caption-side: top; text-align: left; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--v2-ink); border-bottom: 1px solid var(--v2-line); background: #fff; }
.lms-table th, .lms-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--v2-line); }
.lms-table thead th { background: #F6F9FA; font-size: 13px; font-weight: 700; color: var(--v2-ink); }
.lms-table tbody th { font-weight: 600; color: var(--v2-ink); width: 28%; background: #FBFCFD; }
.lms-table td { color: #2E3B45; }
.lms-table tr:last-child > * { border-bottom: 0; }
.lms-table-wrap .lms-src { padding: 0 14px 12px; }

/* ---------- figures: flowchart, timeline ---------- */
.lms-figure { margin: 0 0 24px; padding: 18px 18px 14px; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); background: #fff; }
.lms-figure-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--v2-ink); }
.lms-figure svg { display: block; width: 100%; height: auto; }
.lms-figure figcaption { margin-top: 10px; font-size: 12.5px; line-height: 19px; color: var(--v2-muted); }
.lms-flow-mobile { display: none; }

.lms-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.lms-timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--v2-line); }
.lms-timeline li { position: relative; padding: 0 0 18px 38px; }
.lms-timeline li:last-child { padding-bottom: 0; }
.lms-timeline li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--v2-teal); box-sizing: border-box; }
.lms-timeline li.is-warm::before { border-color: var(--v2-orange); }
.lms-timeline-t { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--v2-teal-d); }
.lms-timeline b { display: block; font-size: 16px; line-height: 23px; color: var(--v2-ink); }
.lms-timeline span.d { display: block; font-size: 14px; line-height: 21px; color: var(--v2-body); }

/* ---------- flashcard ---------- */
.lms-flash-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.lms-flash { perspective: 900px; }
body.v2 .lms-flash button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; border-radius: var(--v2-radius); }
.lms-flash-in { position: relative; min-height: 150px; transition: transform .35s ease; transform-style: preserve-3d; }
.lms-flash.is-flipped .lms-flash-in { transform: rotateY(180deg); }
.lms-flash-face { position: absolute; inset: 0; backface-visibility: hidden; padding: 16px; border-radius: var(--v2-radius); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; box-sizing: border-box; }
.lms-flash-front { background: #fff; border: 1px solid #B9DFE2; box-shadow: inset 4px 0 0 var(--v2-teal); }
.lms-flash-back { background: var(--v2-teal-dd); color: #fff; transform: rotateY(180deg); }
.lms-flash-k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--v2-teal-d); }
.lms-flash-back .lms-flash-k { color: #BFEDEF; }
.lms-flash-q { font-size: 16px; line-height: 23px; font-weight: 600; color: var(--v2-ink); }
.lms-flash-back .lms-flash-q { color: #fff; font-weight: 500; }
.lms-flash-hint { font-size: 12px; color: var(--v2-muted); }
.lms-flash-back .lms-flash-hint { color: #BFEDEF; }
@media (prefers-reduced-motion: reduce) { .lms-flash-in { transition: none; } }

/* ---------- question card ---------- */
.lms-qblock { display: flex; flex-direction: column; gap: 16px; }
.lms-qblock-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
body.v2 .lms-qblock-h h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; color: var(--v2-ink); letter-spacing: -.2px; }
.lms-qblock-h p { margin: 0 !important; font-size: 14px !important; color: var(--v2-muted) !important; }
.lms-q { background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); padding: 22px 24px; box-shadow: var(--lms-shadow); }
.lms-q-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.lms-q-n { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--v2-muted); }
body.v2 .lms-q-stem { margin: 0 0 16px; font-size: 18px; line-height: 27px; font-weight: 600; color: var(--v2-ink); }
.lms-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
body.v2 .lms-opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 52px; box-sizing: border-box; padding: 12px 14px;
  border: 1.5px solid var(--v2-line); border-radius: 10px; background: #fff; color: var(--v2-ink);
  font: inherit; font-size: 16px; line-height: 23px; text-align: left; cursor: pointer; transition: border-color .12s, background .12s;
}
body.v2 .lms-opt:hover { border-color: var(--v2-teal); background: #FAFDFD; }
.lms-opt-k { flex: none; width: 28px; height: 28px; margin-top: -2px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #EEF4F6; color: #3B4A55; }
.lms-opt-t { flex: 1; min-width: 0; padding-top: 1px; }
.lms-opt-s { flex: none; font-size: 13px; font-weight: 700; padding-top: 2px; }
body.v2 .lms-opt.is-picked { border-color: var(--v2-teal-d); background: var(--v2-tint); }
body.v2 .lms-opt.is-correct { border-color: var(--lms-ok); background: var(--lms-ok-tint); cursor: default; }
.lms-opt.is-correct .lms-opt-k { background: var(--lms-ok); color: #fff; }
.lms-opt.is-correct .lms-opt-s { color: var(--lms-ok); }
body.v2 .lms-opt.is-wrong { border-color: var(--lms-bad); background: var(--lms-bad-tint); cursor: default; }
.lms-opt.is-wrong .lms-opt-k { background: var(--lms-bad); color: #fff; }
.lms-opt.is-wrong .lms-opt-s { color: var(--lms-bad); }
body.v2 .lms-opt.is-dim { color: var(--v2-muted); border-color: var(--v2-line-soft); cursor: default; }
.lms-opt.is-dim .lms-opt-k { background: #F3F6F8; color: var(--v2-muted); }
body.v2 .lms-opt.is-dim:hover { border-color: var(--v2-line); background: #fff; }
body.v2 .lms-opt.is-correct:hover { border-color: var(--lms-ok); background: var(--lms-ok-tint); }
body.v2 .lms-opt.is-wrong:hover { border-color: var(--lms-bad); background: var(--lms-bad-tint); }
body.v2 .lms-opt:disabled { cursor: default; }

/* feedback */
.lms-fb { margin-top: 16px; padding: 16px 18px; border-radius: 10px; border-left: 4px solid; }
.lms-fb.is-ok { background: var(--lms-ok-tint); border-color: var(--lms-ok); }
.lms-fb.is-bad { background: var(--lms-bad-tint); border-color: var(--lms-bad); }
.lms-fb-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.lms-fb.is-ok .lms-fb-h { color: var(--lms-ok); }
.lms-fb.is-bad .lms-fb-h { color: var(--lms-bad); }
body.v2 .lms-fb p { margin: 0 0 8px; font-size: 15px; line-height: 24px; color: var(--v2-ink); }
.lms-fb-why { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.lms-fb-why li { font-size: 14px; line-height: 21px; color: #3B4A55; padding-left: 26px; position: relative; }
.lms-fb-why li b { position: absolute; left: 0; top: 0; width: 20px; color: var(--v2-muted); }
.lms-fb-concept { margin-top: 12px; padding: 12px 14px; background: #fff; border-radius: 8px; font-size: 14px; line-height: 21px; color: var(--v2-ink); }
.lms-fb-concept a { font-weight: 600; }
.lms-fb .lms-src { margin-top: 12px; }
.lms-q-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--v2-line); }
.lms-q-foot-l { font-size: 13px; color: var(--v2-muted); }
.lms-noscript { margin-top: 14px; }
.lms-noscript summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--v2-teal-dd); }

/* end of a chapter, previous / next */
.lms-chapend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.v2 .lms-chapend a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; min-height: 44px; background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); color: var(--v2-ink); }
body.v2 .lms-chapend a:hover { border-color: var(--v2-teal); }
body.v2 .lms-chapend a.is-next { text-align: right; background: var(--v2-teal-d); border-color: var(--v2-teal-d); color: #fff; }
body.v2 .lms-chapend a.is-next:hover { background: var(--v2-teal-dd); }
.lms-chapend span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--v2-muted); }
.lms-chapend a.is-next span { color: #CBEFF1; }
.lms-chapend b { font-size: 16px; line-height: 22px; font-weight: 600; }

/* ---------- cards used across pages ---------- */
.lms-card { background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); padding: 22px 24px; }
.lms-card.is-tint { background: #F4FBFB; border-color: #B9DFE2; }
body.v2 .lms-card-h { margin: 0 0 10px; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--v2-ink); letter-spacing: -.2px; }
body.v2 .lms-card-h.is-sm { font-size: 16px; line-height: 22px; font-weight: 600; }
.lms-card-k { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--v2-teal-d); }
.lms-answer { border-left: 4px solid var(--v2-teal); }
body.v2 .lms-answer p { font-size: 16px; line-height: 26px; color: var(--v2-ink); margin: 0 0 10px; }
.lms-answer p:last-child { margin-bottom: 0; }

/* continue where you left off */
.lms-continue { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid #B9DFE2; border-radius: var(--v2-radius); box-shadow: inset 4px 0 0 var(--v2-orange); }
.lms-continue-ring { flex: none; width: 52px; height: 52px; }
.lms-continue-body { flex: 1; min-width: 0; }
.lms-continue-k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--v2-orange-ink); }
.lms-continue-t { display: block; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--v2-ink); }
.lms-continue-m { display: block; font-size: 13px; color: var(--v2-muted); margin-top: 2px; }
.lms-rail .lms-continue { flex-direction: column; align-items: stretch; }
.lms-rail .lms-continue .lms-btn { width: 100%; }

/* book contents on the course hub, with progress per chapter */
.lms-chapters { list-style: none; margin: 0; padding: 0; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); background: #fff; overflow: hidden; }
.lms-chapters li { border-bottom: 1px solid var(--v2-line); }
.lms-chapters li:last-child { border-bottom: 0; }
body.v2 .lms-chapters a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 128px; gap: 14px; align-items: center; padding: 14px 18px; color: var(--v2-ink); min-height: 44px; }
body.v2 .lms-chapters a:hover { background: #FAFCFD; }
.lms-chap-n { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: #EEF4F6; color: #3B4A55; }
.lms-chapters .is-done .lms-chap-n { background: var(--lms-ok); color: #fff; }
.lms-chapters .is-now .lms-chap-n { background: var(--v2-orange); color: var(--v2-ink); }
.lms-chap-t { display: block; font-size: 16px; line-height: 22px; font-weight: 600; }
.lms-chap-m { display: block; font-size: 13px; color: var(--v2-muted); margin-top: 2px; }
.lms-chap-p { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--v2-muted); text-align: right; }

/* practice and mock-exam entry cards */
.lms-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lms-mode { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); }
.lms-mode.is-exam { background: var(--v2-foot); border-color: var(--v2-foot); }
body.v2 .lms-mode h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; color: var(--v2-ink); }
body.v2 .lms-mode.is-exam h3 { color: #fff; }
body.v2 .lms-mode p { margin: 0; font-size: 14px; line-height: 22px; color: var(--v2-body); }
body.v2 .lms-mode.is-exam p { color: #B8C6CE; }
.lms-mode .lms-btn { margin-top: auto; align-self: flex-start; }

/* ---------- practice header ---------- */
.lms-pbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); overflow: hidden; }
.lms-pstat { padding: 14px 16px; border-right: 1px solid var(--v2-line); }
.lms-pstat:last-child { border-right: 0; }
.lms-pstat-k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--v2-muted); }
.lms-pstat-v { display: block; margin-top: 2px; font-size: 24px; line-height: 30px; font-weight: 700; color: var(--v2-ink); font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.lms-pstat-v small { font-size: 13px; font-weight: 600; color: var(--v2-muted); letter-spacing: 0; }
.lms-pstat.is-streak .lms-pstat-v { color: var(--v2-orange-ink); }
.lms-streak-dots { display: flex; gap: 3px; margin-top: 6px; }
.lms-streak-dots i { width: 10px; height: 4px; border-radius: 2px; background: var(--v2-orange); }
.lms-streak-dots i.is-off { background: var(--v2-line); }
.lms-pfilter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lms-pfilter-l { font-size: 13px; font-weight: 600; color: var(--v2-ink); margin-right: 4px; }
body.v2 .lms-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--v2-line); background: #fff; color: #3B4A55; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
body.v2 .lms-pill[aria-pressed="true"] { background: var(--v2-teal-d); border-color: var(--v2-teal-d); color: #fff; }
/* 36px pills keep a 44px tap row through their 8px gap */
.lms-pfilter .lms-pill { position: relative; }
.lms-pfilter .lms-pill::after { content: ""; position: absolute; inset: -4px 0; }

/* ---------- mock exam ---------- */
.lms-exam-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 18px; background: var(--v2-foot); color: #fff; border-radius: var(--v2-radius); }
.lms-exam-t { font-size: 14px; font-weight: 600; flex: 1; min-width: 160px; }
.lms-exam-t small { display: block; font-size: 12px; font-weight: 500; color: #8FA3AF; }
.lms-timer { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lms-timer svg { flex: none; }
.lms-exam-bar .lms-bar { flex: 1 1 100%; background: #243540; height: 6px; }
.lms-exam-bar .lms-bar > i { background: var(--v2-orange); }
body.v2 .lms-exam-bar .lms-btn.is-onband { border-color: #5E7480; }
.lms-nav-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
body.v2 .lms-nav-grid button {
  min-height: 44px; border-radius: 8px; border: 1.5px solid var(--v2-line); background: #fff; color: #3B4A55;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; position: relative; font-variant-numeric: tabular-nums;
}
body.v2 .lms-nav-grid button.is-done { background: var(--v2-tint); border-color: #9FCFD3; color: var(--v2-teal-dd); }
body.v2 .lms-nav-grid button.is-now { background: var(--v2-teal-d); border-color: var(--v2-teal-d); color: #fff; }
body.v2 .lms-nav-grid button.is-flag::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--v2-orange); box-shadow: 0 0 0 2px #fff; }
.lms-nav-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--v2-muted); }
.lms-nav-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lms-nav-legend i { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--v2-line); background: #fff; }
.lms-nav-legend i.is-done { background: var(--v2-tint); border-color: #9FCFD3; }
.lms-nav-legend i.is-now { background: var(--v2-teal-d); border-color: var(--v2-teal-d); }
.lms-nav-legend i.is-flag { border-radius: 50%; background: var(--v2-orange); border-color: var(--v2-orange); }
body.v2 .lms-flagbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--v2-line); background: #fff; color: var(--v2-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
body.v2 .lms-flagbtn[aria-pressed="true"] { border-color: var(--v2-orange); background: var(--v2-orange-tint); color: var(--v2-orange-ink); }
.lms-exam-move { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lms-exam-note { font-size: 13px; line-height: 20px; color: var(--v2-muted); }
.lms-setup { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- results ---------- */
.lms-result { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center; }
.lms-ring { width: 180px; height: 180px; }
.lms-ring text { font-family: Inter, system-ui, sans-serif; }
body.v2 .lms-result h2 { margin: 0 0 6px; font-size: 24px; line-height: 31px; font-weight: 700; color: var(--v2-ink); }
.lms-result-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 16px; font-size: 14px; color: var(--v2-body); }
.lms-result-stats b { color: var(--v2-ink); }
.lms-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lms-topics li { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 6px 14px; align-items: center; }
.lms-topic-t { font-size: 15px; font-weight: 600; color: var(--v2-ink); }
.lms-topic-t small { display: block; font-size: 12px; font-weight: 500; color: var(--v2-muted); }
.lms-topic-v { text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lms-topics .lms-bar { grid-column: 1 / -1; }
.lms-topics li.is-weak .lms-bar > i { background: var(--lms-bad); }
.lms-topics li.is-weak .lms-topic-v { color: var(--lms-bad); }
.lms-topics li.is-mid .lms-bar > i { background: var(--v2-orange); }
.lms-review { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lms-review details { background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); }
.lms-review summary { list-style: none; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; min-height: 44px; }
.lms-review summary::-webkit-details-marker { display: none; }
.lms-review-n { width: 28px; height: 28px; border-radius: 50%; background: var(--lms-bad-tint); color: var(--lms-bad); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.lms-review-q { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--v2-ink); }
.lms-review-go { font-size: 13px; font-weight: 600; color: var(--v2-teal-dd); white-space: nowrap; }
.lms-review details[open] .lms-review-go::after { content: " (cerrar)"; font-weight: 500; color: var(--v2-muted); }
.lms-review-body { padding: 0 16px 16px 60px; }
.lms-review-body .lms-fb { margin-top: 0; }
.lms-answer-row { display: flex; gap: 8px; align-items: baseline; font-size: 14px; line-height: 21px; margin: 0 0 6px; }
.lms-answer-row b { flex: none; width: 104px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.lms-answer-row.is-bad b { color: var(--lms-bad); }
.lms-answer-row.is-ok b { color: var(--lms-ok); }

/* ---------- catalogue ---------- */
.lms-cat { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; align-items: start; }
.lms-filters { background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); position: sticky; top: 16px; }
.lms-filters-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--v2-line); font-size: 15px; font-weight: 700; }
.lms-filters fieldset { margin: 0; padding: 12px 16px 10px; border: 0; border-bottom: 1px solid var(--v2-line); min-width: 0; }
.lms-filters fieldset:last-of-type { border-bottom: 0; }
.lms-filters legend { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--v2-ink); }
body.v2 .lms-filters label { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0; font-size: 14px; font-weight: 400; color: #3B4A55; cursor: pointer; clear: both; }
.lms-filters input[type="checkbox"], .lms-filters input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--v2-teal-d); flex: none; }
.lms-filters label span { margin-left: auto; font-size: 12px; color: var(--v2-muted); }
.lms-filter-toggle { display: none; }
.lms-cat-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; color: var(--v2-muted); }
.lms-cat-bar b { color: var(--v2-ink); }
.lms-active { display: flex; flex-wrap: wrap; gap: 6px; }
body.v2 .lms-active button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--v2-tint); color: var(--v2-teal-dd); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.lms-cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lms-cgrid > .lms-ad { grid-column: 1 / -1; }
.lms-ccard { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); position: relative; transition: border-color .15s, box-shadow .15s; }
.lms-ccard:hover { border-color: #9FCFD3; box-shadow: 0 6px 18px rgba(0,90,97,.07); }
.lms-ccard-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lms-ccard-meta { font-size: 12px; color: var(--v2-muted); }
body.v2 .lms-ccard-t { margin: 0; font-size: 17px; line-height: 23px; font-weight: 600; color: var(--v2-ink); }
body.v2 .lms-ccard-t a { color: var(--v2-ink); }
body.v2 .lms-ccard-t a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
body.v2 .lms-ccard-t a:hover { color: var(--v2-teal-dd); }
body.v2 .lms-ccard p { margin: 0; font-size: 14px; line-height: 21px; color: var(--v2-body); }
.lms-ccard-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--v2-line-soft); font-size: 13px; color: var(--v2-muted); }
.lms-ccard-foot b { color: var(--v2-ink); font-weight: 600; }
.lms-ccard .lms-bookmark { position: relative; z-index: 1; }
body.v2 .lms-ccard-off { position: relative; z-index: 1; font-size: 13px; font-weight: 600; color: var(--v2-teal-dd); text-decoration: underline; text-underline-offset: 2px; }
.lms-ccard.is-noguide { background: #FBFCFD; }

/* ---------- guide steps ---------- */
.lms-steps { list-style: none; counter-reset: s; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 0; }
.lms-steps > li { counter-increment: s; position: relative; padding: 0 0 22px 56px; }
.lms-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--v2-teal-d); color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.lms-steps > li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--v2-line); }
.lms-steps > li:last-child::after { display: none; }
body.v2 .lms-steps h3 { margin: 6px 0 6px !important; font-size: 18px !important; line-height: 25px !important; }
body.v2 .lms-steps p { margin: 0 0 8px !important; }

/* ---------- auth ---------- */
.lms-auth { max-width: 440px; }
body.v2 .lms-social {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; box-sizing: border-box;
  border-radius: 8px; border: 1px solid #C9D5DB; background: #fff; color: var(--v2-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
body.v2 .lms-social:hover { border-color: var(--v2-teal); background: #FAFDFD; }
body.v2 .lms-social.is-fb { background: #1877F2; border-color: #1877F2; color: #fff; }
body.v2 .lms-social.is-fb:hover { background: #166FE5; }
.lms-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 13px; color: var(--v2-muted); }
.lms-or::before, .lms-or::after { content: ""; flex: 1; height: 1px; background: var(--v2-line); }
.lms-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
body.v2 .lms-field label, body.v2 .lms-field .lms-label { margin: 0; font-size: 14px; font-weight: 600; color: var(--v2-ink); }
body.v2 .lms-input, body.v2 .lms-select {
  width: 100%; min-height: 48px; box-sizing: border-box; padding: 0 14px; border: 1px solid #C9D5DB; border-radius: 8px;
  background: #fff; font: inherit; font-size: 16px; color: var(--v2-ink);
}
body.v2 .lms-input:focus, body.v2 .lms-select:focus { outline: none; border-color: var(--v2-teal-d); box-shadow: 0 0 0 3px rgba(0,124,133,.22); }
.lms-hint { font-size: 13px; line-height: 19px; color: var(--v2-muted); }
.lms-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--v2-bg); border-radius: 10px; }
body.v2 .lms-tabs button { min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--v2-muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
body.v2 .lms-tabs button[aria-selected="true"] { background: #fff; color: var(--v2-ink); box-shadow: 0 1px 3px rgba(20,32,42,.1); }
.lms-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lms-benefits li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 22px; color: var(--v2-body); }
.lms-benefits li b { display: block; color: var(--v2-ink); }
.lms-check { width: 28px; height: 28px; border-radius: 50%; background: var(--v2-tint); display: flex; align-items: center; justify-content: center; }

/* ---------- onboarding dialog ---------- */
.lms-dialog { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,50,60,.25); overflow: hidden; }
.lms-dialog-top { padding: 20px 24px 0; }
.lms-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.lms-dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--v2-line); }
.lms-dots i.is-on { background: var(--v2-teal); }
.lms-dialog-k { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--v2-muted); }
body.v2 .lms-dialog h2 { margin: 4px 0 6px; font-size: 24px; line-height: 31px; font-weight: 700; color: var(--v2-ink); }
.lms-dialog-body { padding: 16px 24px 8px; }
.lms-dialog-foot { display: flex; justify-content: space-between; gap: 10px; padding: 16px 24px 20px; border-top: 1px solid var(--v2-line); margin-top: 8px; }
.lms-step { display: none; }
.lms-step.is-on { display: block; }
.lms-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.v2 .lms-choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; box-sizing: border-box; border: 1.5px solid var(--v2-line); border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--v2-ink); cursor: pointer; margin: 0; line-height: 19px; }
.lms-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--v2-teal-d); flex: none; }
body.v2 .lms-choice:has(input:checked) { border-color: var(--v2-teal-d); background: var(--v2-tint); }
.lms-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lms-story .lms-card { padding: 16px; }
.lms-story-n { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--v2-teal-d); color: #fff; font-size: 13px; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 8px; }

/* ---------- dashboard ---------- */
.lms-dash-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lms-kpi { background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); padding: 16px 18px; }
.lms-kpi-k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--v2-muted); }
.lms-kpi-v { display: block; margin-top: 4px; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.4px; color: var(--v2-ink); font-variant-numeric: tabular-nums; }
.lms-kpi-v small { font-size: 14px; font-weight: 600; color: var(--v2-muted); letter-spacing: 0; }
.lms-kpi-m { display: block; font-size: 13px; color: var(--v2-muted); margin-top: 2px; }
.lms-today { list-style: none; margin: 0; padding: 0; }
.lms-today li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--v2-line-soft); }
.lms-today li:last-child { border-bottom: 0; }
.lms-today input { width: 20px; height: 20px; accent-color: var(--v2-teal-d); margin: 0; }
.lms-today-t { font-size: 15px; font-weight: 600; color: var(--v2-ink); }
.lms-today-t small { display: block; font-size: 13px; font-weight: 400; color: var(--v2-muted); }
.lms-today li.is-done .lms-today-t { color: var(--v2-muted); text-decoration: line-through; }
.lms-courses { display: flex; flex-direction: column; gap: 12px; }
.lms-cprog { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); }
body.v2 .lms-cprog h3 { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; }
body.v2 .lms-cprog h3 a { color: var(--v2-ink); }
.lms-cprog-m { font-size: 13px; color: var(--v2-muted); margin-top: 2px; }
.lms-cprog-p { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--v2-muted); }
.lms-cprog-p b { color: var(--v2-ink); }
.lms-weak { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lms-weak li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); }
.lms-weak-t { font-size: 15px; font-weight: 600; color: var(--v2-ink); }
.lms-weak-t small { display: block; font-size: 13px; font-weight: 400; color: var(--v2-muted); }
.lms-hist { width: 100%; border-collapse: collapse; font-size: 14px; }
.lms-hist th, .lms-hist td { padding: 11px 12px; border-bottom: 1px solid var(--v2-line); text-align: left; }
.lms-hist th { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--v2-muted); }
.lms-hist td.n { font-variant-numeric: tabular-nums; font-weight: 600; }
.lms-spark { display: block; width: 100%; height: 64px; }
.lms-data { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- gallery (index.html) ---------- */
.lms-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.v2 .lms-gallery a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); color: var(--v2-ink); }
body.v2 .lms-gallery a:hover { border-color: var(--v2-teal); }
.lms-gallery b { font-size: 16px; }
.lms-gallery code { font-size: 12px; color: var(--v2-teal-dd); }
.lms-gallery span { font-size: 14px; color: var(--v2-body); }

/* ---------- ad placeholders ----------
   Drawn only in the prototype. In the templates each one becomes the plain
   AdSense <ins> snippet with its own data-ad-slot. The label states the unit. */
.lms-ad {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-sizing: border-box;
  width: 100%; border: 1.5px dashed #A9B8C1; border-radius: var(--v2-radius); color: #5B6B76; text-align: center;
  background: repeating-linear-gradient(135deg, #F7F9FA 0 10px, #EFF3F5 10px 20px);
}
.lms-ad b { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #3B4A55; }
.lms-ad span { font-size: 12px; }
.lms-ad.is-rail { height: 600px; }
.lms-ad.is-rail-sm { height: 250px; }
.lms-ad.is-in { height: 280px; margin: 8px 0; }
.lms-ad.is-h { height: 100px; }
.lms-ad.is-mx { height: 320px; }
.lms-ad.is-anchor { display: none; }
.lms-book > .lms-ad { margin: 28px 0; }
.lms-ad.is-mobile { display: none; }

/* ---------- tablet: the chapter loses its left rail, the TOC folds in ---------- */
@media (max-width: 1199px) {
  .lms-shell { grid-template-columns: minmax(0, 1fr) var(--lms-rail); }
  .lms-shell > .lms-tocrail { display: none; }
  .lms-toc-mini { display: block; }
  .lms-toc-mini summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; cursor: pointer; font-weight: 600; background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); }
  .lms-toc-mini[open] summary { border-radius: var(--v2-radius) var(--v2-radius) 0 0; }
  .lms-toc-mini .lms-toc { position: static; padding: 14px 16px 4px; background: #fff; border: 1px solid var(--v2-line); border-top: 0; border-radius: 0 0 var(--v2-radius) var(--v2-radius); }
}
/* ---------- below 992px: no ad rail; anchor + in-content units take over ---------- */
@media (max-width: 991px) {
  .lms-page, .lms-shell { grid-template-columns: minmax(0, 1fr); }
  .lms-rail { display: none; }
  .lms-ad.is-mobile { display: flex; }
  .lms-ad.is-anchor {
    display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: 64px; border-radius: 0;
    border: 0; border-top: 1px solid #A9B8C1; background: #EEF2F4; flex-direction: row; gap: 10px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  /* the anchor never covers content: the page ends 64px higher */
  body.v2.lms-has-anchor { padding-bottom: 64px; }
  .lms-cat { grid-template-columns: minmax(0, 1fr); }
  .lms-filters { position: static; }
  .lms-filter-toggle { display: inline-flex; }
  .lms-filters:not(.is-open) form { display: none; }
}
@media (max-width: 767px) {
  .lms-page, .lms-shell { padding-top: 16px; gap: 16px; }
  body.v2 .lms-h1 { font-size: 26px; line-height: 33px; }
  body.v2 .lms-sub { font-size: 15px; line-height: 23px; }
  .lms-eyebrow { margin-top: 12px; }
  .lms-indep-in { padding: 10px 0; font-size: 12.5px; }
  .lms-book { padding: 20px 18px 24px; border-radius: 0; border-left: 0; border-right: 0; margin: 0 -16px; }
  body.v2 .lms-book p, body.v2 .lms-book li { font-size: 17px; line-height: 28px; }
  body.v2 .lms-book h2 { font-size: 22px; line-height: 29px; margin-top: 30px; }
  .lms-lead { font-size: 18px !important; line-height: 29px !important; }
  .lms-card { padding: 18px 16px; }
  .lms-q { padding: 18px 16px; }
  body.v2 .lms-q-stem { font-size: 17px; line-height: 25px; }
  .lms-flash-set, .lms-modes, .lms-cgrid, .lms-gallery, .lms-story, .lms-dash-top { grid-template-columns: minmax(0, 1fr); }
  .lms-chapend { grid-template-columns: 1fr; }
  body.v2 .lms-chapters a { grid-template-columns: 36px minmax(0, 1fr); }
  .lms-chap-p { grid-column: 2; text-align: left; flex-direction: row; align-items: center; gap: 10px; }
  .lms-chap-p .lms-bar { flex: 1; }
  .lms-pbar { grid-template-columns: 1fr 1fr; }
  .lms-pstat:nth-child(2) { border-right: 0; }
  .lms-pstat:nth-child(-n+2) { border-bottom: 1px solid var(--v2-line); }
  .lms-pstat-v { font-size: 20px; line-height: 26px; }
  .lms-nav-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lms-result { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .lms-result .lms-actions, .lms-result-stats { justify-content: center; }
  .lms-ring { width: 150px; height: 150px; }
  .lms-review-body { padding: 0 16px 16px; }
  .lms-cprog { grid-template-columns: minmax(0, 1fr); }
  .lms-choice-grid { grid-template-columns: minmax(0, 1fr); }
  .lms-flow-desktop { display: none; }
  .lms-flow-mobile { display: block; }
  .lms-ad.is-in { height: 250px; }
  .lms-ad.is-h { height: 100px; }
  .lms-ad.is-mx { height: 280px; }
  .lms-dialog { border-radius: 12px; }
  .lms-dialog-top, .lms-dialog-body, .lms-dialog-foot { padding-left: 18px; padding-right: 18px; }
  .lms-exam-bar { padding: 10px 14px; gap: 10px; }
  .lms-timer { font-size: 19px; }
  .lms-answer-row { flex-direction: column; gap: 0; }
}

/* ---------- additions: home hero line, 3-up cards, catalogue shell, FAQ, reading bar ---------- */
body.v2 .lms-hero-indep { margin: 14px auto 0; max-width: 760px; text-align: center; font-size: 13px; line-height: 19px; color: #fff; text-shadow: 0 1px 2px rgba(0,60,70,.35); }
.lms-cgrid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lms-shell.is-cat { grid-template-columns: 220px minmax(0, 1fr) var(--lms-rail); }
.lms-faq { display: flex; flex-direction: column; gap: 8px; }
.lms-faq details { background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); }
.lms-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--v2-ink); }
.lms-faq summary::-webkit-details-marker { display: none; }
.lms-faq summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--v2-teal-d); }
.lms-faq details[open] summary::after { content: "\2212"; }
body.v2 .lms-faq details p { margin: 0; padding: 0 18px 16px; font-size: 15px; line-height: 24px; color: var(--v2-body); }
.lms-readbar { position: fixed; z-index: 50; left: 0; top: 0; height: 3px; width: 0; background: var(--v2-orange); }
.lms-facts { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--v2-line); }
.lms-facts dt, .lms-facts dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--v2-line); font-size: 14px; line-height: 21px; }
.lms-facts dt { font-weight: 600; color: var(--v2-ink); padding-right: 12px; }
.lms-facts dd { color: var(--v2-body); }
.lms-srcs { margin: 0; padding-left: 20px; }
.lms-srcs li { font-size: 13.5px; line-height: 21px; color: var(--v2-body); margin-bottom: 6px; }
.lms-meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--v2-muted); }
.lms-qlocked { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 20px; border: 1px dashed #9FCFD3; border-radius: var(--v2-radius); background: #F4FBFB; }
.lms-qlocked b { display: block; font-size: 16px; color: var(--v2-ink); }
.lms-qlocked span { font-size: 14px; color: var(--v2-body); }
@media (max-width: 1199px) {
  .lms-shell.is-cat { grid-template-columns: minmax(0, 1fr) var(--lms-rail); }
  .lms-shell.is-cat > .lms-filtercol { grid-column: 1; grid-row: 1; }
  .lms-shell.is-cat > .lms-main { grid-column: 1; grid-row: 2; }
  .lms-shell.is-cat > .lms-rail { grid-column: 2; grid-row: 1 / span 2; }
  .lms-shell.is-cat .lms-filters { position: static; }
  .lms-shell.is-cat .lms-filter-toggle { display: inline-flex; }
  .lms-shell.is-cat .lms-filters:not(.is-open) form { display: none; }
  .lms-cgrid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .lms-shell.is-cat { grid-template-columns: minmax(0, 1fr); }
  .lms-shell.is-cat > .lms-filtercol, .lms-shell.is-cat > .lms-main { grid-column: 1; grid-row: auto; }
}
@media (max-width: 767px) {
  .lms-cgrid.is-3 { grid-template-columns: minmax(0, 1fr); }
  .lms-facts { grid-template-columns: minmax(0, 1fr); }
  .lms-facts dt { border-bottom: 0; padding-bottom: 0; }
  .lms-facts dd { padding-top: 2px; }
  body.v2 .lms-hero-indep { font-size: 12.5px; }
}
.lms-mobile-only { display: none; }
@media (max-width: 991px) { .lms-mobile-only { display: block; } }

/* specificity fixes: the theme's paragraph rules must not enlarge these small lines */
body.v2 p.lms-src, body.v2 .lms-book p.lms-src, body.v2 .lms-box p.lms-src, body.v2 .lms-fb p.lms-src, body.v2 .lms-card p.lms-src { font-size: 12.5px; line-height: 19px; color: var(--v2-muted); margin: 10px 0 0; }
body.v2 .lms-table-wrap p.lms-src { margin: 0; padding: 10px 14px 12px; }
body.v2 .lms-box p.lms-box-h { margin: 0 0 6px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: inherit; }
body.v2 .lms-box.is-fact p.lms-box-h { color: var(--v2-teal-dd); }
body.v2 .lms-box.is-error p.lms-box-h { color: var(--lms-bad); }
body.v2 .lms-box.is-memo p.lms-box-h { color: var(--v2-orange-ink); }
body.v2 .lms-box.is-exam p.lms-box-h { color: var(--v2-ink); }
body.v2 .lms-fb p.lms-fb-h { font-size: 17px; line-height: 22px; font-weight: 700; margin: 0 0 6px; }
body.v2 .lms-fb.is-ok p.lms-fb-h { color: var(--lms-ok); }
body.v2 .lms-fb.is-bad p.lms-fb-h { color: var(--lms-bad); }
body.v2 .lms-book p.lms-meta-line { font-size: 13px; line-height: 19px; color: var(--v2-muted); }
body.v2 p.lms-hint, body.v2 .lms-card p.lms-hint { font-size: 13px; line-height: 19px; color: var(--v2-muted); }
