/* Student review archive: an expandable daily record with two learning tracks. */
.own-recording {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #dce9dd;
  border-radius: 12px;
  background: #f4f9f3;
}

.own-recording .details-button {
  padding: 4px 0;
  font-weight: 600;
}

.own-recording .audio-preview {
  display: block;
  margin-top: 7px;
}

.own-recording .audio-preview.hidden {
  display: none;
}

.rank-activity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.rank-online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #aeb5b1;
}

.rank-online-dot.is-online {
  background: #59a774;
  box-shadow: 0 0 0 3px #e5f4e8;
}

.history-archive {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.history-archive-intro {
  padding: 17px 17px 15px;
  background: linear-gradient(135deg, #edf4ee, #f8f3e9);
  border-bottom: 1px solid var(--line);
}

.history-archive-intro > span {
  display: block;
  font: 9px var(--mono);
  letter-spacing: 1.25px;
  color: #63806d;
}

.history-archive-intro h3 {
  margin: 6px 0 3px;
  font: 500 20px/1.25 var(--serif);
  color: #294336;
}

.history-archive-intro p {
  margin: 0;
  color: #718078;
  font-size: 10px;
  line-height: 1.6;
}

.history-learning-card {
  border-bottom: 1px solid #ece6dd;
  background: #fffdfa;
}

.history-learning-card:last-child {
  border-bottom: 0;
}

.history-entry-head {
  display: grid;
  grid-template-columns: 10px 83px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 15px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.history-entry-head > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #619476;
  box-shadow: 0 0 0 4px #eef5ed;
}

.history-entry-date b {
  display: block;
  font: 600 11px var(--mono);
  letter-spacing: -.15px;
}

.history-entry-date small {
  display: block;
  margin-top: 3px;
  color: #718078;
  font-size: 9px;
}

.history-lesson-preview {
  min-width: 0;
}

.history-lesson-preview em {
  display: block;
  overflow: hidden;
  color: #405149;
  font: 500 12px/1.45 var(--serif);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-lesson-preview em + em {
  margin-top: 2px;
  color: #675f76;
}

.history-entry-action {
  color: #4f7b5e;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.history-entry-action b {
  display: inline-block;
  margin-left: 2px;
  font: 12px var(--mono);
  transition: transform .2s ease;
}

.history-learning-card.is-open .history-entry-head {
  background: #f7f8f3;
}

.history-learning-card.is-open .history-entry-action b {
  transform: rotate(180deg);
}

.history-entry-head:focus-visible,
.history-listen:focus-visible {
  outline: 2px solid #5b9272;
  outline-offset: 2px;
}

.history-entry-body {
  padding: 0 14px 14px;
  background: #f7f8f3;
}

.history-expression {
  position: relative;
  padding: 15px;
  border-radius: 17px;
  overflow: hidden;
}

.history-expression + .history-expression {
  margin-top: 10px;
}

.history-expression.daily {
  background: #f5ddc9;
}

.history-expression.business {
  background: #ded9ed;
}

.history-expression::after {
  content: '';
  position: absolute;
  right: -42px;
  top: -50px;
  width: 105px;
  height: 105px;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 50%;
  pointer-events: none;
}

.history-expression header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.history-expression header > span {
  font: 9px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #66766d;
}

.history-expression h4 {
  position: relative;
  z-index: 1;
  margin: 10px 30px 5px 0;
  font: 500 20px/1.32 var(--serif);
  letter-spacing: -.3px;
}

.history-translation {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #526159;
  font-size: 11px;
  line-height: 1.6;
}

.history-listen {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .66);
  color: #425d4c;
  font-size: 9px;
  font-weight: 700;
}

.history-usage,
.history-game-context {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 11px;
  background: rgba(255, 253, 250, .6);
}

.history-usage b,
.history-game-context b {
  display: block;
  color: #5a6e61;
  font-size: 9px;
}

.history-usage p,
.history-game-context p {
  margin: 4px 0 0;
  color: #3d4c44;
  font-size: 10px;
  line-height: 1.65;
  white-space: pre-line;
}

.history-game-context small {
  display: block;
  margin-top: 5px;
  color: #67736c;
  font-size: 9px;
  line-height: 1.55;
}

.history-examples {
  position: relative;
  z-index: 1;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.history-examples li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid rgba(79, 87, 80, .12);
}

.history-examples li > div {
  min-width: 0;
  flex: 1;
}

.history-examples small {
  color: #7b796f;
  font-size: 9px;
  font-weight: 700;
}

.history-examples p {
  margin: 3px 0 0;
  color: #34433b;
  font-size: 10px;
  line-height: 1.55;
}

.history-content-missing {
  margin: 0;
  padding: 15px;
  border-radius: 13px;
  background: #fffdfa;
  color: #7e877f;
  font-size: 10px;
  line-height: 1.65;
  text-align: center;
}

@media (max-width: 380px) {
  .history-entry-head {
    grid-template-columns: 10px 1fr auto;
  }

  .history-entry-date {
    grid-column: 2;
  }

  .history-lesson-preview {
    grid-column: 2 / -1;
  }

  .history-entry-action {
    grid-column: 3;
    grid-row: 1;
  }

  .history-entry-head > i {
    grid-row: 1;
  }

  .history-expression {
    padding: 13px;
  }

  .history-expression h4 {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-entry-action b {
    transition: none;
  }
}
