/* Oochtenka design tokens — the ONE source of every visual value (docs/design-system.md explains them).
   Names come from the product's world: statement paper, ink, a ledger that balances, an approval stamp. */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Surfaces: one cool hue, lightness only. */
  --paper: #F6F7F9;            /* canvas */
  --sheet: #FFFFFF;            /* raised surface: panels, detail pane, rows on phone */
  --inset: #F1F3F6;            /* wells: inputs, neutral tags, table heads */

  /* Ink: four text levels. */
  --ink: #0E1726;              /* primary: values, titles */
  --ink-2: #3E4A5C;            /* secondary: names, labels that matter */
  --ink-3: #6B7586;            /* tertiary: meta, column heads, hints */
  --ink-4: #A3ABB8;            /* muted: disabled, zero rows */

  /* Rules (hairlines). Never solid grey hex. */
  --rule: rgba(14, 23, 38, 0.08);
  --rule-strong: rgba(14, 23, 38, 0.14);

  /* The one accent: approval ink. Primary action, selection, focus, counts. Nothing else. */
  --stamp: #2C46C8;
  --stamp-wash: rgba(44, 70, 200, 0.07);

  /* Status: meaning only, always with a word next to it. */
  --balanced: #1C7A4E;         /* MD = D, paired, filed, ok */
  --balanced-wash: rgba(28, 122, 78, 0.08);
  --pending: #A86A12;          /* waits for someone or a date */
  --pending-wash: rgba(168, 106, 18, 0.09);
  --missing: #B93A1E;          /* missing document, failed check, overdue */
  --missing-wash: rgba(185, 58, 30, 0.08);

  /* Rail (sidebar, variant B — the default). */
  --rail: #0E1726;
  --rail-ink: #C9D1DE;
  --rail-ink-2: #7E8AA0;
  --rail-hover: rgba(255, 255, 255, 0.05);
  --rail-on: rgba(255, 255, 255, 0.09);

  /* Type. Geist for everything; Geist Mono only for identifiers (účty, VS, řádky, hash). */
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --fs-xs: 11.5px;   /* tags, kbd, form-row numbers */
  --fs-s: 12.5px;    /* meta lines, column heads, hints */
  --fs-m: 13.5px;    /* UI base: rows, nav, tables, buttons */
  --fs-l: 15px;      /* panel titles; phone rows */
  --fs-xl: 20px;     /* page title (period) */
  --fs-2xl: 28px;    /* phone page title; totals in a pay box */
  --fs-hero: 34px;   /* the focal amount (phone: 40px) */
  --lh: 1.45;
  --track-tight: -0.035em;     /* hero and 2xl */
  --track-title: -0.02em;      /* xl and l */

  /* Space: 4 px grid. */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;

  /* Radius: concentric — outer = inner + padding. */
  --r-xs: 4px;   /* tags, kbd */
  --r-s: 6px;    /* buttons, inputs, nav items */
  --r-m: 8px;    /* entry table, pair box, document */
  --r-l: 12px;   /* panels */
  --r-xl: 14px;  /* phone cards; phone buttons 12px */

  /* Depth: borders-only. One ring for raised sheets, one shadow for floating things (document preview, popovers). */
  --ring: 0 0 0 1px var(--rule);
  --float: 0 0 0 1px var(--rule), 0 6px 18px -8px rgba(14, 23, 38, 0.18);

  /* Layout. */
  --rail-w: 232px;
  --queue-w: 404px;
  --doc-w: 248px;
  --row-h: 40px;       /* dense desktop table row */
  --tap: 48px;         /* phone minimum target; primary phone button 50px */

  /* Motion: felt, not watched. */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --t-fast: 120ms;     /* press, hover */
  --t-med: 180ms;      /* popover, selection move */
}
