/* UI layer, loaded last: progress steps, device choice (QR), full-screen face check and
   document camera (Persona-style), review screen. Purple / white / green; status colours are functional. */

body.kf-open { overflow: hidden; }

/* ---------- Header and progress steps ---------- */
.site-header { box-shadow: 0 1px 0 var(--border-color), 0 8px 24px rgba(76, 48, 160, 0.06); }
.brand-secure { display: none; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.brand-secure i { color: var(--success); }
@media (min-width: 640px) { .brand-secure { display: inline-flex; } }
.kyc-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 560px; margin: 0 auto; padding: 0.35rem 1rem 0.85rem; position: relative; }
.kyc-steps li { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); position: relative; }
.kyc-steps li b { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--field-bg); color: var(--text-muted); font-size: 0.78rem; position: relative; z-index: 1; transition: background 0.25s, color 0.25s, transform 0.25s; }
.kyc-steps li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--border-color); }
.kyc-steps li:first-child::before { display: none; }
.kyc-steps li.done::before, .kyc-steps li.now::before { background: var(--primary); }
.kyc-steps li.now { color: var(--primary); }
.kyc-steps li.now b { background: var(--primary); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 4px rgba(108, 71, 232, 0.16); }
.kyc-steps li.done b { background: var(--success); color: #fff; font-size: 0; }
.kyc-steps li.done b::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.7rem; }
.kyc-steps li.done { color: var(--text); }

/* ---------- Page polish ---------- */
.card { border-radius: 20px; box-shadow: 0 1px 2px rgba(76, 48, 160, 0.06), 0 12px 32px rgba(76, 48, 160, 0.08); }
.btn-action { border-radius: 14px; box-shadow: 0 6px 16px rgba(108, 71, 232, 0.28); }
.btn-action:disabled { box-shadow: none; }
.btn-secondary { border-radius: 14px; }
main.main-viewport { max-width: 760px; }

