:root{--bg:#f5f6f3;--surface:#fff;--ink:#203a3c;--muted:#87918d;--line:#e7ebe5;--green:#176b60;--green-dark:#14574e;--mint:#edf5ed;--orange:#c57a4d;--orange-bg:#fbf2e9;--blue:#6688a6;--radius:14px;--shadow:0 10px 40px #183a2a08;font-family:Inter,"PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #82bbaf;outline-offset:3px}a{color:var(--green);text-decoration:none}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{border:0;background:transparent;color:inherit}h1,h2,h3,p{margin:0}h1{font-size:27px;font-weight:650;letter-spacing:-.7px;line-height:1.4}h2{font-size:17px;font-weight:600;letter-spacing:-.2px}h3{font-size:14px;font-weight:600}p{line-height:1.8}.subtle{color:var(--muted);font-size:12px;line-height:1.7}.muted{color:var(--muted)}.small{font-size:12px}.strong{font-weight:600}.number{font-variant-numeric:tabular-nums}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.stack{display:flex;flex-direction:column;gap:18px}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mt{margin-top:22px}.mb{margin-bottom:20px}.divider{height:1px;background:var(--line);margin:20px 0}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#6a7f79}.icon-btn:hover{background:var(--mint);color:var(--green)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:8px;min-height:38px;padding:9px 16px;background:#fff;font-weight:500;line-height:1.35;white-space:nowrap;font-size:13px;transition:background .15s,transform .15s}.btn:hover{background:#f5f8f5}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn.primary:hover{background:var(--green-dark)}.btn.soft{background:var(--mint);color:var(--green);border-color:#e0ebe0}.btn.ghost{border-color:transparent;background:transparent;padding-left:6px;padding-right:6px}.btn.warn{color:#a15f36;background:var(--orange-bg);border-color:#f2e2d2}.btn.sm{font-size:12px;min-height:31px;padding:6px 10px}.btn .icon{width:16px;height:16px}.tag{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:5px;color:#6d7d72;background:#f0f2ed;font-size:11px;font-weight:500;white-space:nowrap}.tag.green{background:#eaf4ea;color:var(--green)}.tag.orange{background:var(--orange-bg);color:#b67d4a}.tag.blue{background:#edf2f7;color:#6385a6}.tag.red{background:#fbefed;color:#bf6d5a}.tag.dot:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.avatar{width:34px;height:34px;background:#edf2e8;color:#687960;border:1px solid #e7eddf;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}.avatar.orange{background:#f8eee3;color:#b18458}.avatar.blue{background:#eaf0f4;color:#718ca0}.avatar.purple{background:#f0edf5;color:#8c7da1}.initial-loader{height:100vh;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--green)}.loading-dot{width:8px;height:8px;border-radius:50%;background:var(--green);animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.3}}.shell{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:31px 18px 18px;z-index:5}.brand{display:flex;align-items:center;gap:10px;padding:0 15px 26px}.brand-logo{height:36px;width:36px;border-radius:10px;flex-shrink:0}.brand-title{font-size:23px;font-weight:650;letter-spacing:2px}.brand-sub{font-size:10px;letter-spacing:1px;color:#97a19a;margin-top:3px}.nav-caption{font-size:10px;color:#adb4ac;letter-spacing:1.5px;padding:18px 17px 9px}.nav-item{display:flex;align-items:center;gap:12px;min-height:43px;margin:3px 0;padding:11px 15px;border-radius:8px;text-align:left;width:100%;font-size:13px;color:#75817b;position:relative}.nav-item:hover{background:#f6f8f3}.nav-item.active{background:#eaf2e9;color:var(--green);font-weight:600}.nav-item.active:after{content:"";position:absolute;right:13px;width:5px;height:5px;background:var(--green);border-radius:50%}.nav-item svg{width:18px}.nav-badge{margin-left:auto;background:#f4e7d9;color:#bb8254;border-radius:5px;font-size:10px;padding:2px 5px}.sidebar-spacer{flex:1}.sidebar-card{background:#f5f7f0;border:1px solid #eaf0e1;border-radius:10px;padding:14px;margin:18px 5px 20px}.sidebar-card h3{font-size:12px;color:#617251;margin:9px 0 5px}.sidebar-card p{font-size:10px;color:#8d9984;line-height:1.7}.sidebar-card .icon{color:#86966d}.sidebar-bottom{border-top:1px solid var(--line);padding-top:14px}.workspace{min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:20px;background:#fff9}.breadcrumb{font-size:12px;color:#9ba49d;display:flex;align-items:center;gap:12px}.breadcrumb strong{font-weight:500;color:#5b7067}.top-actions{display:flex;align-items:center;gap:20px}.top-search{display:flex;align-items:center;gap:9px;color:#a0aaa2;font-size:12px}.top-search .icon{width:16px}.kbd{font-size:10px;padding:3px 5px;border:1px solid #e6eae3;border-radius:4px;color:#9aa49d}.user-chip{display:flex;align-items:center;gap:8px;font-size:12px;border-left:1px solid var(--line);padding-left:20px}.user-chip span:last-child{font-size:10px;color:#9da69f}.main{max-width:1680px;margin:auto;padding:29px 32px 40px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:25px}.page-heading p{color:#8c978f;font-size:12px;margin-top:8px}.eyebrow{display:flex;align-items:center;gap:6px;color:#8c9d8d;font-size:11px;margin-bottom:9px}.eyebrow .icon{width:14px;height:14px}.exam-picker{border:1px solid #e0e6dd;background:#fff;border-radius:8px;padding:9px 32px 9px 12px;max-width:250px;font-size:12px;color:#65756c}.sample-banner{border:1px solid #e4e8d9;background:#f1f4e9;color:#79846c;border-radius:8px;padding:10px 14px;font-size:11px;display:flex;align-items:center;gap:8px;margin:0 0 22px}.sample-banner .icon{width:15px;height:15px}.sample-banner a,.sample-banner button{font-size:11px;color:#5d7d53;font-weight:600}.hero-strip{display:flex;align-items:center;justify-content:space-between;gap:25px;background:#eaf0e4;border:1px solid #e3eadb;border-radius:var(--radius);padding:23px 27px;margin-bottom:22px;overflow:hidden}.hero-strip h2{font-size:19px;font-weight:550;color:#3d5b46}.hero-strip p{font-size:12px;color:#8d9b82;margin-top:7px}.hero-icon{height:80px;width:110px;flex-shrink:0;color:#83956b;position:relative;opacity:.8}.hero-icon svg{width:100%;height:100%}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat-card{border:1px solid var(--line);border-radius:var(--radius);padding:20px;background:#fff;min-height:136px}.stat-label{display:flex;align-items:center;justify-content:space-between;color:#88958b;font-size:12px}.stat-icon{width:28px;height:28px;border-radius:8px;background:#f3f5ee;display:flex;align-items:center;justify-content:center;color:#859773}.stat-icon .icon{width:15px;height:15px}.stat-card:nth-child(2) .stat-icon{background:#f7f0e6;color:#c19d6b}.stat-card:nth-child(3) .stat-icon{background:#eef2f7;color:#88a0b4}.stat-value{font-size:31px;letter-spacing:-1px;font-weight:600;margin-top:12px;line-height:1}.stat-value span{font-size:11px;margin-left:7px;color:#a2aca2;font-weight:400;letter-spacing:0}.stat-foot{font-size:10px;color:#9ba69b;margin-top:10px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(270px,1fr);gap:20px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}.panel-head{padding:21px 22px 0;display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-body{padding:20px 22px 22px}.panel-head .subtle{font-size:10px;margin-top:6px}.exam-feature{padding:22px}.exam-feature-top{display:flex;gap:13px;align-items:center}.subject-icon{width:44px;height:48px;border-radius:10px;background:#edf3e7;color:#6f8f62;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:500}.exam-feature h3{font-size:15px;margin-bottom:7px}.exam-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:11px;color:#9ca699}.progress-track{height:5px;background:#f0f2eb;border-radius:6px;overflow:hidden}.progress-track>span{display:block;height:100%;background:#8fa97c;border-radius:6px;transition:width .4s}.exam-progress{margin:23px 0 21px}.exam-progress .row{font-size:11px;margin-bottom:10px;color:#99a28e}.exam-progress strong{color:#718c61;font-weight:500}.workflow{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:23px}.step{font-size:10px;color:#a6aea1;display:flex;align-items:center;gap:6px}.step-circle{width:20px;height:20px;border-radius:50%;background:#f2f4ef;display:flex;align-items:center;justify-content:center;font-size:9px}.step.done{color:#7a9470}.step.done .step-circle{background:#eaf2e3}.step.done svg{width:11px;height:11px}.step.current{color:#bc9761}.step.current .step-circle{background:#f7f0df}.exam-feature-bottom{border-top:1px solid #eef1eb;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:10px}.student-avatars{display:flex;align-items:center;padding-left:5px}.student-avatars .avatar{width:25px;height:25px;font-size:9px;margin-left:-5px;border:2px solid #fff}.student-avatars>span:last-child{font-size:10px;color:#a0aa9c;margin-left:8px}.todo-row{display:flex;gap:12px;padding:15px 0;align-items:flex-start;border-bottom:1px solid #f0f2ed}.todo-row:last-child{border:0;padding-bottom:0}.todo-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#faf2e8;color:#c6a06f;border-radius:8px}.todo-icon .icon{width:16px;height:16px}.todo-row h3{font-size:12px;font-weight:500;line-height:1.7}.todo-row p{font-size:10px;color:#a2ac9e;margin-top:4px}.todo-row .icon-btn{width:26px;height:26px;border:0;flex-shrink:0;color:#9cab93}.chart-bars{display:flex;flex-direction:column;gap:16px;margin-top:4px}.bar-item{display:grid;grid-template-columns:113px 1fr 39px;align-items:center;gap:12px;font-size:11px;color:#869180}.bar-bg{height:13px;background:#f5f6f1;border-radius:3px;overflow:hidden}.bar-fill{height:100%;background:#a4b691;border-radius:3px}.bar-item:nth-child(2) .bar-fill{background:#c6b58f}.bar-item:nth-child(3) .bar-fill{background:#b7b5a1}.bar-item:nth-child(4) .bar-fill{background:#c4cdb5}.bar-item:nth-child(5) .bar-fill{background:#ced4c0}.chart-note{font-size:10px;color:#a8b0a1;margin-top:19px;display:flex;align-items:center;gap:6px}.chart-note i{display:inline-block;width:6px;height:6px;border-radius:2px;background:#a4b691}.student-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f1f3ed}.student-row:last-child{border:0;padding-bottom:0}.student-row strong{font-size:12px;font-weight:500}.student-row p{font-size:10px;color:#a4ada0;margin-top:4px}.student-row>.tag{margin-left:auto}.student-row .avatar{width:31px;height:31px;font-size:11px}.section-footer{font-size:10px;color:#abb4a7;margin-top:25px;display:flex;align-items:center;justify-content:space-between}.section-footer .icon{width:12px;height:12px}.empty{padding:55px 25px;text-align:center;color:#9aa798}.empty .icon{width:36px;height:36px;margin-bottom:16px;color:#a8b99d}.empty h3{color:#6a7f68;margin-bottom:8px;font-size:15px}.empty p{font-size:12px;margin-bottom:18px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;white-space:nowrap}.data-table th{font-size:10px;color:#9aa695;background:#fafbf8;font-weight:500;padding:13px 18px;border-bottom:1px solid var(--line)}.data-table td{padding:17px 18px;border-bottom:1px solid #f0f3ec;color:#6c8074}.data-table tr:last-child td{border-bottom:0}.data-table td.cell-stem{white-space:normal;min-width:230px;max-width:460px;color:#445e51;line-height:1.8}.data-table .btn{white-space:nowrap}.filters{display:flex;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}.field-inline{background:white;border:1px solid var(--line);border-radius:8px;padding:10px 13px;min-width:130px;outline:none;color:#6f8172;font-size:12px}.search-field{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--line);background:white;border-radius:8px}.search-field .icon{width:16px;color:#a6afa2}.search-field input{border:0;background:transparent;outline:none;padding:11px 0;min-width:200px;font-size:12px}.tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin-bottom:22px}.tab{font-size:12px;color:#9aa794;padding:0 0 13px}.tab.active{color:var(--green);border-bottom:2px solid var(--green);font-weight:600}.exam-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}.exam-list-card{padding:23px}.exam-list-card h2{font-size:16px;margin:20px 0 10px;line-height:1.6}.exam-list-card .subtle{font-size:11px}.exam-list-card .progress-track{margin:20px 0 10px}.exam-card-actions{border-top:1px solid var(--line);padding-top:16px;margin-top:20px;display:flex;align-items:center;gap:9px;justify-content:space-between}.upload-drop{padding:50px 25px;border:1.5px dashed #cbd8c5;border-radius:12px;text-align:center;background:#fafcf8;display:block;cursor:pointer}.upload-drop.dragging{border-color:var(--green);background:var(--mint)}.upload-drop>.icon{width:38px;height:38px;color:#8da57d;margin-bottom:17px}.upload-drop h2{font-size:16px;font-weight:500}.upload-drop p{color:#a1ac9a;font-size:11px;margin-top:9px}.upload-drop .btn{margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.upload-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.info-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:20px}.info-list li{display:flex;gap:11px;align-items:flex-start}.info-list .icon{width:18px;height:18px;color:#95a58a;margin-top:2px}.info-list strong{font-size:12px;font-weight:500}.info-list p{font-size:11px;color:#9aa790;line-height:1.8;margin-top:5px}.file-list{display:flex;flex-direction:column;gap:0;max-height:250px;overflow:auto}.file-row{padding:11px 0;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);font-size:12px}.file-row>.icon{color:#96a68a;width:18px}.file-row .subtle{font-size:10px}.upload-progress{padding:17px;background:#f2f6ee;border-radius:8px;margin-top:18px}.upload-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px}.review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 17px;flex-wrap:wrap}.review-grid{display:grid;grid-template-columns:155px minmax(280px,1fr) minmax(290px,.9fr);gap:16px;align-items:start}.page-rail{padding:12px 9px;max-height:calc(100vh - 210px);overflow:auto}.page-choice{width:100%;display:flex;align-items:center;gap:9px;padding:10px 8px;border-radius:8px;text-align:left;margin-bottom:4px;border:1px solid transparent}.page-choice.active{border-color:#c9ddc2;background:#f0f5eb}.page-choice img{width:29px;height:38px;object-fit:cover;object-position:top;border:1px solid #e4e9de;border-radius:3px}.page-choice strong{font-size:11px;font-weight:500}.page-choice p{font-size:9px;color:#99a68f;margin-top:5px}.page-choice .status-mark{height:5px;width:5px;border-radius:50%;background:#d7bc91;margin-left:auto}.page-choice .status-mark.done{background:#8cac78}.scan-head{padding:13px 15px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#8e9c85}.scan-image-wrap{height:calc(100vh - 345px);min-height:390px;max-height:700px;overflow:auto;background:#eef0eb;padding:20px;text-align:center}.scan-image-wrap img{width:100%;height:auto;display:block;box-shadow:0 5px 20px #183a2a15;transform-origin:top left}.identity-form{display:grid;grid-template-columns:minmax(70px,1fr) 60px auto;gap:8px;padding:13px;border-top:1px solid var(--line);align-items:end}.identity-form label{font-size:9px;color:#9ca792;display:flex;flex-direction:column;gap:5px}.identity-form input{width:100%;padding:7px;border-radius:5px;border:1px solid #dce5d6;font-size:11px;outline:none}.identity-form button{padding:7px 10px;font-size:10px;min-height:30px}.review-results{padding:17px;max-height:calc(100vh - 210px);overflow:auto}.review-result-header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px}.review-result-header h2{font-size:14px}.question-card{border:1px solid #e7eddf;border-radius:9px;padding:14px;margin-top:13px;background:#fff}.question-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.question-card-head strong{font-size:11px;font-weight:600;color:#748a68}.question-stem{font-size:12px;line-height:1.9;color:#4e6752;white-space:pre-wrap}.qa-answer{padding:9px 11px;background:#f7f8f4;border-radius:6px;font-size:11px;color:#94a18a;margin-top:10px;line-height:1.8;white-space:pre-wrap}.qa-answer strong{color:#668052;font-weight:500}.qa-answer.wrong strong{color:#bf8f62}.question-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px}.question-footer .subtle{font-size:9px}.question-footer .btn{font-size:10px;padding:4px 7px;min-height:25px}.knowledge-pills{display:flex;gap:5px;flex-wrap:wrap;margin-top:11px}.knowledge-pill{font-size:9px;color:#9aaa8f;background:#f3f6ee;padding:3px 6px;border-radius:4px}.notice{padding:12px 15px;border-radius:8px;background:#f5f7ef;font-size:11px;color:#8c9b7c;line-height:1.9;display:flex;align-items:flex-start;gap:9px}.notice .icon{width:15px;height:15px;margin-top:3px;flex-shrink:0}.notice.orange{background:#faf3e9;color:#b28d5e}.notice.red{background:#fcf0ed;color:#b87767}.students-layout{display:grid;grid-template-columns:215px minmax(0,1fr);gap:20px}.student-nav{padding:12px;align-self:start;max-height:calc(100vh - 215px);overflow:auto}.student-option{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:12px 10px;border-radius:8px;margin-bottom:4px}.student-option.active{background:#edf4e7}.student-option strong{font-size:12px;font-weight:500}.student-option p{font-size:10px;color:#9ba78f;margin-top:5px}.student-option .avatar{width:30px;height:30px;font-size:10px}.student-option>.tag{margin-left:auto}.mistake-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.mistake-grid .question-card{margin:0;padding:20px}.mistake-detail{font-size:11px;line-height:1.9;color:#8b9b7c;margin-top:10px;white-space:pre-wrap}.settings-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);gap:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#718366}.field.full{grid-column:1/-1}.field span.optional{font-size:10px;color:#a6b09d;font-weight:400;margin-left:6px}.field input,.field select,.field textarea{width:100%;border:1px solid #dfe6d9;background:white;border-radius:7px;padding:11px 12px;outline:none;color:#526c4c;font-size:12px;line-height:1.6}.field textarea{resize:vertical;min-height:90px}.field input:focus,.field textarea:focus,.field select:focus{border-color:#9cb68b;box-shadow:0 0 0 3px #8cad6d12}.field small{font-size:10px;color:#a0ab96;line-height:1.7}.field-label{font-weight:500}.form-section-title{font-size:12px;font-weight:600;color:#6a805b;border-top:1px solid var(--line);padding-top:19px;grid-column:1/-1}.check-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#7b8d6c;line-height:1.8}.check-label input{accent-color:var(--green);width:14px;height:14px}.source-card{display:block;padding:15px;border:1px solid var(--line);border-radius:8px;margin-bottom:10px}.source-card strong{font-size:12px;font-weight:500;display:block;margin-bottom:6px}.source-card span{font-size:10px;color:#9eaa94}.source-card:hover{background:#f8faf4}.paper-card{padding:22px}.paper-card-top{display:flex;align-items:center;gap:10px}.paper-card .knowledge-pills{margin:20px 0}.paper-card .btn{font-size:11px}.paper-preview-question{padding:17px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.9;white-space:pre-wrap}.paper-preview-question .row{margin-top:8px}.paper-preview-question:last-child{border-bottom:0}.generate-controls{display:flex;gap:18px;align-items:end;padding:23px;flex-wrap:wrap}.generate-controls .field{min-width:150px}.generate-controls .check-label{padding-bottom:7px}.modal-backdrop{position:fixed;inset:0;z-index:50;background:#1a302e55;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:25px}.modal{width:min(660px,100%);max-height:calc(100vh - 50px);border-radius:16px;background:#fff;box-shadow:0 20px 80px #12372d22;display:flex;flex-direction:column;overflow:hidden}.modal.wide{width:min(900px,100%)}.modal-head{padding:23px 27px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0}.modal-head h2{font-size:18px}.modal-content{padding:24px 27px;overflow:auto}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:20px 27px;border-top:1px solid var(--line);background:#fbfcf8;flex-shrink:0}.modal .form-grid{gap:17px}.modal-error{display:none;margin-bottom:16px;padding:10px;background:#fbefeb;border-radius:7px;color:#b0775b;font-size:12px;line-height:1.8}.modal-error.visible{display:block}.search-results{margin-top:16px;max-height:400px;overflow:auto}.search-result{display:block;text-align:left;width:100%;padding:13px;border-bottom:1px solid var(--line);font-size:12px}.search-result:hover{background:var(--mint)}#toasts{pointer-events:none;position:fixed;right:28px;bottom:28px;z-index:100;display:flex;flex-direction:column;gap:10px}.toast{padding:13px 18px;border:1px solid #dce8d5;border-radius:10px;background:#fff;box-shadow:0 8px 40px #123c2420;max-width:400px;display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.8;color:#608056}.toast .icon{width:17px;margin-top:2px;flex-shrink:0}.toast.error{border-color:#ead6cb;color:#b67c59}.login-page{min-height:100vh;display:grid;grid-template-columns:1.08fr 1fr;background:white}.login-intro{background:#e9efdf;padding:55px 65px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-intro .brand{padding:0}.login-intro .brand-title{color:#355a39}.login-intro .brand-sub{color:#91a17c}.login-intro-main{max-width:440px;margin:55px 0}.login-intro h1{font-size:39px;line-height:1.7;letter-spacing:1px;color:#3f5d3a;font-weight:500}.login-intro-main>p{font-size:13px;line-height:2.1;color:#899c77;margin-top:20px;max-width:360px}.login-illustration{margin-top:37px;max-width:380px;position:relative}.login-illustration svg{width:100%;height:auto}.login-intro-bottom{font-size:11px;color:#9aa78b;display:flex;align-items:center;gap:8px}.login-form-side{display:flex;align-items:center;justify-content:center;padding:50px}.login-form{width:340px}.login-form h2{font-size:27px;font-weight:550;letter-spacing:-.4px;margin-bottom:11px}.login-form>p{font-size:12px;color:#9aa493;margin-bottom:35px}.login-form .field{margin-bottom:22px}.login-form .field input{padding:13px}.login-form .btn{width:100%;margin-top:10px;padding:13px}.login-note{font-size:10px;line-height:2;color:#a8b29e;margin-top:25px;text-align:center}.login-error{color:#b57b5a;font-size:11px;min-height:20px;line-height:1.8;margin-bottom:6px}.first-login-note{background:#f5f7ed;padding:12px 14px;border-radius:8px;font-size:11px;color:#92a07e;line-height:1.9;margin-bottom:20px}.capacity-meter{height:5px;border-radius:5px;background:#edf1e5;margin:13px 0 8px;overflow:hidden}.capacity-meter span{display:block;height:100%;background:#a5b98b}.stat-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.stat-mini{padding:18px;background:#f8faf5;border-radius:8px}.stat-mini strong{display:block;font-size:24px;margin:8px 0}.stat-mini span{font-size:10px;color:#9aab89}.identity-list{display:flex;flex-direction:column;gap:10px;margin-top:18px}.identity-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:7px;font-size:12px}.result-scale{display:flex;gap:0;height:12px;overflow:hidden;border-radius:6px;margin:20px 0}.result-scale span{height:100%;background:#a2b98c}.result-scale span:nth-child(2){background:#cda47b}.result-scale span:nth-child(3){background:#dccc9d}.result-scale span:nth-child(4){background:#ccd1bf}.legend{display:flex;gap:15px;flex-wrap:wrap;font-size:10px;color:#94a087}.legend i{width:7px;height:7px;border-radius:2px;background:#a2b98c;display:inline-block;margin-right:5px}.legend span:nth-child(2) i{background:#cda47b}.legend span:nth-child(3) i{background:#dccc9d}.legend span:nth-child(4) i{background:#ccd1bf}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1600px){.main{padding:35px 45px}.topbar{padding:0 45px}.stats{gap:22px}.stat-card{padding:24px}.dashboard-grid{gap:25px}.panel-head{padding:24px 26px 0}.panel-body{padding:23px 26px 26px}.exam-feature{padding:26px}}
@media(max-width:1250px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:25px 12px 16px}.brand{padding:0 12px 22px}.main{padding:25px 24px 35px}.topbar{padding:0 24px}.top-actions{gap:13px}.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr)}.stat-card{padding:17px}.stats{gap:12px}.stat-value{font-size:28px}.review-grid{grid-template-columns:130px minmax(230px,1fr) minmax(270px,.95fr);gap:12px}.review-results{padding:12px}.identity-form{grid-template-columns:minmax(60px,1fr) 45px}.identity-form button{grid-column:1/-1}.upload-layout{grid-template-columns:minmax(0,1fr) 250px}}
@media(max-width:1090px){.shell{grid-template-columns:76px minmax(0,1fr)}.sidebar{padding:23px 10px 15px}.brand{padding:0 8px 22px}.brand div,.nav-caption,.nav-item span,.nav-badge,.sidebar-card,.sidebar-bottom .nav-item span{display:none}.nav-item{justify-content:center;padding:12px}.nav-item.active:after{right:5px;width:3px;height:3px}.top-search span,.top-search .kbd{display:none}.sidebar-bottom{margin-top:auto}.review-grid{grid-template-columns:140px minmax(0,1fr)}.review-results{grid-column:2;max-height:none}.scan-image-wrap{height:430px;min-height:300px}.page-rail{grid-row:1/3}.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(245px,1fr)}.workflow{gap:4px}.step{font-size:9px}.upload-layout{grid-template-columns:minmax(0,1fr) 245px}.settings-grid{grid-template-columns:minmax(0,1fr)}.settings-grid>.stack{display:grid;grid-template-columns:1fr 1fr;align-items:start}}
@media(max-width:800px){.main{padding:22px 18px}.topbar{padding:0 18px;height:65px}.top-actions{gap:8px}.breadcrumb{font-size:10px;gap:7px}.user-chip{padding-left:10px}.user-chip div{display:none}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:20px}h1{font-size:23px}.page-heading>.row{width:100%;flex-wrap:wrap}.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.hero-strip{padding:20px}.hero-strip h2{font-size:16px}.hero-icon{display:none}.upload-layout{grid-template-columns:1fr}.upload-layout>.stack{display:none}.review-grid{grid-template-columns:110px minmax(0,1fr)}.page-rail{padding:8px 4px}.page-choice{padding:8px 4px}.page-choice img{width:23px;height:32px}.page-choice p{font-size:8px}.page-choice strong{font-size:10px}.review-results{padding:12px}.students-layout{grid-template-columns:160px minmax(0,1fr)}.mistake-grid{grid-template-columns:1fr}.student-option{padding:10px 7px}.student-option>.tag{display:none}.student-option .avatar{width:24px;height:24px}.student-option strong{font-size:11px}.settings-grid>.stack{display:flex}.login-page{grid-template-columns:1fr}.login-intro{display:none}.login-form-side{padding:25px}.form-grid{grid-template-columns:1fr}.field.full,.form-section-title{grid-column:auto}.hero-strip>.btn{padding:9px;font-size:11px}.hero-strip p{font-size:10px}.stat-mini-grid{grid-template-columns:1fr 1fr}.modal-head,.modal-content,.modal-actions{padding:18px}.modal-backdrop{padding:15px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.form-grid>.full{grid-column:1/-1}
.bar-item{width:100%;text-align:left}.bar-item:hover .bar-bg{background:#eaf0e4}
@media(max-height:850px){.sidebar{padding-top:23px;overflow-y:auto}.sidebar-card{display:none}.brand{padding-bottom:17px}.nav-caption{padding-top:10px;padding-bottom:7px}.nav-item{min-height:38px;padding-top:9px;padding-bottom:9px;margin:2px 0}.sidebar-bottom{margin-top:16px;flex-shrink:0}.sidebar-spacer{min-height:5px}}

.scan-source-label{padding:10px 16px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.identity-form .class-check{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:12px}.identity-form .class-check input{width:auto;min-width:16px}

/* 0.4.0 candidate: visible scroll areas and first-use flow */
html{scrollbar-gutter:stable}body{overflow-y:scroll}.main{min-width:0;overflow-x:auto}.review-grid{min-width:0}.page-rail,.review-results,.scan-image-wrap{overflow-y:scroll;scrollbar-gutter:stable;scrollbar-width:auto}.page-rail,.review-results{max-height:70vh;min-height:240px}.scan-image-wrap{max-height:65vh}.quick-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px}.quick-step{border:1px solid var(--line,#dae1db);border-radius:18px;padding:24px;text-align:left;background:white;color:var(--ink,#203c36);cursor:pointer}.quick-step:hover{border-color:#267469;box-shadow:0 5px 18px #163b3510}.quick-step p{margin:12px 0;color:var(--muted);line-height:1.7}.quick-step>span:last-child{color:#1c7868}.step-number{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;background:#e5f1e9;border-radius:50%;margin-bottom:12px}.class-catalog{max-height:35vh;overflow-y:auto}.quick-step:focus-visible{outline:3px solid #267469;outline-offset:3px}

.startup-error{max-width:600px;margin:15vh auto;padding:24px}.startup-error p{margin:20px 0;line-height:1.8}
/* 0.4.1: focused upload flow and independent, aligned review panes */
.switch-state{min-height:380px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:var(--muted)}
.switch-state h2{color:var(--ink)}
.upload-back{margin:-8px 0 22px;color:var(--muted)}.upload-intro{margin:30px 0 26px}.upload-intro h2{font-size:21px;margin-bottom:9px}.upload-simple .panel-body{padding:30px}.upload-simple{max-width:1200px}.upload-simple .upload-drop{padding:48px 20px}.upload-simple .upload-drop h2{font-size:20px}.upload-simple .upload-drop p{font-size:12px}.upload-details{font-size:12px;color:var(--muted);margin-top:22px;line-height:1.9}.upload-details summary{cursor:pointer}.upload-details[open] p{margin-top:12px}.saved-files{margin:24px 0 28px}.saved-file{display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--line);padding:23px 0}.saved-file>.icon{width:25px;height:25px;color:var(--ink)}.saved-file h3{font-size:16px;font-weight:500;margin-bottom:7px}.upload-footer{margin-top:26px;padding-top:24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:14px}.upload-footer .btn{min-height:48px;padding:12px 24px;font-size:15px}.exam-steps{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #dfe6dd;border-radius:14px;overflow:hidden;background:white;margin:16px 0 28px}.exam-steps button{padding:22px 10px;border-right:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:13px;color:#98a39a;font-size:16px}.exam-steps button:last-child{border-right:0}.exam-steps button span{display:grid;place-items:center;width:30px;height:30px;background:#f1f3ee;border-radius:50%;font-size:13px}.exam-steps .current{background:#edf4e9;color:var(--green);font-weight:600}.exam-steps .current span{background:var(--green);color:white}
.viewer-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid var(--line);flex-shrink:0}.viewer-toolbar .icon-btn{width:31px;height:31px}.viewer-icon{width:17px;height:17px;opacity:.68}.viewer-angle{font-size:11px;color:var(--muted);min-width:30px;text-align:center}.scan-source-label{padding:9px 13px;border-bottom:1px solid var(--line);flex-shrink:0;font-size:10px}.scan-head{flex-shrink:0}.identity-evidence{font-size:11px;line-height:1.9;background:#f6f8f2;padding:12px;border-radius:8px}.identity-evidence summary{cursor:pointer;color:#6c8268}.identity-evidence p{margin-top:8px}.scope-conflict{color:#ac5e3d}.analysis-node{padding:20px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.9}.analysis-node p{margin-top:9px}.analysis-node details{font-size:11px;margin-top:10px}.analysis-node summary{cursor:pointer}.modal-body pre{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(min-width:1000px){.review-grid{grid-template-columns:125px minmax(240px,1fr) minmax(285px,.95fr);gap:14px;align-items:stretch;height:max(490px,calc(100dvh - 265px))}.review-grid>.panel{height:100%;min-height:0;max-height:none;grid-row:auto;grid-column:auto}.review-grid>.page-rail,.review-grid>.review-results{overflow-y:auto}.scan-panel{display:flex;flex-direction:column;overflow:hidden}.scan-panel .identity-form{grid-template-columns:minmax(90px,1fr) 65px auto;flex-shrink:0;border-top:0}.scan-panel .identity-form button{grid-column:auto}.scan-image-wrap{height:auto;flex:1;min-height:0;max-height:none;padding:14px;display:grid;place-items:center;overflow:auto}.scan-image-wrap img{width:100%;height:100%;object-fit:contain;min-height:0;max-height:100%;transform-origin:center;box-shadow:none}.review-results{padding:15px}.scan-head .tag{font-size:9px}.scan-panel .identity-form .class-check{grid-column:1/-1}}
@media(min-width:1000px) and (max-width:1180px){.review-grid{grid-template-columns:105px minmax(235px,1fr) minmax(265px,.95fr);gap:10px}.scan-panel .identity-form{grid-template-columns:minmax(70px,1fr) 55px}.scan-panel .identity-form button{grid-column:1/-1}.viewer-toolbar{gap:4px;padding:8px}.viewer-toolbar .icon-btn{width:28px;height:28px}}
@media(max-width:999px){.review-grid{grid-template-columns:110px minmax(0,1fr)}.review-grid>.page-rail{grid-row:1/3;max-height:75vh}.scan-panel{display:flex;flex-direction:column}.review-grid>.review-results{grid-column:2;max-height:650px}.scan-image-wrap{height:440px;min-height:260px;max-height:none;display:grid;place-items:center}.scan-image-wrap img{width:100%;height:100%;object-fit:contain;transform-origin:center}.exam-steps button{font-size:12px;gap:7px;padding:16px 5px}.upload-simple .panel-body{padding:22px}.saved-file h3{font-size:13px}}
@media(max-width:600px){.exam-steps button{font-size:10px;gap:4px}.exam-steps button span{width:22px;height:22px}.review-grid{grid-template-columns:minmax(0,1fr)}.review-grid>.page-rail{grid-row:auto;display:flex;max-height:120px;overflow:auto}.page-choice{min-width:130px}.review-grid>.review-results{grid-column:1}.upload-simple .panel-body{padding:18px}.saved-file{gap:10px}.saved-file .tag{font-size:9px}.upload-footer .btn{padding:10px 14px;font-size:12px}}
.upload-simple{max-width:none}.review-grid{height:max(420px,calc(100dvh - 305px))}.scan-image-wrap{display:block;position:relative;padding:0}.scan-image-stage{position:relative;min-width:100%;min-height:100%}.scan-image-wrap .scan-image-stage img{position:absolute;left:50%;top:50%;max-height:none;max-width:none;object-fit:unset;transform-origin:center;display:block}
@media(max-width:999px){.review-grid{height:auto}.scan-image-wrap{height:440px;flex:none}}
.modal-content pre{font-size:11px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.model-candidate{border:1px solid #eadfcd;border-radius:8px;padding:10px;margin:12px 0;color:#8d775c;font-size:11px;line-height:1.8}.model-candidate summary{cursor:pointer;font-weight:500}.model-candidate p{margin-top:8px}
.scan-panel .identity-form .class-check{flex-direction:row;justify-content:flex-start;text-align:left;line-height:1.65;font-size:10px}.scan-panel .identity-form .class-check input{flex:none;padding:0;width:16px;height:16px;margin:0}
@media(min-width:1000px){.review-grid{grid-template-columns:140px minmax(235px,1fr) minmax(270px,.95fr)}.page-choice{display:grid;grid-template-columns:27px minmax(0,1fr) 5px;gap:7px;padding:10px 6px;align-items:center}.page-choice img{width:27px;height:38px}.page-choice .status-mark{margin:0}.page-choice p{font-size:9px;line-height:1.65;word-break:normal}.page-choice strong{font-size:11px;line-height:1.6}}
.page-ai-notes{display:block}.page-ai-notes summary{cursor:pointer;font-weight:500}.page-ai-notes p{margin-top:10px}.saved-files{margin:16px 0 20px}.saved-file{padding:18px 0}
@media(min-width:1000px){.scan-panel .identity-form{grid-template-columns:minmax(70px,1fr) 55px auto}.scan-panel .identity-form button{grid-column:3;grid-row:1}.scan-panel .identity-form .class-check{grid-row:2;grid-column:1/-1}}
.error-point{background:#fbf6ed;border-radius:8px;padding:12px;font-size:11px;color:#927454;line-height:1.8;margin:12px 0}.error-point p{margin-top:6px}

.scan-image-stage.is-failed{display:none}.scan-preview-error{padding:32px 20px;max-width:100%;color:var(--muted);line-height:1.8}.scan-preview-error[hidden]{display:none}.scan-preview-error .btn{margin-top:16px}
.material-preview{display:block;width:100%;max-height:480px;object-fit:contain;background:#f3f5ef;margin-top:16px;border-radius:12px}.saved-file .grow{min-width:0}#upload-role{max-width:420px}fieldset{border:1px solid var(--line,#dce4df);border-radius:10px;padding:14px;min-width:0}fieldset legend{font-weight:600;padding:0 8px}

/* Persisted model provenance can contain separate OCR/grading model names. */
.review-result-header>.tag{white-space:normal;max-width:58%;line-height:1.6;text-align:right;overflow-wrap:anywhere}.review-result-header h2{flex:none}
/* Single-exam practice workspace */
.pw-students{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:18px 0}.pw-student{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #d8e1dc;border-radius:12px}.pw-student small,.pw-paper small{display:block;margin-top:6px;color:#637870}.pw-preview{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;margin-top:20px}.pw-preview aside{max-height:690px;overflow:auto}.pw-preview section{min-width:0}.pw-paper{display:flex;align-items:center;margin:8px 0}.pw-paper button{white-space:normal;text-align:left;width:100%}#pw-pages{display:flex;flex-wrap:wrap;gap:6px}#pw-pdf{width:100%;height:620px;border:1px solid #d8e1dc;background:#eee}#pw-generate input[type=number]{width:85px}#pw-generate details{margin:16px 0}#pw-root .row{gap:10px}#pw-root .panel-body{padding:22px}@media(max-width:900px){.pw-preview{grid-template-columns:180px minmax(0,1fr)}#pw-pdf{height:520px}}
#pw-root button{scroll-margin-top:100px}#pw-root input[type=number],#pw-root select{padding:9px 12px;border:1px solid #d8e1dc;border-radius:8px;background:#fff;color:#203b39;font:inherit}#pw-root select{max-width:100%}.pw-preview section>.row{position:sticky;top:78px;padding:8px 0;background:#fff;z-index:2}.pw-paper small{font-weight:400}.pw-paper button{display:block}#pw-root input[type=checkbox]{width:17px;height:17px;flex-shrink:0}
