.lesson-note-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 50px;
}

.note-overview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border-top: 5px solid var(--teal);
  background: var(--line);
  box-shadow: 0 12px 28px rgba(11, 31, 51, 0.08);
}

.note-overview > div {
  display: grid;
  gap: 2px;
  padding: 19px 22px;
  background: #fff;
}

.note-overview strong {
  color: var(--navy);
  font-size: 29px;
}

.note-overview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.lesson-note {
  border-top: 4px solid var(--gold);
  background: #fff;
  box-shadow: 0 12px 28px rgba(11, 31, 51, 0.08);
}

.lesson-note > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.lesson-note h2 {
  margin: 4px 0 0;
}

.note-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.note-badges span {
  padding: 4px 7px;
  background: #e5f3ef;
  color: #08685d;
  font-size: 10px;
  font-weight: 850;
}

.note-badges .source-ready {
  background: #dff4e8;
  color: #17623d;
}

.note-badges .source-needs-review {
  background: #fff0d0;
  color: #805400;
}

.lesson-note.needs-source-cleanup {
  border-top-color: #d69b15;
}

.note-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.note-facts p {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 14px 18px;
  background: #fff;
  white-space: pre-wrap;
}

.note-facts strong {
  color: var(--teal);
  font-size: 10px;
  text-transform: uppercase;
}

.lesson-materials {
  display: grid;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #f7faf9;
}

.lesson-materials > strong {
  color: var(--teal);
  font-size: 10px;
  text-transform: uppercase;
}

.lesson-materials > div {
  display: grid;
  gap: 6px;
}

.lesson-materials span,
.lesson-materials a {
  overflow-wrap: anywhere;
}

.lesson-materials a {
  color: #08685d;
  font-weight: 800;
}

.form-section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 5px;
  padding: 13px 15px;
  border-left: 5px solid var(--teal);
  background: #e9f3f1;
}

.form-section-heading > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.form-section-heading strong,
.form-section-heading small {
  display: block;
}

.form-section-heading small {
  color: var(--muted);
  font-weight: 550;
}

.attendance-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.note-roster-guard {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border-left: 4px solid var(--gold);
  background: #fff7df;
}

.note-roster-guard strong {
  color: var(--navy);
  font-size: 13px;
}

.note-roster-guard span {
  color: #173f5f;
  font-weight: 850;
}

.note-roster-guard small {
  color: #6a5b2c;
  font-size: 11px;
}

.attendance-editor label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.attendance-editor label span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendance-editor label select {
  width: auto;
  min-width: 110px;
  margin: 0;
  padding: 7px;
}

.attendance-empty {
  margin: 0;
  color: var(--muted);
}

.zoom-ai-field {
  padding: 14px;
  border: 1px solid #bdd2e9;
  background: #f4f8fd;
}

.zoom-ai-field textarea {
  background: #fff;
}

.zoom-ai-field > strong {
  color: var(--navy);
}

.raw-source-help {
  display: block;
  margin: 5px 0 9px;
  color: #4d6177;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

@media (max-width: 800px) {
  .lesson-note-list,
  .note-facts {
    grid-template-columns: 1fr;
  }

  .note-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .note-overview,
  .attendance-editor {
    grid-template-columns: 1fr;
  }
  .lesson-note > header {
    display: grid;
  }
  .lesson-note .card-actions {
    margin-top: 0;
  }
}

.lesson-draft-status { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 12px; border:1px solid currentColor; border-radius:10px; font-size:12px; }
.lesson-draft-status span { flex:1; min-width:180px; }
.lesson-draft-status button { white-space:nowrap; }

.teacher-desk p {white-space:pre-wrap;overflow-wrap:anywhere;}
.teacher-desk h3 {margin-top:18px;}
.teacher-desk input,.teacher-desk select {max-width:100%;padding:10px;margin:6px 8px 6px 0;}
.desk-followup {padding:14px 0;border-bottom:1px solid #94a3b855;}
.desk-followup button {margin:4px 8px 4px 0;}
