@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root{color-scheme:light;--canvas:#f5f5f1;--paper:#fff;--ink:#202a24;--muted:#89918b;--line:#e9ece7;--green:#136a45;--green-dark:#0d5034;--green-soft:#edf6ef;--mint:#a8cf88;--amber:#a66b16;--amber-soft:#fff5e4;--red:#b34f48;--red-soft:#fff0ed;--shadow:0 2px 8px rgba(33,46,37,.035),0 10px 28px rgba(33,46,37,.025);font-family:'DM Sans',sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--canvas);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer}.topbar{height:64px;background:rgba(255,255,255,.94);border-bottom:1px solid rgba(34,52,40,.07);display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1152px)/2));position:sticky;top:0;z-index:5;backdrop-filter:blur(14px)}.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}.brand-icon{width:33px;height:33px;border-radius:10px;background:var(--green);display:grid;place-items:center}.brand-icon svg{width:20px;fill:#fff}.brand-name{font:800 19px 'Manrope',sans-serif;letter-spacing:-.8px}.brand-name span{color:var(--green)}.topbar-right{display:flex;align-items:center;gap:15px;color:#818980;font-size:12px}.connection-pill{display:flex;align-items:center;gap:7px}.connection-dot,.live-indicator span,.camera-badge span:first-child{width:7px;height:7px;border-radius:50%;background:#58a873;box-shadow:0 0 0 3px rgba(88,168,115,.13)}.connection-pill.offline .connection-dot{background:#c74b47;box-shadow:0 0 0 3px rgba(199,75,71,.13)}.connection-pill.offline{color:#ae4f49}.topbar-divider{height:15px;border-left:1px solid #e6e8e3}.topbar-date{font-size:12px;color:#747d76}.page-shell{width:min(100% - 48px,1080px);margin:0 auto}.intro{display:flex;align-items:center;justify-content:space-between;padding:47px 4px 30px}.eyebrow{display:flex;align-items:center;gap:9px;color:#758179;font-size:9px;font-weight:700;letter-spacing:1.7px}.eyebrow-line{width:18px;height:1px;background:#93ad99}.intro h1{margin:14px 0 8px;font:750 clamp(33px,4vw,43px)/1.16 'Manrope',sans-serif;letter-spacing:-2px}.intro h1 span{color:var(--green)}.intro-copy{margin:0;color:#838c85;font-size:13px}.intro-mark{width:70px;height:70px;border:1px solid #dfe7de;border-radius:50%;display:grid;place-items:center;position:relative;margin-right:25px;color:#658873;font:800 22px 'Manrope',sans-serif;letter-spacing:-1px}.intro-mark:before,.intro-mark:after{content:'';position:absolute;border:1px solid #e2e9e1;border-radius:50%;inset:-9px}.intro-mark:after{inset:-17px;border-style:dashed;opacity:.6}.intro-mark i{position:absolute;width:4px;height:4px;border-radius:50%;background:#74a47c}.intro-mark i:nth-of-type(1){top:-10px;left:17px}.intro-mark i:nth-of-type(2){bottom:1px;right:-10px}.intro-mark i:nth-of-type(3){bottom:-10px;left:16px}.workspace{display:grid;grid-template-columns:minmax(0,1.01fr) minmax(0,.99fr);gap:19px;align-items:start}.card{background:var(--paper);border:1px solid #e9ece6;border-radius:12px;box-shadow:var(--shadow)}.scan-card{padding:23px 24px 19px}.section-heading{display:flex;align-items:center;gap:12px;position:relative}.step-mark{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#edf5ef;color:#367453;font:750 10px 'Manrope',sans-serif}.section-heading h2{margin:0;font:750 14px 'Manrope',sans-serif;letter-spacing:-.25px}.section-heading p{margin:4px 0 0;color:#949b95;font-size:10.5px}.live-indicator{margin-left:auto;display:flex;gap:7px;align-items:center;font-size:8px;font-weight:700;color:#599268;letter-spacing:1px}.live-indicator span{width:6px;height:6px;box-shadow:none}.field-label{display:block;margin:23px 0 8px;font-size:8.5px;font-weight:700;letter-spacing:1.2px;color:#717c74}.select-wrap{height:43px;border:1px solid #e5e9e3;border-radius:7px;display:flex;align-items:center;position:relative;background:#fff;transition:border-color .15s}.select-wrap:focus-within{border-color:#82af8d;box-shadow:0 0 0 3px #eff7f0}.select-symbol{display:grid;place-items:center;padding-left:12px}.select-symbol svg{width:15px;fill:#829086}.select-wrap select{appearance:none;border:0;outline:0;background:transparent;width:100%;height:100%;padding:0 36px 0 9px;color:#38453c;font-size:12px;font-weight:600;cursor:pointer}.select-chevron{position:absolute;right:13px;width:15px;fill:none;stroke:#838d85;stroke-width:1.7;pointer-events:none}.camera-frame{margin-top:15px;width:100%;height:245px;border-radius:8px;background:#f4f7f3;border:1px solid #ebf0e9;position:relative;overflow:hidden;display:grid;place-items:center}.camera-placeholder{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:16px;z-index:1}.camera-icon{width:45px;height:45px;border-radius:50%;background:#e9f1e8;display:grid;place-items:center;margin-bottom:3px}.camera-icon svg{width:22px;fill:#68846e}.camera-placeholder strong{font:700 12px 'Manrope',sans-serif;color:#48554a}.camera-placeholder>span{color:#939c94;font-size:10px}.camera-video{position:absolute;width:100%;height:100%;object-fit:cover;display:none}.camera-frame.active .camera-video{display:block}.camera-frame.active .camera-placeholder{display:none}.camera-frame.active:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,20,14,.3),transparent 23%,transparent 78%,rgba(10,20,14,.28));pointer-events:none}.viewfinder{display:none;position:absolute;width:min(64%,250px);height:84px;z-index:1}.camera-frame.active .viewfinder{display:block}.corner{position:absolute;width:19px;height:19px;border-color:#c9edaa;border-style:solid}.top-left{top:0;left:0;border-width:2px 0 0 2px;border-radius:4px 0 0}.top-right{top:0;right:0;border-width:2px 2px 0 0;border-radius:0 4px 0 0}.bottom-left{bottom:0;left:0;border-width:0 0 2px 2px;border-radius:0 0 0 4px}.bottom-right{bottom:0;right:0;border-width:0 2px 2px 0;border-radius:0 0 4px 0}.scan-line{position:absolute;height:1px;left:5px;right:5px;top:50%;background:#c6eea4;box-shadow:0 0 7px #9bd173;animation:scanline 2.2s ease-in-out infinite alternate}@keyframes scanline{from{transform:translateY(-32px);opacity:.5}to{transform:translateY(32px);opacity:1}}.camera-badge{position:absolute;top:12px;left:12px;z-index:2;background:rgba(24,34,27,.72);padding:6px 9px;border-radius:4px;display:flex;align-items:center;gap:7px;color:#fff;font-size:7px;font-weight:700;letter-spacing:.85px}.camera-badge span:first-child{width:5px;height:5px;background:#b9c3b9;box-shadow:none}.camera-frame.active .camera-badge span:first-child{background:#82d37e;box-shadow:0 0 7px #7cce7c}.camera-tip{display:none;position:absolute;bottom:12px;z-index:2;color:white;font-size:9px;text-shadow:0 1px 3px #111}.camera-frame.active .camera-tip{display:block}.camera-result{display:none;position:absolute;inset:0;z-index:3;background:rgba(19,106,69,.88);flex-direction:column;gap:10px;align-items:center;justify-content:center;color:white;font:700 13px 'Manrope',sans-serif}.camera-result.show{display:flex;animation:resultFade .8s ease forwards}@keyframes resultFade{0%,75%{opacity:1}100%{opacity:0}}.result-check{display:grid;place-items:center;width:37px;height:37px;border:1px solid rgba(255,255,255,.65);border-radius:50%;font-size:20px}.primary-button{margin-top:13px;width:100%;height:42px;border:0;border-radius:6px;background:var(--green);color:white;display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;font-weight:700;transition:background .15s,transform .15s}.primary-button:hover{background:var(--green-dark)}.primary-button:active{transform:scale(.99)}.primary-button svg{width:17px;fill:white}.primary-button.stop-button{background:#515e54}.primary-button:disabled{opacity:.6;cursor:wait}.scan-hint{margin-top:11px;display:flex;align-items:center;justify-content:center;gap:6px;color:#a0a7a0;font-size:9px}.scan-hint svg{width:12px;fill:#a0a7a0}.manual-entry{margin-top:16px}.manual-divider{display:flex;align-items:center;gap:9px;color:#a3aaa4;font-size:9px}.manual-divider:before,.manual-divider:after{content:'';height:1px;background:#edf0eb;flex:1}.manual-entry form{height:37px;margin-top:9px;border:1px solid #e9ece7;border-radius:6px;display:flex;overflow:hidden}.manual-entry input{min-width:0;flex:1;border:0;outline:0;padding:0 11px;font-size:11px;color:#35443a;background:transparent}.manual-entry input::placeholder{color:#b1b8b2}.manual-entry form:focus-within{border-color:#82af8d}.manual-entry button{width:39px;border:0;border-left:1px solid #e9ece7;background:#f8faf7;color:var(--green);display:grid;place-items:center}.manual-entry button:hover{background:#edf6ef}.manual-entry button svg{width:16px;fill:none;stroke:currentColor;stroke-width:2}.results-column{display:flex;flex-direction:column;gap:15px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.stat-card{padding:15px 16px 14px;min-height:108px}.stat-top{display:flex;align-items:center;justify-content:space-between}.stat-label{font-size:8px;font-weight:700;letter-spacing:1.1px;color:#879088}.stat-icon{width:27px;height:27px;border-radius:7px;display:grid;place-items:center}.stat-icon svg{width:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.unique-icon{background:#edf6ef;color:#35744b}.duplicate-icon{background:#fff4e5;color:#a6752a}.stat-number{margin-top:7px;font:750 27px/.95 'Manrope',sans-serif;letter-spacing:-1.25px;color:#2c392f}.stat-caption{margin-top:8px;color:#989f99;font-size:8.5px;display:flex;align-items:center;gap:5px}.stat-dot,.duplicate-caption-dot{width:5px;height:5px;border-radius:50%;background:#83b68a}.duplicate-caption-dot{background:#e3b264}.list-card{overflow:hidden}.list-heading{padding:18px 17px 14px;display:flex;justify-content:space-between;align-items:center}.section-heading.compact{gap:10px}.section-heading.compact .step-mark{width:28px;height:28px}.section-heading.compact h2{font-size:12px}.section-heading.compact p{font-size:9px}.refresh-button{width:29px;height:29px;border-radius:6px;border:1px solid #edf0eb;background:#fff;color:#758078;display:grid;place-items:center}.refresh-button:hover{background:#f4f8f3;color:var(--green)}.refresh-button svg{width:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.refresh-button.loading svg{animation:rotate .8s linear infinite}@keyframes rotate{to{transform:rotate(360deg)}}.list-toolbar{height:38px;padding:0 17px;background:#fafbf9;border-top:1px solid #f0f2ee;border-bottom:1px solid #f0f2ee;display:flex;align-items:center;justify-content:space-between}.date-filter{height:26px;padding:0 7px;display:flex;align-items:center;gap:6px;border:1px solid #ecefea;background:white;border-radius:5px}.date-filter svg{width:12px;fill:none;stroke:#839088;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.date-filter input{border:0;outline:0;background:transparent;width:105px;color:#647067;font-size:9px}.date-filter input::-webkit-calendar-picker-indicator{width:11px;opacity:.55;cursor:pointer}.scan-total{font-size:8.5px;color:#929a93}.shipment-list{max-height:337px;min-height:150px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#dce4da transparent}.list-loading,.empty-state{min-height:150px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:#9ba39c;font-size:10px}.loading-spinner{width:17px;height:17px;border:2px solid #e8eee7;border-top-color:#76a47d;border-radius:50%;animation:rotate .7s linear infinite}.empty-state svg{width:27px;fill:none;stroke:#c8d1c9;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.empty-state strong{font:650 10px 'Manrope',sans-serif;color:#69756c}.empty-state span{font-size:9px}.shipment-row{min-height:56px;padding:9px 15px;display:grid;grid-template-columns:29px minmax(0,1fr) auto;align-items:center;gap:9px;border-bottom:1px solid #f1f3ef;animation:rowIn .18s ease-out}.shipment-row:last-child{border-bottom:0}@keyframes rowIn{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}.shipment-code-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:#f0f5ef}.shipment-code-icon svg{width:15px;fill:#768d78}.shipment-info{min-width:0}.shipment-tracking{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#354138;font:700 10px 'Manrope',sans-serif;letter-spacing:.15px}.shipment-meta{margin-top:4px;display:flex;align-items:center;gap:6px;color:#a0a7a1;font-size:8px}.shipment-courier{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta-separator{width:2px;height:2px;border-radius:50%;background:#c4cac4}.shipment-status{padding:4px 6px;border-radius:4px;background:#edf6ef;color:#50835a;font-size:7px;font-weight:700;letter-spacing:.35px;white-space:nowrap}.shipment-status.duplicate{background:#fff4e5;color:#a26c1c}.row-actions{display:flex;align-items:center;gap:7px}.delete-row-button{width:25px;height:25px;border-radius:5px;border:1px solid transparent;background:transparent;color:#b2b9b2;display:grid;place-items:center;opacity:0;transition:opacity .12s,background .12s,color .12s}.shipment-row:hover .delete-row-button,.delete-row-button:focus-visible{opacity:1}.delete-row-button:hover{background:#fff0ed;color:#b34f48;border-color:#f6ddda}.delete-row-button svg{width:13px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.list-footer{height:34px;border-top:1px solid #f0f2ee;padding:0 15px;display:flex;align-items:center;gap:6px;color:#a0a7a0;font-size:8px}.footer-dot{width:5px;height:5px;border-radius:50%;background:#76ae7c}.footer-divider{color:#d0d5cf}.page-footer{display:flex;justify-content:space-between;padding:23px 4px 28px;color:#929b93;font-size:8px;letter-spacing:.25px}.page-footer>span:first-child{font-weight:700;letter-spacing:1px;color:#77837a}.footer-year{font-weight:400;letter-spacing:0}.toast-region{position:fixed;right:20px;bottom:20px;z-index:20;display:flex;flex-direction:column;gap:8px;pointer-events:none}.toast{min-width:230px;max-width:min(360px,calc(100vw - 32px));padding:11px 14px;border:1px solid #e7ece5;border-radius:8px;background:white;box-shadow:0 7px 24px rgba(27,44,32,.12);display:flex;align-items:center;gap:9px;color:#47534a;font-size:11px;animation:toastIn .2s ease-out}.toast:before{content:'';width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#60a66e}.toast.error:before{background:#c3584f}.toast.warning:before{background:#dba247}@keyframes toastIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}.confirm-dialog{width:min(410px,calc(100vw - 32px));padding:25px;border:1px solid #e8ece6;border-radius:12px;background:white;color:var(--ink);box-shadow:0 20px 65px rgba(18,32,22,.2)}.confirm-dialog::backdrop{background:rgba(20,30,23,.42);backdrop-filter:blur(2px)}.dialog-icon{width:39px;height:39px;border-radius:10px;background:#fff4e5;color:#a6752a;display:grid;place-items:center;margin-bottom:16px}.dialog-icon svg{width:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.dialog-eyebrow{font-size:8px;color:#a17b42;font-weight:700;letter-spacing:1.3px}.confirm-dialog h2{margin:7px 0 8px;font:750 19px 'Manrope',sans-serif;letter-spacing:-.55px}.confirm-dialog p{margin:0;color:#7f8981;font-size:11px;line-height:1.65}.dialog-tracking{margin-top:13px;padding:10px 12px;border-radius:6px;border:1px solid #edf0eb;background:#fafbf9;color:#48564b;font:700 11px 'Manrope',sans-serif;word-break:break-all}.dialog-actions{margin-top:20px;display:flex;justify-content:flex-end;gap:8px}.secondary-button,.duplicate-save-button,.delete-confirm-button{min-height:36px;padding:0 12px;border-radius:6px;font-size:10px;font-weight:600}.secondary-button{border:1px solid #e5e9e3;background:white;color:#647067}.secondary-button:hover{background:#f7f8f6}.duplicate-save-button{border:0;background:#a66b16;color:white;display:flex;align-items:center;gap:8px}.duplicate-save-button:hover{background:#8c5910}.duplicate-save-button svg{width:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.duplicate-save-button:disabled,.delete-confirm-button:disabled{opacity:.55;cursor:wait}.delete-dialog .dialog-icon{background:#fff0ed;color:#b34f48}.delete-dialog .dialog-eyebrow{color:#ac6861}.delete-confirm-button{border:0;background:#b34f48;color:white}.delete-confirm-button:hover{background:#963f39}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1200px){.page-shell{width:min(100% - 64px,1016px)}.workspace{grid-template-columns:1.02fr .98fr}.camera-frame{height:247px}}
@media(max-width:760px){.topbar{height:58px;padding:0 18px}.topbar-right{gap:10px}.page-shell{width:calc(100% - 32px)}.intro{padding:34px 2px 23px}.intro h1{font-size:36px}.intro-copy{max-width:280px;line-height:1.6}.intro-mark{transform:scale(.8);margin-right:9px}.workspace{grid-template-columns:1fr;gap:14px}.scan-card{padding:19px}.camera-frame{height:260px}.results-column{gap:12px}.stats-grid{gap:10px}.stat-card{min-height:102px;padding:13px}.list-card{margin-bottom:0}.shipment-list{max-height:380px}.page-footer{padding-top:19px}.page-footer>span:last-child{max-width:160px;text-align:right;line-height:1.5}}
@media(max-width:390px){.page-shell{width:calc(100% - 28px)}.topbar{padding:0 14px}.topbar-date{font-size:10px}.intro h1{font-size:32px}.intro-mark{transform:scale(.7);margin-right:0}.scan-card{padding:16px}.camera-frame{height:230px}.stat-caption{font-size:7.5px}.shipment-meta{font-size:7.5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
