:root{font-family:Arial,Helvetica,sans-serif;color:#20211f;background:#efeee9;--line:#cbcfc8;--accent:#dc4b24;--green:#266748;--muted:#62675f;color-scheme:light;font-synthesis:none}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}.workstation{max-width:500px;min-height:100svh;margin:auto;padding:0 22px;display:flex;flex-direction:column}header{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.wordmark{display:flex;flex-direction:column;gap:5px;text-decoration:none;color:inherit}.wordmark b{font-size:17px;letter-spacing:-.04em}.wordmark span{font-size:10px;letter-spacing:.22em;color:var(--muted)}.operator{margin:14px 0 0;font-size:12px;color:var(--muted)}.steps{list-style:none;display:flex;padding:0;margin:24px 0 34px;gap:16px;justify-content:space-between;font-size:11px;color:var(--muted)}.steps li{padding:8px 0;border-top:2px solid var(--line);flex:1;white-space:nowrap}.steps li[aria-current=step]{border-color:var(--accent);color:#20211f;font-weight:700}section{margin:34px 0 32px}section:not(#login-screen){margin-top:0}.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:700;color:var(--muted);margin:0 0 16px}h1{font-size:36px;line-height:1.08;letter-spacing:-.045em;margin:0 0 18px;font-weight:700}h2{font-size:24px;letter-spacing:-.03em}.subline{font-size:15px;line-height:1.5;color:var(--muted);margin:0 0 26px}label{display:block;font-size:12px;font-weight:700;margin:18px 0 8px}input{width:100%;height:54px;border:1px solid #8f968b;border-radius:2px;background:#fafaf7;color:#20211f;padding:0 14px;font:inherit;font-size:16px;min-width:0}input:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #dc4b2455;outline-offset:3px}button{font:inherit;font-size:15px;min-height:48px;padding:12px 16px;border:1px solid transparent;border-radius:2px;cursor:pointer;font-weight:700;touch-action:manipulation}button:disabled{opacity:.4;cursor:default}.primary{display:block;width:100%;background:var(--accent);color:#fff;margin:24px 0 0;min-height:54px}.secondary{display:block;background:transparent;border-color:#777e71;color:#30342e;width:100%;margin-top:14px}.quiet{background:transparent;font-size:12px;padding:10px 8px;min-height:44px;color:var(--muted)}.danger{color:#963721;margin:18px auto 0;display:block}.input-row{display:flex}.input-row input{border-radius:2px 0 0 2px}.input-row button{border:1px solid #8f968b;border-left:0;background:#e1e3dc;min-height:54px;border-radius:0 2px 2px 0}.order-row{display:flex;align-items:baseline;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:18px}.order-name{font-size:18px;font-weight:700;color:#20211f;margin:0}.counter{font-size:76px;letter-spacing:-.06em;line-height:1.15;font-variant-numeric:tabular-nums;margin:18px 0 10px}.counter-total{font-size:32px;color:var(--muted);letter-spacing:-.04em}progress{display:block;appearance:none;width:100%;height:5px;border:0;background:#d0d5cb;border-radius:0;margin:0 0 16px}progress::-webkit-progress-bar{background:#d0d5cb}progress::-webkit-progress-value{background:var(--green)}progress::-moz-progress-bar{background:var(--green)}#progress-label{font-size:13px;margin-bottom:20px}.notice,.error{padding:14px 15px;font-size:14px;line-height:1.45;margin:20px 0;border-left:3px solid}.notice{background:#e3eadf;border-color:var(--green);color:#294932}.error{background:#f5e4de;border-color:#a53a21;color:#802b19}.steps+.notice,.steps+.error{margin-top:-14px}details{margin-top:26px;border-top:1px solid var(--line);padding-top:14px;font-size:13px}summary{min-height:44px;cursor:pointer;padding-top:10px}summary span{float:right}#scan-list{list-style:none;margin:0;padding:0}#scan-list li{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:5px 0}.success-mark{width:42px;height:42px;background:var(--green);border-radius:50%;color:white;display:grid;place-items:center;font-size:25px;margin-bottom:22px}#receipt-screen .eyebrow{color:var(--green)}.receipt-order{font-size:23px;font-weight:700;margin:24px 0}dl{margin:20px 0}dl div{padding:15px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:105px 1fr;gap:12px}dt{color:var(--muted);font-size:13px}dd{margin:0;font-size:14px;font-weight:700;overflow-wrap:anywhere}.camera-panel{background:#252822;color:#fff;padding:12px;margin-bottom:26px}.camera-header{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:8px}.camera-header button{color:#fff}.camera-panel video{display:block;width:100%;max-height:320px;aspect-ratio:4/3;object-fit:cover;background:#111}.camera-panel p{font-size:11px;margin-bottom:0;color:#d2d8cf}dialog{max-width:min(440px,calc(100% - 32px));border:1px solid var(--line);background:#efeee9;padding:22px;color:inherit;border-radius:3px}dialog::backdrop{background:#20211faa}dialog p{font-size:15px;line-height:1.5}.dialog-actions{display:flex;gap:12px;align-items:end}.dialog-actions button{flex:1;width:auto;min-height:54px}footer{margin-top:auto;padding:28px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:10px;letter-spacing:.1em;color:var(--muted)}@media(min-width:720px){.workstation{padding:0 28px}header{height:90px}section{margin-top:46px}.steps{margin-bottom:42px}}@media(prefers-reduced-motion:no-preference){progress::-webkit-progress-value{transition:width .15s ease}}
.identity-check{display:flex;align-items:flex-start;gap:12px;font-size:15px;line-height:1.5;margin:18px 0}.identity-check input{width:24px;min-width:24px;height:24px;margin:0;accent-color:var(--accent,#ed5318)}#pickup-identity{border-top:1px solid #d4d3cd;padding-top:20px;margin-bottom:24px}#pickup-form{margin-top:20px}#camera-panel:has(#ocr-capture:not([hidden])) video{background:linear-gradient(transparent 35%,#fff2 35%,#fff2 65%,transparent 65%)}#ocr-hint{font-size:14px}

.camera-view{position:relative}.camera-view video{display:block;width:100%}#ocr-guide{position:absolute;inset:35% 0;border:2px solid #ed5318;pointer-events:none;box-shadow:0 -150px 0 0 #0003,0 150px 0 0 #0003}
.camera-view{overflow:hidden}.camera-view:has(#ocr-guide:not([hidden])) video{aspect-ratio:auto;max-height:none;object-fit:contain}

/* Camera lives above the page, so neither scrolling nor the keyboard hides it. */
body.scanning{overflow:hidden}body.scanning .workstation>header,body.scanning .workstation>section:not(#camera-panel),body.scanning .workstation>ol,body.scanning footer{visibility:hidden}
#camera-panel.camera-panel{position:fixed;inset:0;z-index:1000;margin:0!important;padding:max(16px,env(safe-area-inset-top)) 18px max(20px,env(safe-area-inset-bottom));height:100dvh;display:flex;flex-direction:column;background:#141713;color:white;gap:16px}
#camera-panel .camera-header{font-size:17px;min-height:48px;flex-shrink:0}#camera-panel .camera-view{width:100%;max-width:720px;margin:auto;flex-shrink:1;min-height:0;border-radius:16px;overflow:hidden}
#camera-panel .camera-view video{width:100%;height:auto;max-height:60dvh;aspect-ratio:auto;object-fit:contain;background:#080a08}
#scan-guide,#ocr-guide{position:absolute;pointer-events:none;border:2px solid #ffffffe0;border-radius:14px;box-shadow:0 0 0 999px #0005;transition:border-color .15s,box-shadow .15s}
#scan-guide{width:42%;height:auto;aspect-ratio:1;left:29%;top:50%;transform:translateY(-50%)}#camera-panel[data-kind=shipping] #scan-guide{width:80%;left:10%;aspect-ratio:3}
#ocr-guide{inset:36% 8%;border-radius:10px}#camera-feedback{font-size:21px!important;line-height:1.3;font-weight:700;text-align:center;min-height:54px;color:white!important;margin:0!important}
#camera-distance,#ocr-hint{font-size:15px!important;line-height:1.5;text-align:center;margin:0!important;color:#ddd!important}#camera-panel>p:last-child{text-align:center;margin:0}#ocr-capture{margin:0;background:#ffffff15;color:#fff;border:1px solid #ffffff66;min-height:44px}
#camera-panel.scan-error #camera-feedback{color:#ffb39e!important}
@media(prefers-reduced-motion:reduce){#scan-guide,#ocr-guide{transition:none}}

/* Fullscreen live view; only controls, guide and concise status float above it. */
#camera-panel.camera-panel{padding-left:20px;padding-right:20px;isolation:isolate;gap:10px}
#camera-panel .camera-view{position:absolute;inset:0;width:100%;max-width:none;margin:0;border-radius:0;z-index:-1}
#camera-panel .camera-view video{width:100%;height:100%;max-height:none;object-fit:cover}
#camera-panel .camera-header{margin-bottom:auto;z-index:2;text-shadow:0 1px 6px #000}
#camera-panel .camera-header button{background:#14171399;border:1px solid #ffffff55;border-radius:24px;padding:8px 16px}
#camera-panel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#0008,transparent 22%,transparent 68%,#000c)}
#camera-panel #scan-guide{width:56%;left:22%;aspect-ratio:1;height:auto;max-height:40dvh}
#camera-panel[data-kind=shipping] #scan-guide{width:84%;left:8%;aspect-ratio:3}
#camera-panel #ocr-guide{inset:auto 8%;height:94px;top:50%;transform:translateY(-50%)}
#camera-feedback{font-size:25px!important;min-height:38px;text-shadow:0 1px 6px #000}
#camera-panel #ocr-capture{display:none}#camera-panel>p:last-child{font-size:10px;opacity:.7;margin-top:8px}

/* Persistent count; only the recognized ink flashes in the existing orange. */
#camera-count{position:absolute;right:22px;top:calc(env(safe-area-inset-top) + 86px);z-index:4;margin:0!important;padding:7px 13px;border-radius:8px;background:#14171390;color:#fff!important;font-size:36px!important;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.04em;line-height:1.15;text-shadow:0 1px 5px #000}
/* A single 250 ms acknowledgement; no animated frames or glow. */
#scan-guide,#ocr-guide{transition:none;animation:none;filter:none;border-color:#ffffffe0}
#camera-success{position:absolute;left:50%;top:calc(50% + 65px);transform:translateX(-50%);z-index:4;display:grid;place-items:center;width:42px;height:42px;border-radius:4px;background:#266748;color:#fff;font-size:26px;font-weight:700;pointer-events:none}
#camera-panel.feedback-success #camera-feedback{color:#fff!important;background:#266748}
#camera-feedback{padding:10px 12px;border-radius:4px;background:#141713c9;line-height:1.4;font-size:17px!important}
#camera-panel.scan-error #camera-feedback{color:#fff!important;background:#802b19}
#scanner-sound{white-space:nowrap}#camera-panel .camera-header strong{margin-right:auto}

/* Consistent navigation with explicit completion actions. */
.header-navigation{display:flex;align-items:center;gap:8px}.receipt-actions{display:flex;flex-direction:column;gap:12px}.receipt-actions .primary,.receipt-actions .secondary{margin:0}.receipt-actions .primary{margin-top:24px}
#camera-panel .camera-header{flex-wrap:wrap;gap:6px}#camera-panel .camera-header strong{flex:1 1 100%;font-size:16px}#camera-panel .camera-header button{font-size:12px;min-height:44px}#camera-home{margin-right:auto}

/* Ready-to-load actions must visibly differ from disabled actions. */
.input-row button:not(:disabled){background:var(--accent);border-color:var(--accent);color:#fff}.input-row button:disabled{background:#d8dbd4;border-color:#a7ada2;color:#62675f;opacity:1}

.remember-device{display:flex;align-items:center;gap:12px;line-height:1.4;font-weight:400;font-size:14px}.remember-device input{width:22px;height:22px;min-width:22px;margin:0;accent-color:var(--accent)}

.admin-menu{display:grid;grid-template-columns:1fr 1fr;gap:8px}.admin-menu .secondary{margin:0;font-size:13px;min-height:52px}.admin-record{border-bottom:1px solid var(--line);padding:12px 0;font-size:14px;overflow-wrap:anywhere}.admin-record p{margin:0 0 4px;line-height:1.5}select,textarea{width:100%;font:inherit;font-size:16px;padding:12px;background:#fafaf7;border:1px solid #8f968b}#admin-screen form{margin-top:28px;border-top:1px solid var(--line);padding-top:18px}#issue-reason{min-height:110px}.header-navigation{gap:2px}.header-navigation .quiet{font-size:11px;padding:8px 5px}
