/* RB Finance design tokens — taken from RBOS (igorpanjan-redbumerang/RBOS,
   src/rbos/web/static/tokens.css) so this app reads as part of the same product.

   Decided, not defaulted:

   **Fonts are self-hosted.** Geist and Geist Mono (SIL OFL) are the two variable .woff2 files
   RBOS ships. No CDN: the fallback stacks below must look acceptable on their own.

   **The accent is a context hue, not a fixed brand colour.** `.cx` computes `--c` from `--h`
   in oklch, exactly as RBOS does. This app is the Finance context, whose hue RBOS defines as
   80 (company/rb/modules/modules.json) — change it there first, then here.

   **Light only, for now.** The dark block is RBOS's, copied in so a theme switch later is a
   class on <html>, not a new palette. Nothing sets `.dark` yet. */

@font-face{
  font-family:'Geist';
  src:url('../fonts/Geist-Variable.woff2') format('woff2-variations'),
      url('../fonts/Geist-Variable.woff2') format('woff2');
  font-weight:100 900;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Geist Mono';
  src:url('../fonts/GeistMono-Variable.woff2') format('woff2-variations'),
      url('../fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight:100 900;font-style:normal;font-display:swap;
}

:root{
  --sans:'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --h:80;                          /* Finance */
}

.light{
  color-scheme:light;
  --bg:#f3f3f0;
  --surface:#ffffff;
  --raised:#f8f8f6;
  --line:rgba(12,14,18,.1);
  --line2:rgba(12,14,18,.22);
  --text:#0e1013;
  --muted:#4c525b;
  --faint:#646a73;
  --cl:.46; --cc:.17;
  --sev1l:.66; --sev1c:.11;
  --sev2l:.56; --sev2c:.15;
  --sev3l:.46; --sev3c:.17;
  --ink:#ffffff;
  --danger:#b3261e;
  --dangerbg:rgba(179,38,30,.09);
  --done:#166534;  --done-bg:rgba(22,101,52,.10);
  --div-pos:#2a78d6; --div-neg:#e34948;
  --neutral:#7a8089;
}
.dark{
  color-scheme:dark;
  --bg:#090a0c;
  --surface:#101216;
  --raised:#181b21;
  --line:rgba(255,255,255,.08);
  --line2:rgba(255,255,255,.17);
  --text:#eceef0;
  --muted:#a4aab3;
  --faint:#868d97;
  --cl:.82; --cc:.13;
  --sev1l:.58; --sev1c:.10;
  --sev2l:.70; --sev2c:.12;
  --sev3l:.82; --sev3c:.13;
  --ink:#090a0c;
  --danger:#ff8f80;
  --dangerbg:rgba(255,143,128,.14);
  --done:#5fd98a;  --done-bg:rgba(95,217,138,.16);
  --div-pos:#3987e5; --div-neg:#e66767;
  --neutral:#8c929b;
}

/* The context hue, recomputed wherever `.cx` sits. */
.cx{
  --c:  oklch(var(--cl) var(--cc) var(--h));
  --cs: oklch(var(--cl) var(--cc) var(--h) / .13);
  --cm: oklch(var(--cl) var(--cc) var(--h) / .30);
  --sev1: oklch(var(--sev1l) var(--sev1c) var(--h));
  --sev2: oklch(var(--sev2l) var(--sev2c) var(--h));
  --sev3: oklch(var(--sev3l) var(--sev3c) var(--h));
}

.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
:focus-visible{outline:2px solid var(--c, var(--text));outline-offset:2px}
