.word-error-hint {
  margin: 0 0 11px !important;
  color: #735116;
  font-size: .88rem;
  font-weight: 700;
}

#history h3,
#dictation-stats h3 {
  margin: 24px 0 10px;
  font: 700 1.2rem Georgia, serif;
}

.detailed-history {
  display: block;
}

.history-main {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.detailed-history details,
.stat-attempt details {
  margin-top: 9px;
}

.attempt-errors-summary,
.dictation-stat > summary {
  cursor: pointer;
  color: #0b4b26;
  font-weight: 750;
}

.attempt-errors-summary::marker,
.dictation-stat > summary::marker {
  color: #16713a;
}

.attempt-errors {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #4d6353;
  line-height: 1.5;
}

.attempt-errors li + li {
  margin-top: 4px;
}

.repeat-error {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 99px;
  color: #844100;
  background: #fff0c8;
  font-size: .72rem;
  font-weight: 800;
}

.attempt-ok,
.stat-note {
  margin: 9px 0 0;
  color: #52705a;
  font-size: .86rem;
}

.dictation-stat {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid #d8e8da;
  border-radius: 14px;
  background: #f9fdf9;
}

.dictation-stat > summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.dictation-stat > summary small,
.stat-attempt > small {
  color: #617269;
  font-size: .78rem;
  font-weight: 600;
}

.stat-attempt {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dbe8dc;
}

.stat-attempt > small {
  display: block;
  margin-top: 3px;
}

@media (max-width: 560px) {
  .history-main,
  .dictation-stat > summary {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
}
.explanation-toggle { margin: 12px 0; }
.explanation-panel { padding: 16px; border: 1px solid #adcdb7; border-radius: 14px; background: #f3faf5; overflow-wrap: anywhere; }
.explanation-panel[hidden] { display: none; }
.explanation-panel h4 { margin: 14px 0 6px; font-size: 1.05rem; }
.explanation-panel h4:first-child { margin-top: 0; }
.explanation-panel p, .explanation-panel li { line-height: 1.65; }
.explanation-panel a { color: #205d3b; text-decoration: underline; }
