/* ============================================================================
   taikun-tabler.css  —  THE single design-token source for Taikun.
   ----------------------------------------------------------------------------
   Sets ONLY Tabler's own --tblr-* custom properties + a small --tk-* radius
   scale. NO custom classes, NO component CSS — that lives in taikun-ui.css (the
   polish layer). Load AFTER tabler core CSS and BEFORE taikun-ui.css on every
   page. This is the ONLY place brand :root tokens are declared — the duplicate
   :root in taikun-ui.css §1 was removed 2026-06-17 to kill the load-order bug.
   Kept byte-compatible with the ActionEngine HMI copy (one design system).
   Brand color can be swapped here or at runtime via the theme switcher.
   ============================================================================ */
:root{
  /* brand color (taikun.ai red) */
  --tblr-primary:#c0392b;
  --tblr-primary-rgb:192,57,43;

  /* surfaces — white canvas; white cards float on a 1px edge */
  --tblr-body-bg:#ffffff;
  --tblr-body-color:#101114;
  --tblr-secondary:#5b626e;

  /* visible card / region edge */
  --tblr-border-color:#e2e5ea;
  --tblr-border-color-translucent:#e2e5ea;

  /* radius scale — components reference these tokens, never hardcode a radius */
  --tk-radius-sm:.5rem;
  --tk-radius:.65rem;
  --tk-radius-lg:.9rem;
  --tblr-border-radius:.65rem;
  --tblr-border-radius-lg:.85rem;

  /* crisp type */
  --tblr-font-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
/* BUG-A10: promote Inter only after the file is ready so first paint isn't blocked. */
html.fonts-ready{
  --tblr-font-sans-serif:'Inter Var','Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
