#main .game-home .portal-grid.direct-learning-portals{grid-template-columns:repeat(3,minmax(0,1fr));width:min(760px,calc(100% - 24px));max-width:920px}
.direct-learning{max-width:1000px;margin:auto;color:#35445a}.direct-learning h1{font-size:22px}.direct-note{font-size:12px;line-height:1.7;color:#718096}.direct-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.direct-actions button,.direct-assignment button{padding:9px 14px;border:1px solid #ccd8e7;background:#edf2f8;border-radius:8px;color:#4d6685;font-size:12px}.direct-assignment{padding:16px;margin:12px 0;border:1px solid #d4dfec;background:#f9fbfe;border-radius:12px}.direct-assignment h2{font-size:16px;margin:0}.direct-assignment button{margin:4px 8px 0 0}.direct-practice-frame{width:100%;min-height:640px;border:0;border-radius:12px}.direct-learning select{padding:8px;border:1px solid #ccd8e7;background:white;border-radius:6px}.direct-learning label{font-size:12px}
#directAssignForm fieldset{max-height:300px;overflow:auto;border:1px solid #d4dfec;border-radius:8px}#directAssignForm fieldset label{display:flex;flex-direction:row;gap:8px;align-items:center;font-size:12px;margin:7px 0}#directAssignForm fieldset input{width:auto}
#directAssignForm fieldset label[hidden]{display:none}
@media(max-width:780px){#main .game-home .portal-grid.direct-learning-portals{grid-template-columns:repeat(2,minmax(0,1fr));width:calc(100% - 16px);max-width:420px}.direct-practice-frame{min-height:520px}}

.lecture-links{max-width:1200px;margin:20px auto;padding:22px;background:#fff;border:1px solid #e1e4e8;border-radius:6px;color:#34435f}
.lecture-links header{display:flex;justify-content:space-between;align-items:center;gap:16px;background:none;height:auto;padding:0;border:0}.lecture-links h1{font-size:24px;margin:6px 0}.lecture-links p{font-size:14px}.lecture-links button,.lecture-links input,.lecture-links select{font:inherit;padding:9px 11px;border:1px solid #d5d9df;border-radius:4px;background:#fff;color:inherit}.lecture-link-tools{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.lecture-link-tools input{flex:1;min-width:160px}.lecture-link-list{overflow-x:auto}.lecture-link-table{width:100%;min-width:640px;border-collapse:collapse;font-size:14px;text-align:left}.lecture-link-table caption{text-align:left;padding:0 0 10px;font-size:12px;color:#7a8490}.lecture-link-table th{background:#f7f7f5;color:#69707a;font-weight:500;white-space:nowrap}.lecture-link-table th,.lecture-link-table td{padding:11px 12px;border:1px solid #e5e7eb;vertical-align:middle;line-height:1.5}.lecture-link-table tbody tr:hover{background:#f8fafc}.lecture-link-table td:nth-child(1){min-width:140px}.lecture-link-table td:nth-child(3){min-width:180px}.lecture-link-table td:nth-child(4){min-width:160px;max-width:300px;overflow-wrap:anywhere}.lecture-link-table a{color:#42658c;text-decoration:underline;text-underline-offset:3px}.lecture-link-table button{white-space:nowrap;font-size:12px;padding:6px 9px}.lecture-edit-title{font-weight:600;line-height:1.6}@media(max-width:650px){.lecture-links{margin:10px;padding:14px}.lecture-link-table{font-size:13px}}

.lecture-answer-keys{margin:12px 0 20px;overflow-x:auto}.lecture-answer-keys summary{padding:12px 0;cursor:pointer;font-weight:600}.lecture-answer-keys .lecture-link-table{min-width:420px;margin-bottom:12px}.lecture-answer-keys td{overflow-wrap:anywhere;max-width:420px}#lectureBulkEdit textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:12px;font:13px/1.6 Consolas,monospace;white-space:pre;overflow:auto;min-height:240px;border:1px solid #ccd4df}#lectureBulkEdit p{line-height:1.7}#lectureBulkEdit .lecture-bulk-preview{max-height:250px;overflow:auto;overflow-wrap:anywhere;font-size:12px;white-space:pre-wrap}#lectureBulkEdit button:disabled{opacity:.55}

.lecture-answer-keys td button{margin:3px}.lecture-answer-document{font-size:15px;line-height:1.8;color:#34435f}.lecture-answer-document p{white-space:pre-wrap}.lecture-answer-document pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;background:#f4f5f7;border:1px solid #e1e4e8;font:14px/1.9 Consolas,monospace}.lecture-answer-document h3{margin:24px 0 12px}#lectureNoteImport label{display:block;margin:14px 0}#lectureNoteImport input{display:block;margin-top:8px;max-width:100%;padding:8px}#lectureNoteImport .lecture-note-preview{max-height:240px;overflow:auto}

.lecture-by-book{table-layout:fixed;min-width:520px}.lecture-by-book th:first-child{width:37%}.lecture-by-book th:nth-child(2){width:40%}.lecture-by-book td:nth-child(1),.lecture-by-book td:nth-child(3){min-width:0;overflow-wrap:anywhere}.lecture-by-book td:nth-child(2){overflow-wrap:anywhere}.lecture-by-book td a{display:block;font-size:12px}.lecture-by-book td button{display:block;margin-top:6px}.lecture-link-tools select{max-width:100%}#answerDriveImport input{display:block;width:100%;box-sizing:border-box;padding:10px;margin-top:8px}#answerDriveImport p{line-height:1.6}#answerDriveImport .answer-drive-preview{max-height:220px;overflow:auto;font-size:12px}
@media(max-width:650px){.lecture-by-book{min-width:0}.lecture-by-book th,.lecture-by-book td{padding:9px 7px}.lecture-by-book td a{font-size:11px}.lecture-by-book td button{font-size:11px;padding:5px 6px}}
.lecture-import-tools{margin:12px 0;font-size:13px}.lecture-import-tools summary{cursor:pointer;margin-bottom:10px}.lecture-import-tools button{margin:3px}.lecture-grid-tools{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.lecture-grid-tools button{font-size:12px;padding:7px 10px}.lecture-grid-tools button:first-child{background:#486a9a;color:#fff;border-color:#486a9a}.lecture-grid-tools button:disabled{opacity:.45}.lecture-grid-hint{font-size:12px!important;line-height:1.6;color:#68778c}.lecture-grid-scroll{overflow:auto;max-height:65vh;border:1px solid #cbd5e2}.lecture-edit-grid{border-collapse:separate;border-spacing:0;width:100%;min-width:740px;table-layout:fixed;color:#34435f;font-size:13px;user-select:none}.lecture-edit-grid thead{position:sticky;top:0;z-index:2}.lecture-edit-grid th{background:#eef2f7;border-right:1px solid #ccd5e2;border-bottom:1px solid #ccd5e2;padding:10px;cursor:cell;font-weight:600}.lecture-edit-grid thead th:first-child{width:38px;padding:0}.lecture-edit-grid thead th:nth-child(2){width:36%}.lecture-edit-grid thead th:nth-child(3){width:34%}.lecture-edit-grid tbody th{position:sticky;left:0;z-index:1;width:38px;padding:0;text-align:center;font-size:11px;color:#748198}.lecture-edit-grid td{height:39px;padding:0;border-right:1px solid #d8dfe9;border-bottom:1px solid #d8dfe9;background:#fff;cursor:cell;position:relative}.lecture-edit-grid td input{box-sizing:border-box;width:100%;height:39px;border:0;border-radius:0;background:transparent;padding:8px;font-size:13px;color:inherit;pointer-events:none;outline:none}.lecture-edit-grid td.selected{background:#dceaff;box-shadow:inset 0 0 0 1px #6999d5}.lecture-edit-grid td.changed::after{content:'';position:absolute;top:0;right:0;border-top:6px solid #dbad3f;border-left:6px solid transparent}.lecture-edit-grid td.editing{box-shadow:inset 0 0 0 2px #3a76bd}.lecture-edit-grid td.editing input{pointer-events:auto;user-select:text;background:#fff}.lecture-edit-grid td:focus-visible{outline:2px solid #3a76bd;outline-offset:-2px}.lecture-link-list>details{font-size:12px;margin-top:12px}.lecture-link-list>details p{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.lecture-student-table{min-width:0}.lecture-student-table th:first-child{width:75%}.lecture-student-table th:nth-child(2){width:25%}.lecture-student-table td:first-child a{font-size:15px;font-weight:600;text-decoration:none;padding:6px 0}.lecture-student-table td:nth-child(2){min-width:0}.lecture-student-table td button{white-space:normal}
/* Embedded lecture viewer: student controls stay inside the LMS. */
.lecture-watch{display:grid;grid-template-columns:230px minmax(0,1fr);gap:14px;min-width:0}
.lecture-watch-menu{display:flex;flex-direction:column;gap:0;max-height:560px;overflow-y:auto;align-self:start;border:1px solid #bdcbdf;border-radius:8px;scrollbar-width:thin}
.lecture-links .lecture-watch-menu button{width:100%;text-align:left;min-height:56px;padding:12px;border:0;border-radius:0;border-bottom:1px solid #dce3ee;font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.lecture-links .lecture-watch-menu button[aria-current=true]{background:#dce7f7;box-shadow:inset 3px 0 #6488bc;font-weight:600}
.lecture-watch-view{min-width:0}.lecture-watch-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.lecture-watch-heading h2{font-size:19px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.lecture-links .lecture-watch-heading button{flex-shrink:0;min-height:44px;font-size:12px}
.lecture-watch-stage{position:relative;aspect-ratio:16/9;width:100%;background:#17263e;color:#eef5ff;display:flex;align-items:center;justify-content:center;border-radius:8px;overflow:hidden}
.lecture-watch-stage>iframe,.lecture-watch-stage>video{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:contain}
.lecture-watch-stage:fullscreen{width:100vw;height:100vh;aspect-ratio:auto;border-radius:0;background:#000}
.lecture-watch-stage:-webkit-full-screen{width:100vw;height:100vh;border-radius:0;background:#000}
.lecture-watch-actions,.lecture-watch-answers,.lecture-watch-practice{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.lecture-links .lecture-watch-actions button,.lecture-links .lecture-watch-practice button,.lecture-links .lecture-watch-answers button,.lecture-links .lecture-watch-answers a{min-height:44px;font-size:13px;padding:9px 12px;box-sizing:border-box}
.lecture-links .lecture-watch-study{margin-left:auto;background:#dce7f7;border-color:#8da9cf;font-weight:600}
.lecture-links .lecture-watch-practice p{flex-basis:100%;font-size:13px;margin:4px 0}
.lecture-links .lecture-watch-actions button:disabled{opacity:.4;cursor:default}
.lecture-list-hidden{grid-template-columns:minmax(0,1fr)}.lecture-list-hidden .lecture-watch-menu{display:none}
.lecture-watch-answers a{display:inline-flex;align-items:center;border:1px solid #c5d2e5;border-radius:5px;color:#294a78;background:#f5f8fe;text-decoration:none}
@media(max-width:900px){.lecture-links{margin:6px auto;padding:12px}.lecture-watch{grid-template-columns:minmax(0,1fr)}.lecture-watch-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:176px}.lecture-list-hidden .lecture-watch-menu{display:none}.lecture-links .lecture-watch-menu button{font-size:13px}.lecture-links header{gap:8px}.lecture-links h1{font-size:20px}.lecture-link-tools{gap:6px;margin:10px 0}.lecture-link-tools select,.lecture-link-tools input{min-height:44px;font-size:14px;box-sizing:border-box;min-width:0}.lecture-link-tools select{flex:1;max-width:100%}.lecture-link-tools input{flex-basis:100%}}
@media(max-width:500px){.lecture-watch-menu{grid-template-columns:1fr;max-height:160px}.lecture-watch-heading h2{font-size:17px}.lecture-links .lecture-watch-study{margin-left:0;flex-basis:100%}.lecture-watch-actions{gap:6px}}
body.rami-lecture-screen #main{box-sizing:border-box;min-width:0;width:100%}body.rami-lecture-screen .lecture-links{box-sizing:border-box;width:100%;max-width:1200px;margin:4px auto;padding:12px}body.rami-lecture-screen header{height:46px;min-height:46px;padding:4px 12px}body.rami-lecture-screen .lecture-links header{height:auto;min-height:0;padding:0}body.rami-lecture-screen .lecture-link-list{overflow-x:visible;min-width:0}
.lecture-links .lecture-fullscreen-exit{display:none}.lecture-watch-stage:fullscreen .lecture-fullscreen-exit,.lecture-watch-stage:-webkit-full-screen .lecture-fullscreen-exit{display:block;position:absolute;bottom:2px;right:8px;min-height:44px;background:#dce7f7;color:#21334e;border-color:#8da9cf}.lecture-watch-stage:fullscreen>iframe,.lecture-watch-stage:fullscreen>video,.lecture-watch-stage:-webkit-full-screen>iframe,.lecture-watch-stage:-webkit-full-screen>video{height:calc(100% - 48px)}
body.rami-lecture-screen #main .lecture-links>header{min-height:44px;gap:8px}body.rami-lecture-screen #main .lecture-links>header h1{font-size:19px;line-height:1.4;margin:0}body.rami-lecture-screen #main .lecture-links>header p{display:none}body.rami-lecture-screen .lecture-link-tools{margin:8px 0;gap:7px}body.rami-lecture-screen .lecture-links>[role=status]{font-size:12px;line-height:1.5;margin:5px 0 8px}
/* Same iframe/video survives fullscreen, rotation, browser bars and safe areas. */
body.lecture-video-expanded{overflow:hidden!important}
.lecture-watch-stage.lecture-expanded{position:fixed!important;inset:0!important;z-index:2147483000;width:var(--lecture-full-width,100vw)!important;height:var(--lecture-full-height,100vh)!important;max-width:none!important;max-height:none!important;margin:0!important;aspect-ratio:auto!important;border-radius:0;background:#000}
.lecture-watch-stage.lecture-expanded>iframe,.lecture-watch-stage.lecture-expanded>video{width:100%;height:calc(100% - 48px - env(safe-area-inset-bottom,0px));object-fit:contain}
.lecture-links .lecture-watch-stage.lecture-expanded>.lecture-fullscreen-exit{display:block;position:absolute;right:max(8px,env(safe-area-inset-right,0px));bottom:max(2px,env(safe-area-inset-bottom,0px));min-height:44px;margin:0;background:#dce7f7;color:#21334e;border:1px solid #8da9cf;padding:8px 14px}
.lecture-watch-resume{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:8px 0;color:#425875;font-size:12px}.lecture-links .lecture-watch-resume button{min-height:44px;font-size:12px;padding:7px 10px}
/* Match the vocabulary/sentence workspace palette for student lecture viewing. */
body.rami-lecture-screen .layout,body.rami-lecture-screen #main{background:#202e46;color:#f1f5fc}
body.rami-lecture-screen #main .lecture-links{background:#202e46;border-color:#202e46;color:#f1f5fc;box-shadow:none}
body.rami-lecture-screen #main .lecture-links :is(h1,h2),body.rami-lecture-screen .lecture-links>[role=status],body.rami-lecture-screen .lecture-watch-resume,body.rami-lecture-screen .lecture-watch-practice p{color:#e4edf9}
body.rami-lecture-screen .lecture-links header{background:transparent;color:#f1f5fc}
body.rami-lecture-screen .lecture-links :is(select,input,button),body.rami-lecture-screen .lecture-watch-answers a{background:#dce7f7;color:#243c5e;border-color:#9cb2d1}
body.rami-lecture-screen .lecture-links input::placeholder{color:#526781;opacity:1}
body.rami-lecture-screen .lecture-links .lecture-watch-menu{background:#2d405d;border-color:#657d9e;scrollbar-color:#a4bad6 #344661}
body.rami-lecture-screen .lecture-links .lecture-watch-menu button{background:#2d405d;color:#f1f5fc;border-color:#526887}
body.rami-lecture-screen .lecture-links .lecture-watch-menu button:hover{background:#3c5375}
body.rami-lecture-screen .lecture-links .lecture-watch-menu button[aria-current=true]{background:#4c688e;color:#fff;box-shadow:inset 3px 0 #b5d1f3}
body.rami-lecture-screen .lecture-links .lecture-watch-study{background:#c6daf4;color:#203a5c;border-color:#9fbce2}
body.rami-lecture-screen .lecture-links button:focus-visible,body.rami-lecture-screen .lecture-links select:focus-visible,body.rami-lecture-screen .lecture-links input:focus-visible{outline:2px solid #bad7fc;outline-offset:2px}
/* The outer today frame participates in child fullscreen without replacing it. */
body.lecture-parent-expanded{overflow:hidden!important}#lectureFrame.lecture-frame-expanded{position:fixed!important;inset:0!important;z-index:2147482900;width:100vw!important;max-width:none!important;height:var(--lecture-parent-height,100vh)!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;background:#000}
body.rami-today-screen #main{background:#202e46;color:#e4edf9}body.rami-today-screen #main .topline h1{color:#e4edf9}
