/* Viešieji pardavimai design tokens.
   Layer 1: primitives (ramps). Never used directly in components.
   Layer 2: semantic roles, redefined per theme. Components use only these.
   Theme: follows the system; data-theme="light" | "dark" on <html> pins it. */

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

:root {
  /* neutrals carry a little of the accent hue so greys never look dead next to green */
  --n-0: #ffffff; --n-25: #fafbfa; --n-50: #f3f6f4; --n-100: #e9eeeb; --n-200: #dbe2de; --n-300: #c3ccc7;
  --n-400: #98a59e; --n-500: #66736c; --n-600: #515d57; --n-700: #3a4540; --n-800: #232b27; --n-850: #1a211e;
  --n-900: #141a17; --n-950: #0c110f;
  --g-50: #e8f6ee; --g-100: #d0ecdb; --g-200: #a5d9b9; --g-300: #6fc695; --g-400: #3fae75; --g-500: #1f9159;
  --g-600: #13774a; --g-700: #0e5f3a; --g-800: #0c4a2e; --g-900: #0b3a26; --g-950: #072718;
  --a-50: #fdf4de; --a-100: #f9e5b3; --a-400: #e0b24f; --a-600: #94620a; --a-700: #7a4f04; --a-900: #2f2509;
  --r-50: #fbeae7; --r-100: #f6d3cd; --r-400: #ef9486; --r-600: #b0301f; --r-700: #8f2416; --r-900: #371b16;

  /* type: one family, fixed scale for the app (ratio about 1.15), fluid only on the landing page */
  --font: "Geist", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-2xs: .75rem; --fs-xs: .8125rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem;
  --fs-xl: 1.3125rem; --fs-2xl: 1.625rem; --fs-3xl: 2rem;
  --lh-tight: 1.15; --lh-snug: 1.35; --lh-body: 1.55;
  --w-regular: 400; --w-medium: 500; --w-semi: 600; --w-bold: 680;

  /* space: 4px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* shape: controls and chips are pills; containers step up with their size */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;

  /* motion: short and decelerating; nothing bounces */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 120ms; --t-base: 180ms; --t-slow: 320ms;

  --z-sticky: 10; --z-nav: 20; --z-toast: 40;
  --page: 1200px;
  --nav-h: 64px;
}

/* ---------- light (default) ---------- */
:root {
  color-scheme: light;
  --bg: var(--n-50);
  --surface: var(--n-0);
  --surface-2: var(--n-100);
  --surface-hover: var(--n-25);
  --chrome: rgb(243 246 244 / .86);
  --line: var(--n-200);
  --line-strong: var(--n-300);
  --text: var(--n-900);
  --text-2: var(--n-600);
  --text-3: var(--n-500);

  --accent: var(--g-600);
  --accent-hover: var(--g-700);
  --accent-contrast: #ffffff;
  --accent-soft: var(--g-50);
  --accent-soft-2: var(--g-100);
  --accent-text: var(--g-700);
  --ring: rgb(19 119 74 / .35);

  --ok-bg: var(--g-50); --ok-text: var(--g-700);
  --warn-bg: var(--a-50); --warn-text: var(--a-700); --warn-line: var(--a-400);
  --bad-bg: var(--r-50); --bad-text: var(--r-700);
  --mark-bg: var(--a-100); --mark-text: var(--a-700);

  --deep: var(--g-900); --deep-2: var(--g-950); --deep-text: #e6f4ec; --deep-text-2: #a9cdb9;

  --e1: 0 1px 2px rgb(14 40 27 / .05), 0 2px 8px rgb(14 40 27 / .04);
  --e2: 0 2px 4px rgb(14 40 27 / .05), 0 12px 28px rgb(14 40 27 / .09);
  --e3: 0 4px 10px rgb(14 40 27 / .05), 0 28px 64px rgb(14 40 27 / .13);
  --grid-line: rgb(14 40 27 / .07);
  /* category hues: the validated reference categorical order; always shown with an icon and a label */
  --cat-0: var(--n-500); --cat-1: #2a78d6; --cat-2: #eb6834; --cat-3: #1baf7a; --cat-4: #eda100; --cat-5: #e87ba4; --cat-7: #6250d6; --cat-8: #e34948;
  --meter-track: var(--g-100); --meter-track-warn: var(--a-100);
}

