:root {
  --nexor-primary: #0f3d6e;
  --nexor-secondary: #2fa4e7;
  --nexor-bg: #eaf3fc;
  --nexor-surface: #f5f9ff;
  --nexor-card: #ffffff;
  --nexor-text: #16293f;
  --nexor-muted: #5d6d82;
  --nexor-line: #d8e4f4;
  --nexor-danger: #b91c1c;
  --nexor-warning: #b45309;

  /* aliases shared by current pages */
  --accent: var(--nexor-primary);
  --accent-strong: var(--nexor-secondary);
  --bg: var(--nexor-bg);
  --surface: var(--nexor-surface);
  --card: var(--nexor-card);
  --ink: var(--nexor-text);
  --muted: var(--nexor-muted);
  --line: var(--nexor-line);
  --danger: var(--nexor-danger);
  --warn: var(--nexor-warning);
}

body[data-theme="dark"] {
  --nexor-bg: #091222;
  --nexor-surface: #0f1b30;
  --nexor-card: #15253f;
  --nexor-text: #e7f1ff;
  --nexor-muted: #9eb3cf;
  --nexor-line: #243b5f;
  --nexor-primary: #2fa4e7;
  --nexor-secondary: #0f3d6e;
  --nexor-danger: #f87171;
  --nexor-warning: #f59e0b;

  --accent: var(--nexor-primary);
  --accent-strong: var(--nexor-secondary);
  --bg: var(--nexor-bg);
  --surface: var(--nexor-surface);
  --card: var(--nexor-card);
  --ink: var(--nexor-text);
  --muted: var(--nexor-muted);
  --line: var(--nexor-line);
  --danger: var(--nexor-danger);
  --warn: var(--nexor-warning);
}

/* Remove browser spinners from numeric inputs to keep Nexor fields clean */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
