/* James V3 — warm cream and yellow palette.
   Shared colours for the dashboard, login and generated app icon. */
:root{
  --card:#ffd335; --card-txt:#29291f;
  --brand:#e5b916; --brand-bg:#fff4c7; --accent-ink:#715900;
  --balance-bg:linear-gradient(115deg,#fff3c5 0%,#ffe58a 100%);
  --green:#57886c; --green-bg:#e4efe8;
  --red:#fe4a49; --red-bg:#ffe9e8;
  --gold:#f2c229;

  --bg:#fcfbf7; --sf:#f5f3ec; --sf2:#ece9df; --raise:#fffdf7;
  --line:#e4e0d4; --line2:#eae6db;
  --txt:#292a25; --txt2:#66675f; --txt3:#8d8f84;
  --amber:#927100; --amber-bg:#fff1bb;

  --p1:#ffd335; --p2:#57886c; --p3:#e8bc27; --p4:#fe4a49;
  --p5:#fff0ac; --p6:#c5a94b; --p7:#a3c2ae; --p8:#ffdf70;
  --r:14px;
}

[data-theme=dark]{
  --card:#ffd335; --card-txt:#29291f;
  --brand:#ffd335; --brand-bg:rgba(255,211,53,.12); --accent-ink:#ffe17b;
  --balance-bg:linear-gradient(115deg,#ffefad 0%,#ffdf76 100%);
  --green:#6fa888; --green-bg:rgba(111,168,136,.16);
  --red:#fe4a49; --red-bg:rgba(254,74,73,.16);
  --gold:#f2c229;

  --bg:#141510; --sf:#1e2019; --sf2:#292c22; --raise:#34382c;
  --line:#34372d; --line2:#2b2e24;
  --txt:#f5f3e9; --txt2:#b7bbad; --txt3:#838a79;
  --amber:#ffd335; --amber-bg:rgba(255,211,53,.14);

  --p1:#ffd335; --p2:#6fa888; --p3:#e8bc27; --p4:#fe4a49;
  --p5:#fff0ac; --p6:#ae9239; --p7:#3f6652; --p8:#8f791e;
}

/* Keep chart and progress accents bright, and small labels readable.
   The html prefix takes precedence over the page's default inline styles. */
html .fd-balance{background:var(--balance-bg)}
html .seg button.on,html .datebtn.on,html .ibtn:hover,
html .fd-note .i{color:var(--accent-ink)}
html .fd-balance .state i{background:#36734c}
html .fd-balance .state.bad i{background:#a93624}
html .fd-balance .chg .b.dn{background:rgba(139,45,25,.10);color:#8b2d19}