/* ---------- dark ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--n-950);
  --surface: var(--n-900);
  --surface-2: var(--n-850);
  --surface-hover: #181f1c;
  --chrome: rgb(12 17 15 / .82);
  --line: #26302b;
  --line-strong: #37433d;
  --text: #e9eeeb;
  --text-2: #a4b0a9;
  --text-3: #808d86;

  --accent: #5fcb93;
  --accent-hover: #7cdaa9;
  --accent-contrast: #06150d;
  --accent-soft: #14301f;
  --accent-soft-2: #1b3f2a;
  --accent-text: #7cdaa9;
  --ring: rgb(95 203 147 / .4);

  --ok-bg: #14301f; --ok-text: #7cdaa9;
  --warn-bg: var(--a-900); --warn-text: #e8c06a; --warn-line: #8a6a1c;
  --bad-bg: var(--r-900); --bad-text: var(--r-400);
  --mark-bg: #4a3a0c; --mark-text: #f0cf80;

  --deep: #123a2a; --deep-2: #0a2219; --deep-text: #e6f4ec; --deep-text-2: #a9cdb9;

  --e1: 0 1px 2px rgb(0 0 0 / .3), 0 2px 8px rgb(0 0 0 / .2);
  --e2: 0 2px 4px rgb(0 0 0 / .3), 0 12px 28px rgb(0 0 0 / .32);
  --e3: 0 4px 10px rgb(0 0 0 / .3), 0 28px 64px rgb(0 0 0 / .42);
  --grid-line: rgb(255 255 255 / .05);
  --cat-0: #808d86; --cat-1: #3987e5; --cat-2: #d95926; --cat-3: #199e70; --cat-4: #c98500; --cat-5: #d55181; --cat-7: #9085e9; --cat-8: #e66767;
  --meter-track: #1b3f2a; --meter-track-warn: #4a3a0c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--n-950);
    --surface: var(--n-900);
    --surface-2: var(--n-850);
    --surface-hover: #181f1c;
    --chrome: rgb(12 17 15 / .82);
    --line: #26302b;
    --line-strong: #37433d;
    --text: #e9eeeb;
    --text-2: #a4b0a9;
    --text-3: #808d86;
    --accent: #5fcb93;
    --accent-hover: #7cdaa9;
    --accent-contrast: #06150d;
    --accent-soft: #14301f;
    --accent-soft-2: #1b3f2a;
    --accent-text: #7cdaa9;
    --ring: rgb(95 203 147 / .4);
    --ok-bg: #14301f; --ok-text: #7cdaa9;
    --warn-bg: var(--a-900); --warn-text: #e8c06a; --warn-line: #8a6a1c;
    --bad-bg: var(--r-900); --bad-text: var(--r-400);
    --mark-bg: #4a3a0c; --mark-text: #f0cf80;
    --deep: #123a2a; --deep-2: #0a2219; --deep-text: #e6f4ec; --deep-text-2: #a9cdb9;
    --e1: 0 1px 2px rgb(0 0 0 / .3), 0 2px 8px rgb(0 0 0 / .2);
    --e2: 0 2px 4px rgb(0 0 0 / .3), 0 12px 28px rgb(0 0 0 / .32);
    --e3: 0 4px 10px rgb(0 0 0 / .3), 0 28px 64px rgb(0 0 0 / .42);
    --grid-line: rgb(255 255 255 / .05);
    --cat-0: #808d86; --cat-1: #3987e5; --cat-2: #d95926; --cat-3: #199e70; --cat-4: #c98500; --cat-5: #d55181; --cat-7: #9085e9; --cat-8: #e66767;
    --meter-track: #1b3f2a; --meter-track-warn: #4a3a0c;
  }
}
