.combined-history {
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.combined-history h3,
.combined-history h4,
.combined-history p {
  margin: 0;
}

.combined-history-leg,
.combined-history-stay {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.combined-history-stay {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft);
}

.combined-history-stay dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.combined-history-stay dt {
  color: var(--muted);
  font-size: 13px;
}

.combined-history-stay dd {
  margin: 4px 0 0;
  font-weight: 700;
}

#profileDetailModal.combined-history-modal .modal-head h2 {
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .combined-history-stay dl {
    grid-template-columns: 1fr;
  }
}
