/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@14.2.35_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/.pnpm/next@14.2.35_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* ==========================================================================
   Domain Intelligence: design system (vanilla CSS)
   "Formal enterprise console" with purposeful vivid colour.

   Themes: dark is the default ([data-theme='dark'] or no attribute with a dark OS),
   light via [data-theme='light'] or the OS preference when no attribute is set.

   Token layers
   1. Primitive scales (typography, spacing, sizes, radius, shadow, motion): theme-free.
   2. Semantic colour tokens (canvas, surface, text, accent, status, categorical): per theme.
   3. Legacy aliases (--bg-*, --fg-*, --teal-*, --text-primary…): map onto layer 2 so
      older screens and CSS modules keep working. Prefer the layer-2 names in new code.
   ========================================================================== */

:root {
  /* ---- Typography ------------------------------------------------------ */
  --font-sans: var(--font-inter, 'Inter'), system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  --font-mono: var(--font-jetbrains, 'JetBrains Mono'), ui-monospace, 'SFMono-Regular', 'Cascadia Code', Consolas, monospace;
  --font-features: 'cv11' 1, 'ss01' 1;
  --font-features-num: 'tnum' 1, 'cv11' 1;

  --fs-display: 28px;
  --lh-display: 36px;
  --fs-h2: 20px;
  --lh-h2: 28px;
  --fs-h3: 16px;
  --lh-h3: 24px;
  --fs-body: 14px;
  --lh-body: 20px;
  --fs-small: 13px;
  --lh-small: 18px;
  --fs-caption: 12px;
  --lh-caption: 16px;
  --fs-kpi: 28px;
  --lh-kpi: 32px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --tracking-caption: 0.04em;
  --tracking-tight: -0.011em;

  /* ---- Spacing (strict 4px grid) ---------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;

  /* ---- Sizes ------------------------------------------------------------- */
  --control-h-sm: 32px;
  --control-h: 36px;
  --control-h-lg: 40px;
  --icon-sm: 14px;
  --icon: 16px;
  --icon-nav: 20px;
  --row-h: 44px;
  --row-h-compact: 36px;
  --sidebar-w: 240px;
  --rail-w: 64px;
  --topbar-h: 56px;
  --content-max: 100%;
  --content-pad: 32px;
  --card-pad: 20px;
  --card-pad-compact: 16px;
  --drawer-w: 560px;
  --dialog-w: 440px;

  /* ---- Radius ------------------------------------------------------------ */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* ---- Motion ------------------------------------------------------------ */
  --dur-fast: 120ms;
  --dur-med: 180ms;
  --dur-slow: 320ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* ---- Brand (theme-free) ------------------------------------------------ */
  --grad-brand: linear-gradient(135deg, #00B4AF 0%, #06b6d4 50%, #12304A 100%);
  --grad-brand-h: linear-gradient(90deg, #00B4AF 0%, #06b6d4 50%, #12304A 100%);
  --grad-brand-v: linear-gradient(180deg, #00B4AF 0%, #12304A 100%);
  --focus: #00B4AF;

  /* ---- Circle theme tokens (replaces legacy hex themes) ------------------- */
  --hex-30: circle();
  --hex-32: circle();
  --hex-36: circle();
  --hex-38: circle();
  --hex-40: circle();
  --hex-56: circle();

  /* ---- Z layers ---------------------------------------------------------- */
  --z-sticky: 10;
  --z-nav: 900;
  --z-overlay: 1000;
  --z-popover: 1100;
  --z-toast: 2000;
  --z-tooltip: 2100;

  /* ---- Legacy layout aliases ---------------------------------------------- */
  --sidebar-width: var(--sidebar-w);
  --sidebar-rail-width: var(--rail-w);
}

/* ---- Dark theme (default) -------------------------------------------------- */
:root,
[data-theme='dark'] {
  color-scheme: dark;

  --canvas: #0b0f17;
  --surface: #11161d;
  --surface-2: #161c24;
  --surface-3: #1d2530;
  --surface-hover: #19202a;
  --surface-raised: #151b23;
  --overlay: rgb(2 6 12 / 0.64);

  --border-subtle: #1b222c;
  --border: #232b36;
  --border-strong: #313b49;

  --text: #e6eaf0;
  --text-2: #a4afbd;
  --text-3: #7a8696;
  --text-disabled: #4d5765;
  --text-inverse: #0b0f17;

  --accent: #22b5c4;
  --accent-hover: #3cc6d3;
  --accent-text: #22b5c4;
  --accent-solid: #22b5c4;
  --accent-solid-hover: #3cc6d3;
  --on-accent: #031417;
  --accent-subtle: rgb(34 181 196 / 0.12);
  --accent-subtle-strong: rgb(34 181 196 / 0.2);
  --accent-border: rgb(34 181 196 / 0.38);

  /* Categorical palette (400-level in dark) */
  --cat-1: #22d3ee;
  --cat-2: #818cf8;
  --cat-3: #a78bfa;
  --cat-4: #f472b6;
  --cat-5: #fbbf24;
  --cat-6: #34d399;
  --cat-7: #38bdf8;
  --cat-8: #fb923c;
  --cat-tint: 16%;

  /* Status (vivid) */
  --success: #10b981;
  --success-text: #34d399;
  --warning: #f59e0b;
  --warning-text: #fbbf24;
  --error: #ef4444;
  --error-text: #f87171;
  --info: #3b82f6;
  --info-text: #60a5fa;
  --processing: #6366f1;
  --processing-text: #818cf8;
  --neutral: #7a8696;
  --neutral-text: #a4afbd;
  --status-tint: 16%;
  --status-border-tint: 36%;

  --skeleton: #1a212b;
  --skeleton-shine: #232b36;

  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.3), 0 1px 3px rgb(0 0 0 / 0.24);
  --shadow-2: 0 4px 12px rgb(0 0 0 / 0.36), 0 1px 3px rgb(0 0 0 / 0.3);
  --shadow-3: 0 16px 40px rgb(0 0 0 / 0.5), 0 2px 8px rgb(0 0 0 / 0.36);
}

/* ---- Light theme -------------------------------------------------------- */
/* ---- Light theme (Rich White & Brand Teal #00B4AF / Deep Navy #12304A) ---- */
[data-theme='light'] {
  color-scheme: light;

  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --surface-3: #eef2f6;
  --surface-hover: #f7f9fb;
  --surface-raised: #ffffff;
  --overlay: rgb(18 48 74 / 0.38);

  --border-subtle: #e7edf2;
  --border: #e7edf2;
  --border-strong: #d5dfe7;

  --text: #12304A;
  --text-2: #365069;
  --text-3: #647b91;
  --text-disabled: #98a7b5;
  --text-inverse: #ffffff;

  --accent: #00B4AF;
  --accent-hover: #009e9a;
  --accent-text: #008783;
  /* Solid button fill */
  --accent-solid: #00B4AF;
  --accent-solid-hover: #009e9a;
  --on-accent: #ffffff;
  --accent-subtle: #e6f8f7;
  --accent-subtle-strong: #cef1f0;
  --accent-border: rgb(0 180 175 / 0.4);

  --cat-1: #00b4af;
  --cat-2: #4f46e5;
  --cat-3: #7c3aed;
  --cat-4: #db2777;
  --cat-5: #d97706;
  --cat-6: #059669;
  --cat-7: #0284c7;
  --cat-8: #ea580c;
  --cat-tint: 10%;

  --success: #10b981;
  --success-text: #047857;
  --warning: #f59e0b;
  --warning-text: #b45309;
  --error: #ef4444;
  --error-text: #b91c1c;
  --info: #0284c7;
  --info-text: #0369a1;
  --processing: #00b4af;
  --processing-text: #008783;
  --neutral: #647b91;
  --neutral-text: #365069;
  --status-tint: 10%;
  --status-border-tint: 32%;

  --skeleton: #f0f4f8;
  --skeleton-shine: #ffffff;

  --shadow-1: 0 1px 2px rgb(18 48 74 / 0.04), 0 1px 3px rgb(18 48 74 / 0.06);
  --shadow-2: 0 4px 12px rgb(18 48 74 / 0.06), 0 1px 3px rgb(18 48 74 / 0.04);
  --shadow-3: 0 16px 36px rgb(18 48 74 / 0.08), 0 4px 12px rgb(18 48 74 / 0.04);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --canvas: #ffffff;
    --surface: #ffffff;
    --surface-2: #f7f9fb;
    --surface-3: #eef2f6;
    --surface-hover: #f7f9fb;
    --surface-raised: #ffffff;
    --overlay: rgb(18 48 74 / 0.38);
    --border-subtle: #e7edf2;
    --border: #e7edf2;
    --border-strong: #d5dfe7;
    --text: #12304A;
    --text-2: #365069;
    --text-3: #647b91;
    --text-disabled: #98a7b5;
    --text-inverse: #ffffff;
    --accent: #00B4AF;
    --accent-hover: #009e9a;
    --accent-text: #008783;
    --accent-solid: #00B4AF;
    --accent-solid-hover: #009e9a;
    --on-accent: #ffffff;
    --accent-subtle: #e6f8f7;
    --accent-subtle-strong: #cef1f0;
    --accent-border: rgb(0 180 175 / 0.4);
    --cat-1: #00b4af;
    --cat-2: #4f46e5;
    --cat-3: #7c3aed;
    --cat-4: #db2777;
    --cat-5: #d97706;
    --cat-6: #059669;
    --cat-7: #0284c7;
    --cat-8: #ea580c;
    --cat-tint: 10%;
    --success: #10b981;
    --success-text: #047857;
    --warning: #f59e0b;
    --warning-text: #b45309;
    --error: #ef4444;
    --error-text: #b91c1c;
    --info: #0284c7;
    --info-text: #0369a1;
    --processing: #00b4af;
    --processing-text: #008783;
    --neutral: #647b91;
    --neutral-text: #365069;
    --status-tint: 10%;
    --status-border-tint: 32%;
    --skeleton: #f0f4f8;
    --skeleton-shine: #ffffff;
    --shadow-1: 0 1px 2px rgb(18 48 74 / 0.04), 0 1px 3px rgb(18 48 74 / 0.06);
    --shadow-2: 0 4px 12px rgb(18 48 74 / 0.06), 0 1px 3px rgb(18 48 74 / 0.04);
    --shadow-3: 0 16px 36px rgb(18 48 74 / 0.08), 0 4px 12px rgb(18 48 74 / 0.04);
  }
}

/* ---- Derived tokens (resolve per theme on every element) ------------------ */
:root,
[data-theme] {
  /* Categorical tinted surfaces + names */
  --cat-1-surface: color-mix(in srgb, var(--cat-1) var(--cat-tint), transparent);
  --cat-2-surface: color-mix(in srgb, var(--cat-2) var(--cat-tint), transparent);
  --cat-3-surface: color-mix(in srgb, var(--cat-3) var(--cat-tint), transparent);
  --cat-4-surface: color-mix(in srgb, var(--cat-4) var(--cat-tint), transparent);
  --cat-5-surface: color-mix(in srgb, var(--cat-5) var(--cat-tint), transparent);
  --cat-6-surface: color-mix(in srgb, var(--cat-6) var(--cat-tint), transparent);
  --cat-7-surface: color-mix(in srgb, var(--cat-7) var(--cat-tint), transparent);
  --cat-8-surface: color-mix(in srgb, var(--cat-8) var(--cat-tint), transparent);
  --cat-teal: var(--cat-1);
  --cat-indigo: var(--cat-2);
  --cat-violet: var(--cat-3);
  --cat-pink: var(--cat-4);
  --cat-amber: var(--cat-5);
  --cat-emerald: var(--cat-6);
  --cat-sky: var(--cat-7);
  --cat-orange: var(--cat-8);

  /* Status tinted surfaces + borders */
  --success-surface: color-mix(in srgb, var(--success) var(--status-tint), transparent);
  --warning-surface: color-mix(in srgb, var(--warning) var(--status-tint), transparent);
  --error-surface: color-mix(in srgb, var(--error) var(--status-tint), transparent);
  --info-surface: color-mix(in srgb, var(--info) var(--status-tint), transparent);
  --processing-surface: color-mix(in srgb, var(--processing) var(--status-tint), transparent);
  --neutral-surface: color-mix(in srgb, var(--neutral) var(--status-tint), transparent);
  --success-border: color-mix(in srgb, var(--success) var(--status-border-tint), transparent);
  --warning-border: color-mix(in srgb, var(--warning) var(--status-border-tint), transparent);
  --error-border: color-mix(in srgb, var(--error) var(--status-border-tint), transparent);
  --info-border: color-mix(in srgb, var(--info) var(--status-border-tint), transparent);
  --processing-border: color-mix(in srgb, var(--processing) var(--status-border-tint), transparent);
  --neutral-border: color-mix(in srgb, var(--neutral) var(--status-border-tint), transparent);

  /* Charts */
  --chart-grid: var(--border-subtle);
  --chart-axis: var(--text-3);
  --chart-area-opacity: 0.15;

  /* ---- Legacy aliases (keep old names working) ---- */
  --bg-app: var(--canvas);
  --bg-card: var(--surface);
  --bg-elevated: var(--surface-2);
  --bg-hover: var(--surface-hover);
  --bg-active: var(--surface-3);
  --bg-border: var(--border);
  --bg-border-subtle: var(--border-subtle);
  --bg-overlay: var(--overlay);
  --bg-skeleton: var(--skeleton);
  --bg-skeleton-shine: var(--skeleton-shine);
  --text-primary: var(--text);
  --text-secondary: var(--text-2);
  --text-muted: var(--text-3);
  --text-on-teal: var(--on-accent);

  --teal-primary: var(--accent);
  --teal-light: var(--accent);
  --teal-dark: var(--accent-text);
  --teal-surface: var(--accent-subtle);
  --teal-surface-strong: var(--accent-subtle-strong);
  --teal-glow: var(--accent-subtle-strong);
  --teal-border: var(--accent-border);

  --fg-success: var(--success-text);
  --fg-warning: var(--warning-text);
  --fg-error: var(--error-text);
  --fg-info: var(--info-text);
  --fg-accent: var(--accent-text);
  --fg-neutral: var(--text-3);
  --bg-success-surface: var(--success-surface);
  --bg-warning-surface: var(--warning-surface);
  --bg-error-surface: var(--error-surface);
  --bg-info-surface: var(--info-surface);
  --bg-accent-surface: var(--accent-subtle);
  --bg-neutral-surface: var(--neutral-surface);
  --border-success: var(--success-border);
  --border-warning: var(--warning-border);
  --border-error: var(--error-border);
  --border-info: var(--info-border);
  --border-accent: var(--accent-border);
  --border-neutral: var(--neutral-border);
  --color-success: var(--fg-success);
  --color-success-surface: var(--bg-success-surface);
  --color-warning: var(--fg-warning);
  --color-warning-surface: var(--bg-warning-surface);
  --color-error: var(--fg-error);
  --color-error-surface: var(--bg-error-surface);
  --color-info: var(--fg-info);
  --color-info-surface: var(--bg-info-surface);

  --chart-1: var(--cat-1);
  --chart-2: var(--cat-2);
  --chart-3: var(--cat-6);
  --chart-4: var(--cat-5);
  --chart-5: var(--cat-3);
  --chart-6: var(--error);
  --chart-7: var(--cat-7);
  --chart-8: var(--cat-4);

  --shadow-sm: var(--shadow-1);
  --shadow-md: var(--shadow-2);
  --shadow-lg: var(--shadow-3);
  --shadow-teal: var(--shadow-1);
  --focus-ring: 0 0 0 2px var(--canvas), 0 0 0 4px var(--focus);
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background-color: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: var(--font-features);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

code,
kbd,
pre,
samp,
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-feature-settings: normal;
}

.tabular-nums,
.num,
.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--font-features-num), "tnum";
}

