:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20242b;background:#f4f5f7;font-synthesis:none;--red:#a80f24;--line:#dce0e5;--muted:#65707c}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,label{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}[hidden]{display:none!important}a{color:var(--red)}.top{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 660px)/2));gap:20px}.brand{color:#17191d;text-decoration:none;display:flex;flex-direction:column;gap:2px;font-size:22px;letter-spacing:-.6px;font-weight:900}.brand-red{color:var(--red)}.brand small{font-size:9px;font-weight:700;letter-spacing:3px;color:var(--muted)}.logout{font-size:14px;color:#4a5058;text-decoration:none;padding:12px}.shell{max-width:660px;margin:0 auto;padding:24px 18px}.welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:800;color:var(--muted)}h1{font-size:29px;letter-spacing:-.8px;margin:4px 0 0}h2{font-size:22px;letter-spacing:-.4px;margin:0 0 8px}.user-name{font-size:13px;color:var(--muted);max-width:45%;overflow-wrap:anywhere}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.tab{display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);border-radius:13px;background:#fff;min-height:66px;font-size:17px;font-weight:750;color:#4c5561}.tab.active{background:var(--red);border-color:var(--red);color:#fff;box-shadow:0 5px 13px #a80f241a}.tab-icon{font-size:25px;font-weight:400;line-height:1}.card{background:#fff;border:1px solid #e4e6ea;border-radius:18px;padding:24px;box-shadow:0 3px 15px #26304404}.section-title{display:flex;gap:12px;align-items:start;justify-content:space-between}.section-title p,.login p{font-size:14px;line-height:1.55;color:var(--muted);margin:0}.store-badge{background:#f9e9ec;color:var(--red);border-radius:8px;padding:7px 9px;font-size:14px;font-weight:bold;white-space:nowrap}fieldset{padding:24px 0 0;margin:24px 0 0;border:0;border-top:1px solid #edf0f2;min-width:0}legend{font-size:16px;font-weight:800;padding:0 10px 0 0;float:left;width:100%;margin-bottom:14px}label:not(.choice):not(.camera-button):not(.gallery-button){display:block;font-size:14px;font-weight:650;margin:0 0 8px}label span{font-weight:400;color:var(--muted)}input[type=text],input[type=password],input[type=email],select,textarea{width:100%;min-height:52px;padding:13px 14px;background:#fff;border:1px solid #cfd5dc;border-radius:10px;color:#20242b;font-size:17px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--red);box-shadow:0 0 0 3px #a80f2412}select{margin-bottom:20px}textarea{resize:vertical}.hint{font-size:12px;color:var(--muted);line-height:1.65;margin:0 0 12px}.photo-buttons{display:grid;grid-template-columns:1.2fr 1fr;gap:10px}.camera-button,.gallery-button{border:1px solid var(--line);border-radius:11px;padding:18px 10px;text-align:center;font-size:14px;font-weight:750;cursor:pointer}.camera-button{background:#f9eef0;color:var(--red);border-color:#eed3d9}.gallery-button{color:#44505e}.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:13px 0 8px}.photo{position:relative;aspect-ratio:3/4;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#f1f3f5}.photo img{width:100%;height:100%;object-fit:contain}.photo button{position:absolute;right:5px;top:5px;border:0;background:#fff;color:#333;border-radius:50%;width:30px;height:30px;font-size:20px;box-shadow:0 2px 6px #0002}.photo small{position:absolute;bottom:0;left:0;right:0;padding:5px;background:#0009;color:#fff;text-align:center;font-size:10px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.choice{position:relative;cursor:pointer}.choice input{position:absolute;opacity:0;width:1px;height:1px}.choice span{display:block;border:1px solid var(--line);border-radius:10px;padding:15px 10px;text-align:center;font-size:15px;font-weight:650;color:#44505e}.choice input:checked+span{border-color:var(--red);color:var(--red);background:#fdf0f3;box-shadow:inset 0 0 0 1px var(--red)}.choice input:focus-visible+span{outline:3px solid #a80f2450;outline-offset:3px}.size-row{display:grid;grid-template-columns:1fr 20px 1fr;gap:10px}.times{align-self:end;padding-bottom:15px;color:#7d8791;text-align:center}.presets{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.presets button{background:#f4f6f8;color:#4c5967;border:0;border-radius:7px;padding:9px 10px;font-size:12px}.primary{background:var(--red);color:#fff;border:0;border-radius:11px;font-weight:750;min-height:54px;padding:15px 23px}.primary:hover{background:#8e0b1e}.wide{width:100%;margin-top:22px;font-size:17px;min-height:58px}.centered{text-align:center;margin:12px 0 0}.message{padding:15px;border-radius:12px;margin:0 0 16px;line-height:1.55;font-size:14px;background:#fff3da;color:#69480c;border:1px solid #f0daaa}.message.error{background:#fff0f0;color:#8d1526;border-color:#f2cbd0}.message.success{background:#eef8f0;color:#25643a;border-color:#c5e7cd}.lookup-row{display:grid;grid-template-columns:1fr auto;gap:10px}.lookup-row input{font-weight:800;font-size:25px;text-transform:uppercase;letter-spacing:.8px}.product-card{margin-top:22px;border-top:1px solid #e7eaee;padding-top:22px}.product-details{display:grid;grid-template-columns:110px 1fr;gap:18px;align-items:start}.product-details img{width:110px;height:150px;object-fit:contain;background:#f5f6f7;border-radius:10px}.product-code{font-size:31px;font-weight:900;letter-spacing:.6px;margin-bottom:9px}.product-info{font-size:14px;line-height:1.8;color:#56616d}.product-info strong{font-weight:750;color:#242a32}.sold-text{color:#8c1426;font-weight:700}.success-box{text-align:center;padding:10px 0}.success-mark{display:inline-grid;place-items:center;background:#e6f4e9;color:#28643b;width:52px;height:52px;border-radius:50%;font-size:27px;margin:0 0 16px}.new-code{font-size:52px;font-weight:900;letter-spacing:1px;margin:12px 0}.success-box p{font-size:14px;line-height:1.7;color:#586573}.secondary{display:inline-block;border:1px solid var(--line);padding:14px 20px;border-radius:10px;background:#fff;color:#38404b;font-size:14px;font-weight:700;text-decoration:none;text-align:center;min-height:48px}.result-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:20px}.login{max-width:450px;margin:24px auto}.login h1{margin:12px 0}.login p{margin-bottom:24px}.login input[type=submit]{width:100%;min-height:54px;background:var(--red);border:0;border-radius:10px;color:#fff;font-size:17px;font-weight:bold;cursor:pointer}.login .login-remember label{display:flex!important;align-items:center;gap:8px;font-size:13px!important}.login input[type=checkbox]{width:18px;height:18px}.login .muted{font-size:13px;color:var(--muted)}.foot{max-width:660px;margin:auto;padding:8px 18px 30px;font-size:11px;text-align:center;color:#87909b}:focus-visible{outline:3px solid #a80f2450;outline-offset:3px}@media(max-width:420px){.top{height:68px;padding:0 18px}.shell{padding:20px 12px}.card{padding:20px 17px}.tab{min-height:62px;font-size:16px}.photo-buttons{gap:7px}.camera-button,.gallery-button{font-size:13px;padding:17px 8px}.product-details{grid-template-columns:90px 1fr;gap:12px}.product-details img{width:90px;height:130px}.product-info{font-size:13px}.result-actions{grid-template-columns:1fr}.new-code{font-size:46px}}

