/* Mission Control — Custom Styles */

/* Fix browser autofill overriding dark theme input styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px var(--color-surface-card) inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
}

:root {
  /* Surfaces — Industrial Technical */
  --color-surface: #0C0C0C;
  --color-surface-card: #16171B;
  --color-surface-elevated: #1E2026;

  /* Accent — Neon Green */
  --color-accent: #00FF88;
  --color-accent-muted: rgba(0, 255, 136, 0.08);
  --color-accent-hover: rgba(0, 255, 136, 0.15);
  --color-accent-glow: rgba(0, 255, 136, 0.25);

  /* Semantic */
  --color-critical: #FF4444;
  --color-critical-muted: rgba(255, 68, 68, 0.12);
  --color-warning: #FF8800;
  --color-warning-muted: rgba(255, 136, 0, 0.12);
  --color-success: #00FF88;
  --color-success-muted: rgba(0, 255, 136, 0.12);
  --color-info: #3B82F6;
  --color-info-muted: rgba(59, 130, 246, 0.12);

  /* Text */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #F4F4F5;
  --color-text-muted: #71717A;
  --color-text-disabled: #6A6A6A;

  /* Borders */
  --color-border: #2A2B30;
  --color-border-subtle: #2f2f2f;
  --color-border-accent: rgba(0, 255, 136, 0.25);

  /* Role colors */
  --color-role-ceo: #FFD700;
  --color-role-coo: #00FF88;
  --color-role-cfo: #FF8800;
  --color-role-core: #00D4FF;
  --color-role-specialist: #A78BFA;

  /* Typography — Industrial Technical */
  --font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --font-size-2xs: 0.625rem;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;

  /* Spacing (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;

  /* Radius — sharp, technical */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
  --shadow-glow-accent: 0 0 20px rgba(0, 255, 136, 0.20);
  --shadow-glow-success: 0 0 20px rgba(0, 255, 136, 0.15);
  --shadow-glow-critical: 0 0 16px rgba(255, 68, 68, 0.25);

  /* Transitions */
  --transition-fast: 0.1s ease;
  --transition-base: 0.15s ease;
  --transition-slow: 0.25s ease;
}

/* Data typography — monospace for values, IDs, timestamps */
.font-data {
  font-family: var(--font-mono);
  color: var(--color-accent);
}

/* Stats bar HUD readout style */
#stats-bar > div {
  border-left: 2px solid var(--color-accent);
  padding-left: 12px;
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
#stats-bar .text-critical,
#stats-bar [id="stat-unacked"] {
  color: var(--color-critical) !important;
}

/* Apply sans-serif base */
body {
  font-family: var(--font-sans);
  background: var(--color-surface);
  min-height: 100vh;
}

/* Scanline overlay — CRT effect */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.12) 2px,
    rgba(0,0,0,0.12) 4px
  );
  animation: scanline-flicker 8s ease-in-out infinite;
}

/* Vignette overlay — darkened edges */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0,0,0,0.4) 100%);
}

@keyframes scanline-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

#app, body > *:not(style):not(script):not(link) {
  position: relative;
  z-index: 3;
}

/* Phosphor text glow for brand-colored text */
.phosphor-glow {
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

/* Comment-style label prefix */
.comment-label::before {
  content: '// ';
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* Status indicator dots */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.running {
  background-color: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent-glow);
  animation: radar-ping 2s ease-out infinite;
}

/* Radar ping animation for running agents */
@keyframes radar-ping {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.status-dot.error {
  background-color: var(--color-critical);
  box-shadow: 0 0 6px var(--color-critical);
  animation: pulse-dot 1s ease-in-out infinite;
}

.status-dot.stopped {
  background-color: var(--color-text-muted);
}

.status-dot.idle {
  background-color: var(--color-warning);
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Agent card */
.agent-card {
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow), transform var(--transition-base);
  background: var(--color-surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
}

.agent-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.08);
}

.agent-card.running {
  border-color: rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.10), var(--shadow-md);
}

.agent-card.error {
  border-color: rgba(255, 68, 68, 0.3);
  box-shadow: var(--shadow-glow-critical), inset 0 1px 0 rgba(255, 68, 68, 0.1);
}

