/* Copied unchanged from the console: ui/packages/ui/src/styles/tokens.css at 64dbf23.
   Do not edit here. To update, copy the file again and change the commit above. */

/*
 * Dwaar Console design tokens — ReUI / shadcn "neutral" look.
 *
 * Names are semantic and stable; values live only here. Nothing else in the
 * codebase may hold a colour, font or radius.
 *
 * Theme   -> <html data-theme="light|dark">        (next-themes)
 * Density -> <html data-density="compact|default|large">
 * Calm    -> <html data-calm="true">               (muted status colour, no motion)
 */

:root,
[data-theme="light"] {
  color-scheme: light;

  /* Ink: text and icons (zinc scale) */
  --ink: oklch(0.21 0.006 285.9);
  --ink-2: oklch(0.44 0.017 285.8);
  --ink-3: oklch(0.55 0.016 285.9);
  --ink-inverse: oklch(0.985 0 0);

  /* Surfaces */
  --paper: oklch(0.985 0 0);
  /* White plate behind third-party logos; the same in every theme so dark marks stay visible. */
  --logo-plate: oklch(1 0 0);
  /* Dwaar mark gradient, from the brand file. Fixed: not themed, not an accent. */
  --logo-from: #f1b669;
  --logo-via: #e79055;
  --logo-to: #de6445;
  /* Light and depth for the sculpted Dwaar AI mark, fixed across themes. */
  --logo-highlight: #ffe3af;
  --logo-edge: #df8350;
  --logo-shadow: #8c3927;
  --logo-outline: #a8492b;
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.967 0.001 286.4);

  /* Chart series: identity colours for lines and rings, in fixed order (indigo, green, purple, orange, cyan, pink).
     Validated for colour-blind separation and 3:1 on the surface; never a status. */
  --series-1: #4f46e5;
  --series-2: #16a34a;
  --series-3: #a855f7;
  --series-4: #ea580c;
  --series-5: #0891b2;
  --series-6: #db2777;

  /* Code-to-exploit stages, in ladder order: Present grey, Reachable yellow, Shipped orange, Running brown,
     Exposed red, Proven clay (the Dwaar brand colour). Fixed by the product; identity of a stage, not a status. */
  --stage-1: #71717a;
  --stage-2: #facc15;
  --stage-3: #f97316;
  --stage-4: #7c4a1e;
  --stage-5: #f43f3f;
  --stage-6: #a13630;
  --line: oklch(0.92 0.004 286.3);
  --line-strong: oklch(0.87 0.006 286.3);

  /* Accent: selection, focus ring, primary emphasis. Never a status. */
  --brand: oklch(0.52 0.22 277);
  --brand-ink: oklch(0.36 0.14 279);
  --brand-tint: oklch(0.96 0.02 277);
  /* Text on solid brand (primary buttons). */
  --brand-fg: oklch(0.985 0 0);

  /* Status */
  --ok: oklch(0.69 0.17 162.5);
  --ok-tint: oklch(0.96 0.04 160);
  --ok-ink: oklch(0.43 0.1 163);
  --attn: oklch(0.77 0.16 70.1);
  --attn-tint: oklch(0.97 0.05 85);
  --attn-ink: oklch(0.47 0.11 60);
  --crit: oklch(0.59 0.22 25.8);
  --crit-tint: oklch(0.96 0.025 20);
  --crit-ink: oklch(0.44 0.17 25);
  --unk: oklch(0.63 0.014 286);
  --unk-tint: oklch(0.967 0.001 286.4);
  --unk-ink: oklch(0.44 0.017 285.8);

  /* Identity tints: deterministic colour for orgs, users, providers. Never a status. */
  --cat-1: oklch(0.93 0.05 277);
  --cat-1-ink: oklch(0.4 0.14 277);
  --cat-2: oklch(0.93 0.05 200);
  --cat-2-ink: oklch(0.38 0.09 200);
  --cat-3: oklch(0.93 0.05 330);
  --cat-3-ink: oklch(0.42 0.14 330);
  --cat-4: oklch(0.93 0.05 150);
  --cat-4-ink: oklch(0.38 0.1 150);
  --cat-5: oklch(0.94 0.06 60);
  --cat-5-ink: oklch(0.42 0.1 55);
  --cat-6: oklch(0.93 0.04 240);
  --cat-6-ink: oklch(0.38 0.09 240);
  --cat-7: oklch(0.94 0.06 100);
  --cat-7-ink: oklch(0.34 0.08 100);
  --cat-8: oklch(0.93 0.05 20);
  --cat-8-ink: oklch(0.38 0.14 20);

  /* Sidebar rail: light, like ReUI app shells */
  --rail: oklch(0.985 0 0);
  --rail-ink: var(--ink);
  --rail-ink-dim: var(--ink-2);
  --rail-active: var(--brand-tint);
  --rail-line: var(--line);

  /* Shape and type */
  --radius: 0.625rem;
  --font-display: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --font-code: "JetBrains Mono Variable", ui-monospace, monospace;

  /* Density (default) */
  --space-unit: 0.25rem;
  --text-base-size: 0.875rem;
  --row-h: 2.5rem;
  --control-h: 2.25rem;

  /* Stacking layers, lowest first: the page; drawers, popovers and menus (z-50); the floating Dwaar AI assistant
     (above drawers so it can talk about the open record); centred dialogs (ConfirmDialog, the command palette);
     toasts (sonner's own layer, above everything). */
  --z-assistant: 60;
  --z-dialog: 70;
}

