.mobile-scanner{box-sizing:border-box;color:var(--ink,#171717);background:var(--paper,#fff);border:1px solid var(--line,#e7e4dc);border-radius:22px;width:min(440px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:auto;box-shadow:0 24px 90px #0004;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5;overscroll-behavior:contain}
.mobile-scanner::backdrop{background:#0008;backdrop-filter:blur(3px)}
.mobile-scanner *{box-sizing:border-box}.mobile-scanner [hidden]{display:none!important}
.mobile-scan-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 20px 12px}.mobile-scan-eyebrow{font-size:11px;letter-spacing:1px;font-weight:700;color:var(--muted,#6d6a62);margin:0 0 3px}.mobile-scan-header h2{margin:0;font-size:22px;letter-spacing:-.5px;font-weight:700}.mobile-scan-close{border:1px solid var(--line,#e7e4dc);background:#fff;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;padding:0;color:var(--ink,#171717);font-size:28px;line-height:1;flex:none;cursor:pointer}.mobile-scan-body{padding:0 20px 20px}.mobile-scan-context{font-size:12px;color:var(--muted,#6d6a62);margin:0 0 12px;overflow-wrap:anywhere}
.mobile-scan-viewfinder{position:relative;background:#191919;border:1px solid #292929;border-radius:16px;overflow:hidden;aspect-ratio:1.15}.mobile-scan-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#fff;padding:18px;text-align:center}.mobile-scan-symbol{width:64px;height:64px;stroke:var(--brand,#fac600);stroke-width:3;stroke-linejoin:round;margin-bottom:16px}.mobile-scan-placeholder p{font-size:14px;font-weight:600;margin:0 0 5px}.mobile-scan-placeholder span{font-size:12px;color:#d4d4d4}.mobile-scan-camera-area{position:absolute;inset:0;background:#171717}.mobile-scan-camera-area video{display:block;object-fit:cover;width:100%;height:100%}.mobile-scan-camera-guide{position:absolute;inset:18%;border:2px solid var(--brand,#fac600);border-radius:14px;box-shadow:0 0 0 100px #0003;pointer-events:none}
.mobile-scan-status{font-size:13px;color:var(--muted,#6d6a62);margin:12px 0;line-height:1.65;min-height:42px;overflow-wrap:anywhere}.mobile-scan-status.is-error{color:var(--red,#a72d24)}.mobile-scan-actions{display:grid;gap:10px}.mobile-scan-primary{display:flex;align-items:center;justify-content:center;border:1px solid var(--brand,#fac600);background:var(--brand,#fac600);color:var(--ink,#171717);border-radius:11px;min-height:46px;padding:11px 12px;font:inherit;font-weight:700;text-align:center;cursor:pointer;line-height:1.5}.mobile-scan-primary:disabled,.mobile-scan-code-row button:disabled{opacity:.48;cursor:not-allowed}
.mobile-scan-fallback{margin:12px 0 0;border-top:1px solid var(--line,#e7e4dc)}.mobile-scan-fallback summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:13px;font-weight:600}.mobile-scan-form{margin:0;padding:0 0 5px}.mobile-scan-manual-label{display:block;font-size:12px;margin:0 0 7px;color:var(--muted,#6d6a62)}.mobile-scan-code-row{display:flex;gap:8px;align-items:stretch}.mobile-scan-code-row input{flex:1;min-width:0;max-width:100%;width:100%;border:1px solid var(--line,#e7e4dc);border-radius:10px;background:#fff;padding:11px 12px;font:16px ui-monospace,SFMono-Regular,monospace;color:var(--ink,#171717);height:46px}.mobile-scan-code-row input::placeholder{color:#8b8880;font-family:inherit;font-size:13px}.mobile-scan-code-row button{border:1px solid var(--line,#e7e4dc);border-radius:10px;background:#f5f3ed;color:var(--ink,#171717);font:inherit;font-size:13px;font-weight:600;min-width:60px;min-height:46px;padding:11px 14px;white-space:nowrap;cursor:pointer}.mobile-scan-privacy{font-size:11px;line-height:1.7;color:var(--muted,#6d6a62);margin:12px 0 0}.mobile-scanner button:focus-visible,.mobile-scan-code-row input:focus-visible,.mobile-scan-fallback summary:focus-visible{outline:3px solid var(--brand,#fac600);outline-offset:3px}
@media(max-height:650px){.mobile-scan-header{padding-top:14px}.mobile-scan-viewfinder{aspect-ratio:1.55}.mobile-scan-symbol{width:48px;height:48px;margin-bottom:10px}.mobile-scan-body{padding-bottom:16px}.mobile-scan-status{min-height:0}.mobile-scan-fallback{margin-top:10px}}
@media(max-width:360px){.mobile-scan-header{padding-left:16px;padding-right:16px}.mobile-scan-body{padding-left:16px;padding-right:16px}.mobile-scan-header h2{font-size:20px}}
