/*
 * Design tokens — paleta única do Jarvis Pro.
 *
 * Consolida os 4 conjuntos de variáveis divergentes que existiam entre
 * index.html/trade.html/terminal.html/banca.html/chat.html/jarvis-local.html
 * (--bg tinha 3 valores, --accent tinha 3 valores). --bg/--accent vencedores
 * escolhidos por uso (index.html + trade.html, as 2 telas de maior uso
 * diário, já usavam #0b0e17/#3b82f6). Nomenclatura extra (--surface,
 * --border2, --sky, --dim, --text2) vem de jarvis-local.html, que tinha o
 * conjunto de tokens mais completo antes de ser aposentado.
 */

:root {
  /* Superfícies */
  --bg:       #0b0e17;
  --surface:  #111520;
  --card:     #161b2e;
  --border:   #1e2640;
  --border2:  #252d40;

  /* Marca / ação */
  --accent:   #3b82f6;
  --accent2:  #6366f1;

  /* Semântica de resultado */
  --green:    #10b981;
  --red:      #ef4444;
  --yellow:   #f59e0b;
  --sky:      #38bdf8;

  /* Texto */
  --text:     #e2e8f0;
  --text2:    #94a3b8;
  --muted:    #8b95b0;
  --dim:      #64748b;

  /* Tipografia */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Geometria compartilhada */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
}

/* Reset mínimo compartilhado — cada tela ainda pode ter seu próprio CSS
   específico, isso aqui só evita repetir o boilerplate de sempre. */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* Classes utilitárias de cor — usadas pelos helpers de format.js
   (formatSignalDirection/formatPositionDirection) para não precisar
   embutir cores inline em cada tela. */
.jp-green  { color: var(--green); }
.jp-red    { color: var(--red); }
.jp-yellow { color: var(--yellow); }
.jp-accent { color: var(--accent); }
.jp-muted  { color: var(--muted); }
