.history-section {
  border-top: 1px solid rgba(232, 185, 104, .34);
  border-bottom: 1px solid var(--line);
  margin-top: 44px;
  padding: 28px 0 18px;
}

.history-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.history-symbol {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(232, 185, 104, .55);
  border-radius: 50%;
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.history-heading h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 5px 0 2px;
}

.history-heading p {
  color: #8f97b5;
  font-size: 11px;
  margin: 0;
}

.history-heading > .text-button {
  margin-left: auto;
}

.history-list {
  display: grid;
}

.history-item {
  min-height: 66px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 110px 22px;
  align-items: center;
  gap: 16px;
  padding: 13px 8px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: .2s;
}

.history-item:hover {
  background: rgba(75, 64, 143, .2);
  padding-left: 14px;
}

.history-time,
.history-mood {
  color: #929ab9;
  font-size: 11px;
}

.history-dream {
  min-width: 0;
}

.history-dream strong {
  display: block;
  color: #f2ece4;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-dream small {
  color: #8e96b3;
  display: block;
  font-size: 11px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-mood {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-arrow {
  color: var(--gold);
  font-size: 17px;
}

.history-empty {
  border-top: 1px solid var(--line);
  color: #929ab9;
  padding: 24px 8px 12px;
  text-align: center;
}

.history-empty p {
  font-size: 13px;
  margin: 0 0 5px;
}

@media (max-width: 640px) {
  .history-item {
    grid-template-columns: 76px minmax(0, 1fr) 18px;
    gap: 10px;
  }

  .history-mood {
    display: none;
  }

  .history-heading {
    align-items: flex-start;
  }

  .history-heading > .text-button {
    white-space: nowrap;
  }
}