h1,
h2,
h3,
h4 {
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-3);
}

::selection {
  background: var(--accent-subtle-strong);
  color: var(--text);
}

/* Keyboard focus ring everywhere */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Typography utilities ---- */
.t-display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
}
.t-h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
}
.t-h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
}
.t-body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.t-small {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}
.t-caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-medium);
}
.t-eyebrow,
.section-title {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caption);
  color: var(--text-3);
}
.t-kpi {
  font-size: var(--fs-kpi);
  line-height: var(--lh-kpi);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--font-features-num), "tnum";
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.muted {
  color: var(--text-3);
}
.text-2 {
  color: var(--text-2);
}
.text-success { color: var(--success-text); }
.text-warning { color: var(--warning-text); }
.text-error { color: var(--error-text); }
.text-info { color: var(--info-text); }
.text-accent { color: var(--accent-text); }
.text-processing { color: var(--processing-text); }

/* ==========================================================================
   Form controls (base styles in :where() so CSS modules always win)
   ========================================================================== */

:where(input:not([type='checkbox'], [type='radio'], [type='range'], [type='file'], [type='color'], [type='hidden'])),
:where(select),
:where(textarea),
.input,
.select,
.textarea {
  width: 100%;
  box-sizing: border-box;
  display: block;
  font-family: inherit;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  outline: none;
  min-width: 0;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}
