.recent-history {
  width: 100%;
  max-width: 600px;
  margin: 18px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.recent-history__header {
  margin-bottom: 12px;
}

.recent-history__title {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recent-history__list {
  display: grid;
  gap: 8px;
}

.recent-history__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-history__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.recent-history__label {
  min-width: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-history__action {
  flex-shrink: 0;
  color: rgba(255, 124, 171, 0.78);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 150ms ease, opacity 150ms ease;
}

.recent-history__action:hover,
.recent-history__action:focus-visible {
  color: rgba(255, 124, 171, 0.98);
  outline: none;
}

@media (max-width: 640px) {
  .recent-history {
    margin-top: 16px;
    padding: 16px;
  }

  .recent-history__item {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
