/* GYMAJ VISION ANALYTICS: web interpretation, not an Apple framework. */
:root,
.analytics-body {
  color-scheme: dark;
  --bg: #080909;
  --surface: #141616;
  --surface-2: #1b1d1d;
  --surface-strong: var(--surface-2);
  --line: #282b2a;
  --ink: #f7f8f7;
  --volt: #c9ff39;
  --muted: #a0aaa5;
  --subtle: #8b9690;
  --control-line: #657269;
  --hover: #232725;
  --on-volt: #101507;
  --success: #59d6a0;
  --warning: #f3c969;
  --danger: #ff7c86;
  --info: #79b8ff;

  /* Compatibility aliases used by the existing page controllers. */
  --blue: var(--volt);
  --green: var(--success);
  --amber: var(--warning);
  --red: var(--danger);
  --shadow: var(--shadow-overlay);

  --radius-sm: 8px;
  --radius: 8px;
  --radius-lg: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-small: 12px;
  --font-body: 14px;
  --font-title: 28px;
  --font-metric: 32px;
  --line-body: 1.5;
  --line-title: 1.2;
  --focus-ring: var(--volt);
  --focus-offset: 4px;
  --control-height: 44px;

  --material-solid: #1b1d1d;
  --material-fill: rgba(27, 29, 29, 0.9);
  --material-line: rgba(247, 248, 247, 0.18);
  --material-highlight: rgba(247, 248, 247, 0.07);
  --material-blur: 16px;
  --material-saturation: 110%;
  --shadow-overlay: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-material: inset 0 1px 0 var(--material-highlight), var(--shadow-overlay);
  --motion-fast: 160ms;
  --motion-standard: 200ms;
  --motion-easing: cubic-bezier(0.2, 0, 0, 1);

  --chart-primary: var(--volt);
  --chart-secondary: var(--muted);
  --chart-grid: var(--line);
}

@media (max-width: 760px) {
  :root, .analytics-body { --font-title: 24px; --font-metric: 26px; }
}

@media (max-width: 360px) {
  :root, .analytics-body { --font-metric: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  :root, .analytics-body { --motion-fast: 0ms; --motion-standard: 0ms; }
}
