
.previous-lesson-entry {
  display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center;
  gap:10px; width:100%; min-height:52px; margin:0 0 14px; padding:10px 14px;
  color:#1d1d1f; background:#f5f5f7; border:1px solid #e5e5e7; border-radius:14px; text-align:left;
}
.previous-lesson-entry span { color:#536578; font-size:.82rem; }
.previous-lesson-entry span:last-child { color:#1269bc; font-size:1.3rem; }
.previous-lesson-dialog {
  box-sizing:border-box; width:min(680px,calc(100% - 24px)); max-width:none;
  max-height:min(760px,calc(100dvh - 24px)); padding:0; overflow:auto;
  color:#1d1d1f; background:#fff; border:1px solid #e3e5ea; border-radius:18px;
}
.previous-lesson-dialog::backdrop { background:rgb(23 33 47 / .42); }
.previous-lesson-dialog header {
  position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:16px; background:#fff; border-bottom:1px solid #e5e5e7;
}
.previous-lesson-dialog h2 { margin:0; font-size:1.2rem; }
.previous-lesson-dialog [data-close] {
  padding:10px; min-height:44px; background:#f0f5fd; color:#075b9f;
  border:0; border-radius:8px; white-space:nowrap;
}
.previous-lesson-body { padding:16px; }
.previous-lesson-dialog nav {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(94px,1fr));
  gap:8px; max-height:245px; overflow:auto; padding:3px; overscroll-behavior:contain;
}
.previous-lesson-dialog nav button {
  display:grid; gap:2px; justify-items:start; align-content:center;
  min-width:0; min-height:50px; padding:7px 9px; text-align:left; overflow-wrap:anywhere;
  color:#1d1d1f; background:#fbfbfd; border:1px solid #dfe3e9; border-radius:8px;
}
.previous-lesson-dialog nav button[aria-pressed="true"] { color:#075b9f; border-color:#5e9ad0; background:#eaf4ff; }
.previous-lesson-dialog small,.previous-lesson-date { color:#536578; }
.previous-lesson-record { margin-top:18px; padding:14px; border-radius:12px; background:#f5f7fa; }
.previous-lesson-record h3,.previous-lesson-record h4 { margin:0 0 6px; }
.previous-lesson-record article+article,.previous-lesson-record>h4 { margin-top:14px; }
.previous-lesson-record p { margin:0 0 8px; white-space:pre-wrap; overflow-wrap:anywhere; }
@media (max-width:480px) {
  .previous-lesson-dialog { width:100%; height:100%; max-height:100dvh; margin:0; border:0; border-radius:0; }
  .previous-lesson-entry span:nth-child(2) { max-width:14ch; }
}

.previous-lesson-dialog nav button.previous-lesson-attention {
 border-color:#e5bf79; background:#fff7e9; box-shadow:inset 3px 0 #cf8d2b;
}
.previous-lesson-dialog nav button.previous-lesson-attention small { color:#815419; font-weight:650; }
.previous-lesson-dialog nav button.previous-lesson-attention[aria-pressed="true"] { outline:2px solid #2368a6; outline-offset:-2px; }

.target-preview-line { display:block; margin:0 0 8px; overflow-wrap:anywhere; }
.target-preview-line:last-child { margin-bottom:0; }
.target-preview-line strong { display:block; font-size:1.05rem; color:#1e2938; line-height:1.4; }
.target-preview-line small { display:block; margin-top:3px; color:#526276; font-size:.84rem; line-height:1.5; }
.lesson-target input[data-goal-field="title"] { font-size:1.075rem; font-weight:600; }
.target-save-message:empty { display:none; }
.target-save-message { margin:8px 0 0; color:#a43a29; }

.previous-lesson-entry.has-followups { border-color:#e5c48d; background:#fff8eb; }
.previous-lesson-entry.has-followups span:nth-child(2) { color:#78531d; font-weight:650; }
.previous-lesson-label { margin:0 3px 8px; color:#526276; font-size:.875rem; }
.previous-priority { padding:10px 12px; margin:8px 0 14px; border-inline-start:3px solid #d39232; background:#fff8eb; border-radius:6px; }
.previous-priority ul { margin:0; padding-inline-start:1.3em; }
#students-screen .cl-student-filters { margin-block:10px 14px!important; }
#students-screen .cl-student-filters:not([open]) > :not(summary) { display:none!important; }
#students-screen .cl-student-filters[open] .cl-student-filter-fields { padding:10px 0 0!important; margin:0!important; gap:8px!important; }
#students-screen .cl-student-filter-fields input,#students-screen .cl-student-filter-fields select { min-height:41px; padding-block:7px; }
#students-screen .student-filter-actions { display:flex; justify-content:flex-end; gap:8px; align-items:center; }
#students-screen .cl-student-row { min-height:72px!important; padding-block:13px!important; }
#students-screen .cl-student-copy strong { white-space:normal; overflow-wrap:anywhere; }
