:root {
  --radius: 0.625rem;

  --background: #ffffff;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --primary: #18181b;
  --primary-foreground: #fafafa;
  --secondary: #f4f4f5;
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --muted-foreground: #71717b;
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --destructive: #e7000b;
  --success: oklch(0.527 0.154 150.069);
  --warning: oklch(0.555 0.163 48.998);
  --border: #e4e4e7;
  --input: #e4e4e7;
  --ring: oklch(0.705 0.015 286.067);
  --chart-1: oklch(0.546 0.245 262.881);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.541 0.281 293.009);
  --chart-4: oklch(0.555 0.163 48.998);
  --chart-5: oklch(0.586 0.253 17.585);
  --sidebar: #fafafa;
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
  --sidebar-ring: oklch(0.705 0.015 286.067);
  --navigation-active: #18181b;
}

.dark {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #18181b;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --primary: #e4e4e7;
  --primary-foreground: #18181b;
  --secondary: #27272a;
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --muted-foreground: #9f9fa9;
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --destructive: #ff6467;
  --success: oklch(0.792 0.209 151.711);
  --warning: oklch(0.828 0.189 84.429);
  --border: rgb(255 255 255 / 10%);
  --input: rgb(255 255 255 / 15%);
  --ring: oklch(0.552 0.016 285.938);
  --chart-1: oklch(0.707 0.165 254.624);
  --chart-2: oklch(0.777 0.152 181.912);
  --chart-3: oklch(0.702 0.183 293.541);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.712 0.194 13.428);
  --sidebar: #18181b;
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
  --sidebar-ring: oklch(0.552 0.016 285.938);
  --navigation-active: #fafafa;
}

