/* Winston V3 — optional dark theme. Activated by data-theme="dark"
   on <html>. Calm, low-contrast. Not the default. */

html[data-theme="dark"] {
  color-scheme: dark;

  --bg:            #15161A;
  --bg-soft:       #1B1D22;
  --surface:       #1F2127;
  --surface-2:     #25282F;
  --surface-3:     #2D3038;
  --surface-hover: #2A2D34;
  --surface-active:#34373F;

  --border:        #34373F;
  --border-strong: #4A4D55;
  --hairline:      rgba(255,255,255,0.06);

  --ink:           #F1EFE9;
  --ink-2:         #DDD9D0;
  --ink-3:         #BAB6AB;
  --ink-muted:     #908C82;
  --ink-faint:     #6B685F;
  --ink-inverse:   #15161A;

  --ai:            #6B8DD8;
  --ai-2:          #7E9DDD;
  --ai-soft:       rgba(107, 141, 216, 0.12);
  --ai-line:       rgba(107, 141, 216, 0.25);
  --ai-glow:       rgba(107, 141, 216, 0.35);

  --gold:          #D6A85E;
  --gold-soft:     rgba(214, 168, 94, 0.14);

  --money-up:      #4ADE80;
  --money-up-soft: rgba(74, 222, 128, 0.12);
  --money-up-line: rgba(74, 222, 128, 0.30);
  --money-down:    #F87171;
  --money-down-soft: rgba(248, 113, 113, 0.12);
  --money-down-line: rgba(248, 113, 113, 0.30);

  --mode-paper:        #84C28F;
  --mode-paper-soft:   rgba(132, 194, 143, 0.16);
  --mode-paper-line:   rgba(132, 194, 143, 0.35);
  --mode-live:         #FBBF24;
  --mode-live-soft:    rgba(251, 191, 36, 0.18);
  --mode-live-line:    rgba(251, 191, 36, 0.45);

  --status-ok:         #4ADE80;
  --status-warn:       #FBBF24;
  --status-err:        #F87171;
  --status-idle:       #6B685F;

  --sleeve-swing:        #D6A85E;
  --sleeve-swing-soft:   rgba(214, 168, 94, 0.14);
  --sleeve-scalp:        #7E9DDD;
  --sleeve-scalp-soft:   rgba(126, 157, 221, 0.14);
  --sleeve-rotation:     #3FB5B5;   /* teal brightened for dark (light #0E8C8C) */
  --sleeve-rotation-soft: rgba(63, 181, 181, 0.14);
  --sleeve-short:        #B591F0;
  --sleeve-short-soft:   rgba(181, 145, 240, 0.14);
  --sleeve-options:      #5FB58A;
  --sleeve-options-soft: rgba(95, 181, 138, 0.14);
  --sleeve-reversion:    #D9745E;   /* terracotta brightened for dark (light #C25E4A) */
  --sleeve-reversion-soft: rgba(217, 116, 94, 0.14);
  --sleeve-trend:        #5BA3E6;   /* sky blue brightened for dark (light #2E7DC2) */
  --sleeve-trend-soft:   rgba(91, 163, 230, 0.14);
  --sleeve-income:       #CC6FB5;   /* plum brightened for dark (light #A23E8C) */
  --sleeve-income-soft:  rgba(204, 111, 181, 0.14);
  --sleeve-pead:         #D46B7D;   /* rosewood brightened for dark (light #B5495B) */
  --sleeve-pead-soft:    rgba(212, 107, 125, 0.14);
  --sleeve-cta:          #33C2AD;   /* teal brightened for dark (light #1B9E8A) */
  --sleeve-cta-soft:     rgba(51, 194, 173, 0.14);
  --sleeve-momentum:     #E0982E;   /* amber brightened for dark (light #C2780E) */
  --sleeve-momentum-soft: rgba(224, 152, 46, 0.14);

  /* Darker shadows so cards still float visibly on dark surfaces. */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.40), 0 2px 4px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.50), 0 4px 12px rgba(0,0,0,0.30);
}
