.self-attendance{color:#103c5d}.sa-hero{display:flex;gap:18px;align-items:center;padding:26px;background:linear-gradient(120deg,#e2f5fd,#f8ffff,#e5f3df);border:1px solid #c4e2ee;border-radius:24px;margin-bottom:20px}.sa-hero img{width:76px;height:76px;object-fit:contain}.sa-hero h2{margin:6px 0;font-size:28px}.sa-hero small{font-weight:800;letter-spacing:1px}.sa-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.sa-panel{padding:24px;border:1px solid #c4e2ee;border-radius:22px;background:linear-gradient(150deg,#fff,#f2fbff);box-shadow:0 8px 24px #103c5d0b}.sa-tag{display:inline-block;background:#e3f5eb;color:#187d4b;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:700}.sa-steps{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.sa-steps span{padding:10px;background:#e9f4fb;border-radius:12px}.sa-info{padding:14px;background:#e7f5ec;border-radius:14px}.sa-action,.sa-success{text-align:center}.sa-circle{display:grid;place-items:center;width:80px;height:80px;margin:0 auto 16px;border:8px solid #d4f0df;border-radius:50%;background:#15954d;color:white;font-size:34px}.sa-times{display:flex;justify-content:center;gap:36px;margin:22px 0}.sa-times small,.sa-times b{display:block}.sa-times b{font-size:23px}.self-attendance .btn.primary{background:linear-gradient(110deg,#06649a,#14944b);color:#fff;border-radius:28px;min-height:46px;padding:12px 22px}.sa-record-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.sa-camera{background:#eef8fd}.sa-video{position:relative;max-width:380px;margin:18px auto;border-radius:28px;overflow:hidden;border:4px solid #9cd8c2;background:#071d2a;aspect-ratio:1}.sa-video video,.sa-video img{width:100%;height:100%;object-fit:cover}.sa-video img{position:absolute;inset:0}.sa-consent{display:flex;gap:10px;align-items:start;margin:18px 0}.sa-consent input{width:22px;height:22px;flex-shrink:0}.sa-success>img{width:150px;height:150px;object-fit:cover;border-radius:50%;border:5px solid #c2e4d0}.sa-success h3{color:#168649}.sa-save:disabled{opacity:.6}.sa-camera p{overflow-wrap:anywhere}
/* Attendance camera modal: keep the Save/Punch action above the phone and app bottom bars */
.modal:has(.self-attendance .sa-save){z-index:10050;align-items:center;padding: max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom));}
.modal:has(.self-attendance .sa-save) .modalbox{position:relative;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);overflow-y:auto;overscroll-behavior:contain;padding-bottom:18px;scroll-padding-bottom:110px;-webkit-overflow-scrolling:touch;}
.modal .self-attendance .sa-save{position:sticky;bottom:8px;z-index:20;display:flex;width:100%;min-height:56px;align-items:center;justify-content:center;margin:16px 0 8px;padding:14px 18px;border:2px solid #fff;border-radius:16px;background:linear-gradient(110deg,#06649a,#14944b);color:#fff;font-size:16px;font-weight:800;box-shadow:0 6px 22px #062b4d55;touch-action:manipulation;}
.modal .self-attendance .sa-save:disabled{opacity:.72;cursor:wait}
.modal .self-attendance #saSaveStatus{padding:8px 10px;margin:8px 0;background:#f2f8fb;border-radius:10px;}
@media(max-width:800px){
 .modal:has(.self-attendance .sa-save){place-items:end center;padding: max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom));}
 .modal:has(.self-attendance .sa-save) .modalbox{width:100%;max-width:600px;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);border-radius:18px 18px 12px 12px;padding:16px 14px calc(18px + env(safe-area-inset-bottom));}
 .modal .self-attendance .sa-save{position:sticky;bottom:calc(6px + env(safe-area-inset-bottom));min-height:60px;margin-top:14px;margin-bottom:calc(4px + env(safe-area-inset-bottom));}
 .modal .self-attendance .sa-consent{padding-bottom:8px}
}@media(max-width:650px){.sa-columns{grid-template-columns:1fr}.sa-hero{padding:18px;gap:12px}.sa-hero img{width:54px;height:54px}.sa-hero h2{font-size:23px}.sa-panel{padding:18px}.sa-times{gap:26px}}