.teacher-overview-learning{margin-top:20px}.teacher-overview-tabs{width:max-content;max-width:100%;gap:4px;margin-bottom:12px;padding:5px;border:1px solid #dce7e3;border-radius:15px;background:#f4f8f6;overflow-x:auto}.teacher-overview-tabs button{min-width:170px;border-color:transparent;background:transparent;color:#617487}.teacher-overview-tabs button:hover{border-color:#c7ded5;background:#edf6f2;color:#176b58}.teacher-overview-tabs button.active{border-color:#a8d9c7;background:#e5f6ef;color:#08745a;box-shadow:0 3px 9px rgba(8,116,90,.08)}.teacher-overview-active-panel>.panel{margin:0}.teacher-student-activity .panel-title label{display:grid;gap:4px;color:#607286;font-size:.72rem;font-weight:800}.teacher-student-activity select{min-width:150px;padding:9px 34px 9px 10px;border:1px solid #d9e4df;border-radius:10px;background:#fff;color:#16304f}.teacher-activity-list{display:grid;max-height:650px;overflow:auto;scrollbar-gutter:stable}.teacher-activity-list article{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center;padding:13px 2px;border-bottom:1px solid #e7eeea}.teacher-activity-list article:last-child{border-bottom:0}.activity-subject{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:#dff6ed;color:#08795c;font-weight:900}.activity-subject.coding{background:#eee9ff;color:#5d48ae}.teacher-activity-list h3{margin:2px 0;color:#16304f;font-size:.9rem}.teacher-activity-list small,.teacher-activity-list p{margin:0;color:#718194;font-size:.74rem}.teacher-activity-list strong{color:#08795c;font-size:.9rem}
body:has(#content[data-portal-role="teacher"][data-portal-view="overview"]){overflow-y:scroll}#content[data-portal-role="teacher"][data-portal-view="overview"] .overview-welcome{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center}#content[data-portal-role="teacher"][data-portal-view="overview"] .overview-quick-actions{justify-self:end;flex-wrap:nowrap;white-space:nowrap}
.math-grade-tabs,.coding-pathway-selector{gap:10px;padding:18px 0 10px}.math-grade-tabs button,.coding-pathway-selector button{flex:1 0 96px;min-height:52px;font-size:.96rem}.math-curriculum-filter,.coding-curriculum-filter{grid-template-columns:minmax(280px,.8fr) minmax(320px,1.2fr);padding:16px 0}.coding-curriculum-filter .coding-browse-tabs{margin:0}.calendar-month-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.calendar-day.outside-month{opacity:.48;background:#f5f7f7}.monthly-calendar-grid{margin-bottom:20px}
.calendar-slot-roster{display:grid;gap:10px;margin:18px 0}.calendar-slot-roster article{display:flex;align-items:center;gap:16px;padding:14px 16px;border:1px solid #dfe8e4;border-radius:14px;background:#f8fbfa}.calendar-slot-roster article>div{display:grid;flex:1;gap:3px}.calendar-slot-roster article small{color:#718194}.monthly-calendar-grid .grouped-calendar-slot span{line-height:1.3;overflow-wrap:anywhere}
.community-teacher-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;padding:24px 28px;border:1px solid #dbe8e2;border-radius:24px;background:linear-gradient(135deg,#effaf6,#f6f2ff)}.community-teacher-head h2{margin:4px 0;color:#16304f;font-size:clamp(1.6rem,3vw,2.25rem)}.community-teacher-head p{margin:0;color:#607286}.community-teacher-head>span{padding:10px 14px;border-radius:999px;background:#fff;color:#08795c;font-weight:800}.teacher-all-students article{grid-template-columns:52px minmax(0,1fr) auto auto}.teacher-all-students article>small{color:#718194;text-align:right}
.minimal-teacher-reports>.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.minimal-teacher-reports .panel{margin-top:20px}.report-head-actions{display:flex;gap:8px;flex-wrap:wrap}.minimal-report-grid article{grid-template-columns:minmax(170px,1fr) minmax(90px,.35fr) minmax(100px,.4fr) auto}.minimal-report-grid article>span{display:grid}.minimal-report-grid small{color:#718194}
.week-schedule-grid{display:grid;grid-template-columns:repeat(7,minmax(115px,1fr));gap:10px;margin:18px 0 24px;overflow-x:auto;padding-bottom:5px}.week-schedule-day{min-height:155px;padding:12px;border:1px solid #dfe8e4;border-radius:17px;background:#fff}.week-schedule-day.today{border-color:#20a27d;box-shadow:0 0 0 3px #ddf6ed}.week-schedule-day>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.week-schedule-day>header small{font-weight:850;text-transform:uppercase;color:#718194}.week-schedule-day>header b{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:#eff6f3}.week-schedule-day>button{display:grid;width:100%;gap:2px;margin:6px 0;padding:8px;border:0;border-radius:10px;background:#e8f7f1;color:#153455;text-align:left;cursor:pointer}.week-schedule-day>button small,.week-schedule-day>button span{font-size:.7rem}.week-empty{display:block;padding:12px 2px;color:#9aa7b4;font-size:.75rem}
.puzzle-card-library-section{margin:24px 0;padding:22px;border:1px solid #f1d196;border-radius:26px;background:linear-gradient(145deg,#fffaf1,#f5fcf9)}.puzzle-card-library-section>.today-work-head{margin-bottom:15px}.puzzle-card-library-section .practical-puzzle-library{margin:0;background:#fff}.puzzle-visual-chip{display:grid!important;grid-template-columns:34px auto auto minmax(0,1fr);align-items:center;gap:7px;margin:0 0 9px;padding:8px;border-radius:12px;background:linear-gradient(110deg,#e8f8f2,#fff4d9)}.puzzle-visual-chip i{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#fff;font-style:normal;font-size:1.25rem}.puzzle-visual-chip>b{color:#08795c}.puzzle-visual-chip>span{color:#d78a00;font-weight:900}.puzzle-visual-chip>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#61748a}
.teacher-assigned-curriculum{margin-bottom:22px!important;padding:22px;border:1px solid #a8d9c7!important;border-radius:22px;background:linear-gradient(145deg,#f2fbf7,#fff)!important}.teacher-assigned-curriculum>.today-work-head{margin-bottom:14px}.teacher-assigned-curriculum .assigned-first-grid{gap:12px;padding:0;background:transparent}.teacher-assigned-curriculum .student-chapter-grid>article{min-width:0;box-shadow:0 7px 18px rgba(22,48,79,.055)!important}.empty-current-grade-curriculum{padding-top:0!important}.empty-current-grade-curriculum>.today-work-head{margin-bottom:9px}.empty-current-grade-curriculum .curriculum-status-panel{padding:14px 16px}.empty-current-grade-curriculum .curriculum-status-panel>span{width:42px;height:42px;flex-basis:42px}.empty-current-grade-curriculum .curriculum-status-panel h3{font-size:1rem}.empty-current-grade-curriculum .curriculum-status-panel p:last-child{font-size:.78rem}.current-grade-curriculum{border-left:0}.next-grade-stretch{border:2px solid #b8aceb!important;background:linear-gradient(145deg,#f5f2ff,#fff)!important}.next-grade-stretch .today-work-head:after{content:'OPTIONAL · ABOVE CURRENT GRADE';padding:7px 10px;border-radius:999px;background:#eee8ff;color:#5d48ae;font-size:.66rem;font-weight:900;letter-spacing:.06em}
@media(min-width:1200px){.teacher-assigned-curriculum .student-chapter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.whiteboard-primary-tool{display:flex;align-items:center;gap:7px}.whiteboard-primary-tool>b{font-size:.82rem;color:#153455}.whiteboard-more-tools{position:relative}.whiteboard-more-tools>summary{padding:9px 12px;border:1px solid #d6dfdb;border-radius:10px;background:#fff;color:#153455;font-size:.8rem;font-weight:800;cursor:pointer;list-style:none}.whiteboard-more-tools[open]>summary{border-color:#168a68;background:#e9f8f2}.whiteboard-more-tools>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:7px;padding:8px;border:1px solid #dce6e1;border-radius:12px;background:#fff}.template-paused{background:#f7f8f8}.template-paused p{margin:4px;color:#788797;font-size:.76rem;line-height:1.4}.live-sidebar-toggle{gap:5px!important;width:auto!important;min-width:70px;padding:0 8px!important;font-size:.85rem!important}.live-sidebar-toggle b{font-size:.72rem}
@media(min-width:1100px){body.live-class-page{height:auto;overflow:auto}.live-split-mode>.dashboard-main{height:auto;min-height:100vh;overflow:visible;padding-top:6px}.live-split-mode #content{height:auto;min-height:0;overflow:visible}.live-split-workspace{height:auto;min-height:calc(100vh - 120px);grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:34px auto;overflow:visible}.live-question-pane,.live-workspace-pane{height:auto;min-height:620px;overflow:visible}.live-question-pane>.live-selected-student,.live-question-pane>.inline-sheet-shell,.live-question-pane .live-student-card,.live-question-pane>.inline-sheet-shell>.focus-sheet{height:auto;min-height:620px;overflow:visible}.live-question-pane .live-question-card,.live-question-pane .focus-question{overflow:visible}.live-question-pane>.inline-sheet-shell{position:sticky;top:6px;align-self:start}.live-workspace-pane>.live-whiteboard{height:auto;min-height:620px;overflow:visible}.live-workspace-pane .whiteboard-stage{min-height:420px}.live-workspace-pane .whiteboard-stage canvas{height:clamp(420px,58vh,650px)}.live-class-mode .topbar{margin-bottom:2px}.live-class-mode>.dashboard-main{padding-top:6px}}
.live-class-mode .live-split-workspace{margin-top:14px}
@media(min-width:700px) and (max-width:1099px){.inline-sheet-shell,.focus-sheet{width:100%;max-width:none}.focus-sheet{padding:16px}.focus-options{grid-template-columns:repeat(2,minmax(0,1fr))}.student-progress-page>.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.student-progress-page>.stat-grid article{min-width:0;padding:14px}.student-progress-page>.stat-grid strong{font-size:clamp(1.15rem,2.4vw,1.75rem)}}
@media(max-width:1050px){.teacher-activity-list{max-height:none}.minimal-teacher-reports>.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.minimal-report-grid article{grid-template-columns:minmax(0,1fr) auto}.minimal-report-grid article>button{grid-column:1/-1}.teacher-all-students article{grid-template-columns:45px minmax(0,1fr) auto}.teacher-all-students article>small{grid-column:2/-1;text-align:left}}
@media(max-width:680px){.teacher-overview-tabs button{min-width:145px}.teacher-student-activity{margin-top:0}.minimal-teacher-reports>.stat-grid{grid-template-columns:1fr 1fr}.community-teacher-head{align-items:flex-start;flex-direction:column}.puzzle-card-library-section{padding:12px}.next-grade-stretch .today-work-head:after{display:none}.monthly-calendar-toolbar{align-items:stretch}.calendar-month-actions{justify-content:flex-start}}
@media(max-width:900px){.math-curriculum-filter,.coding-curriculum-filter{grid-template-columns:1fr}.math-curriculum-filter .curriculum-search,.coding-curriculum-filter .curriculum-search{grid-column:auto}}
@media(max-width:900px){#content[data-portal-role="teacher"][data-portal-view="overview"] .overview-welcome{grid-template-columns:1fr}#content[data-portal-role="teacher"][data-portal-view="overview"] .overview-quick-actions{justify-self:start;flex-wrap:wrap;white-space:normal}}

/* Optional Math workspace and compact live-class layout. */
.optional-workspace-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:50px;padding:8px 10px;border:1px solid #dbe7e2;border-radius:14px;background:linear-gradient(110deg,#f5fbf8,#faf8ff)}
.optional-workspace-controls>div{display:grid;min-width:0;gap:2px}.optional-workspace-controls>div>span{color:#718194;font-size:.64rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.optional-workspace-controls>div>b{overflow:hidden;color:#16304f;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap}.optional-workspace-controls>button{display:inline-flex!important;width:auto!important;height:38px!important;min-width:142px!important;align-items:center;justify-content:center;gap:7px;padding:0 13px!important;border:1px solid #168a68!important;border-radius:11px!important;background:#168a68!important;color:#fff!important;font-size:.78rem!important;font-weight:850;white-space:nowrap}.optional-workspace-controls>button.workspace-hide-button{border-color:#cddbd6!important;background:#fff!important;color:#16304f!important}
.live-split-workspace.workspace-closed{grid-template-columns:minmax(0,1fr)!important}.live-split-workspace.workspace-closed .live-question-pane{grid-column:1/-1}.live-split-workspace.workspace-closed .live-workspace-pane{display:none!important}.live-split-workspace.workspace-open{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
.workspace-template-recommendation,.workspace-template-suggestion{display:flex;align-items:center;gap:8px;margin:7px 0;padding:8px 10px;border-radius:11px;background:#edf9f4;color:#16304f;font-size:.72rem}.workspace-template-recommendation>span,.workspace-template-suggestion>span{color:#168a68;font-weight:900;text-transform:uppercase}.workspace-template-recommendation>small{margin-left:auto;color:#718194}.workspace-template-suggestion{background:#f1edff}.workspace-template-suggestion>span{color:#6751bd}.workspace-template-suggestion>button{margin-left:auto;padding:6px 9px;border:1px solid #7862d0;border-radius:8px;background:#fff;color:#5742a8;font-weight:800;cursor:pointer}
.whiteboard-icon-button.recommended{border-color:#e0a62e!important;box-shadow:0 0 0 2px rgba(236,176,46,.18)}.whiteboard-icon-button.recommended::after{content:'★';position:absolute;margin:-29px 0 0 30px;color:#d38a00;font-size:.55rem}.whiteboard-icon-button{position:relative}.whiteboard-toolbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.whiteboard-number-tools{grid-column:1/-1}.whiteboard-construction-tools>small{display:block;margin-top:7px;color:#718194;font-size:.67rem}.suggest-template-button{margin:0 0 9px auto;padding:8px 11px!important;font-size:.73rem!important}
.whiteboard-stage{background-size:5% 8.333333%}.whiteboard-stage canvas{width:100%;height:auto!important;min-height:0!important;aspect-ratio:5/3}.live-workspace-pane .whiteboard-stage{min-height:0!important}.live-workspace-pane .whiteboard-stage canvas{height:auto!important;min-height:0!important;aspect-ratio:5/3}
.student-live-banner-tools{display:flex;align-items:center;gap:8px}.dashboard-shell[data-portal-role="student"].live-class-mode .topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:18px;min-height:58px}.dashboard-shell[data-portal-role="student"].live-class-mode .topbar>div:first-child{grid-column:1;min-width:0}.dashboard-shell[data-portal-role="student"].live-class-mode .student-live-banner-tools{grid-column:2;justify-self:center}.dashboard-shell[data-portal-role="student"].live-class-mode .top-actions{grid-column:3;justify-self:end}.live-top-countdown{display:grid;grid-template-columns:8px auto;grid-template-rows:auto auto;align-items:center;column-gap:7px;min-width:112px;padding:7px 12px;border-radius:14px;background:linear-gradient(135deg,#153455,#168a68);box-shadow:0 7px 18px rgba(21,52,85,.16);color:#fff}.live-top-pulse{grid-row:1/3;width:8px;height:8px;border-radius:50%;background:#6ff0be;box-shadow:0 0 0 4px rgba(111,240,190,.16);animation:live-top-pulse 1.5s ease-in-out infinite}.live-top-countdown small{align-self:end;color:#c9f5e5;font-size:.55rem;font-weight:900;letter-spacing:.09em;line-height:1;text-transform:uppercase}.live-top-countdown .live-timer{align-self:start;min-width:0;padding:0;border-radius:0;background:transparent;color:#fff;font-size:1rem;line-height:1.05;text-align:left}.live-top-countdown .live-timer.last-ten{background:transparent;color:#ffd5bd}.student-live-banner-tools .ask-teacher-button{position:static;display:inline-flex;min-height:40px;margin:0;align-items:center;gap:7px;padding:6px 10px;border-radius:13px;box-shadow:none}.student-live-banner-tools .ask-teacher-button>span{grid-row:auto;width:27px;height:27px;border-radius:9px;font-size:1rem}.student-live-banner-tools .ask-teacher-button b{font-size:.7rem}.student-live-banner-tools .ask-teacher-button small{display:none}@keyframes live-top-pulse{50%{opacity:.48;transform:scale(.82)}}.live-class-mode .live-class-head{align-items:center}.live-class-mode .live-class-head>div>p:not(.eyebrow){margin:2px 0}.live-class-mode .live-selected-student .live-student-card>header{gap:10px}.live-class-mode .live-header-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.live-class-mode .live-header-tools .live-class-actions{display:flex;gap:7px}.live-class-mode .live-header-tools .live-class-actions button{margin:0;padding:8px 10px;font-size:.72rem}.live-class-mode .live-actions-only{display:none}.live-class-mode .teacher-simple-counters{margin:0}.live-class-mode .teacher-live-player{margin-top:9px}
.practice-workspace-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:10px;width:100%;max-width:1480px;margin:0 auto}.practice-workspace-layout.workspace-open{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.practice-workspace-layout>.live-split-controls{grid-column:1/-1;grid-row:1}.practice-workspace-layout>.live-question-pane{grid-column:1;grid-row:2}.practice-workspace-layout>.live-workspace-pane{grid-column:2;grid-row:2}.practice-workspace-layout.workspace-closed>.live-question-pane{grid-column:1/-1}.practice-workspace-layout .inline-sheet-shell{max-width:none;width:100%}.practice-workspace-layout .live-whiteboard{margin-top:0}
@media(min-width:1100px){.live-split-workspace.workspace-closed .live-question-pane>.live-selected-student,.live-split-workspace.workspace-closed .live-question-pane>.inline-sheet-shell{min-height:0}.live-split-workspace.workspace-closed .live-question-pane>.inline-sheet-shell{position:relative;top:auto}.live-split-workspace.workspace-open,.practice-workspace-layout.workspace-open{grid-template-rows:minmax(0,1fr)!important}.live-split-workspace.workspace-open>.live-split-controls,.practice-workspace-layout.workspace-open>.live-split-controls,.live-split-workspace.workspace-open>.live-question-pane,.practice-workspace-layout.workspace-open>.live-question-pane,.live-split-workspace.workspace-open>.live-workspace-pane,.practice-workspace-layout.workspace-open>.live-workspace-pane{grid-row:1!important}.live-split-workspace.workspace-open .live-question-pane>.inline-sheet-shell{position:sticky;top:0}.live-split-workspace.workspace-open .live-question-pane,.live-split-workspace.workspace-open .live-workspace-pane{min-height:560px}.live-split-workspace.workspace-open .live-workspace-pane>.live-whiteboard{min-height:560px}.live-split-workspace.workspace-open .live-question-pane .focus-question{max-height:none}.practice-workspace-layout.workspace-open>.live-question-pane>.inline-sheet-shell{position:sticky;top:0;align-self:start}.live-class-mode .live-class-head{padding:9px 13px}.live-class-mode .live-class-head h2{font-size:18px}.live-class-mode .student-live-practice-head{padding:9px 13px}.live-class-mode .student-live-practice-head h2{font-size:18px}}
@media(min-width:700px) and (max-width:1099px){.live-split-workspace.workspace-open,.practice-workspace-layout.workspace-open{display:flex!important;flex-direction:column}.live-split-workspace.workspace-open>.live-split-controls,.practice-workspace-layout.workspace-open>.live-split-controls{order:0}.live-split-workspace.workspace-open>.live-question-pane,.practice-workspace-layout.workspace-open>.live-question-pane{order:1}.live-split-workspace.workspace-open>.live-workspace-pane,.practice-workspace-layout.workspace-open>.live-workspace-pane{order:2}.live-workspace-pane[hidden]{display:none!important}.whiteboard-toolbox-grid{grid-template-columns:1fr}.student-live-practice-head{align-items:center!important;flex-direction:row!important}}
@media(max-width:699px){.optional-workspace-controls>button{display:none!important}.optional-workspace-controls>div>span{font-size:.7rem}.optional-workspace-controls>div>b::after{content:' · available on tablet or computer';color:#718194;font-weight:600}.student-live-banner-tools .ask-teacher-button b{display:none}.live-top-countdown{min-width:96px;padding:7px 9px}.workspace-template-recommendation{align-items:flex-start;flex-direction:column}.workspace-template-recommendation>small{margin-left:0}}

/* Keep the student's primary page header in both workspace states; remove the redundant live-content strip. */
.dashboard-shell[data-portal-role="student"].live-class-mode .topbar{display:flex}
.dashboard-shell[data-portal-role="student"].live-class-mode .student-live-practice-head{display:none!important}
@media(prefers-reduced-motion:reduce){.live-top-pulse{animation:none}}

/* Keep the open worksheet and workspace as one visually aligned 50:50 pair. */
@media(min-width:1100px){
  .live-split-workspace.workspace-open{align-items:stretch}
  .live-split-workspace.workspace-open>.live-question-pane,.live-split-workspace.workspace-open>.live-workspace-pane{display:flex;height:auto;align-items:stretch}
  .live-split-workspace.workspace-open>.live-question-pane>.inline-sheet-shell,.live-split-workspace.workspace-open>.live-question-pane>.live-selected-student,.live-split-workspace.workspace-open>.live-workspace-pane>.live-whiteboard{height:auto;min-height:100%;flex:1 1 auto;align-self:stretch}
  .live-split-workspace.workspace-open>.live-question-pane>.inline-sheet-shell>.focus-sheet{height:100%;min-height:100%}
}

/* Compact whiteboard controls: reveal tool arrays only when requested. */
.workspace-template-suggestion[hidden]{display:none!important}
.workspace-compact-head{align-items:center;margin-bottom:7px!important}.workspace-compact-head>div:first-child{min-width:0}.workspace-compact-head h2{margin:0;font-size:1.2rem!important}.workspace-compact-head small{max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-compact-head .whiteboard-status{flex-wrap:nowrap;gap:6px}.workspace-compact-head .role-chip{padding:7px 10px;font-size:.68rem;white-space:nowrap}
.workspace-compact-toolbar{position:relative;display:grid!important;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;justify-content:initial!important;gap:7px!important;margin:6px 0 8px!important;padding:7px!important;overflow:visible}
.workspace-tool-menu{position:relative;margin:0}.workspace-tool-menu>summary{display:flex;min-width:82px;height:40px;align-items:center;justify-content:center;gap:7px;padding:0 11px;border:1px solid #d6dfdb;border-radius:10px;background:#fff;color:#153455;cursor:pointer;list-style:none;font-size:.78rem;font-weight:850}.workspace-tool-menu>summary::-webkit-details-marker{display:none}.workspace-tool-menu[open]>summary{border-color:#168a68;background:#e9f8f2;color:#087154}.workspace-tool-menu>summary>span{font-size:1.12rem}.workspace-tool-menu>summary>i{display:grid;width:17px;height:17px;place-items:center;border-radius:50%;background:#fff0c9;color:#c57b00;font-size:.62rem;font-style:normal}
.workspace-compact-toolbar>.whiteboard-draw-tools>summary,.workspace-compact-toolbar>.whiteboard-toolbox>summary{position:relative;width:100px;min-width:100px;box-sizing:border-box}.workspace-compact-toolbar>.whiteboard-toolbox>summary>i{position:absolute;top:-6px;right:-6px}.live-whiteboard[data-active-tool="move"] .whiteboard-stage canvas{cursor:move}
.workspace-compact-toolbar>.whiteboard-draw-tools:has([data-board-tool].active)>summary,.workspace-compact-toolbar>.whiteboard-toolbox:has([data-board-tool].active)>summary{border-color:#168a68;background:#e9f8f2;color:#087154;box-shadow:inset 0 0 0 1px rgba(22,138,104,.08)}
.workspace-template-help{display:block;flex:1 0 100%;margin:3px 2px 0;color:#718194;font-size:.67rem}
.workspace-tool-popover{position:absolute;z-index:20;top:calc(100% + 8px);left:0;display:grid;gap:10px;width:min(430px,calc(100vw - 70px));padding:10px;border:1px solid #d8e3de;border-radius:13px;background:#fff;box-shadow:0 16px 34px rgba(21,52,85,.18)}.workspace-tool-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.workspace-tool-popover .whiteboard-colours{padding-top:8px;border-top:1px solid #e6ece9}
.workspace-compact-toolbar>.whiteboard-toolbox{position:static}.workspace-compact-toolbar>.whiteboard-toolbox>.workspace-tool-popover{right:0;width:auto;grid-template-columns:repeat(4,minmax(0,1fr))}.whiteboard-template-category{min-width:0}.whiteboard-template-category>summary{display:flex;min-height:43px;align-items:center;justify-content:center;gap:6px;padding:7px 8px;border:1px solid #dfe7e3;border-radius:10px;background:#f8fbfa;color:#153455;cursor:pointer;list-style:none;font-size:.7rem;font-weight:850;text-align:center}.whiteboard-template-category>summary::-webkit-details-marker{display:none}.whiteboard-template-category>summary>span{font-size:.9rem}.whiteboard-template-category[open]{grid-column:1/-1}.whiteboard-template-category[open]>summary{border-color:#9ccfbe;background:#edf9f4;color:#087154}.whiteboard-template-category>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:8px;padding:9px;border:1px solid #e4ebe7;border-radius:10px;background:#fbfdfc}.whiteboard-template-category>small{display:block;margin:6px 3px 0;color:#718194;font-size:.67rem}.whiteboard-toolbox-grid>.suggest-template-button{grid-column:1/-1;justify-self:end;margin:0!important}
.workspace-compact-toolbar>.whiteboard-history{justify-self:end;flex-wrap:nowrap;gap:5px}.workspace-compact-toolbar>.whiteboard-action-menu>summary{min-width:42px;width:42px;padding:0;font-size:1.4rem}.whiteboard-action-menu .workspace-tool-popover{right:0;left:auto;width:auto;grid-auto-flow:column;grid-template-columns:none}.workspace-action-popover .whiteboard-icon-button{flex:0 0 42px}
.live-whiteboard footer>small{white-space:nowrap}.live-workspace-pane .workspace-compact-toolbar{flex:0 0 auto}
@media(max-width:700px){.workspace-compact-head{align-items:flex-start}.workspace-compact-head .whiteboard-status{flex-wrap:wrap}.workspace-compact-toolbar{grid-template-columns:auto auto 1fr auto}.workspace-tool-menu>summary{min-width:46px;padding:0 8px}.workspace-tool-menu>summary>b{display:none}.workspace-compact-toolbar>.whiteboard-toolbox>.workspace-tool-popover{grid-template-columns:repeat(2,minmax(0,1fr))}.whiteboard-template-category[open]{grid-column:1/-1}}

/* Keep Math category tabs fixed; the selected category opens in a separate array below. */
.workspace-compact-toolbar>.whiteboard-toolbox>.workspace-tool-popover{min-width:min(560px,calc(100vw - 90px))}
.workspace-compact-toolbar>.whiteboard-toolbox>.workspace-tool-popover>.whiteboard-template-category{position:static;grid-column:auto!important}
.workspace-compact-toolbar>.whiteboard-toolbox>.workspace-tool-popover>.whiteboard-template-category>summary{height:48px;box-sizing:border-box}
.workspace-compact-toolbar>.whiteboard-toolbox>.workspace-tool-popover>.whiteboard-template-category[open]>div{position:absolute;z-index:24;top:calc(100% + 8px);right:0;left:0;margin:0;padding:12px;background:#fff;box-shadow:0 14px 30px rgba(21,52,85,.16)}
@media(min-width:700px){.workspace-compact-toolbar>.whiteboard-toolbox>.workspace-tool-popover>.whiteboard-template-category{grid-row:1}}

/* A closed workspace must look like the original standalone worksheet, not a collapsed split screen. */
.optional-workspace-controls.workspace-controls-open,.optional-workspace-controls.workspace-controls-closed{position:fixed;z-index:60;top:132px;right:8px;width:auto;min-height:0;padding:0;border:0;background:transparent;box-shadow:none;isolation:isolate}
.optional-workspace-controls.workspace-controls-open,.optional-workspace-controls.workspace-controls-closed{justify-content:flex-end}
.optional-workspace-controls.workspace-controls-open>button,.optional-workspace-controls.workspace-controls-closed>button{width:116px!important;min-width:116px!important;height:36px!important;padding:0 6px!important;font-size:.72rem!important}
.optional-workspace-controls.workspace-controls-closed>button{border-color:#8ed8bf!important;background:#e8f8f2!important;color:#087154!important;box-shadow:0 5px 16px rgba(8,113,84,.15)}
.optional-workspace-controls.workspace-controls-closed>button:hover,.optional-workspace-controls.workspace-controls-closed>button:focus-visible{border-color:#168a68!important;background:#d8f3e9!important;box-shadow:0 6px 18px rgba(8,113,84,.2)}
.optional-workspace-controls.workspace-controls-closed>button i{color:#c57b00;font-size:.62rem;font-style:normal}
@media(max-width:1099px){.optional-workspace-controls.workspace-controls-open,.optional-workspace-controls.workspace-controls-closed{top:auto;right:18px;bottom:18px}.dashboard-shell[data-portal-role="student"].live-class-mode .topbar{display:flex!important;align-items:flex-start;flex-wrap:wrap}.dashboard-shell[data-portal-role="student"].live-class-mode .student-live-banner-tools{order:3;width:100%;margin-top:8px;justify-content:center}}
.live-split-workspace.workspace-closed,.practice-workspace-layout.workspace-closed{position:relative!important;display:block!important;width:100%;height:auto!important;min-height:0!important;overflow:visible!important}
.live-split-workspace.workspace-closed>.live-question-pane,.practice-workspace-layout.workspace-closed>.live-question-pane{display:block!important;width:100%;height:auto!important;min-height:0!important;overflow:visible!important}
.live-split-workspace.workspace-closed>.live-workspace-pane,.practice-workspace-layout.workspace-closed>.live-workspace-pane{display:none!important}
@media(min-width:1100px){
  .live-split-workspace.workspace-closed>.live-question-pane>.inline-sheet-shell,.practice-workspace-layout.workspace-closed>.live-question-pane>.inline-sheet-shell{display:block;width:100%;max-width:900px;height:auto;min-height:0;margin:0 auto;overflow:hidden;position:relative;top:auto;align-self:auto}
  .live-split-workspace.workspace-closed>.live-question-pane>.inline-sheet-shell>.focus-sheet,.practice-workspace-layout.workspace-closed>.live-question-pane>.inline-sheet-shell>.focus-sheet{height:auto;min-height:620px;padding:0;overflow:visible}
  .live-split-workspace.workspace-closed .focus-top,.practice-workspace-layout.workspace-closed .focus-top{padding:24px 30px;margin:0}
  .live-split-workspace.workspace-closed .focus-question,.practice-workspace-layout.workspace-closed .focus-question{padding:42px 65px;overflow:visible}
  .live-split-workspace.workspace-closed .focus-question h2,.practice-workspace-layout.workspace-closed .focus-question h2{margin:18px 0 30px;font-size:29px;line-height:1.4}
  .live-split-workspace.workspace-closed .focus-footer,.practice-workspace-layout.workspace-closed .focus-footer{padding:18px 30px}
  .live-split-workspace.workspace-closed>.live-question-pane>.live-selected-student{display:block;width:100%;max-width:1080px;height:auto;min-height:0;margin:0 auto;overflow:visible}
  .live-split-workspace.workspace-closed .live-student-card{display:block;height:auto;min-height:0;padding:24px;overflow:visible}
  .live-split-workspace.workspace-closed .teacher-live-player{padding:26px 28px}
  .live-split-workspace .focus-question,.practice-workspace-layout .focus-question{display:flex;flex-direction:column;justify-content:safe center}

/* Live views keep the same page rhythm as Curriculum and use one outer scrollbar only. */
body.live-class-page,body.teacher-live-class-page{height:auto;min-height:100vh;overflow-x:hidden;overflow-y:auto}
.dashboard-shell.live-class-mode{height:auto;min-height:100vh;overflow:visible}
.dashboard-shell.live-class-mode>.dashboard-main{height:auto;min-height:100vh;overflow:visible;padding:28px 36px 60px}
.dashboard-shell.live-class-mode .topbar{margin-bottom:28px}
.dashboard-shell.live-class-mode #content{display:flex;width:100%;height:auto;min-height:0;flex-direction:column;overflow:visible}
.dashboard-shell.live-class-mode .live-split-workspace{height:auto;min-height:620px;overflow:visible}
.dashboard-shell.live-class-mode .live-question-pane,
.dashboard-shell.live-class-mode .live-workspace-pane,
.dashboard-shell.live-class-mode .live-question-pane>.live-selected-student,
.dashboard-shell.live-class-mode .live-question-pane>.inline-sheet-shell,
.dashboard-shell.live-class-mode .live-question-pane .live-student-card,
.dashboard-shell.live-class-mode .live-question-pane .live-question-card,
.dashboard-shell.live-class-mode .live-question-pane .focus-question,
.dashboard-shell.live-class-mode .live-workspace-pane>.live-whiteboard{height:auto;overflow:visible}
.dashboard-shell[data-portal-role="teacher"].live-class-mode .live-class-head{display:none!important}

/* Worksheet workspace: keep state/actions in one compact header and leave more room for the question. */
.workspace-compact-toolbar{grid-template-columns:82px 82px minmax(0,1fr) auto!important}
.workspace-mode-button{width:82px;min-width:82px;height:36px;min-height:36px;gap:5px;padding:0 8px;border-radius:9px;font-size:.66rem}
.workspace-mode-button>span{font-size:.9rem}
.workspace-mode-button>i{width:15px;height:15px;font-size:.54rem}
.workspace-category-button{min-height:38px;padding:5px 6px;font-size:.61rem}
.workspace-category-button>span{font-size:.78rem}
.workspace-math-category-panel{gap:5px;padding:7px}
.workspace-math-category-panel[data-workspace-category="numbers"] .whiteboard-icon-button{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0 5px!important;font-size:.84rem!important}

.number-line-settings{display:grid;grid-template-columns:auto repeat(3,minmax(72px,104px)) minmax(150px,1fr);width:100%;align-items:end;gap:7px;padding:8px 9px;border:1px solid #cfe2db;border-radius:9px;background:#f3faf7;color:#25425f}
.number-line-settings[hidden]{display:none!important}
.number-line-settings>b{align-self:center;font-size:.67rem;white-space:nowrap}
.number-line-settings>label{display:grid;gap:3px;color:#61758a;font-size:.57rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.number-line-settings input{width:100%;min-width:0;height:30px;padding:4px 7px;border:1px solid #cad8d3;border-radius:7px;background:#fff;color:#153455;font-size:.72rem;font-weight:750}
.number-line-settings>small{align-self:center;color:#65798c;font-size:.59rem;line-height:1.25}

.whiteboard-stage{position:relative}
.whiteboard-selection-controls{position:absolute;z-index:6;top:9px;right:9px;display:flex;align-items:center;gap:4px;padding:5px 6px;border:1px solid #cbdcd6;border-radius:10px;background:rgba(255,255,255,.94);box-shadow:0 5px 16px rgba(18,54,73,.12);backdrop-filter:blur(5px)}
.whiteboard-selection-controls[hidden]{display:none!important}
.whiteboard-selection-controls>span{max-width:108px;overflow:hidden;color:#50677d;font-size:.58rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.whiteboard-selection-controls>button{display:grid;width:27px;height:27px;place-items:center;padding:0;border:1px solid #d2dfda;border-radius:7px;background:#fff;color:#153455;font-size:.82rem;font-weight:900;cursor:pointer}
.whiteboard-selection-controls>button:hover,.whiteboard-selection-controls>button:focus-visible{border-color:#168a68;background:#eaf8f2;color:#087154}
.whiteboard-selection-controls>button[hidden]{display:none!important}

/* The status chips and Hide workspace belong to the header even in a narrow split pane. */
@container (max-width:620px){
  .workspace-compact-head{grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important}
  .workspace-compact-head>.whiteboard-status{width:auto!important;justify-self:end!important;gap:7px!important}
  .workspace-compact-head>.whiteboard-status .role-chip{padding:5px 6px;font-size:.55rem}
  .workspace-compact-head>.whiteboard-status .workspace-header-toggle{min-width:92px!important;height:31px;min-height:31px;padding:0 6px;font-size:.59rem}
  .workspace-compact-head>div:first-child small{max-width:100%;font-size:.62rem}
}
@container (max-width:560px){
  .workspace-compact-toolbar{grid-template-columns:74px 74px minmax(0,1fr) auto!important}
  .workspace-mode-button{width:74px;min-width:74px}
  .number-line-settings{grid-template-columns:repeat(3,minmax(0,1fr))}
  .number-line-settings>b,.number-line-settings>small{grid-column:1/-1}
}

/* Profile titles sit on a navy hero; keep inherited content heading rules from lowering contrast. */
#content .profile-hero h2,.profile-hero h2{color:#fff!important}
.profile-hero{width:100%;min-width:0;max-width:100%;box-sizing:border-box;overflow:hidden}
.profile-hero>div{min-width:0}
}

/* Layout consistency batch 3: a bounded, collapsible Practical Puzzle master bank. */
.puzzle-card-library-section{padding:18px}.puzzle-library-collapsed-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:2px}.puzzle-library-collapsed-summary h2{margin:3px 0;color:#16304f;font-size:1.25rem}.puzzle-library-collapsed-summary span{color:#718194;font-size:.75rem}.puzzle-library-toggle{flex:0 0 auto;white-space:nowrap}.practical-puzzle-library-collapsed{padding:16px 18px;border:1px solid #e0e8e4;border-radius:18px;background:#fff}.practical-puzzle-library-open{padding:18px;border:1px solid #e0e8e4;border-radius:20px;background:#fff}.puzzle-library-summary.compact{grid-template-columns:repeat(4,minmax(0,1fr));margin:14px 0}.puzzle-library-summary.compact article{min-height:72px;padding:12px}.puzzle-library-summary.compact article b{font-size:1.25rem}.puzzle-library-toolbar{display:grid!important;grid-template-columns:1fr;gap:12px}.puzzle-library-search{display:flex;align-items:end;gap:8px}.puzzle-library-search label{display:grid;flex:1;gap:4px;color:#607286;font-size:.7rem;font-weight:850}.puzzle-library-search input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #d7e2de;border-radius:11px;background:#fff;color:#16304f;font:inherit}.puzzle-library-selectors{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.puzzle-library-selectors label{display:grid;min-width:170px;gap:4px;color:#607286;font-size:.7rem;font-weight:850}.puzzle-library-selectors select{padding:9px 30px 9px 10px;border:1px solid #d7e2de;border-radius:10px;background:#fff;color:#16304f}.puzzle-library-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:16px}.puzzle-library-card{min-width:0;border:1px solid #dde6e2;border-radius:15px;background:#fbfdfc;overflow:hidden}.puzzle-library-card>summary{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px;cursor:pointer;list-style:none}.puzzle-library-card>summary::-webkit-details-marker{display:none}.puzzle-library-card>summary>div{min-width:0}.puzzle-library-card>summary h3{margin:3px 0;color:#16304f;font-size:.94rem}.puzzle-library-card>summary p{display:-webkit-box;margin:0;overflow:hidden;color:#687a8e;font-size:.73rem;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.puzzle-library-card>summary small{color:#718194;font-size:.6rem;font-weight:850;letter-spacing:.04em}.puzzle-library-card>summary>i{grid-column:3;color:#6a7b8d;font-size:.65rem;font-style:normal}.puzzle-card-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#e8f7f1;font-size:1.25rem}.puzzle-card-spec{display:grid;gap:12px;padding:13px;border-top:1px solid #e2e9e6;background:#fff}.puzzle-card-spec dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.puzzle-card-spec dl>div{min-width:0;padding:9px;border-radius:10px;background:#f5f8f7}.puzzle-card-spec dt{color:#718194;font-size:.6rem;font-weight:850;text-transform:uppercase}.puzzle-card-spec dd{margin:3px 0 0;color:#29435d;font-size:.72rem;line-height:1.35}.puzzle-card-spec .button{justify-self:end}.puzzle-library-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:15px;padding-top:13px;border-top:1px solid #e3eae7;color:#697b8e;font-size:.75rem}.puzzle-library-pagination>div{display:flex;gap:8px}.puzzle-library-pagination button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:900px){.puzzle-library-cards{grid-template-columns:1fr}.puzzle-library-card>summary{grid-template-columns:42px minmax(0,1fr) auto}.puzzle-library-summary.compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.puzzle-card-library-section{padding:11px}.puzzle-library-collapsed-summary{align-items:flex-start;flex-direction:column}.puzzle-library-toggle{width:100%;justify-content:center}.puzzle-library-search{align-items:stretch;flex-direction:column}.puzzle-library-selectors{display:grid;grid-template-columns:1fr}.puzzle-library-selectors label{min-width:0}.puzzle-library-pagination{align-items:flex-start;flex-direction:column}.puzzle-library-pagination>div{width:100%}.puzzle-library-pagination button{flex:1}.puzzle-card-spec dl{grid-template-columns:1fr}}
.puzzle-library-filter-ribbon{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,280px);gap:10px;align-items:end}.puzzle-library-family{display:grid;min-width:0;gap:4px;color:#607286;font-size:.7rem;font-weight:850}.puzzle-library-family select{width:100%;min-height:42px;padding:9px 30px 9px 10px;border:1px solid #d7e2de;border-radius:10px;background:#fff;color:#16304f}.puzzle-library-filter-ribbon .puzzle-library-search{min-width:0}.puzzle-library-filter-ribbon .puzzle-library-search input{min-height:42px}
@media(max-width:700px){.puzzle-library-filter-ribbon{grid-template-columns:1fr}.puzzle-library-family{width:100%}}
.teacher-mission-library .practice-library-grade-tabs{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;width:100%;max-width:100%;padding:0;overflow:visible}.teacher-mission-library .practice-library-grade-tabs button{width:auto;min-width:0;min-height:48px;max-width:none;padding:9px 8px;border:1px solid #d5e2dd;border-radius:11px;background:#fff;color:#536a7b;font:inherit;font-size:.82rem;font-weight:850;cursor:pointer;white-space:nowrap}.teacher-mission-library .practice-library-grade-tabs button.active{border-color:#168a68;background:#168a68;color:#fff;box-shadow:0 4px 10px rgba(18,137,107,.14)}
@media(max-width:1199px){.teacher-mission-library .practice-library-grade-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:560px){.teacher-mission-library .practice-library-grade-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Layout consistency batch 5: one focused Practice Library category at a time. */
.teacher-mission-library{padding:22px;overflow:hidden}.teacher-mission-library>.panel-title{align-items:flex-start}.teacher-mission-library>.preview-intro{margin:6px 0 16px}.teacher-mission-library .teacher-library-grades{margin:0 0 15px}.teacher-library-command-bar{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);gap:12px;align-items:end;margin-bottom:16px}.teacher-library-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.teacher-library-categories button{display:flex;min-width:0;min-height:44px;align-items:center;justify-content:center;gap:7px;padding:8px 10px;border:1px solid #d9e3df;border-radius:12px;background:#f7faf9;color:#52677b;font:inherit;font-size:.78rem;font-weight:850;cursor:pointer;white-space:nowrap}.teacher-library-categories button>span{display:grid;width:25px;height:25px;flex:0 0 25px;place-items:center;border-radius:8px;background:#e9f3ef;color:#08765b;font-size:.72rem}.teacher-library-categories button.active{border-color:#168a68;background:#e8f7f1;color:#08765b;box-shadow:inset 0 0 0 1px #168a68}.teacher-library-search{display:flex;min-width:0;align-items:end;gap:7px}.teacher-library-search label{display:grid;min-width:0;flex:1;gap:4px;color:#607286;font-size:.68rem;font-weight:850}.teacher-library-search input{width:100%;min-width:0;box-sizing:border-box;padding:10px 11px;border:1px solid #d7e2de;border-radius:11px;background:#fff;color:#16304f;font:inherit}.teacher-library-search .outline-button,.teacher-library-search .text-button{min-height:40px;flex:0 0 auto;white-space:nowrap}.teacher-mission-library .teacher-math-reference{margin:0}.teacher-mission-library .teacher-math-reference>div{grid-template-columns:repeat(3,minmax(0,1fr))}.teacher-mission-library .teacher-mission-section{padding:16px}.teacher-mission-library .teacher-mission-section>header{margin-bottom:12px}.teacher-mission-library .teacher-mission-sets{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.teacher-mission-library .teacher-mission-row>div{justify-content:flex-end}.teacher-mission-library .teacher-mission-row .text-button{min-height:40px;padding:8px 12px}.teacher-library-empty{display:grid;min-height:120px;place-content:center;gap:5px;border:1px dashed #cadbd4;border-radius:16px;background:#f8fbfa;color:#61758a;text-align:center}.teacher-library-empty b{color:#16304f}.teacher-library-arcade-link{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;margin-top:14px;padding:11px 13px;border:1px solid #dce6e2;border-radius:14px;background:#f7faf9}.teacher-library-arcade-link .teacher-arcade-callout-icon{width:39px;height:39px;font-size:1.15rem}.teacher-library-arcade-link b,.teacher-library-arcade-link small{display:block}.teacher-library-arcade-link small{margin-top:2px;color:#687b8e;font-size:.72rem}.teacher-library-arcade-link .outline-button{white-space:nowrap}
@media(max-width:1050px){.teacher-library-command-bar{grid-template-columns:1fr}.teacher-mission-library .teacher-math-reference>div{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}}
.teacher-mission-library>.teacher-library-categories{margin-bottom:16px}.teacher-library-mission-controls{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);gap:12px;align-items:end;margin-bottom:16px}.teacher-library-puzzle-panel .practical-puzzle-library-open{padding:0;border:0;border-radius:0;background:transparent}.teacher-library-puzzle-panel .puzzle-library-collapsed-summary{padding:14px 0 4px}.teacher-library-puzzle-panel .puzzle-library-toggle{display:none}
@media(max-width:1050px){.teacher-library-mission-controls{grid-template-columns:1fr}}
.teacher-library-mission-controls{grid-template-columns:1fr}.teacher-library-mission-controls .teacher-library-search{width:100%;justify-self:stretch}
@media(max-width:760px){.teacher-library-mission-controls .teacher-library-search{width:100%;justify-self:stretch}}
@media(max-width:760px){.teacher-mission-library{padding:16px}.teacher-mission-library>.panel-title{display:grid}.teacher-mission-library>.panel-title .role-chip{justify-self:start}.teacher-library-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-library-search{display:grid;grid-template-columns:minmax(0,1fr) auto}.teacher-library-search label{grid-column:1/-1}.teacher-library-search .text-button{justify-self:start}.teacher-library-arcade-link{grid-template-columns:auto minmax(0,1fr)}.teacher-library-arcade-link .outline-button{grid-column:1/-1;width:100%;justify-content:center}.teacher-mission-library .teacher-math-reference>header{align-items:flex-start;flex-direction:column;gap:4px}.teacher-mission-library .teacher-math-reference>div,.teacher-mission-library .teacher-mission-sets{grid-template-columns:1fr}}
@media(max-width:430px){.teacher-library-categories{grid-template-columns:1fr}.teacher-library-search{grid-template-columns:1fr}.teacher-library-search .outline-button,.teacher-library-search .text-button{width:100%;justify-content:center}}

/* Layout consistency batch 4: calmer overviews and a secondary tablet companion. */
.student-overview-priority+.overview-active-chapters{margin-top:18px}.overview-coding-practice{margin-top:26px;padding-top:4px;border-top:1px solid #e2e9e6}.overview-coding-practice>.coding-practice-centre{margin-bottom:0}.overview-coding-practice .coding-practice-card{min-height:190px;box-shadow:0 8px 22px rgba(22,48,79,.07)}
@media(min-width:700px) and (max-width:1099px){.progress-compact-layout .companion-progress-rail.companion-presence{order:2;grid-template-columns:92px minmax(0,1fr) auto;min-height:0;margin-top:12px}.progress-compact-layout .companion-avatar--progress-rail{width:82px;height:92px}.progress-compact-layout .companion-progress-rail .companion-presence-copy p:last-of-type{display:none}.progress-compact-layout .student-progress-page>.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.progress-compact-layout .student-progress-page>.stat-grid article{padding:11px;gap:8px}.progress-compact-layout .student-progress-page>.stat-grid .stat-icon{width:34px;height:34px}.progress-compact-layout .student-progress-page>.stat-grid span{font-size:.68rem}.progress-compact-layout .student-progress-page>.stat-grid strong{font-size:1.15rem}}
@media(min-width:700px) and (max-width:1099px){.progress-compact-layout .companion-progress-rail.companion-presence{grid-template-columns:82px minmax(0,1fr)}.progress-compact-layout .companion-progress-rail .companion-change-button{grid-column:2;justify-self:start;max-width:100%;margin:8px 0 0;white-space:normal}}
@media(max-width:760px){.overview-coding-practice .coding-practice-grid{grid-template-columns:1fr}}

/* Worksheet question chrome: one quiet number, with history navigation kept outside the ribbon. */
.focus-question .question-tools.question-number-only{display:flex;justify-content:center;align-items:center;min-height:42px;padding:0;border:0;background:transparent}.focus-question .question-tools.question-number-only .question-number{width:50px;height:50px;border-radius:15px;background:#e5f6ef;color:#087b67;font-size:18px;box-shadow:0 1px 0 rgba(13,92,72,.08)}.worksheet-previous-button{min-height:40px;padding:9px 13px;white-space:nowrap}.sheet-reference-mode .focus-question{background:linear-gradient(180deg,#fff 0%,#fbfdfc 100%)}.sheet-reference-mode .focus-options label>span,.sheet-reference-mode .written-answer input{cursor:default}.sheet-reference-mode .focus-options input:checked+span{border-color:#82cbb3;background:#eef9f5}.reference-feedback{display:grid!important;gap:4px;padding:13px 15px;border:1px solid #cce7dd;border-radius:13px;background:#f1faf7;color:#174d40}.reference-feedback span,.reference-feedback small{color:#58736c}.reference-note{color:#58736c;font-size:12px;font-weight:750}.worksheet-reference-actions{display:flex;align-items:center;gap:10px}.teacher-question-navigation{white-space:nowrap}
@media(max-width:650px){.focus-question .question-tools.question-number-only .question-number{width:44px;height:44px}.worksheet-reference-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.worksheet-reference-actions .button,.worksheet-reference-actions .outline-button{width:100%}.focus-support{align-items:stretch}.worksheet-previous-button{width:100%}.teacher-question-test .modal-actions{display:grid;grid-template-columns:1fr 1fr}.teacher-question-test .modal-actions>*{width:100%}}

/* Layout consistency batch 5: restrained theme, quieter Coding, and safe secondary actions. */
#content{--portal-surface:#fff;--portal-canvas:#f7f8f5;--portal-navy:#16304f;--portal-emerald:#168a68;--portal-mint:#e8f7f1;--portal-lavender:#f1edff;--portal-gold:#fff3d6;--portal-line:#dfe7e3;--portal-radius:19px;--portal-shadow:0 8px 22px rgba(22,48,79,.055)}
#content>.panel,#content>section.panel,#content .student-chapter-grid>.panel,#content .progress-chapter-card{border-color:var(--portal-line);border-radius:var(--portal-radius);box-shadow:var(--portal-shadow)}#content h2{color:var(--portal-navy)}#content .button{min-height:42px;border-radius:12px;background:#168a68}#content .outline-button{min-height:40px;border-color:#d6e0dc;border-radius:11px}#content .panel-title{gap:14px}
#content .teacher-arcade-embedded-suite .companion-presence h2{color:#fff}
#content[data-portal-view="coding"] .student-curriculum-head,#content[data-portal-view="coding"] .student-curriculum-head.compact-curriculum-head.coding{background:linear-gradient(135deg,#153552,#285d82);box-shadow:0 10px 25px rgba(21,53,82,.14)}#content[data-portal-view="coding"] .coding-catalogue-card{border-color:#dce5eb;background:linear-gradient(145deg,#fff,#f8fbfd)}#content[data-portal-view="coding"] .coding-practice-card.ai,#content[data-portal-view="coding"] .coding-practice-card.maker,#content[data-portal-view="coding"] .coding-practice-card.g6-training{background:linear-gradient(145deg,#f3f7fa,#e6eef4)}
/* Math and Coding curriculum headers share one high-contrast system with subject colour. */
#content[data-portal-view="curriculum"] .teacher-math-head,#content[data-portal-view="worksheets"] .student-curriculum-head{background:#168a68}
#content[data-portal-view="coding"]>.curriculum-head,#content[data-portal-view="coding"] .student-curriculum-head{background:#285d82}
#content[data-portal-view="curriculum"] .teacher-math-head,#content[data-portal-view="worksheets"] .student-curriculum-head,#content[data-portal-view="coding"]>.curriculum-head,#content[data-portal-view="coding"] .student-curriculum-head{min-height:172px;align-items:center;gap:24px;padding:28px 34px;border:1px solid rgba(255,255,255,.15);border-radius:22px;color:#fff;box-shadow:0 12px 28px rgba(22,48,79,.13)}
#content[data-portal-view="curriculum"] .teacher-math-head h2,#content[data-portal-view="worksheets"] .student-curriculum-head h2,#content[data-portal-view="coding"]>.curriculum-head h2,#content[data-portal-view="coding"] .student-curriculum-head h2{color:#fff}
#content[data-portal-view="curriculum"] .teacher-math-head .eyebrow,#content[data-portal-view="worksheets"] .student-curriculum-head .eyebrow,#content[data-portal-view="coding"]>.curriculum-head .eyebrow,#content[data-portal-view="coding"] .student-curriculum-head .eyebrow{color:rgba(255,255,255,.82)}
#content[data-portal-view="curriculum"] .teacher-math-head p:last-child,#content[data-portal-view="worksheets"] .student-curriculum-head p,#content[data-portal-view="coding"]>.curriculum-head p:last-child,#content[data-portal-view="coding"] .student-curriculum-head p{max-width:920px;color:rgba(255,255,255,.88)}
#content[data-portal-view="curriculum"] .teacher-math-head>span,#content[data-portal-view="worksheets"] .student-curriculum-head>span,#content[data-portal-view="coding"]>.curriculum-head>span,#content[data-portal-view="coding"] .student-curriculum-head>span{flex:0 0 auto;padding:10px 14px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-weight:800;white-space:nowrap}
@media(max-width:760px){#content[data-portal-view="curriculum"] .teacher-math-head,#content[data-portal-view="worksheets"] .student-curriculum-head,#content[data-portal-view="coding"]>.curriculum-head,#content[data-portal-view="coding"] .student-curriculum-head{min-height:0;align-items:flex-start;padding:22px}}
.teacher-coding-style-curriculum{max-width:1160px;margin:0 auto}.teacher-coding-style-curriculum>.chapter-grid{gap:13px}.teacher-coding-style-curriculum .coding-browse-tabs button.active,.teacher-coding-style-curriculum .coding-pathway-selector button.active{border-color:#285d82;background:#285d82;color:#fff}#content[data-portal-role="teacher"][data-portal-view="coding"] .teacher-coding-style-curriculum .chapter-actions .button{border:1px solid #285d82;background:#285d82;color:#fff;box-shadow:0 8px 18px rgba(40,93,130,.16)}#content[data-portal-role="teacher"][data-portal-view="coding"] .teacher-coding-style-curriculum .chapter-actions .button:hover,#content[data-portal-role="teacher"][data-portal-view="coding"] .teacher-coding-style-curriculum .chapter-actions .button:focus-visible{border-color:#285d82;background:#285d82;color:#fff;box-shadow:0 0 0 3px rgba(40,93,130,.14)}.teacher-student-style-curriculum .math-grade-tabs button.active,.teacher-student-style-curriculum .math-curriculum-filter .board-tabs button.active{border-color:#168a68;background:#168a68;color:#fff}
.curriculum-status-panel{grid-column:1/-1;display:flex;align-items:center;gap:15px;padding:22px;border:1px solid #cfe2da;border-radius:18px;background:#f6fbf9;text-align:left}.curriculum-status-panel>span{display:grid;width:48px;height:48px;flex:0 0 48px;place-items:center;border-radius:14px;background:#dff5ec;color:#08765b;font-size:1.2rem;font-weight:900}.curriculum-status-panel h3{margin:3px 0;color:#16304f}.curriculum-status-panel p{margin:0!important;color:#64788a!important}.curriculum-status-panel.coding{border-color:#dfdced;background:#faf9fd}.curriculum-status-panel.coding>span{background:#eeeafd;color:#5b4b9c}
.student-profile-overflow{position:relative;align-self:center}.student-profile-overflow>summary{display:grid;width:42px;height:42px;place-items:center;border:1px solid #d7e1dd;border-radius:12px;background:#fff;color:#50677c;cursor:pointer;font-weight:900;letter-spacing:.08em;list-style:none}.student-profile-overflow>summary::-webkit-details-marker{display:none}.student-profile-overflow>div{position:absolute;z-index:30;top:calc(100% + 7px);right:0;display:grid;min-width:185px;gap:7px;padding:9px;border:1px solid #dce5e1;border-radius:13px;background:#fff;box-shadow:0 14px 30px rgba(22,48,79,.16)}.student-profile-overflow>div small{padding:4px 6px;color:#718194;font-size:.65rem;font-weight:850;text-transform:uppercase}.student-profile-overflow .delete-student-button{width:100%;justify-content:flex-start}
.teacher-community-announcements{align-items:start;margin-top:20px}.teacher-community-announcements>.panel{align-self:start}.teacher-community-announcements .announcement-list{max-height:460px;overflow:auto}
.portal-environment-marker{position:fixed!important;right:14px!important;bottom:14px!important;left:auto!important;top:auto!important;z-index:10050!important}
@media(min-width:1100px){
.dashboard-shell[data-portal-role="teacher"].live-class-mode .live-global-doubt,
.dashboard-shell[data-portal-role="teacher"].live-class-mode .live-student-tabs,
.dashboard-shell[data-portal-role="teacher"].live-class-mode #content>.last-ten-reminder{flex:0 0 auto;margin-bottom:8px}
.dashboard-shell[data-portal-role="teacher"].live-class-mode .live-split-workspace{margin-top:2px}
.dashboard-shell[data-portal-role="teacher"].live-class-mode .live-split-workspace.workspace-closed>.live-question-pane>.live-selected-student{height:auto;max-width:1080px;overflow:visible}
.dashboard-shell[data-portal-role="teacher"].live-class-mode .live-split-workspace.workspace-closed .live-student-card{display:block;height:auto;padding:20px;overflow:visible}
.dashboard-shell[data-portal-role="teacher"].live-class-mode .teacher-live-player{min-height:0;padding:20px 24px;overflow:visible}

/* Keep Workspace and Hide workspace in the original top-right position without covering status chips. */
.dashboard-shell.live-class-mode .live-split-workspace.workspace-closed,.dashboard-shell.live-class-mode .live-split-workspace.workspace-open{position:relative!important;grid-template-rows:minmax(0,1fr)!important;row-gap:0}
.dashboard-shell.live-class-mode .optional-workspace-controls.workspace-controls-closed{position:absolute;z-index:60;top:8px;right:0;width:auto;height:36px;min-height:36px;align-items:center;justify-content:flex-end}
.dashboard-shell.live-class-mode .optional-workspace-controls.workspace-controls-closed>button{width:110px!important;min-width:110px!important}
.dashboard-shell.live-class-mode .optional-workspace-controls.workspace-controls-open{display:none!important}
.workspace-header-toggle{display:inline-flex;width:auto;min-width:110px;height:36px;min-height:36px;align-items:center;justify-content:center;gap:5px;padding:0 9px;border:1px solid #cddbd6;border-radius:11px;background:#fff;color:#16304f;font-size:.72rem;font-weight:850;white-space:nowrap;cursor:pointer}
.workspace-header-toggle:hover,.workspace-header-toggle:focus-visible{border-color:#168a68;background:#edf9f4;color:#087154}
.dashboard-shell.live-class-mode .live-split-workspace.workspace-open>.live-split-controls,.dashboard-shell.live-class-mode .live-split-workspace.workspace-open>.live-question-pane,.dashboard-shell.live-class-mode .live-split-workspace.workspace-open>.live-workspace-pane{grid-row:1!important}
.dashboard-shell.live-class-mode .live-split-workspace.workspace-closed>.live-question-pane{grid-column:1/-1;grid-row:1!important}
.dashboard-shell.live-class-mode .live-split-workspace.workspace-open .workspace-compact-head{padding-right:0}
.dashboard-shell.live-class-mode .live-split-workspace.workspace-open .workspace-compact-head .whiteboard-status{flex:0 0 auto;margin-right:0}
.dashboard-shell.live-class-mode .live-split-workspace.workspace-open .workspace-compact-head>div:first-child{width:0;min-width:0;flex:1 1 0}
.dashboard-shell.live-class-mode .live-split-workspace.workspace-open .workspace-compact-head>div:first-child small{display:block;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.dashboard-shell.live-class-mode .live-split-workspace.workspace-open .workspace-compact-head .whiteboard-status{gap:5px}.dashboard-shell.live-class-mode .live-split-workspace.workspace-open .workspace-compact-head .role-chip{padding:6px 8px;font-size:.62rem}.dashboard-shell.live-class-mode .workspace-header-toggle{min-width:104px;padding:0 7px;font-size:.68rem}}
}

/* Layout consistency batch 1: progress rails, tablet fit, grade selectors, and live controls. */
.chapter-sheet-sequence{--sequence-node-size:32px;--sequence-line-width:2px}
.chapter-sheet-sequence::before{left:20px;top:31px;bottom:30px;width:var(--sequence-line-width);border-radius:999px;background:#dce5e1;pointer-events:none}
.chapter-sheet-sequence article>span:first-child{z-index:1;width:var(--sequence-node-size);height:var(--sequence-node-size);justify-self:center;border:1px solid #a8dbc9;border-radius:50%;background:#e6f7f0;color:#08765b;box-shadow:0 0 0 4px #fff;font-size:.8rem}
.chapter-sheet-sequence article.completed>span:first-child{border-color:#168a68;background:#168a68;color:#fff}
.chapter-sheet-sequence article.sheet-unavailable>span:first-child{border-color:#dfe4e8;background:#eef1f4;color:#8994a1}
@media(max-width:680px){.chapter-sheet-sequence::before{left:18px}}

.teacher-student-filters,.teacher-student-filters>*{min-width:0;max-width:100%;box-sizing:border-box}
.teacher-student-filters input,.teacher-student-filters select{min-width:0}
.student-profile-grid,.student-profile-grid>article,.student-profile-grid>article>div{min-width:0}
.student-profile-grid>article>button{flex:0 0 auto;white-space:nowrap}
#content>.panel:has(.teacher-student-filters){container-type:inline-size}
@container (max-width:980px){.teacher-student-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-student-filters .student-search{grid-column:1/-1}}
@media(max-width:1280px) and (min-width:641px){.teacher-student-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-student-filters .student-search{grid-column:1/-1}}

.math-grade-tabs,.coding-grade-tabs,.teacher-library-grades,.puzzle-library-grade-tabs,.coding-reference-selector>nav{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;width:100%;max-width:100%;overflow:visible}
.math-grade-tabs button,.coding-grade-tabs button,.teacher-library-grades button,.puzzle-library-grade-tabs button,.coding-reference-selector>nav button{width:auto;min-width:0;max-width:none;white-space:nowrap}
.math-grade-tabs button,.coding-grade-tabs button{min-height:48px;padding:9px 8px}
.puzzle-library-grade-tabs{flex:1 1 660px}
.puzzle-library-grade-tabs button{padding-inline:7px}
@media(max-width:1199px){.math-grade-tabs,.coding-grade-tabs,.teacher-library-grades,.puzzle-library-grade-tabs,.coding-reference-selector>nav{grid-template-columns:repeat(5,minmax(0,1fr))}.puzzle-library-toolbar{align-items:stretch;flex-direction:column}.puzzle-library-grade-tabs{flex-basis:auto}}
@media(max-width:560px){.math-grade-tabs,.coding-grade-tabs,.teacher-library-grades,.puzzle-library-grade-tabs,.coding-reference-selector>nav{grid-template-columns:repeat(2,minmax(0,1fr))}}

.dashboard-shell[data-portal-role="teacher"].live-class-mode .live-selected-student .live-student-card>header>.live-class-actions{display:none!important}
.live-selected-student .live-student-card .live-header-tools .live-timer,
.live-student-card .live-header-tools .live-timer,
.live-student-card .live-class-actions,
.live-student-card .live-actions-only,
.suggest-template-button{display:none!important}
@media(min-width:1100px){
  .dashboard-shell.live-class-mode .live-split-workspace.workspace-closed{display:grid!important;grid-template-columns:minmax(0,1fr) 118px!important;grid-template-rows:minmax(0,1fr)!important;column-gap:12px}
  .dashboard-shell.live-class-mode .live-split-workspace.workspace-closed>.live-question-pane{grid-column:1!important;grid-row:1!important}
  .dashboard-shell.live-class-mode .live-split-workspace.workspace-closed>.optional-workspace-controls.workspace-controls-closed{position:static!important;grid-column:2;grid-row:1;align-self:start;display:flex!important;width:118px;height:36px;margin-top:8px}
  .dashboard-shell[data-portal-role="teacher"].live-class-mode .live-selected-student .live-student-card>header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:12px}
}
@media(max-width:1099px){.dashboard-shell[data-portal-role="teacher"].live-class-mode .live-selected-student .live-student-card>header{flex-wrap:wrap}.dashboard-shell[data-portal-role="teacher"].live-class-mode .live-selected-student .live-student-card>header>.live-class-actions{margin-left:auto}}

/* Workspace state changes render directly. Browser view-transition snapshots caused stale GPU layers on some Windows/Edge devices. */

/* Layout consistency batch 2: contained tool trays and responsive split worksheets. */
.live-whiteboard{container-type:inline-size}
.workspace-compact-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center}
.workspace-compact-head>.whiteboard-status{display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap}
.workspace-compact-head>.whiteboard-status>*{flex:0 0 auto;white-space:nowrap}
.workspace-compact-head>.whiteboard-status .workspace-header-toggle{min-width:108px}
.workspace-template-suggestion{max-width:100%;box-sizing:border-box;flex-wrap:wrap;overflow:hidden}
.workspace-template-suggestion>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-template-suggestion>button{flex:0 0 auto;white-space:nowrap}
@container (max-width:620px){.workspace-compact-head{grid-template-columns:1fr}.workspace-compact-head>.whiteboard-status{width:100%;justify-self:stretch;justify-content:flex-end}.workspace-compact-head>div:first-child small{max-width:100%}}

.workspace-compact-toolbar{grid-template-columns:100px 100px minmax(0,1fr) auto!important;align-items:center;overflow:visible!important}
.workspace-mode-button{position:relative;display:inline-flex;width:100px;height:42px;min-width:100px;box-sizing:border-box;align-items:center;justify-content:center;gap:7px;padding:0 11px;border:1px solid #d6dfdb;border-radius:11px;background:#fff;color:#153455;cursor:pointer;font-size:.78rem;font-weight:850}
.workspace-mode-button:hover,.workspace-mode-button:focus-visible{border-color:#8fcab7;background:#f3fbf8;color:#087154}
.workspace-mode-button.active{border-color:#168a68;background:#e9f8f2;color:#087154;box-shadow:inset 0 0 0 1px rgba(22,138,104,.08)}
.workspace-mode-button>span{font-size:1.1rem}.workspace-mode-button>i{position:absolute;top:-6px;right:-6px;display:grid;width:17px;height:17px;place-items:center;border-radius:50%;background:#fff0c9;color:#c57b00;font-size:.62rem;font-style:normal}
.workspace-compact-toolbar>.whiteboard-history{grid-column:3;justify-self:end}.workspace-compact-toolbar>.whiteboard-action-menu{grid-column:4}
.workspace-tool-trays{grid-column:1/-1;width:100%;min-width:0;max-width:100%}
.workspace-tool-tray{display:grid;width:100%;min-width:0;max-width:100%;box-sizing:border-box;gap:9px;margin-top:2px;padding:10px;border:1px solid #dce6e1;border-radius:12px;background:#fff;overflow:hidden}
.workspace-tool-tray[hidden],.workspace-math-category-panel[hidden]{display:none!important}
.workspace-draw-tray{grid-template-columns:minmax(0,1fr) auto;align-items:center}.workspace-draw-tray>.workspace-tool-row{min-width:0}.workspace-draw-tray>.whiteboard-colours{display:flex;align-items:center;gap:7px;padding:0 0 0 10px;border-top:0;border-left:1px solid #e6ece9;white-space:nowrap}
.workspace-math-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;min-width:0}
.workspace-category-button{display:flex;width:100%;min-width:0;min-height:44px;box-sizing:border-box;align-items:center;justify-content:center;gap:6px;padding:7px 8px;border:1px solid #dfe7e3;border-radius:10px;background:#f8fbfa;color:#153455;cursor:pointer;font-size:.7rem;font-weight:850;text-align:center}
.workspace-category-button:hover,.workspace-category-button:focus-visible{border-color:#b7d9ce;background:#f0faf6}.workspace-category-button.active{border-color:#168a68;background:#e9f8f2;color:#087154}.workspace-category-button>span{flex:0 0 auto;font-size:.9rem}.workspace-category-button>b{min-width:0;overflow-wrap:anywhere}
.workspace-math-category-panels{min-width:0;max-width:100%}.workspace-math-category-panel{display:flex;min-width:0;max-width:100%;align-items:center;gap:7px;flex-wrap:wrap;padding:9px;border:1px solid #e4ebe7;border-radius:10px;background:#fbfdfc;overflow:hidden}
.workspace-math-category-panel .workspace-template-help{flex:1 1 220px;margin:0 2px}.workspace-math-tray>.suggest-template-button{justify-self:end;margin:0!important;white-space:nowrap}
@container (max-width:560px){.workspace-compact-toolbar{grid-template-columns:86px 86px minmax(0,1fr) auto!important}.workspace-mode-button{width:86px;min-width:86px}.workspace-math-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-draw-tray{grid-template-columns:1fr}.workspace-draw-tray>.whiteboard-colours{padding:8px 0 0;border-top:1px solid #e6ece9;border-left:0}}

@media(min-width:1100px){
  .live-split-workspace.workspace-open>.live-question-pane,.practice-workspace-layout.workspace-open>.live-question-pane{min-width:0;container-type:inline-size}
  .live-split-workspace.workspace-open .inline-sheet-shell,.practice-workspace-layout.workspace-open .inline-sheet-shell,.live-split-workspace.workspace-open .focus-sheet,.practice-workspace-layout.workspace-open .focus-sheet{width:100%;min-width:0;max-width:none;box-sizing:border-box}
  .live-split-workspace.workspace-open .focus-top,.practice-workspace-layout.workspace-open .focus-top{grid-template-columns:auto minmax(0,1fr) auto;gap:10px;padding:17px 18px}
  .live-split-workspace.workspace-open .focus-close,.practice-workspace-layout.workspace-open .focus-close{width:auto;min-width:46px;padding:0 11px}
  .live-split-workspace.workspace-open .focus-top>div,.practice-workspace-layout.workspace-open .focus-top>div{min-width:0}
  .live-split-workspace.workspace-open .focus-top .eyebrow,.practice-workspace-layout.workspace-open .focus-top .eyebrow{overflow-wrap:anywhere}
  .live-split-workspace.workspace-open .focus-question,.practice-workspace-layout.workspace-open .focus-question{min-width:0;padding:28px 30px;justify-content:flex-start}
  .live-split-workspace.workspace-open .focus-question h2,.practice-workspace-layout.workspace-open .focus-question h2{margin:15px 0 24px;font-size:clamp(1.35rem,2vw,1.82rem);line-height:1.35;overflow-wrap:anywhere}
  .live-split-workspace.workspace-open .focus-options,.practice-workspace-layout.workspace-open .focus-options{min-width:0;gap:11px}
  .live-split-workspace.workspace-open .focus-options label,.live-split-workspace.workspace-open .focus-options label>span,.practice-workspace-layout.workspace-open .focus-options label,.practice-workspace-layout.workspace-open .focus-options label>span{min-width:0}
  .live-split-workspace.workspace-open .focus-option-text,.practice-workspace-layout.workspace-open .focus-option-text{min-width:0;overflow-wrap:anywhere}
  .live-split-workspace.workspace-open .focus-footer,.practice-workspace-layout.workspace-open .focus-footer{padding:14px 18px;flex-wrap:wrap}
  .live-split-workspace.workspace-open .focus-support,.practice-workspace-layout.workspace-open .focus-support{min-width:0;flex-wrap:wrap}
  .live-split-workspace.workspace-open .teacher-live-player{min-width:0;padding:18px 20px}
  .live-split-workspace.workspace-open .teacher-live-player>h2{max-width:100%;margin:18px 0;font-size:clamp(1.35rem,2vw,1.9rem);overflow-wrap:anywhere}
  .live-split-workspace.workspace-open .teacher-live-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .live-split-workspace.workspace-open .teacher-live-options>div{min-width:0;padding:12px}
  .live-split-workspace.workspace-open .concept-intro-page,.practice-workspace-layout.workspace-open .concept-intro-page{width:100%;min-width:0;max-width:none;box-sizing:border-box;padding:20px;border-radius:20px}
  .live-split-workspace.workspace-open .concept-intro-page>header,.practice-workspace-layout.workspace-open .concept-intro-page>header{gap:12px;flex-wrap:wrap}
  .live-split-workspace.workspace-open .concept-intro-page h1,.practice-workspace-layout.workspace-open .concept-intro-page h1{font-size:clamp(1.55rem,2.4vw,2rem);overflow-wrap:anywhere}
  .live-split-workspace.workspace-open .concept-story,.practice-workspace-layout.workspace-open .concept-story{padding:18px 0 10px}
  .live-split-workspace.workspace-open .concept-visual-card,.practice-workspace-layout.workspace-open .concept-visual-card,.live-split-workspace.workspace-open .coordinate-visual-concept,.practice-workspace-layout.workspace-open .coordinate-visual-concept,.live-split-workspace.workspace-open .ns-concept-v3,.practice-workspace-layout.workspace-open .ns-concept-v3,.live-split-workspace.workspace-open .coding-concept-panel,.practice-workspace-layout.workspace-open .coding-concept-panel,.live-split-workspace.workspace-open .g6-coding-concept,.practice-workspace-layout.workspace-open .g6-coding-concept{grid-template-columns:1fr}
  .live-split-workspace.workspace-open .coordinate-visual-concept>.coordinate-question-diagram,.practice-workspace-layout.workspace-open .coordinate-visual-concept>.coordinate-question-diagram{grid-column:1;grid-row:auto}
}
@media(min-width:700px) and (max-width:1099px){
  .live-split-workspace.workspace-open>.live-question-pane,.practice-workspace-layout.workspace-open>.live-question-pane,.live-split-workspace.workspace-open>.live-workspace-pane,.practice-workspace-layout.workspace-open>.live-workspace-pane{display:block!important;width:100%;min-width:0;min-height:0}
  .live-split-workspace.workspace-open>.live-question-pane>.inline-sheet-shell,.practice-workspace-layout.workspace-open>.live-question-pane>.inline-sheet-shell,.live-split-workspace.workspace-open>.live-question-pane>.concept-intro-page,.practice-workspace-layout.workspace-open>.live-question-pane>.concept-intro-page{width:100%;max-width:none;margin:0}
  .live-split-workspace.workspace-open>.live-workspace-pane,.practice-workspace-layout.workspace-open>.live-workspace-pane{margin-top:12px}
}
.dashboard-shell[data-portal-role="teacher"].live-class-mode .live-class-head{display:none!important}

/* Tablet shell: keep account exit reachable above browser chrome and comfortably tappable. */
@media(min-width:651px) and (max-width:1099px){
  .dashboard-shell>.sidebar{height:100vh;height:100dvh;box-sizing:border-box;padding-bottom:max(22px,env(safe-area-inset-bottom))}
  .dashboard-shell>.sidebar .logout{min-width:44px;min-height:44px;padding:9px!important;place-content:center;touch-action:manipulation}
  .modal-backdrop{box-sizing:border-box;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:hidden}
  .modal-backdrop .modal[role="dialog"]{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));scroll-padding-block:20px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .modal .modal-head .icon-button{display:grid;width:44px;min-width:44px;height:44px;min-height:44px;box-sizing:border-box;place-items:center;padding:0;touch-action:manipulation}
  .modal .batch-add-button{min-height:44px;touch-action:manipulation}
  .modal .modal-actions :where(button,a){min-height:44px;touch-action:manipulation}
}
@media(min-width:651px) and (max-width:850px){.teacher-profile-curriculum-grid{grid-template-columns:1fr}}

/* Teacher live topbar center banner tools */
.teacher-live-banner-tools{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.dashboard-shell[data-portal-role="teacher"] .topbar:has(.teacher-live-banner-tools),
.dashboard-shell[data-portal-role="teacher"].live-class-mode .topbar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:16px;
  min-height:58px;
}
.dashboard-shell[data-portal-role="teacher"] .topbar:has(.teacher-live-banner-tools)>div:first-child,
.dashboard-shell[data-portal-role="teacher"].live-class-mode .topbar>div:first-child{
  grid-column:1;
  min-width:0;
}
.dashboard-shell[data-portal-role="teacher"] .teacher-live-banner-tools{
  grid-column:2;
  justify-self:center;
}
.dashboard-shell[data-portal-role="teacher"] .topbar:has(.teacher-live-banner-tools) .top-actions,
.dashboard-shell[data-portal-role="teacher"].live-class-mode .top-actions{
  grid-column:3;
  justify-self:end;
}

/* Uniform 3 buttons: matching the exact 2-line dot + label + value layout and gradient style */
.teacher-live-top-countdown{
  display:grid!important;
  grid-template-columns:8px auto;
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:8px;
  min-width:104px;
  height:40px;
  padding:5px 13px;
  border-radius:14px;
  box-shadow:0 6px 16px rgba(21,52,85,.16);
  color:#fff!important;
  border:none;
  cursor:pointer;
  box-sizing:border-box;
  text-decoration:none;
}
.teacher-live-pill-btn{
  display:grid!important;
  grid-template-columns:14px auto;
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:7px;
  min-width:104px;
  height:40px;
  padding:5px 13px;
  border-radius:14px;
  box-shadow:0 6px 16px rgba(21,52,85,.16);
  color:#fff!important;
  border:none;
  cursor:pointer;
  box-sizing:border-box;
  text-decoration:none;
  transition:transform .15s ease,box-shadow .15s ease;
}
.teacher-live-pill-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(21,52,85,.24);
}
.teacher-live-top-countdown .live-top-pulse{
  grid-row:1/3;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#6ff0be!important;
  box-shadow:0 0 0 4px rgba(111,240,190,.18)!important;
  animation:live-top-pulse 1.5s ease-in-out infinite!important;
}
.teacher-live-pill-btn .pill-dot{
  grid-row:1/3;
  width:14px;
  height:14px;
  border-radius:50%;
  background:rgba(111,240,190,.22)!important;
  color:#6ff0be!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
  line-height:1;
  text-align:center;
  animation:none!important;
  box-shadow:none!important;
}
.teacher-live-top-countdown small,
.teacher-live-pill-btn small{
  align-self:end;
  font-size:.55rem;
  font-weight:900;
  letter-spacing:.09em;
  line-height:1;
  text-transform:uppercase;
  color:#c9f5e5!important;
}

.teacher-live-top-countdown .live-timer,
.teacher-live-pill-btn b{
  align-self:start;
  min-width:0;
  padding:0;
  border:none;
  background:transparent;
  color:#fff!important;
  font-size:1rem;
  font-weight:800;
  line-height:1.05;
  text-align:left;
}

/* Same background gradient for all 3 buttons */
.teacher-live-top-countdown,
.teacher-live-pill-btn,
.teacher-live-extend-pill,
.teacher-live-end-pill{
  background:linear-gradient(135deg,#153455,#168a68)!important;
}
.teacher-live-pill-btn:hover{
  background:linear-gradient(135deg,#183d63,#199e77)!important;
}

@media(max-width:1099px){
  .dashboard-shell[data-portal-role="teacher"] .topbar:has(.teacher-live-banner-tools){
    display:flex!important;
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .dashboard-shell[data-portal-role="teacher"] .teacher-live-banner-tools{
    order:3;
    width:100%;
    margin-top:8px;
    justify-content:center;
  }
}
