/* Chain IT — generated from tokens.json (design system: https://claude.ai/code/artifact/abecae29-e8ab-439f-9bc7-825275abf1a0) */
/* Load BEFORE MudBlazor.min.css. Switch theme with <html data-theme="dark">. */

:root, [data-theme="light"] {
  --brand-700: #0068b8; /* Deep link blue */
  --brand-500: #007edb; /* The logo's core blue */
  --brand-300: #42d4ff; /* The logo's highlight cyan */
  --brand-100: #e3f3fd; /* Selected row, active nav background, info chip background */
  --on-brand: #ffffff; /* Text and icons on the primary button fill (brand-700 in light, brand-300 in dark) */
  --steel-700: #304f6f; /* The logo's shaded steel */
  --steel-400: #6d8196; /* The logo's polished steel */
  --steel-200: #c7d1dc; /* Switch track off, skeleton bars, input border on hover */
  --logo-ground: #606061; /* The grey the mark was supplied on */
  --surface-0: #ffffff; /* Raised surfaces: cards, top bar, side nav, table bodies, dialogs */
  --surface-100: #f4f6f9; /* Page background behind cards */
  --surface-200: #e9eef3; /* Table header row, key-value label column, hovered row, secondary button fill */
  --border: #d9e0e8; /* Card borders, table row dividers, input borders at rest */
  --border-strong: #7a8ea4; /* Input border on hover and the outline of secondary/outlined buttons (3:1 on surface-0 in both themes) */
  --ink: #0f1b2b; /* Primary text on surface-0, surface-100 and surface-200 */
  --ink-muted: #56657a; /* Secondary text: table headers, key-value labels, captions, placeholder text, footer */
  --ink-disabled: #9aa7b6; /* Disabled controls only; never for information the user must read */
  --link: var(--brand-700); /* Inline text links (billing e-mail, item codes) */
  --focus-ring: #007edb; /* 2px solid outline with 2px offset on every focusable control */
  --success: #1b7a45; /* Active status text/icon and the Active chip foreground */
  --success-bg: #dff4e6; /* Active chip background */
  --success-ink: #0e5a30; /* Text on success-bg */
  --danger: #c62828; /* Destructive actions: Deactivate button outline and text, delete icon, error text */
  --danger-bg: #fdebea; /* Inactive/ended chip background and danger button hover */
  --danger-ink: #8e1b1b; /* Text on danger-bg */
  --warning: #9a5200; /* Expiring agreements, alerts count */
  --warning-bg: #fff1dc; /* Warning chip background; text in warning */
  --info-bg: var(--brand-100); /* Informational chip background (Billing contact) */
  --shadow-sm: 0 1px 2px rgba(15,27,43,0.06);
  --shadow-md: 0 6px 20px rgba(15,27,43,0.12);
}

[data-theme="dark"] {
  --brand-700: #0068b8; /* Deep link blue */
  --brand-500: #007edb; /* The logo's core blue */
  --brand-300: #42d4ff; /* The logo's highlight cyan */
  --brand-100: #0f2b45; /* Selected row, active nav background, info chip background */
  --on-brand: #09172f; /* Text and icons on the primary button fill (brand-700 in light, brand-300 in dark) */
  --steel-700: #304f6f; /* The logo's shaded steel */
  --steel-400: #6d8196; /* The logo's polished steel */
  --steel-200: #3d5872; /* Switch track off, skeleton bars, input border on hover */
  --logo-ground: #606061; /* The grey the mark was supplied on */
  --surface-0: #1a2432; /* Raised surfaces: cards, top bar, side nav, table bodies, dialogs */
  --surface-100: #121a25; /* Page background behind cards */
  --surface-200: #243142; /* Table header row, key-value label column, hovered row, secondary button fill */
  --border: #304f6f; /* Card borders, table row dividers, input borders at rest */
  --border-strong: #6d8196; /* Input border on hover and the outline of secondary/outlined buttons (3:1 on surface-0 in both themes) */
  --ink: #e8edf3; /* Primary text on surface-0, surface-100 and surface-200 */
  --ink-muted: #9fb0c2; /* Secondary text: table headers, key-value labels, captions, placeholder text, footer */
  --ink-disabled: #56657a; /* Disabled controls only; never for information the user must read */
  --link: var(--brand-300); /* Inline text links (billing e-mail, item codes) */
  --focus-ring: #42d4ff; /* 2px solid outline with 2px offset on every focusable control */
  --success: #5fd38a; /* Active status text/icon and the Active chip foreground */
  --success-bg: #153826; /* Active chip background */
  --success-ink: #8fe6b0; /* Text on success-bg */
  --danger: #ff8a80; /* Destructive actions: Deactivate button outline and text, delete icon, error text */
  --danger-bg: #3d1a1a; /* Inactive/ended chip background and danger button hover */
  --danger-ink: #ffb3ad; /* Text on danger-bg */
  --warning: #ffb547; /* Expiring agreements, alerts count */
  --warning-bg: #3d2a0f; /* Warning chip background; text in warning */
  --info-bg: var(--brand-100); /* Informational chip background (Billing contact) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.55);
}

:root {
  --space-1: 4px; /* Icon-to-label gap, chip padding-y. */
  --space-2: 8px; /* Gap between inline controls, chip padding-x, table cell padding-y. */
  --space-3: 12px; /* Button padding-x, nav item padding-y, table cell padding-x. */
  --space-4: 16px; /* Card padding, form field gap, side nav inset. */
  --space-5: 24px; /* Gap between cards, page padding on narrow screens. */
  --space-6: 32px; /* Page padding, space under the PageHeader. */
  --space-8: 48px; /* Top bar height, empty-state padding. */
  --radius-sm: 4px; /* Chips, inputs, table selection highlight. */
  --radius-md: 6px; /* Buttons, nav items, popovers. */
  --radius-lg: 10px; /* Cards, dialogs, the logo tile. */
  --radius-pill: 999px; /* Status chips and the switch. */
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
}

/* Type styles */
.display { font-family: var(--font-sans); font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.01em; }
.title { font-family: var(--font-sans); font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.heading { font-family: var(--font-sans); font-size: 17px; line-height: 24px; font-weight: 600; }
.subheading { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; }
.body { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; }
.body-strong { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; }
.small { font-family: var(--font-sans); font-size: 12.5px; line-height: 18px; font-weight: 400; }
.label { font-family: var(--font-sans); font-size: 11.5px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.button { font-family: var(--font-sans); font-size: 13.5px; line-height: 20px; font-weight: 600; }
.code { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 400; }
.code-small { font-family: var(--font-mono); font-size: 11.5px; line-height: 16px; font-weight: 500; }

/* Base */
body { font-family: var(--font-sans); font-size: 14px; line-height: 20px; color: var(--ink); background: var(--surface-100); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
