.order-scan {margin:0;min-height:100vh;display:grid;place-items:center;color:#132e46;background:linear-gradient(155deg,#f6fafb,#e6f0f5);font:16px/1.5 system-ui,sans-serif}
.order-scan * {box-sizing:border-box}
.order-scan main {width:min(35rem,calc(100% - 2rem));margin:1.5rem auto;border:1px solid #cfdde3;border-radius:1.4rem;background:white;box-shadow:0 1rem 4rem #1c4a6313;overflow:hidden}
.order-scan header,.order-scan footer {display:flex;align-items:center;padding:1.15rem clamp(1rem,5vw,2.2rem)}
.order-scan header {justify-content:space-between;border-bottom:1px solid #e0e9ec}
.order-scan header img {object-fit:contain}
.order-scan header span {font-size:.85rem;color:#3a687c;font-weight:650}
.order-scan section {padding:clamp(1.2rem,5vw,2.2rem)}
.order-scan h1,.order-scan h2,.order-scan p {margin:0}
.order-scan h1 {font-size:clamp(1.6rem,5vw,2.15rem);letter-spacing:-.035em;line-height:1.14}
.order-scan h1 + p {color:#476274;margin:.55rem 0 1.75rem}
.order-scan form>label {font-weight:650;font-size:.88rem;display:block;margin-bottom:.45rem}
.scan-entry,.scan-tools {display:flex;gap:.6rem;align-items:stretch}
.scan-entry input {font:inherit;min-width:0;flex:1;padding:.62rem .7rem;border:1px solid #97aebb;border-radius:.55rem}
.order-scan button,.scan-file {min-height:44px;border:1px solid #b9ced7;border-radius:.55rem;padding:.6rem .95rem;display:inline-flex;align-items:center;justify-content:center;font:650 .9rem/1.3 system-ui,sans-serif;color:#12485f;background:white;cursor:pointer}
.scan-entry button {background:#105976;color:#fff;border-color:#105976}
.scan-tools {margin-top:1.25rem}
.scan-file {position:relative}
.scan-file input {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.order-scan :focus-visible,.scan-file:focus-within {outline:3px solid #0b82bb;outline-offset:3px}
.order-scan .scan-error,.scan-status:not(:empty) {margin-top:.85rem}
.order-scan .scan-error {color:#963523}
.order-scan footer {background:#f7fafb;border-top:1px solid #e0e9ec}
.order-scan a {color:#125876;text-underline-offset:3px}
.order-scan [hidden] {display:none!important}
.order-scan dialog {width:min(28rem,calc(100% - 1.5rem));color:inherit;border:0;border-radius:1.2rem;padding:1.2rem;max-height:90vh;overflow:auto}
.order-scan dialog::backdrop {background:rgba(8,23,36,.65)}
.camera-top {display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.9rem}
.camera-top h2 {font-size:1.3rem}
.camera-top button {padding:.3rem;min-width:44px;font-size:1.4rem}
.scan-view {position:relative;aspect-ratio:4/3;background:#102c3d;overflow:hidden;border-radius:.65rem}
.scan-view video {width:100%;height:100%;object-fit:cover}
.scan-view i {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:51%;aspect-ratio:1;border:2px solid #c5f6eb;border-radius:.7rem;box-shadow:0 0 0 100vmax #09212b4a}
.order-scan dialog p {margin-top:.85rem}
@media (max-width:410px){.scan-entry{flex-direction:column}.scan-tools>*{flex:1}}
