/* The camera reader (js/sxp-camera-scan.js): always dark, as a camera view is; a centred card on an iPad. */
.scs { position: fixed; inset: 0; z-index: 30000; display: flex; flex-direction: column; background: #05080d; color: #fff;
    font-family: "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.35; animation: scsFade .2s ease-out; }
.scs *, .scs *::before, .scs *::after { box-sizing: border-box; }
.scs button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.scs button:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.scs-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.scs-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; }
.scs-top b { flex: 1; text-align: center; font-size: 17px; font-weight: 700; }
.scs-ib { width: 42px; height: 42px; border-radius: 50% !important; display: grid !important; place-items: center; background: rgba(255, 255, 255, .14) !important; }
.scs-ib.on { background: #fde047 !important; color: #0b1220 !important; }
.scs-ib[hidden] { display: none !important; }
.scs-view { position: relative; flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; background: #0b0f15; }
.scs-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scs-box { position: relative; width: 78%; max-width: 360px; aspect-ratio: 1.55; border-radius: 18px; box-shadow: 0 0 0 2000px rgba(0, 0, 0, .45); transition: box-shadow .15s; }
.scs-box.hit { box-shadow: 0 0 0 2000px rgba(0, 0, 0, .45), inset 0 0 0 4px #22c55e; }
.scs-box .c { position: absolute; width: 30px; height: 30px; border: 4px solid #f97316; }
.scs-box .c1 { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
.scs-box .c2 { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 18px 0 0; }
.scs-box .c3 { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 18px; }
.scs-box .c4 { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 18px 0; }
.scs-laser { position: absolute; left: 5%; right: 5%; top: 50%; height: 2px; background: #ef4444; box-shadow: 0 0 10px 2px rgba(239, 68, 68, .7); }
.scs-hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.scs-low { background: #0b1220; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; }
.scs-res { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; border-radius: 14px; font-weight: 600; font-size: 14.5px; margin-bottom: 10px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .82); }
.scs-res span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.scs-res b { color: #fff; }
.scs-res.ok { background: rgba(34, 197, 94, .16); color: #bbf7d0; }
.scs-res.bad { background: rgba(249, 115, 22, .18); color: #fed7aa; }
.scs-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 12px; font-weight: 650; font-size: 15px; }
.scs-sw small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .6); font-weight: 600; }
.scs-swt { width: 48px; height: 28px; border-radius: 999px !important; background: #475569 !important; position: relative; flex: none; }
.scs-swt::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.scs-swt.on { background: #f97316 !important; }
.scs-swt.on::after { left: 23px; }
.scs-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scs-ghost { display: flex !important; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid rgba(255, 255, 255, .3) !important; border-radius: 14px; font-weight: 700; }
.scs-go { display: flex !important; align-items: center; justify-content: center; min-height: 48px; border-radius: 14px; background: #f97316 !important; color: #fff !important; font-weight: 750; padding: 0 16px !important; }
.scs-act { min-height: 38px; font-size: 14px; }
@media (min-width: 700px) {
    .scs { inset: auto; left: 50%; top: 50%; width: 560px; height: min(760px, 92vh); transform: translate(-50%, -50%); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 100vmax rgba(15, 23, 42, .45); }
}
@media (prefers-reduced-motion: no-preference) { .scs-laser { animation: scsLaser 1.6s ease-in-out infinite alternate; } }
@keyframes scsLaser { from { top: 14%; } to { top: 86%; } }
@keyframes scsFade { from { opacity: 0; } }
