/* Put the current lesson and save recovery before optional setup tools. */
body { font-family: system-ui, -apple-system, sans-serif; }
main { padding-top: 38px; }
header { min-height: 84px; padding-block: 16px; }
header > a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.course-heading { align-items: end; gap: 32px; margin-bottom: 24px; }
.course-heading h1 { font-size: clamp(34px, 4.3vw, 51px); line-height: 1.08; margin: 16px 0 0; }
.course-heading > div:last-child { min-width: 240px; max-width: 380px; width: 38%; padding-bottom: 4px; }
.course-heading #progress-label { margin-bottom: 10px; font-size: 14px; }
.course-heading #save-status { font-size: 13px; margin-top: 12px; }
.course-heading #refresh-course { font-size: 12px; padding: 10px 14px; min-height: 44px; }
.button, .secondary { border-radius: 7px; }
.course-recovery { margin-top: 22px; margin-bottom: 24px; border-radius: 10px; }
.course-recovery[hidden] { display: none !important; }
.course-lesson-entry { display: flex; gap: 16px 28px; align-items: start; flex-wrap: wrap; margin-bottom: 24px; }
.course-lesson-entry > .button { min-height: 50px; font-size: 14px; flex-shrink: 0; }
.course-how-to { border: 1px solid #435a30; border-radius: 8px; background: #111a0c; min-width: min(100%, 300px); max-width: 680px; flex: 1; }
.course-how-to > summary { padding: 12px 16px; min-height: 48px; font-size: 14px; line-height: 1.6; }
.course-how-to[open] > summary { border-bottom: 1px solid #3d4f2d; }
.course-how-to > ol { padding: 0 20px 0 38px; margin: 18px 0; display: grid; gap: 14px; }
.course-how-to li { font-size: 14px; color: #c5d2b9; line-height: 1.75; padding-left: 4px; }
.course-how-to li::marker { color: var(--lime); font-weight: 650; }
.course-how-to > p { font-size: 13px; color: #bdcdae; padding: 0 20px 18px; }
.workflow-picker { padding: 20px 24px; border-radius: 10px; margin-bottom: 30px; }
.workflow-picker > label { margin: 0 0 10px; font-size: 13px; }
.workflow-picker > select { max-width: none; padding: 12px 14px; min-height: 48px; }
.course-new-workflow { margin-top: 14px; border-top: 1px solid #35462a; }
.course-new-workflow > summary { font-size: 13px; min-height: 44px; padding: 10px 0; }
.course-optional-body { padding: 4px 0 8px; }
.course-optional-body > p { font-size: 14px; line-height: 1.75; }
.course-new-workflow .course-optional-body > p { color: #b8c8a8; }
.course-new-workflow label { font-size: 14px; }
.course-new-workflow #new-workflow { font-size: 13px; }
.classroom-grid { grid-template-columns: 224px minmax(0, 1fr); gap: 28px; align-items: start; }
.classroom-grid aside { top: 20px; min-width: 0; }
.course-navigation-title { font-size: 14px; font-weight: 650; letter-spacing: -.01em; margin: 0 0 16px; color: #d7e6ca; }
#lessons { gap: 6px; }
#lessons button { font-size: 13px; line-height: 1.6; min-height: 52px; padding: 12px; border-radius: 7px; }
#lessons button[aria-current=step] { color: #d7ff9f; border-color: #6f9846; background: #243719; }
.classroom-grid aside #download { font-size: 12px; padding: 11px 13px; width: 100%; }
.classroom-grid aside .help { display: flex; align-items: center; min-height: 44px; font-size: 13px; margin-block: 10px; }
.classroom-grid aside .muted.small { font-size: 12px; line-height: 1.8; }
#lesson { border-radius: 12px; padding: 30px; min-width: 0; scroll-margin-top: 24px; }
#lesson-meta { font-size: 10px; margin-bottom: 18px; }
#lesson-title { font-size: clamp(29px, 3.5vw, 39px); line-height: 1.14; }
#lesson-intro { font-size: 16px; line-height: 1.8; }
#lesson-steps { font-size: 15px; margin-top: 22px; }
#lesson-steps li { padding-left: 5px; line-height: 1.8; }
#lesson-steps li::marker { color: var(--lime); font-weight: 650; }
#lesson .example, #lesson .checkpoint { border-radius: 0 8px 8px 0; padding: 20px; }
#lesson .example > p, #lesson .example li, #lesson .checkpoint p { font-size: 14px; line-height: 1.8; }
#lesson .example h3 { font-size: 20px; letter-spacing: -.03em; }
#lesson .instruction-reuse { border-radius: 9px; padding: 20px; }
#lesson .instruction-reuse h3 { font-size: 19px; letter-spacing: -.03em; }
#lesson .instruction-reuse p { font-size: 14px; line-height: 1.8; }
#fields label { font-size: 15px; line-height: 1.7; }
#fields textarea { border-radius: 8px; font-family: inherit; }
#fields .field-example { font-size: 13px; line-height: 1.8; }
#fields .example-use { min-height: 44px; }
#workbook > .actions { padding-top: 8px; }
#workbook #save, #workbook #next { font-size: 14px; min-height: 50px; }
.course-other-tools { border-top: 1px solid #35462a; padding-top: 34px; margin-top: 38px; }
.course-other-tools > .eyebrow { font-size: 10px; letter-spacing: .12em; }
.course-other-tools > h2 { font-size: 28px; margin-top: 15px; }
.course-guide-help, .course-other-tools > .workflow-setup-help { margin: 18px 0; padding: 0; border: 1px solid #3a4d2c; border-radius: 9px; background: #11190c; }
.course-guide-help > summary, .course-other-tools > .workflow-setup-help > summary { min-height: 54px; padding: 15px 20px; font-size: 14px; line-height: 1.6; }
.course-guide-help[open] > summary, .course-other-tools > .workflow-setup-help[open] > summary { border-bottom: 1px solid #3a4d2c; }
.course-guide-help .course-optional-body { padding: 0; }
.course-guide-help .panel { border: 0; background: transparent; border-radius: 0; padding: 22px; }
.course-guide-help .panel h2 { font-size: 25px; }
.course-guide-help .panel p { font-size: 14px; line-height: 1.8; }
.course-other-tools .workflow-setup-help .desktop-setup { margin: 0; border: 0; background: transparent; border-radius: 0; }
#next-task { margin-top: 28px; border-radius: 10px; }
@media (max-width: 800px) {
  main { padding-top: 28px; }
  header { min-height: 76px; padding-block: 14px; }
  .course-heading { display: block; margin-bottom: 22px; }
  .course-heading h1 { font-size: 37px; }
  .course-heading > div:last-child { width: 100%; min-width: 0; max-width: none; margin-top: 24px; }
  .course-heading #save-status { font-size: 14px; }
  .course-heading #refresh-course { margin-bottom: 0; }
  .course-lesson-entry { display: block; margin-bottom: 22px; }
  .course-lesson-entry > .button { width: 100%; }
  .course-how-to { margin-top: 14px; min-width: 0; }
  .workflow-picker { padding: 20px; margin-bottom: 26px; }
  .classroom-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .classroom-grid aside { position: static; padding: 0; }
  #lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
  #lessons button { min-height: 60px; font-size: 12px; padding: 10px; line-height: 1.6; }
  .classroom-grid aside #download { width: auto; font-size: 13px; }
  .classroom-grid aside .muted.small { font-size: 12px; }
  #lesson { padding: 24px 20px; }
  #lesson-title { font-size: 32px; }
  #lesson .example, #lesson .checkpoint { padding: 18px; }
  #lesson .instruction-reuse { padding: 18px; }
  #lesson pre { font-size: 12px; padding: 16px; }
  #lesson .actions { gap: 10px; }
  #lesson .actions > button { width: 100%; white-space: normal; }
  #fields textarea { font-size: 16px; }
  .course-guide-help .panel { padding: 20px; }
  .course-other-tools { padding-top: 28px; margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
