/* Design tokens — the single source of truth for the panel's look. */
:root {
  /* surfaces (near-black, blue-tinted) */
  --bg-0: #07080c;
  --bg-1: #0b0d13;
  --bg-2: #11141c;
  --bg-3: #171b26;
  --bg-overlay: rgba(4, 5, 9, 0.72);

  /* hairlines */
  --border-1: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.13);

  /* text */
  --text-1: #eef1f8;
  --text-2: #a8b0c2;
  --text-3: #7c86a0; /* decorative / redundant text only */

  /* accent: violet -> cyan, used sparingly */
  --accent-a: #7c5cff;
  --accent-b: #2dd4ff;
  --accent-grad: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  --accent-soft: rgba(124, 92, 255, 0.14);

  /* task-state colors + soft pill backgrounds */
  --st-pending: #9aa3b8;      --st-pending-bg: rgba(154, 163, 184, 0.12);
  --st-running: #2dd4ff;      --st-running-bg: rgba(45, 212, 255, 0.12);
  --st-verifying: #5eead4;    --st-verifying-bg: rgba(94, 234, 212, 0.12);
  --st-limit_wait: #fbbf24;   --st-limit_wait-bg: rgba(251, 191, 36, 0.13);
  --st-done: #34d399;         --st-done-bg: rgba(52, 211, 153, 0.13);
  --st-failed: #f87171;       --st-failed-bg: rgba(248, 113, 113, 0.13);
  --st-needs_review: #c084fc; --st-needs_review-bg: rgba(192, 132, 252, 0.14);
  --st-cancelled: #8b93a7;    --st-cancelled-bg: rgba(139, 147, 167, 0.1);

  /* spacing (4px base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;

  /* radii */
  --r-1: 6px; --r-2: 10px; --r-3: 14px; --r-full: 999px;

  /* type */
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.6875rem; --fs-sm: 0.78rem; --fs-md: 0.875rem;
  --fs-lg: 1rem; --fs-xl: 1.25rem; --fs-2xl: 1.75rem;

  /* elevation */
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-2: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
  --sh-3: 0 16px 48px -12px rgba(0, 0, 0, 0.65);
  --sh-glow: 0 0 24px rgba(124, 92, 255, 0.25);
  --focus-ring: 0 0 0 2px var(--bg-1), 0 0 0 4px var(--accent-a);

  /* motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-med: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-med: 0ms; }
}
