/* ─── History page styles ─────────────────────────────── */

.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.history-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.history-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.history-card-header h2 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.history-card-header .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.history-table-wrap {
  overflow-x: auto;
  max-height: 480px;
  overflow-y: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
}

.history-table th {
  text-align: left;
  padding: 10px 16px;
  color: var(--text-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  position: sticky;
  top: 0;
}

.history-table td {
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.history-table tbody tr:last-child td { border-bottom: none; }
.history-table tbody tr:hover td      { background: var(--surface2); }

.empty-state {
  padding: 40px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

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