/* NoCard app — paper surface, full-contrast rules, no framework, no build step. */

:root {
  color-scheme: light;
  --bg: #f2f1ee;
  --bg-2: #e6e5e1;
  --surface: transparent;
  --fg: #0a0a0b;
  --quiet: #6f6d68;
  --muted: #b6b4ae;
  --accent: #8f1d1d;
  --line: #0a0a0b;
  --line-strong: #0a0a0b;
  --rule-soft: rgba(10, 10, 11, 0.22);
  --bar: #0a0a0b;
  --void: #060607;
  --bone: #ece7dc;

  --paper: var(--bg);
  --ink: var(--fg);
  --paper-2: var(--bg-2);
  --muted-strong: var(--quiet);
  --destructive: var(--accent);

  --radius-card: 28px;
  --radius-pill: 999px;
  --rule: 1.5px;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0b0c;
    --bg-2: #1b1b1f;
    --surface: #121214;
    --fg: #e8e8e7;
    --quiet: #9a9a9f;
    --muted: #5c5c63;
    --accent: #cf5b57;
    --line: #2c2c31;
    --line-strong: #4f4f57;
    --rule-soft: #1e1e22;
    --bar: #cfcfcc;
  }
}

/* Keep this block and the prefers-color-scheme block above identical. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-2: #1b1b1f;
  --surface: #121214;
  --fg: #e8e8e7;
  --quiet: #9a9a9f;
  --muted: #5c5c63;
  --accent: #cf5b57;
  --line: #2c2c31;
  --line-strong: #4f4f57;
  --rule-soft: #1e1e22;
  --bar: #cfcfcc;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  --btn-bg: var(--bg-2);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

body.void {
  --bg: var(--void);
  --fg: var(--bone);
  --btn-bg: #161618;
  --quiet: #8f8d87;
}

.shell-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 40px;
}

a { color: inherit; text-decoration: none; }

.icon { width: 22px; height: 22px; display: block; }

/* Top bar: one full-width pill holding the brand. */
.topbar { display: flex; align-items: center; gap: 20px; }

.brand-pill {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 10px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand .burst { width: 25px; height: 25px; align-self: center; }
.brand .tld { font-weight: 400; font-size: 18px; letter-spacing: -0.01em; }

/* Page head: kicker above a left-aligned title, actions on the right.
   It lives inside <main> so it shares the cards' left edge. */
.pagehead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 6px 2px 18px;
}

.pagehead-text { min-width: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--quiet);
}

.pagehead h1 {
  margin: 5px 0 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pagehead h1.code-title {
  font-family: var(--mono);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.lede {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--quiet);
}

.pagehead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Shell: icon rail plus content. */
.shell {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 8px;
}

.shell > main { min-width: 0; }

.rail {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
}

.rail a {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.rail a:hover,
.rail a[aria-current="page"] { background: var(--fg); color: var(--bg); }

.rail a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.rail-label {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 5;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-4px, -50%);
  pointer-events: none;
}

.rail a:hover .rail-label,
.rail a:focus-visible .rail-label { opacity: 1; transform: translate(0, -50%); }

.rail-primary { background: var(--fg); color: var(--bg); }
.rail-primary:hover { background: var(--bg); color: var(--fg); outline: 2px solid var(--line); outline-offset: 0; }

.badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--bg);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
}

.rail a[aria-current="page"] .badge { border-color: var(--fg); }

.rail hr {
  width: 24px;
  margin: 5px 0;
  border: 0;
  border-top: 1px solid var(--line);
  opacity: 0.18;
}

.card {
  position: relative;
  min-width: 0;
  border: var(--rule) solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 20px 22px 22px;
}

.card + .card { margin-top: 16px; }

.card-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: var(--rule) solid var(--line);
  border-radius: 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--bg); color: var(--fg); }
.btn-secondary { background: var(--btn-bg); color: inherit; }
.btn-secondary:hover { background: var(--fg); color: var(--bg); }
.btn-primary .icon,
.btn-secondary .icon { width: 18px; height: 18px; }

.btn-sm { min-height: 44px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 6px;
}

.stat .n {
  font-family: var(--mono);
  font-size: 34px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat .k {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--quiet);
}

/* Chart */
.chart-head { display: flex; align-items: center; gap: 18px; font-size: 14px; }

.legend { display: flex; align-items: center; gap: 7px; }
.legend i { width: 13px; height: 13px; border-radius: 50%; background: var(--bar); }
.legend i.dim { background: var(--muted); }

.watermark {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--muted);
  pointer-events: none;
}

.chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 300px;
  margin-top: 34px;
  padding-bottom: 26px;
  border-bottom: var(--rule) solid var(--line);
}

.trend {
  position: absolute;
  inset: 0 0 26px;
  width: 100%;
  height: calc(100% - 26px);
  overflow: visible;
  pointer-events: none;
}

.trend path {
  fill: none;
  stroke: var(--fg);
  stroke-width: 2;
  stroke-dasharray: 5 6;
  vector-effect: non-scaling-stroke;
}

.col {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bars {
  position: relative;
  width: min(52px, 92%);
  height: 100%;
}

.bar {
  position: absolute;
  inset: auto 0 0;
  border-radius: 24px;
}

.bar.observed { height: calc(var(--o) * 1%); background: var(--muted); }
.bar.matched { bottom: calc((var(--o) - var(--m)) * 1%); height: calc(var(--m) * 1%); background: var(--bar); }

.dot {
  position: absolute;
  left: 50%;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  background: var(--bar);
  top: calc((100 - var(--o)) * 1% - 6px);
}

.month {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--quiet);
  white-space: nowrap;
}

.today {
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

/* Tables */
table { width: 100%; border-collapse: collapse; }

th {
  padding: 0 10px 10px;
  border-bottom: var(--rule) solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--quiet);
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}

tr:last-child td { border-bottom: 0; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.code { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }

.status {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.status.matched { color: var(--fg); }
.status.pending { color: var(--quiet); }
.status.failed { color: var(--destructive); }

.muted { color: var(--quiet); }

/* Filter pills: they filter a list; they are not status labels. */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }

.filter {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--quiet);
}

.filter:hover { color: var(--fg); border-color: var(--line); }
.filter.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Needs attention: the next action, before the charts. */
.priority {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.priority h2 { margin: 6px 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.priority p { margin: 0; max-width: 64ch; color: var(--quiet); font-size: 14px; }

/* A code the merchant or buyer can select and copy. */
.codeinput {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: clamp(22px, 5vw, 30px);
  letter-spacing: 0.06em;
}

.codeinput:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 5px; border-radius: 6px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Journal */
.entry {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.entry:last-child { border-bottom: 0; }
.entry .meta { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--quiet); }
.entry .what { margin: 4px 0 2px; font-size: 16px; }

.postings { display: grid; gap: 4px; }

.posting {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 7px 10px;
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
}

.posting .acct { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--quiet); }

.input {
  width: 100%;
  padding: 12px 14px;
  border: var(--rule) solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-family: var(--sans);
  font-size: 15px;
}

.input.mono { font-family: var(--mono); font-size: 14px; }

.dropzone {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 180px;
  padding: 24px;
  border: 2px dashed var(--line);
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
}

.dropzone:hover { background: var(--bg-2); }
.dropzone:focus-within { outline: 2px solid var(--line-strong); outline-offset: 3px; }
.dropzone-title { font-size: 18px; }
.dropzone .note { font-size: 13px; }

.note { font-size: 13px; color: var(--quiet); }

.footerbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 18px 6px 0;
  font-size: 14px;
}

.footerbar .left { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.footerbar .mid { margin: 0 auto; }

.link-more { font-size: 14px; }
.link-more:hover { text-decoration: underline; }

.theme-toggle:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.filter:focus-visible,
.linkbox:focus-visible,
.link-more:focus-visible,
.step a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; flex-direction: row; justify-content: flex-start; overflow-x: auto; padding: 6px 8px; }
  .rail hr { width: 1px; height: 22px; border-top: 0; border-left: 1px solid var(--line); margin: 0 4px; }
  .rail-label { display: none; }
  .rail a { width: 44px; height: 44px; }
  .brand-pill .theme-toggle { width: 44px; height: 44px; }
  .pagehead h1 { font-size: 28px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry { grid-template-columns: 1fr; }
  .chart { height: 220px; gap: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary, .btn-secondary, .rail a { transition: background-color 90ms linear, color 90ms linear; }
}

.tablewrap { overflow-x: auto; }

@media (max-width: 560px) {
  .shell-page { padding: 12px 12px 32px; }
  .card { padding: 16px; border-radius: 22px; }
  .stats { gap: 12px; }
  .stat .n { font-size: 24px; }
  .footerbar { gap: 12px; }
  .chart { gap: 4px; height: 200px; }
  .bars { width: min(26px, 88%); }
  .month { font-size: 9px; letter-spacing: 0.04em; }
  .today { font-size: 16px; }
  .pagehead { padding-bottom: 14px; }
  .pagehead h1 { font-size: 26px; }
  .pagehead-actions { width: 100%; }
  .watermark { display: none; }
  .filter { min-height: 44px; }

  /* Tables become labelled rows; the status column is never off-screen. */
  .tablewrap { overflow-x: visible; }
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 3px 16px;
    padding: 3px 0;
    border: 0;
    text-align: right;
  }
  table.stack td::before {
    content: attr(data-label);
    flex: none;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--quiet);
    text-align: left;
  }
  table.stack td:first-child { padding-top: 0; }
  table.stack td:last-child { padding-bottom: 0; }

  /* Prose rows: label above value, both left-aligned. */
  table.stack.stack-block td {
    display: block;
    text-align: left;
  }
  table.stack.stack-block td::before {
    display: block;
    margin-bottom: 2px;
  }
}

