.teacher-lesson-matrix { margin:0 0 1rem; padding:12px; color:#143451; background:#edf5ff; border:3px solid #143451; }
.teacher-lesson-matrix header h2,.teacher-lesson-matrix header p { margin:0 0 8px; }
.teacher-lesson-matrix header p,.teacher-lesson-matrix caption { font:600 13px/1.35 system-ui,sans-serif; }
.teacher-lesson-matrix-scroll { max-width:100%; max-height:65vh; overflow:auto; scrollbar-gutter:stable; }
.teacher-lesson-matrix-scroll:focus-visible { outline:3px solid #1759ba; outline-offset:2px; }
.teacher-lesson-matrix table { width:100%; border-collapse:separate; border-spacing:0; font:600 14px/1.3 system-ui,sans-serif; }
.teacher-lesson-matrix caption { padding:4px 0 8px; text-align:left; }
.teacher-lesson-matrix th,.teacher-lesson-matrix td { min-width:125px; padding:10px; border-right:1px solid #9ab2c8; border-bottom:1px solid #9ab2c8; text-align:left; overflow-wrap:anywhere; }
.teacher-lesson-matrix thead th { position:sticky; top:0; z-index:2; background:#143451; color:#fff; }
.teacher-lesson-matrix th[scope="row"] { position:sticky; left:0; z-index:1; min-width:145px; background:#fff; }
.teacher-lesson-matrix td strong,.teacher-lesson-matrix td small { display:block; }
.teacher-lesson-matrix td small { margin-top:3px; font-size:12px; }
.teacher-lesson-matrix [data-lesson-state="complete"] { background:#cfefda; color:#125631; }
.teacher-lesson-matrix [data-lesson-state="working"] { background:#fff1b3; color:#594300; }
.teacher-lesson-matrix [data-lesson-state="not-started"] { background:#ffd5d6; color:#81242a; }
.teacher-lesson-matrix [data-lesson-state="unknown"] { background:#e3e8ee; color:#38495a; }
@media(max-width:480px) { .teacher-lesson-matrix { padding:8px; } .teacher-lesson-matrix-scroll { max-height:60vh; } }
