:root {
  --bg: #f4f6f5; --card: #ffffff; --ink: #10201e; --muted: #55635f; --line: #dfe5e3;
  --accent: #0c6b63; --accent-ink: #ffffff; --accent-soft: #e2f1ee; --good: #0f7a3f; --good-bg: #e4f4ea;
  --warn: #7f5200; --warn-bg: #fff3d2; --bad: #b02a1c; --bad-bg: #fdecea; --code: #edf1ef; --radius: 16px; --chart: #008a7a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1211; --card: #131c1a; --ink: #e8efed; --muted: #a0afab; --line: #26332f;
    --accent: #3fd0bd; --accent-ink: #06201c; --accent-soft: #123430; --good: #5ad98f; --good-bg: #12301f;
    --warn: #f2c14e; --warn-bg: #33290f; --bad: #ff8a80; --bad-bg: #3a1714; --code: #1c2825; --chart: #1fa898; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1211; --card: #131c1a; --ink: #e8efed; --muted: #a0afab; --line: #26332f;
  --accent: #3fd0bd; --accent-ink: #06201c; --accent-soft: #123430; --good: #5ad98f; --good-bg: #12301f;
  --warn: #f2c14e; --warn-bg: #33290f; --bad: #ff8a80; --bad-bg: #3a1714; --code: #1c2825; --chart: #1fa898; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: anywhere; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.hint { font-size: 15px; margin: 6px 0; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.gap { gap: 10px; }
.grow { flex: 1 1 180px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top .row { justify-content: space-between; min-height: 58px; gap: 4px 12px; padding-top: 6px; padding-bottom: 6px; }
.brand { font-weight: 750; font-size: 20px; display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 2px 14px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 16px; padding: 6px 0; }
nav a:hover { color: var(--ink); }

/* type */
main { padding: 18px 0 8px; }
h1 { font-size: 34px; line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: 21px; line-height: 1.25; margin: 14px 0 6px; }
.card h2:first-child { margin-top: 0; }
h3 { font-size: 20px; margin: 0 0 6px; }
p { margin: 8px 0; }
a { color: var(--accent); }
code { background: var(--code); border-radius: 6px; padding: 1px 6px; font: 15px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--code); border-radius: 12px; padding: 12px; overflow-x: auto; font-size: 13.5px; margin: 10px 0 0; }
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; white-space: pre; }

/* hero */
.hero { padding: 14px 2px 18px; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 18px; }
.heroart { display: block; width: 100%; height: auto; margin: 20px 0 4px; }
.heroline { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 16px 0 0; color: var(--muted); font-size: 15.5px; }
.heroline b { color: var(--ink); }
.steps3 { display: grid; gap: 10px; margin: 0 0 16px; }
.steps3 > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.steps3 p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
@media (min-width: 720px) { .steps3 { grid-template-columns: repeat(3, 1fr); } h1 { font-size: 46px; } }

/* cards */
.card { scroll-margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin: 0 0 16px; }
@media (min-width: 600px) { .card { padding: 24px; } }
.banner { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-weight: 600; }

