.learning-lesson {
  width: min(100% - 88px, 820px);
  margin: 0 auto;
  padding: 26px 0 64px;
}
.lesson-topbar, .lesson-title-row, .lesson-progress-meta, .lesson-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lesson-topbar { margin-bottom: 30px; }
.lesson-library-link, .lesson-back, .lesson-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 550;
}
.lesson-library-link { color: var(--muted, #696860); }
.lesson-library-link:hover, .lesson-back:hover, .lesson-review:hover { color: var(--blue, #315acc); }
.lesson-library-link svg, .lesson-back svg { width: 17px; height: 17px; }
.lesson-save-status { color: var(--muted, #696860); font-size: 11px; text-align: right; }
.lesson-save-error { max-width: 250px; color: #9a3429; line-height: 1.5; }
.lesson-header { margin-bottom: 24px; }
.lesson-course-name { color: var(--muted, #696860); font-size: 12px; line-height: 1.6; }
.lesson-title-row { margin: 6px 0 24px; }
.lesson-title-row h1 { margin: 0; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.12; letter-spacing: -.055em; }
.lesson-completed-label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted, #696860); font-size: 11px; white-space: nowrap; }
.lesson-completed-label svg { width: 15px; height: 15px; }
.lesson-progress-meta { margin-bottom: 10px; color: var(--muted, #696860); font-size: 11px; }
.lesson-progress-meta > span:first-child { color: var(--ink, #20201d); font-weight: 550; }
.lesson-progress-meta > span:first-child > span { margin-inline: 4px; color: var(--muted, #696860); }
.lesson-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lesson-progress > span { height: 3px; border-radius: 4px; background: var(--line, #dcd8ce); }
.lesson-progress > .is-reached { background: var(--blue, #315acc); }
.lesson-card { overflow: hidden; border: 1px solid var(--line, #dcd8ce); border-radius: 14px; background: var(--white, #fffef9); box-shadow: 0 3px 14px #39362a04; }
.lesson-step-content { padding: 36px 38px 30px; }
.lesson-kicker { margin-bottom: 12px; color: var(--muted, #696860); font-size: 9px; font-weight: 600; letter-spacing: .085em; line-height: 1.6; }
.learning-lesson h2 { margin-bottom: 13px; font-size: clamp(26px, 3.3vw, 34px); line-height: 1.15; letter-spacing: -.05em; }
.learning-lesson h2:focus { outline: none; }
.lesson-intro { max-width: 620px; color: var(--muted, #696860); font-size: 14px; line-height: 1.75; }
.lesson-post { position: relative; margin: 26px 0; padding: 23px 25px; border: 1px solid #cfdae0; border-radius: 10px; background: #edf3f4; }
.lesson-post-label { color: #526970; font-size: 9px; font-weight: 650; letter-spacing: .07em; line-height: 1.7; }
.lesson-post > p { margin: 13px 0 18px; max-width: 500px; font-size: clamp(20px, 2.8vw, 25px); font-weight: 550; line-height: 1.4; letter-spacing: -.025em; }
.lesson-post-meta { color: #627379; font-size: 11px; }
.lesson-prompt { margin: 26px 0 12px; font-size: 14px; font-weight: 550; line-height: 1.6; }
.lesson-choices { display: grid; gap: 10px; margin-top: 23px; }
.lesson-prompt + .lesson-choices { margin-top: 0; }
.lesson-choice { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 16px; border: 1px solid var(--line, #dcd8ce); border-radius: 9px; background: transparent; text-align: left; }
.lesson-choice:hover { background: #f8f5ef; border-color: #bab5aa; }
.lesson-choice.is-selected { background: #f0f3fc; border-color: var(--blue, #315acc); }
.lesson-choice-indicator { display: inline-grid; flex-shrink: 0; place-items: center; width: 20px; height: 20px; border: 1px solid #c4c0b6; border-radius: 50%; margin-top: 1px; }
.lesson-choice.is-selected .lesson-choice-indicator { border-color: var(--blue, #315acc); background: var(--blue, #315acc); color: white; }
.lesson-choice-indicator svg { width: 13px; height: 13px; stroke-width: 2; }
.lesson-choice-indicator > i { display: block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lesson-choice strong { display: block; font-size: 13px; font-weight: 550; line-height: 1.7; }
.lesson-choice small { display: block; margin-top: 3px; color: var(--muted, #696860); font-size: 12px; line-height: 1.65; }
.lesson-quiet-hint { margin-top: 12px; color: var(--muted, #696860); font-size: 11px; line-height: 1.6; }
.lesson-feedback { margin-top: 22px; }
.lesson-feedback-copy { padding: 18px 20px; border-left: 2px solid var(--blue, #315acc); background: #f5f6fa; border-radius: 0 7px 7px 0; }
.lesson-feedback-copy > strong { font-size: 13px; font-weight: 600; line-height: 1.6; }
.lesson-feedback-copy > p { margin-top: 5px; color: #585d69; font-size: 13px; line-height: 1.7; }
.lesson-source { margin-bottom: 20px; padding: 23px; border: 1px solid var(--line, #dcd8ce); border-radius: 8px; background: #f8f5ee; }
.lesson-source-label { font-size: 9px; font-weight: 650; letter-spacing: .06em; }
.lesson-source > p { margin: 13px 0; font-size: 15px; line-height: 1.75; }
.lesson-source > small { color: var(--muted, #696860); font-size: 10px; line-height: 1.6; }
.lesson-footer { padding: 18px 38px; border-top: 1px solid var(--line, #dcd8ce); }
.learning-lesson .button { gap: 8px; min-height: 46px; font-size: 12px; }
.learning-lesson .button:disabled { background: #e1e4eb; color: #7c8494; cursor: not-allowed; }
.lesson-continue { min-width: 124px; }
.lesson-takeaway { margin-block: 26px; padding: 21px 23px; border: 1px solid #ddd8e5; border-radius: 9px; background: #f3f0f7; }
.lesson-takeaway strong { font-size: 12px; font-weight: 600; }
.lesson-takeaway p { margin-top: 7px; font-size: 16px; line-height: 1.65; letter-spacing: -.015em; }
.lesson-reflection-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; margin-bottom: 11px; font-size: 13px; font-weight: 550; line-height: 1.6; }
.lesson-reflection-label > span { color: var(--muted, #696860); font-size: 11px; font-weight: 400; }
.lesson-reflection { display: block; resize: vertical; min-height: 132px; width: 100%; padding: 14px 16px; border: 1px solid #ccc7bd; border-radius: 8px; background: #fffefb; color: var(--ink, #20201d); font: inherit; font-size: 16px; line-height: 1.65; }
.lesson-reflection::placeholder { color: #85857e; }
.lesson-reflection:focus-visible { outline: 3px solid var(--blue, #315acc); outline-offset: 3px; }
.lesson-completion { padding: 46px 38px; text-align: center; }
.lesson-completion-mark { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 20px; border: 1px solid #cdd5e9; border-radius: 50%; color: var(--blue, #315acc); }
.lesson-completion-mark svg { width: 21px; height: 21px; }
.lesson-completion .lesson-intro { max-width: 440px; margin: 0 auto 26px; }
.lesson-completion .lesson-kicker { color: var(--blue, #315acc); }
.lesson-review { display: flex; margin: 10px auto 0; color: var(--muted, #696860); font-size: 11px; }
.lesson-saved-reflection { max-width: 480px; margin: 0 auto 27px; padding: 18px 20px; border: 1px solid var(--line, #dcd8ce); border-radius: 8px; text-align: left; }
.lesson-saved-reflection > span { color: var(--muted, #696860); font-size: 10px; }
.lesson-saved-reflection > p { margin-top: 7px; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 14px; line-height: 1.65; }
@media (max-width: 680px) {
  .learning-lesson { width: calc(100% - 32px); padding-top: 15px; padding-bottom: 36px; }
  .lesson-topbar { margin-bottom: 20px; }
  .lesson-save-status { max-width: 135px; line-height: 1.5; }
  .lesson-title-row { align-items: flex-start; gap: 10px; margin-bottom: 21px; }
  .lesson-completed-label { margin-top: 8px; font-size: 10px; }
  .lesson-step-content { padding: 26px 20px 24px; }
  .lesson-post { padding: 20px; }
  .lesson-choice { padding: 14px 12px; gap: 10px; }
  .lesson-choice strong { font-size: 13px; }
  .lesson-footer { padding: 16px 20px; }
  .lesson-feedback-copy { padding: 16px; }
  .lesson-source, .lesson-takeaway { padding: 18px; }
  .lesson-completion { padding: 34px 22px; }
  .lesson-library-link { font-size: 11px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .learning-lesson *, .learning-lesson *::before, .learning-lesson *::after { scroll-behavior: auto !important; transition: none !important; }
}
