/* Original editorial classroom interface. Fonts stay on the device. */
:root{--paper:#f5f3ec;--surface:#fffefa;--ink:#203731;--muted:#5b6b62;--line:#d9ded3;--teal:#23564b;--accent:#b85e42;--gold:#c4a561;color-scheme:light}
body{margin:0;background:var(--paper);color:var(--ink);font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;line-height:1.55}
main{max-width:1220px;margin:auto;padding:0 30px 60px;box-sizing:border-box}h1,h2,h3,h4,h5{color:var(--ink);line-height:1.25}h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:500}button,input,select,textarea{font:inherit}button{border:1px solid var(--teal);border-radius:7px;background:var(--teal);color:#fffefa;box-shadow:none;padding:10px 17px;font-size:.92rem;font-weight:650;cursor:pointer}button:hover{filter:none;background:#194337;color:#fff}button.secondary{background:transparent;color:var(--teal);border-color:#a4b4a7}button.green{background:var(--teal);color:#fff;border-color:var(--teal)}button:disabled{opacity:.52;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #bb6f42;outline-offset:3px}a{color:#236856}input,select,textarea{background:var(--surface);color:var(--ink);border:1px solid #aab8ab;border-radius:6px;padding:10px;box-sizing:border-box}textarea{line-height:1.6}label{color:var(--ink)}.muted,.tip{color:var(--muted)}.portal-masthead{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 0 24px;border-bottom:1px solid var(--line);margin:0;background:transparent;flex-wrap:wrap}.portal-brand{display:flex;gap:17px;align-items:center}.portal-monogram{display:grid;place-items:center;background:var(--teal);color:#fff7de;width:62px;height:68px;flex:0 0 62px;border-radius:6px 20px 6px 6px;font:500 25px Georgia,serif;letter-spacing:-1px}.portal-brand-emblem{height:68px;width:auto;max-height:68px;max-width:85px;object-fit:contain;display:block;flex:0 0 auto}.portal-brand h1{font:500 clamp(1.3rem,2.1vw,1.9rem) Georgia,serif;letter-spacing:-.025em;margin:3px 0 5px;max-width:620px}.portal-brand-label,.portal-eyebrow{font-size:.68rem;letter-spacing:.14em;font-weight:750;text-transform:uppercase;color:#687460;margin:0 0 8px}.portal-brand-note{font-size:.82rem;color:var(--muted);margin:0}.portal-external-link{font-size:.8rem;color:#6B3434;text-decoration:none;font-weight:650;padding:6px 10px;border-radius:5px;border:1px solid transparent;transition:background .15s ease,border-color .15s ease;display:inline-flex;align-items:center}.portal-external-link:hover{background:#F3E7E4;border-color:#e4d1cd;text-decoration:none}#authControls{font-size:.8rem;display:flex;align-items:center;gap:10px}#authControls button{background:transparent;color:var(--ink);border-color:var(--line);padding:6px 10px;font-size:.78rem}.portal-role{font-size:.72rem;color:#6B3434;padding:5px 10px;background:#F3E7E4;border-radius:5px;font-weight:650}#displayModeWrap{font-size:.74rem;color:var(--muted)}#displayMode{font-size:.78rem;padding:7px;display:block;margin-top:4px}#modeTabs{display:flex;flex-wrap:wrap;gap:5px;padding:16px 0;margin:0;border-bottom:1px solid var(--line);background:transparent}#modeTabs button{border:0;background:transparent;color:#5f6d61;padding:10px 17px;border-radius:5px;font-weight:650}#modeTabs button[aria-pressed=true]{background:#F3E7E4;color:#6B3434;box-shadow:none}.portal-welcome{padding:40px 0 20px;display:grid;grid-template-columns:1fr;gap:26px}.portal-welcome h2{font-size:clamp(2rem,4vw,3rem);letter-spacing:-.04em;margin:9px 0 12px;max-width:790px}.portal-welcome>div>p:last-child{color:var(--muted);max-width:700px;font-size:1.05rem}.portal-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.portal-shortcut{text-align:left;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:21px;border-radius:9px;display:flex;flex-direction:column;align-items:flex-start;gap:9px;font-weight:400;min-height:145px}.portal-shortcut:hover{background:#eef0e7;color:var(--ink);border-color:#a5b5a4}.portal-shortcut strong{font:500 1.3rem Georgia,serif}.portal-shortcut>span:last-child{font-size:.88rem;color:var(--muted)}.portal-shortcut-number{font-size:.73rem;color:#a86747;border-bottom:1px solid #d7b596;padding-bottom:4px}.hub-hero{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0;margin:0 0 20px;box-shadow:none}.hub-hero img,.hub-hero h2,.hub-hero .hub-kicker,.hub-hero p:not(#hubIdentity){display:none}.hub-hero #hubIdentity{color:var(--muted);margin:0;font-size:.86rem}.hub-toolbar{gap:9px;align-items:center}.hub-toolbar label{font-size:.85rem}.hub-kicker,.arcade-kicker,.celebrations .hub-kicker{color:#6b765e;letter-spacing:.08em;font-size:.7rem}.hub-route{margin-top:32px}.hub-route h3{font-size:1.9rem}.hub-unit-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.hub-unit-card,.hub-video-card,.arcade-world,.arcade-modes article,.celebration-card,.celebration-video{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:23px;color:var(--ink);box-shadow:none}.hub-unit-card h4,.celebration-card h4,.arcade-world h3{font:500 1.4rem Georgia,serif}.hub-unit-card button{font-size:.82rem}.hub-unit-card button.secondary{border-color:transparent;text-align:left;padding-left:0}.hub-badge{background:#e9eee3;color:#49614e;border:0;font-size:.73rem;border-radius:4px}.hub-lesson,.hub-practice,.hub-teacher,#teacherPanel,.year-course,.hub-video-library,.hub-expedition,.hub-coverage{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:none;padding:24px;margin:24px 0}.year-course>summary,.hub-video-library>summary{font-size:1rem;font-weight:650;padding:5px;color:var(--teal)}.year-course>summary::marker,.hub-video-library>summary::marker{color:#a96a47}.year-course,.year-course label,.year-course p,.celebrations,.celebrations label,.adventure-arcade,.explicit-scaffolds,.conversation-studio{color:var(--ink)}.year-course input,.year-course select,.year-course textarea,.celebrations textarea,.concept-guided input,.conversation-studio input,.conversation-studio select{background:#fffefa;color:var(--ink);border:1px solid #abb9ac}.year-unit,.year-day,.year-teacher-plan,.year-session-note,.year-roles section,.concept-card,.task-model,.concept-pattern,.concept-guided,.conversation-scene,.conversation-role,.conversation-line,.hub-assignment{background:#f1f3ea;color:var(--ink);border-color:var(--line);box-shadow:none}.year-bank div,.year-bank,.year-target,.year-small,.model-meaning,.model-notice,.model-reminder,.hub-small,.hub-scroll{color:var(--muted)}.year-resource,.celebration-link,.hub-video-link{color:#236856}.task-model p[lang=es],.task-model>p:first-of-type{color:#1a4e3d}.character-heading,.character-help,.character-status{color:var(--muted)}.character-keys button{background:#eef2e8;color:#234b3b;border-color:#c2cfbf}.celebration-hero,.arcade-hero{background:#e8eee0;border:1px solid #cbd6c2;color:var(--ink);border-radius:10px;padding:28px}.celebration-hero h3,.arcade-hero h2{color:var(--ink);font:500 2rem Georgia,serif}.celebration-date,.arcade-tally,.arcade-note{color:var(--muted)}.celebrations details,.celebration-detail>section,.celebration-context,.celebration-bank,.celebration-reading,.adventure-arcade details,.arcade-play{background:var(--surface);color:var(--ink);border-color:var(--line)}.celebration-context,.celebration-bank{background:#eef1e6;border-left-color:#bfa064}.celebration-reading{background:#f2f3eb}.arcade-play{border-left:4px solid #a58247}.arcade-feedback{color:#805438}.arcade-message{border-color:#9fae98}.arcade-memory .revealed{background:#e1ecd4;color:#244531}.arcade-note{font-size:.8rem}.classic-adventure{background:#12263b;color:#e5eefb;border-color:#284e5c}.classic-adventure h2,.classic-adventure strong,.classic-adventure .tip{color:#e5eefb}.classic-adventure>summary{color:#f0d89d;font-family:Georgia,serif}.classic-adventure .tile{line-height:normal}#teacherPanel h2{font-size:2rem}#teacherPanel td,#teacherPanel th{border-color:var(--line);font-size:.83rem;padding:12px 10px}#teacherPanel thead{background:#eef1e6}#teacherPanel tr{background:transparent}#teacherPanel td button{font-size:.76rem;padding:7px 10px;margin:3px}.individual-card p{color:var(--muted)}.individual-card .individual-state{color:#34684f}.student-display #teacherPanel,.student-display #rosterTab,.student-display #hubTeacher,.student-display #huntHost{display:none!important}.student-display .year-teacher-plan{display:none!important}dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px}dialog h3{color:var(--ink)}dialog::backdrop{background:#1b3028aa}#authGate{background:#173e37c9;backdrop-filter:blur(5px)}#authGate .panel{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:40px;box-shadow:0 30px 90px #10281f38;max-width:520px}#authGate h2{font-size:2.2rem;margin:12px 0 20px}#authGate .panel>p:not(.portal-eyebrow){font-size:.93rem;color:var(--muted)}#authStatus{color:var(--teal)}#networkStatus{color:#96502f}#liveQuest{border-color:var(--line);background:#10243a}.quest-hero h2,.quest-main h3,.quest-scoreboard h3{color:#f3f5ff}#liveQuest label{color:#e9f1fc}.hub-expedition{background:#10243a;color:#f1f5ff}.hub-expedition h3{color:#f1f5ff}.portal-welcome[hidden],#displayModeWrap[hidden],#portalWelcome[hidden],#modeTabs[hidden]{display:none!important}@media(max-width:780px){main{padding:0 17px 35px}.portal-masthead{padding:22px 0;gap:20px}.portal-masthead>.row{justify-content:flex-start;gap:12px;flex-wrap:wrap}.portal-brand h1{font-size:1.35rem}.portal-brand-label{font-size:.58rem}.portal-shortcuts{grid-template-columns:1fr}.portal-shortcut{min-height:0;padding:17px;gap:6px}.portal-welcome{padding-top:28px}.portal-welcome h2{font-size:2.3rem}.portal-monogram{width:46px;height:56px;flex-basis:46px;font-size:21px}.portal-brand-emblem{height:54px;max-height:54px}#modeTabs button{padding:9px 10px;font-size:.84rem}.hub-toolbar{flex-wrap:wrap}.hub-lesson,.hub-practice,.hub-teacher,#teacherPanel,.year-course,.hub-video-library,.hub-expedition,.hub-coverage{padding:16px}.individual-practice{padding:16px}}
.portal-tools{padding:14px 0;border-bottom:1px solid var(--line);margin:0 0 20px}.portal-tools>summary{color:var(--teal);cursor:pointer;font-size:.88rem;font-weight:600}.portal-tools[open] .hub-toolbar{margin-top:18px}#studentProgress>header>p{font-size:.7rem;letter-spacing:.12em;color:var(--muted);font-weight:bold}#studentProgress>header>h3{font-size:1.75rem}#studentProgress>details{margin-top:18px}#studentProgress>details button{display:block;margin:8px 0;text-align:left}#individualStudent{border-top:3px solid #bb7951}.hub-video-dialog .hub-small{color:var(--muted)}.hub-video-dialog iframe{background:#152b31}.concept-card summary,.task-model h5,.concept-guided h5{color:var(--ink)}.student-display #resetClassProgress{display:none!important}
#learningHub{color:var(--ink)}#learningHub summary{color:var(--teal)}#learningHub .portal-tools>summary{color:var(--teal);font-size:.88rem;font-weight:650}#hubSave{color:#356351}#learningHub .explicit-scaffolds>h4,#learningHub .year-day h4,#learningHub .task-model h5{color:var(--ink)}.individual-practice>header{display:block;padding:0;background:transparent}.individual-practice>header p{color:var(--muted)}.year-bank>div,.year-roles>section,.year-day blockquote,.model-reminder{background:#edf1e6;color:var(--ink)}.year-bank dd{color:var(--muted)}.year-resource{background:#f0f3e9;color:#285f49;border-color:#b9c9b6}.spanish-characters{background:#eff3e8;color:var(--ink);border-color:var(--line)}.spanish-characters .character-heading,.spanish-characters .character-help{color:var(--muted)}.conversation-studio{background:var(--surface);border:1px solid var(--line)}.conversation-goal,.conversation-phrases li,.conversation-turn,.conversation-mission,.conversation-mode-status{background:#eef2e7;color:var(--ink);border-color:var(--line)}.conversation-phrases [lang=es],.conversation-speaker,.conversation-cue,.conversation-reflection legend{color:#2f634d}.conversation-meaning,.conversation-status{color:var(--muted)}.hub-lesson-videos{background:var(--surface);border-color:var(--line)}.hub-video-card .hub-kicker{color:#60764e}.hub-video-dialog{background:var(--surface);color:var(--ink);border-color:var(--line)}#hubTourDialog{background:var(--surface);color:var(--ink);border-color:var(--line)}#hubFeedback{color:#81532d}#hubHintText{color:#51654c}

/* Focused student navigation; teacher planning retains its full studio. */
#studentLearningNav{display:none}.student-display #studentLearningNav{display:block;position:sticky;top:0;z-index:15;background:#f5f3ecf5;backdrop-filter:blur(10px);padding:12px 0;border-bottom:1px solid var(--line);margin:0 0 20px}.student-display #learningHub>[data-student-nav-hidden=true]{display:none!important}#studentLearningNav nav{display:flex;gap:7px;flex-wrap:wrap}#studentLearningNav nav button{background:#fffefa;color:#23564b;border-color:#c4cec0}#studentLearningNav nav button[aria-pressed=true]{background:#23564b;color:white;border-color:#23564b}#studentLearningNav>p{font-size:.8rem;color:#51654c;margin:8px 0 0}#studentLearningNav>button{margin-top:9px}.student-course-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0 5px}.student-course-picker[hidden]{display:none}.student-course-picker h3{grid-column:1/-1;font-size:1.25rem;margin:0 0 3px}.student-course-picker button{display:flex;flex-direction:column;gap:5px;text-align:left;background:#fffefa;color:#203731;border-color:#c4cec0;padding:15px}.student-course-picker button span{font-size:.78rem;font-weight:400;color:#5b6b62}.student-display .portal-welcome{padding:26px 0 12px;gap:16px}.student-display .portal-welcome h2{font-size:2.25rem;margin:5px 0 9px}.student-display .portal-shortcut{min-height:108px;padding:16px;gap:5px}.student-display .year-course{margin-top:12px}.student-display #hubDistrictCards{display:none}.student-display #homeworkStudent,.student-display #individualStudent,.student-display #studentProgress{margin-top:12px}.student-display .year-day{scroll-margin-top:160px}.student-display .year-filters{position:relative}.student-display .year-filters label{display:flex;flex-direction:column;gap:5px}.student-display .year-filters select{max-width:100%;width:100%}.student-display .persona-work{scroll-margin-top:160px}@media(max-width:650px){#studentLearningNav{padding-top:8px}#studentLearningNav nav{gap:5px}#studentLearningNav nav button{padding:8px 10px;font-size:.8rem}.student-course-picker{grid-template-columns:1fr}.student-course-picker button{padding:10px}.student-display .portal-shortcuts{grid-template-columns:1fr}.student-display .portal-shortcut{min-height:0}}

.student-course-picker.compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:9px 0 0}.student-course-picker.compact h3,.student-course-picker.compact button span{display:none}.student-course-picker.compact button{padding:7px 10px;font-size:.82rem}

