.mobile-nav .nav-action{color:var(--text-primary);font-size:15px;letter-spacing:1px}.grading-main{flex:1;position:relative;overflow:hidden;background:#e5e7eb}.viewer-wrap{position:absolute;top:0;left:0;right:0;bottom:calc(50% + 48px);overflow:hidden;background:#dde3ea}.paper-canvas{position:absolute;inset:8px 10px;border-radius:8px;background:#dbe1e8;border:1px solid rgba(148,163,184,.42);padding:10px;color:#334155;overflow:hidden}.paper-kicker{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:11px;font-weight:var(--fw-semibold)}.paper-title{margin-top:12px;font-weight:var(--fw-semibold);font-size:15px;color:#0f172a;line-height:1.5}.paper-meta{margin-top:10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#64748b;font-size:12px}.paper-chip{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;background:#f8fafc;color:#475569;font-size:11px;font-weight:var(--fw-medium)}.paper-chip.is-updated{background:#dbeafe;color:#1d4ed8}.paper-preview-card{margin-top:14px;border-radius:16px;padding:16px;background:linear-gradient(180deg,#f8fbff,#fff);border:1px solid #dbeafe;box-shadow:0 10px 24px #2563eb14}.paper-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.paper-preview-order{font-size:12px;font-weight:var(--fw-semibold);color:#2563eb;letter-spacing:.02em}.paper-preview-section{margin-top:4px;font-size:15px;font-weight:var(--fw-semibold);color:#0f172a;line-height:1.55}.paper-preview-score{min-width:38px;height:32px;padding:0 10px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:var(--fw-semibold);background:#eff6ff;color:#2563eb}.paper-preview-score.is-correct{background:#f0fdf4;color:#16a34a}.paper-preview-score.is-wrong{background:#fef2f2;color:#dc2626}.paper-preview-score.is-half{background:#fffbeb;color:#d97706}.paper-preview-score.is-empty{background:#f8fafc;color:#64748b}.paper-answer-box{border-radius:14px;padding:14px 16px;background:#fff;border:1px dashed #93c5fd;color:#1d4ed8;font-size:18px;line-height:1.9;font-family:Kaiti,STKaiti,serif}.paper-scan-stage{position:relative;height:100%;min-height:0;display:flex;align-items:center;justify-content:center}.paper-scan-stage:before{content:"";position:absolute;inset:0;border-radius:10px;background:radial-gradient(circle at 20% 18%,rgba(255,255,255,.48),transparent 28%),linear-gradient(180deg,#0f172a0a,#0f172a1f)}.scan-sheet{position:relative;width:min(100%,335px);min-height:206px;max-height:100%;overflow:hidden;border-radius:10px;background:#fff;box-shadow:0 8px 20px #0f172a29;border:1px solid #d7dde7;transform:rotate(-.35deg)}.scan-sheet:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0,transparent 23px,rgba(147,197,253,.22) 24px),linear-gradient(90deg,transparent 0,transparent 34px,rgba(248,113,113,.25) 35px,transparent 36px);pointer-events:none}.scan-head{position:relative;z-index:1;height:28px;display:flex;align-items:center;justify-content:flex-end;padding:0 10px 0 88px;border-bottom:1px solid #eef2f7;color:#64748b;font-size:10px}.scan-meta-overlay{position:absolute;left:28px;top:18px;z-index:8;display:inline-flex;align-items:center;gap:4px}.scan-meta-overlay .tool-btn{height:22px;padding:0 9px;border-radius:999px;font-size:11px;line-height:22px}.scan-body{position:relative;z-index:1;padding:10px 14px 14px}.scan-section{color:#0f172a;font-size:13px;font-weight:var(--fw-semibold);line-height:1.45}.scan-stem{margin-top:7px;color:#2563eb;font-family:Kaiti,STKaiti,serif;font-size:18px;line-height:1.75;letter-spacing:.02em}.scan-blank{display:inline-flex;min-width:34px;justify-content:center;padding:0 4px;border-bottom:1px solid #93c5fd;color:#1d4ed8}.scan-mark{margin-left:2px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12px;font-weight:var(--fw-bold)}.scan-score-mark{position:absolute;z-index:2;right:15px;top:72px;min-width:24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#10b981;font-size:18px;font-weight:var(--fw-bold);font-family:Kaiti,STKaiti,serif;border:2px solid rgba(16,185,129,.45);transform:rotate(6deg)}.scan-active-window{position:absolute;z-index:0;left:38px;right:14px;top:78px;height:76px;border:1px dashed rgba(37,99,235,.5);border-radius:12px;background:#eff6ff61}.paper-empty{display:flex;align-items:center;justify-content:center;height:100%;color:#94a3b8;font-size:14px}.page-arrow{position:absolute;top:50%;width:34px;height:34px;margin-top:-17px;border:none;border-radius:50%;background:#0f172a47;color:#fff;cursor:pointer;box-shadow:0 8px 18px #0f172a2e}.page-arrow.left{left:8px}.page-arrow.right{right:8px}.page-arrow.is-disabled{opacity:.38;cursor:default;box-shadow:none}.viewer-tools{position:absolute;left:0;right:0;bottom:50%;height:48px;background:#fffffff2;backdrop-filter:blur(4px);border-top:1px solid #e5e7eb;border-bottom:1px solid #eef2f7;display:flex;align-items:center;justify-content:flex-start;padding:0 12px;z-index:4;gap:28px}.tool-btn{border:none;background:none;color:#111827;font-size:14px;cursor:pointer;padding:4px}.tool-group{display:flex;gap:14px;align-items:center}.tool-meta-group{display:flex;align-items:center;gap:8px}.tool-page-btn{padding:4px 10px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:13px;font-weight:var(--fw-medium)}.tool-question-indicator{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:999px;background:#f8fafc;color:#475569;font-size:12px;font-weight:var(--fw-medium)}.viewer-tools .tool-question-indicator{margin-left:auto}.grading-panel{position:absolute;left:0;right:0;bottom:0;height:50%;background:#fff;border-radius:14px 14px 0 0;box-shadow:0 -6px 20px #0f172a29;z-index:5;display:flex;flex-direction:column}.panel-status{display:none}.status-copy{flex:1;min-width:0;font-size:12px;line-height:1.6;color:var(--text-secondary)}.question-trigger-band{display:none}.panel-body{overflow-y:auto;padding:10px 12px 14px;scroll-behavior:smooth}.panel-banner{margin-bottom:12px}.panel-banner-title{margin-bottom:4px;color:#1d4ed8}.panel-banner-copy{margin:0;color:#475569}.question-block{margin-bottom:14px;border-radius:14px;padding:12px;transition:background-color .18s ease,box-shadow .18s ease,border-color .18s ease}.question-block.is-active{background:#fff;box-shadow:inset 0 0 0 1px #bfdbfe}.question-summary{margin-bottom:12px}.question-headline{display:flex;align-items:flex-start;gap:8px;margin-bottom:6px}.question-order-badge{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-width:52px;height:26px;padding:0 10px;border-radius:999px;background:#e0f2fe;color:#0369a1;font-size:12px;font-weight:var(--fw-semibold)}.summary-title{font-size:15px;font-weight:var(--fw-semibold);color:#0f172a;line-height:1.55}.summary-passage{font-size:13px;color:var(--text-secondary);line-height:1.6}.question-summary.collapsed .summary-passage{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.summary-toggle{border:none;background:none;color:var(--brand-primary);font-size:13px;padding:0;margin-top:4px;cursor:pointer}.question-switcher{margin-top:10px;padding-top:10px;border-top:1px solid #eef2f7}.question-switcher-title{margin-bottom:8px;color:#64748b;font-size:12px}.question-switcher-list{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.question-switcher-list--stack{display:grid;gap:8px;overflow:visible}.question-switch-btn{flex:0 0 auto;min-width:68px;height:30px;border-radius:999px;border:1px solid #dbeafe;background:#fff;color:#2563eb;font-size:12px;font-weight:var(--fw-medium);cursor:pointer}.question-switch-btn.is-active{background:#2563eb;border-color:#2563eb;color:#fff}.question-switch-btn.is-reviewed{border-color:#bbf7d0;color:#16a34a}.question-switch-group{border:1px solid #dbeafe;border-radius:14px;overflow:hidden;background:#fff}.question-switch-row,.sub-question-row{width:100%;min-height:42px;border:none;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 14px;color:#111827;font-size:13px;font-weight:var(--fw-semibold);cursor:pointer}.question-switch-row.is-active{color:#0f172a}.sub-question-list{border-top:1px solid #edf2f7}.sub-question-row{min-height:34px;padding-left:28px;font-size:12px;font-weight:var(--fw-medium);border-top:1px solid #f1f5f9}.question-switch-tags{flex-shrink:0;display:inline-flex;align-items:center;justify-content:flex-end;gap:6px}.question-switch-status{flex-shrink:0;min-width:52px;text-align:right;font-size:11px;font-weight:var(--fw-semibold);color:#64748b}.question-switch-status.is-current{min-width:56px;height:30px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border-radius:0;background:#2563eb;color:#fff}.question-switch-status.is-reviewed{color:#111827}.question-switch-status.is-pending{color:#2563eb}.question-switch-status.is-waiting{color:#111827}.card-block{border:1px solid #eef2f7;border-radius:10px;padding:10px;background:#fff;margin-bottom:10px}.card-title{font-size:14px;color:#111827;font-weight:var(--fw-semibold);margin-bottom:4px}.grading-item{border-top:1px solid #f0f0f0;padding-top:10px;margin-top:10px}.grading-item:first-of-type{border-top:none;margin-top:0;padding-top:0}.item-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:8px}.item-meta{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;flex:1}.item-label{color:#374151;font-size:13px;font-weight:var(--fw-medium)}.item-badges{display:flex;flex-wrap:wrap;gap:6px}.item-controls{display:flex;gap:6px;align-items:center;flex-shrink:0}.ai-chip{border-radius:12px;border:1px solid #cbd5e1;background:#f1f5f9;color:#475569;font-size:11px;padding:2px 8px;min-height:22px;display:inline-flex;align-items:center;cursor:default}.ai-chip.is-ai{border-color:#bfdbfe;background:#eff6ff;color:#2563eb}.mode-switch{border:1px solid var(--brand-primary);border-radius:6px;overflow:hidden;display:inline-flex;flex-shrink:0}.mode-btn{border:none;background:#fff;color:var(--brand-primary);font-size:11px;padding:4px 8px;cursor:pointer}.mode-btn+.mode-btn{border-left:1px solid var(--brand-primary)}.mode-btn.active{background:var(--brand-primary);color:#fff}.judge-panel,.score-panel{display:none}.judge-panel.show,.score-panel.show{display:block}.judge-line,.score-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.judge-main,.score-main{display:flex;align-items:center;gap:8px;flex:1;flex-wrap:wrap;min-width:0}.judge-group{display:flex;gap:6px}.judge-btn{min-width:32px;height:32px;padding:0 9px;border-radius:8px;border:1px solid #d1d5db;background:#fff;color:#6b7280;cursor:pointer}.judge-btn.is-active.source-ai{background:#2563eb;color:#fff;border-color:#2563eb}.judge-btn.is-active.source-teacher{background:#16a34a;color:#fff;border-color:#16a34a}.score-stepper{border:1px solid #d1d5db;border-radius:8px;overflow:hidden;display:inline-flex;align-items:center;background:#fff}.score-stepper.source-ai{border-color:#93c5fd}.score-stepper.source-teacher{border-color:#86efac}.score-step-btn{width:28px;height:30px;border:none;background:#f8fafc;color:#4b5563;cursor:pointer}.score-input{width:48px;height:30px;border:none;text-align:center;font-size:13px;outline:none}.score-hint{color:var(--text-muted);font-size:12px}.result-new-chip{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;background:#fff7ed;color:#ea580c;font-size:12px;font-weight:var(--fw-semibold)}.ref-answer{margin-top:8px;background:#eff6ff;color:#1e40af;border-radius:8px;padding:8px 10px;font-size:13px}.grading-footer{gap:10px;background:#fff;border-top:1px solid var(--border-light);position:relative;z-index:6}.footer-btn{border-radius:22px;height:44px;border:none;font-size:15px;font-weight:var(--fw-medium);cursor:pointer}.footer-btn.secondary{flex:1;border:1px solid var(--brand-primary);color:var(--brand-primary);background:#fff}.footer-btn.primary{flex:1;background:var(--brand-primary);color:#fff}.student-correction{border-radius:12px;border:1px solid #fdba74;background:#fff7ed;color:#c2410c;font-size:11px;padding:2px 8px;min-height:22px;display:inline-flex;align-items:center;font-weight:var(--fw-medium)}body.page-picker-open{overflow:hidden}.page-picker-overlay{position:fixed;inset:0;display:none;align-items:flex-start;justify-content:center;padding:72px 12px 0;background:#0f172a6b;backdrop-filter:blur(2px);z-index:40}.page-picker-overlay.show{display:flex}.page-picker-dialog{width:min(100%,375px);max-height:min(calc(100vh - 112px),560px);border-radius:16px;background:#fff;box-shadow:0 18px 42px #0f172a3d;overflow:hidden;display:flex;flex-direction:column}.page-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 12px;border-bottom:1px solid #eef2f7}.page-picker-kicker{font-size:11px;color:#2563eb;font-weight:var(--fw-semibold);letter-spacing:.08em;text-transform:uppercase}.page-picker-title{font-size:17px;color:#0f172a;font-weight:var(--fw-semibold);line-height:1.35}.page-picker-close{width:36px;height:36px;border:none;border-radius:50%;background:#f1f5f9;color:#475569;font-size:22px;cursor:pointer;flex-shrink:0;transition:background-color .16s ease,color .16s ease}.page-picker-close:hover{background:#e2e8f0;color:#0f172a}.page-picker-close:focus-visible,.question-picker-row:focus-visible,.question-picker-subrow:focus-visible{outline:2px solid #93c5fd;outline-offset:-2px}.page-picker-notice{margin:12px 16px 0;padding:12px 14px;border-radius:14px;background:#f8fafc;color:#475569;font-size:12px;line-height:1.6}.page-picker-notice.is-hidden{display:none}.page-picker-notice.is-ai{background:#eff6ff;color:#1d4ed8}.page-picker-notice.is-teacher{background:#ecfdf5;color:#15803d}.page-picker-notice.is-saved{background:#f8fafc;color:#334155}.page-picker-list{padding:10px 12px 14px;overflow:auto;display:flex;flex-direction:column;gap:8px;background:#f8fafc}.page-picker-item{width:100%;border-radius:14px;border:1px solid #dbeafe;background:#fff;padding:12px 14px;text-align:left;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px}.page-picker-item.is-active{background:#eff6ff;border-color:#93c5fd}.page-picker-item-main{display:flex;flex-direction:column;gap:4px}.page-picker-item-title{color:#0f172a;font-size:14px;font-weight:var(--fw-semibold)}.page-picker-item-meta{color:#64748b;font-size:12px}.page-picker-item-tags{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.page-picker-item-tag{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:#f8fafc;color:#475569;font-size:11px;font-weight:var(--fw-medium)}.page-picker-item-tag.is-active{background:#2563eb;color:#fff}.page-picker-item-tag.is-updated{background:#dbeafe;color:#1d4ed8}.page-picker-item-tag.is-ai{background:#eff6ff;color:#1d4ed8}.page-picker-item-tag.is-teacher{background:#ecfdf5;color:#15803d}.page-picker-item-tag.is-saved{background:#f1f5f9;color:#475569}.page-picker-actions{padding:0 16px 16px;display:grid;gap:10px;border-top:1px solid #eef2f7;background:#fff}.page-picker-actions:empty{display:none}.page-picker-actions-copy{padding-top:12px;color:#334155;font-size:12px;line-height:1.6}.page-picker-actions-row{display:flex;gap:10px}.page-picker-action{flex:1;height:42px;border-radius:999px;border:none;font-size:14px;font-weight:var(--fw-medium);cursor:pointer}.page-picker-action.secondary{background:#fff;color:#2563eb;border:1px solid #bfdbfe}.page-picker-action.primary{background:#2563eb;color:#fff}.question-picker-group{flex-shrink:0;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:0;overflow:hidden;background:#fff}.question-picker-group.is-open{border-color:#bfdbfe;box-shadow:inset 0 0 0 1px #bfdbfe6b}.question-picker-row,.question-picker-subrow{width:100%;min-height:48px;border:none;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;color:#0f172a;font-size:13px;font-weight:var(--fw-semibold);cursor:pointer;transition:background-color .16s ease}.question-picker-row:hover,.question-picker-subrow:hover{background:#f8fafc}.question-picker-row.is-active{min-height:50px;background:#eff6ff}.question-picker-title{display:inline-flex;align-items:center;gap:7px;min-width:0}.question-picker-chevron{width:16px;height:16px;flex-shrink:0;color:#2563eb}.question-picker-sublist{display:none;border-top:1px solid #dbeafe;background:#fff}.question-picker-sublist.show{display:block}.question-picker-subrow{min-height:44px;padding-left:35px;font-size:12px;font-weight:var(--fw-medium);border-top:1px solid #eef2f7}.question-picker-tags{flex-shrink:0;display:inline-flex;align-items:center;justify-content:flex-end;gap:6px}.question-picker-status,.question-picker-current-tag{flex-shrink:0;min-width:54px;height:26px;padding:0 10px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:var(--fw-semibold)}.question-picker-status{color:#475569;background:#f1f5f9}.question-picker-status.is-pending{color:#1d4ed8;background:#dbeafe}.question-picker-status.is-reviewed{color:#15803d;background:#dcfce7}.question-picker-status.is-waiting{color:#475569;background:#f1f5f9}.question-picker-current-tag{min-width:58px;background:#2563eb;color:#fff}
