/* PennyTrack design tokens. 20 Nov 2026 (client decision): the OLD PennyTrack brand is back (teal #1B9AAA/#1D6B78, violet #7A5BD5, yellow #E3B100, pink #D65C93, orange #E08A1E, green #2E9A5B, red #D43D3D, cream #FBF8F2; Plus Jakarta Sans + Inter + JetBrains Mono for money). The old app.css variables (--brand, --pink, ...) are the source for the app; these tokens feed the v2 components. */
:root {
  color-scheme: light;

  --color-canvas: #F6F2EA;
  --color-surface: #FFFFFF;
  --color-surface-muted: #FBF8F2;
  --color-surface-feature: #FFE7D1;

  --color-text: #12313A;
  --color-text-muted: #4D626A;

  --color-border: #E9E3D8;
  --color-border-strong: #DAD2C4; /* old PennyTrack line-2 (client decision 20 Nov) */

  --color-primary: #1D6B78;
  --color-primary-hover: #134C57;
  --color-on-primary: #FFFFFF;
  --color-primary-tint: #E0F0F2;
  --color-primary-soft: rgba(0,0,0,.04); /* PE-0031: was an undefined token with an inline fallback in v2.css */

  --color-accent: #46BCC9;
  --color-accent-hover: #2FA5B3;
  --color-accent-text: #134C57;

  --color-chart-cyan: #46BCC9;
  --color-chart-blue: #28638B;
  --color-chart-income: #235763;
  --color-chart-spend: #BF5638;
  --color-chart-saving: #256B54;
  --color-chart-debt: #B13D37;
  --color-chart-missing: #B9C2C0;
  /* chart + illustration palette (A-03: JS never hard-codes a hex colour; no purple) */
  --color-chart-teal-soft: #5F8C86; --color-chart-amber: #8D590B; --color-chart-peach: #D9885F; --color-chart-rust: #A44129;
  --color-chart-slate: #7A8F99; --color-chart-sky: #3F8FA3; --color-chart-clay: #C98A73; --color-chart-sand: #B8A27A;
  --color-chart-green-soft: #4E8F6F; --color-chart-forest: #1F4F3F; --color-chart-bronze: #8D6E3F; --color-chart-grey: #9AA7A5;
  --color-chart-light: #B4BBCB; --color-chart-axis: #98A1B6; --color-chart-gold: #C28F00;
  --color-weather-sun: #F7C04A; --color-weather-ray: #F2B233; --color-weather-edge: #E9A21B;

  --color-success: #256B54;
  --color-success-bg: #E8F5ED;
  --color-danger: #B13D37;
  --color-danger-bg: #FBEDEA;
  --color-warning: #8D590B;
  --color-warning-bg: #FFF4DB;
  --color-info: #28638B;
  --color-info-bg: #E5F5F5;

  --color-focus: #134C57;

  --font-display: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, monospace;
  --font-ui: "Inter", "Inter Fallback", "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 18px; --radius-2xl: 24px; --radius-pill: 999px;

  --shadow-card: 0 2px 8px rgba(36, 53, 56, 0.035);
  --shadow-raised: 0 8px 24px rgba(36, 53, 56, 0.075);
  --shadow-modal: 0 20px 56px rgba(36, 53, 56, 0.14);

  --sidebar-width: 232px;
  --sidebar-collapsed-width: 64px;
  --content-max-width: 1280px;
  --control-height: 44px;
  --control-height-lg: 48px;

  --motion-fast: 120ms; --motion-standard: 180ms; --motion-slow: 240ms;

  --text-xs: 12px; --text-sm: 14px; --text-md: 16px; --text-lg: 18px; --text-xl: 22px; --text-2xl: 28px; --text-3xl: 36px;
  --fs-display: 64px; --fs-hero: 48px; --fs-h1: 38px; --fs-h2: 28px; --fs-h3: 20px; --fs-h4: 17px;
  --fs-body: 15px; --fs-small: 14px; --fs-label: 13px; --fs-meta: 12px; --fs-money: 32px;
}
@media (max-width: 639px) {
  :root { --fs-display: 42px; --fs-hero: 36px; --fs-h1: 32px; --fs-h2: 25px; --fs-h3: 19px; --fs-money: 28px; }
}

