/* Mise design system tokens, compiled from its tokens.json. Light by default; dark follows the system setting. */
:root, [data-theme="light"] {
  color-scheme: light;
  --surface-page: #f5f3ef;
  --surface-raised: #ffffff;
  --surface-fill: #efece6;
  --surface-strong: #e2ded6;
  --line: rgba(20,18,14,0.08);
  --line-strong: rgba(20,18,14,0.14);
  --ink: #171612;
  --ink-2: #57534c;
  --ink-3: #6b665e;
  --accent: #c4501e;
  --on-accent: #ffffff;
  --accent-text: #a9421a;
  --accent-soft: #fbe9e1;
  --ok: #2e7d45;
  --ok-soft: #ecf5ef;
  --low: #8f6510;
  --low-soft: #f8f1e2;
  --out: #b83a2d;
  --on-out: #ffffff;
  --out-soft: #f8e4e1;
  --food-veg: #6fa35a;
  --food-carb: #c99a45;
  --food-protein: #db6c50;
  --bar: rgba(245,243,239,0.82);
  --scrim: rgba(20,18,14,0.35);
  --focus: #c4501e;
  --shadow-toast: 0 10px 30px rgba(20,18,14,0.16);
  --shadow-knob: 0 2px 6px rgba(0,0,0,0.25);
  --shadow-button: inset 0 1px 0 rgba(255,255,255,0.22);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --surface-page: #0a0a09;
  --surface-raised: #161614;
  --surface-fill: #1e1e1b;
  --surface-strong: #2a2a26;
  --line: rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.12);
  --ink: #f3f0e9;
  --ink-2: #a8a397;
  --ink-3: #8c877c;
  --accent: #ff7a45;
  --on-accent: #1c0e06;
  --accent-text: #ff8a5c;
  --accent-soft: #2a1a12;
  --ok: #7cc48a;
  --ok-soft: #18261b;
  --low: #e9b44c;
  --low-soft: #2a2212;
  --out: #e86a5c;
  --on-out: #1c0e06;
  --out-soft: #2b1613;
  --food-veg: #8fbf7a;
  --food-carb: #d9b26f;
  --food-protein: #e8836a;
  --bar: rgba(10,10,9,0.8);
  --scrim: rgba(0,0,0,0.55);
  --focus: #ff8a5c;
  --shadow-toast: 0 10px 30px rgba(0,0,0,0.5);
  }
}
[data-theme="dark"] {
  color-scheme: dark;
  --surface-page: #0a0a09;
  --surface-raised: #161614;
  --surface-fill: #1e1e1b;
  --surface-strong: #2a2a26;
  --line: rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.12);
  --ink: #f3f0e9;
  --ink-2: #a8a397;
  --ink-3: #8c877c;
  --accent: #ff7a45;
  --on-accent: #1c0e06;
  --accent-text: #ff8a5c;
  --accent-soft: #2a1a12;
  --ok: #7cc48a;
  --ok-soft: #18261b;
  --low: #e9b44c;
  --low-soft: #2a2212;
  --out: #e86a5c;
  --on-out: #1c0e06;
  --out-soft: #2b1613;
  --food-veg: #8fbf7a;
  --food-carb: #d9b26f;
  --food-protein: #e8836a;
  --bar: rgba(10,10,9,0.8);
  --scrim: rgba(0,0,0,0.55);
  --focus: #ff8a5c;
  --shadow-toast: 0 10px 30px rgba(0,0,0,0.5);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --gutter: 18px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-chip: 8px;
  --radius-control: 11px;
  --radius-button: 14px;
  --radius-tile: 16px;
  --radius-card: 22px;
  --radius-sheet: 30px;
  --radius-round: 999px;
  --size-tap: 44px;
  --size-button: 50px;
  --size-field: 40px;
  --size-navbar: 44px;
  --size-tabbar: 54px;
  --size-icon: 24px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}
.large-title { font-family: var(--font-display); font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.amount { font-family: var(--font-display); font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.title { font-family: var(--font-display); font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.heading { font-family: var(--font-display); font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.headline { font-family: var(--font-text); font-size: 17px; line-height: 1.3; font-weight: 600; }
.body { font-family: var(--font-text); font-size: 16px; line-height: 1.45; font-weight: 400; }
.row-name { font-family: var(--font-text); font-size: 15px; line-height: 1.35; font-weight: 500; }
.section-label { font-family: var(--font-text); font-size: 13px; line-height: 1.3; font-weight: 600; }
.meta { font-family: var(--font-text); font-size: 13px; line-height: 1.35; font-weight: 400; }
.caption { font-family: var(--font-text); font-size: 12px; line-height: 1.3; font-weight: 600; }
.tab-label { font-family: var(--font-text); font-size: 10.5px; line-height: 1.2; font-weight: 600; }