/* Control buttons */
.ctrl-btn {
  font-size: 11px;
  padding: var(--space-1) 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ctrl-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ctrl-btn.start {
  color: var(--color-success);
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.08);
}
.ctrl-btn.start:hover:not(:disabled) {
  background: rgba(0, 255, 136, 0.15);
  border-color: rgba(0, 255, 136, 0.5);
}

.ctrl-btn.stop {
  color: var(--color-critical);
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}
.ctrl-btn.stop:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
}

.ctrl-btn.restart {
  color: var(--color-warning);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}
.ctrl-btn.restart:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
}

.ctrl-btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  opacity: 1;
}
.ctrl-btn.loading::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-border);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

/* Button system */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  background: transparent;
  border: 1px solid rgba(0,255,136,0.5);
  color: var(--color-accent);
}
.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  box-shadow: 0 0 12px rgba(0,255,136,0.25);
  border-color: var(--color-accent);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}
.btn-secondary:hover:not(:disabled) {
  color: var(--color-text-primary);
  border-color: var(--color-text-secondary);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  color: var(--color-text-primary);
  background: rgba(148, 163, 184, 0.08);
}
.btn-danger {
  background: transparent;
  color: var(--color-critical);
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.5);
}
.btn-sm {
  padding: var(--space-1) var(--space-2);
  font-size: 0.6875rem;
}
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Severity icons & colors */
.severity-critical { color: var(--color-critical); }
.severity-warning { color: var(--color-warning); }
.severity-info { color: var(--color-info); }

.severity-badge {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-family: var(--font-sans);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.severity-badge.critical {
  color: var(--color-critical);
  background: var(--color-critical-muted);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.severity-badge.warning {
  color: var(--color-warning);
  background: var(--color-warning-muted);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.severity-badge.info {
  color: var(--color-info);
  background: var(--color-info-muted);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Agent name badge in events */
.agent-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--color-accent-muted);
  color: var(--color-accent);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

/* Event body expandable */
.event-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.event-body.expanded {
  max-height: 300px;
}

/* Event row */
.event-row {
  transition: background-color var(--transition-base);
}
.event-row:hover {
  background-color: rgba(0, 255, 136, 0.04);
}

/* Acknowledge button */
.ack-btn {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--color-text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
}
.ack-btn:hover {
  color: var(--color-text-primary);
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.08);
}
.ack-btn.acked {
  color: var(--color-text-muted);
  border-color: rgba(71, 85, 105, 0.2);
  cursor: default;
}

/* Event feed scrollbar */
.event-scroll::-webkit-scrollbar {
  width: 4px;
}
.event-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.event-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,255,136,0.15);
  border-radius: 2px;
}
.event-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0,255,136,0.3);
}

/* Filter buttons */
.filter-btn.active {
  border-color: var(--color-accent) !important;
  color: var(--color-accent) !important;
}

/* Critical event flash */
@keyframes critical-flash {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(239, 68, 68, 0.08); }
}

.event-row.flash {
  animation: critical-flash 0.6s ease 2;
}

/* SSE connected state */
#sse-dot.connected {
  background-color: var(--color-success);
  box-shadow: 0 0 4px var(--color-success);
}

#sse-dot.connecting {
  background-color: var(--color-warning);
  animation: pulse-dot 1s ease-in-out infinite;
}

