:root{font-family:Inter,Noto Sans SC,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#19332f;background:#edf4f1;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}.visually-hidden{position:absolute;overflow:hidden;width:1px;height:1px;margin:-1px;padding:0;border:0;clip:rect(0 0 0 0);white-space:nowrap}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea{font:inherit}.shell{min-height:100vh;display:grid;align-content:center;gap:32px;width:min(1040px,calc(100% - 48px));margin:0 auto;padding:56px 0 32px}.shell--portal{align-content:start;width:min(1180px,calc(100% - 48px))}.portal-header{position:relative;overflow:hidden;padding:clamp(32px,6vw,64px);border:1px solid rgb(25 80 71 / 12%);border-radius:28px;background:#f9fcfb;box-shadow:0 24px 70px #204f461a}.shell--student .portal-header{background:linear-gradient(135deg,#f8fcfb,#e6f4ef)}.shell--teacher .portal-header{background:linear-gradient(135deg,#fbfcf8,#eef1e3)}.portal-header h1{font-size:clamp(34px,5vw,58px)}.eyebrow{margin:0 0 16px;color:#147866;font-size:12px;font-weight:750;letter-spacing:.16em}h1{max-width:760px;margin:0;color:#153d36;font-size:clamp(36px,6vw,68px);line-height:1.12;letter-spacing:-.04em}.auth-card{width:min(100%,560px);margin:0 auto;padding:clamp(24px,5vw,40px);border:1px solid rgb(25 80 71 / 12%);border-radius:24px;background:#fff;box-shadow:0 18px 50px #204f4614}.authenticated-area{display:grid;gap:28px}.teacher-area{display:grid;gap:14px}.teacher-tabs{display:flex;gap:6px;width:fit-content;padding:5px;border:1px solid rgb(25 80 71 / 10%);border-radius:14px;background:#ffffffb8}.teacher-tabs button{border:0;border-radius:10px;padding:10px 16px;color:#526b66;background:transparent;font-weight:700;cursor:pointer}.teacher-tabs button.is-active{color:#fff;background:#176f60}.auth-card--account{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%}.auth-card--account .account-meta{margin-bottom:0}.auth-card--loading{color:#647a75;text-align:center}.auth-card--mismatch{text-align:left}.auth-card__actions{display:flex;flex-wrap:wrap;gap:12px}.auth-card h2{margin:10px 0 8px;font-size:25px}.auth-card__hint,.account-meta{margin:0 0 22px;color:#647a75;line-height:1.6}.auth-card form{display:grid;gap:16px}.auth-alternative{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 12px;margin:2px 0 0;color:#647a75;font-size:14px;text-align:center}.auth-alternative button{border:0;padding:0;color:#176f60;background:transparent;font-weight:700;cursor:pointer}.auth-alternative button:hover{text-decoration:underline}.auth-card label{display:grid;gap:7px;color:#334d48;font-size:14px;font-weight:650}.auth-card input,.auth-card select{width:100%;height:46px;border:1px solid #cbd9d6;border-radius:11px;padding:0 13px;color:#19332f;background:#fbfdfc;outline:none}.auth-card input:focus,.auth-card select:focus{border-color:#16816d;box-shadow:0 0 0 3px #16816d1f}.password-form-field{display:grid;gap:7px}.password-field{position:relative;display:block}.auth-card .password-field input{padding-right:48px}.password-visibility{position:absolute;top:50%;right:5px;display:grid;width:36px;height:36px;padding:0;transform:translateY(-50%);place-items:center;border:0;border-radius:8px;color:#526b66;background:transparent;cursor:pointer}.password-visibility:hover{color:#176f60;background:#edf5f2}.password-visibility:focus-visible{outline:2px solid #16816d;outline-offset:1px}.password-visibility svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.verification-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.verification-field .button{white-space:nowrap}.confirmation-overlay{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:24px;background:#0c231f7a;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.confirmation-dialog{width:min(100%,420px);padding:28px;border:1px solid rgb(25 80 71 / 14%);border-radius:20px;background:#fff;box-shadow:0 24px 80px #0c231f3d}.confirmation-dialog h2{margin:0 0 20px;color:#153d36;font-size:22px}.confirmation-dialog p{margin:0;color:#526b66;line-height:1.6}.confirmation-dialog__email{display:block;overflow-wrap:anywhere;margin:8px 0 14px;color:#19332f;font-size:17px}.confirmation-dialog .confirmation-dialog__hint{color:#70847f;font-size:14px}.class-create-dialog form,.class-create-dialog label{display:grid;gap:8px}.class-create-dialog label{color:#334d48;font-size:14px;font-weight:650}.class-create-dialog input{width:100%;min-height:46px;border:1px solid #cbd9d6;border-radius:11px;padding:0 13px;color:#19332f;background:#fbfdfc;outline:none}.class-create-dialog input:focus{border-color:#16816d;box-shadow:0 0 0 3px #16816d1f}.confirmation-dialog__actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}.button{min-height:46px;border:0;border-radius:11px;padding:0 20px;color:#fff;background:#176f60;font-weight:700;cursor:pointer}.button:hover:not(:disabled){background:#105f52}.button:disabled{cursor:wait;opacity:.64}.button--secondary{color:#176f60;background:#e8f2ef}.button--link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.form-error{margin:0;color:#a64034;font-size:14px}.form-success{margin:0;padding:12px 15px;border-radius:11px;color:#126047;background:#daf4e8;font-size:14px}.teacher-workspace,.student-workspace,.student-workbench,.case-editor{display:grid;gap:24px;padding:clamp(24px,4vw,40px);border:1px solid rgb(25 80 71 / 12%);border-radius:28px;background:#f9fcfb;box-shadow:0 18px 50px #204f4614}.workspace-header,.case-editor__header,.repeat-item__header{display:flex;align-items:center;justify-content:space-between;gap:20px}.workspace-header h2,.case-editor__header h2{margin:0;font-size:clamp(26px,4vw,38px)}.workspace-header p:not(.eyebrow){margin:9px 0 0;color:#647a75}.assignment-list{display:grid;gap:12px}.assignment-list>article{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;border:1px solid #dbe7e3;border-radius:16px;background:#fff}.assignment-list h3,.assignment-list p{margin:4px 0 0}.assignment-list>article>div>span,.assignment-list p,.assignment-list__action>span,.workbench-header p,.message span,.stage-form p{color:#647a75;font-size:13px}.assignment-list__action{display:grid;justify-items:end;gap:10px}.workbench-header{display:flex;align-items:end;justify-content:space-between;gap:20px}.workbench-header h2{margin:16px 0 6px;font-size:clamp(26px,4vw,38px)}.workbench-header p{margin:0}.exam-timer{display:grid;min-width:140px;padding:14px 18px;border-radius:14px;color:#176f60;background:#e5f3ef;text-align:right}.exam-timer span{font-size:12px}.exam-timer strong{font-size:28px;font-variant-numeric:tabular-nums}.exam-timer.is-urgent{color:#a64034;background:#fbe8e5}.exam-notice{padding:13px 16px;border-radius:12px;color:#6d5c3e;background:#fff5d9;font-size:13px}.conversation{display:grid;gap:12px;max-height:520px;overflow-y:auto;padding:20px;border:1px solid #dbe7e3;border-radius:18px;background:#fff}.message{width:min(82%,620px);padding:14px 16px;border-radius:15px;background:#edf4f1}.message--student{justify-self:end;color:#fff;background:#176f60}.message--student span{color:#d8eee8}.message p{margin:5px 0 0;line-height:1.65;white-space:pre-wrap}.message small{color:#f8d1cb}.question-form,.stage-form,.feedback-card{display:grid;gap:12px;padding:20px;border:1px solid #dbe7e3;border-radius:16px;background:#fff}.question-form label{font-weight:700}.question-form>div{display:grid;grid-template-columns:1fr auto;gap:10px}.question-form input,.stage-form textarea{width:100%;border:1px solid #cbd9d6;border-radius:10px;padding:11px 13px;color:#19332f;background:#fbfdfc}.stage-form h3,.stage-form p,.feedback-card h3,.feedback-content h4,.feedback-content p{margin:0}.stage-form .button,.feedback-card .button{justify-self:end}.feedback-content{display:grid;gap:10px;padding-top:8px}.feedback-score,.record-score{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;padding:16px;border-radius:14px;color:#176f60;background:#e5f3ef}.feedback-score strong,.record-score strong{font-size:32px}.feedback-score small,.record-score small{flex-basis:100%;color:#647a75}.feedback-items,.score-evidence-list,.submission-records{display:grid;gap:10px}.feedback-items article,.score-evidence-list article,.submission-records article{display:grid;gap:8px;padding:14px;border:1px solid #dbe7e3;border-radius:12px;background:#fbfdfc}.feedback-items article>div,.score-evidence-list article header{display:flex;align-items:center;justify-content:space-between;gap:12px}.feedback-items small,.score-evidence-list small{color:#647a75;white-space:pre-wrap}.management-form--single{width:min(100%,620px)}.compact-form,.assignment-form,.roster-card{display:grid;gap:14px;padding:22px;border:1px solid #dbe7e3;border-radius:18px;background:#fff}.compact-form h3,.roster-card h3,.roster-card p{margin:0}.compact-form label,.assignment-form label{display:grid;gap:7px;color:#334d48;font-size:14px;font-weight:650}.compact-form input,.compact-form select,.assignment-form input,.assignment-form select{width:100%;min-height:44px;border:1px solid #cbd9d6;border-radius:10px;padding:10px 12px;color:#19332f;background:#fff;outline:none}.compact-form input:focus,.compact-form select:focus,.assignment-form input:focus,.assignment-form select:focus{border-color:#16816d;box-shadow:0 0 0 3px #16816d1f}.compact-form .button,.assignment-form .button{justify-self:start}.assignment-form{grid-template-columns:repeat(2,minmax(0,1fr))}.assignment-form>.button,.assignment-form>.section-help{align-self:end}.class-list,.exam-list{display:grid;gap:14px}.class-list>article,.exam-list>article{display:grid;gap:16px;padding:20px;border:1px solid #dbe7e3;border-radius:16px;background:#fff}.class-list>article.class-list__item--inactive{border-color:#d6dddb;background:#f8faf9}.class-list header h3,.class-list header span,.class-list header p,.class-list>article>p,.exam-list h3,.exam-list p{margin:3px 0 0}.class-list__header{display:flex;align-items:center;justify-content:space-between;gap:20px}.class-list__header>div{display:grid;gap:3px}.class-list__header p{margin:0}.class-list__identity{display:flex;align-items:center;gap:9px}.class-list header .class-status{padding:3px 8px;border-radius:999px;color:#126047;background:#daf4e8;font-size:12px;font-weight:700}.class-list header .class-status--inactive{color:#526b66;background:#e3eae8}.class-list__header .class-list__actions{display:flex;align-items:center;gap:12px}.class-list header span,.class-list>article>p,.exam-list__header span,.exam-list p,.exam-list__actions>span,.roster-card>div>p,.roster-list span{color:#647a75;font-size:13px}.roster-list{display:grid;gap:8px}.roster-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-radius:11px;background:#f4f8f7}.roster-list article>div{display:grid;gap:3px}.roster-list article>.roster-list__actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}.roster-list__transfer-field{display:flex;align-items:center;gap:8px}.roster-list__transfer-field select{min-height:38px;border:1px solid #cbd9d6;border-radius:9px;padding:7px 10px;color:#19332f;background:#fff}.text-button--danger{color:#a64034}.student-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:14px;padding:20px;border:1px solid #dbe7e3;border-radius:18px;background:#fff}.student-filters label,.student-detail__class-editor label{display:grid;gap:7px;color:#334d48;font-size:14px;font-weight:650}.student-filters input,.student-filters select,.student-detail__class-editor select{width:100%;min-height:44px;border:1px solid #cbd9d6;border-radius:10px;padding:10px 12px;color:#19332f;background:#fff;outline:none}.student-filters input:focus,.student-filters select:focus,.student-detail__class-editor select:focus{border-color:#16816d;box-shadow:0 0 0 3px #16816d1f}.student-filters__actions{display:flex;gap:8px}.student-filters__actions .button{padding-inline:16px}.student-table-wrap{overflow-x:auto;border:1px solid #dbe7e3;border-radius:16px;background:#fff}.student-table{width:100%;min-width:820px;border-collapse:collapse}.student-table th,.student-table td{padding:15px 16px;border-bottom:1px solid #e2ebe8;text-align:left;vertical-align:middle}.student-table th{color:#647a75;background:#f3f8f6;font-size:12px;white-space:nowrap}.student-table td{color:#526b66;font-size:14px}.student-table td:first-child{color:#19332f}.student-table td:last-child{text-align:right;white-space:nowrap}.student-table tbody tr:last-child td{border-bottom:0}.student-status{display:inline-block;padding:4px 9px;border-radius:999px;color:#126047;background:#daf4e8;font-size:12px;font-weight:700;white-space:nowrap}.student-status--inactive{color:#526b66;background:#e3eae8}.student-detail{display:grid;gap:20px;padding:24px;border:1px solid #cbded8;border-radius:18px;background:#fff;box-shadow:0 12px 30px #204f4612}.student-detail>header{display:flex;align-items:start;justify-content:space-between;gap:20px}.student-detail>header span{color:#647a75;font-size:13px}.student-detail h3{margin:4px 0 0;font-size:24px}.student-detail__facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}.student-detail__facts div{min-width:0;padding:14px;border-radius:12px;background:#f3f8f6}.student-detail__facts dt{margin-bottom:6px;color:#647a75;font-size:12px}.student-detail__facts dd{overflow-wrap:anywhere;margin:0;color:#19332f;line-height:1.5}.student-detail>.button{justify-self:start}.student-detail__class-editor{display:flex;align-items:end;gap:10px}.student-detail__class-editor label{width:min(100%,360px)}.exam-list__header,.exam-list__actions{display:flex;align-items:center;justify-content:space-between;gap:18px}.task-state{padding:7px 11px;border-radius:999px;color:#126047!important;background:#daf4e8;white-space:nowrap}.task-state--closed{color:#526b66!important;background:#e8efed}.progress-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.progress-grid div{display:grid;gap:3px;padding:12px;border-radius:11px;background:#eef5f2;text-align:center}.progress-grid strong{font-size:22px}.progress-grid span{color:#647a75;font-size:12px}.exam-list__actions{justify-content:flex-end}.response-record{gap:20px}.record-section,.standard-reference{display:grid;gap:14px;padding:20px;border:1px solid #dbe7e3;border-radius:16px;background:#fff}.record-section h3,.record-section h4,.record-section>p,.standard-reference p{margin:0}.submission-records pre,.score-evidence-list pre{margin:0;overflow-x:auto;border-radius:9px;padding:10px;color:#334d48;background:#eef5f2;font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap}.score-evidence-list article header>div{display:grid;gap:3px}.score-evidence-list article header span{color:#647a75;font-size:12px}.teacher-review form,.teacher-review form>label{display:grid;gap:12px}.review-score-grid{display:grid;gap:10px}.review-score-grid article{display:grid;grid-template-columns:minmax(190px,1fr) minmax(110px,.35fr) minmax(260px,1fr);align-items:end;gap:12px;padding:14px;border:1px solid #dbe7e3;border-radius:12px;background:#fbfdfc}.review-score-grid article>div,.review-score-grid label{display:grid;gap:6px}.review-score-grid small{color:#647a75}.review-score-grid input,.teacher-review textarea{width:100%;border:1px solid #cbd9d6;border-radius:10px;padding:10px 12px;color:#19332f;background:#fff}.review-frozen{border-radius:10px;padding:12px 14px;color:#6d5c3e;background:#fff4d9}.ai-evaluation-panel{align-items:start}.ai-evaluation-panel>div:first-child{display:grid;gap:6px}.ai-evaluation-panel .button{justify-self:start}.ai-run-status,.ai-score-evidence{display:grid;gap:7px;border-left:4px solid #91a8a2;border-radius:8px;padding:12px 14px;background:#f3f8f6}.ai-run-status--succeeded{border-left-color:#16816d}.ai-run-status--failed{border-left-color:#b4584d;background:#fff5f3}.ai-run-status span,.ai-score-evidence small,.muted-copy{color:#647a75;font-size:13px}.ai-run-status p,.ai-score-evidence p{margin:0}.response-table-wrap{overflow-x:auto;border:1px solid #dbe7e3;border-radius:16px;background:#fff}.assignment-statistics,.statistics-issues,.statistics-summary{display:grid;gap:12px}.statistics-summary{grid-template-columns:repeat(5,minmax(0,1fr))}.statistics-summary article,.statistics-issues>article{display:grid;gap:7px;padding:16px;border:1px solid #dbe7e3;border-radius:14px;background:#fff}.statistics-summary strong{color:#176f60;font-size:24px}.statistics-summary span,.statistics-issues p{color:#647a75;font-size:13px}.statistics-issues{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics-issues h3,.statistics-issues p{margin:0}.statistics-issues p{display:flex;justify-content:space-between;gap:12px}.response-table{width:100%;border-collapse:collapse;min-width:680px}.response-table th,.response-table td{border-bottom:1px solid #e2ebe8;padding:14px 16px;text-align:left}.response-table th{color:#647a75;background:#f3f8f6;font-size:12px}.response-table tbody tr:last-child td{border-bottom:0}.response-table td:first-child{display:grid;gap:3px}.response-table td small{color:#647a75}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid label{display:grid;gap:7px;color:#334d48;font-size:14px;font-weight:650}.form-grid label small{color:#647a75;font-size:12px;font-weight:400;line-height:1.5}.form-grid input,.form-grid textarea,.form-grid select{width:100%;min-height:44px;border:1px solid #cbd9d6;border-radius:10px;padding:10px 12px;color:#19332f;background:#fff;outline:none}.form-grid textarea{resize:vertical}.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus{border-color:#16816d;box-shadow:0 0 0 3px #16816d1f}.form-grid__wide{grid-column:1 / -1}.form-grid .checkbox-field{display:flex;align-items:center;align-self:end;min-height:44px;flex-direction:row}.form-grid .checkbox-field input{width:auto;min-height:auto}.prompt-template-actions{display:flex;align-items:center;gap:14px}.prompt-template-actions span{color:#647a75;font-size:13px}.case-list{display:grid;gap:12px}.case-list>article{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;border:1px solid #dbe7e3;border-radius:16px;background:#fff}.case-list h3,.case-list p{margin:4px 0 0}.case-list>article>div>span,.case-list p,.case-list__meta>span,.save-state,.section-help{color:#647a75;font-size:13px}.case-list__meta{display:grid;justify-items:end;gap:10px}.empty-state{margin:0;padding:24px;border-radius:16px;color:#647a75;background:#ffffff9e;text-align:center}.text-button,.repeat-item__header button{border:0;padding:0;color:#176f60;background:transparent;cursor:pointer}.case-editor__header .eyebrow{margin-top:16px}.case-editor__actions{display:flex;align-items:center;gap:16px}.case-editor__actions .save-state{text-align:right}.case-editor__layout{display:grid;grid-template-columns:minmax(160px,190px) minmax(0,1fr);align-items:start;gap:24px}.editor-steps{position:sticky;top:24px;display:grid;gap:7px;border:1px solid #dbe7e3;border-radius:18px;padding:12px;background:#fff}.editor-steps p{margin:2px 8px 7px;color:#334d48;font-size:13px;font-weight:750}.editor-steps a{display:flex;align-items:center;gap:10px;border:1px solid transparent;border-radius:11px;padding:10px;color:#70847f;background:#f3f7f6;text-decoration:none;transition:border-color .15s ease,background .15s ease,color .15s ease}.editor-steps a:hover,.editor-steps a:focus-visible{border-color:#c9ddd7;color:#176f60;background:#eaf4f1;outline:none}.editor-steps a span{display:grid;flex:0 0 auto;place-items:center;width:24px;height:24px;border-radius:50%;background:#d6e2df;font-size:12px;font-weight:750}.editor-content{display:grid;min-width:0;gap:24px}.editor-card{display:grid;gap:22px;scroll-margin-top:24px;padding:clamp(20px,4vw,32px);border:1px solid #dbe7e3;border-radius:20px;background:#fff}.editor-card:target{border-color:#83b7aa;box-shadow:0 0 0 3px #16816d17}.editor-card h3,.section-help{margin:0}.repeat-list{display:grid;gap:16px}.repeat-item{display:grid;gap:18px;padding:20px;border:1px solid #dbe7e3;border-radius:14px;background:#fbfdfc}.repeat-item__header button{color:#a64034}.editor-error{text-align:right}@media(max-width:900px){.case-editor__layout{grid-template-columns:1fr}.editor-steps{position:static}}@media(max-width:720px){.shell{width:min(100% - 28px,1040px);padding-top:24px}.auth-card--account,.workspace-header,.workbench-header,.assignment-list>article,.case-editor__header,.case-list>article{align-items:stretch;flex-direction:column}.form-grid,.assignment-form,.progress-grid,.statistics-summary,.statistics-issues,.student-filters,.student-detail__facts{grid-template-columns:1fr}.form-grid__wide{grid-column:auto}.case-editor__actions{align-items:stretch;flex-direction:column}.case-editor__actions .save-state{text-align:left}.case-list__meta,.assignment-list__action{justify-items:stretch}.exam-timer{text-align:left}.question-form>div{grid-template-columns:1fr}.teacher-tabs{display:grid;grid-template-columns:repeat(2,1fr);width:100%}.teacher-tabs button{padding-inline:8px}.class-list__header,.exam-list__header,.exam-list__actions,.roster-list article,.review-score-grid article{align-items:stretch;grid-template-columns:1fr;flex-direction:column}.roster-list article>.roster-list__actions,.roster-list__transfer-field,.student-detail__class-editor{align-items:stretch;flex-direction:column}.student-detail__class-editor label{width:100%}}
