/* CorpMindX brand overrides for Twenty CRM (twentycrm/twenty, Linaria + Radix-style
   CSS vars, theme classes .light/.dark). Remaps the blue accent scale to the
   CorpMindX coral (#ff385c) and the semantic accent vars derived from it.
   Loaded after Twenty's own CSS via nginx sub_filter, so equal-specificity
   declarations here win; `html` prefix adds a safety specificity bump. */

html .light {
  --t-color-blue1: #fffcfd;
  --t-color-blue2: #fff7f8;
  --t-color-blue3: #ffeef1;
  --t-color-blue4: #ffe3e8;
  --t-color-blue5: #fed4dc;
  --t-color-blue6: #f9c2cd;
  --t-color-blue7: #f1a9b9;
  --t-color-blue8: #e88ba0;
  --t-color-blue9: #ff385c;
  --t-color-blue10: #ec2e51;
  --t-color-blue11: #d31745;
  --t-color-blue12: #64172b;
  --t-accent-primary: #fed4dc;
  --t-accent-secondary: #fed4dc;
  --t-accent-tertiary: #ffeef1;
  --t-accent-quaternary: #fff7f8;
  --t-border-color-blue: #ff385c;
  --t-tag-background-blue: #ffeef1;
}

html .dark {
  --t-color-blue1: #191113;
  --t-color-blue2: #1e1517;
  --t-color-blue3: #331722;
  --t-color-blue4: #45162b;
  --t-color-blue5: #531935;
  --t-color-blue6: #622441;
  --t-color-blue7: #7a3453;
  --t-color-blue8: #a3416b;
  --t-color-blue9: #ff385c;
  --t-color-blue10: #ff4f6e;
  --t-color-blue11: #ff8ba0;
  --t-color-blue12: #ffd1da;
  --t-accent-primary: #531935;
  --t-accent-secondary: #531935;
  --t-accent-tertiary: #331722;
  --t-accent-quaternary: #1e1517;
  --t-border-color-blue: #ff385c;
  --t-tag-background-blue: #45162b;
}

::selection { background: #ff385c33; }

/* Stock Twenty logos → CorpMindX mark. `content:` swaps the rendered image
   even when React keeps resetting the src attribute. */
img[src*="twenty-logo"],
img[src*="twentyhq.github.io"],
img[src*="/images/icons/"] {
  content: url("/corpmindx-brand/logo-mark.svg");
}
