:root{color:#17324a;font-synthesis:none;--ink:#17324a;--muted:#647586;--line:#dbe4e8;--surface:#fff;--soft:#eff5f5;--brand:#087f78;--brand-dark:#0b5060;--orange:#ee7b2d;--danger:#b5473f;--shadow:0 18px 46px #17324a14;background:#f4f7f8;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}*{box-sizing:border-box}html{background:#f4f7f8;min-width:320px}body{background:#f4f7f8;min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}h1,h2,h3,p{margin-top:0}.splash{min-height:100vh;color:var(--muted);place-content:center;justify-items:center;gap:16px;display:grid}.logo{color:#fff;background:var(--orange);border-radius:13px;place-items:center;width:44px;height:44px;font-size:25px;font-weight:800;display:grid;box-shadow:0 10px 20px #ee7b2d3b}.brand-lock{align-items:center;gap:12px;display:flex}.brand-lock b{color:inherit;font-size:18px;display:block}.brand-lock small{color:#8aa0ad;margin-top:2px;display:block}.eyebrow{color:var(--brand);letter-spacing:.14em;text-transform:uppercase;margin-bottom:8px;font-size:12px;font-weight:800}.auth-page{background:#edf3f4;grid-template-columns:minmax(420px,1.05fr) minmax(420px,.95fr);min-height:100vh;display:grid}.auth-intro{color:#fff;background:linear-gradient(140deg,#0a3f56,#087f78);flex-direction:column;justify-content:center;padding:max(48px,min(8vw,120px));display:flex;position:relative;overflow:hidden}.auth-intro:after{content:"";border:74px solid #ffffff12;border-radius:50%;width:420px;height:420px;position:absolute;bottom:-170px;right:-140px}.auth-intro .brand-lock{margin-bottom:72px}.auth-intro .eyebrow{color:#9be0d8}.auth-intro h1{letter-spacing:-.05em;max-width:720px;margin-bottom:22px;font-size:max(42px,min(5vw,72px));line-height:1.08}.auth-intro>p:not(.eyebrow){color:#d9eff0;max-width:670px;font-size:18px;line-height:1.8}.auth-points{flex-wrap:wrap;gap:10px;margin-top:28px;display:flex}.auth-points span{border:1px solid #ffffff40;border-radius:999px;padding:8px 14px;font-size:13px}.auth-card{background:var(--surface);border:1px solid var(--line);width:min(430px,100% - 48px);box-shadow:var(--shadow);border-radius:24px;align-self:center;margin:auto;padding:42px}.auth-card h2{margin-bottom:28px;font-size:30px}.admin-link{color:var(--brand);text-align:center;margin-top:18px;font-weight:700;text-decoration:none;display:block}.form-notice{color:#714f15;background:#fff7dc;border:1px solid #f2df9f;border-radius:12px;padding:12px 14px;line-height:1.65}.admin-start-notice{margin-bottom:16px}.admin-auth .auth-intro{background:linear-gradient(140deg,#182e49,#315872)}.app-shell{grid-template-columns:224px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{color:#fff;z-index:20;background:#0d344b;flex-direction:column;height:100vh;padding:24px 16px;display:flex;position:-webkit-sticky;position:sticky;top:0}.sidebar .brand-lock{border-bottom:1px solid #ffffff1a;padding:0 6px 22px}.sidebar nav{gap:7px;margin-top:22px;display:grid}.nav-button{color:#dbe9ef;text-align:left;background:0 0;border:0;border-radius:13px;align-items:center;gap:12px;min-height:50px;padding:9px 12px;display:flex}.nav-button span{background:#ffffff14;border-radius:9px;place-items:center;width:30px;height:30px;font-weight:800;display:grid}.nav-button:hover,.nav-button.active{color:#fff;background:#175f78}.nav-button.active span{background:var(--orange)}.sidebar-rule{color:#d9e8ed;background:#ffffff12;border:1px solid #ffffff14;border-radius:14px;margin-top:auto;padding:15px}.sidebar-rule b{font-size:13px}.sidebar-rule p{margin:6px 0 0;font-size:12px;line-height:1.55}.admin-shell .sidebar{background:#172f48}.workspace{min-width:0}.topbar{border-bottom:1px solid var(--line);z-index:15;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fffffff0;justify-content:space-between;align-items:center;gap:20px;min-height:88px;padding:18px 32px;display:flex;position:-webkit-sticky;position:sticky;top:0}.topbar h1{margin:0;font-size:24px}.topbar .eyebrow{margin-bottom:4px}.teacher-menu{align-items:center;gap:14px;display:flex}.teacher-menu button{color:var(--muted);background:0 0;border:0}.page-content{width:min(1240px,100% - 48px);margin:28px auto 60px}.hero{color:#fff;min-height:230px;box-shadow:var(--shadow);background:linear-gradient(120deg,#0b435b,#0a8a80);border-radius:24px;justify-content:space-between;align-items:center;gap:30px;padding:40px;display:flex;position:relative;overflow:hidden}.hero:after{content:"";border:58px solid #ffffff0f;border-radius:50%;width:340px;height:340px;position:absolute;top:-140px;right:-85px}.hero>*{z-index:1;position:relative}.hero .eyebrow{color:#9de4dc}.hero h2{letter-spacing:-.03em;max-width:760px;margin-bottom:12px;font-size:max(28px,min(3.5vw,45px));line-height:1.16}.hero p:last-child{color:#d7f1f0;margin-bottom:0}.admin-hero{background:linear-gradient(120deg,#19334f,#315f75)}.stat-grid{gap:14px;margin:18px 0;display:grid}.stat-grid.five{grid-template-columns:repeat(5,minmax(0,1fr))}.stat-grid.six{grid-template-columns:repeat(6,minmax(0,1fr))}.stat-grid article{background:var(--surface);border:1px solid var(--line);border-radius:17px;min-height:112px;padding:21px}.stat-grid span{color:var(--muted);font-size:13px;display:block}.stat-grid b{margin-top:8px;font-size:32px;display:block}.card,.table-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:26px;box-shadow:0 8px 26px #17324a09}.section-head{justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px;display:flex}.section-head h2{margin-bottom:0;font-size:26px}.section-head .eyebrow{margin-bottom:5px}.split-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.button{border:1px solid #0000;border-radius:11px;min-height:42px;padding:9px 17px;font-weight:750}.button:disabled{cursor:not-allowed;opacity:.5}.button.primary{color:#fff;background:var(--brand)}.button.primary:hover{background:#076d68}.button.secondary{color:var(--ink);border-color:var(--line);background:#fff}.button.white{color:#0b5361;background:#fff}.button.wide{width:100%}.text-button{color:var(--brand);background:0 0;border:0;font-weight:750}.row-actions,.sticky-actions,.action-bar{flex-wrap:wrap;gap:10px;display:flex}.task-list,.compact-list{gap:8px;display:grid}.task-list button,.compact-list button{width:100%;min-height:64px;color:var(--ink);border:1px solid var(--line);text-align:left;background:#fbfcfd;border-radius:13px;justify-content:space-between;align-items:center;gap:15px;padding:13px 15px;display:flex}.task-list button:hover,.compact-list button:hover{background:#f5fbfa;border-color:#9dc8c5}.task-list small,.compact-list small,td small{color:var(--muted);margin-top:4px;display:block}.task-list button>span,.compact-list button>span{color:var(--brand);font-weight:750}.empty{text-align:center;color:var(--muted);padding:48px 22px}.empty.large{border:1px solid var(--line);background:#fff;border-radius:20px;place-content:center;justify-items:center;min-height:430px;display:grid}.empty.large>span{width:58px;height:58px;color:var(--brand);background:#e6f4f2;border-radius:17px;place-items:center;margin-bottom:14px;font-size:26px;font-weight:800;display:grid}.empty.compact{padding:28px 10px}.student-grid,.teacher-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;display:grid}.student-card{color:var(--ink);border:1px solid var(--line);text-align:left;background:#fff;border-radius:18px;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:20px;display:grid}.student-card:hover{box-shadow:var(--shadow);border-color:#9ec7c4;transform:translateY(-1px)}.avatar{width:46px;height:46px;color:var(--brand);background:#e2f2f0;border-radius:14px;place-items:center;font-size:20px;font-weight:800;display:grid}.student-card h3{margin-bottom:4px}.student-card p{color:var(--muted);margin-bottom:3px}.student-card small{color:#8b9aa7}.student-metrics{grid-template-columns:repeat(2,92px);gap:8px;display:grid}.student-metrics span{color:var(--muted);text-align:center;background:#f6f8f9;border-radius:10px;padding:10px;font-size:11px}.student-metrics b{color:var(--ink);font-size:20px;display:block}.danger-text b{color:var(--danger)}.teacher-card{border:1px solid var(--line);background:#fff;border-radius:18px;padding:20px}.teacher-card-head{grid-template-columns:auto 1fr auto;align-items:center;gap:12px;display:grid}.teacher-card h3,.teacher-card p{margin-bottom:3px}.teacher-card p{color:var(--muted)}.mini-stats{grid-template-columns:repeat(4,1fr);gap:7px;margin:17px 0;display:grid}.mini-stats span{color:var(--muted);text-align:center;background:#f4f7f8;border-radius:9px;padding:9px 5px;font-size:10px}.mini-stats b{color:var(--ink);font-size:18px;display:block}.drawer-mask{z-index:50;background:#0a1c2a75;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.drawer{background:#fff;border-radius:20px;width:min(720px,100%);height:min(92vh,960px);padding:34px;position:relative;overflow-y:auto;box-shadow:0 28px 80px #0922303d}.drawer-wide{width:min(1040px,100%)}.drawer-workspace{width:min(1420px,100vw - 48px);height:calc(100vh - 48px)}.close{float:right;width:40px;height:40px;color:var(--muted);z-index:2;background:#eef3f5;border:0;border-radius:50%;place-items:center;font-size:27px;display:grid;position:-webkit-sticky;position:sticky;top:0}.drawer h2{margin-bottom:12px;font-size:30px}.lead{color:var(--muted);line-height:1.7}.form-stack{gap:16px;margin-top:24px;display:grid}label{color:#344b5f;gap:7px;font-size:13px;font-weight:700;display:grid}input,select,textarea{width:100%;min-height:44px;color:var(--ink);background:#fff;border:1px solid #cbd8de;border-radius:10px;outline:none;padding:10px 12px}textarea{resize:vertical;min-height:88px;line-height:1.55}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #087f781a}.form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.form-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.check{grid-template-columns:auto 1fr;align-items:center;display:flex}.check input{width:18px;min-height:18px}.nested-card,.problem-card{border:1px solid var(--line);background:#f8fafb;border-radius:14px;padding:18px}.nested-head{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.nested-head button{color:var(--danger);background:0 0;border:0}.photo-intake-box{background:#edf8f6;border:2px dashed #91c9c3;border-radius:16px;gap:14px;padding:20px;display:grid}.photo-intake-head,.problem-review-head{justify-content:space-between;align-items:center;gap:18px;display:flex}.photo-intake-head p,.problem-review-head p{color:var(--muted);margin:5px 0 0;font-size:13px;line-height:1.6}.file-button{color:#fff;white-space:nowrap;justify-content:center;align-items:center;width:auto;min-width:116px;font-size:14px;display:inline-flex}.file-button input{opacity:0;pointer-events:none;width:1px;height:1px;min-height:1px;padding:0;position:absolute}.privacy-tip{color:#6c551b;background:#fff8dc;border-radius:10px;margin:0;padding:10px 12px;font-size:12px;line-height:1.65}.selected-file-list{gap:8px;display:grid}.selected-file-list article{border:1px solid var(--line);background:#fff;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:11px 12px;display:flex}.selected-file-list small{color:var(--muted);margin-top:4px;font-weight:500;display:block}.text-button.danger{color:var(--danger)}.manual-problems{gap:12px;display:grid}.manual-problems>.nested-head small{color:var(--muted)}.problem-review-head{margin-top:24px}.problem-review-head h3{margin-bottom:0}.problem-stack{gap:28px;margin:22px 0 30px;display:grid}.review-problem-card{background:#fff;border:1px solid #cfdbdf;border-radius:18px;overflow:hidden;box-shadow:0 10px 28px #17324a0e}.review-problem-header{border-bottom:1px solid var(--line);background:#f5f9fa;justify-content:space-between;align-items:center;gap:18px;min-height:68px;padding:16px 22px;display:flex}.review-problem-title{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.review-problem-title strong{color:var(--ink);font-size:18px}.review-status{color:#2c6a64;background:#e5f4f1;border-radius:999px;align-items:center;min-height:28px;padding:4px 10px;font-size:12px;font-weight:800;display:inline-flex}.review-delete{min-height:38px;color:var(--danger);background:0 0;border:0;padding:6px 10px;font-weight:700}.review-figure-section{border-bottom:1px solid var(--line);background:#f7fbfb;gap:14px;padding:22px;display:grid}.problem-figure-layout{grid-template-columns:minmax(0,2fr) minmax(300px,.8fr);align-items:start;gap:18px;display:grid}.problem-figure-preview{cursor:zoom-in;background:#fff;border:1px solid #bfd0d6;border-radius:14px;width:100%;min-height:220px;padding:10px;overflow:hidden}.problem-figure-preview.compact{min-height:160px}.problem-image-crop{background:#fff;border-radius:9px;place-items:center;width:100%;min-height:200px;display:grid;overflow:hidden}.problem-image-crop canvas{object-fit:contain;width:100%;height:auto;max-height:720px;display:block}.problem-image-crop p{color:var(--muted);text-align:center;margin:0;padding:28px}.problem-figure-controls{border:1px solid var(--line);background:#fff;border-radius:14px;gap:14px;padding:16px;display:grid}.problem-figure-controls textarea{min-height:92px}.problem-figure-controls>small{color:var(--muted);line-height:1.55}.figure-check{background:#edf8f6;border-radius:10px;padding:10px 12px}.figure-actions{flex-wrap:wrap;gap:10px;display:flex}.figure-actions .button{width:auto}.figure-missing{color:#526778;background:#fff;border:1px dashed #b8c9d0;border-radius:13px;padding:16px}.figure-missing.required{color:#873f32;background:#fff3ef;border-color:#dfaa9d}.figure-missing p{margin:6px 0 12px;line-height:1.65}.embedded-problem-figure{background:#f2f8f8;border:1px solid #cbdedf;border-radius:14px;gap:10px;margin:12px 0 16px;padding:16px;display:grid}.embedded-problem-figure>div{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 14px;display:flex}.embedded-problem-figure small,.embedded-problem-figure>p{color:var(--muted);margin:0;line-height:1.6}.classroom-figure{max-width:980px}.class-example-editor{border-top:1px solid var(--line);gap:16px;margin-top:4px;padding-top:18px;display:grid}.class-example-editor-head{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.class-example-editor-head p{color:var(--muted);margin:6px 0 0;font-size:13px;line-height:1.6}.class-example-editor-head .button{flex:none;width:auto}.class-example-edit-card{background:#fff;border:1px solid #c7d7dc;border-radius:16px;gap:16px;padding:20px;display:grid}.class-example-edit-card>header,.class-example-card>header{justify-content:space-between;align-items:center;gap:14px;display:flex}.class-example-edit-card textarea{min-height:140px;font-size:15px;line-height:1.75}.class-example-edit-grid{grid-template-columns:minmax(320px,.85fr) minmax(0,1.15fr);align-items:start;gap:18px;display:grid}.class-example-image-input,.class-example-fields{gap:12px;display:grid}.class-example-image-input{border:1px solid var(--line);background:#f3f8f8;border-radius:13px;padding:16px}.class-example-image-input>p{color:var(--muted);margin:0;font-size:13px;line-height:1.6}.class-example-image-input .file-button{width:100%}.class-example-local-preview{object-fit:contain;border:1px solid var(--line);background:#fff;border-radius:10px;width:100%;max-height:440px}.class-example-list{gap:18px;margin-top:24px;display:grid}.class-example-list>h4{margin:0;font-size:18px}.class-example-card{background:#fff;border:1px solid #c7d7dc;border-radius:16px;gap:16px;padding:22px;display:grid;box-shadow:0 8px 22px #17324a0b}.class-example-image{cursor:zoom-in;background:#f7fbfb;border:1px solid #bfcfd5;border-radius:14px;width:100%;min-height:260px;padding:12px}.class-example-image.original{background:#fff}.class-example-image .problem-image-crop{min-height:240px}.class-example-image .problem-image-crop canvas{max-height:620px}.class-example-question{border-left:4px solid var(--brand);background:#f8fafb;border-radius:0 12px 12px 0;margin:0;padding:18px 20px;font-size:17px;line-height:1.9}.figure-note{color:#496171;background:#f2f6f7;border-radius:10px;margin:0;padding:12px 14px;line-height:1.65}.teacher-solution{color:#5d4b20;background:#fff8df;border:1px solid #eedc9b;border-radius:12px;margin:0;padding:14px 16px}.teacher-solution summary{cursor:pointer;font-weight:800}.teacher-solution p{margin:12px 0 0}.example-maintenance{border:1px solid var(--line);background:#f5f8f9;border-radius:12px;padding:14px 16px}.example-maintenance>summary{cursor:pointer;color:#3b5667;font-weight:800}.example-maintenance-fields{gap:13px;margin-top:15px;display:grid}.example-maintenance-fields textarea{min-height:110px}.example-maintenance-fields .button{justify-self:end;width:auto;min-width:210px}.prep-detail-card{margin:20px 0;padding:24px}.prep-detail-card>h3{font-size:22px}.classroom-problem-card{border:1px solid var(--line);background:#f4f8f9;border-radius:15px;gap:16px;margin-top:18px;padding:20px;display:grid}.classroom-card-label{color:var(--brand);font-size:14px;font-weight:900}.classroom-examples{padding-top:6px}.classroom-example-card{border-width:2px;padding:26px}.teaching-notes{color:#385162;background:#f5f8f9;border-radius:12px;margin-top:20px;padding:16px 18px}.teaching-notes summary{cursor:pointer;font-weight:800}.teaching-notes p{margin:12px 0;line-height:1.7}.review-section{gap:11px;padding:24px 22px;display:grid}.review-section-title{flex-wrap:wrap;align-items:baseline;gap:8px 14px;display:flex}.review-section-title strong{color:var(--ink);font-size:15px}.review-section-title small{color:var(--muted);font-weight:500;line-height:1.6}.review-textarea{field-sizing:content;white-space:pre-wrap;border-radius:12px;padding:16px 18px;font-size:16px;line-height:1.85}.review-question-text{background:#fff;min-height:220px}.recognition-review-alert{color:#6c551b;background:#fff8dc;border:1px solid #ead58d;border-radius:13px;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:11px 16px;margin:0 22px 24px;padding:16px 18px;display:grid}.recognition-review-alert>div{grid-column:1/-1;gap:4px;display:grid}.recognition-review-alert strong{color:#59430f}.recognition-review-alert small{line-height:1.6}.recognition-review-alert textarea{background:#fffdf5;min-height:82px}.recognition-review-alert .button{width:auto;min-width:170px}.review-meta-grid{grid-template-columns:minmax(0,1fr) minmax(220px,280px);gap:16px;padding:0 22px 24px;display:grid}.review-answer-section{border-top:1px solid var(--line);background:#f8fbfb}.review-answer-text{background:#fff;min-height:170px}.review-ai-draft{margin:0 22px 24px}.review-card-actions{justify-content:flex-end;padding:0 22px 24px;display:flex}.review-card-actions .button{min-width:240px}.problem-card>span{color:var(--brand);margin-bottom:8px;font-size:12px;font-weight:800;display:inline-block}.math-text{color:#1c3041;white-space:pre-wrap;line-height:1.8}.ai-draft{color:#28514e;background:#eaf7f5;border-radius:12px;margin-top:14px;padding:15px}.ai-draft pre{font:inherit;white-space:pre-wrap;margin:10px 0 0;line-height:1.7}.problem-card dl{grid-template-columns:90px 1fr;gap:10px;margin:14px 0 0;display:grid}.problem-card dt{color:var(--muted);font-weight:700}.problem-card dd{margin:0;line-height:1.65}.history-alert{color:#5e4a1d;background:#fff8df;border:1px solid #efdda0;border-radius:14px;gap:9px;margin:18px 0;padding:17px;display:grid}.history-alert article{border-top:1px solid #ecdfa9;padding-top:10px}.history-alert article:first-of-type{border-top:0;padding-top:0}.history-alert p{margin:5px 0;line-height:1.6}.history-alert small{color:#7c6d49}.sticky-actions{border-top:1px solid var(--line);background:#fff;padding:18px 0 2px;position:static}.profile-line{border-bottom:1px solid var(--line);justify-content:space-between;gap:12px;padding:12px 0;display:flex}.profile-line span{color:var(--muted)}.subhead{margin-top:28px}.mastery-list{gap:10px;display:grid}.mastery-list article{border:1px solid var(--line);background:#f8fafb;border-radius:13px;grid-template-columns:1fr auto;gap:8px 12px;padding:15px;display:grid}.mastery-list article p,.mastery-list article small{color:var(--muted);margin:3px 0 0}.mastery-list article small{grid-column:1/-1}.status{color:#5e6e79;background:#edf1f3;border-radius:999px;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;min-height:26px;padding:4px 9px;font-size:11px;font-weight:800;display:inline-flex}.status.stable,.status.transfer_passed{color:#17684e;background:#e3f5eb}.status.needs_repair{color:#a14637;background:#fdebe5}.status.independent,.status.guided{color:#76611e;background:#fff5cf}.lesson-grid{gap:14px;margin:22px 0;display:grid}.lesson-type{border:2px solid var(--line);background:#fff;border-radius:16px;padding:21px}.lesson-type.active{border-color:var(--brand);box-shadow:0 0 0 4px #087f7814}.lesson-type>span{color:var(--brand);font-size:12px;font-weight:800}.lesson-type details{color:#385162;margin-top:14px}.lesson-type summary{cursor:pointer;font-weight:800}.lesson-type details p{margin:10px 0;line-height:1.65}.class-practice{color:#28514e;background:#eaf7f5;border-radius:12px;margin-top:14px;padding:14px}.class-practice p{white-space:pre-wrap;margin:6px 0 0;line-height:1.75}.class-head{justify-content:space-between;gap:18px;display:flex}.live-dot{color:#096c62;background:#def5f0;border-radius:999px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:7px 11px;font-size:12px;font-weight:800}.evidence-box{background:#edf7f6;border-radius:16px;padding:22px}.evidence-box label{margin-top:12px}.rule-banner{color:#28534f;background:#e7f5f2;border-radius:12px;align-items:center;gap:14px;padding:14px;display:flex}.rule-banner b{white-space:nowrap;font-size:20px}.practice-meta{flex-wrap:wrap;gap:9px;margin-bottom:16px;display:flex}.practice-meta span{color:var(--muted);background:#f0f4f5;border-radius:999px;padding:6px 10px;font-size:12px}.practice-group{margin-top:24px}.practice-group h3{border-bottom:2px solid var(--ink);padding-bottom:8px}.print-question{break-inside:avoid;margin:16px 0 25px}.print-question>span{font-weight:800}.answer-space{border-bottom:1px dashed #aebbc3;min-height:68px;margin-top:12px}.teacher-answer{background:#fff5df;border-radius:8px;margin-top:10px;padding:10px;line-height:1.65;display:none}body[data-print-answers=yes] .teacher-answer{display:block}.action-bar{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.upload-box,.ai-review-list,.review-confirm{border:1px solid var(--line);background:#f7f9fa;border-radius:14px;margin-top:24px;padding:18px}.attachment-list,.ai-review-list{gap:10px;display:grid}.attachment-list article{border-bottom:1px solid var(--line);justify-content:space-between;gap:10px;padding:10px 0;display:flex}.attachment-list article button:first-child{color:var(--brand);text-align:left;background:0 0;border:0}.attachment-actions{align-items:center;gap:8px;display:flex}.recognition-progress{color:#24514e;background:#e8f6f4;border:1px solid #b9ded9;border-radius:12px;align-items:center;gap:12px;margin:14px 0 6px;padding:13px 14px;display:flex}.recognition-progress p{color:var(--muted);margin:3px 0 0;font-size:13px;line-height:1.5}.recognition-spinner{border:3px solid #b9ded9;border-top-color:var(--brand);border-radius:50%;flex:0 0 22px;width:22px;height:22px;animation:.8s linear infinite recognition-spin}@keyframes recognition-spin{to{transform:rotate(360deg)}}.ai-review-list article{border:1px solid var(--line);background:#fff;border-radius:12px;padding:15px}.review-confirm>p{color:var(--muted)}.review-confirm>article{border-top:1px solid var(--line);grid-template-columns:minmax(180px,1fr) repeat(3,minmax(120px,.55fr));align-items:end;gap:10px;padding:13px 0;display:grid}.review-confirm>article small{color:var(--muted);margin-top:4px;display:block}.table-card{padding:0;overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{border-bottom:1px solid var(--line);text-align:left;vertical-align:top;padding:16px}th{color:var(--muted);white-space:nowrap;background:#f7f9fa;font-size:12px}td{font-size:14px}.toast{color:#fff;max-width:420px;box-shadow:var(--shadow);z-index:80;border-radius:11px;padding:13px 16px;position:fixed;top:102px;right:24px}.success-toast{background:#18745d}.error-toast{background:#a9443d}@media (max-width:1120px){.stat-grid.five,.stat-grid.six{grid-template-columns:repeat(3,minmax(0,1fr))}.student-grid{grid-template-columns:1fr}.student-metrics{grid-template-columns:repeat(2,80px)}}@media (max-width:860px){.auth-page{grid-template-columns:1fr}.auth-intro{min-height:340px;padding:40px}.auth-intro .brand-lock{margin-bottom:38px}.auth-intro h1{font-size:42px}.auth-card{margin:34px auto}.app-shell{grid-template-columns:76px minmax(0,1fr)}.sidebar{padding:16px 10px}.sidebar .brand-lock{justify-content:center}.sidebar .brand-lock>div,.sidebar-rule,.nav-button:not(.active){color:#0000}.sidebar .brand-lock b,.sidebar .brand-lock small,.nav-button{font-size:0}.nav-button{justify-content:center;padding:8px}.nav-button span{color:#fff;font-size:14px}.topbar{padding:16px 20px}.page-content{width:calc(100% - 28px);margin-top:18px}.hero{min-height:200px;padding:28px}.hero h2{font-size:30px}.split-grid,.student-grid,.teacher-grid{grid-template-columns:1fr}.drawer-mask{padding:12px}.drawer{padding:26px}.drawer-workspace{width:calc(100vw - 24px);height:calc(100vh - 24px)}.review-meta-grid,.problem-figure-layout,.class-example-edit-grid{grid-template-columns:1fr}}@media (max-width:620px){.app-shell{padding-bottom:72px;display:block}.sidebar{z-index:40;width:auto;height:68px;padding:7px 8px;display:block;position:fixed;top:auto;bottom:0;left:0;right:0}.sidebar .brand-lock,.sidebar-rule{display:none}.sidebar nav{grid-template-columns:repeat(5,1fr);gap:4px;margin:0;display:grid}.admin-shell .sidebar nav{grid-template-columns:repeat(4,1fr)}.nav-button,.nav-button:not(.active){color:#dbe9ef;place-items:center;gap:2px;min-height:54px;padding:3px;font-size:10px;display:grid}.nav-button span{width:27px;height:27px;font-size:11px}.topbar{min-height:72px;position:static}.topbar .eyebrow{display:none}.topbar h1{font-size:20px}.teacher-menu span{display:none}.hero{min-height:0;padding:24px;display:block}.hero .button{margin-top:18px}.hero h2{font-size:27px}.stat-grid.five,.stat-grid.six{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-grid article{min-height:92px;padding:16px}.stat-grid b{font-size:26px}.section-head{align-items:flex-start}.section-head h2{font-size:22px}.student-card{grid-template-columns:auto 1fr}.student-metrics{grid-column:1/-1;grid-template-columns:repeat(2,1fr)}.form-row,.form-row.three{grid-template-columns:1fr}.photo-intake-head,.problem-review-head{flex-direction:column;align-items:flex-start}.file-button{width:100%}.selected-file-list article,.attachment-list article{flex-direction:column;align-items:flex-start}.drawer-mask{padding:0}.drawer,.drawer-wide,.drawer-workspace{border-radius:0;width:100%;height:100%;padding:22px 18px 90px}.drawer h2{font-size:25px}.problem-stack{gap:20px}.review-problem-header{align-items:flex-start;padding:15px 16px}.review-figure-section{padding:18px 16px}.problem-figure-preview{min-height:160px;padding:6px}.problem-image-crop{min-height:150px}.figure-actions{display:grid}.review-section{padding:19px 16px}.review-section-title{gap:4px;display:grid}.recognition-review-alert{grid-template-columns:1fr;margin:0 16px 19px;padding:15px}.recognition-review-alert .button{width:100%}.review-meta-grid{padding:0 16px 19px}.review-question-text{min-height:190px}.review-answer-text{min-height:150px}.review-ai-draft{margin:0 16px 19px}.class-example-editor-head{display:grid}.class-example-editor-head .button{width:100%}.class-example-edit-card,.class-example-card,.classroom-example-card{padding:16px}.class-example-image{min-height:180px;padding:6px}.class-example-image .problem-image-crop{min-height:170px}.class-example-question{padding:14px;font-size:15px}.review-card-actions{padding:0 16px 20px}.review-card-actions .button{width:100%;min-width:0}.auth-intro{min-height:300px;padding:30px 24px}.auth-intro .brand-lock{margin-bottom:28px}.auth-intro h1{font-size:34px}.auth-intro>p:not(.eyebrow){font-size:15px}.auth-card{width:calc(100% - 28px);padding:28px}.mini-stats{grid-template-columns:repeat(2,1fr)}.review-confirm>article{grid-template-columns:1fr}}@media print{body{background:#fff}.sidebar,.topbar,.no-print,.close,.toast{display:none!important}.app-shell,.workspace{display:block}.drawer-mask{background:#fff;display:block;position:static}.drawer{width:100%;height:auto;box-shadow:none;padding:0;overflow:visible}.drawer>:not(.print-area):not(.no-print){display:none!important}.print-area,.print-area .eyebrow{color:#111}.answer-space{min-height:80px}@page{size:A4;margin:14mm}}
