:root {
  /* surfaces & text */
  --surface: #fcfcfd;
  --surface-sunken: #f4f5f7;
  --surface-raised: #ffffff;
  --text-1: #101828;
  --text-2: #475467;
  --text-3: #7a869a;

  /* accents */
  --accent: #ea8f0d;
  --accent-hover: #c77c0b;
  --focus: #1d4ed8;

  /* pillar markers */
  --pillar-jobs: #026aa2;
  --pillar-admit: #0e7265;
  --pillar-results: #6d28d9;
  --pillar-misc: #b45309;

  /* status chips */
  --st-closing-bg: #fdeadb;
  --st-closing-text: #c2410c;
  --st-new-bg: #e5f3d9;
  --st-new-text: #4d7c0f;

  /* radius */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* borders & elevation */
  --border: #e9eaeb;
  --border-strong: #537087;
  --shadow-md: 0 0 0 1px rgb(19 24 34 / 0.03), 0 2px 8px rgb(19 24 34 / 0.06);
  --shadow-lg: 0 4px 24px rgb(15 23 36 / 0.12);
  --ring: 0 0 0 3px rgb(19 24 38 / 0.12);

  /* type scale */
  --fs-body: 1rem;
  --fs-h1: 1.5rem;
  --fs-h2: 2rem;
  --fs-display: 2.5rem;

  /* motion */
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

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

  /* legacy aliases - keep until every old consumer is migrated, then delete */
  --bg-color: var(--surface);
  --card-bg: var(--surface-raised);
  --strip-bg: var(--surface-sunken);
  --text-dark: var(--text-1);
  --text-main: var(--text-2);
  --text-muted: var(--text-3);
  --accent-primary: var(--accent);
  --accent-secondary: var(--focus);
  --accent-secondary-hover: #1e40af;
  --border-color: var(--border);
  --border-hover: var(--border-strong);
  --col-jobs: var(--pillar-jobs);
  --col-admit: var(--pillar-admit);
  --col-results: var(--pillar-results);
  --col-misc: var(--pillar-misc);
  --badge-new-bg: var(--st-new-bg);
  --badge-new-text: var(--st-new-text);
  --badge-closing-bg: var(--st-closing-bg);
  --badge-closing-text: var(--st-closing-text);
  --badge-delayed-bg: #fef3c7;
  --badge-delayed-text: #92400e;
  --tag-state-bg: color-mix(in srgb, var(--pillar-jobs) 12%, var(--surface-raised));
  --tag-state-text: var(--pillar-jobs);
  --tag-dept-bg: var(--surface-sunken);
  --tag-dept-text: var(--text-2);
  --shadow-sm: 0 1px 3px 0 rgb(15 23 42 / 0.06);
  --shadow-modal: 0 20px 25px -5px rgb(15 23 42 / 0.25);
}

:root[data-theme="dark"] {
  --surface: #0c1220;
  --surface-sunken: #141c2c;
  --surface-raised: #1a2334;
  --text-1: #f2f5fa;
  --text-2: #c4cddc;
  --text-3: #8d99ad;

  --accent: #f5a623;
  --accent-hover: #ffc260;
  --focus: #6d9eff;

  --pillar-jobs: #79c1e0;
  --pillar-admit: #6fc3b3;
  --pillar-results: #b79af5;
  --pillar-misc: #e7b27f;

  --st-closing-bg: rgba(234, 92, 58, 0.2);
  --st-closing-text: #ffc1ad;
  --st-new-bg: rgba(151, 194, 85, 0.2);
  --st-new-text: #d4efb0;

  --border: #283042;
  --border-strong: #5c6a80;
  --shadow-md: 0 2px 8px rgb(2 6 14 / 0.5);
  --shadow-lg: 0 4px 24px rgb(2 6 14 / 0.6);

  /* legacy aliases resolve through the semantic tokens above */
  --accent-secondary-hover: #2563eb;
  --badge-delayed-bg: rgba(245, 158, 11, 0.15);
  --badge-delayed-text: #fbbf24;
}
