/* ============================================
   JERRY OS - Design System / Theme
   "The Illuminated Abyss"
   Inspired by: The Sphere (1998), the deep ocean,
   bioluminescent creatures, sunlight breaking through,
   and the vastness of the cosmos.
   The journey from depth to light.
   ============================================ */

:root {
  /* Sphere Gold / Sunlight (the light above, the goal, completion) */
  --sphere-gold: #ffb95f;
  --sphere-gold-light: #ffddb8;
  --sphere-gold-dark: #e79400;
  --sphere-gold-glow: rgba(255, 185, 95, 0.25);

  /* Deep Ocean (the midnight depths, the foundation) */
  --space-void: #080d1a;
  --space-deep: #0e1320;
  --space-navy: #161b29;
  --space-blue: #1a1f2d;
  --space-mid: #252a38;

  /* Bioluminescent Accents (the creatures, the life, the energy) */
  --nebula-purple: #8b5cf6;
  --nebula-blue: #4d8eff;
  --nebula-cyan: #06b6d4;
  --nebula-pink: #d0bcff;

  /* Primary Bioluminescence (active, alive, in-progress) */
  --bio-cyan: #4cd7f6;
  --bio-cyan-dim: #06b6d4;
  --bio-cyan-glow: rgba(76, 215, 246, 0.2);
  --bio-cyan-subtle: rgba(6, 182, 212, 0.08);

  /* Cosmic Purple (timeline, history, the universe beyond) */
  --cosmic-purple: #d0bcff;
  --cosmic-purple-dim: #b395ff;
  --cosmic-purple-glow: rgba(139, 92, 246, 0.15);

  /* Functional - ocean-inspired status colours */
  --green: #34d399;
  --green-bright: #10b981;
  --green-bg: rgba(52, 211, 153, 0.12);
  --green-glow: rgba(16, 185, 129, 0.2);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.1);
  --amber-glow: rgba(245, 158, 11, 0.15);
  --red: #ef4444;
  --red-bright: #ffb4ab;
  --red-bg: rgba(239, 68, 68, 0.12);

  /* Project status */
  --status-not-started: #64748b;
  --status-wip: var(--bio-cyan);
  --status-completed: var(--sphere-gold);
  --status-on-hold: var(--nebula-purple);
  --status-archived: #475569;

  /* Surfaces - Tonal layering (frosted obsidian, stacked glass) */
  --bg-app: #0e1320;
  --bg-card: #1a1f2d;
  --bg-card-solid: #1a1f2d;
  --bg-card-elevated: #252a38;
  --bg-sidebar: #090e1b;
  --bg-sidebar-hover: rgba(76, 215, 246, 0.08);
  --bg-input: #252a38;
  --bg-hover: rgba(76, 215, 246, 0.06);

  /* Text - Moonlight and ocean mist */
  --text-primary: #dee2f5;
  --text-secondary: #bcc9cd;
  --text-tertiary: #869397;
  --text-sidebar: #bcc9cd;
  --text-sidebar-active: var(--bio-cyan);

  /* Borders - Ghost borders only (15% opacity max) */
  --border: rgba(188, 201, 205, 0.15);
  --border-light: rgba(188, 201, 205, 0.08);
  --border-glow: rgba(76, 215, 246, 0.2);

  /* Shadows - Ambient glows, not harsh drops */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(76, 215, 246, 0.12);
  --shadow-glow-gold: 0 0 20px rgba(255, 185, 95, 0.15);
  --shadow-glow-green: 0 0 16px rgba(16, 185, 129, 0.15);

  /* Spacing */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;

  /* Radius */
  --r4: 4px;
  --r6: 6px;
  --r8: 8px;
  --r12: 12px;
  --r16: 16px;
  --r-full: 9999px;

  /* Typography - Manrope for headlines, Inter for body */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', 'Inter', -apple-system, sans-serif;

  /* Layout */
  --sidebar-width: 240px;
  --jerry-panel-width: 380px;

  /* Jerry brand (bioluminescent cyan - alive, active, present) */
  --jerry-blue: var(--bio-cyan);
  --jerry-blue-light: var(--bio-cyan-subtle);
  --jerry-blue-dark: var(--bio-cyan-dim);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}