:where(input:not([type='checkbox'], [type='radio'], [type='range'], [type='file'], [type='color'], [type='hidden'])),
:where(select),
.input,
.select {
  height: var(--control-h);
}
:where(textarea),
.textarea {
  min-height: 80px;
  resize: vertical;
}
:where(input, select, textarea):where(:hover:not(:disabled, :focus)),
.input:where(:hover:not(:disabled, :focus)) {
  border-color: var(--text-3);
}
:where(input, select, textarea):where(:focus),
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle-strong);
}
:where(input, select, textarea):where(:focus-visible) {
  outline: none;
}
:where(input, select, textarea):where(:disabled) {
  background-color: var(--surface-2);
  color: var(--text-disabled);
  cursor: not-allowed;
}
:where(input, select, textarea):where([aria-invalid='true']) {
  border-color: var(--error);
}
:where(input, select, textarea):where([aria-invalid='true']:focus) {
  box-shadow: 0 0 0 3px var(--error-surface);
}
.input--sm,
.select--sm {
  height: var(--control-h-sm);
  font-size: var(--fs-small);
  padding-top: 5px;
  padding-bottom: 5px;
}
.input--lg,
.select--lg {
  height: var(--control-h-lg);
}
.input--mono {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

:where(select),
.select {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  cursor: pointer;
}

:where(input, textarea)::placeholder {
  color: var(--text-3);
  opacity: 1;
}

/* Checkbox + radio */
:where(input[type='checkbox']),
:where(input[type='radio']) {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  display: inline-grid;
  place-content: center;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  cursor: pointer;
  vertical-align: middle;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
:where(input[type='radio']) {
  border-radius: 50%;
}
:where(input[type='checkbox'], input[type='radio']):where(:hover:not(:disabled)) {
  border-color: var(--accent);
}
:where(input[type='checkbox']):where(:checked, :indeterminate) {
  background-color: var(--accent-solid);
  border-color: var(--accent-solid);
}
:where(input[type='checkbox']):where(:checked) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
:where(input[type='checkbox']):where(:indeterminate) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 8h8'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
:where([data-theme='dark'] input[type='checkbox']:checked) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23031417' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E");
}
:where([data-theme='dark'] input[type='checkbox']:indeterminate) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23031417' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 8h8'/%3E%3C/svg%3E");
}
:where(input[type='radio']):where(:checked) {
  border-color: var(--accent-solid);
  border-width: 5px;
}
:where(input[type='checkbox'], input[type='radio']):where(:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
:where(input[type='checkbox'], input[type='radio']):where(:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

:where(input[type='range']) {
  accent-color: var(--accent);
  padding: 0;
  background: transparent;
  border: none;
  height: auto;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: var(--text);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.checkbox--disabled {
  color: var(--text-disabled);
  cursor: not-allowed;
}

/* Switch (button role=switch) */
.switch {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--space-2);
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  cursor: pointer;
  text-align: left;
}
.switch__track {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.2);
  transition: transform var(--dur-fast) var(--ease-out);
}
.switch[aria-checked='true'] .switch__track {
  background: var(--accent-solid);
}
.switch[aria-checked='true'] .switch__thumb {
  transform: translateX(14px);
}
.switch--sm .switch__track {
  width: 28px;
  height: 16px;
}
.switch--sm .switch__thumb {
  width: 12px;
  height: 12px;
}
.switch--sm[aria-checked='true'] .switch__thumb {
  transform: translateX(12px);
}
.switch:hover:not(:disabled) .switch__track {
  filter: brightness(1.06);
}
.switch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: inherit;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
button:disabled,
button[aria-disabled='true'] {
  cursor: not-allowed;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes scaleOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: translateY(4px) scale(0.98); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes drawerIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes drawerOut {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
  70% { box-shadow: 0 0 0 5px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  from { background-position: 150% 0; }
  to { background-position: -50% 0; }
}
@keyframes sheen {
  from { transform: translateX(-100%); }
  to { transform: translateX(200%); }
}
@keyframes stripes {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}
@keyframes indeterminate {
  0% { left: -40%; width: 40%; }
  60% { left: 100%; width: 40%; }
  100% { left: 100%; width: 40%; }
}
@keyframes celebrate {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 50%, transparent); }
  100% { box-shadow: 0 0 0 6px transparent; }
}
@keyframes rowFlash {
  0% { background-color: var(--accent-subtle-strong); }
  100% { background-color: transparent; }
}
@keyframes toastTimer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@keyframes topBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

.animate-fade-in {
  animation: fadeIn var(--dur-med) var(--ease-out) both;
}
.animate-pulse {
  animation: pulseOpacity 1.6s infinite ease-in-out;
}
.animate-spin {
  animation: spin 0.9s linear infinite;
}
.animate-spin-fast {
  animation: spin 0.7s linear infinite;
}

/* ==========================================================================
   Loading + progress
   ========================================================================== */

.skeleton {
  display: block;
  border-radius: var(--radius-xs);
  background-color: var(--skeleton);
  background-image: linear-gradient(90deg, transparent 0%, var(--skeleton-shine) 50%, transparent 100%);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: shimmer 1.6s var(--ease-in-out) infinite;
  min-height: 8px;
}
.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.progress {
  --progress-fill: var(--accent);
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  overflow: hidden;
  isolation: isolate;
}
.progress--sm {
  height: 4px;
}
.progress--lg {
  height: 10px;
}
.progress__bar {
  position: relative;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--progress-fill);
  overflow: hidden;
  transition: width var(--dur-slow) var(--ease-out), background var(--dur-med) var(--ease-out);
}
.progress--brand,
.progress--running {
  --progress-fill: var(--grad-brand-h);
}
.progress--success,
.progress--complete {
  --progress-fill: var(--success);
}
.progress--warning,
.progress--paused {
  --progress-fill: var(--warning);
}
.progress--error {
  --progress-fill: var(--error);
}
.progress--info {
  --progress-fill: var(--info);
}
.progress--processing {
  --progress-fill: var(--processing);
}
/* Running: brand gradient with a soft moving sheen */
.progress--running .progress__bar::after,
.progress--striped .progress__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.38), transparent);
  animation: sheen 1.6s var(--ease-in-out) infinite;
}
.progress--paused .progress__bar::after {
  animation: none;
  display: none;
}
/* Complete: one brief celebrate pulse */
.progress--complete {
  animation: celebrate 0.9s var(--ease-out) 1;
}
.progress--indeterminate .progress__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: var(--grad-brand-h);
  animation: indeterminate 1.4s var(--ease-in-out) infinite;
}
.progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--text-3);
  margin-bottom: 6px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.progress-meta strong {
  color: var(--text);
  font-weight: var(--fw-semibold);
}

