.skip-dashboard-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 10050;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(var(--odei-color-jade-rgb), 0.55);
  background: rgba(5, 10, 18, 0.96);
  color: rgba(226, 232, 240, 0.95);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: top 0.2s ease;
}

.skip-dashboard-link:focus {
  top: 10px;
  outline: 2px solid rgba(var(--odei-color-gold-rgb), 0.85);
  outline-offset: 2px;
}

/* Keep pulse animation in stylesheet to avoid inline SVG <style> parsing issues. */
@keyframes navPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.nav-pulse-group {
  transform-origin: 60px 60px;
  animation: navPulse 10s ease-in-out infinite;
}

/* Collapsible Recent Conversations Panel — no entry transition. */
#recent-conversations-section {
  transition: none;
}

/* Only animate collapse/expand when user actively toggles the panel. */
#recent-conversations-section.is-toggling {
  transition:
    flex 0.3s ease-in-out,
    max-width 0.3s ease-in-out;
}

#recent-conversations-section.conversations-collapsed {
  flex: 0 0 50px !important;
  max-width: 50px;
}

#recent-conversations-section.conversations-collapsed .hide-when-collapsed {
  display: none !important;
}

#recent-conversations-section.conversations-collapsed #recent-conversations-list {
  display: none;
}

.recent-conversations-section {
  flex: 1 1 0%;
  min-width: 0;
}

.rc-header-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 80%);
}

.rc-conversations-content-bg {
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.memory-graph-degraded-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px;
  color: #94a3b8;
}

.memory-graph-degraded-icon {
  margin-bottom: 16px;
  color: var(--odei-color-jade-500);
}

.memory-graph-degraded-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #e2e8f0;
}

.memory-graph-degraded-reason {
  margin: 0 0 16px 0;
  font-size: 14px;
  max-width: 300px;
}

.memory-graph-degraded-note {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.memory-tooltip-heading--graph {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--memory-tooltip-accent, var(--odei-color-jade-500));
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

.memory-tooltip-meta-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  opacity: 0.9;
}

.memory-tooltip-key {
  color: #94a3b8;
}

.memory-tooltip-value {
  text-align: right;
}

.memory-tooltip-roi-row {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
}

.memory-tooltip-roi-value {
  color: var(--memory-tooltip-accent, var(--odei-color-jade-500));
}

.memory-graph-context-lost-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.memory-graph-context-lost-subtitle {
  font-size: 13px;
  color: #7c889a;
}

/* Companion Panel Collapse — transition disabled to prevent sidebar slide-in.
   The .is-toggling class can re-enable if user-initiated collapse is needed. */
#companion-terminal-section {
  transition: none;
}

#companion-terminal-section.companion-collapsed {
  flex: 0 0 50px !important;
  max-width: 50px;
}

#companion-terminal-section.companion-collapsed .hide-when-collapsed {
  display: none !important;
}

#companion-terminal-section.companion-collapsed #companion-terminal {
  display: none;
}

/* Recent Conversations Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Conversation rows render instantly — no entrance animation. */
.conversation-row {
  animation: none;
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav-pulse-group {
    animation: none !important;
  }
}

/* Smooth scrollbar for conversations */
#recent-conversations-list::-webkit-scrollbar {
  width: 10px;
}

#recent-conversations-list::-webkit-scrollbar-track {
  background: rgba(10, 16, 28, 0.72);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(var(--odei-color-jade-rgb), 0.12);
}

#recent-conversations-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--odei-color-jade-rgb), 0.65), rgba(var(--odei-color-jade-rgb), 0.32));
  border: 2px solid transparent;
  background-clip: content-box;
  box-shadow: 0 0 12px rgba(var(--odei-color-jade-rgb), 0.25);
}

#recent-conversations-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(var(--odei-color-jade-rgb), 0.82), rgba(var(--odei-color-gold-rgb), 0.48));
}

/* Loading shimmer effect */
.loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Focus states for accessibility */
.conversation-row:focus-visible {
  outline: 2px solid rgba(16, 185, 129, 0.6);
  outline-offset: 2px;
}

/* Pulse animation for empty state */
@keyframes pulse-soft {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.75;
  }
}

.animate-pulse {
  animation: pulse-soft 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* MEMORY LEGEND DOT COLORS BEGIN */
.memory-legend-dot-small--hex-2563eb {
  background: #2563eb;
}
.memory-legend-dot-small--hex-ec4899 {
  background: #ec4899;
}
.memory-legend-dot-small--hex-8b5cf6 {
  background: #8b5cf6;
}
.memory-legend-dot-small--hex-fcd34d {
  background: #fcd34d;
}
.memory-legend-dot-small--hex-f97316 {
  background: #f97316;
}
.memory-legend-dot-small--hex-14b8a6 {
  background: #14b8a6;
}
.memory-legend-dot-small--hex-ef4444 {
  background: #ef4444;
}
.memory-legend-dot-small--hex-22d3ee {
  background: #22d3ee;
}
.memory-legend-dot-small--hex-fb7185 {
  background: #fb7185;
}
.memory-legend-dot-small--hex-fca5a5 {
  background: #fca5a5;
}
.memory-legend-dot-small--hex-94a3b8 {
  background: #94a3b8;
}
.memory-legend-dot-small--hex-a855f7 {
  background: #a855f7;
}
.memory-legend-dot-small--hex-0ea5e9 {
  background: #0ea5e9;
}
.memory-legend-dot-small--hex-38bdf8 {
  background: #38bdf8;
}
.memory-legend-dot-small--hex-67e8f9 {
  background: #67e8f9;
}
.memory-legend-dot-small--hex-84cc16 {
  background: #84cc16;
}
.memory-legend-dot-small--hex-65a30d {
  background: #65a30d;
}
.memory-legend-dot-small--hex-a3e635 {
  background: #a3e635;
}
.memory-legend-dot-small--hex-4ade80 {
  background: #4ade80;
}
.memory-legend-dot-small--hex-f59e0b {
  background: #f59e0b;
}
.memory-legend-dot-small--hex-fdba74 {
  background: #fdba74;
}
.memory-legend-dot-small--hex-facc15 {
  background: #facc15;
}
.memory-legend-dot-small--hex-fde68a {
  background: #fde68a;
}
.memory-legend-dot-small--hex-fb923c {
  background: #fb923c;
}
.memory-legend-dot-small--hex-818cf8 {
  background: #818cf8;
}
.memory-legend-dot-small--hex-a5b4fc {
  background: #a5b4fc;
}
.memory-legend-dot-small--hex-93c5fd {
  background: #93c5fd;
}
.memory-legend-dot-small--hex-c4b5fd {
  background: #c4b5fd;
}
.memory-legend-dot-small--hex-f472b6 {
  background: #f472b6;
}
.memory-legend-dot-small--hex-fbbf24 {
  background: #fbbf24;
}
.memory-legend-dot-small--hex-fde047 {
  background: #fde047;
}
.memory-legend-dot-small--hex-06b6d4 {
  background: #06b6d4;
}
.memory-legend-dot-small--hex-2dd4bf {
  background: #2dd4bf;
}
.memory-legend-dot-small--hex-c084fc {
  background: #c084fc;
}
.memory-legend-dot-small--hex-f9a8d4 {
  background: #f9a8d4;
}
/* MEMORY LEGEND DOT COLORS END */
