/*
 * OT Terminal — Design Tokens
 * Original visual language for Onetrader's trading terminal.
 * Not derived from, or intended to resemble, any third-party
 * charting platform's design system.
 */

:root {
  /* ---- Surfaces ---- */
  --ot-bg-app: #0a0a0d;          /* outermost background */
  --ot-bg-panel: #101014;        /* watchlist / drawing-tools / header */
  --ot-bg-panel-raised: #17171c; /* cards, rows on hover */
  --ot-bg-inset: #0d0d10;        /* chart canvas well */
  --ot-bg-input: #1a1a20;

  /* ---- Borders ---- */
  --ot-border-subtle: #232329;
  --ot-border: #2b2b32;
  --ot-border-strong: #38383f;

  /* ---- Typography ---- */
  --ot-text-primary: #f2f2ee;
  --ot-text-secondary: #a3a3ad;
  --ot-text-tertiary: #6c6c76;
  --ot-text-disabled: #4a4a52;

  /* ---- Brand gold ---- */
  --ot-gold: #c9a34e;
  --ot-gold-bright: #e3bf6c;
  --ot-gold-dim: #8a712f;
  --ot-gold-wash: rgba(201, 163, 78, 0.10);
  --ot-gold-wash-strong: rgba(201, 163, 78, 0.18);

  /* ---- Market semantics ---- */
  --ot-up: #33c17f;
  --ot-up-dim: rgba(51, 193, 127, 0.14);
  --ot-down: #ef4d63;
  --ot-down-dim: rgba(239, 77, 99, 0.14);
  --ot-neutral: #8b8b95;

  /* ---- Chart-specific ---- */
  --ot-grid-line: #1f1f27;
  --ot-axis-text: #a3a3ad;
  --ot-crosshair: #7a7a86;
  --ot-ma-fast: #5b9dd9;   /* EMA 9 */
  --ot-ma-slow: #d98f4e;   /* EMA 21 */
  --ot-rsi-line: #e6e6e2;
  --ot-macd-line: #5b9dd9;
  --ot-macd-signal: #d98f4e;

  /* ---- Layout ---- */
  --ot-header-h: 56px;
  --ot-strip-h: 84px;
  --ot-watchlist-w: 224px;
  --ot-drawing-w: 168px;
  --ot-toolbar-h: 44px;
  --ot-timeaxis-label-h: 20px;
  --ot-timeaxis-h: 48px; /* label row + range-button row */
  --ot-radius-sm: 4px;
  --ot-radius-md: 6px;
  --ot-radius-lg: 10px;

  /* ---- Motion (kept minimal by design) ---- */
  --ot-transition-fast: 100ms ease-out;
  --ot-transition-base: 150ms ease-out;

  /* ---- Type scale ---- */
  --ot-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --ot-font-mono: "SF Mono", "IBM Plex Mono", "Roboto Mono", Consolas, monospace;
  --ot-fs-xs: 11px;
  --ot-fs-sm: 12px;
  --ot-fs-base: 13px;
  --ot-fs-md: 15px;
  --ot-fs-lg: 18px;
  --ot-fs-xl: 22px;
}

/* Light theme is scaffolded for the future Settings control.
   Phase 1 ships dark-only per the brand brief, but tokens are
   ready to be swapped without touching component CSS. */
:root[data-ot-theme="light"] {
  --ot-bg-app: #f6f5f2;
  --ot-bg-panel: #ffffff;
  --ot-bg-panel-raised: #f0efe9;
  --ot-bg-inset: #fbfaf7;
  --ot-bg-input: #f0efe9;
  --ot-border-subtle: #e4e2da;
  --ot-border: #d8d5c9;
  --ot-border-strong: #c7c3b3;
  --ot-text-primary: #16161a;
  --ot-text-secondary: #55555f;
  --ot-text-tertiary: #85858f;
  --ot-grid-line: #ece9e0;
  --ot-axis-text: #85858f;
}
