.acct-bar{display:flex;justify-content:flex-end;padding:8px 14px 0}.hist-item{display:flex;align-items:center;gap:10px;padding:10px 4px;border-top:1px solid var(--gray-100,#f3f4f6)}.hist-item:first-of-type{border-top:none}.hist-item.clickable{cursor:pointer}.hist-main{flex:1;min-width:0}.hist-name{font-size:14px;font-weight:600;color:var(--gray-900,#111827)}.hist-meta{font-size:11.5px;color:var(--gray-500,#6b7280);margin-top:2px}.hist-go{font-size:13px;color:var(--brand,#2563eb);font-weight:600;white-space:nowrap}.hist-tag{font-size:11px;padding:2px 8px;border-radius:999px;background:var(--gray-100,#f3f4f6);color:var(--gray-500,#6b7280);white-space:nowrap}.hist-tag.fail{background:#fdecea;color:#c0392b}.app-shell{display:flex;flex-direction:column;width:100%;min-height:100vh;min-height:100dvh;background:var(--bg)}@media(min-width:520px){html,body{background:var(--gray-200)}.app-shell{max-width:480px;margin:0 auto;min-height:100vh;box-shadow:0 0 24px #00000014}}.stepper{background:var(--surface);padding:8px 10px;display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--gray-100);flex-shrink:0;position:sticky;top:0;z-index:10;padding-top:calc(8px + env(safe-area-inset-top))}.stepper-back{width:30px;height:30px;border-radius:50%;background:var(--gray-100);color:var(--brand);font-size:18px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer;-webkit-user-select:none;user-select:none;line-height:1}.stepper-back:active{background:var(--gray-200)}.stepper-count{color:var(--gray-500);font-size:12px;flex-shrink:0;padding-left:4px}.step{display:flex;align-items:center;gap:6px;color:var(--gray-400);font-size:12px}.step .dot{width:22px;height:22px;border-radius:50%;background:var(--gray-200);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.step.active{color:var(--brand);font-weight:600}.step.active .dot{background:var(--brand)}.step.done .dot{background:var(--success)}.step.done .dot:before{content:"✓"}.step-line{flex:1;height:2px;background:var(--gray-200);margin:0 6px}.step-line.done{background:var(--success)}.mini-steps{display:flex;align-items:center;justify-content:center}.mini-step{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--gray-400)}.mini-step .ms-dot{width:20px;height:20px;border-radius:50%;background:var(--gray-200);color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center}.mini-step.active{color:var(--brand);font-weight:600}.mini-step.active .ms-dot{background:var(--brand)}.mini-step.done{color:var(--success)}.mini-step.done .ms-dot{background:var(--success)}.mini-line{width:42px;height:2px;background:var(--gray-200);margin:0 8px}.mini-line.done{background:var(--success)}.scroll-area{padding:16px}.scroll-area::-webkit-scrollbar{display:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:none;border-radius:var(--radius-sm);padding:11px 18px;font-size:14px;font-weight:600;cursor:pointer;transition:all .15s var(--ease)}.btn:active{transform:scale(.97)}.btn-primary{background:var(--brand);color:#fff}.btn-outline{background:transparent;color:var(--brand);border:1.5px solid var(--brand)}.btn-ghost{background:var(--gray-100);color:var(--gray-700)}.btn-sm{padding:7px 12px;font-size:13px;border-radius:var(--radius-xs)}.card{background:var(--surface);border-radius:var(--radius);padding:14px;margin-bottom:12px;box-shadow:var(--shadow-sm)}.section-title{font-size:15px;font-weight:700;color:var(--gray-800);margin-bottom:10px}.section-desc{color:var(--gray-500);font-size:13px;margin-bottom:12px}.sel{width:100%;height:42px;border:1.5px solid var(--gray-200);border-radius:var(--radius-sm);padding:0 12px;font-size:15px;background:var(--surface);color:var(--gray-900)}.btn:disabled{opacity:.5;cursor:not-allowed}.action-bar{padding:4px 16px 20px;padding-bottom:calc(20px + env(safe-area-inset-bottom));display:flex;gap:10px}.action-bar .btn{flex:1}.action-bar .btn-secondary{flex:0 0 auto}.sample-card{background:var(--surface);border-radius:var(--radius);padding:14px;margin-bottom:12px;border:1px solid var(--gray-200)}.sample-label{font-size:12px;color:var(--gray-500);margin-bottom:10px}.sample-pages{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sample-page{background:var(--gray-50);border-radius:6px;overflow:hidden;box-shadow:0 1px 3px #0000000f}.sample-page img{width:100%;display:block}.schem{background:#fff;padding:8px;aspect-ratio:3/4;display:flex;flex-direction:column;gap:6px}.schem-title{font-size:8px;font-weight:700;color:var(--gray-700);text-align:center;line-height:1.3;padding:3px;background:var(--brand-50);border:1px solid var(--brand-light);border-radius:3px}.schem-row{display:flex;align-items:center;gap:4px;font-size:8px;color:var(--gray-500)}.schem-k{flex:none}.schem-blur{flex:1;height:8px;border-radius:2px;background:repeating-linear-gradient(90deg,var(--gray-300) 0 3px,transparent 3px 6px)}.schem-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}.schem-grid i{aspect-ratio:1;border:1px solid var(--gray-300);border-radius:50%}.schem-lines{display:flex;flex-direction:column;gap:4px;flex:1}.schem-lines.tall{gap:5px}.schem-lines b{height:5px;border-radius:2px;background:var(--gray-100);border-bottom:1px dashed var(--gray-300)}.sample-page .cap{text-align:center;font-size:11px;padding:4px 0;color:var(--gray-500);background:#fff;border-top:1px solid var(--gray-100)}.sample-tips{font-size:12px;color:var(--gray-600);margin-top:10px;line-height:1.65}.upload-area{display:block;background:var(--surface);border:2px dashed var(--gray-300);border-radius:var(--radius);padding:28px 16px;text-align:center;color:var(--gray-500);cursor:pointer}.upload-area .big-icon{font-size:40px;margin-bottom:8px}.upload-area .hint{font-size:12px;margin-top:4px;color:var(--gray-400)}.photo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}.photo-cell{aspect-ratio:3/4;border-radius:6px;position:relative;border:1px solid var(--gray-200);background-size:cover;background-position:center}.photo-cell .del{position:absolute;top:3px;right:3px;background:#0000008c;color:#fff;width:16px;height:16px;border-radius:50%;font-size:11px;display:flex;align-items:center;justify-content:center;cursor:pointer}.photo-cell .label{position:absolute;left:3px;bottom:3px;background:#0000008c;color:#fff;font-size:9px;padding:1px 4px;border-radius:2px}.detected-bar{background:var(--brand-50);border:1px solid var(--brand-light);border-radius:var(--radius);padding:12px 14px;margin-top:14px}.detected-head{font-size:12px;color:var(--brand-deeper);margin-bottom:4px}.detected-title{font-size:14px;font-weight:600;color:var(--gray-900)}.detected-title .ok{color:var(--success);font-size:11px;margin-left:6px}.detected-meta{font-size:12px;color:var(--gray-500);margin-top:4px}.toggle-row{display:flex;justify-content:space-between;align-items:center;padding:4px 0}.toggle-row .label-text{flex:1;font-size:14px;font-weight:500;color:var(--gray-800)}.toggle-row .label-text small{display:block;font-weight:400;color:var(--gray-500);margin-top:2px}.switch{width:46px;height:26px;background:var(--gray-300);border-radius:13px;position:relative;transition:background .2s;flex-shrink:0;cursor:pointer}.switch:after{content:"";position:absolute;top:2px;left:2px;width:22px;height:22px;background:#fff;border-radius:50%;transition:transform .2s;box-shadow:0 1px 3px #0003}.switch.on{background:var(--success)}.switch.on:after{transform:translate(20px)}.file-preview{background:var(--surface);border-radius:var(--radius);padding:12px;display:flex;align-items:center;gap:10px;box-shadow:var(--shadow-sm)}.file-preview .f-icon{width:36px;height:36px;background:var(--success);border-radius:6px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px}.file-preview .f-info{flex:1;min-width:0}.file-preview .f-name{font-weight:500;font-size:14px}.file-preview .f-meta{font-size:12px;color:var(--gray-500);margin-top:2px}.processing{padding:30px 24px;text-align:center}.spinner{width:56px;height:56px;border:4px solid var(--gray-200);border-top-color:var(--brand);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 18px}@keyframes spin{to{transform:rotate(360deg)}}.stages{text-align:left;margin-top:18px;background:var(--surface);border-radius:var(--radius);padding:6px 14px}.stage-item{display:flex;align-items:center;gap:10px;padding:10px 0;font-size:14px;border-bottom:1px solid var(--gray-100)}.stage-item:last-child{border-bottom:0}.stage-item .ico{width:22px;text-align:center}.stage-item.pending{color:var(--gray-400)}.stage-item.pending .ico:before{content:"○"}.stage-item.active{color:var(--brand);font-weight:500}.stage-item.active .ico:before{content:"◐"}.stage-item.done{color:var(--gray-500)}.stage-item.done .ico:before{content:"✓";color:var(--success);font-weight:700}.pdf-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:var(--bg);display:flex;flex-direction:column}@media(min-width:520px){.pdf-overlay{max-width:480px;margin:0 auto}}.pdf-bar{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--surface);border-bottom:1px solid var(--gray-200);flex-shrink:0}.pdf-close{font-size:15px;color:var(--brand);font-weight:600;cursor:pointer}.pdf-title{flex:1;text-align:center;font-size:15px;font-weight:700;color:var(--gray-900);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdf-ext{font-size:13px;color:var(--gray-500);text-decoration:none}.pdf-frame{flex:1;width:100%;border:0;background:var(--gray-100)}.pdf-pages{flex:1;overflow-y:auto;background:var(--gray-200);-webkit-overflow-scrolling:touch;padding:8px}.pdf-pages img{display:block;width:100%;margin:0 auto 8px;background:#fff;box-shadow:0 1px 4px #00000014}.pdf-pages img:last-child{margin-bottom:24px}.state-card{text-align:center;padding:28px 16px}.state-emoji{font-size:42px;line-height:1}.state-fail{border:1px solid var(--warning);background:#fff8f0}.progress-wrap{width:100%;height:8px;border-radius:6px;background:var(--gray-200);overflow:hidden;margin:18px 0 8px}.progress-bar{height:100%;border-radius:6px;background:var(--brand);transition:width .5s ease}.eta-hint{font-size:12px;color:var(--gray-500);margin-bottom:16px}.home-hero{text-align:center;padding:22px 12px 18px}.home-badge{width:62px;height:62px;margin:0 auto;border-radius:50%;background:var(--brand-50);color:#5e8dea;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 7px #5e8dea0d}.home-badge svg{width:30px;height:30px}.home-h1{font-size:21px;font-weight:800;color:var(--gray-900);margin:15px 0 8px}.home-sub{font-size:13px;color:var(--gray-600);line-height:1.7}.home-flow{display:flex;align-items:flex-start;justify-content:space-between;background:var(--brand-50);border-radius:var(--radius);padding:15px 6px;margin-bottom:14px}.flow-item{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12px;color:var(--gray-600);flex:1;text-align:center}.flow-ico{width:38px;height:38px;border-radius:12px;background:var(--surface);color:#5e8dea;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #1e3a8a12}.flow-ico svg{width:21px;height:21px}.flow-link{flex:0 0 14px;height:2px;margin-top:18px;background:repeating-linear-gradient(90deg,#C7D9F5 0 4px,transparent 4px 7px)}.coverage-card{padding:10px 14px}.coverage-head{display:flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none}.coverage-icon{font-size:16px;flex:none}.coverage-summary{flex:1;font-size:13px;color:var(--gray-800);font-weight:600;line-height:1.5}.coverage-mini{font-weight:400;color:var(--gray-500);font-size:12px}.coverage-toggle{font-size:12px;color:#5e8dea;flex:none}.coverage-body{margin-top:10px;padding-top:10px;border-top:1px dashed var(--gray-200)}.cov-subject{margin-bottom:8px}.cov-subj-name{font-size:13px;font-weight:700;color:var(--gray-900);margin-bottom:3px}.cov-type{font-size:12px;color:var(--gray-700);line-height:1.7;padding-left:8px}.cov-type-label{color:var(--gray-500);margin-right:4px}.cov-districts{color:var(--gray-700)}.cov-note{margin-top:8px;padding-top:8px;border-top:1px dashed var(--gray-200);font-size:11px;color:var(--gray-500);line-height:1.7}.prep-li{display:flex;align-items:flex-start;gap:9px;font-size:13px;color:var(--gray-700);line-height:1.55;padding:6px 0}.prep-ico{width:18px;height:18px;flex:none;color:#8fa9d8;margin-top:1px}.sample-report{display:flex;align-items:center;gap:12px;cursor:pointer}.sample-report:active{background:var(--brand-50)}.sr-ico{width:38px;height:38px;flex:none;border-radius:10px;background:var(--brand-50);color:#5e8dea;display:flex;align-items:center;justify-content:center}.sr-ico svg{width:21px;height:21px}.sr-txt{flex:1;min-width:0}.sr-h{font-size:14px;font-weight:700;color:var(--gray-900)}.sr-d{font-size:12px;color:var(--gray-500);margin-top:2px}.sr-arrow{flex:none;color:var(--gray-400);font-size:18px}.name-input{flex:1;min-width:0;font-size:15px;font-weight:700;color:var(--gray-900);padding:7px 10px;border:1.5px solid var(--brand-light);border-radius:8px;background:var(--brand-50);outline:none}.name-input:focus{border-color:var(--brand);background:var(--surface)}.opt-card{background:var(--surface);border:1.5px solid var(--gray-200);border-radius:var(--radius);padding:14px;margin-bottom:12px;cursor:pointer;transition:border-color .15s,background .15s}.opt-card.is-sel{border-color:var(--brand);background:var(--brand-50)}.opt-head{display:flex;align-items:center;gap:8px;font-size:15px}.opt-radio{width:16px;height:16px;border-radius:50%;border:2px solid var(--gray-300);flex-shrink:0}.opt-card.is-sel .opt-radio{border-color:var(--brand);background:radial-gradient(var(--brand) 40%,transparent 45%)}.opt-tag{margin-left:auto;font-size:11px;padding:2px 8px;border-radius:8px}.opt-tag.green{background:var(--success-bg);color:#15803d}.opt-tag.amber{background:var(--accent-bg);color:#b45309}.opt-desc{font-size:12px;color:var(--gray-500);margin-top:6px;line-height:1.6}.src-banner{font-size:12px;padding:8px 12px;border-radius:var(--radius-sm);margin-bottom:10px;line-height:1.5}.src-banner.teacher{background:var(--success-bg);color:#15803d}.src-banner.auto{background:var(--accent-bg);color:#b45309}.summary-card .est{font-size:11px;background:#ffffff40;color:#fff;padding:1px 6px;border-radius:8px;align-self:center}.summary-card{background:linear-gradient(135deg,var(--brand-deeper),var(--brand));color:#fff;border-radius:var(--radius);padding:18px;margin-bottom:12px}.summary-card .student-name{font-size:13px;opacity:.9}.summary-card .exam{font-size:13px;opacity:.85;margin-top:2px}.summary-card .score-row{display:flex;align-items:baseline;gap:6px;margin-top:12px}.summary-card .score{font-size:36px;font-weight:700}.summary-card .full{font-size:15px;opacity:.7}.summary-card .rank-hint{font-size:12px;opacity:.85;margin-top:6px}.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.stat-cell{background:var(--surface);border-radius:var(--radius-sm);padding:12px 8px;text-align:center;box-shadow:var(--shadow-sm)}.stat-cell .num{font-size:22px;font-weight:700}.stat-cell .num.warn{color:var(--warning)}.stat-cell .num.bad{color:var(--error)}.stat-cell .lbl{font-size:11px;color:var(--gray-500);margin-top:2px}.module-row{margin-bottom:10px}.module-row:last-child{margin-bottom:0}.module-meta{display:flex;justify-content:space-between;font-size:13px;margin-bottom:4px}.module-meta .name{font-weight:500;color:var(--gray-800)}.module-meta .frac{color:var(--gray-500)}.module-meta .frac strong{color:var(--gray-900)}.bar{width:100%;height:6px;background:var(--gray-100);border-radius:3px;overflow:hidden}.bar>div{height:100%;border-radius:3px}.bar>.green{background:var(--success)}.bar>.yellow{background:var(--warning)}.bar>.red{background:var(--error)}.wrong-q{background:var(--surface);border-radius:var(--radius);padding:14px;margin-bottom:10px;border-left:3px solid var(--error);box-shadow:var(--shadow-sm)}.wrong-q.partial{border-left-color:var(--warning)}.wrong-q .qhead{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}.wrong-q .qid{font-size:14px;font-weight:600}.wrong-q .qtype{font-size:11px;background:var(--gray-100);color:var(--gray-500);padding:1px 6px;border-radius:3px;margin-left:6px}.wrong-q .lost{font-size:12px;color:var(--error);font-weight:600}.wrong-q .kp{font-size:12px;color:var(--gray-600);margin-bottom:6px}.wrong-q .kp .tag{display:inline-block;background:var(--brand-50);color:var(--brand);padding:1px 6px;border-radius:3px;margin-right:4px;font-size:11px}.wrong-q .reason{font-size:13px;color:var(--gray-800);background:var(--accent-bg);padding:8px 10px;border-radius:6px;margin-top:6px}.wrong-q .reason b{color:#b45309}.mc-intro{background:var(--warning-bg);border:1px solid var(--warning)}.mc-reasons{margin:8px 0 0;padding-left:18px;font-size:12.5px;color:var(--gray-700)}.mc-reasons li{margin:2px 0}.mc-tally{display:flex;gap:12px;margin-top:10px;font-size:12.5px;font-weight:600}.mc-tally .t-red{color:var(--error)}.mc-tally .t-yellow{color:#b45309}.mc-tally .t-green{color:var(--success)}.mc-q{border-left:3px solid var(--gray-200)}.mc-q.yellow{border-left-color:var(--warning)}.mc-q.red{border-left-color:var(--error)}.mc-q.green{border-left-color:var(--success)}.mc-q.compact{padding:10px 14px}.mc-q-head{display:flex;align-items:center;gap:8px}.mc-num{font-size:14px;font-weight:600}.mc-flag{font-size:11px;padding:1px 7px;border-radius:10px;font-weight:600}.mc-flag.yellow{background:var(--warning-bg);color:#b45309}.mc-flag.red{background:#fee2e2;color:var(--error)}.mc-flag.green{background:#dcfce7;color:var(--success)}.mc-reason{font-size:12.5px;color:var(--gray-600);margin:6px 0 8px;line-height:1.6}.mc-dens{margin:8px 0}.mc-dens-row{display:flex;align-items:center;gap:8px;margin:3px 0}.mc-dens-l{width:14px;font-size:12px;color:var(--gray-500);font-weight:600}.mc-dens-track{flex:1;height:8px;background:var(--gray-100);border-radius:4px;overflow:hidden}.mc-dens-fill{height:100%;background:var(--brand);border-radius:4px;transition:width .2s}.mc-pick{display:flex;gap:8px;margin-top:8px}.mc-opt{flex:1;height:42px;border:1.5px solid var(--gray-200);background:var(--surface);border-radius:10px;font-size:16px;font-weight:600;color:var(--gray-700);cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .12s}.mc-opt:active{transform:scale(.96)}.mc-opt.on{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 2px 8px #2563eb40}.mc-toggle{width:100%;margin:2px 0 10px}.mc-submit{width:100%;margin-top:8px}.mc-err{color:var(--error);font-size:13px;text-align:center;margin-top:10px}