.spinner {
  display: inline-block;
  flex-shrink: 0;
  color: currentColor;
  animation: spin 0.8s linear infinite;
}

/* Thin top-of-page brand accent line */
.top-accent {
  height: 2px;
  background: var(--grad-brand-h);
}
/* Very faint dashboard glow (dark theme only) */
.hero-glow {
  position: relative;
}
[data-theme='dark'] .hero-glow::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 360px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(60% 100% at 20% 0%, rgb(34 211 238 / 0.06), transparent 70%),
    radial-gradient(50% 90% at 80% 0%, rgb(99 102 241 / 0.05), transparent 70%);
}
.hero-glow > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Live updates
   ========================================================================== */

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  color: var(--success);
  background: currentColor;
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}
.live-dot--connecting {
  color: var(--neutral);
  animation: pulseOpacity 1.2s infinite;
}
.live-dot--polling {
  color: var(--warning);
  animation: none;
}
.live-dot--offline {
  color: var(--error);
  animation: none;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: var(--text-2);
  white-space: nowrap;
}

.row-flash,
.row-flash > td {
  animation: rowFlash 1.2s var(--ease-out);
}

.is-refreshing {
  position: relative;
}
.is-refreshing > * {
  opacity: 0.6;
  transition: opacity var(--dur-med) var(--ease-out);
}
.is-refreshing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  overflow: hidden;
  background: var(--grad-brand-h);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: shimmer 1.1s linear infinite;
}

/* ==========================================================================
   Layout scaffolding
   ========================================================================== */

.page {
  padding: var(--content-pad);
  max-width: 100%;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Page header: title + description left, actions right */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-bottom: var(--space-2);
}
.page-header__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 320px;
}
.page-header__eyebrow {
  font-size: 11px;
  line-height: 14px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 2px;
}
.page-header__title,
.page-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}
.page-header__description,
.page-subtitle {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-3);
  max-width: 72ch;
  margin: 2px 0 0 0;
}
.page-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-1);
  font-size: var(--fs-caption);
  color: var(--text-3);
}
.page-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  min-width: 0;
}
.card--pad {
  padding: var(--card-pad);
}
.card--compact.card--pad,
.card--compact .card__body {
  padding: var(--card-pad-compact);
}
.card--flat {
  box-shadow: none;
}
.card--interactive {
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.card--interactive:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}
.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 52px;
  padding: var(--space-3) var(--card-pad);
  border-bottom: 1px solid var(--border-subtle);
}
.card--compact .card__header {
  padding: var(--space-3) var(--card-pad-compact);
}
.card__heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.card__icon {
  display: inline-flex;
  color: var(--text-3);
  flex-shrink: 0;
}
.card__title {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-semibold);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.card__caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--text-3);
  font-weight: var(--fw-regular);
}
.card__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}
.card__body {
  padding: var(--card-pad);
}
.card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--card-pad);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-h: var(--control-h);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--btn-h);
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.04);
}
.btn svg {
  flex-shrink: 0;
}
.btn:hover:not(:disabled):not([aria-disabled='true']) {
  background: var(--surface-hover);
  border-color: var(--text-3);
  text-decoration: none;
}
.btn:active:not(:disabled):not([aria-disabled='true']) {
  background: var(--surface-3);
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.5;
}
.btn[aria-busy='true'] {
  opacity: 1;
  cursor: progress;
}
.btn--sm {
  --btn-h: var(--control-h-sm);
  padding: 0 12px;
  gap: 6px;
  font-size: var(--fs-small);
}
.btn--lg {
  --btn-h: var(--control-h-lg);
  padding: 0 18px;
  font-size: var(--fs-body);
}
.btn--icon {
  width: var(--btn-h);
  padding: 0;
  border-radius: var(--radius-full);
}
.btn--block {
  width: 100%;
}
.btn--primary {
  background: var(--accent-solid);
  border-color: var(--accent-solid);
  color: var(--on-accent);
  font-weight: var(--fw-semibold);
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.08), inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.btn--primary:hover:not(:disabled):not([aria-disabled='true']) {
  background: var(--accent-solid-hover);
  border-color: var(--accent-solid-hover);
}
.btn--primary:active:not(:disabled):not([aria-disabled='true']) {
  background: var(--accent-solid-hover);
}
.btn--secondary {
  background: var(--surface);
}
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
  box-shadow: none;
}
.btn--ghost:hover:not(:disabled):not([aria-disabled='true']) {
  background: var(--surface-hover);
  border-color: transparent;
  color: var(--text);
}
.btn--ghost:active:not(:disabled):not([aria-disabled='true']) {
  background: var(--surface-3);
}
.btn--danger {
  background: var(--surface);
  border-color: var(--error-border);
  color: var(--error-text);
}
.btn--danger:hover:not(:disabled):not([aria-disabled='true']) {
  background: var(--error-surface);
  border-color: var(--error);
}
.btn--danger-solid,
.btn--danger.btn--solid {
  background: #d92d20;
  border-color: #d92d20;
  color: #ffffff;
}
.btn--danger-solid:hover:not(:disabled):not([aria-disabled='true']),
.btn--danger.btn--solid:hover:not(:disabled):not([aria-disabled='true']) {
  background: #b42318;
  border-color: #b42318;
}
/* Loading: the label keeps its width; the spinner sits on top */
.btn__label {
  display: inline-flex;
  align-items: center;
  gap: inherit;
}
.btn--loading-overlay .btn__label {
  visibility: hidden;
}
.btn__spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn__kbd {
  margin-left: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  opacity: 0.7;
}
.btn-group {
  display: inline-flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-3);
}
.icon-btn:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
}

/* ==========================================================================
   Badges, chips, kbd
   ========================================================================== */

