/* Maestrale Design System — generated from tokens.json */
:root, [data-theme="light"] {
  --canvas: #f5f6fd;
  --surface: #ffffff;
  --brand-soft: #e8eefb;
  --success: #15803d;
  --warning: #b45309;
  --nav-active: #cee0fd;
  --nav-active-foreground: #04204e;
  --nav-fill: #ecf1f8;
  --nav-hover: #e5ebf5;
  --logo-ink: #1f2a44;
  --logo-accent: var(--primary);
  --background: #f5f6fd;
  --foreground: #0f1115;
  --card: #fdfdfd;
  --card-foreground: #0f1115;
  --popover: #fdfdfd;
  --popover-foreground: #0f1115;
  --primary: #2453c4;
  --primary-foreground: #ffffff;
  --secondary: #ebecef;
  --secondary-foreground: #0f1115;
  --muted: #ebecef;
  --muted-foreground: #6b7079;
  --accent: #ebecef;
  --accent-foreground: #0f1115;
  --destructive: oklch(0.577 0.245 27.325);
  --border: #e2e2e2;
  --input: #d9dce1;
  --ring: #2453c4;
  --input-field-bg: hsl(0 0% 100%);
  --input-field-border: hsl(0 0% 70%);
  --input-field-border-hover: hsl(0 0% 45%);
  --input-field-fg: hsl(222 17% 7%);
  --input-field-placeholder: hsl(0 0% 44.7%);
  --input-field-focus-ring: hsl(222 69% 46%);
  --overlay: rgba(0, 0, 0, 0.4);
  --overlay-nested: rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] {
  --canvas: #16181c;
  --surface: #101114;
  --brand-soft: #172447;
  --success: #4ade80;
  --warning: #fbbf24;
  --nav-active: #1f3363;
  --nav-active-foreground: #dbe6ff;
  --nav-fill: #1c1f25;
  --nav-hover: #22262d;
  --logo-ink: #e8ecf5;
  --logo-accent: var(--primary);
  --background: #16181c;
  --foreground: #eff0f2;
  --card: #16181c;
  --card-foreground: #eff0f2;
  --popover: #16181c;
  --popover-foreground: #eff0f2;
  --primary: #4a76e0;
  --primary-foreground: #ffffff;
  --secondary: #24272d;
  --secondary-foreground: #eff0f2;
  --muted: #24272d;
  --muted-foreground: #8b9099;
  --accent: #24272d;
  --accent-foreground: #eff0f2;
  --destructive: oklch(0.704 0.191 22.216);
  --border: #26292f;
  --input: #2e3138;
  --ring: #4a76e0;
  --input-field-bg: hsl(228 11% 7%);
  --input-field-border: hsl(222 8% 22%);
  --input-field-border-hover: hsl(222 8% 40%);
  --input-field-fg: hsl(220 11% 94%);
  --input-field-placeholder: hsl(220 5% 57%);
  --input-field-focus-ring: hsl(222 71% 58%);
  --overlay: rgba(0, 0, 0, 0.4);
  --overlay-nested: rgba(0, 0, 0, 0.3);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 18px;
  --radius-3xl: 22px;
  --radius-full: 9999px;
  --header-height: 64px;
  --sidebar-width: 256px;
  --field-height: 52px;
  --nav-row-height: 44px;
  --button-height: 32px;
  --button-height-lg: 36px;
  --button-height-xl: 44px;
  --button-height-2xl: 56px;
  --dialog-width: 384px;
  --font-sans: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}
.page-title { font-family: var(--font-sans); font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.025em; }
.panel-title { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.025em; }
.toolbar-title { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.025em; }
.dialog-title { font-family: var(--font-sans); font-size: 18px; line-height: 1.375; font-weight: 600; }
.card-title { font-family: var(--font-sans); font-size: 18px; line-height: 28px; font-weight: 500; }
.body-lg { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; }
.page-description { font-family: var(--font-sans); font-size: 15px; line-height: 1.5; font-weight: 400; }
.nav-item { font-family: var(--font-sans); font-size: 15px; line-height: 1.5; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; }
.label { font-family: var(--font-sans); font-size: 14px; line-height: 1; font-weight: 500; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; }
.button { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; }
.button-cta { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; }
.button-auth { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #16181c;
    --surface: #101114;
    --brand-soft: #172447;
    --success: #4ade80;
    --warning: #fbbf24;
    --nav-active: #1f3363;
    --nav-active-foreground: #dbe6ff;
    --nav-fill: #1c1f25;
    --nav-hover: #22262d;
    --logo-ink: #e8ecf5;
    --logo-accent: var(--primary);
    --background: #16181c;
    --foreground: #eff0f2;
    --card: #16181c;
    --card-foreground: #eff0f2;
    --popover: #16181c;
    --popover-foreground: #eff0f2;
    --primary: #4a76e0;
    --primary-foreground: #ffffff;
    --secondary: #24272d;
    --secondary-foreground: #eff0f2;
    --muted: #24272d;
    --muted-foreground: #8b9099;
    --accent: #24272d;
    --accent-foreground: #eff0f2;
    --destructive: oklch(0.704 0.191 22.216);
    --border: #26292f;
    --input: #2e3138;
    --ring: #4a76e0;
    --input-field-bg: hsl(228 11% 7%);
    --input-field-border: hsl(222 8% 22%);
    --input-field-border-hover: hsl(222 8% 40%);
    --input-field-fg: hsl(220 11% 94%);
    --input-field-placeholder: hsl(220 5% 57%);
    --input-field-focus-ring: hsl(222 71% 58%);
    --overlay: rgba(0, 0, 0, 0.4);
    --overlay-nested: rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}
