:root{color:#18212f;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f6f7f9;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;line-height:1.45}*{box-sizing:border-box}body{min-width:320px;margin:0}#root{min-height:100svh}.app-shell{color:#18212f;background:#f6f7f9;min-height:100svh}.topbar{background:#fff;border-bottom:1px solid #dde3eb;justify-content:space-between;align-items:center;gap:24px;padding:24px 32px;display:flex}.eyebrow{color:#547088;letter-spacing:0;margin:0 0 6px;font-size:13px;font-weight:700}.topbar h1{color:#0f1720;margin:0;font-size:30px;line-height:1.18}.topbar-actions{gap:10px;display:flex}button,select,input{font:inherit}button{cursor:pointer}.primary-button,.icon-button,.scan-button,.secondary-button,.save-button,.danger-button{border:1px solid #cfd8e3;border-radius:6px;justify-content:center;align-items:center;gap:8px;font-weight:700;display:inline-flex}.primary-button{color:#fff;background:#16655a;min-height:40px;padding:0 16px}.icon-button{color:#1f2937;background:#fff;width:40px;height:40px}.workspace{grid-template-columns:330px minmax(0,1fr);gap:20px;padding:20px;display:grid}.control-panel,.report-panel,.image-review,.insight-panel{background:#fff;border:1px solid #dde3eb;border-radius:8px}.control-panel{align-self:start}.panel-section{border-bottom:1px solid #e5ebf2;gap:14px;padding:18px;display:grid}.panel-section:last-child{border-bottom:0}.section-title{color:#223044;align-items:center;gap:8px;font-weight:800;display:flex}label{color:#506176;text-align:left;gap:8px;font-size:13px;font-weight:700;display:grid}select,input{color:#172033;background:#f8fafc;border:1px solid #ccd6e2;border-radius:6px;min-height:38px;padding:0 10px}.segmented{background:#eef2f6;border:1px solid #d5dde8;border-radius:7px;grid-auto-flow:column;gap:3px;padding:3px;display:grid}.segmented button{color:#536579;background:0 0;border:0;border-radius:5px;min-height:32px;padding:0 10px;font-weight:800}.segmented button.active{color:#0f6b5e;background:#fff;box-shadow:0 1px 2px #0f172a1f}.region-grid{grid-template-columns:1.3fr .7fr;gap:10px;display:grid}.textbook-chip,.student-note{color:#155448;background:#eef8f4;border:1px solid #c6e3d8;border-radius:6px;padding:10px;font-size:13px;font-weight:800}.textbook-chip{align-items:center;gap:8px;display:flex}.student-note{color:#516275;background:#f8fafc;border-color:#dce4ee}.upload-box{color:#43556a;cursor:pointer;text-align:center;background:#f8fafc;border:1px dashed #9aaabd;border-radius:8px;place-items:center;gap:10px;min-height:168px;padding:10px;font-size:14px;display:grid;overflow:hidden}.upload-box.dragging{background:#eef8f4;border-color:#0f6b5e}.upload-box input{display:none}.upload-box img{aspect-ratio:4/3;object-fit:contain;background:#e5ebf2;border-radius:6px;width:100%;display:block}.upload-action{color:#24486c;align-items:center;gap:8px;font-weight:900;display:inline-flex}.upload-feedback{background:#f8fafc;border:1px solid #dce4ee;border-radius:6px;gap:4px;padding:10px;display:grid}.upload-feedback strong{color:#223044;text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.upload-feedback span{color:#5f7186;font-size:12px;line-height:1.45}.scan-button{color:#fff;background:#24486c;min-height:42px}.secondary-button{color:#24486c;background:#fff;min-height:42px}.scan-button:disabled,.secondary-button:disabled{color:#66788d;cursor:not-allowed;background:#d9e1eb}.save-button{color:#fff;background:#16655a;min-height:36px;margin-left:auto;padding:0 12px}.save-button:disabled{color:#66788d;cursor:not-allowed;background:#e5ebf2}.danger-button{color:#b42318;background:#fff7f7;border-color:#fecaca;width:100%;min-height:36px;margin-top:14px;padding:0 12px}.review-area{grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);gap:20px;display:grid}.review-header,.report-header{text-align:left;border-bottom:1px solid #e5ebf2;justify-content:space-between;align-items:center;padding:16px 18px;display:flex}.review-header h2,.report-header h2,.exercise-header h2{color:#172033;margin:0;font-size:18px;line-height:1.2}.review-header p,.report-header p{color:#617389;margin:5px 0 0;font-size:13px}.status{color:#9a3412;white-space:nowrap;background:#fff7ed;border:1px solid #fed7aa;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800}.status.done{color:#166534;background:#ecfdf5;border-color:#bbf7d0}.paper-stage{background:#dbe2ea;max-height:680px;margin:16px;position:relative;overflow:auto}.paper-stage img{width:100%;height:auto;display:block}.mistake-pin{color:#fff;background:#dc2626eb;border:3px solid #fff;border-radius:999px;justify-content:center;align-items:center;width:34px;height:34px;font-size:13px;font-weight:900;display:flex;position:absolute;transform:translate(-50%,-50%);box-shadow:0 8px 20px #7f1d1d3d}.mistake-pin.selected{background:#0f6b5e;outline:4px solid #0f6b5e3d}.report-panel{align-self:start}.report-header{justify-content:flex-start;gap:10px}.summary-list{gap:8px;padding:16px 18px;display:grid}.mock-warning{color:#9a3412;background:#fff7ed;border-bottom:1px solid #fed7aa;align-items:center;gap:8px;padding:10px 18px;font-size:13px;font-weight:800;line-height:1.5;display:flex}.ai-success,.ai-error{border-bottom:1px solid;align-items:center;gap:8px;padding:10px 18px;font-size:13px;font-weight:800;line-height:1.5;display:flex}.ai-success{color:#166534;background:#ecfdf5;border-color:#bbf7d0}.ai-error{color:#b42318;background:#fff7f7;border-color:#fecaca}.summary-row{background:#f8fafc;border:1px solid #e1e8f0;border-radius:6px;grid-template-columns:1fr auto auto;align-items:center;gap:10px;padding:10px 12px;display:grid}.summary-row span{color:#334155;font-weight:800}.summary-row strong{color:#0f6b5e}.summary-row em{color:#64748b;font-size:13px;font-style:normal}.mistake-detail{text-align:left;border-top:1px solid #e5ebf2;padding:18px}.empty-report{color:#536579;text-align:center;place-items:center;gap:10px;min-height:280px;padding:32px;display:grid}.empty-report strong{color:#223044;font-size:18px}.empty-report span{max-width:300px;line-height:1.6}.detail-title{color:#b42318;align-items:center;gap:8px;margin-bottom:10px;font-weight:900;display:flex}.question-text{color:#223044;margin:0 0 14px;font-weight:700;line-height:1.5}dl{gap:10px;margin:0;display:grid}dl div{background:#fbfcfe;border:1px solid #e4ebf3;border-radius:6px;padding:10px}dt{color:#607085;margin-bottom:4px;font-size:12px;font-weight:900}dd{color:#172033;margin:0;line-height:1.5}.explanation{color:#1f3b57;background:#f0f7ff;border:1px solid #cfe3ff;border-radius:6px;margin-top:12px;padding:12px;line-height:1.6}.insights-grid{grid-template-columns:.9fr 1.25fr .85fr;gap:20px;padding:0 20px 24px;display:grid}.insight-panel{text-align:left;padding:18px}.panel-hint{color:#617389;margin:10px 0 0;font-size:13px;line-height:1.5}.weak-row{grid-template-columns:120px 1fr 46px;align-items:center;gap:10px;margin-top:14px;display:grid}.weak-row span,.weak-row strong{color:#263447;font-size:13px;font-weight:800}.bar{background:#e5ebf2;border-radius:999px;height:9px;overflow:hidden}.bar i{background:#0f6b5e;height:100%;display:block}.exercise-header{justify-content:space-between;align-items:center;margin-top:14px;display:flex}.exercise-header span{color:#155448;background:#eef8f4;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900}.exercise-generate-button{color:#fff;background:#24486c;border:1px solid #cfd8e3;border-radius:6px;align-items:center;gap:8px;min-height:36px;margin-top:12px;padding:0 12px;font-weight:800;display:inline-flex}.exercise-generate-button:disabled{color:#66788d;cursor:wait;background:#d9e1eb}.exercise-error{color:#b42318;background:#fff7f7;border:1px solid #fecaca;border-radius:6px;margin-top:12px;padding:10px;font-size:13px;font-weight:800;line-height:1.5}.exercise-list{color:#18212f;margin:14px 0;padding-left:24px;line-height:1.7}details{background:#f8fafc;border:1px solid #e1e8f0;border-radius:6px;padding:10px 12px}summary{color:#24486c;cursor:pointer;font-weight:900}details p{color:#334155;margin:10px 0 0;line-height:1.6}.roadmap{color:#334155;margin:14px 0 0;padding-left:18px;line-height:1.65}.record-stack{gap:10px;margin-top:14px;display:grid}.record-row{background:#f8fafc;border:1px solid #e1e8f0;border-radius:6px;gap:4px;padding:10px;display:grid}.record-row strong{color:#223044;text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.record-row span{color:#617389;font-size:12px}.empty-library{color:#617389;text-align:center;background:#f8fafc;border:1px solid #e1e8f0;border-radius:6px;place-items:center;gap:8px;min-height:150px;margin-top:14px;padding:18px;line-height:1.5;display:grid}.empty-library strong{color:#223044}@media (width<=1180px){.workspace,.review-area,.insights-grid{grid-template-columns:1fr}}@media (width<=720px){.app-shell{background:#fff}.topbar{flex-direction:column;align-items:flex-start;gap:14px;padding:16px}.topbar h1{font-size:22px}.topbar-actions{grid-template-columns:44px 1fr;width:100%;display:grid}.icon-button{width:44px;height:42px}.primary-button{flex:1}.workspace,.insights-grid{gap:12px;padding:12px}.control-panel,.report-panel,.image-review,.insight-panel{border-radius:7px}.panel-section,.insight-panel,.mistake-detail{padding:14px}.review-header,.report-header{align-items:flex-start;gap:10px;padding:14px}.report-header{flex-wrap:wrap}.save-button{width:100%;margin-left:0}.upload-box{min-height:210px}.upload-box img{aspect-ratio:3/4}.paper-stage{max-height:70svh;margin:10px}.mistake-pin{width:30px;height:30px}.region-grid,.summary-row,.weak-row{grid-template-columns:1fr}.exercise-header{flex-direction:column;align-items:flex-start;gap:8px}.exercise-generate-button,.scan-button,.secondary-button,.danger-button{width:100%}.summary-row,.record-row,dl div,.explanation,details{word-break:break-word}}@media (width<=430px){.topbar h1{font-size:20px}.eyebrow,.review-header p,.report-header p,.panel-hint{font-size:12px}.segmented button{min-height:36px;padding:0 6px}.section-title,.review-header h2,.report-header h2,.exercise-header h2{font-size:16px}}@media print{.topbar,.control-panel,.image-review,.report-panel,.insight-panel:not(.printable){display:none}.app-shell,.insights-grid,.printable{background:#fff;border:0;padding:0;display:block}}
