.lesson-main { max-width: 1000px; padding-block: calc(var(--header) + 34px) 65px; }
.lesson-intro { margin-block: clamp(24px, 5vw, 54px) 30px; }
.lesson-intro h1 { font-size: clamp(40px, 7vw, 88px); margin: 14px 0; }
.lesson-intro > p:last-child { max-width: 64ch; color: var(--muted); }
.lesson-watch { border: 1px solid var(--archive-rule); background: white; }
.lesson-player-head,
.lesson-player-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 12px 18px; }
.lesson-player-head h2 { font-size: clamp(20px, 4.7vw, 30px); }
.lesson-badge { color: #79483b; background: #faeee5; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.lesson-watch video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #171417; }
.lesson-player-foot { color: var(--muted); font-size: 14px; }
.lesson-player-foot button { background: white; border: 1px solid var(--archive-rule); color: var(--red-dark); min-height: 44px; padding-inline: 12px; cursor: pointer; }
.lesson-prompts { margin-top: 32px; }
.lesson-prompts li { padding-bottom: 10px; }
.lesson-prompts h3 { font-size: 22px; margin: 8px 0; }
.lesson-dialog {
  width: min(calc(100% - 28px), 590px);
  max-height: min(88dvh, 670px);
  padding: 0;
  border: 1px solid var(--archive-rule);
  background: var(--archive-paper);
  color: var(--ink);
}
.lesson-dialog::backdrop { background: rgba(37, 25, 30, .68); }
.lesson-dialog-inner { padding: clamp(20px, 5vw, 45px); }
.lesson-dialog .eyebrow { color: var(--red-dark); }
.lesson-dialog h2 { font-size: clamp(30px, 6vw, 47px); margin: 9px 0 14px; }
.lesson-tip { margin-block: 12px 18px; }
#lesson-reflection { margin-block: 12px; }
#lesson-reflection label { display: block; font-weight: 700; }
#lesson-note { width: 100%; min-height: 90px; resize: vertical; padding: 8px; border: 1px solid #a7979a; }
#lesson-note-help { color: var(--muted); font-size: 13px; }
#lesson-continue { min-height: 44px; padding: 8px 18px; margin-top: 8px; background: var(--red); color: white; cursor: pointer; font-weight: 700; }
#lesson-continue:hover { background: var(--red-dark); }
@media (max-width: 600px) {
  .lesson-player-head, .lesson-player-foot { padding: 10px; }
}
