/* KamalCloud's theme on runeui's tokens (shadcn's names): its type, its brand and its charts. Unlayered,
   so it wins over runeui's defaults. Everything else reads runeui's tokens. */

@font-face {
  font-display: swap;
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  src: url("/assets/geist-mono-variable-941dd8a9.woff2") format("woff2");
}

:root {
  --font-sans: "Plus Jakarta Sans Variable", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --brand: oklch(0.47 0.07 187);
  --brand-foreground: oklch(0.47 0.07 187);
  --brand-tint: color-mix(in oklab, var(--brand) 10%, transparent);
  --aws: oklch(0.77 0.17 65);

  --success: oklch(0.56 0.134 152.5);
  --warning: oklch(0.57 0.123 65.3);
  --destructive: oklch(0.57 0.18 24.9);

  --chart-1: oklch(0.47 0.07 187);
  --chart-2: oklch(0.71 0.03 257);
  --chart-3: oklch(0.62 0.07 187);
  --chart-4: oklch(0.87 0.02 253);
  --chart-5: oklch(0.82 0.05 187);
  --chart-6: oklch(0.37 0.06 187);
  --chart-7: oklch(0.45 0.04 257);
  --chart-text: oklch(0.556 0 0);
  --chart-grid: oklch(0.922 0 0);

  --radius: 0.75rem;
  --foreground: oklch(0.269 0 0);
  --card-foreground: oklch(0.269 0 0);
  --popover-foreground: oklch(0.269 0 0);
  --primary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.269 0 0);
  --accent-foreground: oklch(0.269 0 0);
  --muted-foreground: oklch(0.51 0 0);
  --border: oklch(0 0 0 / 8%);
  --input: oklch(0 0 0 / 13%);
  --ring: var(--brand);
  --ui-focus-ring: 0 0 0 3px color-mix(in oklab, var(--brand) 16%, transparent);
  --ui-invalid-ring: 0 0 0 3px color-mix(in oklab, var(--destructive) 14%, transparent);
  --sidebar-foreground: oklch(0.269 0 0);
  --sidebar-primary: oklch(0.269 0 0);
  --sidebar-accent: oklch(0 0 0 / 4%);
  --sidebar-accent-foreground: oklch(0.269 0 0);
  --sidebar-border: oklch(0 0 0 / 6%);

  --ui-h: 2.25rem;
  --ui-h-sm: 2rem;
  --ui-text-sm: 0.8125rem;
  --edge-shadow: 0 1px light-dark(oklch(0 0 0 / 4%), transparent), 0 -1px light-dark(transparent, oklch(1 0 0 / 6%));
  --ui-shadow-xs: 0 1px 2px 0 oklch(0 0 0 / 5%), var(--edge-shadow);
  --ui-shadow-sm: var(--ui-shadow-xs);
  --raised-highlight: inset 0 1px oklch(1 0 0 / 16%);
  --ui-field-bg: light-dark(var(--background), oklch(1 0 0 / 2.5%));
  --ui-field-bg-hover: light-dark(oklch(0 0 0 / 2%), oklch(1 0 0 / 5%));
  --ui-surface-bg: var(--ui-field-bg);
  --ui-surface-bg-hover: var(--ui-field-bg-hover);
  --row-hover: color-mix(in oklab, var(--foreground) 2.5%, transparent);
}

@media (width >= 40rem) {
  :root {
    --ui-h: 2rem;
    --ui-h-sm: 1.75rem;
  }
}

.dark {
  --background: oklch(0.185 0 0);
  --foreground: oklch(0.97 0 0);
  --card: oklch(0.2 0 0);
  --card-foreground: oklch(0.97 0 0);
  --popover: oklch(0.215 0 0);
  --popover-foreground: oklch(0.97 0 0);
  --primary: oklch(0.97 0 0);
  --primary-foreground: oklch(0.269 0 0);
  --secondary: oklch(1 0 0 / 5%);
  --secondary-foreground: oklch(0.97 0 0);
  --accent: oklch(1 0 0 / 5%);
  --accent-foreground: oklch(0.97 0 0);
  --muted: oklch(0.24 0 0);
  --muted-foreground: oklch(0.64 0 0);
  --border: oklch(1 0 0 / 7%);
  --input: oklch(1 0 0 / 9%);
  --sidebar: oklch(0.17 0 0);
  --sidebar-foreground: oklch(0.97 0 0);
  --sidebar-primary: oklch(0.97 0 0);
  --sidebar-primary-foreground: oklch(0.269 0 0);
  --sidebar-accent: oklch(1 0 0 / 5%);
  --sidebar-accent-foreground: oklch(0.97 0 0);
  --sidebar-border: oklch(1 0 0 / 5%);

  --brand: oklch(0.68 0.07 187);
  --brand-foreground: oklch(0.8 0.06 187);

  --success: oklch(0.78 0.131 152.7);
  --warning: oklch(0.77 0.128 77.6);
  --destructive: oklch(0.7 0.157 22.9);

  --chart-1: oklch(0.68 0.07 187);
  --chart-2: oklch(0.55 0.03 257);
  --chart-3: oklch(0.58 0.07 187);
  --chart-4: oklch(0.45 0.04 257);
  --chart-5: oklch(0.43 0.05 187);
  --chart-6: oklch(0.8 0.06 187);
  --chart-7: oklch(0.87 0.02 253);
  --chart-text: oklch(0.708 0 0);
  --chart-grid: oklch(1 0 0 / 10%);
}

::selection {
  background: var(--brand-tint);
}

.turbo-progress-bar {
  background: var(--primary);
}
