/* Vantage Money — colors and type follow the app's own design tokens (src/constants/theme.ts). */
:root {
  --bg: #EDF2F0;
  --surface: #FFFFFF;
  --surface2: #F4F8F6;
  --ink: #0F201B;
  --muted: #687B75;
  --line: #E0E8E5;
  --accent: #12B27A;
  --accent-ink: #0A7A54;
  --accent-soft: #DAF4EA;
  --debt: #E5485D;
  --hero: #0B3A2F;
  --hero-deep: #072A22;
  --hero-mute: rgba(255, 255, 255, 0.68);
  --hero-accent: #3FE0A5;
  --scenario: #6B4EE6;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
p { margin: 0; }
.mint { color: var(--hero-accent); }
.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { width: min(760px, 100% - var(--gutter) * 2); }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.eyebrow-dark { color: var(--hero-accent); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 34em; }
.section-title { font-size: clamp(36px, 5vw, 64px); }
.section-title.light { color: #fff; }

/* ───────── Nav ───────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  /* Logo left, menu centred on the page, Download right. */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  color: #fff;
  transition: background .35s, color .35s, box-shadow .35s;
}
.nav.solid {
  background: rgba(237, 242, 240, 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav.on-dark.solid { background: rgba(7, 42, 34, 0.78); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 28px; grid-column: 2; }
.nav .brand { justify-self: start; }
.nav-cta { grid-column: 3; justify-self: end; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .78; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px;
  transition: transform .2s, background .2s;
}
.nav-cta:hover { background: #0E9F6E; transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 16px; margin-top: -2px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ───────── Phone frame ───────── */
.phone {
  --bezel: clamp(6px, 0.028 * var(--pw, 300px), 12px);
  position: relative;
  width: var(--pw, 300px);
  aspect-ratio: 393 / 852;
  padding: var(--bezel);
  border-radius: calc(var(--pw, 300px) * 0.16);
  background: linear-gradient(145deg, #2B3A36, #0C1513 40%, #1E2B28);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.12),
    0 50px 100px -30px rgba(7, 42, 34, .55),
    0 30px 60px -40px rgba(0, 0, 0, .6);
}
.phone .screen {
  position: relative; width: 100%; height: 100%;
  border-radius: calc(var(--pw, 300px) * 0.135);
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
/* Dynamic Island */
.phone::after {
  content: ""; position: absolute; z-index: 3;
  top: calc(var(--bezel) + var(--pw, 300px) * 0.03); left: 50%;
  width: 30%; height: calc(var(--pw, 300px) * 0.085);
  transform: translateX(-50%);
  border-radius: 999px; background: #000;
}
/* Phones slide up and settle as they come into view */
.phone-in {
  opacity: 0;
  transform: translateY(90px) rotateX(14deg) scale(.94);
  transition: opacity .9s ease, transform 1.3s cubic-bezier(.2,.8,.2,1);
}
.phone-in.in { opacity: 1; transform: none; }

/* ───────── Hero ───────── */
.hero { position: relative; height: 200vh; background: var(--hero); color: #fff; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; justify-items: center;
  padding-top: calc(var(--nav-h) + clamp(20px, 5vh, 56px));
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(63, 224, 165, .28), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, rgba(18, 178, 122, .22), transparent 70%),
    radial-gradient(35% 35% at 10% 30%, rgba(107, 78, 230, .14), transparent 70%);
}
.hero-copy { position: relative; z-index: 2; text-align: center; padding-inline: var(--gutter); will-change: transform, opacity; }
.hero h1 { font-size: clamp(46px, 8.4vw, 116px); letter-spacing: -0.05em; line-height: .98; }
.hero .lede { color: var(--hero-mute); margin: 22px auto 0; }
.hero-actions { margin-top: 30px; display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.store-badge { display: inline-block; transition: transform .2s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 56px; width: auto; }

.hero-phones {
  position: relative; z-index: 1;
  --pw: min(300px, 56vw, 40vh);
  width: var(--pw);
  margin-top: clamp(28px, 6vh, 64px);
  perspective: 1600px;
  will-change: transform;
}
.hero-phones .phone { position: absolute; top: 0; left: 0; }
.hero-phones .phone-main { position: relative; z-index: 2; }
.phone-side { z-index: 1; filter: brightness(.8); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-phones { animation: rise-phones 1.3s .2s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise-phones { from { opacity: 0; translate: 0 120px; } }

/* ───────── Features ───────── */
.features { overflow-x: clip; }
.features-head { text-align: center; margin-bottom: clamp(40px, 6vw, 80px); }
.feature {
  width: min(1180px, 100% - var(--gutter) * 2); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 6vw, 96px);
  min-height: min(100vh, 900px);
  padding: clamp(40px, 6vw, 72px) 0;
  position: relative; isolation: isolate;
}
.feature:nth-of-type(even) .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.12; margin-bottom: 20px; }
.feature-copy p:not(.eyebrow) { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 30em; }
.feature-phone { position: relative; display: grid; place-items: center; perspective: 1600px; }
.feature-phone::before {
  content: ""; position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(18, 178, 122, .16), transparent);
}
.feature-phone .phone { --pw: min(340px, 74vw, 44vh + 40px); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; text-align: center; min-height: 0; gap: 36px; }
  .feature:nth-of-type(even) .feature-copy { order: 0; }
  .feature-copy p:not(.eyebrow) { margin-inline: auto; }
  .feature-phone .phone { --pw: min(300px, 74vw); }
}

/* ───────── Scenarios ───────── */
.scenarios { padding: clamp(96px, 12vw, 150px) 0; overflow: hidden; }
.scenarios-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
/* Second on the page, so its words sit on the right: the sides alternate from the first section down. */
.scenarios-copy { order: 2; }
.scenarios .section-title { margin-bottom: 0; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.12; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  padding: 18px 20px 18px 66px; border-radius: 22px;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: background .4s, box-shadow .4s;
}
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; background: rgba(255,255,255,.1); color: var(--hero-mute);
  transition: background .4s, color .4s;
}
.steps li b { display: block; font-size: 18px; letter-spacing: -0.01em; }
.steps li span { display: block; color: var(--hero-mute); margin-top: 4px; font-size: 15.5px; }
.steps li.on { background: rgba(63, 224, 165, .1); box-shadow: inset 0 0 0 1px rgba(63, 224, 165, .4); }
.steps li.on::before { background: var(--hero-accent); color: var(--hero); }
@media (max-width: 860px) {
  .scenarios-inner { grid-template-columns: 1fr; }
  .scenarios-copy { text-align: center; order: 0; }
  .steps { text-align: left; }
}

/* ───────── Grid ───────── */
.grid-section { padding: clamp(96px, 14vw, 180px) 0; }
.grid-section .section-title { margin-bottom: 56px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 30px;
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -40px rgba(15, 32, 27, .4);
  transition: transform .3s;
}
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: 21px; letter-spacing: -0.02em; margin: 22px 0 8px; }
.card p { color: var(--muted); }
.card-icon { width: 48px; height: 48px; border-radius: 15px; background: var(--accent-soft); display: grid; place-items: center; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } .card { padding: 24px; } }

/* ───────── Pricing ───────── */
.pricing { padding: clamp(80px, 10vw, 140px) 0; text-align: center; }
.pricing .lede { margin: 16px auto 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; margin-top: 48px; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 30px; padding: 30px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -44px rgba(15, 32, 27, .45); }
.plan-best { box-shadow: inset 0 0 0 2px var(--accent), 0 30px 60px -40px rgba(15, 32, 27, .45); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-trial { background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 800; padding: 6px 12px; border-radius: 99px; }
.plan-badge { background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 99px; }
.plan h3 { font-size: 22px; letter-spacing: -0.02em; margin: 22px 0 6px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.plan-price span { color: var(--muted); font-weight: 600; }
.plan-then { color: var(--muted); font-size: 15px; margin: 6px 0 24px; }
.plan .includes { padding: 22px 0 0; border-top: 1px solid var(--line); gap: 14px; }
.includes { list-style: none; margin: 0; display: grid; }
.includes li { position: relative; padding-left: 34px; font-weight: 600; font-size: 15.5px; }
.includes li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7A54' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.plan-cta { display: grid; place-items: center; height: 54px; margin-top: 28px; border-radius: 99px; background: #0E9F6E; color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; transition: transform .2s; }
.plan-cta:hover { transform: translateY(-2px); }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 420px); } }

