:root {
  /* Surfaces */
  --bg: #0d0f1a;
  --surface: #141625;
  --surface-2: #1d2035;
  --surface-3: #252942;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-faint: #334155;

  /* Accent */
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-subtle: rgba(99, 102, 241, 0.15);

  /* Status */
  --status-planned: #475569;
  --status-planned-bg: rgba(71, 85, 105, 0.15);
  --status-in-progress: #3b82f6;
  --status-in-progress-bg: rgba(59, 130, 246, 0.15);
  --status-done: #10b981;
  --status-done-bg: rgba(16, 185, 129, 0.15);
  --status-cancelled: #6b7280;
  --status-cancelled-bg: rgba(107, 114, 128, 0.12);

  /* Priority */
  --priority-critical: #ef4444;
  --priority-high: #f97316;
  --priority-medium: #eab308;
  --priority-low: #6b7280;

  /* Visibility */
  --visibility-external: #10b981;
  --visibility-external-bg: rgba(16, 185, 129, 0.12);
  --visibility-internal: #a855f7;
  --visibility-internal-bg: rgba(168, 85, 247, 0.12);

  /* Area colors (cycled by index) */
  --area-0: #6366f1;
  --area-1: #3b82f6;
  --area-2: #10b981;
  --area-3: #f59e0b;
  --area-4: #ec4899;
  --area-5: #8b5cf6;
  --area-6: #14b8a6;
  --area-7: #f97316;

  /* Spacing */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-sm: 4px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Layout */
  --topbar-height: 56px;
  --sidebar-width: 220px;
  --panel-width: 420px;
}

[data-theme="light"] {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);
  --text: #0f172a;
  --text-muted: #64748b;
  --text-faint: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}
