/* iBook design tokens — single source of truth (landing + portal + admin).
   Wartości wzięte z portalu (canonical). Wczytywany przez index.html każdej
   aplikacji jako <link rel="stylesheet" href="/static/tokens.css"> PRZED
   styles.css aplikacji. */

:root {
  /* Accent */
  --accent:        #c6f432;
  --accent-2:      color-mix(in oklch, var(--accent) 60%, white);
  --accent-ink:    #0a0a0a;

  /* Background scale (dark default) */
  --bg:            #0a0a0b;
  --bg-2:          #0f1011;
  --surface:       #141517;
  --surface-2:     #1a1c1f;

  /* Lines */
  --line:          rgba(255, 255, 255, 0.07);
  --line-2:        rgba(255, 255, 255, 0.12);

  /* Ink (text) scale */
  --ink:           #f4f4f5;
  --ink-2:         #c2c2c8;
  --ink-3:         #8e8e96;
  --ink-4:         #57575c;

  /* Semantics */
  --danger:        #ff5d54;
  --neg:           #ff5d54;  /* legacy alias for --danger (portal/InvoicesPage, admin/JPK/VAT-UE) */
  --muted:         var(--ink-3);  /* legacy alias - ~25 uzyc w admin/src bylo na NIEZDEFINIOWANEJ zmiennej */
  --warn:          #f5b54a;
  --pos:           #4ade80;

  /* Radius */
  --radius-sm:     10px;
  --radius:        12px;
  --radius-lg:     16px;
  --radius-xl:     22px;

  /* Typography */
  --font-sans:     'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:     'Geist Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* Light theme — opt-in via <html data-theme="light"> */
[data-theme="light"] {
  --bg:        #fafbfc;
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #f1f3f6;
  --line:      rgba(10, 10, 11, 0.07);
  --line-2:    rgba(10, 10, 11, 0.12);
  --ink:       #0a0a0a;
  --ink-2:     #4a5a72;
  --ink-3:     #6b7d92;
  --ink-4:     #a5a5ac;
  --accent:    #7fb800;  /* darker lime for AA contrast on white */
  --accent-ink:#0a0a0a;
}
