/* IoTAPS "orbit" landing tokens: the console's Default appearance (Admin -> Appearance ->
   Default). Teal accent #008184 (light) and #2ebfc4 (dark) on zinc neutrals, the colours of the
   old console (web/src/legacy/styles/console.css, deleted in design-system plan Task 31): white and
   #fafafa pages with white cards in light, #09090b pages with #111114 cards in dark. Geist and
   Geist Mono, as in the consoles.

   Every accent-derived colour is mixed from --accent, so the platform accent (platform.js sets
   --accent on <html>) and a white-label brand (/brand/brand.css) recolour the whole site.
   --paper is the page colour; theme.js paints the browser's UI colour with it. */
:root,
[data-theme="light"] {
  color-scheme: light;

  --paper: #ffffff;
  --bg: #ffffff;
  --bg-2: #fafafa;
  --bg-3: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f4f4f5;
  --glass: rgb(255 255 255 / 0.74);

  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --line-soft: #efeff1;
  /* Form controls need 3:1 against the page (WCAG 1.4.11). */
  --field: #8e8e97;

  --ink: #09090b;
  --ink-2: #3f3f46;
  --muted: #5f5f69;
  /* Decorative marks and large figures only. */
  --faint: #a1a1aa;

  --accent: #008184;
  --accent-ink: color-mix(in oklab, var(--accent) 82%, #000000);
  --accent-hover: color-mix(in oklab, var(--accent) 86%, #000000);
  --accent-soft: color-mix(in oklab, var(--accent) 8%, #ffffff);
  --accent-soft-2: color-mix(in oklab, var(--accent) 15%, #ffffff);
  --accent-line: color-mix(in oklab, var(--accent) 32%, #ffffff);
  --accent-glow: color-mix(in srgb, var(--accent) 18%, transparent);
  --accent-glow-2: color-mix(in srgb, var(--accent) 9%, transparent);
  --on-accent: #ffffff;

  --ok: #15803d;
  --ok-soft: #ecfdf3;
  --ok-dot: #16a34a;
  --warn: #9a5b07;
  --warn-soft: #fff8eb;
  --warn-dot: #f59e0b;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --danger-dot: #ef4444;
  --info: #1d4ed8;
  --info-soft: #eff6ff;

  --code-bg: #fafafa;
  --code-head: #f4f4f5;
  --code-fg: #18181b;
  --code-muted: #63636d;
  --code-line: #e4e4e7;
  --t-key: color-mix(in oklab, var(--accent) 80%, #000000);
  --t-str: #9a4a0b;
  --t-num: #6d28d9;
  --t-com: #63636d;

  --shadow-xs: 0 1px 2px rgb(9 9 11 / 0.05);
  --shadow-sm: 0 1px 2px rgb(9 9 11 / 0.04), 0 4px 12px -4px rgb(9 9 11 / 0.07);
  --shadow-md: 0 1px 2px rgb(9 9 11 / 0.04), 0 14px 36px -14px rgb(9 9 11 / 0.16);
  --shadow-lg: 0 2px 6px rgb(9 9 11 / 0.04), 0 40px 80px -32px rgb(9 9 11 / 0.26);
  --highlight: inset 0 1px 0 rgb(255 255 255 / 0.9);

  --grid-line: rgb(9 9 11 / 0.055);
  --ring: color-mix(in srgb, var(--accent) 20%, transparent);
  --ring-faint: color-mix(in srgb, var(--accent) 11%, transparent);
  --mock-canvas: #fafafa;
  --mock-side: #ffffff;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 64px;
  --r-xs: 6px;
  --r-sm: 8px;
  --r: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

  --paper: #09090b;
  --bg: #09090b;
  --bg-2: #0c0c0e;
  --bg-3: #141417;
  --surface: #111114;
  --surface-2: #17171a;
  --surface-3: #1c1c20;
  --glass: rgb(9 9 11 / 0.72);

  --line: #222227;
  --line-2: #2f2f35;
  --line-soft: #1a1a1e;
  --field: #6e6e78;

  --ink: #fafafa;
  --ink-2: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #6b6b74;

  --accent: #2ebfc4;
  --accent-ink: color-mix(in oklab, var(--accent) 76%, #ffffff);
  --accent-hover: color-mix(in oklab, var(--accent) 82%, #ffffff);
  --accent-soft: color-mix(in oklab, var(--accent) 11%, #09090b);
  --accent-soft-2: color-mix(in oklab, var(--accent) 19%, #09090b);
  --accent-line: color-mix(in oklab, var(--accent) 36%, #09090b);
  --accent-glow: color-mix(in srgb, var(--accent) 24%, transparent);
  --accent-glow-2: color-mix(in srgb, var(--accent) 12%, transparent);
  --on-accent: #06191a;

  --ok: #4ade80;
  --ok-soft: rgb(74 222 128 / 0.1);
  --ok-dot: #22c55e;
  --warn: #fbbf24;
  --warn-soft: rgb(251 191 36 / 0.1);
  --warn-dot: #f59e0b;
  --danger: #f87171;
  --danger-soft: rgb(248 113 113 / 0.1);
  --danger-dot: #ef4444;
  --info: #60a5fa;
  --info-soft: rgb(96 165 250 / 0.1);

  --code-bg: #0c0c0f;
  --code-head: #111114;
  --code-fg: #e4e4e7;
  --code-muted: #8b8b94;
  --code-line: #222227;
  --t-key: color-mix(in oklab, var(--accent) 72%, #ffffff);
  --t-str: #f2b47e;
  --t-num: #c4b5fd;
  --t-com: #8b8b94;

  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 12px -4px rgb(0 0 0 / 0.5);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 0.45), 0 18px 40px -16px rgb(0 0 0 / 0.7);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.5), 0 48px 96px -32px rgb(0 0 0 / 0.85);
  --highlight: inset 0 1px 0 rgb(255 255 255 / 0.05);

  --grid-line: rgb(255 255 255 / 0.05);
  --ring: rgb(255 255 255 / 0.085);
  --ring-faint: rgb(255 255 255 / 0.05);
  --mock-canvas: #09090b;
  --mock-side: #0b0b0d;
}
