/* Read-only history variant; shared auth/public tokens own visual appearance. */
.history-shell {
  width: min(100% - 40px, 1000px);
  margin-top: 36px;
}
.history-shell .auth-brand a {
  margin-left: auto;
}
.history-controls:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
}
.history-controls label {
  display: grid;
  gap: 6px;
}
.history-controls select {
  min-width: 0;
  min-height: 44px;
  width: 100%;
}
#results {
  min-height: 180px;
}
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.history-row {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  overflow-wrap: anywhere;
}
.history-row h2 {
  margin: 0 0 4px;
}
.history-row p {
  margin: 4px 0;
}
.history-row code,
.history-detail code {
  overflow-wrap: anywhere;
}
.history-row .button {
  margin-top: 8px;
}
.history-detail dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 16px;
}
.history-detail dt {
  color: var(--muted);
}
.history-detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.history-detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 500px;
  overflow: auto;
  background: var(--tint);
  padding: 16px;
}
.history-shell a {
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .history-shell {
    width: calc(100% - 24px);
  }
  .history-controls:not([hidden]) {
    grid-template-columns: 1fr;
  }
  .history-detail dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .history-detail dd {
    margin-bottom: 12px;
  }
}