/* Dark mode (V1 "night" palette, flattened: solid surfaces so every text pair is measurable). Set by html[data-theme=dark]. */
html[data-theme=dark] {
  color-scheme: dark;
  --color-canvas: #171B1D; --color-surface: #36403F; --color-surface-muted: #2B3433; --color-surface-feature: #2F4A50;
  --color-text: #FFF4E6; --color-text-muted: #E3CFB8;
  --color-border: #53605F; --color-border-strong: #657573;
  --color-primary: #3FB8C6; --color-primary-hover: #7FD3DD; --color-on-primary: #0E1112; --color-primary-tint: #1F3B40;
  --color-accent: #46BCC9; --color-accent-hover: #7FD3DD; --color-accent-text: #7FD3DD;
  --color-chart-income: #3FB8C6; --color-chart-blue: #7FA6F2; --color-chart-spend: #F08FB5; --color-chart-saving: #6FD0A4; --color-chart-debt: #FF8F88; --color-chart-missing: #5C6968;
  --color-chart-amber: #E8B95A; --color-chart-rust: #F0997F; --color-chart-forest: #6FD0A4; --color-chart-bronze: #D2B27E; --color-chart-slate: #A9B8BF; --color-chart-sky: #7FC3D6; --color-chart-axis: #A9B3C9;
  --color-success: #7FD3A8; --color-success-bg: #1F3A2D; --color-danger: #FF8F88; --color-danger-bg: #43262A;
  --color-warning: #F2C46B; --color-warning-bg: #3F3418; --color-info: #8FB6F2; --color-info-bg: #1F3340;
  --color-focus: #7FD3DD;
  --shadow-card: 0 2px 8px rgba(0,0,0,.35); --shadow-raised: 0 8px 24px rgba(0,0,0,.45); --shadow-modal: 0 20px 56px rgba(0,0,0,.6);
}

