/*
 * AI Ops design tokens: the one file that decides how AI Ops looks.
 *
 * The website and the desktop app both read this file and nothing else for
 * colour, type, shape and easing. To restyle AI Ops, edit a value here.
 * Rules for using each token: rules.md, next to this file.
 *
 * Light values first, dark values below. Dark applies when the root element
 * carries the class "dark". Light is the default.
 */

:root {
  color-scheme: light;

  /* Type */
  --aiops-font-sans:
    "Inter", "Inter Variable", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, "Helvetica Neue", Arial, sans-serif;
  --aiops-font-mono:
    ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  /* Backgrounds */
  --aiops-canvas: #ffffff; /* the page, and behind the conversation */
  --aiops-surface: #ffffff; /* things that float: cards, menus, dialogs, popovers */
  --aiops-sidebar: #ffffff; /* the sidebar; told apart by its border, not its fill */
  --aiops-subtle: #fafafa; /* quiet fills: table headers, box headers */
  --aiops-hover: #f0f0f0; /* hovered and pressed rows and buttons */
  --aiops-code: #f6f6f6; /* code blocks and inline code */
  --aiops-message: #f0f0f0; /* your own message bubble */
  --aiops-logo-tile: #ffffff; /* behind a tool's logo; white in both themes so any logo reads */

  /* Text, strongest to weakest */
  --aiops-text: #191919; /* headings, labels, anything you act on */
  --aiops-text-body: #404040; /* paragraphs you read */
  --aiops-text-muted: #727272; /* secondary text; the weakest that may carry meaning */
  --aiops-text-faint: #9a9a9a; /* hints and numbers that only decorate */

  /* Lines */
  --aiops-border: #e9e9e9; /* hairlines and box outlines */
  --aiops-border-strong: #dcdcdc; /* input and button outlines */
  --aiops-mark: #a8a8a8; /* list bullets, separators, step lines not yet reached */
  --aiops-underline: #c4c4c4; /* underlines on neutral links */

  /* Accent: the one brand colour. Current item, links, focus rings, main buttons */
  --aiops-accent: oklch(0.52 0.2 264);
  --aiops-accent-text: #ffffff; /* text on an accent fill */
  --aiops-accent-ink: oklch(0.44 0.2 264); /* accent-coloured text on the page */
  --aiops-accent-tint: oklch(0.968 0.02 264); /* accent-coloured fill behind text */
  --aiops-accent-line: oklch(0.86 0.064 264); /* accent-coloured border */

  /* Done */
  --aiops-ok: oklch(0.58 0.15 152);
  --aiops-ok-text: #ffffff; /* a tick on an ok fill */
  --aiops-ok-tint: oklch(0.96 0.03 152);

  /* Icon colours. Icons and small marks only, never text or fills. There is no red. */
  --aiops-amber: oklch(0.7 0.14 75); /* time, waiting */
  --aiops-lane-foundation: oklch(0.56 0.19 295);
  --aiops-lane-attract: oklch(0.7 0.14 75);
  --aiops-lane-convert: oklch(0.6 0.15 152);
  --aiops-lane-deliver: oklch(0.6 0.11 200);
  --aiops-lane-run: oklch(0.6 0.15 240);
  --aiops-lane-build: oklch(0.62 0.15 125);
  --aiops-claude: #d97757; /* the Claude logo's own colour; only on that logo */

  /* Depth */
  --aiops-shadow:
    0 0 0 1px rgb(0 0 0 / 8%), 0 8px 24px rgb(0 0 0 / 8%), 0 2px 6px rgb(0 0 0 / 4%);
  --aiops-scrim: rgb(25 25 25 / 18%); /* behind a drawer or sheet */

  /* Shape */
  --aiops-radius: 12px; /* boxes: cards, code, tables, callouts */
  --aiops-radius-control: 10px; /* buttons, inputs, rows */

  /* Easing */
  --aiops-ease: cubic-bezier(0.2, 0, 0, 1); /* a control changing state */
  --aiops-ease-enter: cubic-bezier(0.23, 1, 0.32, 1); /* something arriving */
  --aiops-ease-move: cubic-bezier(0.77, 0, 0.175, 1); /* something moving between two places */
}

:root.dark {
  color-scheme: dark;

  --aiops-canvas: #161618;
  --aiops-surface: #1e1e21;
  --aiops-sidebar: #161618;
  --aiops-subtle: #1b1b1d;
  --aiops-hover: #28282b;
  --aiops-code: #212124;
  --aiops-message: #28282b;
  --aiops-logo-tile: #ffffff; /* stays white in dark, on purpose */

  --aiops-text: #f3f3f3;
  --aiops-text-body: #c8c8c9;
  --aiops-text-muted: #8d8d90;
  --aiops-text-faint: #737377;

  --aiops-border: #2a2a2d;
  --aiops-border-strong: #3b3b3f;
  --aiops-mark: #66666a;
  --aiops-underline: #5c5c61;

  --aiops-accent: oklch(0.7 0.16 264);
  --aiops-accent-text: #0b0b0c;
  --aiops-accent-ink: oklch(0.8 0.124 264);
  --aiops-accent-tint: oklch(0.7 0.16 264 / 13%);
  --aiops-accent-line: oklch(0.7 0.16 264 / 38%);

  --aiops-ok: oklch(0.76 0.16 152);
  --aiops-ok-text: #0b0b0c;
  --aiops-ok-tint: oklch(0.76 0.16 152 / 14%);

  --aiops-amber: oklch(0.8 0.13 80);
  --aiops-lane-foundation: oklch(0.74 0.14 295);
  --aiops-lane-attract: oklch(0.8 0.13 80);
  --aiops-lane-convert: oklch(0.76 0.15 152);
  --aiops-lane-deliver: oklch(0.76 0.1 200);
  --aiops-lane-run: oklch(0.74 0.12 240);
  --aiops-lane-build: oklch(0.78 0.14 125);

  --aiops-shadow:
    0 0 0 1px rgb(255 255 255 / 10%), 0 12px 32px rgb(0 0 0 / 60%), 0 2px 6px rgb(0 0 0 / 40%);
  --aiops-scrim: rgb(0 0 0 / 55%);
}