/* ===== Tab Navigation ===== */
.tab-btn {
  font-size: 12px;
  padding: var(--space-2) var(--space-4);
  color: var(--color-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition: color var(--transition-base), border-color var(--transition-base);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tab-btn:hover {
  color: var(--color-text-secondary);
}

.tab-btn.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  text-shadow: 0 0 8px rgba(0,255,136,0.4);
}

/* ===== Kanban Board ===== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  min-height: 400px;
}

@media (max-width: 1024px) {
  .kanban-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .kanban-board {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: var(--space-2);
  }
  .kanban-col {
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

.kanban-col {
  background: var(--color-surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.kanban-col-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.kanban-col-count {
  font-size: 10px;
  color: var(--color-text-muted);
  background: rgba(71, 85, 105, 0.2);
  padding: 1px 6px;
  border-radius: 9999px;
  min-width: 18px;
  text-align: center;
}

.kanban-col-body {
  flex: 1;
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 500px;
}

/* Kanban column collapse */
.kanban-col.collapsed .kanban-col-body {
  display: none;
}
.kanban-col-toggle {
  cursor: pointer;
  transition: transform var(--transition-base);
  color: var(--color-text-muted);
}
.kanban-col-toggle:hover {
  color: var(--color-text-secondary);
}
.kanban-col.collapsed .kanban-col-toggle {
  transform: rotate(-90deg);
}

/* Kanban task card */
.task-card {
  background: var(--color-surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}

.task-card:hover {
  border-color: var(--color-border-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.task-card.sortable-ghost {
  opacity: 0.4;
  border-color: var(--color-accent);
}

.task-card.sortable-drag {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

.task-card-title {
  font-size: 12px;
  color: var(--color-text-primary);
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.3;
}

.task-card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Priority badges */
.priority-badge {
  font-size: 9px;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-family: var(--font-sans);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.priority-badge.urgent {
  color: var(--color-critical);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.priority-badge.high {
  color: var(--color-warning);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.priority-badge.normal {
  color: var(--color-text-secondary);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.priority-badge.low {
  color: var(--color-text-muted);
  background: rgba(71, 85, 105, 0.1);
  border: 1px solid rgba(71, 85, 105, 0.2);
}

/* Status pills */
.status-pill {
  font-size: 9px;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-family: var(--font-sans);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.status-pill.inbox {
  color: var(--color-text-secondary);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.status-pill.assigned {
  color: var(--color-accent);
  background: var(--color-accent-muted);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.status-pill.in_progress {
  color: var(--color-warning);
  background: var(--color-warning-muted);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-pill.review {
  color: var(--color-role-specialist);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.status-pill.done {
  color: var(--color-success);
  background: var(--color-success-muted);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

/* Tag pills */
.tag-pill {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--color-text-secondary);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

/* Agent avatar (initials circle) */
.agent-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-primary);
  background: var(--color-accent);
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Time-since label */
.time-since {
  font-size: 9px;
  color: var(--color-text-muted);
}

/* ===== Level Badges ===== */
.level-badge {
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.level-badge.LEAD {
  color: var(--color-warning);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.level-badge.INT {
  color: var(--color-accent);
  background: rgba(0, 255, 136, 0.10);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.level-badge.SPC {
  color: var(--color-text-secondary);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* ===== Task Detail Panel ===== */
#task-detail-panel {
  transition: transform 0.2s ease;
}

/* ===== Activity Feed ===== */
.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--color-surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: background-color var(--transition-base);
}

.activity-row:hover {
  background: rgba(0, 255, 136, 0.04);
}

.activity-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.activity-icon.task_created { background: rgba(0, 255, 136, 0.10); color: var(--color-accent); }
.activity-icon.task_claimed { background: rgba(245, 158, 11, 0.15); color: var(--color-warning); }
.activity-icon.task_completed { background: rgba(34, 197, 94, 0.15); color: var(--color-success); }
.activity-icon.task_updated { background: rgba(148, 163, 184, 0.15); color: var(--color-text-secondary); }
.activity-icon.new_message { background: rgba(167, 139, 250, 0.15); color: var(--color-role-specialist); }
.activity-icon.openclaw_start { background: rgba(0, 255, 136, 0.10); color: var(--color-accent); }
.activity-icon.openclaw_end { background: rgba(34, 197, 94, 0.15); color: var(--color-success); }
.activity-icon.openclaw_error { background: rgba(239, 68, 68, 0.15); color: var(--color-critical); }
.activity-icon.task_archived { background: rgba(71, 85, 105, 0.15); color: var(--color-text-muted); }

/* ===== Squad Chat Messages ===== */
.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.chat-msg-body {
  flex: 1;
}

.chat-msg-author {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-accent);
}

.chat-msg-author.system {
  color: var(--color-text-muted);
}

.chat-msg-time {
  font-size: 9px;
  color: var(--color-text-muted);
  margin-left: 6px;
}

.chat-msg-text {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-top: 2px;
}

.chat-msg-text .mention {
  color: var(--color-accent);
  font-weight: 600;
}

/* ===== Mention Dropdown ===== */
#mention-dropdown {
  min-width: 180px;
}

.mention-option {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.mention-option:hover,
.mention-option.selected {
  background: var(--color-accent-hover);
}

/* ===== Notification Badge (agent cards) ===== */
.agent-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: var(--color-critical);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Kanban column drop highlight */
.kanban-col-body.sortable-chosen {
  background: rgba(0, 255, 136, 0.05);
}

/* ===== Skeleton Loaders ===== */
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-card) 25%, var(--color-surface-elevated) 50%, var(--color-surface-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}
.skeleton-card {
  height: 160px;
  border-radius: var(--radius-md);
}
.skeleton-stat {
  height: 72px;
  border-radius: var(--radius-md);
}
.skeleton-row {
  height: 56px;
  border-radius: var(--radius-md);
}

/* ===== CSS Tooltips ===== */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
  font-size: var(--font-size-2xs);
  font-family: var(--font-sans);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  z-index: 100;
}
[data-tooltip]:hover::after {
  opacity: 1;
}

/* ===== Command Palette ===== */
.cmd-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 70;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  backdrop-filter: blur(4px);
}
.cmd-palette {
  background: var(--color-surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
}
.cmd-palette-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--space-4);
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  font-family: var(--font-sans);
  outline: none;
}
.cmd-palette-input::placeholder {
  color: var(--color-text-muted);
}
.cmd-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.cmd-result-item:hover,
.cmd-result-item.selected {
  background: var(--color-accent-muted);
}
.cmd-result-type {
  font-size: var(--font-size-2xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  min-width: 48px;
}
.cmd-result-name {
  flex: 1;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
}
.cmd-result-hint {
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
}
.cmd-palette-footer {
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  gap: var(--space-4);
  font-size: var(--font-size-2xs);
  color: var(--color-text-muted);
}
.cmd-palette-footer kbd {
  background: var(--color-surface-elevated);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  border: 1px solid var(--color-border);
}

/* ===== Shortcuts / Confirm Dialog ===== */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.dialog-panel {
  background: var(--color-surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  max-width: 420px;
  width: 90%;
}
.dialog-panel h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}
.dialog-panel p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

/* ===== Undo Toast Progress Bar ===== */
.toast-undo-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  animation: undo-countdown 5s linear forwards;
}
@keyframes undo-countdown {
  from { width: 100%; }
  to { width: 0%; }
}

/* ===== Notification Dropdown ===== */
.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-height: 384px;
  overflow-y: auto;
  background: var(--color-surface-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 60;
}
.notif-item {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.notif-item:hover {
  background: rgba(0, 255, 136, 0.05);
}
.notif-item:last-child {
  border-bottom: none;
}

/* ===== Task Detail Bottom Sheet (mobile) ===== */
@media (max-width: 640px) {
  #task-detail-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-left: none;
    border-bottom: none;
  }
}

/* ===== Touch Targets ===== */
@media (pointer: coarse) {
  .ctrl-btn, .ack-btn, .filter-btn, .tab-btn, .btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ===== Focus Visible ===== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ===== Global Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,255,136,0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,255,136,0.3);
}

/* ===== HUD Card — Corner Brackets ===== */
.hud-card {
  position: relative;
  background: var(--color-surface-card);
  border: none;
  padding: 16px;
}
.hud-card::before,
.hud-card::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.hud-card::before {
  top: 0; left: 0;
  border-top: 2px solid var(--color-border);
  border-left: 2px solid var(--color-border);
}
.hud-card::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid var(--color-border);
  border-right: 2px solid var(--color-border);
}
.hud-card:hover::before,
.hud-card:hover::after {
  border-color: var(--color-accent);
  transition: border-color var(--transition-slow);
}
/* Inner corner brackets */
.hud-card-inner::before,
.hud-card-inner::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.hud-card-inner::before {
  top: 0; right: 0;
  border-top: 2px solid var(--color-border);
  border-right: 2px solid var(--color-border);
}
.hud-card-inner::after {
  bottom: 0; left: 0;
  border-bottom: 2px solid var(--color-border);
  border-left: 2px solid var(--color-border);
}
.hud-card:hover .hud-card-inner::before,
.hud-card:hover .hud-card-inner::after {
  border-color: var(--color-accent);
  transition: border-color var(--transition-slow);
}

/* ===== Agent HUD Card overrides ===== */
.agent-card.hud-card {
  border: none;
  border-radius: 0;
  transition: transform var(--transition-base);
}
.agent-card.hud-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.06);
}

/* Agent monogram with role-colored ring */
.agent-monogram {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  text-transform: uppercase;
}

/* ===== Stats HUD Mini Cards ===== */
.stat-hud::before,
.stat-hud::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
}
.stat-hud::before {
  top: 0; left: 0;
  border-top: 1px solid var(--color-border-accent);
  border-left: 1px solid var(--color-border-accent);
}
.stat-hud::after {
  bottom: 0; right: 0;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.stat-hud-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.stat-hud-label::before {
  content: '// ';
}

.stat-hud-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-top: 4px;
}

/* ===== Toast — Green Accent ===== */
.toast-hud {
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
}

/* ===== Feature 1: Matrix Binary Cascade Background ===== */
#matrix-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
}

/* ===== Feature 2: Dark Glassmorphism Cards ===== */
.glass-card {
  background: rgba(30, 32, 38, 0.90);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(0, 255, 136, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}
.glass-card:hover {
  border-color: rgba(0, 255, 136, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 136, 0.06);
  transform: translateY(-2px);
}

/* Apply glassmorphism to agent cards */
.agent-card.hud-card {
  background: rgba(30, 32, 38, 0.90);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 24px rgba(0, 0, 0, 0.4);
}
.agent-card.hud-card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 255, 136, 0.08);
}

/* Glassmorphism for stat HUD cards */
.stat-hud {
  position: relative;
  padding: 12px 16px;
  background: rgba(30, 32, 38, 0.90);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Glassmorphism for kanban columns */
.kanban-col {
  background: rgba(22, 23, 27, 0.90);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
}

/* Glassmorphism for header */
header {
  background: rgba(22, 23, 27, 0.92) !important;
  backdrop-filter: blur(20px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.3) !important;
}

/* ===== Feature 4: Odometer Flip Counters ===== */
.odometer {
  display: inline-flex;
  overflow: hidden;
  line-height: 1;
}
.odometer-digit {
  display: inline-block;
  overflow: hidden;
  /* line-height set explicitly so 1.2em height is stable regardless of inherited line-height */
  line-height: 1.2;
  height: 1.2em;
  position: relative;
}
.odometer-digit-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.odometer-digit-inner span {
  display: block;
  height: 1.2em;
  line-height: 1.2em;
  text-align: center;
  min-width: 0.65em;
}

/* ===== Feature 5: Neon Cursor Trail ===== */
#cursor-trail {
  mix-blend-mode: screen;
}

/* ===== Feature 6: SVG Morphing Status ===== */
.status-morph {
  width: 10px;
  height: 10px;
  display: inline-block;
  flex-shrink: 0;
}
.status-morph svg {
  width: 100%;
  height: 100%;
}
.status-morph.running svg path {
  fill: var(--color-accent);
  filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.5));
  animation: morph-spin 3s linear infinite;
}
.status-morph.idle svg path {
  fill: var(--color-warning);
  filter: drop-shadow(0 0 3px rgba(255, 136, 0, 0.4));
}
.status-morph.error svg path {
  fill: var(--color-critical);
  filter: drop-shadow(0 0 4px rgba(255, 68, 68, 0.5));
  animation: morph-shake 0.5s ease-in-out infinite;
}
.status-morph.stopped svg path {
  fill: var(--color-text-muted);
}

@keyframes morph-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes morph-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px) rotate(-2deg); }
  75% { transform: translateX(1px) rotate(2deg); }
}

