/* Design tokens — canonical source. Do not hardcode colors, sizes or fonts elsewhere. */

:root,
:root[data-theme="dark"] {
  --bg-0: #0E1013;
  --bg-1: #15181D;
  --bg-2: #1C2027;
  --bg-selected: #1E2633;
  --border: #2A2F38;
  --border-soft: #22262E;
  --border-strong: #3A414D;
  --text-1: #E8EAED;
  --text-2: #A3A9B4;
  --text-3: #8B93A1;

  --accent: #4C8DFF;
  --accent-strong: #2F6FE0;
  --link: #7FB0FF;

  --ok: #2FBF71;          --ok-text: #4ADE80;     --ok-bg: #12291D;
  --warn: #F2B33D;        --warn-text: #F2B33D;   --warn-bg: #2E2410;
  --danger: #F0524F;      --danger-text: #FCA5A5; --danger-bg: #341515; --danger-border: #5B2222;
  --info-text: #7FB0FF;   --info-bg: #14223A;
  --muted: #6B7280;       --muted-bg: #1F232A;

  --tier-snipe-fg: #C9A6FF;   --tier-snipe-bg: #2A1F3D;
  --tier-manual-fg: #4ADE80;  --tier-manual-bg: #12291D;
  --tier-quiet-fg: #F2B33D;   --tier-quiet-bg: #2E2410;
  --tier-watch-fg: #A3A9B4;   --tier-watch-bg: #1F232A;
  --tier-wait-fg: #7FB0FF;    --tier-wait-bg: #14223A;
  --tier-rejected-fg: #F87171; --tier-rejected-bg: #341515;

  --social: #B07CFF;
  --social-text: #C9A6FF;
}

:root[data-theme="light"] {
  --bg-0: #F6F7F9;
  --bg-1: #FFFFFF;
  --bg-2: #F0F2F5;
  --bg-selected: #E8F0FE;
  --border: #E2E5EA;
  --border-soft: #ECEEF2;
  --border-strong: #CDD2DA;
  --text-1: #14171C;
  --text-2: #4B5563;
  --text-3: #6B7280;

  --accent: #2563EB;
  --accent-strong: #1D4ED8;
  --link: #1D4ED8;

  --ok: #15803D;          --ok-text: #15803D;     --ok-bg: #E7F6EC;
  --warn: #B45309;        --warn-text: #92400E;   --warn-bg: #FDF3E1;
  --danger: #C62828;      --danger-text: #B91C1C; --danger-bg: #FDECEC; --danger-border: #F5C2C2;
  --info-text: #1D4ED8;   --info-bg: #E8F0FE;
  --muted: #8A93A3;       --muted-bg: #EEF0F3;

  --tier-snipe-fg: #6D28D9;   --tier-snipe-bg: #F1EAFE;
  --tier-manual-fg: #15803D;  --tier-manual-bg: #E7F6EC;
  --tier-quiet-fg: #92400E;   --tier-quiet-bg: #FDF3E1;
  --tier-watch-fg: #4B5563;   --tier-watch-bg: #EEF0F3;
  --tier-wait-fg: #1D4ED8;    --tier-wait-bg: #E8F0FE;
  --tier-rejected-fg: #B91C1C; --tier-rejected-bg: #FDECEC;

  --social: #7C3AED;
  --social-text: #6D28D9;
}

:root {
  --chain-bsc: #F0B90B;
  --chain-trx: #EB0029;
  --chain-eth: #8A92B2;
  --chain-sol: #9945FF;
  --chain-base: #3D7BFF;

  --font-ui: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-base: 14px;
  --fs-lg: 15px;
  --fs-xl: 20px;
  --fs-score: 28px;
  --fw-regular: 400;
  --fw-medium: 500;
  --lh: 1.45;

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

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --row-h: 56px;
  --control-h: 36px;
  --touch-min: 44px;
}

html { font-family: var(--font-ui); font-size: var(--fs-base); line-height: var(--lh); background: var(--bg-0); color: var(--text-1); }
.num, .addr, td, .score { font-variant-numeric: tabular-nums; }
.addr, .mono { font-family: var(--font-mono); }
