:root{--school-body-font:Tahoma,Arial,sans-serif;--school-heading-font:Tahoma,Arial,sans-serif;--school-body-size:16px;--school-heading-size:22px}
body,body *{font-family:var(--school-body-font)!important}
h1,h2,h3,h4,.welcome-row h1,.panel-heading h2,.data-card-head h3,.live-room-title h2{font-family:var(--school-heading-font)!important;font-size:var(--school-heading-size)!important;line-height:1.35}
body{font-size:var(--school-body-size)!important}
body :is(p,label,.nav-item,.button,.table-action,.status,.metric span,.metric strong,.record-row,.attendance-row,.schedule-card-actions button,.schedule-card-actions a,.room-chat-form input,.room-chat-form button,.classroom-poll-option,.classroom-poll-result,.board-file-button,.student-policy-notice,.mic-policy-control,.classroom-quality-control){font-size:var(--school-body-size)!important}
body :is(small,.muted,.hint,.eyebrow,.room-card-heading small,.participant-info small,.classroom-prototype-note,.poll-empty,.private-submission-box small){font-size:calc(var(--school-body-size)*.82)!important;line-height:1.65}
.appearance-form{display:grid;gap:19px;padding:22px}
.appearance-school-label,.appearance-settings-grid label{display:grid;gap:8px;color:#40554a;font-size:13px;font-weight:700}
.appearance-form select{min-height:42px;border:1px solid #dce8e0;border-radius:10px;padding:0 11px;background:white;color:#30463a;font:inherit}
.appearance-school-label{max-width:420px}
.appearance-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:850px}
.appearance-preview{display:grid;gap:8px;max-width:850px;padding:18px;border:1px solid #dcebe2;border-radius:14px;background:#f5faf7;color:#40554a}
.appearance-preview strong{line-height:1.5}
.appearance-preview p{margin:0}
.appearance-preview small{color:#77877d}
.appearance-form .form-actions{margin-top:0}
/* Give the student registration form enough room, with compact readable controls. */
#student-card{grid-column:1/-1}
#student-card .data-card-head h3{font-size:18px!important}
#student-card .data-card-head .muted{font-size:12px!important}
#student-form.inline-form{width:100%;padding:20px 22px;gap:13px}
#student-form .student-create-grid{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#student-form .student-create-grid label{font-size:12px!important;line-height:1.5}
#student-form .student-create-grid input,#student-form .student-create-grid select{min-width:0;height:40px;font-size:12px!important}
#student-form .student-create-grid .persian-date-picker select{font-size:11px!important;padding:0 5px}
#student-form .student-create-grid .persian-date-picker,.student-edit-form .student-edit-grid .persian-date-picker{grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr) minmax(0,1fr);gap:4px;min-width:0}
#student-form .student-create-grid .persian-date-picker select,.student-edit-form .student-edit-grid .persian-date-picker select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding-right:3px;padding-left:3px}
#student-form>.hint{font-size:11px!important;line-height:1.8}
#student-form .form-actions .button,#student-form>#create-class-shortcut{font-size:11px!important}
@media(max-width:1050px){#student-form .student-create-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){#student-form.inline-form{padding:16px}#student-form .student-create-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#student-form .student-create-grid label{font-size:11px!important}#student-form .student-create-grid input,#student-form .student-create-grid select{height:38px;font-size:12px!important}}
@media(max-width:440px){#student-form .student-create-grid{grid-template-columns:1fr}#student-form .student-create-grid .student-address-field{grid-column:1}}
/* Keep every mobile navigation item visible without requiring desktop mode or horizontal scrolling. */
@media(max-width:760px){.side-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible;justify-content:stretch}.side-nav .nav-item{width:auto;min-width:0;min-height:42px;flex:initial;justify-content:flex-start;gap:7px;padding:9px 10px;font-size:12px!important;line-height:1.45;text-align:right}.side-nav .nav-item span{white-space:normal;overflow-wrap:anywhere}}
/* Reserve a full row for each student's name so the teacher controls cannot truncate it. */
#room-participants .participant-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:7px;padding:10px 2px}
#room-participants .participant-avatar{grid-column:1;grid-row:1}
#room-participants .participant-info{grid-column:2;grid-row:1;min-width:0;width:100%}
#room-participants .participant-info strong{font-size:14px!important;line-height:1.5;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
#room-participants .participant-info small{font-size:10px!important;white-space:normal;overflow:visible;text-overflow:clip}
#room-participants .participant-device{grid-column:3;grid-row:1;align-self:center}
#room-participants .grant-mic{grid-column:2/4;grid-row:2;justify-self:start;max-width:100%;font-size:11px!important}
#room-participants .grant-present{grid-column:2/4;grid-row:3;justify-self:start;max-width:100%;min-height:23px;margin-top:-6px;padding:4px 7px;font-size:8px!important}
#room-participants .participant-media-host{grid-column:1/-1;flex:initial;min-width:0;padding:0}
#student-policy-notice{font-size:12px!important;line-height:1.7}
.teacher-avatar img{display:block;width:84%;height:84%;border-radius:50%;object-fit:contain;background:#fff;padding:5px}
.stage-speaker-avatar img{display:block;width:80%;height:80%;border-radius:9px;object-fit:contain;background:#fff;padding:2px}
@media(max-width:680px){#student-policy-notice{font-size:11px!important;line-height:1.65;padding:8px 9px}}

/* Open up the manager overview and keep the mobile navigation in a right-side drawer. */
#app-view .welcome-copy h1{font-size:clamp(23px,1.8vw,29px);line-height:1.55}
#app-view .welcome-copy .muted{font-size:13px;line-height:1.9}
#app-view .metrics .metric{min-height:98px;padding:17px 16px;gap:14px}
#app-view .metrics .metric>div>span{font-size:12px;line-height:1.7}
#app-view .metrics .metric>div>strong{font-size:21px}
.mobile-nav-toggle,.mobile-nav-backdrop{display:none}
@media(max-width:760px){
  .mobile-nav-toggle{display:grid;place-items:center;flex:none;width:39px;height:39px;border:1px solid #dbeae0;border-radius:12px;background:#f0f8f3;color:#087650;font-size:20px;line-height:1}
  #app-view .topbar{gap:8px}
  #app-view .brand{min-width:0}
  .mobile-nav-backdrop:not([hidden]){display:block;position:fixed;z-index:109;inset:64px 0 0;border:0;background:#102b2080;backdrop-filter:blur(2px)}
  #app-view .side-nav{position:fixed!important;z-index:110;top:64px!important;right:0;bottom:0;width:min(84vw,320px);max-height:none!important;height:calc(100dvh - 64px);margin:0;padding:12px 10px calc(18px + env(safe-area-inset-bottom));display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px;overflow-x:hidden!important;overflow-y:auto!important;border-radius:18px 0 0 0;box-shadow:-14px 0 40px #0b2b1a30;transform:translateX(105%);transition:transform .24s ease;overscroll-behavior:contain}
  #app-view.mobile-nav-open .side-nav{transform:translateX(0)}
  #app-view .side-nav .nav-item{display:flex;width:100%;min-height:49px;flex:none;justify-content:flex-start;gap:10px;padding:7px 10px!important;font-size:13px!important;text-align:right;line-height:1.55}
  #app-view .side-nav .nav-item span{white-space:normal;overflow-wrap:anywhere}
  #app-view .side-nav .nav-icon{width:34px;height:34px;flex:none}
  #app-view .side-nav .classroom-sidebar-tools{width:100%;grid-column:auto}
  #app-view .side-nav .classroom-sidebar-tools[hidden]{display:none}
  #app-view .metrics .metric{min-height:86px;padding:13px 12px}
  #app-view .metrics .metric>div>span{font-size:10px}
  #app-view .metrics .metric>div>strong{font-size:18px}
}
@media(prefers-reduced-motion:reduce){#app-view .side-nav{transition:none}}

/* Compact YouTube-style controls and teacher label in the live video stage. */
.video-player-controls{left:12px;bottom:12px;gap:7px;padding:5px;border-radius:14px;background:linear-gradient(0deg,#071d19a8,transparent);}
.video-control-button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #ffffff38;border-radius:50%;background:#071d19d9;color:#fff;font-size:18px;line-height:1;cursor:pointer;backdrop-filter:blur(10px);transition:background .15s,transform .15s}
.video-control-button:hover{background:#16815ee8;transform:scale(1.04)}
.video-control-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.classroom-fullscreen{position:static;width:36px;height:36px}
.video-quality-wrap{position:relative}
.video-quality-menu{position:absolute;left:0;bottom:calc(100% + 8px);z-index:10;display:grid;gap:7px;min-width:165px;padding:11px;border:1px solid #ffffff26;border-radius:12px;background:#071d19ed;color:#f5faf7;box-shadow:0 12px 30px #0006;backdrop-filter:blur(14px);direction:rtl}
.video-quality-menu[hidden]{display:none}
.video-quality-menu label{font-size:10px;font-weight:700}
.video-quality-menu select{width:100%;min-height:34px;border:1px solid #ffffff38;border-radius:8px;padding:4px 8px;background:#fff;color:#213c31;font-size:11px}
#live-class-panel .stage-lower-third{right:9px;bottom:9px;gap:6px;max-width:min(205px,52%);padding:5px 8px 5px 6px;border-radius:11px}
#live-class-panel .stage-speaker-avatar{width:27px;height:27px;border-radius:8px;font-size:11px}
#live-class-panel .stage-speaker-avatar img{padding:1px}
#live-class-panel .stage-lower-third strong{font-size:9px;line-height:1.3}
#live-class-panel .stage-lower-third small{margin-top:2px;font-size:7px;line-height:1.35}
@media(max-width:680px){.video-player-controls{left:8px;bottom:8px;gap:5px}.video-control-button,.classroom-fullscreen{width:33px;height:33px;font-size:16px}.video-quality-menu{min-width:150px;padding:9px}#live-class-panel .stage-lower-third{right:7px;bottom:7px;max-width:52%;padding:4px 6px}.video-quality-menu label{font-size:9px}}
.lesson-stage{position:relative;isolation:isolate;contain:paint;overflow:hidden;min-width:0;width:100%}
#local-camera-preview,#remote-teacher-preview{position:absolute!important;inset:auto!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(62%,520px)!important;height:calc(100% - 100px)!important;max-width:calc(100% - 32px)!important;max-height:calc(100% - 100px)!important;object-fit:contain!important;object-position:center center!important;background:transparent!important;border-radius:14px}
.video-player-controls{position:absolute;z-index:7;left:13px;bottom:13px;display:flex;align-items:center;gap:7px;direction:ltr}
.classroom-quality-control{display:flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid #ffffff35;border-radius:10px;background:#08271fbd;color:#e8f5ed;font-size:10px;backdrop-filter:blur(8px)}
.classroom-quality-control select{max-width:130px;min-height:28px;border:0;border-radius:7px;padding:2px 6px;background:#ffffffef;color:#244538;font:inherit;font-size:10px}
.classroom-fullscreen{position:static;flex:none;width:38px;height:38px;border:1px solid #ffffff48;border-radius:10px;background:#08271fbd;color:white;font-size:23px;line-height:1;cursor:pointer;backdrop-filter:blur(8px)}
.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:auto;top:50%;left:50%;right:auto;bottom:auto;width:min(86%,1100px);height:calc(100% - 100px);transform:translate(-50%,-50%);object-fit:contain}
.participant-activity{display:inline-grid;place-items:center;min-width:19px;height:19px;margin-right:4px;padding:0 4px;border-radius:7px;background:#eaf5ee;color:#16845e;font-size:12px;vertical-align:middle}
.participant-activity.speaking{background:#e4f5eb;color:#0a9c69;animation:participant-speaking-pulse 1s infinite alternate}
.participant-activity.typing{background:#eef1ff;color:#576fca}
@keyframes participant-speaking-pulse{to{box-shadow:0 0 0 4px #2bb77a22}}
.avatar{position:relative;overflow:hidden}
#user-avatar-photo{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;object-fit:cover}
.profile-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:980px}
.profile-photo-card{display:flex;align-items:center;gap:18px;min-width:0;padding:22px;border:1px solid #deebe3;border-radius:18px;background:linear-gradient(135deg,#fff,#f5fbf7);box-shadow:0 12px 32px #234a3410}
.profile-photo-card>img{width:112px;height:112px;border:3px solid #e6f4ec;border-radius:50%;object-fit:cover;background:#f3f8f5}
.profile-photo-card>div{display:grid;justify-items:start;gap:8px}
.profile-photo-card>div strong{color:#244538;font-size:18px}
.profile-photo-card>div small{color:#728378}
.profile-account-card{display:flex;align-items:flex-start;gap:15px;min-width:0;padding:22px;border:1px solid #deebe3;border-radius:18px;background:#fff;box-shadow:0 12px 32px #234a3410}
.profile-account-icon{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:15px;background:#e7f5ed;color:#14926a;font-size:22px}
.profile-account-card>div{display:grid;gap:13px;min-width:0;width:100%}
.profile-account-card>div>strong{color:#244538;font-size:17px}
.profile-account-card dl{display:grid;gap:9px;margin:0}
.profile-account-card dl>div{display:flex;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px solid #edf2ee}
.profile-account-card dt{color:#718178}
.profile-account-card dd{margin:0;color:#283d32;font-weight:700;overflow-wrap:anywhere}
.profile-password-card{grid-column:1/-1;display:grid;gap:16px;min-width:0;padding:20px;border:1px solid #deebe3;border-radius:18px;background:linear-gradient(145deg,#fbfefc,#f4faf6);box-shadow:0 12px 32px #234a3410}
.profile-password-heading{display:flex;align-items:center;gap:12px;color:#294737}
.profile-password-heading>div{display:grid;gap:5px}
.profile-password-heading strong{font-size:15px}
.profile-password-heading small{color:#728378;font-size:10px;line-height:1.7}
.profile-password-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:10px}
.profile-password-form label{display:grid;gap:6px;min-width:0;color:#52675a;font-size:11px;font-weight:700}
.profile-password-form label[hidden],#login-password-national-wrap[hidden]{display:none}
.profile-password-form input{width:100%;min-height:40px;padding:8px 10px;border:1px solid #dce8df;border-radius:10px;background:#fff;color:#263d31;font:inherit;font-weight:400}
.profile-password-form input[name="nationalId"]{direction:ltr;text-align:right}
.profile-password-form .button{min-height:40px;white-space:nowrap}
.super-admin-create-card{grid-column:1/-1;display:grid;gap:15px;min-width:0;padding:20px;border:1px solid #d9e9df;border-radius:18px;background:linear-gradient(145deg,#f8fcf9,#edf7f0);box-shadow:0 12px 32px #234a3410}
.super-admin-create-card[hidden]{display:none!important}
.super-admin-create-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:10px}
.super-admin-create-form label{display:grid;gap:6px;min-width:0;color:#52675a;font-size:11px;font-weight:700}
.super-admin-create-form input{width:100%;min-height:40px;padding:8px 10px;border:1px solid #dce8df;border-radius:10px;background:#fff;color:#263d31;font:inherit;font-weight:400}
.super-admin-create-form input[name="nationalId"]{direction:ltr;text-align:right}
.super-admin-create-form .button{min-height:40px;white-space:nowrap}
.student-record-identity{display:flex;align-items:center;gap:10px;min-width:0}
.student-record-avatar{position:relative;display:grid;place-items:center;flex:none;width:42px;height:42px;overflow:hidden;border-radius:13px;background:#eaf5ef;color:#13896a;font-weight:800}
.student-record-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.participant-avatar{position:relative;overflow:hidden}
.participant-avatar img{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;object-fit:cover}
@media(max-width:760px){.profile-settings-grid{grid-template-columns:1fr}}
@media(max-width:680px){.profile-photo-card,.profile-account-card{gap:13px;padding:16px}.profile-password-card,.super-admin-create-card{padding:16px}.profile-password-form,.super-admin-create-form{grid-template-columns:1fr}.profile-photo-card>img{width:84px;height:84px}.profile-photo-card>div strong{font-size:15px!important}.student-record-avatar{width:36px;height:36px}}

/* Keep each live participant in a separate Skype-style tile. */
#live-class-panel .classroom-video-grid{position:absolute;z-index:1;inset:52px 15px 50px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));grid-auto-rows:minmax(120px,1fr);align-content:center;align-items:stretch;gap:9px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff55 transparent}
#live-class-panel .classroom-remote-video-tiles{display:contents}
#live-class-panel .classroom-video-tile{position:relative;isolation:isolate;min-width:0;min-height:120px;aspect-ratio:16/9;max-height:100%;overflow:hidden;border:1px solid #ffffff38;border-radius:14px;background:linear-gradient(145deg,#153e35,#102b2d);box-shadow:0 8px 24px #041c1850}
#live-class-panel .classroom-video-tile[hidden]{display:none!important}
#live-class-panel .classroom-video-tile .teacher-camera-placeholder{position:absolute;z-index:1;inset:0;display:grid;align-content:center;justify-items:center;gap:5px;padding:8px;text-align:center}
#live-class-panel .classroom-video-tile .teacher-camera-placeholder[hidden]{display:none!important}
#live-class-panel .classroom-video-tile .teacher-avatar{width:58px;height:58px;border-width:2px;font-size:25px}
#live-class-panel .classroom-video-tile .teacher-camera-placeholder strong{font-size:12px}
#live-class-panel .classroom-video-tile .teacher-camera-placeholder>span{font-size:9px}
#live-class-panel .classroom-video-tile #local-camera-preview,#live-class-panel .classroom-video-tile #remote-teacher-preview,#live-class-panel .classroom-video-tile .classroom-tile-video{position:absolute!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;transform:none!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:inherit!important;object-fit:contain!important;object-position:center!important;background:#0a201f!important}
#live-class-panel .lesson-stage.remote-screen-sharing{background:#000!important}
#live-class-panel .lesson-stage.remote-screen-sharing .classroom-video-grid{inset:0!important;display:block!important;overflow:hidden!important;background:#000!important}
#live-class-panel .lesson-stage.remote-screen-sharing #teacher-video-tile{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;border:0!important;border-radius:0!important;background:#000!important;box-shadow:none!important}
#live-class-panel .lesson-stage.remote-screen-sharing #local-video-tile,#live-class-panel .lesson-stage.remote-screen-sharing #classroom-remote-video-tiles{display:none!important}
#live-class-panel .lesson-stage.remote-screen-sharing #remote-teacher-preview{object-fit:contain!important;background:#000!important}
#live-class-panel .lesson-stage.remote-screen-sharing.screen-fit-cover #remote-teacher-preview{object-fit:cover!important}
#live-class-panel .lesson-stage.remote-screen-sharing .teacher-camera-placeholder{background:#000!important}
#live-class-panel .classroom-video-label{position:absolute;z-index:2;right:8px;bottom:7px;max-width:calc(100% - 16px);overflow:hidden;padding:4px 8px;border:1px solid #ffffff24;border-radius:8px;background:#071e1bd9;color:#f3faf6;font-size:9px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;backdrop-filter:blur(6px)}
#live-class-panel .classroom-tile-avatar{position:absolute;inset:0;display:grid;place-items:center;color:#ddf4e7;font-size:33px;font-weight:800;background:radial-gradient(circle at center,#368567 0,#183e36 55%,#102b2d 100%)}
#live-class-panel .classroom-tile-avatar[hidden]{display:none!important}
#live-class-panel #shared-screen-preview{z-index:3}
@media(max-width:680px){#live-class-panel .classroom-video-grid{inset:49px 9px 47px;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));grid-auto-rows:minmax(105px,1fr);gap:6px}#live-class-panel .classroom-video-tile{min-height:105px;border-radius:11px}#live-class-panel .classroom-video-tile .teacher-avatar{width:44px;height:44px;font-size:20px}#live-class-panel .classroom-video-label{right:5px;bottom:5px;padding:3px 6px;font-size:8px}}

/* Put room actions immediately under the video and keep them reachable on phones. */
#live-class-panel .classroom-controls{position:static;inset:auto;z-index:auto;display:flex;align-items:stretch;justify-content:center;flex-wrap:wrap;gap:8px;width:100%;margin:0;padding:9px 11px;border:1px solid #d0e1d6;border-radius:16px;background:#fffffff2;box-shadow:0 8px 20px #173d2a12;backdrop-filter:blur(10px)}
#live-class-panel .classroom-controls [hidden]{display:none!important}
#live-class-panel .classroom-controls .room-control,#live-class-panel .classroom-controls .room-leave{min-width:76px;min-height:52px;padding:7px 10px}
@media(max-width:680px){#live-class-panel .classroom-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px;border-radius:14px}#live-class-panel .classroom-controls .room-control,#live-class-panel .classroom-controls .room-leave{min-width:0;min-height:54px;padding:6px 3px;border-radius:11px}#live-class-panel .classroom-controls .room-control small,#live-class-panel .classroom-controls .room-leave small{font-size:8px}}
#live-class-panel .classroom-leave-bar{display:flex;justify-content:flex-end;padding:0 20px 16px}
#live-class-panel .classroom-leave-bar .room-leave{min-width:124px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;padding:7px 14px}
@media(max-width:680px){#live-class-panel .classroom-leave-bar{justify-content:center;padding:0 12px 14px}#live-class-panel .classroom-leave-bar .room-leave{width:100%;min-height:42px}}
@media(max-width:680px){.appearance-form{padding:15px}.appearance-settings-grid{grid-template-columns:1fr}.video-player-controls{left:10px;bottom:10px;gap:6px}.classroom-quality-control{gap:4px;padding:4px 5px;font-size:9px}.classroom-quality-control select{max-width:105px;font-size:9px}.classroom-fullscreen{width:35px;height:35px;font-size:21px}#local-camera-preview,#remote-teacher-preview{width:min(68%,400px)!important;height:calc(100% - 92px)!important;max-width:calc(100% - 28px)!important;max-height:calc(100% - 92px)!important}}

/* Full-screen classroom: focus the teacher video or put the shared lesson file in its place. */
#live-class-panel:fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;max-width:none!important;max-height:100vh!important;margin:0!important;overflow:hidden!important;border:0!important;border-radius:0!important;background:#000!important;box-shadow:none!important}
#live-class-panel:fullscreen .live-room-header,#live-class-panel:fullscreen .classroom-sidebar,#live-class-panel:fullscreen .lesson-workspace,#live-class-panel:fullscreen .classroom-prototype-note,#live-class-panel:fullscreen .student-away-warning{display:none!important}
#live-class-panel:fullscreen .classroom-layout{position:static!important;display:block!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important}
#live-class-panel:fullscreen .classroom-main{position:static!important;display:block!important;width:100%!important;height:100%!important;gap:0!important}
#live-class-panel:fullscreen .lesson-stage{position:absolute!important;inset:0 0 122px!important;width:100vw!important;height:calc(100vh - 122px)!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;border:0!important;border-radius:0!important;background:#000!important;box-shadow:none!important}
#live-class-panel:fullscreen .classroom-controls{position:absolute!important;left:10px!important;right:10px!important;bottom:55px!important;display:flex!important;flex-wrap:nowrap!important;gap:5px!important;width:auto!important;margin:0!important;padding:5px!important;border-radius:12px!important;z-index:10003!important}
#live-class-panel:fullscreen .classroom-controls .room-control{min-width:0!important;min-height:46px!important;flex:1!important;padding:4px!important}
#live-class-panel:fullscreen .classroom-leave-bar{position:absolute!important;left:10px!important;right:10px!important;bottom:4px!important;display:flex!important;justify-content:flex-end!important;padding:0!important;z-index:10003!important}
#live-class-panel:fullscreen .classroom-leave-bar .room-leave{min-width:132px!important;min-height:44px!important}
#lesson-stage:fullscreen{position:absolute!important;inset:0!important;width:100vw!important;height:100vh!important;min-height:0!important;max-height:100vh!important;aspect-ratio:auto!important;border:0!important;border-radius:0!important;background:#000!important;box-shadow:none!important}
#live-class-panel:fullscreen .lesson-stage:after,#lesson-stage:fullscreen:after{display:none!important}
#live-class-panel:fullscreen .lesson-stage.remote-screen-sharing.screen-fit-cover #teacher-video-tile #remote-teacher-preview{object-fit:cover!important}
#live-class-panel:fullscreen .lesson-stage.remote-screen-sharing #teacher-video-tile #remote-teacher-preview{background:#000!important}
#live-class-panel:fullscreen .fullscreen-content-toggle,#lesson-stage:fullscreen .fullscreen-content-toggle{width:auto!important;min-width:82px;padding:0 11px!important;font-size:10px!important}
#live-class-panel:fullscreen .file-presentation-screen.stage-fullscreen-file,#lesson-stage:fullscreen .file-presentation-screen.stage-fullscreen-file{position:absolute!important;inset:0!important;z-index:8!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;width:100%!important;height:100%!important;min-height:0!important;padding:9px!important;border-radius:0!important;background:#111!important}
#live-class-panel:fullscreen .file-presentation-screen.stage-fullscreen-file .file-presentation-canvas,#lesson-stage:fullscreen .file-presentation-screen.stage-fullscreen-file .file-presentation-canvas{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;padding:8px!important;border-radius:9px!important}
#live-class-panel:fullscreen .file-presentation-screen.stage-fullscreen-file .file-presentation-canvas iframe,#lesson-stage:fullscreen .file-presentation-screen.stage-fullscreen-file .file-presentation-canvas iframe{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
#live-class-panel:fullscreen .file-presentation-screen.stage-fullscreen-file .file-presentation-canvas>img,#live-class-panel:fullscreen .file-presentation-screen.stage-fullscreen-file .file-presentation-canvas>video,#lesson-stage:fullscreen .file-presentation-screen.stage-fullscreen-file .file-presentation-canvas>img,#lesson-stage:fullscreen .file-presentation-screen.stage-fullscreen-file .file-presentation-canvas>video{max-width:100%!important;max-height:100%!important;object-fit:contain!important}
#live-class-panel:fullscreen .lesson-stage.fullscreen-view-file .stage-topline,#live-class-panel:fullscreen .lesson-stage.fullscreen-view-file .stage-lower-third,#live-class-panel:fullscreen .lesson-stage.fullscreen-view-file .video-player-controls,#live-class-panel:fullscreen .lesson-stage.fullscreen-view-file .classroom-caption,#lesson-stage:fullscreen.fullscreen-view-file .stage-topline,#lesson-stage:fullscreen.fullscreen-view-file .stage-lower-third,#lesson-stage:fullscreen.fullscreen-view-file .video-player-controls,#lesson-stage:fullscreen.fullscreen-view-file .classroom-caption{visibility:hidden!important}
@media(max-width:680px){#live-class-panel:fullscreen .file-presentation-screen.stage-fullscreen-file,#lesson-stage:fullscreen .file-presentation-screen.stage-fullscreen-file{padding:5px!important}#live-class-panel:fullscreen .file-presentation-screen.stage-fullscreen-file .file-presentation-toolbar,#lesson-stage:fullscreen .file-presentation-screen.stage-fullscreen-file .file-presentation-toolbar{gap:5px;padding:6px!important}#live-class-panel:fullscreen .file-presentation-screen.stage-fullscreen-file .file-presentation-actions,#lesson-stage:fullscreen .file-presentation-screen.stage-fullscreen-file .file-presentation-actions{flex-direction:row!important;flex-wrap:wrap;gap:4px!important}#live-class-panel:fullscreen .file-presentation-screen.stage-fullscreen-file .file-toolbar-button,#lesson-stage:fullscreen .file-presentation-screen.stage-fullscreen-file .file-toolbar-button{min-height:30px;padding:5px 7px!important;font-size:8px!important}}

/* In browsers without the Fullscreen API, expand the whole room instead of one video. */
body.classroom-fallback-fullscreen{overflow:hidden!important}
#live-class-panel.classroom-fallback-fullscreen{position:fixed!important;z-index:20000!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:100vh!important;max-height:100dvh!important;margin:0!important;overflow:hidden!important;border:0!important;border-radius:0!important;background:#000!important;box-shadow:none!important}
#live-class-panel.classroom-fallback-fullscreen .live-room-header,#live-class-panel.classroom-fallback-fullscreen .classroom-sidebar,#live-class-panel.classroom-fallback-fullscreen .lesson-workspace,#live-class-panel.classroom-fallback-fullscreen .classroom-prototype-note,#live-class-panel.classroom-fallback-fullscreen .student-away-warning{display:none!important}
#live-class-panel.classroom-fallback-fullscreen .classroom-layout,#live-class-panel.classroom-fallback-fullscreen .classroom-main{position:static!important;display:block!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;gap:0!important}
#live-class-panel.classroom-fallback-fullscreen .lesson-stage{position:absolute!important;inset:0 0 122px!important;width:100vw!important;height:calc(100vh - 122px)!important;height:calc(100dvh - 122px)!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;border:0!important;border-radius:0!important;background:#000!important;box-shadow:none!important}
#live-class-panel.classroom-fallback-fullscreen .classroom-controls{position:absolute!important;left:10px!important;right:10px!important;bottom:55px!important;display:flex!important;flex-wrap:nowrap!important;gap:5px!important;width:auto!important;margin:0!important;padding:5px!important;border-radius:12px!important;z-index:10003!important}
#live-class-panel.classroom-fallback-fullscreen .classroom-controls .room-control{min-width:0!important;min-height:46px!important;flex:1!important;padding:4px!important}
#live-class-panel.classroom-fallback-fullscreen .classroom-leave-bar{position:absolute!important;left:10px!important;right:10px!important;bottom:4px!important;display:flex!important;justify-content:flex-end!important;padding:0!important;z-index:10003!important}
#live-class-panel.classroom-fallback-fullscreen .classroom-leave-bar .room-leave{min-width:132px!important;min-height:44px!important}
#live-class-panel.classroom-fallback-fullscreen .file-presentation-screen.stage-fullscreen-file{position:absolute!important;inset:0!important;z-index:8!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;width:100%!important;height:100%!important;min-height:0!important;padding:9px!important;border-radius:0!important;background:#111!important}
#live-class-panel.classroom-fallback-fullscreen .file-presentation-screen.stage-fullscreen-file .file-presentation-canvas{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;padding:8px!important;border-radius:9px!important}

/* Final classroom polish and compact whiteboard actions */
#live-class-panel{overflow:hidden;border:1px solid #cfe1d5;border-radius:27px;background:linear-gradient(150deg,#f9fcfa 0%,#eef6f1 54%,#eaf3ed 100%);box-shadow:0 22px 58px #183a2a18,inset 0 1px #ffffff}
#live-class-panel .live-room-header{border-top:3px solid #178660;background:linear-gradient(112deg,#fff 0%,#fbfdfb 50%,#e7f4eb 100%)}
#live-class-panel .classroom-layout{background:radial-gradient(ellipse at 22% 0%,#ffffffb0 0,transparent 42%)}
#live-class-panel .lesson-stage{border:2px solid #8dbda0;border-radius:23px;box-shadow:0 20px 42px #103b2a28,inset 0 1px #ffffff80}
#live-class-panel .lesson-stage:before{content:"";position:absolute;z-index:2;inset:8px;border:1px solid #ffffff45;border-radius:16px;pointer-events:none}
#live-class-panel .lesson-workspace{border:1px solid #d7e6dc;border-radius:19px;box-shadow:0 12px 28px #173d2a0d}
#live-class-panel .room-people-card,#live-class-panel .room-chat-card{border:1px solid #d8e6dd;border-radius:19px;box-shadow:0 12px 27px #173d2a0c}
#live-class-panel .classroom-controls{border:1px solid #d0e1d6;background:#fffffff2;box-shadow:0 16px 38px #173d2a1b}
#clear-lesson-board{min-height:27px;padding:4px 8px;font-size:9px!important;line-height:1.25}
@media(max-width:680px){#live-class-panel{border-radius:19px}#live-class-panel .lesson-stage{border-radius:18px}#live-class-panel .lesson-stage:before{inset:6px;border-radius:13px}#clear-lesson-board{min-height:25px;padding:4px 6px;font-size:8px!important}}

/* Polished controls beneath the classroom video */
#live-class-panel .classroom-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr));align-items:stretch;justify-content:initial;gap:9px;width:100%;margin:0;padding:12px;border:1px solid #d6e7dc;border-radius:19px;background:linear-gradient(145deg,#fff 0%,#f5faf7 100%);box-shadow:0 12px 28px #183d2b12}
#live-class-panel .classroom-controls .room-control{position:relative;display:flex;min-width:0;min-height:72px;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px 5px;border:1px solid #e0ebe4;border-radius:15px;background:linear-gradient(180deg,#fff,#fbfdfb);color:#52665b;box-shadow:0 3px 8px #183d2b08;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
#live-class-panel .room-control-icon{position:relative;display:grid;width:37px;height:37px;place-items:center;border:1px solid #e3eee7;border-radius:12px;background:linear-gradient(145deg,#f4f8f5,#eaf3ed);color:#43836a;box-shadow:inset 0 1px #fff}
#live-class-panel .room-control-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#live-class-panel .room-control-cc{font-size:12px;font-weight:800;letter-spacing:-.5px}
#live-class-panel .classroom-controls .room-control small{color:inherit;font-size:9px;font-weight:700;line-height:1.2;white-space:nowrap}
#live-class-panel .classroom-controls .room-control:hover:not(:disabled){transform:translateY(-2px);border-color:#b8d9c5;box-shadow:0 8px 17px #1a583b12}
#live-class-panel .classroom-controls .room-control.active{border-color:#a9d7bc;background:linear-gradient(145deg,#effaf3,#e4f5ea);color:#087d58;box-shadow:0 0 0 2px #16815e10,0 6px 15px #16815e12}
#live-class-panel .classroom-controls .room-control.active .room-control-icon{border-color:#b8e2c7;background:linear-gradient(145deg,#dff4e7,#c9ead6);color:#087d58}
#live-class-panel .classroom-controls #room-hand-control.active{border-color:#efd89f;background:linear-gradient(145deg,#fff9e9,#fff3d4);color:#946511}
#live-class-panel .classroom-controls #room-hand-control.active .room-control-icon{border-color:#f1dda9;background:#fff0c6;color:#946511}
#live-class-panel .classroom-controls .room-control.permission-locked .room-control-icon:after{content:"🔒";position:absolute;top:-6px;right:-7px;display:grid;width:17px;height:17px;place-items:center;border:1px solid #fff;border-radius:50%;background:#f0f3f1;font-size:9px;line-height:1;box-shadow:0 1px 4px #172d2222}
#live-class-panel .classroom-controls .room-control[aria-disabled="true"]:not(:disabled){color:#89968f}
#live-class-panel .classroom-controls .room-control:disabled{opacity:.5;filter:grayscale(.35);cursor:not-allowed;box-shadow:none}
#live-class-panel .classroom-controls .room-control:focus-visible{outline:3px solid #81c9a0;outline-offset:2px}
@media(max-width:680px){#live-class-panel .classroom-controls{grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:7px;padding:9px;border-radius:16px}#live-class-panel .classroom-controls .room-control{min-height:68px;padding:7px 3px;border-radius:13px}#live-class-panel .room-control-icon{width:34px;height:34px;border-radius:11px}#live-class-panel .room-control-icon svg{width:19px;height:19px}#live-class-panel .classroom-controls .room-control small{font-size:8px}}

/* Clean, equal participant tiles for teacher and student views. */
#live-class-panel .classroom-video-grid{inset:48px 14px 48px;grid-template-columns:1fr;grid-auto-rows:minmax(0,1fr);align-content:stretch;justify-items:stretch;gap:10px;padding:0}
#live-class-panel .lesson-stage.multi-video .classroom-video-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
#live-class-panel .classroom-video-tile{width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;border:1px solid #ffffff4d;border-radius:17px;background:#102a2b;box-shadow:0 10px 28px #041b1840}
#live-class-panel .classroom-video-tile #local-camera-preview,#live-class-panel .classroom-video-tile #remote-teacher-preview,#live-class-panel .classroom-video-tile .classroom-tile-video{object-fit:cover!important;object-position:center!important;background:#102a2b!important}
#live-class-panel .classroom-video-tile.is-speaking{border-color:#60e2a5;box-shadow:0 0 0 2px #60e2a577,0 0 24px #36c98455}
#live-class-panel .classroom-video-tile.is-speaking:after{content:"";position:absolute;z-index:3;top:10px;left:10px;width:9px;height:9px;border:2px solid #eafff2;border-radius:50%;background:#39cf82;box-shadow:0 0 0 4px #39cf8240}
#live-class-panel .lesson-stage.remote-screen-sharing #remote-teacher-preview{object-fit:contain!important}
#live-class-panel .lesson-stage.remote-screen-sharing.screen-fit-cover #remote-teacher-preview{object-fit:cover!important}
@media(max-width:680px){#live-class-panel .classroom-video-grid{inset:52px 9px 48px;gap:7px}#live-class-panel .lesson-stage.multi-video .classroom-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}#live-class-panel .classroom-video-tile{border-radius:12px}#live-class-panel .classroom-video-tile.is-speaking:after{top:7px;left:7px;width:7px;height:7px}}

/* Show only cameras that are actually live; split the stage evenly as students join. */
#live-class-panel .lesson-stage[data-video-count="1"] .classroom-video-grid{grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr)}
#live-class-panel .lesson-stage[data-video-count="2"] .classroom-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}
#live-class-panel .lesson-stage[data-video-count="3"] .classroom-video-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}
#live-class-panel .lesson-stage[data-video-count="4"] .classroom-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}
#live-class-panel .lesson-stage[data-video-count="many"] .classroom-video-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}
#live-class-panel .lesson-stage:not(.camera-on):not(.has-student-video) .classroom-video-grid{inset:0}
#live-class-panel .lesson-stage:not(.camera-on):not(.has-student-video) #teacher-video-tile{border-color:transparent;background:transparent;box-shadow:none}
#live-class-panel .lesson-stage:not(.camera-on):not(.has-student-video) #teacher-video-tile .teacher-camera-placeholder{background:transparent}
@media(max-width:680px){#live-class-panel .lesson-stage[data-video-count="3"] .classroom-video-grid,#live-class-panel .lesson-stage[data-video-count="4"] .classroom-video-grid,#live-class-panel .lesson-stage[data-video-count="many"] .classroom-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}}

/* Camera tiles always share the stage; enabling a student's camera never creates a full-stage preview. */
#live-class-panel .lesson-stage:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-grid{position:absolute;inset:52px 14px 48px;display:grid;align-content:stretch;align-items:stretch;justify-items:stretch;gap:8px;overflow:hidden}
#live-class-panel .lesson-stage:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-tile:not([hidden]){position:relative!important;inset:auto!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;border-radius:14px}
#live-class-panel .lesson-stage:not(.remote-screen-sharing):not(.smart-board-active) #teacher-video-tile{display:block}
#live-class-panel .lesson-stage[data-video-count="1"]:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
#live-class-panel .lesson-stage[data-video-count="2"]:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
#live-class-panel .lesson-stage[data-video-count="3"]:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
#live-class-panel .lesson-stage[data-video-count="4"]:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
#live-class-panel .lesson-stage[data-video-count="many"]:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}
@media(max-width:680px){#live-class-panel .lesson-stage:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-grid{inset:52px 9px 48px;gap:6px}#live-class-panel .lesson-stage[data-video-count="3"]:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-grid,#live-class-panel .lesson-stage[data-video-count="4"]:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-grid,#live-class-panel .lesson-stage[data-video-count="many"]:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}}

/* Show the teacher name only when every camera is off; remove the empty green teacher tile beside live student cameras. */
#live-class-panel .lesson-stage #teacher-video-tile[hidden]{display:none!important}
#live-class-panel .lesson-stage:not(.has-teacher-video):not(.has-teacher-placeholder) #teacher-video-tile{display:none!important}
#live-class-panel .lesson-stage:not(.has-teacher-video):not(.has-teacher-placeholder) .stage-lower-third{display:none!important}

/* Keep the roster and media-permission controls compact while preserving readable names. */
#live-class-panel .room-card-heading{min-height:48px;padding:9px 11px;gap:6px}
#live-class-panel .room-card-heading strong{font-size:12px!important}
#live-class-panel .room-card-heading small{font-size:9px!important;margin-top:2px}
#live-class-panel .roster-heading-actions{gap:4px}
#live-class-panel .roster-heading-actions .small-control{padding:5px 6px;font-size:8px!important;line-height:1.35}
#live-class-panel .mic-policy-control{gap:4px;margin:7px 9px;padding:8px;border-radius:10px}
#live-class-panel .mic-policy-control label{font-size:11px!important}
#live-class-panel .mic-policy-control select{height:32px;font-size:10px!important;padding:0 7px}
#live-class-panel .mic-policy-control>small{font-size:9px!important;line-height:1.55}
#live-class-panel .room-participants{max-height:280px;padding:2px 10px 7px}
#live-class-panel #room-participants .participant-row{grid-template-columns:30px minmax(0,1fr) auto;gap:5px;padding:7px 1px}
#live-class-panel #room-participants .participant-avatar{width:30px;height:30px;border-radius:10px;font-size:11px}
#live-class-panel #room-participants .participant-info strong{font-size:12px!important;line-height:1.4}
#live-class-panel #room-participants .participant-info small{font-size:9px!important;line-height:1.4}
#live-class-panel #room-participants .participant-device{font-size:8px}
#live-class-panel #room-participants .grant-mic{padding:5px 7px;font-size:9px!important;line-height:1.35}
#live-class-panel #room-participants .grant-present{min-height:21px;margin-top:-5px;padding:3px 6px;font-size:8px!important;line-height:1.35}
#live-class-panel .lesson-stage[data-video-count="many"]:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:minmax(62px,1fr);align-content:start;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#91b9a5 #ffffff1a}
#live-class-panel .lesson-stage[data-video-count="many"]:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-tile{min-width:0;min-height:62px;border-radius:10px}
#live-class-panel .classroom-video-tile.is-speaking:after{content:"🔊";top:auto;right:auto;bottom:7px;left:7px;width:24px;height:21px;border:1px solid #eafff2aa;border-radius:8px;background:#05271fd9;box-shadow:0 2px 7px #0005;font-size:11px;line-height:1}
/* Reduce the speaker marker footprint while the icon style is being selected. */
#live-class-panel .classroom-video-tile.is-speaking:after{bottom:6px;left:6px;width:18px;height:16px;border:0;border-radius:5px;box-shadow:none;font-size:9px}
/* Selected option 1: a simple mint speaker symbol, with no badge, border, or dark background. */
#live-class-panel .classroom-video-tile.is-speaking:after{content:"";bottom:6px;left:6px;width:20px;height:18px;border:0;border-radius:0;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l6 4V5L7 9H3Z' fill='none' stroke='%238ce0b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 9a5 5 0 0 1 0 6m3-9a9 9 0 0 1 0 12' fill='none' stroke='%238ce0b5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;box-shadow:none;font-size:0}
@media(max-width:900px){#live-class-panel .lesson-stage[data-video-count="many"]:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:680px){#live-class-panel .lesson-stage[data-video-count="many"]:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(58px,auto);align-content:start}#live-class-panel .lesson-stage[data-video-count="many"]:not(.remote-screen-sharing):not(.smart-board-active) .classroom-video-tile{min-height:58px;border-radius:8px}#live-class-panel .classroom-video-tile.is-speaking:after{bottom:5px;left:5px;width:21px;height:19px;font-size:10px}}

/* Smart board replaces the green video stage; note entry remains below. */
#live-class-panel .smart-board-room-control .room-control-icon{font-size:19px;font-weight:800;color:#16815e}
#live-class-panel .smart-board-room-control.active{background:#e4f5eb;border-color:#b8e0c8;color:#0b7552}
#live-class-panel .smart-board-room-control:disabled{opacity:.7}
#live-class-panel .lesson-stage.smart-board-active{min-height:clamp(340px,42vw,640px);aspect-ratio:16/10;background:#fff}
#live-class-panel .lesson-stage>.file-presentation-screen{position:absolute;z-index:8;inset:6px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:6px;width:auto;height:auto;min-height:0;max-height:none;padding:7px;border:1px solid #dfe8e2;border-radius:15px;background:#fff;box-shadow:0 8px 22px #041b181a}
#live-class-panel .lesson-stage>.file-presentation-screen[hidden]{display:none!important}
#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-toolbar{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;padding:5px 7px;border:1px solid #e1eae4;border-radius:10px;background:#fffffff5}
#live-class-panel .lesson-stage>.file-presentation-screen .presented-file-heading{min-width:0;gap:6px}
#live-class-panel .lesson-stage>.file-presentation-screen .presented-file-heading>span:last-child{min-width:0}
#live-class-panel .lesson-stage>.file-presentation-screen .presented-file-heading strong{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
#live-class-panel .lesson-stage>.file-presentation-screen .presented-file-heading small{font-size:7px}
#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px;min-width:0}
#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-actions>.file-toolbar-button{min-height:27px;padding:4px 7px;font-size:8px}
#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-canvas{position:relative;min-height:0;height:100%;max-height:none;padding:4px;border:1px solid #dce7df;border-radius:10px;background:#fff;overflow:auto}
#live-class-panel .lesson-stage>.file-presentation-screen.smart-board-blank .file-presentation-canvas{background:#fff;border-color:#edf1ee}
#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-canvas iframe{width:100%;height:100%;min-height:0;max-height:none;border:0}
#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-canvas>img,#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-canvas>video{max-width:100%;max-height:100%;object-fit:contain}
#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-canvas>pre,#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-canvas>.presented-office{width:100%;min-height:100%;margin:0}
#live-class-panel .smart-board-camera-preview{position:absolute;z-index:12;top:10px;left:10px;right:auto;width:min(22%,150px);min-width:90px;aspect-ratio:4/3;height:auto;max-height:112px;border:2px solid #fff;border-radius:11px;background:#102b27;object-fit:cover;box-shadow:0 7px 18px #071b1870;pointer-events:none}
#live-class-panel .smart-board-camera-preview[hidden]{display:none!important}
#live-class-panel .publish-file-button{border-color:#13885e!important;background:linear-gradient(135deg,#17845e,#0c6f50)!important;color:#fff!important;font-weight:800}
#live-class-panel .lesson-board-default{gap:9px}
#live-class-panel .lesson-board-canvas{min-height:130px;resize:vertical;font-size:13px}
#live-class-panel #lesson-drawing-canvas[hidden],#live-class-panel .drawing-tools[hidden],#live-class-panel .file-drawing-tools[hidden]{display:none!important}
#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-canvas>[hidden]{display:none!important}
#live-class-panel #clear-lesson-board{margin-right:auto}
@media(max-width:680px){#live-class-panel .lesson-stage.smart-board-active{min-height:390px;aspect-ratio:4/5}#live-class-panel .lesson-stage>.file-presentation-screen{inset:4px;gap:5px;padding:5px;border-radius:12px}#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-toolbar{align-items:flex-start;padding:4px;gap:4px}#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-actions{flex-direction:row;justify-content:flex-end;gap:3px}#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-actions>.file-toolbar-button{min-height:25px;padding:3px 5px;font-size:7px}#live-class-panel .lesson-stage>.file-presentation-screen .presented-file-heading strong{max-width:90px;font-size:8px}#live-class-panel .smart-board-camera-preview{top:8px;left:8px;right:auto;width:25%;min-width:76px;max-height:78px;border-radius:8px}#live-class-panel .lesson-board-canvas{min-height:120px;font-size:12px}}

/* Keep Safari's remote audio elements in the render tree so iOS can start playback. */
.classroom-remote-audio,#live-class-panel #remote-teacher-audio{position:fixed!important;left:-2px!important;bottom:0!important;display:block!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:.01!important;pointer-events:none!important}
#live-class-panel .classroom-media-play{position:absolute;z-index:9;top:50%;left:50%;transform:translate(-50%,-50%);min-height:44px;padding:10px 16px;border:1px solid #ffffff70;border-radius:14px;background:#0b5943e8;color:#fff;font:inherit;font-size:12px;font-weight:800;box-shadow:0 10px 28px #061e1b65;backdrop-filter:blur(10px);cursor:pointer}
#live-class-panel .classroom-media-play[hidden],#live-class-panel .lesson-stage.smart-board-active .classroom-media-play{display:none!important}

/* Smart-board drawing controls: visible sliders, separated tool groups, and a scrollable touch toolbar. */
#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-actions{min-width:0;flex:1 1 auto}
#live-class-panel .lesson-stage>.file-presentation-screen .file-drawing-tools{display:flex;flex:1 0 100%;order:10;align-items:center;justify-content:flex-end;gap:6px;max-width:100%;min-width:0;margin-top:4px;padding:5px;border:1px solid #e1e9e4;border-radius:12px;background:linear-gradient(180deg,#fbfdfc,#f2f7f4);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#b7d6c4 transparent}
#live-class-panel .lesson-stage>.file-presentation-screen .file-drawing-tools label.drawing-color-control{position:relative;display:grid;flex:0 0 45px;place-items:center;gap:2px;width:45px;height:47px;padding:3px;border:1px solid #e1e9e4;border-radius:9px;background:#fff}
#live-class-panel .lesson-stage>.file-presentation-screen .drawing-control-caption{color:#74877c;font-size:8px;font-weight:700;line-height:1}
#live-class-panel .lesson-stage>.file-presentation-screen .file-drawing-tools input[type=color]{width:26px;height:25px;border:1px solid #dce9e0;border-radius:7px}
#live-class-panel .lesson-stage>.file-presentation-screen .file-drawing-tools label.drawing-size-control{display:grid;flex:0 0 104px;grid-template-rows:auto 15px;align-content:center;gap:4px;width:104px;height:47px;padding:4px 7px;border:1px solid #e1e9e4;border-radius:9px;background:#fff}
#live-class-panel .lesson-stage>.file-presentation-screen .drawing-size-control>span{display:flex;align-items:center;gap:4px;min-width:0;color:#50665a;font-size:8px;font-weight:700;white-space:nowrap}
#live-class-panel .lesson-stage>.file-presentation-screen .drawing-size-control output{margin-inline-start:auto;color:#13845d;font-size:8px;font-variant-numeric:tabular-nums}
#live-class-panel .lesson-stage>.file-presentation-screen .drawing-control-icon{color:#16815e;font-size:11px}
#live-class-panel .lesson-stage>.file-presentation-screen .file-drawing-tools input[type=range]{display:block;width:100%;height:18px;margin:0;accent-color:#16815e;cursor:pointer}
#live-class-panel .lesson-stage>.file-presentation-screen .file-drawing-tools .file-toolbar-button{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:4px;min-width:39px;min-height:35px;padding:5px 8px;border:1px solid #dce8e0;border-radius:9px;background:#fff;color:#3c5c4d;font-size:8px;font-weight:700;white-space:nowrap;touch-action:manipulation}
#live-class-panel .lesson-stage>.file-presentation-screen .file-drawing-tools .file-toolbar-button:hover{border-color:#a9d5ba;background:#eff8f2;color:#11734f}
#live-class-panel .lesson-stage>.file-presentation-screen .file-drawing-tools .drawing-tool-mode.selected{border-color:#f0d49a;background:#fff7e5;color:#80570e}
#live-class-panel .lesson-stage>.file-presentation-screen .drawing-button-icon{display:grid;place-items:center;width:19px;height:19px;border-radius:6px;background:#edf6f0;color:#16815e;font-size:13px;line-height:1}
#live-class-panel .lesson-stage>.file-presentation-screen .drawing-control-icon svg,#live-class-panel .lesson-stage>.file-presentation-screen .drawing-button-icon svg{display:block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#live-class-panel .lesson-stage>.file-presentation-screen .clear-board-drawing-button{border-color:#f0d9d5!important;background:#fff7f5!important;color:#a34a40!important}
#live-class-panel .lesson-stage>.file-presentation-screen .clear-board-drawing-button .drawing-button-icon{background:#ffebe7;color:#b24d42}
#live-class-panel .lesson-stage>.file-presentation-screen .clear-board-drawing-button.is-busy{opacity:.65;cursor:progress}
#live-class-panel .lesson-stage>.file-presentation-screen .drawing-toolbar-divider{flex:0 0 1px;height:28px;background:#dce7e0}
@media(max-width:680px){#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-toolbar{flex-direction:column}#live-class-panel .lesson-stage>.file-presentation-screen .file-presentation-actions{width:100%;flex:1 1 auto;justify-content:flex-start}#live-class-panel .lesson-stage>.file-presentation-screen .file-drawing-tools{flex-wrap:nowrap;justify-content:flex-start;gap:5px;margin-inline:-1px;padding:4px}#live-class-panel .lesson-stage>.file-presentation-screen .file-drawing-tools .file-toolbar-button{min-height:37px;padding:5px 7px;font-size:8px}}

/* Refined school dashboard and classroom visuals */
.app-layout{max-width:1320px;grid-template-columns:222px minmax(0,1fr);gap:24px;padding-top:24px}
.side-nav{position:sticky;top:86px;padding:9px;border:1px solid #e2ece5;border-radius:20px;background:linear-gradient(155deg,#fff,#f8fcf9);box-shadow:0 16px 40px #17432b0c}
.nav-item{gap:10px;min-height:45px;margin:2px 0;padding:8px 10px;border:1px solid transparent!important;border-radius:13px!important;color:#63756a!important;font-weight:600;transition:background .16s,border-color .16s,color .16s,transform .16s}
.nav-item:hover{transform:translateX(-2px);border-color:#e3eee6!important;background:#f7fbf8!important;color:#1c7653!important}
.nav-item.selected{border-color:#d7ecdf!important;background:linear-gradient(110deg,#eaf7ef,#f4faf6)!important;color:#087650!important;box-shadow:inset -3px 0 #159468}
.nav-icon{display:grid;flex:none;width:33px;height:33px;place-items:center;border:1px solid #e5eee7;border-radius:11px;background:linear-gradient(145deg,#f7faf8,#eaf4ed);color:#398365;box-shadow:inset 0 1px #fff}
.nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nav-item.selected .nav-icon{border-color:#cce7d5;background:linear-gradient(145deg,#e2f4e8,#d2eddb);color:#087650}
.welcome-row{position:relative;overflow:hidden;align-items:center;min-height:134px;margin:0 0 18px;padding:22px 25px;border:1px solid #d8e9dd;border-radius:22px;background:radial-gradient(circle at 12% 0%,#e5f5e9 0,transparent 38%),linear-gradient(112deg,#fff 0%,#fbfdfb 52%,#eff8f2 100%);box-shadow:0 16px 38px #17432b0b}
.welcome-row:after{content:"";position:absolute;left:-52px;bottom:-148px;width:250px;height:250px;border:1px solid #d5eadb;border-radius:50%;box-shadow:0 0 0 24px #e6f3e91c,0 0 0 54px #e6f3e91c;pointer-events:none}
.welcome-copy,.welcome-tools{position:relative;z-index:1}.welcome-row .eyebrow{margin:0 0 8px;color:#16855f}.welcome-row h1{margin:0 0 6px;color:#1d392d;font-size:24px}.welcome-row .muted{max-width:640px;color:#71847a;font-size:11px}.welcome-tools{display:flex;align-items:center;gap:12px}.welcome-emblem{display:grid;width:58px;height:58px;place-items:center;border:1px solid #cde6d5;border-radius:18px;background:linear-gradient(145deg,#e6f6eb,#cfead8);color:#16815e;box-shadow:0 9px 20px #17835816,inset 0 1px #ffffffc2}.dashboard-emblem-icon{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.metrics{gap:11px;margin-bottom:20px}.metric{display:flex;align-items:center;gap:12px;min-height:94px;padding:15px;border-color:#e3ece5;border-radius:17px;background:linear-gradient(145deg,#fff,#f8fcf9);box-shadow:0 10px 27px #173d2a08;transition:transform .18s,box-shadow .18s}.metric:hover{transform:translateY(-2px);box-shadow:0 15px 32px #173d2a10}.metric-icon{display:grid;flex:none;width:43px;height:43px;place-items:center;border:1px solid #dceddf;border-radius:14px;background:linear-gradient(145deg,#eff9f2,#e2f3e8);color:#18815c}.metric-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.metric>div{min-width:0}.metric>div>span{display:block;color:#829188;font-size:10px;line-height:1.6}.metric>div>strong{display:block;margin-top:5px;color:#1e3c2e;font-size:19px;line-height:1.35;overflow-wrap:anywhere}.metric:nth-child(2)>div>strong{font-size:15px}
.panel,.data-card{border-color:#e2ece5;border-radius:19px;box-shadow:0 14px 36px #173d2a0b}.panel-heading{background:linear-gradient(110deg,#fff,#fbfdfb)}.panel-heading h2,.data-card-head h3{color:#1d402f}.button.primary{background:linear-gradient(135deg,#15966a,#117b57);box-shadow:0 7px 17px #12855d27}.button.primary:hover{background:linear-gradient(135deg,#0e875d,#0b704d)}
.launch-icon{width:52px;height:52px;border:1px solid #d3ebdc;border-radius:17px;background:linear-gradient(145deg,#eff9f2,#dff2e5);color:#16815e;box-shadow:0 9px 20px #16815e13,inset 0 1px #fff}.launch-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.grade-launch-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.subject-launch-tile>span{display:grid;width:34px;height:34px;place-items:center;border:1px solid #e0eee4;border-radius:11px;background:linear-gradient(145deg,#f2faf4,#e5f4e9);color:#1b855f}.subject-icon-svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.subject-launch-tile{padding:8px 6px;box-shadow:0 4px 12px #183d2a06}.subject-launch-tile.selected>span{border-color:#bce1c9;background:#d9f0e1;color:#087650}
.level-filter-icon svg,.team-role-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.team-role-icon{box-shadow:inset 0 1px #fff}
.classroom-grade-grid{gap:9px}.grade-launch-tile{min-height:78px;border-color:#e1ebe4;border-radius:15px;background:linear-gradient(155deg,#fff,#f9fcfa);box-shadow:0 5px 14px #173d2a06}.grade-launch-icon{display:grid;width:29px;height:29px;place-items:center;border-radius:10px;background:#eaf6ee;color:#18815e}.grade-launch-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.grade-launch-tile.selected .grade-launch-icon{background:#d9f0e1;color:#087650}
.class-end-summary-poll{grid-column:1/-1}
.live-class-panel{border:1px solid #d6e8dd;background:linear-gradient(150deg,#f4faf6,#eaf4ee);box-shadow:0 22px 58px #123f2a15}.live-room-header{background:radial-gradient(circle at 7% 0%,#e8f6ed 0,transparent 36%),linear-gradient(110deg,#fff,#f2faf5)}.live-indicator{border:1px solid #cfe8d7;background:#e9f7ee;box-shadow:0 5px 13px #15815e0c}.lesson-stage{min-height:365px;border:1px solid #b4d7c2;border-radius:23px;background:radial-gradient(ellipse at 75% 15%,#31a479 0,transparent 40%),linear-gradient(135deg,#10382f,#0b2726 63%,#174b3c);box-shadow:0 17px 38px #103c2a27,inset 0 0 0 5px #ffffff14}.lesson-stage:after{opacity:.1;background-size:32px 32px}.classroom-controls{border:1px solid #d7e8dc!important;background:linear-gradient(145deg,#fff,#f5faf7)!important;box-shadow:0 15px 34px #173d2a13!important}.room-control{border-radius:15px!important}.classroom-controls .room-control:not(:disabled):hover .room-control-icon{transform:translateY(-1px) scale(1.04)}.room-control-icon{transition:transform .16s ease}.smart-board-room-control .room-control-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.low-bandwidth-setting{display:flex;align-items:center;gap:9px;margin-top:9px;padding:9px 10px;border:1px solid #dfece3;border-radius:11px;background:linear-gradient(110deg,#fff,#f3f9f5);color:#496357;cursor:pointer}.low-bandwidth-setting input{width:16px;height:16px;margin:0;accent-color:#16815e}.low-bandwidth-setting strong,.low-bandwidth-setting small{display:block}.low-bandwidth-setting strong{font-size:10px}.low-bandwidth-setting small{margin-top:3px;color:#839187;font-size:8px}
@media(max-width:900px){.app-layout{grid-template-columns:190px minmax(0,1fr);gap:16px;padding-right:17px;padding-left:17px}.metric{gap:9px;padding:12px}.metric-icon{width:38px;height:38px;border-radius:12px}.metric>div>strong{font-size:16px}}
@media(max-width:760px){.app-layout{display:block;padding:13px 12px 28px}.side-nav{position:relative;top:auto;display:flex;gap:5px;margin:0 0 14px;padding:7px;border-radius:16px}.nav-item{display:grid;min-width:62px;min-height:58px;flex:0 0 auto;justify-items:center;align-content:center;gap:4px;padding:5px 8px!important;font-size:8px!important}.nav-icon{width:29px;height:29px;border-radius:10px}.nav-icon svg{width:16px;height:16px}.nav-item.selected{box-shadow:inset 0 -3px #159468!important}.welcome-row{min-height:110px;padding:16px;border-radius:18px}.welcome-row h1{font-size:20px}.welcome-row .muted{font-size:9px}.welcome-emblem{width:45px;height:45px;border-radius:14px}.dashboard-emblem-icon{width:23px;height:23px}.welcome-tools{gap:6px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric{min-height:79px;padding:10px;border-radius:14px}.metric-icon{width:34px;height:34px}.metric-icon svg{width:18px;height:18px}.metric>div>span{font-size:8px}.metric>div>strong{font-size:14px}.metric:nth-child(2)>div>strong{font-size:12px}.classroom-grade-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lesson-stage{min-height:245px;border-radius:18px}}
@media(max-width:390px){.welcome-row{padding:13px}.welcome-row h1{font-size:18px}.welcome-tools{align-self:flex-start}.metrics{gap:6px}.metric{gap:7px;padding:8px}.metric-icon{width:30px;height:30px}.metric>div>strong{font-size:12px}.nav-item{min-width:55px;padding-inline:5px!important}}
.classroom-schedule-card,.student-schedule-card{border-color:#deebe2;border-radius:16px;box-shadow:0 8px 20px #173d2a08;transition:transform .16s,border-color .16s,box-shadow .16s}.classroom-schedule-card:hover,.student-schedule-card:hover{transform:translateY(-1px);border-color:#c9e2d1;box-shadow:0 12px 25px #173d2a0d}.classroom-schedule-info{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px}.schedule-subject-icon{display:grid;width:38px;height:38px;place-items:center;border:1px solid #dceee1;border-radius:13px;background:linear-gradient(145deg,#f0f9f3,#e3f3e8);color:#16815e}.schedule-subject-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.schedule-card-actions button,.schedule-card-actions a{border-color:#dcebe0;background:#f6fbf7;color:#167a56;transition:background .15s,border-color .15s,transform .15s}.schedule-card-actions button:hover,.schedule-card-actions a:hover{transform:translateY(-1px);border-color:#b9ddc5;background:#edf8f1}.schedule-card-actions button[data-open-staff-schedule],.schedule-card-actions button[data-join-session]{border-color:#11865f;background:linear-gradient(135deg,#16976a,#117b57);color:white;box-shadow:0 5px 12px #16815e22}.schedule-card-actions button[data-delete-classroom-schedule],.schedule-card-actions button[data-assignment-delete]{border-color:#f2dcda;background:#fff8f7;color:#a8453c}
.assignment-create-form{display:grid;grid-template-columns:1fr 1.2fr 1fr auto;align-items:end;gap:9px;padding:12px;border:1px solid #e2eee5;border-radius:13px;background:linear-gradient(145deg,#fbfdfb,#f3f9f5)}.assignment-create-form label,.assignment-student-submit label{display:grid;gap:5px;color:#64766b;font-size:9px;font-weight:700}.assignment-create-form input,.assignment-create-form textarea,.assignment-student-submit input[type=file]{width:100%;min-width:0;border:1px solid #dfe9e2;border-radius:9px;background:#fff;padding:8px;color:#344d3e;font:inherit;font-size:10px}.assignment-create-form textarea{resize:vertical;min-height:39px}.assignment-create-form .persian-date-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.assignment-create-form .persian-date-picker select{min-width:0;height:36px;border:1px solid #dfe9e2;border-radius:8px;background:#fff;color:#344d3e;padding:0 5px;font:inherit;font-size:9px}.assignment-form-actions{display:flex;gap:5px}.assignment-form-actions .button{white-space:nowrap;padding:9px 10px;font-size:9px}.assignment-list{display:grid;gap:9px}.assignment-card{padding:12px;border:1px solid #e4ece6;border-radius:13px;background:#fff}.assignment-heading{display:flex;align-items:center;gap:9px}.assignment-icon{display:grid;flex:none;width:33px;height:33px;place-items:center;border:1px solid #dceee1;border-radius:11px;background:#eff8f2;color:#18815f}.assignment-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.assignment-heading>div:nth-child(2){min-width:0;flex:1}.assignment-heading strong,.assignment-heading small{display:block}.assignment-heading strong{font-size:11px;color:#294436}.assignment-heading small,.assignment-card>p,.assignment-hint{color:#85938a;font-size:9px;line-height:1.8}.assignment-heading small{margin-top:3px}.assignment-card>p{margin:8px 0}.assignment-heading-actions,.assignment-submission-actions{display:flex;gap:6px}.assignment-heading-actions button,.assignment-submission-actions button,.assignment-submission-actions a{border:1px solid #dce9e0;border-radius:8px;background:#f6faf7;color:#347458;padding:6px 8px;font:inherit;font-size:9px;text-decoration:none}.assignment-heading-actions .danger{border-color:#f2dcda;background:#fff8f7;color:#a8453c}.assignment-submissions{display:grid;gap:4px;margin-top:9px;border-top:1px solid #edf2ee}.assignment-submission-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #f0f3f1}.assignment-submission-row>div:first-child{min-width:0}.assignment-submission-row strong,.assignment-submission-row small{display:block;overflow-wrap:anywhere}.assignment-submission-row strong{font-size:10px;color:#415c4c}.assignment-submission-row small{margin-top:3px;color:#87948c;font-size:8px;line-height:1.6}.assignment-submission-row .assignment-feedback{color:#16815e}.assignment-empty{padding:12px;text-align:center;color:#87948c;font-size:9px}.assignment-student-submit{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:10px}.assignment-student-submit input[type=file]{padding:6px}.assignment-student-submit .button{white-space:nowrap}.assignment-submission-state{display:grid;gap:4px;margin-top:9px;padding:9px;border-radius:10px;background:#f1f8f3;color:#567060;font-size:9px}.assignment-submission-state a{color:#117d57;font-weight:700;overflow-wrap:anywhere}.assignment-submission-state small{color:#819087;font-size:8px;line-height:1.7}.class-end-summary{margin-top:14px;padding:14px;border:1px solid #d7e9dd;border-radius:16px;background:radial-gradient(circle at 0 0,#e9f7ed,transparent 45%),linear-gradient(145deg,#fff,#f4faf6);box-shadow:0 12px 25px #173d2a0b}.class-end-summary-heading{display:flex;align-items:center;gap:9px}.summary-icon{display:grid;width:36px;height:36px;place-items:center;border:1px solid #d4eadb;border-radius:12px;background:#e9f7ed;color:#16815e}.summary-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.class-end-summary-heading>div{flex:1}.class-end-summary-heading strong,.class-end-summary-heading small{display:block}.class-end-summary-heading strong{font-size:11px;color:#294737}.class-end-summary-heading small{margin-top:3px;color:#819087;font-size:9px}.class-end-summary-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:12px}.class-end-summary-metrics span{padding:9px;border:1px solid #e0ebe3;border-radius:10px;background:#ffffffd9;color:#728177;font-size:8px}.class-end-summary-metrics strong{display:block;margin-top:4px;color:#177b57;font-size:12px}
@media(max-width:900px){.assignment-create-form{grid-template-columns:1fr 1fr}.assignment-create-form label:nth-child(3){grid-column:1}.assignment-form-actions{grid-column:2;grid-row:2;justify-content:flex-end}}
@media(max-width:680px){.classroom-schedule-info{grid-template-columns:34px minmax(0,1fr);gap:8px}.schedule-subject-icon{width:33px;height:33px;border-radius:11px}.assignment-create-form{grid-template-columns:1fr;padding:10px}.assignment-create-form label:nth-child(3),.assignment-form-actions{grid-column:auto;grid-row:auto}.assignment-form-actions{justify-content:flex-start}.assignment-create-form .persian-date-picker{max-width:320px}.assignment-heading{align-items:flex-start}.assignment-heading-actions{flex-direction:column}.assignment-submission-row{align-items:flex-start;flex-direction:column}.class-end-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.assignment-student-submit{grid-template-columns:1fr}.assignment-student-submit .button{justify-self:start}}

.homework-panel>.panel-heading{align-items:center}.homework-panel>#homework-form{grid-template-columns:repeat(2,minmax(0,1fr));margin:14px 20px 0}.homework-panel>#homework-form select{width:100%;min-width:0;height:38px;border:1px solid #dfe9e2;border-radius:9px;background:#fff;color:#344d3e;padding:0 9px;font:inherit;font-size:10px}.homework-panel>#homework-form label small{color:#87948c;font-size:8px;line-height:1.6}.homework-panel>#homework-form .assignment-form-actions{align-self:end}.homework-panel>#homework-list{padding:14px 20px 20px}.homework-file-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:9px;padding:8px 10px;border:1px solid #e2eee5;border-radius:10px;background:#f7fbf8;color:#526d5c;font-size:9px}.homework-file-row span{min-width:0;overflow-wrap:anywhere}.homework-file-row a,.homework-file-row button{border:1px solid #d7e9dc;border-radius:8px;background:#fff;color:#157a55;padding:6px 9px;font:inherit;font-size:9px;text-decoration:none;cursor:pointer}.homework-file-row button{border-color:#f0d9d6;background:#fff9f8;color:#a3463f}
@media(max-width:680px){.homework-panel>.panel-heading{align-items:flex-start}.homework-panel>#homework-form{grid-template-columns:1fr;margin:10px 12px 0}.homework-panel>#homework-list{padding:12px}.homework-panel .assignment-heading{flex-wrap:wrap}.homework-panel .assignment-heading-actions{flex-direction:row;margin-right:auto}.homework-file-row{align-items:flex-start}}

/* Give school dashboards more room and keep Persian labels from breaking letter by letter. */
.app-layout{width:100%;max-width:1480px;grid-template-columns:250px minmax(0,1fr);gap:30px;padding:30px 32px}
.dashboard{width:100%;min-width:0}
.welcome-row{min-height:152px;padding:27px 32px}
.welcome-row h1{font-size:max(25px,var(--school-heading-size))!important;line-height:1.5}
.welcome-row .eyebrow{font-size:max(13px,var(--school-body-size))!important}
.welcome-row .muted{font-size:max(13px,var(--school-body-size))!important;line-height:1.9}
.welcome-emblem{width:68px;height:68px;border-radius:20px}
.dashboard-emblem-icon{width:35px;height:35px}
.metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:15px;margin-bottom:24px}
#app-view .metrics .metric{min-height:112px;padding:20px;gap:16px}
#app-view .metrics .metric>div>span{font-size:max(13px,var(--school-body-size))!important;line-height:1.7}
#app-view .metrics .metric>div>strong{font-size:max(21px,var(--school-body-size))!important;line-height:1.5;overflow-wrap:break-word;word-break:normal}
#app-view .metrics .metric:nth-child(2)>div>strong{font-size:max(20px,var(--school-body-size))!important}
.metric-icon{width:48px;height:48px;border-radius:15px}
.metric-icon svg{width:25px;height:25px}
@media(max-width:900px){.app-layout{grid-template-columns:190px minmax(0,1fr);gap:18px;padding:22px 18px}.metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}.welcome-row{padding:22px}}
@media(max-width:760px){.app-layout{display:block;padding:14px 14px 30px}.welcome-row{min-height:120px;padding:18px}.welcome-row h1{font-size:max(21px,var(--school-heading-size))!important}.welcome-row .muted{font-size:max(12px,var(--school-body-size))!important}.welcome-emblem{width:50px;height:50px}.dashboard-emblem-icon{width:26px;height:26px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric-icon{width:39px;height:39px}.metric-icon svg{width:20px;height:20px}#app-view .metrics .metric{min-height:90px;padding:13px 12px;gap:9px}#app-view .metrics .metric>div>span{font-size:max(12px,var(--school-body-size))!important}#app-view .metrics .metric>div>strong,#app-view .metrics .metric:nth-child(2)>div>strong{font-size:max(17px,var(--school-body-size))!important}}
@media(max-width:390px){.app-layout{padding-right:10px;padding-left:10px}.metrics{grid-template-columns:1fr}.welcome-row{padding:15px}.welcome-row h1{font-size:max(19px,var(--school-heading-size))!important}#app-view .metrics .metric{min-height:78px}}
@media(min-width:821px){#live-class-panel .classroom-layout{direction:ltr}#live-class-panel .classroom-main,#live-class-panel .classroom-sidebar{direction:rtl}}
.app-layout.classroom-sidebar-open{grid-template-columns:minmax(290px,320px) minmax(0,1fr);align-items:start}
.app-layout.classroom-sidebar-open .side-nav{position:sticky;top:84px;max-height:calc(100vh - 98px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8ded1 transparent}
.classroom-sidebar-tools{display:grid;grid-column:1/-1;gap:8px;margin-top:8px;padding-top:10px;border-top:1px solid #e9f0eb}
.classroom-sidebar-tools[hidden]{display:none!important}
.classroom-sidebar-tools-heading{display:flex;align-items:baseline;justify-content:space-between;gap:6px;padding:0 5px;color:#335544;font-size:10px;font-weight:700}
.classroom-sidebar-tools-heading small{color:#8a978f;font-size:8px;font-weight:400}
#classroom-sidebar-tools .classroom-sidebar{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0;align-content:start}
#classroom-sidebar-tools .room-people-card,#classroom-sidebar-tools .room-chat-card{min-width:0;border:1px solid #dce9e0;border-radius:13px;background:#fff;box-shadow:0 5px 13px #173d2a08}
#classroom-sidebar-tools .room-card-heading{min-height:39px;padding:8px;gap:5px}
#classroom-sidebar-tools .room-card-heading strong{font-size:10px!important}
#classroom-sidebar-tools .room-card-heading small{margin-top:2px;font-size:8px!important;line-height:1.4}
#classroom-sidebar-tools .roster-heading-actions{flex-wrap:wrap;justify-content:flex-end;gap:3px}
#classroom-sidebar-tools .roster-heading-actions .small-control{padding:4px 5px;font-size:7px!important;line-height:1.3}
#classroom-sidebar-tools .mic-policy-control{gap:4px;margin:4px 7px 7px;padding:7px;border-radius:9px}
#classroom-sidebar-tools .mic-policy-control label{font-size:9px!important}
#classroom-sidebar-tools .mic-policy-control select{height:29px;font-size:9px!important}
#classroom-sidebar-tools .mic-policy-control>small{font-size:8px!important;line-height:1.45}
#classroom-sidebar-tools .room-participants{max-height:230px;overflow:auto;padding:2px 7px 6px;scrollbar-width:thin}
#classroom-sidebar-tools #room-participants .participant-row{display:grid;grid-template-columns:27px minmax(0,1fr) auto;gap:4px;padding:6px 1px}
#classroom-sidebar-tools #room-participants .participant-avatar{grid-column:1;grid-row:1;width:27px;height:27px;border-radius:9px;font-size:10px}
#classroom-sidebar-tools #room-participants .participant-info{grid-column:2;grid-row:1;min-width:0}
#classroom-sidebar-tools #room-participants .participant-info strong{font-size:9px!important;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
#classroom-sidebar-tools #room-participants .participant-info small{font-size:7px!important;line-height:1.3}
#classroom-sidebar-tools #room-participants .participant-device{grid-column:3;grid-row:1;font-size:7px}
#classroom-sidebar-tools #room-participants .grant-mic{grid-column:2/4;grid-row:2;justify-self:start;max-width:100%;padding:4px 6px;font-size:7px!important}
#classroom-sidebar-tools #room-participants .grant-present{grid-column:2/4;grid-row:3;justify-self:start;min-height:19px;margin-top:-4px;padding:3px 5px;font-size:7px!important}
#classroom-sidebar-tools .raise-hand{width:calc(100% - 14px);margin:0 7px 7px;padding:7px;font-size:9px}
#classroom-sidebar-tools .room-chat-messages{height:155px;padding:8px;gap:7px}
#classroom-sidebar-tools .chat-message{max-width:100%;padding:7px 8px}
#classroom-sidebar-tools .chat-message strong{font-size:8px}
#classroom-sidebar-tools .chat-message p{font-size:8px;line-height:1.6;overflow-wrap:anywhere}
#classroom-sidebar-tools .room-chat-form{gap:5px;padding:7px}
#classroom-sidebar-tools .room-chat-form input{height:32px;padding:0 7px;font-size:8px}
#classroom-sidebar-tools .room-chat-form button{width:31px;font-size:13px}
.app-layout.classroom-sidebar-open #live-class-panel .classroom-layout{grid-template-columns:minmax(0,1fr);gap:12px;padding:14px}
@media(max-width:760px){.app-layout.classroom-sidebar-open .side-nav{position:relative;top:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;max-height:55vh;overflow:auto;overscroll-behavior:contain}.app-layout.classroom-sidebar-open .classroom-sidebar-tools{grid-column:1/-1;width:100%}.app-layout.classroom-sidebar-open .classroom-sidebar{grid-template-columns:1fr}.app-layout.classroom-sidebar-open #live-class-panel .classroom-layout{grid-template-columns:minmax(0,1fr);padding:10px}}
.homework-panel>#homework-form .homework-description-field{grid-column:1/-1;margin-top:4px}
.homework-panel>#homework-form .homework-description-field textarea{min-height:112px;padding:11px 12px;line-height:1.9;resize:vertical}
.homework-panel>#homework-form .homework-audience-field{align-self:start}
.homework-audience-field small{display:block;margin-top:2px;color:#819087;font-size:9px;line-height:1.7}
.homework-student-picker{grid-column:1/-1;display:grid;gap:9px;padding:12px;border:1px solid #dcebe0;border-radius:12px;background:#fff}
.homework-student-picker[hidden]{display:none}
.homework-student-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#476353;font-size:10px}
.homework-student-picker-heading .button{padding:6px 9px;font-size:9px}
.homework-student-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:190px;overflow:auto}
.homework-student-option{display:flex!important;align-items:center;gap:7px;min-width:0;padding:8px 9px;border:1px solid #e5eee7;border-radius:9px;background:#f9fcfa;color:#53695b!important;font-size:10px!important;cursor:pointer}
.homework-student-option input{flex:none;width:15px!important;height:15px!important;margin:0;accent-color:#15815d}
.homework-student-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.homework-student-empty{grid-column:1/-1;padding:10px;color:#87948c;font-size:10px}
.homework-audience-badge{display:inline-flex;max-width:100%;margin-top:8px;padding:5px 9px;border:1px solid #dcebe0;border-radius:20px;background:#f4faf6;color:#3c7658;font-size:9px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:900px){.homework-student-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.homework-panel>#homework-form .homework-description-field{grid-column:auto}.homework-panel>#homework-form .homework-description-field textarea{min-height:125px}.homework-student-picker{grid-column:auto}.homework-student-options{grid-template-columns:1fr;max-height:220px}}

/* School units, custom fonts, and automatic attendance reports. */
.school-create-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
.school-create-grid>.grade-picker{grid-column:1/-1;min-width:0;margin:0;padding:12px 13px;background:linear-gradient(145deg,#fbfefc,#f5faf6)}
.school-create-grid>.grade-picker .grade-options{margin-top:7px}
.school-grade-picker #school-grades[hidden]{display:none}
.school-create-grid>.grade-picker .hint{margin:9px 0 0;color:#829087;font-size:10px}
.school-editor-actions{display:flex;grid-column:1/-1;align-items:center;gap:8px;flex-wrap:wrap}
.school-create-grid select,.manager-scope-editor select{height:40px;border:1px solid #dfe4ee;border-radius:10px;padding:0 10px;background:#fff;color:var(--ink);font:inherit;font-size:12px}
.school-create-submit{height:40px;white-space:nowrap}
.school-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(285px,1fr));gap:12px;padding:17px 20px 20px}
.school-directory-card{display:grid;grid-template-columns:39px minmax(0,1fr);grid-template-rows:auto auto;align-items:start;gap:8px 12px;min-width:0;padding:14px;border:1px solid #e1ece4;border-radius:14px;background:linear-gradient(145deg,#fff,#f5faf6)}
.school-directory-icon,.appearance-font-symbol{display:grid;flex:none;width:39px;height:39px;place-items:center;border:1px solid #d7ebdd;border-radius:13px;background:#eaf6ee;color:#16815e}
.school-directory-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.school-directory-icon{grid-column:1;grid-row:1}.school-directory-copy{grid-column:2;grid-row:1;min-width:0;width:100%}.school-directory-card strong,.school-directory-card small{display:block;max-width:100%;overflow-wrap:anywhere;word-break:normal}.school-directory-card strong{font-size:12px;color:#294737}.school-directory-card small{margin-top:5px;color:#77877d;font-size:10px;line-height:1.7}.school-directory-actions{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;gap:6px}.school-directory-actions .table-action{padding:7px 9px;border:1px solid #e0ebe3;border-radius:9px;background:#f7fbf8;color:#347458;font:inherit;font-size:10px}.school-directory-actions .school-delete-action{border-color:#f1ddda;background:#fff8f7;color:#a8453c}
.manager-scope-editor>label{display:grid;gap:6px;max-width:430px;margin-bottom:12px;color:#596b60;font-size:11px;font-weight:700}
.appearance-font-manager{display:grid;gap:14px;margin:0 22px 22px;padding:18px;border:1px solid #e0ece3;border-radius:16px;background:linear-gradient(145deg,#fbfefc,#f3f9f5)}
.appearance-font-manager h3{margin:0 0 5px;color:#294737;font-size:14px}.appearance-font-upload{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(230px,1.2fr) auto;align-items:end;gap:10px}
.appearance-font-upload label{display:grid;gap:7px;color:#40554a;font-size:11px;font-weight:700}
.appearance-font-upload input{min-width:0;height:40px;border:1px solid #dce8e0;border-radius:10px;background:#fff;padding:7px 10px;color:#40554a;font:inherit;font-size:11px}
.appearance-font-upload button{height:40px;white-space:nowrap}
.appearance-custom-font-list{display:grid;gap:7px}.appearance-custom-font-row{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid #e5eee7;border-radius:12px;background:#fff}
.appearance-font-symbol{width:33px;height:33px;border-radius:10px;font-weight:700}.appearance-custom-font-row>div{min-width:0;flex:1}.appearance-custom-font-row strong,.appearance-custom-font-row small{display:block;overflow-wrap:anywhere}.appearance-custom-font-row strong{font-size:11px;color:#40554a}.appearance-custom-font-row small{margin-top:3px;color:#87948c;font-size:9px}.appearance-font-delete{color:#a8453c}
.attendance-step{display:flex;align-items:center;gap:10px;margin:17px 19px 10px}.attendance-step>span{display:grid;flex:none;width:30px;height:30px;place-items:center;border-radius:10px;background:#e8f5ec;color:#13805a;font-weight:700}.attendance-step strong,.attendance-step small{display:block}.attendance-step strong{font-size:12px;color:#344f40}.attendance-step small{margin-top:3px;color:#87948c;font-size:9px}
.attendance-school-choices,.attendance-class-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:9px;padding:0 19px 10px}
.attendance-school-tile,.attendance-class-tile{display:flex;align-items:center;gap:10px;min-width:0;padding:11px;border:1px solid #e0ebe3;border-radius:13px;background:#fff;color:#40554a;text-align:right;transition:transform .15s,border-color .15s,background .15s}
.attendance-school-tile{display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:10px}.attendance-school-tile.selected,.attendance-class-tile.selected{border-color:#60af82;background:#eef8f1;box-shadow:0 5px 14px #16815e12}
.attendance-school-tile:hover,.attendance-class-tile:hover{transform:translateY(-1px);border-color:#9ccbac}.attendance-school-icon,.attendance-grade-icon{display:grid;flex:none;width:37px;height:37px;place-items:center;border:1px solid #daecdf;border-radius:12px;background:#edf7f0;color:#16815e}
.attendance-school-icon{grid-row:span 2}.attendance-school-icon svg,.attendance-grade-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.attendance-school-tile strong,.attendance-school-tile small,.attendance-class-tile strong,.attendance-class-tile small{display:block;min-width:0;overflow-wrap:anywhere}.attendance-school-tile strong,.attendance-class-tile strong{font-size:11px}.attendance-school-tile small,.attendance-class-tile small{margin-top:4px;color:#87948c;font-size:9px;line-height:1.6}
.attendance-class-step,.attendance-report-step{margin-top:8px;padding-top:8px;border-top:1px solid #edf2ee}.attendance-range-controls{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;margin:0 19px;padding:10px 0 15px}.attendance-range-controls>label{display:grid;gap:6px;color:#596b60;font-size:10px;font-weight:700}.attendance-range-controls .persian-date-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.attendance-range-controls .persian-date-picker select{min-width:0;height:38px;border:1px solid #dce8e0;border-radius:9px;background:#fff;padding:0 5px;color:#40554a;font:inherit;font-size:10px}.attendance-report-meta{display:grid;gap:4px;margin:5px 19px 10px;padding:11px 13px;border:1px solid #deebe1;border-radius:12px;background:#f5faf6;color:#3a5747}.attendance-report-meta strong{font-size:11px}.attendance-report-meta small{color:#829087;font-size:9px}
.attendance-report-actions{display:flex;justify-content:flex-end;padding:0 19px 10px}.attendance-list{display:grid;gap:8px;padding:0 19px 16px}.attendance-report-student{display:grid;grid-template-columns:minmax(130px,1fr) 2fr auto;align-items:center;gap:10px;padding:11px;border:1px solid #e6eee8;border-radius:12px;background:#fff}.attendance-student-name strong,.attendance-student-name small{display:block}.attendance-student-name strong{font-size:11px;color:#344f40}.attendance-student-name small{margin-top:3px;color:#87948c;font-size:9px}.attendance-student-counts{display:flex;flex-wrap:wrap;gap:5px}.attendance-student-counts span{padding:5px 7px;border-radius:8px;background:#f4f8f5;color:#728177;font-size:8px}.attendance-student-counts b{margin-right:3px;color:#285f43;font-size:9px}.attendance-student-print{white-space:nowrap}
.attendance-print-area{padding:15px;color:#1f2937;background:#fff}.attendance-print-area header{margin-bottom:18px;padding-bottom:12px;border-bottom:2px solid #16815e}.attendance-print-area h1{margin:0 0 8px;font-size:19px}.attendance-print-area h2{margin:18px 0 8px;font-size:14px}.attendance-print-area p,.attendance-print-area footer{font-size:10px;line-height:1.9}.attendance-print-area table{width:100%;min-width:0;border-collapse:collapse}.attendance-print-area th,.attendance-print-area td{padding:8px;border:1px solid #d7ded9;font-size:10px;text-align:right}.attendance-print-area th{background:#f1f6f2}.attendance-print-area footer{margin-top:20px;color:#68746c}
@media(max-width:760px){.school-create-grid{grid-template-columns:1fr}.school-create-grid>.grade-picker{grid-column:1}.school-create-submit{justify-self:start}.appearance-font-manager{margin:0 14px 16px;padding:14px}.appearance-font-upload{grid-template-columns:1fr}.appearance-font-upload button{justify-self:start}.attendance-school-choices,.attendance-class-choices{grid-template-columns:repeat(2,minmax(0,1fr));padding-right:12px;padding-left:12px}.attendance-step{margin-right:12px;margin-left:12px}.attendance-range-controls{grid-template-columns:1fr;margin:0 12px}.attendance-range-controls .persian-date-picker{max-width:350px}.attendance-report-meta{margin-right:12px;margin-left:12px}.attendance-report-actions,.attendance-list{padding-right:12px;padding-left:12px}.attendance-report-student{grid-template-columns:minmax(0,1fr) auto}.attendance-student-counts{grid-column:1/-1;grid-row:2}.attendance-student-print{grid-column:2;grid-row:1}}
@media(max-width:420px){.attendance-school-choices,.attendance-class-choices{grid-template-columns:1fr}.attendance-report-student{grid-template-columns:1fr}.attendance-student-counts{grid-column:1;grid-row:auto}.attendance-student-print{grid-column:1;grid-row:auto;justify-self:start}}
@media print{@page{margin:12mm}body{background:#fff!important}body *{visibility:hidden!important;box-shadow:none!important;text-shadow:none!important}#attendance-print-area,#attendance-print-area *{visibility:visible!important}#attendance-print-area{display:block!important;position:fixed!important;inset:0!important;width:100%!important;padding:0!important;border:0!important;border-radius:0!important;overflow:visible!important;background:#fff!important;color:#111!important}#attendance-print-area h1{font-size:18pt!important}#attendance-print-area h2{font-size:12pt!important}#attendance-print-area th,#attendance-print-area td{padding:6px!important;font-size:9pt!important}#attendance-print-area footer{font-size:8pt!important}}

/* Compact, consistent teacher management cards and form. */
#teacher-card .data-card-head{padding:12px 14px}
#teacher-card .data-card-head h3{margin:0 0 3px;font-size:15px!important}
#teacher-card .data-card-head .muted{font-size:10px!important}
#teacher-card .data-card-head>.button{padding:8px 10px;font-size:10px!important}
#teacher-form.inline-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px 14px;background:linear-gradient(145deg,#fbfdfb,#f4f9f5)}
#teacher-form>p,#teacher-form>.grade-picker,#teacher-form>.form-actions,#teacher-form>label:nth-of-type(4){grid-column:1/-1}
#teacher-form>p{font-size:10px!important}
#teacher-form label{gap:5px;font-size:10px!important}
#teacher-form input,#teacher-form select{height:35px;padding:0 9px;font-size:11px!important}
#teacher-form .grade-picker{min-width:0;margin:0;padding:9px 10px;border-color:#e1ebe3;border-radius:11px;background:#fff}
#teacher-form .grade-picker legend{font-size:10px!important}
#teacher-form .grade-options{gap:5px}
#teacher-form .grade-option{gap:5px;padding:5px 7px;font-size:9px!important}
#teacher-form .grade-option input{width:13px;height:13px}
#teacher-form .form-actions{margin:0}
#teacher-form .form-actions .button{padding:8px 11px;font-size:10px!important}
#teacher-card .level-filter-caption{margin-bottom:6px;font-size:9px!important}
#teacher-card .level-filter-bar{gap:5px}
#teacher-card .level-filter-option{min-height:47px;grid-template-columns:27px minmax(0,1fr) auto;gap:6px;padding:5px}
#teacher-card .level-filter-icon{width:27px;height:27px}
#teacher-card .level-filter-option strong{font-size:9px!important}
#teacher-card .level-filter-option small{font-size:8px!important}
#teacher-card .level-filter-option b{font-size:9px!important}
#teachers-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:9px;padding:10px 12px 13px}
#teachers-list .teacher-record{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:9px 7px;margin:0;padding:11px;border:1px solid #e1ebe4;border-radius:13px;border-bottom:1px solid #e1ebe4;background:linear-gradient(145deg,#fff,#f8fbf9);box-shadow:0 4px 12px #173d2a08;font-size:11px!important}
#teachers-list .teacher-record-main{display:flex;align-items:center;gap:8px;min-width:0}
#teachers-list .teacher-record-avatar{display:grid;flex:none;width:33px;height:33px;place-items:center;border:1px solid #d9ebdf;border-radius:11px;background:#edf7f0;color:#16815e}
#teachers-list .teacher-record-avatar svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#teachers-list .teacher-record-copy{min-width:0}
#teachers-list .teacher-record-copy strong{font-size:11px!important;line-height:1.6;color:#294737;overflow-wrap:anywhere}
#teachers-list .teacher-record-copy small{margin-top:3px;font-size:9px!important;line-height:1.65;color:#77877d;overflow-wrap:break-word}
#teachers-list .teacher-record>.status{align-self:start;padding:4px 7px;font-size:9px!important;line-height:1.4}
#teachers-list .teacher-record .table-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;justify-content:stretch;margin-top:1px;padding-top:8px;border-top:1px solid #edf2ee}
#teachers-list .teacher-record .table-action{min-width:0;min-height:32px;padding:5px 4px;border:1px solid #e0ebe3;border-radius:8px;background:#f7fbf8;color:#347458;font-size:9px!important;line-height:1.4;text-align:center;white-space:normal}
#teachers-list .teacher-record .table-action[data-active="1"]{border-color:#f1ddda;background:#fff8f7;color:#a8453c}
@media(max-width:390px){#teacher-form.inline-form{grid-template-columns:1fr}#teacher-form>p,#teacher-form>.grade-picker,#teacher-form>.form-actions,#teacher-form>label:nth-of-type(4){grid-column:1}#teachers-list{grid-template-columns:minmax(0,1fr);padding-right:9px;padding-left:9px}#teachers-list .teacher-record .table-actions{grid-template-columns:repeat(2,minmax(0,1fr))}#teachers-list .teacher-record .table-action:last-child{grid-column:1/-1}}
.manager-password-form{grid-template-columns:1fr;gap:7px;padding:9px 12px;background:linear-gradient(145deg,#fbfdfb,#f4f9f5)}
.manager-password-form>p{margin:0;font-size:9px!important}
.manager-password-form>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.manager-password-form label{gap:4px;font-size:9px!important}
.manager-password-form input{height:32px;padding:0 8px;font-size:10px!important}
.manager-password-form .form-actions{gap:6px;margin:0}
.manager-password-form .form-actions .button{min-height:30px;padding:6px 9px;font-size:9px!important}
#manager-rows .table-actions{gap:6px}
#manager-rows .table-actions .table-action{padding:5px 7px;font-size:9px!important;line-height:1.4}
@media(max-width:520px){.manager-password-form>.form-grid{grid-template-columns:1fr}}
.team-segment-picker{padding:13px 18px 2px}
.team-segment-picker-heading{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;color:#355344}
.team-segment-picker-heading strong{font-size:11px}
.team-segment-picker-heading small{color:#819087;font-size:9px}
.team-segment-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:9px;margin-top:9px}
.team-segment-card{display:grid;grid-template-columns:37px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;padding:10px 11px;border:1px solid #e0ebe3;border-radius:13px;background:linear-gradient(145deg,#fff,#f7fbf8);color:#385847;text-align:right;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.team-segment-card:hover{border-color:#a8d1b4;box-shadow:0 5px 13px #16815e12}
.team-segment-card.selected{border-color:#67b58a;background:linear-gradient(145deg,#eef8f1,#e6f4eb);box-shadow:0 5px 14px #16815e12}
.team-segment-icon{display:grid;width:36px;height:36px;place-items:center;border:1px solid #d7ebdd;border-radius:11px;background:#eaf6ee;color:#16815e}
.team-segment-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.team-segment-info{display:grid;min-width:0;gap:3px}
.team-segment-info strong{overflow-wrap:break-word;color:#294737;font-size:11px;line-height:1.5}
.team-segment-info small{overflow-wrap:break-word;color:#78877e;font-size:8px;line-height:1.6}
.team-segment-count{padding:4px 6px;border-radius:8px;background:#fff;color:#49735a;font-size:8px;white-space:nowrap}
.team-segment-empty{grid-column:1/-1;padding:14px;border:1px dashed #dce8df;border-radius:12px;color:#849188;font-size:10px;text-align:center}
@media(max-width:760px){.team-segment-picker{padding:10px 13px 2px}.team-segment-choices{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:7px}.team-segment-card{padding:9px}}
@media(max-width:430px){.team-segment-choices{grid-template-columns:1fr}}
.teacher-head-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.teacher-head-actions .button{min-height:34px;padding:7px 10px;font-size:10px!important}
.teacher-segment-picker{padding:8px 12px 2px}
.teacher-segment-picker .team-segment-choices{grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:7px;margin-top:7px}
.teacher-segment-picker .team-segment-card{grid-template-columns:32px minmax(0,1fr);padding:8px 9px}
.teacher-segment-picker .team-segment-icon{width:32px;height:32px}
.teacher-segment-picker .team-segment-info strong{font-size:10px}
.teacher-segment-picker .team-segment-info small{font-size:8px}
@media(max-width:430px){.teacher-segment-picker .team-segment-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
#teacher-form #teacher-move-hint{padding:8px 10px;border:1px solid #e6e0c8;border-radius:9px;background:#fffdf4;color:#71663e;line-height:1.8}
#teachers-list .teacher-record.archived{background:linear-gradient(145deg,#fbfaf9,#f5f3f1);border-color:#e9e3df}

/* Match school-team typography and controls to the section-manager list. */
.team-role-unified .team-role-list{padding:0 14px 10px}
.team-role-group+.team-role-group{border-top:1px solid #edf2ee}
.team-role-subheading{display:flex;align-items:center;gap:9px;padding:10px 1px 4px;color:#385847}
.team-role-subheading .team-role-icon{width:29px;height:29px;border-radius:9px;font-size:14px}
.team-role-subheading h4{margin:0;font-size:12px}
.team-role-subheading small{display:block;margin-top:2px;color:#89968e;font-size:9px!important}
#team-list .team-row .team-person strong{font-size:11px!important}
#team-list .team-row .team-person small,#team-list .team-row .team-role small{font-size:11px!important;line-height:1.6}
#team-list .team-row .role-tag{font-size:10px!important}
#team-list .team-row .table-action{font-size:9px!important;line-height:1.4}
#team-list .scope-editor .grade-option,#team-list .manager-scope-editor .grade-option{padding:7px 9px;font-size:10px}
#team-list .scope-editor .button,#team-list .manager-scope-editor .button{min-height:38px;padding:9px 12px;font-size:12px}
#team-list .manager-scope-editor>strong{font-size:11px}
#team-list .manager-scope-editor label{font-size:11px!important}
#team-list .manager-scope-editor select{font-size:12px!important}
#team-credentials{font-size:9px;line-height:1.8}
#team-credentials strong{font-size:10px}
#classroom-schedule-list>.classroom-schedule-card{grid-template-columns:minmax(0,1fr);min-width:0}
#classroom-schedule-list>.classroom-schedule-card>.classroom-schedule-info,#classroom-schedule-list>.classroom-schedule-card .classroom-schedule-info>div{min-width:0}
#classroom-schedule-list>.classroom-schedule-card>.schedule-card-actions{justify-content:flex-start;min-width:0}

/* Force the management dashboard to use the available screen width. */
#app-view>.app-layout{width:100%!important;max-width:none!important;grid-template-columns:minmax(245px,285px) minmax(0,1fr)!important;gap:32px!important;padding:32px clamp(24px,3vw,60px)!important}
#app-view .dashboard{width:100%;min-width:0}
#app-view .welcome-row{min-height:178px;padding:32px 38px}
#app-view .welcome-row h1{font-size:max(28px,var(--school-heading-size))!important;font-weight:800;line-height:1.5}
#app-view .welcome-row .eyebrow{font-size:max(14px,var(--school-body-size))!important;font-weight:700}
#app-view .welcome-row .muted{font-size:max(14px,var(--school-body-size))!important;font-weight:600;line-height:1.9}
#app-view .welcome-emblem{width:74px;height:74px;border-radius:22px}
#app-view .dashboard-emblem-icon{width:38px;height:38px}
#app-view .metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:18px;margin-bottom:28px}
#app-view .metrics .metric{min-width:0;min-height:126px;padding:22px;gap:18px}
#app-view .metrics .metric>div>span{font-size:max(14px,var(--school-body-size))!important;font-weight:700;line-height:1.75}
#app-view .metrics .metric>div>strong,#app-view .metrics .metric:nth-child(2)>div>strong{font-size:max(23px,var(--school-body-size))!important;font-weight:800;line-height:1.55;overflow-wrap:break-word;word-break:normal}
#app-view .metrics .metric-icon{width:54px;height:54px;border-radius:17px}
#app-view .metrics .metric-icon svg{width:28px;height:28px}
@media(max-width:760px){#app-view>.app-layout{display:block!important;grid-template-columns:minmax(0,1fr)!important;padding:14px 14px 30px!important}#app-view .welcome-row{min-height:130px;padding:20px}#app-view .welcome-row h1{font-size:max(22px,var(--school-heading-size))!important}#app-view .welcome-row .muted{font-size:max(13px,var(--school-body-size))!important}#app-view .welcome-emblem{width:52px;height:52px}#app-view .dashboard-emblem-icon{width:28px;height:28px}#app-view .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#app-view .metrics .metric{min-height:96px;padding:14px 12px;gap:9px}#app-view .metrics .metric>div>span{font-size:max(12px,var(--school-body-size))!important}#app-view .metrics .metric>div>strong,#app-view .metrics .metric:nth-child(2)>div>strong{font-size:max(17px,var(--school-body-size))!important}#app-view .metrics .metric-icon{width:38px;height:38px}}
@media(max-width:390px){#app-view>.app-layout{padding-right:10px!important;padding-left:10px!important}#app-view .metrics{grid-template-columns:1fr}#app-view .welcome-row{padding:15px}#app-view .welcome-row h1{font-size:max(20px,var(--school-heading-size))!important}}

/* In a live session, keep only the roster and chat in the side area. */
#app-view.classroom-session-active .mobile-nav-toggle{display:none!important}
#app-view.classroom-session-active .side-nav>.nav-item{display:none!important}
#app-view.classroom-session-active .side-nav .classroom-sidebar-tools{display:grid!important;grid-column:1/-1;width:100%;margin-top:0;padding-top:0;border-top:0}
#app-view.classroom-session-active #classroom-sidebar-tools .room-card-heading{min-height:46px;padding:10px 11px}
#app-view.classroom-session-active #classroom-sidebar-tools .room-card-heading strong{font-size:13px!important;font-weight:800;line-height:1.5}
#app-view.classroom-session-active #classroom-sidebar-tools .room-card-heading small{font-size:10px!important;line-height:1.5}
#app-view.classroom-session-active #classroom-sidebar-tools .room-participants{max-height:calc(100vh - 340px);padding:5px 10px 9px}
#app-view.classroom-session-active #classroom-sidebar-tools #room-participants .participant-row{grid-template-columns:36px minmax(0,1fr) auto;gap:7px;padding:8px 3px}
#app-view.classroom-session-active #classroom-sidebar-tools #room-participants .participant-avatar{width:34px;height:34px;border-radius:11px;font-size:12px}
#app-view.classroom-session-active #classroom-sidebar-tools #room-participants .participant-info strong{font-size:14px!important;font-weight:700;line-height:1.55;overflow-wrap:anywhere}
#app-view.classroom-session-active #classroom-sidebar-tools #room-participants .participant-info small{font-size:10px!important;line-height:1.5}
#app-view.classroom-session-active #classroom-sidebar-tools #room-participants .participant-device{font-size:10px}
@media(max-width:760px){#app-view.classroom-session-active .side-nav{position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;height:auto!important;max-height:calc(100vh - 90px);margin:0 0 12px;padding:8px!important;overflow:auto!important;transform:none!important}#app-view.classroom-session-active .side-nav .classroom-sidebar-tools{grid-column:1;width:100%}#app-view.classroom-session-active #classroom-sidebar-tools .room-participants{max-height:40vh}#app-view.classroom-session-active #classroom-sidebar-tools #room-participants .participant-info strong{font-size:15px!important}}

/* Slightly larger dashboard text for easier reading. */
#app-view .welcome-row .muted{font-size:max(17px,var(--school-body-size))!important}
#app-view .metrics .metric>div>span{font-size:max(18px,var(--school-body-size))!important}
#app-view .metrics .metric>div>strong,#app-view .metrics .metric:nth-child(2)>div>strong{font-size:max(25px,var(--school-body-size))!important}
@media(max-width:760px){#app-view .welcome-row .muted{font-size:max(15px,var(--school-body-size))!important}#app-view .metrics .metric>div>span{font-size:max(15px,var(--school-body-size))!important}#app-view .metrics .metric>div>strong,#app-view .metrics .metric:nth-child(2)>div>strong{font-size:max(19px,var(--school-body-size))!important}}

/* Collapsible desktop sidebar, controlled by the same menu button as mobile. */
.mobile-nav-toggle{display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid #dbeae0;border-radius:13px;background:linear-gradient(145deg,#f5fbf7,#e8f5ed);color:#087650;font-size:21px;line-height:1;box-shadow:0 4px 12px #17694b12;transition:transform .18s,background .18s}
.mobile-nav-toggle:hover{transform:translateY(-1px);background:#e4f4e9}
@media(min-width:761px){#app-view>.app-layout{transition:grid-template-columns .24s ease,gap .24s ease}#app-view.desktop-sidebar-collapsed>.app-layout{grid-template-columns:0 minmax(0,1fr)!important;gap:0!important}#app-view.desktop-sidebar-collapsed .side-nav{width:0!important;min-width:0!important;max-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border-width:0!important;opacity:0;overflow:hidden!important;pointer-events:none;transform:translateX(24px);transition:opacity .16s ease,transform .24s ease,width .24s ease}}
