:root {
  --navy: #111a3a;
  --indigo: #2b3a8c;
  --accent: #ff7a1a;
  --accent-dark: #e56505;
  --bg: #f2f4fa;
  --card: #ffffff;
  --text: #17203a;
  --muted: #6b7591;
  --line: #e3e7f2;
  --ok: #129a5b;
  --danger: #d6323a;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(17, 26, 58, .08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h2 { font-size: 20px; margin: 4px 0 14px; }
h3 { font-size: 16px; margin: 0 0 10px; }

/* ---------- top bar ---------- */
#topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: linear-gradient(120deg, var(--navy), var(--indigo));
  color: #fff;
  box-shadow: 0 2px 12px rgba(17, 26, 58, .3);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-mark {
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1px;
  padding: 6px 8px; border-radius: 9px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.org-name { font-size: 12px; font-weight: 500; opacity: .8; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-name:empty { display: none; }
.user-chip {
  background: rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 999px;
  font-size: 13px; max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- layout ---------- */
#view {
  max-width: 760px; margin: 0 auto;
  padding: 16px 16px calc(96px + env(safe-area-inset-bottom));
}
.made-by { text-align: center; color: var(--muted); font-size: 12px; margin: 28px 0 4px; letter-spacing: .3px; }
.made-by b { color: var(--indigo); }

/* ---------- bottom nav ---------- */
#nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around; align-items: flex-end;
  background: #fff; border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 18px rgba(17, 26, 58, .06);
}
#nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--muted); padding: 6px 0; border-radius: 12px;
}
#nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#nav a.active { color: var(--indigo); font-weight: 600; }
#nav a.nav-new svg {
  width: 48px; height: 48px; padding: 12px; margin-top: -22px;
  background: var(--accent); color: #fff; border-radius: 50%;
  box-shadow: 0 6px 16px rgba(255, 122, 26, .45); stroke-width: 2.6;
}

/* ---------- cards, forms, buttons ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
label.field { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
input[type=text], input[type=password], input[type=search], input[type=date] {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; color: var(--text);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  outline: none;
}
input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(43, 58, 140, .12); }
input.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1.5px; text-transform: uppercase; font-size: 17px; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; color: var(--text); min-height: 46px;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 26, .3); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.danger { color: var(--danger); border-color: #f3c7c9; background: #fff5f5; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; min-height: 38px; font-size: 13px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1; }

/* ---------- login ---------- */
.login-wrap { min-height: calc(100vh - 32px); display: flex; flex-direction: column; justify-content: center; max-width: 400px; margin: 0 auto; }
.login-hero {
  background: linear-gradient(140deg, var(--navy), var(--indigo)); color: #fff;
  border-radius: 24px 24px 0 0; padding: 34px 24px 46px; text-align: center;
}
.login-hero .brand-mark { font-size: 20px; padding: 12px 16px; border-radius: 16px; display: inline-block; margin-bottom: 14px; }
.login-hero h1 { margin: 0; font-size: 26px; }
.login-hero p { margin: 6px 0 0; opacity: .8; font-size: 14px; }
.login-card { margin-top: -22px; border-radius: 22px; padding: 22px; }
.err { color: var(--danger); font-size: 14px; margin: 0 0 12px; }

