/* ============================================================
   tokens.css — CC UI token layer FOLD (ADDITIVE, NOT LINKED)
   Milestone: M6 CC UI Redesign — Token Fold 2026-10-30
   Author: Spark (Ember delegated) · write-scope only
   ------------------------------------------------------------------
   STATUS: staged/web/tokens.css is an ADDITIVE token layer. It is
   NOT referenced by any file — no <link>, no @import. Existing
   staged/web files are UNCHANGED (see TOKENS-FOLD-20261030.md for
   the diff annotation). Rollback = delete this one file.

   This file mirrors the audited palette used by the phase-2
   mockups (staged/graphics/mockups/*) so phase 3 has ONE source of
   visual truth. Values VERIFIED 2026-10-30 against live style.css
   :root; PROPOSED (P) values flagged for owner veto.
   ============================================================ */

:root {
  /* ---- palette — verifed from live style.css :root (2026-10-30) ---- */
  --bg: #10151c;            /* live: body bg */
  --panel: #171d27;         /* live: panel/card bg */
  --panel2: #1d2532;        /* live: raised panel bg */
  --field: #0d1119;         /* live: input field bg */
  --border: #2a3444;        /* live-derived border (matches mockups) */
  --border-strong: #3a4462; /* live-derived strong border (matches mockups) */
  --text: #e8eef6;          /* CC-PALETTE.md canonical (CC REBUILD v1) */
  --muted: #9aa7b8;         /* CC-PALETTE.md canonical (CC REBUILD v1) */
  --text-strong: #ffffff;   /* emphasized text on dark */
  --on-accent: #0b0f14;     /* text on accent fills */
  --accent: #4f9cff;        /* live: action/accent */
  --danger: #d9534f;        /* CC-PALETTE.md canonical — stop/danger only */
  --accent-strong: #5b8df5; /* gradient top for primary buttons (P) */
  --accent-deep: #2d5cb8;   /* gradient bottom for primary buttons (P) */
  --success: #3aa46f;       /* live: connected/live */
  --success-soft: #8fdcb4;  /* success-muted text (P) */
  --warn: #d9a441;          /* live: caution */
  --warn-soft: #e6c58a;     /* warn-muted text (P) */
  --danger: #d9534f;        /* live: hang-up/mic-live */
  --danger-strong: #e05a5a; /* danger hover (P) */
  --user: #2f6fd0;          /* live: user message bubble */
  --assistant: #3aa46f;     /* live: assistant message bubble */

  /* ---- per-agent accents (live avatar/status colors) ---- */
  --acc-main: #9D4EDD;      /* Tia — flagship purple */
  --acc-ember: #F97316;     /* Ember — orange */
  --acc-gauge: #22C55E;     /* Gauge — green */
  --acc-ragnar: #3B82F6;    /* Ragnar — blue */

  /* ---- PROPOSED — owner may veto (also flagged in DECISIONS-ASSUMED) ---- */
  --iro-accent: #9D6BFF;    /* (P) IRO monogram accent */
  --ihe-accent: #FFB454;    /* (P) IHE monogram accent */
  --stage-scrim: radial-gradient(rgba(8,10,16,.32) 0%, rgba(8,10,16,.68) 100%); /* (P) stage dim */
  --live: var(--danger);    /* (P) mic-live reuses danger-red recording convention */

  /* ---- overlay helpers ---- */
  --overlay-hover: rgba(255,255,255,.05);
  --border-subtle: rgba(255,255,255,.08);
  --border-stronger: rgba(255,255,255,.18);

  /* ---- typography ---- */
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 24px;

  /* ---- icons ---- */
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --icon-feature: 32px;
  --icon-hit: 44px;

  /* ---- spacing ---- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-12: 48px;

  /* ---- radius ---- */
  --radius-sm: 8px; --radius-md: 10px; --radius-lg: 12px;
  --radius-xl: 20px; --radius-pill: 999px;

  /* ---- motion ---- */
  --dur-fast: 80ms; --dur-base: 120ms; --dur-medium: 180ms; --dur-slow: 300ms;
  --ease-standard: cubic-bezier(.2,0,0,1);
  --ease-emphasized: cubic-bezier(.3,0,.2,1);

  /* ---- state ---- */
  --state-disabled-opacity: 0.4;
  --state-mic-halo-min: 0.25;
  --state-mic-halo-max: 0.55;
  --mic-halo-color: 217, 83, 79; /* danger rgb() — matches --live */
}
