.wave-change{background:#fff0c5;border:1px solid #e1bb64;border-radius:6px;padding:5px 9px;font-size:12px;font-weight:700;flex:none}.queue-row{font-size:12px;padding:4px 0;border-bottom:1px solid #e1eae4}
:root{font:14px system-ui,-apple-system,Arial,sans-serif;color:#203e34;background:#eff5f2;--line:#d7e5dc;--green:#22654e}*{box-sizing:border-box}body{margin:0;height:100vh;display:flex;flex-direction:column}button,a,input{font:inherit}button,.button{border:1px solid var(--line);border-radius:7px;background:#fff;color:#245641;min-height:32px;padding:5px 10px;text-decoration:none;cursor:pointer}button:disabled{opacity:.45}.primary{background:var(--green);color:white}header{height:30px;flex:none;padding:0 10px;display:flex;align-items:center;justify-content:space-between;font-size:12px;border-bottom:1px solid var(--line);background:#fff}header b{letter-spacing:.05em}#net{font-size:11px}#net.offline{color:#905a08}main{width:100%;max-width:720px;margin:0 auto;padding:6px 8px;flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}.toolbar{display:flex;gap:5px;align-items:center;height:30px;flex:none}.toolbar small{margin-right:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.toolbar button{font-size:11px;min-height:28px;padding:3px 8px}.card{background:white;border:1px solid var(--line);border-radius:11px;padding:10px}.work{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;max-height:500px}.wave{display:flex;align-items:center;gap:8px;border-left:4px solid #d8a441;padding-left:8px}.wave b{font-size:16px}.wave small{font-size:11px;color:#6a8074;margin-left:auto}.progress{height:4px;background:#e5eee8;border-radius:4px;flex:none}.progress i{display:block;height:100%;background:#398a65}.route{display:flex;align-items:baseline;gap:10px;justify-content:space-between}.route strong{font-size:25px;line-height:1.1}.route b{font-size:19px;white-space:nowrap}.product{display:flex;align-items:center;gap:9px;min-height:64px}.product img{width:52px;height:64px;object-fit:contain;flex:none}.product h2{font-size:15px;line-height:1.2;margin:0 0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product p{margin:3px 0;font-size:13px}.product small{font-size:11px;color:#62796c}.barcode{font:600 14px ui-monospace,monospace;overflow-wrap:anywhere}.count{display:flex;justify-content:space-between;align-items:center;font-size:13px}.count b{font-size:20px}.sync{font-size:11px;color:#896014}.scan-area{margin-top:auto;display:flex;flex-direction:column;gap:6px}.scan-area label{font-size:13px;font-weight:650}.scan-area input{width:100%;height:39px;border:1px solid #91b8a4;border-radius:7px;padding:6px 9px;font-size:16px;background:#f7fbf8;outline-color:#479c71}.actions{display:flex;gap:6px;justify-content:space-between}.actions button,.actions a{font-size:12px}.muted{color:#6a8174;font-size:12px}.error{color:#b02b2b}#message{margin:0;padding:4px 10px;min-height:25px;font-size:12px;line-height:1.2;background:#fff;flex:none;white-space:pre-wrap}h1{font-size:20px;margin:0 0 10px}h2{font-size:17px;margin:0 0 8px}p{margin:7px 0}form.login{display:flex;flex-direction:column;gap:8px}input{padding:8px;max-width:100%;border:1px solid var(--line);border-radius:6px}label{display:block}details{margin-top:12px}dialog{border:1px solid var(--line);border-radius:12px;max-width:90vw;max-height:85vh;overflow:auto}dialog::backdrop{background:#173f3040}.list{font-size:13px;border-bottom:1px solid var(--line);padding:8px 0}.notice{border:1px solid #e5cc8b;background:#fff8e6;padding:8px;border-radius:7px;font-size:12px}.queue{overflow:auto}.work-body{display:contents}.identity{min-width:0}.work .explain{font-size:13px;line-height:1.3}#loading-error{font-size:13px}
@media(min-width:520px) and (max-height:500px){header{height:25px}main{padding:4px 8px;gap:4px}.toolbar{height:28px}.work{padding:8px;gap:5px}.work-body{display:grid;grid-template-columns:1.2fr 1fr;gap:5px 15px;min-height:0;flex:1}.identity{grid-column:1;grid-row:1/4}.scan-area{grid-column:2;grid-row:2/4;margin-top:0}.count{grid-column:2;grid-row:1}.product{margin-top:7px}.wave b{font-size:14px}.route strong{font-size:23px}.route b{font-size:17px}.wave small{font-size:11px}#message{min-height:22px}}
@media(max-width:380px){.work{gap:6px;padding:8px}.wave small{font-size:10px}.route strong{font-size:23px}.product h2{font-size:14px}.product img{height:56px;width:44px}}

.take-count{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:8px;background:#e3f3e9;color:#154d36;padding:3px}.take-count b{font-size:38px;line-height:1.1}.take-count span{font-size:15px;font-weight:650}.barcode{font-weight:800;font-style:italic}.count{order:9;font-size:11px}.count b{font-size:14px}.scan-area{margin-top:0}.route b{font-size:23px}

/* TSD 85: larger product photo and physical barcode; no change to scan controls. */
.product{margin-top:5px;align-items:center}.product img{width:104px;height:128px}.product-info{min-width:0;flex:1}.barcode{font-size:24px;line-height:1.2;margin-top:5px;font-variant-numeric:tabular-nums;font-style:normal;font-weight:800}.barcode strong{font-size:30px;font-weight:900;color:#123f2d;white-space:nowrap}.route b{display:flex;align-items:center;gap:6px}.mixed-box{display:inline-flex;align-items:center;justify-content:center;flex:none;width:23px;height:23px;border-radius:50%;background:#e3efff;border:1px solid #a6c8ed;color:#1768ad;font:bold 19px/1 Arial}.mixed-hint{font-size:11px;line-height:1.2;color:#1768ad;margin-top:3px}.product h2{font-size:15px}.product small{display:block}
@media(max-width:380px){.product img{width:88px;height:112px}.barcode{font-size:22px}.barcode strong{font-size:28px}}
@media(max-height:520px){header{height:26px}main{padding:4px 6px}.toolbar{height:28px}.work{gap:4px;padding:6px}.scan-area{gap:4px}.scan-area input{height:34px}.actions button,.actions a{min-height:28px}.product{margin-top:3px}.product h2{font-size:14px}.take-count b{font-size:32px}}

.wave-confirm{width:310px;padding:16px;color:#203e34;background:#fff}.wave-confirm h2{font-size:19px;line-height:1.25;outline:none}.wave-confirm p{font-size:13px;line-height:1.4;margin:12px 0}.wave-confirm button{width:100%;min-height:44px;font-size:14px;font-weight:650}.wave-confirm::backdrop{background:#173f3090}

/* Scan errors stay prominent until a valid scan or explicit recovery succeeds. */
#scan-error{position:relative;flex:none;display:flex;align-items:flex-start;gap:8px;width:calc(100% - 12px);max-width:708px;margin:6px auto 0;padding:8px 10px;border:2px solid #c93636;border-radius:9px;background:#fff0f0;color:#a61717;font-size:18px;font-weight:750;line-height:1.25;overflow-wrap:anywhere}#scan-error[hidden]{display:none}#scan-error .scan-error-text{flex:1;min-width:0;max-height:24vh;overflow:auto;white-space:pre-wrap}#scan-error button{flex:none;min-width:44px;min-height:44px;font-size:26px;line-height:1;color:#a61717;border-color:#e3a0a0}body{min-height:100vh;height:auto}main{flex-shrink:0}
.storage-actions{flex-wrap:wrap}.storage-actions #missing,.storage-actions #wrong-product{flex:1 1 40%;min-height:38px;font-weight:650}.storage-actions #missing{border-color:#d9a7a7;color:#922}.storage-actions #wrong-product{border-color:#d8bf80;color:#765108}
#app .tsd-home{display:flex;flex-direction:column;gap:10px}#app .tsd-home>button{min-height:54px;font-size:18px;text-align:left;padding:12px}#app .ops{display:flex;flex-direction:column;gap:10px;min-width:0}#app .ops button{min-height:44px;white-space:normal}#app .ops-form{display:flex;flex-wrap:wrap;gap:7px;padding:8px 0}#app .ops-form label{flex-basis:100%;font-weight:650}#app .ops input{display:block;width:100%;min-height:44px;font-size:17px;margin-top:5px}#app .ops-buttons{display:flex;gap:6px;flex-wrap:wrap}#app .ops-buttons button{flex:1;min-width:85px}#app .ops-product{display:flex;gap:8px;min-width:0;overflow-wrap:anywhere}#app .ops-product>div{min-width:0}#app .ops-product img{width:64px;height:72px;object-fit:contain;flex:none}#app .ops-line{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:8px 0;overflow-wrap:anywhere}#app .ops-line span{min-width:0}#app .ops-count{border:1px solid var(--line);border-radius:8px;padding:10px}#app .ops-review{white-space:pre-wrap;overflow-wrap:anywhere}#app .ops .notice{overflow-wrap:anywhere}
