/* Chore Bank — styles.css  (iPad-first, works on phones and computers too) */

:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --good: #15803d;
  --bad: #dc2626;
  --warn: #b45309;
  --accent: #0284c7;
  --accent2: #0d9488;
  --soft: rgba(2, 132, 199, 0.12);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 18px rgba(15, 23, 42, 0.06);
  --radius: 20px;
  color-scheme: light dark;
}
[data-theme="jungle"] { --accent: #15803d; --accent2: #65a30d; --soft: rgba(21, 128, 61, 0.13); }
[data-theme="sunset"] { --accent: #ea580c; --accent2: #db2777; --soft: rgba(234, 88, 12, 0.13); }
[data-theme="galaxy"] { --accent: #7c3aed; --accent2: #2563eb; --soft: rgba(124, 58, 237, 0.13); }
[data-theme="berry"]  { --accent: #be185d; --accent2: #9333ea; --soft: rgba(190, 24, 93, 0.13); }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --card: #141d2f;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: #243049;
    --good: #4ade80;
    --bad: #f87171;
    --warn: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  :root:not([data-theme]), [data-theme="ocean"] { --accent: #38bdf8; --accent2: #2dd4bf; --soft: rgba(56, 189, 248, 0.16); }
  [data-theme="jungle"] { --accent: #4ade80; --accent2: #a3e635; --soft: rgba(74, 222, 128, 0.16); }
  [data-theme="sunset"] { --accent: #fb923c; --accent2: #f472b6; --soft: rgba(251, 146, 60, 0.16); }
  [data-theme="galaxy"] { --accent: #a78bfa; --accent2: #60a5fa; --soft: rgba(167, 139, 250, 0.16); }
  [data-theme="berry"]  { --accent: #f472b6; --accent2: #c084fc; --soft: rgba(244, 114, 182, 0.16); }
  .btn.primary, .btn.good, .btn.bad, .btn.warn-btn, .seg input:checked + span, .pin-key:active,
  .pick-opt input:checked + span, .day input:checked + span { color: #0b1220; }
  .money-card { color: #0b1220; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
body.modal-open { overflow: hidden; }
#app {
  max-width: 920px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 8px) 16px calc(96px + env(safe-area-inset-bottom));
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 8px; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; margin-top: 16px; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.strike { text-decoration: line-through; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
label.link.inline { display: inline; margin: 0; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

/* ---------- top bar + tab bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 14px; }
.hello { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  font-size: 34px; width: 58px; height: 58px; flex: none;
  display: grid; place-items: center; border-radius: 18px; background: var(--soft);
}
.avatar.parent { background: rgba(245, 158, 11, 0.18); }
.hi { font-size: 24px; font-weight: 800; }
.sub { color: var(--muted); font-size: 14px; }
.parent-stripe {
  height: 8px; border-radius: 0 0 6px 6px; margin: 0 -16px;
  background: repeating-linear-gradient(45deg, #fbbf24 0 12px, #f59e0b 12px 24px);
}
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tab {
  flex: 1; max-width: 150px; border: 0; background: none; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; cursor: pointer;
}
.tab .ti { font-size: 25px; line-height: 1.1; position: relative; filter: grayscale(0.6); opacity: 0.8; }
.tab.on { color: var(--accent); }
.tab.on .ti { filter: none; opacity: 1; transform: scale(1.08); }
.tab .count {
  position: absolute; top: -4px; right: -12px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- cards ---------- */
.card {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); margin-bottom: 14px;
}
.card.tap { cursor: pointer; }
.card.tap:active { transform: scale(0.99); }
.card-title { font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
.card-head { display: flex; justify-content: space-between; align-items: center; }
.screen-head { margin: 4px 2px 16px; }
.big { font-size: 30px; font-weight: 800; }
.big-amt { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2 .card { margin-bottom: 14px; }
.note {
  background: rgba(245, 158, 11, 0.14); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px;
}
.empty { text-align: center; color: var(--muted); padding: 28px 12px; font-size: 18px; }

.money-card { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.money-card .card-title { color: inherit; opacity: 0.85; }
.money-card .fade { opacity: 0.85; margin-top: 10px; }
.accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.acct { background: rgba(255, 255, 255, 0.18); border-radius: 16px; padding: 14px; }
.acct-label { font-weight: 700; font-size: 15px; opacity: 0.95; }
.acct-amt { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.pot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill { background: var(--soft); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 15px; }
.today { display: flex; align-items: center; gap: 14px; }
.ring-bg { stroke: var(--border); }
.ring-fg { stroke: var(--accent); transition: stroke-dashoffset 0.6s; }
.streak .big { font-size: 34px; }
.mini-goal { display: flex; align-items: center; gap: 16px; }
.mini-goal .jar { width: 64px; height: 78px; }
.tip p { font-size: 18px; margin: 0; }
.level-card { text-align: center; }
.lvl-big { font-size: 40px; font-weight: 800; color: var(--accent); }
.lvl-title { font-weight: 700; margin-bottom: 10px; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; -webkit-appearance: none; border: 0; border-radius: 14px; cursor: pointer;
  padding: 12px 18px; min-height: 46px; font: inherit; font-weight: 700;
  background: var(--soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform 0.08s;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.96); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.good { background: var(--good); color: #fff; }
.btn.bad { background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.light { background: rgba(255, 255, 255, 0.25); color: inherit; }
.btn.big { width: 100%; padding: 16px; font-size: 19px; margin-bottom: 14px; }
.btn.small { padding: 6px 12px; min-height: 38px; font-size: 15px; }
.icon-btn {
  border: 0; background: var(--soft); width: 46px; height: 46px; flex: none; border-radius: 14px;
  font-size: 20px; cursor: pointer; display: grid; place-items: center; color: var(--text);
}
.icon-btn.small { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
.link { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; padding: 2px 4px; cursor: pointer; text-decoration: underline; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.row.end { justify-content: flex-end; }
.row.wrap { flex-wrap: wrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- lists ---------- */
.list .item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list .item:last-child { border-bottom: 0; }
.item .emo { font-size: 26px; width: 40px; text-align: center; flex: none; }
.item.inactive { opacity: 0.5; }
h2.group { font-size: 14px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 20px 4px 10px; }

/* ---------- chores ---------- */
.chore {
  display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px;
  padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.chore-emoji { font-size: 32px; width: 56px; height: 56px; flex: none; display: grid; place-items: center; background: var(--soft); border-radius: 16px; }
.chore-main { flex: 1; min-width: 0; }
.chore-name { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.chore-meta { color: var(--muted); font-size: 15px; }
.chore .btn { min-width: 96px; }
.chore.done { opacity: 0.7; }
.chore.done .chore-name { text-decoration: line-through; text-decoration-thickness: 2px; }
.done-badge { color: var(--good); font-weight: 800; padding: 0 8px; white-space: nowrap; }
@media (min-width: 720px) {
  .chore-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .chore-list .chore { margin: 0; }
}

/* ---------- goals ---------- */
.goal { display: flex; align-items: center; gap: 16px; }
.goal .jar { width: 86px; height: 104px; flex: none; }
.goal-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.goal-info .btn { align-self: flex-start; }
.goal-name { font-weight: 800; font-size: 20px; }
.goal-actions { display: flex; flex-direction: column; gap: 8px; }
.goal.reached { outline: 3px solid var(--good); }
.jar-fill { fill: var(--accent2); }
.jar-top { fill: rgba(255, 255, 255, 0.5); }
.jar-glass { fill: none; stroke: var(--muted); stroke-width: 3; }
.jar-shine { stroke: rgba(255, 255, 255, 0.7); stroke-width: 4; stroke-linecap: round; }
.jar-lid { fill: var(--accent); }
.bar { height: 12px; background: var(--border); border-radius: 999px; overflow: hidden; margin: 6px 0; }
.bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.6s; }
.bar.over span { background: var(--bad); }

/* ---------- budget ---------- */
.cat { padding: 10px 0; border-bottom: 1px solid var(--border); }
.cat:last-of-type { border-bottom: 0; }
.cat-top { display: flex; justify-content: space-between; font-weight: 700; gap: 8px; }
.budget-row { display: grid; grid-template-columns: 58px 1fr 110px 46px; gap: 8px; align-items: center; margin-bottom: 8px; }
.budget-row input { margin: 0; }

/* ---------- trophies ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { text-align: center; padding: 14px 6px; }
.stat-v { font-size: 22px; font-weight: 800; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.badge { background: var(--card); border-radius: 18px; padding: 16px 10px; text-align: center; box-shadow: var(--shadow); opacity: 0.55; }
.badge.on { opacity: 1; outline: 2px solid var(--soft); }
.b-emoji { font-size: 42px; }
.b-name { font-weight: 800; margin-top: 4px; }
.b-desc { font-size: 13px; color: var(--muted); }

/* ---------- forms ---------- */
label { display: block; font-weight: 700; margin: 12px 0; }
.field-label { font-weight: 700; margin: 16px 0 6px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text);
  font: inherit; font-size: 17px; font-weight: 500;
}
textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
label.check { display: flex; align-items: center; gap: 12px; font-weight: 600; }
label.check input { width: 26px; height: 26px; margin: 0; flex: none; accent-color: var(--accent); }
.split-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.split-row.two { grid-template-columns: 1fr 1fr; }
.split-row label { margin: 8px 0; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { margin: 0; flex: 2 1 180px; }
.inline-form input.amt { flex: 1 1 90px; }
.seg { display: flex; gap: 8px; margin: 8px 0; }
.seg label { margin: 0; flex: 1; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; text-align: center; padding: 10px; border-radius: 12px; background: var(--soft); color: var(--accent); }
.seg input:checked + span { background: var(--accent); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--soft); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; align-items: center; }
.emoji-input { width: 64px !important; text-align: center; font-size: 24px; padding: 6px; margin: 0 6px 0 0; display: inline-block; }
.emo { font-size: 24px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid transparent; background: var(--soft); cursor: pointer; padding: 0; }
.emo.on { border-color: var(--accent); }
.danger { border: 2px solid rgba(220, 38, 38, 0.3); }

/* ---------- setup ---------- */
.setup { min-height: 92vh; display: grid; place-items: center; padding: 12px 0; }
.setup-card { width: 100%; max-width: 600px; padding: 26px; }
.big-emoji { font-size: 60px; text-align: center; }
.setup h1 { text-align: center; }
.setup-card > .muted { text-align: center; }
.step-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.step-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.step-dots span.on { background: var(--accent); width: 26px; border-radius: 5px; }
.step-dots span.done { background: var(--accent2); }
.pick-list { max-height: 52vh; overflow: auto; margin: 8px 0; }
.pick { padding: 8px 4px; margin: 0; border-bottom: 1px solid var(--border); }
.pick-emoji { font-size: 26px; }

/* ---------- modal, PIN, toast ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fade 0.15s ease-out;
}
.modal {
  background: var(--card); color: var(--text); border-radius: 24px; padding: 22px; width: 100%; max-width: 540px;
  max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: pop 0.18s ease-out;
}
.pin-modal { max-width: 380px; }
.pin { text-align: center; }
.pin-emoji { font-size: 40px; }
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 16px 0 20px; }
.pin-dots .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent); }
.pin-dots .dot.on { background: var(--accent); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 290px; margin: 0 auto 12px; }
.pin-key { height: 66px; border: 0; border-radius: 20px; background: var(--soft); color: var(--text); font: inherit; font-size: 28px; font-weight: 700; cursor: pointer; }
.pin-key:active { background: var(--accent); color: #fff; }
.shake { animation: shake 0.35s; }
.celebrate { text-align: center; }
.cele-emoji { font-size: 64px; }
#toast-root {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 70;
  bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px;
  width: max-content; max-width: calc(100vw - 32px); pointer-events: none;
}
.toast {
  background: #1e293b; color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; text-align: center;
  opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.toast.show { opacity: 1; transform: none; }
.toast.good { background: #15803d; }
.toast.bad { background: #b91c1c; }

/* ---------- confetti ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 80; }
.confetti i { position: absolute; top: -16px; width: 9px; height: 15px; border-radius: 2px; animation: fall linear forwards; }

@keyframes fall { to { transform: translate(var(--x), 108vh) rotate(var(--r)); } }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }

/* ---------- v2: live money ---------- */
.acct-sub { font-size: 14px; font-weight: 700; opacity: 0.92; }
.big-ish { font-size: 22px; font-weight: 800; }
.lead { font-size: 20px; font-weight: 700; margin: 4px 0 12px; }
.math { margin-top: 8px; font-size: 15px; }
.math div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.money-card.low { background: linear-gradient(135deg, #d97706, #dc2626); }
.low-note { background: rgba(255, 255, 255, 0.22); border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-size: 15px; font-weight: 600; }
.note.alert { background: rgba(220, 38, 38, 0.12); border: 2px solid rgba(220, 38, 38, 0.4); }
.review-card { border: 2px solid var(--accent); }
.item.tap { cursor: pointer; }
.impact { background: var(--soft); border-radius: 14px; padding: 12px 14px; margin: 12px 0; font-size: 16px; }
.impact div + div { margin-top: 4px; }
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-opt, .day { margin: 0; }
.pick-opt input, .day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-opt span, .day span { display: block; padding: 10px 14px; border-radius: 14px; background: var(--soft); font-weight: 700; cursor: pointer; }
.pick-opt input:checked + span, .day input:checked + span { background: var(--accent); color: #fff; }
.pick-opt input:focus-visible + span, .day input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.spark { display: block; width: 100%; height: 70px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.worth-row { display: flex; gap: 20px; font-size: 22px; font-weight: 800; }
.verdict { font-size: 24px; font-weight: 800; margin: 14px 0 6px; }
.verdict.yes { color: var(--good); }
.verdict.no { color: var(--warn); }
a.btn { text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- v2: Launch Pad ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile {
  border: 3px solid var(--border); background: var(--bg); color: inherit; font: inherit; border-radius: 20px;
  padding: 14px 8px; min-height: 142px; text-align: center; cursor: pointer;
}
.tile.on { border-color: var(--good); background: rgba(22, 163, 74, 0.12); }
.tile.away { opacity: 0.55; border-style: dashed; cursor: default; }
.tile-emoji { font-size: 48px; line-height: 1.15; }
.tile-name { font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }
.tile-sub { font-size: 13px; color: var(--muted); }
.tile.on .tile-sub { color: var(--good); font-weight: 700; }
.liftoff:not(:disabled) { animation: pulse 1.2s infinite; }
.land-row { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid var(--border); border-radius: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.land-row.home { border-color: var(--good); }
.land-row.left { border-color: var(--warn); }
.land-row .emo { font-size: 30px; }
.btn.warn-btn { background: var(--warn); color: #fff; }
.countdown { background: var(--soft); border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; }
.countdown.hot, .launch-card.hot { background: rgba(245, 158, 11, 0.22); }
.launch-card.hot { outline: 3px solid #f59e0b; }
.rescue { border: 2px dashed var(--warn); }
.check-btn { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 3px solid var(--accent); background: none; cursor: pointer; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.time-grid label { margin: 4px 0; }
.day-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rocket { position: fixed; left: 50%; bottom: -100px; margin-left: -50px; font-size: 96px; z-index: 90; pointer-events: none; animation: rocket 1.6s ease-in forwards; }
@keyframes rocket { to { transform: translateY(-130vh); } }
@keyframes pulse { 50% { transform: scale(1.03); } }

/* ---------- small screens ---------- */
@media (max-width: 520px) {
  h1 { font-size: 26px; }
  .big-amt { font-size: 36px; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .split-row { grid-template-columns: 1fr 1fr; }
  .goal .jar { width: 64px; height: 78px; }
  .tab { font-size: 10.5px; }
  .tab .ti { font-size: 22px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .budget-row { grid-template-columns: 52px 1fr 84px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Dark mode: the bright gradient cards need dark text (kept last so it wins over the base card rules). */
@media (prefers-color-scheme: dark) {
  .money-card, .money-card .card-title { color: #0b1220; }
  .money-card .btn.light { background: rgba(11, 18, 32, 0.14); }
  .acct { background: rgba(11, 18, 32, 0.12); }
}
