:root{--ink:#18243d;--muted:#78839a;--line:#e6e9ef;--paper:#fff;--canvas:#f5f6fa;--navy:#182844;--navy2:#243859;--green:#51bd94;--green-dark:#238664;--green-pale:#e8f7f0;--blue-pale:#eef1ff;--amber:#d39239;--amber-pale:#fff5e7;--red:#bd5660;--red-pale:#fff0f0;--radius:18px;--shadow:0 14px 40px rgba(25,40,68,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--canvas);font-family:Cairo,Tahoma,sans-serif;font-size:15px;line-height:1.7}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}.auth-page{min-height:100vh;padding:34px;background:#f0f2f6;display:grid;place-items:center}.auth-shell{width:min(1120px,100%);min-height:710px;background:#fff;border-radius:27px;overflow:hidden;box-shadow:0 28px 90px rgba(25,40,68,.12);display:grid;grid-template-columns:.92fr 1.08fr;direction:ltr}.auth-story{position:relative;overflow:hidden;isolation:isolate;padding:40px 45px 29px;background:linear-gradient(148deg,#1e3354 0%,#172741 72%,#1b3452 100%);color:#fff;display:flex;flex-direction:column;direction:rtl}.auth-story:before{content:"";position:absolute;width:420px;height:420px;border:1px solid rgba(255,255,255,.07);border-radius:50%;top:110px;left:-210px;z-index:-1}.auth-story:after{content:"";position:absolute;width:330px;height:330px;border:1px solid rgba(255,255,255,.05);border-radius:50%;bottom:-170px;right:-130px;z-index:-1}.brand{display:inline-flex;align-items:center;gap:10px;font-family:Cairo,Tahoma,sans-serif;font-size:20px;font-weight:800;letter-spacing:-.4px}.brand-mark{width:36px;height:36px;border-radius:12px;display:inline-grid;place-items:center;background:var(--green);color:#133c34;font:800 20px Cairo,Tahoma,sans-serif}.brand-light{color:#fff}.story-copy{margin-top:70px;max-width:370px}.eyebrow{display:block;color:var(--green-dark);font-size:12px;font-weight:700;letter-spacing:.3px}.light-eyebrow{color:#80dbb6}.story-copy h1{font-size:40px;line-height:1.4;letter-spacing:-1px;margin:14px 0 13px;font-weight:700}.story-copy p{max-width:350px;margin:0;color:#bdc8d9;font-size:14px;line-height:2}.story-art{position:relative;margin:auto 8px 0;height:230px;display:grid;place-items:center}.art-window{position:relative;z-index:2;width:88%;max-width:370px;padding:17px 18px 15px;background:#f9fafc;color:var(--ink);border-radius:15px;box-shadow:0 20px 55px rgba(5,14,28,.27);transform:rotate(-3deg)}.art-top{height:28px;display:flex;align-items:center;gap:5px;border-bottom:1px solid #ecedf1;padding-bottom:10px;margin-bottom:13px}.art-top i{width:6px;height:6px;background:#d6dae3;border-radius:50%}.art-top span{margin-right:auto;font-size:11.5px;color:#929cb0}.art-task{display:flex;align-items:center;gap:10px;padding:8px 6px;border-radius:9px}.muted-task{background:#f3f4fa}.art-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#e8f7f0;color:#25906b;font-weight:700}.art-icon.lavender{background:#edeefe;color:#7b75c7}.art-task b{display:block;font-size:12px}.art-task small{display:block;color:#8791a6;font-size:11px;margin-top:2px}.art-check{margin-right:auto;color:#35a87d;font-size:14px}.art-dot{width:6px;height:6px;border-radius:50%;background:#9e9ae1;margin-right:auto}.art-line{height:1px;background:#e7eaf0;margin:10px 3px}.art-caption{color:#8993a6;font-size:11px;text-align:center}.art-orb{position:absolute;display:block;border-radius:50%;filter:blur(.2px)}.orb-one{width:120px;height:120px;background:rgba(75,190,146,.15);left:8%;top:24px}.orb-two{width:48px;height:48px;background:rgba(132,128,207,.24);right:7%;bottom:35px}.story-foot{display:flex;justify-content:space-between;color:#8f9db1;font-size:12px;margin-top:25px}.auth-form-side{direction:rtl;display:flex;flex-direction:column;justify-content:center;padding:60px clamp(35px,7vw,90px) 30px}.auth-form-wrap{width:100%;max-width:410px;margin:auto}.auth-form-wrap h2{font-size:31px;line-height:1.3;margin:8px 0 5px;letter-spacing:-.5px}.muted{color:var(--muted);margin:0}.auth-form-wrap>.muted{font-size:14px;margin-bottom:27px}.form-stack{display:flex;flex-direction:column;gap:9px}.form-stack label,.field label,.review-form>label:first-child{font-size:13px;font-weight:600;margin-top:4px}.form-stack input,.field input,.field textarea,.review-form textarea{width:100%;border:1px solid #e2e6ee;background:#fff;border-radius:10px;padding:11px 13px;color:var(--ink);outline:none;transition:border-color .18s,box-shadow .18s}.form-stack input{height:47px}.form-stack input:focus,.field input:focus,.field textarea:focus,.review-form textarea:focus{border-color:#65bc9a;box-shadow:0 0 0 3px rgba(81,189,148,.12)}input::placeholder,textarea::placeholder{color:#a2aaba}.label-row{display:flex;justify-content:space-between;margin-top:1px}.button{border:0;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 18px;border-radius:10px;font-weight:600;font-size:13px;cursor:pointer;transition:transform .15s,background .15s,box-shadow .15s}.button:hover{transform:translateY(-1px)}.button-primary{background:var(--navy);color:#fff;box-shadow:0 5px 14px rgba(24,40,68,.12)}.button-primary:hover{background:#263e64;box-shadow:0 8px 18px rgba(24,40,68,.16)}.button-primary span{font-size:17px;line-height:1}.button-full{width:100%;margin-top:14px;height:48px}.button-secondary{background:#f0f2f8;color:#394868;border:1px solid #e7eaf1}.button-secondary:hover{background:#e9edf5}.button-dark{background:#1f304f;color:#fff;white-space:nowrap;height:43px}.button-small{padding:9px 13px;font-size:12px}.auth-switch{display:flex;justify-content:center;gap:6px;margin-top:24px;font-size:12px;color:#7b8598}.auth-switch a{color:#258765;font-weight:700}.auth-note{display:flex;align-items:center;gap:8px;justify-content:center;border-top:1px solid #edf0f4;padding-top:18px;margin-top:25px;color:#939bad;font-size:11px}.lock-icon{color:#5a9c84;font-size:15px}.auth-footer{text-align:center;color:#a0a8b7;font-size:12px;margin-top:28px}.auth-footer span,.app-footer span{margin:0 6px;color:#50ae89}.notice{border-radius:10px;padding:11px 13px;background:#f1f4f9;color:#4e607d;border:1px solid #e7ebf1;font-size:12px;margin:0 0 14px}.notice.success{background:var(--green-pale);color:#28795d;border-color:#d7f0e4}.notice.error{background:var(--red-pale);color:#a2444d;border-color:#f7dddd}.back-link{display:inline-flex;align-items:center;gap:9px;color:#758097;font-size:12px;margin-bottom:33px}.back-link:hover{color:#278565}.closed-panel{display:flex;align-items:center;flex-direction:column;text-align:center;padding:25px 20px;margin:25px 0;background:#f7f8fb;border:1px solid #eceef3;border-radius:14px}.closed-icon{font-size:26px;color:#828ca1}.closed-panel b{margin-top:7px}.closed-panel p{font-size:12px;color:#808b9f;max-width:290px;margin:4px 0 13px}.closed-panel .button{margin-top:4px}.field-hint{font-size:12px;color:#929caf;margin-top:-5px}.compact-story .story-copy{margin-top:60px}.register-art{height:240px;position:relative;margin:auto 0 0;display:grid;place-items:center}.register-card{position:relative;z-index:1;display:flex;flex-direction:column;width:270px;padding:23px 21px 18px;background:#f9fafc;color:var(--ink);border-radius:15px;box-shadow:0 20px 55px rgba(5,14,28,.23);transform:rotate(3deg)}.register-spark{position:absolute;left:20px;top:17px;color:#38a87f;font-size:20px}.register-card small{font-size:11.5px;color:#8993a7}.register-card strong{margin:17px 0 16px;font-size:14px}.register-progress{height:5px;background:#e9edf2;border-radius:9px;overflow:hidden}.register-progress i{display:block;width:62%;height:100%;background:#51bd94;border-radius:9px}.register-card>span:last-child{font-size:11px;color:#929bad;margin-top:8px}.orb-three{width:130px;height:130px;right:7%;top:24px;background:rgba(99,154,195,.16)}.auth-form-wrap .back-link+.eyebrow{margin-top:0}.field{display:flex;flex-direction:column;gap:7px}.field input,.field textarea{font-size:13px}.field textarea,.review-form textarea{resize:vertical;min-height:74px}.app-page{min-height:100vh;background:#f5f6f9}.topbar{height:72px;padding:0 max(calc((100% - 1090px)/2),32px);background:#fff;border-bottom:1px solid #eceef3;display:flex;align-items:center;justify-content:space-between}.topbar-right{display:flex;align-items:center;gap:17px}.role-pill{font-size:12px;font-weight:600;padding:5px 10px;border-radius:30px}.teacher-pill{color:#5a56a0;background:#f0efff}.student-pill{color:#248365;background:#e9f7f1}.user-chip{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:#4b5770}.avatar{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#e5f5ed;color:#238563;font-weight:700;font-size:12px}.teacher-avatar{background:#ecebff;color:#6661ad}.logout-button{background:none;border:0;color:#8992a4;font-size:11px;cursor:pointer}.logout-button:hover{color:#bd5660}.topbar form{margin:0}.dashboard-wrap{width:min(1030px,calc(100% - 48px));margin:0 auto;padding:43px 0 70px}.welcome-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.welcome-row h1,.student-hero h1{font-size:29px;letter-spacing:-.5px;margin:4px 0 3px;line-height:1.4}.welcome-row .muted{font-size:13px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:0 0 25px}.stat-card{padding:17px 19px;background:#fff;border:1px solid #eceef3;border-radius:14px;display:flex;align-items:center;gap:13px;box-shadow:0 4px 14px rgba(23,39,67,.025)}.stat-icon{width:37px;height:37px;display:grid;place-items:center;border-radius:11px;font-size:18px}.indigo-icon{color:#716fc0;background:#f0efff}.green-icon{color:#32936f;background:#e9f7f1}.amber-icon{color:#c38a37;background:#fff4e4}.stat-card small{display:block;color:#8992a4;font-size:12px}.stat-card strong{display:block;font:700 19px Cairo,Tahoma,sans-serif;line-height:1.3;color:#23314d}.stat-card .stat-status{font:600 14px Cairo,Tahoma,sans-serif}.panel{padding:23px 25px 19px;background:#fff;border:1px solid #e9ecf2;border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:22px}.panel-heading,.section-heading{display:flex;align-items:flex-start;justify-content:space-between}.panel-heading h2,.section-heading h2{font-size:19px;letter-spacing:-.25px;margin:2px 0 2px}.panel-heading .muted{font-size:11px}.section-kicker{font-size:12px;font-weight:600;color:#29936d}.status-badge{display:inline-flex;align-items:center;white-space:nowrap;border-radius:30px;padding:5px 9px;font-size:11.5px;font-weight:600}.status-open{color:#278363;background:#e7f6ee}.status-closed{color:#9a7040;background:#fff4e5}.status-neutral{color:#69758c;background:#f0f2f6}.status-revision{color:#a46423;background:#fff2df}.schedule-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin-top:20px}.schedule-form .field label{margin:0}.schedule-form input{height:43px}.schedule-form .button{margin-bottom:1px}.panel-footnote{font-size:12px;color:#8993a6;display:flex;align-items:center;gap:7px;margin-top:15px}.info-dot{font:700 12px Cairo,Tahoma,sans-serif;color:#6e7a90;width:15px;height:15px;border:1px solid #cfd4df;border-radius:50%;display:grid;place-items:center}.close-now-form{display:inline-block;margin-top:8px}.text-button{padding:0;background:none;border:0;color:#ac5a50;font-size:12px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.create-panel{padding-bottom:23px}.panel-step{width:34px;height:34px;display:grid;place-items:center;border:1px solid #e9ecf2;border-radius:50%;color:#929bad;font:600 11px Cairo,Tahoma,sans-serif}.assignment-form{margin-top:19px;display:grid;gap:15px}.assignment-form>.field{max-width:100%}.assignment-form .field input,.assignment-form .field textarea{background:#fbfcfd}.assignment-dates{margin:0}.assignment-dates input{height:42px}.file-type-grid{display:flex;flex-wrap:wrap;gap:7px;margin-top:2px}.type-option{cursor:pointer}.type-option input{position:absolute;opacity:0;pointer-events:none}.type-option span{display:inline-flex;align-items:center;justify-content:center;min-width:55px;padding:5px 9px;border-radius:8px;border:1px solid #e5e8ef;background:#fff;color:#788399;font:600 11.5px Cairo,Tahoma,sans-serif;transition:.16s}.type-option input:checked+span{border-color:#83cfaf;background:#edf9f3;color:#25815f;box-shadow:0 0 0 2px rgba(81,189,148,.09)}.type-option input:focus-visible+span{outline:2px solid #338966;outline-offset:2px}.size-field{max-width:260px}.input-suffix{display:flex;align-items:center;border:1px solid #e2e6ee;border-radius:10px;overflow:hidden;background:#fbfcfd}.input-suffix input{border:0!important;box-shadow:none!important;background:transparent!important;width:90px}.input-suffix span{border-right:1px solid #e2e6ee;padding:7px 12px;color:#8791a4;font-size:11px}.form-actions{display:flex;align-items:center;gap:12px}.form-actions small{color:#929bad;font-size:12px}.assignments-section{margin-top:36px}.section-heading{align-items:center;margin-bottom:14px}.section-heading h2{margin-top:2px}.count-pill{font-size:12px;padding:5px 10px;background:#eceff5;color:#6f7b91;border-radius:30px}.assignment-list,.student-assignment-list,.student-review-list{display:grid;gap:12px}.teacher-assignment-card{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 19px;background:#fff;border:1px solid #ebedf2;border-radius:15px;transition:box-shadow .18s,transform .18s}.teacher-assignment-card:hover,.student-assignment-card:hover{box-shadow:var(--shadow)}.assignment-card-main{display:flex;align-items:flex-start;gap:12px;min-width:0}.assignment-symbol{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:11px;background:#edf0ff;color:#736ec3;font-size:16px}.card-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.card-title-row h3{font-size:14px;margin:0;font-weight:700}.assignment-card-main p{font-size:11px;color:#7f899d;margin:4px 0 7px;max-width:650px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta-row{display:flex;flex-wrap:wrap;gap:12px;color:#929bad;font-size:11.5px}.meta-row b{font-weight:600;color:#66728a}.button-small span{font-size:15px}.empty-state{background:#fff;border:1px dashed #dfe3eb;border-radius:16px;padding:34px 20px;text-align:center;color:#8590a4}.empty-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;margin:0 auto 9px;background:#f1f2fa;color:#7875bd;font-size:19px}.empty-state h3{margin:0;color:#34415c;font-size:14px}.empty-state p{font-size:11px;margin:4px 0 12px}.app-footer{padding:18px;text-align:center;color:#a1a9b8;font-size:12px;border-top:1px solid #e9ebf0}.student-wrap{padding-top:30px}.student-hero{position:relative;overflow:hidden;min-height:155px;display:flex;align-items:center;justify-content:space-between;padding:24px 29px;margin-bottom:21px;border-radius:18px;background:linear-gradient(112deg,#eaf7f1,#eef1fb 77%);border:1px solid #e3eee9}.student-hero h1{font-size:25px}.student-hero p{margin:4px 0;color:#738198;font-size:12px}.hero-mark{position:relative;margin-left:4%;width:104px;height:104px;border-radius:33px;display:grid;place-items:center;background:rgba(255,255,255,.64);transform:rotate(-8deg);color:#4c9c7d}.hero-mark span{font-size:42px;font-weight:700}.hero-mark i,.hero-mark b{position:absolute;width:17px;height:17px;border:3px solid #8ccdb0;border-radius:50%;top:13px;left:11px}.hero-mark b{width:9px;height:9px;background:#dcae62;border:0;top:auto;left:auto;right:6px;bottom:13px}.student-section-heading{margin-top:29px}.student-assignment-card{padding:18px 20px;background:#fff;border:1px solid #e9ecf1;border-radius:16px;box-shadow:0 5px 18px rgba(23,39,67,.025);scroll-margin-top:20px}.student-card-head{display:flex;align-items:center;gap:12px}.student-symbol{background:#eaf7f1;color:#389472}.student-card-title{flex:1;min-width:0}.student-card-title h3{font-size:15px}.student-card-title .teacher-name{font-size:12px;color:#8993a6;margin:3px 0 0}.teacher-name b{color:#57657e}.deadline-chip{display:flex;flex-direction:column;align-items:flex-start;padding:6px 10px;border-radius:9px;background:#f3f4f7;color:#7e899e;min-width:110px}.deadline-chip small{font-size:11px}.deadline-chip b{font:600 12px Cairo,Tahoma,sans-serif}.deadline-active{background:#eef8f2;color:#378563}.assignment-description{font-size:12px;color:#6c7890;line-height:1.9;margin:15px 0 11px;white-space:pre-wrap}.allowed-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px 0;border-top:1px solid #f0f1f5;border-bottom:1px solid #f0f1f5}.allowed-row>span,.allowed-row>small{font-size:11.5px;color:#8993a6}.allowed-row>small{margin-right:auto}.allowed-row>small b{color:#5d6981}.file-chips{display:flex;gap:5px}.file-chips span{font:600 11px Cairo,Tahoma,sans-serif;color:#697690;background:#f0f2f8;border-radius:5px;padding:3px 6px}.submission-history{margin-top:13px}.history-heading{display:flex;justify-content:space-between;color:#68758d;font-size:12px;font-weight:600;margin-bottom:5px}.history-heading span:last-child{font-weight:400;color:#98a0af}.version-row{position:relative;display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:9px 1px;border-bottom:1px solid #f2f3f6}.version-number{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#f1f2fa;color:#6767a7;font:700 11.5px Cairo,Tahoma,sans-serif;flex:none}.version-info{display:flex;flex-direction:column;flex:1;min-width:150px}.version-info a{font-size:12px;font-weight:600;color:#34445f;overflow-wrap:anywhere}.version-info a:hover{color:#268462;text-decoration:underline}.version-info small{font-size:11px;color:#9aa2b1}.mini-status{font-size:11px;color:#a16d2c;background:#fff4e4;padding:3px 7px;border-radius:20px}.mini-status.reviewed{color:#298366;background:#eaf7f0}.mini-status.waiting{color:#728098;background:#f0f2f6}.feedback-note{flex-basis:100%;margin:2px 0 2px 36px;padding:8px 10px;background:#f7f8fc;border-right:2px solid #b0acd9;border-radius:5px 9px 9px 5px}.feedback-note span,.saved-feedback span{font-size:11px;color:#7774ac;font-weight:600}.feedback-note p,.saved-feedback p{font-size:12px;color:#66728a;margin:1px 0 0;white-space:pre-wrap}.upload-area{margin-top:12px}.upload-form{display:flex;align-items:center;gap:12px}.upload-picker{display:flex;align-items:center;gap:9px;flex:1;min-width:0;padding:9px 11px;background:#f8faf9;border:1px dashed #cddfd5;border-radius:10px;cursor:pointer}.upload-picker input{position:absolute;width:1px;height:1px;opacity:0}.upload-picker:focus-within{outline:2px solid #60b995;outline-offset:2px}.upload-icon{width:29px;height:29px;border-radius:9px;background:#e6f5ed;display:grid;place-items:center;color:#368b6c;font-size:16px}.upload-picker>span:nth-of-type(2){display:flex;flex-direction:column;min-width:0}.upload-picker b{font-size:12px;color:#53617a}.upload-picker small{font-size:11px;color:#98a1b0}.picker-action{margin-right:auto;color:#278566;font-size:11.5px;font-weight:600;white-space:nowrap}.upload-form>.button{white-space:nowrap}.closed-hint{display:flex;align-items:center;gap:7px;margin-top:12px;padding:9px 11px;border-radius:9px;background:#f6f7f9;color:#8993a5;font-size:12px}.closed-hint>span:first-child{font-size:13px;color:#7c8aa0}.detail-wrap{padding-top:27px}.dashboard-back{margin-bottom:18px}.detail-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:25px 27px;background:#fff;border:1px solid #e9ecf2;border-radius:17px;box-shadow:var(--shadow);margin-bottom:24px}.detail-hero h1{font-size:24px;margin:3px 0}.detail-hero p{font-size:12px;color:#707d94;max-width:650px;white-space:pre-wrap;margin:3px 0 10px}.submission-progress{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:105px;color:#8a94a7;font-size:11.5px}.submission-progress strong{font:700 24px Cairo,Tahoma,sans-serif;color:#253754}.submission-progress>i{display:block;width:92px;height:5px;background:#e9edf1;border-radius:9px;overflow:hidden;margin-top:7px}.submission-progress>i>b{display:block;height:100%;background:#50bd93;border-radius:9px}.student-review-list{gap:13px}.review-student-card{padding:16px 18px;background:#fff;border:1px solid #e9ecf2;border-radius:15px}.review-student-head{display:flex;align-items:center;gap:10px;padding-bottom:11px;border-bottom:1px solid #f0f1f5}.student-avatar{background:#eaf5f0;color:#308965}.review-student-head h3{font-size:12px;margin:0}.review-student-head small{font-size:11.5px;color:#929bad}.review-student-head>.status-badge{margin-right:auto}.teacher-version-list{padding-top:3px}.teacher-version{padding:10px 0 11px;border-bottom:1px solid #f1f2f5}.teacher-version:last-child{border-bottom:0;padding-bottom:0}.version-summary{display:flex;align-items:center;gap:9px}.saved-feedback{margin:8px 0 0 36px;padding:8px 10px;background:#f6f7fb;border-right:2px solid #aaa6d2;border-radius:5px 8px 8px 5px}.review-form{margin:11px 0 0 36px;padding:12px;background:#fafbfc;border:1px solid #edf0f3;border-radius:10px;display:grid;gap:8px}.review-form>label:first-child{margin:0;font-size:12px}.review-form textarea{min-height:66px;font-size:11px;background:#fff}.review-form .button{justify-self:start}.revision-toggle{display:flex;align-items:center;gap:8px;cursor:pointer;width:fit-content}.revision-toggle input{position:absolute;opacity:0}.toggle-box{width:17px;height:17px;border:1px solid #cbd1dc;border-radius:5px;background:#fff;position:relative;flex:none}.revision-toggle input:checked+.toggle-box{background:#283c5c;border-color:#283c5c}.revision-toggle input:checked+.toggle-box:after{content:'✓';position:absolute;color:#fff;font-size:11px;top:-2px;left:2px}.revision-toggle input:focus-visible+.toggle-box{outline:2px solid #56b78e;outline-offset:2px}.revision-toggle b{display:block;font-size:12px;color:#53617a}.revision-toggle small{display:block;font-size:11px;color:#929bad}.no-submission{font-size:12px;color:#929bad;padding:13px 2px 3px}
@media(max-width:800px){.auth-page{padding:16px}.auth-shell{grid-template-columns:1fr;max-width:520px}.auth-story{min-height:315px;padding:24px 28px 17px}.story-copy{margin-top:30px}.story-copy h1{font-size:30px}.story-copy p{font-size:12px;max-width:315px}.story-art,.register-art{position:absolute;left:5px;bottom:8px;width:42%;height:175px;opacity:.92}.art-window{width:95%;padding:12px}.art-task{padding:5px}.art-icon{width:25px;height:25px}.story-foot{margin-top:auto}.auth-form-side{padding:35px 28px 23px;min-height:400px}.auth-footer{margin-top:20px}.compact-story{min-height:295px}.compact-story .story-copy{margin-top:28px}.dashboard-wrap{width:min(100% - 32px,650px);padding-top:28px}.topbar{padding:0 18px;height:64px}.role-pill{display:none}.panel{padding:19px}.welcome-row h1,.student-hero h1{font-size:23px}.teacher-assignment-card{align-items:flex-start}.assignment-card-main p{white-space:normal}.meta-row{gap:7px}.detail-hero{padding:20px}.student-hero{padding:19px 20px}.hero-mark{width:75px;height:75px;margin-left:0}.hero-mark span{font-size:32px}}
@media(max-width:560px){body{font-size:14px}.auth-page{padding:0;background:#fff;display:block}.auth-shell{min-height:100vh;border-radius:0;box-shadow:none}.auth-story{min-height:250px;padding:20px 22px 15px}.brand{font-size:17px}.brand-mark{width:31px;height:31px;border-radius:10px;font-size:17px}.story-copy{margin-top:24px}.story-copy h1{font-size:25px;margin:8px 0}.story-copy p{font-size:12px;max-width:235px}.story-art,.register-art{width:39%;height:135px;left:0;bottom:20px}.art-window{width:108%;padding:9px 10px}.art-top{margin-bottom:6px}.art-task b{font-size:11px}.art-task small{font-size:11px}.art-icon{width:22px;height:22px}.art-caption{font-size:11px}.story-foot{font-size:11px;margin-top:14px}.register-card{width:165px;padding:13px}.register-card strong{font-size:12px;margin:8px 0}.register-card small,.register-card>span:last-child{font-size:11px}.register-spark{font-size:14px;top:8px;left:11px}.auth-form-side{padding:30px 23px 20px;min-height:calc(100vh - 250px)}.auth-form-wrap h2{font-size:25px}.auth-form-wrap>.muted{font-size:12px}.auth-form-wrap .back-link{margin-bottom:23px}.form-stack label{font-size:12px}.form-stack input{height:44px}.auth-switch{font-size:11px}.auth-note{font-size:12px}.dashboard-wrap{width:calc(100% - 28px);padding:23px 0 45px}.topbar{padding:0 13px;height:59px}.topbar-right{gap:9px}.user-chip{font-size:12px;gap:5px}.avatar{width:27px;height:27px}.logout-button{font-size:12px;padding:5px}.welcome-row{align-items:flex-start;gap:8px}.welcome-row h1,.student-hero h1{font-size:20px}.welcome-row .muted{font-size:12px;max-width:255px}.welcome-row>.button{font-size:12px;padding:9px 10px;white-space:nowrap;margin-top:12px}.stats-grid{gap:7px}.stat-card{padding:12px 9px;gap:7px;border-radius:11px}.stat-icon{width:29px;height:29px;font-size:14px;border-radius:9px}.stat-card small{font-size:11px}.stat-card strong{font-size:16px}.stat-card .stat-status{font-size:11px}.panel{padding:16px 14px;border-radius:14px}.panel-heading h2,.section-heading h2{font-size:16px}.panel-heading .muted{font-size:11.5px}.panel-heading .status-badge{font-size:11px}.schedule-form{grid-template-columns:1fr;gap:9px;margin-top:14px}.schedule-form .button{width:100%}.panel-footnote{font-size:11.5px}.assignment-form{gap:12px;margin-top:14px}.assignment-dates{grid-template-columns:1fr 1fr;gap:7px}.assignment-dates input{font-size:12px;padding:9px 6px}.field label{font-size:11px}.type-option span{min-width:45px;padding:5px 7px}.form-actions{align-items:flex-start;flex-direction:column;gap:6px}.form-actions .button{width:100%}.assignments-section{margin-top:27px}.teacher-assignment-card{padding:13px;gap:9px;flex-direction:column}.assignment-card-main{gap:9px}.assignment-symbol{width:30px;height:30px;font-size:13px}.card-title-row{gap:5px}.card-title-row h3{font-size:12px}.assignment-card-main p{font-size:12px;margin:4px 0}.meta-row{font-size:11px}.teacher-assignment-card>.button{align-self:stretch}.student-hero{min-height:128px;padding:15px;margin-bottom:14px}.student-hero p{font-size:12px;max-width:245px}.hero-mark{width:55px;height:55px;border-radius:19px}.hero-mark span{font-size:24px}.hero-mark i{width:11px;height:11px;border-width:2px;top:7px;left:5px}.student-section-heading{margin-top:22px}.student-assignment-card{padding:14px 12px;border-radius:13px}.student-card-head{gap:8px}.student-card-title h3{font-size:12px}.student-card-title .teacher-name{font-size:11px}.student-card-head .status-badge{font-size:11px;padding:4px 6px}.deadline-chip{min-width:78px;padding:5px 7px}.deadline-chip small{font-size:11px}.deadline-chip b{font-size:11px}.assignment-description{font-size:12px;margin:11px 0}.allowed-row{gap:5px}.allowed-row>span,.allowed-row>small{font-size:11px}.file-chips{gap:3px}.file-chips span{font-size:11px;padding:3px 4px}.version-row{gap:6px}.version-info{min-width:105px}.version-info a{font-size:11.5px}.mini-status{font-size:11px}.feedback-note{margin-right:32px;margin-left:0}.upload-form{align-items:stretch;flex-direction:column}.upload-picker{min-height:50px}.upload-form>.button{width:100%}.picker-action{font-size:11px}.detail-hero{align-items:flex-start;padding:16px;gap:9px}.detail-hero h1{font-size:19px}.detail-hero p{font-size:12px}.detail-hero .meta-row{display:grid;gap:4px}.submission-progress{min-width:62px;font-size:11px}.submission-progress strong{font-size:19px}.submission-progress>i{width:62px}.review-student-card{padding:13px 11px}.review-student-head{gap:7px}.review-student-head h3{font-size:12px}.review-student-head>.status-badge{font-size:11px;padding:4px 6px}.review-form{margin-right:0;margin-left:0;padding:9px}.saved-feedback{margin-right:31px;margin-left:0}.revision-toggle b{font-size:11.5px}.app-footer{font-size:11.5px}}

/* Make requested revisions stand out in both the assignment card and version history. */
.status-badge.status-revision{color:#873b00;background:#fff0d3;border:1px solid #e9a448;font-weight:800;box-shadow:0 2px 9px rgba(174,94,10,.12)}
.status-badge.status-revision::before{content:"!";display:inline-grid;place-items:center;width:15px;height:15px;margin-inline-end:4px;border-radius:50%;background:#d97716;color:#fff;font:800 12px Cairo,Tahoma,sans-serif}
.status-badge.status-updated{color:#155c85;background:#e5f5ff;border:1px solid #89c9eb;font-weight:800;box-shadow:0 2px 9px rgba(19,100,150,.12)}
.status-badge.status-updated::before{content:"↻";display:inline-grid;place-items:center;width:15px;height:15px;margin-inline-end:4px;border-radius:50%;background:#1683b4;color:#fff;font:800 11px Cairo,Tahoma,sans-serif}
.revision-callout{display:flex;align-items:center;gap:12px;margin:14px 0 4px;padding:13px 15px;background:#fff5e5;border:1px solid #e9ad5d;border-inline-start:5px solid #d97716;border-radius:11px;color:#713500}
.revision-callout-icon{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:50%;background:#d97716;color:white;font:800 18px Cairo,Tahoma,sans-serif}
.revision-callout strong{display:block;font-size:13px;font-weight:800;color:#793900}
.revision-callout p{margin:2px 0 0;font-size:11px;color:#865222;line-height:1.6}
.mini-status.revision-requested{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border:1px solid #e3a04d;border-radius:7px;background:#ffe4b9;color:#7e3900;font-size:12px;font-weight:800;box-shadow:0 2px 7px rgba(174,94,10,.12)}
.mini-status.revision-requested::before{content:"!";display:inline-grid;place-items:center;width:13px;height:13px;border-radius:50%;background:#c96711;color:#fff;font:800 11.5px Cairo,Tahoma,sans-serif}
@media(max-width:560px){.status-badge.status-revision{font-size:11px;padding:5px 7px}.status-badge.status-revision::before{width:13px;height:13px}.revision-callout{gap:9px;margin-top:11px;padding:11px}.revision-callout-icon{width:27px;height:27px}.revision-callout strong{font-size:12px}.revision-callout p{font-size:12px}.mini-status.revision-requested{font-size:11.5px;padding:4px 8px}}

/* Dashboard filters: keep revision requests available in their own tab. */
.assignment-tabs{display:flex;align-items:center;gap:5px;width:fit-content;margin:-3px 0 14px;padding:4px;background:#e9edf3;border-radius:12px}
.assignment-tab{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid transparent;border-radius:9px;background:transparent;color:#6e7990;font-size:12px;font-weight:600;cursor:pointer;transition:background .16s,color .16s,box-shadow .16s}
.assignment-tab[aria-pressed="true"]{background:#fff;border-color:#e7eaf0;color:#293956;box-shadow:0 2px 7px rgba(24,40,68,.07)}
.tab-count{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:20px;background:#edf0f5;color:#64718a;font:700 11.5px Cairo,Tahoma,sans-serif}
.assignment-tab.has-pending .tab-count{background:#d97716;color:#fff}
.student-assignment-card[hidden]{display:none!important}
.revision-filter-empty[hidden]{display:none!important}
.revision-empty-icon{background:#fff0d9;color:#c36b16}
@media(max-width:560px){.assignment-tabs{width:100%;margin-bottom:11px}.assignment-tab{flex:1;justify-content:center;padding:7px 8px;font-size:11.5px}}

/* Teacher tools for per-student grades and bulk latest-submission download. */
.detail-actions{display:flex;align-items:center;gap:9px;margin-top:13px}
.download-latest-button{gap:9px}
.download-latest-button:disabled{cursor:not-allowed;opacity:.65;transform:none;box-shadow:none}
.download-glyph{display:grid;place-items:center;width:21px;height:21px;border-radius:7px;background:rgba(255,255,255,.15);font-size:16px;line-height:1}
.download-count{display:grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:20px;background:rgba(255,255,255,.16);font:700 11.5px Cairo,Tahoma,sans-serif}
.grade-form{display:flex;align-items:flex-end;gap:9px;margin:11px 0 2px;padding:10px 11px;background:#f7f8fb;border:1px solid #eceef3;border-radius:10px}
.grade-form>label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700;color:#53617a}
.grade-form select{min-width:145px;padding:7px 9px;border:1px solid #dfe4ec;border-radius:8px;background:#fff;color:#34425d;font:600 12px Cairo,Tahoma,sans-serif}
.grade-form .button{height:33px}
.grade-saved{align-self:center;margin-right:auto;padding:4px 8px;border-radius:7px;background:#e8f7ef;color:#287c5c;font-size:11.5px;font-weight:700}
@media(max-width:560px){.detail-actions{flex-direction:column;align-items:stretch}.download-latest-button{width:100%;font-size:12px;padding:9px}.grade-form{align-items:stretch;flex-wrap:wrap}.grade-form>label{flex:1;align-items:flex-start;flex-direction:column;gap:4px}.grade-form select{width:100%;min-width:0}.grade-form .button{align-self:flex-end}.grade-saved{margin-right:0}}

.student-grade{display:inline-flex;align-items:center;gap:6px;width:fit-content;margin-top:6px;padding:4px 8px;border:1px solid #b8e3cd;border-radius:8px;background:#edf9f2;color:#287b5b;font-size:11.5px}
.student-grade>span{font-weight:600}
.student-grade>b{display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:6px;background:#2c8a64;color:#fff;font:800 12px Cairo,Tahoma,sans-serif}
.student-grade>small{font-size:11px;color:#55856f}
@media(max-width:560px){.student-grade{gap:5px;padding:3px 7px;margin-top:4px}.student-grade>b{min-width:17px;height:17px}}

/* Courses, enrollment and final-grade lock. */
.course-panel{scroll-margin-top:18px}
.course-create-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin-top:14px}
.course-create-form .button{height:39px;white-space:nowrap}
.course-list{display:grid;gap:12px;margin-top:16px}
.course-card{padding:15px;background:#fafbfd;border:1px solid #e8ecf2;border-radius:13px;scroll-margin-top:18px}
.course-card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.course-card-heading h3{font-size:13px;margin:0;color:#30405c}
.course-card-heading p{font-size:11.5px;color:#8a95a8;margin:3px 0 0}
.course-students-form{display:grid;gap:10px}
.course-students-form fieldset{min-width:0;border:0;padding:0;margin:0}
.course-students-form legend{font-size:12px;font-weight:700;color:#596780;margin-bottom:8px}
.student-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:7px}
.student-picker{display:grid;grid-template-columns:16px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:8px;padding:8px 9px;border:1px solid #e7eaf0;border-radius:9px;background:#fff;cursor:pointer}
.student-picker input{grid-row:1/3;accent-color:#3f9a76}
.student-picker span{font-size:12px;font-weight:600;color:#465570;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.student-picker small{font-size:11px;color:#99a2b1;direction:ltr;text-align:right}
.course-students-form>.button{justify-self:start}
.course-empty{padding:20px;margin-top:14px}
.course-empty h3{font-size:12px}
.course-empty p{font-size:12px}
.status-badge.status-graded{color:#285f50;background:#e7f5ed;border:1px solid #bce2cb;font-weight:800}
.grade-lock-hint{margin:8px 0;padding:8px 10px;border-inline-start:3px solid #398969;border-radius:7px;background:#edf8f1;color:#31775c;font-size:11.5px;font-weight:600}
.student-grade-lock{margin-top:12px}
.grade-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 23px}
.grade-stats .stat-card{min-width:0}
.grade-letter{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:10px;background:#edf0f7;color:#435373;font:800 15px Cairo,Tahoma,sans-serif}
.grade-stat-p .grade-letter{background:#e8f7ef;color:#25805d}
.grade-stat-m .grade-letter{background:#eff0ff;color:#6767ab}
.grade-stat-d .grade-letter{background:#fff4df;color:#a96e17}
.grade-stat-pending .grade-letter{background:#f0f2f6;color:#77839a}
@media(max-width:700px){.grade-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.course-create-form{grid-template-columns:1fr}.course-create-form .button{width:100%}.student-picker-grid{grid-template-columns:1fr}.course-students-form>.button{width:100%}.grade-stats{gap:7px;margin-bottom:18px}.grade-letter{width:28px;height:28px;font-size:12px}}

/* Student membership opens in a focused, vertically stacked roster dialog. */
.course-card-heading>.button{flex:none}
.course-roster{display:grid;gap:5px;list-style:none;margin:0;padding:0}
.course-roster li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;border:1px solid #e8ecf1;border-radius:8px;background:#fff}
.course-roster li span{font-size:12px;font-weight:600;color:#465570}
.course-roster li small{font-size:11px;color:#97a0b0;direction:ltr}
.course-roster-empty{margin:0;color:#929bad;font-size:11.5px}
.course-students-dialog{width:min(540px,calc(100% - 30px));max-height:min(78vh,680px);padding:0;border:1px solid #e0e5ed;border-radius:17px;background:#fff;color:#31415d;box-shadow:0 24px 80px rgba(18,31,54,.24)}
.course-students-dialog::backdrop{background:rgba(22,34,55,.48);backdrop-filter:blur(2px)}
.course-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:19px 20px 13px;border-bottom:1px solid #edf0f4}
.course-dialog-heading h3{font-size:15px;margin:0;color:#293956}
.course-dialog-heading p{font-size:12px;line-height:1.7;color:#808ba0;margin:4px 0 0}
.dialog-close{display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid #e7eaf0;border-radius:9px;background:#f8f9fb;color:#6c7890;font-size:20px;cursor:pointer}
.course-students-form{display:grid;gap:12px;padding:14px 20px 18px}
.course-students-form fieldset{min-width:0;border:0;padding:0;margin:0}
.course-students-form legend{font-size:12px;font-weight:700;color:#596780;margin-bottom:8px}
.student-picker-list{display:grid;grid-template-columns:1fr;gap:6px;max-height:46vh;overflow:auto;padding:1px 3px 1px 1px}
.student-picker{grid-template-columns:18px minmax(0,1fr) auto;grid-template-rows:auto;min-height:39px;padding:8px 10px}
.student-picker input{grid-row:1;grid-column:1}
.student-picker span{grid-column:2}
.student-picker small{grid-column:3;grid-row:1}
.course-dialog-actions{position:sticky;bottom:0;display:flex;justify-content:flex-start;gap:8px;padding-top:11px;background:#fff}
.course-dialog-actions .button{min-width:110px}
@media(max-width:560px){.course-students-dialog{width:calc(100% - 22px);max-height:82vh;border-radius:14px}.course-dialog-heading{padding:15px 14px 11px}.course-students-form{padding:12px 14px 14px}.student-picker-list{max-height:52vh}.student-picker{grid-template-columns:18px minmax(0,1fr) auto}.course-dialog-actions .button{flex:1;min-width:0}}

/* Class, subject and term organization for the teacher dashboard. */
.school-grade-list{display:grid;gap:16px;margin-top:18px}
.school-grade-card{padding:17px;background:#fbfcfe;border:1px solid #e7ebf2;border-radius:15px;scroll-margin-top:18px}
.school-grade-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}
.school-grade-heading h3{margin:2px 0 0;color:#2c3c59;font-size:17px}
.subject-create-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr) auto;align-items:end;gap:10px;padding:12px;background:#fff;border:1px solid #edf0f4;border-radius:11px}
.subject-create-form .field{gap:5px}
.subject-create-form .field label{margin:0}
.subject-create-form input,.subject-create-form select,.legacy-course-row select{min-width:0;height:39px;padding:8px 10px;border:1px solid #e2e6ee;border-radius:9px;background:#fff;color:#35445f;font-size:11px}
.subject-create-form .button{height:39px;white-space:nowrap;padding-inline:13px}
.subject-list{display:grid;gap:9px;margin-top:12px}
.subject-card{padding:12px;background:#fff}
.subject-card .course-card-heading{margin-bottom:9px}
.subject-card .course-card-heading h4{margin:0;color:#33435f;font-size:12px}
.subject-card .course-card-heading p{margin-top:2px}
.course-roster{max-height:180px;overflow:auto}
.term-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.term-card{min-width:0;padding:12px;background:#f6f7fb;border:1px solid #e8eaf1;border-radius:12px;scroll-margin-top:20px}
.term-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:10px}
.term-card-heading h4{margin:2px 0;color:#35435e;font-size:12px}
.term-card-heading p{margin:1px 0 0;color:#8c96a8;font-size:11.5px}
.term-assigned-subjects{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.term-subject-chip{display:inline-flex;align-items:center;max-width:100%;padding:4px 8px;border:1px solid #dfece4;border-radius:7px;background:#fff;color:#526d5e;font-size:11.5px;overflow-wrap:anywhere}
.term-empty-subjects,.term-no-available-subjects{margin:5px 0;color:#929bad;font-size:11.5px;line-height:1.6}
.term-add-subject-options{display:grid;gap:6px;margin-top:10px}
.term-add-subject-label{color:#69758b;font-size:11.5px;font-weight:700}
.term-add-subject-buttons{display:flex;flex-wrap:wrap;gap:5px}
.term-add-subject-buttons form{margin:0}
.term-add-subject-button{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:31px;padding:5px 8px;border:1px solid #dce7e0;border-radius:8px;background:#fff;color:#3d795b;font:600 11.5px Cairo,Tahoma,sans-serif;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.term-add-subject-button:hover{transform:translateY(-1px);border-color:#a8d7b9;background:#eef8f1}
.term-add-subject-button>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.term-add-subject-button>span:first-child{font-size:13px;color:#2e9a68}
.term-add-subject-button:focus-visible{outline:2px solid #419b75;outline-offset:2px}
.term-complete-form{margin-top:10px}
.term-complete-form .button{width:100%;height:auto;min-height:36px;padding:7px 9px;white-space:normal;text-align:center;line-height:1.5;font-size:11.5px}
.term-complete-form .button:disabled{opacity:.55;cursor:not-allowed;transform:none}
.term-completion-actions{display:grid;gap:8px;margin-top:11px;padding-top:10px;border-top:1px solid #e7eaf0}
.term-completion-actions p{margin:0;color:#6d7c91;font-size:11.5px;line-height:1.7}
.term-completion-actions p b{color:#3f506b}
.term-completion-actions .button{justify-self:start;white-space:normal;line-height:1.5;font-size:11.5px}
.term-completion-actions form{margin:0}
.legacy-courses{margin-top:17px;padding:14px;background:#fff9ee;border:1px solid #f1e6d2;border-radius:12px}
.legacy-courses h3{margin:0;color:#72552b;font-size:12px}
.legacy-courses>p{margin:3px 0 10px;color:#94805f;font-size:11.5px}
.legacy-course-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #f1e8d8}
.legacy-course-row>strong{font-size:12px;color:#596780}
.legacy-course-row form{display:flex;align-items:center;gap:7px}
.legacy-course-row select{height:34px;padding:5px 8px;font-size:11.5px}
.student-picker-tools{display:flex;gap:14px;margin:0 0 8px}
.student-picker-tools .text-button{font-size:12px}

/* Compact grading list: show a one-line student row, expand only when reviewing. */
.completion-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 17px}
.completion-stat{display:flex;align-items:center;gap:11px;min-width:0;padding:14px 16px;border:1px solid #e8ecf1;border-radius:13px;background:#fff}
.completion-stat .completion-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;font:800 16px Cairo,Tahoma,sans-serif}
.completion-stat>div{display:grid;gap:1px}
.completion-stat small{color:#76839a;font-size:11.5px}
.completion-stat strong{color:#293956;font:800 19px Cairo,Tahoma,sans-serif;line-height:1.2}
.completion-total{margin-right:auto;color:#98a1b0;font-size:11px;text-align:left}
.completed-count{background:#f4fbf6;border-color:#dcefe3}
.completed-count .completion-icon{background:#e3f5e9;color:#2c8a61}
.pending-count{background:#fffaf1;border-color:#f2e9d7}
.pending-count .completion-icon{background:#fff0d6;color:#a57529}
.grade-breakdown{margin-bottom:20px;padding:13px 15px 2px;border:1px solid #e9ecf2;border-radius:14px;background:#fbfcfe}
.grade-breakdown-heading h2{margin:1px 0 10px;color:#3a4964;font-size:13px}
.grade-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 11px}
.student-review-list{gap:7px}
.review-student-card{padding:0;overflow:hidden;border-radius:11px;transition:border-color .15s,background .15s}
.review-student-card.student-is-graded{border-color:#c9e6d4;background:#f5fbf7}
.review-student-summary{display:flex;align-items:center;gap:9px;min-height:55px;padding:8px 11px;cursor:pointer;list-style:none}
.review-student-summary::-webkit-details-marker{display:none}
.review-student-summary::marker{content:""}
.review-student-summary:hover{background:rgba(237,244,248,.55)}
.student-is-graded>.review-student-summary:hover{background:#edf8f1}
.review-student-summary .student-avatar{width:30px;height:30px;flex:none;font-size:11px}
.compact-student-info{display:grid;gap:1px;min-width:100px;flex:1}
.compact-student-info strong{overflow:hidden;color:#34435e;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.compact-student-info small{color:#929bad;font-size:11px}
.review-student-summary .status-badge{padding:4px 7px;font-size:11px}
.compact-grade{display:inline-flex;align-items:center;gap:5px;padding:3px 6px;border:1px solid #c6e5d1;border-radius:7px;background:#e9f7ee;color:#347b59}
.compact-grade small{font-size:11px}
.compact-grade b{font:800 12px Cairo,Tahoma,sans-serif}
.summary-chevron{display:grid;place-items:center;flex:none;width:23px;height:23px;border-radius:7px;background:#f0f2f6;color:#8b95a7;font-size:13px;transition:transform .15s}
.review-student-card[open]>.review-student-summary .summary-chevron{transform:rotate(180deg)}
.student-expanded-details{padding:0 12px 13px;border-top:1px solid #edf0f3}
.student-is-graded .student-expanded-details{border-color:#e2efe7}
.student-expanded-details .grade-form{margin-top:10px}
.student-expanded-details .teacher-version-list{padding-top:2px}
.review-controls-hint{margin:4px 0 0;color:#78849a;font-size:12px;line-height:1.7}
.evaluation-edit-actions{display:flex;justify-content:flex-start;margin:8px 0 10px}
.evaluation-edit-dialog{width:min(860px,calc(100% - 28px));max-height:min(92vh,980px)}
.evaluation-edit-dialog .evaluation-grade-select{font:600 13px Cairo,Tahoma,sans-serif}
.evaluation-edit-dialog .evaluation-feedback{width:100%;min-height:110px;padding:10px 12px;border:1px solid #e1e6ed;border-radius:9px;background:#fff;color:#35445f;font:500 13px/1.8 Cairo,Tahoma,sans-serif;resize:vertical}
.evaluation-edit-dialog .evaluation-feedback:focus{border-color:#65bc9a;box-shadow:0 0 0 3px rgba(81,189,148,.12);outline:none}
.evaluation-no-submission{margin:0;padding:9px 11px;border-radius:9px;background:#f6f7fa;color:#78849a;font-size:12px}
.revision-request-note{margin:0;padding:10px 12px;border:1px solid #d5ebdf;border-radius:10px;background:#f2faf5;color:#3c7659;font-size:12px;line-height:1.8}
.revision-action-row{display:flex;margin-top:2px}
.evaluation-edit-dialog .button-revision-request{width:100%;min-height:42px;border:1px solid #f0d7b7;background:#fff5e9;color:#92591c;box-shadow:none}
.evaluation-edit-dialog .button-revision-request:hover{background:#ffedd8}
.version-delete-form{flex:none;margin-inline-start:auto}
.version-delete-form .button{min-height:30px;padding:5px 9px;font-size:11.5px}

@media(max-width:800px){.term-grid{grid-template-columns:1fr}.term-card{padding:13px}}
@media(max-width:560px){.school-grade-card{padding:12px}.school-grade-heading h3{font-size:15px}.subject-create-form{grid-template-columns:1fr;padding:10px}.subject-create-form .button{width:100%}.legacy-course-row{align-items:stretch;flex-direction:column}.legacy-course-row form{width:100%}.legacy-course-row select{flex:1;min-width:0}.student-picker-tools{gap:12px}.student-picker-tools .text-button{font-size:11.5px}.completion-summary{gap:7px}.completion-stat{align-items:flex-start;gap:7px;padding:10px 9px}.completion-stat .completion-icon{width:27px;height:27px;border-radius:8px;font-size:13px}.completion-stat small{font-size:11px}.completion-stat strong{font-size:16px}.completion-total{align-self:flex-end;font-size:11px}.grade-breakdown{padding:11px 9px 1px}.grade-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.grade-stats .stat-card{padding:9px 7px;gap:6px}.grade-stats .stat-card small{font-size:11px}.grade-stats .stat-card strong{font-size:14px}.grade-letter{width:25px;height:25px;border-radius:7px;font-size:11px}.review-student-summary{gap:6px;min-height:51px;padding:7px}.review-student-summary .student-avatar{width:26px;height:26px}.compact-student-info{min-width:65px}.compact-student-info strong{font-size:11.5px}.review-student-summary .status-badge{max-width:104px;overflow:hidden;padding:3px 5px;font-size:11px;text-overflow:ellipsis}.compact-grade{gap:3px;padding:3px 4px}.compact-grade small{font-size:11px}.compact-grade b{font-size:11.5px}.summary-chevron{width:20px;height:20px}.student-expanded-details{padding:0 8px 10px}.version-summary{align-items:flex-start;flex-wrap:wrap}.version-delete-form{margin-inline-start:auto}.version-delete-form .button{min-height:32px}.evaluation-edit-actions .button{width:100%;min-height:39px}.evaluation-edit-dialog .course-dialog-actions .button{flex:1;min-width:0}}

/* Administrator-only school-year setup and tabbed curriculum management. */
[hidden]{display:none!important}
.admin-pill{color:#655da5;background:#f0effb;border:1px solid #e2dff7}
.admin-avatar{background:#eceafb;color:#625ca0}
.admin-dashboard{padding-top:29px}
.admin-year-mark{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #dcefe4;border-radius:11px;background:#f2faf5;color:#357b5b;font-size:12px;font-weight:700;white-space:nowrap}
.admin-info-note{display:flex;align-items:flex-start;gap:11px;margin:3px 0 20px;padding:12px 14px;border:1px solid #e4e8f3;border-radius:12px;background:#f8f9fd;color:#65728b}
.admin-info-note>span{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:7px;background:#eceefa;color:#6463a6;font:700 12px Cairo,Tahoma,sans-serif}
.admin-info-note p{margin:0;font-size:12px;line-height:1.8}.admin-info-note b{color:#40516e}
.admin-main-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:12px;padding:7px;border:1px solid #e8ebf1;border-radius:15px;background:#f7f8fb}
.admin-tab{display:flex;align-items:center;gap:11px;min-width:0;min-height:61px;padding:9px 13px;border:1px solid transparent;border-radius:11px;background:transparent;text-align:right;color:#65728a;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s,color .15s}
.admin-tab>span:first-child{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#fff;color:#78829a;font-size:17px;box-shadow:0 2px 6px rgba(35,49,74,.04)}
.admin-tab>span:last-child{display:grid;gap:3px;min-width:0}.admin-tab b{font-size:11px;color:#4e5b73}.admin-tab small{font-size:11px;color:#939caf}
.admin-tab:hover{background:#fff}.admin-tab.is-active{border-color:#dcece2;background:#fff;box-shadow:0 4px 13px rgba(38,86,63,.06)}.admin-tab.is-active>span:first-child{background:#eaf6ef;color:#32835d}.admin-tab.is-active b{color:#2c7552}
.admin-tab:focus-visible,.grade-tab:focus-visible{outline:2px solid #419b75;outline-offset:2px}
.admin-context-note{display:flex;align-items:center;gap:8px;margin-bottom:15px;padding:8px 11px;border:1px solid #e2efe7;border-radius:9px;background:#f5fbf7;color:#64816f;font-size:11.5px}
.admin-context-note>span{color:#34815c;font-size:13px}
.admin-tab-panel{padding:19px;border:1px solid #e8ebf1;border-radius:16px;background:#fff;box-shadow:0 6px 22px rgba(29,43,68,.035)}
.admin-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:17px}.admin-section-heading h2{margin:2px 0 4px;color:#2f3e59;font-size:18px}.admin-section-heading p{margin:0;color:#7d899e;font-size:12px;line-height:1.7}
.grade-tabs{display:flex;gap:7px;margin:0 0 14px;padding-bottom:2px;overflow-x:auto;scrollbar-width:thin}
.grade-tab{display:grid;grid-template-columns:31px auto;grid-template-rows:auto auto;align-items:center;column-gap:8px;min-width:145px;padding:9px 11px;border:1px solid #e8ebf1;border-radius:11px;background:#fafbfd;text-align:right;color:#66728a;cursor:pointer;transition:all .15s}
.grade-tab-mark{grid-row:1/3;display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#eef0f6;color:#6e7890;font:700 12px Cairo,Tahoma,sans-serif}
.grade-tab>span:nth-child(2){font-size:12px;font-weight:700;color:#4e5b73}.grade-tab small{font-size:11px;color:#9aa3b2}.grade-tab:hover{border-color:#cfdfd5;background:#fff}.grade-tab.is-active{border-color:#b9dcc6;background:#f3faf5;box-shadow:0 3px 10px rgba(37,117,76,.06)}.grade-tab.is-active .grade-tab-mark{background:#dff2e6;color:#2d8058}.grade-tab.is-active>span:nth-child(2){color:#2e7753}
.grade-tab-panel{scroll-margin-top:16px;padding:16px;border:1px solid #edf0f4;border-radius:13px;background:#fcfcfd}
.grade-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.grade-panel-heading h3{margin:2px 0;color:#33415c;font-size:16px}.grade-panel-heading p{margin:3px 0 0;color:#8791a3;font-size:11.5px}
.admin-create-course,.admin-terms-section{padding:14px;border:1px solid #e9edf2;border-radius:12px;background:#fff}.admin-subheading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.admin-subheading h4{margin:0;color:#394861;font-size:12px}.admin-subheading p{margin:3px 0 0;color:#8c96a7;font-size:11.5px}.admin-inline-icon{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:8px;background:#eaf6ef;color:#3b8b62;font-size:16px}
.admin-course-form{grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr) minmax(0,1fr) auto}.admin-course-form .button{min-width:110px}.admin-course-form input,.admin-course-form select{width:100%}.admin-no-teachers{margin:9px 0 0}
.admin-course-list{display:grid;gap:9px;margin:12px 0 18px}.admin-course-card{padding:12px 14px;border:1px solid #e6eaf0;border-radius:11px;background:#fff;scroll-margin-top:16px}.admin-course-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.admin-course-title{display:flex;align-items:center;gap:9px;min-width:0}.admin-course-icon{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:9px;background:#f0f1fa;color:#6968a7;font-size:14px}.admin-course-title h4{margin:0;color:#33425f;font-size:11px}.admin-course-title p{display:flex;gap:5px;margin:3px 0 0;color:#8993a5;font-size:11px}.admin-course-terms{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:10px 0 7px}.admin-label{font-size:11px;font-weight:700;color:#8791a3}.admin-course-roster{max-height:136px;margin-top:7px}.admin-course-card>.course-roster-empty{margin-top:8px}
.admin-course-teacher-form{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin:10px 0 3px;padding:9px 10px;border:1px solid #edf0f4;border-radius:9px;background:#fafbfd}.admin-course-teacher-form>label{display:flex;align-items:center;gap:8px;min-width:min(100%,280px);font-size:11.5px;font-weight:700;color:#69758b}.admin-course-teacher-form select{flex:1;min-width:120px;height:33px;padding:5px 8px;border:1px solid #e2e6ee;border-radius:8px;background:#fff;color:#35445f;font:500 11.5px Cairo,Tahoma,sans-serif}.admin-course-teacher-form .button{height:33px}.admin-course-teacher-form small{flex-basis:100%;color:#9a7c48;font-size:11px}
.admin-empty-card{display:flex;align-items:center;gap:10px;margin:12px 0 18px;padding:14px;border:1px dashed #dfe5ec;border-radius:11px;background:#fff;color:#8993a5}.admin-empty-card>span{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:#f0f2f7;color:#78849b;font-size:16px}.admin-empty-card p{margin:0;font-size:11.5px;line-height:1.7}
.admin-terms-section{margin-top:13px}.admin-term-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.admin-term-card{min-width:0;padding:11px;border:1px solid #e7eaf0;border-radius:11px;background:#f8f9fc;scroll-margin-top:17px}.admin-term-card .term-card-heading h4{font-size:11px}.admin-term-card .term-card-heading p{font-size:11px}.admin-term-card .term-completion-actions .button{justify-self:stretch;text-align:center}.admin-term-card .term-completion-actions form{justify-self:start}.admin-term-card .term-completion-actions .text-button{font-size:11.5px}
.admin-legacy-courses{margin-top:14px}.admin-legacy-assignment form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.admin-registration-panel,.admin-teacher-panel{padding:17px}.admin-registration-panel .schedule-form{margin-top:15px}.registration-summary{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #e6efe8;border-radius:11px;background:#f7fbf8}.registration-summary-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#e7f4eb;color:#34825a;font-size:17px}.registration-summary>div{display:grid;gap:3px}.registration-summary b{font-size:11px;color:#40576a}.registration-summary small{font-size:11.5px;color:#8b98a2}
.admin-teacher-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:10px}.admin-teacher-form .button{height:39px;white-space:nowrap}.admin-teacher-list{display:grid;gap:7px;margin-top:16px}.admin-teacher-row{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid #e9edf2;border-radius:10px;background:#fbfcfd}.admin-teacher-row>div{display:grid;gap:2px;flex:1}.admin-teacher-row>div b{font-size:12px;color:#43516b}.admin-teacher-row>div small{font:11.5px Cairo,Tahoma,sans-serif;color:#929bad;direction:ltr;text-align:right}.admin-teacher-row .avatar{width:29px;height:29px;font-size:12px}.admin-teacher-row .status-badge{font-size:11px}.admin-empty-teachers{margin:13px 0 0;color:#8c96a7;font-size:11.5px}
.admin-teacher-identity{min-width:120px;flex:0 0 150px!important}.teacher-password-reset{display:grid;grid-template-columns:repeat(2,minmax(145px,1fr)) auto;align-items:end;gap:7px;flex:1}.teacher-password-reset .field{gap:4px}.teacher-password-reset .field label{margin:0;font-size:11px}.teacher-password-reset input{height:31px;padding:6px 8px;border:1px solid #e2e6ee;border-radius:8px;background:#fff;color:#35445f;font-size:11.5px}.teacher-password-reset .button{height:31px;white-space:nowrap}
.student-import-panel{padding:17px;border:1px solid #e7ebf1;border-radius:13px;background:#fff}.student-import-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}.student-import-actions h3{margin:3px 0;color:#34435e;font-size:13px}.student-import-actions p{margin:3px 0 0;color:#8792a5;font-size:11.5px;line-height:1.7}.student-import-actions .button{white-space:nowrap}.student-import-note{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0 12px;padding:9px 11px;border-radius:9px;background:#f4f7fb;color:#78859a;font-size:11.5px}.student-import-note b{color:#53627a}.student-import-form{display:grid;grid-template-columns:1fr 1.2fr auto;align-items:end;gap:10px}.student-import-form input[type=file]{width:100%;min-height:39px;padding:7px;border:1px solid #e2e6ee;border-radius:9px;background:#fff;color:#54627b;font-size:11.5px}.student-import-form .button{height:39px;white-space:nowrap}.student-import-panel>.field-hint{margin-top:10px;line-height:1.7}
.student-roster-tables{display:grid;grid-template-columns:1fr;gap:10px;margin-top:15px}.student-roster-grade{padding:13px;border:1px solid #e8ebf1;border-radius:12px;background:#fff}.student-roster-grade .admin-subheading{margin-bottom:8px}.student-roster-scroll{max-height:310px;overflow:auto;border:1px solid #edf0f4;border-radius:9px}.student-roster-table{width:100%;border-collapse:collapse;font-size:11.5px}.student-roster-table th{position:sticky;top:0;padding:8px 10px;background:#f4f6fa;color:#66748b;text-align:right;font-weight:700}.student-roster-table td{padding:7px 10px;border-top:1px solid #f0f2f6;color:#53617a}.student-roster-table .national-id-cell{font-family:Cairo,Tahoma,sans-serif;direction:ltr;text-align:right;font-variant-numeric:tabular-nums}.student-roster-table .status-badge{padding:3px 7px;font-size:11px}
@media(max-width:820px){.admin-course-form{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-course-form .button{grid-column:1/-1}.admin-term-grid{grid-template-columns:1fr}.admin-teacher-form{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-teacher-form .button{grid-column:1/-1}.admin-teacher-row{align-items:flex-start;flex-wrap:wrap}.admin-teacher-row .status-badge{margin-right:auto}.teacher-password-reset{flex-basis:100%}.student-import-form{grid-template-columns:repeat(2,minmax(0,1fr))}.student-import-form .button{grid-column:1/-1}}
@media(max-width:620px){.admin-dashboard{padding-top:19px}.admin-year-mark{font-size:11px;padding:7px 9px}.admin-main-tabs{grid-template-columns:1fr;gap:5px;padding:5px}.admin-tab{min-height:51px;padding:7px 9px}.admin-tab>span:first-child{width:30px;height:30px}.admin-tab b{font-size:12px}.admin-tab small{font-size:11px}.admin-tab-panel{padding:12px}.admin-section-heading{align-items:flex-start}.admin-section-heading h2{font-size:15px}.admin-section-heading p{font-size:11.5px}.grade-tab{min-width:130px;padding:8px}.grade-tab-panel{padding:10px}.grade-panel-heading h3{font-size:14px}.admin-create-course,.admin-terms-section{padding:10px}.admin-course-form{grid-template-columns:1fr}.admin-course-form .button{grid-column:auto;width:100%}.admin-course-head{align-items:flex-start}.admin-course-head>.button{padding:6px 8px;font-size:11px}.admin-course-title h4{font-size:12px}.admin-course-title p{flex-wrap:wrap}.admin-legacy-assignment form{grid-template-columns:1fr}.admin-legacy-assignment form .button{width:100%}.admin-teacher-form{grid-template-columns:1fr}.admin-teacher-form .button{grid-column:auto;width:100%}.registration-summary{align-items:flex-start;padding:10px}.registration-summary small{line-height:1.6}.admin-info-note{padding:10px}.admin-info-note p{font-size:11.5px}.student-import-actions{align-items:stretch;flex-direction:column}.student-import-actions .button{width:100%}.student-import-form{grid-template-columns:1fr}.student-import-form .button{grid-column:auto;width:100%}.teacher-password-reset{grid-template-columns:1fr}.teacher-password-reset .button{width:100%}.admin-teacher-identity{flex:1 1 130px!important}}
@media(max-width:560px){.admin-course-teacher-form{align-items:stretch}.admin-course-teacher-form>label{width:100%;align-items:stretch;flex-direction:column;gap:5px}.admin-course-teacher-form select{width:100%}.admin-course-teacher-form .button{width:100%}}
.form-stack select{width:100%;height:47px;border:1px solid #e2e6ee;background:#fff;border-radius:10px;padding:10px 13px;color:var(--ink);outline:none;font:inherit;transition:border-color .18s,box-shadow .18s}.form-stack select:focus{border-color:#65bc9a;box-shadow:0 0 0 3px rgba(101,188,154,.12)}

/* Admin account edit and password reset dialogs. */
.admin-edit-dialog{width:min(600px,calc(100% - 28px));max-height:min(84vh,720px);padding:0;border:1px solid #e0e5ed;border-radius:17px;background:#fff;color:#31415d;box-shadow:0 24px 80px rgba(18,31,54,.24)}
.admin-edit-dialog::backdrop{background:rgba(22,34,55,.48);backdrop-filter:blur(2px)}
.admin-edit-dialog .course-dialog-heading{align-items:flex-start}
.admin-edit-dialog .course-dialog-heading h3{margin:2px 0 0;font-size:16px}
.admin-edit-form{display:grid;gap:12px;max-height:calc(84vh - 90px);overflow-y:auto;padding:16px 20px 19px}
.admin-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 13px}
.admin-edit-form .field{min-width:0;gap:6px}
.admin-edit-form .field label{margin:0;color:#5c6980;font-size:11px}
.admin-edit-form .field input,.admin-edit-form .field select{width:100%;height:41px;padding:8px 10px;border:1px solid #e1e6ed;border-radius:9px;background:#fff;color:#35445f;font:500 11px Cairo,Tahoma,sans-serif;outline:none}
.admin-edit-form .field input:focus,.admin-edit-form .field select:focus{border-color:#65bc9a;box-shadow:0 0 0 3px rgba(81,189,148,.12)}
.admin-edit-form .field-hint{margin:0;color:#8a96a8;font-size:11.5px;line-height:1.7}
.admin-edit-form .course-dialog-actions{padding-top:10px}
.student-add-open{white-space:nowrap}
.student-add-dialog{width:min(480px,calc(100% - 28px))}
.student-add-dialog .course-dialog-heading p{max-width:390px;line-height:1.7}
.student-add-dialog .field-hint{display:block}
.student-account-open{display:grid;gap:1px;padding:0;border:0;background:transparent;color:#40526c;text-align:right;cursor:pointer}
.student-account-open span{font:700 12px Cairo,Tahoma,sans-serif;color:#34785f}
.student-account-open small{font-size:11px;color:#98a2b2}
.student-account-open:hover span{text-decoration:underline;text-underline-offset:3px}
.student-account-open:focus-visible,.teacher-password-open:focus-visible{outline:2px solid #419b75;outline-offset:3px}
.teacher-password-open{margin-inline-start:auto;white-space:nowrap}
.teacher-password-dialog{width:min(500px,calc(100% - 28px))}
@media(max-width:560px){.admin-edit-dialog{width:calc(100% - 20px);max-height:88vh;border-radius:14px}.admin-edit-dialog .course-dialog-heading{padding:15px 14px 11px}.admin-edit-form{max-height:calc(88vh - 80px);padding:13px 14px 15px}.admin-edit-grid{grid-template-columns:1fr;gap:9px}.admin-edit-form .course-dialog-actions .button{flex:1;min-width:0}.teacher-password-open{margin-inline-start:0;width:100%}.student-roster-grade .admin-subheading{align-items:flex-start}.student-add-open{min-height:34px;padding:6px 9px;font-size:11.5px}}

/* Main navigation for the teacher dashboard sections. */
.teacher-navbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.97);border-bottom:1px solid #e8ebf1;box-shadow:0 5px 16px rgba(25,40,68,.035);backdrop-filter:blur(12px)}
.teacher-navbar-inner{display:flex;align-items:center;gap:6px;width:min(1030px,calc(100% - 48px));min-height:51px;margin:0 auto}
.teacher-navbar button{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:7px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:#65728a;font-family:inherit;font-size:11px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.teacher-navbar button>span{color:#3a9a73;font-size:14px}
.teacher-navbar button:hover,.teacher-navbar button.is-active{border-color:#dcefe5;background:#f1faf5;color:#267951}
.teacher-navbar button.is-active{box-shadow:inset 0 -2px 0 #3a9a73}
.teacher-navbar button:focus-visible{outline:2px solid #419b75;outline-offset:2px}
#courses,#registration,#assignments{scroll-margin-top:68px}
@media(max-width:560px){.teacher-navbar-inner{width:100%;min-height:48px;gap:3px;padding:0 9px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}.teacher-navbar-inner::-webkit-scrollbar{display:none}.teacher-navbar button{min-height:34px;gap:5px;padding:6px 9px;font-size:11.5px}.teacher-navbar button>span{font-size:12px}#courses,#registration,#assignments{scroll-margin-top:56px}}

/* Modal reminder shown after saving feedback without requesting a new submission. */
.grade-warning-popup{width:min(440px,calc(100% - 32px));max-width:none;padding:0;border:1px solid #efd39c;border-radius:18px;background:#fff;box-shadow:0 28px 90px rgba(23,38,61,.28);color:var(--ink)}
.grade-warning-popup::backdrop{background:rgba(19,31,50,.58);backdrop-filter:blur(3px)}
.grade-warning-content{padding:22px 24px 20px}
.grade-warning-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}
.grade-warning-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#fff1d8;color:#b76c0a;font:800 21px Cairo,Tahoma,sans-serif}
.grade-warning-close{display:grid;place-items:center;width:31px;height:31px;border:0;border-radius:9px;background:#f3f5f8;color:#778299;font-size:21px;cursor:pointer}
.grade-warning-close:hover{background:#e9edf3;color:#34435e}
.grade-warning-kicker{color:#a56815;font-size:12px;font-weight:800}
.grade-warning-popup h2{margin:3px 0 7px;color:#233550;font-size:19px;line-height:1.5}
.grade-warning-popup p{margin:0;color:#68758c;font-size:13px;line-height:1.9}
.grade-warning-actions{display:flex;justify-content:flex-start;margin-top:18px}
@media(max-width:560px){.grade-warning-content{padding:18px}.grade-warning-popup h2{font-size:17px}.grade-warning-popup p{font-size:12px}}

/* Admin student and teacher account management actions. */
.button.button-danger{border:1px solid #b84450;background:#b84450;color:#fff;font-weight:800;box-shadow:0 3px 9px rgba(160,48,59,.14)}
.button.button-danger:hover{border-color:#96313c;background:#96313c}
.button.button-danger:disabled{border-color:#d6d9df;background:#d6d9df;color:#747e8e;box-shadow:none;cursor:not-allowed}
.student-admin-actions{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:14px 0}
.student-admin-action-card{display:flex;align-items:center;justify-content:space-between;gap:13px;min-width:0;padding:14px 16px;border:1px solid #e4ebe6;border-radius:12px;background:#fff}
.student-admin-action-card h3{margin:2px 0 3px;color:#35445e;font-size:12px}
.student-admin-action-card p{margin:0;color:#7f8ba0;font-size:11.5px;line-height:1.7}
.student-admin-action-card form{flex:none}
.student-admin-danger-card{border-color:#f0d7d9;background:#fffafa}
.student-admin-danger-card .section-kicker{color:#ad4a54}
.student-delete-all-dialog{width:min(510px,calc(100% - 24px))}
.student-delete-all-dialog .course-dialog-heading p{max-width:420px;color:#845057}
.bulk-delete-form .field input{height:40px;border:1px solid #e4b9bd;border-radius:9px;padding:8px 10px;background:#fff;color:#39445a}
.bulk-delete-form .field input:focus{outline:2px solid #e8a3a8;outline-offset:2px}
.bulk-delete-form .button-danger{min-width:185px}
.student-row-actions .button-danger{padding:5px 8px;font-size:11px}
.teacher-removal-note{margin:9px 0 0;line-height:1.7}
.teacher-delete-open{white-space:nowrap}
.teacher-delete-dialog{width:min(480px,calc(100% - 24px))}
.teacher-delete-dialog .admin-edit-form{max-height:65vh;overflow-y:auto}
.teacher-delete-dialog .course-dialog-heading p{line-height:1.7}
.teacher-delete-dialog .field select{width:100%;height:40px;border:1px solid #e2e6ee;border-radius:9px;padding:7px 10px;background:#fff;color:#34425d}
.teacher-delete-dialog .course-dialog-actions .button-danger{margin-inline-start:auto}
.teacher-delete-blocked{margin:0;padding:9px;border-radius:8px;background:#fff4e5;color:#845119}
@media(max-width:820px){.student-admin-actions{grid-template-columns:1fr}.student-admin-action-card{align-items:flex-start}}
@media(max-width:620px){.student-admin-action-card{flex-direction:column;align-items:stretch;padding:12px}.student-admin-action-card>.button,.student-admin-action-card form .button{width:100%}.bulk-delete-form .course-dialog-actions{align-items:stretch}.bulk-delete-form .course-dialog-actions .button{flex:1;min-width:0}.teacher-delete-dialog .course-dialog-actions{align-items:stretch;flex-wrap:wrap}.teacher-delete-dialog .course-dialog-actions .button{flex:1;min-width:0}.teacher-delete-dialog .course-dialog-actions .button-danger{margin-inline-start:0}}

.admin-course-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.admin-course-actions .button{white-space:nowrap}
.admin-course-edit-dialog{width:min(510px,calc(100% - 28px))}
.admin-course-delete-dialog{width:min(500px,calc(100% - 28px))}
.term-remove-subject-form{display:inline-flex;margin:0}
.term-subject-remove{gap:7px;font:inherit;cursor:pointer;transition:border-color .15s,background .15s}
.term-subject-remove:hover{border-color:#efb8b8;background:#fff4f4;color:#a94545}
.term-subject-remove>span:last-child{font-size:12px;line-height:1;color:#a66d6d}
.admin-assignment-management{margin-top:15px;padding:14px;border:1px solid #e6eaf0;border-radius:12px;background:#fff}
.admin-assignment-management .admin-subheading h3{margin:2px 0;color:#394861;font-size:12px}
.admin-assignment-management .admin-subheading p{margin:3px 0 0;color:#8c96a7;font-size:11.5px}
.admin-assignment-list{display:grid;max-height:420px;overflow:auto;border:1px solid #edf0f4;border-radius:9px}
.admin-assignment-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border-top:1px solid #edf0f4}
.admin-assignment-row:first-child{border-top:0}
.admin-assignment-info{display:grid;gap:2px;min-width:0}
.admin-assignment-info>b{overflow:hidden;color:#394861;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.admin-assignment-info>span{color:#4a8068;font-size:11.5px}
.admin-assignment-info>small{color:#8a95a7;font-size:11px}
.admin-assignment-row form{flex:none;margin:0}
.teacher-last-delete-consent{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid #f1d2d2;border-radius:9px;background:#fff6f6;color:#8d4141;font-size:12px;line-height:1.7;cursor:pointer}
.teacher-last-delete-consent input{flex:none;margin:4px 0 0;accent-color:#b84e4e}
.legacy-course-row form+form{margin:0}
@media(max-width:620px){.admin-course-actions{width:100%;justify-content:flex-start}.admin-course-actions .button{flex:1}.admin-course-head{flex-wrap:wrap}.admin-assignment-row{align-items:flex-start;flex-direction:column}.admin-assignment-row form,.admin-assignment-row form .button{width:100%}.legacy-course-row{align-items:stretch;flex-wrap:wrap}.legacy-course-row>strong{width:100%}.legacy-course-row form,.legacy-course-row form .button{width:100%}}

/* Clearer school setup cards and student rosters. */
.grade-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;margin-bottom:17px}
.grade-tab{min-height:62px;padding:10px 12px;border-radius:13px;background:#fff;box-shadow:0 3px 10px rgba(36,54,78,.035)}
.grade-tab.is-active{border-color:#a9d5b9;background:linear-gradient(135deg,#f0faf3,#fff);box-shadow:0 6px 16px rgba(37,117,76,.09)}
.grade-tab-panel{padding:20px;border-color:#e4ebe6;border-radius:17px;background:linear-gradient(180deg,#fbfdfb 0,#fff 190px);box-shadow:0 8px 24px rgba(35,55,78,.035)}
.grade-panel-heading{padding:0 2px 15px;border-bottom:1px solid #e9eee9}
.grade-panel-heading h3{font-size:18px}
.grade-panel-heading p{font-size:12px}
.admin-create-course,.admin-terms-section{padding:17px;border-color:#e5ece7;border-radius:15px;box-shadow:0 4px 14px rgba(39,66,52,.035)}
.admin-create-course{background:linear-gradient(135deg,#f5fbf7,#fff 72%)}
.admin-course-form{gap:11px}
.admin-course-form .button{min-height:42px;border-radius:10px}
.admin-course-list{gap:12px;margin:15px 0 20px}
.admin-course-card{position:relative;overflow:hidden;padding:16px 17px;border-color:#e1e9e4;border-radius:15px;background:linear-gradient(110deg,#fff 0,#fff 70%,#fbfdfc 100%);box-shadow:0 5px 16px rgba(39,57,78,.045);transition:transform .15s,border-color .15s,box-shadow .15s}
.admin-course-card::before{position:absolute;inset-block:0;inset-inline-start:0;width:4px;background:linear-gradient(180deg,#59ad7e,#a8d8b8);content:""}
.admin-course-card:hover{transform:translateY(-1px);border-color:#cbded1;box-shadow:0 9px 22px rgba(39,77,54,.08)}
.admin-course-head{align-items:flex-start;padding-bottom:12px;border-bottom:1px solid #edf1ee}
.admin-course-title{gap:11px}
.admin-course-icon{width:40px;height:40px;border:1px solid #dceee2;border-radius:12px;background:linear-gradient(145deg,#e9f7ed,#f6fbf7);color:#34815a;font-size:17px}
.admin-course-title h4{font-size:14px}
.admin-course-title p{align-items:center;gap:6px;margin-top:5px;font-size:12px}
.admin-course-actions{gap:7px}
.admin-course-actions .button{min-height:34px;border-radius:9px}
.course-roster-auto-note{font-size:11.5px}
.admin-course-teacher-form{gap:10px;margin-top:12px;padding:11px 12px;border-color:#e8eee9;border-radius:11px;background:#f8faf9}
.admin-course-teacher-form>label{font-size:12px}
.admin-course-teacher-form select{height:36px;font-size:12px}
.admin-course-teacher-form .button{height:36px}
.admin-course-terms{margin:11px 0 8px}
.admin-course-terms .admin-label{font-size:11.5px}
.admin-course-terms .term-subject-chip{padding:5px 10px;border-color:#d6e9dc;border-radius:999px;background:#f5fbf6;color:#347653;font-size:12px}
.admin-course-roster{grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:6px;max-height:148px;margin-top:10px;padding-top:9px;border-top:1px dashed #e7ece8}
.admin-course-roster li{padding:7px 9px;border-color:#edf0ed;border-radius:9px;background:#fbfcfb}
.admin-course-roster li span{font-size:11.5px}
.admin-course-roster li small{font-size:11px}
.admin-course-card>.course-roster-empty{padding:9px 10px;border-radius:9px;background:#f7f9f8;font-size:12px}
.admin-terms-section{margin-top:16px;background:#fafcfb}
.admin-terms-section>.admin-subheading{padding-bottom:11px;border-bottom:1px solid #edf1ee}
.admin-term-grid{grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:12px}
.admin-term-card{padding:15px;border-color:#e1e8e3;border-radius:14px;background:#fff;box-shadow:0 4px 13px rgba(39,57,78,.035)}
.admin-term-card .term-card-heading{align-items:center;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #edf1ee}
.admin-term-card .term-card-heading h4{margin:4px 0;font-size:14px}
.admin-term-card .term-card-heading p{font-size:11.5px}
.admin-term-card .term-assigned-subjects{gap:7px;margin:10px 0}
.admin-term-card .term-subject-chip{padding:6px 9px;border-radius:9px;background:#f5faf6;color:#3b7856;font-size:12px}
.admin-term-card .term-add-subject-label{font-size:12px}
.admin-term-card .term-add-subject-button{min-height:34px;padding:6px 10px;border-radius:9px;font-size:12px}
.admin-term-card .term-complete-form .button{min-height:40px;border-radius:10px;font-size:12px}
.admin-empty-card{padding:17px;border-radius:13px;background:#fbfcfd;font-size:12px}

.student-roster-tables{grid-template-columns:repeat(auto-fit,minmax(min(100%,410px),1fr));gap:16px;margin-top:18px;align-items:start}
.student-roster-grade{min-width:0;padding:17px;border-color:#e3e9e5;border-radius:15px;background:linear-gradient(180deg,#fbfdfb,#fff 100px);box-shadow:0 5px 16px rgba(35,55,78,.045)}
.student-roster-grade .admin-subheading{align-items:center;margin-bottom:13px;padding-bottom:12px;border-bottom:1px solid #e9eeea}
.student-roster-grade .admin-subheading h4{font-size:15px}
.student-roster-grade .admin-subheading p{display:inline-flex;width:max-content;margin-top:5px;padding:4px 8px;border:1px solid #e0ede4;border-radius:999px;background:#f2faf4;color:#42805c;font-size:11.5px;font-weight:700}
.student-roster-grade .student-add-open{min-height:37px;border-radius:10px}
.student-roster-scroll{max-height:min(58vh,480px);border-color:#e7ece8;border-radius:11px;scrollbar-color:#c9d8ce #f7f9f7;scrollbar-width:thin}
.student-roster-table{min-width:620px;font-size:12px}
.student-roster-table th{z-index:1;padding:10px 11px;background:#f2f7f3;color:#536c5d;font-size:11.5px}
.student-roster-table td{padding:9px 11px;border-top-color:#edf1ee;vertical-align:middle}
.student-roster-table tbody tr:nth-child(even){background:#fbfcfb}
.student-roster-table tbody tr:hover{background:#f4faf6}
.student-account-open{gap:3px}
.student-account-open span{font-size:12px}
.student-account-open small{font-size:11px}
.student-roster-table .national-id-cell{font-size:12px;color:#475a70}
.student-roster-table .status-badge{padding:5px 8px;border-radius:999px;font-size:11px;white-space:nowrap}
.student-row-actions .button-danger{min-height:30px;border-radius:8px;font-size:11.5px}
.student-roster-grade>.course-roster-empty{padding:17px;border:1px dashed #e0e8e2;border-radius:11px;background:#f8faf8;text-align:center;font-size:12px}
@media(max-width:820px){.admin-term-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.grade-tabs{grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:6px}.grade-tab{min-width:0;min-height:56px;padding:8px}.grade-tab-panel{padding:11px;border-radius:13px}.grade-panel-heading{align-items:flex-start}.grade-panel-heading h3{font-size:15px}.admin-create-course,.admin-terms-section{padding:11px}.admin-course-card{padding:13px 12px}.admin-course-head{gap:9px}.admin-course-title{gap:8px}.admin-course-icon{width:34px;height:34px}.admin-course-title h4{font-size:12px}.admin-course-actions{gap:5px}.admin-course-actions .button{font-size:11px}.admin-course-teacher-form{align-items:stretch}.admin-course-roster{grid-template-columns:1fr}.admin-term-grid{grid-template-columns:1fr}.admin-term-card{padding:12px}.student-roster-tables{grid-template-columns:1fr;gap:11px}.student-roster-grade{padding:12px}.student-roster-grade .admin-subheading{align-items:flex-start}.student-roster-grade .student-add-open{padding:7px 9px;font-size:11.5px}.student-roster-scroll{max-height:58vh}.student-roster-table{min-width:0;table-layout:fixed;font-size:11.5px}.student-roster-table th,.student-roster-table td{padding:7px 5px}.student-roster-table th:nth-child(1),.student-roster-table td:nth-child(1){width:34%}.student-roster-table th:nth-child(2),.student-roster-table td:nth-child(2){width:22%}.student-roster-table th:nth-child(3),.student-roster-table td:nth-child(3){width:23%}.student-roster-table th:nth-child(4),.student-roster-table td:nth-child(4){width:21%}.student-account-open span{overflow-wrap:anywhere;font-size:11.5px;line-height:1.45}.student-account-open small{display:none}.student-roster-table .national-id-cell{font-size:11px;overflow-wrap:anywhere}.student-roster-table .status-badge{padding:4px 5px;font-size:11px;white-space:normal}.student-row-actions .button-danger{min-height:26px;padding:4px 5px;font-size:11px;white-space:normal}}

.password-reset-panel{margin-top:18px;padding:13px 15px;border:1px solid #dce5f2;border-radius:13px;background:#f8faff;color:#31415d}.password-reset-panel summary{color:#175ac7;font-weight:800;cursor:pointer}.password-reset-panel>p{margin:9px 0;color:#687995;font-size:13px;line-height:1.7}.password-reset-panel form{margin-top:12px}.password-reset-admin-panel{margin-block:14px}.student-reset-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.student-reset-actions form{margin:0}.student-password-admin-form{margin-top:15px;padding-top:14px;border-top:1px solid #e5eaf2}.student-password-admin-form .course-dialog-actions{justify-content:flex-start}

.admin-teacher-load-panel{margin-top:14px;padding:14px;border:1px solid #e6eaf0;border-radius:12px;background:#fff}
.admin-teacher-load-panel .admin-subheading{margin-bottom:10px}
.admin-teacher-load-panel .admin-subheading h4{margin:0;color:#394861;font-size:12px}
.admin-teacher-load-panel .admin-subheading p{margin:3px 0 0;color:#8c96a7;font-size:11.5px}
.teacher-load-scroll{overflow:auto;border:1px solid #e8edf3;border-radius:10px}
.teacher-load-table{width:100%;min-width:640px;border-collapse:collapse;font-size:12px}
.teacher-load-table th,.teacher-load-table td{padding:10px 12px;border-bottom:1px solid #edf0f4;text-align:right;vertical-align:top}
.teacher-load-table thead th{background:#f5f7fa;color:#68758a;font-size:11.5px;font-weight:700;white-space:nowrap}
.teacher-load-table tbody th{min-width:145px;background:#fbfcfd;color:#394861;font-weight:700}
.teacher-load-grade{min-width:90px;color:#596880;font-weight:600;white-space:nowrap}
.teacher-load-table tbody tr:last-child th,.teacher-load-table tbody tr:last-child td{border-bottom:0}
.teacher-load-subjects{display:flex;flex-wrap:wrap;gap:5px;margin:0;padding:0;list-style:none}
.teacher-load-subjects li{padding:4px 8px;border:1px solid #d9eadf;border-radius:999px;background:#f2faf4;color:#3e7556;font-size:11.5px;white-space:nowrap}
.teacher-load-empty{color:#a0a8b4;font-size:11.5px}
.teacher-load-no-teachers,.teacher-load-no-terms{padding:12px;color:#8490a2;text-align:center;font-size:12px}
.teacher-load-no-terms{margin:0;border:1px dashed #e0e5ec;border-radius:9px;background:#fafbfd}
@media(max-width:620px){.admin-teacher-load-panel{padding:11px}.teacher-load-table th,.teacher-load-table td{padding:8px 9px}}
.brand-logo{display:block;width:40px;height:40px;flex:none;object-fit:cover;border-radius:10px}
.auth-story .brand-logo{width:48px;height:48px}
.course-roster-auto-note{display:inline-flex;align-items:center;align-self:center;padding:6px 9px;border:1px solid #d9eadf;border-radius:999px;background:#f2faf4;color:#3e7556;font-size:11.5px;font-weight:700;white-space:nowrap}
.assignment-reopen-control{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding:11px 12px;border:1px solid #dbe8e1;border-radius:11px;background:#f6fbf8}
.assignment-reopen-control form{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0}
.assignment-reopen-control form small{color:#728578;font-size:11.5px}
.assignment-reopen-control .status-badge{margin-inline-start:auto}
.assignment-term-lock{border-color:#f1dfc5;background:#fffaf2;color:#8d6b3e;font-size:12px}
@media(max-width:620px){.brand-logo{width:36px;height:36px}.course-roster-auto-note{white-space:normal}.assignment-reopen-control{align-items:stretch;flex-direction:column}.assignment-reopen-control form{align-items:stretch;flex-direction:column}.assignment-reopen-control .status-badge{align-self:flex-start;margin-inline-start:0}}

/* Teacher assignment edit and delete actions. */
.assignment-card-actions{display:flex;align-items:center;justify-content:flex-start;gap:7px;flex-wrap:wrap;flex-shrink:0}
.assignment-delete-form{margin:0}
.teacher-assignment-edit-dialog .assignment-edit-form .field textarea{width:100%;min-height:96px;padding:9px 10px;border:1px solid #e1e6ed;border-radius:9px;background:#fff;color:#35445f;font:500 11px Cairo,Tahoma,sans-serif;resize:vertical}
.teacher-assignment-edit-dialog .assignment-edit-form .field textarea:focus{border-color:#65bc9a;box-shadow:0 0 0 3px rgba(81,189,148,.12);outline:none}
@media(max-width:620px){.assignment-card-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.assignment-card-actions>a,.assignment-card-actions>button,.assignment-card-actions>form{width:100%}.assignment-card-actions .button{width:100%;font-size:12px;padding:8px 7px}.assignment-delete-form{grid-column:1/-1}}

/* Mobile layout refinements across student, teacher, and administrator screens. */
@media(max-width:760px){
  .topbar{gap:10px;min-width:0}
  .topbar-right{min-width:0;gap:8px}
  .brand{min-width:0;gap:7px}
  .user-chip{min-width:0;max-width:min(44vw,230px)}
  .user-chip>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .dashboard-wrap,.admin-dashboard{min-width:0}
  .teacher-assignment-card,.assignment-card-main,.assignment-card-actions,.admin-tab-panel,.admin-main-tabs,.admin-tab,.admin-course-card,.admin-term-card,.admin-assignment-row{min-width:0}
  .assignment-card-main{flex:1 1 auto}
  .detail-hero>div:first-child{flex:1 1 auto;min-width:0}
  .detail-hero h1,.detail-hero p,.assignment-description,.version-info a{overflow-wrap:anywhere}
  .teacher-load-scroll,.student-roster-scroll{max-width:100%;overscroll-behavior-inline:contain}
}
@media(max-width:620px){
  .welcome-row{flex-wrap:wrap}
  .welcome-row>div{min-width:0;flex:1 1 190px}
  .welcome-row>.button{margin-top:0}
  .admin-main-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-tab{gap:7px;padding:8px;overflow-wrap:anywhere}
  .admin-tab>span:last-child{overflow-wrap:anywhere}
  .admin-tab small{line-height:1.5}
  .assignment-card-actions{min-width:0}
  .assignment-card-actions form{margin:0;min-width:0}
  .assignment-card-actions .button{min-height:40px;white-space:normal}
  .button{min-height:40px}
  .form-stack input,.form-stack select,.field input,.field select,.field textarea,.review-form textarea{font-size:16px}
  .course-dialog-actions{flex-wrap:wrap}
  .course-dialog-actions .button{min-height:42px}
}
@media(max-width:380px){
  .assignment-dates{grid-template-columns:1fr}
  .topbar{padding-inline:10px}
  .topbar-right{gap:6px}
  .brand{font-size:15px}
  .user-chip{max-width:40vw}
  .welcome-row>.button{width:100%}
  .admin-main-tabs{gap:4px}
  .admin-tab{gap:5px;padding:7px}
}

/* Keep teacher assignment cards readable on narrow tablets and phones. */
@media(max-width:820px){
  .teacher-assignment-card{flex-direction:column;align-items:stretch}
  .assignment-card-main{width:100%;flex:1 1 auto}
  .assignment-card-main>div:last-child{flex:1 1 auto;min-width:0}
  .assignment-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;flex:none}
  .assignment-card-actions>a,.assignment-card-actions>button,.assignment-card-actions>form{width:100%;min-width:0}
  .assignment-card-actions .button{width:100%;min-height:42px;white-space:normal}
  .assignment-card-actions form{margin:0}
}


/* Assignment type selector and visible classification badges. */
.field select{width:100%;height:43px;padding:10px 13px;border:1px solid #e2e6ee;border-radius:10px;background:#fff;color:var(--ink);outline:none;transition:border-color .18s,box-shadow .18s}
.field select:focus{border-color:#65bc9a;box-shadow:0 0 0 3px rgba(81,189,148,.12)}
.assignment-kind-badge{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid transparent;border-radius:999px;padding:4px 8px;font-size:11.5px;font-weight:700;line-height:1.4}
.assessment-kind{color:#91600d;background:#fff4dc;border-color:#f0dfb8}
.homework-kind{color:#526481;background:#edf2fb;border-color:#dce5f2}
@media(max-width:620px){.assignment-kind-badge{padding:4px 6px;font-size:11px}}

/* Teacher dashboard totals and per-assignment submission/grade summaries. */
.teacher-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:821px){.teacher-assignment-card>.assignment-card-main{flex:1 1 260px}}
.assignment-card-insights{display:flex;align-items:center;gap:14px;flex:1 1 255px;min-width:225px;max-width:390px;padding:0 13px;border-inline-start:1px solid #edf0f4}
.assignment-submission-stat{display:grid;gap:4px;flex:1;min-width:95px}
.assignment-submission-stat>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:7px}
.assignment-submission-stat small{color:#8993a6;font-size:11px}
.assignment-submission-stat strong{color:#34445f;font:700 13px Cairo,Tahoma,sans-serif;white-space:nowrap}
.assignment-submission-stat strong i{color:#a5adba;font:500 11.5px Cairo,Tahoma,sans-serif}
.assignment-submission-meter{height:5px;overflow:hidden;border-radius:8px;background:#edf0f4}
.assignment-submission-meter span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#70c9a1,#3f9d78)}
.assignment-submission-label{white-space:nowrap}
.assignment-grade-summary{display:grid;grid-template-columns:repeat(2,minmax(46px,auto));gap:5px}
.assignment-grade-summary>span{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:49px;padding:4px 7px;border-radius:7px;background:#f5f6f9;color:#718097;font-size:11px}
.assignment-grade-summary strong{font:700 12px Cairo,Tahoma,sans-serif;color:#35455f}
.assignment-grade-p b{color:#31835f}.assignment-grade-m b{color:#b17c24}.assignment-grade-d b{color:#766bc0}.assignment-grade-pending b{font-size:11px;font-weight:600}
@media(max-width:900px){.teacher-assignment-card{flex-direction:column;align-items:stretch}.assignment-card-main{width:100%;flex:1 1 auto}.assignment-card-insights{width:100%;max-width:none;min-width:0;padding:12px 0 0;border-inline-start:0;border-top:1px solid #edf0f4}.assignment-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;flex:none}.assignment-card-actions>a,.assignment-card-actions>button,.assignment-card-actions>form{width:100%;min-width:0}.assignment-card-actions .button{width:100%;min-height:42px;white-space:normal}.assignment-card-actions form{margin:0}}
@media(max-width:560px){.teacher-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.teacher-stats .stat-card{padding:10px 7px;gap:6px}.teacher-stats .stat-card small{font-size:11px}.teacher-stats .stat-card strong{font-size:15px}.assignment-card-insights{align-items:stretch;gap:9px}.assignment-grade-summary{flex:1;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.assignment-grade-summary>span{justify-content:center;gap:4px;min-width:0;padding:4px 3px;font-size:11px}.assignment-grade-summary strong{font-size:11.5px}.assignment-submission-stat{min-width:92px}.assignment-submission-label{font-size:11px}}

/* Keep teacher assignment details, statistics, and actions in separate rows. */
.assignments-section .teacher-assignment-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.82fr);align-items:center;gap:14px 20px;min-width:0}
.assignments-section .assignment-card-main{width:auto;min-width:0;flex:initial;align-items:flex-start}
.assignments-section .assignment-card-main>div:last-child{min-width:0;flex:1}
.assignments-section .card-title-row{min-width:0;flex-wrap:wrap;row-gap:6px}
.assignments-section .card-title-row h3{min-width:0;overflow-wrap:anywhere}
.assignments-section .assignment-card-main p,.assignments-section .assignment-card-main .meta-row{overflow-wrap:anywhere}
.assignments-section .assignment-card-insights{width:auto;min-width:0;max-width:none;flex:initial}
.assignments-section .assignment-submission-label{white-space:normal}
.assignments-section .assignment-card-actions{grid-column:1/-1;min-width:0;padding-top:12px;border-top:1px solid #edf0f4;justify-content:flex-start}
@media(max-width:900px){.assignments-section .teacher-assignment-card{grid-template-columns:minmax(0,1fr)}.assignments-section .assignment-card-insights{border-top:1px solid #edf0f4;border-inline-start:0;padding:12px 0 0}.assignments-section .assignment-card-actions{grid-column:1}}

/* Administrator self-service password update. */
.admin-own-password-panel{scroll-margin-top:20px}
.admin-own-password-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:10px;margin-top:12px}
.admin-own-password-form .field{min-width:0}
.admin-own-password-form .field label{margin:0;font-size:11px}
.admin-own-password-form .password-input-wrap{width:100%}
@media(max-width:820px){.admin-own-password-form{grid-template-columns:1fr 1fr}.admin-own-password-form>.button{grid-column:1/-1}}
@media(max-width:560px){.admin-own-password-form{grid-template-columns:1fr}.admin-own-password-form>.button{grid-column:auto;width:100%}}

/* Teacher resources attached to assignments and student download cards. */
.assignment-material-manager,.assignment-materials{margin:16px 0;padding:16px;background:#fff;border:1px solid #e7ebf2;border-radius:14px;box-shadow:0 8px 24px rgba(25,40,68,.035)}
.materials-heading{display:flex;align-items:flex-start;gap:10px;color:#2d3e5a}
.materials-heading>span{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:#edf7f2;color:#258866;font-size:16px}
.materials-heading b,.materials-heading small{display:block}.materials-heading b{font-size:13px}.materials-heading small{margin-top:2px;color:#8691a5;font-size:12px}
.assignment-material-upload{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px;margin:14px 0}
.assignment-material-upload .field{min-width:0;gap:5px}.assignment-material-upload .field>span{font-size:11px;font-weight:700}.assignment-material-upload input[type=file]{width:100%;min-width:0;padding:9px;border:1px dashed #cfd8e7;border-radius:9px;background:#f9fbfd;color:#5e6d85;font-size:11px}.assignment-material-upload textarea{min-height:42px;max-height:100px;resize:vertical;padding:8px 10px;border:1px solid #e2e6ee;border-radius:9px;background:#fff;color:var(--ink);font-size:11px}.assignment-material-upload .field small{color:#929caf;font-size:11.5px;line-height:1.5}.assignment-material-upload>.button{white-space:nowrap}
.materials-empty{margin:10px 0 0;color:#8993a6;font-size:12px}
.assignment-material-list{display:grid;gap:9px;margin-top:12px}
.assignment-material{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px 12px;border:1px solid #edf0f4;border-radius:10px;background:#fbfcfe;min-width:0}
.material-download{display:flex;align-items:center;gap:9px;min-width:0}.material-file-icon{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:9px;background:#edf1ff;color:#5965ae;font-weight:700}.material-download>span:last-child{min-width:0}.material-download b,.material-download small{display:block;overflow-wrap:anywhere}.material-download b{color:#315fbb;font-size:11px}.material-download small{color:#929caf;font-size:11.5px}.material-teacher-comment{grid-column:1/-1;padding:8px 10px;border-inline-start:3px solid #68bb98;border-radius:6px 9px 9px 6px;background:#f1f8f4;color:#596d63}.material-teacher-comment span{font-size:11.5px;font-weight:700;color:#388466}.material-teacher-comment p{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7}
@media(max-width:820px){.assignment-material-upload{grid-template-columns:1fr 1fr}.assignment-material-upload>.button{grid-column:1/-1}.assignment-material-upload .button{width:100%}}
@media(max-width:560px){.assignment-material-manager,.assignment-materials{margin:12px 0;padding:12px}.assignment-material-upload{grid-template-columns:1fr;gap:9px}.assignment-material-upload>.button{grid-column:auto}.assignment-material{grid-template-columns:minmax(0,1fr)}.assignment-material>form{justify-self:start}.assignment-material>form .button{min-height:36px}}

/* Small supportive message shared by the teacher and student dashboards. */
.support-quote{position:relative;display:flex;align-items:center;gap:14px;margin:0 0 20px;padding:15px 18px;border:1px solid #dce8e8;border-radius:16px;background:linear-gradient(110deg,#f3faf7,#f5f7ff);box-shadow:0 8px 24px rgba(38,69,86,.045);overflow:hidden}
.support-quote[hidden]{display:none}
.support-quote-mark{flex:none;color:#68aa91;font:700 39px/1 Cairo,Tahoma,sans-serif;align-self:flex-start}
.support-quote-copy{flex:1;min-width:0}
.support-quote-kicker{display:block;margin-bottom:3px;color:#388067;font-size:12px;font-weight:700}
.support-quote-copy p{margin:0;color:#34445e;font-size:13px;font-weight:600;line-height:1.8}
.support-quote-copy small{display:block;margin-top:3px;color:#8a96a7;font-size:11.5px}
.support-quote-actions{display:flex;align-items:center;gap:7px;flex:none}
.support-quote-actions button{min-height:34px;padding:6px 10px;border:1px solid #dce6e8;border-radius:9px;background:rgba(255,255,255,.78);color:#526681;font:600 12px Cairo,Tahoma,sans-serif;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.support-quote-actions button:hover{border-color:#9fcbb9;background:#fff;transform:translateY(-1px)}
.support-quote-actions .support-quote-dismiss{width:32px;padding:0;color:#8995a7;font-size:18px}
@media(max-width:560px){.support-quote{align-items:flex-start;gap:9px;padding:12px}.support-quote-mark{font-size:30px}.support-quote-copy p{font-size:11px}.support-quote-actions{gap:4px}.support-quote-actions button{min-height:32px;padding:5px 7px;font-size:11.5px}.support-quote-actions .support-quote-dismiss{width:29px}}

/* Teacher account details dialog in the administrator area. */
.teacher-account-open{justify-self:start;margin-top:3px;padding:4px 7px;font-size:11px}
.teacher-account-dialog{width:min(680px,calc(100% - 28px));max-height:min(86vh,820px);overflow:auto}
.teacher-account-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 17px}
.teacher-account-overview article{display:grid;gap:4px;min-width:0;padding:10px;border:1px solid #e8edf1;border-radius:10px;background:#f8fafb}
.teacher-account-overview small{color:#8792a3;font-size:11.5px}
.teacher-account-overview b{color:#35445f;font-size:12px;overflow-wrap:anywhere}
.teacher-account-details{margin-top:15px}
.teacher-account-details .admin-subheading{margin-bottom:8px}
.teacher-account-detail-list{display:grid;gap:7px}
.teacher-account-course,.teacher-account-assignment{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid #e8edf1;border-radius:10px;background:#fff}
.teacher-account-course>div:first-child,.teacher-account-assignment>div{display:grid;gap:4px;min-width:0}
.teacher-account-course b,.teacher-account-assignment b{color:#3f4d66;font-size:12px}
.teacher-account-course small,.teacher-account-assignment small{color:#8994a5;font-size:11px;line-height:1.7}
.teacher-account-terms{display:flex;flex-wrap:wrap;gap:5px}
.teacher-account-terms span{padding:4px 7px;border-radius:999px;background:#eef7f1;color:#4d8061;font-size:11px;white-space:nowrap}
.teacher-account-empty{margin:0;padding:12px;border:1px dashed #e1e6ed;border-radius:9px;color:#8994a5;text-align:center;font-size:11.5px}
@media(max-width:620px){.teacher-account-dialog{padding:14px}.teacher-account-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.teacher-account-overview article{padding:8px}.teacher-account-course,.teacher-account-assignment{align-items:flex-start;flex-direction:column}.teacher-account-terms{width:100%}}

.student-password-wrap{max-width:620px}.student-password-panel{padding:32px;background:#fff;border:1px solid #e5e9f0;border-radius:20px;box-shadow:0 18px 45px rgba(25,40,68,.07)}.student-password-panel h1{margin:7px 0 10px;font-size:clamp(23px,4vw,32px)}.student-password-panel .form-stack{margin-top:24px}.student-password-panel .button-secondary{display:flex;align-items:center;justify-content:center}.student-password-panel .notice{margin-top:16px}a.logout-button{display:inline-flex;align-items:center;padding:7px 11px;border:1px solid #e6e9ef;border-radius:10px;color:#596579}@media(max-width:560px){.student-password-panel{padding:21px;border-radius:15px}.student-password-wrap{width:calc(100% - 24px);padding-top:24px}.student-password-panel h1{font-size:23px}}

/* GitHub-inspired submission history timeline. */
.submission-history{margin-top:16px;padding:13px 14px 8px;border:1px solid #e6e9ef;border-radius:12px;background:#fbfcfe}
.submission-history .history-heading{margin-bottom:12px;padding-bottom:9px;border-bottom:1px solid #e9edf2;color:#44516a;font-size:11px}
.submission-timeline{position:relative;margin-inline-start:9px;padding-inline-start:16px;border-inline-start:2px solid #e5e9ef}
.submission-commit{position:relative;margin:0;padding:10px 0 12px;border-bottom:1px solid #edf0f4}
.submission-commit:last-child{border-bottom:0;padding-bottom:5px}
.submission-commit::before{content:"";position:absolute;inset-inline-start:-22px;top:15px;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#8c91a6;box-shadow:0 0 0 1px #cbd2dd}
.submission-commit:first-child::before{background:#2da77a;box-shadow:0 0 0 1px #9ad8bd}
.submission-commit .version-number{width:auto;min-width:31px;height:25px;padding:0 7px;border:1px solid #e1e5ec;border-radius:7px;background:#fff;color:#59677f;font-size:11.5px}
.submission-commit:first-child .version-number{border-color:#bfe5d2;background:#effaf4;color:#20744f}
.submission-commit .version-info a{font-size:11px}
.submission-commit .version-info small{font-size:11.5px}
.submission-commit .mini-status{font-size:11.5px}
.submission-commit .feedback-note,.teacher-version.submission-commit .saved-feedback{margin-top:9px}
.teacher-version-list.submission-timeline{margin-top:12px}
.teacher-version.submission-commit{padding:11px 0 13px}
@media(max-width:560px){.submission-history{padding:10px 9px 7px}.submission-timeline{margin-inline-start:6px;padding-inline-start:12px}.submission-commit::before{inset-inline-start:-18px;width:8px;height:8px}.submission-commit .version-info{min-width:110px}.submission-commit .version-info a{font-size:11.5px}.submission-commit .version-info small{font-size:11px}.submission-commit .mini-status{font-size:11px}}

/* Keep student submission metadata and teacher notes within the assignment card. */
.submission-history .version-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;column-gap:10px;row-gap:8px}
.submission-history .version-row .version-info{min-width:0;overflow-wrap:anywhere}
.submission-history .version-row .version-info a{overflow-wrap:anywhere;word-break:break-word}
.submission-history .version-row .mini-status{justify-self:start;max-width:100%;white-space:normal;text-align:center}
.submission-history .feedback-note{grid-column:2/-1;width:100%;min-width:0;max-width:100%;margin:0;padding:9px 11px;overflow-wrap:anywhere}
.submission-history .feedback-note p{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
@media(max-width:560px){.submission-history .version-row{grid-template-columns:auto minmax(0,1fr);column-gap:8px;row-gap:7px}.submission-history .version-row .mini-status,.submission-history .feedback-note{grid-column:2}.submission-history .version-row .version-info{min-width:0}.submission-history .feedback-note{font-size:12px}}

.student-password-logout{text-align:center;margin-top:18px}
.password-input-wrap{position:relative;width:100%}
.password-input-wrap input{padding-inline-end:76px}
.password-visibility-toggle{position:absolute;inset-inline-end:9px;top:50%;transform:translateY(-50%);border:0;border-radius:7px;background:transparent;color:#61708a;padding:5px 8px;font-size:11px;font-weight:700;cursor:pointer}
.password-visibility-toggle:hover,.password-visibility-toggle:focus-visible{background:#f0f4f8;color:#243a5d;outline:2px solid #65bc9a;outline-offset:1px}
.student-roster-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}
.student-bulk-password-reset-form{margin:0}
.student-bulk-reset-button{border-color:#ead7bc;background:#fff8ed;color:#8b5a1c;white-space:normal}
@media(max-width:620px){.student-roster-header-actions{align-items:stretch;flex-direction:column}.student-roster-header-actions .button,.student-bulk-password-reset-form{width:100%}.student-roster-header-actions .button{font-size:11px;padding:7px}}

.assignment-material-create input[type=file]{width:100%;padding:10px;border:1px solid #d9e0eb;border-radius:10px;background:#fff}.assignment-material-create textarea{width:100%;min-height:78px;padding:10px;border:1px solid #d9e0eb;border-radius:10px;background:#fff;resize:vertical}@media(max-width:700px){}
.feedback-image-picker{display:grid;gap:7px;margin:10px 0}.feedback-image-picker>label{display:grid;gap:7px;font-size:12px;font-weight:700}.feedback-image-picker input[type=file]{max-width:100%;padding:8px;border:1px solid #dbe2ec;border-radius:9px;background:#fff}.feedback-image-picker small{color:var(--muted,#7c879b);font-size:11px}.feedback-image-picker[data-error]::after{content:attr(data-error);color:#b43e4c;font-size:12px}.feedback-image-preview,.student-feedback-images,.teacher-feedback-images{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.feedback-image-preview figure{margin:0;width:105px}.feedback-image-preview img,.student-feedback-images img,.teacher-feedback-images img{display:block;width:100px;max-height:95px;object-fit:cover;border:1px solid #dbe2ec;border-radius:9px}.feedback-image-preview figcaption,.student-feedback-images>span,.teacher-feedback-images>span{font-size:12px;color:var(--muted,#7c879b)}.student-feedback-images,.teacher-feedback-images{align-items:center}.student-feedback-images>span,.teacher-feedback-images>span{width:100%}.live-update-pulse{animation:livePulse .8s ease-out}@keyframes livePulse{0%{box-shadow:0 0 0 0 rgba(62,160,127,.32)}100%{box-shadow:0 0 0 12px transparent}}
.upload-submit-wrap{display:grid;gap:10px}
.assignment-existing-materials{display:grid;gap:8px;padding:14px;border:1px solid #dce5ef;border-radius:12px;background:#f8fafc}.assignment-existing-materials h4,.assignment-existing-materials p{margin:0}.existing-assignment-material{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:10px;border:1px solid #e4e9f0;border-radius:9px;background:#fff}.existing-assignment-material>a{font-weight:700;color:var(--ink,#172744);overflow-wrap:anywhere}.existing-assignment-material>small{grid-column:1/-1;color:var(--muted,#7c879b)}.existing-assignment-material>label{display:flex;align-items:center;gap:6px;font-size:11px;color:#a43e4c}
.assignment-material-paste-input{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;padding:0!important;border:0!important}.material-image-preview{display:block;width:min(100%,340px);margin:8px 0}.material-image-preview img{display:block;width:100%;max-height:240px;object-fit:contain;border:1px solid #e1e7ef;border-radius:10px;background:#fff}

.assignment-instruction-editor[data-error]::after{content:attr(data-error);color:#b43e4c;font-size:12px}

.assignment-instruction-editor{padding:14px;border:1px dashed #d9e0eb;border-radius:12px;background:rgba(246,248,252,.7)}.assignment-instructions{width:100%;min-height:95px;padding:11px;border:1px solid #dce4ee;border-radius:10px;background:#fff;resize:vertical;white-space:pre-wrap}.feedback-image-preview figure{position:relative}.pasted-image-remove{margin-top:4px;padding:3px 7px;border:1px solid #edcbd0;border-radius:6px;background:#fff5f6;color:#a83442;font-size:12px;cursor:pointer}.existing-material-thumb{grid-column:1/-1;width:130px;max-height:90px;object-fit:contain;border:1px solid #e1e7ef;border-radius:8px;background:#fff}

.instruction-attachment-input{display:block;width:100%;padding:9px;border:1px dashed #cbd6e5;border-radius:9px;background:#fff;color:#53627b}.feedback-image-preview video,.existing-material-thumb,.material-video-preview{display:block;width:min(100%,240px);max-height:160px;object-fit:contain;border:1px solid #e1e7ef;border-radius:8px;background:#111}.material-video-preview{margin:8px 0}

.assignment-instruction-editor{position:relative;transition:border-color .15s ease,background .15s ease}.assignment-instruction-editor.is-dragging{border-color:#388f70;background:#effaf5}.assignment-instruction-editor.is-dragging::before{content:'أفلت المرفقات هنا';position:absolute;z-index:5;inset:8px;display:grid;place-items:center;border:2px dashed #3c9b76;border-radius:12px;background:rgba(242,252,247,.95);color:#287657;font-size:18px;font-weight:700;pointer-events:none}

.student-upload-dropzone{position:relative;transition:border-color .15s ease,background .15s ease}.student-upload-dropzone.is-dragging{border-color:#388f70;background:#effaf5}.student-upload-dropzone.is-dragging::before{content:'أفلت الملف هنا';position:absolute;z-index:5;inset:5px;display:grid;place-items:center;border:2px dashed #3c9b76;border-radius:10px;background:rgba(242,252,247,.95);color:#287657;font-size:16px;font-weight:700;pointer-events:none}.student-upload-dropzone[data-error]::after{content:attr(data-error);position:absolute;right:10px;bottom:-24px;color:#b43e4c;font-size:11px}.student-upload-dropzone [data-student-upload-name]:not(:empty){color:#287657;font-weight:700}

/* Late submissions */
.mini-status.late{color:#a2444d;background:var(--red-pale);border:1px solid #f1c9cc;font-weight:700}
.status-badge.status-late{color:#a2444d;background:var(--red-pale);border:1px solid #f1c9cc;font-weight:700}

/* Topbar links */
.topbar-link{display:inline-flex;align-items:center;gap:4px;padding:6px 10px;border-radius:30px;background:#f0f2f8;color:#394868;font-size:11px;font-weight:600;text-decoration:none}
.notification-bell{position:relative}
.notification-count{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--red);color:#fff;font:800 12px Cairo,Tahoma,sans-serif}

/* Student notifications */
.notification-panel{margin:0 0 18px;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow)}
.notification-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.notification-panel-head h2{display:flex;align-items:center;gap:8px;margin:2px 0 0;font-size:17px}
.notification-empty{margin:0;color:var(--muted);font-size:12px}
.notification-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;max-height:320px;overflow-y:auto}
.notification-list form{margin:0}
.notification-list button{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fafbfd;color:#4e607d;font:inherit;font-size:12px;text-align:start;cursor:pointer}
.notification-list small{color:var(--muted);font-size:12px;white-space:nowrap}
.notification-dot{width:8px;height:8px;border-radius:50%;background:transparent}
.notification-list li.unread button{background:var(--blue-pale);border-color:#d6dcfb;color:var(--ink);font-weight:600}
.notification-list li.unread .notification-dot{background:#4b5fd6}

/* Student grade report */
.grade-report-head{margin:22px 0 16px}
.grade-report-head h1{margin:2px 0 4px;font-size:22px}
.grade-report-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;color:var(--muted);font-size:12px}
.grade-report-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.grade-report-term{margin:18px 0;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow)}
.grade-report-term-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.grade-report-term-head h2{margin:0;font-size:16px}
.grade-table-wrap{overflow-x:auto}
.grade-table{width:100%;border-collapse:collapse;font-size:12px}
.grade-table th{padding:8px 10px;border-bottom:1px solid var(--line);color:var(--muted);font-weight:600;text-align:start;white-space:nowrap}
.grade-table td{padding:10px;border-bottom:1px solid #f0f2f6;color:var(--ink);vertical-align:middle}
.grade-table tr:last-child td{border-bottom:0}
.grade-kind{color:var(--muted);font-size:12px}
.report-grade{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#287b5b}
.report-grade b{display:grid;place-items:center;min-width:22px;height:22px;border-radius:6px;background:#2c8a64;color:#fff;font:800 11px Cairo,Tahoma,sans-serif}
.report-grade.grade-m b{background:#3a63b8}
.report-grade.grade-d b{background:#7a4cc2}
.report-grade.pending{color:var(--muted)}
@media (max-width:700px){.grade-report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.notification-list button{grid-template-columns:auto 1fr}.notification-list small{grid-column:2}.topbar-link{padding:5px 8px;font-size:12px}}
@media print{.topbar,.app-footer,.no-print{display:none!important}body{background:#fff}.grade-report-term,.stat-card{box-shadow:none;break-inside:avoid}}

/* Teacher feedback: room for long comments written per criterion. Grows with the text where the browser can. */
.review-form textarea.feedback-input,.evaluation-edit-dialog .evaluation-feedback{min-height:260px;max-height:70vh;font:500 14px/1.9 Cairo,Tahoma,sans-serif;padding:12px 14px;white-space:pre-wrap;field-sizing:content}
.evaluation-edit-dialog .admin-edit-form{max-height:calc(min(92vh,980px) - 80px)}
.feedback-draft-note{margin:4px 0 0;padding:6px 10px;border-radius:8px;background:#fff7e6;color:#8a5a12;font-size:12px;line-height:1.7}
.feedback-draft-discard{border:0;background:none;color:#b0431f;font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:0}
/* A saved comment is shown once; long ones scroll inside their box instead of stretching the student card. */
.teacher-version .saved-feedback p{max-height:240px;overflow-y:auto;overscroll-behavior:contain;padding-inline-end:6px}
/* Editing sits behind one button, so the comment is not shown a second time inside the edit box. */
.review-edit{margin:10px 0 0 36px}
.review-edit>.review-form{margin:8px 0 0}
.review-edit-toggle{display:inline-flex;align-items:center;gap:6px;width:fit-content;padding:7px 12px;border:1px solid #dfe4ee;border-radius:9px;background:#fff;color:#3d4fb8;font-size:12.5px;font-weight:700;cursor:pointer;list-style:none;user-select:none}
.review-edit-toggle::-webkit-details-marker{display:none}
.review-edit-toggle::before{content:"✎";font-size:13px}
.review-edit[open]>.review-edit-toggle{background:#eef1ff;border-color:#c9d1f5}
@media(hover:hover){.review-edit-toggle:hover{background:#f3f5ff}}
@media(max-width:560px){.review-edit{margin-right:0;margin-left:0}}
/* Opening a closed assignment for one student who has not handed in. */
.student-extension{margin-top:10px}
.student-extension form{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.student-extension small{color:#7d879a;font-size:12px}
.extension-state{color:#256d52;font-size:12.5px;font-weight:700}
.status-badge.status-extension{color:#256d52;background:#e3f6ec}
/* ---- Student page: the teacher's note, readable on phones ---------------------------------- */
/* Grid items default to their content's width: a long note or button pushed the card past the screen. */
.student-assignment-list{grid-template-columns:minmax(0,1fr)}
.student-assignment-card,.submission-history,.submission-timeline{min-width:0}
.feedback-note-head .time-value{flex-basis:auto}
.feedback-copy{display:inline-flex;align-items:center;gap:5px;margin-inline-start:auto;padding:4px 10px;border:1px solid #cfd6f3;border-radius:999px;background:#fff;color:#3d4fb8;font:inherit;font-size:12px;font-weight:700;cursor:pointer;min-height:30px}
.feedback-copy svg{width:14px;height:14px}
.feedback-copy.is-copied{border-color:#9fdcbf;background:#e9f8f0;color:#1f7a55}
.feedback-copy[hidden],.feedback-more[hidden]{display:none}
.feedback-note-revision .feedback-copy{border-color:#efcf9c;color:#8a4300}
.feedback-note-head small+.feedback-copy{margin-inline-start:0}
.feedback-note.is-folded [data-feedback-text]{max-height:var(--fold-height,240px);overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent);mask-image:linear-gradient(to bottom,#000 70%,transparent)}
.feedback-more{display:block;width:100%;margin-top:8px;padding:8px 10px;border:1px dashed #c7cff0;border-radius:9px;background:rgba(255,255,255,.7);color:#3d4fb8;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.feedback-note-revision .feedback-more{border-color:#efcf9c;color:#8a4300}
@media(hover:hover){.feedback-copy:hover,.feedback-more:hover{filter:brightness(.97)}}
@media(max-width:560px){
  /* The note uses the whole width under the version, instead of a narrow column beside its number. */
  .submission-history .version-row .feedback-note{grid-column:1/-1;margin-inline-start:-4px;padding:12px 12px 10px;border-radius:11px}
  .feedback-note-head{gap:4px 8px}
  .feedback-note-head strong{font-size:13.5px}
  .feedback-note-head small{order:3;flex-basis:100%;margin-inline-start:0}
  .feedback-copy{margin-inline-start:auto}
  .submission-history .feedback-note p.feedback-note-text,.feedback-note p.feedback-note-text{font-size:14.5px;line-height:1.9}
  .feedback-note .student-feedback-images img{width:calc(50% - 6px)}
}
/* ---- Email codes: the student's email page and the password-reset code page ------------------- */
.otp-input{font-size:26px!important;letter-spacing:.5em;text-align:center;direction:ltr;font-variant-numeric:tabular-nums;height:58px}
.email-input{direction:ltr;text-align:left}
.email-address{direction:ltr;unicode-bidi:isolate;overflow-wrap:anywhere}
.email-current{display:flex;align-items:center;gap:12px;margin:14px 0;padding:12px 14px;border:1px solid #cfeedd;border-radius:12px;background:#f1fbf6}
.email-current small{display:block;color:#5d6b82;font-size:12px}
.email-current b{font-size:14px;color:var(--ink)}
.email-current>div{flex:1;min-width:0}
.email-check{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:50%;background:#2da77a;color:#fff;font-weight:800}
.otp-actions{display:flex;justify-content:space-between;gap:10px;margin-top:12px}
.otp-actions form{margin:0}
.otp-after{margin-top:12px;font-size:12.5px}
.otp-back{margin:16px 0 0}
.email-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:12px 16px;border:1px solid #d9def7;border-radius:var(--radius);background:#f4f6ff}
.email-banner p{flex:1 1 240px;margin:0;font-size:13.5px;color:#34407a}
/* Admin student list: each student's email and a reset button next to delete. */
.student-email-cell{max-width:190px}.student-email-cell .email-address{font-size:12px;color:#26324a;overflow-wrap:anywhere}
.student-email-cell .email-none{font-size:12px;color:#98a1b2}
/* Admin student list: the row's actions in one tidy line of equal buttons. */
.row-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.row-actions form{margin:0}
.row-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:32px;padding:0 10px;border:1px solid #dfe4ee;border-radius:8px;background:#fff;color:#33415e;font:inherit;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s}
.row-action svg{width:15px;height:15px;flex:none}
.row-action-danger{border-color:#f0c9cd;color:#b23a46}
@media(hover:hover){.row-action:hover{background:#f3f5fa;border-color:#cdd4e3}.row-action-danger:hover{background:#fdf0f1;border-color:#e5a9b0}}
.row-action:focus-visible{outline:2px solid #4b5fd6;outline-offset:2px}
/* Icons only: the student tables can be narrow (two grades side by side); the full name is in the tooltip. */
.row-action{width:34px;height:34px;padding:0}
.row-action span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.row-action svg{width:16px;height:16px}
.student-row-actions{width:1%}
/* A version with several files lists each file on its own line. */
.version-files{display:flex;flex-direction:column;gap:2px;min-width:0}
.version-files a{overflow-wrap:anywhere}
.version-files.has-many a{display:flex;align-items:baseline;gap:6px}
.version-files.has-many a::before{content:"📄";font-size:11px;opacity:.75}
/* ---- Admin student list on phones: each student is a card instead of a wide table row ------- */
@media(max-width:640px){
  .student-roster-scroll{max-height:none;overflow:visible;border:0;border-radius:0}
  .student-roster-table{min-width:0;width:100%;border-collapse:separate}
  .student-roster-table thead{display:none}
  .student-roster-table,.student-roster-table tbody{display:block}
  .student-roster-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name status" "id id" "email email" "actions actions";gap:5px 10px;margin:0 0 9px;padding:12px;border:1px solid #e3e9e5;border-radius:12px;background:#fff}
  .student-roster-table tbody tr:nth-child(even),.student-roster-table tbody tr:hover{background:#fff}
  .student-roster-table td{display:block;min-width:0;width:auto!important;max-width:none!important;justify-self:stretch;padding:0;border:0;text-align:start}
  .student-roster-table .student-account-open{width:100%}
  .student-roster-table td:nth-child(1){grid-area:name}
  .student-roster-table td:nth-child(2){grid-area:id}
  .student-roster-table td:nth-child(3){grid-area:email;max-width:none}
  .student-roster-table td:nth-child(4){grid-area:status;align-self:start;justify-self:end}
  .student-roster-table td:nth-child(5){grid-area:actions;width:auto;margin-top:6px;padding-top:9px;border-top:1px solid #eef1f4}
  .student-roster-table .student-account-open{text-align:start}
  .student-roster-table .student-account-open span{font-size:14px}
  .student-roster-table .national-id-cell::before{content:"الرقم الوطني: ";color:#7d879a}
  .student-roster-table .student-email-cell::before{content:"البريد: ";color:#7d879a;font-size:12px}
  .student-roster-table .national-id-cell,.student-roster-table .student-email-cell{font-size:12.5px}
  /* There is room for the words on a card: icon and label, sharing the row. */
  .row-actions{gap:6px}
  .row-actions>*{flex:1 1 0;min-width:0}
  .row-actions form .row-action,.row-actions>.row-action{width:100%}
  .row-action{height:38px;padding:0 8px}
  .row-action span{position:static;width:auto;height:auto;overflow:visible;clip:auto;font-size:12px}
}
.edit-hint{margin:8px 0 0;color:#6b7790;font-size:12.5px;line-height:1.8}
.edit-hint[hidden]{display:none}
.status-badge.status-changed{color:#8a4300;background:#fff1dc;border:1px solid #f3cf98}
/* A student's own version, deletable while the assignment is open and before the teacher reviewed it. */
.version-delete-form{display:inline-block;margin:2px 0 0}
.version-delete{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border:1px solid #f0c9cd;border-radius:999px;background:#fff;color:#b23a46;font:inherit;font-size:11.5px;font-weight:700;cursor:pointer}
.version-delete svg{width:12px;height:12px}
@media(hover:hover){.version-delete:hover{background:#fdf0f1}}

/* ---- The student's files, one by one: replace or delete any file, add more ---------------------- */
.file-manager{list-style:none;margin:2px 0 4px;padding:0;display:flex;flex-direction:column;gap:6px;min-width:0}
.file-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:7px 10px;border:1px solid #e3e8f0;border-radius:10px;background:#fff}
.file-row .file-name{flex:1 1 160px;min-width:0;overflow-wrap:anywhere;font-size:12.5px;font-weight:700;color:#26324a}
.file-row .file-name::before{content:"📄 ";font-size:11px}
.file-actions{display:inline-flex;gap:6px}
.file-action-form{margin:0}
.file-action{position:relative;display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 10px;border:1px solid #dfe4ee;border-radius:8px;background:#fff;color:#33415e;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.file-action svg{width:13px;height:13px}
.file-action-danger{border-color:#f0c9cd;color:#b23a46}
.file-picker-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.file-action:focus-within,.file-add-button:focus-within{outline:2px solid #4b5fd6;outline-offset:2px}
.file-add-button{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:38px;border:1px dashed #b9c6e8;border-radius:10px;background:#f6f8ff;color:#3d4fb8;font-size:12.5px;font-weight:700;cursor:pointer}
@media(hover:hover){.file-action:hover{background:#f3f5fa}.file-action-danger:hover{background:#fdf0f1}.file-add-button:hover{background:#eef1ff}}
.file-row.is-busy,.file-add.is-busy{opacity:.55;pointer-events:none}

/* ---- "My account" (every role): passkeys, password, email ---------------------------------- */
.account-wrap{max-width:760px;padding-top:26px}
.account-head{display:flex;align-items:center;gap:14px;margin:6px 0 16px}
.account-avatar{width:52px;height:52px;font-size:20px}
.account-head h1{margin:2px 0;font-size:24px}
.account-tabs{position:sticky;top:0;z-index:5;display:flex;gap:6px;overflow-x:auto;margin:0 0 16px;padding:8px 0;background:var(--canvas,#f5f6f9)}
.account-tabs a{flex:none;padding:7px 13px;border:1px solid #dfe4ee;border-radius:999px;background:#fff;color:#33415e;font-size:13px;font-weight:700}
.account-section{scroll-margin-top:60px;margin:0 0 16px;padding:18px 20px;border:1px solid #e6e9ef;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(23,39,67,.03)}
.account-section-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px}
.account-section-head h2{margin:0 0 4px;font-size:17px}
.account-section-head p{margin:0;font-size:13px;line-height:1.8}
.account-icon{flex:none;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#eef1ff;color:#3d4fb8}
.account-icon svg{width:22px;height:22px}
.account-form{max-width:460px}
.account-form .button{justify-self:start;margin-top:8px}
.passkey-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.passkey-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e3e8f0;border-radius:12px}
.passkey-symbol{font-size:20px}
.passkey-info{flex:1;min-width:0}
.passkey-info b{display:block;font-size:14px}
.passkey-info small{color:#7d879a;font-size:12px}
.passkey-row form{margin:0}
.passkey-remove{width:auto!important;padding:0 12px!important}
.passkey-remove span{position:static!important;width:auto!important;height:auto!important;clip:auto!important;overflow:visible!important}
.passkey-empty{margin:0 0 12px;font-size:13px}
.passkey-add[hidden],.passkey-login[hidden]{display:none}
.passkey-add label{font-size:13px;font-weight:700}
.passkey-add-row{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}
.passkey-add-row input{flex:1 1 200px;min-width:0;height:44px;border:1px solid #e2e6ee;border-radius:10px;padding:0 12px}
.passkey-login{margin-top:14px;display:grid;gap:10px}
.passkey-or{display:flex;align-items:center;gap:10px;color:#9aa2b1;font-size:12px}
.passkey-or::before,.passkey-or::after{content:"";flex:1;height:1px;background:#e7eaf0}
.passkey-login-button{gap:8px}
.passkey-login-button svg{width:20px;height:20px}

/* The teacher's saved comment: its title with a copy button beside it. */
.saved-feedback-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.saved-feedback-head .feedback-copy{margin-inline-start:auto}
.saved-feedback-head .feedback-copy[hidden]{display:none}
/* ---- Top bar on phones: the logo on its own row, every button reachable on the row below -------- */
@media(max-width:640px){
  .topbar{height:auto;min-height:0;flex-wrap:wrap;align-items:center;row-gap:8px;padding:8px 12px 10px}
  .topbar>.brand{flex:1 1 auto}
  .topbar-right{flex:1 1 100%;width:100%;justify-content:flex-start;overflow-x:auto;overflow-y:visible;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
  .topbar-right::-webkit-scrollbar{display:none}
  .topbar-right>*{flex:none}
  .topbar-right>form{margin-inline-start:auto}
  /* The notifications dropdown opens over the page, not inside the scrolling row. */
  .topbar-right .notif{position:static}
  .topbar-right .notif-panel{position:fixed;top:auto;inset-inline:8px;width:auto;margin-top:6px}
}

/* The notifications dropdown stays above the page content (the quote card, hero) in every browser, iOS Safari included. */
.topbar{position:relative;z-index:100}
.topbar .notif .notif-panel{z-index:1000;background:#fff}
/* On phones it appears at once, fully opaque: a fade let the page (the quote card) show through it. */
@media (max-width:640px){.topbar .notif .notif-panel,.topbar .notif .notif-panel.is-open{transition:none}}
.saved-feedback-title{display:flex;flex-direction:column;gap:1px;min-width:0}
.saved-feedback-time{color:#7a869a;font-size:11.5px;font-weight:500}
.saved-feedback-time b{font-weight:600}

/* Teacher: search and filter the student list. */
.review-filter{display:grid;gap:10px;margin:0 0 14px;padding:12px;border:1px solid #e3e8f0;border-radius:16px;background:#fff}
.review-filter[hidden]{display:none}
.review-search{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 12px;border:1px solid #dfe5ee;border-radius:12px;background:#f8fafc;color:#7a869a}
.review-search:focus-within{border-color:#8e9be6;background:#fff;box-shadow:0 0 0 3px rgba(79,95,214,.12)}
.review-search svg{width:18px;height:18px;flex:none}
.review-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:500 14px Cairo,Tahoma,sans-serif;color:#24324a}
.review-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.review-chips::-webkit-scrollbar{display:none}
.review-chip{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:5px 12px;border:1px solid #e0e6ef;border-radius:999px;background:#fff;color:#4b5a72;font:600 12.5px Cairo,Tahoma,sans-serif;cursor:pointer;white-space:nowrap}
.review-chip b{min-width:20px;padding:0 6px;border-radius:999px;background:#eef1f6;color:#4b5a72;font-size:11.5px;text-align:center}
.review-chip.is-active{border-color:#2f3f9e;background:#2f3f9e;color:#fff}
.review-chip.is-active b{background:rgba(255,255,255,.22);color:#fff}
.review-filter-empty{margin:0;color:#7a869a;font-size:13px;text-align:center}
.review-filter-empty[hidden],.review-student-card[hidden]{display:none}

/* Teacher pages on phones. */
@media (max-width:640px){
  .review-student-summary{flex-wrap:wrap;row-gap:6px}
  .review-student-summary .compact-student-info{flex:1 1 0;min-width:0}
  .review-student-summary .compact-student-info strong{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.5}
  .review-student-summary .summary-chevron{order:2}
  .review-student-summary .status-badge{order:3;max-width:100%;white-space:normal}
  .review-student-summary .status-badge:first-of-type{margin-inline-start:34px}
  .detail-actions{width:100%}
  .detail-actions .download-latest-button{width:100%;justify-content:center;font-size:14px;line-height:1.5;padding:11px 14px}
  .detail-actions .download-latest-button>span:not(.download-glyph):not(.download-count){font-size:14px;line-height:1.5}
  .completion-summary{grid-template-columns:1fr!important}
  .completion-stat{padding:12px 14px}
  .detail-hero h1{font-size:22px;line-height:1.5}
  .teacher-assignment-card .card-actions,.teacher-assignment-card .assignment-actions{flex-wrap:wrap}
}

/* Teacher assignment cards: "view submissions" leads; ending and deleting are quieter (they still ask first). */
.assignment-card-actions .button-danger{background:#fff;color:#b23a36;border:1px solid #efc6c3;box-shadow:none}
.assignment-card-actions .button-danger:hover{background:#fdf1f0;border-color:#e2a29d}
.assignment-card-actions .assignment-delete-form .button-danger{border-style:dashed}
@media (max-width:640px){
  .assignment-card-insights{flex-direction:column;align-items:stretch;gap:12px}
  .assignment-card-insights>*{width:100%}
  .assignment-grade-summary{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.7fr)!important}
  .assignment-grade-summary>span{min-width:0;justify-content:center;white-space:nowrap}
  .assignment-card-actions{grid-template-columns:1fr 1fr!important}
  .assignment-card-actions>a.button:first-child{grid-column:1/-1;background:#2f3f9e;color:#fff;border-color:#2f3f9e;min-height:44px}
  .assignment-card-actions>form:not(.assignment-delete-form) .button,.assignment-card-actions>.button{width:100%}
  .assignment-card-actions .assignment-delete-form{grid-column:1/-1}
  .teacher-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
  .teacher-stats .stat-card{flex-direction:column;align-items:flex-start;gap:6px;padding:12px;min-width:0}
  .teacher-stats .stat-card small{font-size:11.5px;line-height:1.5}
  .teacher-stats .stat-card strong{font-size:20px}
  .admin-info-note{padding:10px 12px;font-size:12.5px}
}

/* Admin: the teachers' subjects per term become one card per teacher on phones. */
@media (max-width:640px){
  .teacher-load-scroll{overflow:visible}
  .teacher-load-table,.teacher-load-table tbody,.teacher-load-table tr,.teacher-load-table th,.teacher-load-table td{display:block;width:100%}
  .teacher-load-table{min-width:0!important;border:0}
  .teacher-load-table thead{display:none}
  .teacher-load-table tbody tr{margin:0 0 10px;padding:12px;border:1px solid #e3e8f0;border-radius:14px;background:#fff}
  .teacher-load-table tbody th{padding:0 0 2px;border:0;font-size:14.5px;text-align:right;white-space:normal}
  .teacher-load-table td{padding:6px 0;border:0;border-top:1px dashed #e8ecf2;text-align:right}
  .teacher-load-table td.teacher-load-grade{border-top:0;padding-top:0;color:#7a869a;font-size:12.5px}
  .teacher-load-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:3px;color:#388067;font-size:12px;font-weight:700}
  .teacher-load-table td.teacher-load-no-teachers{border:0}
  .teacher-load-subjects{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
  .teacher-load-subjects li{white-space:normal;max-width:100%;min-width:0}
}

/* Admin: the account (password, passkeys, email) lives on "My account"; a short link replaces the old form. */
.admin-account-link{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:12px 16px;border:1px solid #e1e6f0;border-radius:14px;background:#fff;color:#2f3f9e;transition:border-color .18s,background .18s}
.admin-account-link:hover{border-color:#a9b4ee;background:#f7f8ff}
.admin-account-link>span:nth-child(2){flex:1;min-width:0;display:grid}
.admin-account-link b{color:#24324a;font-size:14px}
.admin-account-link small{color:#7a869a;font-size:12px}
.admin-account-link-icon{flex:none;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eef1ff;font-size:17px}
@media (max-width:640px){
  .admin-main-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .admin-main-tabs [role=tab]{flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;padding:10px 6px!important;min-width:0;text-align:center}
  .admin-main-tabs [role=tab] b{display:block;font-size:12.5px;line-height:1.5}
  .admin-main-tabs [role=tab] small{font-size:11px}
}
@media (max-width:640px){
  .grade-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .grade-tabs [role=tab]{min-width:0;padding:8px!important}
}
/* Admin: deleting a published assignment is a quiet, outlined button (it still asks first). */
.admin-assignment-row .button-danger{background:#fff;color:#b23a36;border:1px solid #efc6c3;box-shadow:none}
.admin-assignment-row .button-danger:hover{background:#fdf1f0;border-color:#e2a29d}
@media (max-width:640px){
  .admin-assignment-row{flex-wrap:wrap;gap:8px}
  .admin-assignment-row>form{margin-inline-start:auto}
  .admin-assignment-row>form .button{width:auto!important;min-height:34px;padding:6px 14px}
}
/* Admin: teacher accounts — the two actions share one even row on phones, and deleting is outlined. */
.admin-teacher-row .button-danger{background:#fff;color:#b23a36;border:1px solid #efc6c3;box-shadow:none}
.admin-teacher-row .button-danger:hover{background:#fdf1f0;border-color:#e2a29d}
@media (max-width:640px){
  .admin-teacher-row{flex-wrap:wrap!important;align-items:flex-start;gap:8px 10px}
  .admin-teacher-row .admin-teacher-identity{flex:1 1 0;min-width:0}
  .admin-teacher-row>.button{flex:1 1 calc(50% - 5px);width:auto!important;min-height:40px;margin:0!important;justify-content:center}
  .admin-teacher-row .admin-teacher-identity .button{justify-self:start;width:auto}
}
@media (max-width:640px){
  .detail-hero{flex-direction:column;align-items:stretch;gap:14px}
  .detail-hero>.submission-progress{align-self:stretch;display:flex;align-items:center;gap:10px;text-align:start}
}

/* Light / dark switch in the top bar (added by theme.js). */
.theme-toggle{flex:none;display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid #e1e6ef;border-radius:12px;background:#fff;color:#3a4a6b;font:700 17px/1 Cairo,Tahoma,sans-serif;cursor:pointer}
.theme-toggle:hover{border-color:#b9c3e6}
.theme-toggle-floating{position:fixed;bottom:16px;inset-inline-end:16px;z-index:50;box-shadow:0 6px 18px rgba(20,30,50,.15)}

/* "Install the app" banner on the dashboards and card on My account (added by pwa.js). */
.app-install{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 16px;padding:12px 14px;border:1px solid #dfe5f2;border-radius:16px;background:linear-gradient(110deg,#f4f6ff,#f3faf7)}
.app-install-card{margin:0 0 14px}
.app-install-icon{flex:none;width:44px;height:44px;border-radius:12px}
.app-install-copy{flex:1;min-width:160px;display:grid}
.app-install-copy b{color:#24324a;font-size:14.5px}
.app-install-copy small{color:#6b7790;font-size:12.5px;line-height:1.7}
.app-install-actions{display:flex;align-items:center;gap:6px}
.app-install-close{width:34px;height:34px;border:0;border-radius:10px;background:transparent;color:#7a869a;font-size:20px;cursor:pointer}
.app-install-steps{flex-basis:100%;margin:4px 0 0;padding-inline-start:22px;color:#3d4b64;font-size:13.5px;line-height:2}
.app-install-done{margin:0 0 14px;color:#1f7a5a;font-weight:700}
.notif-device-hint{margin:0;padding:10px 12px;color:#5d6a80;font-size:12.5px;line-height:1.8}

/* Appearance on My account. */
.theme-choice{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.theme-choice-label{color:#5d6a80;font-size:13px;font-weight:700;margin-inline-end:4px}
.theme-choice button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 14px;border:1px solid #dfe5ee;border-radius:12px;background:#fff;color:#3d4b64;font:600 13.5px Cairo,Tahoma,sans-serif;cursor:pointer}
.theme-choice button small{color:#8a96a7;font-size:11.5px}
.theme-choice button.is-active{border-color:#2f3f9e;background:#2f3f9e;color:#fff}
.theme-choice button.is-active small{color:rgba(255,255,255,.8)}

/* File preview (file-viewer.js). */
.file-preview-button{display:inline-flex;align-items:center;min-height:28px;margin-inline-start:6px;padding:2px 10px;border:1px solid #d6ddf2;border-radius:999px;background:#f3f5ff;color:#2f3f9e;font:700 11.5px Cairo,Tahoma,sans-serif;cursor:pointer;vertical-align:middle}
.file-preview-button:hover{background:#e7ebff;border-color:#aeb9ec}
.file-viewer{width:min(1100px,96vw);height:min(92vh,1000px);max-width:none;max-height:none;padding:0;border:0;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 30px 80px rgba(10,20,40,.35)}
.file-viewer[open]{display:flex;flex-direction:column}
.file-viewer::backdrop{background:rgba(12,20,35,.55)}
.file-viewer-head{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #e6e9ef}
.file-viewer-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:#24324a}
.file-viewer-close{width:38px;height:38px;border:0;border-radius:10px;background:#f0f2f6;color:#3d4b64;font-size:22px;cursor:pointer}
.file-viewer-frame{flex:1;width:100%;border:0;background:#eef0f4}
@media (max-width:640px){.file-viewer{width:100vw;height:100dvh;border-radius:0}}

/* Internal verification (BTEC IV). */
.verification-list{display:grid;gap:10px}
.verification-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:14px 16px;border:1px solid #e3e8f0;border-radius:16px;background:#fff;color:inherit;transition:border-color .18s,box-shadow .18s}
.verification-row:hover{border-color:#b5c0ea;box-shadow:0 8px 22px rgba(38,56,110,.08)}
.verification-row-main{flex:1 1 220px;min-width:0;display:grid}
.verification-row-main b{font-size:15px;color:#24324a}
.verification-row-main small{color:#7a869a;font-size:12.5px}
.verification-counts{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.verification-arrow{color:#8a96a7}
.iv-total{color:#7a869a;font-size:12px}
.iv-chip{display:inline-flex;align-items:center;min-height:26px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.iv-waiting{background:#eef1f6;color:#4b5a72}
.iv-agreed{background:#e8f7f0;color:#1f7a5a}
.iv-changes{background:#fff2e2;color:#a85a10}
.iv-outdated{background:#f3eefc;color:#6a4bb0}
.iv-suggested{background:#eef1ff;color:#2f3f9e}
.verification-students{display:grid;gap:14px}
.verify-card{padding:16px;border:1px solid #e3e8f0;border-radius:18px;background:#fff;scroll-margin-top:90px}
.verify-card[data-iv-state="agreed"]{border-color:#bfe3d2}
.verify-card[data-iv-state="changes"]{border-color:#f0cf9e}
.verify-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-bottom:12px}
.verify-card-name{flex:1 1 160px;min-width:0;display:grid}
.verify-card-name b{font-size:15px;color:#24324a}
.verify-card-name small{color:#7a869a;font-size:12px}
.verify-grade{display:grid;place-items:center;min-width:40px;height:40px;border-radius:12px;background:#2f3f9e;color:#fff;font:800 18px Cairo,Tahoma,sans-serif}
.verify-label{display:block;margin-bottom:4px;color:#388067;font-size:12px;font-weight:700}
.verify-work{display:grid;gap:10px;margin-bottom:12px}
.verify-feedback p{margin:0;padding:10px 12px;border-radius:12px;background:#f6f8fc;color:#33405a;font-size:14px;line-height:1.9;white-space:pre-wrap;max-height:260px;overflow:auto}
.verify-current{margin:0 0 12px;padding:10px 12px;border-radius:12px;display:grid;gap:2px}
.verify-current.is-agreed{background:#eefaf4;color:#1f6b50}
.verify-current.is-changes{background:#fff6ea;color:#8a4d0e}
.verify-current p{margin:4px 0 0;white-space:pre-wrap;color:#33405a}
.verify-history{margin:0 0 12px;color:#4b5a72;font-size:13px}
.verify-history ul{margin:8px 0 0;padding-inline-start:18px;display:grid;gap:6px}
.verify-history p{margin:2px 0 0;white-space:pre-wrap}
.verify-form{display:grid;gap:8px;padding-top:12px;border-top:1px dashed #e3e8f0}
.verify-form fieldset{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;border:0}
.verify-form legend{margin-bottom:6px;color:#24324a;font-size:13.5px;font-weight:700}
.verify-choice{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:6px 14px;border:1px solid #dfe5ee;border-radius:12px;background:#fff;cursor:pointer;font-size:13.5px}
.verify-choice:has(input:checked){border-color:#1f7a5a;background:#eefaf4;color:#1f6b50}
.verify-choice-changes:has(input:checked){border-color:#c47a1c;background:#fff6ea;color:#8a4d0e}
.verify-note-label{color:#4b5a72;font-size:13px;font-weight:700}
.verify-note-label small{color:#8a96a7;font-weight:500}
.verify-form textarea{width:100%;min-height:84px;padding:10px 12px;border:1px solid #dfe5ee;border-radius:12px;font:14px/1.8 Cairo,Tahoma,sans-serif;resize:vertical}
.verify-form .button{justify-self:start}
.iv-result{margin:0 0 10px;padding:10px 12px;border-radius:12px;display:grid;gap:2px;font-size:13.5px}
.iv-result.is-agreed{background:#eefaf4;color:#1f6b50}
.iv-result.is-changes{background:#fff6ea;color:#8a4d0e}
.iv-result.is-outdated{background:#f5f1fd;color:#5b3f9c}
.iv-result p{margin:4px 0 0;white-space:pre-wrap;color:#33405a}
.iv-result-kicker{font-size:11.5px;font-weight:700;opacity:.8}
.iv-result-outdated{font-weight:700}
.status-badge.iv-badge-agreed{background:#e8f7f0;color:#1f7a5a}
.status-badge.iv-badge-changes{background:#fff2e2;color:#a85a10}
@media (max-width:640px){.verify-form .button{justify-self:stretch}.verification-arrow{display:none}}

/* Internal verification: the sample chooser. */
.sample-panel,.verify-section{margin:0 0 18px}
.sample-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.sample-head h2{margin:2px 0 4px;font-size:19px}
.sample-head p{margin:0;max-width:720px}
.sample-meter{flex:none;display:inline-flex;align-items:baseline;gap:4px;padding:8px 14px;border-radius:12px;font-size:13px;font-weight:700}
.sample-meter b{font-size:20px}
.sample-meter.is-short{background:#fff2e2;color:#a85a10}
.sample-meter.is-ok{background:#e8f7f0;color:#1f7a5a}
.sample-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px;margin:0 0 14px;padding:0;list-style:none}
.sample-option{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;border:1px solid #e1e6ef;border-radius:12px;background:#fff;cursor:pointer}
.sample-option:has(input:checked){border-color:#2f3f9e;background:#f3f5ff}
.sample-option.is-locked{cursor:default;opacity:.85}
.sample-option input[type=checkbox]{width:18px;height:18px;accent-color:#2f3f9e}
.sample-name{flex:1;min-width:0;font-size:14px;color:#24324a}
.verify-grade-small{min-width:30px;height:30px;border-radius:9px;font-size:14px}
.iv-short{background:#fff2e2;color:#a85a10}
.iv-sampled{background:#eef1ff;color:#2f3f9e}
.admin-course-verifier-form small{flex-basis:100%;color:#7a869a;font-size:12px}
@media (max-width:640px){.sample-list{grid-template-columns:1fr}.sample-form .button{width:100%}}

/* Taking back a grade given by mistake. */
.evaluation-edit-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.grade-remove-form{margin:0}
.grade-remove-button{background:#fff;color:#b23a36;border:1px solid #efc6c3;box-shadow:none}
.grade-remove-button:hover{background:#fdf1f0;border-color:#e2a29d}

/* Form fields follow the theme chosen on the site, not the phone's own dark setting (which made the text white). */
:root[data-theme="light"]{color-scheme:light}
:root:not([data-theme="dark"]) input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=button]),
:root:not([data-theme="dark"]) select,:root:not([data-theme="dark"]) textarea{color:#18243d;-webkit-text-fill-color:#18243d;caret-color:#18243d}
:root:not([data-theme="dark"]) input::placeholder,:root:not([data-theme="dark"]) textarea::placeholder{color:#8a94a6;-webkit-text-fill-color:#8a94a6}
:root:not([data-theme="dark"]) input:-webkit-autofill{-webkit-text-fill-color:#18243d;box-shadow:0 0 0 1000px #fff inset}

/* ---- Navigation bar (navbar.js) ------------------------------------------------------------ */
.topbar-link[aria-current="page"]{background:#eef1ff;color:#2f3f9e;border-color:#c9d1f5;font-weight:700}
.nav-toggle,.nav-menu{display:none}
@media (max-width:760px){
  .topbar{position:relative;z-index:100;height:auto;flex-wrap:nowrap;align-items:center;gap:8px;padding:8px 14px;min-height:60px}
  .topbar .brand{flex:none}
  .topbar .topbar-right{flex:1 1 0;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:8px;overflow:visible;min-width:0}
  .topbar .topbar-right>*:not(.notif):not(.nav-toggle){display:none}
  .topbar .topbar-right .notif{position:static}
  .nav-toggle{display:inline-grid;align-content:center;justify-items:center;gap:4px;width:42px;height:42px;padding:0;border:1px solid #e1e6ef;border-radius:12px;background:#fff;cursor:pointer}
  .nav-toggle span{display:block;width:18px;height:2px;border-radius:2px;background:#3a4a6b;transition:transform .2s,opacity .2s}
  .topbar.is-menu-open .nav-toggle span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .topbar.is-menu-open .nav-toggle span:nth-child(2){opacity:0}
  .topbar.is-menu-open .nav-toggle span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
  /* The menu opens over the page, under the bar. */
  .topbar.is-menu-open .nav-menu{display:grid;gap:8px;position:absolute;top:100%;inset-inline:0;max-height:calc(100dvh - 70px);overflow-y:auto;padding:12px 14px 16px;background:#fff;border-bottom:1px solid #e6e9ef;box-shadow:0 18px 40px rgba(20,30,50,.16)}
  .nav-menu-who{display:flex;align-items:center;gap:10px;padding:4px 2px 8px;border-bottom:1px solid #eef0f4}
  .nav-menu-who span{display:grid;min-width:0}
  .nav-menu-who b{color:#24324a;font-size:15px}
  .nav-menu-who small{color:#7a869a;font-size:12px}
  .nav-menu-link{display:flex;align-items:center;min-height:48px;padding:10px 14px;border:1px solid #e6e9ef;border-radius:12px;background:#fff;color:#24324a;font:600 15px Cairo,Tahoma,sans-serif;text-align:start;cursor:pointer}
  .nav-menu-link[aria-current="page"]{background:#eef1ff;border-color:#c9d1f5;color:#2f3f9e}
  .nav-menu-logout{margin:0}
  .nav-menu-logout .logout-button{width:100%;min-height:48px;border:1px solid #f0d0d2;border-radius:12px;background:#fff6f6;color:#b23a36;font:700 15px Cairo,Tahoma,sans-serif}
}
:root[data-theme="dark"] .nav-toggle{background:#1b2333;border-color:#2e384c}
:root[data-theme="dark"] .nav-toggle span{background:#d9e0ec}
:root[data-theme="dark"] .topbar-link[aria-current="page"]{background:#1f2a4d;color:#c7d0ff;border-color:#34407a}
@media (max-width:760px){
  :root[data-theme="dark"] .topbar.is-menu-open .nav-menu{background:#121a29;border-color:#232d40;box-shadow:0 18px 40px rgba(0,0,0,.5)}
  :root[data-theme="dark"] .nav-menu-who{border-color:#232d40}
  :root[data-theme="dark"] .nav-menu-who b{color:#e6ebf3}
  :root[data-theme="dark"] .nav-menu-link{background:#161d2b;border-color:#2a3447;color:#e6ebf3}
  :root[data-theme="dark"] .nav-menu-link[aria-current="page"]{background:#1f2a4d;border-color:#34407a;color:#c7d0ff}
  :root[data-theme="dark"] .nav-menu-logout .logout-button{background:#2a1719;border-color:#5a2b31;color:#f3b4ba}
}
@media (max-width:640px){
  .account-tabs{display:grid;grid-template-columns:1fr 1fr;overflow:visible}
  .account-tabs a{justify-content:center;text-align:center;white-space:normal}
}

/* The suggested sample, shared between the grades. */
.sample-share{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0;padding:0;list-style:none}
.sample-share li{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid #e1e6ef;border-radius:999px;background:#fff;font-size:13px;color:#4b5a72}
.sample-share b{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:7px;background:#2f3f9e;color:#fff;font-size:12px}
.sample-share .grade-p b{background:#2f8f6b}
.sample-share .grade-m b{background:#5b62c9}
.sample-share .grade-d b{background:#c47a1c}
.sample-share strong{color:#24324a}
.sample-actions{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:640px){.sample-actions .button{flex:1 1 100%}}

/* Admin: sections inside each class (sub-tabs). */
.grade-section-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;padding:6px;border:1px solid #e3e8f0;border-radius:14px;background:#f7f8fb}
.grade-section-tab{flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:6px 14px;border:0;border-radius:10px;background:transparent;color:#4b5a72;font:700 13.5px Cairo,Tahoma,sans-serif;cursor:pointer}
.grade-section-tab b{min-width:22px;padding:0 6px;border-radius:999px;background:#e8ebf2;color:#4b5a72;font-size:11.5px}
.grade-section-tab.is-active,.grade-section-tab[aria-selected="true"]{background:#fff;color:#2f3f9e;box-shadow:0 2px 8px rgba(30,45,90,.1)}
.grade-section-tab[aria-selected="true"] b{background:#eef1ff;color:#2f3f9e}
.grade-section-panel[hidden],.admin-create-course[hidden],.admin-terms-section[hidden],.admin-teacher-load-panel[hidden]{display:none!important}
/* Course cards: the teacher and the verifier side by side. */
.admin-course-card{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.admin-course-card>.admin-course-head,.admin-course-card>.admin-course-terms,.admin-course-card>dialog{grid-column:1/-1}
.admin-course-card>.admin-course-teacher-form{margin:0;height:100%}
.course-verifier-note{color:#2f3f9e;font-weight:700}
.size-field .input-suffix input{min-width:120px;flex:1 1 auto}
@media (max-width:760px){
  .admin-course-card{grid-template-columns:1fr}
  .grade-section-tabs{display:grid;grid-template-columns:1fr 1fr}
}
:root[data-theme="dark"] .grade-section-tabs{background:#121a29;border-color:#232d40}
:root[data-theme="dark"] .grade-section-tab{color:#a9b4c8}
:root[data-theme="dark"] .grade-section-tab[aria-selected="true"]{background:#1f2a4d;color:#c7d0ff;box-shadow:none}
:root[data-theme="dark"] .grade-section-tab b{background:#232d40;color:#c6cfdd}
:root[data-theme="dark"] .course-verifier-note{color:#aab6ff}
.admin-course-actions .button-danger{background:#fff;color:#b23a36;border:1px solid #efc6c3;box-shadow:none}
.admin-course-actions .button-danger:hover{background:#fdf1f0;border-color:#e2a29d}

/* BTEC Submit: the name next to the logo, "Submit" in the logo's indigo. */
.brand-name{white-space:nowrap}
.brand-name b{font-weight:600;color:#4F46E5}
.brand-light .brand-name b{color:#A5B4FC}

/* Announcements: the teacher's form and list, the cards students read (explanation, video, pictures, files). */
.announcements-panel{margin-bottom:22px}
.announcement-form{display:grid;gap:14px;margin-top:18px}
.announcement-form-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px}
.announcement-form select,.announcement-form input[type=url],.announcement-form input:not([type]){width:100%;height:44px;border:1px solid #e2e6ee;border-radius:10px;padding:0 12px;background:#fbfcfd;color:var(--ink)}
.announcement-form textarea{width:100%;min-height:130px;border:1px solid #e2e6ee;border-radius:10px;padding:11px 13px;background:#fbfcfd;color:var(--ink);resize:vertical;line-height:1.9}
.announcement-list-heading{margin-top:28px}
.announcements-section:empty{display:none}
.announcement-list{display:grid;gap:14px}
.announcement-card{padding:18px 20px;background:#fff;border:1px solid #e9ecf2;border-radius:16px;box-shadow:0 5px 18px rgba(23,39,67,.03);scroll-margin-top:90px}
.announcement-card:target{border-color:#a5b4fc;box-shadow:0 0 0 3px rgba(99,102,241,.15)}
.announcement-head{display:flex;align-items:flex-start;gap:10px}
.announcement-heading{flex:1 1 auto;min-width:0}
.announcement-heading h3{margin:0;font-size:16px;overflow-wrap:anywhere}
.announcement-heading small{display:block;color:#8590a4;font-size:12px;margin-top:2px}
.announcement-delete{margin:0;flex:none}
.announcement-body{margin:12px 0 0;white-space:pre-wrap;line-height:1.95;color:#3d4a63;overflow-wrap:anywhere}
.announcement-video{position:relative;margin-top:14px;border-radius:14px;overflow:hidden;background:#0d1324;aspect-ratio:16/9}
.announcement-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.announcement-link{margin-top:12px}
.announcement-media{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin-top:14px}
.announcement-player{grid-column:1/-1;margin:0}
.announcement-player video{display:block;width:100%;max-height:70vh;border-radius:14px;background:#0d1324}
.announcement-player figcaption,.announcement-sound figcaption{display:flex;justify-content:space-between;gap:10px;margin-top:6px;font-size:12px;color:#6b778c;overflow-wrap:anywhere}
.announcement-player figcaption a{color:#4F46E5;font-weight:600;white-space:nowrap}
.announcement-sound{margin:0;padding:10px;border:1px solid #e9ecf2;border-radius:12px}
.announcement-sound audio{width:100%}
.announcement-image{display:block;border-radius:12px;overflow:hidden;border:1px solid #e9ecf2;background:#f6f7fb}
.announcement-image img{display:block;width:100%;height:180px;object-fit:cover}
.announcement-files{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:6px}
.announcement-files:empty{display:none}
.announcement-files li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border:1px solid #e9ecf2;border-radius:10px;background:#fafbfd}
.announcement-files a{color:#34445f;font-weight:600;overflow-wrap:anywhere}
.announcement-files a:hover{color:#4F46E5}
.announcement-files small{color:#98a0af;white-space:nowrap}
@media(max-width:620px){.announcement-form-row{grid-template-columns:1fr}.announcement-card{padding:14px 12px}.announcement-head{flex-wrap:wrap}.announcement-delete{width:100%}.announcement-delete .button{width:100%}}

/* Voice dictation: the microphone button under a comment box. */
.voice-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}
.voice-button{display:inline-flex;align-items:center;gap:7px;border:1px solid #d9dcf5;background:#f3f4ff;color:#3f3aa8;border-radius:999px;padding:6px 13px;font:600 12px Cairo,Tahoma,sans-serif;cursor:pointer}
.voice-button:hover{background:#e9eaff}
.voice-button.is-listening{background:#fde8e8;border-color:#f3b4b4;color:#b42323}
.voice-button.is-listening .voice-dot{animation:voice-pulse 1s ease-in-out infinite}
.voice-dot{width:9px;height:9px;border-radius:50%;background:currentColor;display:inline-block}
.voice-lang{border:1px solid #e2e6ee;border-radius:999px;padding:5px 10px;background:#fff;color:#4b5770;font:600 12px Cairo,Tahoma,sans-serif}
.voice-status{font-size:12px;color:#8590a4}
@keyframes voice-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(1.35)}}
@media (prefers-reduced-motion:reduce){.voice-button.is-listening .voice-dot{animation:none}}
.voice-bar select.voice-lang{width:auto!important;height:auto!important;min-height:0;flex:none}
.announcement-edited{color:#a16d2c;font-weight:600}
.announcement-edit{margin-top:14px;border-top:1px solid #eef0f4;padding-top:10px}
.announcement-edit>summary{cursor:pointer;color:#4F46E5;font-weight:700;font-size:13px;width:fit-content}
.announcement-edit .announcement-form{margin-top:10px}
.announcement-file-choices{display:grid;gap:6px;margin:0;padding:10px 12px;border:1px solid #e9ecf2;border-radius:10px}
.announcement-file-choices legend{padding:0 6px;font-size:12px;font-weight:700;color:#5b6678}
.announcement-file-choices label{display:flex;align-items:center;gap:8px;font-size:13px;overflow-wrap:anywhere}

/* Create assignment: four steps on one side, the student's card and the publish button on the other. */
.composer-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:22px;align-items:start;margin-top:18px}
.composer-layout .assignment-form{margin-top:0;gap:14px}
.composer-step{margin:0;padding:16px 18px 18px;border:1px solid #e6e9f1;border-radius:16px;background:#fff;display:grid;gap:14px;min-width:0;transition:border-color .2s,box-shadow .2s}
.composer-step:focus-within{border-color:#c7c9f7;box-shadow:0 0 0 4px rgba(79,70,229,.07)}
.composer-step.has-error{border-color:#f0b9b9;box-shadow:0 0 0 4px rgba(198,40,40,.06)}
.composer-step legend{display:flex;align-items:center;gap:10px;padding:0 6px;margin-inline-start:-6px;font-weight:800;font-size:15px;color:#17154A;width:calc(100% + 12px)}
.step-mark{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#eef0ff;color:#4F46E5;font:800 13px Cairo,Tahoma,sans-serif;transition:background .2s,color .2s}
.composer-step.is-complete .step-mark{background:#10B981;color:#fff;font-size:0}
.composer-step.is-complete .step-mark:after{content:"✓";font-size:14px}
.composer-step.has-error .step-mark{background:#fde2e2;color:#b42323}
.step-summary{margin-inline-start:auto;font:600 12px Cairo,Tahoma,sans-serif;color:#1f7a5a;max-width:55%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.composer-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.composer-layout .field{min-width:0}
.composer-layout .field>label,.composer-layout .field-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:13px;font-weight:700;color:#34415c}
.char-count{font-weight:500;color:#98a1b0;font-size:11.5px}
.char-count.is-near{color:#b42323}
.composer-layout select,.composer-layout input[type=text],.composer-layout input[type=datetime-local]{width:100%;height:44px;border:1px solid #e2e6ee;border-radius:10px;padding:0 12px;background:#fbfcfd;color:var(--ink);font:inherit}
.composer-layout .assignment-instructions{min-height:130px;line-height:1.9}
.segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.segmented label{position:relative;cursor:pointer}
.segmented input{position:absolute;opacity:0;pointer-events:none}
.segmented span{display:grid;gap:1px;padding:10px 14px;border:1px solid #e2e6ee;border-radius:12px;background:#fbfcfd;transition:border-color .15s,background .15s}
.segmented b{font-size:14px;color:#34415c}
.segmented small{font-size:11.5px;color:#8590a4}
.segmented input:checked+span{border-color:#4F46E5;background:#f3f4ff;box-shadow:inset 0 0 0 1px #4F46E5}
.segmented input:checked+span b{color:#3f3aa8}
.segmented input:focus-visible+span{outline:2px solid #4F46E5;outline-offset:2px}
.quick-picks{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.quick-pick{border:1px solid #dfe2f0;background:#fff;color:#4b5770;border-radius:999px;padding:4px 11px;font:600 12px Cairo,Tahoma,sans-serif;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.quick-pick:hover{border-color:#a5b4fc;color:#3f3aa8;background:#f6f7ff}
.quick-pick.is-active{border-color:#4F46E5;background:#4F46E5;color:#fff}
.quick-pick-quiet{border-style:dashed;color:#8590a4}
.type-presets{margin:0 0 10px}
.composer-note{margin:0;font-size:13px;color:#1f7a5a;font-weight:600}
.composer-note:empty{display:none}
.composer-note.is-error{color:#b42323}
.composer-remembered{color:#5b6678;font-weight:500}
.field-error{color:#b42323;font-weight:700;font-size:12px}
.composer-preview{position:sticky;top:90px;display:grid;gap:12px;padding:16px;border-radius:18px;background:#f3f4fb;border:1px solid #e3e6f3}
.preview-caption{margin:0;font-size:13px;font-weight:800;color:#3f3aa8}
.preview-card{pointer-events:none;box-shadow:0 10px 30px rgba(23,21,74,.08)}
.preview-card .assignment-description{margin:12px 0 10px;max-height:9.5em;overflow:hidden}
.preview-card .assignment-description.is-placeholder{color:#a2aaba;font-style:italic}
.preview-card .file-chips:empty:before{content:"لم تُحدد بعد";font-size:11.5px;color:#a2aaba}
.composer-checklist{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.composer-checklist li{display:flex;align-items:center;gap:8px;font-size:13px;color:#6b778c}
.composer-checklist li:before{content:"";flex:none;width:16px;height:16px;border-radius:50%;border:2px solid #cfd4e2;background:#fff;transition:background .2s,border-color .2s}
.composer-checklist li.is-done{color:#1f3b33}
.composer-checklist li.is-done:before{border-color:#10B981;background:#10B981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}
.composer-publish{width:100%;height:48px;font-size:15px}
.composer-publish.is-ready{background:#4F46E5;box-shadow:0 8px 22px rgba(79,70,229,.28)}
.composer-publish-note{font-size:12px;color:#6b778c;line-height:1.7}
@media(max-width:980px){.composer-layout{grid-template-columns:1fr}.composer-preview{position:static}}
@media(max-width:560px){.composer-row,.segmented{grid-template-columns:1fr}.composer-step{padding:14px 12px}.step-summary{display:none}}
@media (prefers-reduced-motion:reduce){.composer-step,.step-mark,.quick-pick,.composer-checklist li:before{transition:none}}

/* Password fields: one show/hide button only (Edge adds its own eye icon over ours), easy to tap on a phone. */
input[type=password]::-ms-reveal,input[type=password]::-ms-clear{display:none}
.password-input-wrap input{padding-inline-end:84px}
.password-visibility-toggle{min-height:32px;min-width:58px;background:#f3f4ff;color:#3f3aa8;font-size:12px;z-index:1}
.password-visibility-toggle[aria-pressed=true]{background:#e8f7f0;color:#1f7a5a}

/* Navigation: the bar at the top on every screen (the phone menu on small ones). */
.topbar-link{display:inline-flex;align-items:center;gap:7px}
.nav-icon{width:17px;height:17px;flex:none}
.nav-menu-link .nav-icon{width:18px;height:18px}

/* Drop-down lists: no vertical padding inside a fixed height, so Arabic letters (the dots under ي, the tail of ل)
   are never cut off; a clear arrow on the left in a right-to-left page. */
.app-page select{padding-top:0!important;padding-bottom:0!important;line-height:1.5;min-height:42px;-webkit-appearance:none;appearance:none;padding-inline-end:36px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b778c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-size:16px!important;background-position:left 12px center!important}
.app-page select:disabled{opacity:.6;cursor:not-allowed}
.app-page select.voice-lang{padding-inline-end:28px!important;background-position:left 8px center!important;background-size:13px!important;min-height:0}

/* Announcement files: a drop zone (drag files onto it, or press it to choose). */
.drop-zone{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:86px;padding:16px;border:2px dashed #cfd3ee;border-radius:14px;background:#fafbff;color:#5b63b5;font-size:13px;font-weight:600;text-align:center;transition:border-color .15s,background .15s}
.drop-zone svg{width:24px;height:24px;flex:none}
.drop-zone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.drop-zone:hover,.announcement-drop.is-dragging .drop-zone{border-color:#4F46E5;background:#f1f2ff;color:#3f3aa8}
.drop-zone:focus-within{outline:2px solid #4F46E5;outline-offset:2px}

/* Sending files: the progress bar at the bottom of the screen. */
.upload-progress{position:fixed;inset-inline:16px;bottom:16px;z-index:2000;max-width:460px;margin-inline:auto;display:grid;gap:8px;padding:14px 16px;border-radius:16px;background:#17154A;color:#fff;box-shadow:0 18px 50px rgba(23,21,74,.35)}
.upload-progress b{font-size:14px}
.upload-progress small{font-size:12px;color:#c9ccf5;font-variant-numeric:tabular-nums}
.upload-progress-bar{height:8px;border-radius:999px;background:rgba(255,255,255,.18);overflow:hidden}
.upload-progress-bar span{display:block;width:0;height:100%;border-radius:inherit;background:#10B981;transition:width .2s linear}
.upload-progress-cancel{justify-self:start;border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;border-radius:999px;padding:4px 12px;font:600 12px Cairo,Tahoma,sans-serif;cursor:pointer}
.upload-progress.is-error{background:#7a1f1f}
@media (prefers-reduced-motion:reduce){.upload-progress-bar span{transition:none}}
.preview-card .student-card-head{flex-wrap:wrap;align-items:flex-start}
.preview-card .student-card-title{flex:1 1 170px;min-width:0}
.preview-card .card-title-row h3{flex:1 1 100%;overflow-wrap:anywhere}
.preview-card .deadline-chip{flex:1 1 100%;flex-direction:row;justify-content:space-between;align-items:center;gap:8px}

@media(max-width:760px){.welcome-new{display:none}}

/* Admin: BTEC units and their criteria. */
.unit-block{border:1px solid #e6e9f1;border-radius:14px;background:#fff;margin-top:10px}
.unit-block>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;cursor:pointer}
.criteria-edit-list{list-style:none;margin:0;padding:0 14px 14px;display:grid;gap:8px}
.criterion-edit{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:10px;align-items:start}
.criterion-edit textarea{width:100%;border:1px solid #e2e6ee;border-radius:10px;padding:8px 10px;font:inherit;font-size:13px;resize:vertical;background:#fbfcfd}
.criterion-code{display:inline-grid;place-items:center;min-height:34px;border-radius:9px;font:800 13px Cairo,Tahoma,sans-serif;direction:ltr}
.band-P .criterion-code{background:#e8f7f0;color:#1f7a5a}
.band-M .criterion-code{background:#eef0ff;color:#3f3aa8}
.band-D .criterion-code{background:#fff1dc;color:#9a5b0d}
@media(max-width:620px){.criterion-edit{grid-template-columns:60px minmax(0,1fr)}.criterion-edit .button{grid-column:2}}

/* Grading by criteria: one tick per criterion, coloured by band, and the grade they give. */
.criteria-check{display:grid;gap:6px;margin:0 0 10px;padding:10px 12px;border:1px solid #e6e9f1;border-radius:12px;background:#fbfcff;min-width:0}
.criteria-check legend{padding:0 6px;font-size:13px;font-weight:800;color:#34415c}
.criteria-check label{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;padding:4px 6px;border-radius:8px;align-items:start;gap:8px;font-size:12.5px;line-height:1.6;color:#4b5770;cursor:pointer}
.criteria-check input{margin-top:3px;width:16px;height:16px;accent-color:#10B981}
.criteria-check b{min-width:46px;text-align:center;border-radius:7px;padding:0 6px;font-size:12px}
.criteria-check .band-P b{background:#e8f7f0;color:#1f7a5a}
.criteria-check .band-M b{background:#eef0ff;color:#3f3aa8}
.criteria-check .band-D b{background:#fff1dc;color:#9a5b0d}
.criteria-check label:has(input:checked) span{color:#17154A;font-weight:600}
.criteria-result{margin:4px 0 0;font-size:13px;font-weight:700;color:#1f7a5a}
.criteria-result.is-short{color:#b42323}
.aims-options{display:flex;flex-wrap:wrap;gap:7px;margin:6px 0}
.aims-options label[hidden]{display:none}

/* The student's criteria map: one card per unit, criteria light up in their band's colour once met. */
.criteria-maps:empty{display:none}
.criteria-map{padding:18px 20px;margin-bottom:14px;background:#fff;border:1px solid #e9ecf2;border-radius:18px;box-shadow:0 5px 18px rgba(23,39,67,.03)}
.map-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.map-head h3{margin:0;font-size:17px}
.map-head small{color:#8590a4;font-size:12px}
.map-grade{display:grid;justify-items:center;min-width:72px;padding:6px 10px;border-radius:14px;background:#f1f2f8;color:#8590a4}
.map-grade b{font-size:24px;line-height:1.1}
.map-grade small{font-size:11px;font-weight:700}
.map-grade.grade-p{background:#e8f7f0;color:#1f7a5a}
.map-grade.grade-m{background:#eef0ff;color:#3f3aa8}
.map-grade.grade-d{background:#fff1dc;color:#9a5b0d}
.map-progress{display:flex;align-items:center;gap:10px;margin:14px 0;font-size:12px;color:#6b778c;font-weight:600}
.map-progress i{flex:1;height:8px;border-radius:999px;background:#eef0f5;overflow:hidden}
.map-progress i b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#10B981,#4F46E5);transition:width .6s ease}
.map-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.map-col h4{margin:0 0 8px;font-size:13px;color:#5b6678}
.map-col ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.map-col li{display:grid;gap:2px;padding:9px 11px;border-radius:12px;border:1px dashed #d9dde8;background:#fafbfd;color:#9aa3b3;transition:background .3s,border-color .3s,color .3s,box-shadow .3s}
.map-col li b{font-size:13px;letter-spacing:.2px}
.map-col li span{font-size:12px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.map-col li:focus span,.map-col li:hover span{-webkit-line-clamp:unset}
.map-col li small{font-size:11px;font-weight:700}
.map-col li.is-met{border-style:solid;color:#17154A}
.band-P li.is-met{background:#e8f7f0;border-color:#9fdcc2;box-shadow:0 0 0 3px rgba(16,185,129,.12)}
.band-M li.is-met{background:#eef0ff;border-color:#b8bdfa;box-shadow:0 0 0 3px rgba(79,70,229,.12)}
.band-D li.is-met{background:#fff4e2;border-color:#f3c98a;box-shadow:0 0 0 3px rgba(234,160,52,.16)}
.band-P li.is-met b{color:#1f7a5a}.band-M li.is-met b{color:#3f3aa8}.band-D li.is-met b{color:#9a5b0d}
.map-next{margin:14px 0 0;padding:10px 14px;border-radius:12px;background:#fff8ee;color:#8a5a14;font-weight:700;font-size:14px}
.map-next.is-done{background:#e8f7f0;color:#1f7a5a}
@media(max-width:760px){.map-columns{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.map-col li,.map-progress i b{transition:none}}

/* The top bar on wide screens: the role, the name and the links stay on one line each. */
.topbar .role-pill,.topbar .user-chip,.topbar .topbar-link{white-space:nowrap;flex:none}
.topbar .brand{flex:none}

/* The assignment form: the criteria the chosen learning aims bring, for the teacher to check. */
.aims-criteria{margin-top:10px;padding:12px 14px;border:1px solid #e3e7f1;border-radius:14px;background:#fafbff}
.aims-criteria-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 12px;margin-bottom:8px;font-size:13px;color:#17154A}
.aims-criteria-head span{font-size:12px;color:#6b778c}
.aims-criteria-empty{margin:0 0 6px;font-size:12px;color:#6b778c}
.aims-criteria-empty[hidden],.aims-criteria-list[hidden],.aims-criteria-list li[hidden],.aims-criteria[hidden]{display:none}
.aims-criteria-list{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:6px}
.aims-criteria-list li{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:10px;padding:8px 10px;border-radius:10px;background:#fff;border:1px solid #eceff5;font-size:13px;line-height:1.7;color:#394868}
.aims-criteria-list li b{min-width:52px;text-align:center;padding:2px 6px;border-radius:8px;font-size:12px}
.aims-criteria-list li.band-P b{background:#e8f7f0;color:#1f7a5a}
.aims-criteria-list li.band-M b{background:#eef0ff;color:#3f3aa8}
.aims-criteria-list li.band-D b{background:#fff4e0;color:#9a5b00}

/* The version a criterion was first met in: one colour per version (1 green, 2 blue, 3 purple, 4 orange, 5+ pink). */
.met-v1{--met:#1f7a5a;--met-bg:#e8f7f0}
.met-v2{--met:#1d5fbf;--met-bg:#e6f0ff}
.met-v3{--met:#6b3fc4;--met-bg:#f1eaff}
.met-v4{--met:#b45309;--met-bg:#fff1e0}
.met-v5{--met:#be185d;--met-bg:#ffe8f2}
.met-version{display:inline-block;padding:1px 8px;border-radius:20px;font-style:normal;font-size:11px;font-weight:700;white-space:nowrap;color:var(--met,#4b5770);background:var(--met-bg,#eef0f4)}
.criteria-check label[class*=met-v]{box-shadow:inset -4px 0 0 var(--met);background:var(--met-bg)}
.criteria-check label .met-version{margin-inline-start:auto;align-self:center}
.met-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px;font-size:12px;color:#6b778c}
.version-criteria{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0;padding:8px 10px;border-radius:12px;background:#fafbff;border:1px solid #eceff5}
.version-criteria-title{flex-basis:100%;font-size:12px;font-weight:700;color:#394868}
.met-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:20px;font-size:12px;color:var(--met);background:var(--met-bg);border:1px solid transparent}
.met-chip.is-new{border-color:var(--met)}
.met-chip small{font-size:10px;font-weight:700}

/* «تذكرني» on the login page: a clear box with what it means, unticked by default. */
.remember-me{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #e2e6ee;border-radius:12px;background:#fbfcfd;cursor:pointer}
.remember-me input{width:20px;height:20px;margin-top:2px;flex:none;accent-color:#4F46E5}
.remember-me span{display:grid;gap:2px}
.remember-me b{font-size:14px;color:#17154A}
.remember-me small{font-size:12px;color:#6b778c;line-height:1.6}