[data-theme="dark"] {
  color-scheme: dark;

  --ink: oklch(0.985 0 0);
  --ink-2: oklch(0.71 0.013 286.1);
  --ink-3: oklch(0.64 0.014 286);
  --ink-inverse: oklch(0.21 0.006 285.9);

  --paper: oklch(0.14 0.005 285.8);
  --surface: oklch(0.21 0.006 285.9);
  --surface-2: oklch(0.27 0.006 286);
  --series-1: #6d70f5;
  --series-2: #1ea34f;
  --series-3: #a855f7;
  --series-4: #e2631a;
  --series-5: #0c9ab5;
  --series-6: #e2569b;
  --stage-1: #a1a1aa;
  --stage-2: #facc15;
  --stage-3: #f97316;
  --stage-4: #9a6a35;
  --stage-5: #f87171;
  --stage-6: #b8423b;
  --line: oklch(1 0 0 / 10%);
  --line-strong: oklch(1 0 0 / 18%);

  --brand: oklch(0.67 0.18 276.9);
  --brand-ink: oklch(0.87 0.08 278);
  --brand-tint: oklch(0.3 0.08 277);
  --brand-fg: oklch(0.17 0.01 285);

  --ok: oklch(0.72 0.17 162);
  --ok-tint: oklch(0.27 0.05 162);
  --ok-ink: oklch(0.85 0.12 160);
  --attn: oklch(0.8 0.16 75);
  --attn-tint: oklch(0.3 0.06 70);
  --attn-ink: oklch(0.88 0.11 80);
  --crit: oklch(0.7 0.19 22);
  --crit-tint: oklch(0.3 0.08 25);
  --crit-ink: oklch(0.86 0.09 20);
  --unk: oklch(0.55 0.014 286);
  --unk-tint: oklch(0.27 0.006 286);
  --unk-ink: oklch(0.8 0.01 286);

  --cat-1: oklch(0.32 0.08 277);
  --cat-1-ink: oklch(0.86 0.08 277);
  --cat-2: oklch(0.3 0.06 200);
  --cat-2-ink: oklch(0.85 0.08 200);
  --cat-3: oklch(0.32 0.08 330);
  --cat-3-ink: oklch(0.86 0.09 330);
  --cat-4: oklch(0.3 0.06 150);
  --cat-4-ink: oklch(0.85 0.09 150);
  --cat-5: oklch(0.32 0.07 60);
  --cat-5-ink: oklch(0.87 0.09 70);
  --cat-6: oklch(0.3 0.05 240);
  --cat-6-ink: oklch(0.85 0.07 240);
  --cat-7: oklch(0.32 0.06 100);
  --cat-7-ink: oklch(0.87 0.1 100);
  --cat-8: oklch(0.32 0.08 20);
  --cat-8-ink: oklch(0.86 0.09 20);

  --rail: oklch(0.17 0.005 285.8);
  --rail-ink: var(--ink);
  --rail-ink-dim: var(--ink-2);
  --rail-active: var(--brand-tint);
  --rail-line: var(--line);
}


