/* Continuous capture: the camera fills the screen; controls float over it. */
.scan-mode{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 16px;font-size:14px}.scan-mode select{max-width:65%;min-height:44px}.scan-batch{margin-top:20px;padding:16px;border:1px solid #b7d6c4;border-radius:16px;background:#eff8f0;color:#203e38}.scan-batch h2{font-size:21px;margin:0 0 10px}.scan-batch>p{font-size:14px;line-height:1.5}.batch-card{display:grid;grid-template-columns:64px minmax(0,1fr) 40px;align-items:start;gap:10px;padding:16px 0;border-bottom:1px solid #c5dbcd}.batch-card>img{width:64px;height:90px;object-fit:contain;border-radius:5px}.batch-card small{display:block;font-size:13px;line-height:1.4;margin:5px 0}.batch-card label{display:block;font-size:14px;margin-top:10px}.batch-card select{width:100%;min-height:44px;margin-top:5px}.batch-card details{margin-top:10px}.batch-card summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px}.batch-card .effect-text{font-size:15px;line-height:1.5;white-space:pre-wrap}.batch-card .batch-confirm{display:flex;align-items:start;gap:9px;line-height:1.45}.batch-confirm input{flex:none;width:22px;height:22px;margin:0}.scan-batch>button{width:100%;margin-top:14px;min-height:48px}#scan-batch-list{max-height:65vh;overflow:auto;scroll-padding:16px}.scan-steps{display:none}
/* Keep the actual scanner in the first viewport while retaining Pokémon art. */
#scan-view:not(.showing-card)>.scan-hero{min-height:156px;padding:20px 24px 60px!important;margin-bottom:16px}#scan-view:not(.showing-card) .scan-hero h1{font-size:30px;margin:4px 0}#scan-view:not(.showing-card) .scan-hero .eyebrow{display:none}#scan-view:not(.showing-card) .scan-hero .pokemon-hero-art{height:140px;width:36%}#scan-view:not(.showing-card) .scan-hero .pokemon-hero-art img{max-height:136px}#scan-view:not(.showing-card) .scan-hero .language-choice{bottom:12px;left:24px}
@media(max-width:700px){#scan-view:not(.showing-card)>.scan-hero{min-height:144px;padding:13px 14px 48px!important}#scan-view:not(.showing-card) .scan-hero h1{font-size:24px}#scan-view:not(.showing-card) .scan-hero p{font-size:13px}#scan-view:not(.showing-card) .scan-hero .pokemon-hero-art{height:108px;width:37%}#scan-view:not(.showing-card) .scan-hero .pokemon-hero-art img{max-height:104px}#scan-view:not(.showing-card) .scan-hero .language-choice{left:14px;bottom:9px}.scan-mode{gap:7px}.scan-mode select{font-size:14px}.batch-card{grid-template-columns:48px minmax(0,1fr) 30px;gap:8px}.batch-card>img{width:48px;height:68px}.scan-batch{padding:12px}}
.scan-zoom,.scan-review,.scan-last{display:none}
body.continuous-scanning{overflow:hidden}
body.continuous-scanning #drop-zone{position:fixed;inset:0;z-index:2000;border:0;border-radius:0;background:#061218;padding:0;margin:0;width:100%;height:100dvh;box-sizing:border-box;overflow:hidden;display:block}
body.continuous-scanning #drop-zone>.scan-mode,body.continuous-scanning #sharp-photo,body.continuous-scanning #camera-details,body.continuous-scanning #candidates,body.continuous-scanning #photo-tools,body.continuous-scanning #upload-button,body.continuous-scanning #scan-batch{display:none}
body.continuous-scanning #live-camera{position:absolute;inset:0;height:100%;min-height:0;margin:0;border-radius:0;background:#02080d}
body.continuous-scanning #live-camera:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(#001019a6,transparent 20%,transparent 48%,#00101930 62%,#001019d9 100%)}
body.continuous-scanning #camera-video{height:100%;width:100%;object-fit:cover;transform-origin:center}
body.continuous-scanning #camera-guide{inset:0;left:0;top:0;width:100%;height:100%;max-height:none;max-width:none;transform:none;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none;z-index:1}
body.continuous-scanning #scan-outline polygon{stroke:#f6d794;stroke-width:2;fill:#f6d7940a}
body.continuous-scanning #drop-zone .capture-top{position:absolute;top:max(17px,env(safe-area-inset-top));left:72px;right:18px;z-index:3;margin:0;display:flex;gap:8px;justify-content:space-between;color:#edffff;font-size:.85rem;text-shadow:0 1px 4px #000}
body.continuous-scanning .capture-actions{position:absolute;top:max(10px,env(safe-area-inset-top));left:14px;z-index:4;display:block;margin:0}
body.continuous-scanning #stop-camera{width:44px;min-width:44px;height:44px;min-height:44px;font-size:28px;padding:0;border:1px solid #ffffff40;border-radius:50%;background:#06182099;color:white}
body.continuous-scanning #ocr-status{position:absolute;bottom:226px;left:20px;right:20px;z-index:3;margin:0;padding:8px 12px;text-align:center;font-size:.9rem;line-height:1.4;color:#fff;background:#071c25a6;border-radius:12px;text-shadow:0 1px 3px #000}
body.continuous-scanning .scan-zoom{display:flex;gap:8px;justify-content:center;position:absolute;bottom:174px;left:15px;right:15px;z-index:3}
.scan-zoom button{min-width:44px;height:44px;padding:6px;border:1px solid #ffffff35;border-radius:50%;background:#11232dd9;color:white;font:inherit;font-size:.9rem}
.scan-zoom button[aria-pressed=true]{background:#f6d794;color:#132733;border-color:#f6d794;font-weight:700}
body.continuous-scanning .scan-last{position:absolute;bottom:64px;left:16px;right:16px;z-index:3;display:flex;align-items:center;gap:14px;min-height:98px;max-height:105px;background:#09202bed;color:white;padding:10px 14px;border:1px solid #5a8f94;border-radius:16px;max-width:470px;margin:auto}
.scan-last img{width:56px;height:78px;object-fit:contain;border-radius:5px}.scan-last span{display:grid;gap:4px;font-size:.9rem;min-width:0}.scan-last small{font-size:.8rem;color:#a3d5d1}.scan-last strong{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scan-last button{align-self:flex-start;margin-left:auto;min-width:44px;height:44px;border:0;border-radius:50%;background:#ffffff14;color:#f6d794;font:inherit;font-size:24px}
body.continuous-scanning .scan-review{display:block;position:absolute;bottom:max(12px,env(safe-area-inset-bottom));right:16px;z-index:3;min-height:44px;padding:10px 20px;border:1px solid #94ded1;border-radius:24px;background:#94ded1;color:#082b33;font:inherit;font-weight:700}
.scan-review:disabled{opacity:.65}
.scan-last small.scan-copy-count{color:#d6ffef;font-weight:700;font-size:.875rem}
.scan-price{display:grid;gap:3px;margin-top:4px;font-size:.8rem;line-height:1.3}
.scan-price .scan-price-amount{font-size:.92rem;color:#f6d794;white-space:normal}
.scan-price a{color:#a9e6df;font-size:.75rem;min-height:24px;display:inline-flex;align-items:center}
.scan-last .scan-price small{font-size:.72rem}
body.continuous-scanning .scan-last{max-height:none;min-height:144px}
/* This card has no automatic valuation: prices remain sourced in the detail. */
body.continuous-scanning #drop-zone{--scan-result-height:144px}
body.continuous-scanning .scan-zoom{bottom:calc(76px + var(--scan-result-height,200px))}
body.continuous-scanning #ocr-status{bottom:calc(130px + var(--scan-result-height,200px))}
.scan-review:focus-visible,.scan-zoom button:focus-visible,.scan-last button:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(min-width:850px){body.continuous-scanning .scan-zoom{bottom:186px}body.continuous-scanning .scan-review{right:max(16px,calc((100vw - 470px)/2))}}
@media(max-height:500px) and (orientation:landscape){body.continuous-scanning .scan-last{left:auto;width:260px;bottom:66px}body.continuous-scanning .scan-last img{width:44px;height:62px}body.continuous-scanning .scan-last strong{font-size:.9rem}body.continuous-scanning .scan-zoom{left:auto;right:30px;bottom:177px}body.continuous-scanning #ocr-status{left:16px;right:auto;width:calc(100% - 320px);bottom:16px}body.continuous-scanning .capture-top #photo-label{display:none}}
@media(min-width:850px){body.continuous-scanning .scan-zoom{bottom:calc(76px + var(--scan-result-height,200px))}}
@media(max-height:500px) and (orientation:landscape){body.continuous-scanning .scan-last{width:300px;min-height:120px}body.continuous-scanning .scan-zoom{bottom:calc(76px + var(--scan-result-height,200px))}body.continuous-scanning #ocr-status{width:calc(100% - 380px)}}

.batch-price{background:#fff;padding:10px;border-radius:8px;border:1px solid #c5dbcd}.batch-price .scan-price-amount{color:#20573c;font-size:16px}.batch-price a{color:#24674e;font-size:13px;min-height:36px}.batch-price small{font-size:12px;color:#415e4e}.scan-last .scan-price-amount{white-space:normal;overflow:visible;font-size:16px}.scan-last .scan-price small,.scan-last .scan-price a{font-size:12px}