.badge {
  --badge-fg: var(--text-2);
  --badge-bg: var(--neutral-surface);
  --badge-dot: var(--neutral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  line-height: 1;
  white-space: nowrap;
  color: var(--badge-fg);
  background: var(--badge-bg);
  border: 1px solid transparent;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.badge--sm {
  height: 20px;
  padding: 0 6px;
  gap: 4px;
}
.badge--outline {
  background: transparent;
  border-color: var(--border);
}
.badge-teal,
.badge-accent {
  --badge-fg: var(--accent-text);
  --badge-bg: var(--accent-subtle);
  --badge-dot: var(--accent);
}
.badge-success {
  --badge-fg: var(--success-text);
  --badge-bg: var(--success-surface);
  --badge-dot: var(--success);
}
.badge-warning {
  --badge-fg: var(--warning-text);
  --badge-bg: var(--warning-surface);
  --badge-dot: var(--warning);
}
.badge-error {
  --badge-fg: var(--error-text);
  --badge-bg: var(--error-surface);
  --badge-dot: var(--error);
}
.badge-info {
  --badge-fg: var(--info-text);
  --badge-bg: var(--info-surface);
  --badge-dot: var(--info);
}
.badge-processing {
  --badge-fg: var(--processing-text);
  --badge-bg: var(--processing-surface);
  --badge-dot: var(--processing);
}
.badge-neutral,
.badge-muted {
  --badge-fg: var(--text-2);
  --badge-bg: var(--neutral-surface);
  --badge-dot: var(--neutral);
}
.badge-cat-1 { --badge-dot: var(--cat-1); --badge-bg: var(--cat-1-surface); --badge-fg: var(--text); }
.badge-cat-2 { --badge-dot: var(--cat-2); --badge-bg: var(--cat-2-surface); --badge-fg: var(--text); }
.badge-cat-3 { --badge-dot: var(--cat-3); --badge-bg: var(--cat-3-surface); --badge-fg: var(--text); }
.badge-cat-4 { --badge-dot: var(--cat-4); --badge-bg: var(--cat-4-surface); --badge-fg: var(--text); }
.badge-cat-5 { --badge-dot: var(--cat-5); --badge-bg: var(--cat-5-surface); --badge-fg: var(--text); }
.badge-cat-6 { --badge-dot: var(--cat-6); --badge-bg: var(--cat-6-surface); --badge-fg: var(--text); }
.badge-cat-7 { --badge-dot: var(--cat-7); --badge-bg: var(--cat-7-surface); --badge-fg: var(--text); }
.badge-cat-8 { --badge-dot: var(--cat-8); --badge-bg: var(--cat-8-surface); --badge-fg: var(--text); }
.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--badge-dot, currentColor);
  color: var(--badge-dot, currentColor);
  flex-shrink: 0;
}
.badge__dot--pulse {
  animation: pulseDot 1.6s infinite;
}
.badge__count {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  font-weight: var(--fw-regular);
}

/* Colour dot (facets, legends) */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--neutral));
  flex-shrink: 0;
}

/* Chips (filters, toggles) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}
button.chip:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
}
.chip--active,
.chip[aria-pressed='true'] {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: var(--accent-text);
}
.chip__remove {
  display: inline-flex;
  align-items: center;
  border: none;
  background: none;
  padding: 2px;
  margin-right: -4px;
  border-radius: 50%;
  color: inherit;
  opacity: 0.7;
}
.chip__remove:hover {
  opacity: 1;
  background: var(--surface-3);
}
.code-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  line-height: 18px;
  padding: 0 6px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  white-space: nowrap;
}
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  line-height: 1;
  height: 20px;
  min-width: 20px;
  padding: 0 5px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
}

/* ==========================================================================
   Toolbar + inputs with icons
   ========================================================================== */

.toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.toolbar__spacer {
  flex: 1 1;
}
.toolbar .search-input {
  min-width: 220px;
  flex: 1 1 240px;
  max-width: 420px;
}
.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon > svg {
  position: absolute;
  left: 10px;
  color: var(--text-3);
  pointer-events: none;
}
.input-icon > input {
  padding-left: 34px;
  width: 100%;
}
.input-icon__end {
  position: absolute;
  right: 6px;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field__label {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: var(--fw-medium);
  color: var(--text);
}
.field__required {
  color: var(--error-text);
  margin-left: 2px;
}
.field__hint {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--text-3);
}
.field__error {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--error-text);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  grid-gap: var(--space-4);
  gap: var(--space-4);
}
/* Stripe-style settings section: description left, fields right */
.form-section {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  grid-gap: var(--space-6);
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-subtle);
}
.form-section:first-child {
  border-top: none;
  padding-top: 0;
}
.form-section__title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--text);
}
.form-section__description {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--text-3);
  margin-top: var(--space-1);
}
.dirty-bar {
  position: -webkit-sticky;
  position: sticky;
  bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  animation: fadeIn var(--dur-med) var(--ease-out);
}

/* ==========================================================================
   Tables (hand-rolled tables; the shared DataGrid has its own module)
   ========================================================================== */

.data-table-container,
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.data-table,
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}
.data-table th,
.table th {
  height: 40px;
  background: var(--surface-2);
  padding: 0 var(--space-4);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caption);
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  vertical-align: middle;
}
.data-table td,
.table td {
  height: var(--row-h);
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  font-size: var(--fs-small);
  vertical-align: middle;
}
.data-table tr:last-child td,
.table tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr,
.table tbody tr {
  transition: background-color var(--dur-fast) var(--ease-out);
}
.data-table tbody tr:hover,
.table tbody tr:hover {
  background-color: var(--surface-hover);
}
.table tbody tr[aria-selected='true'] {
  background-color: var(--accent-subtle);
}
.table tbody tr[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.table--sticky thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}
.table--compact td {
  height: var(--row-h-compact);
  padding: 0 var(--space-3);
}
.table--compact th {
  padding: 0 var(--space-3);
}
.table td.num,
.table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--font-features-num), "tnum";
}
.table td.mono {
  font-size: var(--fs-caption);
}
.sortable-th__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
}
.sortable-th__btn:hover {
  color: var(--text);
}
.sortable-th__icon {
  opacity: 0.45;
}
th[aria-sort='ascending'],
th[aria-sort='descending'] {
  color: var(--text);
}
th[aria-sort='ascending'] .sortable-th__icon,
th[aria-sort='descending'] .sortable-th__icon {
  opacity: 1;
  color: var(--accent-text);
}

/* Table collapses to cards on narrow screens: give each td a data-label. */
@media (max-width: 720px) {
  .table--responsive thead {
    display: none;
  }
  .table--responsive,
  .table--responsive tbody,
  .table--responsive tr,
  .table--responsive td {
    display: block;
    width: 100%;
  }
  .table--responsive tr {
    border-bottom: 1px solid var(--border);
    padding: var(--space-2) 0;
  }
  .table--responsive td {
    height: auto;
    border: none;
    padding: 4px var(--space-4);
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
  }
  .table--responsive td[data-label]::before {
    content: attr(data-label);
    font-size: var(--fs-caption);
    font-weight: var(--fw-semibold);
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caption);
  }
}

/* Virtual table */
.vtable {
  position: relative;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  contain: strict;
}
.vtable__header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: grid;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caption);
  color: var(--text-3);
}
.vtable__row {
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--fs-small);
}
.vtable__row:hover {
  background: var(--surface-hover);
}
.vtable__row:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.vtable__cell {
  padding: 0 var(--space-3);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vtable__header .vtable__cell {
  padding: 12px var(--space-3);
}

/* ==========================================================================
   Empty / error states + callouts
   ========================================================================== */

.empty-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-1);
  padding: var(--space-9) var(--space-5);
  color: var(--text-2);
}
.empty-state--compact,
.error-state--compact {
  padding: var(--space-6) var(--space-4);
}
.empty-state__icon,
.error-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: var(--space-2);
  background: var(--accent-subtle);
  color: var(--accent-text);
}
.empty-state__icon svg,
.error-state__icon svg {
  width: 20px;
  height: 20px;
}
.error-state__icon {
  background: var(--error-surface);
  color: var(--error-text);
}
.empty-state__title,
.error-state__title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  color: var(--text);
}
.empty-state__description,
.error-state__message {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--text-2);
  max-width: 420px;
}
.empty-state__action,
.error-state__action {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}
.error-state--inline {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--error-surface);
  border: 1px solid var(--error-border);
  border-left: 3px solid var(--error);
  color: var(--error-text);
  gap: var(--space-3);
}
.error-state--inline .error-state__message {
  flex: 1 1;
  max-width: none;
  color: var(--text);
}
.error-state--inline .error-state__action {
  margin-top: 0;
}

.callout {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--info-border);
  border-left: 3px solid var(--info);
  background: var(--info-surface);
  color: var(--text);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}
