/* Teacher workspace */
.teacher-dashboard{--blue:#315bd6;--ink:#203047;--line:#e0e6ef;--bg:#f5f7fb;color:var(--ink);background:var(--bg)}
.teacher-dashboard .sidebar{background:#fff;border-right:1px solid var(--line)}
.teacher-dashboard .nav{border-radius:8px;margin:5px 0;min-height:43px}
.teacher-dashboard .nav.active{background:#edf2ff;color:#315bd6;box-shadow:none}
.teacher-dashboard .brand{letter-spacing:-.6px}.teacher-dashboard .workspace{border-top-color:#edf0f6}.teacher-dashboard .button{border-radius:7px;border-color:#d6dfea;font-size:12px;min-height:36px;padding:8px 12px}.teacher-dashboard .button.primary{background:var(--blue);border-color:var(--blue)}.teacher-dashboard .button.danger{color:#b34150;background:#fff7f7;border-color:#edcdd1}.teacher-dashboard .card{border-radius:12px;border-color:var(--line);box-shadow:none}
.teacher-dashboard input:not([type=checkbox]),.teacher-dashboard select,.teacher-dashboard textarea{border:1px solid #d6dfeb;border-radius:7px;font-size:12px;padding:10px;background:#fff}
.teacher-dashboard .account-bar{margin-left:auto}.teacher-dashboard .shell>header{border-bottom:1px solid var(--line)}
.teacher-dashboard .page-heading{margin-bottom:26px}.teacher-dashboard .page-heading p{color:#758398}.teacher-dashboard h1{font-size:29px;font-weight:700;letter-spacing:-1px}
.teacher-dashboard .eyebrow{display:block;font-size:10px;letter-spacing:1.5px;font-weight:650;color:#77879e;margin-bottom:8px}.teacher-dashboard .heading-note{color:#7a899c;font-size:12px}
.lesson-running main>.page-heading{display:none}.lesson-running .local-tag{display:none}.lesson-header{display:flex;align-items:center;gap:30px;margin:4px 0 28px}.lesson-heading{flex:1;min-width:0}.back-classrooms{display:inline-block;text-decoration:none;font-size:12px;color:#77879b;margin-bottom:15px}.lesson-title-row{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.lesson-title-row h2{font-size:26px;font-weight:700;letter-spacing:-.7px;margin:0}.lesson-live-dot{width:9px;height:9px;border-radius:50%;background:#27aa7b;box-shadow:0 0 0 4px #e1f5ed;flex-shrink:0}.lesson-live-label{font-size:9px;letter-spacing:1px;font-weight:700;color:#219571;background:#e9f7f0;padding:5px 8px;border-radius:5px}.lesson-heading>p{color:#78879a;font-size:12px;margin:9px 0 0}.lesson-clock{min-width:115px;text-align:right}.lesson-clock small{font-size:9px;font-weight:600;letter-spacing:1.1px;color:#8a97aa;display:block}.lesson-clock strong{font-size:27px;font-variant-numeric:tabular-nums;line-height:1.8;font-weight:650;color:#2c3f59;letter-spacing:-.7px}.lesson-progress{height:3px;background:#e3e9f2;border-radius:5px;overflow:hidden}.lesson-progress span{display:block;width:100%;height:100%;background:#6485ea;transition:width 1s linear}.lesson-clock.ending-soon strong{color:#bd7930}
.lesson-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(195px,1fr);background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:28px;overflow:hidden}.lesson-stats>div{display:flex;align-items:center;gap:13px;padding:20px 22px;border-right:1px solid #edf0f5}.lesson-stats>div:last-child{border-right:0}.stat-symbol{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;font-size:22px;background:#edf6f2;color:#4b9c7c}.stat-symbol.screens{color:#5c7bce;background:#eef2fb}.stat-symbol.waiting{color:#bd9657;background:#fbf5e9}.lesson-stats strong{display:block;font-size:24px;line-height:1.3;font-weight:650;letter-spacing:-.4px}.lesson-stats div>span:not(.stat-symbol){font-size:11px;color:#8a96a7;display:block;margin-top:3px}.lesson-stats .class-code-stat{justify-content:space-between;gap:10px}.class-code-stat small{display:block;font-size:9px;color:#8593a7;letter-spacing:1px;margin-bottom:7px}.class-code-stat strong{font-size:12px;font-family:ui-monospace,SFMono-Regular,monospace;font-weight:600;letter-spacing:.4px}.class-code-stat .button{padding:5px 9px;font-size:10px;min-height:30px}
.lesson-workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}.lesson-primary{min-width:0}.student-browser-toolbar{display:flex;flex-direction:column;gap:17px;margin:0 0 15px}.student-browser-toolbar h2{font-size:16px;font-weight:650;margin:0}.student-browser-toolbar h2>span{font-size:10px;display:inline-block;background:#e8edf7;border-radius:5px;color:#7b8ba5;padding:3px 7px;margin-left:7px}.student-browser-toolbar p{font-size:11px;color:#8997a9;margin:5px 0 0}.student-browser-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.student-browser-filters .search-control{display:flex;align-items:center;gap:4px;flex:1;min-width:160px;background:white;border:1px solid #d8e0ed;border-radius:7px;padding-left:11px;color:#9aa7b9}.student-browser-filters input[type=search]{border:0;min-width:0;width:100%;outline-offset:0;background:transparent}.student-browser-filters select{font-size:11px;max-width:145px;padding:9px}.student-browser-filters .button{font-size:11px;min-height:35px}.student-selection{display:flex;align-items:center;gap:14px;justify-content:space-between;font-size:10px;color:#8a97aa;margin:16px 0}.student-selection label{display:flex;gap:7px;align-items:center;font-size:10px;color:#6d7c90}.student-selection input{margin:0}.student-selection .text-button{font-size:10px}.teacher-dashboard .screen-grid.compact{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:15px}.teacher-dashboard .screen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}.teacher-dashboard .student-screen{border:1px solid #e1e7f0;border-radius:10px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}.teacher-dashboard .student-screen.student-selected{border-color:#7e9aec;box-shadow:0 0 0 2px #e5edff}.teacher-dashboard .screen-heading{display:flex;align-items:center;gap:8px;padding:12px;min-height:51px}.student-card-select{display:flex;align-items:center;flex:0 0 auto}.student-card-select input{width:12px;height:12px;margin:0;accent-color:#315bd6}.teacher-dashboard .student-name{min-width:0;flex:1;gap:7px}.teacher-dashboard .screen-heading strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-weight:650}.teacher-dashboard .student-avatar{background:#edf2fc;color:#6781ad;width:25px;height:25px;font-size:8px;border-radius:8px;flex-shrink:0}.teacher-dashboard .screen-status{font-size:8px;text-align:right;max-width:65px;color:#8c9aaf;line-height:1.4}.teacher-dashboard .screen-status.live{color:#389a79;background:transparent}.teacher-dashboard .screen-display{height:auto;aspect-ratio:16/10;min-height:125px;background:#f0f3f8;border-top:1px solid #edf1f7;border-bottom:1px solid #edf1f7}.teacher-dashboard .screen-display img,.teacher-dashboard .screen-display video{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.teacher-dashboard .screen-placeholder{font-size:11px;color:#94a1b2;padding:18px;text-align:center}.student-browser-meta{display:flex;justify-content:space-between;gap:8px;padding:9px 12px;font-size:9px;color:#8e9aad;min-height:33px}.student-browser-meta>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.student-browser-meta>span:last-child{white-space:nowrap}.teacher-dashboard .screen-controls{display:flex;gap:5px;padding:0 10px 10px}.teacher-dashboard .screen-controls .button{font-size:9px;padding:5px 7px;min-height:28px;white-space:nowrap}.student-details-button{flex:1}.teacher-dashboard .screen-controls .button.danger{background:#fff;border-color:#e3e8f1;color:#a06b74}.teacher-dashboard .screen-controls .button:nth-child(3){font-size:8px}.teacher-dashboard .student-disconnected .screen-display{opacity:.6}.offline-student .screen-display{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#f7f9fc}.offline-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px dashed #cbd5e4;color:#9babc0;font-size:13px}.offline-student .screen-display p{font-size:10px;color:#a0adbf;margin:0}.offline-label{font-size:9px;color:#9ca8b8}.offline-student .screen-heading{justify-content:space-between}.offline-student .student-browser-meta{justify-content:center;padding:14px;color:#a7b2c3}.teacher-dashboard .empty-class{border:1px dashed #d7e1ef;background:#f9fbff;border-radius:12px}.dashboard-empty{font-size:12px;text-align:center;color:#8291a7;padding:24px;line-height:1.7}
.lesson-rail{display:grid;gap:18px}.teacher-dashboard .lesson-rail .card{padding:19px}.rail-heading{display:flex;align-items:center;gap:9px;margin-bottom:10px}.rail-heading h2{font-size:13px;font-weight:650;margin:0}.rail-icon{font-size:16px;color:#7086b0}.lesson-rail p{font-size:11px;color:#8b97a9;line-height:1.7;margin:6px 0 15px}.dashboard-form{display:grid;gap:12px;margin-top:17px}.dashboard-form label{display:grid;gap:7px;font-size:10px;font-weight:550;color:#73839a}.dashboard-form input,.dashboard-form select{width:100%;box-sizing:border-box}.dashboard-form .button{display:flex;justify-content:space-between;align-items:center;text-align:left}.lesson-rail p.action-status{font-size:10px;line-height:1.7;border-top:1px solid #edf0f6;padding-top:13px;margin:15px 0 0}.lesson-domain-chips{display:flex;flex-wrap:wrap;gap:6px}.lesson-domain-chips>span{font-size:9px;color:#5878ba;background:#eff4ff;padding:5px 8px;border-radius:5px;max-width:100%;overflow-wrap:anywhere}.lesson-websites details{border-top:1px solid #edf0f6;margin-top:17px;padding-top:12px}.lesson-websites .policy-editor>summary{text-align:left;font-size:11px;color:#5d7bb4}.lesson-websites .class-policy-form{display:grid;grid-template-columns:1fr;gap:13px}.lesson-websites .class-policy-form label{font-size:10px}.lesson-websites .class-policy-form .inline-check{align-items:flex-start;gap:7px;line-height:1.6}.lesson-websites textarea{width:100%;box-sizing:border-box}.lesson-websites .button{width:100%}.activity-row{display:flex;gap:9px;padding:12px 0;border-bottom:1px solid #eef1f6;align-items:flex-start}.activity-row:last-child{border-bottom:0;padding-bottom:0}.activity-icon{flex-shrink:0;color:#86a0d0;background:#eff4fc;width:24px;height:24px;border-radius:7px;display:grid;place-items:center;font-size:13px}.activity-row strong{font-size:10px;font-weight:550;color:#62748e;overflow-wrap:anywhere}.lesson-rail .activity-row p{font-size:9px;line-height:1.6;margin:3px 0 0}.lesson-rail .rail-empty{font-size:11px;line-height:1.9;margin:10px 0 0}.lesson-privacy{display:flex;gap:9px;padding:0 12px;align-items:flex-start;color:#a2afc3}.lesson-privacy p{font-size:9px;line-height:1.8;margin:0}.lesson-privacy>span{font-size:16px}
.teacher-dashboard .student-detail{width:650px;max-width:calc(100vw - 32px);max-height:88vh;border:1px solid #dbe4f1;border-radius:16px;padding:24px;box-shadow:0 24px 100px #22365133}.student-detail::backdrop{background:#20304775;backdrop-filter:blur(3px)}.detail-heading{display:flex;justify-content:space-between;align-items:flex-start}.detail-heading h2{font-size:22px;margin:5px 0}.detail-heading p{font-size:11px;color:#8594aa;margin:6px 0 20px}.detail-heading .icon-button{font-size:26px;padding:0 5px;line-height:1}.detail-preview{background:#f1f4f9;aspect-ratio:16/9;display:grid;place-items:center;border:1px solid #e5ebf3;border-radius:9px;overflow:hidden;margin-bottom:22px}.detail-preview img,.detail-preview video{width:100%;height:100%;object-fit:contain;max-height:340px}.detail-preview p{font-size:12px;color:#9aa7b9}.detail-tabs-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.detail-tabs-heading h3{font-size:13px;margin:0}.detail-tabs-heading h3 span{font-size:10px;color:#8a99af;background:#eff3fa;border-radius:4px;padding:3px 6px;margin-left:7px}.detail-tabs-heading>span{font-size:10px;color:#9ba8bb}.student-tab-row{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #edf1f6}.tab-site-icon{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:8px;color:#7890bd;background:#eff3fb;font-size:12px}.tab-identity{min-width:0;flex:1}.tab-identity strong{display:block;font-size:12px;font-weight:550;color:#536a89;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tab-identity small{display:block;font-size:10px;color:#9ca9bc;margin-top:4px}.tab-actions{display:flex;gap:7px}.tab-actions .button{font-size:10px;min-height:29px;padding:5px 9px}.tab-actions .tab-close{color:#aa7881}.student-detail .detail-help{font-size:10px;color:#9ba8ba;line-height:1.8;margin:18px 0 0}
.teacher-dashboard.classroom-focused .lesson-workspace{grid-template-columns:1fr}.teacher-dashboard.classroom-focused .lesson-rail{display:none}.teacher-dashboard.classroom-focused .lesson-header{margin-bottom:18px}.teacher-dashboard.classroom-focused .lesson-stats{margin-bottom:20px}
@media(min-width:1600px){.teacher-dashboard .screen-grid.compact{grid-template-columns:repeat(auto-fill,minmax(235px,1fr))}}
@media(max-width:1200px){.lesson-workspace{grid-template-columns:minmax(0,1fr) 240px;gap:18px}.lesson-stats>div{padding:16px 14px;gap:9px}.stat-symbol{width:30px;height:30px;font-size:18px}.lesson-stats div>span:not(.stat-symbol){font-size:10px}.lesson-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.lesson-stats .class-code-stat{grid-column:1/-1;border-top:1px solid #edf0f6;padding:11px 16px;justify-content:flex-end}.class-code-stat small{display:none}.lesson-clock{min-width:90px}.teacher-dashboard .screen-grid.compact{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}}
@media(max-width:980px){.lesson-workspace{grid-template-columns:1fr}.lesson-rail{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.lesson-activity{grid-column:1/-1}.lesson-privacy{display:none}.lesson-stats strong{font-size:21px}.lesson-title-row h2{font-size:22px}.lesson-live-label{display:none}.student-browser-filters .search-control{min-width:150px}.teacher-dashboard .screen-grid.compact{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}}
@media(max-width:620px){.lesson-header{flex-wrap:wrap;gap:18px}.lesson-heading{flex-basis:60%}.lesson-header>.button{margin-left:auto}.lesson-clock strong{font-size:23px}.lesson-stats>div{padding:14px 10px;gap:7px}.stat-symbol{display:none}.lesson-stats strong{font-size:22px}.lesson-stats div>span:not(.stat-symbol){font-size:9px;line-height:1.5}.lesson-rail{grid-template-columns:1fr}.student-browser-filters{gap:7px}.student-browser-filters .search-control{flex-basis:100%}.student-browser-filters select{flex:1;max-width:none}.teacher-dashboard .screen-grid,.teacher-dashboard .screen-grid.compact{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}.student-selection{gap:7px;flex-wrap:wrap}.student-selection label{font-size:10px}.student-tab-row{flex-wrap:wrap}.tab-actions{margin-left:43px}.student-detail .detail-help{font-size:10px}.detail-tabs-heading>span{display:none}.teacher-dashboard .lesson-title-row h2{font-size:21px}.teacher-dashboard .screen-heading strong{font-size:12px}.teacher-dashboard .screen-controls .button{font-size:10px}.teacher-dashboard .screen-display{min-height:145px}}
@media(prefers-reduced-motion:reduce){.lesson-progress span{transition:none}}

/* Keep labels legible at normal laptop zoom. */
.teacher-dashboard .student-browser-meta{font-size:10px;color:#6e8099}.teacher-dashboard .screen-heading strong{font-size:12px}.teacher-dashboard .screen-status{font-size:9px;color:#75869f}.teacher-dashboard .screen-controls .button{font-size:10px}.teacher-dashboard .student-selection,.teacher-dashboard .student-selection label{font-size:11px}.lesson-rail p{font-size:12px;color:#71829a}.dashboard-form label{font-size:11px;color:#657993}.lesson-rail p.action-status{font-size:11px}.lesson-domain-chips>span{font-size:10px;color:#5774a9}.lesson-stats div>span:not(.stat-symbol){color:#71829a;font-size:12px}.offline-student .screen-display p{font-size:11px;color:#8393a9}.offline-student .student-browser-meta{color:#8594a8}.offline-label{font-size:10px;color:#7d8fa8}.activity-row strong{font-size:11px}.lesson-rail .activity-row p{font-size:10px;color:#7c8da5}.student-tab-row .tab-identity strong{font-size:13px}.student-tab-row .tab-identity small{font-size:11px;color:#7487a2}

.student-detail .detail-action-status{font-size:12px;color:#4c6eaa;background:#eff4ff;border-radius:7px;padding:10px 12px;margin:14px 0 5px}
