@font-face { font-family:Manrope; src:url("fonts/Manrope.ttf") format("truetype"); font-style:normal; font-weight:200 800; font-display:swap; }
:root { --font-sans:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; --bg:#f7f8fa; --surface:#fff; --surface-soft:#f3f5f7; --ink:#17202a; --muted:#667085; --line:#e2e7ec; --line-strong:#d0d8e0; --primary:#176b87; --primary-dark:#10576f; --primary-soft:#e8f5f8; --success:#20754c; --success-soft:#eaf7ef; --warning:#a05a16; --warning-soft:#fff5e8; --danger:#b42318; --danger-soft:#fef3f2; --shadow:0 8px 24px rgba(16,24,40,.05); }
* { box-sizing:border-box; }
html { background:var(--bg); }
body { min-height:100vh; margin:0; color:var(--ink); background:var(--bg); font:14px/1.55 var(--font-sans); }
a { color:var(--primary); text-decoration:none; }
a:hover { color:var(--primary-dark); }
.topbar { min-height:68px; display:flex; align-items:center; justify-content:space-between; padding:0 max(24px,calc((100vw - 1240px)/2)); background:rgba(255,255,255,.96); border-bottom:1px solid var(--line); }
.brand { display:flex; gap:10px; align-items:center; color:var(--ink); font-size:17px; font-weight:700; }
.brand-mark { display:grid; place-items:center; flex:none; width:38px; height:38px; border-radius:10px; background:#193875; }
.brand-mark img { display:block; }
.brand-name { white-space:nowrap; letter-spacing:-.035em; }
.brand-name span { color:#537094; }

nav { display:flex; align-items:center; gap:18px; font-size:13px; font-weight:600; }
.logout-form { margin:0; }.logout-form button { padding:0; color:var(--primary); background:none; border:0; cursor:pointer; font:600 13px var(--font-sans); }.logout-form button:hover { color:var(--primary-dark); }
.user-chip { padding:6px 10px; color:var(--primary-dark); background:var(--primary-soft); border-radius:999px; font-size:12px; }
.container { max-width:1240px; min-height:calc(100vh - 124px); margin:auto; padding:40px 24px 72px; }
footer { padding:18px; color:var(--muted); border-top:1px solid var(--line); text-align:center; font-size:12px; }
.footer-contact { color:inherit; white-space:nowrap; text-underline-offset:3px; }
.footer-contact:hover { text-decoration:underline; }
.auth-description { max-width:410px; margin:18px 0 0; color:#c6d7ed; font-size:13px; line-height:1.7; }
h1,h2,p { margin-top:0; } h1 { margin-bottom:8px; font-size:38px; line-height:1.12; letter-spacing:-1.5px; } h2 { margin-bottom:8px; font-size:17px; letter-spacing:-.2px; } em { color:var(--primary); font-style:normal; }
.eyebrow { display:block; margin-bottom:10px; color:var(--primary); font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; }
.muted { color:var(--muted); }.small { font-size:12px; }
.button { display:inline-flex; align-items:center; justify-content:center; padding:11px 16px; color:white; background:var(--primary); border:1px solid var(--primary); border-radius:7px; cursor:pointer; font:600 13px var(--font-sans); transition:.15s; }
.button:hover { color:white; background:var(--primary-dark); border-color:var(--primary-dark); }
.button-small { padding:8px 12px; font-size:12px; }.ghost { color:var(--primary); background:white; border-color:#b9d8e1; }.ghost:hover { color:var(--primary-dark); background:var(--primary-soft); border-color:#91c5d3; }
.danger { color:var(--danger); background:white; border-color:#f0b7b2; }.danger:hover { color:white; background:var(--danger); border-color:var(--danger); }.danger-link { padding:5px 0; color:var(--danger); background:transparent; border:0; }.danger-link:hover { color:#8f1b13; background:transparent; border:0; text-decoration:underline; }
.button:disabled { color:#98a2b3; cursor:not-allowed; opacity:.7; }.button:disabled:hover { color:#98a2b3; background:transparent; text-decoration:none; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); }
.auth-layout { display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:72px; min-height:600px; }
.auth-intro h1 { max-width:650px; font-size:58px; }.auth-intro p { max-width:600px; color:var(--muted); font-size:17px; line-height:1.7; }
.auth-card { padding:32px; }.auth-card h2 { font-size:24px; letter-spacing:-.7px; }
label { display:block; margin:16px 0 0; color:#475467; font-size:12px; font-weight:600; }
input,select,textarea { display:block; width:100%; margin-top:6px; padding:11px 12px; color:var(--ink); background:white; border:1px solid var(--line-strong); border-radius:7px; font:500 13px var(--font-sans); transition:.15s; }
input:focus,select:focus,textarea:focus { outline:0; border-color:var(--primary); box-shadow:0 0 0 3px rgba(23,107,135,.12); } textarea { resize:vertical; }
.auth-card .button { width:100%; margin-top:22px; }.form-footer { margin:18px 0 0; color:var(--muted); font-size:12px; text-align:center; }
.alert { margin-bottom:20px; padding:12px 14px; border:1px solid; border-radius:7px; font-size:13px; font-weight:600; }.alert-success { color:var(--success); background:var(--success-soft); border-color:#b9e4ca; }.alert-error { color:var(--danger); background:var(--danger-soft); border-color:#f4c7c3; }
.page-heading { display:flex; align-items:end; justify-content:space-between; margin-bottom:28px; }.page-heading p { margin:0; color:var(--muted); }
.progress-card { min-width:200px; padding:16px 18px; background:white; border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); }.progress-card strong { display:block; color:var(--primary); font-size:30px; line-height:1.15; }.progress-card span { color:var(--muted); font-size:12px; font-weight:600; }
.lab-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }.lab-card { padding:20px; }.lab-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.lab-section { margin-top:34px; }.completed-section { margin-top:44px; }.section-title-row { display:flex; align-items:end; justify-content:space-between; margin-bottom:14px; }.section-title-row .eyebrow { margin-bottom:5px; }.section-title-row h2 { margin:0; font-size:21px; }.section-count { display:grid; place-items:center; min-width:31px; height:31px; padding:0 8px; border-radius:999px; font-size:13px; font-weight:700; }.pending-count { color:var(--warning); background:var(--warning-soft); }.completed-count { color:var(--success); background:var(--success-soft); }.empty-state { padding:20px; color:var(--muted); font-size:13px; }
.subject-label { color:var(--muted); font-size:12px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; }.status { display:inline-flex; align-items:center; gap:5px; padding:5px 9px; border:1px solid; border-radius:999px; font-size:12px; font-weight:700; }.status span { display:grid; place-items:center; width:15px; height:15px; color:white; border-radius:50%; font-size:12px; line-height:1; }.done { color:var(--success); background:var(--success-soft); border-color:#b9e4ca; }.done span { background:var(--success); }.waiting { color:var(--warning); background:var(--warning-soft); border-color:#f4d6ac; }.waiting span { background:var(--warning); }
.text-link { display:inline-block; font-size:12px; font-weight:600; }
.submission-state { display:flex; gap:10px; align-items:flex-start; margin-top:16px; padding:11px; border:1px solid; border-radius:7px; }.submission-state .state-icon { display:grid; flex:0 0 auto; place-items:center; width:22px; height:22px; color:white; border-radius:50%; font-size:14px; font-weight:700; }.submission-state strong { display:block; margin-bottom:2px; font-size:12px; }.submission-state small { display:block; color:var(--muted); font-size:12px; line-height:1.5; }.submission-complete { color:var(--success); background:var(--success-soft); border-color:#b9e4ca; }.submission-complete .state-icon { background:var(--success); }.submission-missing { color:var(--warning); background:var(--warning-soft); border-color:#f4d6ac; }.submission-missing .state-icon { background:var(--warning); }
.upload-form { margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }.upload-form input[type=file],.inline-upload input[type=file] { padding:0; color:var(--muted); background:transparent; border:0; font-size:12px; }.upload-form .button { margin-top:12px; }
.upload-hint { display:block; margin-top:6px; color:var(--muted); font-size:12px; }
.review-result,.ai-result { margin-top:10px; padding:11px; border:1px solid var(--line); border-radius:7px; }.review-result strong,.ai-result strong { font-size:12px; }.review-result p { margin:5px 0 0; color:#475467; font-size:12px; }.review-passed { color:var(--success); background:var(--success-soft); border-color:#b9e4ca; }.review-correction { color:var(--warning); background:var(--warning-soft); border-color:#f4d6ac; }.ai-result { color:#475467; background:var(--surface-soft); }.ai-result small { display:block; margin-top:7px; color:var(--muted); font-size:12px; line-height:1.45; }.ai-meter { height:5px; margin-top:7px; overflow:hidden; background:#dfe5ea; border-radius:999px; }.ai-meter span { display:block; height:100%; background:var(--primary); border-radius:999px; }
.admin-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }.compact-form { padding:20px; }.compact-form h2 { padding-bottom:12px; border-bottom:1px solid var(--line); }.compact-form .button { margin-top:16px; }
.admin-nav { display:flex; gap:5px; margin:-12px 0 32px; padding:5px; background:white; border:1px solid var(--line); border-radius:9px; box-shadow:var(--shadow); }.admin-nav a { padding:9px 13px; color:#475467; border-radius:6px; font-size:12px; font-weight:600; }.admin-nav a:hover { color:var(--primary); background:var(--primary-soft); }.admin-nav a.active { color:white; background:var(--primary); }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }.stat-card { padding:18px; }.stat-card strong { display:block; color:var(--primary); font-size:30px; line-height:1.1; }.stat-card span { color:var(--muted); font-size:12px; font-weight:600; }
.quick-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }.quick-card { display:block; padding:20px; transition:.15s; }.quick-card:hover { border-color:#b9d8e1; box-shadow:0 12px 26px rgba(16,24,40,.08); }.quick-card strong { display:block; margin-bottom:5px; color:var(--primary); font-size:15px; }.quick-card span { color:var(--muted); font-size:12px; }
.student-search { display:grid; grid-template-columns:minmax(260px,1fr) auto auto; gap:12px; align-items:end; padding:16px; }.student-search label { margin:0; }.student-search .button { height:38px; }.student-list { display:grid; gap:12px; margin-top:16px; }.student-card { padding:18px; }.student-card header { margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid var(--line); }.student-card header strong,.student-card header span { display:block; }.student-card header span { margin-top:2px; color:var(--muted); font-size:12px; }.student-edit { display:grid; grid-template-columns:1.4fr 1fr 1fr auto; gap:12px; align-items:end; }.student-edit label { margin:0; }.student-edit .button { height:38px; }
.filter-bar { display:grid; grid-template-columns:160px 150px minmax(200px,1fr) minmax(190px,1fr) auto auto; gap:12px; align-items:end; padding:16px; }.filter-bar label { margin:0; }.filter-bar .button { height:38px; }
.section-heading { margin:34px 0 12px; }.section-heading h2 { margin:0; font-size:20px; }
.assignment-layout { display:grid; grid-template-columns:390px 1fr; gap:16px; }.assignment-list { padding:6px 18px; }.assignment-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; min-height:66px; padding:8px 0; border-bottom:1px solid var(--line); }.assignment-item:last-child { border:0; }.assignment-item strong,.assignment-item span { display:block; }.assignment-item span { color:var(--muted); font-size:12px; }.assignment-item .button { white-space:nowrap; }
.group-layout { display:grid; grid-template-columns:390px 1fr; gap:16px; }.group-list { padding:6px 18px; }.group-item { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:52px; border-bottom:1px solid var(--line); }.group-item:last-child { border:0; }.group-item strong { display:block; font-size:13px; }.group-item span { display:block; color:var(--muted); font-size:12px; }.group-item code { padding:2px 5px; color:var(--primary-dark); background:var(--primary-soft); border-radius:4px; font:700 11px monospace; letter-spacing:.5px; }
.item-actions { display:flex; align-items:center; gap:10px; }.current-badge { display:inline-block!important; margin-left:5px; padding:2px 6px; color:var(--success)!important; background:var(--success-soft); border-radius:999px; font-size:12px!important; font-weight:700; text-transform:uppercase; vertical-align:1px; }
.subject-switcher { display:flex; gap:7px; margin-bottom:12px; padding-bottom:2px; overflow-x:auto; }.subject-switcher a { min-width:170px; padding:11px 13px; color:#475467; background:white; border:1px solid var(--line); border-radius:8px; font-size:12px; font-weight:600; white-space:nowrap; }.subject-switcher a:hover { color:var(--primary); border-color:#b9d8e1; }.subject-switcher a.active { color:var(--primary-dark); background:var(--primary-soft); border-color:#91c5d3; }
.subject-stack { display:grid; gap:18px; }.subject-panel { overflow:hidden; }.subject-header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:20px; border-bottom:1px solid var(--line); }.subject-header h2 { margin:4px 0; font-size:20px; }.subject-header p { max-width:650px; margin:0; color:var(--muted); font-size:12px; }.subject-actions { display:grid; justify-items:end; gap:10px; }.subject-meta { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }.subject-meta span { padding:5px 8px; color:#475467; background:var(--surface-soft); border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap; }.subject-content { display:grid; grid-template-columns:1fr; }.subject-column { padding:18px 20px; }.submissions-column { border-left:1px solid var(--line); background:#fcfdfd; }.column-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }.column-heading h3 { margin:0; font-size:14px; }.column-heading span { display:grid; place-items:center; min-width:24px; height:24px; padding:0 6px; color:var(--primary); background:var(--primary-soft); border-radius:999px; font-size:12px; font-weight:700; }.inline-empty { margin:14px 0 2px; color:var(--muted); font-size:12px; }.lab-row,.report-row { padding:12px 0; border-top:1px solid var(--line); }.lab-row-main { margin-bottom:7px; }.lab-row strong,.report-row strong { display:block; font-size:12px; }.lab-row small,.report-row small { display:block; margin-top:2px; color:var(--muted); font-size:12px; }.report-row { display:grid; grid-template-columns:1fr 1fr auto; gap:10px; align-items:center; }.delete-lab-form { margin-top:5px; }
.table-wrap { overflow:hidden; }table { width:100%; border-collapse:collapse; }th,td { padding:13px 15px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle; }th { color:#667085; background:var(--surface-soft); font-size:12px; font-weight:700; letter-spacing:.7px; text-transform:uppercase; }tr:last-child td { border:0; }
.review-row td { padding:10px 15px 16px; background:#fafbfc; }.review-form { display:grid; grid-template-columns:150px 150px minmax(240px,1fr) auto; gap:10px; align-items:end; }.review-form label { margin:0; }.review-form .button { height:38px; }.analysis-note { grid-column:1/-1; color:var(--muted); font-size:12px; }.review-badge { display:inline-block; padding:4px 7px; border:1px solid; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; }.review-pending { color:#475467; background:var(--surface-soft); border-color:var(--line); }.ai-disclaimer { font-size:12px; }
.processing-overlay { position:fixed; z-index:100; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--ink); background:rgba(247,248,250,.92); backdrop-filter:blur(3px); }.processing-overlay[hidden] { display:none; }.processing-overlay small { color:var(--muted); }.spinner { width:38px; height:38px; margin-bottom:5px; border:3px solid #cbdce2; border-top-color:var(--primary); border-radius:50%; animation:spin .75s linear infinite; }@keyframes spin{to{transform:rotate(360deg)}}
.inline-upload { display:flex; align-items:center; gap:8px; margin-top:8px; }.count { display:inline-grid; place-items:center; width:27px; height:27px; color:var(--primary); background:var(--primary-soft); border-radius:6px; font-size:12px; font-weight:700; }.empty { padding:25px; color:var(--muted); text-align:center; }
.lab-materials ul,.student-materials ul { list-style:none; margin:8px 0 0; padding:0; }
.lab-materials li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:7px 0; border-bottom:1px solid var(--line); }
.lab-materials li:last-child { border-bottom:0; }
.lab-materials .text-link,.student-materials .text-link { overflow-wrap:anywhere; }
.lab-materials form { flex:none; margin:0; }
.lab-materials .danger-link { min-height:28px; font-size:12px; }
.student-materials { margin-top:12px; padding:12px 14px; border:1px solid var(--line); border-radius:9px; background:#f8fafb; }
.student-materials strong { color:#344054; font-size:12px; }
.student-materials li + li { margin-top:8px; }
.inline-upload > div { flex:1; min-width:0; }
.inline-upload > .button { flex:none; }
@media(max-width:600px) { .inline-upload { align-items:stretch; flex-direction:column; } .inline-upload > .button { align-self:flex-start; } }
@media(max-width:800px){.auth-layout{display:block;min-height:auto}.auth-intro{margin:28px 0 34px}.auth-intro h1{font-size:46px}.lab-grid,.admin-grid,.assignment-layout,.group-layout,.subject-content,.stats-grid,.quick-grid,.filter-bar,.student-search,.student-edit,.review-form{grid-template-columns:1fr}.page-heading{display:block}.progress-card{margin-top:18px}.topbar{padding:12px 18px}.user-chip{display:none}.container{padding:30px 18px}.admin-nav{overflow-x:auto;white-space:nowrap}.table-wrap{overflow-x:auto}table{min-width:1100px}.subject-header{display:block}.subject-actions{justify-items:start;margin-top:12px}.subject-meta{justify-content:flex-start}.submissions-column{border-top:1px solid var(--line);border-left:0}.report-row{grid-template-columns:1fr auto}.report-row>div:nth-child(2){grid-column:1/2}.analysis-note{grid-column:auto}}

/* Shared typography and form controls. */
body { font-size:15px; line-height:1.6; -webkit-font-smoothing:antialiased; }
h1 { font-size:clamp(28px,3vw,38px); line-height:1.2; letter-spacing:-.035em; font-weight:650; }
h2,h3 { line-height:1.35; font-weight:650; }
button,input,select,textarea { font-family:var(--font-sans); }
label { margin-top:20px; font-size:13px; line-height:1.45; font-weight:550; color:#344054; }
input,select,textarea { min-height:46px; margin-top:8px; padding:11px 14px; border:1px solid #d5dde4; border-radius:10px; font-size:15px; font-weight:400; line-height:1.45; box-shadow:0 1px 2px rgb(16 24 40 / 3%); transition:border-color .15s,box-shadow .15s,background-color .15s; }
input::placeholder,textarea::placeholder { color:#7c8795; opacity:1; }
input:hover,select:hover,textarea:hover { border-color:#a9b7c4; }
input:focus,select:focus,textarea:focus { border-color:var(--primary); box-shadow:0 0 0 4px rgb(23 107 135 / 12%); }
input:disabled,select:disabled,textarea:disabled { background:#f1f4f6; color:#697586; cursor:not-allowed; }
select { appearance:none; -webkit-appearance:none; padding-right:42px; cursor:pointer; background-color:#fff; background-image:linear-gradient(45deg,transparent 50%,#657588 50%),linear-gradient(135deg,#657588 50%,transparent 50%); background-position:calc(100% - 21px) 50%,calc(100% - 16px) 50%; background-size:5px 5px; background-repeat:no-repeat; text-overflow:ellipsis; }
select option { color:var(--ink); background:#fff; font:inherit; }
select option:disabled { color:#7c8795; }
.button { min-height:44px; padding:11px 18px; border-radius:10px; font-size:14px; font-weight:600; line-height:1.4; }
.button-small { min-height:36px; padding:8px 12px; font-size:13px; }
.button:focus-visible,a:focus-visible,button:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.danger-link { min-height:36px; padding:6px 0; }
.filter-bar .button,.student-search .button,.student-edit .button,.review-form .button { height:46px; }
input[type=file] { min-height:36px; font-family:var(--font-sans); }
input[type=file]::file-selector-button { margin-right:12px; padding:8px 12px; border:1px solid var(--line-strong); border-radius:8px; background:#fff; color:var(--ink); font:inherit; cursor:pointer; }
.alert ul { margin:0; padding-left:20px; }

/* Authentication screen. */
.auth-page { --font-sans:Manrope,ui-sans-serif,system-ui,sans-serif; --primary:#18375f; --primary-dark:#102a4d; --primary-soft:#edf3f8; position:relative; font-family:var(--font-sans); display:flex; flex-direction:column; min-height:100vh; min-height:100svh; color:#17283e; background:#f9fafc; }
.language-switcher { display:flex; gap:2px; padding:3px; border:1px solid #d8e1f0; border-radius:999px; background:#fff; }
.language-switcher a { min-width:32px; padding:4px 8px; border-radius:999px; color:#64748b; font-size:11px; font-weight:700; letter-spacing:.04em; text-align:center; }
.language-switcher a.active { color:#fff; background:#315fc0; }
.auth-language-switcher { position:absolute; z-index:20; top:42px; right:clamp(24px,4vw,64px); gap:18px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.auth-language-switcher a { min-width:0; padding:3px 1px 7px; border-bottom:2px solid transparent; border-radius:0; color:#77859a; font-size:12px; font-weight:650; letter-spacing:.08em; }
.auth-language-switcher a:hover { color:#18375f; }
.auth-language-switcher a.active { color:#18375f; background:transparent; border-color:#18375f; }
.auth-shell { display:flex; flex-direction:column; max-width:none; width:100%; flex:1; min-height:0; padding:0; }
.auth-shell > .alert { width:calc(100% - 48px); max-width:1000px; margin:20px auto; font-weight:450; }
.auth-layout { display:grid; grid-template-columns:50% 50%; align-items:stretch; gap:0; width:100%; max-width:none; flex:1; min-height:100vh; min-height:100svh; }
.auth-card { align-self:center; justify-self:center; width:calc(100% - 112px); max-width:400px; margin:80px 0 112px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.auth-card h2 { margin:0 0 34px; color:#14273f; font-size:32px; line-height:1.15; font-weight:650; letter-spacing:-.045em; }
.auth-identity { position:relative; isolation:isolate; display:flex; flex-direction:column; padding:46px clamp(32px,6.25vw,112px); overflow:hidden; background:#102D63; }
.auth-identity::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,rgba(14,40,85,.48),rgba(14,40,85,.1)),linear-gradient(180deg,rgba(11,32,69,.15),rgba(11,32,69,.04) 52%,rgba(8,27,58,.33)),url("auth-library-editorial.webp") center 62%/cover no-repeat; pointer-events:none; }
.auth-brand { display:inline-flex; align-items:center; align-self:flex-start; gap:11px; color:#fff; }
.auth-brand-mark { display:block; width:37px; height:37px; }
.auth-brand-name { font-size:20px; font-weight:650; letter-spacing:-.05em; }
.auth-brand-name span { color:#B6D6FF; font-weight:500; }
.auth-introduction { position:relative; z-index:1; margin:auto 0; padding:0 0 48px; }
.auth-accent { display:block; width:48px; height:2px; margin-bottom:30px; background:#B4D5FA; }
.auth-heading { max-width:620px; margin:0; color:#F6FAFF; font-family:var(--font-sans); font-size:clamp(48px,4.7vw,72px); line-height:1.08; font-weight:600; letter-spacing:-.06em; }
.auth-heading span { display:block; color:#C9DFFF; }
.auth-subtitle { max-width:410px; margin:22px 0 0; color:#E2EEFC; font-size:17px; line-height:1.55; font-weight:450; letter-spacing:-.015em; }
.auth-card > label:first-of-type { margin-top:0; }
.auth-card label { margin-top:22px; color:#34465c; font-size:13px; line-height:1.4; font-weight:600; }
.auth-card input,.auth-card select { min-height:52px; margin-top:9px; padding:12px 15px; border-color:#cfd7e3; border-radius:9px; color:#17283e; background-color:#fff; font-size:15px; box-shadow:0 1px 2px rgb(18 40 70 / 3%); }
.auth-card input:hover,.auth-card select:hover { border-color:#9aaec8; }
.auth-card input:focus,.auth-card select:focus { background-color:#fff; border-color:#295586; box-shadow:0 0 0 4px rgb(41 85 134 / 10%); }
.auth-feedback { display:flex; align-items:flex-start; min-height:54px; padding-top:12px; }
.auth-message { width:100%; padding:9px 12px; border-radius:9px; font-size:12px; font-weight:550; line-height:1.45; }
.auth-message-error { color:#a12b2b; background:#fff0ef; border:1px solid #f4cfcb; }
.auth-message-success { color:#24613f; background:#edf8f1; border:1px solid #c9e7d4; }
.auth-card .button { width:100%; min-height:52px; margin-top:0; border-color:#18375f; border-radius:9px; background:#18375f; font-size:14px; font-weight:650; box-shadow:none; transition:background-color .15s,border-color .15s; }
.auth-card .button:hover { border-color:#102a4d; background:#102a4d; }
.auth-card .form-footer { margin:24px 0 0; color:#66778b; font-size:13px; }
.auth-card .form-footer a { color:#18375f; font-weight:650; text-underline-offset:4px; }
.auth-card .form-footer a:hover { text-decoration:underline; }
.auth-page > footer { position:absolute; right:0; bottom:0; width:50%; padding:20px 24px 28px; border:0; color:#7c899a; background:transparent; font-size:11px; line-height:1.7; }
@supports (appearance:base-select) {
    select,select::picker(select) { appearance:base-select; }
    select { display:flex; align-items:center; justify-content:space-between; background-image:none; padding-right:14px; }
    select::picker-icon { color:#657588; transition:rotate .15s; }
    select:open::picker-icon { rotate:180deg; }
    select::picker(select) { padding:6px; margin-top:6px; border:1px solid #d5dde4; border-radius:12px; box-shadow:0 12px 32px rgb(16 24 40 / 12%); font:400 15px/1.5 var(--font-sans); }
    select option { padding:10px 12px; border-radius:7px; }
    select option:hover,select option:focus { background:var(--primary-soft); color:var(--primary-dark); }
    select option:checked { background:#edf4f7; font-weight:550; }
}
@media(max-width:800px) {
    .auth-language-switcher { top:22px; right:24px; }
    .auth-language-switcher a { color:#c9d9ee; }
    .auth-language-switcher a:hover,.auth-language-switcher a.active { color:#fff; }
    .auth-language-switcher a.active { border-color:#fff; }
    .auth-layout { grid-template-columns:1fr; min-height:0; }
    .auth-identity { min-height:290px; padding:28px 24px 32px; }
    .auth-brand-mark { width:32px; height:32px; }
    .auth-brand-name { font-size:17px; }
    .auth-introduction { margin:42px 0 0; padding:0; }
    .auth-accent { width:40px; margin-bottom:18px; }
    .auth-heading { font-size:clamp(40px,8vw,60px); }
    .auth-subtitle { max-width:360px; margin-top:14px; font-size:14px; line-height:1.45; }
    .auth-identity::before { background-position:center,center,center 68%; }
    .auth-card { width:calc(100% - 48px); margin:42px 0 48px; }
    .auth-card h2 { margin-bottom:28px; font-size:28px; }
    .auth-page > footer { position:static; width:auto; padding:16px 24px 24px; background:#f9fafc; }
    .auth-shell > .alert { max-width:420px; }
}
@media(max-width:480px) {
    .topbar { flex-wrap:wrap; gap:12px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation-duration:.01ms!important; } }
@media(forced-colors:active) { select { appearance:auto; background-image:none; } }

/* Course setup: clearer form hierarchy and calmer spacing. */
.admin-setup { --font-sans:Manrope,ui-sans-serif,system-ui,sans-serif; --primary:#245b83; --primary-dark:#194664; --primary-soft:#edf4f8; font-family:var(--font-sans); }
.admin-setup .page-heading { margin-bottom:30px; }
.admin-setup .page-heading h1 { color:#152b42; }
.admin-setup .page-heading p { max-width:650px; font-size:14px; }
.admin-setup .admin-grid,.admin-setup .group-layout,.admin-setup .assignment-layout { gap:20px; }
.admin-setup .compact-form { min-width:0; padding:26px; border-color:#dbe5ed; border-radius:14px; background:linear-gradient(180deg,#fbfdff 0,#fff 72px); box-shadow:0 8px 28px rgb(22 46 70 / 4%); }
.admin-setup .compact-form h2 { margin:0 0 22px; padding:0 0 16px; border-bottom:1px solid #e5edf3; color:#19354d; font-size:18px; font-weight:700; letter-spacing:-.025em; }
.admin-setup .compact-form label { margin:17px 0 0; color:#344b60; font-size:13px; font-weight:650; }
.admin-setup .compact-form input,.admin-setup .compact-form select,.admin-setup .compact-form textarea { margin-top:7px; border-color:#d1dde7; background-color:#fff; }
.admin-setup .compact-form input:focus,.admin-setup .compact-form select:focus,.admin-setup .compact-form textarea:focus { border-color:#36749b; box-shadow:0 0 0 4px rgb(36 91 131 / 10%); }
.admin-setup .compact-form small { display:block; margin-top:12px; color:#647589; font-size:12px; line-height:1.6; }
.admin-setup .compact-form .button { min-height:42px; margin-top:23px; padding:9px 16px; }
.admin-setup .section-heading { display:flex; align-items:baseline; gap:14px; margin:45px 0 16px; padding-bottom:12px; border-bottom:1px solid #dce6ee; }
.admin-setup .section-heading .eyebrow { margin:0; color:#4f728e; font-size:11px; letter-spacing:.09em; }
.admin-setup .section-heading h2 { color:#19354d; font-size:20px; letter-spacing:-.025em; }
.admin-setup .group-list,.admin-setup .assignment-list { border-color:#dbe5ed; border-radius:14px; box-shadow:0 8px 28px rgb(22 46 70 / 4%); }
.admin-setup .group-item,.admin-setup .assignment-item { padding:12px 0; }
.admin-setup .group-item strong,.admin-setup .assignment-item strong { color:#263f55; font-size:14px; }
.admin-setup .group-item span,.admin-setup .assignment-item span { font-size:13px; }
.admin-setup .subject-panel { border-color:#dbe5ed; border-radius:14px; }
@media(max-width:800px) {
    .admin-setup .compact-form { padding:21px; }
    .admin-setup .section-heading { display:block; }
    .admin-setup .section-heading .eyebrow { margin-bottom:5px; }
}

/* Submitted reports: keep each file and its review controls together. */
.submission-list { display:grid; gap:18px; }
.submission-card { overflow:hidden; }
.submission-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:24px 26px 20px; }
.submission-heading { min-width:0; }
.submission-heading .eyebrow { margin-bottom:4px; font-size:11px; }
.submission-heading h3 { margin:0; font-size:21px; letter-spacing:-.025em; line-height:1.3; }
.submission-student-line { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; }
.submission-student-index { display:inline-flex; align-items:center; min-height:27px; padding:3px 9px; border:1px solid #d9e5ef; border-radius:6px; color:#36566f; background:#f3f7fa; font-size:12px; font-weight:650; white-space:nowrap; }
.submission-heading p { margin:5px 0 0; color:#475467; font-size:14px; line-height:1.55; }
.submission-card-header .review-badge { flex:none; margin-top:3px; padding:6px 11px; font-size:12px; }
.submission-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:0 26px; padding:16px 0; border-top:1px solid var(--line); }
.submission-facts span,.submission-field-label { display:block; color:#667085; font-size:11px; font-weight:700; letter-spacing:.065em; line-height:1.5; text-transform:uppercase; }
.submission-facts strong { display:block; margin-top:3px; font-size:14px; font-weight:600; line-height:1.5; }
.submission-file { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 26px 20px; padding:16px 18px; border:1px solid var(--line); border-radius:9px; background:#f8fafb; }
.submission-file>div { min-width:0; }
.submission-file strong { display:block; margin-top:4px; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.submission-file .button { flex:none; white-space:nowrap; }
.submission-analysis { display:grid; grid-template-columns:130px minmax(0,1fr); gap:16px; margin:0 26px 22px; }
.submission-analysis .submission-field-label { padding-top:2px; }
.submission-analysis strong { display:block; color:#344054; font-size:13px; line-height:1.5; }
.submission-analysis p { margin:3px 0 0; color:#667085; font-size:13px; line-height:1.5; }
.submission-analysis blockquote { margin:12px 0; padding:10px 14px; border-left:3px solid var(--primary); background:var(--surface-soft); }
.submission-analysis blockquote p:first-child { color:#344054; font-weight:600; }
.submission-analysis ul { margin:8px 0 0; padding-left:20px; color:#475467; font-size:13px; line-height:1.6; }
.submission-analysis-action { margin-top:14px; }
.submission-review { padding:20px 26px 24px; border-top:1px solid var(--line); background:#fafbfc; }
.submission-review h4 { margin:0 0 14px; font-size:14px; font-weight:700; }
.submission-review-fields { display:grid; grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(260px,2fr); gap:14px; }
.submission-review-fields label { min-width:0; margin:0; }
.submission-review-fields input,.submission-review-fields select { width:100%; min-width:0; margin-top:6px; }
.submission-review-actions { display:flex; justify-content:flex-end; margin-top:16px; }
.submission-review-actions .button { min-height:42px; }
.filter-bar { grid-template-columns:repeat(2,minmax(140px,1fr)) minmax(180px,1.3fr) minmax(145px,1fr) minmax(180px,1.2fr) auto auto; }
.reports-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; }
.reports-heading>span { color:var(--muted); font-size:13px; white-space:nowrap; }
.submission-list { gap:12px; }
.submission-card-header { padding:18px 20px 12px; }
.submission-heading .eyebrow { display:none; }
.submission-heading h3 { font-size:18px; }
.submission-facts { gap:12px; margin:0 20px; padding:10px 0; }
.submission-facts strong { font-size:13px; }
.submission-file { margin:0 20px 12px; padding:10px 12px; }
.submission-details { border-top:1px solid var(--line); }
.submission-details summary { padding:12px 20px; color:var(--primary-dark); background:#f7fafb; font-size:13px; font-weight:700; cursor:pointer; }
.submission-details summary:hover { background:var(--primary-soft); }
.submission-details[open] summary { border-bottom:1px solid var(--line); }
.submission-details .submission-analysis { margin-top:18px; }
.reports-pagination { display:flex; align-items:center; justify-content:center; gap:16px; margin:20px 0 8px; }
.reports-pagination>span { color:var(--muted); font-size:13px; font-weight:650; }
@media(max-width:1100px) and (min-width:801px) {
    .filter-bar { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:800px) {
    .filter-bar { grid-template-columns:1fr; }
}
@media(max-width:900px) {
    .submission-review-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .submission-review-fields .feedback-field { grid-column:1/-1; }
}
@media(max-width:600px) {
    .submission-card-header { flex-direction:column; gap:12px; padding:20px 18px 16px; }
    .submission-facts { grid-template-columns:repeat(2,minmax(0,1fr)); margin:0 18px; }
    .submission-facts>div:last-child { grid-column:1/-1; }
    .submission-file { align-items:flex-start; flex-direction:column; gap:12px; margin:0 18px 18px; padding:14px; }
    .submission-analysis { grid-template-columns:1fr; gap:5px; margin:0 18px 18px; }
    .submission-review { padding:18px; }
    .submission-review-fields { grid-template-columns:1fr; }
    .submission-review-fields .feedback-field { grid-column:auto; }
    .submission-review-actions .button { width:100%; }
    .reports-heading { align-items:start; flex-direction:column; gap:5px; }
    .submission-card-header { padding:18px; }
    .submission-facts { margin:0 18px; }
    .submission-file { margin:0 18px 12px; }
    .submission-details summary { padding:12px 18px; }
}

/* Make the student-facing review signal visible without implying a diagnosis. */
.lab-card .ai-result { margin-top:14px; padding:16px; border-color:#bed9e4; border-radius:10px; background:#f2f8fb; }

/* Instructor's student-by-lab overview. */
.overview-filter { grid-template-columns:minmax(150px,1fr) minmax(200px,1.4fr) minmax(150px,1fr) minmax(200px,1.2fr) auto auto; }
.overview-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:22px 0 10px; }
.overview-summary-item { display:flex; align-items:center; gap:11px; min-height:72px; padding:14px 16px; border:1px solid; border-radius:10px; }
.overview-summary-item strong { font-size:26px; line-height:1; font-weight:700; font-variant-numeric:tabular-nums; }
.overview-summary-item span { font-size:13px; font-weight:650; }
.overview-passed { color:#176943; background:#ebf7f0; border-color:#bce5cd; }
.overview-submitted { color:#195c79; background:#edf7fb; border-color:#bfdeeb; }
.overview-correction { color:#915417; background:#fff4e7; border-color:#efd1aa; }
.overview-missing { color:#913d38; background:#fff1f0; border-color:#f0ccc8; }
.overview-note { margin:0 0 14px; color:var(--muted); font-size:12px; }
.overview-date-legend { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.overview-date { display:inline-block; padding:3px 7px; border:1px solid; border-radius:5px; font-size:10px; font-weight:700; line-height:1.35; white-space:nowrap; font-variant-numeric:tabular-nums; }
.overview-date-prompt { color:#176943; background:#e7f5ed; border-color:#b7e0c7; }
.overview-date-next { color:#915417; background:#fff2dd; border-color:#edc992; }
.overview-date-later { color:#aa2e25; background:#fff0ee; border-color:#efbdb8; }
.overview-date-unknown { color:#586575; background:#f0f3f6; border-color:#dbe2e8; }
.student-deadline { margin:8px 0 0; color:#344054; font-size:12px; font-weight:650; }
.student-timing { margin-top:7px; padding:5px 9px; font-size:12px; }
.overview-table-wrap { max-width:100%; overflow:auto; }
.overview-table { width:max-content; min-width:100%; }
.overview-table th,.overview-table td { border-right:1px solid var(--line); }
.overview-table tr>*:last-child { border-right:0; }
.overview-table thead th { min-width:155px; padding:15px 12px; vertical-align:bottom; letter-spacing:0; text-transform:none; }
.overview-table thead th:first-child { position:sticky; left:0; z-index:2; min-width:240px; background:var(--surface-soft); }
.overview-table thead th span,.overview-table thead th small { display:block; }
.overview-table thead th span { color:#344054; font-size:12px; }
.overview-table thead th small { max-width:180px; margin-top:3px; overflow:hidden; color:var(--muted); font-size:11px; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.overview-table thead th .overview-deadline { margin-top:8px; color:#3f5367; font-size:10px; font-weight:700; }
.overview-table td { padding:11px 10px; text-align:center; }
.overview-table .overview-student { position:sticky; left:0; z-index:1; min-width:240px; max-width:300px; padding:11px 15px; background:#fff; font-size:13px; letter-spacing:0; text-transform:none; }
.overview-table tbody tr:nth-child(even) .overview-student { background:#fbfcfd; }
.overview-table tbody tr:nth-child(even) td { background:#fbfcfd; }
.overview-student strong,.overview-student span { display:block; overflow-wrap:anywhere; }
.overview-student strong { color:var(--ink); font-weight:700; }
.overview-student span { margin-top:2px; color:var(--muted); font-size:11px; font-weight:500; }
.overview-status { display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-width:128px; min-height:34px; padding:6px 9px; border:1px solid; border-radius:7px; font-size:11px; font-weight:700; line-height:1.2; text-align:center; white-space:nowrap; }
a.overview-status:hover { filter:brightness(.95); text-decoration:underline; }
@media(max-width:1100px) { .overview-filter { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:800px) { .overview-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) { .overview-filter { grid-template-columns:1fr; } .overview-summary { gap:8px; } .overview-summary-item { flex-direction:column; align-items:flex-start; gap:3px; padding:12px; } .overview-table thead th:first-child,.overview-table .overview-student { min-width:190px; max-width:190px; } }
.lab-deadline-form { display:flex; align-items:end; gap:8px; margin:10px 0; }
.lab-deadline-form label { flex:0 1 210px; margin:0; }
.lab-deadline-form input { margin-top:5px; }
.lab-deadline-form .button { flex:none; min-height:46px; }
@media(max-width:520px) { .lab-deadline-form { align-items:stretch; flex-direction:column; } .lab-deadline-form label { flex:auto; } .lab-deadline-form .button { align-self:flex-start; } }
.lab-card .ai-result-label { display:block; margin-bottom:8px; color:var(--primary-dark); font-size:11px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
.lab-card .ai-result-score { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 12px; }
.lab-card .ai-result-score strong { color:var(--primary-dark); font-size:32px; font-weight:750; line-height:1; letter-spacing:-.04em; }
.lab-card .ai-result-score span { color:#344054; font-size:13px; font-weight:650; }
.lab-card .ai-result .ai-meter { height:7px; margin-top:13px; background:#d6e6ed; }
.lab-card .ai-result small { margin-top:12px; color:#526474; font-size:12px; line-height:1.55; }

/* Compact instructor materials workspace. */
.admin-setup .page-heading { margin-bottom:22px; }
.admin-setup .subject-switcher { gap:6px; margin-bottom:16px; padding-bottom:4px; }
.admin-setup .subject-switcher a { min-width:0; padding:9px 16px; border-radius:8px; font-size:13px; }
.admin-setup .subject-switcher a.active { color:var(--primary-dark); background:var(--primary-soft); border-color:#a8cfdc; }
.admin-setup .subject-header { align-items:center; gap:20px; padding:20px 22px; background:#fff; }
.admin-setup .subject-header h2 { margin:0 0 4px; font-size:21px; }
.admin-setup .subject-header p { margin:0; line-height:1.5; }
.admin-setup .subject-actions { gap:8px; }
.admin-setup .subject-meta { gap:5px; }
.admin-setup .subject-meta span { padding:4px 8px; font-size:11px; }
.admin-setup .subject-column { padding:0; }
.admin-setup .subject-column .column-heading { margin:0; padding:14px 22px; background:#f8fafb; }
.admin-setup .subject-column .inline-empty { padding:0 22px 18px; }
.materials-lab { border-top:1px solid var(--line); }
.materials-lab-heading { display:grid; grid-template-columns:44px minmax(0,1fr) auto 12px; align-items:center; gap:14px; padding:15px 22px; cursor:pointer; list-style:none; transition:background .15s; }
.materials-lab-heading::-webkit-details-marker,.setup-tools>summary::-webkit-details-marker { display:none; }
.materials-lab-heading:hover { background:#f7fafc; }
.materials-lab[open]>.materials-lab-heading { background:#f4f8fa; }
.materials-lab-number { display:flex; flex-direction:column; justify-content:center; align-items:center; width:44px; height:46px; border:1px solid #dce5eb; border-radius:9px; color:#3e596d; background:#fff; line-height:1.1; }
.materials-lab-number small { margin-bottom:3px; font-size:9px; font-weight:650; text-transform:uppercase; letter-spacing:.06em; }
.materials-lab-number strong { font-size:18px; font-weight:700; font-variant-numeric:tabular-nums; }
.materials-lab-title { min-width:0; }
.materials-lab-title>strong { display:block; color:var(--ink); font-size:15px; line-height:1.35; font-weight:650; overflow-wrap:anywhere; }
.materials-lab-title>span { display:block; margin-top:4px; color:var(--muted); font-size:11px; line-height:1.5; }
.materials-lab-title>span>span { margin:0 5px; color:#a0acb8; }
.materials-lab-date { color:#526579; font-size:12px; font-weight:550; font-variant-numeric:tabular-nums; }
.disclosure-chevron { display:block; flex:none; width:8px; height:8px; margin-right:3px; border-right:1.7px solid #667c8d; border-bottom:1.7px solid #667c8d; transform:rotate(45deg); transition:transform .15s; }
.materials-lab[open]>.materials-lab-heading>.disclosure-chevron,.setup-tools[open]>summary>.disclosure-chevron { transform:rotate(225deg); }
.materials-lab-heading:focus-visible,.setup-tools>summary:focus-visible { outline:3px solid var(--primary); outline-offset:-3px; }
.materials-lab-content { display:grid; grid-template-columns:minmax(0,1fr) 310px; border-top:1px solid #e6edf1; }
.materials-files { min-width:0; padding:20px 22px; }
.materials-files h4 { margin:0 0 12px; color:#475467; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.065em; }
.materials-file-list { display:grid; gap:7px; margin:0; padding:0; list-style:none; }
.materials-file-list li { display:flex; align-items:center; min-width:0; border:1px solid #e1e7ed; border-radius:8px; background:#fff; }
.materials-file-link { display:flex; flex:1; align-items:center; gap:11px; min-width:0; padding:10px 12px; color:#253e54; }
.materials-file-link:hover { color:var(--primary); background:#f6fafc; border-radius:8px; }
.materials-file-type { display:grid; flex:none; place-items:center; min-width:36px; height:30px; padding:0 5px; border-radius:5px; color:#42667d; background:#edf3f7; font-size:9px; font-weight:750; letter-spacing:.03em; }
.materials-file-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; font-weight:550; }
.materials-download-icon { flex:none; color:#8193a4; }
.materials-file-list li form { margin:0 6px 0 0; }
.materials-file-delete { display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:6px; color:#84909e; background:transparent; cursor:pointer; }
.materials-file-delete:hover { color:var(--danger); background:var(--danger-soft); }
.materials-empty { margin:0 0 12px; padding:16px; border:1px dashed #d8e1e8; border-radius:8px; color:var(--muted); font-size:12px; }
.materials-upload { margin-top:16px; padding:14px; border:1px dashed #cddce5; border-radius:8px; background:#f9fbfc; }
.materials-upload label,.materials-setting-form label { display:block; margin:0 0 7px; font-size:12px; font-weight:600; }
.materials-upload-controls { display:flex; align-items:center; gap:8px; min-width:0; }
.materials-upload input[type=file] { flex:1; min-width:0; width:100%; min-height:38px; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; font-size:12px; background:transparent; }
.materials-upload input[type=file]::file-selector-button { margin-right:8px; padding:7px 9px; font-size:12px; }
.materials-upload .button { flex:none; min-height:38px; padding:8px 12px; font-size:12px; }
.materials-upload .upload-hint { display:block; margin:9px 0 0; font-size:10px; line-height:1.6; }
.materials-lab-settings { padding:20px 18px; border-left:1px solid #e6edf1; background:#fafbfd; }
.materials-setting-form { margin:0; }
.materials-setting-form+.materials-setting-form { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.materials-setting-controls { display:flex; gap:7px; }
.materials-setting-form input,.materials-setting-form select { width:100%; min-width:0; min-height:38px; margin:0; padding:8px 10px; border-radius:7px; font-size:12px; }
.materials-setting-form select { padding-right:32px; }
.materials-setting-controls input { flex:1; }
.materials-setting-form .button { flex:none; min-height:38px; padding:8px 10px; border-radius:7px; font-size:12px; white-space:nowrap; }
.materials-zip-button { width:100%; margin-top:8px; }
.materials-lab-settings .delete-lab-form { margin-top:14px; padding-top:10px; border-top:1px solid var(--line); }
.materials-lab-settings .delete-lab-form .button { min-height:28px; padding:4px 0; font-size:11px; }
.setup-tools { margin-top:24px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.setup-tools>summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:17px 20px; cursor:pointer; list-style:none; }
.setup-tools>summary strong { display:block; color:#344054; font-size:14px; font-weight:650; }
.setup-tools>summary small { display:block; margin-top:3px; color:var(--muted); font-size:12px; }
.setup-tools-content { padding:22px; border-top:1px solid var(--line); background:#f8fafb; }
.setup-selected-subject { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.setup-selected-subject>strong { font-size:14px; }
.setup-tools-content>.section-heading { margin-top:26px; }
@media(max-width:850px) {
    .materials-lab-content { grid-template-columns:minmax(0,1fr); }
    .materials-lab-settings { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:16px; border-left:0; border-top:1px solid var(--line); }
    .materials-setting-form+.materials-setting-form { margin:0; padding:0; border:0; }
    .materials-lab-settings .delete-lab-form { grid-column:1/-1; margin:0; }
}
@media(max-width:600px) {
    .admin-setup .subject-header { padding:17px; }
    .admin-setup .subject-column .column-heading { padding:12px 17px; }
    .materials-lab-heading { grid-template-columns:38px minmax(0,1fr) 10px; gap:7px 12px; padding:14px 16px; }
    .materials-lab-number { grid-row:1/3; width:38px; height:43px; }
    .materials-lab-title>strong { font-size:14px; }
    .materials-lab-date { grid-column:2; font-size:11px; }
    .materials-lab-heading>.disclosure-chevron { grid-column:3; grid-row:1/3; }
    .materials-files { padding:17px 16px; }
    .materials-lab-settings { grid-template-columns:minmax(0,1fr); padding:17px 16px; }
    .materials-setting-form+.materials-setting-form { margin-top:0; padding-top:14px; border-top:1px solid var(--line); }
    .materials-upload-controls { flex-direction:column; align-items:stretch; }
    .materials-upload .button { align-self:flex-start; }
    .setup-tools>summary { padding:15px 16px; }
    .setup-tools-content { padding:16px; }
}

/* Instructor student directory and report review lists. */
.admin-workspace .page-heading { align-items:center; gap:24px; margin-bottom:22px; }
.admin-workspace .page-heading p { max-width:640px; margin:0; font-size:13px; }
.admin-workspace .progress-card { display:flex; align-items:baseline; justify-content:center; gap:8px; min-width:110px; margin:0; padding:11px 16px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.admin-workspace .progress-card strong { font-size:24px; line-height:1.2; }
.admin-workspace .progress-card span { font-size:11px; }
.workspace-heading-actions { display:flex; flex:none; align-items:center; gap:10px; }
.workspace-heading-actions>.button { min-height:40px; padding:9px 12px; font-size:12px; }
.admin-workspace input,.admin-workspace select,.admin-workspace textarea { min-height:40px; padding:9px 11px; border-radius:8px; font-size:13px; }
.admin-workspace select { height:40px; padding-right:36px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-workspace label { font-size:12px; }
.admin-workspace .button-small { min-height:40px; padding:9px 13px; border-radius:8px; font-size:12px; }
.students-workspace .student-search { grid-template-columns:minmax(0,1fr) auto auto; gap:10px; padding:16px 18px; }
.students-workspace .student-search input { width:100%; margin-top:6px; }
.students-workspace .student-search .button { height:40px; }
.students-directory { margin-top:18px; overflow:hidden; border-radius:12px; }
.student-directory-columns,.student-record-heading { display:grid; grid-template-columns:110px minmax(170px,1.7fr) minmax(95px,1fr) 130px 100px 65px; align-items:center; gap:14px; padding:14px 20px; }
.student-directory-columns { background:#f7f9fb; color:#6d7d8e; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.055em; }
.student-directory-columns>span:nth-child(5) { text-align:center; }
.student-record { border-top:1px solid var(--line); }
.student-record-heading { min-height:68px; cursor:pointer; list-style:none; transition:background .15s; }
.student-record-heading::-webkit-details-marker { display:none; }
.student-record-heading:hover { background:#f6fafc; }
.student-record[open]>.student-record-heading { background:#f0f6f9; }
.student-record-heading:focus-visible { outline:3px solid var(--primary); outline-offset:-3px; }
.student-record-index { justify-self:start; padding:4px 8px; border:1px solid #dde6ee; border-radius:6px; background:#f6f9fc; color:#315a78; font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; }
.student-record-name { min-width:0; color:#243b50; font-size:14px; font-weight:650; overflow-wrap:anywhere; }
.student-record-group,.student-record-year { min-width:0; color:#536477; font-size:12px; overflow-wrap:anywhere; }
.student-record-heading small { display:none; }
.student-record-count { text-align:center; }
.student-record-count strong { display:inline-grid; place-items:center; min-width:32px; min-height:27px; padding:3px 7px; border-radius:6px; color:#4c657a; background:#edf2f6; font-size:12px; font-weight:650; }
.student-record-action { display:flex; align-items:center; justify-content:flex-end; gap:12px; color:#517188; font-size:11px; font-weight:600; }
.student-record[open]>.student-record-heading .disclosure-chevron { transform:rotate(225deg); }
.student-record-body { padding:20px; border-top:1px solid #dfebf0; background:#fafcfd; }
.student-record-body h3 { margin:0 0 5px; color:#344c61; font-size:14px; }
.student-record-hint { max-width:820px; margin:0 0 16px; color:#6d7a88; font-size:12px; line-height:1.55; }
.students-workspace .student-edit { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) auto; gap:12px; }
.students-workspace .student-edit input,.students-workspace .student-edit select { width:100%; margin-top:6px; }
.students-workspace .student-edit .button { height:40px; }
.student-delete { margin-top:14px; padding-top:10px; border-top:1px solid #e4eaf0; }
.admin-workspace .student-delete .button { min-height:26px; padding:3px 0; font-size:11px; }
.reports-workspace .filter-bar { grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px 16px; padding:17px 18px; }
.reports-workspace .filter-bar label { min-width:0; margin:0; }
.reports-workspace .filter-bar input,.reports-workspace .filter-bar select { width:100%; min-width:0; margin-top:6px; }
.report-filter-subject { grid-column:auto; }
.report-filter-actions { display:flex; align-items:end; gap:8px; }
.reports-workspace .report-filter-actions .button { flex:1; height:40px; }
.reports-workspace .reports-heading { align-items:center; margin:25px 0 12px; }
.reports-workspace .reports-heading .eyebrow { display:none; }
.reports-workspace .reports-heading h2 { margin:0; font-size:18px; }
.reports-workspace .reports-heading>span { font-size:12px; }
.reports-workspace .submission-list { gap:12px; }
.reports-workspace .submission-card { border-radius:12px; }
.reports-workspace .submission-card-header { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px; padding:17px 20px 13px; }
.reports-workspace .submission-student-line { gap:7px 12px; }
.reports-workspace .submission-heading h3 { font-size:17px; }
.reports-workspace .submission-student-index { min-height:23px; padding:2px 7px; font-size:10px; }
.reports-workspace .submission-context { display:flex; align-items:baseline; gap:8px; margin-top:8px; color:#56687a; font-size:12px; line-height:1.5; }
.submission-lab-tag { flex:none; padding:2px 6px; border:1px solid #dfe7ee; border-radius:4px; color:#46657d; background:#f4f7fa; font-size:10px; font-weight:700; }
.submission-context>span:last-child { min-width:0; overflow-wrap:anywhere; }
.submission-meta { display:flex; flex-wrap:wrap; gap:5px 16px; margin-top:7px; color:#7a8795; font-size:11px; }
.submission-meta strong { margin-left:4px; color:#4d6275; font-weight:550; }
.reports-workspace .submission-heading .submission-correction-date { margin-top:7px; color:#95621f; font-size:11px; font-weight:600; }
.submission-status-column { display:flex; flex-direction:column; align-items:flex-end; }
.reports-workspace .submission-status-column .review-badge { margin:0; padding:4px 9px; font-size:11px; }
.reports-workspace .review-pending { color:#2d6088; background:#edf5fc; border-color:#cddfed; }
.reports-workspace .review-passed { color:#236c49; background:#edf7f1; border-color:#c0dfcd; }
.reports-workspace .review-correction { color:#915d1d; background:#fff5e8; border-color:#ecd4b2; }
.submission-sent-label { margin-top:9px; color:#82909d; font-size:9px; font-weight:650; text-transform:uppercase; letter-spacing:.05em; }
.submission-sent-at { color:#596f82; font-size:11px; font-variant-numeric:tabular-nums; }
.reports-workspace .submission-file { display:flex; align-items:center; gap:12px; margin:0 20px 13px; padding:9px 11px; border:1px solid #e1e8ed; border-radius:8px; background:#f8fafc; }
.report-file-format { display:grid; flex:none; place-items:center; min-width:35px; height:35px; padding:0 5px; border:1px solid #dce6ee; border-radius:6px; color:#547187; background:#fff; font-size:9px; font-weight:750; }
.reports-workspace .submission-file>div { flex:1; min-width:0; }
.reports-workspace .submission-file .submission-field-label { color:#8191a0; font-size:9px; font-weight:650; letter-spacing:.045em; }
.reports-workspace .submission-file strong { margin-top:2px; color:#365167; font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.reports-workspace .submission-file .button { min-height:34px; padding:6px 11px; font-size:11px; }
.reports-workspace .submission-details summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 20px; color:#4e6e83; background:#fcfdfe; font-size:12px; font-weight:600; list-style:none; }
.reports-workspace .submission-details summary::-webkit-details-marker { display:none; }
.reports-workspace .submission-details summary:hover { background:#f0f6f9; }
.reports-workspace .submission-details[open] summary { background:#f0f6f9; }
.submission-details[open]>summary>.disclosure-chevron { transform:rotate(225deg); }
.submission-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.reports-workspace .submission-review { min-width:0; margin:0; padding:20px; border:0; background:#fff; }
.reports-workspace .submission-review h4 { margin-bottom:12px; color:#344f65; font-size:13px; }
.reports-workspace .submission-review-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.reports-workspace .submission-review-fields .feedback-field { grid-column:1/-1; }
.reports-workspace .submission-review-fields input,.reports-workspace .submission-review-fields select,.reports-workspace .submission-review-fields textarea { margin-top:6px; }
.reports-workspace .submission-review-fields textarea { display:block; width:100%; min-height:78px; resize:vertical; }
.reports-workspace .submission-review-actions { margin-top:12px; }
.reports-workspace .submission-analysis { display:block; min-width:0; margin:0; padding:20px; border-left:1px solid var(--line); background:#f9fbfd; }
.reports-workspace .submission-analysis>.submission-field-label { margin-bottom:12px; color:#6b8296; font-size:10px; }
.reports-workspace .submission-analysis strong { font-size:12px; }
.reports-workspace .submission-analysis p,.reports-workspace .submission-analysis ul { font-size:12px; overflow-wrap:anywhere; }
@media(max-width:1050px) {
    .student-directory-columns,.student-record-heading { grid-template-columns:95px minmax(130px,1.5fr) minmax(80px,1fr) 108px 80px 16px; gap:12px; padding-right:18px; padding-left:18px; }
    .student-record-action>span:first-child { display:none; }
    .workspace-heading-actions { flex-wrap:wrap; justify-content:flex-end; max-width:300px; }
}
@media(max-width:900px) {
    .students-workspace .student-edit { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .students-workspace .student-edit>label:first-of-type { grid-column:1/-1; }
    .students-workspace .student-edit>.button { justify-self:start; }
    .submission-detail-grid { grid-template-columns:minmax(0,1fr); }
    .reports-workspace .submission-analysis { border-left:0; border-top:1px solid var(--line); }
}
@media(max-width:760px) {
    .reports-workspace .filter-bar { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .report-filter-actions { gap:6px; }
    .reports-workspace .report-filter-actions .button { padding:8px; }
    .workspace-heading-actions { justify-content:flex-start; max-width:none; margin-top:14px; }
    .admin-workspace .progress-card { min-width:95px; }
}
@media(max-width:700px) {
    .student-directory-columns { display:none; }
    .student-record:first-of-type { border-top:0; }
    .student-record-heading { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 12px; gap:8px 14px; padding:15px 16px; }
    .student-record-name { grid-column:1/3; grid-row:1; font-size:14px; }
    .student-record-index { grid-column:1; grid-row:2; }
    .student-record-action { grid-column:3; grid-row:1/3; }
    .student-record-group { grid-column:1; grid-row:3; }
    .student-record-year { grid-column:2/4; grid-row:3; }
    .student-record-heading .student-record-group small,.student-record-heading .student-record-year small { display:block; margin-bottom:2px; color:#7e8d9a; font-size:10px; font-weight:500; }
    .student-record-count { display:flex; grid-column:2; grid-row:2; align-items:center; justify-content:flex-end; gap:6px; }
    .student-record-heading .student-record-count small { display:inline; color:#80909e; font-size:10px; }
    .student-record-count strong { min-width:26px; min-height:24px; font-size:11px; }
    .student-record-body { padding:17px 16px; }
}
@media(max-width:600px) {
    .students-workspace .student-search { grid-template-columns:1fr 1fr; padding:14px; }
    .students-workspace .student-search>label { grid-column:1/-1; }
    .students-workspace .student-edit { grid-template-columns:minmax(0,1fr); }
    .students-workspace .student-edit>.button { width:100%; }
    .reports-workspace .submission-card-header { grid-template-columns:minmax(0,1fr); gap:11px; padding:16px 16px 12px; }
    .reports-workspace .submission-heading h3 { font-size:16px; }
    .submission-status-column { display:grid; grid-template-columns:1fr auto; align-items:center; }
    .submission-status-column .review-badge { grid-column:1; grid-row:1/3; justify-self:start; }
    .submission-sent-label { grid-column:2; margin:0; text-align:right; }
    .submission-sent-at { grid-column:2; }
    .reports-workspace .submission-file { flex-direction:row; gap:9px; margin:0 16px 12px; padding:9px; }
    .report-file-format { min-width:30px; height:32px; font-size:8px; }
    .reports-workspace .submission-file .button { padding:6px 9px; }
    .reports-workspace .submission-details summary { padding:11px 16px; }
    .reports-workspace .submission-review,.reports-workspace .submission-analysis { padding:17px 16px; }
    .reports-workspace .reports-heading { align-items:flex-start; gap:6px; }
}

/* Student directory filters. */
.students-workspace .student-search { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1.3fr) auto; gap:12px; }
.students-workspace .student-search select { width:100%; min-width:0; margin-top:6px; }
.students-workspace .student-search label { min-width:0; }
.student-filter-actions { display:flex; align-items:center; gap:8px; }
@media(max-width:900px) {
    .students-workspace .student-search { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .students-workspace .student-search>label { grid-column:auto; }
    .students-workspace .student-search>label:first-of-type { grid-column:1/-1; }
    .student-filter-actions { grid-column:1/-1; justify-content:flex-end; }
}
@media(max-width:600px) {
    .student-filter-actions .button { flex:1; }
}

/* Instructor overview: academic-year metrics and charts. */
.dashboard-year { display:flex; flex:none; align-items:end; gap:8px; }
.dashboard-year label { min-width:210px; margin:0; }
.dashboard-year select { width:100%; margin-top:6px; background-color:#fff; }
.dashboard-year .button { height:40px; }
.dashboard-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:0 0 20px; }
.dashboard-metric { display:block; min-width:0; padding:18px 20px 16px; border-radius:11px; color:var(--ink); transition:border-color .15s,box-shadow .15s; }
.dashboard-metric:hover { border-color:#afcbd9; box-shadow:0 6px 20px rgb(26 55 78 / 7%); }
.dashboard-metric>span { display:flex; align-items:center; gap:7px; color:#617587; font-size:12px; font-weight:550; }
.dashboard-metric>strong { display:block; margin:9px 0 7px; color:#233f54; font-size:32px; line-height:1.15; font-weight:650; font-variant-numeric:tabular-nums; letter-spacing:-.035em; }
.dashboard-metric>small { display:flex; align-items:center; justify-content:space-between; color:#8a98a5; font-size:10px; }
.dashboard-metric-pending { border-color:#bfd6e4; background:linear-gradient(135deg,#fff,#f4f9fc); }
.dashboard-metric-pending>strong { color:#356d8c; }
.dashboard-metric-correction>strong { color:#a0783d; }
.dashboard-dot { display:inline-block; flex:none; width:7px; height:7px; border-radius:50%; }
.dashboard-dot-pending,.dashboard-segment-pending { background:#467f9f; }
.dashboard-dot-passed,.dashboard-segment-passed { background:#348568; }
.dashboard-dot-correction,.dashboard-segment-correction { background:#d4a458; }
.dashboard-chart-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:18px; margin-bottom:18px; }
.dashboard-panel { min-width:0; padding:20px 22px; border-radius:12px; }
.dashboard-panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:20px; }
.dashboard-panel-heading h2 { margin:0 0 4px; color:#304a5f; font-size:15px; font-weight:650; letter-spacing:-.02em; }
.dashboard-panel-heading p { margin:0; color:#8a97a3; font-size:11px; line-height:1.5; }
.dashboard-total { padding:4px 8px; color:#3e6984; background:#eef5f9; border-radius:6px; font-size:13px; font-weight:650; font-variant-numeric:tabular-nums; }
.dashboard-bar-chart { display:flex; align-items:stretch; gap:9px; height:176px; margin:8px 0 0; padding-top:20px; background:repeating-linear-gradient(to top,transparent 0px,transparent 37px,#edf1f5 38px,#edf1f5 39px); }
.dashboard-day { display:flex; flex:1; flex-direction:column; min-width:0; }
.dashboard-day-track { display:flex; flex:1; align-items:flex-end; justify-content:center; min-height:0; border-bottom:1px solid #dce6ee; }
.dashboard-day-bar { position:relative; width:100%; max-width:29px; min-height:4px; border-radius:4px 4px 0 0; background:linear-gradient(0deg,#3c708c,#77a9bf); transition:filter .15s; }
.dashboard-day:hover .dashboard-day-bar { filter:brightness(.9); }
.dashboard-day-bar>span { position:absolute; top:-20px; left:50%; color:#50758d; font-size:10px; font-weight:650; font-variant-numeric:tabular-nums; transform:translateX(-50%); }
.dashboard-day-label { min-height:24px; padding-top:7px; color:#8c9ba8; font-size:9px; line-height:1.2; text-align:center; font-variant-numeric:tabular-nums; white-space:nowrap; background:#fff; }
.dashboard-chart-empty { margin:9px 0 0; color:#8393a1; font-size:11px; text-align:center; }
.dashboard-chart-data { margin-top:10px; }
.dashboard-chart-data>summary { width:max-content; color:#7f94a4; font-size:10px; cursor:pointer; }
.dashboard-chart-data dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; margin:8px 0 0; font-size:11px; }
.dashboard-chart-data dl>div { display:flex; align-items:center; justify-content:space-between; padding:5px 0; border-bottom:1px solid var(--line); }
.dashboard-chart-data dt { color:#7d8d9b; }
.dashboard-chart-data dd { margin:0; color:#3d617b; font-weight:600; }
.dashboard-status-content { display:flex; align-items:center; justify-content:space-between; gap:22px; padding:10px 0 16px; }
.dashboard-donut { display:grid; flex:none; place-items:center; width:164px; height:164px; border-radius:50%; }
.dashboard-donut>div { display:flex; flex-direction:column; align-items:center; justify-content:center; width:126px; height:126px; border-radius:50%; background:#fff; }
.dashboard-donut strong { color:#315748; font-size:31px; line-height:1.2; font-weight:650; font-variant-numeric:tabular-nums; letter-spacing:-.04em; }
.dashboard-donut span { margin-top:4px; color:#839489; font-size:11px; }
.dashboard-status-legend { flex:1; min-width:0; }
.dashboard-status-legend>a { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid #edf1f4; }
.dashboard-status-legend>a:last-child { border-bottom:0; }
.dashboard-status-legend>a>span { display:flex; align-items:center; gap:7px; color:#697e8e; font-size:11px; }
.dashboard-status-legend strong { color:#3d576b; font-size:13px; font-weight:650; font-variant-numeric:tabular-nums; }
.dashboard-status-legend>a:hover span { color:var(--primary); }
.dashboard-bottom-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; }
.dashboard-subjects { display:grid; gap:18px; }
.dashboard-subject { display:block; min-width:0; }
.dashboard-subject>div:first-child { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:7px; }
.dashboard-subject strong { min-width:0; color:#526c80; font-size:12px; font-weight:550; overflow-wrap:anywhere; }
.dashboard-subject>div:first-child>span { color:#668195; font-size:12px; font-weight:650; font-variant-numeric:tabular-nums; }
.dashboard-subject-bar { display:flex; height:9px; overflow:hidden; border-radius:4px; background:#f0f4f7; }
.dashboard-subject-bar>span { height:100%; }
.dashboard-subject:hover .dashboard-subject-bar { filter:brightness(.93); }
.dashboard-mini-legend { display:flex; flex-wrap:wrap; gap:10px 16px; margin-top:23px; }
.dashboard-mini-legend>span { display:flex; align-items:center; gap:5px; color:#8a9aa7; font-size:9px; }
.dashboard-mini-legend .dashboard-dot { width:6px; height:6px; }
.dashboard-panel-link { flex:none; margin-top:2px; color:#61839a; font-size:10px; font-weight:600; }
.dashboard-recent { margin:0; padding:0; list-style:none; }
.dashboard-recent li+li { border-top:1px solid #ecf0f4; }
.dashboard-recent a { display:flex; align-items:center; gap:10px; padding:11px 0; }
.dashboard-recent li:first-child a { padding-top:0; }
.dashboard-recent li:last-child a { padding-bottom:0; }
.dashboard-recent-icon { display:grid; flex:none; place-items:center; width:30px; height:32px; border:1px solid; border-radius:7px; font-size:13px; font-weight:650; }
.dashboard-recent-pending { color:#4f7e99; background:#f0f7fb; border-color:#dbe9f1; }
.dashboard-recent-passed { color:#3f856b; background:#f1f8f4; border-color:#dcece3; }
.dashboard-recent-correction { color:#b19053; background:#fdf8ed; border-color:#eee3cb; }
.dashboard-recent-info { flex:1; min-width:0; }
.dashboard-recent-info>strong { display:block; color:#4a6479; font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.dashboard-recent-info small { margin-left:5px; color:#91a1ad; font-size:9px; font-weight:500; }
.dashboard-recent-info>span { display:block; margin-top:3px; overflow:hidden; color:#91a0ad; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-recent time { flex:none; color:#90a0ad; font-size:9px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.dashboard-empty { margin:30px 0; color:#91a0ad; font-size:12px; }
.dashboard-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:20px; }
.dashboard-shortcuts>a { min-width:0; padding:14px 17px; border:1px solid #e0e7ed; border-radius:10px; background:#f9fbfc; }
.dashboard-shortcuts strong { display:block; color:#4d697e; font-size:12px; font-weight:600; }
.dashboard-shortcuts>a>span { display:flex; justify-content:space-between; gap:8px; margin-top:3px; color:#90a1ad; font-size:10px; }
.dashboard-shortcuts>a:hover { border-color:#b7cfdc; background:#f1f7fa; }
@media(max-width:1100px) {
    .dashboard-chart-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    .dashboard-status-content { gap:15px; }
    .dashboard-donut { width:135px; height:135px; }
    .dashboard-donut>div { width:101px; height:101px; }
    .dashboard-donut strong { font-size:27px; }
}
@media(max-width:850px) {
    .dashboard-chart-grid,.dashboard-bottom-grid { grid-template-columns:minmax(0,1fr); }
    .dashboard-status-content { justify-content:flex-start; gap:36px; }
    .dashboard-status-legend { max-width:320px; }
    .dashboard-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .dashboard-year { margin-top:18px; }
}
@media(max-width:600px) {
    .dashboard-year { width:100%; }
    .dashboard-year label { flex:1; min-width:0; }
    .dashboard-metrics { gap:10px; }
    .dashboard-metric { padding:14px; }
    .dashboard-metric>span { gap:5px; font-size:11px; }
    .dashboard-metric>strong { font-size:28px; }
    .dashboard-metric>small { font-size:9px; }
    .dashboard-panel { padding:18px 16px; }
    .dashboard-panel-heading h2 { font-size:14px; }
    .dashboard-bar-chart { gap:6px; height:155px; }
    .dashboard-day-label { font-size:8px; }
    .dashboard-day:nth-last-child(2) .dashboard-day-label { visibility:hidden; }
    .dashboard-status-content { gap:20px; }
    .dashboard-donut { width:128px; height:128px; }
    .dashboard-donut>div { width:96px; height:96px; }
    .dashboard-donut strong { font-size:25px; }
    .dashboard-status-legend>a>span { font-size:10px; }
    .dashboard-recent time { font-size:8px; }
    .dashboard-recent-info small { display:block; margin:2px 0 0; }
    .dashboard-shortcuts { grid-template-columns:minmax(0,1fr); gap:8px; }
    .dashboard-mini-legend { gap:8px 12px; }
}

/* Student subject filters and prominent individual deadlines. */
.student-workspace .page-heading { margin-bottom:22px; }
.student-workspace .page-heading p { font-size:13px; }
.student-subject-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 26px; }
.student-subject-tabs>a { display:inline-flex; align-items:center; gap:10px; min-width:0; max-width:100%; padding:9px 12px; border:1px solid #dce5ed; border-radius:9px; color:#5a7387; background:#fff; font-size:12px; font-weight:550; }
.student-subject-tabs>a>span { min-width:0; max-width:270px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.student-subject-tabs b { min-width:22px; padding:2px 5px; border-radius:5px; color:#8b9ba7; background:#f1f5f8; font-size:10px; font-weight:650; text-align:center; font-variant-numeric:tabular-nums; }
.student-subject-tabs>a:hover { border-color:#aac8da; background:#f5f9fc; }
.student-subject-tabs>a.active { border-color:#366582; color:#fff; background:#366582; }
.student-subject-tabs>a.active b { color:#e5f1f9; background:rgb(255 255 255 / 15%); }
.student-workspace .lab-grid { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; }
.student-workspace .lab-card { min-width:0; border-radius:12px; }
.student-workspace .lab-card h2 { margin-bottom:6px; font-size:20px; }
.student-workspace .student-deadline { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:14px 0 17px; padding:13px 12px; border:1px solid #c3d8e8; border-left:3px solid #4f819f; border-radius:9px; color:#2f617f; background:#eef6fb; }
.student-deadline-icon { display:grid; flex:none; place-items:center; width:34px; height:36px; border:1px solid rgb(71 117 148 / 13%); border-radius:7px; background:rgb(255 255 255 / 72%); }
.student-deadline>div { flex:1; min-width:126px; }
.student-deadline-label { display:block; margin-bottom:3px; font-size:9px; font-weight:700; letter-spacing:.065em; text-transform:uppercase; }
.student-deadline strong { display:block; font-size:23px; font-weight:750; line-height:1.15; letter-spacing:-.025em; font-variant-numeric:tabular-nums; }
.student-workspace .student-deadline-correction { color:#8b621d; border-color:#ead4a9; border-left-color:#c59b4d; background:#fff8eb; }
.student-workspace .student-deadline-overdue { color:#a13d37; border-color:#edc4bf; border-left-color:#c96b60; background:#fff3f1; }
.student-deadline-alert { flex:none; margin-left:auto; padding:4px 6px; border:1px solid #e4b2ac; border-radius:5px; color:#ad4a41; background:#fff9f8; font-size:9px; font-weight:650; white-space:nowrap; }
.student-workspace .student-deadline-unknown { color:#7b8d9b; border-color:#dfe6ec; border-left-color:#becbd6; background:#f7f9fb; }
.student-deadline-unknown strong { font-size:14px; letter-spacing:0; }
.student-workspace .lab-card .upload-form { min-width:0; }
.student-workspace .lab-card input[type=file] { width:100%; min-width:0; }
@media(max-width:1100px) {
    .student-workspace .lab-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
    .student-workspace .lab-grid { grid-template-columns:minmax(0,1fr); }
    .student-subject-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .student-subject-tabs>a { max-width:none; padding:9px 10px; gap:7px; }
    .student-subject-tabs>a>span { flex:1; }
    .student-workspace .student-deadline { padding:13px 12px; }
    .student-deadline strong { font-size:24px; }
}

/* Readable student laboratory cards and personal report downloads. */
.student-workspace .lab-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:stretch; }
.student-workspace .student-lab-card { display:flex; flex-direction:column; padding:0; overflow:hidden; border:1px solid #dce5ec; border-radius:14px; box-shadow:0 5px 20px rgb(29 57 78 / 4%); }
.student-lab-header { padding:18px 18px 0; }
.student-lab-header .lab-top { gap:10px; margin-bottom:15px; }
.student-lab-number { padding:4px 8px; border:1px solid #e0e7ed; border-radius:6px; color:#6e8495; background:#f7f9fb; font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }
.student-lab-header .status { padding:4px 9px; font-size:10px; font-weight:650; }
.student-lab-header .status>span { width:13px; height:13px; font-size:10px; }
.student-workspace .student-lab-header h2 { margin:0; color:#29485f; font-size:20px; font-weight:650; line-height:1.3; letter-spacing:-.025em; overflow-wrap:anywhere; }
.student-lab-subject { margin:5px 0 0; color:#63798b; font-size:12px; }
.student-lab-body { flex:1; min-width:0; padding:0 18px 18px; }
.student-workspace .student-lab-card .student-deadline { margin:17px 0 20px; }
.student-workspace .student-lab-card .student-materials { margin:0; padding:0; border:0; border-radius:0; background:transparent; }
.student-materials h3 { margin:0 0 10px; color:#60778a; font-size:10px; font-weight:700; letter-spacing:.055em; text-transform:uppercase; }
.student-lab-card .student-materials ul { display:grid; gap:6px; margin:0; padding:0; }
.student-lab-card .student-materials li+li { margin:0; }
.student-resource { display:flex; align-items:center; gap:10px; padding:10px 11px; border:1px solid #e3eaf0; border-radius:8px; color:#4b6a80; background:#fafcfd; }
.student-resource>span:nth-child(2) { flex:1; min-width:0; font-size:12px; font-weight:550; line-height:1.45; overflow-wrap:anywhere; }
.student-resource>svg { flex:none; color:#96a9b7; }
.student-resource:hover { border-color:#bfd6e3; background:#f0f7fb; }
.student-file-type { display:grid; flex:none; place-items:center; min-width:33px; height:33px; padding:0 5px; border:1px solid #e0e8ee; border-radius:6px; color:#7190a3; background:#fff; font-size:8px; font-weight:700; letter-spacing:.025em; }
.student-materials-empty { margin:0; padding:12px 0; color:#64798b; font-size:12px; }
.student-submission { margin-top:20px; padding:14px; border:1px solid #d5e3ec; border-radius:10px; background:#fbfdfe; }
.student-submission-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.student-submission-heading h3 { margin:0; color:#4b687e; font-size:12px; font-weight:650; }
.student-submission-heading .student-timing { margin:0; padding:3px 7px; font-size:10px; }
.student-submission-next { border-color:#eadcc1; border-left:3px solid #cfb276; background:#fffdf8; }
.student-submission-later { border-color:#ead2cf; border-left:3px solid #c98d83; background:#fffbfa; }
.student-submission-next .student-own-file>div>span { color:#8b713e; }
.student-submission-later .student-own-file>div>span { color:#9e6259; }
.student-submission-next .student-timing,.student-submission-later .student-timing { display:inline-flex; align-items:center; gap:5px; }
.student-submission-next .student-timing::before,.student-submission-later .student-timing::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; }
.student-own-file { display:flex; align-items:center; gap:10px; margin:13px 0; }
.student-own-file>div { flex:1; min-width:0; }
.student-own-file strong { display:block; color:#35566c; font-size:12px; font-weight:600; line-height:1.45; overflow-wrap:anywhere; }
.student-own-file>div>span { display:block; margin-top:3px; color:#62778a; font-size:10px; font-variant-numeric:tabular-nums; }
.student-workspace .student-download { display:flex; align-items:center; gap:8px; width:100%; min-height:37px; padding:8px 11px; border-color:#c1d7e5; border-radius:7px; background:#fff; font-size:12px; font-weight:600; }
.student-workspace .student-download:hover { color:#315d78; background:#edf6fb; }
.student-lab-card .review-result { margin-top:14px; padding:12px 13px; border-radius:8px; }
.student-lab-card .review-result>strong { font-size:12px; font-weight:650; }
.student-lab-card .review-result p { font-size:12px; line-height:1.65; }
.student-workspace .student-lab-card .ai-result { margin:17px 0 0; padding:15px 0 0; border:0; border-top:1px solid #e6edf2; border-radius:0; background:transparent; }
.student-workspace .student-lab-card .ai-result-label { margin-bottom:7px; color:#64798b; font-size:9px; letter-spacing:.045em; }
.student-lab-card .ai-result>strong { color:#586f82; font-size:12px; font-weight:550; }
.student-workspace .student-lab-card .ai-result small { margin-top:6px; color:#64798b; font-size:11px; line-height:1.55; }
.student-workspace .student-lab-card .ai-result-score strong { font-size:28px; }
.student-workspace .student-lab-card .upload-form { margin:0; padding:16px 18px 18px; border-top:1px solid #e5ecf1; background:#f8fafc; }
.student-lab-card .upload-form label { display:block; margin:0 0 8px; color:#6a8295; font-size:11px; font-weight:650; }
.student-workspace .student-lab-card .upload-form input[type=file] { width:100%; min-height:42px; padding:7px; border:1px solid #dbe5ed; border-radius:8px; background:#fff; font-size:12px; }
.student-lab-card .upload-form input[type=file]::file-selector-button { padding:6px 9px; margin-right:9px; border-radius:5px; font-size:11px; }
.student-lab-card .upload-form .upload-hint { display:block; margin:9px 0 0; color:#64798b; font-size:10px; line-height:1.55; }
.student-workspace .student-lab-card .upload-form .button { width:100%; min-height:40px; margin-top:12px; border-radius:8px; font-size:12px; }
.student-awaiting-file { margin:18px 0 0; padding:12px; border:1px dashed #dde6ed; border-radius:8px; color:#64798b; font-size:12px; text-align:center; }
@media(max-width:1100px) {
    .student-workspace .lab-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
    .student-workspace .lab-grid { grid-template-columns:minmax(0,1fr); gap:15px; }
    .student-lab-header { padding:18px 18px 0; }
    .student-lab-body { padding:0 18px 18px; }
    .student-workspace .student-lab-header h2 { font-size:21px; }
    .student-workspace .student-lab-card .upload-form { padding:16px 18px 18px; }
    .student-submission { padding:12px; }
}

.overview-table tbody td { vertical-align:top; }
.overview-absence { display:grid; grid-template-columns:minmax(0,1fr); justify-items:center; align-content:start; gap:3px; width:150px; max-width:100%; min-height:0; margin:4px auto 0; font-size:10px; line-height:1.4; text-align:center; white-space:normal; }
.overview-absence-button { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-height:20px; max-width:100%; padding:1px 4px; border:1px solid transparent; border-radius:5px; background:transparent; color:#617183; font:inherit; font-weight:500; cursor:pointer; white-space:nowrap; transition:background .15s,border-color .15s; }
.overview-absence-button::before { content:'+'; font-size:13px; line-height:1; }
.overview-absence-button:hover { border-color:#9cb2c7; background:#f3f7fb; color:#285e84; }
.overview-absence-button:focus-visible { outline:2px solid #5686b0; outline-offset:2px; }
.overview-absence-button:disabled { opacity:.5; cursor:default; }
.overview-absence.has-absence .overview-absence-button { background:#edf4fb; border-color:#c9daea; color:#285e84; }
.overview-absence.has-absence .overview-absence-button::before { content:'✓'; font-size:11px; }
.overview-absence small { max-width:100%; font-size:10px; line-height:1.4; color:#64748b; white-space:normal; }
.overview-absence .overview-absence-deadline { color:#526e86; font-variant-numeric:tabular-nums; }
.overview-absence .overview-absence-error { color:#a33c35; }
.overview-absence [hidden] { display:none; }

.student-workspace .student-lab-card .upload-form { margin-top:auto; }

.student-workspace .student-deadline { position:relative; }
.student-absence-tag { position:absolute; top:-12px; right:10px; padding:3px 9px; border:1px solid #c3d8e8; border-radius:6px; color:#2f617f; background:#eef6fb; font-size:11px; font-weight:700; line-height:1.4; white-space:nowrap; letter-spacing:0; }

.report-review-group { margin:0 0 28px; }
.report-review-group-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px; padding:10px 0; border-bottom:1px solid #dce5ed; }
.report-review-group-heading h3 { display:flex; align-items:center; gap:9px; margin:0; color:#29485f; font-size:15px; font-weight:650; }
.report-review-group-heading h3::before { content:''; width:7px; height:7px; border-radius:50%; background:#b1812e; }
.report-review-group-reviewed .report-review-group-heading h3::before { background:#4b8c72; }
.report-review-group-heading h3>span { padding:2px 7px; border-radius:6px; background:#eaf0f5; color:#597084; font-size:11px; font-variant-numeric:tabular-nums; }
.report-review-group-heading small { color:#788795; font-size:11px; }
.report-group-empty { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin:0; padding:14px 16px; border:1px dashed #dce5ed; border-radius:9px; color:#738494; font-size:12px; }

.report-review-group-reviewed>summary { cursor:pointer; list-style:none; padding:10px 12px; border-radius:8px; background:#f3f7f9; }
.report-review-group-reviewed>summary::-webkit-details-marker { display:none; }
.report-review-group-reviewed>summary::after { content:''; flex:none; width:7px; height:7px; margin-left:auto; border-right:2px solid #718493; border-bottom:2px solid #718493; transform:rotate(-45deg); }
.report-review-group-reviewed[open]>summary::after { transform:rotate(45deg); }
.report-review-group-reviewed>summary:hover { background:#eaf1f5; }
.report-review-group-reviewed>summary:focus-visible { outline:2px solid #5686b0; outline-offset:3px; }
.report-review-group-reviewed:not([open])>summary { margin-bottom:0; }

/* Readable progress matrix with moderate spacing. */
.overview-table thead th { min-width:168px; padding:12px 10px; }
.overview-table thead th:first-child,.overview-table .overview-student { width:210px; min-width:210px; max-width:250px; }
.overview-table .overview-student { padding:10px 14px; font-size:13px; line-height:1.5; }
.overview-table .overview-student span { margin-top:4px; font-size:11px; }
.overview-table td { padding:9px 10px; }
.overview-table .overview-status { display:inline-flex; flex-direction:column; align-items:center; gap:4px; min-width:144px; min-height:42px; padding:6px 10px; border-radius:7px; font-size:12px; font-weight:650; line-height:1.35; }
.overview-table .overview-status .overview-date { padding:2px 6px; font-size:11px; font-weight:600; }
.overview-table .overview-status small { font-size:10px; line-height:1.4; font-weight:500; }
.overview-table .overview-passed { border-color:#bad8c7; background:#f0f8f3; }
.overview-table .overview-correction { border-color:#e1c49e; background:#fff7ed; }
.overview-table .overview-missing { border-color:#e4c7c3; background:#fcf4f3; }
.overview-table .overview-submitted { border-color:#c4d7e3; background:#f0f6fa; }
.overview-table .overview-absence { width:160px; gap:4px; margin-top:6px; font-size:11px; }
.overview-table .overview-absence-button { min-height:22px; padding:2px 5px; }
.overview-table .overview-absence small { font-size:10px; }

.student-lab-header .student-status-pending { color:#315f91; border-color:#bcd0e6; background:#edf4fc; }
.student-lab-header .student-status-pending>span { background:#4f7ca9; }
.student-workspace .student-lab-state-pending { border-top:3px solid #7fa6cb; }
.student-workspace .student-lab-state-passed { border-top:3px solid #75a48a; }
.student-workspace .student-lab-state-correction { border-top:3px solid #d0a064; }
.student-workspace .student-lab-state-missing { border-top:3px solid #dce5ec; }
.student-archive-tag { display:inline-block; margin-left:5px; padding:1px 5px; border:1px solid #dce5ed; border-radius:4px; color:#758394; font-size:10px; }
.student-review-panel { margin:0 0 20px; padding:13px; border:1px solid #bfd3e6; border-radius:9px; color:#315f91; background:#f0f6fc; }
.student-review-passed { color:#246a47; border-color:#b9d9c7; background:#edf7f1; }
.student-review-correction { color:#915b1f; border-color:#e4c89f; background:#fff7ec; }
.student-review-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.student-review-heading>strong { font-size:13px; font-weight:700; line-height:1.45; }
.student-review-grade { flex:none; padding:3px 7px; border:1px solid currentColor; border-radius:5px; font-size:12px; font-weight:700; }
.student-review-caption { margin:7px 0 0; color:#58758f; font-size:12px; line-height:1.55; }
.student-review-feedback { margin-top:11px; padding:10px 0 0; border:0; border-top:1px solid rgb(42 80 61 / 12%); border-radius:0; background:transparent; }
.student-review-feedback h3 { margin:0 0 6px; color:#617084; font-size:10px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; }
.student-review-feedback p { margin:0; color:#263c4e; font-size:13px; line-height:1.65; overflow-wrap:anywhere; }

.student-late-note { margin:-2px 0 13px; color:#8a693a; font-size:11px; line-height:1.55; }
.student-submission-later .student-late-note { color:#9a5d52; }
