*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--blue-50: #EFF6FF;--blue-100: #DBEAFE;--blue-200: #BFDBFE;--blue-500: #3B82F6;--blue-700: #1D4ED8;--blue-800: #1E40AF;--blue-900: #1E3A8A;--gray-50: #F9FAFB;--gray-100: #F3F4F6;--gray-300: #D1D5DB;--gray-500: #6B7280;--gray-700: #374151;--gray-900: #111827}html,body,#root{height:100%;font-family:Inter,sans-serif;background:#f9fafb;color:var(--gray-900);-webkit-font-smoothing:antialiased}.app{display:flex;flex-direction:column;height:100vh;overflow:hidden}.topbar{background:var(--blue-800);padding:0 20px;height:52px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:12px;box-shadow:0 1px 8px #0003}.topbar-logo{display:flex;align-items:center;gap:10px;color:#fff;font-size:15px;font-weight:600;letter-spacing:-.2px}.topbar-logo-icon{width:28px;height:28px;background:#fff;border-radius:6px;display:flex;align-items:center;justify-content:center}.topbar-actions{display:flex;align-items:center;gap:8px}.btn{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:7px;font-size:12.5px;font-weight:500;cursor:pointer;border:none;transition:all .15s;font-family:inherit;white-space:nowrap}.btn-primary{background:var(--blue-700);color:#fff}.btn-primary:hover{background:#1e3fb8}.btn-white{background:#fff;color:#111827}.btn-white:hover{background:var(--blue-50)}.btn-outline{background:#ffffff1f;color:#fff;border:1px solid rgba(255,255,255,.35)}.btn-outline:hover{background:#ffffff38}.btn-ghost{background:transparent;color:#111827;border:1px solid var(--blue-200)}.btn-ghost:hover{background:var(--blue-50)}.btn-demo{background:#f59e0b;color:#fff}.btn-demo:hover{background:#d97706}.btn-lg{padding:11px 24px;font-size:14px;border-radius:9px}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-toggle{background:transparent;border:none;color:#ffffffa6;padding:4px 12px;border-radius:5px;font-size:12px;font-weight:500;cursor:pointer;font-family:inherit;transition:all .15s}.btn-toggle.active{background:#ffffff2e;color:#fff}.upload-phase{flex:1;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;gap:24px}.upload-card{background:#fff;border-radius:16px;box-shadow:0 4px 24px #2563eb17,0 1px 4px #0000000d;padding:32px;width:100%;max-width:540px}.drop-zone{border:2px dashed var(--blue-200);border-radius:12px;padding:40px 24px;text-align:center;cursor:pointer;transition:all .2s}.drop-zone:hover,.drop-zone.dragging{border-color:var(--blue-500);background:#f9fafb}.drop-icon{width:56px;height:56px;background:#f9fafb;border-radius:14px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}.drop-title{font-size:15px;font-weight:600;color:var(--blue-900);margin-bottom:6px}.drop-sub{font-size:12px;color:#7ba3c8}.file-chip{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#f9fafb;border-radius:8px;margin-top:14px;border:1px solid var(--blue-100)}.error-box{background:#fef2f2;color:#991b1b;padding:10px 14px;border-radius:8px;font-size:13px;margin-top:12px;border-left:3px solid #EF4444;line-height:1.5;white-space:pre-wrap;word-wrap:break-word}.legend{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.legend-item{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--gray-500)}.legend-dot{width:12px;height:12px;border-radius:3px}.analyzing-phase{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}.spinner{width:52px;height:52px;border:4px solid var(--blue-100);border-top-color:var(--blue-500);border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.progress-steps{display:flex;flex-direction:column;gap:10px;width:280px}.progress-step{display:flex;align-items:center;gap:10px;font-size:13px;color:#7ba3c8}.step-dot{width:8px;height:8px;border-radius:50%;background:var(--blue-100);flex-shrink:0}.step-dot.active{background:var(--blue-500);animation:pulse 1.2s ease-in-out infinite}.step-dot.done{background:#22c55e}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}.result-phase{flex:1;overflow:hidden;display:flex;flex-direction:column}.subtoolbar{background:#fff;border-bottom:1px solid var(--blue-100);padding:6px 16px;display:flex;align-items:center;gap:10px;flex-shrink:0}.doc-meta{font-size:11px;color:var(--gray-500);font-style:italic;max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.viewer-wrap{flex:1;overflow:auto;background:#e5e7eb;padding:24px 16px}.viewer-inner{max-width:1140px;margin:0 auto}.word-page{background:#fff;box-shadow:0 2px 16px #00000038,0 1px 4px #0000001a;margin-bottom:24px}.word-page-content{padding:52px 64px 64px;font-family:Libre Baskerville,Times New Roman,Georgia,serif;font-size:11.5pt;line-height:1.65;color:#111}.page-num{text-align:center;font-size:10px;color:#aaa;padding:6px 0 14px;font-family:Inter,sans-serif;background:#fff}.section-row{display:flex;align-items:flex-start;margin-bottom:16px;gap:0}.section-text-block{flex:1;padding:9px 14px;border-radius:3px;cursor:pointer;transition:filter .15s;border-left:4px solid transparent;min-width:0}.section-text-block:hover{filter:brightness(.95)}.section-label{font-family:Inter,sans-serif;font-size:8.5px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:#888;margin-bottom:3px}.grade-pill{display:inline-block;font-size:9px;font-weight:700;padding:1px 7px;border-radius:3px;color:#fff;margin-bottom:4px;font-family:Inter,sans-serif}.num-badge{flex-shrink:0;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:#fff;margin-top:8px;margin-left:4px;cursor:pointer;transition:transform .15s}.num-badge:hover{transform:scale(1.15)}.connector-line{width:14px;height:1px;border-top:1.5px dashed;margin-top:30px;flex-shrink:0}.comment-box{width:240px;flex-shrink:0;background:#fff;border-radius:7px;border:1px solid var(--blue-200);border-left-width:3px;overflow:hidden;box-shadow:0 1px 6px #2563eb17;cursor:pointer;transition:all .15s}.comment-box:hover,.comment-box.active{box-shadow:0 3px 14px #2563eb38;transform:translate(-2px)}.comment-header{padding:6px 10px;border-bottom:1px solid #f0f4ff;display:flex;align-items:center;gap:6px}.comment-grade{font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:4px;font-family:Inter,sans-serif}.comment-crit{font-size:9px;color:#7ba3c8;flex:1;line-height:1.3;font-family:Inter,sans-serif}.comment-num{font-size:9px;color:#bbb;font-weight:600;font-family:Inter,sans-serif}.comment-body{padding:7px 10px;font-size:10.5px;line-height:1.5;color:var(--gray-700);font-family:Inter,sans-serif}.pdf-page-container{display:flex;align-items:flex-start;gap:0;margin-bottom:24px}.pdf-canvas-wrapper{position:relative;flex-shrink:0;box-shadow:0 2px 16px #00000038}.pdf-canvas{display:block}.pdf-overlay{position:absolute;top:0;left:0;pointer-events:none}.pdf-comments-col{flex-shrink:0;width:256px;position:relative}.review-wrap{flex:1;overflow:auto;background:#e5e7eb;padding:24px 16px;display:flex;justify-content:center}.review-page{background:#fff;width:100%;max-width:900px;box-shadow:0 2px 16px #00000038;padding:52px 64px;font-family:Libre Baskerville,serif}.review-table{width:100%;border-collapse:collapse;font-size:10.5pt;margin-bottom:8px}.review-table th{background:#f3f4f6;color:#111827;padding:8px 10px;text-align:left;font-family:Inter,sans-serif;font-size:10px;font-weight:500}.review-table td{border:1px solid #e5e7eb;padding:8px 10px;vertical-align:top}.review-table tr:nth-child(2n) td{background:var(--gray-50)}.grade-cell{font-size:15px;font-weight:700;text-align:center;padding:6px 8px;border-radius:4px;font-family:Inter,sans-serif}.output-heading{font-family:Inter,sans-serif;font-size:11.5px;font-weight:600;color:#111827;margin:22px 0 7px;padding-bottom:5px;border-bottom:2px solid #e5e7eb;text-transform:uppercase;letter-spacing:.4px}.q-item{padding:8px 12px;background:#f9fafb;border-radius:7px;margin-bottom:6px;font-size:10.5pt;font-family:Inter,sans-serif;color:#111827;line-height:1.5}.overall-comment{padding:12px 16px;background:#f9fafb;border-radius:8px;border-left:1px solid #d1d5db;font-size:10.5pt;font-family:Inter,sans-serif;color:var(--gray-700);line-height:1.6;margin-top:20px}