a { color: var(--sphere-gold); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--sphere-gold-light); }
*, *::before, *::after { box-sizing: border-box; }
button { font-family: var(--font); cursor: pointer; }
input, textarea, select {
  font-family: var(--font);
  color-scheme: dark;
  background: var(--bg-input);
  color: var(--text-primary);
}
option {
  background: var(--bg-card-solid);
  color: var(--text-primary);
}

/* Scrollbar styling for dark theme */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.35); }

/* ==========================================
   PAGE HERO HEADERS (Space backgrounds)
   ========================================== */
.page-hero {
  position: relative;
  padding: var(--s8) var(--s10);
  margin: calc(-1 * var(--s8)) calc(-1 * var(--s10)) var(--s8);
  border-radius: 0 0 var(--r16) var(--r16);
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.page-hero .header-date {
  color: rgba(255,255,255,0.7);
}

/* Hub - Deep ocean with bioluminescent light from above */
.hero-hub::before {
  background: url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?w=1400&q=80') center/cover no-repeat;
}
.hero-hub::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,19,32,0.75) 0%, rgba(6,182,212,0.12) 50%, rgba(14,19,32,0.85) 100%);
  z-index: 0;
}

/* Tasks - Blue nebula */
.hero-tasks::before {
  background: url('https://images.unsplash.com/photo-1419242902214-272b3f66ee7a?w=1400&q=80') center/cover no-repeat;
}
.hero-tasks::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,11,22,0.75) 0%, rgba(13,31,60,0.6) 50%, rgba(8,11,22,0.8) 100%);
  z-index: 0;
}

/* Projects - Purple cosmos */
.hero-projects::before {
  background: url('https://images.unsplash.com/photo-1543722530-d2c3201371e7?w=1400&q=80') center/cover no-repeat;
}
.hero-projects::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,11,22,0.75) 0%, rgba(26,13,61,0.5) 50%, rgba(8,11,22,0.8) 100%);
  z-index: 0;
}

/* Notes - Deep blue ocean of stars */
.hero-notes::before {
  background: url('https://images.unsplash.com/photo-1465101162946-4377e57745c3?w=1400&q=80') center/cover no-repeat;
}
.hero-notes::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,11,22,0.75) 0%, rgba(10,31,46,0.5) 50%, rgba(8,11,22,0.8) 100%);
  z-index: 0;
}

/* Area - Golden sphere glow */
.hero-area::before {
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1400&q=80') center/cover no-repeat;
}
.hero-area::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,11,22,0.7) 0%, rgba(26,20,8,0.5) 50%, rgba(8,11,22,0.8) 100%);
  z-index: 0;
}

/* Connections - Earth from space */
.hero-connections::before {
  background: url('https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?w=1400&q=80') center/cover no-repeat;
}
.hero-connections::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,11,22,0.75) 0%, rgba(13,26,58,0.5) 50%, rgba(8,11,22,0.8) 100%);
  z-index: 0;
}

/* Health - fitness/kettlebell */
.hero-health::before {
  background: url('https://images.unsplash.com/photo-1517344884509-a0c97ec11bcc?w=1400&q=80') center/cover no-repeat;
}
.hero-health::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,11,22,0.65) 0%, rgba(16,40,20,0.4) 50%, rgba(8,11,22,0.75) 100%);
  z-index: 0;
}

/* Growth - Electric network / data streams */
.hero-growth {
  background: linear-gradient(135deg, #0a192f 0%, #0d2847 40%, #1a1a2e 100%);
  overflow: visible;
}
.hero-growth::before {
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1400&q=80') center/cover no-repeat;
  border-radius: 0 0 var(--r16) var(--r16);
}
.hero-growth::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,25,47,0.85) 0%, rgba(6,182,212,0.1) 50%, rgba(10,25,47,0.9) 100%);
  z-index: 0;
  border-radius: 0 0 var(--r16) var(--r16);
}

