/* @udf/tokens — design tokens. One place for colour, space, radius, type.
   A plugin may use these variables; it may not invent its own palette. */
:root {
  --udf-color-bg: #0f1115;
  --udf-color-surface: #161a21;
  --udf-color-surface-2: #1d222b;
  --udf-color-border: #2a313d;
  --udf-color-text: #e6e9ef;
  --udf-color-muted: #98a2b3;
  --udf-color-primary: #4f8cff;
  --udf-color-primary-contrast: #ffffff;
  --udf-color-danger: #e5484d;
  --udf-color-warning: #f5a524;
  --udf-color-success: #2fbf71;

  --udf-space-1: 4px;
  --udf-space-2: 8px;
  --udf-space-3: 12px;
  --udf-space-4: 16px;
  --udf-space-5: 24px;
  --udf-space-6: 32px;

  --udf-radius-sm: 6px;
  --udf-radius-md: 10px;
  --udf-radius-lg: 16px;

  --udf-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --udf-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --udf-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: light) {
  :root {
    --udf-color-bg: #f6f7f9;
    --udf-color-surface: #ffffff;
    --udf-color-surface-2: #f0f2f5;
    --udf-color-border: #dfe3e8;
    --udf-color-text: #111418;
    --udf-color-muted: #5b6675;
    --udf-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  }
}