/* ===== Feature 7: Agent State Animations ===== */
/* Breathe — idle agents */
.agent-state-idle .agent-monogram {
  animation: agent-breathe 3s ease-in-out infinite;
}
@keyframes agent-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* Orbit ring — running agents */
.agent-state-running .agent-monogram {
  position: relative;
}
.agent-state-running .agent-monogram::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--color-accent);
  animation: agent-orbit 2s linear infinite;
}
@keyframes agent-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Shake — error agents */
.agent-state-error .agent-monogram {
  animation: agent-shake 0.5s ease-in-out 1, agent-error-pulse 3s ease-in-out infinite;
}
@keyframes agent-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-1px); }
  20%, 40%, 60%, 80% { transform: translateX(1px); }
}
@keyframes agent-error-pulse {
  0%, 100% { border-color: transparent; }
  50% { border-color: rgba(255, 68, 68, 0.4); }
}

/* Dimmed — stopped agents */
.agent-state-stopped .agent-monogram {
  filter: grayscale(0.8);
  opacity: 0.5;
}
.agent-state-stopped .agent-card {
  opacity: 0.7;
}

/* ===== Feature 9: GSAP Text Reveal ===== */
.split-text-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
}
.split-text-reveal.revealed .char {
  opacity: 1;
  transform: translateY(0);
}