/* Growth vehicle cards */
.growth-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.growth-vehicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.growth-vehicle-card:hover {
  border-color: var(--bio-cyan);
  box-shadow: var(--shadow-glow);
}
.growth-vehicle-card .vehicle-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.growth-vehicle-card .vehicle-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.growth-vehicle-card .vehicle-critical {
  font-size: 24px;
  font-weight: 800;
  color: var(--bio-cyan);
  margin: 8px 0;
}
.growth-vehicle-card .vehicle-critical-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.growth-vehicle-card .vehicle-status {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.growth-vehicle-card .vehicle-supporting {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}
.growth-vehicle-card .vehicle-supporting span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.growth-vehicle-card .vehicle-supporting .sup-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Growth funnel */
.growth-funnel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.funnel-stage {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.funnel-stage:last-child {
  border-bottom: none;
}
.funnel-bar-track {
  flex: 1;
  height: 28px;
  background: var(--bg-card-elevated);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.funnel-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  min-width: 40px;
}
.funnel-label {
  min-width: 160px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.funnel-value {
  min-width: 80px;
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.funnel-rate {
  min-width: 60px;
  text-align: right;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Growth metric row */
.growth-metric-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.growth-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .growth-vehicle-grid {
    grid-template-columns: 1fr;
  }
  .funnel-label {
    min-width: 100px;
    font-size: 11px;
  }
  .funnel-value {
    min-width: 50px;
    font-size: 13px;
  }
}

/* === DATE RANGE SELECTOR === */
.date-range-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}
.date-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s;
}
.date-trigger:hover { border-color: var(--bio-cyan); }
.date-dropdown {
  position: fixed;
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 999;
  min-width: 240px;
  overflow: hidden;
}
.date-dropdown.open { display: block; }
.preset-btn {
  display: block;
  width: 100%;
  padding: 9px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.1s;
}
.preset-btn:hover { background: rgba(76,215,246,0.08); color: var(--text-primary); }
.preset-btn.active { background: rgba(76,215,246,0.12); color: var(--bio-cyan); font-weight: 600; }
.compare-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}
.compare-label { color: var(--text-tertiary); font-size: 12px; font-weight: 500; }
.toggle-switch { position: relative; width: 34px; height: 18px; cursor: pointer; display: inline-block; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--space-mid); border-radius: 9px; transition: background 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; background: var(--text-tertiary); border-radius: 50%; transition: all 0.2s; }
.toggle-switch input:checked + .toggle-slider { background: var(--bio-cyan-dim); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); background: #fff; }

