@import url("refonte.css");

.history-list {
  display: grid;
  gap: 22px;
}

.history-card.current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #65e2ce22;
}

.history-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.history-heading h2 { margin-top: 8px; }

.history-badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--accent);
  color: #08251f;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.history-badge.old { background: #243248; color: var(--text); }

.history-files {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.history-file {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #09121e;
  text-decoration: none;
}

.history-file b { color: var(--text); }
.history-file span { color: var(--muted); font-size: 12px; }
.history-file code { grid-column: 1 / -1; }
.history-list article p { color: var(--muted); }

@media (max-width: 680px) {
  .history-heading { flex-wrap: wrap; }
  .history-files { grid-template-columns: 1fr; }
  .history-file { grid-template-columns: 1fr; }
  .history-file code { grid-column: 1; }
}
