/* Bolonö Quartier — the design canvas's look: IBM Plex, a cool off-white ground, Guinean green, amber only
   for "never printed". Phone-first; on a wide screen the app sits in a 480px column. */

:root {
  --ground: #F4F6F5;
  --surface: #FFFFFF;
  --ink: #14201A;
  --muted: #4A5852;
  --line: #D5DDD8;
  --line-soft: #E8EDEA;
  --input: #9AA9A1;
  --green: #0B5D3B;
  --green-deep: #08442B;
  --green-tint: #E3EFE8;
  --green-on-dark: #DCEBE2;
  --blue-ink: #1F3F6B;
  --blue-tint: #E4ECF7;
  --amber-ink: #6B4A00;
  --amber-tint: #FFF3D1;
  --amber: #8A5A00;
  --red: #A32638;
  --red-ink: #8A1F11;
  --dark: #0E1512;
  --dark-panel: #14201A;
  --mint: #6FD3A0;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: "IBM Plex Sans", system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-deep); }
button, input { font: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--ground); box-shadow: 0 0 0 1px var(--line-soft); }
.screen { min-height: 100vh; display: flex; flex-direction: column; }
.screen.center { align-items: center; justify-content: center; }
.content { display: flex; flex-direction: column; gap: 20px; padding: 20px 16px 28px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.h1 { margin: 0; font-size: 22px; font-weight: 700; }
.h1.big { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.h2 { margin: 0; font-size: 16px; font-weight: 600; }
p { margin: 0; line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.45; }
.center { text-align: center; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; overflow-wrap: anywhere; }
/* Codes break only at their own separators: after a "-" in the agents' form, at a space in the public one. */
.code, [data-testid=issued-structured], [data-testid=issued-numeric], [data-testid=result-code] { overflow-wrap: normal; word-break: normal; }
.big { font-size: 16px; }
.strong { font-weight: 600; }
.grow { flex-grow: 1; }

/* ---- app bar & stepper */
.appbar { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 4px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.appbar.dark { background: transparent; border: 0; color: #fff; position: static; }
.back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: inherit; flex-shrink: 0; }
.back-spacer { width: 12px; }
.appbar-text { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.appbar-title { font-size: 17px; font-weight: 600; }
.appbar-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { font-size: 13px; font-weight: 600; color: var(--green); background: var(--green-tint); border-radius: 999px; padding: 4px 10px; flex-shrink: 0; }
.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px 16px 0; }
.step { display: flex; flex-direction: column; gap: 6px; }
.step-bar { height: 4px; border-radius: 2px; background: #C9D3CD; }
.step-bar.on { background: var(--green); }
.step-label { font-size: 12px; color: var(--muted); }
.step-label.on { font-weight: 600; color: var(--green); }

/* ---- cards & rows */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card.rows { padding: 2px 14px; }
.card.amber { background: var(--amber-tint); border-color: transparent; color: #3D2A00; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--muted); flex-shrink: 0; }
.row .v { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.row.stack { flex-direction: column; align-items: stretch; gap: 4px; }
.row.stack .v { text-align: left; line-height: 1.45; }
.card.amber .row .k { color: #3D2A00; }
.row-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; }

/* ---- form fields */
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 13px; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 6px; }
.field input { min-height: 48px; width: 100%; border: 1px solid var(--input); border-radius: 10px; padding: 0 12px; font-size: 16px; background: var(--surface); color: var(--ink); }
.field input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field input.invalid { border-color: var(--red); }
.field-error { font-size: 13px; color: var(--red); }
.error-box { background: #FBE9EB; color: var(--red-ink); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.label-row { display: flex; justify-content: flex-end; margin-bottom: -4px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.badge.blue { color: var(--blue-ink); background: var(--blue-tint); }
.badge.amber { color: var(--amber-ink); background: var(--amber-tint); }
.badge.green { color: var(--green); background: var(--green-tint); }
.badge.red { color: #fff; background: var(--red); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--input); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg button { min-height: 44px; border: 0; border-right: 1px solid var(--input); background: var(--surface); color: var(--ink); font-size: 14px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--green); color: #fff; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); flex-shrink: 0; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 12px; padding: 0 16px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; text-align: center; }
.btn.small { min-height: 44px; font-size: 14px; padding: 0 14px; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-deep); color: #fff; }
.btn.primary:disabled { background: #8FB3A2; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--green); border-color: var(--green); font-size: 14px; min-height: 48px; }
.btn.secondary:disabled { color: #8FB3A2; border-color: #8FB3A2; }
.btn.ghost { background: transparent; color: #fff; border-color: #4F6359; font-size: 14px; min-height: 48px; }
.btn.link { background: none; border: 0; color: var(--green); min-height: 44px; font-size: 15px; }
.btn.danger { background: var(--red); color: #fff; }
.btn.link.danger { background: none; color: var(--red-ink); font-size: 14px; font-weight: 500; }
.footer-bar { margin-top: auto; padding: 16px; background: var(--surface); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; position: sticky; bottom: 0; }

/* ---- residence number panel */
.code-panel { display: flex; flex-direction: column; gap: 8px; background: var(--dark-panel); color: #fff; border-radius: 14px; padding: 16px; }
.code-panel.muted-panel { background: var(--line-soft); color: var(--muted); font-size: 14px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #B9CBC1; }
.eyebrow.dark { color: var(--muted); }
.eyebrow-sub { font-size: 12px; line-height: 1.5; color: #B9CBC1; }
.divider { height: 1px; background: #3A4A42; }
.code { font-size: 16px; line-height: 1.5; }
.code.big { font-size: 19px; letter-spacing: 0.02em; }

/* ---- map */
.map { position: relative; height: 168px; border-radius: 14px; overflow: hidden; background: #DDE6E0; border: 1px solid #C9D3CD; }
.map.empty { display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-size: 14px; }
.map-tiles { position: absolute; width: 768px; height: 768px; }
.map-tiles img { position: absolute; width: 256px; height: 256px; }
.map-pin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -22px 0 0 -11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--green); box-shadow: 0 0 0 3px #fff; }
.map-credit { position: absolute; right: 6px; bottom: 4px; font-size: 10px; background: rgba(255,255,255,0.85); padding: 1px 5px; border-radius: 4px; color: var(--ink); }

/* ---- issued */
.hero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.hero-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.hero-mark.red { background: var(--red); }
.qr-card { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr { width: 220px; height: 220px; image-rendering: pixelated; }
/* 37 and 34 monospace characters: sized to stay on one line in a 390px-wide phone. */
.qr-card [data-testid=issued-structured], .qr-card [data-testid=issued-numeric] { font-size: 14px; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 12px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); min-height: 52px; }

/* ---- home: two big verbs, then tracking, then the presidents' door */
.home { padding: 24px 16px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--green); display: flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.home-tile { flex: 1 1 0; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border-radius: 20px;
  background: var(--surface); border: 2px solid var(--green); color: var(--ink); text-decoration: none; }
.home-tile.primary { background: var(--green); color: #fff; }
.home-tile.primary:hover { background: var(--green-deep); color: #fff; }
.home-tile:hover { color: var(--ink); }
.home-tile-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.home-tile-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.home-tile-sub { font-size: 15px; color: var(--muted); margin-top: 4px; }
.home-tile.primary .home-tile-sub { color: var(--green-on-dark); }
.home-row { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; }
.home-agent { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; text-decoration: none; }

/* ---- applying */
.label { font-size: 13px; font-weight: 600; }
.prefixed { display: flex; gap: 8px; }
.prefix { min-height: 52px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #E8EDEA; color: var(--muted); font-size: 16px; }
.prefixed input { flex-grow: 1; min-width: 0; min-height: 52px; border: 1px solid var(--input); border-radius: 10px; padding: 0 12px; font-size: 18px; background: var(--surface); color: var(--ink); }
.otp-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.otp-head, .otp-foot, .section-head, .recap-head, .fee-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.otp-head label { font-size: 14px; font-weight: 600; }
.otp-foot { font-size: 13px; color: var(--muted); }
.otp { min-height: 56px; border: 1px solid var(--input); border-radius: 10px; padding: 0 14px; font: 500 24px "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.3em; text-align: center; background: var(--surface); color: var(--ink); width: 100%; }
.btn.link.small { min-height: 32px; font-size: 14px; padding: 0 4px; }
.prepare { padding: 0 4px; }
.prep-line, .info-line { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.4; }
.info-line { background: var(--green-tint); border-radius: 10px; padding: 10px 12px; }
.info-line.muted { background: none; padding: 0 4px; color: var(--muted); font-size: 13px; }
.info-line svg { flex-shrink: 0; width: 20px; height: 20px; }
.badge.grey { color: var(--muted); background: #E8EDEA; }
.field .mono-input, .mono-input { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: 0.02em; }
.select, .textarea, .field select { min-height: 48px; width: 100%; border: 1px solid var(--input); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; background: var(--surface); color: var(--ink); }
.textarea { padding: 10px 12px; min-height: 88px; resize: vertical; }
.field input[type=text] + input, .field select + input { margin-top: 6px; }
.photo-tile { height: 112px; border-radius: 12px; border: 1px dashed var(--green); background: var(--surface); color: var(--green); display: flex; align-items: center;
  justify-content: center; cursor: pointer; overflow: hidden; }
.photo-tile.taken { border: 1px solid var(--input); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.position-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.recap { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.recap-name { font-size: 20px; font-weight: 700; }
.rows-plain .row { padding: 7px 0; }
.fee-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fee { font-size: 17px; font-weight: 700; }
.pay-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-option { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border-radius: 10px; padding: 0 12px; font-size: 13px; }
.pay-option.on { border: 2px solid var(--green); font-weight: 600; font-size: 14px; }
.pay-option.soon { border: 1px dashed var(--input); color: var(--muted); }
.om-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #FF7900; flex-shrink: 0; }

/* ---- a request's status (resident and president) */
.status-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.status-card.accent { border: 2px solid var(--green); }
.status-card.warn { background: var(--amber-tint); border-color: #E8C989; }
.status-card.fail { background: #FBE9EB; border-color: #F0C4CA; }
.status-eyebrow { font-size: 13px; font-weight: 600; color: var(--green); }
.status-card.warn .status-eyebrow { color: var(--amber-ink); }
.status-card.fail .status-eyebrow { color: var(--red-ink); }
.status-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.btn.big-btn { min-height: 56px; font-size: 17px; }
.timeline { display: flex; flex-direction: column; padding: 0 4px; }
.tl-step { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; }
.tl-mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--input); background: var(--surface); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tl-mark svg { width: 14px; height: 14px; }
.tl-step.done .tl-mark { background: var(--green); border-color: var(--green); }
.tl-step.current .tl-mark { border: 3px solid var(--green); }
.tl-step.current .tl-label { font-weight: 600; }
.tl-step.todo .tl-label { color: var(--muted); }
.tl-label { flex-grow: 1; }
.tl-at { font-size: 13px; color: var(--muted); }

/* ---- the president's inbox and review */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { min-height: 40px; border: 1px solid var(--input); border-radius: 999px; padding: 0 14px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.tab.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.inbox-item { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.inbox-item.overdue { border: 2px solid var(--red); }
.inbox-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.inbox-name { font-size: 16px; font-weight: 600; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; }
.empty-note { padding: 24px 0; }
.cin-photo { position: relative; height: 120px; border-radius: 12px; overflow: hidden; border: 1px solid var(--input); background: #DCE7E1; display: block; }
.cin-photo img { width: 100%; height: 100%; object-fit: cover; }
.cin-photo.missing { display: flex; align-items: center; justify-content: center; color: var(--amber-ink); font-size: 13px; font-weight: 600; border-style: dashed; }
.cin-side { position: absolute; left: 6px; bottom: 6px; background: rgba(255,255,255,0.9); border-radius: 6px; padding: 2px 6px; font-size: 12px; font-weight: 600; color: var(--ink); }
.checks { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.check-line { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; }
.check-line svg { flex-shrink: 0; margin-top: 1px; }
.check-line.warn { color: var(--amber-ink); }
.confirm-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.code-line { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.decision { border-top: 1px solid var(--line); padding-top: 16px; }
.btn.secondary.danger-outline { color: var(--red-ink); border-color: var(--red); }
.pad { padding: 14px; }

/* ---- scan */
.screen.dark { background: var(--dark); color: #fff; }
.scan-body { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 0 24px; }
.viewfinder { position: relative; width: 260px; height: 260px; border-radius: 20px; background: #1C2722; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.viewfinder.as-button { border: 0; color: inherit; cursor: pointer; padding: 0; }
.viewfinder .camera { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.corners { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--mint), var(--mint)) top left / 44px 4px no-repeat, linear-gradient(var(--mint), var(--mint)) top left / 4px 44px no-repeat,
    linear-gradient(var(--mint), var(--mint)) top right / 44px 4px no-repeat, linear-gradient(var(--mint), var(--mint)) top right / 4px 44px no-repeat,
    linear-gradient(var(--mint), var(--mint)) bottom left / 44px 4px no-repeat, linear-gradient(var(--mint), var(--mint)) bottom left / 4px 44px no-repeat,
    linear-gradient(var(--mint), var(--mint)) bottom right / 44px 4px no-repeat, linear-gradient(var(--mint), var(--mint)) bottom right / 4px 44px no-repeat; }
.viewfinder-text { position: relative; margin: 0 16px 18px; font-size: 13px; color: #B9CBC1; text-align: center; line-height: 1.45; }
.scan-title { font-size: 18px; font-weight: 600; }
.scan-sub { font-size: 14px; line-height: 1.5; color: #B9CBC1; }
.scan-actions { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 24px; }
.offline-note { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.06); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.4; color: var(--green-on-dark); }
.paste { display: flex; gap: 8px; }
.paste input { flex-grow: 1; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid #4F6359; background: #1C2722; color: #fff; padding: 0 12px; font-size: 15px; }

/* ---- the verdict: the one thing a busy verifier reads */
.verdict { border-radius: 16px; padding: 20px 18px; display: flex; align-items: center; gap: 14px; color: #fff; }
.verdict.ok { background: var(--green); }
.verdict.warn { background: var(--amber); }
.verdict.fail { background: var(--red); }
.verdict-mark { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.verdict-mark svg { width: 30px; height: 30px; }
.verdict-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.verdict-sub { font-size: 14px; line-height: 1.45; opacity: 0.95; margin-top: 2px; }
.verdict-code { font-size: 12px; opacity: 0.85; margin-top: 6px; }
.who { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.who-name { font-size: 22px; font-weight: 700; }
.details { padding: 12px 14px; }
.details summary { font-weight: 600; font-size: 14px; min-height: 28px; cursor: pointer; }
.details .rows { margin-top: 6px; }

@media (min-width: 560px) { body { padding: 24px 0; } .app { border-radius: 18px; overflow: hidden; min-height: calc(100vh - 48px); } .screen { min-height: calc(100vh - 48px); } }

.danger-zone > div { display: flex; flex-direction: column; align-items: center; }

/* ---- a date as day / month / year: the same boxes as every other field */
.date3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px; }
.date-part { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field .date-part label { font-size: 12px; font-weight: 500; color: var(--muted); }
.date-part input { min-height: 48px; width: 100%; min-width: 0; border: 1px solid var(--input); border-radius: 10px; padding: 0 12px; font-size: 16px;
  background: var(--surface); color: var(--ink); font-variant-numeric: tabular-nums; }
.date-part input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.date-part input.invalid { border-color: var(--red); }

/* ---- scanning a CIN: the camera, a card-shaped frame, a shutter */
button.photo-tile { width: 100%; padding: 0; font: inherit; }
.scan-card { position: fixed; inset: 0; z-index: 20; background: #000; color: #fff; overflow: hidden; }
.scan-card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-card-frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 3px solid var(--mint); border-radius: 14px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55); pointer-events: none; }
.scan-card-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.scan-card-title { font-size: 17px; font-weight: 600; }
.scan-card-bottom { position: absolute; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px 16px 32px; }
.scan-card-hint { font-size: 15px; text-align: center; color: #DCEBE2; }
.shutter { width: 72px; height: 72px; border-radius: 50%; border: 5px solid #fff; background: var(--mint); cursor: pointer; }
.shutter:disabled { background: #4F6359; cursor: not-allowed; }
.read-line { margin: -4px 0 4px 34px; }

/* ---- the census */
.app.wide { max-width: 1100px; }
.stack-xs { display: flex; flex-direction: column; gap: 4px; }
.census-kpi { padding: 18px; display: flex; gap: 18px; align-items: center; }
.kpi-big { font-size: 28px; font-weight: 700; line-height: 1; }
.kpi-unit { font-size: 15px; font-weight: 500; color: var(--muted); }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.35; }
.tile.warn { background: var(--amber-tint); border-color: #E8C989; }
.tile-n { font-size: 20px; font-weight: 700; }
.warn-line { background: var(--amber-tint); color: var(--amber-ink); }
.bar-row { display: grid; grid-template-columns: 84px 1fr 70px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.bar-row:last-child { border-bottom: 0; }
.bar-row.compact { grid-template-columns: 1fr 44px; padding: 0; border: 0; }
.bar { height: 8px; border-radius: 4px; background: var(--green-tint); }
.bar-fill { height: 8px; border-radius: 4px; background: var(--green); }
.counts-card { padding: 4px 14px; }
.counts-row { display: grid; grid-template-columns: 1fr 104px 104px; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.counts-row.head { border-top: 0; padding: 8px 0 2px; font-size: 12px; color: var(--muted); }
.counts-row.head span { text-align: center; }
.counts-row.head span:first-child { text-align: left; }
.stepper-box { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--input); border-radius: 10px; height: 44px; background: var(--surface); }
.stepper-box button { width: 36px; height: 42px; border: 0; background: none; font-size: 20px; color: var(--green); cursor: pointer; }
.counts-total { text-align: right; font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border: 1px solid var(--input); border-radius: 999px; padding: 0 14px; font-size: 14px; cursor: pointer; background: var(--surface); }
.chip-check.on { border: 2px solid var(--green); font-weight: 600; }
.chip-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.small-title { font-size: 16px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi-value { font-size: 26px; font-weight: 700; }
.table-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.stat-table th { text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--ground); }
.stat-table td { padding: 11px 14px; border-top: 1px solid var(--line-soft); }
.stat-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.btn.link.danger { color: var(--red-ink); }

/* The land tax (Igbe Quartier): the six instalments, January to June, and plain rows of figures. */
.tranches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.tranche { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.tranche-bar { width: 100%; height: 10px; border-radius: 5px; background: #E8EDEA; }
.tranche-bar.on { background: var(--green); }
.row-plain { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0 6px; }
.warn-ink { color: var(--amber-ink); }
.bar-row .num { text-align: right; }
a.tab { display: inline-flex; align-items: center; text-decoration: none; }
.bar-row.funnel { grid-template-columns: minmax(120px, 260px) 1fr 60px; }
