/* ─────────────────────────────────────────────────────────────────
   IELTS Listening — student-facing surface (Lessons placeholder +
   Mock list + Full Mock player).
   Inherits the cream lesson-page palette from .reading-page.
   ───────────────────────────────────────────────────────────── */

.lp-page { padding-bottom: 4rem; }

/* Mock-test landing hub borrows .reading-page for its color palette,
   but the 3rem top padding from .reading-page leaves a big empty gap
   under the fixed IELTS nav. Hubs already have a hero that supplies
   its own spacing, so collapse the top inset here. (Wins over
   .reading-page by source order — this file loads after it.) */
.lp-hub { padding-top: .5rem; }

/* ── Coming-soon (Lessons placeholder) ───────────────────────── */
.lp-coming {
  margin: 2rem 0;
  padding: 1.6rem 1.8rem;
  background: var(--paper, #F5EBD3);
  border: 1px solid rgba(31, 24, 18, .10);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.lp-coming-lead {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--paper-ink, #1F1812);
  margin: 0 0 .8rem;
}
.lp-coming-meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .9rem;
  color: var(--paper-ink-soft, #4A3F33);
  margin: 0;
}
.lp-coming-meta a {
  color: var(--paper-honey, #B57A2E);
  text-decoration: none;
  font-weight: 600;
}
.lp-coming-meta a:hover { text-decoration: underline; }

/* ── Mock list ───────────────────────────────────────────────── */
.lp-mock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.lp-mock-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.2rem 1.4rem;
  background: var(--paper, #F5EBD3);
  border: 1px solid rgba(31, 24, 18, .12);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
.lp-mock-card:hover {
  transform: translateY(-3px);
  border-color: var(--paper-honey, #B57A2E);
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, .55);
}
.lp-mock-card-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--paper-ink, #1F1812);
}
.lp-mock-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .82rem;
  color: var(--paper-ink-soft, #4A3F33);
}
.lp-empty {
  margin: 2rem 0;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--paper-ink-soft, #4A3F33);
  font-family: 'Inter', system-ui, sans-serif;
}
.lp-empty h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 .4rem;
  color: var(--paper-ink, #1F1812);
}

/* ── Loading + spinner ───────────────────────────────────────── */
.lp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 1rem;
  color: var(--paper-ink-soft, #4A3F33);
  font-family: 'Inter', system-ui, sans-serif;
}
.lp-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid rgba(31, 24, 18, .12);
  border-top-color: var(--paper-honey, #B57A2E);
  border-radius: 50%;
  animation: lp-spin .8s linear infinite;
}
@keyframes lp-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-spinner { animation-duration: 2s; }
}

/* ── Pre-test modal ──────────────────────────────────────────── */
.lp-pretest {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}
.lp-pretest-card {
  max-width: 640px;
  width: 100%;
  padding: 2.2rem 2.4rem;
  background: var(--paper, #F5EBD3);
  border: 1px solid rgba(31, 24, 18, .12);
  border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .45);
}
.lp-pretest-eyebrow {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-honey, #B57A2E);
  margin-bottom: .8rem;
}
.lp-pretest-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0 0 1.2rem;
  color: var(--paper-ink, #1F1812);
}
.lp-pretest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: .8rem 0 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(31, 24, 18, .12);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .85rem;
  color: var(--paper-ink-soft, #4A3F33);
}
.lp-pretest-meta strong {
  color: var(--paper-ink, #1F1812);
  font-weight: 600;
}
.lp-pretest-rules h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-ink-soft, #4A3F33);
  margin: 0 0 .7rem;
}
.lp-pretest-rules ul {
  margin: 0 0 1.6rem;
  padding-left: 1.2rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .94rem;
  line-height: 1.55;
  color: var(--paper-ink, #1F1812);
}
.lp-pretest-rules li { margin-bottom: .35rem; }
.lp-pretest-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
/* Part-practice pre-test — a short description of the section type. */
.lp-pretest-sub {
  margin: -.4rem 0 1.3rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .96rem;
  line-height: 1.55;
  color: var(--paper-ink-soft, #4A3F33);
}
.lp-pretest-sub-src {
  display: block;
  margin-top: .4rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--paper-honey, #B57A2E);
}

/* ── Pre-test practice settings — speed + timer-visibility ───── */
.lp-pretest-settings {
  margin: 0 0 1.6rem;
  padding: 1rem 1.1rem;
  background: rgba(31, 24, 18, .035);
  border: 1px solid rgba(31, 24, 18, .1);
  border-radius: 12px;
}
.lp-set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.lp-set-row + .lp-set-row { margin-top: .7rem; }
.lp-set-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--paper-ink, #1F1812);
}
.lp-set-seg {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  background: var(--paper, #F5EBD3);
  border: 1px solid rgba(31, 24, 18, .15);
  border-radius: 9px;
}
.lp-set-opt {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--paper-ink-soft, #4A3F33);
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: .34rem .72rem;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.lp-set-opt:hover { color: var(--paper-ink, #1F1812); }
.lp-set-opt.is-selected {
  background: var(--paper-honey, #B57A2E);
  color: #FFFDF4;
}
.lp-set-hint {
  margin: .85rem 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--paper-ink-soft, #4A3F33);
}
@media (max-width: 520px) {
  .lp-set-row { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .65rem 1.2rem;
  background: var(--paper, #F5EBD3);
  border: 1px solid rgba(31, 24, 18, .15);
  border-radius: 10px;
  font: inherit;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .92rem;
  font-weight: 600;
  color: var(--paper-ink, #1F1812);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
}
.lp-btn:hover {
  border-color: var(--paper-honey, #B57A2E);
  transform: translateY(-1px);
}
.lp-btn.is-primary {
  background: var(--paper-honey, #B57A2E);
  border-color: var(--paper-honey, #B57A2E);
  color: #FFFDF4;
  box-shadow: 0 8px 16px -8px rgba(181, 122, 46, .6);
}
.lp-btn.is-primary:hover { filter: brightness(1.06); }
.lp-btn.is-ghost { background: transparent; }
.lp-btn.is-danger { color: #A85B47; border-color: #A85B47; }
.lp-btn.is-danger:hover { background: rgba(168, 91, 71, .08); }

/* ── Active player (test in progress) ────────────────────────── */
.lp-active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lp-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: var(--paper, #F5EBD3);
  border: 1px solid rgba(31, 24, 18, .12);
  border-radius: 12px;
  box-shadow: 0 8px 18px -14px rgba(0, 0, 0, .45);
}
.lp-topbar-section {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--paper-ink-soft, #4A3F33);
}
.lp-topbar-phase {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--paper-ink, #1F1812);
  text-align: center;
}
.lp-topbar-counter {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.lp-countdown {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--paper-honey, #B57A2E);
  background: rgba(181, 122, 46, .10);
  padding: .35rem .8rem;
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}
.lp-countdown.is-warning {
  color: #A85B47;
  background: rgba(168, 91, 71, .12);
  animation: lp-pulse-warning 1s ease-in-out infinite;
}
@keyframes lp-pulse-warning {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

/* Audio "playing" indicator — three pulsing dots */
.lp-audio-indicator {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem 1rem;
  background: rgba(79, 122, 74, .12);
  border-radius: 8px;
}
.lp-audio-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4F7A4A;
  border-radius: 50%;
  animation: lp-audio-pulse 1.2s ease-in-out infinite;
}
.lp-audio-pulse:nth-child(2) { animation-delay: .15s; }
.lp-audio-pulse:nth-child(3) { animation-delay: .30s; }
@keyframes lp-audio-pulse {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50%      { opacity: 1;  transform: scale(1.2); }
}

/* Narrator banner — shown during reading + check windows */
.lp-narrator {
  padding: 1.2rem 1.4rem;
  background: rgba(181, 122, 46, .08);
  border: 1px solid rgba(181, 122, 46, .30);
  border-radius: 12px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--paper-ink, #1F1812);
}
.lp-narrator p { margin: 0; }

/* Questions panel */
.lp-questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lp-block {
  padding: 1.2rem 1.4rem;
  background: var(--paper, #F5EBD3);
  border: 1px solid rgba(31, 24, 18, .12);
  border-radius: 12px;
  opacity: .65;
  transition: opacity .25s, border-color .25s, box-shadow .25s;
}
.lp-block.is-current {
  opacity: 1;
  border-color: var(--paper-honey, #B57A2E);
  box-shadow: 0 10px 28px -16px rgba(181, 122, 46, .55);
}

.lp-element {
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(31, 24, 18, .14);
}
.lp-element:last-child { border-bottom: 0; }
.lp-word-limit {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-ink-soft, #4A3F33);
  background: rgba(31, 24, 18, .06);
  padding: .3rem .55rem;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: .75rem;
}

/* Gap-fill — template with inline inputs */
.lp-gap-fill {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--paper-ink, #1F1812);
}
.lp-gap-input {
  display: inline-block;
  min-width: 140px;
  padding: .25rem .55rem;
  margin: 0 .15rem;
  background: rgba(255, 255, 255, .6);
  border: 0;
  border-bottom: 2px solid var(--paper-honey, #B57A2E);
  border-radius: 4px 4px 0 0;
  font: inherit;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .95rem;
  color: var(--paper-ink, #1F1812);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.lp-gap-input:focus {
  outline: none;
  background: #FFFDF4;
  box-shadow: 0 0 0 3px rgba(181, 122, 46, .2);
}

/* MC (single + multi) */
.lp-mc { display: flex; flex-direction: column; gap: .5rem; }
.lp-question-stem {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--paper-ink, #1F1812);
  margin-bottom: .5rem;
}
.lp-question-stem strong {
  color: var(--paper-honey, #B57A2E);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  margin-right: .35rem;
}
.lp-mc-hint {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .82rem;
  font-style: italic;
  color: var(--paper-ink-soft, #4A3F33);
  margin-bottom: .35rem;
}
.lp-mc-option {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: .55rem;
  align-items: start;
  padding: .55rem .75rem;
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(31, 24, 18, .10);
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.lp-mc-option:hover {
  background: rgba(255, 255, 255, .7);
  border-color: var(--paper-honey, #B57A2E);
}
.lp-mc-option input { margin-top: .25rem; cursor: pointer; }
.lp-mc-key {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  color: var(--paper-honey, #B57A2E);
  min-width: 14px;
}
.lp-mc-label { line-height: 1.45; }
.lp-mc-option:has(input:checked) {
  background: rgba(181, 122, 46, .12);
  border-color: var(--paper-honey, #B57A2E);
}

/* Matching */
.lp-matching { display: flex; flex-direction: column; gap: .7rem; }
.lp-matching-bank {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding: .8rem 1rem;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(31, 24, 18, .12);
  border-radius: 8px;
}
.lp-matching-bank-item {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .88rem;
  color: var(--paper-ink, #1F1812);
}
.lp-matching-bank-item strong {
  color: var(--paper-honey, #B57A2E);
  margin-right: .25rem;
}
.lp-matching-items {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.lp-matching-item {
  display: grid;
  grid-template-columns: 40px 1fr 80px;
  align-items: center;
  gap: .6rem;
  padding: .5rem .75rem;
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(31, 24, 18, .10);
  border-radius: 8px;
}
.lp-mq-num strong {
  color: var(--paper-honey, #B57A2E);
  font-family: 'Source Serif 4', Georgia, serif;
}
.lp-mq-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .95rem;
  color: var(--paper-ink, #1F1812);
}
.lp-mq-select {
  padding: .4rem .55rem;
  border: 1px solid rgba(31, 24, 18, .15);
  border-radius: 6px;
  font: inherit;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .9rem;
  background: #FFFDF4;
  cursor: pointer;
}
.lp-mq-select:focus {
  outline: none;
  border-color: var(--paper-honey, #B57A2E);
  box-shadow: 0 0 0 3px rgba(181, 122, 46, .2);
}

.lp-quit-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ── Results — IELTS-style score report ──────────────────────── */
.lp-results {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.4rem 4rem;
}
.lp-rp {
  background: var(--paper, #F5EBD3);
  color: var(--paper-ink, #1F1812);
  border-radius: 12px;
  box-shadow: 0 22px 60px -26px rgba(0,0,0,.65);
  overflow: hidden;
}

/* Score hero — dark band at the top of the report sheet. */
.lp-rp-hero {
  background: linear-gradient(160deg, #3D2D1F 0%, #2A1F18 100%);
  color: #F2E6CC;
  padding: 2rem 1.8rem 1.8rem;
  text-align: center;
}
.lp-rp-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ielts-honey, #D9A268);
}
.lp-rp-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .25rem;
  margin: .5rem 0 .3rem;
  font-family: 'Source Serif 4', Georgia, serif;
  line-height: 1;
}
.lp-rp-score-num {
  font-size: 4.6rem;
  font-weight: 600;
  color: #F2E6CC;
}
.lp-rp-score-sep,
.lp-rp-score-tot {
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--ielts-ink-mute, #7A6A52);
}
.lp-rp-band {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .95rem;
  color: var(--ielts-ink-soft, #B6A484);
}
.lp-rp-band strong {
  color: var(--ielts-honey, #D9A268);
  font-weight: 700;
}
.lp-rp-test {
  margin-top: .9rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--ielts-ink-soft, #B6A484);
}

/* Section summary tiles. */
.lp-rp-sections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .7rem;
  padding: 1.4rem 1.8rem 0;
}
.lp-rp-sec {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .8rem .85rem;
  background: rgba(31,24,18,.04);
  border: 1px solid rgba(31,24,18,.10);
  border-radius: 8px;
}
.lp-rp-sec-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-ink-soft, #4A3F33);
}
.lp-rp-sec-score {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--paper-ink, #1F1812);
}
.lp-rp-sec-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(31,24,18,.12);
  overflow: hidden;
}
.lp-rp-sec-fill {
  height: 100%;
  background: linear-gradient(90deg, #B57A2E, #D89A4E);
}

/* Actions. */
.lp-rp-actions {
  display: flex;
  gap: .7rem;
  padding: 1.4rem 1.8rem;
}
.lp-rp-actions .lp-btn { flex: 1; text-align: center; }

/* Answer review — grouped by section. */
.lp-rp-review {
  padding: 0 1.8rem 2rem;
}
.lp-rp-review h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-ink-soft, #4A3F33);
  margin: 0 0 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(31,24,18,.14);
}
.lp-rp-review-sec { margin-bottom: 1.3rem; }
.lp-rp-review-sec-head {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-warm, #B57A2E);
  margin-bottom: .45rem;
}
.lp-rp-row {
  display: grid;
  grid-template-columns: 24px 48px 1fr;
  align-items: center;
  gap: .7rem;
  padding: .5rem .7rem;
  border-radius: 6px;
  margin-bottom: .25rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .9rem;
  background: rgba(255,255,255,.5);
  border-left: 3px solid transparent;
}
.lp-rp-row.is-correct { border-left-color: #4F7A4A; }
.lp-rp-row.is-wrong   { border-left-color: #A85B47; }
.lp-rp-row-icon {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}
.lp-rp-row.is-correct .lp-rp-row-icon { color: #4F7A4A; }
.lp-rp-row.is-wrong   .lp-rp-row-icon { color: #A85B47; }
.lp-rp-row-q {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  color: var(--accent-warm, #B57A2E);
}
.lp-rp-row-ans {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
  min-width: 0;
}
.lp-rp-ok   { color: var(--paper-ink, #1F1812); font-weight: 600; }
.lp-rp-bad  { color: #A85B47; text-decoration: line-through; }
.lp-rp-arrow { color: var(--paper-ink-soft, #4A3F33); }
.lp-rp-corr { color: #2F5A2C; font-weight: 700; }
.lp-rp-empty {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--paper-ink-soft, #4A3F33);
}

@media (max-width: 720px) {
  .lp-rp-sections { grid-template-columns: repeat(2, 1fr); }
  .lp-rp-actions { flex-direction: column; }
  .lp-rp-hero { padding: 1.6rem 1.2rem 1.4rem; }
  .lp-rp-score-num { font-size: 3.6rem; }
  .lp-rp-sections,
  .lp-rp-actions,
  .lp-rp-review { padding-left: 1.1rem; padding-right: 1.1rem; }
}

/* ─────────────────────────────────────────────────────────────────
   Listening "Screen" widget — protein-bar variant.
   Horizontal narrow strip that sits at the top of the player surface
   and stays pinned while the questions scroll below. Three swap-
   states driven by data-state. The widget mounts into any container;
   the player commands it via showAnnouncement / showCountdown /
   showAudioVisual.
   ───────────────────────────────────────────────────────────── */
.ls-screen {
  --ls-screen-bg:       #14110D;
  --ls-screen-bg-soft:  #1F1A14;
  --ls-screen-ink:      #F2E3C5;
  --ls-screen-ink-mute: #9C8967;
  --ls-screen-accent:   #B57A2E;

  width: 100%;
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ls-screen-ink);
}
.ls-screen-frame {
  position: relative;
  border-radius: 12px;
  background: linear-gradient(180deg, #2A241C 0%, #1B160F 100%);
  padding: 6px;
  box-shadow:
    0 16px 38px -18px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
/* Slim bezels — just a hint, not a 70s TV. */
.ls-screen-bezel-top,
.ls-screen-bezel-bottom {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3A2F22, #221B12);
}
.ls-screen-bezel-top    { margin-bottom: 4px; }
.ls-screen-bezel-bottom { margin-top: 4px; }

.ls-screen-stage {
  position: relative;
  height: 88px;
  border-radius: 6px;
  background:
    radial-gradient(120% 200% at 50% 0%, rgba(181,122,46,0.08), transparent 60%),
    var(--ls-screen-bg);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* Subtle scanline overlay so it reads as "projection" not "div". */
.ls-screen-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.020) 0px,
    rgba(255,255,255,0.020) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.55;
}

/* Panes — only the active one is visible. Each pane lays out as a
   horizontal row inside the bar; we use flex with custom alignment
   per state instead of one shared rule. */
.ls-screen-pane {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease;
}
.ls-screen[data-state="idle"]      .ls-screen-idle      { opacity: 1; visibility: visible; }
.ls-screen[data-state="announce"]  .ls-screen-announce  { opacity: 1; visibility: visible; }
.ls-screen[data-state="countdown"] .ls-screen-countdown { opacity: 1; visibility: visible; }
.ls-screen[data-state="audio"]     .ls-screen-audio     { opacity: 1; visibility: visible; }

/* Idle — pulsing dot centred. */
.ls-screen-idle { justify-content: center; }
.ls-screen-idle-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ls-screen-accent);
  box-shadow: 0 0 12px rgba(181,122,46,0.6);
  animation: ls-idle-pulse 2.4s ease-in-out infinite;
}
@keyframes ls-idle-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50%      { opacity: 1.0; transform: scale(1.1); }
}

/* Announcement pane — narrator text left, label small + right.
   The text can run two lines; longer announcements get truncated
   with a fade-out. */
.ls-screen-announce {
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 1rem;
}
.ls-screen-announce-label {
  flex: 0 0 auto;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ls-screen-ink-mute);
}
.ls-screen-announce-text {
  flex: 1 1 auto;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: .98rem;
  line-height: 1.32;
  margin: 0;
  color: var(--ls-screen-ink);
  animation: ls-fade-in .35s ease-out;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@keyframes ls-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* Countdown pane — label left, big mm:ss right, depletion bar at
   the bottom edge of the stage. */
.ls-screen-countdown {
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 8px;
}
.ls-screen-countdown-label {
  flex: 1 1 auto;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: .98rem;
  line-height: 1.3;
  font-weight: 400;
  color: var(--ls-screen-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ls-screen-countdown-time {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ls-screen-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ls-screen-countdown-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.ls-screen-countdown-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--ls-screen-accent), #D89A4E);
  transition: width .1s linear;
}
/* Timer hidden — the numeric mm:ss is removed, but the reading window
   still runs its full length and the thin depletion bar stays as an
   ambient cue. Lets a student practise judging time without a clock. */
.ls-screen.ls-no-timer .ls-screen-countdown-time { display: none; }

/* Audio pane — canvas fills the bar, caption is a small chip
   anchored to the bottom-right corner. */
.ls-screen-audio {
  padding: 6px 8px;
}
.ls-screen-canvas {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}
.ls-screen-audio-label {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ls-screen-ink-mute);
  background: rgba(20,17,13,0.6);
  padding: 2px 6px;
  border-radius: 3px;
  pointer-events: none;
}

@media (max-width: 540px) {
  .ls-screen-frame { padding: 4px; }
  .ls-screen-stage { height: 78px; }
  .ls-screen-pane  { padding: 0 .75rem; }
  .ls-screen-announce-text,
  .ls-screen-countdown-label { font-size: .86rem; }
  .ls-screen-countdown-time  { font-size: 1.6rem; }
}

/* ─────────────────────────────────────────────────────────────────
   Session 4 — Listening player surface.
   Sticky Screen bar at top, cream IELTS-paper question area below.
   ───────────────────────────────────────────────────────────── */
.lp-page.lp-active {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.4rem 4rem;
}

/* Sticky bar that pins the Screen + a thin status row under the
   IELTS nav. z-index high enough to sit above the cream paper. */
.lp-screen-bar {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: 0 -1.4rem 1.4rem;
  padding: .6rem 1.4rem .8rem;
  background:
    linear-gradient(180deg, var(--ielts-bg, #2A1F18) 60%, rgba(42,31,24,0) 100%);
}
.lp-screen-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .1rem .2rem .55rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ielts-ink-soft, #B6A484);
}
.lp-screen-meta-section {
  color: var(--ielts-honey, #D9A268);
  flex: 0 0 auto;
}
.lp-screen-meta-test {
  flex: 1 1 auto;
  color: var(--ielts-ink-soft, #B6A484);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-screen-meta-quit {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid rgba(242,230,204,.18);
  color: var(--ielts-ink-soft, #B6A484);
  padding: .25rem .55rem;
  border-radius: 5px;
  font-family: inherit;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.lp-screen-meta-quit:hover {
  color: var(--ielts-ember, #D86840);
  border-color: var(--ielts-ember, #D86840);
}

/* ── Volume control in the screen bar ─────────────────────
   Slim slider + speaker icon. Wired to _player.audioEl.volume
   inside _wireActivePlayer, persisted to localStorage. */
.lp-volume {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
  color: var(--ielts-ink-soft, #B6A484);
}
.lp-volume-icon { flex: 0 0 auto; }
.lp-volume-input {
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 4px;
  border-radius: 2px;
  background: rgba(242,230,204,.18);
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}
.lp-volume-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ielts-honey, #D9A268);
  border: none;
  cursor: pointer;
  transition: transform .12s ease;
}
.lp-volume-input::-webkit-slider-thumb:hover { transform: scale(1.15); }
.lp-volume-input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ielts-honey, #D9A268);
  border: none;
  cursor: pointer;
}
.lp-volume-input::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(242,230,204,.18);
}

/* Cream-paper question area. */
.lp-paper {
  background: var(--paper, #F5EBD3);
  color: var(--paper-ink, #1F1812);
  border-radius: 10px;
  padding: 1.6rem 1.8rem 2rem;
  box-shadow: 0 18px 50px -22px rgba(0,0,0,.6);
  font-family: 'Source Serif 4', Georgia, serif;
}
.lp-paper-head {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(31,24,18,.14);
  padding-bottom: .8rem;
}
.lp-paper-section {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-ink-soft, #4A3F33);
}
.lp-block {
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(31,24,18,.10);
}
.lp-block:last-child { border-bottom: none; }
.lp-block.is-current {
  /* Subtle highlight on the block whose audio is currently playing. */
  position: relative;
}
.lp-block.is-current::before {
  content: '';
  position: absolute;
  left: -1.8rem;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 2px;
  background: var(--accent-warm, #B57A2E);
}
.lp-element { margin: 1.2rem 0 1.8rem; }
.lp-element:first-child { margin-top: 0; }
.lp-element:last-child  { margin-bottom: 0; }

/* Rubric box — the highlighted "Questions 6–10 / Complete the form /
   word-limit" header. Matches Cambridge-style printed exam papers. */
.lp-q-rubric {
  background: #FFE45A;
  color: #1F1812;
  padding: .7rem 1rem .8rem;
  border-radius: 4px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.lp-q-rubric-line {
  font-weight: 700;
}
.lp-q-rubric-line:first-child { font-weight: 800; }
.lp-q-rubric-rule {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.lp-q-caption {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: .4rem 0 .9rem;
  color: var(--paper-ink, #1F1812);
}

/* Blank slot — inline input with a small superscript Q number. */
.lp-blank {
  display: inline-flex;
  align-items: baseline;
  vertical-align: baseline;
  gap: 3px;
}
.lp-blank-num {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .72em;
  font-weight: 700;
  color: var(--accent-warm, #B57A2E);
}
.lp-gap-input {
  border: none;
  border-bottom: 1px dotted #B57A2E;
  background: transparent;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1em;
  color: var(--paper-ink, #1F1812);
  min-width: 160px;
  padding: 0 .3rem;
  line-height: 1.3;
}
.lp-gap-input:focus {
  outline: none;
  border-bottom-color: var(--accent-warm, #B57A2E);
  background: rgba(181,122,46,.06);
}
.lp-blank-bad {
  color: #A85B47;
  font-family: 'JetBrains Mono', monospace;
  font-size: .85em;
}

/* Form completion */
.lp-form {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.lp-form-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 2fr;
  gap: 1.2rem;
  align-items: baseline;
  padding: .25rem 0;
}
.lp-form-label {
  font-weight: 600;
  color: var(--paper-ink, #1F1812);
}
.lp-form-value {
  color: var(--paper-ink, #1F1812);
}
.lp-form-section {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-ink-soft, #4A3F33);
  margin: 1rem 0 .35rem;
  border-bottom: 1px solid rgba(31,24,18,.18);
  padding-bottom: .2rem;
}

/* Note completion — bulleted with asterisks for the IELTS look. */
.lp-notes {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.lp-note-line {
  position: relative;
  line-height: 1.55;
}
.lp-note-heading {
  font-weight: 700;
  margin-top: .4rem;
}
.lp-note-bullet { padding-left: 1.4rem; }
.lp-note-bullet::before {
  content: '*';
  position: absolute;
  left: .2rem;
  top: 0;
  color: var(--paper-ink, #1F1812);
  font-weight: 800;
}
.lp-note-sub { padding-left: 2.6rem; }
.lp-note-sub::before {
  content: '*';
  position: absolute;
  left: 1.4rem;
  top: 0;
  color: var(--paper-ink, #1F1812);
  font-weight: 800;
}
.lp-note-spacer { height: .55rem; }

/* Table completion */
.lp-table-wrap {
  overflow-x: auto;
  margin: .4rem 0 .6rem;
}
.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
}
.lp-table th,
.lp-table td {
  padding: .55rem .7rem;
  border: 1px solid rgba(31,24,18,.18);
  vertical-align: top;
  text-align: left;
}
.lp-table th {
  background: rgba(181,122,46,.10);
  font-weight: 700;
}

@media (max-width: 720px) {
  .lp-page.lp-active { padding: 0 .75rem 4rem; }
  .lp-screen-bar { margin: 0 -.75rem 1rem; padding: .55rem .75rem .7rem; }
  .lp-paper { padding: 1.2rem 1.1rem 1.6rem; }
  .lp-form-row { grid-template-columns: 1fr; gap: .15rem; }
  .lp-form-label { font-size: .9rem; }
  .lp-block.is-current::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   LISTENING LESSONS — index CTA + lesson-content blocks
   Lesson content renders on the cream "paper" sheet (rd-lesson-page),
   so table / compare / clip / summary use the --paper-* tokens to
   match the reading lessons. heading / paragraph / keyrule / list
   reuse the rd- classes directly and need no styling here.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Part-practice landing — four section cards on the dark shell ── */
.lp-part-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}
.lp-part-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  padding: 1.5rem 1.6rem;
  text-align: left;
  font: inherit;
  border: 1px solid var(--ielts-honey, #D9A268);
  border-radius: 14px;
  background: rgba(217, 162, 104, .06);
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s, opacity .15s;
}
.lp-part-card:hover:not(:disabled) {
  background: rgba(217, 162, 104, .14);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .7);
}
.lp-part-card:disabled { opacity: .45; cursor: default; }
.lp-part-card-tag {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ielts-honey, #D9A268);
}
.lp-part-card-num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ielts-ink, #F2E6CC);
}
.lp-part-card-blurb {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ielts-ink-soft, #B6A484);
}
.lp-part-card-go {
  margin-top: .45rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ielts-honey, #D9A268);
}
.lp-part-empty {
  grid-column: 1 / -1;
  padding: 2.4rem 1rem;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ielts-ink-soft, #B6A484);
}
@media (max-width: 620px) {
  .lp-part-grid { grid-template-columns: 1fr; }
}

/* ── Table ───────────────────────────────────────────────────── */
.lp-l-tablewrap { overflow-x: auto; margin: 1.6rem 0 1.8rem; }
.lp-l-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .95rem;
}
.lp-l-table th, .lp-l-table td {
  text-align: left;
  padding: .6rem .8rem;
  border: 1px solid rgba(31, 24, 18, .14);
  color: var(--paper-ink, #1F1812);
  vertical-align: top;
  line-height: 1.5;
}
.lp-l-table th {
  background: rgba(181, 122, 46, .12);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .03em;
  color: var(--paper-honey, #B57A2E);
}
.lp-l-table tbody tr:nth-child(even) td { background: rgba(31, 24, 18, .03); }

/* ── Compare — two columns ───────────────────────────────────── */
.lp-compare {
  margin: 1.6rem 0 1.8rem;
  border: 1px solid rgba(31, 24, 18, .14);
  border-radius: 8px;
  overflow: hidden;
}
.lp-cmp-head, .lp-cmp-row { display: grid; grid-template-columns: 1fr 1fr; }
.lp-cmp-head span {
  padding: .55rem .9rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-honey, #B57A2E);
  background: rgba(181, 122, 46, .1);
}
.lp-cmp-head span:first-child { border-right: 1px solid rgba(31, 24, 18, .14); }
.lp-cmp-cell {
  padding: .85rem .9rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .96rem;
  line-height: 1.55;
  color: var(--paper-ink, #1F1812);
  border-top: 1px solid rgba(31, 24, 18, .14);
}
.lp-cmp-a { border-right: 1px solid rgba(31, 24, 18, .14); }

/* ── Audio clip — interactable ───────────────────────────────── */
.lp-clip {
  margin: 1.6rem 0 1.8rem;
  border: 1px solid rgba(31, 24, 18, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .5);
  overflow: hidden;
}
.lp-clip-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .85rem;
  background: rgba(181, 122, 46, .08);
  border-bottom: 1px solid rgba(31, 24, 18, .1);
}
.lp-clip-play {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper-honey, #B57A2E);
  color: #FFF8E7;
  cursor: pointer;
  transition: transform .12s, opacity .15s;
}
.lp-clip-play:hover:not(:disabled) { transform: scale(1.06); }
.lp-clip-play:disabled { opacity: .4; cursor: not-allowed; }
.lp-clip-ico-pause { display: none; }
.lp-clip.is-playing .lp-clip-ico-play  { display: none; }
.lp-clip.is-playing .lp-clip-ico-pause { display: block; }
.lp-clip-label {
  flex: 1 1 auto;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--paper-ink, #1F1812);
}
.lp-clip-status {
  flex-shrink: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-ink-mute, #7A6A55);
}
.lp-clip-script { padding: .85rem 1rem .95rem; }
.lp-clip-line {
  margin: 0 0 .4rem;
  display: flex;
  gap: .6rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--paper-ink, #1F1812);
}
.lp-clip-line:last-child { margin-bottom: 0; }
.lp-clip-who {
  flex-shrink: 0;
  width: 4.5rem;   /* fits the longest speaker name (Narrator) — keeps the text in a clean column */
  font-weight: 700;
  color: var(--paper-honey, #B57A2E);
}
.lp-clip-text { flex: 1 1 auto; min-width: 0; }

/* ── Summary — closes every lesson ───────────────────────────── */
.lp-summary {
  margin: 2.2rem 0 .5rem;
  padding: 1.2rem 1.4rem 1.3rem;
  border: 1px solid rgba(181, 122, 46, .35);
  border-radius: 10px;
  background: rgba(181, 122, 46, .07);
}
.lp-summary-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper-honey, #B57A2E);
  margin-bottom: .6rem;
}
.lp-summary-list {
  margin: 0;
  padding-left: 1.1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--paper-ink, #1F1812);
}
.lp-summary-list li { margin: 0 0 .35rem; }
.lp-summary-list li:last-child { margin-bottom: 0; }

@media (max-width: 540px) {
  .lp-cmp-head, .lp-cmp-row { grid-template-columns: 1fr; }
  .lp-cmp-head span:first-child, .lp-cmp-a { border-right: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   LESSON AUDIO ADMIN — god-only panel (#subject/ielts/listening/audio).
   Dark IELTS shell chrome with cream clip cards, mirroring the lessons
   index. Buttons reuse the .lp-btn family.
   ═══════════════════════════════════════════════════════════════════ */

/* God-only entry link on the lessons index — subtler than the mock CTA. */
.la-admin-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .7rem;
  padding: .7rem 1.2rem;
  border: 1px dashed rgba(217, 162, 104, .42);
  border-radius: 10px;
  background: rgba(217, 162, 104, .04);
  text-decoration: none;
  transition: background .15s;
}
.la-admin-link:hover { background: rgba(217, 162, 104, .1); }
.la-admin-link-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ielts-ink-soft, #B6A484);
}
.la-admin-link-go {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ielts-honey, #D9A268);
}

/* Panel header bits */
.la-back {
  display: inline-block;
  margin-bottom: .9rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ielts-ink-soft, #B6A484);
  text-decoration: none;
}
.la-back:hover { color: var(--ielts-honey, #D9A268); }
.la-intro {
  max-width: 64ch;
  margin: .7rem 0 1.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ielts-ink-soft, #B6A484);
}
.la-intro b { color: var(--ielts-ink, #F2E6CC); font-weight: 700; }

/* Toolbar */
.la-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.7rem;
  background: rgba(242, 230, 204, .04);
  border: 1px solid rgba(242, 230, 204, .12);
  border-radius: 12px;
}
.la-speed {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ielts-ink-soft, #B6A484);
}
.la-speed-input {
  width: 66px;
  padding: .38rem .5rem;
  background: var(--ielts-bg, #2A1F18);
  border: 1px solid rgba(242, 230, 204, .22);
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: .85rem;
  color: var(--ielts-ink, #F2E6CC);
}
.la-speed-input:focus {
  outline: none;
  border-color: var(--ielts-honey, #D9A268);
}
.la-progress {
  margin-left: auto;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .82rem;
  color: var(--ielts-ink-soft, #B6A484);
}

/* Lesson group */
.la-lesson { margin-bottom: 1.8rem; }
.la-lesson-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .7rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ielts-ink, #F2E6CC);
}
.la-lesson-num {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ielts-honey, #D9A268);
  background: rgba(217, 162, 104, .12);
  padding: .2rem .45rem;
  border-radius: 5px;
}

/* Clip card */
.la-clip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.1rem;
  margin-bottom: .6rem;
  background: var(--paper, #F5EBD3);
  border: 1px solid rgba(31, 24, 18, .12);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .14);
}
.la-clip-main {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}
.la-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #B0A48C;
}
.la-dot-ready  { background: #4F7A4A; box-shadow: 0 0 0 3px rgba(79, 122, 74, .18); }
.la-dot-failed { background: #A85B47; box-shadow: 0 0 0 3px rgba(168, 91, 71, .18); }
.la-dot-busy   { background: #B57A2E; animation: la-pulse 1s ease-in-out infinite; }
.la-clip-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.la-clip-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--paper-ink, #1F1812);
}
.la-clip-meta {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: .72rem;
  color: var(--paper-ink-mute, #7A6A55);
  line-height: 1.5;
}
.la-meta-sep { margin: 0 .45rem; opacity: .5; }
.la-clip-err {
  margin-top: .15rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .76rem;
  line-height: 1.45;
  color: #A85B47;
}
.la-clip-side {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-shrink: 0;
}
.la-badge {
  flex-shrink: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .26rem .5rem;
  border-radius: 5px;
  white-space: nowrap;
}
.la-badge-ready   { color: #2F5A2C; background: rgba(79, 122, 74, .16); }
.la-badge-missing { color: #6B5E48; background: rgba(31, 24, 18, .07); }
.la-badge-failed  { color: #A85B47; background: rgba(168, 91, 71, .14); }
.la-badge-busy    { color: #8A5A1E; background: rgba(181, 122, 46, .16); }
.la-clip-actions { display: flex; gap: .5rem; }
.la-clip-actions .lp-btn {
  padding: .42rem .85rem;
  font-size: .82rem;
}
.la-working {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--paper-ink-soft, #4A3F33);
}
.la-working-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #B57A2E;
  animation: la-pulse 1s ease-in-out infinite;
}
@keyframes la-pulse {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .la-dot-busy, .la-working-dot { animation-duration: 2.4s; }
}

@media (max-width: 620px) {
  .la-clip { flex-direction: column; align-items: stretch; gap: .7rem; }
  .la-clip-side { justify-content: space-between; }
  .la-progress { margin-left: 0; width: 100%; }
}

/* ── Per-clip script editor ──────────────────────────────────── */
.la-clip.is-expanded {
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
  border-bottom-color: transparent;
  box-shadow: none;
}
.la-tag-edited {
  margin-left: .5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-honey, #B57A2E);
  background: rgba(181, 122, 46, .14);
  padding: .14rem .4rem;
  border-radius: 4px;
  vertical-align: middle;
}
.la-clip-editor {
  margin: 0 0 .6rem;
  padding: 1rem 1.1rem 1.1rem;
  background: #ECDFC4;
  border: 1px solid rgba(31, 24, 18, .14);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .14);
}
.la-ed-head {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .84rem;
  font-weight: 700;
  color: var(--paper-ink, #1F1812);
  margin-bottom: .85rem;
}
.la-ed-head code {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: .76rem;
  background: rgba(31, 24, 18, .08);
  padding: .1rem .35rem;
  border-radius: 4px;
}
.la-ed-hint {
  display: block;
  margin-top: .3rem;
  font-weight: 400;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--paper-ink-mute, #7A6A55);
}
.la-ed-lines { display: flex; flex-direction: column; gap: .5rem; }
.la-ed-line {
  display: grid;
  grid-template-columns: 132px 1fr 34px;
  gap: .5rem;
  align-items: start;
}
.la-ed-speaker,
.la-ed-text {
  background: #FFFDF4;
  border: 1px solid rgba(31, 24, 18, .2);
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--paper-ink, #1F1812);
}
.la-ed-speaker { padding: .42rem .4rem; font-size: .82rem; }
.la-ed-text {
  padding: .45rem .55rem;
  font-size: .9rem;
  line-height: 1.5;
  resize: vertical;
}
.la-ed-speaker:focus,
.la-ed-text:focus {
  outline: none;
  border-color: var(--paper-honey, #B57A2E);
  box-shadow: 0 0 0 3px rgba(181, 122, 46, .16);
}
.la-ed-remove {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(168, 91, 71, .4);
  background: transparent;
  border-radius: 6px;
  color: #A85B47;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background .12s;
}
.la-ed-remove:hover:not(:disabled) { background: rgba(168, 91, 71, .1); }
.la-ed-remove:disabled { opacity: .3; cursor: not-allowed; }
.la-ed-add {
  margin-top: .6rem;
  padding: .42rem .85rem;
  background: transparent;
  border: 1px dashed rgba(31, 24, 18, .3);
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--paper-ink-soft, #4A3F33);
  cursor: pointer;
  transition: border-color .12s, color .12s;
}
.la-ed-add:hover {
  border-color: var(--paper-honey, #B57A2E);
  color: var(--paper-honey, #B57A2E);
}
.la-ed-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(31, 24, 18, .12);
}
.la-ed-foot .lp-btn { font-size: .82rem; padding: .46rem .9rem; }
.la-ed-foot .la-ed-reset { margin-left: auto; }

@media (max-width: 540px) {
  .la-ed-line { grid-template-columns: 1fr 34px; }
  .la-ed-speaker { grid-column: 1 / -1; }
  .la-ed-foot .la-ed-reset { margin-left: 0; }
}
