/* CARDAR canonical design tokens — Phase 3 Step 1 (single source of truth).
   Values come from the Phase 2 strategy token table (design-audit-phase1/
   phase2-strategy-draft.md §1). Pages keep their own legacy names
   (--panel, --panel2, --line, --muted, --color-*) with page-local values;
   this file defines the canonical names new work should use. It is loaded
   FIRST in <head> so each page's own :root still wins for shared names.
   Brand colours --brand-cyan / --brand-green are dark-surface decoration
   highlights only — never body text on a light background.
   Pending (no verified source yet, intentionally NOT defined here):
   --gold, spacing 48px/64px, Display/Caption sizes, line-heights, shadows. */
:root {
  color-scheme: light;
  /* Brand */
  --brand-navy: #071427;
  --brand-cyan: #00e5ff;
  --brand-green: #39ff88;
  /* Actions */
  --primary: #1a7f4b;
  --primary-hover: #156b3f;
  --info: #2563eb;
  /* Surfaces + text */
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-elevated: #f3f4f6;
  --text: #111111;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  /* Status */
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  /* Grading labels (UI v4: PSA red / BGS gold / SGC black) */
  --grade-psa: #cc0000;
  --grade-bgs: #b8860b;
  --grade-sgc: #111111;
  /* Text on primary backgrounds (collector buttons) */
  --collector-ink: #ffffff;
  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  /* Radii */
  --radius-button: 12px;
  --radius-card: 14px;
  --radius-dialog: 16px;
  /* Touch target */
  --control-min: 44px;
  /* Type scale (Data uses tabular-nums) */
  --font-h1: 28px;
  --font-h2: 20px;
  --font-h3: 18px;
  --font-body: 15px;
  --font-label: 15px;
  --font-data: 15px;
  --font-sans: Inter, system-ui, -apple-system, "Noto Sans TC", sans-serif;
}

/* Grading-label consumption contract (M8): text + border use the token.
   No current markup renders grade badges (the grader appears only as form
   data and export text); when a badge component is designed (Step 5), it
   must use these classes so PSA/BGS/SGC colours stay single-sourced. */
.grade-psa{color:var(--grade-psa);border-color:var(--grade-psa)}
.grade-bgs{color:var(--grade-bgs);border-color:var(--grade-bgs)}
.grade-sgc{color:var(--grade-sgc);border-color:var(--grade-sgc)}
