/* Pointguard Design System — generated from tokens.json */
:root, [data-theme="light"] {
  --background: #f8fafc; /* Page canvas (slate-50 / slate-950). Text on it: foreground (17.2:1 light, 19.9:1 dark), muted-foreground. */
  --foreground: #161718; /* Default text and icons on background and card. 17.2:1 or more in light, 17.6:1 or more in dark. */
  --card: #fefdfd; /* Cards, dialogs and the sidebar. Set apart from background by a 1px border, never by shadow. */
  --card-foreground: var(--foreground); /* Text on card. 17.7:1 light, 17.6:1 dark. */
  --popover: #fefdfd; /* Menus, popovers and select lists: anything floating above the page. Takes border plus shadow-floating. */
  --popover-foreground: var(--foreground); /* Text on popover. */
  --primary: #005ec4; /* The one main action per view, checked controls, on-switches and text links. Hover is primary at 80%, as in shadcn. Light is brand blue; dark is a lighter action blue, not a new logo color. As text: 5.9:1 light, 7.9:1 dark on background. */
  --primary-foreground: #fefdfd; /* Text and icons on primary. 6.1:1 light, 7.1:1 dark. Dark text in dark mode because the dark primary is light. Flag: on the hover fill (primary at 80%) white is 4.1:1 in light, under 4.5:1; kept as shadcn specifies. */
  --secondary: #f8fafc; /* Lower-emphasis filled actions and the track of meters. Not a second brand color. In light it equals background, so secondary buttons need their border to be seen. */
  --secondary-foreground: #0c2f55; /* Text on secondary. 12.9:1 light, 14.4:1 dark. */
  --muted: #f1f5f9; /* Quiet areas: the tab list, empty states, ghost-button hover, disabled fills. */
  --muted-foreground: #64748b; /* Secondary text: descriptions, hints, timestamps, placeholders. Light: 4.6:1 on background, 4.7:1 on card; flag: 4.3:1 on muted, under 4.5:1. Dark: 7.9:1 on background, 5.7:1 on muted. */
  --accent: #e6f0fe; /* Interaction highlight: hovered and selected menu items, list rows and outline buttons. Not a brand color. */
  --accent-foreground: #005ec4; /* Text on accent. 5.4:1 light, 8.1:1 dark. */
  --destructive: #ef4444; /* Danger: error text, invalid borders, delete actions. Tailwind red-500 / red-400. Buttons and destructive badges are tinted: destructive text on destructive at 10% (light) or 20% (dark). Always paired with a word or icon. Flag: as text in light it is 3.6:1 on background and 3.1:1 on its 10% tint, under 4.5:1; dark 7.3:1. Taken from Pointguard Playground (26 Nov). */
  --destructive-foreground: #fefdfd; /* Text and icons on a solid destructive fill. 3.7:1 light (flag: under 4.5:1), 5.8:1 dark. Back as a role from Pointguard Playground (Anton, 26 Nov); destructive buttons and badges in bundle.css are still tinted. */
  --border: #e2e8f0; /* Dividers and the 1px outline of cards, dialogs and popovers. Separates areas only (1.2:1 light, 1.9:1 dark). */
  --input: #cbd5e1; /* Border of text fields, selects, checkboxes, outline buttons and toggles and the off-switch track; dark fields also fill with input at 30%. One slate step above border in both themes (slate-300 / slate-600), so something you click reads a little stronger than a divider (Anton, 26 Nov; was slate-50 / slate-800 from Pointguard Playground, which made these edges disappear). 1.4:1 on background and 1.5:1 on card in light, 2.7:1 and 2.4:1 in dark. Flag: under the 3:1 a control edge needs, as stock shadcn's input is. */
  --ring: #3b82f6; /* Keyboard focus: the control's border turns ring and a 3px halo of ring at 50% appears. Solid ring: 3.5:1 light, 11.2:1 dark on background. */
  --overlay: #0000001a; /* Backdrop behind dialogs: black at 10%, with a 4px blur. */
  --chart-1: #3b82f6; /* First data series. Data only, never interface states. Keep series order stable and pair color with labels. Flag: in light chart-2, -4 and -5 are under 3:1 on background (2.4, 2.1 and 3.4:1 respectively for 2, 4, 5; chart-1 3.5, chart-3 4.1); dark all hold 10:1 or more. */
  --chart-2: #14b8a6; /* Second data series. */
  --chart-3: #8b5cf6; /* Third data series. */
  --chart-4: #f59e0b; /* Fourth data series. */
  --chart-5: #ec4899; /* Fifth data series. */
  --sidebar: var(--brand-navy); /* Side navigation background: brand navy in both themes, from Pointguard Playground (26 Nov). Text on it: sidebar-foreground, 13.3:1. */
  --sidebar-foreground: #fefdfd; /* Text in the sidebar. 13.3:1 on sidebar. */
  --sidebar-primary: #005ec4; /* Primary elements inside the sidebar, such as a logo tile or a count badge (as in shadcn). Not the current page: that takes sidebar-accent with weight 500 (changed 2 Dec 2026; was the active item fill). */
  --sidebar-primary-foreground: #fefdfd; /* Text on sidebar-primary. 6.1:1. */
  --sidebar-accent: #22517d; /* Hover background of sidebar items, and the current page's fill together with weight 500 (shadcn SidebarMenuButton active state). */
  --sidebar-accent-foreground: #fefdfd; /* Text on sidebar-accent. 8.1:1. */
  --sidebar-border: #22517d; /* The sidebar's edge and dividers. */
  --sidebar-ring: #005ec4; /* Focus ring inside the sidebar. Flag: 2.2:1 on sidebar, under 3:1. */
  --brand-blue: #005ec4; /* The master brand blue. Logo and marketing only, the same in both themes. Product UI uses primary instead. */
  --brand-navy: #0c2f55; /* Brand anchor for marketing fields and the logo's navy treatment. Not used in product UI. */
  --shadow-floating: 0 4px 12px 0 #0b142014; /* Menus, popovers, select lists and dialogs. Never on cards or controls. */
}
[data-theme="dark"] {
  --background: #020617;
  --foreground: #fefdfd;
  --card: #0f172a;
  --card-foreground: var(--foreground);
  --popover: #0f172a;
  --popover-foreground: var(--foreground);
  --primary: #60a5fa;
  --primary-foreground: #161718;
  --secondary: #1e293b;
  --secondary-foreground: #fefdfd;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #22517d;
  --accent-foreground: #fefdfd;
  --destructive: #f87171;
  --destructive-foreground: #450a0a;
  --border: #334155;
  --input: #475569;
  --ring: #93c5fd;
  --overlay: #0000001a;
  --chart-1: #93c5fd;
  --chart-2: #5eead4;
  --chart-3: #c4b5fd;
  --chart-4: #fcd34d;
  --chart-5: #f9a8d4;
  --sidebar: var(--brand-navy);
  --sidebar-foreground: #fefdfd;
  --sidebar-primary: #005ec4;
  --sidebar-primary-foreground: #fefdfd;
  --sidebar-accent: #22517d;
  --sidebar-accent-foreground: #fefdfd;
  --sidebar-border: #22517d;
  --sidebar-ring: #005ec4;
  --brand-blue: #005ec4;
  --brand-navy: #0c2f55;
}
:root {
  --space-0\.5: 2px; /* Hairline gaps, badge vertical padding. */
  --space-1: 4px; /* Icon to label in xs and sm buttons; card header gap; menu padding. */
  --space-1\.5: 6px; /* Icon to label in default and lg buttons; label to field. */
  --space-2: 8px; /* Between buttons; dialog footer gap; xs button padding. */
  --space-2\.5: 10px; /* Horizontal padding of buttons and inputs. */
  --space-3: 12px; /* Small card spacing; between form fields. */
  --space-4: 16px; /* Card and dialog padding and gaps; between related cards. */
  --space-6: 24px; /* Between groups inside a page section. */
  --space-8: 32px; /* Between related page sections. */
  --space-12: 48px; /* Between major layout regions. */
  --space-16: 64px; /* Between major layout regions on large screens. */
  --radius-sm: 4px; /* Badges, checkboxes, menu items, selected rows. */
  --radius-md: 6px; /* xs and sm buttons, tab triggers. */
  --radius-lg: 8px; /* The base: default buttons, inputs, cards, menus, alerts, the tab list. */
  --radius-xl: 12px; /* Dialogs and grouped panels. */
  --radius-full: 9999px; /* Switches and avatars only. */
  --control-h: 32px; /* Default height of buttons and inputs (h-8). */
  --control-h-xs: 24px; /* xs buttons, for dense toolbars. */
  --control-h-sm: 28px; /* sm buttons, for dense lists and card footers. */
  --control-h-lg: 36px; /* lg buttons, for a page's single main action. */
  --icon-size: 16px; /* Icons in buttons, menu items, alerts and badges (badges 12px). */
  --dialog-w: 384px; /* Default dialog max width (sm:max-w-sm), for short confirmations; narrower screens take full width minus 32px. Wider steps: dialog-w-md, -lg, -xl. */
  --dialog-w-md: 512px; /* Dialog data-size="md" (max-w-lg): small tool dialogs. */
  --dialog-w-lg: 768px; /* Dialog data-size="lg" (max-w-3xl): lists and multi-column settings. */
  --dialog-w-xl: 1024px; /* Dialog data-size="xl" (max-w-5xl): editors with a canvas and a side panel. */
  --popover-w-sm: 240px; /* Popover data-size="sm" (w-60): a short note or a few controls; also the least width of data-size="auto". */
  --popover-w: 288px; /* Default popover width (w-72); narrower screens take full width minus 32px. Other steps: popover-w-sm, popover-w-lg. */
  --popover-w-lg: 384px; /* Popover data-size="lg" (w-96): a prompt box, a list with thumbnails. */
  --font-heading: "Poppins", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-display: 600 64px/74px var(--font-heading); /* One hero line on a marketing page. */
  --text-h1: 600 48px/60px var(--font-heading); /* Marketing page titles. */
  --text-h2: 600 32px/40px var(--font-heading); /* Marketing section titles. */
  --text-page-title: 600 24px/32px var(--font-heading); /* The title of a product page, once per page. */
  --text-title: 500 16px/22px var(--font-heading); /* Card titles (shadcn CardTitle: text-base, leading-snug, medium). */
  --text-title-sm: 500 14px/19.25px var(--font-heading); /* Titles of small cards and section headings in a panel (shadcn CardTitle at size sm: text-sm, leading-snug). */
  --text-title-dialog: 500 16px/16px var(--font-heading); /* Dialog titles (shadcn DialogTitle: text-base, leading-none, medium). */
  --text-title-popover: 500 14px/20px var(--font-heading); /* Popover titles (shadcn PopoverTitle: medium on the popover's text-sm). */
  --text-action: 500 14px/20px var(--font-heading); /* Button and call-to-action labels at default size (shadcn Button: text-sm, medium). Start with a verb, sentence case. */
  --text-action-sm: 500 12.8px/19.2px var(--font-heading); /* Labels of sm buttons (shadcn Button size sm: text-[0.8rem], line-height inherited 1.5). */
  --text-action-xs: 500 12px/16px var(--font-heading); /* Labels of xs buttons (shadcn Button size xs: text-xs). */
  --text-nav: 400 14px/20px var(--font-heading); /* Side navigation items: the sidebar's page links (Anton, 2 Dec 2026). The sidebar's menu button is a ghost button and uses action. shadcn SidebarMenuButton metrics: text-sm, regular; the current page adds weight 500. Poppins is Pointguard's choice, as for buttons. */
  --text-body: 400 16px/24px var(--font-sans); /* Running text. Aim for 45–75 characters per line. Also input text below 768px. */
  --text-ui: 400 14px/20px var(--font-sans); /* Interface text: descriptions of cards, dialogs and popovers, field hints and errors, menu items, input text from 768px up (shadcn text-sm). */
  --text-label: 500 14px/19.25px var(--font-sans); /* Form labels, checkbox and switch labels, list item titles (shadcn FieldLabel and ItemTitle: text-sm, leading-snug, medium). Use weight for emphasis, not extra colors. */
  --text-ui-medium: 500 14px/20px var(--font-sans); /* Medium interface text: tab and toggle labels, alert, toast and empty titles (shadcn TabsTrigger, Toggle, AlertTitle: text-sm, medium). Empty titles add tracking -0.025em. */
  --text-ui-medium-sm: 500 12.8px/19.2px var(--font-sans); /* Labels of sm toggles (shadcn Toggle size sm: text-[0.8rem], line-height inherited 1.5). */
  --text-description: 400 14px/21px var(--font-sans); /* List item detail lines (shadcn ItemDescription: text-sm, leading-normal). */
  --text-description-relaxed: 400 14px/22.75px var(--font-sans); /* Empty-state descriptions (shadcn EmptyDescription: text-sm, leading-relaxed). */
  --text-caption: 400 12px/16px var(--font-sans); /* Metadata, timestamps, menu shortcuts and toast descriptions (text-xs). Use tabular numerals for aligned figures. */
  --text-caption-medium: 500 12px/16px var(--font-sans); /* Badges, menu group labels and key caps (shadcn Badge, DropdownMenuLabel, Kbd: text-xs, medium). */
}
.display {
  font-family: var(--font-heading);
  font-size: 64px;
  line-height: 74px;
  font-weight: 600;
  letter-spacing: 0;
}
.h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 60px;
  font-weight: 600;
  letter-spacing: 0;
}
.h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: 0;
}
.page-title {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 0;
}
.title {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0;
}
.title-sm {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 19.25px;
  font-weight: 500;
  letter-spacing: 0;
}
.title-dialog {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
.title-popover {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0;
}
.action {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0;
}
.action-sm {
  font-family: var(--font-heading);
  font-size: 12.8px;
  line-height: 19.2px;
  font-weight: 500;
  letter-spacing: 0;
}
.action-xs {
  font-family: var(--font-heading);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
.nav {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}
.ui {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 19.25px;
  font-weight: 500;
  letter-spacing: 0;
}
.ui-medium {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0;
}
.ui-medium-sm {
  font-family: var(--font-sans);
  font-size: 12.8px;
  line-height: 19.2px;
  font-weight: 500;
  letter-spacing: 0;
}
.description {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  letter-spacing: 0;
}
.description-relaxed {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22.75px;
  font-weight: 400;
  letter-spacing: 0;
}
.caption {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0;
}
.caption-medium {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
