/* CardFlowOS Shared Camera Capture — V113 camera foundation */
.cf-camera-open{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;padding:9px 12px;margin:5px 6px 10px 0!important;border-radius:9px;background:#0b3c84!important;color:white!important;cursor:pointer;font-weight:650;font-size:13px;white-space:normal;max-width:100%}
.cf-camera-open:hover{background:#0754a0!important}
body.cf-camera-active{overflow:hidden}
.cf-camera-modal{position:fixed;inset:0;z-index:2147483600;background:rgba(1,8,28,.93);display:flex;justify-content:center;align-items:center;padding:12px;font:inherit;color:#f8fbff}
.cf-camera-shell{width:min(100%,440px);max-height:100%;overflow-y:auto;border:1px solid #3d5881;background:#08192e;border-radius:20px;padding:14px;box-shadow:0 18px 70px #0009}
.cf-camera-top{display:flex;align-items:center;justify-content:space-between;background:transparent!important;padding:3px 2px 12px!important;color:#fff!important}
.cf-camera-brand{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700}.cf-camera-brand img{width:30px;height:30px;object-fit:contain}.cf-camera-brand strong{color:#7dd3fc}
.cf-camera-close{border:1px solid #5b718b!important;border-radius:100px!important;background:#162c49!important;color:white!important;font-size:23px!important;padding:0!important;width:34px;height:34px;line-height:30px}
.cf-camera-heading{text-align:center;font-size:14px;font-weight:700;margin:2px 0 10px}
.cf-camera-view{position:relative;width:100%;height:min(58vh,490px);min-height:260px;background:#000;border-radius:14px;overflow:hidden;display:flex;justify-content:center;align-items:center}
.cf-camera-view video,.cf-camera-view .cf-camera-preview{width:100%;height:100%;object-fit:contain;background:#000}
.cf-camera-view [hidden]{display:none!important}
.cf-camera-guide{pointer-events:none;position:absolute;inset:8% 18%;border:1px dashed #81cafa;border-radius:13px;filter:drop-shadow(0 0 3px #38bdf8)}
.cf-camera-guide i{display:block;position:absolute;width:31px;height:31px;border-color:#4fc3ff;border-style:solid}.cf-camera-guide i:nth-child(1){top:-2px;left:-2px;border-width:4px 0 0 4px;border-radius:9px 0 0 0}.cf-camera-guide i:nth-child(2){top:-2px;right:-2px;border-width:4px 4px 0 0;border-radius:0 9px 0 0}.cf-camera-guide i:nth-child(3){bottom:-2px;left:-2px;border-width:0 0 4px 4px;border-radius:0 0 0 9px}.cf-camera-guide i:nth-child(4){bottom:-2px;right:-2px;border-width:0 4px 4px 0;border-radius:0 0 9px 0}
.cf-camera-status{min-height:40px!important;margin:9px 0!important;text-align:center;color:#c8dcf5;font-size:13px;line-height:1.35}.cf-camera-status[data-error="yes"]{color:#fda4af}
.cf-camera-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px}
.cf-camera-actions button{width:auto!important;margin:0!important;border:1px solid #4a6281!important;color:#fff!important;border-radius:10px;padding:10px 12px!important;background:#243b59!important;font-size:12px!important}
.cf-camera-actions [hidden]{display:none!important}
.cf-camera-actions .cf-camera-shutter{border-radius:100px!important;border:4px solid #fff!important;width:64px!important;height:64px!important;padding:6px!important;background:#0e355c!important;display:flex;align-items:center;justify-content:center}
.cf-camera-shutter span{display:block;width:42px;height:42px;border-radius:100%;background:#38bdf8}
.cf-camera-actions .cf-camera-use{background:#0879ba!important;font-size:14px!important;font-weight:700}
.cf-camera-footnote{text-align:center;font-size:11px;color:#98acc7;line-height:1.4;margin:12px 8px 4px}
.cf-camera-modal button:focus-visible,.cf-camera-open:focus-visible{outline:3px solid #facc15;outline-offset:3px}
.cf-recognition-loader{margin:12px 0;padding:22px;background:#0a1b36;color:#dbeafe;border-radius:14px;text-align:center;overflow:hidden}
.cf-recognition-scanner{height:105px;width:75px;margin:0 auto 13px;position:relative;border:2px solid #6da4c9;border-radius:9px;background:linear-gradient(140deg,#1c395d,#0c162b);overflow:hidden}
.cf-recognition-scanner:before{content:'';position:absolute;inset:8px;border:1px dashed #6e9bb8;border-radius:5px}
.cf-recognition-scanner:after{content:'';position:absolute;left:3px;right:3px;top:0;height:3px;background:#38bdf8;box-shadow:0 0 12px #38bdf8;animation:cf-camera-scan 2s ease-in-out infinite alternate}
.cf-recognition-loader strong{font-size:15px}.cf-recognition-loader p{font-size:12px;margin:7px 0 0;color:#a8c9e7}
@keyframes cf-camera-scan{from{top:7px}to{top:94px}}
@media(prefers-reduced-motion:reduce){.cf-recognition-scanner:after{animation:none;top:50%}}
@media(max-width:540px){.cf-camera-modal{padding:0}.cf-camera-shell{width:100%;height:100%;max-height:none;border:0;border-radius:0;display:flex;flex-direction:column}.cf-camera-view{flex:1;min-height:200px;height:auto;max-height:66vh}.cf-camera-actions{padding-bottom:env(safe-area-inset-bottom,0px)}}