/* invoice */
.invoice { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.amount { font-size: 44px; line-height: 1.15; font-weight: 780; letter-spacing: -0.02em; }
.amount .unit { font-size: 20px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.to, .ref { color: var(--muted); font-size: 16px; margin-top: 4px; }
.badge { display: inline-block; margin-top: 10px; padding: 7px 12px; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.badge:empty { display: none; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.earnnote { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 15.5px; }

/* wallet */
.walletbox { margin: 0 0 12px; }
.walletlist { display: grid; gap: 8px; margin-top: 8px; }
#wallet-on { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); display: inline-block; }
.openin { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15.5px; margin-top: 8px; }
.openin .muted { flex-basis: 100%; }
.openin a { padding: 6px 0; font-weight: 600; }

/* assets */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 10px; }
@media (min-width: 600px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chip { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 12px; padding: 9px 12px; min-height: 58px; font-size: 16px; line-height: 1.25; text-align: left; cursor: pointer; }
.chip b { display: block; font-weight: 700; }
.chip span { color: var(--muted); font-size: 14.5px; }
.chip[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding: 2px; }
@media (min-width: 600px) { .results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.estimate { min-height: 24px; margin: 8px 0; font-size: 16px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.field > span { font-size: 16px; font-weight: 600; }
.field small { font-size: 14.5px; }
input { font: inherit; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; min-width: 0; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.toggle { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; margin: 10px 0 14px; }
.toggle input, .radio input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.settle { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 10px 0 14px; min-width: 0; }
.settle legend { font-weight: 600; font-size: 16px; padding: 0 6px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 16px; }
button, .button { font: inherit; font-weight: 650; border-radius: 12px; padding: 12px 18px; min-height: 48px; cursor: pointer; border: 1px solid var(--line); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.chip { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; font-weight: 400; }
button.primary, .button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.primary:disabled { opacity: .5; cursor: not-allowed; }
button.ghost, .button.ghost { background: transparent; color: var(--ink); }
button.ghost:disabled { opacity: .55; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 6px 0; min-height: 36px; color: var(--accent); font-weight: 600; text-decoration: underline; justify-content: flex-start; }
.wide { width: 100%; }
.error { background: var(--bad-bg); color: var(--bad); padding: 12px 14px; border-radius: 12px; margin-top: 10px; font-size: 16px; }

/* deposit */
.depgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .depgrid { grid-template-columns: 1fr 240px; align-items: start; } }
.kv { display: flex; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 16px; flex-wrap: wrap; }
.kv.stack { border-bottom: 0; padding-bottom: 0; }
.kv > span:first-child { color: var(--muted); }
.big { font-size: 22px; line-height: 1.25; }
.pill { font-size: 14px; background: var(--code); border-radius: 999px; padding: 2px 9px; color: var(--muted); white-space: nowrap; }
.addr { display: flex; gap: 8px; align-items: stretch; margin: 6px 0; }
.addr code { flex: 1; padding: 11px; font-size: 16px; min-width: 0; }
.qrbox { text-align: center; }
.qrbox img { background: #fff; padding: 8px; border-radius: 12px; width: 232px; height: 232px; max-width: 100%; image-rendering: pixelated; }
.req { background: var(--warn-bg); border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 16px; }
.req p { margin: 4px 0 6px; }
.req ul { margin: 0; padding-left: 20px; }
.topup { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-weight: 600; }
details { margin-top: 12px; font-size: 15.5px; }
summary { cursor: pointer; padding: 6px 0; }
details .row { margin-top: 8px; }
details input { flex: 1 1 200px; }

/* authorise */
.facts { margin: 8px 0; padding: 0; list-style: none; }
.facts li { padding: 9px 0 9px 28px; border-bottom: 1px dashed var(--line); position: relative; font-size: 16px; }
.facts li::before { content: "✓"; position: absolute; left: 4px; color: var(--good); font-weight: 800; }
.state { font-weight: 650; min-height: 26px; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.timeline li { padding: 11px 0 11px 30px; position: relative; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 16px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 16px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.timeline li.active { color: var(--ink); font-weight: 650; }
.timeline li.active::before { border-color: var(--accent); background: var(--accent); animation: pulse 1.4s infinite; }
.timeline li.warn { color: var(--warn); font-weight: 650; }
.timeline li.warn::before { border-color: var(--warn); background: var(--warn); }
.timeline li.done { color: var(--good); }
.timeline li.done::before { border-color: var(--good); background: var(--good); }
.timeline .t { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
.timeline .t:empty { display: none; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .timeline li.active::before { animation: none; } }
.result { margin-top: 16px; padding: 14px 16px; border-radius: 12px; }
.result.ok { background: var(--good-bg); }
.result.refund { background: var(--warn-bg); }
.result.fail, .result.expired { background: var(--bad-bg); }
.result ul { margin: 6px 0 0; padding-left: 20px; font-size: 16px; }

/* receipt + merchant */
.rows { margin: 12px 0; }
.rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat span { display: block; font-size: 15px; }
.stat b { font-size: 22px; }

/* earn */
.flow { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; counter-reset: f; }
.flow li { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; }
.flow b { display: block; }
.flow span { color: var(--muted); font-size: 15px; }
@media (min-width: 640px) { .flow { grid-template-columns: repeat(4, 1fr); } }

/* proof: cards on phones, table on wide screens */
#proof-table { margin-top: 10px; }
.proof { border-top: 1px solid var(--line); padding: 12px 0; }
.proof b { display: block; }
.proof .note { color: var(--muted); font-size: 15px; margin: 2px 0 6px; }
.proof .links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15.5px; }
.proof .out { font-size: 15.5px; margin-top: 6px; }
.proof .chk { margin-top: 8px; min-height: 44px; padding: 8px 14px; }
.proof .out .when { font-weight: 600; }
.proof .out.ok .when::before { content: '✓ '; color: var(--good); }
.proof .pending { font-size: 15px; margin-top: 4px; }
.proof .pending:empty { display: none; }
.fees { margin-top: 6px; }
.apians { font-size: 15px; margin: 8px 0 4px; overflow-wrap: anywhere; }
.apians:empty { display: none; }
#btn-ask-api { min-height: 44px; }
.fees .feeline { margin: 4px 0; font-size: 15px; overflow-wrap: anywhere; }
.fees details { margin-top: 2px; }
.fees summary { cursor: pointer; color: var(--accent); font-size: 15px; min-height: 32px; display: flex; align-items: center; }
.feetab { width: 100%; border-collapse: collapse; margin: 6px 0 8px; font-size: 14.5px; }
.feetab td { padding: 4px 0; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.feetab td + td { text-align: right; padding-left: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.feetab tr.tot td { font-weight: 600; border-top: 0; }
.feetab tr:not(.tot) td:first-child { padding-left: 14px; color: var(--muted); }
.feetab tr.k-merchant td { color: var(--good); }
.feetab .u { white-space: nowrap; }
@media (max-width: 420px) { .feetab td + td { white-space: normal; overflow-wrap: anywhere; min-width: 7.5em; } }
.proof-head { font-size: 16px; margin: 18px 0 2px; color: var(--accent); }
.proof-head:first-child { margin-top: 10px; }
.proof.fresh { border-left: 3px solid var(--accent); padding-left: 12px; }
.proof .links a, .proof .out a { overflow-wrap: anywhere; }
footer { padding: 8px 16px 32px; font-size: 15px; }

@media (max-width:640px){input,select,textarea{font-size:16px!important}}

/* shared bits */
.wrap.wide { max-width: 1100px; }
.between { justify-content: space-between; gap: 8px; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
@media (max-width: 640px) { #nav:not(.hidden) ~ .navmine { display: none; } }
.navmine { font-size: 15px; font-weight: 650; color: var(--accent); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
button.small { min-height: 38px; padding: 6px 14px; font-size: 15px; }

/* payee: the name if the link has one, and always the full address to compare */
.payee { margin-top: 4px; color: var(--muted); font-size: 16px; }
.payee b { color: var(--ink); font-size: 19px; }
.payee .pn, .pname { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; line-height: 1.3; }
.nametag { display: inline-block; margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; vertical-align: middle; }
.pname + .nametag { margin-left: 0; }
.addrline { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; padding: 6px 8px; word-break: break-all; color: var(--ink); }
.pname { display: block; font-size: 24px; line-height: 1.2; margin-top: 2px; }

/* picked asset: the grid folds into one line */
.picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border: 2px solid var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 8px 14px; margin: 8px 0 10px; font-size: 16px; }
.picked button.link { min-height: 40px; }

/* the pay button stays in reach on a phone */
.paybar { margin-top: 4px; }
.paybar .hint:empty { display: none; }
@media (max-width: 640px) {
  .paybar { position: sticky; bottom: 0; z-index: 3; background: var(--card); margin: 6px -16px -18px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
  .paybar .hint { margin: 6px 0 0; font-size: 14.5px; }
  .chips { gap: 6px; }
  .chip { min-height: 50px; padding: 7px 10px; font-size: 15.5px; }
  .chip span { font-size: 13.5px; }
  .invoice { padding-bottom: 12px; margin-bottom: 12px; }
  .amount { font-size: 40px; }
  .badge { font-size: 14.5px; padding: 6px 10px; }
  .earnnote { font-size: 15px; padding: 8px 10px; }
  .req { font-size: 15px; }
  .kv { font-size: 15.5px; }
  .addr code { font-size: 14.5px; padding: 10px; }
  .qrbox img { width: 208px; height: 208px; }
  h1 { font-size: 30px; }
}
@media (min-width: 360px) and (max-width: 640px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } .results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* first run */
.onb-top { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 14px; }
.onb-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 420px; }
.onb-progress span { height: 6px; border-radius: 99px; background: var(--line); }
.onb-progress span.on { background: var(--accent); }
.onb-progress span.cur { background: linear-gradient(90deg, var(--accent) 55%, var(--line) 55%); }
.onb-step { margin: 0; font-weight: 700; font-size: 15.5px; }
.onb-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.onb-form { margin: 0; }
.onb-form h1 { font-size: 32px; }
.onb-form .lead { font-size: 17.5px; }
@media (min-width: 900px) {
  .onb-grid { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr; grid-template-areas: "form preview" "bar preview"; }
  .onb-bar { align-self: start; }
  .onb-form { grid-area: form; } .onb-preview { grid-area: preview; position: sticky; top: 16px; } .onb-bar { grid-area: bar; }
  .onb-form h1 { font-size: 40px; }
}
.need { background: var(--accent-soft); border-radius: 12px; padding: 10px 14px 10px 32px; margin: 10px 0 6px; font-size: 16px; }
.need li { padding: 2px 0; }
.fieldhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fieldhead label { font-size: 16px; font-weight: 600; }
.check { margin: 4px 0 0; font-size: 15px; min-height: 0; }
.check:empty { display: none; }
.check.good { color: var(--good); } .check.good::before { content: "✓ "; font-weight: 800; }
.check.warn { color: var(--warn); } .check.bad, .check.secret { color: var(--bad); font-weight: 600; }
.check.pending { color: var(--muted); }
.help { border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; margin: 12px 0; }
.help summary { font-weight: 650; }
.seg { display: flex; gap: 4px; background: var(--code); border-radius: 12px; padding: 4px; margin: 8px 0; }
.seg button { flex: 1; min-height: 40px; padding: 6px 8px; border: 0; background: transparent; color: var(--muted); font-size: 15px; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.howto { margin: 6px 0 8px; padding-left: 22px; font-size: 16px; }
.howto li { padding: 3px 0; }
div.howto { padding-left: 0; }
.never { background: var(--bad-bg); border-radius: 12px; padding: 10px 14px; margin: 12px 0 4px; font-size: 15.5px; }
.never b { color: var(--bad); }
.never ul { margin: 4px 0 0; padding-left: 20px; }
.opts { display: grid; gap: 10px; margin: 12px 0; }
.opts.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .opts.two { grid-template-columns: 1fr; } .opt { padding: 10px 12px; } }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: var(--bg); }
.opt input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.opt > span > b { display: block; font-size: 17px; }
.opt > span > span { display: block; font-size: 15px; margin-top: 2px; }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.onb-bar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.onb-bar .primary { flex: 1 1 200px; }
.onb-bar .hint { flex-basis: 100%; margin: 0; }
.onb-bar .hint:empty { display: none; }
@media (max-width: 899px) {
  .onb-bar { position: sticky; bottom: 0; z-index: 3; background: var(--bg); margin: 0 -16px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .onb-bar .hint { text-align: center; font-size: 14.5px; }
}
.onb-preview .prevhead { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 8px; }
.onb-preview .prevhead .eyebrow { margin: 0; }
.phone { border: 1px solid var(--line); border-radius: 26px; background: var(--card); padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.phone-bar { background: var(--code); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-body { padding: 12px 8px 4px; }
.phone-body .amount { font-size: 36px; }
.phone-body .payee b { font-size: 18px; }
.ph { color: var(--muted) !important; font-weight: 500; font-style: italic; }
.pv-fake { margin: 12px 0 8px; background: var(--accent); color: var(--accent-ink); border-radius: 12px; text-align: center; font-weight: 650; padding: 11px; }
.pv-h { font-weight: 700; font-size: 17px; margin: 8px 0 0; }
.pv-chips { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px; }
.pv-chips .chip { min-height: 44px; padding: 6px 8px; font-size: 14px; cursor: default; }
.pv-chips .chip span { font-size: 12.5px; }
.checklist { list-style: none; padding: 0; margin: 8px 0 12px; }
.checklist li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px dashed var(--line); font-size: 16px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--muted); }
.checklist li.done { color: var(--muted); }
.checklist li.done::before { background: var(--good); border-color: var(--good); }
.checklist li.done::after { content: "✓"; position: absolute; left: 6px; top: 8px; color: #fff; font-weight: 800; font-size: 14px; }
.donebox { margin: 14px 0 4px; }
.donebox img { width: 248px; height: 248px; max-width: 100%; background: #fff; padding: 8px; border-radius: 12px; image-rendering: pixelated; }
.welcomeback { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.mylinks { margin: 8px 0 0; padding-left: 20px; font-size: 15.5px; }
.flow.three { counter-reset: none; }
@media (min-width: 640px) { .flow.three { grid-template-columns: repeat(3, 1fr); } }

/* merchant view */
.mhead { margin-bottom: 10px; }
.mhead h1 { margin-bottom: 8px; }
.mhead .addr code { font-size: 14.5px; word-break: break-all; }
.mlinks { margin: 10px 0 4px; }
.mlinks .button { min-height: 44px; padding: 9px 14px; font-size: 16px; }
.tabs { display: flex; gap: 4px; background: var(--code); border-radius: 14px; padding: 4px; margin: 0 0 10px; }
.tabs button { flex: 1; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 16px; padding: 8px 6px; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .stats3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats3 .stat:last-child { grid-column: 1 / -1; } }
.stat b { display: block; line-height: 1.25; margin: 2px 0; }
.stat small { display: block; font-size: 13.5px; line-height: 1.35; }
.welcome { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 14px; padding: 10px 14px 2px; margin: 0 0 12px; }
.welcome .checklist li { border-color: var(--line); }
.chart { position: relative; margin: 8px 0 16px; padding-top: 22px; }
.plot { display: grid; grid-template-columns: repeat(14, 1fr); align-items: end; height: 150px; border-bottom: 1px solid var(--line); }
.col { position: relative; height: 100%; min-height: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; border: 0; background: transparent; border-radius: 0; cursor: pointer; }
.col:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.bar { position: relative; display: block; width: min(24px, 70%); background: var(--chart); border-radius: 4px 4px 0 0; }
.col.hot .bar, .col:hover .bar { filter: brightness(1.12); }
.cap { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-size: 13px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding-top: 4px; }
.tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--ink); color: var(--card); font-size: 13.5px; font-weight: 600; padding: 4px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 2; }
.chart .empty { position: absolute; left: 0; right: 0; top: 70px; text-align: center; margin: 0; font-size: 15px; }
.ledger { margin: 6px 0 4px; }
.lrow { border-top: 1px solid var(--line); padding: 11px 0; }
.ltop { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.ltop b { font-size: 17px; }
.lsub { font-size: 14.5px; margin: 2px 0 4px; }
.lrow .links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.tag { font-size: 13.5px; font-weight: 650; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.wait { background: var(--code); color: var(--muted); }
