.lesson-page-body { background: var(--paper); }
.lesson-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 42px; width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 88px; }
.lesson-page-nav { position: sticky; top: 92px; align-self: start; display: grid; gap: 8px; max-height: calc(100vh - 110px); overflow: auto; }
.lesson-page-nav a { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; min-height: 46px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,253,248,.7); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 750; line-height: 1.25; }
.lesson-page-nav a span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--paper-deep); color: var(--sage); font-size: 11px; font-weight: 850; }
.lesson-page-nav a:hover, .lesson-page-nav a:focus-visible, .lesson-page-nav a.is-current { border-color: rgba(116,132,107,.55); background: var(--white); outline: none; }
.exported-lesson { min-width: 0; padding: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); color: var(--ink); }
.exported-lesson h1, .exported-lesson h2, .exported-lesson h3 { color: var(--ink); }
.exported-lesson h2 { margin-top: 0; font-size: clamp(30px, 4vw, 48px); }
.exported-lesson h3 { margin-top: 34px; }
.exported-lesson h4, .exported-lesson h5, .exported-lesson h6 { margin: 26px 0 8px; color: var(--ink); line-height: 1.25; }
.exported-lesson p, .exported-lesson li { color: #38352f; }
.exported-lesson img, .exported-lesson video { max-width: 100%; height: auto; }
.exported-lesson iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; min-height: 315px; border: 0; border-radius: 8px; background: #1f211f; }
.exported-lesson table { width: 100%; border-collapse: collapse; }
.exported-lesson table td, .exported-lesson table th { border: 1px solid var(--line); padding: 10px; vertical-align: top; }
.exported-lesson pre { max-width: 100%; overflow: auto; padding: 14px; border-radius: 8px; background: #23231f; color: #fffdf8; }
.exported-lesson code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.exported-lesson button, .exported-lesson input, .exported-lesson select, .exported-lesson textarea { font: inherit; }
.exported-lesson .button, .exported-lesson button { border-radius: 8px; }
.exported-lesson a { color: #335f7d; text-decoration: underline; }
.exported-lesson .callout { box-shadow: none; }
.quiz .form-answers label, .exported-lesson label { display: block; margin: 10px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; }
.quiz input[type=radio] { margin-right: 10px; }
.interactive-quiz { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; }
.quiz-progress-row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.quiz-progress-track { height: 6px; margin: 12px 0 30px; overflow: hidden; border-radius: 999px; background: var(--paper-deep); }
.quiz-progress-track span { display: block; width: 7.69%; height: 100%; border-radius: inherit; background: var(--sage); transition: width .2s ease; }
.interactive-quiz h2 { margin: 0 0 20px; font-size: clamp(24px, 3vw, 34px); }
.quiz-choices { display: grid; gap: 10px; }
.quiz-choice { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.quiz-choice:hover:not(:disabled), .quiz-choice:focus-visible { border-color: var(--sage); background: #f8fbf3; outline: none; transform: translateY(-1px); }
.quiz-choice:disabled { cursor: default; }
.quiz-choice.is-correct { border-color: #6e8b54; background: #edf5e7; }
.quiz-choice.is-wrong { border-color: #bd7656; background: #fff0e9; }
.quiz-feedback { margin-top: 16px; padding: 14px 16px; border-left: 4px solid var(--sage); border-radius: 0 8px 8px 0; background: var(--paper-deep); color: var(--ink); }
.quiz-feedback.is-correct { border-left-color: #6e8b54; }
.quiz-feedback.is-wrong { border-left-color: #bd7656; }
.quiz-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.quiz-next { padding: 11px 18px; border: 0; border-radius: 8px; background: var(--ink); color: var(--white); font: inherit; font-weight: 800; cursor: pointer; }
.quiz-next:hover:not(:disabled), .quiz-next:focus-visible { background: #45453e; outline: 2px solid var(--sage); outline-offset: 2px; }
.quiz-next:disabled { opacity: .45; cursor: not-allowed; }
.quiz-result { padding: 8px 0; }
.quiz-result h2 { margin-bottom: 10px; }
.ccc-btn.is-correct { border-color: #6e8b54; background: #edf5e7; }
.ccc-btn.is-wrong { border-color: #bd7656; background: #fff0e9; }
.ccc-feedback.is-correct { border-left-color: #6e8b54; }
.ccc-feedback.is-wrong { border-left-color: #bd7656; }
@media (max-width: 620px) { .interactive-quiz { padding: 18px; } .quiz-controls { align-items: stretch; flex-direction: column; } .quiz-next { width: 100%; } }
@media (max-width: 920px) { .lesson-layout { grid-template-columns: 1fr; } .lesson-page-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; } }
@media (max-width: 620px) { .lesson-layout { width: min(100% - 28px, 1220px); padding-top: 28px; } .exported-lesson { padding: 24px 18px; } .lesson-page-nav { grid-template-columns: 1fr; } }
