/* Cortex theme tokens consumed by tools.css — extracted from eai-cortex
   app/assets/tailwind/application.css (:root + html.dark overrides). */

:root {
  --brand-orange:       #E8620A;
  --brand-orange-light: #F5A623;
  --brand-orange-hover: #CF560A;
  --brand-blue:         #1E6FBF;
  --brand-blue-light:   #3B9EE0;
  --brand-navy:         #2D3F55;
  --brand-navy-dark:    #1E2D3D;
  --brand-navy-light:   #3D5270;

  --surface-white:      #FFFFFF;
  --surface-bg:         #F8F9FB;
  --surface-sidebar:    #F2F4F7;
  --surface-border:     #E4E7EC;
  --surface-hover:      #EAECF0;
  --surface-active:     #E0E8F4;

  --text-primary:       #111827;
  --text-secondary:     #4B5563;
  --text-muted:         #9CA3AF;
  --text-on-dark:       #FFFFFF;

  --surface-blue-tint:   #EFF6FF;
  --border-blue-tint:    #BFDBFE;
  --surface-orange-tint: #FEF3EC;
  --border-orange-tint:  #FDBA74;
  --surface-danger-hover: #FEF2F2;

  --surface-danger:      #FEF2F2;
  --border-danger:       #FECACA;
  --text-danger:         #DC2626;
  --text-danger-strong:  #991B1B;

  --surface-green-tint:  #ECFDF5;
  --border-green-tint:   #A7F3D0;
  --text-success:        #059669;
  --text-success-strong: #065F46;

  --surface-code:        #F3F4F6;
  --text-code:           var(--brand-navy);

  --surface-warning-tint: #FFF7F5;
  --border-warning-tint:  #FECAC1;

  --surface-ai-avatar:   #EBF4FD;

  --text-warning:        #F97316;

  /* ── Semantic action token ── */
  --brand-accent:        var(--brand-orange);
  --brand-accent-hover:  var(--brand-orange-hover);
}

html.dark {
  --surface-white:      #1E293B;
  --surface-bg:         #0F172A;
  --surface-sidebar:    #1A2332;
  --surface-border:     #3E526A;
  --surface-hover:      #263348;
  --surface-active:     #1E3A5F;

  --text-primary:       #F1F5F9;
  --text-secondary:     #CBD5E1;
  --text-muted:         #94A3B8;

  --surface-blue-tint:   #1E3A5F;
  --border-blue-tint:    #3B6BA8;
  --surface-orange-tint: #2D1A08;
  --border-orange-tint:  #B45309;
  --surface-danger-hover: #3B1212;

  --surface-danger:      #3B1212;
  --border-danger:       #991B1B;
  --text-danger:         #FCA5A5;
  --text-danger-strong:  #FCA5A5;

  --surface-green-tint:  #052E16;
  --border-green-tint:   #166534;
  --text-success:        #4ADE80;
  --text-success-strong: #4ADE80;

  --surface-code:        #1E293B;
  --text-code:           #93C5FD;

  --surface-warning-tint: #2D1A08;
  --border-warning-tint:  #B45309;

  --surface-ai-avatar:   #1A3248;

  --text-warning:        #FBB040;

  /* brand-navy has no dark override — used in light-mode-only complication pills */
  --brand-navy:          #93C5FD;

  color-scheme: dark;
}