.callout > svg:first-child {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--info-text);
}
.callout--success { border-color: var(--success-border); border-left-color: var(--success); background: var(--success-surface); }
.callout--success > svg:first-child { color: var(--success-text); }
.callout--warning { border-color: var(--warning-border); border-left-color: var(--warning); background: var(--warning-surface); }
.callout--warning > svg:first-child { color: var(--warning-text); }
.callout--error { border-color: var(--error-border); border-left-color: var(--error); background: var(--error-surface); }
.callout--error > svg:first-child { color: var(--error-text); }
.callout--accent { border-color: var(--accent-border); border-left-color: var(--accent); background: var(--accent-subtle); }
.callout--accent > svg:first-child { color: var(--accent-text); }

/* ==========================================================================
   KPI tiles
   ========================================================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: var(--space-4);
  gap: var(--space-4);
}
.kpi-grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
}
@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  grid-gap: var(--space-4);
  gap: var(--space-4);
}

.stat-card {
  --stat-color: var(--cat-1);
  --stat-surface: var(--cat-1-surface);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5);
  padding-top: calc(var(--space-5) + 1px);
  text-align: left;
  color: inherit;
  font: inherit;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
}
a.stat-card:hover {
  text-decoration: none;
}
.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--stat-color);
}
.stat-card--brand::before {
  background: var(--grad-brand-h);
}
.stat-card--teal, .stat-card--cat-1 { --stat-color: var(--cat-1); --stat-surface: var(--cat-1-surface); }
.stat-card--indigo, .stat-card--cat-2 { --stat-color: var(--cat-2); --stat-surface: var(--cat-2-surface); }
.stat-card--violet, .stat-card--cat-3 { --stat-color: var(--cat-3); --stat-surface: var(--cat-3-surface); }
.stat-card--pink, .stat-card--cat-4 { --stat-color: var(--cat-4); --stat-surface: var(--cat-4-surface); }
.stat-card--amber, .stat-card--cat-5 { --stat-color: var(--cat-5); --stat-surface: var(--cat-5-surface); }
.stat-card--emerald, .stat-card--cat-6 { --stat-color: var(--cat-6); --stat-surface: var(--cat-6-surface); }
.stat-card--sky, .stat-card--cat-7 { --stat-color: var(--cat-7); --stat-surface: var(--cat-7-surface); }
.stat-card--orange, .stat-card--cat-8 { --stat-color: var(--cat-8); --stat-surface: var(--cat-8-surface); }
.stat-card--brand { --stat-color: var(--accent); --stat-surface: var(--accent-subtle); }
.stat-card--success { --stat-color: var(--success); --stat-surface: var(--success-surface); }
.stat-card--warning { --stat-color: var(--warning); --stat-surface: var(--warning-surface); }
.stat-card--error { --stat-color: var(--error); --stat-surface: var(--error-surface); }
.stat-card--info { --stat-color: var(--info); --stat-surface: var(--info-surface); }
.stat-card--processing { --stat-color: var(--processing); --stat-surface: var(--processing-surface); }
.stat-card--neutral { --stat-color: var(--neutral); --stat-surface: var(--neutral-surface); }
.stat-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.stat-card__label {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-semibold);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caption);
  padding-top: 2px;
  min-width: 0;
}
.stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -4px 0 -8px;
  border-radius: var(--radius-sm);
  background: var(--stat-surface);
  color: var(--stat-color);
  flex-shrink: 0;
}
.stat-card__icon svg {
  width: 18px;
  height: 18px;
}
.stat-card__value {
  font-size: var(--fs-kpi);
  line-height: var(--lh-kpi);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--font-features-num), "tnum";
  margin-top: var(--space-1);
  min-height: var(--lh-kpi);
  display: flex;
  align-items: center;
}
.stat-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  min-height: 24px;
}
.stat-card__delta {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--text-3);
  min-width: 0;
}
.stat-card__delta--up { color: var(--success-text); font-weight: var(--fw-medium); }
.stat-card__delta--down { color: var(--error-text); font-weight: var(--fw-medium); }
.stat-card__spark {
  flex-shrink: 0;
  color: var(--stat-color);
  --chart-1: var(--stat-color);
}

/* ==========================================================================
   Tabs + segmented
   ========================================================================== */

.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-3);
  border: none;
  background: none;
  color: var(--text-3);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}
.tab:hover:not(:disabled) {
  color: var(--text);
}
.tab[aria-selected='true'] {
  color: var(--text);
}
.tab[aria-selected='true'] svg {
  color: var(--accent-text);
}
.tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: var(--space-2);
  right: var(--space-2);
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
}
.tab:disabled {
  opacity: 0.5;
}
.tab__badge {
  font-size: var(--fs-caption);
  line-height: 18px;
  min-width: 20px;
  padding: 0 6px;
  text-align: center;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text-2);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.tab[aria-selected='true'] .tab__badge {
  background: var(--accent-subtle);
  color: var(--accent-text);
}
/* Pill tabs variant */
.tabs--pills {
  border-bottom: none;
  padding: 2px;
  gap: 2px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
}
.tabs--pills .tab {
  height: 30px;
  border-radius: var(--radius-xs);
}
.tabs--pills .tab[aria-selected='true'] {
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.tabs--pills .tab[aria-selected='true']::after {
  display: none;
}

.segmented {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  padding: 2px;
  gap: 2px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.segmented > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-xs);
  background: none;
  color: var(--text-3);
  font-size: var(--fs-small);
}
.segmented > button:hover:not(:disabled) {
  color: var(--text);
}
.segmented > button[aria-pressed='true'],
.segmented > button[aria-checked='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-1);
}

/* ==========================================================================
   Dropzone
   ========================================================================== */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-5);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-3);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.dropzone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent-text);
  margin-bottom: var(--space-1);
}
.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--accent);
  background: var(--surface-hover);
}
.dropzone--active {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-subtle);
  color: var(--accent-text);
}
.dropzone--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.dropzone__title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--text);
}
.dropzone__error {
  color: var(--error-text);
  font-size: var(--fs-caption);
}

/* ==========================================================================
   Combobox / listbox
   ========================================================================== */

.combobox {
  position: relative;
}
.combobox > input {
  width: 100%;
}
.combobox__spinner {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  display: flex;
}
.listbox {
  position: absolute;
  z-index: var(--z-popover);
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  padding: var(--space-1);
  list-style: none;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  animation: popIn var(--dur-fast) var(--ease-out);
}
.listbox__option {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--fs-small);
}
.listbox__option[aria-selected='true'] {
  background: var(--surface-hover);
  color: var(--text);
}
.listbox__empty {
  padding: 10px;
  font-size: var(--fs-caption);
  color: var(--text-3);
}

/* ==========================================================================
   Popover, menu, tooltip
   ========================================================================== */

.popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-popover);
  min-width: 180px;
  max-width: min(420px, calc(100vw - 16px));
  max-height: var(--popover-max-h, calc(100vh - 16px));
  overflow: auto;
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  outline: none;
  animation: popIn var(--dur-fast) var(--ease-out);
}
.popover[data-side='bottom'] { transform-origin: top; }
.popover[data-side='top'] { transform-origin: bottom; }
.popover[data-positioned='false'] {
  visibility: hidden;
}
.popover--pad {
  padding: var(--space-3);
}
.popover__header {
  padding: var(--space-3) var(--space-3) var(--space-2);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}
