/* Skin 3 "vega" — design tokens.
   Values come from the reference sites' own CSS: xt.com dark theme (Bg-Whole / Fill / Border /
   Brand / Error tokens) and Cwallet (radius + control-height scale). Graphite + lime. */
:root {
  /* surfaces */
  --v-bg: #101113;
  --v-bg-deep: #0a0b0c;
  --v-surface: #1a1c1e;
  --v-raised: #26272b;
  --v-hover: #2b2c31;
  --v-press: #36373a;
  --v-input: #1a1c1e;
  --v-line: rgba(255, 255, 255, .08);
  --v-line-2: #26272b;
  --v-line-strong: #36373a;

  /* brand (lime) */
  --v-brand: #abe127;
  --v-brand-hover: #bce752;
  --v-brand-press: #9aca23;
  --v-brand-soft: rgba(171, 225, 39, .15);
  --v-brand-faint: rgba(171, 225, 39, .08);
  --v-brand-ink: #101113;

  /* market colours: xt dark uses the brand lime for "up" */
  --v-up: #abe127;
  --v-up-soft: rgba(171, 225, 39, .15);
  --v-down: #fa465b;
  --v-down-soft: rgba(250, 70, 91, .15);
  --v-warn: #fb823c;
  --v-warn-soft: rgba(251, 130, 60, .15);
  --v-info: #1890ff;
  --v-gold: #ffc61c;

  /* text */
  --v-t1: #ffffff;
  --v-t2: #9ea0a8;
  --v-t3: #6f727c;
  --v-t4: #4b4d54;

  /* light widget (Cwallet-style card on dark) */
  --v-field: #242529; /* fields and inner tiles inside cards: graphite, one step above the card */
  --v-pop: #26282c; /* floating lists / calendars: one step above every card surface */
  --v-pop-line: rgba(255, 255, 255, .1);
  --v-focus: rgba(255, 255, 255, .26); /* field focus outline: quiet, never lime */
  --v-paper: #f4f5f6;
  --v-paper-2: #e9eaec;
  --v-paper-ink: #1b1c23;
  --v-paper-t2: #6f727c;

  /* overlays */
  --v-mask: rgba(0, 0, 0, .6);
  --v-toast: #34373d;
  --v-pop-shadow: 0 0 0 1px rgba(255, 255, 255, .08);

  /* shape */
  --v-r-xs: 4px;
  --v-r-sm: 6px;
  --v-r: 8px;
  --v-r-md: 12px;
  --v-r-lg: 16px;
  --v-r-xl: 24px;
  --v-r-pill: 999px;

  /* controls */
  --v-h-sm: 32px;
  --v-h: 40px;
  --v-h-lg: 48px;

  /* type */
  --v-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --v-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --v-wrap: 1200px;
  --v-head-h: 64px;
  --v-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Bridge: nova (skin 2) widgets reused as-is on vega pages — support chat, captcha, toasts,
   transitional account pages — read nova's token names. Map them onto the vega palette so they
   come out graphite + lime instead of nova's own colours. */
body.vega {
  --ink: var(--v-bg);
  --panel: var(--v-surface);
  --panel-2: var(--v-raised);
  --panel-3: var(--v-press);
  --line: var(--v-line-2);
  --line-2: var(--v-line-strong);
  --bone: var(--v-t1);
  --stone: var(--v-t2);
  --faint: var(--v-t3);
  --signal: var(--v-brand);
  --signal-2: var(--v-brand-press);
  --signal-ink: var(--v-brand-ink);
  --btn: var(--v-t1);
  --btn-ink: var(--v-bg);
  --btn-hover: #e6e7e9;
  --ok: var(--v-up);
  --bad: var(--v-down);
  --bad-2: #e5405c;
  --down: var(--v-down);
  --pending: var(--v-gold);
  --info: var(--v-info);
  --font: var(--v-font);
  --display: var(--v-font);
  --mono: var(--v-mono);
  --addr: var(--v-mono);
  --radius-sm: var(--v-r-xs);
  --radius: var(--v-r);
  --radius-lg: var(--v-r-md);
  --radius-pill: var(--v-r);
  --field-line: var(--v-line-strong);
}