/* ---------- list ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.stat { background: linear-gradient(135deg, var(--navy), var(--indigo)); color: #fff; border-radius: var(--radius); padding: 14px 16px; }
.stat.alt { background: linear-gradient(135deg, var(--accent), #ffa24d); }
.stat b { display: block; font-size: 26px; line-height: 1.1; }
.stat span { font-size: 12px; opacity: .85; }
.search { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 5; margin-bottom: 12px; }
.search input { margin: 0; box-shadow: var(--shadow); border-color: transparent; }
.vlist { display: grid; gap: 10px; }
@media (min-width: 640px) { .vlist { grid-template-columns: 1fr 1fr; } }
.vcard { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 10px; box-shadow: var(--shadow); }
.vthumb { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; background: #dfe4f1; flex: none; }
.vinfo { min-width: 0; flex: 1; }
.vch { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 15px; letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vmeta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fff1e5; color: var(--accent-dark); }
.badge.ok { background: #e4f6ec; color: var(--ok); }
.badge.off { background: #fde8e9; color: var(--danger); }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.skeleton { height: 82px; border-radius: 14px; background: linear-gradient(90deg, #e6eaf4 25%, #f3f5fb 50%, #e6eaf4 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- photo slots ---------- */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 16px; }
@media (max-width: 460px) { .slots { grid-template-columns: 1fr; } }
.slot { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px; }
.slot-prev {
  position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: #eef1f8; border: 2px dashed #c9d0e3;
  display: flex; align-items: center; justify-content: center; color: #9aa4c0; cursor: pointer;
}
.slot.has .slot-prev { border-style: solid; border-color: var(--ok); }
.slot-prev img { width: 100%; height: 100%; object-fit: cover; }
.slot-prev svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.slot-title { font-weight: 700; font-size: 14px; margin: 8px 0 2px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.slot-sub { font-size: 12px; color: var(--muted); min-height: 17px; margin-bottom: 8px; }
.slot .row { gap: 6px; }

/* ---------- detail ---------- */
.dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dch { font-family: ui-monospace, Consolas, monospace; font-size: 19px; font-weight: 800; letter-spacing: 1px; word-break: break-all; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--indigo); font-weight: 600; font-size: 14px; margin-bottom: 10px; }

