.ranking-history {
  width: min(700px, calc(100% - 16px));
  max-width: none;
  max-height: calc(100dvh - 24px);
}
.ranking-history .dialog-content { min-width: 0; }
.ranking-history .dialog-title { align-items: flex-start; }
.ranking-history .dialog-title h2 { overflow-wrap: anywhere; }
.ranking-history #rankingHistoryBody { min-width: 0; }
.result-prediction {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #e4ede4;
  border-radius: 12px;
  background: #f5f9f5;
}
.result-prediction h3, .result-prediction p { margin: 0; }
.result-prediction h3 { color: #111111; font-size: 14px; }
.result-prediction p + p { margin-top: 3px; }
.result-score { color: #111111; font-variant-numeric: tabular-nums; }
.result-score strong { font-size: 31px; }
.result-score-pending { color: #111111; font-weight: 750; }
.result-muted { color: #111111; font-size: 12px; }
.result-filters { display: flex; gap: 8px; margin: 0 0 10px; }
.result-select { display: grid; gap: 4px; color: #111111; font-size: 12px; font-weight: 700; min-width: 0; }
.result-select:first-child { flex: 1; }
.result-select:last-child { min-width: 95px; }
.result-select select {
  min-width: 0;
  width: 100%;
  min-height: 37px;
  padding: 4px 7px;
  border: 1px solid #dbe3db;
  border-radius: 7px;
  background: #fcfdf9;
  color: #111111;
  font: inherit;
  font-size: 13px;
}
.result-exam-section { margin: 0 0 12px; }
.result-exam-section h3 { margin: 0 0 5px; color: #111111; font-size: 15px; }
.result-topic-table th, .result-topic-table td { padding: 7px 4px; }
.result-topic-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.result-topic-table tbody th { background: transparent; text-align: left; }
.result-topic-table tbody th { overflow-wrap: anywhere; }
@media (max-width: 430px) {
  .ranking-history .dialog-content { padding: 13px; }
  .result-topic-table { font-size: 12px; }
  .result-topic-table th, .result-topic-table td { padding-inline: 3px; }
}

#rankingHistoryDialog { position: fixed; inset: 0; margin: auto; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
#rankingHistoryDialog.study-dialog-fallback { z-index: 1000; box-shadow: 0 0 0 100vmax #15231b80; }
 .ranking-history .dialog-content { overflow-y: auto; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); -webkit-overflow-scrolling: touch; }
