:root {
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #0c1a30;
  --ink-2: #3d495c;
  --ink-3: #596579;
  --line: #e3dfd4;
  --line-strong: #8a8472;
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --on-navy: #f4f7fb;
  --on-navy-2: #b9c6da;
  --accent: #0b7a66;
  --accent-soft: #dff1ec;
  --focus: #0b7a66;
  --btn-bg: #0b7a66;
  --btn-bg-hover: #096655;
  --btn-ink: #ffffff;
  --pending-bg: #fff1d6;
  --pending-ink: #764700;
  --settled-bg: #dff3e8;
  --settled-ink: #0d5a38;
  --failed-bg: #fce4e4;
  --failed-ink: #9b1c1c;
  --declined-bg: #ece7df;
  --declined-ink: #4f3d2d;
  --danger: #a4262c;
  --danger-soft: #fdecec;
  --shadow: 0 1px 2px rgb(12 26 48 / 0.05), 0 8px 24px -12px rgb(12 26 48 / 0.18);
  --radius: 16px;
  --radius-sm: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09111f;
    --surface: #101b2e;
    --surface-2: #0c1626;
    --ink: #edf1f7;
    --ink-2: #b4bfd0;
    --ink-3: #93a0b5;
    --line: #213049;
    --line-strong: #5b7096;
    --navy: #0f2747;
    --navy-2: #173c6b;
    --accent: #3fcfaa;
    --accent-soft: #123a35;
    --focus: #5fe0be;
    --btn-bg: #3fcfaa;
    --btn-bg-hover: #5fe0be;
    --btn-ink: #04211a;
    --pending-bg: #3a2c0c;
    --pending-ink: #ffd27a;
    --settled-bg: #0f3324;
    --settled-ink: #7fe0ac;
    --failed-bg: #3d1618;
    --failed-ink: #ffa9a9;
    --declined-bg: #2b2620;
    --declined-ink: #e3d2bf;
    --danger: #ff9b9b;
    --danger-soft: #3d1618;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
h2 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 600; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
svg { flex: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.money, .num, .tx-amount, .hero-amount, .stat dd, .sheet-amount, .amount-big, .amount-input, .avail strong, .spend-line strong, .receipt-row dd { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink);
  padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