/* Globe CSS removed — topology SVG org chart serves network visualization */

/* ===== Sonification Toggle ===== */
.sound-toggle {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.sound-toggle:hover { opacity: 0.8; }
.sound-toggle.active { opacity: 1; color: var(--color-accent); }

/* ===== Agent GSAP Flip Overlay ===== */
.agent-flip-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(8px);
}
.agent-flip-overlay.hidden { display: none; }
.agent-flip-detail {
  background: rgba(30, 32, 38, 0.90);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(0, 255, 136, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 0 40px rgba(0,255,136,0.05);
  border-radius: 4px;
  padding: 24px;
  width: 400px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}
.agent-flip-detail .flip-close {
  float: right;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.agent-flip-detail .flip-close:hover { color: #fff; }
.agent-flip-detail .flip-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

/* ===== CRM Pipeline ===== */

.crm-kanban-board {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1200px) {
  .crm-kanban-board { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .crm-kanban-board { grid-template-columns: 1fr; }
}

.crm-card {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.crm-card:hover {
  border-color: var(--color-border-accent);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.08);
}

.crm-card-company { font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.crm-card-vertical { font-size: 10px; color: var(--color-text-muted); margin-bottom: 6px; }

.crm-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}
.crm-score-badge.hot { background: var(--color-critical-muted); color: var(--color-critical); }
.crm-score-badge.warm { background: var(--color-warning-muted); color: var(--color-warning); }
.crm-score-badge.cool { background: var(--color-info-muted); color: var(--color-info); }

.crm-cadence-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.crm-cadence-dot.hot { background: var(--color-critical); }
.crm-cadence-dot.warm { background: var(--color-warning); }
.crm-cadence-dot.cool { background: var(--color-info); }

.crm-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.crm-card-time {
  font-size: 9px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* CRM Conversion Funnel */
.crm-funnel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.crm-funnel-label {
  width: 72px;
  flex-shrink: 0;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  text-transform: uppercase;
  text-align: right;
}

.crm-funnel-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
}

.crm-funnel-bar {
  height: 100%;
  border-radius: 4px;
  min-width: 2px;
  transition: width 0.6s ease;
}

.crm-funnel-count {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 28px;
}

.crm-funnel-dropoff {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
}

/* CRM Staleness Indicators */
.crm-card {
  position: relative;
  overflow: hidden;
}

.crm-staleness-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  border-radius: 3px 0 0 3px;
  transition: background-color var(--transition-base);
}

.stale-green .crm-staleness-bar {
  background: var(--color-accent);
}

.stale-yellow .crm-staleness-bar {
  background: var(--color-warning);
}

.stale-red .crm-staleness-bar {
  background: var(--color-critical);
  animation: staleness-pulse 2s ease-in-out infinite;
}

.stale-red:hover {
  border-color: rgba(255, 68, 68, 0.3) !important;
  box-shadow: var(--shadow-glow-critical);
}

@keyframes staleness-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.crm-overdue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  font-size: 12px;
}
.crm-overdue-row .overdue-time {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--color-warning);
}

/* CRM Co-Pilot Panel */
.copilot-rec-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-left: 3px solid var(--color-accent);
  border-radius: 6px;
  padding: 8px 10px;
  transition: background var(--transition-base), border-color var(--transition-base);
}
.copilot-rec-card:hover {
  background: var(--color-surface-elevated);
  border-left-color: var(--color-accent) !important;
}

.copilot-activity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background var(--transition-base);
}
.copilot-activity-row:hover {
  background: var(--color-surface-elevated);
}

.copilot-action-btn {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-accent);
  color: var(--color-accent);
  background: var(--color-accent-muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
}
.copilot-action-btn:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent);
}
.copilot-action-btn:active {
  transform: scale(0.97);
}

/* ===== Reduced Motion — WCAG accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #matrix-bg, #cursor-trail {
    display: none !important;
  }
  .odometer-digit-inner {
    transition: none !important;
    transform: none !important;
  }
  .split-text-reveal .char {
    opacity: 1 !important;
    transform: none !important;
  }
}
