/* Force inline rendering of mention attachment wrappers */
action-text-attachment:has(.mention-pill) {
  display: inline-flex !important;
  margin: 0;
}

/* Mention pills inside the Lexxy editor */
.mention-pill {
  display: inline-flex;
  align-items: center;
  background-color: rgba(99, 102, 241, 0.15);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.8em;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.5;
}

.dark .mention-pill {
  background-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.4);
}

.timeline {
  overflow-x: auto;
  max-width: 100vw;
}

.timeline .zoom-slider {
  margin-bottom: 40px;
}

.timeline hr {
  width: 100%;
  height: 0.25rem;
}

.timeline .events > li {
  flex-basis: 400px;
  flex-grow: 1;
  flex-shrink: 0;
  transition: flex-basis 0.3s ease;
  min-width: 235px;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.dark .zoom-controls {
  background: #1f2937;
  border-color: rgba(75, 85, 99, 0.6);
}

.zoom-slider {
  width: 150px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #e5e7eb;
  outline: none;
  border-radius: 2px;
}

.dark .zoom-slider {
  background: #4b5563;
}

.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #6366f1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.zoom-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #6366f1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.zoom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.zoom-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.dark .zoom-slider::-webkit-slider-thumb {
  background: #818cf8;
}

.dark .zoom-slider::-moz-range-thumb {
  background: #818cf8;
}