/* Local-only replay of previously completed pronunciation tests. */
#historyDetailDialog .history-replay-tabs {
  display:grid;grid-template-columns:1fr 1fr;gap:5px;flex-shrink:0;
  margin:0 22px 0;padding:4px;border-radius:9px;background:#e9ece5;
}
#historyDetailDialog .history-replay-tab {
  min-height:42px;padding:9px 12px;border:0;border-radius:7px;
  background:transparent;color:#627468;font:inherit;font-size:13px;font-weight:750;cursor:pointer;
}
#historyDetailDialog .history-replay-tab.active {background:#2b4034;color:#fff;}
#historyDetailDialog .history-replay-tab:disabled {opacity:.5;cursor:not-allowed;}
#historyDetailDialog .history-detail-content[hidden] {display:none!important;}
#historyDetailDialog .history-replay-legacy-note {
  padding:12px 14px;margin:16px 0 0;border:1px solid #e2ddd3;
  border-radius:9px;background:#f3f0e9;color:#667369;font-size:12px;line-height:1.65;
}
#historyDetailDialog .history-replay-legacy-note[hidden] {display:none!important;}
#historyDetailDialog .history-replay-content {padding-top:14px;}
#historyDetailDialog .history-replay-card {
  display:flex;flex-direction:column;gap:15px;min-width:0;padding:21px;
  border:1px solid #deded6;border-top:4px solid #e75b4c;border-radius:14px;
  background:#fffdfa;color:#28342e;
}
#historyDetailDialog .history-replay-top {display:flex;justify-content:space-between;align-items:start;gap:12px;}
#historyDetailDialog .history-replay-heading {min-width:0;}
#historyDetailDialog .history-replay-kicker {font-size:11px;font-weight:800;letter-spacing:.07em;color:#bb6257;}
#historyDetailDialog .history-replay-heading h3 {font-size:22px;line-height:1.25;margin:5px 0 0;letter-spacing:-.04em;}
#historyDetailDialog .history-replay-score {display:flex;align-items:baseline;gap:5px;flex-shrink:0;}
#historyDetailDialog .history-replay-score strong {font-size:38px;color:#d9564b;line-height:1;font-weight:850;}
#historyDetailDialog .history-replay-score span {font-size:12px;font-weight:650;color:#818c83;}
#historyDetailDialog .history-replay-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
#historyDetailDialog .history-replay-metric {
  display:flex;flex-direction:column;gap:8px;min-width:0;padding:12px 10px;
  border-radius:9px;background:#f4f3ed;
}
#historyDetailDialog .history-replay-metric span {font-size:11px;color:#717e73;font-weight:700;}
#historyDetailDialog .history-replay-metric strong {font-size:15px;line-height:1.3;color:#2b4034;overflow-wrap:anywhere;}
#historyDetailDialog .history-replay-compare {
  display:flex;flex-direction:column;gap:0;min-width:0;
  padding:14px 17px;border:1px solid #e3e3da;border-radius:11px;background:#fff;
}
#historyDetailDialog .history-replay-sentence {min-width:0;}
#historyDetailDialog .history-replay-sentence + .history-replay-sentence {
  padding-top:12px;margin-top:13px;border-top:1px solid #e9e5dd;
}
#historyDetailDialog .history-replay-sentence-label {display:block;font-size:11px;font-weight:750;color:#79877b;margin-bottom:7px;}
#historyDetailDialog .history-replay-sentence p {
  display:block;margin:0;color:#28342e;font-size:17px;line-height:1.85;
  font-weight:650;overflow-wrap:anywhere;word-break:keep-all;
}
#historyDetailDialog .history-replay-sentence p :is(.miss,.extra) {
  background:#ffd7d6;color:#ad3c48;border-radius:3px;
}
#historyDetailDialog .history-replay-sentence p .swap {
  background:#fff0b9;color:#8d6420;border-radius:3px;
}
#historyDetailDialog .history-replay-translation {
  display:block;margin-top:5px;color:#677668;font-size:12px;line-height:1.55;
  font-weight:400;overflow-wrap:anywhere;word-break:keep-all;
}
#historyDetailDialog .history-replay-foot {
  border-top:1px solid #e9e5dd;padding-top:10px;color:#89948b;font-size:11px;
}
#historyDetailDialog .history-replay-warning {margin:0 0 6px;color:#a66b51;font-weight:650;}
#historyDetailDialog .history-replay-pager {
  position:sticky;bottom:-16px;display:flex;align-items:center;justify-content:center;gap:17px;
  margin-top:12px;padding:10px 8px;background:#f9f7f0;border-top:1px solid #ebe9e0;
}
#historyDetailDialog .history-replay-arrow {
  display:grid;place-items:center;width:39px;height:35px;padding:0;
  border:1px solid #cad5c9;border-radius:8px;background:white;color:#334a39;
  font-size:26px;line-height:1;cursor:pointer;
}
#historyDetailDialog .history-replay-arrow:disabled {opacity:.35;cursor:not-allowed;}
#historyDetailDialog .history-replay-counter {min-width:58px;text-align:center;font-size:13px;font-weight:800;color:#2b4034;font-variant-numeric:tabular-nums;}
#historyDetailDialog .history-replay-tab:focus-visible,
#historyDetailDialog .history-replay-arrow:focus-visible {outline:2px solid #d9564b;outline-offset:2px;}
@media (max-width:620px) {
  #historyDetailDialog .history-replay-tabs {margin:0 15px;}
  #historyDetailDialog .history-replay-card {padding:15px 12px;gap:12px;}
  #historyDetailDialog .history-replay-score strong {font-size:31px;}
  #historyDetailDialog .history-replay-heading h3 {font-size:19px;}
  #historyDetailDialog .history-replay-metrics {gap:5px;}
  #historyDetailDialog .history-replay-metric {padding:10px 7px;gap:5px;}
  #historyDetailDialog .history-replay-metric span {font-size:10px;}
  #historyDetailDialog .history-replay-metric strong {font-size:13px;}
  #historyDetailDialog .history-replay-compare {padding:13px;}
  #historyDetailDialog .history-replay-sentence p {font-size:16px;line-height:1.75;}
}
html[data-theme="dark"] #historyDetailDialog .history-replay-tabs {background:#1b2b22;border:1px solid #415747;}
html[data-theme="dark"] #historyDetailDialog .history-replay-tab {color:#c3d4c7;}
html[data-theme="dark"] #historyDetailDialog .history-replay-tab.active {background:#3e644c;color:#fff;}
html[data-theme="dark"] #historyDetailDialog .history-replay-legacy-note {background:#223127;border-color:#536657;color:#d0dfd0;}
html[data-theme="dark"] #historyDetailDialog .history-replay-card {background:#202d24;color:#e4f0e2;border-color:#4f6855;border-top-color:#e48273;}
html[data-theme="dark"] #historyDetailDialog .history-replay-kicker {color:#efaa99;}
html[data-theme="dark"] #historyDetailDialog .history-replay-score strong {color:#f09988;}
html[data-theme="dark"] #historyDetailDialog .history-replay-score span,
html[data-theme="dark"] #historyDetailDialog .history-replay-metric span,
html[data-theme="dark"] #historyDetailDialog .history-replay-sentence-label {color:#bfd0c2;}
html[data-theme="dark"] #historyDetailDialog .history-replay-metric {background:#2b3c30;}
html[data-theme="dark"] #historyDetailDialog .history-replay-heading h3,
html[data-theme="dark"] #historyDetailDialog .history-replay-metric strong,
html[data-theme="dark"] #historyDetailDialog .history-replay-sentence p {color:#eff6eb;}
html[data-theme="dark"] #historyDetailDialog .history-replay-compare {background:#1c2921;border-color:#4b6150;}
html[data-theme="dark"] #historyDetailDialog .history-replay-sentence + .history-replay-sentence,
html[data-theme="dark"] #historyDetailDialog .history-replay-foot {border-color:#4b6150;}
html[data-theme="dark"] #historyDetailDialog .history-replay-sentence p .swap {background:#695526!important;color:#ffe4ab!important;}
html[data-theme="dark"] #historyDetailDialog .history-replay-sentence p :is(.miss,.extra) {background:#603a44!important;color:#ffd1d7!important;}
html[data-theme="dark"] #historyDetailDialog .history-replay-translation {color:#c4d0c5;}
html[data-theme="dark"] #historyDetailDialog .history-replay-warning {color:#f0b5a3;}
html[data-theme="dark"] #historyDetailDialog .history-replay-foot {color:#bdd0bf;}
html[data-theme="dark"] #historyDetailDialog .history-replay-pager {background:#1b2920;border-color:#4b6150;}
html[data-theme="dark"] #historyDetailDialog .history-replay-arrow {background:#263a2d;border-color:#64836e;color:#e8f4e7;}
html[data-theme="dark"] #historyDetailDialog .history-replay-counter {color:#e7f2e5;}
