.live-class-panel{overflow:hidden;border-radius:20px;background:#f8fbfa;border:1px solid #e0eee8;box-shadow:0 18px 45px #163d3010}
.live-room-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;background:#fff;border-bottom:1px solid #eaf0ed}
.live-indicator{display:inline-flex;align-items:center;gap:7px;color:#11815e;background:#e8f7f0;border-radius:30px;padding:6px 10px;font-size:10px;font-weight:bold}
.live-indicator i{width:7px;height:7px;border-radius:50%;background:#19a879;box-shadow:0 0 0 4px #19a87920}
.live-room-title h2{margin:10px 0 5px;font-size:19px;color:#142b2b}
.live-room-title p{margin:0;color:#76827f;font-size:11px}.live-room-title p span{padding:0 4px;color:#c0cbc6}
.live-room-meta{display:flex;align-items:center;gap:13px;color:#62716b;font-size:11px}.room-participant-count,.room-duration{display:flex;align-items:center;gap:5px;padding:8px 10px;border-radius:10px;background:#f5f8f6}.room-participant-count strong,.room-duration strong{color:#263b35}
.preview-role-control{display:grid;gap:5px;color:#829089;font-size:9px}.preview-role-control select,.mic-policy-control select{height:34px;border:1px solid #dce8e1;border-radius:9px;background:white;color:#38534a;padding:0 9px;font:inherit}
.classroom-class-control{display:grid;gap:5px;color:#829089;font-size:9px}.classroom-class-control select{height:34px;max-width:190px;border:1px solid #dce8e1;border-radius:9px;background:white;color:#38534a;padding:0 9px;font:inherit}
.classroom-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(285px,.85fr);gap:16px;padding:16px}
.classroom-main{min-width:0;display:grid;gap:14px;align-content:start}.lesson-stage{position:relative;min-height:310px;aspect-ratio:16/8.8;border-radius:18px;overflow:hidden;background:radial-gradient(ellipse at 75% 15%,#3ca780 0,transparent 36%),linear-gradient(135deg,#163f36,#102d32 65%,#214840);color:white;display:grid;place-items:center}
.lesson-stage:after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.17;background-image:linear-gradient(#ffffff14 1px,transparent 1px),linear-gradient(90deg,#ffffff14 1px,transparent 1px);background-size:40px 40px;mask-image:linear-gradient(90deg,transparent,#000 45%,#000)}
.teacher-camera-placeholder{position:relative;z-index:1;display:grid;justify-items:center;gap:9px;color:#eef8f3}.camera-glow{position:absolute;width:180px;height:180px;border-radius:50%;background:#8ce4bd20;filter:blur(12px);top:-30px;z-index:-1}
.teacher-avatar{width:92px;height:92px;border:3px solid #ffffff65;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#daf5e8,#68c59c);color:#126247;font-size:40px;font-weight:bold;box-shadow:0 16px 40px #061b1a55}
.teacher-camera-placeholder strong{font-size:14px}.teacher-camera-placeholder>span{font-size:10px;color:#c6dcd3}.stage-school-logo{position:absolute;top:-115px;width:44px;height:44px;object-fit:contain;opacity:.85;filter:brightness(0) invert(1)}
.stage-topline{position:absolute;z-index:2;top:14px;right:15px;left:15px;display:flex;justify-content:space-between;align-items:center;color:#d5eee3;font-size:10px}.stage-topline>span:first-child{background:#ffffff1c;border:1px solid #ffffff20;border-radius:20px;padding:6px 9px}.stage-secure{opacity:.86}
.stage-lower-third{position:absolute;z-index:2;bottom:15px;right:16px;display:flex;align-items:center;gap:9px}.stage-speaker-avatar{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#ffffff24;border:1px solid #ffffff30;font-size:16px;font-weight:bold}.stage-lower-third strong,.stage-lower-third small{display:block}.stage-lower-third strong{font-size:11px}.stage-lower-third small{font-size:9px;color:#cde2d9;margin-top:3px}.local-camera-preview,.shared-screen-preview{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;background:#102d32}.shared-screen-preview{object-fit:contain;background:#111}.lesson-stage.camera-on .teacher-camera-placeholder{display:none}.classroom-caption{position:absolute;z-index:3;bottom:62px;left:50%;transform:translateX(-50%);max-width:85%;background:#061e1bd9;color:white;border-radius:9px;padding:8px 12px;font-size:11px;text-align:center}
.lesson-workspace{background:#fff;border:1px solid #e7eeea;border-radius:15px;overflow:hidden}.lesson-tool-tabs{display:flex;gap:4px;padding:8px 10px;border-bottom:1px solid #edf1ef;background:#fbfcfb}.lesson-tool-tab{border:0;border-radius:8px;padding:9px 12px;background:transparent;color:#7b8982;font-size:10px}.lesson-tool-tab.selected{background:#e9f6ef;color:#16815e;font-weight:bold}.lesson-tool-content{min-height:145px;padding:17px 18px}.lesson-board{background:linear-gradient(0deg,#fff,#fdfefd);background-image:radial-gradient(#dfeae4 .75px,transparent .75px);background-size:18px 18px}
.board-title{display:flex;align-items:center;gap:10px}.board-icon{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;color:#16815e;background:#e9f6ef;font-size:18px}.board-title strong,.board-title small{display:block}.board-title strong{font-size:12px;color:#253b34}.board-title small{font-size:9px;color:#929d97;margin-top:4px}.board-live-dot{margin-right:auto;color:#16956b;font-size:9px}.equation-flow{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;padding:16px 4px 10px;color:#35584b;direction:ltr}.equation-flow span,.equation-flow i,.equation-flow strong{font-style:normal;font-size:18px;font-weight:bold}.equation-flow b{font-size:10px;color:#88a397}.equation-flow strong{color:#13815e}.board-hint{margin:0;text-align:center;font-size:9px;color:#95a19a}
.material-list{display:grid;gap:9px}.material-row{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid #edf1ef;border-radius:11px}.material-file{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;font-size:9px;font-weight:bold}.material-file.pdf{background:#fff0ee;color:#c55d51}.material-file.slide{background:#fff5df;color:#ae7b20}.material-row>div{flex:1}.material-row strong,.material-row small{display:block}.material-row strong{font-size:10px}.material-row small{font-size:9px;color:#97a19c;margin-top:4px}.material-open{border:0;background:#edf7f1;color:#17805e;border-radius:8px;padding:7px 10px;font-size:9px}
.quick-quiz{display:grid;align-content:center;justify-items:start;gap:10px}.quiz-label{color:#15805e;font-size:9px;font-weight:bold}.quick-quiz>strong{font-size:12px}.quiz-options{display:flex;gap:7px;flex-wrap:wrap}.quiz-options button{background:#fff;border:1px solid #e3eae6;border-radius:8px;padding:8px 12px;color:#56645d;font-size:10px}.quiz-options button.selected{background:#e8f7ef;border-color:#76c9a1;color:#147b59}.quick-quiz>small{color:#8c9891;font-size:9px}.quick-quiz>small.quiz-correct{color:#16815e;font-weight:bold}
.classroom-sidebar{min-width:0;display:grid;gap:14px;align-content:start}.room-people-card,.room-chat-card{border:1px solid #e5ede8;border-radius:15px;background:white;overflow:hidden}.room-card-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:14px 14px 12px}.room-card-heading strong,.room-card-heading small{display:block}.room-card-heading strong{font-size:12px;color:#253b34}.room-card-heading small{font-size:9px;color:#98a29c;margin-top:4px}.small-control{border:1px solid #e5ebe7;background:#fafbfa;color:#68776f;border-radius:8px;padding:7px 8px;font-size:9px}.mic-policy-control{display:grid;gap:6px;margin:0 12px 10px;padding:10px;border-radius:11px;background:#f7faf8}.mic-policy-control label{font-size:9px;font-weight:bold;color:#53665c}.mic-policy-control select{width:100%;font-size:9px}.mic-policy-control>small{font-size:8px;color:#85928b;line-height:1.7}.student-policy-notice{margin:0 12px 10px;padding:9px 10px;border-radius:10px;background:#eef8f2;color:#4c7462;font-size:9px;line-height:1.7}
.room-participants{padding:2px 12px 8px}.participant-row{display:flex;align-items:center;gap:8px;padding:9px 2px;border-top:1px solid #f0f3f1}.participant-avatar{flex:none;width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#e9f5ef;color:#22805f;font-size:12px;font-weight:bold}.participant-avatar.coral{background:#fff0ed;color:#c56d5e}.participant-avatar.blue{background:#edf2ff;color:#617ad4}.participant-avatar.lilac{background:#f4efff;color:#886bc1}.self-avatar{background:#e6f6ee}.participant-info{min-width:0;flex:1}.participant-info strong,.participant-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.participant-info strong{font-size:10px;color:#34453d}.participant-info small{font-size:8px;color:#96a19a;margin-top:4px}.participant-device{color:#bdc9c2;font-size:9px}.participant-device.is-on{color:#21a878}.participant-device.is-away{color:#d48c39}.grant-mic{flex:none;border:1px solid #dcefe4;background:#f0f9f4;color:#16815e;border-radius:8px;padding:6px 7px;font-size:8px}.grant-mic.allowed{background:#eaf2ff;border-color:#e0e9ff;color:#5c73c2}.raise-hand{display:block;width:calc(100% - 24px);margin:0 12px 12px;border:0;border-radius:9px;background:#fff4df;color:#986b19;padding:10px;font-size:10px;font-weight:bold}.chat-online-dot{color:#18966c;font-size:8px}.room-chat-messages{height:155px;overflow:auto;padding:8px 12px 2px;display:grid;align-content:start;gap:9px}.chat-message{max-width:95%;padding:9px 10px;border-radius:11px;background:#f5f8f6}.chat-message strong{font-size:9px;color:#46574f}.chat-message strong small{font-size:8px;color:#a1aaa5;font-weight:normal;margin-right:5px}.chat-message p{margin:5px 0 0;color:#67756d;font-size:9px;line-height:1.7}.teacher-message{justify-self:start;background:#eef8f2}.student-message{justify-self:end;background:#f3f5ff}.room-chat-form{display:flex;gap:7px;padding:9px 10px;border-top:1px solid #edf1ef}.room-chat-form input{flex:1;min-width:0;height:36px;border:1px solid #e7ede9;border-radius:9px;padding:0 10px;font:inherit;font-size:9px;outline:none}.room-chat-form button{width:36px;border:0;border-radius:9px;background:#14835f;color:white;font-size:16px}
.student-away-warning{margin:12px 16px 0;padding:11px 14px;border-radius:11px;border:1px solid #f3d49e;background:#fff8e8;color:#89621a;font-size:10px;line-height:1.8}.student-away-warning.returned{border-color:#c8e8d6;background:#eff9f3;color:#277552}
.board-file-button{margin-right:auto;border:1px solid #dcefe4;background:#f1faf4;color:#16815e;border-radius:8px;padding:7px 9px;font-size:8px}.file-presentation-screen{min-height:44vh;background:#263c35;padding:9px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px}.lesson-board.file-presenting #lesson-board-default{display:none}.lesson-board.file-presenting .file-presentation-screen{display:grid}
.file-presentation-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#fff;border-radius:11px}.presented-file-heading{display:flex;align-items:center;gap:9px;min-width:0}.presented-file-heading>span:last-child{min-width:0}.presented-file-heading strong,.presented-file-heading small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.presented-file-heading strong{font-size:10px;color:#293b34}.presented-file-heading small{font-size:8px;color:#8c9991;margin-top:4px}.presented-file-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#fff0ee;color:#b9574a;font-size:8px;font-weight:bold}.file-presentation-actions{display:flex;gap:7px;flex:none}.file-toolbar-button{border:1px solid #e3ebe6;border-radius:8px;background:#fff;color:#52655b;padding:8px 10px;font-size:9px}.file-toolbar-button.close-file-button{background:#eaf7ef;color:#16815e;border-color:#d7eee0}.file-presentation-canvas{min-height:58vh;display:grid;place-items:center;overflow:auto;background:#e9eeeb;border-radius:10px;padding:14px}.file-presentation-canvas iframe{width:min(100%,1100px);height:68vh;border:0;border-radius:8px;background:#fff}.file-presentation-canvas>img{max-width:100%;max-height:70vh;object-fit:contain;border-radius:8px;box-shadow:0 10px 35px #12251e20}.file-presentation-canvas>pre{width:min(100%,1000px);min-height:55vh;margin:0;padding:30px;overflow:auto;white-space:pre-wrap;direction:auto;text-align:start;background:white;border-radius:9px;color:#24352e;font:13px/1.9 Tahoma,"Segoe UI",sans-serif}.presented-office{width:min(100%,1000px);min-height:55vh;padding:26px;background:#fff;border-radius:9px;box-shadow:0 10px 35px #12251e15;color:#283a32}.office-document-page{max-width:800px;margin:0 auto;padding:18px 20px}.office-document-page h3{margin:0 0 16px;color:#16815e;font-size:12px}.office-document-page p{margin:0 0 11px;white-space:pre-wrap;font-size:12px;line-height:2}.office-slide{min-height:260px;margin:0 0 14px;padding:26px;border:1px solid #e3ece6;border-radius:12px;background:linear-gradient(145deg,#fff,#f5faf7);display:grid;align-content:center;gap:12px}.office-slide small{color:#16815e;font-size:9px}.office-slide p{margin:0;font-size:14px;line-height:1.8}.file-presentation-canvas>video{max-width:100%;max-height:70vh;border-radius:9px;background:#000}.file-presentation-canvas>audio{width:min(100%,700px)}.presented-file-fallback{max-width:420px;padding:32px;text-align:center;background:white;border-radius:14px;color:#66756d}.presented-file-fallback>span{font-size:30px;color:#16815e}.presented-file-fallback strong,.presented-file-fallback small{display:block}.presented-file-fallback strong{margin-top:12px;font-size:12px;word-break:break-word}.presented-file-fallback small{margin-top:6px;color:#89968e;font-size:9px}.presented-file-fallback p{font-size:10px;line-height:1.8}
.presented-office.office-spreadsheet{overflow:auto}.presented-office.office-spreadsheet table{min-width:0;width:100%;font-size:10px}.presented-office.office-spreadsheet td{padding:7px 9px;border:1px solid #e5ece8;white-space:nowrap}
.classroom-controls{position:sticky;bottom:8px;z-index:5;display:flex;align-items:center;justify-content:center;gap:8px;margin:0 16px 9px;padding:10px;border:1px solid #e1ebe5;border-radius:16px;background:#ffffffed;box-shadow:0 10px 30px #193c3014;backdrop-filter:blur(12px)}.room-control{min-width:72px;border:1px solid #e7ede9;border-radius:12px;background:#fff;color:#45584e;padding:8px 10px;display:grid;justify-items:center;gap:5px}.room-control>span{font-size:16px}.room-control small{font-size:8px}.room-control.active{background:#eaf7ef;border-color:#c8e8d5;color:#14835f}.room-control:disabled{opacity:.48;cursor:not-allowed}.room-leave{min-width:72px;border:0;border-radius:12px;background:#fff0ee;color:#b74c41;padding:8px 10px;display:grid;justify-items:center;gap:5px}.room-leave span{font-size:16px}.room-leave small{font-size:8px}.classroom-prototype-note{margin:0;padding:0 18px 14px;text-align:center;color:#96a29b;font-size:8px}
@media(max-width:900px){.classroom-layout{grid-template-columns:minmax(0,1.25fr) minmax(260px,.9fr);gap:11px;padding:12px}.live-room-header{padding:18px}.lesson-stage{min-height:260px}}
@media(max-width:680px){.live-room-header{align-items:flex-start;flex-direction:column;padding:15px;gap:12px}.live-room-title h2{font-size:16px}.live-room-meta{width:100%;justify-content:flex-start;flex-wrap:wrap}.preview-role-control{margin-right:auto}.classroom-layout{display:flex;flex-direction:column;padding:10px}.classroom-sidebar{grid-template-columns:1fr}.lesson-stage{min-height:220px;aspect-ratio:16/10}.classroom-controls{justify-content:space-around;gap:4px;margin:0 8px 8px;padding:7px 4px}.room-control,.room-leave{min-width:55px;padding:7px 5px}.lesson-tool-content{padding:13px}.equation-flow{gap:8px}.equation-flow span,.equation-flow i,.equation-flow strong{font-size:15px}}
@media(max-width:520px){.file-presentation-screen{min-height:54vh;padding:7px;gap:7px}.file-presentation-toolbar{align-items:flex-start;padding:9px}.file-presentation-actions{flex-direction:column}.file-toolbar-button{padding:7px 8px;font-size:8px}.file-presentation-canvas{min-height:45vh;padding:7px}.file-presentation-canvas iframe{height:50vh}.file-presentation-canvas>pre{padding:17px;font-size:11px}.office-slide{min-height:200px;padding:18px}.office-slide p{font-size:12px}}
.classroom-launcher{margin:16px;padding:22px;border:1px solid #e3ede7;border-radius:18px;background:linear-gradient(150deg,#fff,#f8fcf9);box-shadow:0 12px 30px #183d2c0d}.classroom-launcher-heading{display:flex;align-items:center;gap:13px;padding-bottom:17px}.launch-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#e5f5eb;font-size:22px}.classroom-launcher-heading p{margin:0;color:#16815e;font-size:10px;font-weight:bold}.classroom-launcher-heading h2{margin:5px 0;font-size:17px;color:#223c32}.classroom-launcher-heading small{color:#84928a;font-size:9px}.launch-step{padding:17px 0;border-top:1px solid #edf2ee}.launch-step-heading{display:flex;align-items:center;gap:9px;margin-bottom:13px}.launch-step-heading>span{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:#e8f6ef;color:#15815e;font-size:11px;font-weight:bold}.launch-step-heading strong,.launch-step-heading small{display:block}.launch-step-heading strong{font-size:11px;color:#35483f}.launch-step-heading small{margin-top:3px;color:#99a39d;font-size:8px}.classroom-grade-group+.classroom-grade-group{margin-top:14px}.classroom-grade-group-title{margin:0 0 8px;color:#87938c;font-size:9px;font-weight:bold}.classroom-grade-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.grade-launch-tile,.subject-launch-tile{min-height:62px;display:grid;justify-items:center;align-content:center;gap:5px;border:1px solid #e4ece7;border-radius:11px;background:#fff;color:#53665b;font:inherit;cursor:pointer;transition:.16s}.grade-launch-tile:hover,.subject-launch-tile:hover{border-color:#a6d9bd;transform:translateY(-1px)}.grade-launch-tile.selected,.subject-launch-tile.selected{border-color:#22a477;background:#eaf8f0;color:#157b59;box-shadow:0 0 0 2px #21a47716}.grade-launch-tile:disabled{opacity:.45;cursor:not-allowed;transform:none}.grade-launch-tile b{font-size:10px}.grade-launch-tile small{font-size:8px;color:#96a39a}.grade-launch-icon{font-size:16px}.classroom-subject-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}.subject-launch-tile{min-height:74px}.subject-launch-tile>span{font-size:18px}.subject-launch-tile strong{font-size:10px}.subject-launch-tile small{font-size:8px;color:#95a098}.launch-hint{margin:5px 0 0;color:#9a7951;font-size:9px}.launch-class-select{max-width:260px;display:grid;gap:6px;color:#6e7d74;font-size:9px}.launch-class-select select{height:40px;border:1px solid #dce8e1;border-radius:10px;background:#fff;color:#35483f;padding:0 11px;font:inherit}.start-classroom-button{margin-top:14px;min-width:170px}.classroom-launch-note{margin:0;border-top:1px solid #edf2ee;padding-top:13px;color:#9aa49e;font-size:8px;line-height:1.8}
@media(max-width:680px){.classroom-launcher{margin:10px;padding:15px}.classroom-grade-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.classroom-subject-options{grid-template-columns:repeat(2,minmax(0,1fr))}.classroom-launcher-heading h2{font-size:15px}}

/* Refined classroom presentation */
.live-class-panel{--room-ink:#18392e;--room-green:#12845e;--room-muted:#7a8a81;position:relative;border:1px solid #dcebe2;border-radius:24px;background:linear-gradient(145deg,#f6faf7,#eef5f1);box-shadow:0 22px 60px #17432b12}
.live-room-header{position:relative;isolation:isolate;overflow:hidden;min-height:126px;padding:24px 28px;background:linear-gradient(112deg,#fff 0%,#f8fcf9 54%,#e8f5ed 100%);border-bottom:1px solid #e2eee7}
.live-room-header:after{content:"";position:absolute;z-index:-1;left:-62px;top:-120px;width:245px;height:245px;border:1px solid #cfe6d7;border-radius:50%;box-shadow:0 0 0 22px #e5f2ea88,0 0 0 48px #eaf5ed77}
.live-room-title,.live-room-meta{position:relative;z-index:1}
.live-indicator{border:1px solid #c9e8d7;box-shadow:0 5px 14px #17845d10;color:#117653;background:#eff9f3}
.live-indicator i{animation:classroom-pulse 1.8s ease-out infinite}
@keyframes classroom-pulse{0%{box-shadow:0 0 0 0 #19a87950}75%,100%{box-shadow:0 0 0 6px #19a87900}}
.live-room-title h2{margin-top:12px;font-size:clamp(20px,2vw,25px);letter-spacing:-.35px;color:var(--room-ink)}
.live-room-title p{font-size:11px;line-height:1.8}
.live-room-meta{gap:8px}
.room-participant-count,.room-duration{min-height:38px;padding:8px 12px;border:1px solid #e4eee8;background:#ffffffd9;box-shadow:0 4px 12px #173b2908}
.preview-role-control select,.mic-policy-control select,.classroom-class-control select{height:38px;border-color:#d7e7dd;border-radius:11px}
.classroom-layout{grid-template-columns:minmax(0,1.7fr) minmax(280px,.78fr);gap:18px;padding:20px}
.classroom-main,.classroom-sidebar{gap:16px}
.lesson-stage{min-height:clamp(300px,34vw,440px);aspect-ratio:16/9;border:1px solid #32644e;border-radius:22px;background:radial-gradient(ellipse at 68% 12%,#44a77b 0,transparent 38%),radial-gradient(ellipse at 18% 92%,#1c654b 0,transparent 45%),linear-gradient(132deg,#153b31 0%,#0d2d28 62%,#19483a 100%);box-shadow:0 18px 38px #123c2b25,inset 0 1px #ffffff20}
.lesson-stage:after{z-index:0;opacity:.12;background-size:34px 34px;mask-image:radial-gradient(ellipse at center,#000 0%,transparent 88%)}
.teacher-camera-placeholder{gap:11px;padding:20px;text-align:center}
.teacher-avatar{width:98px;height:98px;border-color:#ffffff80;background:linear-gradient(145deg,#f2fff7,#77d1a6);box-shadow:0 18px 45px #061b1a55,0 0 0 10px #ffffff0a}
.teacher-camera-placeholder strong{font-size:15px;letter-spacing:.1px}
.teacher-camera-placeholder>span{max-width:260px;font-size:10px;line-height:1.8}
.stage-school-logo{position:absolute;z-index:5;top:58px;right:18px;width:42px;height:42px;padding:5px;border:1px solid #ffffff40;border-radius:13px;background:#ffffffed;object-fit:contain;opacity:1;filter:none;box-shadow:0 8px 22px #09281f35}
.stage-topline{z-index:4;top:15px;right:16px;left:16px}
.stage-topline>span:first-child{padding:7px 11px;border-color:#ffffff2c;background:#ffffff20;backdrop-filter:blur(10px)}
.stage-secure{padding:6px 9px;border:1px solid #ffffff20;border-radius:20px;background:#07271f36;backdrop-filter:blur(8px)}
.stage-lower-third{z-index:4;right:18px;bottom:17px;padding:8px 12px 8px 9px;border:1px solid #ffffff2a;border-radius:15px;background:#08271fc2;backdrop-filter:blur(12px)}
.stage-speaker-avatar{width:40px;height:40px;border-radius:13px;background:#ffffff30}
.local-camera-preview,.shared-screen-preview{z-index:1}
.lesson-workspace{border-color:#e0ebe4;border-radius:18px;box-shadow:0 8px 22px #183c2c08}
.lesson-tool-tabs{gap:6px;padding:9px 12px;background:#fbfdfb}
.lesson-tool-tab{min-height:38px;padding:9px 15px;border-radius:10px;font-size:10px;transition:background .16s,color .16s,transform .16s}
.lesson-tool-tab:hover{background:#f0f7f2;color:#286e50}
.lesson-tool-tab.selected{background:#e6f5ec;color:#0f7955;box-shadow:inset 0 0 0 1px #d1ebdc}
.lesson-tool-content{min-height:170px;padding:20px 22px}
.lesson-board{background-color:#fff;background-image:radial-gradient(#dfeae4 .8px,transparent .8px);background-size:20px 20px}
.board-title{gap:12px}
.board-icon{width:40px;height:40px;border:1px solid #d9eee2;border-radius:13px}
.board-title strong{font-size:13px;color:#1e3c30}
.board-title small{font-size:9px}
.board-file-button,.file-toolbar-button{min-height:36px;border-radius:10px;font-size:9px;transition:.15s ease}
.board-file-button:hover,.file-toolbar-button:hover{border-color:#a7d7ba;background:#e8f6ed;color:#117653}
.board-live-dot{padding:6px 9px;border-radius:20px;background:#eaf7ef;font-weight:bold}
.equation-flow{min-height:72px;gap:16px;margin:14px 0 10px;padding:16px;border:1px solid #eaf1ec;border-radius:15px;background:#ffffffd9;box-shadow:0 6px 18px #183c2c06}
.equation-flow span,.equation-flow i,.equation-flow strong{font-size:20px}
.board-hint{font-size:10px;line-height:1.8}
.room-people-card,.room-chat-card{border-color:#dfebe4;border-radius:18px;box-shadow:0 8px 22px #183c2c08}
.room-card-heading{min-height:63px;padding:15px 16px 13px;background:linear-gradient(110deg,#fff,#f8fcf9);border-bottom:1px solid #edf3ef}
.room-card-heading strong{font-size:13px;color:#1e3b30}
.room-card-heading small{font-size:9px}
.small-control{border-color:#dfeae3;border-radius:9px;background:#fff;padding:8px 10px;font-size:9px;transition:.15s}
.small-control:hover{border-color:#b9dec7;color:#127653;background:#f2faf5}
.mic-policy-control{margin:12px 13px 10px;padding:12px;border:1px solid #e5f0e9;border-radius:13px;background:#f6faf7}
.mic-policy-control label{font-size:10px}
.mic-policy-control select{font-size:9px}
.mic-policy-control>small{font-size:9px}
.room-participants{max-height:300px;overflow:auto;padding:4px 14px 10px;scrollbar-color:#c8ded1 transparent;scrollbar-width:thin}
.participant-row{gap:10px;padding:10px 3px;border-color:#edf2ef}
.participant-avatar{width:36px;height:36px;border-radius:13px;box-shadow:inset 0 0 0 1px #ffffffb0}
.participant-info strong{font-size:10px}
.participant-info small{font-size:9px}
.grant-mic{min-height:30px;padding:7px 9px;border-radius:9px;font-size:9px;transition:.15s}
.grant-mic:hover{border-color:#a7d7ba;background:#e4f5ea}
.grant-present{flex:none;border:1px solid #dcefe4;background:#f0f9f4;color:#16815e;border-radius:8px;padding:6px 7px;font-size:8px}
.grant-present.allowed{background:#eaf2ff;border-color:#e0e9ff;color:#5c73c2}
.room-chat-messages{height:205px;padding:12px 14px 5px;gap:10px}
.chat-message{padding:10px 12px;border:1px solid #e9f0eb;border-radius:13px}
.chat-message strong{font-size:10px}
.chat-message p{font-size:10px;line-height:1.8}
.teacher-message{border-color:#dceee2;background:#f1f9f4}
.student-message{border-color:#e5e8f7;background:#f5f6fc}
.room-chat-form{gap:8px;padding:11px 12px}
.room-chat-form input{height:40px;border-radius:11px;font-size:10px}
.room-chat-form input:focus{border-color:#83c7a1;box-shadow:0 0 0 3px #21a47715}
.room-chat-form button{width:40px;border-radius:11px;box-shadow:0 6px 13px #13835f25;transition:transform .15s}
.room-chat-form button:hover{transform:translateY(-1px)}
.classroom-controls{bottom:10px;gap:9px;margin:0 20px 12px;padding:11px;border-color:#dce8e0;border-radius:19px;background:#ffffffed;box-shadow:0 14px 38px #123b2a1a}
.room-control,.room-leave{min-width:78px;min-height:58px;border-radius:14px;transition:transform .16s,border-color .16s,background .16s,box-shadow .16s}
.room-control:hover,.room-leave:hover{transform:translateY(-2px);box-shadow:0 7px 17px #173b2a12}
.room-control>span,.room-leave span{font-size:18px}
.room-control small,.room-leave small{font-size:9px}
.room-control.active{box-shadow:inset 0 0 0 1px #b7e2c8}
.room-leave{background:linear-gradient(145deg,#fff3f1,#ffebe8);border:1px solid #f6d9d4}
.classroom-prototype-note{font-size:9px;line-height:1.8}
.student-away-warning{margin:14px 20px 0;border-radius:13px;font-size:10px}
.classroom-launcher{border-color:#dcebe1;border-radius:22px;box-shadow:0 16px 38px #173d2a10}
.launch-step{padding:19px 0}
.grade-launch-tile,.subject-launch-tile{border-color:#e0ebe4;border-radius:14px;box-shadow:0 4px 12px #173b2907}
.grade-launch-tile{min-height:72px}
.subject-launch-tile{min-height:88px}
.grade-launch-tile b,.subject-launch-tile strong{font-size:11px}
.classroom-launch-note{font-size:9px}
.live-class-panel :focus-visible{outline:3px solid #62ba89;outline-offset:2px}

@media(max-width:900px){.classroom-layout{grid-template-columns:minmax(0,1.25fr) minmax(260px,.9fr);gap:13px;padding:14px}.lesson-stage{min-height:280px}}
@media(max-width:820px){.classroom-layout{grid-template-columns:1fr}.classroom-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.lesson-stage{min-height:clamp(280px,48vw,400px)}}
@media(max-width:680px){.live-class-panel{border-radius:18px}.live-room-header{min-height:0;padding:18px 16px}.live-room-header:after{left:-105px;top:-145px}.live-room-title h2{font-size:19px}.live-room-meta{gap:6px}.room-participant-count,.room-duration{min-height:35px;padding:7px 9px;font-size:10px}.classroom-layout{gap:12px;padding:10px}.classroom-sidebar{grid-template-columns:1fr;gap:12px}.classroom-main{gap:12px}.lesson-stage{min-height:235px;aspect-ratio:4/3;border-radius:18px}.stage-school-logo{top:53px;right:12px;width:36px;height:36px;border-radius:11px}.stage-topline{top:12px;right:12px;left:12px}.stage-lower-third{right:12px;bottom:12px;padding:6px 9px}.teacher-avatar{width:78px;height:78px;font-size:34px}.teacher-camera-placeholder strong{font-size:13px}.lesson-workspace{border-radius:15px}.lesson-tool-tabs{overflow:auto;white-space:nowrap;padding:7px}.lesson-tool-tab{flex:1;min-width:max-content;padding:9px 11px}.lesson-tool-content{min-height:145px;padding:14px}.equation-flow{gap:10px;padding:12px 8px}.equation-flow span,.equation-flow i,.equation-flow strong{font-size:17px}.room-card-heading{padding:13px}.room-chat-messages{height:175px}.classroom-controls{position:sticky;bottom:5px;gap:5px;margin:0 7px 8px;padding:7px 5px;border-radius:16px}.room-control,.room-leave{min-width:0;min-height:54px;flex:1;padding:6px 3px;border-radius:12px}.room-control>span,.room-leave span{font-size:16px}.room-control small,.room-leave small{font-size:8px}.classroom-prototype-note{padding:0 12px 12px;font-size:8px}.student-away-warning{margin:10px 12px 0}.classroom-launcher{margin:9px;padding:15px;border-radius:17px}.classroom-launcher-heading{gap:10px}.launch-icon{width:42px;height:42px;border-radius:13px}.classroom-grade-grid{gap:8px}.grade-launch-tile{min-height:65px}.subject-launch-tile{min-height:76px}}

/* Live classroom media and teacher tools */
.lesson-stage{min-height:clamp(235px,28vw,340px);aspect-ratio:16/9}
.local-camera-preview,.remote-teacher-preview{inset:42px auto 48px;left:50%;transform:translateX(-50%);width:min(82%,760px);height:calc(100% - 96px);border:1px solid #ffffff44;border-radius:16px;object-fit:cover;box-shadow:0 12px 36px #061b1a55}
.remote-teacher-preview{z-index:2}
.lesson-stage.camera-on .teacher-camera-placeholder,.lesson-stage.remote-camera-on .teacher-camera-placeholder{display:none}
.classroom-fullscreen{position:absolute;z-index:5;top:62px;left:17px;width:38px;height:38px;border:1px solid #ffffff55;border-radius:11px;background:#09271fb8;color:white;font-size:23px;line-height:1;cursor:pointer;backdrop-filter:blur(8px)}
.lesson-stage:fullscreen,.lesson-stage:-webkit-full-screen{width:100vw;height:100vh;max-height:100vh;aspect-ratio:auto;border-radius:0}
.lesson-stage:fullscreen .local-camera-preview,.lesson-stage:fullscreen .remote-teacher-preview,.lesson-stage:-webkit-full-screen .local-camera-preview,.lesson-stage:-webkit-full-screen .remote-teacher-preview{inset:48px auto 58px;width:min(88%,1200px);height:calc(100% - 106px)}
.lesson-board-default{display:grid;gap:14px}
.lesson-board-canvas{width:100%;min-height:210px;resize:vertical;border:1px solid #dfeae3;border-radius:13px;padding:15px;background:#fff;color:#263b34;font:inherit;font-size:14px;line-height:1.9;outline:none}
.lesson-board-canvas:not([readonly]){box-shadow:inset 0 0 0 1px #d7eadf}
.lesson-board-canvas::placeholder{color:#a5b2aa;font-size:12px}
.board-file-button{border:1px solid #dcece2;border-radius:9px;background:#eff8f2;color:#187653;padding:8px 11px;font:inherit;font-size:10px;cursor:pointer}
.board-file-button:hover{background:#e1f3e8}
.quiz-label-row{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%}
.quiz-label-row>span:last-child,.poll-empty{color:#8a9890;font-size:10px}
.poll-composer{display:grid;gap:9px;width:100%;padding:13px;border:1px solid #e7eee9;border-radius:12px;background:#fbfdfb}
.poll-composer>input,.poll-option-fields input{width:100%;min-height:38px;border:1px solid #e0e9e3;border-radius:9px;padding:8px 10px;background:white;color:#344b40;font:inherit;font-size:11px;outline:none}
.poll-option-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.classroom-poll-content{display:grid;gap:10px;width:100%}
.poll-active-question{color:#263d33;font-size:13px}
.classroom-poll-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.classroom-poll-option,.classroom-poll-result{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:38px;padding:8px 11px;border:1px solid #e1eae4;border-radius:9px;background:#fff;color:#455b50;font:inherit;font-size:10px;text-align:right}
.classroom-poll-option{cursor:pointer}.classroom-poll-option.selected{border-color:#3eaf7d;background:#ecf8f1;color:#15734f}
.classroom-poll-result b{color:#17805b;font-size:9px;white-space:nowrap}
.private-submission-box{display:grid;gap:9px;width:100%;padding:12px;border:1px solid #e4ece7;border-radius:12px;background:#f9fcfa}
.private-submission-box>div{display:grid;gap:7px}
.private-submission-box strong{color:#344b40;font-size:11px}
.private-submission-box small{color:#84938a;font-size:9px}
.private-submission-list{display:grid;gap:7px}
.private-submission-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px;border:1px solid #e5eee8;border-radius:9px;background:white}
.private-submission-item strong,.private-submission-item small{display:block;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.private-submission-item a{flex:none;color:#137a55;font-size:10px;text-decoration:none}
.room-chat-messages:empty:before{content:'هنوز پیامی ارسال نشده است؛ گفت‌وگو را شما شروع کنید.';align-self:center;justify-self:center;padding:18px;color:#98a59d;font-size:10px;text-align:center}
.chat-online-dot.is-disconnected{color:#a66a49}
.participant-media-host{display:flex;flex:0 0 100%;align-items:center;gap:6px;padding:0 0 0 44px}
.participant-live-video{width:116px;max-height:76px;aspect-ratio:16/9;border-radius:8px;background:#142d27;object-fit:cover}
.participant-media-host audio{display:none}
.remote-teacher-audio{display:none}
#remote-teacher-audio{display:none}
@media(max-width:680px){.lesson-stage{min-height:235px;aspect-ratio:4/3}.local-camera-preview,.remote-teacher-preview{inset:44px auto 45px;width:88%;height:calc(100% - 89px)}.classroom-fullscreen{top:59px;left:12px}.lesson-board-canvas{min-height:190px}.poll-option-fields,.classroom-poll-options{grid-template-columns:1fr}.quiz-label-row{align-items:flex-start}}
@media(max-width:380px){.live-room-title h2{font-size:17px}.live-room-meta{align-items:stretch}.room-participant-count,.room-duration{flex:1;justify-content:center}.preview-role-control{width:100%;margin:0}.preview-role-control select{width:100%}.classroom-controls{margin-right:4px;margin-left:4px}.room-control small,.room-leave small{font-size:7px}}
.student-class-schedule{margin:18px;padding:22px;background:linear-gradient(145deg,#fff,#f3faf5);border:1px solid #dcebe1;border-radius:22px;box-shadow:0 16px 38px #173d2a10}.student-class-schedule[hidden]{display:none}.student-schedule-list,.classroom-schedule-list{display:grid;gap:10px;margin-top:16px}.student-schedule-card,.classroom-schedule-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 16px;background:#fff;border:1px solid #e4ece7;border-radius:14px}.student-schedule-card strong,.classroom-schedule-card strong{display:block;font-size:12px;color:#23362b}.student-schedule-card small,.classroom-schedule-card small{display:block;margin-top:5px;font-size:10px;color:#758177}.student-schedule-card.ended{opacity:.48;filter:grayscale(.65)}.schedule-status{display:inline-flex;align-items:center;gap:6px;margin-top:9px;padding:5px 8px;border-radius:20px;background:#f1f4f2;color:#66736a;font-size:9px}.schedule-status.live{background:#e7f6ed;color:#15834e}.schedule-status.teacher-left{background:#fff6e4;color:#9a6916}.schedule-card-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.schedule-card-actions button,.schedule-card-actions a{min-height:34px;padding:8px 11px;border:1px solid #dce9e0;border-radius:9px;background:#f4faf6;color:#187750;font:inherit;font-size:9px;font-weight:700;text-decoration:none;white-space:nowrap}.schedule-card-actions button:disabled{opacity:.45;cursor:not-allowed}.schedule-fields{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:9px;margin:12px 0}.schedule-fields label{display:grid;gap:6px;font-size:10px;font-weight:700;color:#4d5870}.schedule-fields select,.schedule-fields input{height:38px;border:1px solid #dfe8e1;border-radius:9px;padding:0 9px;background:#fff;color:#26372c;font:inherit}.schedule-list-section{margin-top:14px;padding-top:12px;border-top:1px solid #e6eee8}.schedule-list-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px}.schedule-list-heading .table-action{border:0;background:transparent;color:#187750;font:inherit;font-size:9px}.student-material-list{grid-column:1/-1;display:grid;gap:7px;padding-top:10px;border-top:1px solid #edf1ee}.classroom-materials-list{display:grid;gap:8px}.classroom-materials-list .material-row{margin:0}.student-schedule-empty{padding:20px;border:1px dashed #d6e4d9;border-radius:12px;color:#77857a;font-size:11px;text-align:center}.media-locked-note{margin:0 20px 12px;padding:10px 13px;border-radius:11px;background:#fff6e4;color:#8b641c;font-size:10px}
.classroom-co-teacher-picker{display:grid;gap:7px;max-width:460px;margin:0 0 14px;padding:12px;border:1px solid #dcebe1;border-radius:12px;background:#f7fbf8}.classroom-co-teacher-picker[hidden]{display:none}.classroom-co-teacher-picker>strong{font-size:10px;color:#31483b}.classroom-co-teacher-picker>small{font-size:9px;color:#87948b}.classroom-co-teacher-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:7px}.classroom-co-teacher-option{display:flex;align-items:center;gap:8px;min-height:42px;padding:7px 9px;border:1px solid #e0ebe4;border-radius:9px;background:#fff;cursor:pointer}.classroom-co-teacher-option input{accent-color:#15956b}.classroom-co-teacher-option strong,.classroom-co-teacher-option small{display:block}.classroom-co-teacher-option strong{font-size:10px;color:#35483f}.classroom-co-teacher-option small{margin-top:3px;font-size:8px;color:#94a098}
@media(max-width:680px){.student-class-schedule{margin:10px;padding:16px;border-radius:17px}.student-schedule-card,.classroom-schedule-card{grid-template-columns:1fr;gap:10px;padding:12px}.schedule-card-actions{justify-content:flex-start}.schedule-fields{grid-template-columns:1fr 1fr}.schedule-fields label:first-child{grid-column:1/-1}}
.participant-hand-raised{display:inline-flex;align-items:center;margin-inline-start:7px;padding:2px 6px;border-radius:20px;background:#fff2d8;color:#946316;font-size:9px;font-weight:700;vertical-align:middle}
.participant-hand-raised[hidden]{display:none!important}
#room-hand-control[aria-pressed="true"],.raise-hand[aria-pressed="true"]{background:#ffedc4;color:#81550b;border-color:#f2d28b}
.local-camera-preview,.remote-teacher-preview,.participant-live-video{object-fit:contain!important;background:#102d32}
.media-connection-indicator{padding:5px 8px;border:1px solid #ffffff20;border-radius:20px;background:#ffffff12;color:#d8e9e0;font-size:9px}
.media-connection-indicator{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.media-connection-indicator[data-state="connected"],.media-connection-indicator[data-state="receiving"]{color:#baf0d2}
.media-connection-indicator[data-state="failed"]{color:#ffd1c8;background:#7c2c2640;border-color:#ffb0a240}
.lesson-drawing-canvas{display:block;width:100%;height:270px;margin-top:10px;border:1px solid #e0ebe4;border-radius:12px;background:#fff;touch-action:none;cursor:crosshair}
.drawing-tools{display:flex;align-items:center;gap:10px;margin-top:8px;color:#6b7a71;font-size:9px}
.drawing-tools label{display:flex;align-items:center;gap:5px}
.drawing-tools input[type=color]{width:29px;height:25px;padding:1px;border:1px solid #dce9e0;border-radius:6px;background:#fff}
.drawing-tools input[type=range]{width:88px}
.drawing-tools .board-file-button{margin:0;padding:4px 8px;font-size:8px}
.drawing-tools .board-file-button.selected{background:#ffedc4;color:#80570e;border-color:#f1d28c}

/* Let the teacher mark up a shared PDF, image or slide; everyone receives the same strokes. */
.file-presentation-canvas{position:relative;isolation:isolate}
#file-annotation-canvas{position:absolute;z-index:5;inset:14px;width:calc(100% - 28px);height:calc(100% - 28px);background:transparent;pointer-events:none;touch-action:none;cursor:crosshair}
.file-drawing-tools{display:flex;align-items:center;gap:3px;padding:2px;border:1px solid #e5ece7;border-radius:9px;background:#f7faf8}
.file-drawing-tools[hidden]{display:none!important}
.file-drawing-tools label{display:grid;place-items:center;width:29px;height:29px;border:1px solid #dce9e0;border-radius:7px;background:#fff}
.file-drawing-tools input[type=color]{width:23px;height:23px;padding:1px;border:0;background:transparent;cursor:pointer}
.file-drawing-tools .file-toolbar-button{min-height:25px;padding:3px 5px;font-size:7px;white-space:nowrap}
.file-drawing-tools .file-toolbar-button.selected{background:#ffedc4;color:#80570e;border-color:#f1d28c}
.file-toolbar-button:disabled,.board-file-button:disabled{opacity:.45;cursor:not-allowed}
.file-presentation-actions{flex-wrap:wrap;align-items:center;justify-content:flex-end}
.file-presentation-actions>.file-toolbar-button{min-height:32px;padding:6px 8px}
.schedule-form-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.schedule-form-actions .start-classroom-button{margin-top:14px}
.schedule-card-actions [data-edit-classroom-schedule],.schedule-card-actions [data-delete-classroom-schedule]{border:1px solid #dce9e0;border-radius:8px;background:#fff;color:#537064;padding:7px 9px;font-size:9px}
.schedule-card-actions [data-delete-classroom-schedule]{color:#ad5549;background:#fff8f7;border-color:#f1dfdc}
.schedule-card-actions button:disabled{opacity:.45;cursor:not-allowed}
.file-presentation-screen:fullscreen,.file-presentation-screen:-webkit-full-screen{position:fixed;z-index:10000;inset:0;min-height:100vh;max-height:100vh;padding:12px;border-radius:0;background:#172b25;grid-template-rows:auto minmax(0,1fr)}
.file-presentation-screen:fullscreen .file-presentation-canvas,.file-presentation-screen:-webkit-full-screen .file-presentation-canvas{height:100%;min-height:0;padding:12px}
.file-presentation-screen:fullscreen .file-presentation-canvas iframe,.file-presentation-screen:-webkit-full-screen .file-presentation-canvas iframe{height:100%;max-height:100%}
.file-presentation-screen:fullscreen .file-presentation-canvas>img,.file-presentation-screen:-webkit-full-screen .file-presentation-canvas>img{max-height:100%}
@media(max-width:520px){.file-presentation-toolbar{flex-direction:column;gap:7px}.file-presentation-actions{width:100%;flex-direction:row;justify-content:flex-start;gap:5px}.file-presentation-actions>.file-toolbar-button{min-height:30px;padding:5px 7px;font-size:8px}.file-drawing-tools{gap:3px}.file-drawing-tools .file-toolbar-button{padding:4px 5px;font-size:7px}.file-presentation-screen:fullscreen,.file-presentation-screen:-webkit-full-screen{padding:6px}.file-presentation-screen:fullscreen .file-presentation-canvas,.file-presentation-screen:-webkit-full-screen .file-presentation-canvas{padding:5px}}
.materials-upload{display:flex;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid #edf2ee}
.materials-upload small{color:#86948b;font-size:9px}
.materials-upload .board-file-button{margin:0;padding:6px 9px;font-size:9px}
.material-actions{display:flex;align-items:center;gap:6px}
.material-download{border:1px solid #e1ebe5;border-radius:8px;background:#fff;color:#5e7167;padding:7px 9px;font-size:9px;text-decoration:none;white-space:nowrap}
.material-open{cursor:pointer}
.board-title .board-file-button{padding:5px 8px;font-size:8px}
@media(max-width:680px){.lesson-drawing-canvas{height:230px}.drawing-tools{flex-wrap:wrap}.materials-upload{align-items:flex-start;flex-direction:column;gap:6px}.material-actions{gap:4px}.material-open,.material-download{padding:6px 7px;font-size:8px}}

/* Smartboard media stays inside its frame on mobile; controls remain visible and easy to tap. */
.file-presentation-screen{height:min(70vh,720px);min-height:0;max-height:720px;overflow:hidden;grid-template-rows:auto minmax(0,1fr)}
.file-presentation-canvas{position:relative;min-height:0;height:100%;overflow:hidden;padding:9px}
.file-presentation-canvas>video{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.file-presentation-canvas>iframe{width:100%;height:100%;max-width:100%;max-height:100%}
.file-presentation-canvas>img{width:auto;max-width:100%;height:auto;max-height:100%}
.smart-board-fullscreen{position:absolute;z-index:8;left:14px;bottom:14px;display:grid;place-items:center;width:46px;height:46px;border:1px solid #ffffffb8;border-radius:14px;background:linear-gradient(145deg,#10a875,#087750);color:#fff;font-size:23px;font-weight:700;line-height:1;box-shadow:0 5px 18px #082d1f70;cursor:pointer}
.smart-board-fullscreen:hover{background:#0b805a;transform:translateY(-1px)}
.file-drawing-tools{gap:6px;padding:5px}
.file-drawing-tools label{width:auto;min-width:48px;height:45px;padding:4px 6px;gap:3px;font-size:10px}
.file-drawing-tools input[type=color]{width:30px;height:30px}
.file-drawing-tools .file-toolbar-button{min-height:38px;padding:7px 9px;font-size:9px}
.drawing-size-control{min-width:108px!important}
.drawing-size-control input[type=range]{width:102px}
.drawing-size-control output{font-size:11px;font-weight:700}
.ppt-navigation{display:flex;align-items:center;gap:5px;padding:3px 5px;border:1px solid #dbe8df;border-radius:10px;background:#f8fbf8;white-space:nowrap}
.ppt-navigation>span{min-width:72px;text-align:center;color:#52685b;font-size:9px}
.ppt-navigation .file-toolbar-button{min-height:34px;padding:6px 9px;font-size:9px}
.ppt-navigation .file-toolbar-button[aria-pressed=true]{background:#e2f4e9;border-color:#bfe2cb;color:#087650}
.ppt-navigation button[hidden]{display:none}
.office-slide[hidden]{display:none!important}
.classmate-video-setting{display:flex;align-items:center;gap:8px;margin-top:8px;padding:8px 10px;border:1px solid #dcebe1;border-radius:10px;background:#f6fbf7;color:#476653;font-size:10px;font-weight:700}
.classmate-video-setting input{width:16px;height:16px;accent-color:#13845e}
.panel-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.panel-heading-actions .button,.teacher-head-actions .button,.student-actions-head .button{font-size:11px}
.teacher-head-actions,.student-actions-head{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
@media(max-width:520px){.file-presentation-screen{height:57svh;min-height:340px;max-height:560px;padding:5px;grid-template-rows:auto minmax(0,1fr)}.file-presentation-toolbar{max-height:100px;min-height:58px;overflow:hidden;gap:4px;padding:6px}.file-presentation-actions{max-height:55px;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;justify-content:flex-start;scrollbar-width:thin}.file-presentation-actions>.file-toolbar-button{flex:none;min-height:34px;font-size:8px}.file-drawing-tools{flex:none;gap:4px;padding:3px}.file-drawing-tools label{min-width:42px;height:40px;padding:3px 4px;font-size:9px}.file-drawing-tools input[type=color]{width:27px;height:27px}.file-drawing-tools .file-toolbar-button{min-height:34px;padding:5px 7px;font-size:8px}.drawing-size-control{min-width:96px!important}.drawing-size-control input[type=range]{width:88px}.ppt-navigation{flex:none}.ppt-navigation .file-toolbar-button{min-height:32px;padding:5px 7px;font-size:8px}.ppt-navigation>span{min-width:58px;font-size:8px}.smart-board-fullscreen{left:10px;bottom:10px;width:42px;height:42px;font-size:21px}.file-presentation-canvas{padding:5px}}
.subject-launch-tile .teacher-full-name{max-width:100%;text-align:center;line-height:1.7;overflow-wrap:break-word}
