const V = {
  dclPrimary: "var(--dcl-color-primary)",
  dclPrimaryLight: "var(--dcl-color-primary-light)",
  dclPrimaryBorder: "var(--dcl-color-primary-border)",
  dclAccent: "var(--dcl-color-accent)",
  dclAccentLight: "var(--dcl-color-accent-light)",
  dclBackground: "var(--dcl-color-background)",
  dclSurface: "var(--dcl-color-surface)",
  dclTableAltRow: "var(--dcl-color-table-alt-row)",
  dclText: "var(--dcl-color-text)",
  dclTextMuted: "var(--dcl-color-text-muted)",
  dclTextLight: "var(--dcl-color-text-light)",
  dclBorder: "var(--dcl-color-border)",
  dclBorderLight: "var(--dcl-color-border-light)",
  dclNeutralStroke2: "var(--dcl-color-neutral-stroke-2)",
  primary: "hsl(var(--color-primary))",
  primaryBright: "hsl(var(--color-primary-bright))",
  primaryHover: "hsl(var(--color-primary-hover))",
  primaryActive: "hsl(var(--color-primary-active))",
  primarySoft: "hsl(var(--color-primary-soft))",
  primaryBorder: "hsl(var(--color-primary-border))",
  primaryContrast: "hsl(var(--color-primary-contrast))",
  accent: "hsl(var(--color-accent))",
  accentSoft: "hsl(var(--color-accent-soft))",
  surfaceApp: "hsl(var(--color-surface-app))",
  surfaceCard: "hsl(var(--color-surface-card))",
  surfaceMuted: "hsl(var(--color-surface-muted))",
  surfaceRaised: "hsl(var(--color-surface-raised))",
  textPrimary: "hsl(var(--color-text-primary))",
  textSecondary: "hsl(var(--color-text-secondary))",
  textMuted: "hsl(var(--color-text-muted))",
  textDisabled: "hsl(var(--color-text-disabled))",
  textInverse: "hsl(var(--color-text-inverse))",
  border: "hsl(var(--color-border-default))",
  borderLight: "hsl(var(--color-border-light))",
  borderStrong: "hsl(var(--color-border-strong))",
  borderFocus: "hsl(var(--color-border-focus))",
  borderCard: "var(--color-border-card)",
  success: "hsl(var(--color-success))",
  successSoft: "hsl(var(--color-success-soft))",
  successContrast: "hsl(var(--color-success-contrast))",
  danger: "hsl(var(--color-danger))",
  dangerSoft: "hsl(var(--color-danger-soft))",
  dangerContrast: "hsl(var(--color-danger-contrast))",
  warning: "hsl(var(--color-warning))",
  warningSoft: "hsl(var(--color-warning-soft))",
  warningContrast: "hsl(var(--color-warning-contrast))",
  info: "hsl(var(--color-info))",
  infoSoft: "hsl(var(--color-info-soft))",
  infoContrast: "hsl(var(--color-info-contrast))",
  agentOrders: "hsl(var(--color-agent-orders))",
  agentNdr: "hsl(var(--color-agent-ndr))",
  agentRto: "hsl(var(--color-agent-rto))",
  agentTracking: "hsl(var(--color-agent-tracking))",
  statusDelivered: "var(--dcl-color-status-delivered)",
  statusDeliveredBg: "var(--dcl-color-status-delivered-bg)",
  statusInTransit: "var(--dcl-color-status-in-transit)",
  statusInTransitBg: "var(--dcl-color-status-in-transit-bg)",
  statusPending: "var(--dcl-color-status-pending)",
  statusPendingBg: "var(--dcl-color-status-pending-bg)",
  statusFailed: "var(--dcl-color-status-failed)",
  statusFailedBg: "var(--dcl-color-status-failed-bg)",
  businessCardText: "var(--dcl-color-business-card-text)",
  businessCardSubtitle: "var(--dcl-color-business-card-subtitle)",
  businessCardMuted: "var(--dcl-color-business-card-muted)",
  chatAssistantEyebrow: "var(--dcl-color-chat-assistant-eyebrow)",
  chatAssistantTitle: "var(--dcl-color-chat-assistant-title)",
  chatAssistantBody: "var(--dcl-color-chat-assistant-body)",
  stepProgressEyebrow: "var(--dcl-color-step-progress-eyebrow)",
  stepProgressTitle: "var(--dcl-color-step-progress-title)",
  stepProgressDoneMarker: "var(--dcl-color-step-progress-done-marker)",
  stepProgressActiveMarker: "var(--dcl-color-step-progress-active-marker)",
  stepProgressDoneText: "var(--dcl-color-step-progress-done-text)",
  stepProgressActiveText: "var(--dcl-color-step-progress-active-text)",
  stepProgressPending: "var(--dcl-color-step-progress-pending)"
}, $ = {
  display: "text-xl font-extrabold leading-tight",
  h1: "text-lg font-extrabold leading-tight",
  h2: "text-base font-bold leading-tight",
  h3: "text-sm font-semibold leading-snug",
  h4: "text-sm font-semibold leading-snug",
  bodyStrong: "text-sm font-semibold leading-5",
  body: "text-sm font-normal leading-5",
  control: "text-xs font-medium leading-5",
  "body-sm": "text-xs font-normal leading-5",
  caption: "text-xs font-normal leading-5",
  label: "text-[10px] font-bold uppercase leading-4 tracking-[0.07em]"
}, L = {
  0: "0",
  1: "var(--space-1)",
  2: "var(--space-2)",
  3: "var(--space-3)",
  4: "var(--space-4)",
  5: "var(--space-5)",
  6: "var(--space-6)",
  7: "var(--space-7)",
  8: "var(--space-8)",
  9: "var(--space-9)",
  10: "2.5rem",
  12: "3rem",
  16: "4rem",
  20: "5rem",
  24: "6rem",
  32: "8rem",
  40: "10rem",
  48: "12rem",
  64: "16rem",
  controlPaddingX: "var(--space-control-padding-x)",
  controlPaddingY: "var(--space-control-padding-y)",
  tableCellPadding: "var(--space-table-cell-padding)",
  sectionGap: "var(--space-section-gap)",
  panelGap: "var(--space-panel-gap)"
}, D = {
  xs: {
    height: "1.8125rem",
    minHeightClassName: "min-h-[29px]",
    heightClassName: "h-[29px]",
    paddingXClassName: "px-[13px]",
    textClassName: "text-[12.5px]",
    iconClassName: "size-[13px]"
  },
  sm: {
    height: "2rem",
    minHeightClassName: "min-h-8",
    heightClassName: "h-8",
    paddingXClassName: "px-3",
    textClassName: "text-[12.5px]",
    iconClassName: "size-4"
  },
  md: {
    height: "2.25rem",
    minHeightClassName: "min-h-9",
    heightClassName: "h-9",
    paddingXClassName: "px-4",
    textClassName: "text-sm",
    iconClassName: "size-[18px]"
  },
  lg: {
    height: "2.75rem",
    minHeightClassName: "min-h-11",
    heightClassName: "h-11",
    paddingXClassName: "px-5",
    textClassName: "text-base",
    iconClassName: "size-5"
  }
}, R = {
  xs: 13,
  sm: 14,
  md: 16,
  lg: 20
}, O = {
  xs: "p-2.5",
  sm: "p-3",
  md: "p-4",
  lg: "p-5"
}, F = {
  compact: {
    headerClassName: "px-3 py-2",
    cellClassName: "px-3 py-2",
    textClassName: "text-xs"
  },
  default: {
    headerClassName: "px-4 py-2.5",
    cellClassName: "px-4 py-3",
    textClassName: "text-sm"
  },
  comfortable: {
    headerClassName: "px-5 py-3",
    cellClassName: "px-5 py-4",
    textClassName: "text-sm"
  }
}, X = {
  sm: "max-w-sm",
  md: "max-w-lg",
  lg: "max-w-2xl",
  xl: "max-w-4xl",
  full: "max-w-[calc(100vw-2rem)]"
}, j = {
  sm: "w-full max-w-[360px]",
  md: "w-full max-w-md",
  lg: "w-full max-w-3xl",
  xl: "w-full max-w-[75vw]"
}, G = {
  dclSm: "var(--dcl-radius-sm)",
  dclMd: "var(--dcl-radius-md)",
  dclLg: "var(--dcl-radius-lg)",
  dclXl: "var(--dcl-radius-xl)",
  dcl2xl: "var(--dcl-radius-2xl)",
  sm: "var(--radius-sm)",
  md: "var(--radius-md)",
  lg: "var(--radius-lg)",
  xl: "var(--radius-xl)",
  "2xl": "var(--radius-2xl)",
  pill: "var(--radius-pill)",
  control: "var(--radius-control)",
  chip: "var(--radius-chip)",
  badge: "var(--radius-badge)",
  menu: "var(--radius-menu)",
  modal: "var(--radius-modal)",
  card: "var(--radius-card)"
}, E = {
  low: "var(--shadow-low)",
  card: "var(--shadow-card)",
  cardHover: "var(--shadow-card-hover)",
  elevated: "var(--shadow-elevated)",
  overlay: "var(--shadow-overlay)",
  menu: "var(--shadow-menu)",
  drawer: "var(--shadow-drawer)",
  modal: "var(--shadow-modal)",
  sticky: "var(--shadow-sticky)"
}, W = {
  dropdown: 50,
  sticky: 40,
  overlay: 50,
  modal: 60,
  drawer: 60,
  toast: 70,
  tooltip: 80
}, Y = {
  fast: "var(--motion-fast)",
  normal: "var(--motion-normal)",
  slow: "var(--motion-slow)",
  easeStandard: "var(--ease-standard)",
  easeOut: "var(--ease-out)"
}, b = {
  primary: "--color-primary",
  primaryBright: "--color-primary-bright",
  primaryHover: "--color-primary-hover",
  primaryActive: "--color-primary-active",
  primarySoft: "--color-primary-soft",
  primaryBorder: "--color-primary-border",
  primaryContrast: "--color-primary-contrast",
  accent: "--color-accent",
  accentSoft: "--color-accent-soft",
  surfaceApp: "--color-surface-app",
  surfaceShell: "--color-surface-shell",
  surfaceCard: "--color-surface-card",
  surfaceMuted: "--color-surface-muted",
  surfaceRaised: "--color-surface-raised",
  textPrimary: "--color-text-primary",
  textSecondary: "--color-text-secondary",
  textMuted: "--color-text-muted",
  textDisabled: "--color-text-disabled",
  textInverse: "--color-text-inverse",
  border: "--color-border-default",
  borderLight: "--color-border-light",
  borderStrong: "--color-border-strong",
  borderFocus: "--color-border-focus",
  borderCard: "--color-border-card",
  success: "--color-success",
  successSoft: "--color-success-soft",
  successContrast: "--color-success-contrast",
  danger: "--color-danger",
  dangerSoft: "--color-danger-soft",
  dangerContrast: "--color-danger-contrast",
  warning: "--color-warning",
  warningSoft: "--color-warning-soft",
  warningContrast: "--color-warning-contrast",
  info: "--color-info",
  infoSoft: "--color-info-soft",
  infoContrast: "--color-info-contrast",
  agentOrders: "--color-agent-orders",
  agentNdr: "--color-agent-ndr",
  agentRto: "--color-agent-rto",
  agentTracking: "--color-agent-tracking",
  agentInsights: "--color-agent-insights",
  dclPrimary: "--dcl-color-primary",
  dclPrimaryLight: "--dcl-color-primary-light",
  dclPrimaryBorder: "--dcl-color-primary-border",
  dclAccent: "--dcl-color-accent",
  dclAccentLight: "--dcl-color-accent-light",
  dclBackground: "--dcl-color-background",
  dclShellBackground: "--dcl-color-shell-background",
  dclSurface: "--dcl-color-surface",
  dclTableAltRow: "--dcl-color-table-alt-row",
  dclBorder: "--dcl-color-border",
  dclBorderLight: "--dcl-color-border-light",
  dclBorderStrong: "--dcl-color-border-strong",
  dclNeutralStroke2: "--dcl-color-neutral-stroke-2",
  dclText: "--dcl-color-text",
  dclTextMuted: "--dcl-color-text-muted",
  dclTextLight: "--dcl-color-text-light",
  dclTextInverse: "--dcl-color-text-inverse",
  dclClickHover: "--dcl-color-click-hover",
  statusDelivered: "--dcl-color-status-delivered",
  statusDeliveredBg: "--dcl-color-status-delivered-bg",
  statusInTransit: "--dcl-color-status-in-transit",
  statusInTransitBg: "--dcl-color-status-in-transit-bg",
  statusPending: "--dcl-color-status-pending",
  statusPendingBg: "--dcl-color-status-pending-bg",
  statusFailed: "--dcl-color-status-failed",
  statusFailedBg: "--dcl-color-status-failed-bg",
  businessCardText: "--dcl-color-business-card-text",
  businessCardSubtitle: "--dcl-color-business-card-subtitle",
  businessCardMuted: "--dcl-color-business-card-muted",
  chatAssistantEyebrow: "--dcl-color-chat-assistant-eyebrow",
  chatAssistantTitle: "--dcl-color-chat-assistant-title",
  chatAssistantBody: "--dcl-color-chat-assistant-body",
  stepProgressEyebrow: "--dcl-color-step-progress-eyebrow",
  stepProgressTitle: "--dcl-color-step-progress-title",
  stepProgressDoneMarker: "--dcl-color-step-progress-done-marker",
  stepProgressActiveMarker: "--dcl-color-step-progress-active-marker",
  stepProgressDoneText: "--dcl-color-step-progress-done-text",
  stepProgressActiveText: "--dcl-color-step-progress-active-text",
  stepProgressPending: "--dcl-color-step-progress-pending"
}, x = {
  sm: "--radius-sm",
  md: "--radius-md",
  lg: "--radius-lg",
  xl: "--radius-xl",
  "2xl": "--radius-2xl",
  pill: "--radius-pill",
  dclSm: "--dcl-radius-sm",
  dclMd: "--dcl-radius-md",
  dclLg: "--dcl-radius-lg",
  dclXl: "--dcl-radius-xl",
  dcl2xl: "--dcl-radius-2xl",
  control: "--radius-control",
  chip: "--radius-chip",
  badge: "--radius-badge",
  menu: "--radius-menu",
  modal: "--radius-modal",
  card: "--radius-card",
  button: "--button-radius",
  input: "--input-radius",
  tabs: "--tabs-radius"
}, f = {
  low: "--shadow-low",
  card: "--shadow-card",
  cardHover: "--shadow-card-hover",
  elevated: "--shadow-elevated",
  overlay: "--shadow-overlay",
  menu: "--shadow-menu",
  drawer: "--shadow-drawer",
  modal: "--shadow-modal",
  sticky: "--shadow-sticky"
}, y = {
  card: "--gradient-card",
  cardBorder: "--gradient-card-border",
  cardBorderHover: "--gradient-card-border-hover",
  cardSubtle: "--gradient-card-subtle",
  businessInfoCard: "--gradient-business-info-card",
  businessCardHeader: "--gradient-business-card-header"
}, w = {
  controlPaddingX: "--space-control-padding-x",
  controlPaddingY: "--space-control-padding-y",
  tableCellPadding: "--space-table-cell-padding",
  sectionGap: "--space-section-gap",
  panelGap: "--space-panel-gap"
}, C = {
  fontSans: "--font-sans"
}, S = {
  fast: "--motion-fast",
  normal: "--motion-normal",
  slow: "--motion-slow",
  easeStandard: "--ease-standard",
  easeOut: "--ease-out"
}, q = {
  colors: b,
  radius: x,
  shadows: f,
  gradients: y,
  spacing: w,
  typography: C,
  motion: S
}, A = /* @__PURE__ */ new Set([
  "primary",
  "primaryBright",
  "primaryHover",
  "primaryActive",
  "primarySoft",
  "primaryBorder",
  "primaryContrast",
  "accent",
  "accentSoft",
  "surfaceApp",
  "surfaceShell",
  "surfaceCard",
  "surfaceMuted",
  "surfaceRaised",
  "textPrimary",
  "textSecondary",
  "textMuted",
  "textDisabled",
  "textInverse",
  "border",
  "borderLight",
  "borderStrong",
  "borderFocus",
  "success",
  "successSoft",
  "successContrast",
  "danger",
  "dangerSoft",
  "dangerContrast",
  "warning",
  "warningSoft",
  "warningContrast",
  "info",
  "infoSoft",
  "infoContrast",
  "agentOrders",
  "agentNdr",
  "agentRto",
  "agentTracking",
  "agentInsights"
]), N = (a) => {
  if (a == null)
    return;
  const r = String(a).trim();
  return r.length > 0 ? r : void 0;
}, T = (a) => a.startsWith("--") ? a : `--${a}`, m = (a) => Number(a.toFixed(2)).toString(), P = (a, r, e, o) => {
  const s = a / 255, t = r / 255, c = e / 255, l = Math.max(s, t, c), d = Math.min(s, t, c), u = (l + d) / 2;
  let i = 0, p = 0;
  if (l !== d) {
    const g = l - d;
    p = u > 0.5 ? g / (2 - l - d) : g / (l + d), l === s ? i = (t - c) / g + (t < c ? 6 : 0) : l === t ? i = (c - s) / g + 2 : i = (s - t) / g + 4, i *= 60;
  }
  const h = `${m(i)} ${m(p * 100)}% ${m(u * 100)}%`;
  return o === void 0 ? h : `${h} / ${m(o)}`;
}, v = (a) => {
  const r = a.trim();
  if (r.includes(",")) {
    const e = r.split(",").map((s) => s.trim()), o = e[3] ? ` / ${e[3]}` : "";
    return `${e[0]} ${e[1]} ${e[2]}${o}`.trim();
  }
  return r.replace(/\s+/g, " ");
}, M = (a) => {
  const r = a.slice(1);
  if (![3, 4, 6, 8].includes(r.length))
    return;
  const e = r.length <= 4 ? r.split("").map((l) => l + l).join("") : r, o = Number.parseInt(e.slice(0, 2), 16), s = Number.parseInt(e.slice(2, 4), 16), t = Number.parseInt(e.slice(4, 6), 16), c = e.length === 8 ? Number.parseInt(e.slice(6, 8), 16) / 255 : void 0;
  if (![o, s, t].some((l) => Number.isNaN(l)))
    return P(o, s, t, c);
}, z = (a) => {
  var c;
  const r = a.match(/^rgba?\(\s*([.\d]+)\s*,\s*([.\d]+)\s*,\s*([.\d]+)(?:\s*,\s*([.\d]+%?))?\s*\)$/i);
  if (!r)
    return;
  const e = Number(r[1]), o = Number(r[2]), s = Number(r[3]), t = (c = r[4]) != null && c.endsWith("%") ? Number(r[4].slice(0, -1)) / 100 : r[4] ? Number(r[4]) : void 0;
  if (![e, o, s, t ?? 1].some((l) => Number.isNaN(l)))
    return P(e, o, s, t);
};
function H(a) {
  const r = a.trim(), e = r.match(/^hsla?\((.*)\)$/i);
  return e ? v(e[1]) : r.startsWith("#") ? M(r) ?? r : /^rgba?\(/i.test(r) ? z(r) ?? r : v(r);
}
const n = (a, r, e, o) => {
  if (r)
    for (const [s, t] of Object.entries(r)) {
      const c = N(t);
      c !== void 0 && (a[e[s]] = o ? o(s, c) : c);
    }
}, I = (a, r) => {
  if (r)
    for (const [e, o] of Object.entries(r)) {
      const s = N(o);
      s !== void 0 && (a[T(e)] = s);
    }
};
function k(a) {
  const r = {};
  return n(
    r,
    a.colors,
    b,
    (e, o) => A.has(e) ? H(o) : o
  ), n(r, a.radius, x), n(r, a.shadows, f), n(r, a.gradients, y), n(r, a.spacing, w), n(r, a.typography, C), n(r, a.motion, S), I(r, a.variables), r;
}
function J(a) {
  return Object.entries(k(a)).map(([r, e]) => `${r}: ${e};`).join(`
`);
}
const B = (a) => {
  var e;
  const r = a ?? globalThis.document;
  return ((e = r == null ? void 0 : r.documentElement) == null ? void 0 : e.style) ?? (r == null ? void 0 : r.style);
};
function K(a, r) {
  const e = k(a), o = B(r);
  if (o)
    for (const [s, t] of Object.entries(e))
      t !== void 0 && o.setProperty(s, t);
  return e;
}
function Q(a, r) {
  const e = B(r);
  if (e)
    for (const o of a)
      e.removeProperty(T(o));
}
export {
  b as agenticThemeColorVariables,
  y as agenticThemeGradientVariables,
  S as agenticThemeMotionVariables,
  x as agenticThemeRadiusVariables,
  f as agenticThemeShadowVariables,
  w as agenticThemeSpacingVariables,
  q as agenticThemeTokens,
  C as agenticThemeTypographyVariables,
  K as applyAgenticTheme,
  O as cardSizes,
  Q as clearAgenticTheme,
  V as colors,
  D as controlSizes,
  J as createAgenticThemeCssText,
  k as createAgenticThemeVariables,
  j as drawerSizes,
  R as iconSizes,
  X as modalSizes,
  Y as motion,
  H as normalizeThemeColorValue,
  G as radius,
  E as shadows,
  L as spacing,
  F as tableDensities,
  $ as typography,
  W as zIndex
};
//# sourceMappingURL=theme.js.map
