/* IELTS lesson and exercise pages in the Vidi game style (vidi-game.css, chosen by the owner on 1 Nov 2026).
   A night .vg-panel header with the title, skill, breadcrumbs, set progress and the bobbing otter; the stepper as a
   night bar; everything people read (lesson parts, examples, questions, answers) on light bevelled cards; bevelled
   aqua / violet / gold buttons with the hover shine; the exercise score as a night panel whose number counts up.
   Loaded after lesson-v2.css / practice-v2.css, so selectors start with `html body[...]` to win over their !important
   radii (and ielts-colors.css's skill colours). Bevels replace rounded corners. Motion stops under prefers-reduced-motion. */
html body[data-study-mode="ielts"][data-study-module] { --lg-c: #6a4fe0; --lg-soft: #f1edff; --lg-aqua-soft: #e7fafa; --lg-gold-soft: #fff6d8;
  --lg-bevel: polygon(var(--vg-bevel-sm) 0, 100% 0, 100% calc(100% - var(--vg-bevel-sm)), calc(100% - var(--vg-bevel-sm)) 100%, 0 100%, 0 var(--vg-bevel-sm));
  --lg-bevel-xs: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
html body[data-study-step="lesson"][data-study-module], html body[data-study-step="lesson"][data-study-module] .lesson-page,
html body[data-study-step="exercise"][data-study-module], html body[data-study-step="exercise"][data-study-module] .exercise-page { background: var(--vg-paper); }
.vg-btn[hidden], .lg-progress[hidden], .lg-result[hidden] { display: none !important; }

/* ── Header panel ── */
html body[data-study-mode="ielts"][data-study-module] .lg-hero { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: end; gap: 4px 16px; margin: 0 0 16px; padding: 22px 22px 18px 26px; }
html body[data-study-mode="ielts"][data-study-module] .lg-hero-main { position: relative; min-width: 0; }
html body[data-study-mode="ielts"][data-study-module] .lg-otter { align-self: end; width: 150px; height: auto; margin: 0 0 -4px; }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .crumbs { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 12px; color: var(--vg-text-3); font: 600 13px/1.5 var(--ir-font); }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .crumbs a { color: var(--vg-text-2); text-decoration: none; }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .crumbs a:last-child { color: var(--vg-aqua); font-weight: 800; }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .crumbs a:hover { color: #fff; text-decoration: underline; }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .lesson-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--vg-text-2); }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .lesson-kicker > :is(span, .badge) { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 4px 11px; border: 0 !important; border-radius: 0 !important;
  background: rgba(255, 255, 255, .1); color: var(--vg-text); font: 800 12.5px/1.4 var(--ir-font); letter-spacing: .02em; text-transform: none; clip-path: var(--lg-bevel-xs); }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .lesson-kicker .step-pill { background: var(--vg-aqua); color: var(--vg-night); }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .lesson-kicker .badge-free { background: var(--vg-gold); color: var(--vg-night); text-transform: uppercase; }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .lesson-kicker .badge-pro { background: var(--vg-violet-lite); color: var(--vg-night); }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .kicker { margin: 0 0 4px; color: var(--vg-violet-lite); font: 800 12px/1.4 var(--ir-font); letter-spacing: .08em; text-transform: uppercase; }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .kicker::before { display: none; }
html body[data-study-mode="ielts"][data-study-module] .lesson .lg-hero :is(h1, #ielts-exercise-title) { margin: 0 0 8px; padding-top: 2px; font: 800 clamp(28px, 3.1vw, 40px)/1.35 var(--vg-display); letter-spacing: .2px; text-transform: none;
  background: linear-gradient(180deg, #fff 30%, var(--vg-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Each line of a two-line title gets its own white-to-gold fade. */
html body[data-study-mode="ielts"][data-study-module] .lesson .lg-hero :is(h1, #ielts-exercise-title) span { color: transparent; background: linear-gradient(180deg, #fff 30%, var(--vg-gold));
  -webkit-background-clip: text; background-clip: text; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .lesson-summary { max-width: 62ch; margin: 0 0 14px; color: var(--vg-text-2); font: 400 17px/1.6 var(--ir-font); }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .step-before { margin: 0 0 14px; padding: 0; border: 0; background: none; color: var(--vg-text-2); font: 500 15px/1.55 var(--ir-font); }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .step-before a { color: var(--vg-aqua); font-weight: 700; }
html body[data-study-mode="ielts"][data-study-module] .lg-hero .st-inline { margin: 0 0 14px; }

/* Set progress: a glowing bar under the title, filled from the outline's done steps (lesson-game.js). */
html body[data-study-mode="ielts"][data-study-module] .lg-progress { display: flex; align-items: center; gap: 12px; max-width: 540px; margin: 2px 0 0; }
html body[data-study-mode="ielts"][data-study-module] .lg-progress .vg-bar { flex: 1 1 auto; }
html body[data-study-mode="ielts"][data-study-module] .lg-progress .vg-bar > i { transition: width .9s cubic-bezier(.2, .8, .2, 1); }
html body[data-study-mode="ielts"][data-study-module] .lg-progress-text { color: var(--vg-text-2); font: 600 13px/1.4 var(--ir-font); white-space: nowrap; }
html body[data-study-mode="ielts"][data-study-module] .lg-progress-text b { color: var(--vg-aqua); font: 800 17px/1 var(--vg-display); text-shadow: 0 0 12px rgba(86, 218, 220, .7); }

/* Exercise timer, moved into the header: the clock is a glowing number. */
html body[data-study-mode="ielts"][data-study-module] .lg-hero .ielts-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0 0; padding: 0; }
html body[data-study-mode="ielts"][data-study-module] .lg-hero #ielts-timer { color: var(--vg-gold); font: 800 30px/1 var(--vg-display); text-shadow: 0 0 16px rgba(255, 200, 61, .65); font-variant-numeric: tabular-nums; }
html body[data-study-mode="ielts"][data-study-module] .lg-hero #ielts-timer-reset { padding: 0; border: 0; background: none; color: var(--vg-text-2); font: 600 13px/1.4 var(--ir-font); text-decoration: underline; cursor: pointer; }
html body[data-study-mode="ielts"][data-study-module] .lg-hero #ielts-timer-reset:hover { color: #fff; }

/* Exercise header: compact, so the first answer stays above the fold at 1366 x 768 (tests/study_split_browser.py).
   The tutor button, the timer and the set progress share rows instead of stacking. */
html body[data-study-step="exercise"][data-study-module] .lg-hero { padding: 16px 22px 14px 24px; grid-template-columns: minmax(0, 1fr) 128px; }
html body[data-study-step="exercise"][data-study-module] .lg-otter { width: 128px; }
html body[data-study-step="exercise"][data-study-module] .lg-hero-main { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
html body[data-study-step="exercise"][data-study-module] .lg-hero-main > * { flex: 1 0 100%; min-width: 0; }
html body[data-study-step="exercise"][data-study-module] .lg-hero-main > :is(.st-inline, .ielts-tools) { flex: 0 1 auto; margin: 0 0 10px; }
html body[data-study-step="exercise"][data-study-module] .lg-hero-main > .lg-progress { order: 2; }
html body[data-study-step="exercise"][data-study-module] .lg-hero .crumbs { margin-bottom: 8px; }
html body[data-study-step="exercise"][data-study-module] .lg-hero .lesson-kicker { margin-bottom: 8px; }
html body[data-study-step="exercise"][data-study-module] .lesson .lg-hero #ielts-exercise-title { margin-bottom: 4px; font-size: clamp(24px, 2.4vw, 32px); }
html body[data-study-step="exercise"][data-study-module] .lg-hero .step-before { margin-bottom: 10px; }

/* ── Buttons: the .vg-btn look for buttons other scripts and the server render ── */
html body[data-study-mode="ielts"][data-study-module] :is(.lr-nav button, .lr-mode, .lr-outline-toggle, .lesson-next .btn, .step-finish .btn, .practice-q .btn, .practice-actions .btn,
  [id="ielts-mark"], .lg-hero [id="ielts-timer-toggle"], .ielts-feedback-card .btn, .lesson-coming-soon .btn, .paywall .btn) {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; overflow: hidden; cursor: pointer;
  color: var(--vg-night); background: var(--vg-aqua); border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  font: 800 15px/1.25 var(--ir-font); text-align: left; text-decoration: none; text-transform: none; white-space: normal;
  clip-path: var(--lg-bevel); transition: transform .18s, filter .18s, background-color .18s; }
html body[data-study-mode="ielts"][data-study-module] :is(.lr-nav button, .lr-mode, .lr-outline-toggle, .lesson-next .btn, .step-finish .btn, .practice-q .btn, .practice-actions .btn,
  [id="ielts-mark"], .lg-hero [id="ielts-timer-toggle"], .ielts-feedback-card .btn, .lesson-coming-soon .btn, .paywall .btn)::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); transition: transform .6s; pointer-events: none; }
html body[data-study-mode="ielts"][data-study-module] :is(.lr-nav button, .lr-mode, .lr-outline-toggle, .lesson-next .btn, .step-finish .btn, .practice-q .btn, .practice-actions .btn,
  [id="ielts-mark"], .lg-hero [id="ielts-timer-toggle"], .ielts-feedback-card .btn, .lesson-coming-soon .btn, .paywall .btn):is(:hover, :focus-visible):not(:disabled) { transform: translateY(-2px); filter: brightness(1.04); }
html body[data-study-mode="ielts"][data-study-module] :is(.lr-nav button, .lr-mode, .lr-outline-toggle, .lesson-next .btn, .step-finish .btn, .practice-q .btn, .practice-actions .btn,
  [id="ielts-mark"], .lg-hero [id="ielts-timer-toggle"], .ielts-feedback-card .btn, .lesson-coming-soon .btn, .paywall .btn):hover::before { transform: translateX(120%); }
html body[data-study-mode="ielts"][data-study-module] :is(.lr-nav button, .lr-mode, .lr-outline-toggle, .lesson-next .btn, .step-finish .btn, .practice-q .btn, .practice-actions .btn, [id="ielts-mark"]):focus-visible { outline: 3px solid var(--vg-violet); outline-offset: -3px; }
html body[data-study-mode="ielts"][data-study-module] :is(.lr-nav button, .practice-actions .btn, [id="ielts-mark"]):disabled { opacity: .45; cursor: default; }
/* Gold: the step forward (next lesson / exercise, check my answers, get feedback, mark as done). */
html body[data-study-mode="ielts"][data-study-module] :is(.lesson-next .btn-hi, .step-finish .btn, .practice-actions .btn, [id="ielts-mark"], .paywall .btn-hi) { background: var(--vg-gold); color: var(--vg-night); }
html body[data-study-mode="ielts"][data-study-module] .lesson-layout > .lr-outline-toggle { display: none; }
/* Violet: the next practice question. Ghost on light cards: previous, whole lesson, outline. */
html body[data-study-mode="ielts"][data-study-module] .practice-q .lr-next-q { margin-left: 10px; background: var(--vg-violet-lite); color: var(--vg-night); }
html body[data-study-mode="ielts"][data-study-module] :is(.lr-prev, .lr-outline-toggle, .ielts-feedback-card .btn) { background: #fff; color: var(--vg-ink); outline: 1.5px solid var(--vg-line); outline-offset: -1.5px; }
html body[data-study-mode="ielts"][data-study-module] .lr-head .lr-mode { min-height: 38px; padding: 0 14px; background: rgba(255, 255, 255, .12); color: var(--vg-text); font-size: 13px; white-space: nowrap; }
html body[data-study-mode="ielts"][data-study-module] .lr-head .lr-mode:hover { background: var(--vg-violet-lite); color: var(--vg-night); }
html body[data-study-mode="ielts"][data-study-module] .lr-next::after { content: none; }

/* ── Lesson stepper: a night bar with the aqua ring ── */
html body[data-study-step="lesson"][data-study-module] .lr-head { padding: 10px 14px; color: var(--vg-text); border-radius: 0 !important; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  background: radial-gradient(420px 120px at 85% -40%, rgba(138, 114, 246, .45), transparent 70%), radial-gradient(320px 120px at 0% 140%, rgba(86, 218, 220, .25), transparent 70%), var(--vg-night);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
html body[data-study-step="lesson"][data-study-module] .lr-ring { border-radius: 50% !important; filter: drop-shadow(0 0 6px rgba(86, 218, 220, .55));
  background: radial-gradient(closest-side, var(--vg-night) 74%, transparent 76% 100%), conic-gradient(var(--vg-aqua) calc(var(--p) * 1%), rgba(150, 170, 255, .2) 0); }
html body[data-study-step="lesson"][data-study-module] .lr-ring span { color: #fff; font: 800 13px/1 var(--vg-display); }
html body[data-study-step="lesson"][data-study-module] .lr-step-btn { border: 0; border-radius: 0 !important; background: rgba(255, 255, 255, .08); color: var(--vg-text-2); font-weight: 700; clip-path: var(--lg-bevel-xs); }
html body[data-study-step="lesson"][data-study-module] .lr-step-btn:hover { border: 0; background: rgba(138, 114, 246, .3); color: #fff; }
html body[data-study-step="lesson"][data-study-module] .lr-step-n { border-radius: 0 !important; background: rgba(255, 255, 255, .14); color: #fff; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
html body[data-study-step="lesson"][data-study-module] .lr-step-btn.lr-seen .lr-step-n { background: var(--vg-violet-lite); color: var(--vg-night); }
html body[data-study-step="lesson"][data-study-module] .lr-step-btn[aria-current="step"] { background: var(--vg-aqua); color: var(--vg-night); }
html body[data-study-step="lesson"][data-study-module] .lr-step-btn[aria-current="step"] .lr-step-n { background: var(--vg-night); color: var(--vg-aqua); }
html body[data-study-step="lesson"][data-study-module] .lr-step-btn:focus-visible { outline: 3px solid var(--vg-gold); outline-offset: -3px; }

/* ── Lesson parts: light bevelled cards with an aqua-to-violet top edge ── */
html body[data-study-step="lesson"][data-study-module].lr-on :is(.lr-part, .lesson-body > .lesson-section), html body[data-study-step="lesson"][data-study-module] .lesson-teaser, html body[data-study-step="lesson"][data-study-module] .lesson-coming-soon {
  padding: clamp(20px, 3.4vw, 36px); border-radius: 0 !important; box-shadow: none; clip-path: var(--lg-bevel); outline: 1px solid var(--vg-line); outline-offset: -1px;
  background: linear-gradient(90deg, var(--vg-aqua), var(--vg-violet)) top / 100% 4px no-repeat, #fff; }
html body[data-study-step="lesson"][data-study-module] .lesson-body .lr-part h2::before { width: 10px; height: 28px; border-radius: 0 !important; background: linear-gradient(180deg, var(--vg-aqua), var(--vg-violet)); clip-path: polygon(0 3px, 100% 0, 100% calc(100% - 3px), 0 100%); }
html body[data-study-step="lesson"][data-study-module] .lesson-body h2 { font-family: var(--ir-font); }
html body[data-study-step="lesson"][data-study-module] .lesson-body ul > li { border-radius: 0 !important; background: var(--vg-paper); clip-path: var(--lg-bevel-xs); }
html body[data-study-step="lesson"][data-study-module] .lesson-body ul > li:hover { background: var(--lg-soft); }
html body[data-study-step="lesson"][data-study-module] .lesson-body ul > li::before { border-radius: 0 !important; background: var(--lg-c); color: #fff; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
html body[data-study-step="lesson"][data-study-module] .lesson-takeaways > li { background: var(--lg-aqua-soft); }
html body[data-study-step="lesson"][data-study-module] .lesson-takeaways > li::before { background: #0a8a91; }
html body[data-study-step="lesson"][data-study-module] .lesson-example { border: 0; border-left: 6px solid var(--vg-aqua); border-radius: 0 !important; background: var(--lg-aqua-soft); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
html body[data-study-step="lesson"][data-study-module] .lesson-tip { border: 0; border-radius: 0 !important; background: var(--lg-gold-soft); clip-path: var(--lg-bevel); }
html body[data-study-step="lesson"][data-study-module] .lesson-tip > b { color: #7a5200; }
html body[data-study-step="lesson"][data-study-module] .lesson-code { border-radius: 0 !important; }
html body[data-study-step="lesson"][data-study-module] .lesson-body strong { background: linear-gradient(transparent 62%, rgba(86, 218, 220, .35) 62%); }
html body[data-study-step="lesson"][data-study-module] .practice-q { border-radius: 0 !important; background: var(--vg-paper); clip-path: var(--lg-bevel); }
html body[data-study-step="lesson"][data-study-module] .practice-n { color: var(--lg-c); }
html body[data-study-step="lesson"][data-study-module] .practice-q label { border: 2px solid var(--vg-line); border-radius: 0 !important; clip-path: var(--lg-bevel-xs); }
html body[data-study-step="lesson"][data-study-module] .practice-q label:hover, html body[data-study-step="lesson"][data-study-module] .practice-q label:has(input:checked) { border-color: var(--lg-c); background: var(--lg-soft); }
html body[data-study-step="lesson"][data-study-module] .practice-q input[type="radio"] { accent-color: var(--lg-c); }
html body[data-study-step="lesson"][data-study-module] .practice-feedback { border-radius: 0 !important; clip-path: var(--lg-bevel-xs); }
html body[data-study-step="lesson"][data-study-module] .lr-count { color: var(--vg-ink-2); font: 800 14px/1 var(--vg-display); letter-spacing: .3px; }

/* "Now put it to work": a light accent card with the gold step forward. */
html body[data-study-mode="ielts"][data-study-module] .lesson-next .step-finish, html body[data-study-mode="ielts"][data-study-module] .step-finish-exercise { border: 0; border-radius: 0 !important; clip-path: var(--lg-bevel); outline: 1px solid var(--vg-line); outline-offset: -1px;
  background: linear-gradient(90deg, var(--vg-gold), #ffe08a) top / 100% 4px no-repeat, linear-gradient(180deg, #fff, var(--vg-paper)); }
html body[data-study-mode="ielts"][data-study-module] .lesson-next .step-finish h2 { color: var(--vg-ink); font: 800 26px/1.35 var(--vg-display); }
html body[data-study-mode="ielts"][data-study-module] .step-finish .text-link { color: var(--lg-c); }

html body[data-study-mode="ielts"][data-study-module] .step-finish .btn { justify-self: start; }

/* Locked lessons and exercises: the Pro offer is a night panel (its heading was black on black before). */
html body[data-study-mode="ielts"][data-study-module] .lesson .paywall { position: relative; isolation: isolate; padding: clamp(22px, 3.4vw, 32px); color: var(--vg-text); border: 0; border-radius: 0 !important; box-shadow: none;
  background: radial-gradient(600px 240px at 85% -20%, rgba(138, 114, 246, .45), transparent 60%), radial-gradient(480px 220px at 0% 120%, rgba(86, 218, 220, .28), transparent 60%), var(--vg-night);
  clip-path: polygon(var(--vg-bevel) 0, 100% 0, 100% calc(100% - var(--vg-bevel)), calc(100% - var(--vg-bevel)) 100%, 0 100%, 0 var(--vg-bevel)); }
html body[data-study-mode="ielts"][data-study-module] .lesson .paywall::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px); pointer-events: none; }
html body[data-study-mode="ielts"][data-study-module] .lesson .paywall .kicker { color: var(--vg-violet-lite); }
html body[data-study-mode="ielts"][data-study-module] .lesson .paywall h2 { margin: 6px 0 12px; padding-top: 2px; font: 800 clamp(24px, 2.6vw, 32px)/1.35 var(--vg-display); text-transform: none;
  background: linear-gradient(180deg, #fff 30%, var(--vg-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html body[data-study-mode="ielts"][data-study-module] .lesson .paywall p { color: var(--vg-text-2); }
html body[data-study-mode="ielts"][data-study-module] .lesson .paywall a:not(.btn) { color: var(--vg-aqua); }

/* ── The set outline: a light bevelled card; the current step is a little night tile ── */
html body[data-study-mode="ielts"][data-study-module] .lesson-outline { border-radius: 0 !important; box-shadow: none !important; background: #fff; clip-path: var(--lg-bevel); outline: 1px solid var(--vg-line); outline-offset: -1px; }
html body[data-study-mode="ielts"][data-study-module] .lesson-outline .kicker { color: var(--lg-c); }
html body[data-study-mode="ielts"][data-study-module] .lesson-outline .outline-class a { color: var(--vg-ink); }
html body[data-study-mode="ielts"][data-study-module] .step-outline .step-outline-list > li > .outline-n { color: var(--lg-c); font: 800 15px/1.6 var(--vg-display); }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step a { border-radius: 0 !important; clip-path: var(--lg-bevel-xs); }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step a:hover { background: var(--lg-soft); }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step.current a { color: #fff;
  background: radial-gradient(240px 90px at 90% -30%, rgba(138, 114, 246, .5), transparent 70%), var(--vg-night); }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step.current .outline-type { color: var(--vg-aqua); }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step.current a::before { border-color: var(--vg-aqua); box-shadow: 0 0 8px rgba(86, 218, 220, .8); }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step[data-state="done"] a::before { border-color: #0a8a91; background: var(--vg-aqua); box-shadow: inset 0 0 0 2px #fff; }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step.current[data-state="done"] a::before { border-color: var(--vg-aqua); background: var(--vg-aqua); box-shadow: inset 0 0 0 2px var(--vg-night), 0 0 8px rgba(86, 218, 220, .8); }
html body[data-study-mode="ielts"][data-study-module] .step-outline .badge-free { border-color: var(--vg-ink); background: var(--vg-gold); color: var(--vg-night); }
html body[data-study-mode="ielts"][data-study-module] .step-outline .badge-pro { border-color: var(--vg-night); background: var(--vg-night); color: var(--vg-violet-lite); }

/* ── Exercise: the passage and the questions on one light bevelled card ── */
html body[data-study-step="exercise"][data-study-module] .study-exercise-outline > summary { padding: 10px 16px; border: 0; border-radius: 0 !important; background: #fff; color: var(--vg-ink);
  font: 800 14px/1.5 var(--ir-font); clip-path: var(--lg-bevel); outline: 1px solid var(--vg-line); outline-offset: -1px; transition: background-color .18s; }
html body[data-study-step="exercise"][data-study-module] .study-exercise-outline > summary:hover { background: var(--lg-soft); }
html body[data-study-step="exercise"][data-study-module] .study-exercise-outline[open] > summary { margin-bottom: 8px; }
html body[data-study-step="exercise"][data-study-module] .study-exercise-outline .lesson-outline { padding: 14px 16px; }
html body[data-study-step="exercise"][data-study-module] .ielts-workbook { padding: 0; border: 0; border-radius: 0 !important; background: none; box-shadow: none; }
html body[data-study-step="exercise"][data-study-module] .ielts-workbook:not(:has(.study-split)) { padding: 20px; background: #fff; clip-path: var(--lg-bevel); outline: 1px solid var(--vg-line); outline-offset: -1px; }
html body[data-study-mode="ielts"][data-study-module] .exercise-page .study-split { border: 0; border-radius: 0 !important; box-shadow: none; background: #fff; clip-path: var(--lg-bevel); outline: 1px solid var(--vg-line); outline-offset: -1px; }
html body[data-study-step="exercise"][data-study-module] .study-pane-source { background: #fbfaff; border-right-color: var(--vg-line); }
html body[data-study-step="exercise"][data-study-module] .study-split .study-pane-title { color: var(--vg-ink); border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--vg-aqua), var(--vg-violet) 40%, transparent 70%) 1; font: 800 14px/1.5 var(--ir-font); letter-spacing: .06em; text-transform: uppercase; }
html body[data-study-step="exercise"][data-study-module] .ielts-question { border: 1.5px solid var(--vg-line); border-radius: 0 !important; background: #fff; clip-path: var(--lg-bevel); }
html body[data-study-step="exercise"][data-study-module] .ielts-question legend { color: var(--vg-ink); }
html body[data-study-step="exercise"][data-study-module] .ielts-question label { border-color: var(--vg-line); border-radius: 0 !important; background: var(--vg-paper); clip-path: var(--lg-bevel-xs); }
html body[data-study-step="exercise"][data-study-module] .ielts-question label:hover, html body[data-study-step="exercise"][data-study-module] .ielts-question label:has(input:checked) { border-color: var(--lg-c); background: var(--lg-soft); }
html body[data-study-step="exercise"][data-study-module] .ielts-question input[type=radio] { accent-color: var(--lg-c); }
html body[data-study-step="exercise"][data-study-module] .ielts-workbook :is(input[type=text], textarea) { border-color: #d6d0ec; border-radius: 0 !important; }
html body[data-study-step="exercise"][data-study-module] .ielts-workbook :is(input, textarea):focus-visible { outline-color: var(--vg-violet); }
html body[data-study-step="exercise"][data-study-module] .ielts-question[data-result="correct"] { background: #f0faf4; border-color: #278454; }
html body[data-study-step="exercise"][data-study-module] .ielts-question[data-result="incorrect"] { background: #fff4f3; border-color: #ce514b; }
html body[data-study-step="exercise"][data-study-module] .ielts-question[data-result="blank"] { background: #fff9ec; border-color: #b78322; }
html body[data-study-step="exercise"][data-study-module] .ielts-question[data-result] label.answer-right { border-color: #278454; background: #dcf2e5; }
html body[data-study-step="exercise"][data-study-module] .ielts-question[data-result] label.answer-wrong { border-color: #ce514b; background: #ffe1df; }
html body[data-study-step="exercise"][data-study-module] :is(.ielts-answer-feedback, .re-panel) { border-radius: 0 !important; clip-path: var(--lg-bevel-xs); }
html body[data-study-step="exercise"][data-study-module] .practice-actions { border-bottom: 2px solid var(--vg-line); }
html body[data-study-step="exercise"][data-study-module] #ielts-score { padding: 4px 11px; color: var(--vg-ink); background: var(--vg-paper); font: 800 13px/1.5 var(--ir-font); clip-path: var(--lg-bevel-xs); }
html body[data-study-step="exercise"][data-study-module] #ielts-score[data-result="correct"] { color: #0d5a35; background: #dcf2e5; }
html body[data-study-step="exercise"][data-study-module] .ielts-feedback-card { border: 0; border-radius: 0 !important; clip-path: var(--lg-bevel); outline: 1px solid var(--vg-line); outline-offset: -1px;
  background: linear-gradient(90deg, var(--vg-aqua), var(--vg-violet)) top / 100% 4px no-repeat, #fff; }
html body[data-study-step="exercise"][data-study-module] .ielts-band { color: var(--lg-c); font: 800 22px/1.35 var(--vg-display); }
html body[data-study-step="exercise"][data-study-module] .study-split-switch { background: var(--vg-paper); }
html body[data-study-step="exercise"][data-study-module] .study-split-switch button { border: 0; border-radius: 0 !important; background: #fff; color: var(--vg-ink); font-weight: 800; clip-path: var(--lg-bevel-xs); outline: 1px solid var(--vg-line); outline-offset: -1px; }
html body[data-study-step="exercise"][data-study-module] .study-split-switch button[aria-pressed="true"] { background: var(--vg-aqua); color: var(--vg-night); outline: 0; }

/* The score after checking: a night number panel; the number counts up (lesson-game.js + vidi-game.js). */
html body[data-study-mode="ielts"][data-study-module] .lg-result { display: grid; grid-template-columns: auto minmax(0, 1fr) 78px; align-items: center; gap: 8px 18px; margin: 0 0 18px; padding: 16px 18px 14px 22px; }
html body[data-study-mode="ielts"][data-study-module] .lg-result-score { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
html body[data-study-mode="ielts"][data-study-module] .lg-result .vg-num { font-size: 52px; }
html body[data-study-mode="ielts"][data-study-module] .lg-result-of { color: var(--vg-text-2); font: 800 24px/1 var(--vg-display); }
html body[data-study-mode="ielts"][data-study-module] .lg-result-msg { min-width: 0; }
html body[data-study-mode="ielts"][data-study-module] .lg-result-msg b { display: block; padding-top: 2px; color: #fff; font: 800 19px/1.4 var(--vg-display); letter-spacing: .4px; text-transform: uppercase; }
html body[data-study-mode="ielts"][data-study-module] .lg-result-msg small { display: block; color: var(--vg-text-2); font: 500 13.5px/1.45 var(--ir-font); }
html body[data-study-mode="ielts"][data-study-module] .lg-result .vg-otter { width: 78px; height: auto; grid-row: 1 / span 2; grid-column: 3; }
html body[data-study-mode="ielts"][data-study-module] .lg-result .vg-bar { grid-column: 1 / 3; }
html body[data-study-mode="ielts"][data-study-module] .lg-result .vg-bar > i { transition: width .9s cubic-bezier(.2, .8, .2, 1); }
html body[data-study-mode="ielts"][data-study-module] .lg-result[data-perfect] .vg-bar > i { background: linear-gradient(90deg, var(--vg-aqua), var(--vg-gold)); box-shadow: 0 0 10px var(--vg-gold); }

/* Study pages have no top bar beside the rail: the outline and the stepper stick near the top (the phone keeps the
   64 px gap under its Menu button). */
@media (min-width: 761px) {
  html body[data-study-step="lesson"][data-study-module] .lesson-outline { top: 18px; max-height: calc(100vh - 36px); }
  html body[data-study-step="lesson"][data-study-module] .lr-head { top: 12px; }
}
/* Keep the lesson's Next button clear of the fixed Ask-the-tutor and Feedback buttons in the bottom-right corner. */
@media (min-width: 761px) and (max-width: 1600px) {
  html body[data-study-mode="ielts"][data-study-module] .lr-nav { padding-right: 150px; }
}
@media (max-width: 1000px) {
  html body[data-study-mode="ielts"][data-study-module] .lesson-layout > .lr-outline-toggle { display: inline-flex; justify-self: start; min-height: 40px; margin: 0 0 6px; font-size: 14px; }
  html body[data-study-mode="ielts"][data-study-module] .lg-hero { grid-template-columns: minmax(0, 1fr) 120px; }
  html body[data-study-mode="ielts"][data-study-module] .lg-otter { width: 120px; }
}
@media (max-width: 640px) {
  html body[data-study-mode="ielts"][data-study-module] .lg-hero { grid-template-columns: minmax(0, 1fr); padding: 18px 16px 16px; }
  html body[data-study-mode="ielts"][data-study-module] .lg-otter { position: absolute; top: 8px; right: 6px; width: 76px; margin: 0; }
  html body[data-study-mode="ielts"][data-study-module] .lg-hero :is(.crumbs, .lesson-kicker) { padding-right: 70px; }
  html body[data-study-mode="ielts"][data-study-module] .lesson .lg-hero :is(h1, #ielts-exercise-title) { font-size: 27px; }
  html body[data-study-mode="ielts"][data-study-module] .lg-hero .lesson-summary { font-size: 16px; }
  html body[data-study-mode="ielts"][data-study-module] .lg-progress-text { white-space: normal; }
  html body[data-study-mode="ielts"][data-study-module] .lg-result { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  html body[data-study-mode="ielts"][data-study-module] .lg-result .vg-otter { display: none; }
  html body[data-study-mode="ielts"][data-study-module] .lg-result .vg-bar { grid-column: 1 / -1; }
  html body[data-study-mode="ielts"][data-study-module] .lg-result .vg-num { font-size: 44px; }
  html body[data-study-mode="ielts"][data-study-module] .practice-q .lr-next-q { margin: 10px 0 0; }
  /* a shorter exercise header: the step pill already says Exercise, and the tutor, timer and reset share rows */
  html body[data-study-step="exercise"][data-study-module] .lg-hero-main > p.kicker { display: none; }
  html body[data-study-step="exercise"][data-study-module] .lg-hero-main > :is(.st-inline, .ielts-tools) { margin: 0 0 8px; }
  html body[data-study-step="exercise"][data-study-module] .lg-hero .ielts-tools { gap: 8px 12px; }
  html body[data-study-step="exercise"][data-study-module] .lg-hero [id="ielts-timer-toggle"] { padding: 8px 12px; font-size: 14px; }
  html body[data-study-step="exercise"][data-study-module] .lg-hero #ielts-timer { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html body[data-study-mode="ielts"][data-study-module] :is(.lr-nav button, .lr-mode, .lr-outline-toggle, .lesson-next .btn, .step-finish .btn, .practice-q .btn, .practice-actions .btn, [id="ielts-mark"], .lg-hero [id="ielts-timer-toggle"]),
  html body[data-study-mode="ielts"][data-study-module] :is(.lr-nav button, .lr-mode, .lr-outline-toggle, .lesson-next .btn, .step-finish .btn, .practice-q .btn, .practice-actions .btn, [id="ielts-mark"], .lg-hero [id="ielts-timer-toggle"])::before,
  html body[data-study-mode="ielts"][data-study-module] :is(.lg-progress, .lg-result) .vg-bar > i { transition: none !important; }
  html body[data-study-mode="ielts"][data-study-module] :is(.lg-otter, .lg-result .vg-otter, .vg-pulse) { animation: none !important; }
}