/* ───────── FAQ ───────── */
.faq { padding: clamp(96px, 12vw, 160px) 0; }
.faq .section-title { margin-bottom: 40px; }
details { background: var(--surface); border-radius: 22px; margin-bottom: 12px; box-shadow: 0 1px 0 var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; position: relative;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg); transition: transform .25s;
}
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details p { padding: 0 26px 24px; color: var(--muted); }
details p:not(:last-child) { padding-bottom: 12px; }

/* ───────── Final ───────── */

/* ───────── Footer ───────── */
.footer { background: var(--hero-deep); color: rgba(255,255,255,.7); padding: 48px 0 56px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 22px 40px; align-items: center; }
.footer .brand { color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; }
.footer nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.footer nav a:hover { color: #fff; }
.fine { grid-column: 1 / -1; font-size: 13px; color: rgba(255,255,255,.45); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer nav { justify-content: flex-start; } }

/* ───────── Reveal on scroll ───────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .phone-in { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   App screens (screens.js) — laid out in iPhone points (393 × 852), then scaled.
   ══════════════════════════════════════════════════════════════════════════ */
.app {
  position: absolute; left: 0; top: 0; width: 393px; height: 852px;
  transform: scale(var(--s, 1)); transform-origin: 0 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-align: left;
  overflow: hidden; user-select: none; pointer-events: none;
  transition: opacity .35s ease;
}
.app *, .app *::before, .app *::after { box-sizing: border-box; }
.app svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app b { font-weight: 800; }
.app .pressed { transform: scale(.94); }

.a-sb { position: absolute; z-index: 8; top: 0; left: 0; right: 0; height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 8px 32px 0 54px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.a-sbi { display: flex; gap: 6px; align-items: center; }
.a-sbi svg { fill: currentColor; }
.a-fade { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 124px; background: linear-gradient(var(--bg) 74%, rgba(237, 242, 240, 0)); }
.a-head { position: absolute; z-index: 5; top: 62px; left: 16px; right: 16px; height: 48px; display: flex; justify-content: space-between; align-items: center; }
.a-title { position: absolute; left: 50px; right: 50px; text-align: center; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.a-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(15, 32, 27, .07); transition: transform .15s; }
.a-btn .i { width: 23px; height: 23px; }
.a-ghost { visibility: hidden; }
.a-btn.spin .i { animation: a-spin .8s linear infinite; }
@keyframes a-spin { to { transform: rotate(360deg); } }
.a-scroll { position: absolute; z-index: 1; top: 0; left: 0; right: 0; padding: 124px 20px 150px; will-change: transform; }
.a-tabs { position: absolute; z-index: 6; left: 16px; right: 16px; bottom: 26px; height: 68px; border-radius: 34px; background: #fff; display: flex; align-items: center; padding: 6px; box-shadow: 0 10px 28px -6px rgba(15, 32, 27, .18); }
.a-tab { flex: 1; height: 100%; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 700; color: #5D706A; }
.a-tab .i { width: 22px; height: 22px; }
.a-tab.on { background: var(--accent-soft); color: var(--accent-ink); }
.a-card { background: #fff; border-radius: 28px; padding: 16px; margin-bottom: 12px; }
.a-touch {
  position: absolute; z-index: 30; left: 0; top: 0; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: rgba(15, 32, 27, .18); box-shadow: 0 0 0 2.5px rgba(255, 255, 255, .9), 0 6px 18px rgba(15, 32, 27, .28);
  opacity: 0; transition: opacity .18s, transform .22s;
}

.a-list { background: #fff; border-radius: 26px; padding: 4px 16px; }
.a-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #E7EEEB; transition: background .2s; }
.a-row:first-child { border-top: 0; }
.a-row.pressed { transform: none; background: #F3F7F5; border-radius: 14px; }
.a-av { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; font-size: 20px; color: #fff; }
.a-av .i { width: 20px; height: 20px; }
.a-rt { flex: 1; min-width: 0; }
.a-rt b { display: flex; align-items: center; gap: 6px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-rt small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.a-amt { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.a-amt.pos { color: var(--accent-ink); }
.a-amt small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.a-seg { display: flex; background: #fff; border-radius: 99px; padding: 4px; gap: 2px; }
.a-seg span { height: 36px; display: grid; place-items: center; padding: 0 14px; border-radius: 99px; font-size: 14.5px; font-weight: 700; color: var(--muted); transition: background .25s, color .25s, transform .15s; }
.a-seg span.on { background: var(--hero); color: #fff; }
.a-seg .chev { padding: 0 4px; }
.a-seg .chev .i { width: 18px; height: 18px; }
.a-toggle { position: relative; display: inline-block; width: 51px; height: 31px; border-radius: 16px; background: #E1E8E5; transition: background .25s, transform .15s; flex: none; }
.a-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .18); transition: transform .25s cubic-bezier(.3,.7,.3,1.2); }
.a-toggle.on { background: var(--accent); }
.a-toggle.on::after { transform: translateX(20px); }
.f-mint { color: var(--hero-accent); }

/* Forecast */
.f-hero { background: var(--hero); color: #fff; border-radius: 34px; padding: 20px; }
.f-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--hero-mute); }
.f-top b { color: #fff; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 20px; }
.f-lab { text-align: center; font-size: 13.5px; color: var(--hero-mute); padding-bottom: 7px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.f-val { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 11px; font-weight: 800; font-size: 22px; letter-spacing: -0.44px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-val.big { font-size: 27px; letter-spacing: -0.54px; }
.f-val .i { width: 19px; height: 19px; stroke-width: 1.8; color: rgba(255, 255, 255, .7); }
.f-pink { color: #FF8C9C; }
.f-free { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13.5px; color: var(--hero-mute); }
.f-free .i { width: 19px; height: 19px; }
.f-free b { color: #fff; font-size: 15.5px; margin-left: 4px; }
.f-h { text-align: center; font-size: 18px; font-weight: 800; letter-spacing: -0.36px; margin-top: 26px; }
.f-ctrls { display: flex; justify-content: space-between; margin-top: 14px; }
.f-num { margin-top: 20px; padding-left: 4px; font-size: 31px; font-weight: 800; letter-spacing: -0.9px; font-variant-numeric: tabular-nums; }
.f-sub { font-size: 14px; font-weight: 700; color: #0E9F6E; margin-top: 3px; padding-left: 4px; }
.f-sub.debt { color: var(--debt); }
.f-chart { position: relative; margin: 20px -20px 0; height: 150px; }
.f-chart svg { position: absolute; inset: 0; width: 393px; height: 150px; overflow: visible; }
.f-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; }
.f-area { fill: url(#fgc); }
.f-chart.debt .f-line { stroke: var(--debt); }
.f-chart.debt .f-area { fill: url(#fgd); }
.f-cur { stroke: var(--accent); stroke-width: 2; opacity: 0; }
.f-dot { fill: var(--accent); stroke: #fff; stroke-width: 3; opacity: 0; }
.f-chart.debt .f-cur { stroke: var(--debt); }
.f-chart.debt .f-dot { fill: var(--debt); }
.f-axis { display: flex; justify-content: space-between; margin: 8px -20px 0; padding: 0 20px; font-size: 12.5px; color: var(--muted); }

/* Schedule */
.s-search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 26px; height: 50px; padding: 0 6px 0 16px; color: var(--muted); font-size: 16px; }
.s-flt { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--ink); }
.s-day { display: flex; justify-content: space-between; font-size: 13.5px; margin: 20px 8px 9px; font-variant-numeric: tabular-nums; }
.s-day span { color: var(--muted); font-weight: 800; }

/* Insights */
.i-track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.i-card { width: 333px; background: #fff; border-radius: 28px; padding: 16px 18px; }
.i-card h4 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.16px; display: flex; justify-content: space-between; align-items: center; }
.i-card h4 .i { width: 18px; height: 18px; color: var(--muted); }
.i-body { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.i-donut { width: 94px; height: 94px; flex: none; transform: rotate(-90deg); }
.i-donut circle { fill: none; stroke-width: 17; stroke-dasharray: 0 100; }
.i-leg { flex: 1; display: grid; gap: 6px; }
.i-leg div { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.i-leg i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.i-leg span { flex: 1; white-space: nowrap; }
.i-leg b { font-variant-numeric: tabular-nums; }
.i-leg em { font-style: normal; color: var(--muted); width: 28px; text-align: right; font-size: 12px; }
.i-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.i-dots i { width: 7px; height: 7px; border-radius: 4px; background: #C9D6D1; transition: width .3s, background .3s; }
.i-dots i.on { width: 22px; background: var(--accent); }
.i-h { font-size: 18px; font-weight: 800; letter-spacing: -0.36px; margin: 20px 4px 12px; }
.i-month { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 28px; padding: 5px; font-size: 16px; font-weight: 800; }
.i-month .a-btn { width: 38px; height: 38px; box-shadow: none; background: var(--bg); }
.i-month .a-btn .i { width: 19px; height: 19px; }
.i-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.i-tile { background: #F6FAF8; border-radius: 20px; padding: 11px 12px; font-size: 12px; color: var(--muted); }
.i-tile b { display: block; font-size: 22px; letter-spacing: -0.44px; color: var(--accent-ink); margin-top: 2px; font-variant-numeric: tabular-nums; }
.i-lab { font-size: 15px; font-weight: 800; margin: 20px 4px 10px; }
.i-line { display: flex; justify-content: space-between; padding: 14px 0; font-size: 15px; font-weight: 700; border-top: 1px solid #E7EEEB; }
.i-line:first-child { border-top: 0; }
.i-line b { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.i-line.tot { font-weight: 800; }

/* Debt */
.d-top { display: flex; justify-content: space-between; align-items: flex-start; font-size: 16px; }
.d-bar { height: 12px; background: #EEF3F1; border-radius: 6px; margin: 14px 0 9px; overflow: hidden; }
.d-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; }
.d-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.d-ttl { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.d-ttl .i { width: 20px; height: 20px; color: var(--accent-ink); }
.d-ttl .i:last-child { margin-left: auto; color: var(--muted); }
.d-th, .d-tr { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 0 12px 0 4px; }
.d-th { background: #F2F6F4; border-radius: 14px; height: 40px; margin-top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.d-tr { height: 50px; border-top: 1px solid #E7EEEB; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; opacity: 0; transform: translateX(14px); transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1); }
.d-th + .d-tr { border-top: 0; }
.d-tr.in { opacity: 1; transform: none; }
.d-tr .nm { display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; font-weight: 700; }
.d-bank { width: 22px; height: 22px; border-radius: 7px; background: #1F5BD8; color: #fff; display: grid; place-items: center; flex: none; }
.d-bank .i { width: 13px; height: 13px; }
.d-bank.a-logo { background: #fff; box-shadow: inset 0 0 0 1px #E7EEEB; overflow: hidden; }
.d-bank.a-logo img { width: 16px; height: 16px; object-fit: contain; }
.d-tot { text-align: right; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.d-tot small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.d-ir { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 14px; }
.d-ir span { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.d-ir i, .d-or > i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.d-ib { height: 9px; background: #EEF3F1; border-radius: 5px; margin-top: 7px; overflow: hidden; }
.d-ib i { display: block; height: 100%; width: 0; border-radius: 5px; }
.d-mut { color: var(--muted); font-size: 13px; font-weight: 600; }
.d-or { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #E7EEEB; font-size: 15px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1); }
.d-top + .d-or { border-top: 0; margin-top: 6px; }
.d-or.in { opacity: 1; transform: none; }
.d-n { color: var(--muted); width: 12px; }
.d-on { flex: 1; min-width: 0; text-align: left; }
.d-on b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-on small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }

/* Accounts */
.ac-hero { background: var(--hero); color: #fff; border-radius: 34px; padding: 20px; margin-bottom: 12px; }
.ac-lab { font-size: 14px; color: var(--hero-mute); }
.ac-net { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ac-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ac-tiles div { background: rgba(255, 255, 255, .1); border-radius: 20px; padding: 11px 12px; font-size: 12px; color: var(--hero-mute); }
.ac-tiles b { display: block; font-size: 15px; color: #fff; margin-top: 3px; font-variant-numeric: tabular-nums; }
.ac-tiles b.f-mint { color: var(--hero-accent); }
.ac-sec { padding: 14px 16px 4px; }
.ac-head { display: flex; align-items: center; gap: 10px; font-size: 16px; padding-bottom: 6px; }
.ac-head > b:nth-of-type(1) { flex: 1; }
.ac-head > b:nth-of-type(2) { font-variant-numeric: tabular-nums; }
.ac-head .pos { color: var(--accent-ink); }
.ac-head > .i { width: 18px; height: 18px; color: var(--muted); }
.ac-ic { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; }
.ac-ic.mint { background: var(--accent-soft); color: var(--accent-ink); }
.ac-ic.pink { background: #FCE5E8; color: var(--debt); }
.ac-ic .i { width: 20px; height: 20px; }
.ac-sec .a-row:first-of-type { border-top: 0; }
.a-rt .ln { width: 14px; height: 14px; color: var(--muted); }
.ac-ago.sync { color: var(--accent-ink); }
.a-fab { position: absolute; z-index: 6; right: 20px; bottom: 112px; width: 58px; height: 58px; border-radius: 50%; background: var(--vg, #0E9F6E); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px -6px rgba(14, 159, 110, .6); }
.a-fab .i { width: 26px; height: 26px; }

/* Rules */
.r-list, .r-edit { position: absolute; inset: 0; background: var(--bg); }
.r-edit { z-index: 10; transition: transform .42s cubic-bezier(.3,.8,.25,1); box-shadow: 0 -10px 30px rgba(15, 32, 27, .12); }
.r-count { font-size: 13.5px; color: var(--muted); margin: 18px 6px 10px; }
.r-rule { background: #fff; border-radius: 26px; padding: 15px 18px; margin-bottom: 10px; display: grid; gap: 5px; font-size: 13.5px; color: var(--muted); transition: box-shadow .4s; }
.r-rule > b { font-size: 15px; color: var(--ink); line-height: 1.3; }
.r-rule .rg { color: var(--muted); }
.r-rule .rg b { color: var(--accent-ink); }
.r-rule small { font-size: 12px; margin-top: 2px; }
.r-new.lit { box-shadow: 0 0 0 2px var(--accent), 0 10px 30px -10px rgba(18, 178, 122, .5); }
.r-lab { font-size: 13.5px; color: var(--muted); margin: 6px 6px 8px; }
.r-lab + .r-item { margin-top: 0; }
.r-item { background: #fff; border-radius: 22px; min-height: 52px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 15px; font-weight: 800; }
.r-item small { display: block; font-size: 12.5px; color: var(--accent-ink); font-weight: 700; margin-top: 2px; }
.r-item .i { width: 18px; height: 18px; color: var(--muted); }
.r-item + .r-lab { margin-top: 18px; }
.r-del { background: #FCE5E8; color: var(--debt); text-align: center; border-radius: 26px; height: 52px; display: grid; place-items: center; font-size: 15px; font-weight: 800; margin: 14px 0 6px; }
.r-apply { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 15px; font-weight: 800; }
.r-save { position: absolute; z-index: 6; left: 16px; right: 16px; bottom: 34px; height: 58px; border-radius: 29px; background: #0E9F6E; color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 800; transition: transform .15s; }

/* Scenarios: the chat page, its tray, and results drawn in line */
.app.sc { background: linear-gradient(165deg, #BEE7D6 0%, #DCF1E8 38%, #EDF3F0 72%); }
.sc-headbar { position: absolute; z-index: 5; top: 62px; left: 12px; right: 12px; display: flex; justify-content: space-between; }
.sc-ic { width: 44px; height: 44px; display: grid; place-items: center; }
.sc-ic .i { width: 30px; height: 30px; stroke-width: 2.2; }
.sc-undo .i { width: 22px; height: 22px; stroke-width: 2.1; }
.sc-undo { opacity: 0; transition: opacity .3s; }
.talking .sc-undo { opacity: 1; }
.sc-view { position: absolute; left: 0; right: 0; top: 110px; bottom: 112px; overflow: hidden; }
.sc-stream { padding: 8px 20px 36px; display: flex; flex-direction: column; gap: 18px; will-change: transform; }
.sc-open { font-size: 30px; font-weight: 800; letter-spacing: -0.9px; line-height: 36px; margin-top: 6px; }
.sc-it { display: none; }
.sc-it.in { display: block; animation: sc-fade .52s cubic-bezier(.25,.1,.25,1) both; }
@keyframes sc-fade { from { opacity: 0; transform: translateY(8px); } }
.sc-u { align-self: flex-end; max-width: 86%; border-radius: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, .72); padding: 12px 18px; font-size: 16.5px; line-height: 22px; font-weight: 600; }
.sc-a { font-size: 17.5px; line-height: 25px; font-weight: 500; letter-spacing: -0.15px; }
.sc-a b { font-weight: 800; }
.sc-dots.in { display: flex; }
.sc-dots { gap: 6px; padding: 8px 0; }
.sc-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: sc-dot 1.2s infinite linear; }
.sc-dots i:nth-child(2) { animation-delay: .3s; }
.sc-dots i:nth-child(3) { animation-delay: .6s; }
@keyframes sc-dot { 0%, 100% { opacity: .25; } 25% { opacity: 1; } 50% { opacity: .25; } }
.sc-kick { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--muted); }
.sc-ttl { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; margin-top: 6px; }

/* The tray: frosted, sliding up from behind the message box. */
/* A clear frame over the foot of the chat; the sheet slides inside it and is cut off at the message box. */
.sc-frame { position: absolute; z-index: 4; left: 0; right: 0; bottom: 112px; height: 700px; overflow: hidden; pointer-events: none; }
.sc-tray { position: absolute; left: 0; right: 0; top: 0; height: 760px; border: 1px solid var(--line); border-bottom: 0; border-radius: 30px 30px 0 0; background: rgba(255, 255, 255, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: translateY(700px); will-change: transform; }
.sc-tin { padding: 6px 18px 14px; }
.sc-grab { display: flex; justify-content: center; color: var(--muted); padding-bottom: 6px; }
.sc-grab .i { width: 26px; height: 26px; stroke-width: 2.4; }
.sc-opts, .sc-ask { display: none; }
.sc-tray[data-mode="opts"] .sc-opts { display: flex; }
.sc-tray[data-mode="ask"] .sc-ask { display: flex; }
.sc-opts { flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding-bottom: 4px; }
.sc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); padding: 10px 17px; font-size: 16px; font-weight: 500; transition: transform .15s, background .2s, border-color .2s; }
.sc-chip.pressed { background: var(--accent-soft); transform: scale(.985); }
.sc-chip.on { background: rgba(218, 244, 234, .85); border-color: var(--accent); color: var(--accent-ink); }
.sc-chip.on::after { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7A54' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.sc-all { width: 100%; display: flex; justify-content: flex-end; align-items: center; gap: 4px; padding: 6px 0; color: var(--accent-ink); font-size: 14.5px; font-weight: 800; }
.sc-all .i { width: 16px; height: 16px; stroke-width: 2.4; }
.sc-ask { flex-direction: column; gap: 10px; }
.sa-top { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sa-top span { flex: 1; }
.sa-top em { font-style: normal; font-size: 12.5px; font-weight: 700; }
.sa-dots { display: flex; gap: 4px; }
.sa-dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.sa-dots i.on { background: var(--accent); }
.sa-q { display: none; flex-direction: column; gap: 10px; }
.sa-q.in { display: flex; }
.sa-qt { font-size: 19px; line-height: 25px; font-weight: 800; letter-spacing: -0.3px; margin-top: 2px; }
.sa-hint { font-size: 13.5px; line-height: 19px; font-weight: 500; color: var(--muted); margin-top: -4px; }
.sa-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.sa-in { align-self: flex-end; display: flex; align-items: center; gap: 4px; min-width: 120px; min-height: 40px; border-radius: 14px; background: rgba(255, 255, 255, .6); padding: 0 12px; font-size: 15px; font-weight: 700; }
.sa-val { flex: 1; text-align: left; }
.sa-val::after { content: ""; display: inline-block; width: 2px; height: 18px; margin-left: 1px; vertical-align: -3px; background: var(--accent); animation: sc-caret 1s steps(1) infinite; }
@keyframes sc-caret { 50% { opacity: 0; } }
.sa-pct { color: var(--muted); }
.sa-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.sa-back { padding: 8px 12px 8px 0; font-size: 15px; font-weight: 700; color: var(--muted); }
.sa-go { min-width: 110px; height: 40px; border-radius: 20px; padding: 0 18px; display: grid; place-items: center; background: #0E9F6E; color: #fff; font-size: 14.5px; font-weight: 800; opacity: .35; transition: opacity .25s, transform .15s; }
.sa-go.ready { opacity: 1; }
.sa-go.pressed, .sc-sugg.pressed { transform: scale(.96); }
.sc-sugg { position: absolute; z-index: 3; left: 0; right: 0; bottom: 114px; width: max-content; margin: 0 auto; display: flex; align-items: center; gap: 4px; padding: 6px 8px; font-size: 13.5px; font-weight: 800; color: var(--muted); opacity: 0; transition: opacity .3s, transform .15s; }
.sc-sugg.in { opacity: 1; }
.sc-sugg .i { width: 18px; height: 18px; stroke-width: 2.4; }

/* The message box, fixed at the foot of the screen. */
.sc-input { position: absolute; z-index: 6; left: 16px; right: 16px; bottom: 42px; min-height: 56px; border-radius: 30px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; padding: 5px 5px 5px 18px; font-size: 16.5px; font-weight: 500; }
.sc-ph { color: var(--muted); }
.sc-send { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: #0E9F6E; opacity: .35; color: #fff; display: grid; place-items: center; }
.sc-send .i { width: 20px; height: 20px; stroke-width: 2.6; }
.sc-disc { position: absolute; z-index: 6; left: 0; right: 0; bottom: 20px; text-align: center; font-size: 11px; font-weight: 500; color: var(--muted); }

/* A finished scenario, drawn in line. */
.sr.in { display: flex; flex-direction: column; }
.sr { gap: 0; }
.sr-top { display: flex; justify-content: space-between; align-items: center; }
.sr-top em { font-style: normal; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.sr-big { font-size: 34px; font-weight: 800; letter-spacing: -1px; color: var(--accent-ink); margin-top: 12px; font-variant-numeric: tabular-nums; }
.sr-sm { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.sr-sav { display: flex; align-items: baseline; gap: 14px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.sr-sav span { flex: 1; font-size: 13px; font-weight: 700; color: var(--muted); }
.sr-sav b { font-size: 16px; font-weight: 800; }
.sr-sav b.g { color: var(--accent-ink); }
.sr-sav b.p, .sr-th .p { color: var(--scenario); }
.sr-chart { display: block; width: 393px; height: 150px; margin: 10px -20px 0; overflow: visible; }
.sr-area { fill: url(#srg); }
.sr-cur { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 1; stroke-linecap: round; }
.sr-scn { fill: none; stroke: var(--scenario); stroke-width: 2.5; stroke-dasharray: 7 6; }
.sr-axis { margin-top: 6px; }
.sr-leg { display: flex; gap: 18px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sr-leg span { display: flex; align-items: center; gap: 7px; }
.sr-leg i { width: 12px; height: 12px; border-radius: 3px; }
.sr-leg i.g { background: var(--accent); }
.sr-leg i.p { width: 14px; height: 3px; border-radius: 2px; background: var(--scenario); }
.sr-th, .sr-tr { display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; text-align: right; font-variant-numeric: tabular-nums; }
.sr-th { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 14px 0 4px; }
.sr-tr { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 800; }
.sr-tr > span:first-child { text-align: left; }
.sr-tr > span:first-child b { display: block; font-size: 15px; }
.sr-tr small { display: block; color: var(--accent-ink); font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.sr-tr > span:nth-child(2) { color: var(--muted); }
.sr-btns { display: flex; gap: 8px; margin-top: 12px; }
.sr-btns span { flex: 1; height: 52px; border-radius: 99px; display: grid; place-items: center; font-size: 16px; font-weight: 800; }
.sr-det { border: 1.5px solid var(--line); }
.sr-save { background: #0E9F6E; color: #fff; }

/* A look into past transactions, drawn in line. */
.lk-range { font-size: 13px; font-weight: 600; color: var(--muted); margin: 6px 0 6px; }
.lk-stats { display: flex; margin: 8px 0; }
.lk-stats div { flex: 1; padding: 0 10px; min-width: 0; }
.lk-stats div:first-child { padding-left: 0; }
.lk-stats div + div { border-left: 1px solid var(--line); }
.lk-stats span { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.lk-stats b { display: block; font-size: 18px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.lk-bar { margin-top: 12px; }
.lk-bt { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lk-bt span:first-child { display: flex; align-items: center; gap: 8px; }
.lk-bt i { width: 9px; height: 9px; border-radius: 5px; }
.lk-track { height: 10px; border-radius: 5px; background: rgba(15, 32, 27, .07); margin-top: 6px; overflow: hidden; }
.lk-fill { height: 100%; width: 0; border-radius: 5px; transition: width .9s cubic-bezier(.3,1.3,.5,1); }
.lk-fill.on { width: var(--w); }
.lk-bar:nth-of-type(2) .lk-fill { transition-delay: .05s; }
.lk-list { margin-top: 18px; }
.lk-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 8px 0; margin-top: 6px; }
.lk-row + .lk-row { margin-top: 0; }
.lk-tx { flex: 1; min-width: 0; }
.lk-tx b { display: block; font-size: 14px; font-weight: 700; }
.lk-tx small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.lk-amt { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.d-tr .nm span { overflow: hidden; text-overflow: ellipsis; }

/* Accounts: real bank logos, the new account sliding in, Plaid, and the link confirmation. */
.a-logo { background: #fff; box-shadow: inset 0 0 0 1px #E7EEEB; overflow: hidden; }
.a-logo img { width: 26px; height: 26px; object-fit: contain; }
.ac-new { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s cubic-bezier(.2,.8,.2,1), opacity .4s .1s; }
.ac-new > .a-row { min-height: 0; overflow: hidden; border-top: 0; transition: background .5s; border-radius: 14px; }
.ac-new.in { grid-template-rows: 1fr; opacity: 1; }
.ac-new.lit > .a-row { background: var(--accent-soft); }

.pl { position: absolute; inset: 0; z-index: 7; background: rgba(0, 0, 0, 0); transition: background .4s; }
.pl.open { background: rgba(0, 0, 0, .45); }
.pl-sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 64px; background: #fff; border-radius: 22px 22px 0 0; overflow: hidden; transform: translateY(102%); transition: transform .5s cubic-bezier(.2,.8,.2,1); color: #111; }
.pl.open .pl-sheet { transform: none; }
.pl-top { display: flex; justify-content: space-between; padding: 18px 20px 0; height: 50px; }
.pl-x .i { width: 22px; height: 22px; color: #555; }
.pl-pages { display: flex; height: calc(100% - 50px); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.pl-page { flex: none; width: 100%; padding: 6px 24px 30px; display: flex; flex-direction: column; }
.pl-pair { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px 0 26px; }
.pl-pair img, .pl-pair i { width: 58px; height: 58px; border-radius: 16px; }
.pl-pair i { display: grid; place-items: center; background: #111; color: #fff; }
.pl-pair i .i { width: 28px; height: 28px; }
.pl-pair span .i { width: 20px; height: 20px; color: #999; }
.pl-page h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; text-align: center; line-height: 1.25; margin: 0 6px 30px; }
.pl-page h3 b { font-weight: 800; }
.pl-pt { display: flex; gap: 14px; margin-bottom: 22px; }
.pl-pt .i { width: 22px; height: 22px; margin-top: 2px; color: #111; }
.pl-pt b { display: block; font-size: 16px; }
.pl-pt small { display: block; font-size: 14px; color: #666; font-weight: 500; line-height: 1.35; margin-top: 3px; }
.pl-legal { margin-top: auto; font-size: 12px; color: #777; text-align: center; font-weight: 500; margin-bottom: 14px; }
.pl-btn { height: 54px; border-radius: 12px; background: #111; color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700; transition: transform .15s; }
.pl-h.pl-h { text-align: left; margin: 10px 0 16px; font-size: 25px; font-weight: 800; }
.pl-search { display: flex; align-items: center; gap: 10px; height: 48px; border-radius: 12px; background: #F2F2F2; padding: 0 14px; color: #888; font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.pl-search .i { width: 19px; height: 19px; }
.pl-bank { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid #EEE; border-radius: 10px; transition: background .2s; }
.pl-bank.pressed { transform: none; background: #F2F2F2; }
.pl-bank img { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; box-shadow: 0 0 0 1px #EEE; background: #fff; padding: 5px; }
.pl-bank div { flex: 1; }
.pl-bank b { display: block; font-size: 16px; }
.pl-bank small { font-size: 13px; color: #777; font-weight: 500; }
.pl-bank .i { width: 18px; height: 18px; color: #AAA; }
.pl-wait { align-items: center; justify-content: center; text-align: center; padding-bottom: 120px; }
.pl-wait b { font-size: 20px; margin-top: 22px; }
.pl-wait small { font-size: 14px; color: #777; font-weight: 500; margin-top: 6px; }
.pl-spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #E6E6E6; border-top-color: #111; animation: a-spin .9s linear infinite; }

.al { position: absolute; inset: 0; z-index: 7; background: var(--bg); padding: 104px 20px 0; opacity: 0; transform: translateY(50px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.al.open { opacity: 1; transform: none; }
.al-ring { position: relative; width: 132px; height: 132px; margin: 0 auto 18px; display: grid; place-items: center; }
.al-ring svg { position: absolute; inset: 0; width: 132px; height: 132px; }
.al-track { fill: none; stroke: var(--line); stroke-width: 3; }
.al-run { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.al-logo { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; }
.al-logo img { width: 52px; height: 52px; object-fit: contain; }
.al-pt { position: absolute; left: 66px; top: 10px; width: 0; height: 0; display: grid; place-items: center; }
.al-badge, .al-glow { position: absolute; width: 34px; height: 34px; border-radius: 50%; margin: -17px 0 0 -17px; left: 0; top: 0; }
.al-badge { background: var(--accent); border: 3px solid var(--bg); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.2); transition: transform .45s cubic-bezier(.3,1.6,.5,1), opacity .12s; }
.al-badge .i { width: 17px; height: 17px; stroke-width: 2.6; }
.al-badge.in { opacity: 1; transform: none; }
.al-glow { background: var(--accent); opacity: 0; transform: scale(.6); }
.al-glow.in { animation: al-glow .8s cubic-bezier(.2,.8,.2,1); }
@keyframes al-glow { 18% { opacity: .55; transform: scale(1.5); } to { opacity: 0; transform: scale(2.6); } }
.al-details > * { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); }
.al-details.in > * { opacity: 1; transform: none; }
.al-details.in > :nth-child(2) { transition-delay: .03s; }
.al-details.in > :nth-child(3), .al-details.in > :nth-child(4) { transition-delay: .09s; }
.al-details.in > :nth-child(5), .al-details.in > :nth-child(6) { transition-delay: .18s; }
.al-title { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; text-align: center; }
.al-pills { display: flex; justify-content: center; margin-top: 8px; }
.al-pills span { background: var(--accent-soft); color: var(--accent-ink); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.al-bl { font-size: 14px; color: var(--muted); text-align: center; margin-top: 22px; }
.al-bal { font-size: 38px; font-weight: 800; letter-spacing: -1.2px; text-align: center; font-variant-numeric: tabular-nums; margin-top: 2px; }
.al-cta { height: 58px; border-radius: 29px; background: #0E9F6E; color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 800; margin-top: 26px; }
.al-details.in > .al-cta.pressed { transform: scale(.94); }
.al-rm { text-align: center; color: var(--debt); font-size: 15px; font-weight: 700; padding: 14px 0; }

.a-logo img.fill, .d-bank img.fill { width: 100%; height: 100%; object-fit: cover; }
.pl-bank img.fill { padding: 0; object-fit: cover; box-shadow: none; }
.a-logo:has(img.fill), .d-bank:has(img.fill) { box-shadow: none; }

/* Rules story: the rule editor and its pages, pages that push in, syncing transactions, schedule changes. */
.r-new { display: grid; max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; overflow: hidden; opacity: 0; transition: max-height .5s cubic-bezier(.2,.8,.2,1), padding .5s, margin .5s, opacity .4s, box-shadow .4s; }
.r-new.shown { max-height: 140px; padding-top: 15px; padding-bottom: 15px; margin-bottom: 10px; opacity: 1; }
.r-new .rg { color: var(--accent-ink); font-weight: 700; }
.rt-sub { position: absolute; inset: 0; z-index: 12; background: var(--bg); transform: translateX(100%); transition: transform .36s cubic-bezier(.3,.8,.25,1); box-shadow: -10px 0 30px rgba(15, 32, 27, .1); }
.rt-sub.on { transform: none; }
.rt-seg { margin: 4px 0 14px; }
.rt-seg span { flex: 1; padding: 0 8px; font-size: 13.5px; }
.rt-input { position: relative; display: flex; align-items: center; height: 54px; border-radius: 18px; background: #fff; padding: 0 16px; font-size: 17px; font-weight: 700; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
.rt-input.focus { box-shadow: inset 0 0 0 2px var(--accent); }
.rt-input em { position: absolute; left: 16px; font-style: normal; color: #A3B1AC; font-weight: 600; }
.rt-caret { display: none; width: 2px; height: 22px; margin-left: 1px; background: var(--accent); animation: rt-blink 1s steps(1) infinite; }
.rt-input.focus .rt-caret { display: block; }
.rt-input.focus em { left: 19px; }
@keyframes rt-blink { 50% { opacity: 0; } }
.rt-opts { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1); }
.rt-opts.in { opacity: 1; transform: none; }
.rt-opts .r-lab { margin-top: 14px; }
.rt-radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C9D5D0; flex: none; position: relative; transition: border-color .2s; }
.rt-radio.on { border-color: var(--accent); }
.rt-radio.on::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.rt-act { justify-content: space-between; min-height: 52px; font-size: 15px; }
.rt-page { position: absolute; inset: 0; z-index: 7; background: var(--bg); transform: translateX(100%); transition: transform .38s cubic-bezier(.3,.8,.25,1); box-shadow: -10px 0 30px rgba(15, 32, 27, .1); }
.rt-page.on { transform: none; }

/* Lists whose rows light up edge to edge across the whole card. */
.rt-list { padding: 0 16px; overflow: hidden; }
.rt-in, .rt-wrap { margin: 0 -16px; padding: 0 16px; transition: grid-template-rows .55s cubic-bezier(.2,.8,.2,1), opacity .4s, background .5s; }
.rt-new, .rt-in, .rt-wrap { display: grid; grid-template-rows: 1fr; }
.rt-new > *, .rt-in > *, .rt-wrap > * { min-height: 0; overflow: hidden; }
.rt-new { grid-template-rows: auto 0fr; opacity: 0; transition: grid-template-rows .55s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.rt-new.in { grid-template-rows: auto 1fr; opacity: 1; }
.rt-new > .s-day { margin-top: 18px; }
.rt-in { grid-template-rows: 0fr auto; opacity: 0; }
.rt-in.in { grid-template-rows: 1fr auto; opacity: 1; }
.rt-in.lit, .rt-wrap.lit { background: var(--accent-soft); }
.rt-in + .rt-in > .a-row { border-top: 1px solid rgba(10, 122, 84, .14); }
.rt-tag { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--accent-ink); padding: 0 0 12px 50px; max-height: 0; opacity: 0; transition: max-height .4s .3s, opacity .4s .3s; }
.rt-in.in .rt-tag { max-height: 30px; opacity: 1; }
.rt-tx .a-amt small { font-weight: 600; }
.rt-wrap.red { background: #FCE5E8; }
.rt-wrap.red .a-amt { text-decoration: line-through; color: var(--debt); }
.rt-wrap.out { grid-template-rows: 0fr; opacity: 0; }
.rt-wrap.out + .a-row { border-top: 0; }
.rt-wrap.lit small { color: var(--accent-ink); }
.rt-flash { animation: rt-flash 1.4s ease; }
@keyframes rt-flash { 0%, 100% { text-shadow: none; } 30% { text-shadow: 0 0 14px rgba(63, 224, 165, .9); } }
.rt-in > .a-row, .rt-wrap > .a-row { transition: padding .55s cubic-bezier(.2,.8,.2,1); }
.rt-in:not(.in) > .a-row, .rt-wrap.out > .a-row { padding-top: 0; padding-bottom: 0; }
.rt-tag { padding-bottom: 0; transition: max-height .4s .3s, opacity .4s .3s, padding .4s .3s; }
.rt-in.in .rt-tag { padding-bottom: 12px; }

/* Transaction Rules, laid out as the app draws them (rules.tsx and rules/edit.tsx). */
.rr-sec { font-size: 13px; color: var(--muted); margin: 10px 4px 8px; }
.r-list .a-scroll { padding-left: 16px; padding-right: 16px; }
.r-list .a-scroll > .rr-sec:first-child { margin-top: 4px; }
.rr-purge { background: #fff; border-radius: 20px; padding: 0 16px; }
.rr-purge div { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.rr-purge div + div { border-top: 1px solid var(--line); }
.rr-purge b { flex: 1; font-size: 15px; font-weight: 700; }
.rr-purge span { width: 72px; border-radius: 12px; padding: 8px 10px; background: #F4F8F6; text-align: right; font-size: 15px; font-weight: 800; }
.rr-purge em { width: 34px; font-style: normal; font-size: 14px; color: var(--muted); }
.rr-fine { font-size: 12.5px; line-height: 17px; color: var(--muted); font-weight: 500; margin: 8px 4px 0; }
.rr-sbar { margin-top: 18px; }
.rr-count { font-size: 13px; color: var(--muted); margin: 14px 4px 8px; }
.rr-card { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 20px; padding: 14px 16px; margin-bottom: 8px; transition: box-shadow .4s; }
.rr-card > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rr-card b { font-size: 14.5px; line-height: 20px; font-weight: 600; color: var(--ink); }
.rr-card span { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rr-card span i { font-style: normal; color: var(--accent-ink); }
.rr-card em { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.rr-card > .i { width: 18px; height: 18px; color: var(--muted); }
.rr-card.r-new { display: flex; padding-top: 0; padding-bottom: 0; margin-bottom: 0; }
.rr-card.r-new.shown { padding-top: 14px; padding-bottom: 14px; margin-bottom: 8px; }
.rr-card.r-new.lit { box-shadow: 0 0 0 2px var(--accent), 0 10px 30px -10px rgba(18, 178, 122, .5); }

.rr-body { position: absolute; left: 0; right: 0; top: 112px; padding: 0 16px; }
.rr-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 0 0 12px; }
.rr-tabs span { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 12px 0; border-bottom: 2px solid transparent; font-size: 12.5px; font-weight: 800; letter-spacing: 1px; color: var(--muted); }
.rr-tabs span.on { color: var(--accent-ink); border-bottom-color: var(--accent); }
.rr-tabs em { font-style: normal; min-width: 20px; height: 20px; border-radius: 10px; background: #F4F8F6; display: grid; place-items: center; font-size: 11px; letter-spacing: 0; padding: 0 5px; }
.rr-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 18px; padding: 14px 16px; margin-bottom: 8px; font-size: 15.5px; font-weight: 700; transition: background .15s; }
.rr-nav small { display: block; font-size: 12.5px; color: var(--accent-ink); font-weight: 600; margin-top: 2px; }
.rr-nav small:empty { display: none; }
.rr-nav .i { width: 18px; height: 18px; color: var(--muted); }
.rr-nav.pressed { transform: none; background: #F4F8F6; }
.rr-switch { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 18px; padding: 12px 16px; margin: 6px 0 12px; font-size: 15px; font-weight: 700; }
.rr-dock { position: absolute; left: 16px; right: 16px; bottom: 30px; display: grid; gap: 8px; }
.rr-apply { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; font-size: 15px; font-weight: 700; }
.rr-cta { height: 58px; border-radius: 29px; background: #0E9F6E; color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 800; opacity: .4; transition: opacity .3s, transform .15s; }
.rr-cta.ready { opacity: 1; }
.rr-group { background: #fff; border-radius: 18px; padding: 0 16px; }
.rr-opts { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.rr-opts.on { opacity: 1; transform: none; }
.rr-pick { display: flex; align-items: center; gap: 8px; min-height: 52px; border-bottom: 1px solid var(--line); }
.rr-group > :last-child { border-bottom: 0; }
.rr-pick > span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.rr-pick > b { flex: 1; text-align: right; font-size: 15px; font-weight: 700; display: flex; justify-content: flex-end; align-items: center; white-space: nowrap; overflow: hidden; }
.rr-pick > b.mut { color: var(--muted); }
.rr-pick > .i { width: 16px; height: 16px; color: var(--muted); }
.rr-pick.pressed { transform: none; }
.rr-in em { font-style: normal; color: var(--muted); font-weight: 700; }
.rr-in .rt-caret { order: 2; }
.rr-in.focus .rt-caret { display: block; }
.rr-in.focus em { order: 3; }
.rr-look { display: flex; align-items: center; gap: 8px; min-height: 52px; border-top: 1px solid var(--line); color: var(--accent-ink); font-size: 14.5px; font-weight: 700; }
.rr-look span { flex: 1; }
.rr-look .i { width: 16px; height: 16px; stroke-width: 2.4; }
.rr-look .i:last-child { color: var(--muted); stroke-width: 2.1; }
.rr-scrim { position: absolute; inset: 0; z-index: 3; background: rgba(15, 32, 27, .35); opacity: 0; transition: opacity .3s; }
.rr-scrim.on { opacity: 1; }
.rr-sheet { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 32px 32px 0 0; padding: 10px 20px 34px; transform: translateY(105%); transition: transform .38s cubic-bezier(.3,.8,.25,1); }
.rr-sheet.on { transform: none; }
.rr-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.rr-st { font-size: 21px; font-weight: 800; letter-spacing: -0.42px; margin-bottom: 14px; }
.rr-search { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 23px; background: #F4F8F6; padding: 0 14px; color: var(--muted); font-size: 15px; }
.rr-search .i { width: 18px; height: 18px; }
.rr-radio { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 11px 14px; margin-bottom: 6px; background: #fff; font-size: 15px; transition: background .15s; }
.rr-radio.pressed { transform: none; background: #F4F8F6; }
.rr-radio .a-av { width: 34px; height: 34px; border-radius: 11px; font-size: 17px; }
.rr-radio > span { flex: 1; font-weight: 600; }
.rr-radio > i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); position: relative; flex: none; }
.rr-radio.on > i { border-color: var(--accent); background: var(--accent); }
.rr-radio.on > i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.rt-sub .rr-fine { margin-top: 10px; }

/* Nothing of the new day shows (not even its header's space) until it syncs in. */
.rt-new { grid-template-rows: 0fr 0fr; }
.rt-new > .s-day { margin: 0 8px; transition: margin .55s cubic-bezier(.2,.8,.2,1); }
.rt-new.in > .s-day { margin: 0 8px 9px; }
.rt-new + .s-day { margin-top: 4px; }
.rt-new.in + .s-day { margin-top: 20px; }

/* Rules: the app's pieces floating free, with no phone or frame around them. */
.flow { --fw: min(420px, 86vw); position: relative; width: var(--fw); aspect-ratio: 393 / 560; }
.flow .screen { position: absolute; inset: 0; }
.app.fl { background: transparent; overflow: visible; }
.fl .i { width: 18px; height: 18px; stroke-width: 2.2; }
.fl-scene { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center; align-items: stretch; gap: 14px; padding: 0 8px; transition: opacity .45s, transform .45s; }
.fl-scene.on { display: flex; }
.fl-scene.out { opacity: 0; transform: translateY(-14px) scale(.98); }
.fl-card { background: #fff; border-radius: 24px; padding: 16px; box-shadow: 0 1px 0 rgba(15, 32, 27, .04), 0 24px 50px -22px rgba(15, 32, 27, .28), 0 8px 18px -12px rgba(15, 32, 27, .12); }
.fl-card, .fl-arrow { opacity: 0; transform: translateY(26px) scale(.96); }
.fl-in { animation: fl-in .75s cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes fl-in { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
.fl-label { display: flex; align-items: center; gap: 6px; color: var(--accent-ink); font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.fl-label .i { width: 15px; height: 15px; stroke-width: 2.4; }
.fl-title { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 4px; }
.fl-sec { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 8px 0 6px 2px; }
.fl-set { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; border-radius: 16px; background: #F4F8F6; padding: 12px 14px; margin-bottom: 8px; transition: opacity .45s, transform .45s cubic-bezier(.2,.9,.3,1.2); }
.fl-set b { font-size: 14px; font-weight: 700; }
.fl-set span { font-size: 13px; color: var(--accent-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-off { opacity: 0; transform: translateY(8px); }
.fl-cta { position: relative; margin-top: 6px; border-radius: 99px; padding: 13px 0; text-align: center; background: #0E9F6E; color: #fff; font-size: 15px; font-weight: 800; transition: opacity .45s, transform .45s cubic-bezier(.2,.9,.3,1.2), background .3s; }
.fl-new.done .fl-cta { background: var(--accent-soft); color: var(--accent-ink); }
.fl-toast { align-self: center; display: flex; align-items: center; gap: 8px; border-radius: 99px; padding: 11px 18px; font-size: 14px; font-weight: 800; }
.fl-toast .i { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.6; }
.fl-row { display: flex; align-items: center; gap: 12px; height: 64px; }
.fl-div, .fl-fold .fl-row { border-top: 1px solid var(--line); }
.fl-fold { height: 64px; overflow: hidden; }
.fl-rx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fl-rx b { font-size: 15px; font-weight: 700; }
.fl-rx small { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.fl-rx small.g { color: var(--accent-ink); }
.fl-amt { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fl-pill { background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 99px; }
.fl-txn .fl-row { height: auto; }
.fl-arrow { align-self: center; width: 36px; height: 36px; border-radius: 18px; background: #fff; color: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(15, 32, 27, .3); }
.fl-arrow .i { width: 20px; height: 20px; stroke-width: 2.6; }
.fl-match { border: 2px solid transparent; transition: border-color .5s; }
.fl-match.matched { border-color: var(--accent); }
.fl-mrow { display: flex; align-items: center; gap: 10px; }
.fl-rt { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 18px; font-weight: 600; }
.fl-rt small { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.fl-ok { width: 28px; height: 28px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(0); transition: opacity .3s, transform .45s cubic-bezier(.3,1.5,.5,1); }
.fl-ok .i { width: 15px; height: 15px; stroke-width: 3; }
.fl-match.matched .fl-ok { opacity: 1; transform: none; }
/* The tap: a ring that swells and fades once over what it touches. */
.fl-tap::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); pointer-events: none; animation: fl-ring .52s ease-out both; }
@keyframes fl-ring { 0% { opacity: 0; transform: scale(.85); } 40% { opacity: .28; } 100% { opacity: 0; transform: scale(1.15); } }
.fl-flow { justify-content: flex-start; }
.fl-track { display: flex; flex-direction: column; gap: 14px; will-change: transform; }
.fl-fc.f-hero { padding: 20px; border-radius: 30px; background: var(--hero); }
.fl-fc .f-top span:last-child { transition: color .3s; }

/* Cashflow: transactions left to right, each with the cash left after it as a bar. */
.cf-top { position: absolute; top: 34px; left: 46px; right: 46px; }
.cf-big { font-size: 34px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.cf-sub { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.cf-view { position: absolute; left: -40px; right: -40px; top: 196px; bottom: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.cf-track { display: flex; gap: 12px; padding: 16px 0 30px; will-change: transform; }
.cf-col { flex: none; width: 132px; display: flex; flex-direction: column; gap: 14px; }
.cf-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 20px; border: 2px solid transparent; transition: border-color .4s; }
.cf-card small { font-size: 12px; font-weight: 700; color: var(--muted); }
.cf-card b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-card span { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cf-card span.g { color: var(--accent-ink); }
.cf-col.now .cf-card { border-color: var(--accent); }
.cf-barwrap { height: 168px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.cf-barwrap em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .5s, color .3s; transition-delay: calc(var(--i) * 70ms + .3s); }
.cf-barwrap i { width: 56px; border-radius: 14px 14px 6px 6px; background: #C9EBDD; transform: scaleY(0); transform-origin: bottom; transition: transform .9s cubic-bezier(.2,.9,.3,1.1), background .3s; transition-delay: calc(var(--i) * 70ms); }
.cf-on .cf-barwrap i { transform: none; }
.cf-on .cf-barwrap em { opacity: 1; }
.cf-col.now .cf-barwrap i { background: var(--accent); }
.cf-col.now .cf-barwrap em { color: var(--ink); font-weight: 800; }

/* Connecting an account: pick a bank, the link confirmed, the account joining Accounts. */
.lf-bank { position: relative; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 8px; margin: 0 -8px; border-top: 1px solid var(--line); border-radius: 0; transition: background .3s, border-radius .3s; }
.lf-bank .i { width: 16px; height: 16px; color: var(--muted); }
.lf-bank.lit { background: var(--accent-soft); border-radius: 14px; }
.lf-link { padding: 26px 20px 24px; }
.lf-link .al-badge { border-color: #fff; }
.lf-net small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.lf-net b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; margin: 2px 0 10px; }
.lf-head { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 15px; }
.lf-head > b:nth-of-type(1) { flex: 1; }
.lf-head > b:nth-of-type(2) { font-variant-numeric: tabular-nums; }
.lf-head b.g { color: var(--accent-ink); }
.lf-div { border-top: 1px solid var(--line); }
.lf-new { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s cubic-bezier(.2,.8,.2,1), opacity .45s .1s; }
.lf-new.in { grid-template-rows: 1fr; opacity: 1; }
.lf-new > .lf-row { min-height: 0; overflow: hidden; }
.lf-row { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 8px; margin: 0 -8px 8px; border-radius: 14px; transition: background .5s; }
.lf-new.lit .lf-row { background: var(--accent-soft); }
.lf-row .ln { width: 14px; height: 14px; color: var(--muted); vertical-align: -2px; }
