/* CurrentC Financial — Current. One stylesheet; tokens first. */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../assets/fonts/onest-variable-latin.woff2) format('woff2');
}

:root {
  --ink: #0E2A31;
  --ink-2: #4A6268;
  --ink-3: #5B7076;
  --ground: #F1F5F4;
  --surface: #FFFFFF;
  --line: #DCE5E3;
  --line-2: #C9D6D4;
  --hair: #E9EFEE;
  --field: #F6F9F8;
  --hover: #F5F9F8;
  --current: #0E4D5C;
  --current-2: #15697A;
  --current-ink: #0B4452;
  --current-deep: #0A3D49;
  --tint: #E1EEEE;
  --on-current: #CFE3E4;
  --spark: #F3D04B;
  --spark-soft: #FBF1C4;
  --spark-ink: #5C4A00;
  --spark-deep: #A8850D;
  --tip-ink: #2E2600;
  --alert: #B4321F;
  --alert-soft: #FBEAE6;
  --scrim: rgba(14, 42, 49, 0.45);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 24px;
  --page: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body { font-family: var(--font); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--current-2); }
a:hover { color: var(--current); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--current-2); outline-offset: 2px; 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; }
.center { text-align: center; }

/* ---------- header ---------- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.top-in { max-width: var(--page); margin: 0 auto; padding: 0 32px; min-height: 72px; display: flex; align-items: center; gap: 8px 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand-word { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.brand-word b { font-weight: inherit; color: var(--current); }
.brand-fin { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 11px 14px; border-radius: var(--r-s); color: var(--ink-2); font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--tint); color: var(--current-ink); font-weight: 600; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chip-practice { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--spark-soft); color: var(--spark-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip-practice::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--spark-deep); flex: none; }
.bell { position: relative; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; }
.icon-btn:hover { background: var(--hover); }
.dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--spark-deep); box-shadow: 0 0 0 2px var(--surface); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #FFFFFF; display: grid; place-items: center; font-weight: 600; font-size: 14px; text-decoration: none; flex: none; }
.avatar:hover { color: #FFFFFF; background: var(--current-ink); }
.avatar-lg { width: 56px; height: 56px; font-size: 17px; }
.pop { position: absolute; top: 54px; right: 0; width: 380px; max-width: calc(100vw - 24px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 18px 48px rgba(14, 42, 49, 0.16); overflow: hidden; }
.pop-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; }
.pop .row { padding: 12px 18px; }

/* ---------- page ---------- */
.page { max-width: var(--page); margin: 0 auto; padding: 32px 32px 48px; }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 20px; }
.h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }
.lead { margin: 0; color: var(--ink-2); }
.note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -10px 0 6px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.col-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.col-side { flex: 1 1 320px; max-width: 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.narrow { max-width: 620px; margin: 0 auto; width: 100%; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.card-pad { padding: 22px 24px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 24px 12px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-row.align-top { align-items: flex-start; }
.card-pad > .lead, .card-pad > .note, .card-pad > .link, .card-pad > .kv { margin-top: 10px; }
.stack > * { margin-top: 0 !important; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.empty { margin: 0; padding: 36px 24px; text-align: center; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty b { color: var(--ink); font-size: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--hover); color: var(--ink); border-color: var(--line-2); }
.btn-primary { background: var(--current); border-color: var(--current); color: #FFFFFF; }
.btn-primary:hover { background: var(--current-deep); border-color: var(--current-deep); color: #FFFFFF; }
.btn-primary:disabled { background: var(--hair); border-color: var(--hair); color: var(--ink-3); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-block { width: 100%; }
.btn-white { background: #FFFFFF; border-color: #FFFFFF; color: var(--current-ink); }
.btn-white:hover { background: var(--tint); border-color: var(--tint); color: var(--current-ink); }
.btn-clear { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #FFFFFF; }
.btn-clear:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); color: #FFFFFF; }
.btn-text { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--current-2); font-weight: 600; font-size: 14px; }
.btn-text:hover { color: var(--current); }

/* ---------- the balance ---------- */
.hero { position: relative; overflow: hidden; background: var(--current); color: #FFFFFF; border-radius: var(--r-xl); padding: 32px 36px; }
.streams { position: absolute; right: 0; top: 0; width: 48%; height: 100%; pointer-events: none; }
.stream-spark { stroke: var(--spark); }
.hero-in { position: relative; max-width: 520px; }
.hero-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--on-current); }
.pill-practice { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.34); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: #FFFFFF; }
.big { margin: 8px 0 0; font-size: 68px; line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; }
.big .cents { font-size: 38px; color: var(--on-current); letter-spacing: -0.02em; }
.hero-note { margin: 12px 0 0; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.spark-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--spark); flex: none; }
.live { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.12); color: #FFFFFF; text-decoration: none; font-size: 13px; font-weight: 600; }
.quick a:hover { background: rgba(255, 255, 255, 0.2); color: #FFFFFF; }

.bal-label { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.pill-soft { padding: 3px 10px; border-radius: 999px; background: var(--spark-soft); color: var(--spark-ink); font-size: 12px; font-weight: 600; }
.big-ink { margin: 8px 0 0; font-size: 52px; line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; }
.big-ink .cents { font-size: 30px; color: var(--ink-3); }
.acct-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.acct-bal .on-way { margin: 10px 0 0; }
.acct-bal .note { margin-top: 8px; }

/* ---------- accounts ---------- */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.acc { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "g n m" "b b b" "s s s"; align-items: center; column-gap: 10px; row-gap: 14px; padding: 20px; min-height: 156px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; grid-template-rows: auto auto 1fr; transition: border-color .15s, box-shadow .15s; }
.acc:hover { color: var(--ink); border-color: var(--line-2); box-shadow: 0 8px 24px rgba(14, 42, 49, 0.07); }
.glyph { grid-area: g; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--current-ink); display: grid; place-items: center; flex: none; }
.glyph.cx { background: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.glyph-lg { width: 52px; height: 52px; border-radius: 14px; }
.acc-name { grid-area: n; font-weight: 600; }
.acc-mask { grid-area: m; font-size: 13px; color: var(--ink-3); }
.acc-bal { grid-area: b; font-size: 28px; font-weight: 600; letter-spacing: -0.025em; }
.acc-sub { grid-area: s; align-self: end; font-size: 13px; color: var(--ink-2); }
.acc-sub.goal { display: flex; flex-direction: column; gap: 7px; }
.on-way { font-size: 13px; font-weight: 600; color: var(--current-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--current-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.meter { height: 6px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 3px; background: var(--current); }

/* ---------- activity rows ---------- */
.rows { list-style: none; margin: 0; padding: 0 0 6px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--hair); color: var(--ink); text-decoration: none; }
.row:hover { background: var(--hover); color: var(--ink); }
.row-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--current-ink); display: grid; place-items: center; flex: none; }
.row-icon.cx { background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-title { font-weight: 600; }
.row-sub { font-size: 13px; color: var(--ink-3); }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row-amt { font-weight: 600; white-space: nowrap; }
.row-amt.in { color: var(--current-2); }
.row-amt.neutral { color: var(--ink-2); }
.progress { display: block; height: 4px; margin-top: 8px; max-width: 220px; border-radius: 2px; background: var(--hair); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--spark-deep); border-radius: 2px; transition: width 3s linear; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-pending { background: var(--spark-soft); color: var(--spark-ink); }
.badge-on { background: var(--tint); color: var(--current-ink); }
.badge-off { background: var(--hair); color: var(--ink-2); }
.group-head { margin: 0; padding: 16px 24px 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.group + .group { border-top: 1px solid var(--line); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.seg button { min-height: 40px; padding: 0 14px; border-radius: var(--r-s); border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--tint); color: var(--current-ink); }
.select { height: 48px; padding: 0 40px 0 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234A6268' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-weight: 600; }

/* ---------- arrival and timeline ---------- */
.eyebrow-spark { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--current-ink); }
.spark-sq { width: 8px; height: 8px; border-radius: 50%; background: var(--spark-deep); }
.arr-amt { margin: 10px 0 2px; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.arrival .lead { margin-top: 0; }
.timeline { list-style: none; margin: 20px 0 6px; padding: 0; }
.tl { display: flex; gap: 12px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; width: 14px; flex: none; }
.tl-node { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--current); flex: none; }
.tl-line { flex: 1; width: 2px; min-height: 18px; background: var(--line); margin: 4px 0; }
.tl.is-active .tl-node { background: var(--spark); box-shadow: 0 0 0 2px var(--spark-deep); animation: pulse 1.8s ease-in-out infinite; }
.tl.is-saved .tl-node { background: var(--spark); box-shadow: 0 0 0 2px var(--spark-deep); }
.tl.is-wait .tl-node { background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2); }
.tl-body { display: flex; flex-direction: column; padding-bottom: 14px; min-width: 0; flex: 1; }
.tl-title { font-weight: 600; }
.tl-sub { font-size: 13px; color: var(--ink-3); }
.tl.is-wait .tl-title { color: var(--ink-2); }

/* ---------- the last 30 days ---------- */
.bars { margin: 18px 0 0; display: flex; flex-direction: column; gap: 16px; }
.bar-row { display: flex; justify-content: space-between; gap: 12px; }
.bar-row dt { color: var(--ink-2); }
.bar-row dd { margin: 0; font-weight: 600; white-space: nowrap; }
.bar { height: 8px; border-radius: 4px; background: var(--hair); margin-top: 7px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 4px; }
.b-in { background: var(--current-2); }
.b-out { background: var(--ink); }
.b-saved { background: var(--spark-deep); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.stat b { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; }

/* ---------- tips and habits ---------- */
.tip { background: var(--spark-soft); border-radius: var(--r-l); padding: 22px 24px; color: var(--tip-ink); }
.tip-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--spark-ink); }
.tip h2 { margin: 8px 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.tip p { margin: 0; font-size: 14px; }
.tip a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 44px; font-weight: 600; color: var(--current-ink); text-decoration: none; }
.lessons { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.lesson { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.lesson p { margin: 0; color: var(--ink-2); font-size: 14px; }
.lesson .link { margin-top: auto; min-height: 36px; }
.lesson-n { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--current-2); }

/* ---------- goal ---------- */
.goal-body { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.goal-text { display: flex; flex-direction: column; gap: 2px; }
.goal-bal { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.ring { flex: none; }
.ring-track { fill: none; stroke: var(--hair); stroke-width: 9; }
.ring-fill { fill: none; stroke: var(--current); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.ring text { font-family: var(--font); font-size: 19px; font-weight: 600; fill: var(--ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.input { height: 48px; padding: 0 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); }
.input:focus, .select:focus { border-color: var(--current-2); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.amount { display: flex; align-items: center; gap: 6px; height: 72px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.amount span { font-size: 30px; font-weight: 600; color: var(--ink-3); }
.amount input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.amount input::placeholder { color: var(--line-2); }
.amount:focus-within { border-color: var(--current-2); box-shadow: 0 0 0 3px var(--tint); }
.amount.small { height: 52px; }
.amount.small span { font-size: 20px; }
.amount.small input { font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.chips button:hover { border-color: var(--line-2); color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--tint); border-color: var(--current-2); color: var(--current-ink); }
.chips button:disabled { opacity: 0.55; }
.pick { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pick legend { padding: 0; margin-bottom: 10px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.opt:hover { border-color: var(--line-2); }
.opt.on { border-color: var(--current-2); box-shadow: 0 0 0 1px var(--current-2); background: var(--field); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt:focus-within { outline: 2px solid var(--current-2); outline-offset: 2px; }
.opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opt-main span { font-size: 13px; color: var(--ink-3); }
.opt-bal { font-weight: 600; white-space: nowrap; }
.sum { border-radius: var(--r-m); background: var(--field); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.line-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.line-item span { color: var(--ink-2); }
.line-item b { font-weight: 600; text-align: right; white-space: nowrap; }
.ok { display: inline-flex; align-items: center; gap: 6px; color: var(--current-2); }
.form-err { margin: 0; font-size: 14px; font-weight: 600; color: var(--alert); }
.form-err .btn-text { min-height: 36px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--current); flex: none; }
.switch-wrap { display: flex; align-items: center; gap: 10px; flex: none; }
.switch-state { font-weight: 600; color: var(--ink-2); }
.switch { position: relative; width: 52px; height: 32px; border-radius: 16px; border: 0; background: var(--line-2); flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(14, 42, 49, 0.25); transition: left .15s; }
.switch[aria-checked="true"] { background: var(--current); }
.switch[aria-checked="true"]::after { left: 23px; }

/* ---------- receipts and key-value lists ---------- */
.kv { margin: 0; display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hair); }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.ref { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.receipt { display: flex; flex-direction: column; gap: 6px; }
.rcpt-top { display: flex; align-items: center; gap: 12px; }
.rcpt-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.receipt-amt { margin: 18px 0 0; font-size: 44px; font-weight: 600; letter-spacing: -0.03em; }
.receipt-amt.in { color: var(--current-2); }
.receipt .kv { margin-top: 14px; }
.receipt > .note { margin-top: 0; }
.receipt > .receipt-amt + .note { margin-top: -4px; }
.receipt .link { margin-top: 10px; }
.review-amt { margin: 0 0 6px; font-size: 44px; font-weight: 600; letter-spacing: -0.03em; }
.me { display: flex; align-items: center; gap: 14px; }
.me-main { display: flex; flex-direction: column; }
.me-main b { font-size: 17px; font-weight: 600; }
.me-main > span { color: var(--ink-2); }
.linked-row { display: flex; align-items: center; gap: 12px; }

/* ---------- dialog ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; padding: 24px; z-index: 50; }
.dialog { width: 100%; max-width: 460px; max-height: calc(100vh - 48px); overflow: auto; background: var(--surface); border-radius: var(--r-xl); padding: 24px; box-shadow: 0 24px 64px rgba(14, 42, 49, 0.24); display: flex; flex-direction: column; gap: 14px; }
.dialog:focus { outline: none; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--field); color: var(--ink); display: grid; place-items: center; flex: none; }
.close:hover { background: var(--hair); }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 8px 0 0; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--current); display: grid; place-items: center; }

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - 73px); display: grid; place-items: center; padding: 32px 16px; }
.auth .card { width: 100%; max-width: 420px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.auth-brand { display: flex; align-items: center; gap: 10px; }
.auth-brand b { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.auth-brand b span { color: var(--current); }
.auth-brand small { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }

/* ---------- footer, toast, tab bar ---------- */
.footer { max-width: var(--page); margin: 0 auto; padding: 0 32px 40px; }
.footer-in { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-2); }
.footer-in p { margin: 0; max-width: 640px; }
.footer nav { display: flex; gap: 20px; }
.footer a { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; width: max-content; max-width: min(560px, calc(100vw - 32px)); padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #FFFFFF; font-weight: 500; box-shadow: 0 12px 32px rgba(14, 42, 49, 0.28); animation: rise .22s ease-out; }
@keyframes rise { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.tabbar { display: none; }
.hide-desktop { display: none; }

@media (max-width: 1023px) {
  .hide-phone { display: none !important; }
  .hide-desktop { display: revert; }
  .quick.hide-desktop { display: grid; }
  .nav { display: none; }
  .brand-fin { display: none; }
  .top-in { min-height: 64px; padding: 0 12px 0 16px; gap: 8px; }
  .page { padding: 18px 16px 32px; }
  .page-head { margin-bottom: 14px; }
  .h1 { font-size: 23px; }
  .cols { gap: 16px; }
  .col-main, .col-side { gap: 16px; }
  .col-side { max-width: none; }
  .card-pad { padding: 18px; }
  .card-head { padding: 18px 18px 10px; }
  .row { padding: 13px 16px; gap: 12px; }
  .row-icon { width: 36px; height: 36px; }
  .group-head { padding: 14px 16px 6px; }
  .hero { padding: 22px 22px 20px; border-radius: 24px; }
  .streams { width: 30%; height: 50px; top: 8px; }
  .goal-name { display: none; }
  .big { font-size: 46px; }
  .big .cents { font-size: 28px; }
  .hero-label { font-size: 14px; }
  .hero-note { font-size: 14px; }
  .big-ink { font-size: 42px; }
  .acc-grid { grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
  .acc { min-height: 0; padding: 13px 16px; border: 0; border-top: 1px solid var(--hair); border-radius: 0; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "g n b" "g s b"; grid-template-rows: auto auto; row-gap: 2px; }
  .acc:first-child { border-top: 0; }
  .acc:hover { box-shadow: none; background: var(--hover); }
  .acc-mask { display: none; }
  .acc-bal { font-size: 15px; letter-spacing: 0; align-self: center; }
  .acc-sub { align-self: start; }
  .acc-sub .chip { padding: 0; background: none; font-size: 13px; font-weight: 500; color: var(--ink-3); }
  .acc-sub .chip svg { display: none; }
  .acc-sub.goal { flex-direction: row; align-items: center; gap: 8px; }
  .acc-sub.goal .meter { width: 64px; height: 5px; flex: none; }
  .receipt-amt, .review-amt { font-size: 38px; }
  .opts { grid-template-columns: 1fr; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0; font-size: 11px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
  .tabbar .ti { width: 52px; height: 30px; border-radius: 15px; display: grid; place-items: center; }
  .tabbar a[aria-current="page"] { color: var(--current-ink); font-weight: 600; }
  .tabbar a[aria-current="page"] .ti { background: var(--tint); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .footer { padding: 0 16px 28px; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .scrim { place-items: end center; padding: 0; }
  .dialog { max-width: none; max-height: 92vh; border-radius: 24px 24px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); animation: sheet .22s ease-out; }
  .pop { position: fixed; top: 64px; left: 8px; right: 8px; width: auto; }
  .icon-btn { border-color: transparent; background: transparent; }
  .auth { min-height: calc(100vh - 65px); align-items: start; }
  .auth .card { padding: 24px 20px; }
}
@keyframes sheet { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- linking ---------- */
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); }
.ticks li svg { flex: none; margin-top: 3px; color: var(--current-2); }
.ticks.no li svg { color: var(--ink-3); }
