:root{--paper:#f4f6f5;--white:#fff;--ink:#233238;--muted:#65747a;--line:#c7d1d4;--teal:#075f6e;--soft:#e8f0f1;--amber:#956116;--danger:#b73522;--head:64px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.55 'Microsoft YaHei','PingFang SC',Arial,sans-serif}a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:42px;padding:8px 18px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink);text-decoration:none;line-height:1.3}button:hover,.button:hover{border-color:var(--teal);background:var(--soft);text-decoration:none}button:disabled{cursor:default;opacity:.5}button.primary,.button.primary{background:var(--teal);border-color:var(--teal);color:white}button.primary:hover{background:#064e5b}button.link{border:0;padding:5px 8px;color:var(--teal);min-height:34px;background:transparent}.danger{color:var(--danger)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #c66a0a;outline-offset:3px}input,select,textarea{max-width:100%;min-width:0;border:1px solid #aebdc2;border-radius:4px;padding:10px 12px;background:#fff;color:var(--ink)}input:not([type=radio]):not([type=checkbox]),textarea{width:100%}textarea{min-height:94px;resize:vertical}input[type=radio],input[type=checkbox]{width:19px;height:19px;accent-color:var(--teal);flex:none}label{display:block;margin:0 0 16px}label>input,label>textarea{margin-top:7px}h1,h2,h3,p{margin:0 0 14px}h1{font-size:clamp(28px,2.35vw,40px);line-height:1.25;font-weight:750;letter-spacing:-.03em}h2{font-size:23px;line-height:1.35}h3{font-size:19px;line-height:1.5}.small{font-size:14px}.muted{color:var(--muted)}.topbar{min-height:var(--head);display:flex;align-items:center;gap:20px;padding:12px max(24px,calc((100vw - 1408px)/2));border-bottom:1px solid var(--line);background:#fff}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap;color:var(--ink)}.brand strong{font-size:23px}.brand svg{width:29px;height:34px;fill:none;stroke:var(--teal);stroke-width:2}.subbrand{font-size:16px;border-left:1px solid var(--line);padding-left:20px;color:var(--muted)}nav{display:flex;align-items:center;gap:20px;margin-left:auto;font-size:15px}nav button{font-size:15px;border:0;min-height:30px;padding:3px 0;background:none}nav a.current{border-bottom:3px solid var(--teal);padding-bottom:8px}#notice{position:fixed;top:76px;left:50%;transform:translateX(-50%);max-width:90vw;width:max-content;padding:12px 22px;background:#fff;border:1px solid var(--teal);box-shadow:0 4px 24px #23323822;z-index:20}#notice.error{border-color:var(--danger);color:var(--danger)}.workspace{width:calc(100% - 80px);max-width:1408px;margin:32px auto 50px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.page-heading p{color:var(--muted)}.tabs{display:flex;gap:8px;margin:8px 0 0;flex-wrap:wrap}.tabs button{min-width:165px;border-radius:4px 4px 0 0;padding:12px 28px;background:transparent;font-size:18px}.tabs .active{color:white;background:var(--teal);border-color:var(--teal);font-weight:bold}.stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);background:#fff;border-radius:0 4px 4px;margin-bottom:18px;padding:20px}.stat{padding:0 28px;border-right:1px solid var(--line)}.stat:last-child{border-right:0}.stat span{display:block;color:var(--muted);font-size:15px}.stat strong{display:block;font-size:30px;line-height:1.4}.workgrid{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);gap:18px;margin-bottom:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:4px;padding:24px;min-width:0}.control-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.control-row select{flex:1;min-width:200px;max-width:100%;height:44px}.control-row button{padding:8px 14px}.secondary-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.secondary-actions button{font-size:14px;min-height:36px;padding:6px 12px}.question-preview{padding:16px 20px;background:#edf2f3;margin:16px 0}.question-preview p{margin:0}.empty{min-height:140px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);text-align:center;padding:26px;border:1px solid #dce2e2;border-radius:4px;margin:0}.empty strong{font-weight:500;font-size:19px}.empty p{font-size:14px;margin:8px 0 0}.hint-panel{display:flex;flex-direction:column}.hint-panel .empty{flex:1;border:0;min-height:180px}.bar-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(70px,1.25fr) 45px;align-items:center;gap:12px;margin:12px 0;font-size:15px}.track{height:12px;background:#eaf0f1}.bar{height:100%;background:var(--teal);min-width:0}.table-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.table-heading h2{margin:0}.table-heading input{width:260px!important}.tools{display:flex;align-items:center;gap:12px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:15px}th,td{text-align:left;padding:10px 16px;border-bottom:1px solid #dce2e2;vertical-align:top}th{color:#4b606b;background:#eaf0f2;font-weight:600;white-space:nowrap}tbody tr:hover{background:#f6f9f8}.auth-shell{display:grid;grid-template-columns:1.15fr 1fr;gap:80px;max-width:1100px;width:calc(100% - 60px);margin:9vh auto;align-items:center}.auth-intro h1{font-size:clamp(36px,4vw,58px);line-height:1.4;color:var(--teal)}.auth-intro>p{font-size:21px}.auth-intro .muted{font-size:17px;max-width:430px}.learning-flow{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;padding:18px 0;margin:28px 0}.auth-panel{padding:36px;background:white;border:1px solid var(--line);border-radius:4px}.auth-panel h2{font-size:27px}.full{width:100%}.privacy{font-size:14px;color:var(--muted);margin-top:24px}.privacy p{margin-top:12px}.form-error{color:var(--danger);font-size:15px;margin-top:14px;min-height:1em}.narrow{max-width:580px;width:calc(100% - 32px);margin:48px auto}.narrow h1{font-size:30px}.student-layout{max-width:1000px;margin:0 auto}.student-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:22px 0}.question{margin:18px 0}.question h2{font-size:23px}.question-meta{display:flex;align-items:center;gap:16px;color:var(--muted);font-size:14px;margin-bottom:10px}.state{color:var(--teal);font-weight:600}.choices{display:grid;gap:10px;margin:16px 0}.choice{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:4px;padding:13px 16px;margin:0;background:white;font-size:18px;cursor:pointer}.choice:has(input:checked){border-color:var(--teal);background:#eaf3f3}.choice:has(input:disabled){cursor:default}.choice input{margin-top:5px}.inline-choices{display:flex;gap:18px;flex-wrap:wrap}.inline-choices label{display:flex;gap:8px;align-items:center;margin:8px 0}.classification{display:grid;grid-template-columns:1fr 1fr;gap:12px}.class-item{border-bottom:1px solid var(--line);padding:12px}.class-item .inline-choices{font-size:17px;gap:12px}.answer-feedback{background:#eaf3f1;border-left:4px solid var(--teal);padding:16px 18px;margin-top:20px}.answer-feedback p:last-child{margin:0}.question-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:12px}.figures{max-width:780px;margin:16px auto;--teal:#075f6e;--danger:#b73522}.figures svg{width:100%;height:auto;max-height:400px;display:block}.chart-grid{stroke:#dce2e2;stroke-width:1}.chart-axis{stroke:#68777b;stroke-width:2}.freq-line{stroke:#075f6e;stroke-width:3;fill:none}.guide{stroke:#c66a0a;stroke-width:2;stroke-dasharray:6 5}.figures .reveal{visibility:hidden}.reflection-grid{display:grid;grid-template-columns:1fr;gap:0}.profile-intro{padding:18px 0;border-bottom:1px solid var(--line)}.dimension{padding:18px 0;border-bottom:1px solid var(--line)}.dimension h3{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.dimension h3 span{font-size:15px;color:var(--muted);font-weight:400}.dimension p{font-size:16px;margin-bottom:0}.profile-stage{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}.profile-stage div{padding:12px 0;border-bottom:2px solid var(--line)}.profile-stage strong{display:block;font-size:25px}.evidence{padding:16px 0;border-bottom:1px solid var(--line)}.evidence p{margin:5px 0;font-size:15px}.note{padding:16px;background:#f0f5f4;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}.profile-section{margin-top:28px}.teacher-only{color:var(--muted);font-size:14px}dialog{width:min(940px,calc(100% - 32px));max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:6px;padding:28px;color:var(--ink);background:white}dialog::backdrop{background:#172b3666}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line);margin-bottom:16px;padding-bottom:12px}.dialog-head h2{margin:0}.credential{font-family:monospace;padding:20px;background:#eef3f4;overflow-wrap:anywhere;font-size:20px}.feedback-note{white-space:pre-wrap;overflow-wrap:anywhere}.student-summary>p{margin:0}.inline-notice{padding:12px 16px;background:#fff5e5;border-left:3px solid #956116;font-size:15px;margin:18px 0}details>summary{cursor:pointer;color:var(--teal)}fieldset{padding:0;border:0;min-width:0}legend{font-size:17px;margin-bottom:8px}.sync-error{color:var(--danger)!important}
@media(min-width:1700px){body{font-size:19px}.workspace{max-width:1660px;margin-top:42px}.panel{padding:28px}th,td{font-size:18px;padding:12px 18px}.bar-row{font-size:18px}button,input,select,textarea{font-size:18px}.stat strong{font-size:36px}.choice{font-size:21px}.question h2{font-size:27px}.student-layout{max-width:1150px}.topbar{padding-left:70px;padding-right:70px}.hint-panel .empty{min-height:220px}.teacher-only,.small{font-size:15px}}
@media(max-width:1100px){.subbrand{display:none}.workspace{width:calc(100% - 40px)}.workgrid{grid-template-columns:1fr}.hint-panel .empty{min-height:70px}.auth-shell{gap:35px}.table-heading{flex-wrap:wrap}.stat{padding:0 14px}.page-heading{align-items:flex-start}}
@media(max-width:650px){body{font-size:16px}.topbar{flex-wrap:wrap;padding:14px 18px;gap:12px}.brand strong{font-size:20px}.brand svg{width:24px;height:28px}nav{margin-left:0;width:100%;gap:16px;flex-wrap:wrap;font-size:14px}.workspace{width:calc(100% - 28px);margin:24px auto}.page-heading{display:block}.page-heading h1{font-size:28px}.tabs{gap:4px}.tabs button{min-width:0;flex:1;padding:12px 9px;font-size:16px}.stats{grid-template-columns:repeat(2,1fr);padding:8px 0;gap:10px}.stat{padding:8px 18px}.stat:nth-child(2){border:0}.stat strong{font-size:27px}.panel{padding:18px}.control-row select{width:100%;flex-basis:100%;font-size:15px}.control-row button{flex:1;padding:9px 6px}.secondary-actions button{font-size:13px}.table-heading .tools{width:100%;flex-wrap:wrap}.table-heading input{width:100%!important}.table-heading .tools>input{flex:1;min-width:130px}.tools .button{font-size:14px;padding:8px 12px}.auth-shell{display:block;margin:30px auto;width:calc(100% - 32px)}.auth-intro{margin-bottom:28px}.auth-intro h1{font-size:34px}.auth-intro>p{font-size:18px}.auth-intro .muted{display:none}.learning-flow{margin:18px 0;padding:12px 0;font-size:15px}.auth-panel{padding:24px}.classification{grid-template-columns:1fr}.choice{font-size:18px}.student-summary{align-items:flex-start}.question h2{font-size:22px}.figures svg{min-width:0}.profile-stage{gap:10px;font-size:14px}.profile-stage strong{font-size:22px}dialog{padding:20px}.bar-row{grid-template-columns:minmax(80px,1fr) minmax(50px,.8fr) 35px;font-size:14px;gap:8px}.question-actions{gap:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.roster-filters{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px;flex-wrap:wrap}.roster-filters input{max-width:320px}.roster-actions{display:flex;gap:8px;flex-wrap:wrap}.roster-actions button{font-size:14px;padding:7px 12px}.import-preview{max-height:330px;overflow:auto;margin:16px 0}.roster-credentials{overflow-wrap:anywhere}.roster-credentials td:last-child{font-family:monospace}.dialog-head{position:sticky;top:-28px;background:#fff;z-index:2;padding-top:12px}.roster-preview-error{color:var(--danger)}@media(max-width:650px){.roster-filters{display:block}.roster-filters input{max-width:none;margin-top:16px}.roster-actions{min-width:160px}.roster-credentials table{font-size:14px}.dialog-head{top:-20px}}

.roster-table{min-width:760px}.roster-table td:nth-child(-n+4){white-space:nowrap}@media(max-width:650px){#notice{top:auto;bottom:18px;pointer-events:none}}

.course-picker{align-items:center}.course-picker label{flex-shrink:0}.course-picker select{max-width:100%;min-width:0;flex:1;font:inherit;padding:10px;border:1px solid #b6c8cc;background:white;color:#173642;border-radius:4px}@media(max-width:600px){.course-picker{gap:6px!important}.course-picker select{width:100%;flex-basis:100%}}
.hw-card{margin:18px 0}.hw-card h2{margin-bottom:10px}.hw-desc{background:#f4f7f7;padding:14px 16px;border-radius:4px}.hw-current{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.hw-current h3 .small{font-weight:400}.hw-form{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.hw-files{margin:6px 0 12px;padding-left:20px}.hw-files li{margin:4px 0;overflow-wrap:anywhere}.inline-check{display:flex;gap:10px;align-items:center;margin:8px 0}.hw-keep{margin:0 0 14px}.hw-badge{display:inline-block;padding:2px 10px;border-radius:3px;font-size:14px;font-weight:600;white-space:nowrap}.hw-badge.open{background:#e2f0ee;color:var(--teal)}.hw-badge.draft{background:#eef1f2;color:var(--muted)}.hw-badge.closed{background:#fbeee0;color:var(--amber)}.hw-table{min-width:820px}.hw-table td a{overflow-wrap:anywhere}.hw-title{font-size:inherit;font-weight:600;padding:0;min-height:0;text-align:left}.homework-page .page-heading{margin-bottom:12px}.homework-page .question-meta{flex-wrap:wrap}@media(max-width:650px){.hw-table{min-width:640px}.homework-page .page-heading .button,.homework-page .page-heading button{margin-top:6px}}