/* ---------- admin ---------- */
.tabs { display: flex; background: #e4e8f3; border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.tabs a { flex: 1; text-align: center; padding: 9px 4px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.tabs a.active { background: #fff; color: var(--indigo); box-shadow: 0 2px 6px rgba(17, 26, 58, .1); }
.urow { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.urow:first-child { border-top: 0; }
.urow .uinfo { flex: 1; min-width: 140px; }
.urow .uname { font-weight: 700; }
.urow .uid { font-size: 12px; color: var(--muted); }
.bar { height: 14px; background: #e4e8f3; border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #5cc98f); border-radius: 999px; }
.bar.warn i { background: linear-gradient(90deg, var(--accent), #ffa24d); }
.bar.full i { background: linear-gradient(90deg, var(--danger), #f0787e); }
.log { font-size: 13px; padding: 9px 0; border-top: 1px solid var(--line); }
.log:first-child { border-top: 0; }
.log small { color: var(--muted); display: block; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- overlays ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px;
  max-width: 90vw; opacity: 0; pointer-events: none; transition: .25s; z-index: 96; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.bad { background: var(--danger); }
#toast.good { background: var(--ok); }
#modal { z-index: 85; }
#busy { z-index: 95; }
#busy, #modal { position: fixed; inset: 0; background: rgba(17, 26, 58, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.busy-box { background: #fff; border-radius: 18px; padding: 24px 28px; text-align: center; min-width: 200px; max-width: 320px; }
.spinner { width: 38px; height: 38px; border: 4px solid #e4e8f3; border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 12px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-box { background: #fff; border-radius: 18px; padding: 20px; width: 100%; max-width: 380px; }
.modal-box p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
#viewer { position: fixed; inset: 0; z-index: 70; background: #000; display: flex; align-items: center; justify-content: center; }
#viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
#viewer button { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 28px; line-height: 1; }

/* ---------- v2: status, filters, queue, settings ---------- */
.net-pill { background: #ffe3cc; color: #9a3d00; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-left: auto; margin-right: 8px; cursor: pointer; }
.nav-badge { position: absolute; margin-left: 18px; margin-top: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-style: normal; }
#nav a { position: relative; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badge.info { background: #e7ebfb; color: var(--indigo); }
.status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #f3f5fb; font-size: 14px; margin-top: 12px; }
.status.ok { background: #e4f6ec; color: #0d6b40; }
.status.warn { background: #fff1e5; color: #9a3d00; }
.status svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #d3d9ea; }
.dots i.on { background: var(--ok); }
.queue { border: 1.5px solid #ffd2ad; background: #fffaf5; }
.qrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #ffe6d1; }
.qrow:first-of-type { border-top: 0; }
.qrow .vinfo { flex: 1; }
.offline-note { text-align: center; color: var(--muted); padding: 28px 12px; }
.slot-check { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.slot-check svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.slot-prev .orient { position: absolute; bottom: 8px; left: 8px; background: rgba(17, 26, 58, .75); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 14px; font-weight: 600; }
.switch input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: #cfd5e6; position: relative; cursor: pointer; transition: .2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: .2s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { left: 23px; }
.org-title { display: flex; flex-direction: column; margin: 0 0 12px; }
.org-title b { font-size: 21px; line-height: 1.2; color: var(--navy); }
.org-title span { font-size: 13px; color: var(--muted); }
.status.bad { background: #fde8e9; color: #9b1c22; }
.money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.money div { background: linear-gradient(135deg, var(--navy), var(--indigo)); color: #fff; border-radius: var(--radius); padding: 12px 14px; }
.money div.bad { background: linear-gradient(135deg, var(--danger), #f0787e); }
.money b { display: block; font-size: 22px; line-height: 1.15; }
.money span { font-size: 12px; opacity: .85; }
.alert { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; margin-bottom: 8px; background: #f3f5fb; border-left: 4px solid var(--indigo); }
.alert.warn { background: #fff6ed; border-left-color: var(--accent); }
.alert.bad { background: #fff1f1; border-left-color: var(--danger); }
.alert-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.alert-text b { font-size: 14px; }
.btn.wa { background: #1fa855; border-color: #1fa855; color: #fff; flex: none; }
.linkbtn { border: 0; background: none; color: var(--danger); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0 0 0 8px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--muted); }
.kv b.neg { color: var(--danger); }
input[type=tel], input[type=email] { display: block; width: 100%; margin-top: 6px; font: inherit; color: var(--text); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; outline: none; }
select, textarea { display: block; width: 100%; margin-top: 6px; font: inherit; color: var(--text); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; outline: none; }
textarea { resize: vertical; }
.modal-box { max-height: calc(100vh - 40px); overflow-y: auto; }
input[type=number] { display: block; width: 100%; margin-top: 6px; font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mini-stats div { background: #f3f5fb; border-radius: 12px; padding: 10px 12px; }
.mini-stats b { display: block; font-size: 20px; }
.mini-stats span { font-size: 12px; color: var(--muted); }
.qr { display: block; width: 200px; height: 200px; margin: 6px auto 12px; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; background: #f3f5fb; padding: 8px 10px; border-radius: 8px; margin-bottom: 12px; }

/* ---------- in-app camera ---------- */
#cam { position: fixed; inset: 0; z-index: 80; background: #000; color: #fff; overflow: hidden; touch-action: none; }
#cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.cam-frame { position: absolute; inset: 14% 7% 22%; pointer-events: none; }
.cam-frame i { position: absolute; width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, .9); }
.cam-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.cam-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.cam-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.cam-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.cam-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; background: linear-gradient(rgba(0, 0, 0, .6), transparent); }
.cam-title { font-weight: 700; font-size: 16px; }
.cam-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cam-btn.on { background: #ffd23f; color: #000; }
.cam-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cam-hint { position: absolute; top: calc(70px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, .55); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cam-hint.ok { background: rgba(18, 154, 91, .9); }
.cam-hint.warn { background: rgba(229, 101, 5, .92); }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-around; padding: 18px 10px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 5px solid #fff; background: rgba(255, 255, 255, .25); cursor: pointer; padding: 0; }
.shutter:active { background: #fff; }
.shutter[disabled] { opacity: .35; }
.cam-side { width: 96px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 12px; font-weight: 600; padding: 9px 6px; border-radius: 999px; cursor: pointer; }
.cam-side[hidden] { display: block !important; visibility: hidden; }
.cam-review { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; }
.cam-review img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.cam-review-info { text-align: center; font-size: 13px; opacity: .8; padding: 6px; }
.cam-review-bar { display: flex; gap: 12px; padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); }
.cam-review-bar .btn { flex: 1; }
.btn { white-space: nowrap; }
.row > .btn.icon { flex: none; width: 46px; padding: 8px 0; }

/* ---------- Make Affidavit (Admin > Affidavit) ---------- */
@font-face { font-family: "Noto Sans Devanagari"; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/fonts/noto-sans-devanagari-devanagari-400-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari"; font-style: normal; font-weight: 700; font-display: swap; src: url(../vendor/fonts/noto-sans-devanagari-devanagari-700-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari"; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/fonts/noto-sans-devanagari-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Devanagari"; font-style: normal; font-weight: 700; font-display: swap; src: url(../vendor/fonts/noto-sans-devanagari-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.af-big { min-height: 60px; font-size: 17px; }
.af-big svg, [data-af] svg { width: 22px; height: 22px; }
.af-dealer { display: flex; gap: 12px; align-items: flex-start; }
.af-dinfo { flex: 1; min-width: 0; }
.af-lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.af-dinfo b { display: block; font-size: 16px; }
.af-dinfo p { margin: 2px 0 0; font-size: 13px; color: var(--muted); white-space: pre-line; }
.af-note { background: #fff7e0; border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.af-note.ok { background: #e4f6ec; }
.af-note.info { background: #eef1fb; }
.af-list { display: grid; gap: 10px; }
.af-item { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.af-num { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; flex: none; font-size: 14px; }
.af-inf { flex: 1; min-width: 0; }
.af-nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-ch { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--muted); letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; }
.af-previews { display: grid; gap: 10px; margin-bottom: 12px; }
.af-pg { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.af-page { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; aspect-ratio: 210 / 297; display: flex; flex-direction: column; }
.af-page img { width: 100%; display: block; flex: none; }
.af-page img + img { border-top: 1px dashed #ccd; }
.af-blank { flex: 1; }
#afSheet { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; }
.af-sheet-in { max-width: 760px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 16px calc(100px + env(safe-area-inset-bottom)); }
.af-sheet-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.af-sheet-bar .row { max-width: 728px; margin: 0 auto; }
.af-photo { max-height: 46vh; overflow: auto; border-radius: 12px; background: #222; margin-bottom: 8px; }
.af-photo img { width: 100%; display: block; }
.af-photo.zoom img { width: 260%; max-width: none; }
.af-seg { display: flex; gap: 8px; margin-top: 6px; }
.af-seg label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 6px; background: #fff; font-weight: 600; color: var(--text); cursor: pointer; }
.af-seg input { accent-color: var(--accent); }
.af-cnt { float: right; font-weight: 700; }
.af-cnt.ok { color: var(--ok); }
.af-cnt.bad { color: var(--danger); }
.field.af-check input { background: #fff7e0; border-color: #f1c453; }
.field.af-unsure input, .field.af-bad input, .field.af-bad textarea { background: #fff0f0; border-color: var(--danger); }
.af-warn { color: var(--danger); font-weight: 600; }
.af-dchars { font-family: ui-monospace, Consolas, monospace; font-size: 20px; letter-spacing: 3px; margin: 6px 0 2px; word-break: break-all; }
.af-dchars mark { background: var(--danger); color: #fff; border-radius: 4px; padding: 0 2px; }
.af-tabs { display: flex; gap: 6px; background: #eef1fb; border-radius: 14px; padding: 4px; margin-bottom: 12px; }
.af-tabs button { flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); padding: 11px 6px; border-radius: 11px; cursor: pointer; }
.af-tabs button.on { background: var(--navy); color: #fff; }
