/* ============================================================
   Hunter & Grayson Bucks — app styles
   Kid theming: html[data-kid="hunter"] / html[data-kid="grayson"]
   ============================================================ */

:root {
  --font-round: "Baloo 2", "Fredoka", system-ui, -apple-system, sans-serif;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-1: 0 2px 8px rgba(20, 30, 60, .10);
  --shadow-2: 0 8px 28px rgba(20, 30, 60, .18);
  --tabbar-h: calc(64px + env(safe-area-inset-bottom, 0px));
  --topbar-h: 56px;
  --dur: .25s;
}

/* Hunter — shark green */
html[data-kid="hunter"] {
  --brand: #17915a;
  --brand-deep: #0f7245;
  --brand-soft: #d7f3e3;
  --brand-ink: #0c3a24;
  --accent: #17c3b2;
  --bg: #eaf7ef;
  --card: #ffffff;
  --ink: #122e20;
  --ink-soft: #527764;
  --good: #1f9d55;
  --bad: #e5484d;
  --warn: #f5a524;
}

/* Grayson — tiger blue */
html[data-kid="grayson"] {
  --brand: #2f7ff0;
  --brand-deep: #1b5fc4;
  --brand-soft: #dcebff;
  --brand-ink: #0d2c55;
  --accent: #17c3b2;
  --bg: #eef5ff;
  --card: #ffffff;
  --ink: #14243d;
  --ink-soft: #5a6b85;
  --good: #1f9d55;
  --bad: #e5484d;
  --warn: #f5a524;
}

@media (prefers-color-scheme: dark) {
  html[data-kid="hunter"] {
    --brand: #4ecb8d;
    --brand-deep: #17915a;
    --brand-soft: #123324;
    --brand-ink: #dcf5e6;
    --bg: #0b1712;
    --card: #14261d;
    --ink: #e6f5ec;
    --ink-soft: #8fb3a0;
    --shadow-1: 0 2px 8px rgba(0, 0, 0, .4);
    --shadow-2: 0 8px 28px rgba(0, 0, 0, .5);
  }
  html[data-kid="grayson"] {
    --brand: #5b9cf5;
    --brand-deep: #2f7ff0;
    --brand-soft: #16304f;
    --brand-ink: #dcebff;
    --bg: #0d1526;
    --card: #17233a;
    --ink: #e8eff9;
    --ink-soft: #93a4bd;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-round);
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  overscroll-behavior-y: none;
  transition: background var(--dur), color var(--dur);
}
button { font-family: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--card); color: var(--ink);
  padding: 10px 16px; border-radius: 0 0 12px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.kid-toggle {
  position: relative;
  display: flex; align-items: center;
  background: var(--card);
  border: 2px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-1);
  cursor: pointer;
}
.kid-opt {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  color: var(--ink-soft);
  transition: color var(--dur);
  white-space: nowrap;
}
.kid-opt.is-active { color: #fff; }
.kid-emoji { font-size: 18px; }
.kid-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-radius: 999px;
  transition: transform var(--dur) cubic-bezier(.6, 1.6, .4, 1);
}
html[data-kid="grayson"] .kid-thumb { transform: translateX(100%); }

.sibling-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  min-height: 44px;
}
.sib-bal::after { content: " 🪙"; }

/* ---------- layout ---------- */
.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 4px 14px calc(var(--tabbar-h) + 20px);
}
.view { animation: view-in .22s ease-out; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 18px;
  margin-bottom: 14px;
}
.card-title {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  background: var(--brand-soft); color: var(--brand-ink);
  transition: transform .12s, filter .12s;
  touch-action: manipulation;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: var(--shadow-1); }
