/* JOBI GLOBAL — trang điểm danh lao động (/diem-danh/<token>). Thiết kế cho điện thoại: chữ to, một nút chính. */
.wk-page{--wk-navy:#0f2a40;--wk-navy-2:#173a55;--wk-ink:#10293d;--wk-text:#2a4152;--wk-muted:#5f7382;--wk-line:#e1e7ec;--wk-bg:#eef2f5;
 --wk-brand:#0a6496;--wk-brand-dark:#084f77;--wk-orange:#e2700a;--wk-orange-dark:#c25f05;
 --wk-ok:#14804a;--wk-ok-soft:#e6f5ec;--wk-bad:#b42318;--wk-bad-soft:#fdecea;--wk-warn:#965200;--wk-warn-soft:#fff3e2;
 min-height:100vh;min-height:100dvh;background:var(--wk-bg);color:var(--wk-text);
 font:16px/1.5 "Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",Arial,sans-serif;
 padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
.wk-page *{box-sizing:border-box}
.wk-ic{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wk-back{position:fixed;left:10px;bottom:12px;z-index:20;border:1px solid var(--wk-line);background:#fff;border-radius:999px;padding:8px 14px;font:600 13px/1 inherit;color:var(--wk-ink);cursor:pointer;box-shadow:0 2px 8px rgba(15,42,64,.12)}

/* ---- Dải đầu trang ---- */
.wk-hero{background:var(--wk-navy);color:#fff;padding:14px 16px 54px;border-bottom:3px solid var(--wk-orange)}
.wk-hero-in{max-width:480px;margin:0 auto}
.wk-brandrow{display:flex;align-items:center;gap:10px}
.wk-logo{width:34px;height:34px;border-radius:50%;background:#fff;object-fit:contain;padding:3px}
.wk-brandname{font-weight:800;font-size:14px;letter-spacing:.4px;line-height:1.2}
.wk-brandname small{display:block;font-weight:500;font-size:12.5px;letter-spacing:0;color:#a9bccb}
.wk-who{display:flex;align-items:center;gap:14px;margin-top:20px}
.wk-avatar{flex:0 0 auto;width:56px;height:56px;border-radius:50%;background:#fff;color:var(--wk-navy);display:grid;place-items:center;font-weight:800;font-size:19px;box-shadow:0 0 0 3px rgba(255,255,255,.18)}
.wk-who-text{min-width:0}
.wk-who h1{margin:0;font-size:22px;line-height:1.2;font-weight:800;color:#fff;letter-spacing:-.2px}
.wk-who p{margin:3px 0 0;color:#c3d2de;font-size:14px}
.wk-place{display:flex;align-items:center;gap:5px}
.wk-place .wk-ic{width:15px;height:15px;color:#f2a35a}
.wk-pill{display:inline-flex;align-items:center;gap:7px;margin-top:14px;padding:6px 12px;border-radius:999px;font-size:13.5px;font-weight:700;background:rgba(255,255,255,.1);color:#fff}
.wk-pill i{width:8px;height:8px;border-radius:50%;background:#fff}
.wk-pill-wait i{background:#f5a524}
.wk-pill-on i{background:#3ddc84}
.wk-pill-done i{background:#3ddc84}

/* ---- Thân trang ---- */
.wk-app{max-width:480px;margin:-38px auto 0;padding:0 12px;position:relative}
.wk-card{background:#fff;border:1px solid var(--wk-line);border-radius:12px;padding:16px;margin-bottom:12px;box-shadow:0 1px 2px rgba(15,42,64,.05)}
.wk-center{text-align:center;padding:30px 20px}
.wk-center h1,.wk-center h2{margin:12px 0 6px;color:var(--wk-ink);font-size:20px;line-height:1.3}
.wk-center p{margin:0 0 6px}
.wk-muted{color:var(--wk-muted);font-size:14.5px}

.wk-spin{width:36px;height:36px;margin:0 auto 12px;border-radius:50%;border:3px solid var(--wk-line);border-top-color:var(--wk-brand);animation:wk-spin .8s linear infinite}
@keyframes wk-spin{to{transform:rotate(360deg)}}
.wk-badmark,.wk-okmark{width:60px;height:60px;margin:0 auto;border-radius:50%;display:grid;place-items:center;font-size:26px;font-weight:800}
.wk-badmark{background:var(--wk-bad-soft);color:var(--wk-bad)}
.wk-okmark{background:var(--wk-ok-soft);color:var(--wk-ok)}
.wk-okmark .wk-ic{width:30px;height:30px;stroke-width:2.6}

/* Đồng hồ + hai mốc ca */
.wk-today{padding:16px}
.wk-clock{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.wk-clock b{font-size:34px;font-weight:800;color:var(--wk-ink);font-variant-numeric:tabular-nums;letter-spacing:-.8px;line-height:1}
.wk-clock span{color:var(--wk-muted);font-size:14px}
.wk-clock span::first-letter{text-transform:uppercase}
.wk-slots{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.wk-slot{display:flex;align-items:center;gap:10px;border:1px solid var(--wk-line);border-radius:10px;padding:10px;background:#f8fafb}
.wk-slot-ic{flex:0 0 auto;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e7edf2;color:var(--wk-muted)}
.wk-slot small{display:block;font-size:12.5px;color:var(--wk-muted);line-height:1.2}
.wk-slot b{display:block;font-size:17px;color:var(--wk-muted);font-weight:800;line-height:1.3}
.wk-slot.is-done{background:var(--wk-ok-soft);border-color:#c3e6d1}
.wk-slot.is-done .wk-slot-ic{background:var(--wk-ok);color:#fff}
.wk-slot.is-done b{color:var(--wk-ok);font-size:20px}
.wk-slot.is-next{background:#fff;border-color:#9ec3da;box-shadow:inset 0 0 0 1px #9ec3da}
.wk-slot.is-next .wk-slot-ic{background:#e3f0f8;color:var(--wk-brand)}
.wk-slot.is-next b{color:var(--wk-brand);font-size:14.5px}

/* Khu chụp ảnh */
.wk-cap-head h2{margin:0;font-size:18px;color:var(--wk-ink);font-weight:800}
.wk-cap-head p{margin:2px 0 0;color:var(--wk-muted);font-size:14.5px}
.wk-cam{display:none;position:relative;aspect-ratio:3/4;max-height:52vh;max-height:52dvh;width:100%;margin:12px auto 0;border-radius:12px;overflow:hidden;background:#0f2a40}
.wk-cam.live,.wk-cam.snapshot{display:block}
.wk-cam video,.wk-cam img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none;transform:scaleX(-1)}
.wk-cam.live video{display:block}
.wk-cam.snapshot img{display:block}
.wk-oval{display:none;position:absolute;left:50%;top:45%;width:58%;aspect-ratio:3/4;transform:translate(-50%,-50%);border:3px solid rgba(255,255,255,.85);border-radius:50%;box-shadow:0 0 0 999px rgba(15,42,64,.28)}
.wk-cam.live .wk-oval{display:block}
.wk-cam-hint{display:none;position:absolute;left:50%;bottom:12px;transform:translateX(-50%);white-space:nowrap;background:rgba(15,42,64,.78);color:#fff;font-size:13.5px;font-weight:600;padding:6px 12px;border-radius:999px}
.wk-cam.live .wk-cam-hint{display:block}

.wk-checks{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.wk-checks:empty{display:none}
.wk-checks li{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:600;padding:6px 11px;border-radius:999px}
.wk-checks li::before{content:"";flex:0 0 auto;width:8px;height:8px;border-radius:50%}
.wk-checks .ok{background:var(--wk-ok-soft);color:var(--wk-ok)}
.wk-checks .ok::before{background:var(--wk-ok)}
.wk-checks .wait{background:var(--wk-warn-soft);color:var(--wk-warn)}
.wk-checks .wait::before{background:#f5a524}
.wk-checks .bad{background:var(--wk-bad-soft);color:var(--wk-bad)}
.wk-checks .bad::before{background:var(--wk-bad)}

#wkAction{margin-top:14px;display:grid;gap:8px}
.wk-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;border-radius:12px;border:1px solid transparent;font:700 17px/1.2 inherit;cursor:pointer;padding:12px 16px;touch-action:manipulation}
.wk-btn .wk-ic{width:22px;height:22px}
.wk-primary{background:var(--wk-brand);color:#fff;box-shadow:0 2px 0 var(--wk-brand-dark)}
.wk-primary:active{transform:translateY(1px);box-shadow:none}
.wk-primary.wk-out{background:var(--wk-orange);box-shadow:0 2px 0 var(--wk-orange-dark)}
.wk-primary[disabled]{background:#8fa9bb;box-shadow:none;cursor:default}
.wk-ghost{background:#fff;color:var(--wk-ink);border-color:#cbd5dd;min-height:50px;font-size:16px}
.wk-center .wk-ghost{margin-top:16px}
.wk-dots{width:18px;height:18px;border-radius:50%;border:2.5px solid rgba(255,255,255,.45);border-top-color:#fff;animation:wk-spin .8s linear infinite}
.wk-help{border-left:3px solid #f5a524;background:var(--wk-warn-soft);border-radius:6px;padding:11px 13px;font-size:14.5px;color:var(--wk-text)}
.wk-help b{color:var(--wk-ink)}
.wk-help p{margin:6px 0 0}
.wk-err{border-left:3px solid var(--wk-bad);background:var(--wk-bad-soft);color:var(--wk-bad);border-radius:6px;padding:11px 13px;font-size:14.5px;font-weight:600}

.wk-finished{padding:28px 20px}
.wk-finished h2{font-size:21px}
.wk-finished b{color:var(--wk-ink)}

/* Hướng dẫn */
.wk-guide h2{margin:0 0 10px;font-size:16px;color:var(--wk-ink);font-weight:800}
.wk-guide ol{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.wk-guide li{display:flex;gap:11px;align-items:flex-start;font-size:15px;line-height:1.45}
.wk-guide li i{flex:0 0 auto;width:26px;height:26px;border-radius:50%;background:#e3f0f8;color:var(--wk-brand);display:grid;place-items:center;font-style:normal;font-weight:800;font-size:13.5px}
.wk-guide li b{color:var(--wk-ink)}
.wk-foot{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--wk-muted);font-size:13px;padding:4px 10px 0}
.wk-foot .wk-ic{width:15px;height:15px}

@media (prefers-reduced-motion:reduce){.wk-spin,.wk-dots{animation-duration:2.4s}}
@media (min-width:600px){.wk-hero{padding-top:20px}.wk-app{padding:0}}