/* Accent themes: <html data-accent="...">. Default (no attribute) is indigo. Only the accent changes; status colours never do. */
[data-accent="clay"] {
  --brand: #a13630;
  --brand-ink: #761c14;
  --brand-tint: #f6ece9;
}
[data-theme="dark"][data-accent="clay"] {
  --brand: oklch(0.66 0.15 27);
  --brand-ink: oklch(0.9 0.05 27);
  --brand-tint: oklch(0.31 0.07 27);
}
[data-accent="purple"] {
  --brand: oklch(0.5 0.22 305);
  --brand-ink: oklch(0.38 0.15 305);
  --brand-tint: oklch(0.96 0.025 305);
}
[data-theme="dark"][data-accent="purple"] {
  --brand: oklch(0.7 0.18 305);
  --brand-ink: oklch(0.88 0.08 305);
  --brand-tint: oklch(0.31 0.08 305);
}
[data-accent="green"] {
  --brand: oklch(0.47 0.13 150);
  --brand-ink: oklch(0.36 0.1 150);
  --brand-tint: oklch(0.96 0.03 150);
}
[data-theme="dark"][data-accent="green"] {
  --brand: oklch(0.72 0.15 150);
  --brand-ink: oklch(0.88 0.1 150);
  --brand-tint: oklch(0.3 0.06 150);
}
[data-accent="brown"] {
  --brand: oklch(0.48 0.08 55);
  --brand-ink: oklch(0.35 0.07 55);
  --brand-tint: oklch(0.95 0.025 60);
}
[data-theme="dark"][data-accent="brown"] {
  --brand: oklch(0.7 0.09 60);
  --brand-ink: oklch(0.88 0.06 65);
  --brand-tint: oklch(0.31 0.05 55);
}
[data-accent="teal"] {
  --brand: oklch(0.47 0.09 195);
  --brand-ink: oklch(0.36 0.08 195);
  --brand-tint: oklch(0.96 0.03 195);
}
[data-theme="dark"][data-accent="teal"] {
  --brand: oklch(0.74 0.12 195);
  --brand-ink: oklch(0.88 0.08 195);
  --brand-tint: oklch(0.3 0.06 195);
}
[data-accent="rose"] {
  --brand: oklch(0.52 0.2 10);
  --brand-ink: oklch(0.4 0.15 10);
  --brand-tint: oklch(0.96 0.025 10);
}
[data-theme="dark"][data-accent="rose"] {
  --brand: oklch(0.72 0.17 10);
  --brand-ink: oklch(0.88 0.08 10);
  --brand-tint: oklch(0.31 0.08 10);
}
[data-accent="amber"] {
  --brand: oklch(0.72 0.16 70);
  --brand-ink: oklch(0.42 0.11 60);
  --brand-tint: oklch(0.96 0.045 80);
  --brand-fg: oklch(0.2 0.03 60);
}
[data-theme="dark"][data-accent="amber"] {
  --brand: oklch(0.8 0.15 75);
  --brand-ink: oklch(0.9 0.1 80);
  --brand-tint: oklch(0.32 0.07 70);
}
[data-accent="slate"] {
  --brand: oklch(0.45 0.03 260);
  --brand-ink: oklch(0.3 0.03 260);
  --brand-tint: oklch(0.95 0.01 260);
}
[data-theme="dark"][data-accent="slate"] {
  --brand: oklch(0.7 0.03 260);
  --brand-ink: oklch(0.88 0.02 260);
  --brand-tint: oklch(0.3 0.03 260);
}

[data-density="compact"] {
  --space-unit: 0.2rem;
  --text-base-size: 0.8125rem;
  --row-h: 2rem;
  --control-h: 1.875rem;
}

[data-density="large"] {
  --space-unit: 0.3rem;
  --text-base-size: 1rem;
  --row-h: 3rem;
  --control-h: 2.625rem;
}

[data-calm="true"] {
  --ok: color-mix(in oklch, var(--ink-3) 55%, oklch(0.69 0.17 162.5));
  --attn: color-mix(in oklch, var(--ink-3) 55%, oklch(0.77 0.16 70.1));
  --crit: color-mix(in oklch, var(--ink-3) 40%, oklch(0.59 0.22 25.8));
}

[data-calm="true"] *,
[data-calm="true"] *::before,
[data-calm="true"] *::after {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
}
