/* WunaPay wallet for people (app.wunapay.com/wallet). Uses the dashboard tokens; phone-first, one column. */
.wl-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.wl-top-r { display: flex; align-items: center; gap: 4px; }
.wl-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -0.03em; }
.wl-brand i { color: var(--terra); font-style: normal; }
.wl-test { font-size: 11.5px; font-weight: 650; color: var(--gold-ink); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  padding: 3px 9px; border-radius: 99px; margin-right: 4px; }
.wl { width: 100%; max-width: 480px; margin: 0 auto; padding: 6px 16px 32px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.wl.with-tabs { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.wl-h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin: 4px 2px 0; }
.wl-h2 { font-size: 15px; font-weight: 650; margin: 0 0 10px; }
.wl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.wl-card.flush { padding: 0; overflow: hidden; }
.wl-card .form { gap: 14px; }
.wl-card-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.wl-card-h h2 { font-size: 15px; font-weight: 650; margin: 0; }

/* Sign in */
.wl-welcome { display: flex; flex-direction: column; gap: 18px; }
.wl-hero h1 { font-size: 30px; line-height: 1.12; font-weight: 750; letter-spacing: -0.035em; margin: 14px 0 8px; text-wrap: balance; }
.wl-hero p { color: var(--muted); margin: 0; line-height: 1.55; font-size: 15px; }
.wl-code { font-family: var(--mono); font-size: 22px; letter-spacing: .4em; text-align: center; }
.wl-pin { font-size: 22px; letter-spacing: .5em; text-align: center; }
.wl-amount { font-size: 22px; font-weight: 650; }
.wl-row-links { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.wl-center { text-align: center; }
.wl-note { display: flex; gap: 8px; align-items: flex-start; color: var(--faint); font-size: 12.5px; line-height: 1.5; margin: 0 4px; }
.wl-note svg { flex-shrink: 0; margin-top: 2px; }

/* Buttons */
.wl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border: 0; border-radius: 14px;
  background: var(--terra-btn); color: #fff; font: inherit; font-weight: 650; font-size: 15.5px; cursor: pointer; text-decoration: none; }
.wl-btn:hover { background: var(--terra-btn-hover); color: #fff; }
.wl-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.wl-btn[disabled] { opacity: .7; cursor: progress; }
.wl-btn.ghost { background: var(--sunken); color: var(--ink); }
.wl-btn.ghost:hover { background: var(--neutral-soft); color: var(--ink); }
.wl-btn.sm { height: 42px; width: auto; padding: 0 20px; }
.wl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }

/* Balance */
.wl-balance { position: relative; overflow: hidden; border-radius: 22px; padding: 20px 20px 22px; color: #F4EFE6;
  background: radial-gradient(120% 140% at 100% 0%, #2B6650 0%, var(--forest) 45%, var(--forest-deep) 100%); box-shadow: var(--shadow-pop); }
.wl-balance::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%;
  border: 26px solid rgba(233, 180, 76, .16); pointer-events: none; }
.wl-bal-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: rgba(244, 239, 230, .85); }
.wl-eye { border: 0; background: rgba(255, 255, 255, .1); color: inherit; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.wl-eye:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(233, 180, 76, .5); }
.wl-bal-label { margin-top: 18px; font-size: 12.5px; color: rgba(244, 239, 230, .7); }
.wl-bal { font-size: 40px; font-weight: 750; letter-spacing: -0.04em; line-height: 1.1; }
.wl-bal small { font-size: 16px; font-weight: 550; color: var(--gold); letter-spacing: 0; }
.wl-bal-phone { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: rgba(244, 239, 230, .65); }

/* Actions */
.wl-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wl-acts.frozen { grid-template-columns: repeat(3, 1fr); }   /* frozen wallet: no Send / Withdraw */
.wl-act { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; padding: 4px 0; border-radius: 14px; }
.wl-act span { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--terra); box-shadow: var(--shadow); }
.wl-act:hover span { border-color: var(--line-strong); background: var(--surface-2); }
.wl-act:focus-visible { outline: none; box-shadow: var(--focus); }

/* History */
.wl-entry { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.wl-card-h + div .wl-entry:first-child, .wl-day + .wl-entry { border-top: 0; }
.wl-entry:hover { background: var(--surface-2); }
.wl-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--sunken); color: var(--ink-2); }
.wl-ico.in { background: var(--ok-soft); color: var(--ok); }
.wl-entry-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* 0.9.15: titles wrap to a second line instead of being cut with "…" (French verbs are longer: "{n} vous demande") */
.wl-entry-t b { font-weight: 600; font-size: 14.5px; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.wl-entry-t span { color: var(--muted); font-size: 12.5px; }
.wl-entry.pending .wl-entry-t span { color: var(--warn); }
.wl-entry.failed .wl-entry-t span { color: var(--bad); }
.wl-amt { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl-amt.in { color: var(--ok); }
.wl-amt.struck { text-decoration: line-through; color: var(--faint); }
.wl-day { padding: 14px 18px 6px; font-size: 12px; font-weight: 650; color: var(--muted); background: var(--surface-2); border-top: 1px solid var(--line); }
.wl-day:first-child { border-top: 0; }
.wl-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 22px 24px; color: var(--muted); }
.wl-empty b { color: var(--ink); font-size: 15px; }
.wl-empty p { margin: 0 0 10px; font-size: 13.5px; max-width: 30ch; }
.wl-detail-amt { font-size: 32px; font-weight: 750; letter-spacing: -0.03em; text-align: center; padding: 8px 0 18px; }
.wl-detail-amt.in { color: var(--ok); }

/* Confirm, states, receive, settings */
.wl-confirm { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 6px 0 4px; }
.wl-confirm span { font-size: 13px; color: var(--muted); }
.wl-confirm-amt { font-size: 34px; font-weight: 750; letter-spacing: -0.03em; margin: 10px 0 2px; }
.wl-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--terra-soft); color: var(--terra); font-weight: 700; font-size: 18px; flex-shrink: 0; }
.wl-state { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px; }
.wl-state h2 { margin: 10px 0 0; font-size: 20px; }
.wl-state p { color: var(--muted); margin: 0 0 14px; max-width: 34ch; }
.wl-receive { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.wl-qr { background: #fff; padding: 10px; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 8px; }
.wl-receive-name { font-size: 18px; }
.wl-receive-phone { font-family: var(--mono); color: var(--muted); }
.wl-receive p { font-size: 13.5px; margin: 8px 0 14px; max-width: 34ch; }
.wl-profile { display: flex; align-items: center; gap: 14px; }
.wl-profile b { display: block; font-size: 16px; }
.wl-profile span { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.wl-set { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; }
.wl-set:first-child { border-top: 0; }
.wl-set:hover { background: var(--surface-2); }
.wl-set > span:not(.badge) { flex: 1; display: flex; flex-direction: column; }
.wl-set b { font-weight: 600; }
.wl-set > span span { color: var(--muted); font-size: 13px; }
.wl-set.danger { color: var(--bad); }

/* Bottom tabs */
.wl-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 4px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.wl-tab { flex: 1; max-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }
.wl-tab.on { color: var(--terra); }
.wl-tab:focus-visible { outline: none; box-shadow: var(--focus); }

/* Pay page: paying from a wallet */
.pay-wallet { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--sunken); }
.pay-wallet b { display: block; font-size: 14px; }
.pay-wallet span { color: var(--muted); font-size: 12.5px; }
.ops.three { grid-template-columns: 1fr 1fr; }
.ops.three label:last-child { grid-column: 1 / -1; }
.ops i.wal { background: var(--forest); color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* ===== Wallet 2 ===== */
.wl-perks { list-style: none; margin: 0; padding: 0 4px; display: grid; gap: 10px; color: var(--ink-2); font-size: 14px; }
.wl-perks li { display: flex; align-items: center; gap: 10px; }
.wl-perks svg { color: var(--terra); }
.wl-lock { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 24px; }
.wl-lock h1 { font-size: 26px; margin: 12px 0 0; letter-spacing: -0.03em; }
.wl-lock p { margin: 0; }
.wl-avatar.lg { width: 76px; height: 76px; font-size: 26px; background: var(--forest); color: var(--gold); }
.wl-avatar.sm { width: 38px; height: 38px; font-size: 13.5px; }
.wl-avatar.fav { box-shadow: 0 0 0 2px var(--gold); }
.wl-or { text-align: center; color: var(--faint); font-size: 12.5px; }
.wl-bal-foot { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(244, 239, 230, .7); }
.wl-bal-foot a { color: var(--gold); text-decoration: none; font-weight: 600; }
a.wl-eye { color: inherit; }
.wl-scan { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--terra) 35%, var(--line)); box-shadow: var(--shadow); }
.wl-scan:hover { background: var(--surface-2); }
.wl-scan > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wl-scan > span:nth-child(2) span { color: var(--muted); font-size: 13px; }
.wl-scan-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--terra-btn); color: #fff; flex-shrink: 0; }
.wl-todo { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.wl-card-h + .wl-todo { border-top: 0; }
.wl-todo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wl-todo-t b { font-size: 14px; font-weight: 600; }
.wl-todo-t span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.wl-ico.njangi { background: var(--gold-soft); color: var(--gold-ink); }
.wl-ico.save { background: var(--info-soft); color: var(--info); }
.wl-amt.save { color: var(--info); }
.wl-guide { display: flex; flex-direction: column; gap: 12px; }
.wl-guide .link { border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted); }
.wl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.wl-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 2px; }
.wl-steps li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  border: 1.5px solid var(--terra); color: var(--terra); }
.wl-steps li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.wl-steps b { font-size: 14px; }
.wl-steps span { color: var(--muted); font-size: 13px; }
.wl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wl-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.wl-tile svg { color: var(--terra); margin-bottom: 4px; }
.wl-tile b { font-size: 14.5px; }
.wl-tile span { color: var(--muted); font-size: 12.5px; }
.wl-tile:hover { background: var(--surface-2); }
.wl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.wl-chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.wl-chip:hover { border-color: var(--terra); }
.wl-contacts .label { margin-bottom: 10px; }
.wl-people { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.wl-person { position: relative; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; color: var(--ink); width: 56px; flex-shrink: 0; font: inherit; }
.wl-person .wl-avatar { width: 48px; height: 48px; font-size: 15px; }
.wl-person .nm { font-size: 12px; max-width: 56px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-person .star { position: absolute; top: -2px; right: 2px; color: var(--gold); font-style: normal; font-size: 13px; }
.wl-req-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.wl-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--sunken); }
.wl-seg a { flex: 1; text-align: center; padding: 8px 0; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.wl-seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Scanner */
.wl-scanner { position: relative; border-radius: 22px; overflow: hidden; background: #0b100e; aspect-ratio: 3 / 4; max-height: 62vh; display: grid; place-items: center; }
.wl-scanner.off { aspect-ratio: auto; min-height: 160px; }
.wl-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wl-scan-box { position: relative; width: 62%; aspect-ratio: 1; border-radius: 22px; box-shadow: 0 0 0 999px rgba(8, 20, 16, .45); border: 3px solid var(--gold); }
.wl-scanner.off .wl-scan-box { display: none; }
.wl-scan-msg { position: absolute; left: 16px; right: 16px; bottom: 14px; margin: 0; text-align: center; color: #fff; font-size: 14px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.wl-scanner.off .wl-scan-msg { position: static; padding: 24px; }

/* Savings */
.wl-save-sum { display: flex; flex-direction: column; gap: 2px; }
.wl-bal-sm { font-size: 30px; font-weight: 750; letter-spacing: -0.03em; }
.wl-sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px -4px; scroll-margin-top: 70px; }
.wl-sec-h h2 { font-size: 17px; margin: 0; letter-spacing: -0.02em; }
.wl-pots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wl-pot { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-top: 4px solid var(--pot, var(--terra)); box-shadow: var(--shadow); }
.wl-pot-top { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.wl-pot-top b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.wl-pot-bal { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.wl-pot-goal { font-size: 12px; color: var(--muted); }
.wl-progress { height: 6px; border-radius: 99px; background: var(--sunken); overflow: hidden; margin-bottom: 4px; }
.wl-progress span { display: block; height: 100%; border-radius: 99px; background: var(--pot, var(--ok)); }
.wl-progress.light { background: rgba(255,255,255,.2); }
.wl-progress.light span { background: var(--gold); }
.wl-lockchip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; color: var(--gold-ink); background: var(--gold-soft); padding: 2px 7px; border-radius: 99px; white-space: nowrap; }
.wl-lockchip.light { background: rgba(255,255,255,.14); color: var(--gold); align-self: flex-start; margin-top: 6px; }
.wl-pot-hero { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 22px; color: #F4EFE6; box-shadow: var(--shadow-pop);
  background: linear-gradient(150deg, color-mix(in srgb, var(--pot, var(--terra)) 85%, #fff 0%), color-mix(in srgb, var(--pot, var(--terra)) 70%, #000)); }
.wl-pot-hero.njangi { background: radial-gradient(120% 140% at 100% 0%, #2B6650 0%, var(--forest) 45%, var(--forest-deep) 100%); }
.wl-pot-hero > span:first-child { font-size: 14px; color: rgba(244,239,230,.85); }
.wl-pot-hero .wl-pot-goal { color: rgba(244,239,230,.75); }
.wl-colors { display: flex; gap: 10px; }
.wl-colors label { cursor: pointer; }
.wl-colors input { position: absolute; opacity: 0; }
.wl-colors span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--pot); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.wl-colors input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.wl-colors input:focus-visible + span { box-shadow: var(--focus); }
.wl-members { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wl-member { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 99px; background: var(--sunken); font-size: 13.5px; font-weight: 600; }
.wl-member button { border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; padding: 2px; border-radius: 50%; }
.wl-add-row { display: flex; gap: 8px; }
.wl-add-row .input { flex: 1; }
.wl-entry.current { background: var(--gold-soft); }

/* Overview */
.wl-month { font-weight: 600; }
.wl-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.wl-kpi.row { flex-direction: row; align-items: center; gap: 10px; color: var(--info); font-size: 13.5px; }
.wl-kpi b { font-size: 20px; letter-spacing: -0.02em; }
.wl-kpi b.in { color: var(--ok); }
.wl-bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 6px; overflow-x: auto; }
.wl-bar { flex: 1; min-width: 10px; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; align-items: end; gap: 1px; }
.wl-bar span { border-radius: 3px 3px 0 0; }
.wl-bar .in { background: var(--ok); }
.wl-bar .out { background: var(--terra); }
.wl-bar i { grid-column: span 2; font-style: normal; font-size: 9.5px; color: var(--faint); text-align: center; padding-top: 3px; }
.wl-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.wl-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.wl-legend .in::before { background: var(--ok); } .wl-legend .out::before { background: var(--terra); }
.wl-break { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.wl-card-h + .wl-break { border-top: 0; }
.wl-break > span:first-child { display: flex; flex-direction: column; }
.wl-break .muted { font-size: 12.5px; }

/* Statement (printable) */
.wl-st-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; max-width: 820px; margin: 0 auto; width: 100%; }
.wl-st-bar .wl-btn { width: auto; }
.wl-statement { background: #fff; color: #16201C; max-width: 820px; width: calc(100% - 24px); margin: 0 auto 32px; padding: 28px; border-radius: 12px; border: 1px solid #E4E1D9; font-size: 13px; }
.wl-statement header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid #1F4A3C; padding-bottom: 14px; }
.wl-statement .wl-brand { color: #16201C; }
.wl-st-title { text-align: right; display: flex; flex-direction: column; }
.wl-st-title b { font-size: 18px; }
.wl-st-test { margin: 14px 0; padding: 6px 10px; border: 1.5px dashed #9A6200; color: #6B4E0E; background: #FBF1DC; font-weight: 700; font-size: 11.5px; text-align: center; letter-spacing: .02em; border-radius: 6px; }
.wl-st-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.wl-st-meta div, .wl-st-sum div { display: flex; flex-direction: column; gap: 2px; }
.wl-st-meta span, .wl-st-sum span { color: #66726D; font-size: 11.5px; }
.wl-st-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px; background: #F5F4F0; border-radius: 8px; margin-bottom: 16px; }
.wl-st-sum b { font-size: 14px; }
.wl-st-table { width: 100%; border-collapse: collapse; }
.wl-st-table th { text-align: left; font-size: 11px; color: #66726D; font-weight: 600; border-bottom: 1px solid #D3CFC4; padding: 6px 4px; }
.wl-st-table td { padding: 7px 4px; border-bottom: 1px solid #EFEDE7; vertical-align: top; }
.wl-st-table .r { text-align: right; white-space: nowrap; }
.wl-statement footer { margin-top: 18px; color: #66726D; font-size: 11px; }
@media (max-width: 520px) { .wl-st-sum { grid-template-columns: 1fr 1fr; } .wl-st-meta { grid-template-columns: 1fr; } .wl-statement { padding: 18px; } }
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; }
  .no-print, .wl-tabs, .wl-top, .toasts { display: none !important; }
  .wl-statement { border: 0; padding: 0; margin: 0; width: 100%; max-width: none; border-radius: 0; }
}

/* ===== Business account inside the wallet ===== */
.wl-acct { margin-bottom: 2px; }
.wl-acct a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.wl-seg button { flex: 1; border: 0; background: none; padding: 8px 6px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.wl-seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.wl-balance.wl-bizcard { background: radial-gradient(120% 140% at 100% 0%, #C9643F 0%, #9A3822 48%, #5E2214 100%); }
.wl-balance.wl-bizcard::after { border-color: rgba(244, 239, 230, .12); }
.wl-today { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-size: 13.5px; font-weight: 600; }
.wl-scan-ico.biz { background: #9A3822; }
.wl-scan.till .wl-scan-ico { background: var(--gold); color: #3b2a06; }
.wl-bizcta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: var(--ink);
  border: 1.5px dashed var(--line-strong, var(--line)); background: transparent; }
.wl-bizcta:hover { background: var(--surface-2); }
.wl-bizcta > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wl-bizcta > span:nth-child(2) span { color: var(--muted); font-size: 13px; }
.wl-bizperks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.wl-bizperks li { display: flex; gap: 12px; align-items: flex-start; }
.wl-bizperks li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.wl-bizperks li > span:last-child span { color: var(--muted); font-size: 13px; }
.wl-bizcode { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: .18em; padding: 4px 14px; border-radius: 10px; background: var(--sunken); }
.wl-payroll { display: grid; gap: 12px; }
.wl-pay-line { display: grid; grid-template-columns: 1fr 110px; gap: 8px; padding: 12px; border-radius: 14px; background: var(--sunken); }
.wl-pay-line .wl-pay-who, .wl-pay-line [name=note] { grid-column: 1 / -1; }
.wl-pay-who { display: flex; justify-content: space-between; align-items: center; min-height: 4px; }
.wl-payee { display: flex; align-items: center; gap: 14px; }
.wl-payee > div { display: flex; flex-direction: column; gap: 2px; }
.wl-payee b { font-size: 17px; }
.link.danger { color: var(--bad); }
@media print {
  .wl-top, .wl-tabs, .wl-note, .no-print, .wl-card-h, .wl-kpi { display: none !important; }
  .wl-receive { box-shadow: none; border: 0; }
}

/* ===== Computer screens: the menu becomes a sidebar, content gets room ===== */
.wl-side-brand, .wl-tab.desk, .wl-side-app { display: none; }
.wl-tabs.desk-only { display: none; }
@media (min-width: 1024px) {
  .wl-tabs, .wl-tabs.desk-only { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 2px;
    top: 0; bottom: 0; right: auto; width: 232px; padding: 18px 12px; border-top: 0; border-right: 1px solid var(--line); background: var(--surface); }
  .wl-side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
  .wl-side-brand i { color: var(--terra); font-style: normal; }
  .wl-side-brand small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 1px; }
  .wl-tab, .wl-tab.desk { display: flex; flex: 0 0 auto; max-width: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 12px; font-size: 14.5px; border-radius: 10px; }
  .wl-tab:hover { background: var(--surface-2); color: var(--ink); }
  .wl-tab.on { background: var(--terra-soft); color: var(--terra); }
  .wl-side-app { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; border: 1px dashed var(--line-strong); }
  .wl-side-app:hover { color: var(--ink); background: var(--surface-2); }
  .wl-top { margin-left: 232px; padding: 14px 32px; }
  .wl-top .wl-brand { visibility: hidden; }
  .wl, .wl.with-tabs { margin-left: 232px; margin-right: 0; width: auto; max-width: none; padding: 8px 32px 48px; align-items: stretch; }
  .wl > * { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }
  .wl.wide > * { max-width: none; }
  .wl.wide { max-width: calc(1180px + 232px); padding-right: 32px; }
  .wl-h1 { font-size: 30px; }
  /* Home: money and actions on the left, activity on the right */
  .wl.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); column-gap: 28px; row-gap: 16px; align-content: start; }
  .wl.home > * { grid-column: 1; }
  .wl.home > .wl-col2 { grid-column: 2; grid-row: 1 / span 30; align-self: start; position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; }
  .wl-balance { padding: 26px 28px 28px; }
  .wl-bal { font-size: 52px; }
  .wl-toast-area, .toasts { left: auto; right: 24px; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .wl.home { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* Get the app */
.wl-getapp { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; border: 1px dashed var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.wl-getapp:hover { background: var(--surface-2); }
.wl-appgrid { display: grid; gap: 16px; }
.wl-appcard { display: flex; gap: 16px; align-items: flex-start; }
.wl-appcard h2 { font-size: 17px; margin: 2px 0 4px; }
.wl-appcard p { margin: 0 0 14px; font-size: 14px; }
.wl-appcard > div { flex: 1; min-width: 0; }
.wl-appcard.on { border-color: var(--terra); box-shadow: 0 0 0 1px var(--terra), var(--shadow); }
.wl-appcard .how-list { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); display: grid; gap: 4px; }
.wl-appcard .stack { display: grid; gap: 10px; }
@media (min-width: 1024px) { .wl-appgrid { grid-template-columns: repeat(3, 1fr); } .wl-appcard { flex-direction: column; } }

/* ---------- Business verification ---------- */
.wl-bizname { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.wl-verified { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 6px; border-radius: 99px; font-size: 11.5px; font-weight: 700;
  background: var(--ok-soft); color: var(--ok); line-height: 1.5; white-space: nowrap; }
.wl-balance .wl-verified { background: rgba(255, 255, 255, .18); color: #fff; }
.wl-verify-cta .wl-scan-ico { background: var(--ok-soft); color: var(--ok); }
.wl-verify-cta.warn { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.wl-verify-cta.warn .wl-scan-ico { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.wl-docs { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.wl-doc { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 14px; }
.wl-doc.done { border-style: solid; }
.wl-doc.busy { opacity: .55; pointer-events: none; }
.wl-doc .wl-entry-t { flex: 1; min-width: 0; }
.wl-doc .wl-entry-t span { overflow: hidden; text-overflow: ellipsis; }
.wl-certify { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 16px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.wl-certify input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--ok); }
.wl-limits-up { display: flex; align-items: center; justify-content: space-around; gap: 10px; text-align: center; }
.wl-limits-up > div { display: flex; flex-direction: column; gap: 2px; }
.wl-limits-up b { font-size: 18px; }
.wl-limits-up b.in { color: var(--ok); }
.wl-alert.warn { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid color-mix(in srgb, var(--warn) 55%, var(--line)); }
.wl-alert.warn > svg { color: var(--warn); flex: none; margin-top: 2px; }
.wl-alert.warn p { margin: 4px 0 0; }
@media (max-width: 420px) { .wl-doc { flex-wrap: wrap; } .wl-doc .wl-btn { margin-left: auto; } }
.wl-doc .wl-entry-t b { white-space: normal; overflow: visible; }
.wl-doc > .link { font-size: 13.5px; }

/* ---------- Inside the installed app: first screen like a banking app ---------- */
.wl-appstart { min-height: calc(100dvh - 140px); justify-content: center; text-align: center; gap: 14px; padding-bottom: 24px; }
.wl-appstart-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 6px; }
.wl-appstart-brand img { border-radius: 18px; box-shadow: 0 14px 32px -14px rgba(178, 67, 42, .55); }
.wl-appstart-word { font-size: 26px; font-weight: 750; letter-spacing: -0.03em; }
.wl-appstart-word i { color: var(--terra); font-style: normal; }
.wl-appstart h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.wl-appstart > p.muted { margin: -6px 0 4px; font-size: 15px; }
.wl-appstart .wl-card { text-align: left; }
.wl-appstart .wl-note { justify-content: center; }
.in-app body { -webkit-user-select: none; user-select: none; overscroll-behavior-y: none; }
.in-app input, .in-app textarea { -webkit-user-select: text; user-select: text; }

/* ---------- Business account not verified yet ---------- */
.wl-balance.wl-bizcard.is-locked { filter: saturate(.55); }
.wl-inactive { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 7px; border-radius: 99px; font-size: 11.5px; font-weight: 700;
  background: rgba(255, 255, 255, .16); color: #fff; white-space: nowrap; }
.wl-verify-start { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 20px; }
.wl-verify-start .wl-scan-ico { background: var(--ok-soft); color: var(--ok); width: 52px; height: 52px; }
.wl-verify-start.warn .wl-scan-ico { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.wl-verify-start h2 { margin: 4px 0 0; font-size: 19px; }
.wl-verify-start p { margin: 0 0 8px; max-width: 38ch; line-height: 1.5; }
.wl-verify-start .wl-btn { width: 100%; max-width: 340px; }
.wl-card-t { font-size: 15px; margin: 0 0 10px; }
.wl-locklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.wl-locklist li { display: flex; align-items: center; gap: 10px; }
.wl-locklist .wl-ico { width: 32px; height: 32px; }

/* Home: "Scan to pay" and "My QR code" side by side */
.wl-qrrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wl-qrrow .wl-scan { padding: 12px; gap: 10px; }
.wl-qrrow .wl-scan b { font-size: 14.5px; }
.wl-qrrow .wl-scan span span { font-size: 12.5px; line-height: 1.3; }
.wl-qrrow .wl-scan .wl-scan-ico { width: 40px; height: 40px; }
.wl-qrrow .wl-scan.mine .wl-scan-ico { background: var(--forest, #1F4A3C); }
@media (max-width: 340px) { .wl-qrrow { grid-template-columns: 1fr; } }

/* 0.9.11: lock screen shows which wallet it is (masked number); error and offline screens */
.wl-lock .wl-lock-phone { font-size: 14px; color: var(--ink-2, var(--muted)); letter-spacing: 0.02em; margin-bottom: 4px; }
.wl-state .wl-btn .icon, .wl-state .wl-btn svg { margin-right: 6px; vertical-align: -3px; }

/* 0.9.12: statement – money on its way out (pending withdrawals), listed apart from the balance */
.wl-st-pending { margin-top: 16px; display: grid; gap: 8px; }
.wl-st-pending > b { font-size: 13px; }

/* Njangi member rows: badges stack on the right, the name keeps its space */
.wl-member .wl-entry-t { min-width: 0; flex: 1 1 auto; }
.wl-member .wl-entry-t span { white-space: nowrap; }
.wl-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

/* 0.9.13 accessibility: thumb-size targets, requests on two lines */
.wl-chip { min-height: 40px; }
.wl-seg a, .wl-seg button { min-height: 40px; display: flex; align-items: center; justify-content: center; }
.wl-member button { min-width: 32px; min-height: 32px; }
.wl-add-row .btn { min-height: 40px; }
.wl-tab { min-height: 48px; }
@media (max-width: 600px) { .wl-eye { width: 40px; height: 40px; } }
/* Requests list: name and action may take two lines on a phone instead of being cut ("Boris vous demande…") */
.wl-entry.wl-req .wl-entry-t b { white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.3; }

/* ---------- 0.9.14 safety screens: terms line, limits meter, PEP question ---------- */
.wl-terms { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--faint); text-align: center; }
.wl-terms .link { font-size: inherit; }
.wl-meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 12px 0 4px; }
.wl-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--forest); }
.wl-break.current { background: var(--ok-soft); }
.wl-pep { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; min-width: 0; }
.wl-pep legend { padding: 0 4px; line-height: 1.4; }
.wl-radios { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px; }
.wl-radios label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* 0.9.15: close my wallet (buttons to empty it), My devices */
.wl-close-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wl-device .wl-entry-t span.warn { color: var(--warn); }
.wl-device.current { background: var(--surface-2); }
