:root {
  --brand: #01411C; --brand-l: #1F7A45; --brand-t: #E6F0EA; --mint: #8FE3B0;
  --ink: #0F1A14; --ink2: #344054; --muted: #667085; --line: #E4EAE6; --line2: #D0D5DD;
  --ok: #1F7A45; --ok-t: #E6F0EA; --warn: #B54708; --warn-t: #FFFAEB; --bad: #B42318; --bad-t: #FEF3F2;
  --ur: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif;
  --en: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #fff; color: var(--ink); }
body { font-family: var(--en); font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
html[lang="ur"] body { font-family: var(--ur); line-height: 2; }
bdi { font-family: var(--en); }
.mono { font-family: var(--mono); }
button { font: inherit; color: inherit; cursor: pointer; }
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.boot { margin: auto; color: var(--muted); }
.top { background: var(--brand); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 16px 14px; }
.top .row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.net::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; background: var(--mint); }
.net.off::before { background: #FDB022; }
.lang { margin-inline-start: auto; background: rgba(255, 255, 255, .16); border: 0; border-radius: 100px; padding: 2px 12px; font-family: var(--en); font-size: 12px; font-weight: 700; line-height: 1.8; color: #fff; }
.top .sub { opacity: .85; font-size: 14px; margin-top: 4px; }
.top h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.6; }
html[lang="ur"] .top h1 { line-height: 2.1; }
main { padding: 12px 14px 28px; flex: 1; }
.row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.job h3 { margin: 6px 0 0; font-size: 17px; }
.meta { color: var(--muted); font-size: 13px; }
.acts { display: flex; gap: 8px; margin-top: 10px; }
.empty { color: var(--muted); text-align: center; margin-top: 40px; }
.demo { position: fixed; left: 50%; transform: translateX(-50%); top: calc(2px + env(safe-area-inset-top)); background: #FDB022; color: #1b1b1b; border-radius: 100px; padding: 0 10px; font-size: 12px; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; padding: 8px 16px; border: 1px solid transparent; font-weight: 700; text-decoration: none; min-height: 50px; }
.btn.primary { background: var(--brand); color: #fff; flex: 1; }
.btn.ghost { background: #fff; border-color: var(--line2); color: var(--ink); }
.btn.danger { background: var(--bad); color: #fff; width: 100%; }
.btn.big { width: 100%; font-size: 18px; }
.btn:disabled { opacity: .45; cursor: default; }
.chip { display: inline-block; border-radius: 100px; padding: 0 10px; font-size: 12px; font-weight: 700; line-height: 1.9; background: #F2F4F7; color: var(--ink2); white-space: nowrap; }
.chip.brand { background: var(--brand-t); color: var(--brand); }
.chip.ok { background: var(--ok-t); color: var(--ok); }
.chip.warn { background: var(--warn-t); color: var(--warn); }
.visit { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.vtop { display: flex; gap: 10px; align-items: center; padding: calc(8px + env(safe-area-inset-top)) 14px 0; }
.icon { border: 0; background: #F2F4F7; border-radius: 50%; width: 42px; height: 42px; font-size: 18px; flex: none; }
.grow { flex: 1; min-width: 0; }
.stepof { font-size: 13px; color: var(--muted); }
.prog { display: flex; gap: 4px; }
.prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.prog i.d { background: var(--brand); }
.prog i.c { background: var(--mint); }
.stitle { margin: 6px 14px 6px; font-size: 21px; line-height: 1.7; }
html[lang="ur"] .stitle { line-height: 2.1; }
.cam { position: relative; margin: 0 14px; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 50vh; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gps { position: absolute; top: 8px; inset-inline: 8px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.gps > span, .gps.wait, .gps.bad { background: rgba(0, 0, 0, .62); color: #fff; border-radius: 100px; padding: 0 10px; line-height: 2; }
.gps.wait, .gps.bad { inset-inline: auto; }
.gps.ok > span { background: rgba(31, 122, 69, .95); }
.gps.warn > span { background: rgba(181, 71, 8, .95); }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; transition: opacity .15s; pointer-events: none; }
.flash.on { opacity: .85; }
.camdone, .camerr { position: absolute; inset-inline: 8px; bottom: 8px; background: rgba(0, 0, 0, .72); color: #fff; border-radius: 12px; padding: 4px 10px; font-size: 14px; }
.hint { margin: 8px 14px 0; font-size: 14px; color: var(--ink2); }
.shots { display: flex; gap: 6px; margin: 8px 14px 0; overflow-x: auto; }
.shots img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; border: 2px solid var(--line); }
.ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 14px 0; }
.ctrl .btn, .ctrl .count { width: 100px; flex: none; }
.count { text-align: center; font-size: 14px; color: var(--muted); }
.shutter { width: 78px; height: 78px; border-radius: 50%; border: 5px solid var(--brand); background: #fff; display: grid; place-items: center; padding: 0; flex: none; }
.shutter i { width: 58px; height: 58px; border-radius: 50%; background: var(--brand); display: block; }
.shutter:disabled { opacity: .35; }
.gallery { margin: 6px 14px 0; text-align: center; font-size: 12px; color: var(--muted); }
.choices { display: flex; flex-direction: column; gap: 10px; margin: 8px 14px; }
.opt, .chk { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line2); border-radius: 14px; padding: 8px 14px; background: #fff; font-size: 17px; font-weight: 700; text-align: start; min-height: 58px; }
.opt.on { border-color: var(--ok); background: var(--ok-t); color: var(--ok); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); flex: none; }
.opt.on .radio { border: 6px solid var(--ok); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 14px; }
.chk { font-size: 15px; min-height: 52px; padding: 6px 10px; }
.chk.on { border-color: var(--brand); background: var(--brand-t); }
.box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--line2); flex: none; }
.chk.on .box { background: var(--brand); border-color: var(--brand); }
.addphoto { display: flex; align-items: center; gap: 10px; margin: 8px 14px; }
textarea { display: block; margin: 8px 14px; width: calc(100% - 28px); border: 1px solid var(--line2); border-radius: 12px; padding: 10px; font: inherit; font-size: 16px; }
.safe { margin: 8px 14px; background: var(--warn-t); color: #7A2E0E; border-radius: 14px; padding: 8px 14px; font-size: 14px; }
.note { margin: 8px 14px; color: var(--muted); }
.vfoot { margin-top: auto; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.vfoot .row { gap: 8px; }
.vfoot .row .btn.ghost { flex: none; min-width: 88px; }
.overlay { position: fixed; inset: 0; background: rgba(15, 26, 20, .55); display: flex; align-items: flex-end; z-index: 10; }
.sheet { background: #fff; border-radius: 22px 22px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); width: 100%; }
.sheet h3 { margin: 0 0 4px; font-size: 20px; }
.sheet p { margin: 0 0 10px; color: var(--ink2); font-size: 15px; }
.sheet textarea { margin: 8px 0 12px; width: 100%; }
.sheet .btn { width: 100%; margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.stats div { border: 1px solid var(--line); border-radius: 12px; text-align: center; padding: 6px 0; }
.stats b { display: block; font-size: 22px; font-family: var(--en); line-height: 1.4; }
.stats span { font-size: 12px; color: var(--muted); }
.banner { border-radius: 12px; padding: 6px 12px; font-size: 14px; margin-bottom: 10px; }
.banner.warn { background: var(--warn-t); color: #7A2E0E; }
.up { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.up img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; }
.nm { font-size: 14px; font-weight: 700; }
.fine { font-size: 12px; color: var(--muted); }
.center { text-align: center; }
.donebox { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 14px; text-align: center; }
.donebox p { margin: 4px 0 12px; color: var(--ink2); }
.submitbox { margin-top: 14px; }
.signin label { display: block; margin: 12px 0; font-weight: 700; }
.signin input { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--line2); border-radius: 12px; padding: 12px; font-size: 17px; font-family: var(--en); }
.queue { margin-inline-start: 6px; }
#toast { position: fixed; inset-inline: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; border-radius: 12px; padding: 6px 14px; font-size: 14px; opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; z-index: 20; text-align: center; }
#toast.show { opacity: 1; transform: none; }
