/* Paperwork design tokens — every colour, radius, shadow and size the app uses, in one place (Aivis 2026-12-02 "sakārto").
   Load order: vendor/heroui-*.min.css (HeroUI's own tokens + components) → tokens.css (this) → theme.css (base) → app.css.
   1. HeroUI variables we change; 2. our own names for the values HeroUI has no token for. Light only. */
:root,:root[data-theme]{
  /* ---- 1. HeroUI overrides ---- */
  --font-sans:GeistSans,ui-sans-serif,system-ui,sans-serif;   /* Geist everywhere (Aivis 2026-12-01) */
  /* WCAG 2.2 AA — each colour only just reaches the bar (Aivis 2026-12-02: "tikko sasniedz, nevajag lielāku"): the original
     hue, darkened in OKLab lightness only until it passes. Text 4.5:1, non-text 3:1. */
  --muted:#696972;          /* text on the greys: 4.56:1 on #ebebec (fields, tab track) — the hardest one; 5.43:1 on white */
  --accent:#0072e3;         /* the Figma #0485f7 darkened: white text 4.53:1, as text on white 4.65:1 */
  --accent-hover:#0065d5;   /* a step darker than the accent (HeroUI mixed white in → 4.0:1); white text 5.36:1, also pressed */
  --focus:#0072e3;
  --danger:#e71327;         /* HeroUI #ff383c darkened: white text 4.53:1, as text on white 4.65:1 */
  --danger-hover:#d80018;
  /* WCAG 1.4.11 non-text contrast (3:1 for what identifies a control or its state; audit 2026-12-02):
     HeroUI's filled fields and the off switch were #ebebec on white = 1.19:1, so they get the field edge */
  --field-edge:#8d8d96;     /* 3.29:1 on white (cards), 3.02:1 on the #f5f5f5 ground (search) */
  --field-border:var(--field-edge);
  --field-border-width:1px;
  /* one line colour for every 1 px line: HeroUI separators (form dividers, table header ticks) use our --line */
  --separator:#e4e4e7;
  --separator-tertiary:#e4e4e7;
  /* HeroUI AlertDialog outside React: the viewport height React Aria would set */
  --visual-viewport-height:100vh;

  /* ---- 2. our tokens (Studio app light ~/lab/tools/app/tokens.css + Aivis's Figma 5ZTlBQ2J82GHl8LyssOdDG) ---- */
  /* surfaces and lines — HeroUI: --background #f5f5f5 ground, --surface #fff cards, --default #ebebec fields */
  --side-bg:#ffffff;          /* side panel (Studio --side) */
  --line:#e4e4e7;             /* EVERY 1 px line: card edges, sidebar, table rows, dividers, chart grid (Studio --line) */
  --well:#ebebec;             /* hover rows, the segment track (Studio --well / --hover) */
  --chip:#e4e4e7;             /* every grey chip: counts, Xolo, dates, statuses without colour (one grey, visible on white and on the ground) */
  --chip-strong:#d4d4d8;      /* the same chip on a hovered table row (one step darker, so it stays visible) */
  --edge:inset 0 0 0 1px var(--line);   /* the 1 px card edge */
  /* chart: graphics need 3:1 only, so the bars keep the lighter Figma blue */
  --chart-bar:#0485f7;
  --chart-pending:#afd0f9;
  /* status colours (Figma): the soft chip pairs */
  --good-soft:#e3f8e9; --good-soft-fg:#277846;
  --bad-soft:#fde7e7; --bad-soft-fg:#a43433;
  --info-soft:#d9edfe; --info-soft-fg:#1e63ae;
  /* shadows: two levels, nothing else */
  --shadow-pop:0 2px 8px 0 #0000000f,0 -6px 12px 0 #00000008,0 14px 28px 0 #00000014;   /* things that float: tooltips, menus, toast, the A4 sheet */
  --shadow-float:0 2px 4px 0 #0000000a,0 1px 2px 0 #0000000f,0 0 1px 0 #0000000f;      /* a small bar over content (PDF | DOCX) */
  /* type: five sizes, each with one line height (Figma %), two letter spacings */
  --lh-12:1.3333;   /* 12 px → 16 px: labels, table heads, chips, tooltips */
  --lh-14:1.4286;   /* 14 px → 20 px: body, rows, buttons */
  --lh-16:1.5;      /* 16 px → 24 px: card titles */
  --lh-20:1.3;      /* 20 px → 26 px: section titles, small figures */
  --lh-24:1.3;      /* 24 px → 31 px: page titles, big figures */
  --ls-num:-.02em;  /* figures (KPI values); everything else 0 */
  /* corners */
  --r-card:20px;    /* cards, KPI cards, the editor card */
  --r-box:16px;     /* small KPI cards, alerts, empty state, totals card, title chip */
  --r-seg:12px;     /* segment tracks, nav rows */
  --r-pill:8px;     /* the chosen segment, tooltips */
  --r-full:9999px;  /* round icons, dots */
  /* layout (Hostinger-like centred column, Aivis 2026-12-01) */
  --side-w:240px;
  --top-h:64px;
  --page-max:1174px;   /* 1110 px of content + 2 × 32 px */
  --page-pad:32px;
}
