:root{--ink:#18332f;--muted:#63746f;--teal:#146b59;--dark:#143c39;--bg:#eef3f1;--line:#d8e2de;--white:#fff;--warn:#98630b;--red:#a73737;font-family:system-ui,-apple-system,"Noto Sans Bengali","Hind Siliguri",sans-serif;font-size:15px;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}header{background:var(--dark);color:white;padding:14px clamp(16px,4vw,52px);display:flex;align-items:center;justify-content:space-between;gap:10px}.brand,.headright{display:flex;align-items:center;gap:12px}.brand strong{letter-spacing:.07em;font-size:15px}.brand small{display:block;font-size:10px;letter-spacing:.16em;color:#b6d4cb;margin-top:2px}.mark{width:44px;height:44px;display:grid;place-items:center;border:1px solid #83b8a5;border-radius:12px;font-size:20px;font-weight:800}.headright .pill{background:#25504a;color:#ecfaf3;border:1px solid #4d7368}.headright button{color:white}main{max-width:1090px;margin:auto;padding:26px 18px 20px}h1,h2,p{margin:0}h1{font-size:clamp(25px,4vw,35px);letter-spacing:-.035em}h2{font-size:21px;letter-spacing:-.02em}.eyebrow{color:var(--teal);font-size:10px;font-weight:800;letter-spacing:.14em;display:block;margin-bottom:6px}.muted{color:var(--muted);line-height:1.65}.small{font-size:13px}.pill{display:inline-flex;align-items:center;padding:6px 10px;background:#e4f3ec;color:#1b604a;border-radius:999px;font-size:12px;font-weight:650;white-space:nowrap}.pill.warn{background:#fff1d5;color:var(--warn)}.welcome,.sectiontop,.profile{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.date{font-size:13px;color:var(--muted);text-align:right}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.metric{background:white;border:1px solid var(--line);padding:14px;border-radius:13px}.metric span{display:block;font-size:12px;color:var(--muted)}.metric b{font-size:28px;display:block;margin-top:5px;line-height:1.2;font-variant-numeric:tabular-nums}nav{display:flex;gap:6px;overflow:auto;margin:0 0 14px;scrollbar-width:thin}nav button{flex:0 0 auto;background:transparent;border-color:transparent}nav button[aria-current=page]{background:var(--dark);color:white;border-color:var(--dark)}.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:clamp(18px,3vw,30px)}.login{max-width:460px;margin:7vh auto}.login form{display:grid;gap:15px;margin-top:24px}button,input,select{font:inherit}button,.filebtn{min-height:46px;border:1px solid var(--line);border-radius:10px;padding:10px 15px;background:#f7faf8;color:var(--ink);font-weight:650;cursor:pointer;text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:6px}button.primary{background:var(--teal);color:white;border-color:var(--teal)}button.quiet{background:transparent;border-color:transparent;color:inherit}button:hover:not(:disabled),.filebtn:hover{filter:brightness(.97)}button:disabled{opacity:.45;cursor:not-allowed}input:not([type=checkbox]):not([type=file]),select{width:100%;min-height:46px;border:1px solid var(--line);background:#fafcfb;border-radius:10px;padding:10px 12px;color:var(--ink)}input[type=checkbox]{width:19px;height:19px;accent-color:var(--teal);flex:0 0 auto}button:focus-visible,input:focus-visible,select:focus-visible,.filebtn:focus-within{outline:3px solid #73b4a0;outline-offset:2px}label{display:grid;gap:6px;font-size:13px;font-weight:650}.inline{display:flex;flex-wrap:wrap;align-items:end;gap:9px;margin:14px 0}.inline>input{flex:1 1 200px}.inline>label{flex:0 1 auto}.divider{border-top:1px solid var(--line);margin:22px 0}.photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:540px;margin:16px auto}.photos small{text-align:center;display:block;color:var(--muted);margin-top:8px}.photobox{aspect-ratio:4/3;background:#eaf0ed;border:1px dashed #b6c8c0;border-radius:13px;display:grid;place-items:center;overflow:hidden;color:var(--muted);font-size:13px;text-align:center}.photobox img{width:100%;height:100%;object-fit:contain}.regphoto{aspect-ratio:4/5;max-width:220px;margin:0 auto 12px}.verify{background:#f0f7f3;padding:15px;border:1px solid #d2e4d9;border-radius:13px;margin-top:18px}.check{display:flex;align-items:center;gap:10px;line-height:1.5}.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 5px}.actions button{min-height:54px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wide{grid-column:1/-1}.reglayout{display:grid;grid-template-columns:200px 1fr;gap:24px;margin:18px 0}.full{width:100%;margin-bottom:7px}.records{display:grid;gap:8px;margin-top:14px}.record{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}.record strong{display:block}.record small{display:block;color:var(--muted);margin-top:4px}.record button{flex:0 0 auto}.empty{padding:20px;text-align:center;color:var(--muted)}.bad{color:var(--red)}.good{color:var(--teal)}[role=status]{margin-top:8px;line-height:1.6}footer{text-align:center;color:var(--muted);font-size:12px;padding:15px 10px 30px}dialog{width:min(95vw,540px);border:0;border-radius:16px;padding:20px;color:var(--ink)}dialog::backdrop{background:#142a28bb}video{display:block;width:100%;background:#101d1a;border-radius:10px;max-height:62vh;object-fit:contain}#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:var(--dark);color:white;padding:12px 18px;border-radius:10px;max-width:90%;z-index:10}[hidden]{display:none!important}@media(max-width:620px){header{padding:12px}.brand strong{font-size:13px}.mark{width:38px;height:38px}.headright{gap:4px}.headright .pill{font-size:10px}main{padding:16px 12px}.metrics{grid-template-columns:repeat(2,1fr)}.welcome{align-items:flex-start}.date{max-width:106px}.sectiontop{align-items:flex-start}.reglayout{grid-template-columns:1fr}.reglayout>div:first-child{max-width:260px;width:100%;margin:auto}.fields{grid-template-columns:1fr}.photos{gap:8px}.actions{grid-template-columns:1fr}.profile{flex-wrap:wrap}.record{align-items:flex-start}.record button{padding:8px;min-height:42px}.headright .quiet{padding:6px}}

.rosterhead,.rosterrow{display:grid;grid-template-columns:76px minmax(0,1fr) 78px;gap:12px;align-items:center;text-align:left;width:100%}.rosterhead{margin-top:16px;padding:10px 12px;background:#e8f2ef;color:#153f39;border-radius:10px;font-weight:700;font-size:14px}.rosterlist{gap:7px}.rosterrow{padding:8px 12px;background:#fff;border:1px solid #dce8e5;border-radius:10px;white-space:normal;min-height:74px}.rosterrow strong{color:#126352}.rosterrow span{overflow-wrap:anywhere}.rosterpic{width:65px;height:64px;display:grid;place-items:center;border-radius:7px;overflow:hidden;background:#edf3f1;color:#53665e;font-size:11px;text-align:center}.rosterpic img{width:100%;height:100%;object-fit:contain}.a-reg{display:grid;grid-template-columns:1fr;max-width:560px;gap:16px}.a-reg .fields{grid-template-columns:1fr}.a-reg .regphoto{max-width:220px;margin-bottom:8px}@media(max-width:420px){.rosterhead,.rosterrow{grid-template-columns:57px minmax(0,1fr) 60px;gap:8px;padding:8px}.rosterpic{width:55px;height:57px}}

/* Mobile-first controls and installable app layout */
nav svg,.scan-hero svg{width:24px;height:24px;flex:none;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linejoin:round;stroke-linecap:round}nav button span{display:block}.scan-hero{width:100%;min-height:80px!important;text-align:left;justify-content:center;gap:16px;font-size:20px}.scan-hero svg{width:38px;height:38px}.scan-hero small{display:block;font-weight:400;font-size:12px;opacity:.9;margin-top:3px}.lookup-line>input{min-width:0;flex:1 1 100px}.lookup-line>button{flex:none}.manual-label{font-size:14px;font-weight:600;line-height:1.6}.camera-frame{position:relative;background:#0d201c;border-radius:12px;overflow:hidden}#frameguide{position:absolute;pointer-events:none;inset:12% 25%;border:2px dashed #d1f4e5;border-radius:44%;opacity:.78}#frameguide.qr-guide{inset:20% 24%;border-radius:12px}.camera-tools{display:flex;gap:8px;margin:10px 0}.camera-tools button{flex:1}#autosnap[aria-pressed=true]{background:#e0f3e8;color:#145a46;border-color:#5ba587}.install{margin-top:15px}.install-help{margin-top:12px}.capture-main{flex:1 1 100%;min-height:54px}.photos>div{min-width:0}.photobox img{display:block}.verify .actions button{font-size:15px;line-height:1.5}.camera-tools button:disabled{opacity:.45}
@media(max-width:680px){body{min-height:100dvh}header{position:sticky;top:0;z-index:5;padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top));min-height:60px}.brand{gap:8px}.brand strong{font-size:12px;letter-spacing:.04em}.brand small{font-size:9px;letter-spacing:.08em}.headright .quiet{min-height:44px;padding:8px;font-size:12px}.headright .pill{font-size:10px;max-width:86px;white-space:normal;text-align:center}.mark{width:34px;height:34px;font-size:17px}main{padding:12px 10px 92px}.welcome{margin-bottom:6px;gap:8px}.welcome .eyebrow{display:none}h1{font-size:24px}h2{font-size:19px}.date{font-size:11px}.metrics{display:flex;gap:6px;margin:9px 0 12px}.metric{flex:1;min-width:0;padding:8px 7px;border-radius:10px}.metric span{font-size:10px;line-height:1.3}.metric b{font-size:22px;margin-top:4px}.panel{padding:14px;border-radius:14px}.sectiontop{margin-bottom:12px;gap:8px}.sectiontop .pill{font-size:10px;padding:5px 7px}nav#nav{position:fixed;bottom:0;left:0;right:0;z-index:6;justify-content:space-evenly;margin:0;padding:6px 5px max(7px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 22px #143c3910;overflow:visible;gap:3px}nav#nav button{flex:1 1 0;min-width:0;flex-direction:column;gap:3px;min-height:58px;font-size:11px;padding:5px 3px;border-radius:10px}nav#nav button[aria-current=page]{background:#e4f3ec;color:#125b49;border-color:#d0e7dc}nav#nav svg{width:22px;height:22px}input:not([type=checkbox]):not([type=file]),select{font-size:16px;min-height:50px}.scan-hero{min-height:88px!important;font-size:19px}.scan-hero small{font-size:11px}.photos{margin:12px auto;gap:8px}.photobox{aspect-ratio:1/1;min-height:120px}.photos small{font-size:11px}.profile{margin-bottom:7px}.divider{margin:14px 0}.verify{padding:12px;margin-top:12px}.verify .actions{margin:10px 0 4px}.verify .actions button{min-height:57px}.login{margin:5vh auto}.login form{margin-top:18px}.login .primary{min-height:54px}.rosterhead,.rosterrow{grid-template-columns:54px minmax(0,1fr) 63px;gap:8px;padding:8px}.rosterpic{width:59px;height:61px}.rosterrow{min-height:78px}.a-reg{margin:12px auto;gap:10px}.reglayout>div:first-child{max-width:none}.a-reg .regphoto{max-width:190px}dialog{width:100%;max-width:100%;max-height:100dvh;margin:auto 0 0;padding:16px 12px max(16px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0}video{max-height:54dvh;min-height:160px}#toast{bottom:88px;width:max-content;max-width:90%;font-size:14px}footer{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.brand-logo{width:49px;height:49px;object-fit:contain;background:#fff;border-radius:8px;padding:3px;flex:none}.brand-credit{font-size:10px!important;line-height:1.6;color:#64748b!important;text-align:center;padding:8px 8px 12px!important}.brand-credit .factory-address{font-size:10px;max-width:480px;margin:0 auto 3px}.credit-line{display:flex;justify-content:center;align-items:center;gap:5px;flex-wrap:wrap}.credit-line img{width:15px;height:15px;object-fit:contain}.credit-line a{color:inherit;text-decoration:none}.credit-line span{display:inline!important;color:inherit!important}

/* Mobile Tracker v3: brand credit and searchable camera-first workflow */
.brand-logo{background:#fff;width:50px;height:50px;padding:4px}
.brand-credit{display:block!important;border-top:1px solid #d9e1e8;background:#f4f7fa;color:#64748b!important}
.credit-line{gap:5px;flex-wrap:wrap;font-size:11px}
.credit-line img{width:19px;height:19px}
#nfcscan{display:none!important}
.scan-hero{border-radius:15px;box-shadow:0 4px 14px #145e4d18}
.prepanel{display:flex;gap:12px;align-items:center;background:#f4f8f6;border:1px solid #d9e8df;padding:10px;margin:12px 0;border-radius:12px}
.prepanel[hidden],.suggestions[hidden]{display:none!important}
.prepanel .photobox{width:82px;height:82px;min-height:82px;flex:none;aspect-ratio:1}
.suggestions{margin:7px 0;border:1px solid #d7e5de;border-radius:12px;overflow:hidden;background:#fff}
.suggestion-row{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-bottom:1px solid #e6eee9;border-radius:0;padding:13px 12px;text-align:left;gap:10px;background:#fff;min-height:48px}
.suggestion-row:last-child{border-bottom:0}
.suggestion-row strong{font-size:14px;overflow-wrap:anywhere}
.suggestion-row span{color:#15644d;font-weight:700;flex:none}
.suggestion-row:active{background:#e6f3ed}
@media(max-width:680px){main{padding-bottom:14px}.brand-logo{width:42px;height:42px}.brand-credit{padding:10px 8px calc(84px + env(safe-area-inset-bottom))!important}.brand-credit .factory-address{font-size:9px}.credit-line{font-size:10px}.scan-hero{min-height:92px!important}}

/* Persistent install shortcut */
.headright .install-top{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:#fff;color:#145445;border:1px solid #d1e5dc;border-radius:9px;min-height:40px;padding:4px 7px;font-size:11px;font-weight:700;white-space:nowrap;flex:none}
.install-top img{height:23px;width:23px;object-fit:contain;border-radius:4px}
.install-guide-logo{display:flex;align-items:center;gap:12px;margin:10px 0}
.install-guide-logo img{width:48px;height:48px;border-radius:10px}
#install-guide{max-width:420px}
#install-instructions{line-height:1.8;margin:14px 0}
@media(max-width:680px){header{gap:5px}.headright{gap:5px;flex:none}.brand{gap:5px;min-width:0}.brand strong{font-size:11px;letter-spacing:0}.brand small{font-size:8px;letter-spacing:.04em}.brand-logo{width:34px;height:34px}.headright .pill{max-width:58px;font-size:10px;padding:5px}.headright .install-top{gap:3px;min-height:44px;padding:4px 5px;font-size:10px}.install-top img{width:21px;height:21px}.headright .quiet{font-size:11px;padding:5px}.headright .install-top span{display:block}}
@media(max-width:340px){.headright .install-top span{display:none}.headright .install-top{min-width:38px}}

.net-banner{font-size:12px;text-align:center;background:#fff3da;color:#80580e;border-bottom:1px solid #edd49d;padding:8px 10px;line-height:1.5}
.net-banner[hidden]{display:none!important}
.quick-photo{display:flex;width:100%;justify-content:center;font-size:12px;min-height:34px;margin:9px 0 0;background:#f4f8f6}
@media(max-width:680px){.quick-photo{min-height:42px}}

/* Bangla manual gate workflow v7 */
.picktools{display:flex;gap:8px;margin:8px 0}
.picktools>button{flex:1;min-height:42px;font-size:13px}
.picktools[hidden],#suggestions-title[hidden],#entry[hidden],#exit[hidden]{display:none!important}
.suggestion-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;padding:8px 10px;min-height:66px}
.suggestion-thumb{width:48px;height:48px;display:grid;place-items:center;background:#eef3f1;border-radius:8px;overflow:hidden;font-size:10px!important}
.suggestion-thumb img{width:100%;height:100%;object-fit:contain}
#worker{scroll-margin-top:90px}
#entry:not([hidden]),#exit:not([hidden]){flex:1;width:100%;min-height:62px;font-weight:700;font-size:17px}
#exit:not([hidden]){background:#244c73;color:#fff}
#exit:disabled{opacity:.48}

/* Quick gate v8 */
.pick-state{display:block;color:#60776c;font-size:11px;margin-top:4px;font-weight:500}
#verify-ready{background:#e7f3ed;border-radius:8px;padding:10px 12px;color:#174f3f;font-weight:600;line-height:1.5}
#verify-ready[hidden]{display:none!important}


/* Face Recognition Auto-Select v9 */
.facebar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 0;padding:8px 10px;border-radius:8px;background:#eef5f2;color:#174f3f;font-size:12px;line-height:1.35}
.facebar.busy{background:#f5f2e6;color:#6c4f10}
.facebar.warn{background:#fbeeee;color:#8a2626}
.facebar.ready{background:#e7f3ed;color:#144d3c;font-weight:600}
.facebar-btn{flex:0 0 auto;min-height:30px;padding:4px 10px;font-size:12px;border-radius:6px;background:#fff;border:1px solid #c9dcd4;color:#143c39;cursor:pointer}
.facebar-btn:disabled{opacity:.55}
#face-match-badge{background:#dff4e8;border:1px solid #9fd7b9;border-radius:8px;padding:8px 12px;color:#0f5132;font-weight:700;margin:8px 0 0}
#face-match-badge[hidden]{display:none!important}
.match-pill{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;background:#dff4e8;color:#0f5132;font-size:11px;font-weight:700}

.suggestion-row.top-face-match{border:2px solid #16794c;background:#eef9f2}
.match-pill.top-hit{background:#16794c;color:#fff}