.money, .financial-number, td[data-numeric] { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* PE-0031: literal colours moved out of component CSS, same values */
:root{--calm-teal:#287D80;--calm-deep:#205665;--calm-tint:#E5EFF0;--hc-0e1112:#0e1112;--hc-12313a:#12313a;--hc-134c57:#134c57;--hc-171b1d:#171b1d;--hc-17683a:#17683a;--hc-1a434c:#1a434c;--hc-1b1e38:#1b1e38;--hc-1b2d44:#1b2d44;--hc-1b3550:#1b3550;--hc-1b9aaa:#1b9aaa;--hc-1c3446:#1c3446;--hc-1d6b78:#1d6b78;--hc-1e2527:#1e2527;--hc-1e5560:#1e5560;--hc-1f3138:#1f3138;--hc-1f7a47:#1f7a47;--hc-223a56:#223a56;--hc-235763:#235763;--hc-244563:#244563;--hc-256b54:#256b54;--hc-262a4a:#262a4a;--hc-26302f:#26302f;--hc-27404a:#27404a;--hc-2a2a4a:#2a2a4a;--hc-2b2208:#2b2208;--hc-2b3436:#2b3436;--hc-2e2a14:#2e2a14;--hc-2e4c8c:#2e4c8c;--hc-2e9a5b:#2e9a5b;--hc-33301a:#33301a;--hc-36403f:#36403f;--hc-38386a:#38386a;--hc-3a2e0a:#3a2e0a;--hc-3a3114:#3a3114;--hc-3a3418:#3a3418;--hc-3a6590:#3a6590;--hc-3e5359:#3e5359;--hc-3e63b6:#3e63b6;--hc-3f6a80:#3f6a80;--hc-3fb8c6:#3fb8c6;--hc-4a3b0e:#4a3b0e;--hc-4a3f16:#4a3f16;--hc-4a4a82:#4a4a82;--hc-4a5757:#4a5757;--hc-4a6300:#4a6300;--hc-4a6a78:#4a6a78;--hc-4a7baa:#4a7baa;--hc-4b2f9e:#4b2f9e;--hc-4f586b:#4f586b;--hc-4f646b:#4f646b;--hc-516670:#516670;--hc-53605f:#53605f;--hc-555:#555;--hc-587c8a:#587c8a;--hc-5a3fb0:#5a3fb0;--hc-5a6f76:#5a6f76;--hc-5bd08a:#5bd08a;--hc-5f5524:#5f5524;--hc-5f5f9e:#5f5f9e;--hc-5fcad5:#5fcad5;--hc-657573:#657573;--hc-6a5a22:#6a5a22;--hc-6a6030:#6a6030;--hc-6b5518:#6b5518;--hc-6b7690:#6b7690;--hc-748587:#748587;--hc-7a5bd5:#7a5bd5;--hc-7a5c00:#7a5c00;--hc-7a6a2c:#7a6a2c;--hc-7fd3a8:#7fd3a8;--hc-7fd3dd:#7fd3dd;--hc-8a4b00:#8a4b00;--hc-8a7530:#8a7530;--hc-8a8579:#8a8579;--hc-8a93a6:#8a93a6;--hc-8b93a8:#8b93a8;--hc-8c9c9a:#8c9c9a;--hc-8fa1a6:#8fa1a6;--hc-8fd9e3:#8fd9e3;--hc-8fdce6:#8fdce6;--hc-9a5a00:#9a5a00;--hc-9aa7bf:#9aa7bf;--hc-a63f73:#a63f73;--hc-a99886:#a99886;--hc-a9afd6:#a9afd6;--hc-a9bef2:#a9bef2;--hc-b6f000:#b6f000;--hc-b7cbe9:#b7cbe9;--hc-bac4d8:#bac4d8;--hc-bcc1df:#bcc1df;--hc-bda9fa:#bda9fa;--hc-bf3636:#bf3636;--hc-c9d0e4:#c9d0e4;--hc-c9d8ef:#c9d8ef;--hc-cdbffc:#cdbffc;--hc-cdf55f:#cdf55f;--hc-cfeaee:#cfeaee;--hc-d3eedb:#d3eedb;--hc-d43d3d:#d43d3d;--hc-d5d5ee:#d5d5ee;--hc-d65c93:#d65c93;--hc-d8c8b4:#d8c8b4;--hc-dce7f8:#dce7f8;--hc-dfe5f2:#dfe5f2;--hc-e08a1e:#e08a1e;--hc-e0dff2:#e0dff2;--hc-e1d8f8:#e1d8f8;--hc-e3b100:#e3b100;--hc-e3cfb8:#e3cfb8;--hc-e3f2f4:#e3f2f4;--hc-e3f3f5:#e3f3f5;--hc-e4f4e9:#e4f4e9;--hc-e5e0d6:#e5e0d6;--hc-e6edfa:#e6edfa;--hc-e6f6ea:#e6f6ea;--hc-e8edf9:#e8edf9;--hc-e8f1f2:#e8f1f2;--hc-eaf0f7:#eaf0f7;--hc-edb93f:#edb93f;--hc-eef3ff:#eef3ff;--hc-efe9dd:#efe9dd;--hc-efeafb:#efeafb;--hc-eff1f5:#eff1f5;--hc-f0ebfc:#f0ebfc;--hc-f0f2f8:#f0f2f8;--hc-f1f9fa:#f1f9fa;--hc-f2a33a:#f2a33a;--hc-f2d36b:#f2d36b;--hc-f2faf4:#f2faf4;--hc-f4fdd0:#f4fdd0;--hc-f5a3c7:#f5a3c7;--hc-f6cf63:#f6cf63;--hc-f6ebdd:#f6ebdd;--hc-f9d2d2:#f9d2d2;--hc-fbe0e0:#fbe0e0;--hc-fbe5cf:#fbe5cf;--hc-fbeaf2:#fbeaf2;--hc-fce9e9:#fce9e9;--hc-fcf3d0:#fcf3d0;--hc-fdebeb:#fdebeb;--hc-fef3f3:#fef3f3;--hc-ff7b7b:#ff7b7b;--hc-ff9a9a:#ff9a9a;--hc-ffc2c2:#ffc2c2;--hc-ffd36b:#ffd36b;--hc-ffe08a:#ffe08a;--hc-ffe2b8:#ffe2b8;--hc-ffe9a6:#ffe9a6;--hc-ffe9b8:#ffe9b8;--hc-ffeba3:#ffeba3;--hc-ffeed3:#ffeed3;--hc-fff:#fff;--hc-fff1dc:#fff1dc;--hc-fff3d8:#fff3d8;--hc-fff4cc:#fff4cc;--hc-fff4e6:#fff4e6;--hc-fff7d6:#fff7d6;--hc-fff7df:#fff7df;--hc-fff8ec:#fff8ec;--hc-ffe7d1:#FFE7D1;}

/* PE-0031: colours that used to be written inline in html/js (exact same values) */
:root{--hc-rgba-0-0-0-p18:rgba(0,0,0,.18);--hc-1f3c8a:#1f3c8a;--hc-ffffff:#ffffff;--hc-d22b33:#d22b33;--hc-aeb9d3:#aeb9d3;--hc-e3eaf8:#e3eaf8;--hc-8fa2cc:#8fa2cc;--hc-9aa2c8:#9aa2c8;--hc-5b6590:#5b6590;--hc-f7c04a:#f7c04a;--hc-e9a21b:#e9a21b;--hc-b4bbcb:#b4bbcb;--hc-ffd84d:#ffd84d;--hc-f5b301:#f5b301;--hc-ffc929:#ffc929;--hc-c98f00:#c98f00;--hc-e6ecf7:#e6ecf7;--hc-c9d1e3:#c9d1e3;--hc-d9dfec:#d9dfec;--hc-bfc8dd:#bfc8dd;--hc-4f7bc4:#4f7bc4;--hc-8e9dbb:#8e9dbb;--hc-a3b0cb:#a3b0cb;--hc-7f8eb0:#7f8eb0;--hc-5b63b3:#5b63b3;--hc-5e6592:#5e6592;--hc-7a81aa:#7a81aa;--hc-4e5582:#4e5582;--hc-ffe57a:#ffe57a;--hc-rgba-0-0-0-p25:rgba(0,0,0,.25);--hc-rgba-0-0-0-p45:rgba(0,0,0,.45);--hc-rgba-0-0-0-p3:rgba(0,0,0,.3);--hc-243538:#243538;--hc-d8d2c8:#d8d2c8;--hc-rgba-36-53-56-p14:rgba(36,53,56,.14);--hc-4d5f62:#4d5f62;--hc-rgba-36-53-56-p1:rgba(36,53,56,.1);--hc-rgba-255-231-209-p5:rgba(255,231,209,.5);--hc-000:#000;--hc-1d2b2e:#1d2b2e;--hc-fbf8f2:#fbf8f2;--hc-eee:#eee;}

/* calm v2 (PE-0227 lane): bars, needs/wants family colours, chip ink */
:root{--calm-warn:#C99A4B;--calm-over:#C9705F;--calm-over-d:#E08A78;--calm-warn-d:#D9AE63;--calm-chip-ink-d:#CFEAEA;--calm-bar-plan:#B7D3D5;--calm-needs:#205665;--calm-wants:#6FA8AB}
html[data-theme=dark]{--calm-bar-plan:#4D7477;--calm-needs:#8FC9CE;--calm-wants:#4F8E92}