#teacherLessonFolders,#teacherOfficeFolders{display:none}.teacher-display #teacherLessonFolders,.teacher-display #teacherOfficeFolders{display:block;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:17px;margin:0 0 20px}.teacher-display #teacherLessonFolders{position:static;box-shadow:0 3px 12px #2037310d}.teacher-display #teacherLessonFolders h3,.teacher-display #teacherOfficeFolders h2{font-size:1.5rem;margin:0 0 12px}.teacher-display #teacherLessonFolders label,.teacher-display #teacherOfficeFolders label{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;margin-right:12px}.teacher-display #teacherLessonFolders select,.teacher-display #teacherOfficeFolders select{min-width:min(100%,260px);max-width:100%}.teacher-display #teacherLessonFolders>p{font-size:.8rem;margin:8px 0 0;color:var(--muted)}.teacher-display #teacherLessonFolders>div{margin-top:10px;display:flex;gap:12px;flex-wrap:wrap}.teacher-display #teacherLessonFolders>div[hidden]{display:none}.teacher-display #learningHub>[data-teacher-folder-hidden=true],.teacher-display #teacherPanel>[data-teacher-office-hidden=true]{display:none!important}.teacher-display #hubDistrictCards,.teacher-display #hubExtensionsContent>.hub-unit-grid,.teacher-display .celebration-unit-grid,.teacher-display .celebration-browse-filters{display:none}.teacher-display .portal-shortcuts{display:none}.teacher-display .portal-welcome{padding:22px 0 8px;gap:8px}.teacher-display .portal-welcome h2{font-size:2rem;margin:5px 0 8px}.teacher-display .portal-welcome>div>p:last-child{font-size:.92rem;margin-bottom:6px}.teacher-display .year-course{margin-top:10px}.teacher-display .year-filters{display:flex;gap:12px;flex-wrap:wrap}.teacher-display .year-filters label{display:flex;flex-direction:column;gap:5px;flex:1;min-width:200px}.teacher-display .year-filters select{width:100%;max-width:100%}.lesson-print-option{border:1px solid #b8c6b5;border-radius:8px;padding:12px;background:#fff;margin:14px 0}.lesson-print-option p{font-size:.8rem;color:var(--muted);margin:8px 0 0}.lesson-print-option .year-resource{display:inline-block;font-weight:700}.teacher-display #teacherRosterFolder>h2{font-size:1.5rem}.teacher-display #hubDistrictContent .year-day,.teacher-display .persona-work{scroll-margin-top:170px}@media(max-width:700px){.teacher-display #teacherLessonFolders{position:relative}.teacher-display #teacherLessonFolders>button,.teacher-display #teacherOfficeFolders>button{margin-top:10px}.teacher-display #teacherLessonFolders label,.teacher-display #teacherOfficeFolders label{display:flex}.teacher-display #teacherLessonFolders select,.teacher-display #teacherOfficeFolders select{width:100%}}