/* ---------- Phone handoff banner ---------- */
.handoff-note { display: none; align-items: center; gap: 0.6rem; background: rgba(18, 183, 106, 0.1); color: #067647; padding: 0.8rem 1rem; border-radius: 14px; font-size: 0.9rem; margin-bottom: 1rem; }
.handoff-note.show { display: flex; }
.handoff-note.bad { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }
body.is-handoff #pane-personal, body.is-handoff #pane-device { display: none !important; }
body.is-handoff #pane-docs .btn-back, body.is-handoff #pane-docs [data-action="switchTab"][data-arg="personal"] { display: none; }
body.handoff-expired .page-pane { display: none !important; }
body.handoff-expired .kyc-steps { display: none; }

/* ---------- Device choice and QR ---------- */
.dev-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 720px) { .dev-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.dev-card { position: relative; background: var(--card-bg); border-radius: 20px; padding: 1.4rem; box-shadow: 0 1px 2px rgba(76, 48, 160, 0.06), 0 12px 32px rgba(76, 48, 160, 0.08); display: flex; flex-direction: column; gap: 0.6rem; }
.dev-card-main { outline: 2px solid var(--primary); }
.dev-card h3 { font-size: 1.1rem; font-weight: 800; }
.dev-card p { color: var(--text-muted); font-size: 0.92rem; }
.dev-card .btn-action, .dev-card .btn-secondary { align-self: flex-start; margin-top: 0.4rem; }
.dev-badge { position: absolute; top: -12px; right: 16px; background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; }
.dev-ico { width: 52px; height: 52px; border-radius: 16px; background: #ebe5fb; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.dev-ico-alt { background: var(--field-bg); }
.dev-qr-area { display: none; flex-direction: column; align-items: center; gap: 0.7rem; padding-top: 0.8rem; margin-top: 0.4rem; border-top: 1px dashed var(--border-color); }
#pane-device.qr-open .dev-qr-area { display: flex; }
#pane-device.qr-open #dev-phone { display: none; }
.dev-qr-wrap { position: relative; width: 224px; max-width: 100%; padding: 12px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--border-color), 0 10px 28px rgba(76, 48, 160, 0.14); }
.dev-qr svg { display: block; width: 100%; height: auto; }
.dev-qr-stale { display: none; position: absolute; inset: 0; border-radius: 18px; background: rgba(255, 255, 255, 0.92); align-items: center; justify-content: center; font-size: 2rem; color: var(--text-muted); }
.dev-qr-wrap.stale .dev-qr-stale { display: flex; }
.dev-status { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--field-bg); font-size: 0.88rem; font-weight: 600; color: var(--text); text-align: center; }
.dev-status.ok { background: rgba(18, 183, 106, 0.12); color: #067647; }
.dev-status.bad { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }
.dev-timer { font-size: 0.8rem; color: var(--text-muted); }
.dev-linkrow { display: flex; gap: 0.5rem; width: 100%; }
.dev-linkrow input { min-height: 44px; font-size: 0.8rem; }
.dev-linkrow .btn-secondary { min-height: 44px; padding: 0.5rem 0.9rem; white-space: nowrap; font-size: 0.85rem; }
@media (max-width: 767px) { .dev-card .btn-action, .dev-card .btn-secondary { align-self: stretch; } .dev-linkrow .btn-secondary { width: auto !important; } }

/* ---------- Face check intro (screen before the full-screen camera) ---------- */
.kf-intro, .kf-consent-hint { display: none; }
body.kf-ok .kf-intro { display: block; text-align: center; padding: 0.4rem 0 0.8rem; }
body.kf-ok .cam-viewport { display: none; }
body.kf-ok #selfie-error { display: none !important; }
.kf-intro-art { width: 110px; margin: 0 auto 0.8rem; }
.kf-intro-art svg { width: 100%; height: auto; }
.kf-intro-art .a { fill: #f4f1fd; stroke: var(--primary); stroke-width: 3; stroke-dasharray: 8 6; animation: kfDash 14s linear infinite; }
.kf-intro-art .b { fill: var(--primary); }
.kf-intro-art .c { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; }
@keyframes kfDash { to { stroke-dashoffset: -200; } }
.kf-intro h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.8rem; }
.kf-intro-list { list-style: none; display: grid; gap: 0.55rem; text-align: left; max-width: 420px; margin: 0 auto; }
.kf-intro-list li { display: flex; gap: 0.7rem; align-items: flex-start; background: var(--field-bg); border-radius: 12px; padding: 0.7rem 0.9rem; font-size: 0.9rem; color: var(--text); }
.kf-intro-list i { color: var(--primary); margin-top: 0.15rem; width: 1.1rem; text-align: center; }
.kf-consent-hint.show { display: block; color: #b45309; font-size: 0.85rem; font-weight: 600; margin: -0.4rem 0 0.6rem; }

/* ---------- Shared full-screen camera shell ---------- */
.kf-overlay, .dc2 { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 8, 25, 0.78); display: flex; align-items: center; justify-content: center; animation: kfIn 0.22s ease; -webkit-tap-highlight-color: transparent; }
.kf-overlay.kf-leave, .dc2.dc2-leave { opacity: 0; transition: opacity 0.2s ease; }
@keyframes kfIn { from { opacity: 0; } to { opacity: 1; } }
.kf-panel, .dc2-panel { width: 100%; height: 100vh; height: 100dvh; background: #0f0b24; color: #fff; display: flex; flex-direction: column; overflow: hidden; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 700px) {
  .kf-panel, .dc2-panel { width: min(500px, 94vw); height: min(94vh, 800px); border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
}
.kf-top, .dc2-top { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 12px 6px; }
.kf-close, .dc2-close { width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.05rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.kf-close:hover, .dc2-close:hover { background: rgba(255, 255, 255, 0.2); }
.kf-spacer, .dc2-spacer { width: 42px; }
.kf-brand, .dc2-title { font-weight: 700; font-size: 0.98rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.kf-brand i { color: #b9a6ff; }

/* ---------- Face check ---------- */
.kf-msg, .dc2-msg { text-align: center; padding: 4px 22px 10px; min-height: 86px; }
.kf-title, .dc2-h { font-size: 1.32rem; font-weight: 800; line-height: 1.25; }
.kf-sub, .dc2-s { margin-top: 0.25rem; font-size: 0.95rem; opacity: 0.72; }
.kf-overlay[data-kind="warn"] .kf-title { color: #fbbf24; }
.kf-overlay[data-kind="good"] .kf-title, .kf-overlay[data-kind="success"] .kf-title { color: #4ade80; }
.kf-overlay[data-kind="error"] .kf-title { color: #fca5a5; }
.kf-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; }
.kf-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.kf-svg { position: absolute; inset: 0; pointer-events: none; }
.kf-dim { fill: rgba(15, 11, 36, 0.84); }
.kf-oval { fill: none; stroke: rgba(255, 255, 255, 0.9); stroke-width: 3; transition: stroke 0.2s; }
.kf-overlay[data-oval="warn"] .kf-oval { stroke: #f59e0b; }
.kf-overlay[data-oval="good"] .kf-oval { stroke: #22c55e; }
.kf-track { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 7; stroke-linecap: round; }
.kf-arc { fill: none; stroke: #b9a6ff; stroke-width: 7; stroke-linecap: round; }
.kf-arc.done { stroke: #22c55e; }
.kf-arrow { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); color: #fff; font-size: 1.4rem; display: none; align-items: center; justify-content: center; }
.kf-arrow-l { left: 10px; } .kf-arrow-r { right: 10px; }
.kf-arrow.on { display: flex; }
.kf-arrow-l.on { animation: kfNudgeL 1s ease-in-out infinite; }
.kf-arrow-r.on { animation: kfNudgeR 1s ease-in-out infinite; }
@keyframes kfNudgeL { 50% { transform: translateX(-9px); } }
@keyframes kfNudgeR { 50% { transform: translateX(9px); } }
.kf-state { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.5); opacity: 0; pointer-events: none; }
.kf-state-icon { width: 84px; height: 84px; border-radius: 50%; background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; box-shadow: 0 10px 30px rgba(34, 197, 94, 0.5); }
.kf-state.show { animation: kfPop 0.75s ease forwards; }
.kf-state.show.keep { animation: kfPopKeep 0.3s ease forwards; }
.kf-state.show.keep .kf-state-icon { background: rgba(15, 11, 36, 0.72); box-shadow: none; }
.kf-state.show.big .kf-state-icon { width: 104px; height: 104px; font-size: 2.8rem; }
@keyframes kfPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
@keyframes kfPopKeep { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.kf-state.show.big { animation: kfPopKeep 0.3s ease forwards; }
.kf-spin { width: 44px; height: 44px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, 0.25); border-top-color: #b9a6ff; animation: kycspin 0.9s linear infinite; }
.kf-foot { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 92px; }
.kf-dots { display: inline-flex; gap: 8px; }
.kf-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); transition: all 0.3s; }
.kf-dots i.now { width: 28px; border-radius: 6px; background: #fff; }
.kf-dots i.done { background: #22c55e; }
.kf-tip { font-size: 0.82rem; opacity: 0.6; text-align: center; }
.kf-btn { background: var(--primary); color: #fff; border: none; border-radius: 14px; min-height: 48px; padding: 0.7rem 1.6rem; font-size: 1rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; }
.kf-btn:hover { background: var(--primary-hover); }
.kf-btn[hidden], .kf-tip[hidden], .dc2-btn[hidden] { display: none; }

/* ---------- Document camera ---------- */
.dc2-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; }
.dc2-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none !important; }
.dc2-svg { position: absolute; inset: 0; pointer-events: none; }
.dc2-dim { fill: rgba(15, 11, 36, 0.78); }
.dc2-corners { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; transition: stroke 0.2s; }
.dc2.good .dc2-corners, .dc2.ok .dc2-corners { stroke: #22c55e; }
.dc2-sil { fill: rgba(255, 255, 255, 0.2); transition: opacity 0.25s; }
.dc2.good .dc2-sil, .dc2.ok .dc2-sil { opacity: 0; }
.dc2-scan { position: absolute; overflow: hidden; border-radius: 16px; pointer-events: none; display: none; }
.dc2.good .dc2-scan { display: block; }
.dc2-scan::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, #22c55e, transparent); animation: dc2Scan 1.4s ease-in-out infinite; }
@keyframes dc2Scan { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }
.dc2.good .dc2-h { color: #4ade80; }
.dc2-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 14px 4px; }
.dc2-chips li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); transition: all 0.2s; }
.dc2-chips li.ok { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.dc2-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 18px 18px; gap: 10px; }
.dc2-shutter { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 5px; cursor: pointer; }
.dc2-shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.dc2-shutter:active span { transform: scale(0.88); }
.dc2-upload { justify-self: end; background: transparent; border: none; color: #fff; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; gap: 0.25rem; opacity: 0.85; }
.dc2-upload i { font-size: 1.3rem; }
.dc2-torch { justify-self: start; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.1rem; cursor: pointer; }
.dc2-torch.on { background: #fbbf24; color: #000; }
.dc2-torch[hidden] { display: block; visibility: hidden; }

/* ---------- Photo review ---------- */
.dc2-review { z-index: 2100; }
.dc2-review .dc2-top { justify-content: center; }
.dc2-photo { flex: 1; min-height: 0; margin: 4px 16px 6px; border-radius: 16px; background: #000; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.dc2-photo img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.25s ease; }
.dc2-photo.zoom { cursor: zoom-out; }
.dc2-photo.zoom img { transform: scale(2.4); }
.dc2-checks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 6px 14px; }
.dc2-checks li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 999px; }
.dc2-checks li.ok { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.dc2-checks li.bad { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.dc2-poor .dc2-h { color: #fbbf24; }
.dc2-actions { display: grid; gap: 10px; padding: 8px 18px 20px; }
.dc2-btn { min-height: 52px; border-radius: 14px; border: none; font-size: 1.02rem; font-weight: 700; cursor: pointer; background: var(--primary); color: #fff; }
.dc2-btn:disabled { opacity: 0.5; }
.dc2-btn.dc2-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .kf-arrow.on, .dc2-scan::after, .kf-intro-art .a, .kf-state.show { animation: none !important; }
}

/* ---------- Centred layout on every page ---------- */
.site-header .header-bar { justify-content: center; max-width: 760px; position: relative; }
.brand-secure { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }
.page-pill { display: flex; width: fit-content; margin: 0 auto 1.1rem; }
.pane-header { text-align: center; max-width: 580px; margin-left: auto; margin-right: auto; }
#pane-docs .pane-header { max-width: none; }
.page-pane > .card > .btn-action[data-action="validatePersonalStep"] { display: flex; margin: 0.4rem auto 0; }
#pane-docs .card > div[style*="justify-content"] { justify-content: center !important; }
#pane-selfie .card > div[style*="display:flex"] { justify-content: center; }
.cam-back { display: flex; justify-content: center; }
.btn-back { margin-left: 0; }
.handoff-note { justify-content: center; text-align: center; }
.field-hint { justify-content: center; text-align: center; }

/* ---------- Device choice: one centred column, QR created automatically ---------- */
#pane-device .dev-card-main { max-width: 440px; margin: 0 auto; align-items: center; outline: none; padding: 1.6rem 1.4rem; }
#pane-device .dev-qr-area { display: flex; width: 100%; border-top: 0; margin-top: 0; padding-top: 0; }
.dev-qr { min-height: 200px; }
.dev-loading { display: flex; align-items: center; justify-content: center; height: 200px; color: var(--primary); font-size: 3rem; }
.dev-spin { width: 44px; height: 44px; border-radius: 50%; border: 5px solid var(--field-bg); border-top-color: var(--primary); animation: kycspin 0.9s linear infinite; }
.dev-or { display: flex; align-items: center; gap: 0.8rem; max-width: 440px; margin: 1.2rem auto; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.dev-or::before, .dev-or::after { content: ""; flex: 1; height: 1px; background: var(--border-color); }
.dev-alt { max-width: 440px; margin: 0 auto 1rem; text-align: center; }
.dev-alt .btn-secondary { width: 100%; min-height: 54px; font-size: 1.02rem; }
.dev-alt p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.6rem; }
.btn-secondary[hidden], #dev-newcode[hidden] { display: none; }

/* ---------- To the point: no explanatory text ---------- */
.pane-header p, .page-pill, .doc-note, .id-card-sub, .dev-alt p, .kf-tip, .kf-sub, .dc2-s, .res-sub, .res-foot, .kf-consent-hint { display: none !important; }
.dc2-poor .dc2-s { display: block !important; }
.handoff-note:not(.bad) { display: none !important; }
.pane-header { margin-top: 0.4rem; }
.consent-row { display: flex; align-items: center; gap: 0.6rem; margin: 0.4rem 0 1.1rem; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); cursor: pointer; }
.consent-row input { flex-shrink: 0; }
.consent-row.error-row { color: var(--danger); }

/* ---------- Front card turns over to the back card ---------- */
#pane-docs .doc-swipe { perspective: 1400px; overflow: visible; }
#pane-docs .upload-zone { display: grid !important; width: 100% !important; transform: none !important; gap: 0 !important; }
#pane-docs .upload-zone .upload-box { grid-area: 1 / 1; flex: none !important; margin: 0 !important; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 0.8s cubic-bezier(0.45, 0.05, 0.2, 1); will-change: transform; }
#pane-docs .upload-zone #box-back { transform: rotateY(180deg); }
#pane-docs[data-step="back"] .upload-zone #box-front, #pane-docs[data-step="done"] .upload-zone #box-front { transform: rotateY(-180deg); pointer-events: none; }
#pane-docs[data-step="back"] .upload-zone #box-back, #pane-docs[data-step="done"] .upload-zone #box-back { transform: rotateY(0deg); }
#pane-docs[data-noback] .upload-zone #box-back { display: none; }
#pane-docs .id-card img.preview-thumb[src] { display: block !important; position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 14px; object-fit: cover; }

/* Full-screen version while the camera is about to open for the back side */
.dc2-flip { background: #0f0b24; }
.flip-stage { perspective: 1400px; width: min(86vw, 420px); aspect-ratio: 1.586; }
.flip-card { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.95s cubic-bezier(0.45, 0.05, 0.2, 1); }
.dc2-flip.go .flip-card { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.flip-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip-back { transform: rotateY(180deg); background: #f4f1fd; display: flex; align-items: center; justify-content: center; padding: 8%; }
.flip-back svg { width: 100%; height: auto; fill: rgba(108, 71, 232, 0.35); }
@media (prefers-reduced-motion: reduce) { .flip-card, #pane-docs .upload-zone .upload-box { transition-duration: 0.01s; } }

/* ---------- Card camera: the shutter is enabled only when the card is clear ---------- */
.dc2-shutter:disabled { opacity: 0.35; cursor: not-allowed; }
.dc2-shutter:disabled span { background: rgba(255, 255, 255, 0.5); }
.dc2.ready .dc2-shutter { border-color: #22c55e; animation: dc2Ready 1.2s ease-in-out infinite; }
.dc2.ready .dc2-shutter span { background: #22c55e; }
@keyframes dc2Ready { 50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.25); } }
@media (prefers-reduced-motion: reduce) { .dc2.ready .dc2-shutter { animation: none; } }
