.aym-face-access{padding:24px;margin:24px 0;max-width:100%;border:1px solid var(--aym-face-line);border-radius:16px;background:linear-gradient(135deg,#fff,var(--aym-face-surface));color:var(--aym-face-text);font-family:inherit;font-size:.9rem;line-height:1.65;box-shadow:inset 0 1px 0 #ffffffcc;box-sizing:border-box}
.aym-face-access *{box-sizing:border-box}
.aym-face-access header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.aym-face-access header>div>span{font-size:10px;letter-spacing:.14em;font-weight:700;color:var(--aym-face-muted)}
.aym-face-access h2{margin:3px 0;font-size:1.1rem;line-height:1.3;font-weight:800;color:var(--aym-face-heading)}
.aym-face-access p{margin:12px 0}
.fa-badge{font-size:11px;font-weight:700;background:var(--aym-face-soft);color:var(--aym-face-heading);padding:6px 10px;border-radius:20px}
.fa-state{font-weight:600}
.fa-camera{position:relative;isolation:isolate;aspect-ratio:4/3;background:radial-gradient(ellipse at 50% 35%,#194a7e,#0d2247);border:1px solid var(--aym-face-line);border-radius:20px;overflow:hidden;max-width:480px;margin:16px auto}
.fa-camera video{display:block;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
/* Previous view stays readable while CSS/JS and the PHP partial are uploaded. */
.fa-camera>span{position:absolute;bottom:0;left:0;right:0;background:rgba(13,34,71,.88);color:#fff;padding:7px;text-align:center;font-size:11px}
.fa-guide-mask{position:absolute;left:28%;top:4%;width:44%;height:78%;border-radius:50%;overflow:hidden;box-shadow:0 0 0 600px rgba(4,24,55,.46);pointer-events:none}
.fa-guide-ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none}
.fa-guide-ring path{vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.fa-guide-track{stroke:#d4eaff;stroke-width:2;opacity:.85}
.fa-guide-progress{stroke:#70baff;stroke-width:4;stroke-dasharray:var(--fa-scan-progress,0) 100;transition:stroke-dasharray .25s ease,stroke .2s ease}
.aym-face-access[data-scan-count="1"]{--fa-scan-progress:33.333}
.aym-face-access[data-scan-count="2"]{--fa-scan-progress:66.667}
.aym-face-access[data-scan-count="3"]{--fa-scan-progress:100}
.fa-scan-line{display:none;position:absolute;top:4%;left:6%;right:6%;height:2px;background:linear-gradient(90deg,transparent,#c0e4ff,transparent);box-shadow:0 0 18px 5px rgba(112,186,255,.35)}
.aym-face-access[data-scan-state=ready] .fa-guide-track{animation:fa-guide-breathe 2.4s ease-in-out infinite}
.aym-face-access[data-scan-state=capturing] .fa-scan-line{display:block;animation:fa-guide-sweep 1.1s ease-in-out infinite alternate}
.aym-face-access[data-scan-state=verifying] .fa-guide-progress,.aym-face-access[data-scan-state=preparing] .fa-guide-progress{stroke-dasharray:18 82;animation:fa-guide-verify 1.5s linear infinite}
.aym-face-access[data-scan-state=error] .fa-guide-track{stroke:#ffb18e}
.aym-face-access[data-scan-state=error] .fa-guide-progress{stroke-dasharray:0 100}
.fa-camera-caption{position:absolute;bottom:0;left:0;right:0;display:grid;gap:2px;min-height:18%;padding:8px 10px;background:linear-gradient(0deg,rgba(6,25,54,.98),rgba(6,25,54,.8));color:#fff;text-align:center;font-size:11px;line-height:1.45}
.fa-camera-caption strong{font-size:12px;color:#fff}
.fa-camera-caption span{color:#d6e9ff}
.fa-scan-success{display:none;position:absolute;inset:0;align-items:center;justify-content:center}
.fa-scan-success svg{width:72px;height:72px;padding:12px;border:1px solid #b9dcff;border-radius:50%;background:var(--aym-face-button-fill);color:#fff;box-shadow:0 0 0 8px rgba(112,186,255,.12);fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.aym-face-access[data-scan-state=success] .fa-camera video{visibility:hidden}
.aym-face-access[data-scan-state=success] .fa-guide-progress{stroke-dasharray:100 0;stroke:#a3d5ff}
.aym-face-access[data-scan-state=success] .fa-scan-success{display:flex;animation:fa-guide-confirm .3s ease-out}
.fa-capture-progress{max-width:480px;margin:12px auto 16px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--aym-face-muted);font-size:12px;line-height:1.5;text-align:left}
.fa-capture-steps{display:flex;gap:5px;flex-shrink:0}
.fa-capture-steps span{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--aym-face-input-line);border-radius:50%;background:#fff;color:var(--aym-face-muted);font-size:11px;font-weight:800;transition:background .2s ease,color .2s ease}
.aym-face-access[data-scan-count="1"] .fa-capture-steps span:nth-child(1),.aym-face-access[data-scan-count="2"] .fa-capture-steps span:nth-child(-n+2),.aym-face-access[data-scan-count="3"] .fa-capture-steps span{background:var(--aym-face-button-fill);border-color:var(--aym-face-primary);color:#fff}
.fa-assistive{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@keyframes fa-guide-breathe{50%{opacity:.5}}
@keyframes fa-guide-sweep{to{top:94%}}
@keyframes fa-guide-verify{to{stroke-dashoffset:-100}}
@keyframes fa-guide-confirm{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}
.fa-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}
.fa-buttons button,.fa-buttons a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 16px;border-radius:11px;border:1px solid var(--aym-face-primary);background:var(--aym-face-button-fill);color:#fff;box-shadow:0 8px 18px rgba(8,116,242,.16);cursor:pointer;font:inherit;font-size:.85rem;font-weight:700;line-height:1.4;white-space:normal;text-decoration:none;text-align:center}
.fa-buttons .fa-secondary{background:#fff;color:var(--aym-face-heading);border-color:#9bc5f6;box-shadow:none}
.fa-buttons button:hover:not(:disabled),.fa-buttons a:hover{background:var(--aym-face-primary-hover);color:#fff}
.fa-buttons .fa-secondary:hover:not(:disabled){background:var(--aym-face-soft);color:var(--aym-face-heading)}
.fa-buttons button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.fa-field{display:block;font-size:.9rem;font-weight:600;color:#1c4a88;margin:16px 0}
.fa-field input{display:block;width:100%;min-width:0;min-height:43px;padding:11px 16px;margin-top:7px;border:1px solid var(--aym-face-input-line);border-radius:10px;background:#fff;color:var(--aym-face-text);font:inherit}
.fa-field input::placeholder{color:var(--aym-face-muted);opacity:1}
.fa-field input:focus{outline:0;border-color:var(--aym-face-focus);box-shadow:0 0 0 4px var(--aym-face-ring)}
.fa-consent{display:flex;align-items:flex-start;gap:9px;font-size:.8rem;line-height:1.6}
.fa-consent input{width:15px;height:15px;margin:4px 0 0;accent-color:var(--aym-face-primary);flex-shrink:0}
.fa-message{background:var(--aym-face-soft);color:#1c4a88;padding:12px;border:1px solid var(--aym-face-line);border-radius:10px;overflow-wrap:anywhere}
.fa-message.is-error{background:#fff0eb;border-color:#f0c9bb;color:#8d3a26}
.fa-footnote{font-size:.78rem;color:var(--aym-face-muted)}
.aym-face-access :is(button,a,input):focus-visible,.fa-mode-choice button:focus-visible{outline:3px solid var(--aym-face-focus);outline-offset:3px}
.aym-face-access [hidden],[data-fa-password-section][hidden],[data-face-auth][hidden],[data-fa-options][hidden]{display:none!important}
.aym-face-access[data-mode=login]{margin:0 24px 24px;padding:18px;font-size:13px}
/* The desktop card extends into the hero; keep scrolling on the page so it is not clipped by the panel. */
.mangoo-face-enabled .mangoo-login-panel-inner{padding-top:24px;padding-bottom:24px}
.fa-mode-choice{display:flex;gap:8px}
.fa-mode-choice button{flex:1;min-height:44px;border:1px solid var(--aym-face-input-line);border-radius:10px;padding:10px 8px;background:#fff;color:var(--aym-face-heading);font:inherit;font-size:12px;font-weight:700;line-height:1.4;cursor:pointer}
.fa-mode-choice button:hover{background:var(--aym-face-soft)}
.fa-mode-choice button[aria-pressed=true]{background:var(--aym-face-button-fill);color:#fff;border-color:var(--aym-face-primary)}
@media(max-width:600px){.aym-face-access{padding:18px}.fa-buttons{flex-direction:column;align-items:stretch}.fa-buttons button,.fa-buttons a{width:100%}.aym-face-access[data-mode=login]{margin:0 16px 16px;padding:16px}.fa-camera{aspect-ratio:1}.fa-guide-mask{left:20%;width:60%}.fa-camera-caption{font-size:10px}.fa-camera-caption strong{font-size:11px}.fa-capture-progress{font-size:11px;gap:8px}.fa-capture-steps span{width:23px;height:23px}}
@media(prefers-reduced-motion:reduce){.aym-face-access .fa-guide-track,.aym-face-access .fa-guide-progress,.aym-face-access .fa-scan-line,.aym-face-access .fa-scan-success{animation:none!important}.fa-guide-progress,.fa-capture-steps span{transition:none}.aym-face-access[data-scan-state=capturing] .fa-scan-line{top:50%}}
