/* ==================== SACRED GUARD: TIMELINE MINIMAP 1:1 ==================== */
/* ==================== INTERACTIVE TIMELINE SCROLLBAR MINI-MAP (GOOGLE AI STUDIO STYLE) ==================== */
/* ==================== INTERACTIVE TIMELINE SCROLLBAR MINI-MAP (GOOGLE AI STUDIO STYLE 1:1) ==================== */
.chat-timeline-minimap {
  position: absolute;
  right: 0px;
  top: 16px;
  bottom: 16px;
  width: 32px;
  z-index: 85;
  pointer-events: auto;
  user-select: none;
  overflow: visible;
  touch-action: none;
  transition: opacity 0.25s ease;
}

.chat-timeline-minimap.hidden {
  display: none !important;
}

.timeline-track-line {
  position: absolute;
  left: 15.5px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  z-index: 1;
  pointer-events: auto;
}

.scrollbar-track {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  min-height: 100%;
  width: 32px;
  box-sizing: border-box;
  padding: 10px 0;
  z-index: 25;
  pointer-events: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.items-scrollbar-item {
  width: 28px;
  height: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  pointer-events: auto;
  outline: none;
}

.items-scrollbar-dot {
  width: 6.2px;
  height: 10.4px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.22);
  border: 1px solid transparent;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.items-scrollbar-item:hover:not(.ms-button-active) .items-scrollbar-dot {
  background-color: var(--primary, #818cf8) !important;
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: none !important;
}

.items-scrollbar-item.ms-button-active .items-scrollbar-dot {
  background-color: #ffffff !important;
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: none !important;
}

.items-scrollbar-item.ms-button-active {
  cursor: default;
}

.scrollbar-handle {
  position: absolute;
  left: 12px;
  width: 8px;
  height: 80px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: grab;
  z-index: 10;
  pointer-events: auto;
  touch-action: none;
  transition: top 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.scrollbar-handle:hover,
.scrollbar-handle.dragging {
  background: rgba(255, 255, 255, 0.32);
}

.scrollbar-handle.dragging {
  cursor: grabbing;
  transition: background 0.15s ease !important;
}

.timeline-tooltip {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: #1E1F20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
  width: max-content;
  max-width: 280px;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  z-index: 100;
  word-break: break-word;
  font-family: var(--font-sans);
}

.timeline-tooltip-header {
  display: none;
}

.timeline-tooltip-text {
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-tooltip::after {
  display: none;
}

.items-scrollbar-item:hover .timeline-tooltip {
  opacity: 1;
  visibility: visible;
  right: 30px;
}

/* TARGET MESSAGE RUNNING BORDER TRACE ON TELEPORT (SOLID THEME COLOR) */
.timeline-running-border-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  border-radius: 12px;
  overflow: visible;
}

.timeline-running-border-svg rect {
  fill: none;
  stroke: var(--primary, #6366F1);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  animation: runBorderCircuit 1.4s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

@keyframes runBorderCircuit {
  0% {
    stroke-dashoffset: var(--dash-len, 1000);
    opacity: 1;
  }
  75% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  85% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}



