.history-entry {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.history-entry-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.history-entry-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-delete-button,
.history-cancel-button,
.history-expand-button {
  border: 0;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}

.history-delete-button,
.history-cancel-button {
  min-height: 34px;
  padding: 0 9px;
  font-size: 0.74rem;
}

.history-delete-button {
  background: var(--danger-bg);
  color: var(--danger);
}

.history-cancel-button {
  background: var(--soft-2);
  color: var(--subtle);
}

.history-expand-button {
  width: 100%;
  min-height: 38px;
  margin-top: 9px;
  padding: 0 10px;
  background: var(--soft-2);
  color: var(--subtle);
  font-size: 0.78rem;
}

.history-delete-button:active,
.history-cancel-button:active,
.history-expand-button:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .history-delete-button:active,
  .history-cancel-button:active,
  .history-expand-button:active {
    transform: none;
  }
}

@media (max-width: 430px) {
  .history-entry {
    grid-template-columns: 1fr;
  }

  .history-entry-actions {
    justify-content: flex-start;
  }
}
