/* Experiment Chat — Private History */

.history-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.history-item {
  background: #241a3c;
  border: 1px solid #45375f;
  border-radius: 16px;
  padding: 22px;
}

.history-question {
  margin: 0 0 14px;
  color: #fff;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #bdb0d4;
  font-size: 12px;
  margin-bottom: 18px;
}

.history-role {
  color: #d8c9ff;
  background: #443266;
  border-radius: 20px;
  padding: 5px 10px;
  font-weight: 700;
}

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

.history-answer {
  min-width: 0;
  padding: 15px 10px;
  background: #191229;
  border: 1px solid #45375f;
  border-radius: 12px;
  text-align: center;
}

.history-answer span {
  display: block;
  min-height: 32px;
  color: #bdb0d4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.5;
}

.history-answer strong {
  display: block;
  margin-top: 10px;
  color: #d8c9ff;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.history-answer strong[data-answer="yes"] {
  color: #4ade80;
}

.history-answer strong[data-answer="no"] {
  color: #f87171;
}

.history-answer strong.pending {
  color: #a99bc2;
  font-size: 13px;
}

.history-open {
  display: block;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #7651e8;
  border-radius: 10px;
  color: #d8c9ff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.history-open:hover,
.history-open:focus-visible {
  background: #51368a;
  color: #fff;
}

@media (max-width: 480px) {
  .history-item {
    padding: 17px;
  }

  .history-question {
    font-size: 17px;
  }

  .history-answer {
    padding: 12px 7px;
  }

  .history-answer strong {
    font-size: 18px;
  }
}
