/* Shared TGIR ivory-and-forest theme; data and refresh behavior stay in React. */
:root, :root.dark {
  color-scheme: light;
  --background: #f6f3e9; --foreground: #203b35;
  --card: #fcfbf6; --card-foreground: #203b35;
  --popover: #fcfbf6; --popover-foreground: #203b35;
  --primary: #244e43; --primary-foreground: #fcfbf6;
  --secondary: #e4e9da; --secondary-foreground: #244e43;
  --muted: #e4e9da; --muted-foreground: #59685c;
  --accent: #e4e9da; --accent-foreground: #203b35;
  --border: #cdd2c3; --input: #cdd2c3; --ring: #244e43;
  --radius: 0; --destructive: #a33f30;
}
html, body { background: #f6f3e9; color: #203b35; }
body { margin: 0; font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif; }
.dashboard-masthead { max-width: 1280px; margin: auto; padding: 26px 0; border-bottom: 1px solid #cdd2c3; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dashboard-brand { display: flex; align-items: center; gap: 13px; color: #203b35; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 1.3px; line-height: 1.6; text-transform: uppercase; }
.dashboard-brand img { width: 32px; height: 32px; filter: grayscale(1) sepia(.4); }
.dashboard-masthead nav { display: flex; flex-wrap: wrap; gap: 26px; }
.dashboard-masthead nav a { color: #203b35; text-decoration: none; font-size: 12px; }
.dashboard-masthead nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.dashboard-skip { position: absolute; left: 20px; top: -100px; padding: 12px; background: #fcfbf6; color: #203b35; z-index: 100; }
.dashboard-skip:focus { top: 10px; }
a:focus-visible, button:focus-visible { outline: 3px solid #a64e32; outline-offset: 4px; }
#root > .min-h-screen { background: #f6f3e9 !important; background-image: none !important; min-height: calc(100vh - 90px); padding: 44px 28px 32px; }
#root .max-w-7xl { max-width: 1280px; }
#root .max-w-7xl > .text-center:first-child { text-align: left; margin-bottom: 36px; padding-bottom: 30px; border-bottom: 1px solid #cdd2c3; }
#root h1 { font-family: 'Iowan Old Style', Baskerville, Georgia, serif; font-size: clamp(34px, 4.2vw, 57px); font-weight: 400; line-height: 1.12; letter-spacing: -1.5px; max-width: 980px; margin-bottom: 15px; }
#root .max-w-7xl > .text-center:first-child > .flex { justify-content: flex-start; gap: 10px; }
#root [data-slot='card'] { background: #fcfbf6 !important; border: 1px solid #cdd2c3 !important; border-radius: 0; box-shadow: none; backdrop-filter: none; min-width: 0; }
#root [data-slot='card']:hover { background: #fcfbf6 !important; border-color: #8b9a82 !important; }
#root [data-slot='card-title'] { font-family: 'Iowan Old Style', Baskerville, Georgia, serif; font-size: 24px; line-height: 1.2; font-weight: 400; }
#root [data-slot='card-content'] { font-variant-numeric: tabular-nums; }
#root [data-slot='card-content'] .text-2xl { font-size: 32px; font-weight: 500; letter-spacing: -1px; }
#root [data-slot='badge'] { border-radius: 0; background: #e4e9da; border-color: #b7c4ae; padding: 6px 10px; white-space: normal; line-height: 1.5; }
#root button { border-radius: 0; border-color: #244e43; color: #244e43; background: transparent; padding: 6px 12px; min-height: 34px; }
#root button:hover { background: #e4e9da; }
#root .text-white { color: #203b35; }
#root :is(.text-blue-200, .text-blue-300, .text-gray-400, .text-slate-300, .text-cyan-100) { color: #59685c; }
#root :is(.text-blue-400, .text-cyan-400, .text-green-400) { color: #286149; }
#root :is(.text-red-400, .text-red-200) { color: #a33f30; }
#root :is(.text-orange-400, .text-orange-300, .text-orange-100) { color: #895028; }
#root [class~='bg-red-900/20'] { background: #f4e7dc; border-color: #cba387; border-radius: 0; }
#root [class~='bg-slate-950/20'], #root [class~='bg-cyan-500/10'] { background: #edf0e5; }
#root [class~='bg-orange-500/10'] { background: #f4e7dc; }
#root .recharts-cartesian-axis-tick-value { fill: #59685c; font-family: 'Avenir Next', Avenir, sans-serif; font-size: 11px; }
#root .recharts-cartesian-axis-line, #root .recharts-cartesian-axis-tick-line { stroke: #b7c1ad; }
#root .recharts-line path[stroke='#60a5fa'] { stroke: #244e43; stroke-width: 2; }
#root .recharts-line path[stroke='#f87171'] { stroke: #a64e32; stroke-width: 2; stroke-dasharray: 5 4; }
#root .recharts-legend-item-text { color: #203b35 !important; }
#root .recharts-legend-item:first-child .recharts-surface { color: #244e43 !important; }
#root .recharts-legend-item:first-child path { fill: #244e43; stroke: #244e43; }
#root .recharts-legend-item:nth-child(2) path { fill: #a64e32; stroke: #a64e32; }
#root .recharts-default-tooltip { background: #fcfbf6 !important; border: 1px solid #8b9a82 !important; color: #203b35; }
#root .recharts-tooltip-item, #root .recharts-tooltip-label { color: #203b35 !important; }
#root .grid { min-width: 0; }
#root .grid > * { min-width: 0; }
@media (max-width: 1350px) { .dashboard-masthead { margin: 0 28px; } }
@media (min-width: 768px) { #root [class~='md:grid-cols-[200px_200px_1fr]'] { grid-template-columns: minmax(145px, .7fr) minmax(180px, .9fr) minmax(0, 3fr); } }
@media (max-width: 767px) {
  .dashboard-masthead { margin: 0 20px; padding: 22px 0; align-items: flex-start; flex-direction: column; gap: 18px; }
  .dashboard-masthead nav { gap: 22px; }
  #root > .min-h-screen { padding: 30px 20px; }
  #root h1 { letter-spacing: -.7px; }
  #root .grid { gap: 18px; }
  #root .recharts-responsive-container { min-width: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { #root * { transition: none !important; } }