.teacher-office-country{display:flex;gap:10px;align-items:center;margin-top:12px}.teacher-office-country[hidden]{display:none}.teacher-office-country button{font-size:.8rem}.teacher-display #teacherOfficeFolders{scroll-margin-top:15px}

.teacher-lesson-views{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:0 0 12px;margin-bottom:15px}.teacher-lesson-views label{font-weight:650;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.teacher-lesson-views select{min-width:min(100%,290px);max-width:100%}.teacher-display [data-teacher-lesson-hidden=true]{display:none!important}.teacher-display #hubDistrictContent>header{font-size:.85rem}.teacher-display #hubDistrictContent>header h3{font-size:1.4rem}.teacher-display #hubDistrictContent>header p:last-child{max-width:900px}.teacher-display .lesson-print-option{margin:10px 0}.teacher-display .year-day>h3{font-size:1.5rem}

.student-lesson-chooser{flex:1 0 100%;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f2f5ec}.student-lesson-chooser p{font-size:.88rem;margin:0 0 10px}.student-lesson-chooser[hidden]{display:none}.student-display #hubDistrictContent>header,.student-display #hubExploratoryContent>header{display:none}.student-display .year-day[hidden]{display:none!important}
/* Guided lesson pacing is confined to the student lesson; teacher planning stays complete. */
.student-display .guided-lesson > [data-flow-hidden="true"] { display:none !important; }
.lesson-flow-header,.lesson-flow-footer {padding:1rem;border:1px solid #b7c8bc;background:#eef3eb;border-radius:12px;margin:1rem 0;}
.lesson-flow-header h4 {font-size:1.2rem;margin:.6rem 0;}
.lesson-flow-trail {display:flex;gap:.4rem;flex-wrap:wrap;}
.lesson-flow-trail button {font-size:.85rem;padding:.55rem .7rem;background:#fff;color:#204e43;border:1px solid #9cb6ab;}
.lesson-flow-trail button[aria-current="true"] {background:#204e43;color:white;}
.lesson-flow-trail button:disabled {opacity:.55;cursor:not-allowed;}
.lesson-flow-footer label {display:flex;align-items:flex-start;gap:.6rem;font-weight:650;}
.lesson-flow-footer input[type="checkbox"] {width:1.2rem;height:1.2rem;flex-shrink:0;}
.lesson-flow-footer button {margin:.4rem .5rem .2rem 0;}
.lesson-flow-footer[hidden],.lesson-flow-header button[hidden] {display:none!important;}
.guided-lesson .lesson-workspace {padding:1rem 0;}
@media(max-width:600px){.lesson-flow-trail{display:grid;grid-template-columns:1fr 1fr}.lesson-flow-trail button{text-align:left}.lesson-flow-footer button{width:100%}}
.student-practice-picker {padding:.8rem;background:#f1f4ed;border:1px solid #c7d3c6;border-radius:10px;}
.student-practice-picker label {display:block;font-weight:650;}
.student-practice-picker select {display:block;width:100%;margin-top:.4rem;}
.student-practice-picker[hidden] {display:none!important;}
.student-display #hubPersonaContent > header,
.student-display #hubExtensionsContent > header,
.student-display #hubExtensionsContent > .hub-unit-grid,
.student-display #hubYearContent > header,
.student-display #hubYearContent > .year-session-note,
.student-display #hubCelebrationsContent > :not(.student-culture-chooser):not(.celebration-detail) {display:none!important;}
.teacher-display .student-culture-chooser {display:none!important;}
.arcade-picker {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;padding:1rem;border:1px solid #c5d5ca;border-radius:14px;background:#f5f8f1;}
.arcade-picker label {display:flex;flex-direction:column;gap:.4rem;font-weight:650;}
.arcade-picker select {width:100%;min-width:0;}
.arcade-picker[hidden] {display:none!important;}
.student-display .arcade-worlds {display:none!important;}
@media(max-width:650px){.arcade-picker{grid-template-columns:1fr}}
/* Keep the section heading below the student's sticky navigation when resuming. */
.student-display .lesson-flow-header,.student-display .guided-lesson {scroll-margin-top:185px;}
@media(max-width:650px){.student-display .lesson-flow-header,.student-display .guided-lesson{scroll-margin-top:270px;}}
/* Interactive worksheet: colorful panels inspired by Seño's classroom templates. */
.student-display .year-day.illustrated-lesson,.student-display .celebration-detail.illustrated-lesson{background:#fff;border:0;padding:0;box-shadow:none;max-width:1120px;margin:22px auto;color:#17294c}
.worksheet-sheet{background:#fff;border:1px solid #cbd7e4;border-radius:16px;padding:18px;box-shadow:0 7px 24px #2036540a}
.worksheet-hero{display:grid;grid-template-columns:1fr 1.15fr;align-items:center;gap:18px;overflow:hidden;border-radius:12px;background:#fffdf5;padding:8px 12px}
.worksheet-hero img{width:100%;height:auto;max-height:230px;object-fit:contain;display:block;border-radius:9px}
.worksheet-hero .worksheet-eyebrow{font-size:.76rem;font-weight:750;letter-spacing:.06em;text-transform:uppercase;color:#34517b;margin:0}
.worksheet-hero .worksheet-brand{font-family:'Bradley Hand','Segoe Print',cursive;font-size:clamp(2.4rem,5vw,4.8rem);font-weight:800;font-style:italic;line-height:1.1;color:#11234b;display:inline-block;margin:10px 0 4px;padding:0 12px;background:linear-gradient(178deg,transparent 10%,#ffe36c 12%,#ffd452 88%,transparent 90%);border:0}
.worksheet-motto{font-family:'Bradley Hand','Segoe Print',cursive;font-size:clamp(1rem,1.7vw,1.35rem);color:#122444;margin:6px 0;font-weight:750}
.worksheet-hero .worksheet-lesson-title{color:#203e6d;font-size:1.1rem;margin:12px 0;line-height:1.35}
.worksheet-identity{display:grid;grid-template-columns:2fr 1fr 1.5fr 1.5fr;gap:8px;padding:11px 14px;border:1px solid #a59acb;border-radius:9px;background:#faf9ff;font-size:.8rem;font-weight:650;margin:14px 0}
.worksheet-identity span+span{border-left:1px solid #d5cfe6;padding-left:10px}
.worksheet-overview{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}
.worksheet-overview>section{border-radius:12px;padding:16px 18px;border:1.5px solid #7caee0;background:#edf6ff}
.worksheet-overview>section.worksheet-vocabulary{border-color:#b18ad7;background:#f4ecfa}
.worksheet-overview h4{font-family:'Bradley Hand','Segoe Print',cursive!important;font-size:1.25rem!important;color:#162b55!important;margin:0 0 9px!important}
.worksheet-goals ul{padding-left:19px;margin:0;font-size:.89rem;line-height:1.5}.worksheet-goals li+li{margin-top:6px}.worksheet-goals details{font-size:.8rem;margin-top:4px}.worksheet-goals summary{color:#244b7e}
.worksheet-vocabulary dl{display:grid;grid-template-columns:1fr 1fr;gap:7px 16px;margin:0}.worksheet-vocabulary dl div{display:flex;flex-direction:column}.worksheet-vocabulary dt{font-weight:750;font-size:.97rem;color:#2e2558}.worksheet-vocabulary dd{margin:0;font-size:.84rem;color:#4e4668}
.worksheet-save-status{font-size:.85rem;color:#375272!important;margin:12px 0 7px!important}.worksheet-sheet>progress{display:block;width:100%;height:9px;accent-color:#337f99;margin:0 0 17px;border-radius:9px}
.worksheet-activity-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0 20px}
.worksheet-activity{border:1.5px solid var(--panel-color);background:var(--panel-tint);border-radius:12px;overflow:hidden;min-width:0}
.worksheet-section-button{display:grid;grid-template-columns:34px 26px minmax(0,1fr);position:relative;gap:9px;width:100%;border:0;border-radius:0;text-align:left;background:var(--panel-tint);color:#162b4a;padding:13px 14px;align-items:center}
.worksheet-section-button:hover:not(:disabled){background:#fff;color:#162b4a}.worksheet-section-button:disabled{opacity:1;background:var(--panel-tint);color:#3b4860;cursor:not-allowed}
.worksheet-section-button strong{display:block;font-family:'Bradley Hand','Segoe Print',cursive;font-size:1.2rem;line-height:1.3;font-style:italic}.worksheet-section-button small{display:block;font-size:.79rem;font-weight:550;margin-top:3px;color:#4e5b70}
.worksheet-letter{border-radius:50%;display:grid;place-items:center;width:33px;height:33px;background:var(--panel-color);color:#fff;font-size:1.25rem;font-weight:800;border:2px solid white;box-shadow:0 0 0 1px var(--panel-color)}.worksheet-icon{font-size:1.35rem}
.worksheet-part-status{grid-column:3;font-size:.75rem;font-weight:700;color:#364f65}.worksheet-activity[data-state="current"]{box-shadow:0 0 0 2px var(--panel-color)}.worksheet-activity[data-state="complete"] .worksheet-part-status{color:#236240}
.worksheet-preview{font-size:.84rem;line-height:1.45;color:#44516a;margin:0!important;padding:0 16px 14px}.worksheet-reference[hidden],.worksheet-active-panel[hidden],.worksheet-preview[hidden],.worksheet-review-resources[hidden]{display:none!important}
.worksheet-active-panel{border:2px solid var(--panel-color);border-radius:13px;background:#fff;overflow:hidden;scroll-margin-top:185px}
.worksheet-active-panel>h4{background:var(--panel-tint);color:#172b50;font-size:1.2rem!important;padding:14px 18px;margin:0!important;border-bottom:1px solid var(--panel-color)}
.worksheet-active-panel>div{padding:8px 18px}.worksheet-reference{font-size:.95rem;line-height:1.65;color:#23334e}.worksheet-reference p{margin:.65rem 0}.worksheet-reference h4{font-weight:750;font-size:1.02rem;color:#244968;margin:17px 0 8px}
.worksheet-reference details{padding:10px 12px;border:1px solid #d4dfeb;border-radius:8px;background:#fbfdff;margin:10px 0}.worksheet-reference summary{color:#254e78}.worksheet-reference table{width:100%;border-collapse:collapse;background:white;margin:10px 0}.worksheet-reference td,.worksheet-reference th{border:1px solid #b9cadb;padding:8px;color:#1a3556}
.illustrated-lesson fieldset{border:1px solid #b5cad8;border-left:4px solid #729abb;border-radius:9px;padding:14px;margin:14px 0;background:#fbfdff;min-width:0}.illustrated-lesson legend{font-size:.8rem;color:#315a7b;font-weight:750;padding:0 6px}.illustrated-lesson fieldset>p:first-of-type{font-weight:650;color:#172b4c}.illustrated-lesson fieldset button{margin:4px 6px 4px 0;background:#fff;border-color:#8aa9bd;color:#1e4665}.illustrated-lesson fieldset button:hover{background:#e9f4ff;color:#152d4f}.illustrated-lesson fieldset input{width:100%}
.illustrated-lesson textarea{width:100%;background:repeating-linear-gradient(#fff,#fff 31px,#dce5ef 32px);border:1px solid #9eb8ce;border-radius:7px;color:#152e50;line-height:32px}.illustrated-lesson .lesson-workspace>section,.worksheet-work-slot>section{border:1px solid #d0dce8;background:#fffef7;border-radius:10px;padding:14px;margin:12px 0}.illustrated-lesson h5{color:#243e6c;font-size:1rem}
.worksheet-active-panel .lesson-flow-footer{background:var(--panel-tint);border:0;border-top:1px solid var(--panel-color);border-radius:0;margin:12px 0 0}.worksheet-listen{padding:10px;border-radius:9px;background:#fff6e9;margin:8px 0}.worksheet-listen button{margin:3px 6px 3px 0;background:#a94e16;border-color:#a94e16;color:white}.worksheet-listen p{font-size:.82rem;color:#6f4627}
.worksheet-activity>.worksheet-reference,.worksheet-activity>.worksheet-work-slot{padding:0 15px 13px}.worksheet-review-resources{padding:14px;margin:15px 0;background:#f3f7fc;border-radius:10px}.worksheet-sheet>.worksheet-activity-grid:has(.worksheet-preview[hidden]){grid-template-columns:1fr}.worksheet-sheet>button{margin:12px 0}
.student-display .worksheet-sheet.lesson-flow-header{padding:18px;margin:0;background:white;border:1px solid #cbd7e4}.student-display #hubDistrictContent>section{font-size:.84rem;margin-bottom:8px}.student-display #hubDistrictContent>section h4{font-size:.9rem}
@media(max-width:700px){.worksheet-sheet{padding:10px}.worksheet-hero{grid-template-columns:1fr;text-align:center;gap:0;padding:5px}.worksheet-hero img{max-height:170px}.worksheet-hero .worksheet-brand{font-size:3rem}.worksheet-overview,.worksheet-activity-grid{grid-template-columns:1fr}.worksheet-identity{grid-template-columns:1fr 1fr;font-size:.75rem}.worksheet-identity span+span{border:0;padding-left:0}.worksheet-section-button strong{font-size:1.1rem}.worksheet-active-panel{scroll-margin-top:270px}.worksheet-active-panel>div{padding:6px 10px}.student-display .worksheet-sheet.lesson-flow-header{padding:10px}.worksheet-vocabulary dl{gap:8px}.worksheet-activity>.worksheet-reference,.worksheet-activity>.worksheet-work-slot{padding:0 10px 10px}}
@media(prefers-reduced-motion:reduce){.worksheet-sheet *{scroll-behavior:auto}}
/* Restrained teacher reference, aligned with the matching A–F student worksheet. */
.teacher-plan-preview{margin:14px 0;border:1px solid #bdcbd3;border-radius:8px;padding:14px;background:#fff;color:#203247}.teacher-plan-preview summary{font-weight:700;cursor:pointer}.teacher-plan-preview h4{background:#e8f0f5;padding:12px;border-bottom:3px solid #284961}.teacher-plan-preview h5{font-size:1rem;margin:16px 0 6px}.teacher-plan-preview table{width:100%;border-collapse:collapse;font-size:.9rem}.teacher-plan-preview th,.teacher-plan-preview td{border:1px solid #bac9d3;padding:9px;vertical-align:top;text-align:left}.teacher-plan-preview th{background:#e7eff4}.lesson-print-links{display:flex;gap:10px;flex-wrap:wrap}.teacher-plan-preview p{line-height:1.5}
@media(max-width:700px){.teacher-plan-preview{overflow-x:auto}.teacher-plan-preview table{min-width:600px}}

/* Course cards are the student landing menu; secondary menus follow underneath. */
.student-display #portalWelcome{display:none!important}.student-display #studentLearningNav{position:relative;top:auto;backdrop-filter:none;padding:4px 0 14px}.student-display .student-course-picker{margin:12px 0 18px;padding-bottom:18px;border-bottom:1px solid var(--line)}.student-display .student-course-picker h3{font-size:1.45rem}.student-display .student-course-picker button{min-height:80px}.student-display .student-course-picker button[aria-pressed=true]{background:#e9f0e5;border-color:#23564b}.student-display .worksheet-sheet,.student-display .worksheet-active-panel,.student-display .year-day,.student-display .persona-work{scroll-margin-top:20px}

.authentic-video-study{padding:1rem;margin:1rem 0;border:1px solid #b5cbd7;border-radius:12px;background:#eef7fa;color:#193343}.authentic-video-study h4{margin-top:0}.authentic-video-study button{margin:.3rem .4rem .3rem 0}.authentic-video-player iframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:9px;margin:.7rem 0}.authentic-video-study details{margin-top:.7rem}
.worksheet-unit-title{font-size:1.1rem;line-height:1.4;margin:.65rem 0 .3rem;color:#173b4e}.worksheet-hero .worksheet-lesson-title{font-size:1.05rem;margin:.25rem 0;font-weight:650}
.worksheet-student-info{display:flex;flex-wrap:wrap;gap:.55rem .8rem;padding:.7rem .8rem;border:1px solid #b9a8d4;border-radius:9px;background:#fff}.worksheet-student-info label{display:flex;gap:.3rem;align-items:center;flex:1 1 150px;font-size:.9rem}.worksheet-student-info label:nth-child(3){flex:0 1 85px}.worksheet-student-info input{width:100%;min-width:30px;padding:.2rem;border:0;border-bottom:1px solid #506379;border-radius:0;background:transparent;color:inherit}.worksheet-student-info input:focus{outline:2px solid #347db6}
#learningHub .worksheet-goals details{margin:2px 0 6px;padding:0;border:0;background:transparent}#learningHub .worksheet-goals summary{padding:2px 0;font-size:.76rem}#learningHub .worksheet-goals li+li{margin-top:7px}

/* One visible portion within the selected A–F panel; full review reveals all portions. */
.lesson-portion[hidden]{display:none!important}.lesson-portion-header{padding:12px 18px!important;background:var(--panel-tint);border-bottom:1px solid var(--panel-color);scroll-margin-top:18px}.lesson-portion-header h5{margin:0 0 5px;font-size:1.04rem;color:#173b4e}.lesson-portion-header p{margin:0 0 6px;font-size:.82rem;color:#415b64}.lesson-portion-header progress{display:block;width:100%;height:7px;accent-color:#245b4b}.lesson-portion{margin:0;padding:6px 0;font-size:1rem;line-height:1.55;scroll-margin-top:20px}.lesson-portion>h4,.lesson-portion>h5{margin-top:6px}.lesson-portion figure{margin:0}.lesson-portion figure img{max-height:300px;width:100%;object-fit:contain}.lesson-portion table{font-size:.92rem}.lesson-source-portion a{display:block;padding:12px;margin:8px 0;border:1px solid #417c92;border-radius:8px;background:#edf7fb;color:#174c64!important;font-weight:700;text-decoration:underline}.lesson-portion-header[hidden]{display:none!important}.guided-lesson .lesson-workspace>[data-portion-chrome=true]{display:none!important}.lesson-flow-footer>button{margin:6px 8px 0 0}

.arcade-picker{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.arcade-picker>button{grid-column:1/-1;justify-self:start}.student-display .arcade-modes{display:grid!important}.arcade-game-card{border-top:5px solid var(--game-accent)!important;background:linear-gradient(145deg,#fffef9,#f2f5ee)!important;min-height:175px}.arcade-game-card h4{font-size:1.2rem!important;color:var(--game-accent)}.arcade-game-card p{font-size:.9rem;line-height:1.5;color:#435b58}.arcade-game-card button{background:var(--game-accent);border-color:var(--game-accent);color:white}.arcade-game-card button:hover{filter:brightness(.92)}.arcade-games-heading{margin:24px 0 0;font-size:1.45rem}.arcade-game-launcher[hidden],.arcade-games-heading[hidden]{display:none!important}@media(max-width:650px){.arcade-picker{grid-template-columns:1fr}}

/* Optional resources do not add required lesson activities. */
.lesson-optional-support{margin:1rem 0;padding:.8rem;border:1px solid #bdcfca;border-radius:9px;background:#f1f6f3}.lesson-optional-support>summary{font-weight:750;cursor:pointer}.lesson-support-item{margin:.7rem 0}.lesson-listening-tools{margin-bottom:1rem}.lesson-flow-footer:empty{display:none}

/* Activity navigation belongs beside the current task, never below optional reference libraries. */
.worksheet-active-panel .lesson-portion>.lesson-flow-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;margin:10px 0 0;border:1px solid var(--panel-color);border-radius:8px;line-height:1.35}
.lesson-portion>.lesson-flow-footer>p{flex:1 1 220px;order:3;font-size:.84rem;margin:0}
.lesson-portion>.lesson-flow-footer>button{margin:0;min-height:42px;width:auto}

.lesson-topic-videos{margin:10px 0;padding:12px;border:1px solid #9bbbc8;border-radius:9px;background:#f4f9fc}.lesson-topic-videos>summary{font-weight:750;cursor:pointer}.lesson-topic-videos textarea{display:block;width:100%;margin:8px 0}.lesson-topic-videos li{margin:6px 0}

/* Teacher resources use the full page rather than overlaying the lesson workspace. */
.teacher-display #teacherUnitReviews{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--paper);margin-bottom:24px}.teacher-display #teacherUnitReviews>summary{font-size:1.3rem;font-weight:700}.teacher-display #teacherLessonFolders>button{margin:8px 8px 0 0}.teacher-display .year-filters{padding:18px;background:#fffefa;border:1px solid var(--line);border-radius:12px}.teacher-display .year-filters label{min-width:min(100%,280px);font-size:1rem}.teacher-display .year-filters select{min-height:52px}.teacher-display .lesson-print-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.teacher-display .lesson-print-links a{display:flex;align-items:center;justify-content:center;min-height:56px;margin:0;padding:14px;background:#23564b;color:white!important;border:2px solid #23564b;text-align:center;font-size:1rem}.teacher-display .lesson-print-option{padding:18px}.teacher-display #hubDistrictContent .year-day,.teacher-display .persona-work{scroll-margin-top:20px}@media(max-width:700px){.teacher-display .lesson-print-links{grid-template-columns:1fr}}

.lesson-assignment-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.lesson-assignment-buttons button{min-height:48px}

.live-review-picker{flex:1 0 100%;grid-column:1/-1;background:#f5f8f0;border:1px solid #9cb9a4;border-radius:12px;padding:18px;color:#173b32}.live-review-picker label{display:flex;align-items:center;gap:10px;margin:10px 0}.live-review-picker select{min-height:48px;width:100%;max-width:100%}.live-review-picker details{margin:12px 0}.live-review-picker [hidden]{display:none!important}.live-country-buttons{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1;flex-basis:100%;margin:10px 0}.live-country-buttons button[aria-pressed=true]{background:#23564b;color:white;border:3px solid #efbd42}.live-round-clock{font-size:1.5rem;font-weight:800;padding:14px;border:2px solid #b8a85b;background:#fff8d9;color:#153d37;border-radius:10px;text-align:center}

#liveQuest .live-review-picker label,#liveQuest .live-review-picker summary,#liveQuest .live-review-picker p{color:#173b32!important}#monsterLive .monster-live-host{background:#f5f8f0;color:#173b32;border:1px solid #9cb9a4;border-radius:14px;padding:20px}#monsterLive .monster-live-host>label,#monsterLive .monster-live-host>p,#monsterLive .monster-live-host>h4{color:#173b32!important}#monsterLive .live-round-status,#monsterLive .live-round-scores{color:#f1f8fb!important}#monsterLive .live-round-scores h4{color:#f1f8fb!important}

#monsterLive>h3{color:#f1f8fb!important}#monsterLive .monster-live-host>h4{margin:0 0 14px}#monsterLive .monster-live-host>p{margin:0 0 16px}#liveQuest .live-review-picker>h4{margin:0 0 12px}#liveQuest #huntEnd{background:#963e39;color:#fff!important}

/* Visual grammar: the same four teaching panels used in print. */
.grammar-guide{--grammar-ink:#162747;display:grid;gap:16px;margin:12px 0;color:var(--grammar-ink);width:100%;box-sizing:border-box}.grammar-panel{--grammar-color:#008d94;--grammar-pale:#e5f8f5;border:2px solid var(--grammar-color);border-radius:18px;overflow:hidden;background:#fff;box-sizing:border-box}.grammar-purple{--grammar-color:#7b45ac;--grammar-pale:#f0e8fb}.grammar-coral{--grammar-color:#db5862;--grammar-pale:#fff0ee}.grammar-gold{--grammar-color:#bc8300;--grammar-pale:#fff6d5}.year-day .grammar-panel>h4,.grammar-panel>h4{background:var(--grammar-color);color:#fff!important;font-size:1.12rem;line-height:1.35;margin:0!important;padding:12px 17px;letter-spacing:.01em}.grammar-gold>h4{color:#142744!important;background:#ffce42}.grammar-panel-body{padding:14px 17px;display:grid;gap:12px}.grammar-panel-body p,.grammar-panel-body ul{margin:0}.grammar-rule-points{padding-left:21px;line-height:1.65}.grammar-rule-points li+li{margin-top:5px}.grammar-table-wrap{overflow-x:auto;border:1px solid #94b9c0;border-radius:10px}:is(.grammar-guide,.grammar-panel) table{border-collapse:collapse;width:100%;margin:0;table-layout:auto;font-size:.96rem}:is(.grammar-guide,.grammar-panel) caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}:is(.grammar-guide,.grammar-panel) th,:is(.grammar-guide,.grammar-panel) td{padding:8px 11px;border:1px solid #b9c9dc;text-align:center;line-height:1.4;white-space:normal}:is(.grammar-guide,.grammar-panel) thead th{background:var(--grammar-pale);font-weight:800;color:#162747}:is(.grammar-guide,.grammar-panel) tbody th{font-weight:650;text-align:left;background:#f8fbff;min-width:100px}:is(.grammar-guide,.grammar-panel) tbody tr:nth-child(even) td{background:#f8fbff}.grammar-examples{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.grammar-example{display:flex;flex-direction:column;gap:5px;background:var(--grammar-pale);border-radius:14px;padding:13px 16px;line-height:1.45}.grammar-example strong{font-size:1.08rem;color:#172747}.grammar-example span{font-size:.96rem;font-style:italic;color:#304058}.grammar-coral .grammar-example{border:1px solid #e7b4be;border-radius:24px 24px 24px 5px}.grammar-coral .grammar-speech-1{border-radius:24px 24px 5px 24px}.grammar-frames{list-style:'✦ ';padding-left:22px;font-weight:700;font-size:1.05rem;line-height:1.8}.grammar-check{background:var(--grammar-pale);border-left:4px solid var(--grammar-color);padding:10px 13px}.grammar-full-rule{padding:10px 13px;border:1px solid #c9d7d3;border-radius:10px}.grammar-full-rule summary{font-weight:650;cursor:pointer}.grammar-full-rule p{line-height:1.7}@media(max-width:600px){.grammar-panel-body{padding:11px}:is(.grammar-guide,.grammar-panel) th,:is(.grammar-guide,.grammar-panel) td{padding:7px 6px;font-size:.86rem}.grammar-examples{grid-template-columns:1fr}}@media print{.grammar-panel{box-shadow:none;break-inside:avoid}.grammar-guide{gap:8px}.grammar-panel>h4{-webkit-print-color-adjust:exact;print-color-adjust:exact}.grammar-full-rule{display:none}}

.lesson-portion:has(.grammar-panel){scroll-margin-top:90px}.student-display .lesson-portion:has(.grammar-panel){scroll-margin-top:180px}

.teacher-display .lesson-print-links .teacher-open-student-lesson{grid-column:1;grid-row:2;min-height:52px;background:#fff4c4;color:#183b45;border:2px solid #a97108;font-weight:800;font-size:1rem;padding:12px;cursor:pointer}
.teacher-student-preview{width:min(1240px,96vw);max-width:96vw;height:94vh;max-height:94vh;box-sizing:border-box;border:2px solid #23564b;border-radius:14px;padding:0;background:#f5f3ec;color:#203731;overflow:auto}
.teacher-student-preview::backdrop{background:#102d36b8}.teacher-student-preview>header{position:sticky;top:0;z-index:70;background:#fff9df;border-bottom:2px solid #b68820;padding:12px 18px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}.teacher-student-preview>header button{background:#23564b;color:white;border:0;border-radius:8px;padding:12px;font:700 1rem system-ui;cursor:pointer}.teacher-student-preview>header p{margin:0;max-width:650px;font-size:.9rem}.teacher-student-preview>main{padding:18px}.teacher-student-preview .lesson-portion-header select{width:100%;font:inherit;padding:10px;margin-top:8px}

/* Online worksheets follow complete printed exercise sets, with notebook essentials first. */
.grouped-worksheet .worksheet-activity-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.grouped-worksheet .worksheet-section-button{grid-template-columns:25px minmax(0,1fr);gap:6px;padding:9px;min-height:76px}
.grouped-worksheet .worksheet-section-button .worksheet-icon{display:none}
.grouped-worksheet .worksheet-section-button strong{font:700 .95rem/1.2 Verdana,sans-serif;font-style:normal}
.grouped-worksheet .worksheet-section-button small{font-size:.75rem}
.grouped-worksheet .worksheet-section-button .worksheet-part-status{grid-column:2;font-size:.7rem}
.grouped-worksheet .worksheet-preview{display:none}
.grouped-worksheet .worksheet-letter{width:24px;height:27px;font-size:1rem}
.grouped-worksheet .worksheet-activity{border-radius:7px}
.grouped-worksheet .worksheet-active-panel{scroll-margin-top:20px}
.worksheet-exercise-set{padding:10px 0;color:#172e49}
.worksheet-question-list{display:grid;gap:10px}
.worksheet-answer-row{border:1px solid #bfd0df;border-left:4px solid var(--panel-color,#087e87);border-radius:7px;padding:10px;background:#f7fbff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.worksheet-answer-row label{display:block;min-width:0;font-size:1rem;line-height:2.1}
.worksheet-answer-row input,.worksheet-answer-row select,.worksheet-answer-row textarea{font:inherit;background:#fff;color:#14283f;border:1.5px solid #587f9d;border-radius:5px;padding:8px;max-width:100%;box-sizing:border-box;min-height:42px}
.worksheet-answer-row label>input,.worksheet-answer-row label>select,.worksheet-answer-row textarea{display:block;width:100%}
.worksheet-answer-row .worksheet-inline-answer{display:inline-block!important;width:clamp(7rem,16vw,13rem);margin:0 6px;vertical-align:middle}
.worksheet-answer-row textarea{resize:vertical;line-height:1.5}
.worksheet-answer-row button{padding:9px 14px;min-height:42px;align-self:center}
.worksheet-answer-feedback{grid-column:1/-1;font-size:.84rem;margin:0!important;color:#793800;line-height:1.4;min-height:0}
.worksheet-answer-feedback:empty{display:none}
.worksheet-answer-row[data-correct=true]{border-left-color:#258444;background:#edf8ef}
.worksheet-answer-row[data-correct=true] .worksheet-answer-feedback{color:#1e6335}
.worksheet-table-scroll{max-width:100%;overflow-x:auto}
.worksheet-exercise-set table{width:100%;border-collapse:collapse;table-layout:fixed}
.worksheet-exercise-set td,.worksheet-exercise-set th{border:1px solid #9fbcc9;padding:9px;vertical-align:top}
.worksheet-exercise-set th{background:#d9f0ed;font-weight:750;color:#173550}
.worksheet-answer-chart .worksheet-answer-row,.worksheet-editing-chart .worksheet-answer-row{display:block;border:0;padding:0;background:transparent}
.worksheet-answer-chart input{width:100%!important;min-width:4rem}
.worksheet-answer-chart button,.worksheet-editing-chart button{font-size:.8rem;padding:5px 10px;min-height:34px;margin-top:5px}
.worksheet-answer-chart .worksheet-question-text{font-size:.82rem}
.worksheet-shared-characters{margin:12px 0;background:#fff7d9;padding:10px;border:1px solid #c5a248;border-radius:7px}
.notebook-time-budget{background:#fff0bf;border-left:5px solid #b77d00;border-radius:5px;padding:10px;font-weight:700}
.grouped-worksheet .notebook-copy-guide{max-width:900px;margin:auto}
.grouped-worksheet .notebook-copy-guide h4{margin:10px 0 6px}
.grouped-worksheet .notebook-copy-guide .lesson-example-tile{padding:10px}
.grouped-exercise-navigation{position:sticky;bottom:0;z-index:3;box-shadow:0 -3px 10px #17355012;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.grouped-exercise-navigation p{flex:1 1 220px}
@media(max-width:720px){.grouped-worksheet .worksheet-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.worksheet-exercise-set table{min-width:540px}.worksheet-answer-row{grid-template-columns:minmax(0,1fr)}.worksheet-answer-row button{justify-self:start}.worksheet-answer-row .worksheet-inline-answer{width:8rem}.grouped-exercise-navigation p{flex-basis:100%}}
.grouped-worksheet .worksheet-active-panel>h4{color:#172e49!important}
.grouped-worksheet .lesson-workspace>h4{color:#172e49!important}
.grouped-worksheet .worksheet-exercise-set .lesson-word-chips ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.grouped-worksheet .worksheet-exercise-set .lesson-word-chips li{width:auto;min-width:0;box-sizing:border-box}
.grouped-worksheet .worksheet-exercise-set .lesson-word-chips .pronunciation-controls{display:flex;margin:5px 0}
@media(max-width:650px){.grouped-worksheet .worksheet-exercise-set .lesson-word-chips ul{grid-template-columns:1fr}}
.grouped-worksheet[data-view=full] .worksheet-activity-grid{display:block}
.grouped-worksheet[data-view=full] .worksheet-activity{margin:14px 0}
.grouped-worksheet[data-view=full] .worksheet-section-button{min-height:0}
.grouped-worksheet .worksheet-exercise-set>.worksheet-question-list{margin-top:12px}

/* A worksheet reads top to bottom like the printed handout. */
.worksheet-continuous .worksheet-hero{grid-template-columns:minmax(0,1fr) minmax(110px,24%);text-align:left;padding:12px;gap:12px}
.worksheet-continuous .worksheet-hero img{max-height:100px}
.worksheet-continuous .worksheet-hero .worksheet-lesson-title{font-size:clamp(1.2rem,3vw,1.65rem);margin:6px 0}
.worksheet-continuous .worksheet-scroll-heading{margin:0;padding:10px 14px;background:var(--panel-color);color:#fff;font-size:1rem;scroll-margin-top:20px}
.worksheet-continuous .worksheet-activity{background:#fff;border-color:color-mix(in srgb,var(--panel-color) 32%,#fff)}
.worksheet-continuous .worksheet-reference:empty,.worksheet-continuous .worksheet-work-slot:empty{display:none}
.worksheet-continuous .worksheet-reference{padding-top:6px}
.worksheet-continuous .worksheet-answer-row{background:var(--panel-tint,#f7fbff);padding:6px 8px;gap:6px}
.worksheet-continuous .worksheet-question-list{gap:6px}
.worksheet-continuous .worksheet-answer-row label{line-height:1.55}
.worksheet-continuous .worksheet-answer-chart .worksheet-answer-row,
.worksheet-continuous .worksheet-editing-chart .worksheet-answer-row{background:transparent}
.worksheet-continuous .worksheet-reading-passage{background:var(--panel-tint);border-left:3px solid var(--panel-color);padding:12px;white-space:pre-line}
.worksheet-continuous .worksheet-scroll-finish{padding:8px 0}
.worksheet-continuous .worksheet-scroll-finish p:empty{display:none}
.worksheet-continuous .worksheet-scroll-finish button+button{margin-left:8px}
.worksheet-continuous .notebook-copy-guide{gap:6px}
.worksheet-continuous .worksheet-scroll-part{font-size:1.25rem;color:#173b4e;margin:24px 0 10px}
.worksheet-continuous .worksheet-activity[hidden]{display:none}
.worksheet-continuous .worksheet-activity>p:empty{display:none}
.lesson-view-choices{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 20px}
.lesson-view-choices button{padding:10px 18px}
.lesson-view-choices button[aria-pressed=true]{background:#164c45;color:white;border-color:#164c45}
.lesson-overview-page[hidden],.lesson-worksheet-page[hidden],.worksheet-scroll-part[hidden]{display:none!important}
.lesson-overview-page>h4,.lesson-help-panel>h4,.lesson-overview-page .grammar-panel>h4{scroll-margin-top:24px}
.lesson-overview-return{margin-bottom:12px}
.lesson-help-panel{margin:18px 0;padding:12px 15px;background:var(--panel-tint);border:1px solid var(--panel-color);border-radius:9px}
.lesson-help-panel>h4{margin:0 0 8px}
.lesson-help-link{border:0;background:transparent;color:#176259;padding:4px 0;text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:.875rem;cursor:pointer}
.lesson-help-link:hover{color:#0c3f38;background:transparent}
.worksheet-help-link{display:block;margin:8px 14px 2px}
.worksheet-scroll-header{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--panel-color)}
.worksheet-scroll-header .worksheet-scroll-heading{flex:1}
.worksheet-scroll-header .worksheet-help-link{flex:none;color:#fff;background:transparent;margin:0 12px 0 0;padding:4px 0;min-height:24px;font-size:.8rem;white-space:nowrap}
.worksheet-scroll-header .worksheet-help-link:focus-visible{outline:2px solid white;outline-offset:2px}
.worksheet-dictionary{margin:0 0 12px;padding:7px 12px;border:1px solid #cbd7e4;border-radius:8px;background:#f7fbfa;font-size:.9rem}
.worksheet-dictionary summary{cursor:pointer;font-weight:650;color:#24554c}
.worksheet-dictionary form{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:10px 0}
.worksheet-dictionary label{display:grid;gap:4px}
.worksheet-dictionary input{max-width:100%}
.worksheet-dictionary dt{font-weight:700}
.worksheet-dictionary dd{margin:0 0 8px}
.worksheet-dictionary dl:empty,.worksheet-dictionary p:empty{display:none}
.lesson-overview-return{position:sticky;top:8px;z-index:2;background:#fff;border:1px solid #d0e0da;border-radius:6px;padding:5px 10px}

.worksheet-reading-direction{display:block;color:#4d3666;font-size:.86em;font-weight:650;margin:2px 0 5px}

.worksheet-writing-models{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:10px;margin:12px 0}
.worksheet-writing-models .lesson-example-card{margin:0}
.lesson-help-panel>h4{color:#172e49!important;scroll-margin-top:52px}
.worksheet-writing-models .pronunciation-controls button{min-height:36px;padding:4px 6px;font-size:.74rem}
.worksheet-writing-models .pronunciation-controls .pronunciation-ear{flex-basis:20px;width:20px;height:20px;padding:2px}

.worksheet-task-directions{margin:10px 14px 0;padding:8px 12px;border-left:3px solid var(--panel-color);background:var(--panel-tint);color:#172e49}
.worksheet-task-directions p{margin:0;line-height:1.5}
.worksheet-task-directions p+p{margin-top:5px}
.worksheet-scroll-header .worksheet-scroll-heading{color:#fff!important}

.worksheet-family-tree{margin:10px 0 16px;padding:12px;background:#f5f2fc;border:1px solid #ba9ed8;border-radius:10px;color:#25334c}
.worksheet-family-tree figcaption{font-weight:800;margin-bottom:8px}
.worksheet-family-tree img{display:block;width:100%;max-width:600px;height:auto;margin-inline:auto;border-radius:8px}
.worksheet-family-tree p{margin:8px 0 0}
.worksheet-family-tree img[src$='miguel-family-tree.jpg']{max-width:100%}
.lesson-ser-estar-reference img{max-width:min(100%,497px)}
.lesson-ser-estar-reference fieldset button{margin:4px 6px 4px 0}
.worksheet-answer-row .lesson-example-card{margin:6px 0 10px}

/* The required copy page is deliberately plain. Audio has its own overview activity. */
.worksheet-continuous .worksheet-notebook-card{background:white;border:0;border-radius:0}
.worksheet-notebook-card>.worksheet-work-slot{padding:0 0 10px}
.worksheet-notebook-card .notebook-copy-page{background:white;border:0;border-radius:0;box-shadow:none;margin:0;padding:0}
.notebook-copy-guide{background:white;color:#17202d;line-height:1.5}
.notebook-copy-guide .notebook-copy-title{color:#17202d!important;font-size:clamp(1.12rem,2.6vw,1.45rem);margin:0 0 8px}
.notebook-copy-guide h5{font-size:1rem;color:#17202d!important;margin:12px 0 4px}
.notebook-copy-guide p,.notebook-copy-guide ul{margin:0 0 6px}
.notebook-copy-guide ul{padding-left:1.3rem}
.notebook-copy-guide li+li{margin-top:4px}
.notebook-copy-guide table{width:auto;min-width:min(100%,20rem);max-width:100%;border:0;border-collapse:collapse;color:#17202d;margin:4px 0 8px}
.notebook-copy-guide table td,.notebook-copy-guide table th{background:white!important;border:0;border-bottom:1px solid #d5d9dd;padding:4px 10px;text-align:left;color:#17202d;font-size:.95rem}
.notebook-copy-guide table th{font-weight:650}
.notebook-copy-guide .bilingual-verb-chart{padding:0}
.notebook-copy-guide .bilingual-verb-chart caption{padding:4px 0;color:#17202d;text-align:left;font-size:1rem}
.notebook-copy-guide .bilingual-verb-chart caption strong,.notebook-copy-guide .bilingual-verb-form strong{font-size:inherit;color:#17202d}
.notebook-copy-guide .bilingual-verb-form{display:block}
.notebook-copy-guide .bilingual-verb-form strong{margin-left:.3em}
.notebook-copy-guide .bilingual-verb-form strong:first-child{margin-left:0}
.notebook-copy-guide .bilingual-verb-meaning{color:#17202d;font-size:.9rem;font-weight:400}
.notebook-copy-confirmation{display:flex;align-items:center;gap:8px;margin:12px 0 0}
.notebook-pronunciation-practice{margin:14px 0}

/* Two-step learning loop: Step 1 (Learn & Explore) -> Step 2 (Conversation & Game Mission) */
.lesson-step-tabs {
  display: flex;
  gap: 12px;
  margin: 14px 0 20px;
  padding: 6px;
  background: #f1f6f2;
  border: 1px solid #c9d8ce;
  border-radius: 12px;
}
.lesson-step-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px 16px;
  background: transparent;
  color: #2c4238;
  border: 2px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.95rem;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.lesson-step-tab:hover {
  background: #e2ede5;
}
.lesson-step-tab[aria-selected="true"],
.lesson-step-tab.active {
  background: #ffffff;
  color: #174e40;
  border-color: #1e6452;
  box-shadow: 0 3px 10px rgba(23, 78, 64, 0.12);
}
.lesson-step-tab .step-badge {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #5d7568;
}
.lesson-step-tab[aria-selected="true"] .step-badge,
.lesson-step-tab.active .step-badge {
  color: #1b5e4d;
}
.lesson-step-tab .step-title {
  font-size: 0.95rem;
  line-height: 1.3;
}
.step-transition-banner {
  margin: 24px 0 16px;
  padding: 20px 22px;
  background: #f3f9f5;
  border: 2px solid #b7d8c7;
  border-radius: 12px;
  text-align: center;
}
.step-transition-banner h4 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: #16493c;
}
.step-transition-banner p {
  margin: 0 0 14px;
  color: #3b574a;
  font-size: 0.92rem;
}
.lesson-step-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #1e6452;
  color: #ffffff!important;
  border: 0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.lesson-step-next-btn:hover {
  background: #14493b;
}
.lesson-phase-badge {
  display: inline-block;
  margin: 4px 0 10px;
  padding: 4px 10px;
  background: #e7f1eb;
  border: 1px solid #bcd4c6;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1c5545;
}
@media (max-width: 700px) {
  .lesson-step-tabs {
    flex-direction: column;
    gap: 6px;
  }
  .lesson-step-tab {
    padding: 10px 12px;
  }
}