/* === REVENUE TARGET CALCULATOR === */
.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--space-mid);
  border-radius: 3px;
  outline: none;
  margin: 8px 0;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--bio-cyan);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(76,215,246,0.2);
}
.calc-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(76,215,246,0.3); }
.calc-target-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  width: 140px;
  text-align: right;
  outline: none;
  font-family: var(--font);
}
.funnel-rate-connector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 6px 24px;
  margin-left: 24px;
  border-left: 2px solid var(--border);
  font-size: 11px;
  color: var(--text-tertiary);
}
.rate-input {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--bio-cyan);
  font-size: 13px;
  font-weight: 600;
  width: 44px;
  text-align: right;
  outline: none;
  font-family: var(--font);
}
.pace-indicator { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; margin-top: 4px; }
.pace-indicator.on-track { color: #22c55e; }
.pace-indicator.behind { color: #f59e0b; }
.pace-indicator.at-risk { color: #ef4444; }
.pace-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* === COMPARISON BADGES === */
.metric-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
}
.metric-trend-badge.positive { color: #22c55e; background: rgba(34,197,94,0.12); }
.metric-trend-badge.negative { color: #ef4444; background: rgba(239,68,68,0.12); }
.metric-trend-badge.neutral { color: #64748b; background: rgba(100,116,139,0.1); }

/* === GROWTH HERO METRICS === */
.growth-hero-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.growth-hero-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}
.growth-hero-card.north-star { border: 1px solid rgba(6,182,212,0.3); }
.growth-hero-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.growth-hero-label.cyan { color: var(--bio-cyan); }
.growth-hero-label.white { color: #ffffff; }
.growth-hero-value {
  font-size: 28px;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.growth-hero-sub {
  font-size: 11px;
  color: #ffffff;
  text-transform: uppercase;
  margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.growth-hero-target {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Loading skeleton */
.growth-loading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
}
.growth-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
}
.skeleton-bar {
  height: 16px;
  background: linear-gradient(90deg, var(--bg-card-elevated) 25%, rgba(255,255,255,0.06) 50%, var(--bg-card-elevated) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}
.skeleton-bar.w60 { width: 60%; }
.skeleton-bar.w40 { width: 40%; }
.skeleton-bar.w80 { width: 80%; }
.skeleton-bar.h32 { height: 32px; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Vehicle card active state */
.growth-vehicle-card.active {
  border-color: var(--bio-cyan);
  box-shadow: var(--shadow-glow);
}
.growth-vehicle-card .vehicle-sparkline {
  margin-top: 8px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .growth-hero-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === FLEET COMMAND CENTRE === */
.hero-fleet::before {
  background: linear-gradient(135deg, #0c1829 0%, #1a2744 50%, #0c1829 100%);
}
.fleet-truck-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
  position: relative;
}
.fleet-truck-card:hover { border-color: var(--bio-cyan); box-shadow: var(--shadow-glow); }
.fleet-truck-card.active { border-color: var(--bio-cyan); box-shadow: var(--shadow-glow); }
.fleet-truck-card .truck-status-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.fleet-truck-name { font-size: 18px; font-weight: 800; color: #fff; }
.fleet-truck-tech { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.fleet-truck-vehicle { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.fleet-truck-meta { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: rgba(255,255,255,0.6); }
.fleet-truck-meta span { display: flex; align-items: center; gap: 4px; }

.fleet-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.fleet-section-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

.maint-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.maint-item:last-child { border-bottom: none; }
.maint-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.maint-status-dot.ok { background: #22c55e; }
.maint-status-dot.due_soon { background: #f59e0b; }
.maint-status-dot.overdue { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.maint-status-dot.unknown { background: #64748b; }
.maint-info { flex: 1; }
.maint-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.maint-detail { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.maint-badge { font-size: 10px; padding: 2px 8px; border-radius: 100px; font-weight: 600; text-transform: uppercase; }
.maint-badge.ok { color: #22c55e; background: rgba(34,197,94,0.12); }
.maint-badge.due_soon { color: #f59e0b; background: rgba(245,158,11,0.12); }
.maint-badge.overdue { color: #ef4444; background: rgba(239,68,68,0.12); }
.maint-badge.unknown { color: #64748b; background: rgba(100,116,139,0.1); }

.equip-card { background: var(--bg-card-elevated); border-radius: 8px; padding: 16px; }
.equip-card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.equip-card-detail { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* === SYSTEMS DASHBOARD === */
.systems-summary-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.systems-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.systems-summary-count {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}
.systems-summary-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.systems-summary-healthy .systems-summary-count { color: #10b981; }
.systems-summary-degraded .systems-summary-count { color: #f59e0b; }
.systems-summary-critical .systems-summary-count { color: #ef4444; }
.systems-summary-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.systems-refresh-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.systems-refresh-btn:hover {
  border-color: var(--bio-cyan);
  color: var(--bio-cyan);
}

.systems-group {
  margin-bottom: 24px;
}
.systems-group-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.systems-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.systems-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.systems-card:hover {
  border-color: var(--bio-cyan);
  box-shadow: var(--shadow-glow);
}
.systems-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.systems-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.systems-card-message {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}
.systems-card-time {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* System status dots */
.sys-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sys-dot-healthy {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}
.sys-dot-degraded {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}
.sys-dot-critical {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  animation: sys-pulse-critical 1.5s ease-in-out infinite;
}
@keyframes sys-pulse-critical {
  0%, 100% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
  50% { box-shadow: 0 0 16px rgba(239, 68, 68, 0.9); }
}

@media (max-width: 1024px) {
  .systems-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .systems-card-grid {
    grid-template-columns: 1fr;
  }
  .systems-summary-bar {
    gap: 16px;
    padding: 12px 16px;
  }
}

/* Approvals - Solar flare */
.hero-approvals::before {
  background: url('https://images.unsplash.com/photo-1614732414444-096e5f1122d5?w=1400&q=80') center/cover no-repeat;
}
.hero-approvals::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,11,22,0.75) 0%, rgba(26,20,8,0.5) 50%, rgba(8,11,22,0.8) 100%);
  z-index: 0;
}
