:root{color:#1c2530;background:#eef2f6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.56}.auth-screen,.app-shell{min-height:100vh}.auth-screen{display:grid;place-items:center;padding:24px;background:linear-gradient(180deg,#ffffffbd,#eef2f6f0),url(https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80) center / cover}.auth-panel,.panel{border:1px solid #d9e0e7;border-radius:8px;background:#fffffff0;box-shadow:0 18px 38px #1f2d3d14}.auth-panel{width:min(420px,100%);padding:26px}.auth-panel h1,.topbar h1,.result-hero h1{margin:0;letter-spacing:0}.auth-panel h1{font-size:32px}.app-shell{padding:22px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1360px;margin:0 auto 18px}.topbar-left{display:flex;align-items:center;gap:14px;min-width:0}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:8px;color:#fff;background:#116466}.eyebrow{margin:0 0 4px;color:#667789;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:0}.topbar h1{color:#17202a;font-size:25px}.workspace{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:18px;max-width:1360px;margin:0 auto}.control-rail{display:flex;flex-direction:column;gap:14px}.panel{padding:18px}.panel h2{margin:0 0 14px;font-size:18px;letter-spacing:0}.upload-panel{display:flex;flex-direction:column;gap:14px}.drop-zone{display:grid;place-items:center;min-height:178px;padding:20px;border:1px dashed #9dacbb;border-radius:8px;color:#2d3a46;background:#f7fafc;text-align:center}.drop-zone input{display:none}.drop-zone span{color:#116466}.drop-zone strong{max-width:100%;margin-top:10px;overflow-wrap:anywhere;font-size:16px}.drop-zone small{margin-top:4px;color:#6c7987}.preview-frame,.pdf-preview{display:grid;place-items:center;width:100%;aspect-ratio:16 / 10;overflow:hidden;border-radius:8px;border:1px solid #dde5ed;background:#f7fafc}.preview-frame img{width:100%;height:100%;object-fit:contain}.pdf-preview{color:#667789}.button-row,.panel-title-row{display:flex;align-items:center;gap:10px}.button-row{flex-wrap:wrap}.primary-button,.secondary-button,.icon-text-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;min-height:40px;font-weight:800}.primary-button{flex:1 1 135px;color:#fff;background:#116466}.secondary-button,.icon-text-button,.icon-button{color:#1c303d;background:#e5edf2}.secondary-button{flex:1 1 112px}.icon-text-button{padding:0 14px;text-decoration:none;white-space:nowrap}.icon-button{flex:0 0 40px;width:40px}.settings-panel{display:flex;flex-direction:column;gap:14px}.panel-title-row{justify-content:space-between}.switch-row,.input-row{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#526170;font-size:14px;font-weight:700}.switch-row input{width:20px;height:20px}.input-row{flex-direction:column;align-items:stretch}.input-row input{width:100%;min-height:40px;border:1px solid #d7e0e8;border-radius:8px;padding:0 10px;color:#17202a;background:#fff}.input-row input[readonly]{color:#526170;background:#f1f5f8;cursor:default}.alert{margin:0;border:1px solid #f0b6b6;border-radius:8px;padding:12px 14px;color:#8c2525;background:#fff1f1;font-weight:700}.result-area{min-width:0}.result-stack{display:flex;flex-direction:column;gap:14px}.empty-result{display:grid;place-items:center;min-height:420px;color:#728091;text-align:center}.empty-result h2{margin:10px 0 0}.result-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:8px;padding:22px;color:#fff;background:linear-gradient(135deg,#116466,#263f59)}.result-hero h1{max-width:860px;overflow-wrap:anywhere;font-size:clamp(22px,3vw,34px)}.result-hero p:not(.eyebrow){margin:7px 0 0;color:#ffffffc7}.status-pill,.subtle-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 10px;white-space:nowrap;font-size:13px;font-weight:800}.status-pill.ok{color:#0f5132;background:#d9f3e5}.status-pill.mismatch{color:#842029;background:#f8d7da}.subtle-pill{color:#506070;background:#eef3f7}.barcode-value{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:8px}.barcode-value code{display:block;min-height:40px;overflow-wrap:anywhere;border:1px solid #dbe4ed;border-radius:8px;padding:10px 12px;color:#10202a;background:#f7fafc;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:13px;line-height:1.45}.two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field-grid,.mini-grid,.diff-list{display:grid;gap:10px}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.field-cell,.mini-grid div,.diff-list div,.notes-panel div{border:1px solid #dfe7ee;border-radius:8px;padding:11px;background:#fbfdfe}.field-cell span,.mini-grid span,.diff-list span,.notes-panel span{display:block;margin-bottom:5px;color:#6d7b89;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:0}.field-cell strong,.mini-grid strong,.diff-list strong,.notes-panel strong{overflow-wrap:anywhere}.notes-panel{display:grid;gap:10px}.copy-field-row{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:8px;align-items:start}.notes-panel p{margin:0;color:#283744;line-height:1.5;overflow-wrap:anywhere}.entry-stack{display:flex;flex-direction:column;gap:12px}.barcode-entry{border:1px solid #dfe7ee;border-radius:8px;padding:12px;background:#fbfdfe}.entry-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#586878}.entry-header span{min-width:0;overflow-wrap:anywhere}.mini-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:10px}.empty-text{margin:0;color:#6f7d8b}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:920px){.app-shell{padding:14px}.workspace,.two-column{grid-template-columns:1fr}.control-rail{order:1}.result-area{order:2}}@media(max-width:620px){.topbar,.topbar-left,.result-hero{align-items:stretch;flex-direction:column}.topbar .icon-text-button,.home-link{width:100%}.field-grid,.mini-grid{grid-template-columns:1fr}}
