:root{color:#172033;font-synthesis:none;--navy:#183153;--blue:#2563eb;--blue-soft:#eaf2ff;--border:#e5eaf1;--muted:#667085;--card:#fff;--danger:#b42318;background:#f3f6fa;font-family:Inter,Segoe UI,Tahoma,Arial,sans-serif}*{box-sizing:border-box}body{background:#f3f6fa;min-width:320px;margin:0}button,input{font:inherit}button{cursor:pointer}.appShell{direction:rtl;min-height:100vh}.sidebar{border:1px solid var(--border);z-index:30;background:#fff;border-radius:24px;flex-direction:column;width:240px;padding:18px;display:flex;position:fixed;top:16px;bottom:16px;right:16px;box-shadow:0 8px 30px #1720330f}.brand{align-items:center;gap:11px;padding:6px 5px 20px;display:flex}.brandMark{background:var(--navy);color:#fff;border-radius:14px;place-items:center;width:42px;height:42px;font-size:22px;font-weight:800;display:grid}.brand strong,.brand small{display:block}.brand strong{font-size:16px}.brand small{color:var(--muted);margin-top:3px}.sidebar nav{gap:7px;display:grid}.sidebar nav button{color:#475467;text-align:right;background:0 0;border:0;border-radius:14px;align-items:center;gap:10px;padding:11px 12px;display:flex}.sidebar nav button.active{background:var(--blue-soft);color:#174ea6;font-weight:700}.sidebarFoot{border-top:1px solid var(--border);color:var(--muted);margin-top:auto;padding:13px 10px;font-size:12px;line-height:1.7}.sidebarFoot b{color:#344054}main{min-height:100vh;margin-right:272px}.topbar{align-items:center;gap:14px;min-height:94px;padding:20px 28px 8px;display:flex}.topbar h1{margin:0;font-size:24px}.topbar p{color:var(--muted);margin:5px 0 0;font-size:13px}.prototypeBadge{border:1px solid var(--border);color:#475467;background:#fff;border-radius:999px;margin-right:auto;padding:7px 11px;font-size:12px}.mobileMenu{background:#fff;border:0;border-radius:12px;width:42px;height:42px;display:none}.content{max-width:1500px;margin:auto;padding:16px 28px 32px}.hero{color:#fff;background:linear-gradient(135deg,#17345b,#285e9d);border-radius:24px;justify-content:space-between;align-items:center;padding:24px 28px;display:flex;box-shadow:0 14px 34px #1f497d24}.hero span{opacity:.82;font-size:12px}.hero h2{margin:7px 0;font-size:25px}.hero p{opacity:.82;margin:0}.statsGrid{grid-template-columns:repeat(4,1fr);gap:14px;margin-top:16px;display:grid}.stat{border:1px solid var(--border);background:#fff;border-radius:20px;align-items:center;gap:12px;padding:18px;display:flex}.statIcon{background:var(--blue-soft);color:#2358a9;border-radius:13px;place-items:center;width:42px;height:42px;display:grid}.stat small,.stat strong{display:block}.stat small{color:var(--muted)}.stat strong{margin-top:2px;font-size:23px}.twoPane{grid-template-columns:320px 1fr;gap:16px;display:grid}.panel{border:1px solid var(--border);background:#fff;border-radius:22px;padding:20px;box-shadow:0 6px 18px #19263f09}.panelHead{justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:18px;display:flex}.panelHead h2{margin:0;font-size:19px}.panelHead p{color:var(--muted);margin:5px 0 0;font-size:13px;line-height:1.6}.eyebrow{color:#2b63b6;font-size:11px}.gradeList{gap:6px;display:grid}.gradeList button{text-align:right;color:#344054;background:#f8fafc;border:1px solid #0000;border-radius:13px;grid-template-columns:1fr auto auto;align-items:center;padding:10px 12px;display:grid}.gradeList button.selected{color:#184f9f;background:#edf4ff;border-color:#d6e5fb;font-weight:700}.count{border:1px solid var(--border);background:#fff;border-radius:9px;place-items:center;min-width:27px;height:27px;font-size:12px;display:grid}.primary,.secondary{border:0;border-radius:12px;align-items:center;gap:7px;padding:10px 14px;font-weight:700;display:inline-flex}.primary{background:var(--navy);color:#fff}.primary:disabled{opacity:.45;cursor:not-allowed}.secondary{color:#344054;border:1px solid var(--border);background:#f7f9fc}.compact{padding:7px 10px;font-size:12px}.subjectGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;display:grid}.subjectCard{border:1px solid color-mix(in srgb,var(--subject-color) 28%,#e5eaf1);border-right:5px solid var(--subject-color);background:linear-gradient(90deg,#fff 0%,#fff 78%,var(--subject-soft) 100%);border-radius:16px;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:13px;display:grid}.subjectIcon{background:var(--subject-soft);width:38px;height:38px;color:var(--subject-color);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--subject-color) 20%,transparent);border-radius:11px;place-items:center;display:grid}.subjectCard strong,.subjectCard small{display:block}.subjectCard small{color:#98a2b3;margin-top:3px;font-size:11px}.linkDanger{color:var(--danger);background:0 0;border:0;font-size:12px}.searchBox{border:1px solid var(--border);color:#98a2b3;background:#f8fafc;border-radius:13px;align-items:center;gap:9px;margin-bottom:16px;padding:0 12px;display:flex}.searchBox input{color:#172033;background:0 0;border:0;outline:0;width:100%;height:42px}.teacherGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.teacherCard{border:1px solid var(--border);border-radius:18px;grid-template-columns:auto 1fr auto;align-items:start;gap:12px;padding:15px;display:grid}.teacherAvatar{color:#1d56a2;background:#eaf2ff;border-radius:15px;place-items:center;width:46px;height:46px;font-size:19px;font-weight:800;display:grid}.teacherMain h3{margin:0 0 5px;font-size:15px}.teacherMain p{color:var(--muted);text-align:right;direction:ltr;margin:2px 0;font-size:12px}.chips{flex-wrap:wrap;gap:5px;margin-top:9px;display:flex}.chips span{background:var(--subject-soft,#f5f7fa);border:1px solid color-mix(in srgb,var(--subject-color,#98a2b3) 28%,#e5eaf1);color:var(--subject-color,#475467);border-radius:999px;padding:4px 7px;font-size:10px;font-weight:700}.gradeChips{gap:7px;margin-bottom:12px;padding-bottom:9px;display:flex;overflow:auto}.gradeChips button{border:1px solid var(--border);color:#475467;background:#fff;border-radius:999px;flex:none;padding:8px 11px;font-size:12px}.gradeChips button.selected{background:var(--navy);border-color:var(--navy);color:#fff}.assignmentList{gap:10px;display:grid}.assignmentRow{border:1px solid var(--border);border-radius:16px;grid-template-columns:220px 1fr auto;align-items:center;gap:16px;padding:13px;display:grid}.assignmentSubject{align-items:center;gap:9px;display:flex}.assignmentSubjectIcon{background:var(--subject-soft);width:34px;height:34px;color:var(--subject-color);border-radius:10px;place-items:center;display:grid}.assignmentRow{border-right:5px solid var(--subject-color);background:linear-gradient(90deg,#fff 0%,#fff 84%,var(--subject-soft) 100%)}.assignmentSubject strong,.assignmentSubject small{display:block}.assignmentSubject small{color:var(--muted);margin-top:3px;font-size:11px}.teacherChecks{flex-wrap:wrap;gap:6px;display:flex}.teacherChecks button{border:1px solid var(--border);color:#475467;background:#fff;border-radius:11px;align-items:center;gap:6px;padding:7px 9px;font-size:11px;display:flex}.teacherChecks button.checked{color:#184f9f;background:#edf4ff;border-color:#cfe0f8}.checkBox{border:1px solid #cfd6df;border-radius:5px;place-items:center;width:17px;height:17px;display:grid}.checked .checkBox{color:#fff;background:#245fae;border-color:#245fae}.assignmentCount{color:var(--muted);white-space:nowrap;font-size:11px}.empty{text-align:center;color:#98a2b3;padding:35px 20px}.empty p{margin:8px 0}.backdrop{z-index:100;background:#0f172a70;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:22px;width:min(560px,100%);max-height:88vh;padding:18px;overflow:auto;box-shadow:0 24px 60px #0f172a38}.modalHead{justify-content:space-between;align-items:center;margin-bottom:15px;display:flex}.modalHead h3{margin:0;font-size:18px}.modalHead button{background:#f4f6f8;border:0;border-radius:11px;place-items:center;width:36px;height:36px;display:grid}.modalList{gap:7px;display:grid}.modalList>button{border:1px solid var(--border);text-align:right;background:#fff;border-radius:13px;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;padding:11px;display:grid}.subjectPicker>button{border-right:4px solid var(--subject-color)}.subjectPickerIcon{background:var(--subject-soft);width:34px;height:34px;color:var(--subject-color);border-radius:10px;place-items:center;display:grid}.modalList strong,.modalList small{display:block}.modalList small{color:#98a2b3;margin-top:2px}.formGrid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.formGrid label span{color:#475467;margin:0 2px 6px;font-size:12px;display:block}.formGrid input{border:1px solid var(--border);border-radius:11px;outline:0;width:100%;height:43px;padding:0 11px}.formGrid input:focus{border-color:#8bb4ef;box-shadow:0 0 0 3px #edf4ff}.formGrid .full{grid-column:1/-1}.modalActions{justify-content:flex-end;gap:8px;margin-top:18px;display:flex}.navBackdrop{display:none}@media (width<=1050px){.sidebar{width:220px}.twoPane{grid-template-columns:270px 1fr}.subjectGrid,.teacherGrid{grid-template-columns:1fr}.assignmentRow{grid-template-columns:190px 1fr}.assignmentCount{display:none}main{margin-right:252px}}@media (width<=760px){.sidebar{width:min(86vw,300px);transition:all .2s;top:10px;bottom:10px;right:10px;transform:translate(calc(100% + 24px))}.sidebar.open{transform:none}.navBackdrop{z-index:20;background:#0f172a59;display:block;position:fixed;inset:0}main{margin-right:0}.mobileMenu{flex:none;place-items:center;display:grid}.topbar{min-height:78px;padding:14px 14px 4px}.topbar h1{font-size:19px}.topbar p{font-size:11px}.prototypeBadge{display:none}.content{padding:12px 14px 24px}.twoPane{grid-template-columns:1fr}.gradeListPanel{order:1}.subjectsPanel{order:2}.panel{border-radius:18px;padding:15px}.panelHead{align-items:center}.panelHead .primary{flex:none}.gradeList{grid-template-columns:repeat(2,minmax(0,1fr))}.gradeList button{grid-template-columns:1fr auto;padding:9px}.gradeList button svg{display:none}.subjectGrid,.teacherGrid{grid-template-columns:1fr}.teacherCard{grid-template-columns:auto 1fr}.teacherCard>.secondary{grid-column:1/-1;justify-content:center}.assignmentRow{grid-template-columns:1fr;gap:10px}.teacherChecks{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.teacherChecks button{justify-content:flex-start}.assignmentCount{display:block}.statsGrid{grid-template-columns:repeat(2,1fr)}.hero{padding:19px}.hero svg{display:none}.hero h2{font-size:19px}.hero p{font-size:12px}.formGrid{grid-template-columns:1fr}.formGrid .full{grid-column:auto}.modalActions .primary,.modalActions .secondary{flex:1;justify-content:center}}@media (width<=430px){.gradeList,.teacherChecks{grid-template-columns:1fr}.statsGrid{grid-template-columns:1fr 1fr}.stat{padding:13px}.stat strong{font-size:20px}.panelHead{flex-direction:column;align-items:flex-start}.panelHead .primary{justify-content:center;width:100%}}.entityGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.entityCard{border:1px solid var(--border);background:#fff;border-radius:18px;grid-template-columns:auto 1fr;align-items:center;gap:12px;padding:15px;display:grid}.entityCard.inactive,.catalogSubjectCard.inactive,.subjectCard.inactive{opacity:.64}.entityIcon{color:#2358a9;background:#eef4fb;border-radius:14px;place-items:center;width:44px;height:44px;display:grid}.entityMain{min-width:0}.entityTitle{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.entityTitle h3{margin:0;font-size:15px}.entityMain p{color:var(--muted);margin:5px 0 0;font-size:12px}.entityActions{grid-column:1/-1;justify-content:flex-end;gap:7px;display:flex}.entityActions button{border:0;border-radius:10px;align-items:center;gap:5px;padding:7px 10px;font-weight:700;display:inline-flex}.dangerSoft{color:#b42318;background:#fff0f1}.successSoft{color:#027a48;background:#ecfdf3}.statusBadge{border-radius:999px;align-items:center;padding:4px 8px;font-size:10px;font-weight:800;display:inline-flex}.statusBadge.active{color:#027a48;background:#ecfdf3}.statusBadge.off{color:#667085;background:#f2f4f7}.subjectCatalogGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.catalogSubjectCard{border:1px solid color-mix(in srgb,var(--subject-color) 28%,#e5eaf1);border-top:5px solid var(--subject-color);background:linear-gradient(180deg,var(--subject-soft) 0%,#fff 42%);border-radius:18px;flex-direction:column;gap:11px;padding:14px;display:flex}.catalogSubjectTop{justify-content:space-between;align-items:center;display:flex}.catalogSubjectCard h3{margin:0;font-size:15px}.catalogSubjectCard small{color:#98a2b3}.colorLine{color:#667085;align-items:center;gap:6px;font-size:11px;display:flex}.colorLine>span{border-radius:50%;width:13px;height:13px}.inlineOff{color:#98a2b3;margin-right:6px;font-size:9px;display:inline-block}.mutedRow{opacity:.62}.notice{color:#7a2e0e;background:#fffaeb;border:1px solid #fedf89;border-radius:12px;margin-bottom:13px;padding:11px 13px;font-size:12px;line-height:1.6}.colorPicker{margin-top:14px}.colorPicker>span{color:#475467;margin-bottom:8px;font-size:12px;display:block}.colorPicker>div{flex-wrap:wrap;gap:8px;display:flex}.colorPicker button{color:#fff;border:3px solid #fff;border-radius:10px;place-items:center;width:32px;height:32px;display:grid;box-shadow:0 0 0 1px #d9dee7}.colorPicker button.selected{box-shadow:0 0 0 3px #dbeafe}.subjectPreview{border:1px solid color-mix(in srgb,var(--subject-color) 28%,#e5eaf1);border-right:5px solid var(--subject-color);background:linear-gradient(90deg,#fff 0%,#fff 70%,var(--subject-soft) 100%);border-radius:14px;align-items:center;gap:10px;margin-top:15px;padding:11px;display:flex}.statsGrid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}@media (width<=1050px){.subjectCatalogGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){.entityGrid,.subjectCatalogGrid{grid-template-columns:1fr}.entityActions{justify-content:stretch}.entityActions button{flex:1;justify-content:center}}
