/* CipherK design tokens — Phase 1.1 of ENTERPRISE_PLATFORM_ROADMAP.md */
/* Themes: [data-theme="staff"] on admin body, [data-theme="client"] on workspace body.
   Un-themed pages (marketing, legacy portal) fall back to the :root defaults below,
   which match the current marketing look so old pages keep working. */

:root {
  --ck-bg: #07111b;
  --ck-bg-elevated: #0d1b28;
  --ck-bg-inset: #0a1520;
  --ck-line: #1c2d3d;
  --ck-text: #e8eef4;
  --ck-text-muted: #9fb0bf;
  --ck-accent: #3ea6ff;
  --ck-accent-2: #7cd4fd;
  --ck-danger: #ff6b6b;
  --ck-ok: #3ecf8e;
  --ck-warn: #ffb347;

  --ck-space-1: 4px;
  --ck-space-2: 8px;
  --ck-space-3: 12px;
  --ck-space-4: 16px;
  --ck-space-5: 24px;
  --ck-space-6: 32px;
  --ck-space-7: 48px;

  --ck-radius-sm: 4px;
  --ck-radius-md: 8px;

  --ck-font-body: "DM Sans", system-ui, sans-serif;
  --ck-font-display: "Manrope", system-ui, sans-serif;
  --ck-font-mono: "DM Mono", ui-monospace, monospace;

  --ck-focus-ring: 2px solid var(--ck-accent);
  --ck-focus-offset: 2px;
}

[data-theme="staff"] {
  /* staff console — dark, matches current admin-body */
  --ck-bg: #07111b;
  --ck-bg-elevated: #0d1b28;
  --ck-bg-inset: #0a1520;
  --ck-line: #1c2d3d;
  --ck-text: #e8eef4;
  --ck-text-muted: #9fb0bf;
  --ck-accent: #3ea6ff;
  --ck-accent-2: #7cd4fd;
  --ck-danger: #ff6b6b;
  --ck-ok: #3ecf8e;
  --ck-warn: #ffb347;
}

[data-theme="client"] {
  /* client workspace — light cool-gray, same accent */
  --ck-bg: #f4f6f8;
  --ck-bg-elevated: #ffffff;
  --ck-bg-inset: #eef1f4;
  --ck-line: #d8dee5;
  --ck-text: #1b2733;
  --ck-text-muted: #5a6b7b;
  --ck-accent: #0b6ec4;
  --ck-accent-2: #0a5a9e;
  --ck-danger: #c93b3b;
  --ck-ok: #1f9d6b;
  --ck-warn: #b97a12;
}

/* Focus visibility — never removed without a replacement */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--ck-focus-ring);
  outline-offset: var(--ck-focus-offset);
  border-radius: var(--ck-radius-sm);
}
