:root {
  /* Dark theme (default) — deep sea teal neutrals, amber accent */
  --bg: #0A1114;
  --panel: #10191D;
  --panel2: #172328;
  --line: #213139;
  --text: #E5EEF0;
  --muted: #7E949B;
  --amber: #F5B13D;
  --amber-ink: #F5B13D;
  --on-amber: #241500;
  --teal: #2CC5D8;
  --selected-row: #1E2A22;
  --sheen: #FFFFFF;
  --share-a: #4A82F6;   /* iOS PaperShareSheet gradient (same in both themes) */
  --share-b: #1F3F9C;
  --share-ink: #FFFFFF;

  /* Price colors — Korean default (red up, blue down). Text on an up/down fill is dark in the dark theme
     (white on these lighter fills is under 4.5:1). */
  --up: #F4525F;
  --down: #4D8DF7;
  --on-up: #10080A;
  --on-down: #050A14;
  --focus: #F5B13D;

  /* Fear & Greed gradient */
  --fng-fear: #F05464;
  --fng-neutral: #F5B13D;
  --fng-greed: #3ECF8E;
  /* Fear & Greed as text (ticker) — same hues, readable on the backgrounds (WCAG AA) */
  --fng-fear-ink: #F05464;
  --fng-neutral-ink: #F5B13D;
  --fng-greed-ink: #3ECF8E;

  /* Allocation chart colors */
  --alloc-1: #3987E5;
  --alloc-2: #D95926;
  --alloc-3: #199E70;
  --alloc-4: #C98500;
  --alloc-5: #D55181;
  --alloc-6: #008300;
  --alloc-7: #9085E9;
  --alloc-other: #4A5566;
}

/* Light theme */
[data-theme="light"] {
  --bg: #F3F6F7;
  --panel: #FFFFFF;
  --panel2: #E8EEF0;
  --line: #D6E0E3;
  --text: #13201F;
  --muted: #526368;
  --amber: #F2A21C;
  --amber-ink: #8A5200;
  --on-amber: #241500;
  --teal: #076B78;
  --selected-row: #1E2A22;
  --sheen: #FFFFFF;
  --up: #BF1F30;
  --down: #1F63D6;
  --on-up: #FFFFFF;
  --on-down: #FFFFFF;
  --focus: #8A5200;
  --fng-fear-ink: #BD2838;
  --fng-neutral-ink: #8A5200;
  --fng-greed-ink: #08744F;
  --alloc-1: #2A78D6;
  --alloc-2: #EB6834;
  --alloc-3: #1BAF7A;
  --alloc-4: #EDA100;
  --alloc-5: #E87BA4;
  --alloc-6: #008300;
  --alloc-7: #4A3AA7;
  --alloc-other: #B4BBC6;
}

/* Global price colors (green up, red down) */
[data-price-colors="global"] {
  --up: #3ECF8E;
  --down: #F05464;
  --on-up: #04150C;
  --on-down: #12040A;
}
[data-theme="light"][data-price-colors="global"] {
  --up: #08744F;
  --down: #BD2838;
  --on-up: #FFFFFF;
  --on-down: #FFFFFF;
}