/* Theme toggle */
.theme-toggle {
  margin-left: auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: var(--rule) solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.theme-toggle:hover { background: var(--fg); color: var(--bg); }
.theme-toggle .icon { width: 19px; height: 19px; }

/* Flow */
.flow-wrap { max-width: 760px; }
.flow-list { list-style: none; margin: 0; padding: 0; position: relative; }
.flow-list::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 14px;
  bottom: 14px;
  border-left: 2px solid var(--line);
  opacity: 0.18;
}
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
.step .no {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
}
.step .lane {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}
.step h3 { margin: 3px 0 4px; font-size: 20px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--quiet); max-width: 62ch; }
.step a { display: inline-block; margin-top: 9px; font-family: var(--mono); font-size: 12px; border-bottom: 1px solid var(--line); }
.step.buyer .no { background: var(--fg); color: var(--bg); }

/* Buyer payment page */
body.pay {
  overflow-x: clip;
  --bg: #09090a;
  --fg: #ededec;
  --quiet: #9a9a9f;
  --line: #2a2a2e;
  --line-strong: #4a4a52;
  --rule-soft: rgba(237, 237, 236, 0.14);
  background: var(--bg);
  color: var(--fg);
}
.pay-glow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.pay-orb {
  position: absolute;
  top: -260px;
  left: 50%;
  width: 720px;
  height: 520px;
  transform: translateX(-50%);
  background: conic-gradient(from 210deg, #ff9e3d, #8b5cf6, #22d3ee, #f472b6, #ff9e3d);
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}
.pay-top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
.pay-top .brand { font-size: 20px; }
.pay-top .burst { width: 19px; height: 19px; }
.pay-main { position: relative; max-width: 520px; margin: 0 auto; padding: 8px 20px 64px; }
.pay-merchant {
  margin: 24px 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}
.pay-amount { margin: 0; font-family: var(--serif); font-size: 76px; font-weight: 400; line-height: 1; letter-spacing: -0.035em; }
.pay-desc { margin: 10px 0 20px; color: var(--quiet); }
.pay-hint { margin: 0 0 18px; font-size: 14px; color: var(--quiet); }

.pay-steps { list-style: none; margin: 0 0 24px; padding: 0; border-top: 2px solid var(--line); }
.pay-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule-soft); font-size: 14px; }
.pay-steps .n { font-family: var(--mono); font-size: 11px; color: var(--quiet); padding-top: 2px; }

.bank { margin: 0 0 22px; border-top: 2px solid var(--line); }
.bank div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--rule-soft); }
.bank dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--quiet); }
.bank dd { margin: 0; font-family: var(--mono); font-size: 14px; }
.code-box { margin-bottom: 22px; padding: 16px; border: 2px dashed var(--line); border-radius: 18px; }
.code-box .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--quiet); }
.code-box .codeinput { margin: 6px 0 4px; }
.code-box p { margin: 0; font-size: 13px; color: var(--quiet); }
.code-box .hint { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.pay details { padding: 14px 0; border-top: 1px solid var(--rule-soft); }
.pay summary { cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.pay details p { color: var(--quiet); font-size: 14px; }
.pay-fine { margin-top: 26px; font-size: 12px; line-height: 1.5; color: var(--quiet); }

/* Forms, charge detail, timeline */
.form-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); }
.linkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: var(--rule) solid var(--line);
  border-radius: 14px;
  font-family: var(--mono);
  font-size: 14px;
}

.linkbox:hover { background: var(--fg); color: var(--bg); }
.linkbox .cta { font-family: var(--sans); font-weight: 600; }

.amount-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin: 2px 0 18px; }
.bigamount { font-family: var(--mono); font-size: 30px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }

@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-width: 820px) {
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { .pay-top > span:last-child { display: none; } }