.popover__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.menu {
  padding: var(--space-1);
  min-width: 200px;
}
.menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 32px;
  padding: 0 var(--space-2);
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  text-align: left;
  white-space: nowrap;
  outline: none;
}
.menu__item:focus,
.menu__item[data-highlighted='true'] {
  background: var(--surface-hover);
  outline: none;
}
.menu__item:focus-visible {
  outline: none;
}
.menu__item:disabled,
.menu__item[aria-disabled='true'] {
  color: var(--text-disabled);
  cursor: not-allowed;
}
.menu__item--danger {
  color: var(--error-text);
}
.menu__item--danger:focus {
  background: var(--error-surface);
}
.menu__icon {
  display: inline-flex;
  width: 16px;
  justify-content: center;
  color: var(--text-3);
  flex-shrink: 0;
}
.menu__item--danger .menu__icon {
  color: inherit;
}
.menu__text {
  flex: 1 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu__hint {
  margin-left: auto;
  padding-left: var(--space-4);
  font-size: var(--fs-caption);
  color: var(--text-3);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.menu__check {
  display: inline-flex;
  width: 16px;
  margin-left: auto;
  justify-content: center;
  color: var(--accent-text);
  flex-shrink: 0;
}
.menu__hint + .menu__check {
  margin-left: var(--space-2);
}
.menu__separator {
  height: 1px;
  margin: var(--space-1) calc(var(--space-1) * -1);
  background: var(--border-subtle);
  border: none;
}
.menu__label {
  padding: var(--space-2) var(--space-2) var(--space-1);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caption);
  color: var(--text-3);
}

.tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-tooltip);
  max-width: 320px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: #101828;
  color: #f2f4f7;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-2);
  pointer-events: none;
  overflow-wrap: anywhere;
  animation: popIn var(--dur-fast) var(--ease-out);
}
[data-theme='dark'] .tooltip {
  background: #e6eaf0;
  color: #101828;
}
.tooltip[data-positioned='false'] {
  visibility: hidden;
}

/* ==========================================================================
   Charts
   ========================================================================== */

.sparkline {
  display: block;
  overflow: visible;
}
.sparkline__line {
  fill: none;
  stroke: var(--chart-1);
  stroke-width: 1.75;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.sparkline__area {
  fill: var(--chart-1);
  opacity: var(--chart-area-opacity);
}
.barlist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}
.barlist__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 6px var(--space-3);
  gap: 6px var(--space-3);
  align-items: center;
  font-size: var(--fs-small);
}
.barlist__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
}
.barlist__value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--font-features-num), "tnum";
  color: var(--text);
  font-weight: var(--fw-semibold);
}
.barlist__track {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  overflow: hidden;
}
.barlist__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--chart-1));
  transition: width var(--dur-slow) var(--ease-out);
}
.barlist__hint {
  grid-column: 1 / -1;
  font-size: var(--fs-caption);
  color: var(--text-3);
}
.barlist__button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 6px var(--space-3);
  gap: 6px var(--space-3);
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--fs-small);
  line-height: inherit;
  text-align: start;
  cursor: pointer;
  border-radius: var(--radius-xs);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.barlist__button:hover .barlist__fill {
  filter: brightness(1.08);
}
.barlist__button:hover .barlist__label {
  color: var(--text);
}
.barlist__button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.histogram {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}
.histogram__col {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.histogram__track {
  flex: 1 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid var(--chart-grid);
}
.histogram__bar {
  display: block;
  width: min(100%, 40px);
  border-radius: 4px 4px 0 0;
  background: var(--bar-color, var(--chart-1));
  transition: height var(--dur-slow) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.histogram__col:hover .histogram__bar {
  opacity: 0.8;
}
.histogram__value,
.histogram__label {
  font-size: var(--fs-caption);
  color: var(--text-3);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.histogram__value {
  color: var(--text-2);
  font-weight: var(--fw-semibold);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: var(--fs-caption);
  color: var(--text-2);
}
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Overlays: modal, drawer, toast
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: var(--overlay);
  animation: overlayIn var(--dur-med) var(--ease-out);
}
.modal-overlay[data-state='closing'] {
  animation: fadeOut var(--dur-fast) ease forwards;
}
.modal {
  width: 100%;
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  outline: none;
  animation: scaleIn var(--dur-med) var(--ease-out);
}
.modal-overlay[data-state='closing'] .modal {
  animation: scaleOut var(--dur-fast) ease forwards;
}
.modal__header,
.drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}
.modal__title,
.drawer__title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  color: var(--text);
  overflow-wrap: anywhere;
}
.modal__subtitle,
.drawer__subtitle {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--text-3);
  margin-top: 2px;
}
.modal__body,
.drawer__body {
  padding: var(--space-5);
  overflow-y: auto;
  flex: 1 1;
  overscroll-behavior: contain;
}
.modal__footer,
.drawer__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface);
  flex-wrap: wrap;
}
.modal__close,
.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -4px -8px -4px 0;
  border: none;
  border-radius: var(--radius-full);
  background: none;
  color: var(--text-3);
  flex-shrink: 0;
}
.modal__close:hover:not(:disabled),
.drawer__close:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
}
.drawer__header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}
body.scroll-locked {
  overflow: hidden;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--overlay);
  animation: overlayIn var(--dur-med) var(--ease-out);
}
.drawer-overlay[data-state='closing'] {
  animation: fadeOut var(--dur-med) ease forwards;
}
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: calc(var(--z-overlay) + 1);
  width: min(var(--drawer-w), 100vw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  outline: none;
  animation: drawerIn var(--dur-med) var(--ease-out);
}
.drawer[data-side='left'] {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--border);
}
.drawer[data-state='closing'] {
  animation: drawerOut var(--dur-med) var(--ease-in-out) forwards;
}

.toast-region {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: min(400px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  --toast-fg: var(--accent-text);
  --toast-accent: var(--accent);
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--toast-accent);
  box-shadow: var(--shadow-3);
  color: var(--text);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  position: relative;
  overflow: hidden;
  animation: slideInRight var(--dur-med) var(--ease-out);
}
.toast--success { --toast-fg: var(--success-text); --toast-accent: var(--success); }
.toast--error { --toast-fg: var(--error-text); --toast-accent: var(--error); }
.toast--warning { --toast-fg: var(--warning-text); --toast-accent: var(--warning); }
.toast--info { --toast-fg: var(--info-text); --toast-accent: var(--info); }
.toast__icon {
  display: flex;
  color: var(--toast-fg);
  margin-top: 1px;
  flex-shrink: 0;
}
.toast__message {
  flex: 1 1;
  min-width: 0;
  overflow-wrap: anywhere;
  padding-top: 0;
}
.toast__count {
  margin-left: 6px;
  font-size: var(--fs-caption);
  color: var(--text-3);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.toast__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
  margin: -6px -4px -6px 0;
}
.toast__timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--toast-accent);
  opacity: 0.4;
  transform-origin: left;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 52px;
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-small);
  color: var(--text-2);
  flex-wrap: wrap;
}
.pagination strong {
  color: var(--text);
  font-weight: var(--fw-semibold);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.pagination__group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.pagination__pages {
  display: flex;
  align-items: center;
  gap: 2px;
}
.pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-size: var(--fs-small);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.pagination__page:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
}
.pagination__page:disabled {
  opacity: 0.4;
}
.pagination__page--nav {
  border-color: var(--border);
  background: var(--surface);
}
.pagination__page[aria-current='page'] {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: var(--accent-text);
  font-weight: var(--fw-semibold);
  opacity: 1;
}
.pagination__ellipsis {
  min-width: 20px;
  text-align: center;
  color: var(--text-3);
}
.pagination__label {
  color: var(--text-3);
  white-space: nowrap;
}
.pagination__jump {
  width: 72px;
}
.pagination input.pagination__jump,
.pagination select {
  height: 32px;
  font-size: var(--fs-small);
  padding-top: 4px;
  padding-bottom: 4px;
}
.pagination select {
  padding-left: 10px;
}

/* ==========================================================================
   App shell (page.tsx / Sidebar)
   ≤1024px the sidebar becomes a rail (.sidebar-label hidden); ≤640px it becomes an
   off-canvas drawer ([data-open='true'] shows it) with .app-topbar.
   ========================================================================== */

