:root{--bg:#f7f9fc;--surface:#fff;--subtle:#eef4f8;--text:#111827;--muted:#667085;--border:#d9e2ec;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font:16px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--bg);min-width:320px;margin:0}button,input{font:inherit}h1,h2,p{overflow-wrap:anywhere}#root{min-height:100svh}.app-shell{min-height:100svh;padding:24px}.topbar{justify-content:space-between;align-items:center;gap:16px;max-width:1180px;margin:0 auto 18px;display:flex}.brand{align-items:center;gap:12px;min-width:0;display:flex}.brand-mark{color:#fff;background:linear-gradient(135deg,#0f5fbd 0%,#1c7a54 100%);border-radius:8px;flex:none;justify-content:center;align-items:center;width:48px;height:48px;display:inline-flex}.brand h1,.brand p,.summary-heading h2,.summary-heading p,.section-header h2,.section-header p{margin:0}.brand h1{font-size:24px;line-height:1.2}.brand p,.summary-heading p{color:var(--muted)}.topbar-actions,.summary-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.button,.icon-button,.drop-empty{font:inherit;cursor:pointer;border:1px solid #0000}.button{border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:0 14px;font-weight:650;display:inline-flex}.button:disabled{cursor:not-allowed;opacity:.5}.button.primary{color:#fff;background:#0f5fbd;border-color:#0f5fbd}.button.secondary,.icon-button{color:var(--text);background:var(--surface);border-color:var(--border)}.button:hover:not(:disabled),.icon-button:hover,.drop-empty:hover{border-color:#0f5fbd;box-shadow:0 8px 22px #0f5fbd1f}.button:focus-visible,.icon-button:focus-visible,.drop-empty:focus-visible,input:focus-visible,summary:focus-visible{outline-offset:2px;outline:3px solid #0f5fbd40}.icon-button{border-radius:8px;justify-content:center;align-items:center;width:42px;height:42px;display:inline-flex}.workspace-grid{grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr);gap:18px;max-width:1180px;margin:0 auto 18px;display:grid}.intake-panel,.summary-panel,.readings-panel{border:1px solid var(--border);background:var(--surface);border-radius:8px;box-shadow:0 18px 45px #10182814}.intake-panel{overflow:hidden}.intake-panel.is-dragging{background:#eef6ff;border-color:#0f5fbd}.drop-empty{width:100%;min-height:420px;color:var(--text);background:linear-gradient(#fff 0%,#f3f7fb 100%);flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex}.drop-empty span{font-size:20px;font-weight:700}.drop-empty small,.eyebrow,.file-chip,.metric span,.ocr-context,.raw-text summary{color:var(--muted)}.preview-image{object-fit:contain;background:#f2f4f7;width:100%;max-height:640px;display:block}.scan-strip{border-top:1px solid var(--border);gap:10px;padding:14px 16px;display:grid}.scan-copy{color:var(--text);align-items:center;gap:8px;font-weight:650;display:flex}.progress-track{appearance:none;background:#e6edf5;border:0;border-radius:999px;width:100%;height:8px;display:block;overflow:hidden}.progress-track::-webkit-progress-bar{background:#e6edf5;border-radius:999px}.progress-track::-webkit-progress-value{background:linear-gradient(90deg,#20c997 0%,#f5c542 54%,#ef4444 100%);border-radius:999px;transition:width .18s}.progress-track::-moz-progress-bar{background:linear-gradient(90deg,#20c997 0%,#f5c542 54%,#ef4444 100%);border-radius:999px}.summary-panel{flex-direction:column;justify-content:space-between;gap:22px;padding:22px;display:flex}.eyebrow{text-transform:uppercase;font-size:12px;font-weight:800}.summary-heading h2{margin-top:8px;font-size:44px;line-height:1.05}.metric-grid{gap:10px;display:grid}.metric{background:var(--subtle);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.metric strong{color:var(--text);font-size:20px}.readings-panel{max-width:1180px;margin:0 auto;padding:18px}.section-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.section-header h2{font-size:22px;line-height:1.2}.file-chip{border:1px solid var(--border);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;max-width:46ch;padding:6px 10px;overflow:hidden}.warning-list{gap:8px;margin-bottom:14px;display:grid}.warning-list p{color:#8a4b08;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;align-items:center;gap:8px;margin:0;padding:10px 12px;display:flex}.table-wrap{border:1px solid var(--border);border-radius:8px;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:760px}th,td{border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;padding:11px 12px}th{color:var(--muted);text-transform:uppercase;background:#f8fafc;font-size:12px}tbody tr:last-child td{border-bottom:0}tbody tr.is-muted{opacity:.48}.number-input{box-sizing:border-box;border:1px solid var(--border);height:38px;color:var(--text);background:#fff;border-radius:8px}.day-input{text-align:center;width:58px}.value-input{width:96px;padding:0 10px}.confidence{border-radius:999px;justify-content:center;min-width:72px;padding:5px 8px;font-size:12px;font-weight:800;display:inline-flex}.confidence.is-high{color:#065f46;background:#d1fae5}.confidence.is-medium{color:#854d0e;background:#fef3c7}.confidence.is-low{color:#991b1b;background:#fee2e2}.ocr-context{text-overflow:ellipsis;white-space:nowrap;max-width:360px;overflow:hidden}.table-action{width:34px;height:34px}.empty-results{min-height:160px;color:var(--muted);border:1px dashed var(--border);border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex}.raw-text{margin-top:14px}.raw-text summary{cursor:pointer;font-weight:700}.raw-text pre{color:#1f2937;white-space:pre-wrap;background:#f3f4f6;border-radius:8px;max-height:260px;margin:10px 0 0;padding:12px;overflow:auto}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=900px){.app-shell{padding:16px}.topbar,.workspace-grid,.section-header{flex-direction:column;align-items:stretch}.workspace-grid{display:flex}.topbar-actions,.summary-actions{width:100%}.button{flex:auto}.drop-empty{min-height:300px}.summary-heading h2{font-size:36px}.file-chip{max-width:100%}}
