@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400..700&display=swap");

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  /* Vue Suite: clean light warm gray, near-black ink, cobalt blue as the one bold accent.
     Supporting swatches (token names kept: mauve = slate, lavender = periwinkle, mustard = amber,
     dusty blue = sky, navy = ink) are quiet tones for tags, labels and calendars. */
  --background: #EEEBE4;
  --foreground: #2A1A12;
  --card: oklch(0.99 0.002 80);
  --card-foreground: oklch(0.22 0.008 65);
  --popover: oklch(0.99 0.002 80);
  --popover-foreground: oklch(0.22 0.008 65);
  --primary: #A3B9C2;
  --primary-foreground: oklch(0.985 0.003 260);
  --secondary: oklch(0.93 0.005 80);
  --secondary-foreground: oklch(0.22 0.008 65);
  --muted: oklch(0.935 0.004 80);
  --muted-foreground: oklch(0.47 0.008 70);
  --accent: oklch(0.935 0.005 80);
  --accent-foreground: oklch(0.22 0.008 65);
  --destructive: oklch(0.52 0.19 27);
  --destructive-foreground: oklch(0.985 0.003 80);
  --border: oklch(0.885 0.005 80);
  --input: oklch(0.84 0.006 80);
  --ring: var(--primary);
  --success: oklch(0.55 0.11 155);
  --warning: oklch(0.8 0.12 80);
  --chart-1: var(--primary);
  --chart-2: oklch(0.83 0.06 245);
  --chart-3: oklch(0.8 0.12 80);
  --chart-4: oklch(0.78 0.07 280);
  --chart-5: oklch(0.32 0.09 263);
  --sidebar: oklch(0.99 0.002 80);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: color-mix(in srgb, var(--primary) 9%, var(--sidebar));
  --sidebar-accent-foreground: var(--primary);
  --sidebar-border: var(--border);
  --sidebar-ring: var(--primary);

  /* ── supporting swatches ──────────────────────────────────────── */
  --mauve: oklch(0.6 0.025 255);
  --mauve-foreground: oklch(0.2 0.01 260);
  --lavender: oklch(0.78 0.07 280);
  --lavender-foreground: oklch(0.22 0.008 65);
  --mustard: oklch(0.8 0.12 80);
  --mustard-foreground: oklch(0.22 0.008 65);
  --dusty-blue: oklch(0.83 0.06 245);
  --dusty-blue-foreground: oklch(0.22 0.008 65);
  --navy: oklch(0.32 0.09 263);
  --navy-foreground: oklch(0.985 0.003 260);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.945 0.004 80);
  --surface-hover:   color-mix(in srgb, var(--foreground) 5%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 9%, var(--background));
  --surface-elevated: oklch(0.995 0.001 80);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.91 0.004 80);
  --border-muted: oklch(0.9 0.005 80);
  --border-strong: oklch(0.78 0.007 75);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.34 0.008 65);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 86%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 30%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 15%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 7%, var(--background));

  /* ── highlight: a pale tint of the brand blue with deep text of the same hue (SOP tag, category icons) — tracks --primary ── */
  --highlight: color-mix(in srgb, var(--primary) 20%, var(--background));
  --highlight-foreground: color-mix(in srgb, var(--primary) 65%, var(--foreground));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: color-mix(in srgb, var(--primary) 40%, transparent);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.52 0.19 27);
  --error-foreground: oklch(0.985 0.003 80);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.75rem;
  --radius-none: 0rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.12;
  --tracking-display: -0.03em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.25 0.01 70 / 0.06);
  --shadow-md: 0 6px 18px oklch(0.25 0.01 70 / 0.08);
  --shadow-lg: 0 18px 44px oklch(0.25 0.01 70 / 0.1);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

.dark {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.19 0.005 70);
  --foreground: oklch(0.94 0.004 80);
  --card: oklch(0.225 0.005 70);
  --card-foreground: oklch(0.94 0.004 80);
  --popover: oklch(0.225 0.005 70);
  --popover-foreground: oklch(0.94 0.004 80);
  --primary: oklch(0.68 0.15 262);
  --primary-foreground: oklch(0.16 0.03 263);
  --secondary: oklch(0.28 0.005 70);
  --secondary-foreground: oklch(0.94 0.004 80);
  --muted: oklch(0.26 0.005 70);
  --muted-foreground: oklch(0.74 0.006 75);
  --accent: oklch(0.28 0.005 70);
  --accent-foreground: oklch(0.94 0.004 80);
  --destructive: oklch(0.68 0.16 27);
  --destructive-foreground: oklch(0.17 0.01 27);
  --border: oklch(0.32 0.005 70);
  --input: oklch(0.37 0.006 70);
  --ring: var(--primary);
  --success: oklch(0.72 0.1 155);
  --warning: oklch(0.78 0.12 80);
  --chart-1: var(--primary);
  --chart-2: oklch(0.76 0.06 245);
  --chart-3: oklch(0.78 0.12 80);
  --chart-4: oklch(0.74 0.07 280);
  --chart-5: oklch(0.45 0.11 263);
  --sidebar: oklch(0.215 0.005 70);
  --sidebar-foreground: oklch(0.94 0.004 80);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: color-mix(in srgb, var(--primary) 18%, var(--sidebar));
  --sidebar-accent-foreground: oklch(0.88 0.07 262);
  --sidebar-border: var(--border);
  --sidebar-ring: var(--primary);

  /* ── supporting swatches ──────────────────────────────────────── */
  --mauve: oklch(0.66 0.025 255);
  --mauve-foreground: oklch(0.17 0.01 260);
  --lavender: oklch(0.74 0.07 280);
  --lavender-foreground: oklch(0.17 0.01 260);
  --mustard: oklch(0.78 0.12 80);
  --mustard-foreground: oklch(0.17 0.01 260);
  --dusty-blue: oklch(0.76 0.06 245);
  --dusty-blue-foreground: oklch(0.17 0.01 260);
  --navy: oklch(0.45 0.11 263);
  --navy-foreground: oklch(0.96 0.004 260);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.21 0.005 70);
  --surface-hover:   color-mix(in srgb, var(--foreground) 7%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 12%, var(--background));
  --surface-elevated: oklch(0.26 0.005 70);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.25 0.005 70);
  --border-muted: oklch(0.28 0.005 70);
  --border-strong: oklch(0.44 0.007 70);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.86 0.005 80);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 30%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 18%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 9%, var(--background));

  /* ── highlight: a deep tint of the brand blue with light text of the same hue — tracks --primary ── */
  --highlight: color-mix(in srgb, var(--primary) 28%, var(--background));
  --highlight-foreground: color-mix(in srgb, var(--primary) 55%, var(--foreground));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: color-mix(in srgb, var(--primary) 50%, transparent);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.68 0.16 27);
  --error-foreground: oklch(0.17 0.01 27);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.75rem;
  --radius-none: 0rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.12;
  --tracking-display: -0.03em;
  --font-weight-body: 450;
  --line-height-body: 1.68;
  --tracking-body: 0.01em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.36);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

/* Stencil Tweaks */
/* /Stencil Tweaks */