:root{font-family:Inter,system-ui,-apple-system,"Segoe UI","Malgun Gothic",sans-serif;color:#183044;background:#f7f9fc;font-size:14px;font-synthesis:none}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit}button,a,label.dropzone{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid #cdd8e2;border-radius:9px;padding:10px 15px;background:#fff;color:#294558;font-weight:600}button:hover{background:#eef3f8}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #81afff;outline-offset:3px}a{color:#265fe6;text-decoration:none}.site-header{height:76px;padding:0 6vw;border-bottom:1px solid #e6ecf2;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{color:#183044;font-size:21px;font-weight:800;letter-spacing:-.7px;white-space:nowrap}.brand span{font-size:14px;font-weight:500;color:#708092;border-left:1px solid #dfe6ed;padding-left:16px;margin-left:14px;letter-spacing:-.2px}.header-actions{display:flex;align-items:center;gap:15px}.research-badge{font-size:11px;font-weight:700;color:#596e88;background:#f0f4f8;border:1px solid #e4eaf1;padding:5px 9px;border-radius:20px;white-space:nowrap}.text-button{border:0;background:transparent;padding:6px 8px;color:#708092;font-size:12px;font-weight:500}.text-button:hover{background:#edf2f8;color:#183044}main{max-width:1000px;margin:auto;padding:42px 24px 26px}.upload-section{max-width:660px;margin:0 auto 32px}.intro{text-align:center;margin:8px 0 26px}.intro h1{font-size:34px;line-height:1.3;letter-spacing:-1.1px;margin:0 0 12px;font-weight:750}.intro p{font-size:16px;line-height:1.65;color:#758494;margin:0}.upload-card{padding:26px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 8px 32px #19395306}.dropzone{display:flex;position:relative;align-items:center;justify-content:center;flex-direction:column;gap:9px;min-height:226px;padding:24px 16px;border:1.5px dashed #b9cbe0;border-radius:12px;background:#f9fbff;color:#71859b;cursor:pointer;transition:background .15s,border-color .15s}.dropzone:hover,.dropzone.dragging,.dropzone:focus-within{background:#f1f6ff;border-color:#3977ee}.dropzone.is-selected{min-height:140px;padding:20px}.dropzone svg{margin-bottom:7px;color:#5689df}.dropzone.is-selected svg{width:26px;height:29px;margin:0}.dropzone strong{font-size:17px;font-weight:650;color:#294863}.dropzone span{font-size:13px}.dropzone small{font-size:11px;color:#8b9aae;margin-top:7px}.file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.selected-file{display:flex;align-items:center;gap:11px;background:#f1f6ff;border:1px solid #dbe8fc;border-radius:9px;margin:14px 0 0;padding:12px}.selected-file>div{min-width:0;flex:1}.selected-file strong{display:block;font-size:13px;overflow-wrap:anywhere}.selected-file span:not(.file-mark){display:block;font-size:11px;color:#7d8fa2;margin-top:3px}.file-mark{display:grid;place-items:center;background:#dce9ff;color:#2869df;border-radius:7px;width:30px;height:34px;flex:none}.primary{background:#2868e8;color:#fff;border:1px solid #2868e8;font-weight:650;box-shadow:0 3px 8px #2868e817}.primary:hover{background:#1c55c5;border-color:#1c55c5}.analyze-button{width:100%;min-height:52px;display:flex;align-items:center;justify-content:center;gap:14px;font-size:16px;margin-top:20px;border-radius:10px}.analyze-button:disabled{background:#b4c7ea;border-color:#b4c7ea;color:#fff;opacity:1;box-shadow:none}.analyze-button span{font-size:22px;font-weight:400}.upload-note{text-align:center;font-size:12px;line-height:1.8;color:#8a98a8;margin:15px 0 0}#notice{max-width:952px;margin:20px auto 0;border-radius:10px;padding:13px 17px;color:#3f6587;background:#edf4ff;border:1px solid #dce8fa;font-size:13px;line-height:1.6;white-space:pre-wrap}#notice.error{color:#a23f34;background:#fff4f1;border-color:#f4dcd6}.result-card{background:white;border:1px solid #e1e8f0;border-radius:16px;padding:26px;margin:28px 0 18px}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.result-heading>div{min-width:0}.eyebrow{font-size:11px;color:#788ca2;font-weight:600}.result-heading h2{font-size:18px;letter-spacing:-.4px;margin:7px 0 5px;overflow-wrap:anywhere}.hint{font-size:12px;color:#789;line-height:1.7;margin:5px 0}.download-link{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:11px 16px;white-space:nowrap;flex-shrink:0}.processing{padding:44px 16px 25px;text-align:center}.spinner{border:3px solid #e8eef8;border-top-color:#2868e8;border-radius:50%;width:34px;height:34px;margin:0 auto 22px;animation:spin 1s linear infinite}.processing h3{font-size:18px;letter-spacing:-.3px;margin:0 0 10px}.processing p{font-size:13px;color:#7b8b9b;line-height:1.7}.progress-steps{display:flex;justify-content:center;list-style:none;gap:12px;padding:0;margin:32px 0 0;font-size:12px;color:#a0adba}.progress-steps li{border-top:3px solid #edf0f5;padding-top:11px;min-width:100px}.progress-steps li.active{color:#2868e8;border-color:#2868e8;font-weight:700}.progress-steps li.done{color:#7994b8;border-color:#b8cef1}.failure-state{background:#fff6f3;padding:24px;border-radius:10px;color:#a34436;text-align:center;line-height:1.7}.preview-toolbar{display:flex;align-items:center;gap:9px;padding:12px 0 16px;border-top:1px solid #edf1f5;color:#70869c}.preview-toolbar label{margin:0;font-size:12px}.preview-toolbar select{width:auto;max-width:240px;margin:0;background:#fff}.preview-toolbar>span{font-size:11px;margin-left:auto;color:#8f9aaa}#pdf-preview-wrap{background:#edf1f5;border:1px solid #e4e9ef;border-radius:9px;max-height:1100px;overflow:auto}#pdf-preview{display:block;width:100%;height:auto}.advanced-tools,.history-panel{border:1px solid #e1e8f0;background:white;border-radius:12px;padding:16px 20px;margin:14px 0}summary{font-size:13px;font-weight:600;color:#6b7f92;cursor:pointer;line-height:1.6}summary::marker{font-size:10px}#history-count{display:inline-block;padding:0 6px;margin-left:4px;border-radius:10px;background:#eef3f9;font-size:11px}.advanced-actions{display:flex;gap:8px;justify-content:flex-end;margin:17px 0}.editor-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,1fr);gap:24px;border-top:1px solid #e7edf3;padding-top:12px}.paper-column,.review-column{min-width:0}.review-column h2{font-size:16px}.review-column h3{font-size:12px;color:#789;margin-top:17px}label{display:block;color:#546b80;font-size:12px;margin:12px 0}input,select,textarea{display:block;width:100%;max-width:100%;border:1px solid #cad6e2;border-radius:7px;padding:9px;margin-top:6px;background:#fff;color:#1c354c;font:inherit;font-size:13px}textarea{line-height:1.7;resize:vertical}pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:210px;overflow:auto;padding:12px;background:#f6f8fb;border-radius:7px;font:12px/1.75 system-ui;margin:8px 0;color:#536b81}details details{margin:15px 0}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.toolbar label{flex:1;min-width:120px}.toolbar button{font-size:12px}.check{display:flex;align-items:center;gap:8px}.check input{width:auto;margin:0}.annotation-input{margin:15px 0}#canvas-wrap{border:1px solid #e0e7ef;border-radius:8px;background:#eef2f7;min-height:200px;overflow:auto;padding:9px;text-align:center}canvas{display:block;max-width:100%;height:auto;touch-action:none;background:white;box-shadow:0 2px 8px #152e4515}#paper-empty{font-size:12px;color:#8495a4;line-height:1.7}.region-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.region-controls label{max-width:170px}.region-controls button{font-size:12px}.annotation-row{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;padding:10px 0;border-bottom:1px solid #edf1f6;font-size:12px;line-height:1.7}.annotation-row span{overflow-wrap:anywhere}.annotation-row button{flex:none;font-size:11px;padding:5px 8px}.review-actions{display:flex;gap:8px;margin-top:14px}.review-actions button{flex:1;font-size:12px}.danger{color:#a84b40;margin-top:20px;font-size:12px}.heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0 6px}.submission{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;text-align:left;margin:7px 0;padding:12px;font-size:13px;font-weight:500}.submission span{overflow-wrap:anywhere;min-width:0}.submission small{font-size:11px;color:#8192a4;white-space:nowrap}.submission.selected{border-color:#9fbee9;background:#f7faff}.workspace-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;font-size:10px;color:#98a5b4;padding:24px 0 0;line-height:1.8}#question-status{border-radius:7px;background:#f7f5ed;padding:9px;color:#90815b}#source-editor>summary{font-size:14px;color:#496581}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation-duration:2.5s}.dropzone{transition:none}}@media(max-width:650px){.site-header{height:63px;padding:0 18px}.brand{font-size:19px}.brand span{font-size:12px;padding-left:10px;margin-left:8px}.header-actions{gap:6px}.research-badge{font-size:10px;padding:4px 7px}.text-button{font-size:11px;padding:5px}main{padding:24px 16px 20px}.intro{margin:9px 0 22px}.intro h1{font-size:28px;margin-bottom:9px}.intro p{font-size:14px}.upload-card{padding:17px;border-radius:14px}.dropzone{min-height:210px;padding:20px 10px}.dropzone strong{font-size:16px}.dropzone span{font-size:12px}.upload-note{font-size:11px;padding:0 7px}#notice{margin:14px 16px 0;font-size:12px}.result-card{padding:16px;border-radius:12px}.result-heading{align-items:flex-start;gap:8px}.result-heading h2{font-size:16px}.download-link{padding:9px 10px;font-size:11px}.preview-toolbar{flex-wrap:wrap}.preview-toolbar select{max-width:180px;font-size:12px}.preview-toolbar>span{font-size:10px}.processing{padding:29px 0 17px}.progress-steps{gap:9px;font-size:11px}.progress-steps li{min-width:75px}.advanced-tools,.history-panel{padding:14px}.editor-grid{display:block}.review-column{margin-top:24px;border-top:1px solid #e7edf3;padding-top:15px}.workspace-footer{font-size:9px}.submission{gap:8px}.submission small{font-size:10px}.advanced-actions{justify-content:flex-start}.advanced-actions button{font-size:12px}}

.connection-panel{max-width:660px;width:calc(100% - 32px);margin:24px auto 0;padding:14px 18px;display:flex;align-items:center;gap:16px;border:1px solid #e1e8f0;border-radius:12px;background:#fff}.connection-panel p{margin:0;flex:1;color:#708092;font-size:13px;line-height:1.7}.connection-panel button{flex:none;font-size:12px}
.explanation-choice{margin-top:20px;font-size:13px}.report-status{background:#f1f6ff;color:#456582;padding:12px 14px;border-radius:8px;font-size:13px;line-height:1.7}#pdf-preview-wrap[data-zoom=actual] #pdf-preview{width:auto;max-width:none}.preview-toolbar .zoom-label{margin-left:auto}.preview-toolbar #pdf-zoom{max-width:155px}@media(max-width:650px){.preview-toolbar .zoom-label{margin-left:0}.preview-toolbar>span{width:100%;margin-left:0}}
.student-image-links{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:13px;padding:4px 0 14px}.student-image-links a{text-decoration:underline;text-underline-offset:3px}
.report-type-choice{padding:0;border:0;margin:22px 0 8px;min-width:0}.report-type-choice legend{font-size:13px;font-weight:650;padding:0;margin-bottom:9px}.report-type-option{display:flex;align-items:flex-start;gap:10px;padding:13px;margin:8px 0;border:1px solid #dce5ef;border-radius:9px;cursor:pointer;background:#fff}.report-type-option:has(input:checked){border-color:#2868e8;background:#f3f7ff}.report-type-option input{width:18px;height:18px;flex:none;margin:2px 0 0;accent-color:#2868e8}.report-type-option span{min-width:0}.report-type-option strong{display:block;font-size:13px;color:#294863}.report-type-option small{display:block;font-size:12px;font-weight:400;line-height:1.65;color:#708092;margin-top:4px;overflow-wrap:anywhere}.report-type-choice:disabled .report-type-option{opacity:.6;cursor:default}.report-variants{border-top:1px solid #edf1f5;margin:14px 0;padding:14px 0}.report-variant{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:13px 0}.report-variant+.report-variant{border-top:1px solid #edf1f5}.report-variant-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.report-variant-actions a,.report-variant-actions button{font-size:12px}.report-variant-actions a{text-decoration:underline;text-underline-offset:3px}@media(max-width:650px){.report-variant{align-items:flex-start}.report-variant-actions{width:100%;gap:9px}.report-type-option{padding:11px}.report-type-option small{font-size:12px}}
.processing-metrics{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:16px 28px;margin:23px auto 14px;max-width:640px}.processing-metrics>div{min-width:100px}.processing-metrics span{display:block;font-size:12px;color:#7b8b9b;margin-bottom:5px}.processing-metrics strong{font-size:15px;font-weight:650;color:#294863}#processing-elapsed{display:block;font-size:25px;font-variant-numeric:tabular-nums;letter-spacing:.3px}.analysis-progress{display:block;appearance:none;border:0;border-radius:8px;overflow:hidden;height:9px;width:100%;max-width:560px;margin:0 auto 13px;background:#e8eef8;accent-color:#2868e8}.analysis-progress::-webkit-progress-bar{background:#e8eef8;border-radius:8px}.analysis-progress::-webkit-progress-value{background:#2868e8;border-radius:8px}.analysis-progress::-moz-progress-bar{background:#2868e8;border-radius:8px}.processing .processing-current{color:#456582;min-height:22px;margin:10px 0 0}@media(max-width:650px){.processing-metrics{gap:14px;margin-top:20px}.processing-stage-metric{width:100%}.processing-metrics strong{font-size:13px}#processing-elapsed{font-size:24px}}
@media(max-width:650px){.result-heading{flex-direction:column;align-items:stretch}.result-heading .download-link{align-self:flex-start;max-width:100%;white-space:normal;text-align:center}}
