/**
 * RC design tokens — single source for spacing, type, radius, surfaces.
 * Themes (light / dark / reserve) override color vars in theme-*.css.
 * Version: 20261002.01
 */
:root {
  --rc-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rc-font-display: "Inter", var(--rc-font-sans);
  --rc-fs-xs: 0.6875rem;   /* 11px */
  --rc-fs-sm: 0.75rem;     /* 12px */
  --rc-fs-base: 0.875rem;  /* 14px */
  --rc-fs-md: 1rem;        /* 16px */
  --rc-fs-lg: 1.125rem;    /* 18px */
  --rc-fs-xl: 1.25rem;     /* 20px */
  --rc-lh: 1.5;
  --rc-radius-sm: 0.375rem;
  --rc-radius: 0.75rem;
  --rc-radius-lg: 1rem;
  --rc-space-1: 0.25rem;
  --rc-space-2: 0.5rem;
  --rc-space-3: 0.75rem;
  --rc-space-4: 1rem;
  --rc-space-6: 1.5rem;
  --rc-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 4px 12px rgb(0 0 0 / 0.06);
  --rc-sidebar-w: 15rem;
  --rc-sidebar-collapsed: 4.5rem;
  --rc-header-h: 3.25rem;
  /* Fallback neutrals — theme files override */
  --rc-bg: #0f172a;
  --rc-surface: #1e293b;
  --rc-text: #f8fafc;
  --rc-text-muted: #94a3b8;
  --rc-border: #334155;
  --rc-accent: #c9a227;
}
html, body {
  font-family: var(--rc-font-sans);
  font-size: var(--rc-fs-base);
  line-height: var(--rc-lh);
}
.rc-card {
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow);
}
.rc-hit-lg {
  min-width: 2.5rem;
  min-height: 2.5rem;
}

/* Phase 2 UI shell */
.rc-main-shell {
  background: #f1f5f9 !important;
}
html[data-theme="dark"] .rc-main-shell,
html.theme-dark .rc-main-shell {
  background: #0f172a !important;
}
html[data-theme="reserve"] .rc-main-shell,
html.theme-reserve .rc-main-shell {
  background: #12080a !important;
}
#rc-sidebar.sidebar {
  border-right: 1px solid rgba(148, 163, 184, 0.2);
}
.ctrl-btn {
  border-radius: 0.5rem;
  transition: background 0.15s ease, color 0.15s ease;
}
