/* Palette overrides are kept separate from the light/dark theme files so a
   selected palette always follows the active brightness theme. */
:root[data-color-palette="violet"] {
  --ff-bg: #f8f6fc;
  --ff-sidebar: #ffffff;
  --ff-card: #ffffff;
  --ff-soft: #eee9f6;
  --ff-input: #ffffff;
  --ff-text: #21172d;
  --ff-muted: #675d72;
  --ff-border: rgba(50, 33, 73, .18);
  --ff-accent: #5e3a9e;
  --ff-accent-text: #ffffff;
  --ff-focus: rgba(94, 58, 158, .2);
  --ff-danger: #ad2c2c;
  --ff-success: #397a45;
}

:root[data-color-palette="market"] {
  --ff-bg: #f7fbfa;
  --ff-sidebar: #ffffff;
  --ff-card: #ffffff;
  --ff-soft: #e4f1ee;
  --ff-input: #ffffff;
  --ff-text: #14313a;
  --ff-muted: #5d7074;
  --ff-border: rgba(20, 65, 69, .18);
  --ff-accent: #0f766e;
  --ff-accent-text: #ffffff;
  --ff-focus: rgba(15, 118, 110, .2);
  --ff-danger: #b5472c;
  --ff-success: #347b57;
}

:root[data-color-palette="violet"][data-theme="night"] {
  --ff-bg: #0f0c14;
  --ff-sidebar: #17121f;
  --ff-card: #211a2b;
  --ff-soft: #30263d;
  --ff-input: #15101c;
  --ff-text: #f7f1ff;
  --ff-muted: #c5bad3;
  --ff-border: rgba(236, 222, 255, .16);
  --ff-accent: #f4c542;
  --ff-accent-text: #1b1404;
  --ff-focus: rgba(244, 197, 66, .25);
  --ff-danger: #ff9e92;
  --ff-success: #afe0a0;
}

:root[data-color-palette="market"][data-theme="night"] {
  --ff-bg: #091516;
  --ff-sidebar: #0e2021;
  --ff-card: #142a2b;
  --ff-soft: #1b3838;
  --ff-input: #0c1b1c;
  --ff-text: #e8fbf5;
  --ff-muted: #b5d1c9;
  --ff-border: rgba(202, 241, 229, .16);
  --ff-accent: #54d4be;
  --ff-accent-text: #08201c;
  --ff-focus: rgba(84, 212, 190, .25);
  --ff-danger: #ffab8c;
  --ff-success: #a9e4b7;
}
