:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color:#18202f;background:#eef2f6;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html{min-width:320px;min-height:100%}body{margin:0;min-width:320px;min-height:100vh}#root{min-height:100vh}h1{margin:0;color:#111827;font-size:clamp(2rem,4vw,3.25rem);line-height:1.1}h2,p{margin-top:0}button{font-family:inherit}input{font:inherit}button:disabled,input:disabled{cursor:not-allowed;opacity:.65}button:focus-visible,input:focus-visible{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}.app-shell,.auth-page{min-height:100vh;padding:32px}.app-shell{display:flex;flex-direction:column;gap:32px}.auth-page{display:grid;place-items:center;background:linear-gradient(135deg,rgba(29,78,216,.1),transparent 42%),#eef2f6}.auth-panel,.panel{width:min(100%,520px);border:1px solid #dbe3ee;border-radius:8px;background:#fff;box-shadow:0 20px 50px #0f172a14}.auth-panel{padding:36px}.panel{padding:28px}.login-brand{display:flex;align-items:center;gap:16px}.login-brand h1{margin:0}.brand-mark{display:grid;width:64px;height:64px;flex:0 0 auto;place-items:center;border-radius:8px;background:#1d4ed8;color:#fff;font-size:.95rem;font-weight:800}.app-header{display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(100%,1120px);margin:0 auto;padding:18px 22px;border:1px solid #dbe3ee;border-radius:8px;background:#ffffffdb;box-shadow:0 12px 32px #0f172a0f}.app-header strong{display:block;color:#111827;font-size:1.05rem}.user-actions{display:flex;align-items:center;gap:14px;color:#94a3b8;font-size:.94rem}.username-badge{font-weight:600;color:#64748b;text-decoration:underline}.page-grid{display:grid;grid-template-columns:minmax(0,420px) minmax(340px,520px);align-items:start;justify-content:center;gap:44px;width:min(100%,1120px);margin:0 auto}.page-intro{padding-top:18px}.eyebrow{margin-bottom:8px;color:#2563eb;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.page-subtitle,.muted{color:#5f6f83}.page-subtitle{max-width:36rem;margin:16px 0 0;font-size:1.05rem}.form-stack{display:flex;flex-direction:column;gap:18px}.packet-review-grid{grid-template-columns:minmax(0,420px) minmax(460px,680px)}.packet-review-panel{display:flex;width:min(100%,680px);max-height:calc(100vh - 150px);flex-direction:column;gap:18px;overflow:hidden}.packet-tabs{display:flex;flex-wrap:wrap;gap:8px}.packet-tab{min-height:34px;border:1px solid #cbd5e1;border-radius:8px;padding:7px 10px;background:#fff;color:#344256;font-size:.82rem;font-weight:800;cursor:pointer}.packet-tab.active{border-color:#1d4ed8;background:#eff6ff;color:#1d4ed8}.packet-tab.disabled,.packet-tab:disabled{border-color:#e2e8f0;background:#f8fafc;color:#94a3b8;cursor:not-allowed}.packet-form-section{display:flex;min-height:0;flex:1;flex-direction:column;gap:14px}.packet-form-heading{display:flex;align-items:start;justify-content:space-between;gap:16px}.packet-form-heading h2,.packet-side-notices h2,.packet-empty-selection h2{margin:0;color:#111827;font-size:1rem}.packet-form-heading p{margin:4px 0 0;color:#64748b;font-size:.86rem;font-weight:700}.packet-form-heading span{border-radius:999px;padding:5px 9px;background:#e2e8f0;color:#344256;font-size:.78rem;font-weight:900;white-space:nowrap}.packet-fields{display:flex;min-height:280px;flex-direction:column;gap:10px;overflow-y:auto;padding-right:6px}.packet-field-row{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(180px,1fr);gap:10px 14px;align-items:start;border-bottom:1px solid #e2e8f0;padding-bottom:10px}.packet-field-meta label{display:block;color:#344256;font-size:.84rem;font-weight:900;overflow-wrap:anywhere}.packet-field-meta span{display:block;margin-top:4px;color:#64748b;font-size:.76rem;font-weight:800}.packet-field-row input{width:100%;min-height:38px;border:1px solid #ccd6e3;border-radius:8px;padding:8px 10px;background:#fbfdff;color:#111827}.packet-field-row--uncertain{border-left:3px solid #f59e0b;padding-left:10px}.field-evidence{grid-column:2;margin:-4px 0 0;color:#64748b;font-size:.76rem;overflow-wrap:anywhere}.packet-side-notices{display:flex;flex-direction:column;gap:8px;margin-top:18px}.packet-side-notices h2{margin-bottom:2px}.packet-empty-selection{display:flex;min-height:220px;flex-direction:column;justify-content:center;gap:8px;border:1px dashed #cbd5e1;border-radius:8px;padding:22px;background:#f8fafc}.field label{display:block;margin-bottom:7px;color:#344256;font-size:.92rem;font-weight:700}.field input{width:100%;min-height:46px;border:1px solid #ccd6e3;border-radius:8px;padding:10px 12px;background:#fbfdff;color:#111827;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.field input:hover,.field input:focus{border-color:#2563eb;background:#fff;box-shadow:0 0 0 4px #2563eb14}.button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;padding:10px 16px;font-size:.95rem;font-weight:800;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease}.button:hover:not(:disabled){transform:translateY(-1px)}.button-primary{background:#1d4ed8;color:#fff;box-shadow:0 10px 22px #1d4ed838}.button-primary:hover:not(:disabled){background:#1e40af}.button-secondary{border-color:#cbd5e1;background:#fff;color:#273244}.button-secondary:hover:not(:disabled){border-color:#94a3b8;background:#f8fafc}.button-wide{width:100%}.button-row{display:flex;flex-wrap:wrap;gap:12px}.saved-values-panel{display:flex;flex-direction:column;gap:22px}.saved-values-list{display:flex;flex-direction:column;gap:0;margin:0}.saved-value-row{display:grid;grid-template-columns:minmax(120px,.45fr) minmax(0,1fr);gap:18px;padding:15px 0;border-bottom:1px solid #e2e8f0}.saved-value-row:first-child{padding-top:0}.saved-value-row:last-child{border-bottom:0;padding-bottom:0}.saved-value-row dt{color:#526173;font-size:.88rem;font-weight:800}.saved-value-row dd{margin:0;color:#111827;font-weight:800;overflow-wrap:anywhere}.records-page{display:flex;width:min(100%,1120px);min-height:0;margin:0 auto;flex:1;flex-direction:column;gap:22px}.records-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px}.records-toolbar h1{margin:0}.records-scroll{display:flex;max-height:calc(100vh - 230px);min-height:320px;flex-direction:column;gap:16px;overflow-y:auto;padding-right:8px}.record-card{width:100%;flex:0 0 auto}.record-card-header{display:flex;align-items:start;justify-content:space-between;gap:18px;margin-bottom:18px}.record-card-header h2{margin:0;color:#111827;font-size:1.1rem;overflow-wrap:anywhere}.record-meta{display:flex;align-items:center;gap:12px;color:#526173;font-size:.9rem;font-weight:700;white-space:nowrap}.upload-panel{display:flex;flex-direction:column;gap:18px}.file-drop{display:grid;min-height:210px;place-items:center;border:2px dashed #b7c4d4;border-radius:8px;padding:28px;background:#f8fafc;text-align:center;cursor:pointer;transition:border-color .16s ease,background .16s ease}.file-drop:hover{border-color:#2563eb;background:#f2f7ff}.file-drop input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.file-drop.has-file{border-style:solid;border-color:#2563eb;background:#eff6ff}.file-icon{display:grid;width:62px;height:72px;margin-bottom:16px;place-items:center;border-radius:8px;background:#dbeafe;color:#1d4ed8;font-size:.8rem;font-weight:900}.file-title{display:block;max-width:100%;overflow-wrap:anywhere;color:#172033;font-weight:800}.file-meta{display:block;margin-top:4px;color:#66768a;font-size:.92rem}.upload-details{border:1px solid #dbe3ee;border-radius:8px;background:#f8fafc}.upload-details summary{display:flex;min-height:46px;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;cursor:pointer;list-style:none}.upload-details summary::-webkit-details-marker{display:none}.upload-details summary:before{content:"+";display:grid;width:22px;height:22px;flex:0 0 auto;place-items:center;border-radius:50%;background:#e0e7ff;color:#1d4ed8;font-weight:900}.upload-details[open] summary:before{content:"-"}.upload-details summary span{flex:1;color:#526173;font-size:.88rem;font-weight:800}.upload-details summary strong{border-radius:999px;padding:4px 9px;background:#e2e8f0;color:#344256;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.76rem}.upload-details p{margin:0;padding:0 12px 10px 46px;color:#66768a;font-size:.9rem}.upload-details code{display:block;margin:0 12px 12px 46px;color:#172033;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.84rem;overflow-wrap:anywhere}.pdf-thumbnail{margin-top:24px;border:1px solid #dbe3ee;border-radius:8px;overflow:hidden}.pdf-viewer-toolbar{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #dbe3ee;background:#f8fafc}.pdf-zoom-btn{display:grid;width:28px;height:28px;place-items:center;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#344256;font-size:1.1rem;font-weight:700;cursor:pointer;line-height:1;transition:border-color .14s ease,color .14s ease}.pdf-zoom-btn:hover{border-color:#2563eb;color:#2563eb}.pdf-reset-btn{margin-left:auto}.pdf-zoom-label{min-width:40px;text-align:center;color:#526173;font-size:.84rem;font-weight:700}.pdf-viewer-viewport{display:flex;justify-content:center;align-items:flex-start;height:340px;overflow:hidden;-webkit-user-select:none;user-select:none;touch-action:none}.pdf-thumbnail-hint{display:flex;width:100%;align-items:center;justify-content:center;padding:9px 12px;border:none;border-top:1px solid #dbe3ee;background:#f8fafc;color:#2563eb;font-size:.84rem;font-weight:700;cursor:pointer;transition:background .14s ease}.pdf-thumbnail-hint:hover{background:#eff6ff}.pdf-auth-heading{margin:8px 0 0;color:#94a3b8;font-size:.78rem;font-weight:700}.pdf-auth-note{margin:8px 0 0;padding-left:18px;color:#94a3b8;font-size:.78rem;line-height:1.6}.check-row{display:flex;align-items:center;gap:10px;color:#344256;font-weight:700}.check-row input{width:18px;height:18px;accent-color:#1d4ed8}.alert{margin:0;border-radius:8px;padding:11px 13px;font-weight:700}.alert-error{border:1px solid #fecaca;background:#fef2f2;color:#b91c1c}.alert-warning{border:1px solid #fde68a;background:#fffbeb;color:#92400e}.success-panel,.state-panel{text-align:left}.state-panel{margin:0 auto}.success-panel h2,.state-panel h1{margin:10px 0}.processing-progress-panel{display:flex;flex-direction:column;gap:12px}.processing-progress-detail{margin:0;color:#344256;font-size:.95rem;font-weight:800}.processing-progress-track{width:100%;height:10px;overflow:hidden;border-radius:999px;background:#e2e8f0}.processing-progress-bar{min-width:8px;height:100%;border-radius:inherit;background:#1d4ed8;transition:width .18s ease}.processing-progress-meta,.processing-progress-note{margin:0;font-size:.82rem}.processing-progress-meta{color:#526173;font-weight:800;text-transform:capitalize}.status-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:50%;background:#dcfce7;color:#15803d;font-weight:900}.spinner{width:42px;height:42px;border:4px solid #dbeafe;border-top-color:#1d4ed8;border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 800px){.app-shell,.auth-page{padding:18px}.app-header,.user-actions,.page-grid{align-items:stretch}.app-header,.user-actions{flex-direction:column}.records-toolbar,.record-card-header,.record-meta{align-items:stretch;flex-direction:column}.records-scroll{max-height:none;overflow-y:visible;padding-right:0}.page-grid{grid-template-columns:1fr;gap:22px}.packet-review-panel{max-height:none}.page-intro{padding-top:0}.saved-value-row,.packet-field-row{grid-template-columns:1fr;gap:6px}.field-evidence{grid-column:1}}@media (max-width: 520px){.auth-panel,.panel{padding:22px}.button-row{flex-direction:column}}
