/* Task 1168 — native lesson text/image block authoring and learner media. */
.lesson-block-editor { border-top: 1px solid rgba(80, 47, 35, .18); margin-top: 1.25rem; padding-top: 1.25rem; }
.lesson-block-editor-heading, .lesson-author-block-toolbar { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }
.lesson-block-editor-heading h2 { margin: 0; }
.lesson-block-editor-heading p { color: #111; margin: .25rem 0 0; }
.lesson-block-add-actions, .lesson-author-block-toolbar span { display: flex; flex-wrap: wrap; gap: .5rem; }
.lesson-block-list { display: grid; gap: 1rem; margin-top: 1rem; }
.lesson-author-block { background: #fff; border: 1px solid rgba(80, 47, 35, .18); border-radius: 14px; padding: 1rem; }
.lesson-author-block [data-text-fields], .lesson-author-block [data-image-fields] { margin-top: .75rem; }
.lesson-author-block textarea, .lesson-author-block input[type="text"], .lesson-author-block input[type="file"] { box-sizing: border-box; max-width: 100%; width: 100%; }
.lesson-block-preview { border-radius: 10px; display: block; height: auto; margin: 0 0 .75rem; max-height: 300px; max-width: 100%; object-fit: contain; }
.lesson-authored-content { display: grid; gap: 1rem; min-width: 0; }
.lesson-authored-content .lesson-body { margin: 0; }
.lesson-authored-figure { margin: .5rem auto; max-width: 100%; text-align: center; }
.lesson-authored-figure img { display: block; height: auto; margin: 0 auto; max-width: 100%; object-fit: contain; }
.lesson-authored-figure figcaption { color: #111; font-size: .9rem; margin-top: .5rem; }
@media (max-width: 720px) {
  .lesson-block-editor-heading { align-items: stretch; flex-direction: column; }
  .lesson-block-add-actions > * { flex: 1 1 auto; }
  .lesson-author-block { padding: .8rem; }
  .lesson-author-block-toolbar { align-items: flex-start; }
  .lesson-authored-figure, .lesson-authored-figure img { width: 100%; }
}
