.ghost-line-controls {
  display: grid;
  gap: 14px;
}

.ghost-line-gradient-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ghost-line-gradient-timeline {
  position: relative;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  overflow: hidden;
  touch-action: none;
  background: linear-gradient(90deg, #9ca3af 0%, #9ca3af 100%);
}

.ghost-line-gradient-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.ghost-line-gradient-keyframe {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  cursor: grab;
  z-index: 2;
  touch-action: none;
}

.ghost-line-gradient-keyframe:hover {
  border-color: rgba(255, 255, 255, 1);
}

.ghost-line-gradient-keyframe.is-selected {
  box-shadow: 0 0 0 2px rgba(52, 189, 244, 0.65);
  z-index: 3;
}
