/* Grain — Agent Semantic Colors
 * Refined palette matching prototype evidence (01-agent-registry-v005).
 * Uses the same muted accent family as the base theme.
 *
 * Usage: import '@goforgeit/grain/themes/agent.css'
 * These extend the base cream/dark tokens — any app can import them.
 */

:root {
  /* ── Agent Type Colors ────────────────────────────────── */
  /* Derived from the base accent palette, not standalone hues. */
  /* The prototype uses blue/green/amber for everything — these */
  /* are subtle shifts of those same colors for differentiation. */
  --agent-orchestrator: #4A5699;     /* Slate-blue — routing, coordinating */
  --agent-worker: #15793F;           /* Forest green — executing bounded tasks */
  --agent-human: #925E00;            /* Dark amber — human actor measurements */
  --agent-specialist: #8B5A6B;       /* Muted plum — eval, research specialists */

  /* ── Agent Status ─────────────────────────────────────── */
  --status-running: #15793F;
  --status-idle: #717D8C;
  --status-thinking: #925E00;
  --status-stopped: #64748B;
  --status-tripped: #CC2222;

  /* ── Eval Scores ──────────────────────────────────────── */
  --eval-pass: #15793F;
  --eval-warn: #925E00;
  --eval-fail: #CC2222;

  /* ── Agent type backgrounds and borders for Chips ────── */
  --agent-orchestrator-bg: rgba(74, 86, 153, 0.08);
  --agent-orchestrator-border: rgba(74, 86, 153, 0.2);
  --agent-worker-bg: rgba(26, 138, 74, 0.08);
  --agent-worker-border: rgba(26, 138, 74, 0.2);
  --agent-specialist-bg: rgba(139, 90, 107, 0.08);
  --agent-specialist-border: rgba(139, 90, 107, 0.2);
  --agent-human-bg: rgba(196, 125, 0, 0.08);
  --agent-human-border: rgba(196, 125, 0, 0.2);
}

/* Dark theme overrides for agent colors */
[data-theme="dark"] {
  --agent-orchestrator: #8B9AD4;
  --agent-worker: #5CB888;
  --agent-human: #E0A840;
  --agent-specialist: #C48BA0;

  --status-running: #5CB888;
  --status-idle: #64748B;
  --status-thinking: #E0A840;
  --status-stopped: #475569;
  --status-tripped: #F08585;

  --eval-pass: #5CB888;
  --eval-warn: #E0A840;
  --eval-fail: #F08585;

  --agent-orchestrator-bg: rgba(139, 154, 212, 0.1);
  --agent-orchestrator-border: rgba(139, 154, 212, 0.25);
  --agent-worker-bg: rgba(92, 184, 136, 0.1);
  --agent-worker-border: rgba(92, 184, 136, 0.25);
  --agent-specialist-bg: rgba(196, 139, 160, 0.1);
  --agent-specialist-border: rgba(196, 139, 160, 0.25);
  --agent-human-bg: rgba(224, 168, 64, 0.1);
  --agent-human-border: rgba(224, 168, 64, 0.25);
}
