/* AttendPro completion: camera workflow accessibility, not attendance algorithms. */
.employee-scanner-overlay .employee-scan-card,
.face-capture-sheet { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.employee-scanner-overlay .employee-scan-card { min-height: 0; }
.face-capture-sheet { max-height: calc(100dvh - 32px); }
#portalCameraStatus { display: block; line-height: 1.45; }
#portalCameraState[data-state="requesting"],
#portalCameraState[data-state="active"] { border-color: #9bc7be; color: #176b60; }
#portalCameraState[data-state="error"] { border-color: #ecc2bf; color: #ad302b; }
#portalCameraState[data-state="success"] { border-color: #9bc7be; color: #176b60; }
.employee-scanner-overlay.is-open #portalCameraState[data-state="active"]::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: ap-scanning 1.5s ease-in-out infinite; }
@keyframes ap-scanning { 50% { opacity: .25; } }
.employee-scanner-overlay .employee-scanner-head-actions .icon-btn:focus-visible,
.face-capture-sheet button:focus-visible { outline: 3px solid #378f9b; outline-offset: 3px; }
@media (max-width: 680px) {
 .face-capture-dialog { padding: 8px; align-items: center; }
 .face-capture-sheet { width: 100%; max-height: calc(100dvh - 16px); overflow-y: auto; padding: 16px; }
 .face-camera-stage { max-height: min(52dvh, 390px); aspect-ratio: 1 / 1; }
 .face-capture-actions { position: sticky; bottom: 0; background: #fff; padding-top: 12px; padding-bottom: env(safe-area-inset-bottom); }
 .employee-scanner-overlay .employee-scan-card { overscroll-behavior: contain; }
}
@media (prefers-reduced-motion: reduce) {
 .employee-scanner-overlay.is-open #portalCameraState[data-state="active"]::before { animation: none; }
 .employee-scanner-overlay, .employee-scanner-overlay .employee-scan-card { transition: none !important; }
}
