.actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  overflow: auto;
}

.action-button,
.ghost-button {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fbff;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.action-button {
  text-align: left;
  padding: 12px 14px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);
}

.ghost-button {
  padding: 6px 10px;
  background: transparent;
}

.action-button:hover,
.ghost-button:hover {
  border-color: var(--accent);
  background: #eef5ff;
}

.action-button:active,
.ghost-button:active {
  transform: translateY(1px);
}

.save-status {
  font-size: 12px;
  color: var(--muted);
}

.editor-tab {
  border: 1px solid var(--border);
  background: #f4f8ff;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.editor-tab:hover {
  border-color: var(--accent);
  background: #eaf2ff;
}

.editor-tab-active {
  border-color: var(--accent);
  background: #dbeafe;
  font-weight: 700;
}

.history-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbfdff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.history-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.history-item-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.history-item-deleting {
  opacity: 0;
  transform: translateX(14px) scale(0.98);
}

.history-item-drop-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.history-item-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.history-action {
  padding: 6px 10px;
  font-size: 12px;
}

.history-action-danger {
  border-color: #ef4444;
  color: #b91c1c;
}