.defect-options{padding:0;margin:0;border:0}.defect-notice{padding:10px 12px;background:#f5f7f9;border-radius:8px}.sale-payment .choices{margin-bottom:0}

.price-preview{padding:13px;background:#f4f6f8;border-radius:9px;font-size:14px;line-height:1.7}.sale-amount{margin-top:22px}.sale-amount .hint{margin-top:7px}.defect-photo-field{padding-top:18px;margin-top:18px}

fieldset>legend+.presets{clear:both;width:100%;padding-top:1px}

/* In-page camera keeps Android's external camera app out of the capture flow. */
.hop-camera-active{overflow:hidden}
.hop-camera{position:fixed;inset:0;width:min(620px,100%);height:min(940px,100%);height:min(940px,100dvh);max-width:100%;max-height:100%;margin:auto;padding:18px;border:0;border-radius:16px;background:#fff;color:var(--ink);z-index:1000}
.hop-camera[open]{display:flex;flex-direction:column;gap:12px}
.hop-camera::backdrop{background:#10151deb}
.hop-camera-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0}
.hop-camera-heading h2{font-size:19px;margin:0}
.hop-camera-heading .secondary{padding:10px 16px;min-height:44px}
.hop-camera-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.hop-camera-frame{position:relative;flex:none;aspect-ratio:3/4;overflow:hidden;background:#15181c;border-radius:10px}
.hop-camera-video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.hop-camera-status{font-size:13px;line-height:1.5;margin:0;min-height:39px}
.hop-camera>.hint{margin:0}
.hop-camera-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}
.hop-camera-count{font-size:17px;font-weight:750;white-space:nowrap}
.hop-camera-controls .primary{min-width:180px;font-size:16px}
.hop-camera button:disabled,.camera-button:disabled{opacity:.55;cursor:wait}
@media(max-width:620px){.hop-camera{border-radius:0;padding:14px;padding-top:max(14px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom));gap:10px}.hop-camera-heading h2{font-size:17px}}

.photo-buttons button.gallery-button{grid-column:1 / -1;order:1;padding:11px 10px;background:#fff;font-size:12px}
