.history-view {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 44px clamp(20px, 4vw, 56px);
  background: var(--panel);
  color: var(--zinc-200);
}

.history-head h2 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.history-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.history-stat,
.history-item {
  border: 1px solid var(--card-line);
  border-radius: 8px;
  background: var(--card);
}

.history-stat {
  padding: 16px;
}

.history-stat small,
.history-item small {
  display: block;
  color: var(--zinc-500);
  font-size: 12px;
}

.history-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--zinc-200);
  font-size: 28px;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.history-item strong {
  display: block;
  margin-bottom: 4px;
}

.history-item span {
  color: var(--zinc-300);
  font-weight: 750;
}

.empty-state {
  margin-top: 24px;
  color: var(--zinc-400);
}
