/* ===========================================================================
   THEME — the only file a partner project needs to edit to rebrand.
   Every colour, radius and font in the terminal resolves through these tokens.
   Nothing below this file hard-codes a colour.
   Default look: amber-on-slate, after the phosphor trading terminals.
   =========================================================================== */

:root {
  /* --- type ------------------------------------------------------------- */
  /* One family for words and figures. A monospace for every number made the
     tables a third wider than their content and read as a code listing; Inter
     with tabular figures lines digits up just as well at a trading-screen
     density. Monospace is kept for what actually is code: hashes and ids. */
  --font-ui:   'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-data: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-code: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* --- shape ------------------------------------------------------------ */
  --r-sm: 4px;
  --r:    6px;
  --r-lg: 10px;

  /* --- dark palette (default) -------------------------------------------
     Near-black ground, surfaces separated by hairlines rather than shadows,
     and the green/red every exchange uses, so a trader reads direction before
     reading the number. */
  --ground:     #0B0E11;
  --surface:    #11161A;
  --surface-2:  #171D22;
  --surface-3:  #20272D;
  --line:       #1F272D;
  --line-2:     #2E3840;
  --ink:        #E7EBEE;
  --ink-2:      #A4AFB8;
  --muted:      #6C7883;
  --accent:     #E8A33D;
  --accent-ink: #F2BC6A;
  --accent-soft:#2E2312;
  --on-accent:  #171104;
  --good:       #2EBD85;
  --good-soft:  #0F2A21;
  --bad:        #F6465D;
  --bad-soft:   #331419;
  --info:       #5AA9E6;
  --shadow:     none;

  /* --- chart series ------------------------------------------------------
     Fixed order, never cycled. These eight are validated as a set against this
     theme's surfaces: lightness band, chroma floor, colour-blind separation,
     normal-vision separation and 3:1 contrast all pass in both modes. The
     previous hand-picked set failed three of those checks, so do not swap a
     value here without re-running the validator. --- */
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500;
  --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767;
}

:root[data-theme="light"] {
  --ground:     #F6F7F8;
  --surface:    #FFFFFF;
  --surface-2:  #F0F2F4;
  --surface-3:  #E4E8EB;
  --line:       #DFE4E8;
  --line-2:     #C3CCD3;
  --ink:        #121A20;
  --ink-2:      #3E4C56;
  --muted:      #6B7B86;
  --accent:     #B87514;
  --accent-ink: #8F5A0D;
  --accent-soft:#FBEFD9;
  --on-accent:  #FFFFFF;
  --good:       #0E9F6E;
  --good-soft:  #DDF4EA;
  --bad:        #D9304A;
  --bad-soft:   #FBE3E6;
  --info:       #1F6FB2;
  --shadow:     none;

  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100;
  --c5: #e87ba4; --c6: #008300; --c7: #4a3aa7; --c8: #e34948;
}
