.graphiql-history-header {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-medium);
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.graphiql-history-header button {
  font-size: var(--font-size-inline-code);
  padding: var(--px-6) var(--px-10);
}

.graphiql-history-items {
  margin: var(--px-16) 0 0;
  padding: 0;
  list-style: none;
}

.graphiql-history-item {
  border-radius: var(--border-radius-4);
  color: hsla(var(--color-neutral), var(--alpha-secondary));
  font-size: var(--font-size-inline-code);
  font-family: var(--font-family-mono);
  height: 34px;
  display: flex;
}

.graphiql-history-item:hover {
  color: hsl(var(--color-neutral));
  background-color: hsla(var(--color-neutral), var(--alpha-background-light));
}

.graphiql-history-item:not(:first-child) {
  margin-top: var(--px-4);
}

.graphiql-history-item.editable {
  background-color: hsla(var(--color-primary), var(--alpha-background-medium));
}

.graphiql-history-item.editable > input {
  padding: 0 var(--px-10);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  width: 100%;
  margin: 0;
}

.graphiql-history-item.editable > input::placeholder {
  color: hsla(var(--color-neutral), var(--alpha-secondary));
}

.graphiql-history-item.editable > button {
  color: hsl(var(--color-primary));
  padding: 0 var(--px-10);
}

.graphiql-history-item.editable > button:active {
  background-color: hsla(var(--color-primary), var(--alpha-background-heavy));
}

.graphiql-history-item.editable > button:focus {
  outline: hsl(var(--color-primary)) auto 1px;
}

.graphiql-history-item.editable > button > svg {
  display: block;
}

button.graphiql-history-item-label {
  padding: var(--px-8) var(--px-10);
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  overflow: hidden;
}

button.graphiql-history-item-action {
  color: hsla(var(--color-neutral), var(--alpha-secondary));
  padding: var(--px-8) var(--px-6);
  align-items: center;
  display: flex;
}

button.graphiql-history-item-action:hover {
  color: hsl(var(--color-neutral));
}

button.graphiql-history-item-action > svg {
  width: 14px;
  height: 14px;
}

.graphiql-history-item-spacer {
  height: var(--px-16);
}