:root[data-palette="brand-zinc"] {
  --radius: 0.625rem;
  --background: #ffffff;
  --card: #ffffff;
  --secondary: #f4f4f5;
  --foreground: #09090b;
  --muted-foreground: #71717b;
  --primary: #006d9b;
  --primary-foreground: #fcfcfc;
  --navigation-active: #c36f00;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --destructive: #e7000b;
  --sidebar: #fafafa;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="brand-zinc"].dark {
  --radius: 0.625rem;
  --background: #020203;
  --card: #09090b;
  --secondary: #131316;
  --foreground: #fafafa;
  --muted-foreground: #9f9fa9;
  --primary: #00d4ff;
  --primary-foreground: #09090b;
  --navigation-active: #fdb300;
  --border: rgb(255 255 255 / 9%);
  --input: rgb(255 255 255 / 14%);
  --destructive: #ff6467;
  --sidebar: #040405;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="official"] {
  --radius: 0.25rem;
  --background: #f8fafd;
  --card: #ffffff;
  --secondary: #ebf1f8;
  --foreground: #0a152a;
  --muted-foreground: #515b6c;
  --primary: #006d9b;
  --primary-foreground: #fcfcfc;
  --navigation-active: #c36f00;
  --border: #d9dee6;
  --input: #ced5de;
  --destructive: #e7000b;
  --sidebar: #f2f5fb;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="official"].dark {
  --radius: 0.25rem;
  --background: #070f1f;
  --card: #0f1b2e;
  --secondary: #0a1e3f;
  --foreground: #ffffff;
  --muted-foreground: #98a6ba;
  --primary: #00d4ff;
  --primary-foreground: #070f1f;
  --navigation-active: #fdb300;
  --border: #2a3a52;
  --input: #2a3a52;
  --destructive: #ef4443;
  --sidebar: #0a1e3f;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="midnight"] {
  --radius: 0.375rem;
  --background: #f0f4f9;
  --card: #fbfcfd;
  --secondary: #e2e8f1;
  --foreground: #081123;
  --muted-foreground: #4e5969;
  --primary: #006790;
  --primary-foreground: #fcfcfc;
  --navigation-active: #b96b00;
  --border: #d2d8e1;
  --input: #c8ced9;
  --destructive: #e7000b;
  --sidebar: #e8edf5;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="midnight"].dark {
  --radius: 0.375rem;
  --background: #030712;
  --card: #08101f;
  --secondary: #08152c;
  --foreground: #f3f5f8;
  --muted-foreground: #939fb2;
  --primary: #35caf0;
  --primary-foreground: #030712;
  --navigation-active: #f1b135;
  --border: #1c293d;
  --input: #202e43;
  --destructive: #ef4443;
  --sidebar: #050c1a;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="ocean"] {
  --radius: 0.375rem;
  --background: #f5f9fc;
  --card: #ffffff;
  --secondary: #e5f1f7;
  --foreground: #021b2b;
  --muted-foreground: #4b5e69;
  --primary: #007187;
  --primary-foreground: #fcfcfc;
  --navigation-active: #c36f00;
  --border: #d2dde2;
  --input: #c7d3da;
  --destructive: #e7000b;
  --sidebar: #ebf3f7;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="ocean"].dark {
  --radius: 0.375rem;
  --background: #000f1e;
  --card: #001b2c;
  --secondary: #00233b;
  --foreground: #fafcfe;
  --muted-foreground: #93acbb;
  --primary: #00ddef;
  --primary-foreground: #000f1e;
  --navigation-active: #fdb300;
  --border: #19394c;
  --input: #1d3f52;
  --destructive: #ef4443;
  --sidebar: #001629;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="steel"] {
  --radius: 0.5rem;
  --background: #f2f5f9;
  --card: #fcfdff;
  --secondary: #e6ecf2;
  --foreground: #121c26;
  --muted-foreground: #535c66;
  --primary: #006d9b;
  --primary-foreground: #fcfcfc;
  --navigation-active: #c36f00;
  --border: #d6dbe1;
  --input: #cbd2d9;
  --destructive: #e7000b;
  --sidebar: #ecf1f5;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="steel"].dark {
  --radius: 0.5rem;
  --background: #0b151f;
  --card: #141f2b;
  --secondary: #172534;
  --foreground: #f3f5f8;
  --muted-foreground: #9ba6b1;
  --primary: #00d4ff;
  --primary-foreground: #0b151f;
  --navigation-active: #fdb300;
  --border: #303c49;
  --input: #34414f;
  --destructive: #ef4443;
  --sidebar: #0f1924;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="graphite"] {
  --radius: 0.375rem;
  --background: #f9fafb;
  --card: #ffffff;
  --secondary: #f0f2f4;
  --foreground: #101419;
  --muted-foreground: #595e65;
  --primary: #006d9b;
  --primary-foreground: #fcfcfc;
  --navigation-active: #c36f00;
  --border: #e0e1e4;
  --input: #d5d8db;
  --destructive: #e7000b;
  --sidebar: #f4f5f7;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="graphite"].dark {
  --radius: 0.375rem;
  --background: #0a0d12;
  --card: #13171e;
  --secondary: #181d25;
  --foreground: #f7f8fa;
  --muted-foreground: #9ca2ab;
  --primary: #00d4ff;
  --primary-foreground: #0a0d12;
  --navigation-active: #fdb300;
  --border: #2b3139;
  --input: #30363f;
  --destructive: #ef4443;
  --sidebar: #0e1217;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="high-contrast"] {
  --radius: 0.25rem;
  --background: #ffffff;
  --card: #ffffff;
  --secondary: #eff2f7;
  --foreground: #020511;
  --muted-foreground: #313b4a;
  --primary: #005589;
  --primary-foreground: #ffffff;
  --navigation-active: #a05100;
  --border: #6b727e;
  --input: #5d646f;
  --destructive: #c20000;
  --sidebar: #f3f5f9;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="high-contrast"].dark {
  --radius: 0.25rem;
  --background: #010309;
  --card: #050b18;
  --secondary: #081123;
  --foreground: #ffffff;
  --muted-foreground: #c3cbd8;
  --primary: #3de8ff;
  --primary-foreground: #010309;
  --navigation-active: #ffc622;
  --border: #5b6a80;
  --input: #61738c;
  --destructive: #ff645f;
  --sidebar: #02060f;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="gold-core"] {
  --radius: 0.25rem;
  --background: #f8fafd;
  --card: #ffffff;
  --secondary: #ebf1f8;
  --foreground: #0a152a;
  --muted-foreground: #515b6c;
  --primary: #fdb300;
  --primary-foreground: #0a152a;
  --navigation-active: #006d9b;
  --border: #d9dee6;
  --input: #ced5de;
  --destructive: #e7000b;
  --sidebar: #f2f5fb;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}

:root[data-palette="gold-core"].dark {
  --radius: 0.25rem;
  --background: #070f1f;
  --card: #0f1b2e;
  --secondary: #0a1e3f;
  --foreground: #ffffff;
  --muted-foreground: #98a6ba;
  --primary: #fdb300;
  --primary-foreground: #070f1f;
  --navigation-active: #00d4ff;
  --border: #2a3a52;
  --input: #2a3a52;
  --destructive: #ef4443;
  --sidebar: #0a1e3f;
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary-foreground: var(--foreground);
  --muted: var(--secondary);
  --accent: var(--secondary);
  --accent-foreground: var(--foreground);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--secondary);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: var(--border);
}
