@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{--primary:#1d4ed8;--primary-dark:#1e3a8a;--primary-hover:#1e40af;--primary-light:#3b82f61f;--brand-gradient:linear-gradient(135deg, #1d4ed8 0%, #2563eb 48%, #3b82f6 100%);--page-bg:#f3f6fa;--glass-bg:#fff;--glass-border:#e3e8ef;--glass-shadow:0 2px 8px #0f172a0b;--text-main:#111827;--text-muted:#4b5563;--success:#22c55e;--success-hover:#16a34a;--success-dark:#15803d;--warning:#f59e0b;--danger:#dc2626;--border:#e5e7eb}*{box-sizing:border-box;margin:0;padding:0}body{background:var(--page-bg);color:var(--text-main);min-height:100vh;font-family:Inter,Microsoft YaHei,-apple-system,BlinkMacSystemFont,sans-serif}#root{flex-direction:column;min-height:100vh;display:flex}.container{flex:1;width:100%;max-width:1400px;margin:0 auto;padding:1.5rem}.glass-panel{background:var(--glass-bg);border:1px solid var(--glass-border);box-shadow:var(--glass-shadow);border-radius:10px;padding:1.5rem}.login-shell{background:radial-gradient(circle at 18% 15%, #60a5fa47, transparent 26%), var(--brand-gradient);justify-content:center;align-items:center;min-height:100vh;display:flex}.login-card{text-align:center;width:100%;max-width:460px;padding:0;overflow:hidden}.login-brand{background:var(--brand-gradient);color:#fff;padding:2rem 1.75rem 1.85rem}.login-badge{color:#fff;background:#ffffff2e;border:1px solid #ffffff57;border-radius:8px;place-items:center;width:42px;height:42px;margin:0 auto .9rem;font-weight:700;display:grid}.login-brand h2{color:#fff;margin-bottom:.35rem;font-size:1.65rem;font-weight:700}.login-brand p{color:#ffffffdb;font-size:.95rem}.login-body{padding:1.5rem}.btn{background:var(--primary);color:#fff;cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;gap:.4rem;padding:.6rem 1.2rem;font-size:.9rem;font-weight:500;transition:background .2s,box-shadow .2s,transform .2s;display:inline-flex}.btn:hover{background:var(--primary-hover);transform:translateY(-1px)}.btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.btn-sm{padding:.35rem .8rem;font-size:.8rem}.btn-outline{color:var(--primary);border:1.5px solid var(--primary);background:0 0}.btn-outline:hover{background:var(--primary-light)}.btn-cta,.btn-success{background:var(--success);color:#fff;box-shadow:0 10px 20px #22c55e38}.btn-cta:hover,.btn-success:hover{background:var(--success-hover)}.btn-danger{background:var(--danger)}.btn-danger:hover{background:#b91c1c}input,textarea,select{border:1px solid var(--border);background:#fff;border-radius:6px;width:100%;padding:.6rem .8rem;font-family:inherit;font-size:.9rem;transition:border-color .2s,box-shadow .2s}input:focus,textarea:focus,select:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #3b82f62e}.tabs{background:#fff;border-radius:8px;gap:0;margin-bottom:1.5rem;padding:4px;display:flex;box-shadow:0 2px 8px #1118270d}.tab{text-align:center;cursor:pointer;color:var(--text-muted);background:0 0;border:none;border-radius:8px;flex:1;padding:.7rem 1rem;font-size:.9rem;font-weight:500;transition:all .2s}.tab:hover{color:var(--primary);background:var(--primary-light)}.tab.active{background:var(--brand-gradient);color:#fff;box-shadow:0 8px 18px #1d4ed838}.data-table{border-collapse:collapse;width:100%;font-size:.85rem}.data-table th,.data-table td{text-align:center;border-bottom:1px solid var(--border);white-space:nowrap;padding:.6rem .5rem}.data-table th{color:#1f2937;z-index:1;background:#eff6ff;font-weight:600;position:sticky;top:0}.data-table tr:hover td{background:#f1f5f9}.data-table td.missing{color:var(--danger);background:#fef2f2;font-weight:600}.data-table td.text-left{text-align:left}.table-scroll{border:1px solid var(--border);background:#fff;border-radius:8px;max-height:65vh;overflow:auto}.stats-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem;display:grid}.stat-card{border:1px solid var(--border);background:#fff;border-radius:8px;padding:1rem 1.2rem;transition:transform .2s}.stat-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px #11182714}.stat-card .label{color:var(--text-muted);margin-bottom:.3rem;font-size:.8rem}.stat-card .value{color:var(--primary);font-size:1.6rem;font-weight:700}.progress-bar-bg{background:#e2e8f0;border-radius:99px;width:100%;height:8px;overflow:hidden}.progress-bar-fill{background:linear-gradient(90deg, var(--primary), #3b82f6);border-radius:99px;height:100%;transition:width .4s}.progress-bar-fill.complete{background:linear-gradient(90deg, var(--success), #34d399)}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:.4s forwards fadeIn}.grade-input{text-align:center;border:1px solid var(--border);border-radius:6px;width:60px;padding:.3rem;font-size:.85rem}.grade-input:focus{border-color:var(--primary);box-shadow:0 0 0 2px #3b82f629}.badge{border-radius:999px;padding:.2rem .6rem;font-size:.75rem;font-weight:600}.badge-success{color:#047857;background:#d1fae5}.badge-warning{color:#b45309;background:#fef3c7}.badge-danger{color:#b91c1c;background:#fee2e2}.app-header{background:var(--brand-gradient);border:1px solid #ffffff38;border-radius:8px;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem;padding:1.35rem 1.5rem;display:flex;box-shadow:0 18px 38px #1d4ed82e}.app-header h1{color:#fff;-webkit-text-fill-color:currentColor;background:0 0;font-size:1.55rem;font-weight:700}.app-header .user-info{align-items:center;gap:1rem;display:flex}.app-header .user-info span:not(.badge){color:#ffffffe0!important}.app-header .user-info .badge-success{background:#ecfdf5;border:1px solid #10b9816b;box-shadow:0 8px 18px #0f766e2e;color:#065f46!important}.app-header .user-info strong{color:#fff}.app-header .btn-outline{color:#fff;background:#ffffff1a;border-color:#ffffffb8}.app-header .btn-outline:hover{background:#ffffff2e}.form-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;display:grid}.form-group{flex-direction:column;gap:.3rem;display:flex}.form-group label{color:var(--text-muted);font-size:.8rem;font-weight:600}.section-title{align-items:center;gap:.5rem;margin-bottom:1rem;font-size:1.1rem;font-weight:600;display:flex}.workspace-shell{background:var(--page-bg);min-height:100vh;display:flex}.workspace-sidebar{color:#dbeafe;z-index:20;background:linear-gradient(#0f2f66 0%,#102a56 58%,#0d2348 100%);border-right:1px solid #ffffff14;flex-direction:column;flex:0 0 252px;width:252px;height:100vh;padding:22px 16px 18px;display:flex;position:sticky;top:0;box-shadow:4px 0 18px #0f172a14}.sidebar-brand{border-bottom:1px solid #ffffff1f;align-items:center;gap:12px;padding:0 8px 22px;display:flex}.brand-mark{color:#15386f;background:linear-gradient(145deg,#fff,#bfdbfe);border-radius:9px;flex:0 0 40px;place-items:center;width:40px;height:40px;font-size:20px;font-weight:800;display:grid;box-shadow:0 8px 18px #0000002e}.sidebar-brand strong,.sidebar-brand span,.sidebar-user strong,.sidebar-user span{display:block}.sidebar-brand strong{color:#fff;letter-spacing:.02em;font-size:15px}.sidebar-brand span{color:#9fb9df;margin-top:3px;font-size:11px}.sidebar-role{color:#7fa4d4;letter-spacing:.14em;margin:18px 10px 8px;font-size:11px;font-weight:700}.sidebar-nav{gap:5px;display:grid}.sidebar-nav-item{color:#c3d6ef;width:100%;min-height:44px;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:12px;padding:0 12px;font-size:14px;transition:background .18s,color .18s;display:flex;position:relative}.sidebar-nav-item:hover{color:#fff;background:#ffffff14}.sidebar-nav-item.active{color:#fff;background:#2563eb;box-shadow:0 8px 18px #0000002e}.sidebar-nav-item.active:before{content:"";background:#93c5fd;border-radius:0 3px 3px 0;width:4px;height:26px;position:absolute;left:-16px}.nav-icon{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;flex:0 0 19px;width:19px;height:19px}.nav-count{color:#fff;background:#ef4444;border-radius:10px;place-items:center;min-width:20px;height:20px;margin-left:auto;padding:0 6px;font-size:11px;font-weight:700;display:grid}.sidebar-footer{border-top:1px solid #ffffff1f;margin-top:auto;padding:16px 8px 0}.sidebar-user{align-items:center;gap:10px;min-width:0;display:flex}.user-avatar,.topbar-avatar{color:#1d4ed8;background:#dbeafe;border-radius:50%;flex:0 0 34px;place-items:center;width:34px;height:34px;font-size:14px;font-weight:700;display:grid}.sidebar-user>div:last-child{min-width:0}.sidebar-user strong{color:#fff;text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.sidebar-user span{color:#93add0;text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:10px;overflow:hidden}.sidebar-logout{color:#c8d8ed;width:100%;font:inherit;cursor:pointer;background:#ffffff0a;border:1px solid #fff3;border-radius:6px;margin-top:12px;padding:7px;font-size:12px}.sidebar-logout:hover{color:#fff;background:#ffffff1a}.workspace-main{flex:1;min-width:0}.workspace-topbar{border-bottom:1px solid var(--border);background:#fff;justify-content:space-between;align-items:center;gap:24px;min-height:104px;padding:18px 30px;display:flex}.page-heading>span{color:#718096;font-size:11px}.page-heading h1{color:#172033;margin-top:5px;font-size:23px;line-height:1.25}.page-heading p{color:#64748b;margin-top:5px;font-size:13px}.topbar-meta{align-items:center;gap:14px;display:flex}.term-chip{background:#f8fafc;border:1px solid #dce5f0;border-radius:7px;min-width:170px;padding:8px 12px}.term-chip span,.term-chip strong{display:block}.term-chip span{color:#7b8799;font-size:10px}.term-chip strong{color:#263650;margin-top:2px;font-size:12px}.topbar-avatar{flex-basis:38px;width:38px;height:38px}.workspace-content{width:100%;max-width:1680px;padding:26px 30px 42px}.workspace-content .glass-panel{box-shadow:0 1px 3px #0f172a0a}.student-welcome{color:#fff;background:radial-gradient(circle at 84% 20%,#93c5fd73,#0000 23%),linear-gradient(115deg,#153d7a,#2563eb 72%,#3b82f6);border-radius:11px;justify-content:space-between;align-items:center;gap:40px;min-height:174px;padding:30px 38px;display:flex;overflow:hidden;box-shadow:0 10px 22px #1e40af24}.student-welcome>div:first-child>span{color:#bfdbfe;font-size:13px}.student-welcome h2{margin-top:9px;font-size:25px}.student-welcome p{color:#dbeafe;margin-top:8px;font-size:13px}.welcome-score{text-align:center;background:#ffffff1f;border:1px solid #ffffff40;border-radius:10px;min-width:150px;padding:18px 24px}.welcome-score span,.welcome-score strong{display:block}.welcome-score span{color:#dbeafe;font-size:11px}.welcome-score strong{margin-top:2px;font-size:42px}.dashboard-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 24px;display:grid}.dashboard-stat{border:1px solid var(--border);background:#fff;border-radius:9px;padding:17px 20px}.dashboard-stat span,.dashboard-stat strong,.dashboard-stat small{display:block}.dashboard-stat span{color:#64748b;font-size:12px}.dashboard-stat strong{color:#173a72;margin:7px 0 4px;font-size:27px}.dashboard-stat small{color:#8a96a8;font-size:10px}.dashboard-alert{background:#fffbeb;border:1px solid #f8d799;border-left:4px solid #f59e0b;border-radius:7px;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;padding:13px 16px;display:flex}.dashboard-alert strong,.dashboard-alert span{display:block}.dashboard-alert strong{color:#7c4a03;font-size:13px}.dashboard-alert span{color:#93631a;margin-top:3px;font-size:12px}.panel-heading{justify-content:space-between;align-items:center;gap:16px;margin:0 0 13px;display:flex}.panel-heading h2{color:#1e293b;font-size:17px}.panel-heading p{color:#7b8799;margin-top:3px;font-size:11px}.student-assignment-list{gap:11px;display:grid}.student-assignment-card{border:1px solid var(--border);background:#fff;border-radius:9px;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:24px;min-height:126px;padding:20px 22px 20px 27px;display:grid;position:relative;overflow:hidden;box-shadow:0 1px 3px #0f172a09}.student-assignment-card:hover{border-color:#c7d5e8;box-shadow:0 5px 14px #0f172a0f}.assignment-status-rail{background:#f59e0b;width:4px;position:absolute;inset:0 auto 0 0}.assignment-status-rail[data-state=submitted]{background:#3b82f6}.assignment-status-rail[data-state=graded]{background:#16a34a}.assignment-card-title{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.assignment-card-title h3{color:#1e293b;margin-top:4px;font-size:16px}.assignment-category{color:#64748b;letter-spacing:.04em;font-size:10px;font-weight:700}.ai-chip{color:#1d4ed8;white-space:nowrap;background:#eff6ff;border-radius:4px;padding:4px 7px;font-size:10px;font-weight:700}.assignment-description{color:#66758a;margin:8px 0;font-size:12px;line-height:1.6}.assignment-teacher-choice{background:#f5f9ff;border:1px solid #bfdbfe;border-radius:6px;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:14px;max-width:520px;margin:10px 0;padding:9px 11px;display:grid}.assignment-teacher-choice strong,.assignment-teacher-choice span{display:block}.assignment-teacher-choice strong{color:#1e3a8a;font-size:11px}.assignment-teacher-choice span{color:#718096;margin-top:2px;font-size:9px}.assignment-teacher-choice select{color:#1e3a8a;border-color:#93c5fd;padding:6px 8px;font-size:11px;font-weight:600}.assignment-file-link{color:#1d4ed8;margin-bottom:8px;font-size:11px;font-weight:600;text-decoration:none;display:inline-block}.assignment-file-link:hover{text-decoration:underline}.assignment-meta{color:#7b8799;flex-wrap:wrap;gap:6px 16px;font-size:11px;display:flex}.assignment-meta .text-success{color:#15803d}.assignment-meta .text-primary{color:#1d4ed8;font-weight:600}.assignment-meta .text-danger{color:#b91c1c;font-weight:600}.assignment-meta .no-deadline-tip{color:#0369a1;font-weight:700}.teacher-locked-tip{color:#b45309;font-weight:600}.assignment-actions{text-align:right;justify-self:end}.assignment-actions label{cursor:pointer}.score-action>div{color:#1d4ed8;margin-bottom:7px}.score-action>div strong{font-size:30px}.score-action>div span{color:#64748b;margin-left:3px;font-size:11px}.student-grade-layout{gap:16px;display:grid}.total-score-panel{border-left:4px solid #2563eb;grid-template-columns:1fr auto;align-items:center;column-gap:22px;display:grid}.total-score-panel span{color:#334155;font-size:15px;font-weight:700}.total-score-panel strong{color:#1d4ed8;grid-row:span 2;font-size:42px}.total-score-panel small{color:#7b8799;margin-top:5px}.student-grade-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;display:grid}.grade-category-card{border:1px solid var(--border);background:#fff;border-radius:9px;padding:17px}.grade-category-head{justify-content:space-between;align-items:center;gap:16px;display:flex}.grade-category-head span,.grade-category-head strong{display:block}.grade-category-head span{color:#8792a3;font-size:10px}.grade-category-head strong{color:#263650;margin-top:3px;font-size:15px}.grade-category-head b{color:#1d4ed8;font-size:21px}.grade-category-head b small{color:#7b8799;font-size:9px;font-weight:500}.weight-track{background:#e8eef6;border-radius:3px;height:4px;margin:14px 0;overflow:hidden}.weight-track span{border-radius:inherit;background:#3b82f6;height:100%;display:block}.grade-item-list{gap:6px;display:grid}.grade-item-list>div{border-bottom:1px dashed #e5eaf1;grid-template-columns:1fr auto auto;align-items:center;gap:9px;padding:6px 0;font-size:11px;display:grid}.grade-item-list>div>span{color:#64748b}.grade-item-list>div>strong{color:#1e293b;font-size:13px}.grade-item-list button{color:#2563eb;cursor:pointer;background:0 0;border:0;padding:0;font-size:10px}.grade-item-list em{color:#b45309;font-size:10px;font-style:normal}.grade-weight{color:#8792a3;margin-top:12px;font-size:10px}.notification-panel{padding:0;overflow:hidden}.notification-panel>.panel-heading{padding:20px 22px 14px}.notification-row{border-top:1px solid #edf0f4;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px 22px;display:grid}.notification-row.unread{background:#f8fbff}.notification-dot{background:#cbd5e1;border-radius:50%;width:7px;height:7px}.notification-row.unread .notification-dot{background:#2563eb;box-shadow:0 0 0 4px #dbeafe}.notification-row strong{color:#263650;font-size:13px}.notification-row p{color:#718096;margin-top:4px;font-size:12px}.empty-state{color:#94a3b8;background:#fff;border:1px dashed #ccd6e3;border-radius:9px;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:150px;display:flex}.empty-state strong{color:#64748b;font-size:14px}.empty-state span{font-size:12px}.empty-state.compact{border:0;min-height:80px}.assignment-module-layout{align-items:start;gap:18px;display:grid}.assignment-module-layout.publish-layout{grid-template-columns:minmax(360px,.82fr) minmax(520px,1.18fr)}.assignment-module-layout.grading-layout{grid-template-columns:minmax(270px,.36fr) minmax(620px,1.64fr)}.question-source-switch{background:#eef2f7;border-radius:8px;grid-template-columns:1fr 1fr;gap:6px;margin-top:14px;padding:4px;display:grid}.question-source-switch button{color:#64748b;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:9px 12px;font-size:11px;font-weight:700}.question-source-switch button.active{color:#1d4ed8;background:#fff;box-shadow:0 1px 4px #0f172a1f}.selected-bank-source{color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px;gap:4px;margin-top:14px;padding:14px;display:grid}.selected-bank-source.selected{color:#1e40af;background:#eff6ff;border-style:solid;border-color:#93c5fd}.selected-bank-source strong{font-size:12px}.selected-bank-source span{font-size:10px}.assignment-publish-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.question-bank-column{gap:14px;min-width:0;display:grid}.question-bank-heading,.question-bank-preview-heading{justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px;display:flex}.question-bank-heading-actions{flex:none;align-items:center;gap:7px;display:flex}.question-bank-upload{cursor:pointer}.question-bank-upload.disabled{pointer-events:none;opacity:.55}.question-bank-upload input{display:none}.question-bank-heading>div>span,.question-bank-preview-heading>div>span{color:#2563eb;letter-spacing:.08em;font-size:9px;font-weight:800}.question-bank-heading h2{color:#1e293b;margin-top:3px;font-size:18px}.question-bank-heading p,.question-bank-preview-heading p{color:#7b8799;margin-top:4px;font-size:10px}.question-bank-list{gap:9px;max-height:480px;padding-right:3px;display:grid;overflow-y:auto}.question-bank-card{background:#fff;border:1px solid #dbe3ee;border-radius:8px;padding:13px;transition:border-color .15s,background .15s}.question-bank-card.selected{background:#eff6ff;border-color:#60a5fa}.question-bank-card-title{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.question-bank-card-title strong,.question-bank-card-title span{display:block}.question-bank-card-title strong{color:#263650;font-size:12px}.question-bank-card-title span{color:#8792a3;margin-top:3px;font-size:9px}.question-bank-card-badges{flex-direction:column;flex:none;align-items:flex-end;gap:4px;display:flex}.question-bank-card-badges>b{color:#1d4ed8;white-space:nowrap;background:#dbeafe;border-radius:9px;padding:3px 7px;font-size:8px}.question-bank-card-badges>b.completed{color:#047857;background:#d1fae5}.question-bank-card-badges>b.failed{color:#b91c1c;background:#fee2e2}.question-bank-card-badges>b.processing{color:#92400e;background:#fef3c7}.question-bank-meta{color:#64748b;flex-wrap:wrap;gap:5px 12px;margin-top:10px;font-size:9px;display:flex}.question-bank-error{color:#b91c1c;background:#fef2f2;border-radius:5px;margin-top:8px;padding:7px 9px;font-size:9px;line-height:1.5}.question-bank-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;margin-top:11px;display:flex}.question-bank-actions button:disabled{cursor:not-allowed;opacity:.45}.question-bank-preview{min-width:0}.question-bank-preview-heading h3{color:#1e293b;margin-top:3px;font-size:16px}.bank-question-preview-list{gap:9px;max-height:620px;padding-right:4px;display:grid;overflow-y:auto}.bank-question-preview-list>article{background:#fff;border:1px solid #dbe3ee;border-radius:8px;padding:13px}.bank-question-preview-list>article>header{color:#1d4ed8;justify-content:space-between;gap:10px;font-size:10px;display:flex}.bank-question-preview-list>article>p{color:#263650;white-space:pre-wrap;margin-top:9px;font-size:12px;font-weight:600;line-height:1.7}.bank-question-preview-list>article>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:9px;display:grid}.bank-question-preview-list>article>div span{color:#475569;background:#f8fafc;border-radius:5px;padding:6px 8px;font-size:9px}.bank-question-preview-list>article>div b{color:#1d4ed8;margin-right:5px}.bank-question-preview-list>article>footer{color:#166534;background:#f0fdf4;border-radius:6px;gap:5px;margin-top:10px;padding:9px;font-size:9px;line-height:1.6;display:grid}.grading-submission-panel{min-width:0}.grading-modal-backdrop{z-index:1000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0f172aad;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.grading-modal{background:#f3f6fa;border:1px solid #cbd5e1;border-radius:11px;flex-direction:column;width:min(97vw,1600px);height:min(95vh,980px);display:flex;overflow:hidden;box-shadow:0 28px 70px #0f172a59}.grading-inline-workspace{background:#f3f6fa;border:1px solid #cbd5e1;border-radius:10px;margin-top:18px;overflow:hidden}.grading-inline-panel{background:#f3f6fa;flex-direction:column;min-height:720px;display:flex}.grading-modal-header{background:#fff;border-bottom:1px solid #dbe2ea;justify-content:space-between;align-items:center;gap:24px;min-height:72px;padding:13px 20px 13px 24px;display:flex}.grading-modal-header>div:first-child>span{color:#64748b;letter-spacing:.08em;font-size:10px;font-weight:700}.grading-modal-header h2{color:#1e293b;margin-top:4px;font-size:18px}.grading-modal-header h2 small{color:#718096;margin-left:6px;font-size:11px;font-weight:500}.grading-modal-tools{align-items:center;gap:14px;display:flex}.answer-visibility-toggle{color:#475569;cursor:pointer;align-items:center;gap:8px;display:flex}.answer-visibility-toggle>input{opacity:0;width:1px;height:1px;position:absolute}.answer-visibility-toggle b{font-size:12px;font-weight:600}.toggle-track{background:#cbd5e1;border-radius:10px;width:36px;height:20px;transition:background .18s;position:relative}.toggle-track i{background:#fff;border-radius:50%;width:14px;height:14px;transition:transform .18s;position:absolute;top:3px;left:3px;box-shadow:0 1px 4px #0f172a47}.answer-visibility-toggle input:checked+.toggle-track{background:#2563eb}.answer-visibility-toggle input:checked+.toggle-track i{transform:translate(16px)}.answer-visibility-toggle input:focus-visible+.toggle-track{outline:3px solid #3b82f638}.no-answer-tip{color:#b45309;font-size:11px}.modal-close-button{color:#64748b;cursor:pointer;background:#fff;border:1px solid #d8e0ea;border-radius:6px;width:34px;height:34px;font-size:22px;line-height:1}.modal-close-button:hover{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.grading-modal-scroll{flex:1;min-height:0;padding:16px;overflow-y:auto}.document-preview-grid{gap:14px;height:clamp(410px,56vh,590px);display:grid}.document-preview-grid.with-answer{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.document-preview-grid.student-only{grid-template-columns:minmax(0,1fr)}.document-preview-pane{background:#fff;border:1px solid #d6dee8;border-radius:8px;flex-direction:column;min-width:0;display:flex;overflow:hidden;box-shadow:0 1px 4px #0f172a0d}.document-preview-pane>header{background:#f8fafc;border-bottom:1px solid #e3e8ef;justify-content:space-between;align-items:center;gap:16px;min-height:48px;padding:8px 13px;display:flex}.document-preview-pane>header div{min-width:0}.document-preview-pane>header span,.document-preview-pane>header strong{display:block}.document-preview-pane>header span{color:#1d4ed8;letter-spacing:.06em;font-size:10px;font-weight:800}.document-preview-pane>header strong{color:#334155;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:11px;overflow:hidden}.document-preview-pane>header a{color:#2563eb;flex:none;font-size:10px;font-weight:600;text-decoration:none}.document-preview-pane>header a:hover{text-decoration:underline}.document-preview-pane iframe{background:#eef2f7;border:0;flex:1;width:100%;min-height:0}.answer-pane>header span{color:#15803d}.answer-pane>header{background:#f7fcf8}.grading-evaluation-grid{align-items:start;gap:14px;margin-top:14px;display:grid}.grading-evaluation-grid.with-ai{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.grading-evaluation-grid.single{grid-template-columns:minmax(0,1fr)}.grading-form-panel,.ai-review-panel{background:#fff;border:1px solid #dbe2ea;border-radius:8px;padding:18px}.evaluation-heading{justify-content:space-between;align-items:center;gap:14px;margin-bottom:15px;display:flex}.evaluation-heading>div>span{color:#7b8799;letter-spacing:.08em;font-size:9px;font-weight:700}.evaluation-heading h3{color:#1e293b;margin-top:3px;font-size:16px}.grading-form-row{grid-template-columns:minmax(150px,.55fr) minmax(220px,1.45fr);gap:12px;margin-bottom:12px;display:grid}.grading-form-panel>.form-group{margin-bottom:12px}.grading-form-panel .form-group label{color:#475569;font-size:11px}.grading-form-panel textarea{resize:vertical}.appeal-review-tip{color:#9a3412;background:#fff7ed;border:1px solid #fdba74;border-radius:6px;gap:4px;margin:12px 0;padding:11px 12px;font-size:11px;display:grid}.grading-action-row{grid-template-columns:1fr 140px;gap:10px;margin-top:14px;display:grid}.grading-action-grid{grid-template-columns:1fr 1fr;gap:8px;margin-top:14px;display:grid}.grading-action-grid .btn:last-child{grid-column:1/-1}.ai-score-summary{background:#eff6ff;border:1px solid #bfdbfe;border-radius:7px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:15px;margin-bottom:14px;padding:12px 14px;display:grid}.ai-score-summary strong{color:#1d4ed8;font-size:30px}.ai-score-summary strong small{font-size:10px}.ai-score-summary p{color:#29456f;font-size:11px;line-height:1.6}.ai-issue-list{max-height:380px;padding-right:4px;overflow-y:auto}.ai-issue-title{color:#64748b;margin-bottom:8px;font-size:11px;font-weight:700}.ai-issue-card{background:#fafbfc;border:1px solid #e2e8f0;border-radius:6px;margin-bottom:8px;padding:11px 12px;font-size:11px}.ai-issue-card>div{justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px;display:flex}.ai-issue-card>div>strong{color:#1e3a8a}.ai-issue-card p{color:#56657a;margin-top:4px;line-height:1.55}.ai-issue-card .issue-suggestion{color:#15803d}.severity{border-radius:9px;padding:2px 6px;font-size:9px;font-weight:700}.severity-high{color:#b91c1c;background:#fee2e2}.severity-medium{color:#b45309;background:#fef3c7}.severity-low{color:#15803d;background:#dcfce7}@media (width<=1180px){.workspace-sidebar{flex-basis:220px;width:220px}.workspace-content{padding:22px}.assignment-module-layout.publish-layout,.assignment-module-layout.grading-layout{grid-template-columns:1fr}.dashboard-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.student-assignment-card{grid-template-columns:minmax(0,1fr) 120px}.grading-evaluation-grid.with-ai{grid-template-columns:1fr}}@media (width<=760px){.container{padding:1rem}.login-shell{align-items:flex-start;padding-top:2rem}.login-brand{padding:1.6rem 1.25rem 1.45rem}.app-header{flex-direction:column;align-items:flex-start;padding:1.1rem}.app-header .user-info{flex-wrap:wrap;width:100%}.tabs{overflow-x:auto}.workspace-shell{display:block}.workspace-sidebar{width:100%;height:auto;padding:14px;position:static}.sidebar-brand{padding-bottom:12px}.sidebar-role{display:none}.sidebar-nav{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px}.sidebar-nav-item{justify-content:center;padding:0 8px;font-size:12px}.sidebar-nav-item.active:before,.sidebar-footer{display:none}.workspace-topbar{min-height:90px;padding:14px 16px}.page-heading h1{font-size:20px}.page-heading p,.term-chip{display:none}.workspace-content{padding:16px}.student-welcome{min-height:150px;padding:24px}.student-welcome h2{font-size:20px}.welcome-score{min-width:105px;padding:14px}.dashboard-stat-grid{grid-template-columns:1fr 1fr}.student-assignment-card{grid-template-columns:1fr;gap:14px}.assignment-actions{text-align:left;justify-self:start}.assignment-teacher-choice{grid-template-columns:1fr}.notification-row{grid-template-columns:8px minmax(0,1fr)}.notification-row .btn{grid-column:2;justify-self:start}.bank-question-preview-list>article>div{grid-template-columns:1fr}.grading-inline-panel{min-height:0}.grading-modal-backdrop{padding:0}.grading-modal{border:0;border-radius:0;width:100vw;height:100vh}.grading-modal-header{align-items:flex-start;padding:12px 14px}.grading-modal-header h2 small{margin:3px 0 0;display:block}.answer-visibility-toggle b{display:none}.grading-modal-scroll{padding:10px}.document-preview-grid{height:auto}.document-preview-grid.with-answer{grid-template-columns:1fr}.document-preview-pane{min-height:420px}.grading-form-row,.grading-action-grid,.grading-action-row{grid-template-columns:1fr}.grading-action-grid .btn:last-child{grid-column:auto}}.structured-source-upload{background:#eff6ff;border:1px solid #bfdbfe;border-radius:9px;gap:10px;margin-top:14px;padding:16px;display:grid}.structured-source-upload strong,.structured-source-upload span{display:block}.structured-source-upload strong{color:#1e3a8a;font-size:14px}.structured-source-upload span{color:#48658d;margin-top:4px;font-size:11px;line-height:1.6}.structured-source-upload small{color:#64748b;font-size:10px}.parse-error-text{color:#b91c1c;margin-top:5px;font-size:10px;line-height:1.45}.structured-modal-backdrop{z-index:1100;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0f172ab3;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.structured-modal{background:#f4f7fb;border:1px solid #cbd5e1;border-radius:12px;flex-direction:column;width:min(96vw,1160px);height:min(95vh,980px);display:flex;overflow:hidden;box-shadow:0 30px 80px #0f172a61}.structured-review-modal{width:min(97vw,1280px)}.structured-review-workspace{grid-column:1/-1;width:100%;height:auto;min-height:760px;max-height:none;box-shadow:0 8px 30px #0f172a1f}.structured-review-workspace .structured-modal-body{overflow:visible}.structured-modal-header{background:#fff;border-bottom:1px solid #dbe3ee;justify-content:space-between;align-items:center;gap:18px;min-height:74px;padding:14px 20px 14px 24px;display:flex}.structured-modal-header>div:first-child>span{color:#2563eb;letter-spacing:.08em;font-size:10px;font-weight:800}.structured-modal-header h2{color:#1e293b;margin-top:4px;font-size:19px}.structured-paper-meta{align-items:center;gap:8px;display:flex}.structured-paper-meta>span{color:#475569;background:#f1f5f9;border-radius:12px;padding:5px 9px;font-size:10px}.structured-paper-meta>.no-deadline-tip{color:#0369a1;background:#e0f2fe;font-weight:800}.structured-paper-meta>button{color:#64748b;cursor:pointer;background:#fff;border:1px solid #d8e0ea;border-radius:7px;width:34px;height:34px;font-size:22px}.structured-modal-body{flex:1;min-height:0;padding:20px;overflow-y:auto}.structured-modal-footer{background:#fff;border-top:1px solid #dbe3ee;justify-content:flex-end;gap:10px;padding:13px 20px;display:flex}.structured-instructions,.structured-status-banner{border-radius:8px;margin-bottom:14px;padding:12px 14px;font-size:12px;line-height:1.65}.structured-instructions{color:#334155;background:#fff;border:1px solid #dbe3ee}.structured-status-banner{color:#854d0e;background:#fffbeb;border:1px solid #fde68a}.structured-question-list{gap:14px;display:grid}.structured-question-card{background:#fff;border:1px solid #dbe3ee;border-radius:10px;padding:18px;box-shadow:0 1px 4px #0f172a0a}.structured-question-card.result-correct{border-left:5px solid #22c55e}.structured-question-card.result-partial{border-left:5px solid #f59e0b}.structured-question-card.result-incorrect{border-left:5px solid #ef4444}.structured-question-card>header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px;display:flex}.structured-question-card>header>div{align-items:center;gap:8px;display:flex}.structured-question-card>header span{color:#2563eb;font-size:11px;font-weight:800}.structured-question-card>header b{color:#475569;background:#eef2f7;border-radius:10px;padding:3px 7px;font-size:9px}.structured-question-card>header>strong{color:#1e3a8a;font-size:13px}.structured-question-card>header em{font-size:9px;font-style:normal}.structured-question-card>header .grading-source-badge{color:#15803d}.structured-question-card>header .answer-result-badge{border-radius:10px;padding:3px 8px;font-weight:800}.structured-question-card>header .answer-result-badge.result-correct{color:#166534;background:#dcfce7}.structured-question-card>header .answer-result-badge.result-partial{color:#92400e;background:#fef3c7}.structured-question-card>header .answer-result-badge.result-incorrect{color:#991b1b;background:#fee2e2}.structured-question-card>header .answer-result-badge.result-pending{color:#475569;background:#e2e8f0}.structured-question-stem{color:#1f2937;white-space:pre-wrap;margin-bottom:14px;font-size:14px;font-weight:600;line-height:1.8}.structured-options{gap:8px;display:grid}.structured-options label{color:#475569;cursor:pointer;background:#fafcff;border:1px solid #dbe3ee;border-radius:7px;grid-template-columns:auto 28px minmax(0,1fr);align-items:center;gap:8px;padding:10px 12px;display:grid}.structured-options label.selected{color:#1e40af;background:#eff6ff;border-color:#93c5fd}.structured-options label b{color:#334155;background:#e2e8f0;border-radius:50%;place-items:center;width:25px;height:25px;font-size:11px;display:grid}.structured-options label.selected b{color:#fff;background:#2563eb}.structured-options label span{font-size:12px;line-height:1.6}.true-false-options{grid-template-columns:1fr 1fr}.true-false-options label{grid-template-columns:auto minmax(0,1fr)}.structured-short-input,.structured-answer-textarea{color:#1f2937;background:#fff;border:1px solid #cbd5e1;border-radius:7px;width:100%}.structured-short-input{padding:11px 12px}.structured-answer-textarea{resize:vertical;padding:12px;line-height:1.7}.structured-short-input:disabled,.structured-answer-textarea:disabled{color:#334155;background:#f8fafc}.structured-answer-comparison{grid-template-columns:1fr 1fr;gap:9px;margin-top:14px;display:grid}.structured-answer-comparison>div{background:#f8fafc;border:1px solid #dbe3ee;border-radius:7px;padding:11px 12px}.structured-answer-comparison>div:nth-child(2){background:#f0fdf4;border-color:#bbf7d0}.structured-answer-comparison>.student-answer-result.result-correct{background:#f0fdf4;border-color:#86efac;box-shadow:inset 4px 0 #22c55e}.structured-answer-comparison>.student-answer-result.result-partial{background:#fffbeb;border-color:#fcd34d;box-shadow:inset 4px 0 #f59e0b}.structured-answer-comparison>.student-answer-result.result-incorrect{background:#fef2f2;border-color:#fca5a5;box-shadow:inset 4px 0 #ef4444}.structured-answer-comparison>.student-answer-result.result-correct span{color:#15803d}.structured-answer-comparison>.student-answer-result.result-partial span{color:#b45309}.structured-answer-comparison>.student-answer-result.result-incorrect span{color:#b91c1c}.structured-answer-comparison .full{grid-column:1/-1}.structured-answer-comparison .teacher-feedback{background:#eff6ff;border-color:#bfdbfe}.structured-answer-comparison span{color:#64748b;letter-spacing:.05em;font-size:9px;font-weight:800}.structured-answer-comparison p{color:#334155;white-space:pre-wrap;margin-top:5px;font-size:11px;line-height:1.65}.structured-result-summary{color:#fff;background:linear-gradient(120deg,#1e3a8a,#2563eb);border-radius:10px;grid-template-columns:150px 150px minmax(0,1fr);align-items:center;gap:14px;margin-bottom:16px;padding:16px;display:grid}.structured-result-summary div span,.structured-result-summary div strong,.structured-result-summary div small{display:block}.structured-result-summary div span{color:#bfdbfe;font-size:9px}.structured-result-summary div strong{margin-top:3px;font-size:27px}.structured-result-summary div small{color:#dbeafe;font-size:9px}.structured-result-summary p{color:#e0e7ff;font-size:12px;line-height:1.65}.structured-result-summary p b,.structured-result-summary p span,.structured-result-summary p small{display:block}.structured-result-summary p b{color:#fff;font-size:10px}.structured-result-summary p span{font-weight:700}.structured-result-summary p small{color:#bfdbfe;margin-top:3px}.learning-report-card{background:#fff;border:1px solid #bfdbfe;border-radius:10px;margin-bottom:16px;padding:18px}.learning-report-card>p{color:#405570;font-size:12px;line-height:1.7}.learning-report-grid{grid-template-columns:repeat(3,1fr);gap:10px;margin-top:13px;display:grid}.learning-report-grid>div{background:#f8fafc;border-radius:7px;padding:12px}.learning-report-grid strong{color:#334155;font-size:11px}.learning-report-grid ul{color:#64748b;margin:7px 0 0 17px;font-size:10px;line-height:1.6}.learning-report-grid>.report-strengths{background:#f0fdf4;border:1px solid #bbf7d0}.learning-report-grid>.report-strengths strong,.learning-report-grid>.report-strengths li{color:#166534}.learning-report-grid>.report-weaknesses{background:#fef2f2;border:1px solid #fecaca}.learning-report-grid>.report-weaknesses strong,.learning-report-grid>.report-weaknesses li{color:#991b1b}.learning-report-grid>.report-recommendations{background:#eff6ff;border:1px solid #bfdbfe}.learning-report-grid>.report-recommendations strong,.learning-report-grid>.report-recommendations li{color:#1e40af}.review-question-card>header>label{color:#475569;font-size:11px;font-weight:600}.review-question-card>header input{text-align:center;width:72px;margin:0 4px;padding:6px}.review-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:12px;display:grid}.review-options span{color:#475569;background:#f8fafc;border-radius:6px;padding:8px 10px;font-size:10px}.review-options b{color:#1d4ed8;margin-right:7px}.review-feedback-field,.structured-final-comment{margin-top:12px}.review-feedback-field label,.structured-final-comment label{color:#475569;margin-bottom:5px;font-size:10px;font-weight:700;display:block}.review-feedback-field textarea,.structured-final-comment textarea{resize:vertical;border:1px solid #cbd5e1;border-radius:6px;width:100%;padding:9px 10px;line-height:1.6}.structured-final-comment{background:#fff;border:1px solid #dbe3ee;border-radius:9px;padding:16px}@media (width<=760px){.structured-modal-backdrop{padding:0}.structured-modal{border:0;border-radius:0;width:100vw;height:100vh}.structured-review-workspace{border:1px solid #cbd5e1;border-radius:8px;width:100%;height:auto;min-height:0}.structured-modal-header{align-items:flex-start;padding:12px 14px}.structured-modal-header h2{font-size:16px}.structured-paper-meta>span{display:none}.structured-modal-body{padding:12px}.structured-question-card{padding:14px}.structured-answer-comparison,.learning-report-grid,.structured-result-summary,.review-options{grid-template-columns:1fr}.structured-answer-comparison .full{grid-column:auto}.structured-result-summary{gap:9px}.structured-modal-footer{flex-wrap:wrap;padding:10px 12px}}
