.a8ah-face-admin,.a8ah-face-user-settings{display:grid;gap:16px}
.a8ah-face-engine-state{display:grid;gap:6px;margin:14px 0;padding:14px 16px;border:1px solid var(--a8ah-border,#dfe8e1);border-radius:14px;background:var(--a8ah-surface-soft,#f7faf7);color:var(--a8ah-text,#1d2a20)}
.a8ah-face-engine-state strong{font-size:14px}.a8ah-face-engine-state span,.a8ah-face-engine-state small{font-size:12px;color:var(--a8ah-text-soft,#66756a);line-height:1.55}
.a8ah-face-toggle{display:flex;align-items:flex-start;gap:11px;padding:13px 14px;border:1px solid var(--a8ah-border,#dfe8e1);border-radius:13px;background:var(--a8ah-surface,#fff);cursor:pointer}.a8ah-face-toggle input,.a8ah-face-consent input{flex:0 0 auto;margin-top:3px;accent-color:var(--a8ah-accent,#16823e)}.a8ah-face-toggle span{display:grid;gap:4px}.a8ah-face-toggle strong{font-size:13px;color:var(--a8ah-text,#1d2a20)}.a8ah-face-toggle small,.a8ah-face-risk-note,.a8ah-face-user-settings p{font-size:12px;line-height:1.6;color:var(--a8ah-text-soft,#66756a)}
.a8ah-face-consent{display:flex;align-items:flex-start;gap:9px;padding:12px 14px;border:1px solid var(--a8ah-border,#dfe8e1);border-radius:12px;font-size:12px;line-height:1.55;color:var(--a8ah-text-soft,#536359)}
.a8ah-face-risk-note{padding:12px 14px;border-left:3px solid #d69b33;background:rgba(214,155,51,.08);border-radius:0 10px 10px 0}
.a8ah-face-notice{padding:11px 13px;border-radius:11px;font-size:12px;line-height:1.55}.a8ah-face-notice.is-success{background:#edf9ef;color:#176334}.a8ah-face-notice.is-error{background:#fff4ed;color:#91451e}
.a8ah-face-login{display:grid;gap:10px;padding:15px 0;border-top:1px solid rgba(120,140,125,.22)}.a8ah-face-login h4{margin:0;font-size:14px}.a8ah-face-login>p{margin:0;color:var(--a8ah-text-soft,#66756a);font-size:12px;line-height:1.55}.a8ah-face-login>label{display:grid;gap:6px;font-size:12px;font-weight:650}.a8ah-face-login input,.a8ah-face-totp-row input{width:100%;min-height:42px;padding:9px 12px;border:1px solid var(--a8ah-border,#dce6de);border-radius:10px;background:var(--a8ah-surface,#fff);color:var(--a8ah-text,#17241b);font:inherit}
.a8ah-face-totp-row[hidden],.a8ah-face-camera[hidden]{display:none!important}.a8ah-face-camera{display:grid;gap:11px;margin-top:13px;padding:14px;border:1px solid var(--a8ah-border,#dce6de);border-radius:16px;background:var(--a8ah-surface-soft,#f7faf7)}.a8ah-face-camera-stage{position:relative;overflow:hidden;width:min(100%,420px);aspect-ratio:4/3;margin:0 auto;border-radius:14px;background:#101713}.a8ah-face-camera-stage video{display:block;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.a8ah-face-camera-stage:after{content:"";position:absolute;inset:9% 18%;border:2px solid rgba(177,240,190,.85);border-radius:48% 48% 44% 44%;pointer-events:none;box-shadow:0 0 0 999px rgba(0,0,0,.12)}.a8ah-face-camera>p{margin:0;text-align:center;color:var(--a8ah-text-soft,#66756a);font-size:12px;line-height:1.5}.a8ah-face-camera-actions{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap}.a8ah-face-camera-actions button{min-height:40px}.a8ah-face-camera-actions button:disabled{opacity:.6;cursor:wait}.a8ah-face-message{min-height:18px;margin:0;color:var(--a8ah-text-soft,#66756a);font-size:12px;line-height:1.5}.a8ah-face-message.is-error{color:#b42318}.a8ah-face-message.is-success{color:#16733c}
.a8ah-face-lock-option{display:grid;gap:10px;margin-top:12px}.a8ah-face-lock-button{display:flex;align-items:center;gap:12px;width:100%;padding:13px 15px;border:1px solid #ccebd4;border-radius:15px;background:linear-gradient(135deg,#f1fff4,#fff);color:#173a25;text-align:left;cursor:pointer}.a8ah-face-lock-button>span:first-child{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#dff7e5;color:#13833e;font-size:25px}.a8ah-face-lock-button>span:last-child{display:grid;gap:4px}.a8ah-face-lock-button strong{font-size:13px}.a8ah-face-lock-button small{font-size:11px;line-height:1.4;color:#66776b}
.a8ah-face-lock-option .a8ah-face-totp-row{display:grid;gap:6px;text-align:left;font-size:12px;font-weight:700}
.a8ah-session-lock-alternatives{display:grid;gap:4px;margin-top:13px}.a8ah-session-lock-alternatives>span{font-size:11px;color:#718075}.a8ah-session-lock-alternatives .a8ah-session-lock-signout{margin:0}
@media(prefers-color-scheme:dark){.a8ah-face-engine-state,.a8ah-face-camera{border-color:#314638;background:#152219;color:#e7f1e9}.a8ah-face-engine-state span,.a8ah-face-engine-state small,.a8ah-face-toggle small,.a8ah-face-user-settings p,.a8ah-face-login>p,.a8ah-face-camera>p{color:#a9b9ad}.a8ah-face-toggle,.a8ah-face-consent{border-color:#314638;background:#142019}.a8ah-face-toggle strong{color:#e7f1e9}.a8ah-face-login input,.a8ah-face-totp-row input{border-color:#3b5040;background:#17251b;color:#eef8f0}.a8ah-face-notice.is-success{background:#173522;color:#b2e8bf}.a8ah-face-notice.is-error{background:#3a261b;color:#f5c9a9}.a8ah-face-lock-button{border-color:#315d3c;background:linear-gradient(135deg,#152d1c,#18241b);color:#effaf0}.a8ah-face-lock-button small{color:#a9b9ad}}
@media(max-width:560px){.a8ah-face-camera{padding:10px}.a8ah-face-camera-actions{display:grid;grid-template-columns:1fr 1fr}.a8ah-face-camera-actions button{width:100%}}

/* Guided enrollment is a true camera-only step; no second-page scrolling. */
.a8ah-face-user-settings.is-camera-step [data-a8ah-face-user-intro]{display:none!important}
.a8ah-face-user-settings.is-camera-step .a8ah-face-camera{display:grid!important;margin:0;padding:12px;border:0;border-radius:0;background:transparent;min-height:0}
.a8ah-face-user-settings.is-camera-step [data-a8ah-face-capture]{display:none!important}
.a8ah-face-progress{display:grid;gap:8px;width:100%;max-width:520px;margin:0 auto 2px}
.a8ah-face-progress>span{font-size:12px;font-weight:750;text-align:center;color:var(--a8ah-text,#1d2a20)}
.a8ah-face-progress-track{height:5px;overflow:hidden;border-radius:999px;background:var(--a8ah-border,#dce6de)}
.a8ah-face-progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:var(--a8ah-accent,#16823e);transition:width .25s ease}
.a8ah-face-camera-hint{font-size:11px!important;color:var(--a8ah-text-soft,#66756a)!important}
.a8ah-face-toggle-feedback{margin:-10px 0 0 30px;font-size:11px;color:var(--a8ah-text-soft,#66756a)}
.a8ah-face-toggle-feedback.is-success{color:#16803e}.a8ah-face-toggle-feedback.is-error{color:#b42318}
.a8ah-face-user-settings.is-camera-step .a8ah-face-camera-stage{width:min(100%,520px);aspect-ratio:4/3;max-height:60vh}
.a8ah-face-user-settings.is-camera-step .a8ah-face-camera-stage video{object-fit:cover}
@media(max-width:600px){.a8ah-face-user-settings.is-camera-step{gap:8px}.a8ah-face-user-settings.is-camera-step .a8ah-face-camera{padding:4px 0}.a8ah-face-user-settings.is-camera-step .a8ah-face-camera-stage{width:100%;aspect-ratio:3/4;max-height:58dvh}.a8ah-face-progress>span{font-size:11px}.a8ah-face-camera-hint{padding:0 8px}}

/* Randomized face challenge prompts: make the instruction impossible to miss. */
.a8ah-face-challenge-cue{display:flex;align-items:center;justify-content:center;gap:14px;width:min(100%,520px);min-height:76px;margin:2px auto;padding:13px 18px;border:1px solid var(--a8ah-border,#dce6de);border-radius:16px;background:var(--a8ah-surface,#fff);color:var(--a8ah-text,#1d2a20);box-shadow:0 8px 24px rgba(22,38,25,.06)}
.a8ah-face-challenge-cue>span{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:14px;background:var(--a8ah-accent-soft,#eaf5dd);color:var(--a8ah-accent-strong,#387b24);font-size:31px;font-weight:850;line-height:1}
.a8ah-face-challenge-cue>strong{font-size:clamp(15px,2.5vw,19px);line-height:1.25;text-align:left}
.a8ah-face-camera-actions{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap}
.a8ah-face-camera-actions [data-a8ah-face-cancel]{border-color:#e6c8c2;background:#fff8f6;color:#9a3f32}
.a8ah-face-camera-actions [data-a8ah-face-cancel]:hover{background:#fff0ec}
.a8ah-face-camera-actions [data-a8ah-face-repeat]{border-color:var(--a8ah-border,#dce6de);background:var(--a8ah-surface,#fff);color:var(--a8ah-text,#1d2a20)}
.a8ah-face-camera-actions button:disabled{opacity:.55;cursor:not-allowed}
.a8ah-face-user-settings.is-camera-step .a8ah-face-camera{width:100%;max-width:720px;margin:0 auto;padding:10px 14px 18px}
.a8ah-face-user-settings.is-camera-step .a8ah-face-camera-stage{width:min(100%,520px);max-height:52dvh}
@media(max-width:600px){
 .a8ah-face-challenge-cue{min-height:68px;gap:11px;padding:11px 13px;border-radius:14px}
 .a8ah-face-challenge-cue>span{flex-basis:42px;width:42px;height:42px;border-radius:12px;font-size:28px}
 .a8ah-face-challenge-cue>strong{text-align:left;font-size:16px}
 .a8ah-face-camera-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .a8ah-face-camera-actions button{min-height:46px;width:100%}
 .a8ah-face-user-settings.is-camera-step .a8ah-face-camera-stage{aspect-ratio:4/3;max-height:48dvh}
}
@media(prefers-color-scheme:dark){
 .a8ah-face-challenge-cue{border-color:#314638;background:#142019;color:#e7f1e9}
 .a8ah-face-challenge-cue>span{background:#223d29;color:#b8e5a1}
 .a8ah-face-camera-actions [data-a8ah-face-cancel]{border-color:#694039;background:#30201e;color:#ffd3ca}
 .a8ah-face-camera-actions [data-a8ah-face-repeat]{border-color:#3b5040;background:#17251b;color:#eef8f0}
}


/* 0.28.38: facial verification on/off preferences use the same switch language as workspace theme. */
.a8ah-face-toggle{position:relative;align-items:center;min-height:66px;padding:12px 72px 12px 14px;box-sizing:border-box}
.a8ah-face-toggle input[type=checkbox]{position:absolute!important;right:14px;top:50%;width:1px!important;height:1px!important;margin:0!important;opacity:0!important;pointer-events:none}
.a8ah-face-toggle:before{content:"";position:absolute;right:13px;top:50%;width:44px;height:26px;margin-top:-13px;border-radius:99px;background:#c6cec5;transition:background .18s ease}
.a8ah-face-toggle:after{content:"";position:absolute;right:35px;top:50%;width:18px;height:18px;margin-top:-9px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:transform .18s ease}
.a8ah-face-toggle:has(input:checked):before{background:var(--a8ah-accent,#16823e)}
.a8ah-face-toggle:has(input:checked):after{transform:translateX(18px)}
.a8ah-face-toggle:has(input:focus-visible){outline:3px solid rgba(22,130,62,.22);outline-offset:2px}

/* The final verification request has its own cancel control after the camera is released. */
.a8ah-face-pending-cancel{display:block;width:100%;max-width:220px;margin:10px auto 0;min-height:38px;border:1px solid var(--a8ah-border,#dce6de);background:var(--a8ah-surface,#fff);color:var(--a8ah-text,#26342a);font-size:12px}
.a8ah-face-pending-cancel[hidden]{display:none!important}
@media(max-width:600px){.a8ah-face-pending-cancel{max-width:100%;margin-top:8px;min-height:42px}}

/* v0.28.61 — keep the progress and action cue inside the camera frame. */
.a8ah-face-camera-stage{isolation:isolate}
.a8ah-face-camera-stage:after{z-index:1}
.a8ah-face-camera-stage video{position:relative;z-index:0}
.a8ah-face-progress{position:absolute;z-index:3;top:10px;left:11px;right:11px;width:auto;max-width:none;box-sizing:border-box;margin:0;padding:8px 10px;gap:6px;border:1px solid rgba(255,255,255,.14);border-radius:11px;background:rgba(8,15,10,.76);backdrop-filter:blur(8px)}
.a8ah-face-progress>span{color:#fff;text-align:left;font-size:10px;line-height:1.3}
.a8ah-face-progress-track{background:rgba(255,255,255,.22)}
.a8ah-face-progress-track i{background:#b9eb7f}
.a8ah-face-challenge-cue{position:absolute;z-index:3;left:11px;right:11px;bottom:11px;width:auto;max-width:none;min-height:58px;box-sizing:border-box;margin:0;padding:9px 12px;border-color:rgba(255,255,255,.18);border-radius:12px;background:rgba(8,15,10,.78);color:#fff;box-shadow:none;backdrop-filter:blur(8px)}
.a8ah-face-challenge-cue>span{flex-basis:38px;width:38px;height:38px;border-radius:10px;background:rgba(185,235,127,.18);color:#d4f6ae;font-size:24px}
.a8ah-face-challenge-cue>strong{color:#fff;font-size:clamp(13px,2vw,16px)}
.a8ah-face-instruction{min-height:14px!important;margin:0!important;font-size:10px!important;line-height:1.3!important;text-align:center!important}
.a8ah-face-camera .a8ah-face-loading[hidden]{display:none!important}
.a8ah-face-loading{position:absolute;z-index:5;inset:0;display:grid;align-content:center;justify-items:center;gap:12px;box-sizing:border-box;padding:22px;background:rgba(7,13,9,.94);color:#f2faed;text-align:center}
.a8ah-face-loading-mark{width:34px;height:34px;border:3px solid rgba(220,244,207,.22);border-top-color:#b9eb7f;border-radius:50%;animation:a8ah-face-spin .8s linear infinite}
.a8ah-face-loading>strong{font-size:14px;line-height:1.4;color:#fff}
.a8ah-face-loading-track{display:block;position:relative;overflow:hidden;width:min(220px,75%);height:5px;border-radius:99px;background:rgba(255,255,255,.17)}
.a8ah-face-loading-track i{position:absolute;inset:0 auto 0 0;width:38%;border-radius:inherit;background:#b9eb7f;animation:a8ah-face-progress-run 1.2s ease-in-out infinite}
.a8ah-face-loading>small{max-width:260px;color:rgba(245,250,241,.72);font-size:10px;line-height:1.4}
@keyframes a8ah-face-spin{to{transform:rotate(360deg)}}
@keyframes a8ah-face-progress-run{0%{transform:translateX(-110%)}100%{transform:translateX(300%)}}
.a8ah-face-user-settings.is-camera-step .a8ah-face-camera{gap:8px}
.a8ah-face-login.is-camera-step{gap:6px;margin:0;padding:0;border:0}
.a8ah-face-login.is-camera-step>h4,.a8ah-face-login.is-camera-step>p,.a8ah-face-login.is-camera-step>label,.a8ah-face-login.is-camera-step>[data-a8ah-face-login-start]{display:none!important}
.a8ah-face-login.is-camera-step .a8ah-face-camera{display:grid!important;gap:8px;width:100%;max-width:600px;margin:0 auto;padding:0;border:0;background:transparent}
.a8ah-face-login.is-camera-step .a8ah-face-camera-stage{width:min(100%,520px);max-height:56dvh;aspect-ratio:4/3}
.a8ah-face-login.is-camera-step .a8ah-face-camera-actions{gap:8px}
.a8ah-face-login.is-camera-step .a8ah-face-camera-actions button{min-height:40px}
@media(max-width:600px){
 .a8ah-face-progress{top:8px;left:8px;right:8px;padding:7px 9px}
 .a8ah-face-challenge-cue{left:8px;right:8px;bottom:8px;min-height:54px;padding:8px 10px;gap:9px}
 .a8ah-face-challenge-cue>span{flex-basis:34px;width:34px;height:34px;font-size:22px}
 .a8ah-face-challenge-cue>strong{font-size:13px}
 .a8ah-face-login.is-camera-step .a8ah-face-camera-stage{width:100%;aspect-ratio:4/3;max-height:50dvh}
 .a8ah-face-login.is-camera-step .a8ah-face-camera-actions{display:grid;grid-template-columns:1fr 1fr}
 .a8ah-face-login.is-camera-step .a8ah-face-camera-actions button{min-height:42px}
}
@media(prefers-reduced-motion:reduce){.a8ah-face-loading-mark,.a8ah-face-loading-track i{animation:none!important}.a8ah-face-loading-track i{width:100%;transform:none}}
