/* style-a-1030: EdgeClerk design tokens. ONE source for every surface (agent app, admin, Super Admin, Client Portal, side panel).
   Edit here, then run: node scripts/build-styles.mjs [side panel folder]
     -> src/styles/tokens.js (string for the Workers, injected in <head> by list-search.js withListSearch)
     -> <side panel folder>/tokens.css (+ <link> first in sidepanel.html; the panel cannot load server CSS)
   Option A rule: tokens only replace a hard-coded value when it is the SAME value (or imperceptibly close).
   Near-duplicate shades that are visibly different stay hard-coded until option B moves that surface (map below).
   Colorblind rule: color is never the only signal; status = shape + word (src/status-icons.js). */
:root{
  /* colors */
  --ec-c-ink:#1f2328;        /* text, header bar.   near: #212529 #24292f #222 #2b2b2b #1f1f1f */
  --ec-c-muted:#57606a;      /* secondary text.     near: #5f6368 #59636e #555 #5f5f5f #6e7781 */
  --ec-c-line:#d0d7de;       /* borders.            near: #d0d7de #d8dee4 #ccc #ddd #e1e4e8 */
  --ec-c-surface:#ffffff;    /* page / card.        near: #fff #fcfcfc #fefefe */
  --ec-c-subtle:#f6f8fa;     /* table head, zebra.  near: #f6f6f4 #f5f5f5 #f7f7f7 #f3f4f6 */
  --ec-c-brand:#f26b0f;      /* safety orange.      near: #f26b1d #f2711c #ff6a00 */
  --ec-c-brand-text:#b35900; /* orange as text.     near: #b35900 #c2540a #c4540a #cd6600 #b45309 */
  --ec-c-brand-tint:#fff4ec; /* orange wash.        near: #fff7f0 #fff3e8 #fdf0e6 */
  --ec-c-charcoal:#424242;   /* selected tab (keep distinct from inactive tabs / solid actions) */
  --ec-c-tab:#737373;        /* inactive tabs + solid action buttons; white text */
  --ec-c-tab-hover:#5f5f5f;  /* inactive tab / solid action hover */
  --ec-c-danger:#b42318;     /* Fail / delete.      near: #b0171f #b3261e #c13333 #991b1b #a12020 #d33a2c */
  --ec-c-danger-tint:#fef3f2;/*                     near: #fdecea #fff1f0 #fde8e8 */
  --ec-c-good:#1a7f37;       /* Pass.               near: #1e7b34 #15803d #128666 #2da44e */
  --ec-c-good-tint:#e9f7ef;  /*                     near: #e6f4ea #ecfdf3 #dafbe1 */
  --ec-c-warn:#9a6700;       /* Review.             near: #8a6100 #b08800 #9a6700 #a16207 */
  --ec-c-warn-tint:#fff8d6;  /*                     near: #fff8c5 #fff4ce #fef9c3 */
  /* text sizes */
  --ec-t-12:12px;--ec-t-13:13px;--ec-t-14:14px;--ec-t-16:16px;--ec-t-20:20px;
  /* spacing */
  --ec-s-4:4px;--ec-s-8:8px;--ec-s-12:12px;--ec-s-16:16px;--ec-s-24:24px;--ec-s-32:32px;
  /* corner roundness: tables square, buttons/inputs 4px, cards/pop-ups 8px, chips round */
  --ec-r-table:0;--ec-r-btn:4px;--ec-r-card:8px;--ec-r-chip:999px;
  /* shadows (2) */
  --ec-sh-card:0 1px 2px rgba(31,35,40,.08);--ec-sh-modal:0 8px 24px rgba(31,35,40,.24);
  /* buttons: 32px everywhere, 28px in the side panel */
  --ec-btn-h:32px;--ec-btn-h-panel:28px;
}
/* dark values: OPT-IN only (html[data-ec-tokens=dark]). Nothing sets this attribute yet, so option A changes nothing.
   The current dark mode (src/dark-mode.js) reads each element's light colors at run time; it must keep seeing the light values. */
html[data-ec-tokens=dark]{
  --ec-c-ink:#e6edf3;--ec-c-muted:#9da7b3;--ec-c-line:#3d444d;--ec-c-surface:#161b22;--ec-c-subtle:#21262d;
  --ec-c-brand:#f26b0f;--ec-c-brand-text:#ff9a4d;--ec-c-brand-tint:#3a2414;--ec-c-charcoal:#d0d7de;
  --ec-c-danger:#ff7b72;--ec-c-danger-tint:#3c1618;--ec-c-good:#56d364;--ec-c-good-tint:#12261b;--ec-c-warn:#e3b341;--ec-c-warn-tint:#2e2410;
  --ec-sh-card:0 1px 2px rgba(0,0,0,.5);--ec-sh-modal:0 8px 24px rgba(0,0,0,.6);
}