.app-shell {
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.app-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transition: width var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  overflow-y: auto;
  overflow-x: hidden;
}
.app-sidebar[data-collapsed='true'] {
  width: var(--rail-w);
}
.app-sidebar[data-collapsed='true'] .sidebar-label {
  display: none;
}
.app-main {
  flex: 1 1;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  position: relative;
  background: var(--canvas);
}
.app-topbar {
  display: none;
}
.app-drawer-backdrop {
  display: none;
}
.nav-section {
  padding: var(--space-4) var(--space-3) var(--space-1);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caption);
  color: var(--text-3);
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  height: 36px;
  padding: 0 var(--space-3);
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-2);
  text-align: left;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  text-decoration: none;
}
.nav-item svg {
  width: var(--icon-nav);
  height: var(--icon-nav);
  flex-shrink: 0;
  color: var(--text-3);
}
.nav-item:hover {
  background: var(--surface-hover);
  color: var(--text);
  text-decoration: none;
}
.nav-item[aria-current='page'] {
  background: var(--accent-subtle);
  color: var(--text);
  font-weight: var(--fw-semibold);
}
.nav-item[aria-current='page'] svg {
  color: var(--accent-text);
}
.nav-item[aria-current='page']::before {
  content: '';
  position: absolute;
  left: calc(var(--space-3) * -1 + 2px);
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad-brand-v);
}

@media (max-width: 1024px) {
  :root {
    --content-pad: 24px;
  }
  .app-sidebar {
    width: var(--rail-w);
  }
  .app-sidebar .sidebar-label {
    display: none;
  }
  .app-sidebar .nav-item {
    justify-content: center;
  }
  .form-section {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 640px) {
  :root {
    --content-pad: 16px;
    --card-pad: 16px;
  }
  .app-shell {
    flex-direction: column;
  }
  .app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    height: var(--topbar-h);
    padding: 0 var(--space-4);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: var(--z-nav);
    width: min(280px, 85vw);
    transform: translateX(-100%);
    box-shadow: var(--shadow-3);
  }
  .app-sidebar .sidebar-label {
    display: initial;
  }
  .app-sidebar .nav-item {
    justify-content: flex-start;
  }
  .app-sidebar[data-open='true'] {
    transform: translateX(0);
  }
  .app-drawer-backdrop[data-open='true'] {
    display: block;
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-nav) - 1);
    background: var(--overlay);
  }
  .page {
    gap: var(--space-5);
  }
  .page-header__title,
  .page-title {
    font-size: 18px;
    line-height: 24px;
  }
  .page-header {
    align-items: flex-start;
  }
  .stat-card__value {
    font-size: 24px;
    line-height: 28px;
  }
  .modal-overlay {
    padding: var(--space-2);
    align-items: flex-end;
  }
  .modal {
    max-height: 92vh;
  }
  .drawer {
    width: 100vw;
    border-left: none;
  }
  .toast-region {
    right: 16px;
    bottom: 16px;
  }
  .pagination {
    justify-content: center;
  }
}

/* ==========================================================================
   Logo
   ========================================================================== */

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  color: inherit;
  text-decoration: none;
}
button.logo {
  background: none;
  border: none;
  padding: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 28%;
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
  min-width: 0;
}
.logo__name {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo__subtitle {
  font-size: var(--fs-caption);
  font-weight: var(--fw-regular);
  color: var(--text-3);
  white-space: nowrap;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .skeleton {
    animation: none;
    background-image: none;
  }
  .progress--running .progress__bar::after,
  .progress--striped .progress__bar::after {
    display: none;
  }
  .progress--indeterminate .progress__bar {
    animation: none;
    left: 0;
    width: 100%;
    opacity: 0.5;
  }
  .spinner,
  .animate-spin,
  .animate-spin-fast {
    animation: spin 1.5s linear infinite !important;
    animation-iteration-count: infinite !important;
    animation-duration: 1.5s !important;
  }
}

/* ---- Circle theme primitives (pure circles, no hexagon shapes) ---- */
.hex-ring {
  display: inline-flex;
  flex-shrink: 0;
  padding: 1px;
  width: 32px;
  height: 32px;
  background: var(--border-strong);
  border-radius: 50% !important;
  -webkit-clip-path: none !important;
          clip-path: none !important;
}
.hex-ring--36 {
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  -webkit-clip-path: none !important;
          clip-path: none !important;
}
.hex-face {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--accent-subtle);
  color: var(--accent-text);
  border-radius: 50% !important;
  -webkit-clip-path: none !important;
          clip-path: none !important;
  transition:
    background-color 150ms var(--ease-std),
    color 150ms var(--ease-std);
}
.hex-face--36 {
  border-radius: 50% !important;
  -webkit-clip-path: none !important;
          clip-path: none !important;
}
.hex-face:hover:not(:disabled) {
  background: var(--accent-solid);
  color: var(--on-accent);
}
.hex-face--danger:hover:not(:disabled) {
  background: var(--error);
  color: #fff;
}
.hex-face:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.hex-face:focus-visible {
  outline: none;
  background: var(--accent-solid);
  color: var(--on-accent);
}
.hex-ring:has(.hex-face:focus-visible) {
  background: var(--focus);
}
.hex-face--header {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: var(--surface-2);
  color: var(--text-2);
  border-radius: 50% !important;
  -webkit-clip-path: none !important;
          clip-path: none !important;
}
.hex-face--header.hex-face--36 {
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  -webkit-clip-path: none !important;
          clip-path: none !important;
}
.hex-face--header:hover:not(:disabled),
.hex-face--header:focus-visible {
  background: var(--accent-subtle);
  color: var(--accent-text);
}
.hex-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
  -webkit-clip-path: none !important;
          clip-path: none !important;
  background: var(--accent-subtle);
  color: var(--accent-text);
}
.hex-icon--40 {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  -webkit-clip-path: none !important;
          clip-path: none !important;
}
.hex-icon--56 {
  width: 56px;
  height: 56px;
  border-radius: 50% !important;
  -webkit-clip-path: none !important;
          clip-path: none !important;
}
.hex-icon--56 svg {
  width: 26px;
  height: 26px;
}
.hex-icon--warning {
  background: var(--warning-tint);
  color: var(--warning-text);
}
.hex-icon--danger {
  background: var(--error-tint);
  color: var(--error-text);
}
.hex-icon--success {
  background: var(--success-tint);
  color: var(--success-text);
}
.hex-icon--neutral {
  background: var(--surface-2);
  color: var(--text-2);
}
.stat-card__icon {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50% !important;
  -webkit-clip-path: none !important;
          clip-path: none !important;
  background: var(--accent-subtle);
  color: var(--accent-text);
}
.empty-state__hex {
  border-radius: 50% !important;
  -webkit-clip-path: none !important;
          clip-path: none !important;
}

/* ==========================================================================
   Utility and Layout Presets (Protects layouts from viewport edge-sticking)
   ========================================================================== */
.max-w-4xl { max-width: 56rem; width: 100%; }
.max-w-5xl { max-width: 64rem; width: 100%; }
.max-w-6xl { max-width: 72rem; width: 100%; }
.max-w-7xl { max-width: 80rem; width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.p-12 { padding: 48px; }
.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-x-2 > * + * { margin-left: 8px; }
.space-x-4 > * + * { margin-left: 16px; }
.space-x-6 > * + * { margin-left: 24px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }
.bg-surface { background-color: var(--surface, #ffffff); }
.bg-surface-2 { background-color: var(--surface-2, #f7f9fb); }
.border-border { border-color: var(--border, #e7edf2); }
.border { border-width: 1px; border-style: solid; }
.shadow-sm { box-shadow: 0 1px 2px rgba(18, 48, 74, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(18, 48, 74, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(18, 48, 74, 0.1); }



