/* Warm graphite dark theme for the React app (replaces the blue/violet-tinted blacks).
   Page #0b0a09, panels #11100f, cards #171614, borders #2a2724, text #f3f0ea / #a59e93.
   Loaded directly (not via the build). */
html.dark body { background-color: #0b0a09 !important; }
html.dark { 
  --background: 30 10% 4%;      /* #0b0a09 */
  --card: 30 6% 8%;           /* #171614 */
  --popover: 30 6% 8%;
  --muted: 30 6% 6%;          /* #11100f */
  --secondary: 30 6% 6%;
  --accent: 30 6% 11%;
  --border: 30 8% 15%;         /* #2a2724 */
  --input: 30 8% 15%;
  --muted-foreground: 37 8% 61%;
}
html.dark .bg-\[\#0a0a0f\], html.dark .bg-\[\#0f0f14\], html.dark .bg-\[\#0d0d14\], html.dark .bg-gray-950 { background-color: #0b0a09 !important; }
html.dark .bg-\[\#12121a\], html.dark .bg-\[\#121217\], html.dark .bg-\[\#11131a\], html.dark .bg-\[\#101015\], html.dark .bg-\[\#0f1117\], html.dark .bg-gray-900 { background-color: #11100f !important; }
html.dark .bg-\[\#1a1a24\], html.dark .bg-\[\#1e1e2e\], html.dark .bg-\[\#111827\], html.dark .bg-gray-800 { background-color: #171614 !important; }
html.dark body[data-route="flat"] .card, html.dark body[data-route="flat"] .bg-card { background-color: #171614 !important; }
html.dark .border-gray-800, html.dark .border-gray-700, html.dark .border-\[\#1e1e2e\] { border-color: #2a2724 !important; }
html.dark .text-gray-400 { color: #a59e93 !important; }
html.dark .text-gray-500 { color: #8f887d !important; }
html.dark .text-gray-300 { color: #d6d0c6 !important; }

/* Same selectors as the flat dark theme in index.css, re-coloured warm graphite (loaded later, so these win). */
html.dark body[data-route="flat"] .bg-\[\#12121a\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#1a1a24\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#1e1e28\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#141420\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#16161d\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#11111a\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-card:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-muted:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-muted\/30:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-muted\/50:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-secondary:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-gray-800:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-gray-800\/50:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-gray-900:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-gray-900\/50:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-gray-950:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-slate-900:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-slate-800:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-zinc-900:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-neutral-900:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] [class^="bg-white/"]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] [class*=" bg-white/"]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .card:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]) { background-color: #171614 !important; }
html.dark body[data-route="flat"] .bg-\[\#111827\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#0f1117\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#0f0f18\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#0f172a\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#1e1e2e\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#11131a\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#101015\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#1a1a2e\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#22222e\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#252530\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]),
html.dark body[data-route="flat"] .bg-\[\#15151c\]:not([role="dialog"]):not([role="menu"]):not([role="listbox"]):not([data-radix-popper-content-wrapper] *):not([data-radix-popper-content-wrapper]) { background-color: #171614 !important; }
html.dark body[data-route="flat"] [class*="hover\:bg-"]:hover { background-color: #1c1a18 !important; }
html.dark body[data-route="flat"] .bg-\[\#1a1a24\],
html.dark body[data-route="flat"] .bg-\[\#12121a\],
html.dark body[data-route="flat"] .bg-\[\#1e1e28\] { background-color: #171614 !important; }
html.dark body[data-route="flat"] .bg-gray-800,
html.dark body[data-route="flat"] .bg-gray-800\/50,
html.dark body[data-route="flat"] .bg-gray-700\/50 { background-color: #171614 !important; }
html.dark body[data-route="flat"] .min-h-screen { background-color: #0b0a09 !important; }
