.history-item {
  display: flex;
  align-items: center;
  gap: var(--app-spacing-md);
  width: 100%;
  padding: var(--app-spacing-md);
  background: var(--app-color-surface);
  border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius-md);
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background var(--app-transition-fast), border-color var(--app-transition-fast);
}

.history-item:active {
  background: var(--app-color-surface-alt);
  border-color: var(--app-color-primary);
}

.history-item__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.history-item__date {
  font-size: var(--app-font-size-xs);
  color: var(--app-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.history-item__title {
  font-size: var(--app-font-size-base);
  font-weight: 700;
  color: var(--app-color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item__meta {
  display: flex;
  align-items: center;
  gap: var(--app-spacing-xs);
  font-size: var(--app-font-size-sm);
  color: var(--app-color-text-muted);
  font-variant-numeric: tabular-nums;
}

.history-item__separator { opacity: 0.5; }

.history-item__chevron {
  flex: 0 0 auto;
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: var(--app-color-text-muted);
}

.history-item__chevron svg { width: 100%; height: 100%; }
