/* Cornet Labs theme tokens, shared by cornetlabs.com and Cornet Studio.
   Source: tokens.css in the cornetlabs/design repo. Each product keeps an
   identical copy, so change a value there first, then copy the file into
   each product. Rules for using them are in design/DESIGN.md and each
   product's own DESIGN.md. Components use these tokens, never raw values.

   THEME: the values below are the default Cornet theme. In Cornet Studio,
   applyTheme() overrides the tokens marked [theme] from a customer theme
   (brand color + background). Never hard-code a customer color anywhere. */
/* Also on :root so rules outside #studio-next (dialog backdrops, popups) resolve the scales. */
:root,#studio-next{
  /* Surfaces [theme] */
  --bg:#ffffff;
  --bg-raise:#f5f5f7;
  --panel:#ffffff;
  --panel-2:#f5f5f7;

  /* Lines [theme] */
  --line:rgba(0,0,0,.1);
  --line-strong:rgba(0,0,0,.28);

  /* Text [theme] */
  --ink:#1d1d1f;
  --ink-2:#424245;
  --muted:#6e6e73;

  /* Brand [theme]: actions, selection, tabs, focus, charts only.
     --on-accent and --chart-fill are set only by applyTheme(). */
  --accent:#1d1d1f;
  --grad:#1d1d1f;

  /* Status (fixed): show state only, never decoration.
     Text uses the -ink shade on a -soft background. */
  --ok:#2e8b57;
  --warn:#b7791f;
  --risk:#c0392b;
  --ok-ink:#23704a;
  --warn-ink:#8a5a12;
  --risk-ink:#a93226;
  --ok-soft:color-mix(in srgb,var(--ok) 12%,transparent);
  --warn-soft:color-mix(in srgb,var(--warn) 14%,transparent);
  --risk-soft:color-mix(in srgb,var(--risk) 12%,transparent);

  /* Type scale (fixed) */
  --text-xs:12px;       /* mono labels, table meta, badges */
  --text-sm:13px;       /* dense table cells, menu items */
  --text-caption:13.5px;/* helper and muted text */
  --text-base:14px;     /* controls, sidebar entries */
  --text-md:15px;       /* body (app default) */
  --text-lead:16px;     /* emphasised body, dialog text */
  --text-lg:18px;       /* panel titles */
  --text-xl:20px;       /* section headings */
  --text-2xl:24px;      /* page and dialog titles */
  --text-3xl:32px;      /* sign-in and table titles, key numbers */
  --text-display:40px;  /* single hero number or placeholder glyph */

  /* Radius (fixed) */
  --radius-2xs:3px;     /* hairline marks: resize handles, legend swatches, bar tracks */
  --radius-xs:5px;      /* cells, small chips */
  --radius-sm:8px;      /* inputs, menus, small tiles */
  --radius-md:11px;     /* cards inside panels, popovers */
  --radius:18px;        /* panels, the studio frame */
  --radius-lg:var(--radius);
  --radius-xl:26px;     /* parameter nodes on the workflow canvas */
  --radius-pill:999px;  /* every button and chip */

  /* Elevation (fixed) */
  --shadow:0 24px 60px rgba(0,0,0,.12);                                   /* dialogs, overlays */
  --shadow-raise:0 8px 24px color-mix(in srgb,var(--ink) 12%,transparent); /* popovers, dragged items */
  --shadow-soft:0 1px 2px color-mix(in srgb,var(--ink) 8%,transparent);    /* resting lift on small controls */
  --shadow-drawer:-8px 0 26px color-mix(in srgb,var(--ink) 8%,transparent);/* side drawers */
  --ring-focus:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent); /* field focus halo */
  --scrim:rgba(0,0,0,.55);                                                 /* dialog backdrop */

  /* Motion (fixed) */
  --ease-fast:.18s;
}