.btn-danger  { background: color-mix(in srgb, var(--bad) 14%, var(--card)); color: var(--bad); }
.btn-ghost   { background: transparent; box-shadow: none; color: var(--ink-soft); }
.btn-big     { width: 100%; font-size: 19px; padding: 16px; border-radius: var(--radius-lg); }
.btn-small   { padding: 8px 12px; font-size: 14px; min-height: 36px; border-radius: var(--radius-sm); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- home: balance hero ---------- */
.hero {
  text-align: center;
  padding: 26px 18px 22px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.25), transparent 60%);
  pointer-events: none;
}
.hero-emoji { font-size: 44px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.hero-name { font-size: 18px; font-weight: 600; opacity: .92; margin-top: 2px; }

.balance-wrap { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 10px 0 2px; }
.balance {
  font-size: 68px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 12px rgba(0,0,0,.25);
}

/* odometer */
.odometer { display: inline-flex; overflow: hidden; height: 1em; }
.odo-digit { display: inline-block; overflow: hidden; height: 1em; }
.odo-strip { display: block; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.odo-strip b { display: block; font-weight: inherit; height: 1em; line-height: 1; }

.balance-unit { font-size: 24px; font-weight: 700; opacity: .9; }
.cash-equiv { font-size: 15px; opacity: .85; font-weight: 600; }

.level-row { margin-top: 14px; }
.level-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.22);
  border-radius: 999px; padding: 6px 14px;
  font-weight: 700; font-size: 14px;
}
.level-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.28); margin-top: 8px; overflow: hidden; }
.level-fill { height: 100%; border-radius: 99px; background: #fff; width: 0; transition: width .8s cubic-bezier(.16, 1, .3, 1); }
.level-next { font-size: 12px; opacity: .85; margin-top: 5px; font-weight: 600; }

/* streak + today chips */
.chip-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 7px 13px;
  font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-1);
}
.chip-hot { background: linear-gradient(135deg, #ffb347, #ff7b25); color: #fff; }
.chip-done { background: var(--good); color: #fff; }

/* ---------- stats grid ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 14px;
}
.stat {
  background: var(--card); border-radius: var(--radius-md);
  padding: 12px 8px; text-align: center;
  box-shadow: var(--shadow-1);
}
.stat-num { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- action buttons ---------- */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.actions .btn { padding: 16px 10px; font-size: 17px; }
.earn-quick { display: flex; gap: 8px; margin-top: 10px; }
.earn-quick .btn { flex: 1; }

/* ---------- recent activity ---------- */
.feed { display: flex; flex-direction: column; gap: 2px; }
.feed-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
}
.feed-row:last-child { border-bottom: none; }
.feed-emoji { font-size: 22px; width: 30px; text-align: center; flex: none; }
.feed-main { flex: 1; min-width: 0; }
.feed-label { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-time { font-size: 12px; color: var(--ink-soft); }
.feed-amt { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; flex: none; }
.feed-amt.plus { color: var(--good); }
.feed-amt.minus { color: var(--bad); }
.feed-amt.zero { color: var(--ink-soft); }

/* ---------- treat grid (shop) ---------- */
.treat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.treat {
  background: var(--brand-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px 6px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform .12s;
  min-height: 44px;
}
.treat:active { transform: scale(.94); }
.treat-emoji { font-size: 30px; line-height: 1.1; }
.treat-label { font-size: 13px; font-weight: 700; margin-top: 4px; }
.treat-cost { font-size: 13px; font-weight: 800; color: var(--brand-deep); }

/* ---------- chores ---------- */
.chore {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
}
.chore:last-child { border-bottom: none; }
.chore-check {
  width: 46px; height: 46px; flex: none;
  border-radius: 14px;
  border: 2.5px solid color-mix(in srgb, var(--brand) 55%, transparent);
  background: var(--card);
  font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .12s, background .2s, border-color .2s;
  color: transparent;
}
.chore-check:active { transform: scale(.9); }
.chore.is-done .chore-check { background: var(--good); border-color: var(--good); color: #fff; }
.chore-main { flex: 1; min-width: 0; }
.chore-title { font-weight: 700; font-size: 16px; }
.chore.is-done .chore-title { text-decoration: line-through; color: var(--ink-soft); }
.chore-meta { display: flex; gap: 6px; margin-top: 3px; }
.tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink);
}
.tag-weekly { background: #e9d8ff; color: #5b21b6; }
.tag-once { background: #ffe3e3; color: #b02525; }
html[data-theme-dark] .tag-weekly { background: #3b2a5e; color: #d5b8ff; }
.chore-value { font-weight: 800; font-size: 16px; color: var(--brand-deep); flex: none; }
.chore-edit { flex: none; background: none; border: none; font-size: 18px; opacity: .4; cursor: pointer; padding: 8px; }

/* ---------- goals ---------- */
.goal-card { margin-bottom: 12px; }
.goal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.goal-emoji { font-size: 30px; }
.goal-title { font-weight: 800; font-size: 17px; flex: 1; min-width: 0; }
.goal-status { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.goal-status.achieved { color: var(--good); }
.goal-track { height: 14px; background: var(--brand-soft); border-radius: 99px; overflow: hidden; }
.goal-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--accent)); width: 0; transition: width .8s cubic-bezier(.16, 1, .3, 1); }
.goal-nums { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin: 6px 0 10px; }
.goal-nums .goal-saved { color: var(--brand-deep); }
.goal-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- graph ---------- */
.seg {
  display: flex; background: var(--card); border-radius: var(--radius-md);
  padding: 4px; gap: 4px; box-shadow: var(--shadow-1); margin-bottom: 10px;
}
.seg button {
  flex: 1; border: none; background: transparent;
  padding: 9px 4px; border-radius: 12px;
  font-weight: 700; font-size: 14px; color: var(--ink-soft);
  cursor: pointer;
}
.seg button.is-active { background: var(--brand); color: #fff; }
.chart-box { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-tip {
  position: absolute; pointer-events: none;
  background: var(--ink); color: var(--bg);
  font-size: 12px; font-weight: 700;
  padding: 6px 9px; border-radius: 10px;
  transform: translate(-50%, -120%);
  white-space: nowrap;
  box-shadow: var(--shadow-2);
}
.graph-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }

/* ---------- badges ---------- */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.badge {
  text-align: center; padding: 12px 4px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  opacity: .38;
  filter: grayscale(1);
  transition: opacity .3s, filter .3s, transform .3s;
}
.badge.is-earned { opacity: 1; filter: none; background: linear-gradient(160deg, var(--brand-soft), color-mix(in srgb, var(--brand) 22%, var(--card))); }
.badge.is-new { animation: badge-pop .5s cubic-bezier(.6, 1.8, .4, 1); }
@keyframes badge-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.badge-emoji { font-size: 30px; }
.badge-name { font-size: 12px; font-weight: 800; margin-top: 4px; }
.badge-desc { font-size: 10px; color: var(--ink-soft); margin-top: 2px; line-height: 1.25; }

/* ---------- more menu ---------- */
.menu { display: flex; flex-direction: column; gap: 6px; }
.menu-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: none;
  border-radius: var(--radius-md);
  padding: 15px 16px;
  font-size: 16px; font-weight: 700;
  box-shadow: var(--shadow-1);
  cursor: pointer; text-align: left; width: 100%;
  min-height: 56px;
}
.menu-item:active { transform: scale(.98); }
.menu-ico { font-size: 24px; width: 32px; text-align: center; flex: none; }
.menu-sub { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-top: 1px; }
.menu-arrow { margin-left: auto; color: var(--ink-soft); font-size: 20px; }

/* ---------- settings form ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 5px; }
.field input, .field select {
  width: 100%;
  font-family: inherit; font-size: 16px; font-weight: 600;
  padding: 12px 14px;
  border: 2px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink);
  appearance: none; -webkit-appearance: none;
}
.field input:focus, .field select:focus { border-color: var(--brand); outline: none; }
.emoji-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.emoji-pick button {
  font-size: 22px; width: 46px; height: 46px;
  border-radius: 12px; border: 2px solid transparent;
  background: var(--brand-soft); cursor: pointer;
}
.emoji-pick button.is-picked { border-color: var(--brand); transform: scale(1.08); }

/* ---------- sheet ---------- */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 12, 24, .5);
  backdrop-filter: blur(2px);
  animation: fade-in .2s;
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  max-height: 86dvh;
  background: var(--card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 8px 18px calc(env(safe-area-inset-bottom, 0px) + 18px);
  box-shadow: var(--shadow-2);
  animation: sheet-up .3s cubic-bezier(.2, .9, .3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@keyframes sheet-up { from { transform: translateY(60%); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet-grip { width: 42px; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 18%, transparent); margin: 6px auto 10px; }
.sheet-close {
  position: absolute; top: 12px; right: 14px;
  width: 40px; height: 40px; border-radius: 999px;
  border: none; background: var(--brand-soft); color: var(--brand-ink);
  font-size: 16px; cursor: pointer;
}
.sheet-title { font-size: 20px; font-weight: 800; margin: 4px 44px 14px 0; }

/* ---------- toast receipt ---------- */
.toast-zone {
  position: fixed; left: 0; right: 0;
  bottom: calc(var(--tabbar-h) + 14px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 140; pointer-events: none;
  padding: 0 16px;
}
.toast {
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 10px;
  animation: toast-in .35s cubic-bezier(.2, 1.4, .4, 1);
  max-width: 100%;
}
.toast.out { animation: toast-out .3s forwards; }
@keyframes toast-in { from { transform: translateY(24px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(10px); opacity: 0; } }
.toast-emoji { font-size: 22px; }

/* ---------- celebration ---------- */
.celebrate { position: fixed; inset: 0; z-index: 150; pointer-events: none; overflow: hidden; }
.confetti {
  position: absolute; top: -12px;
  width: 10px; height: 14px; border-radius: 3px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: .9; }
}

/* ---------- wheel ---------- */
.wheel-page {
  position: fixed; inset: 0; z-index: 120;
  background: linear-gradient(170deg, var(--brand-deep), var(--bg) 130%);
  display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px calc(env(safe-area-inset-bottom, 0px) + 20px);
  animation: view-in .25s;
  overflow-y: auto;
}
.wheel-back {
  align-self: flex-start;
  background: rgba(255,255,255,.18); color: #fff;
  border: none; border-radius: 999px;
  padding: 10px 16px; font-weight: 700; font-size: 15px;
  cursor: pointer;
}
.wheel-title { color: #fff; margin: 14px 0 6px; font-size: 26px; }
.wheel-stage { position: relative; width: min(84vw, 340px); margin: 6px auto; }
.wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  font-size: 30px; z-index: 2; color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
.wheel-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.wheel-svg .seg-rotor { transition: transform 4.2s cubic-bezier(.12, .7, .08, 1); transform-box: fill-box; transform-origin: center; }
.wheel-result {
  min-height: 32px; text-align: center;
  color: #fff; font-size: 20px; font-weight: 800;
  margin-top: 10px;
}
.wheel-result.pop { animation: badge-pop .45s cubic-bezier(.6, 1.8, .4, 1); }
.wheel-cost { color: rgba(255,255,255,.8); font-weight: 700; margin: 6px 0 10px; }
#wheel-spin { min-width: 200px; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: var(--tabbar-h);
}
.tab {
  border: none; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink-soft);
  font-size: 11px; font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}
.tab-ico { font-size: 22px; transition: transform .18s; }
.tab.is-active { color: var(--brand); }
.tab.is-active .tab-ico { transform: translateY(-2px) scale(1.15); }

/* ---------- offline banner ---------- */
.offline-bar {
  background: var(--warn); color: #3a2600;
  text-align: center; font-weight: 700; font-size: 13px;
  padding: 6px 10px;
}

/* ---------- misc ---------- */
.empty {
  text-align: center; color: var(--ink-soft);
  padding: 30px 10px; font-weight: 600;
}
.empty-emoji { font-size: 44px; display: block; margin-bottom: 8px; }
.muted { color: var(--ink-soft); font-weight: 600; }
.small { font-size: 13px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 2px 10px; }
.section-head h2 { font-size: 20px; font-weight: 800; margin: 0; }
.ledger-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.ledger-filter::-webkit-scrollbar { display: none; }

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