.timeline-wrap {
  background: #000;
  min-height: 260px;
  position: relative;
  overflow: auto hidden;
}

#timeline-canvas {
  width: 100%;
  min-width: 760px;
  height: 260px;
  display: block;
}

.timeline-tooltip {
  z-index: 40;
  border: 1px solid var(--line-2);
  width: min(420px, 100vw - 28px);
  max-height: min(420px, 100vh - 28px);
  box-shadow: var(--shadow);
  pointer-events: none;
  background: #030303;
  border-radius: 6px;
  padding: 14px;
  position: fixed;
  overflow: auto;
}

.tooltip-title {
  margin-bottom: 10px;
  font-weight: 800;
}

.tooltip-id, .tooltip-candidates {
  color: var(--muted);
  font-size: 13px;
}

.tooltip-confidence {
  color: var(--gold-2);
  margin-top: 10px;
  font-weight: 800;
}

.rank-list {
  gap: 0;
  display: grid;
}

.rank-row {
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  display: grid;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-player, .player-identity, .candidate-player {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.rank-player > div, .player-identity > span:last-child, .candidate-player > span:last-child {
  min-width: 0;
}

.rank-row strong, .player-identity strong, .candidate-player strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.rank-match, .rank-count, .time-cell, .confidence-score, .candidate-row strong {
  color: var(--gold-2);
  font-weight: 800;
}

.rank-count {
  font-size: 25px;
}

.hero-map-icon {
  object-fit: cover;
  background: none;
  border: 0;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.hero-map-icon.empty {
  border: 1px solid var(--line);
  background: #000;
}

.match-list {
  gap: 14px;
  margin-top: 14px;
  display: grid;
}

.match-top, .match-stats {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.match-header {
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  display: grid;
}

.match-title-block {
  min-width: 0;
}

.match-kicker {
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
  display: block;
}

.match-name {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.match-header-stats {
  grid-template-columns: repeat(3, minmax(84px, auto));
  gap: 8px;
  display: grid;
}

.match-header-stats span {
  border: 1px solid var(--line);
  background: #020202;
  border-radius: 6px;
  gap: 3px;
  min-height: 48px;
  padding: 8px 10px;
  display: grid;
}

.match-header-stats strong {
  color: var(--soft);
  font-size: 17px;
  line-height: 1;
}

.match-header-stats small {
  color: var(--muted);
  font-size: 11px;
}

.match-stats {
  justify-content: flex-start;
  margin-top: 14px;
}

.mini-stat {
  padding: 8px 12px;
}

.report-table {
  margin-top: 12px;
  overflow: hidden;
}

.report-table.empty {
  color: var(--muted);
  padding: 16px;
}

.report-head, .report-row {
  grid-template-columns: 86px minmax(0, 1fr) minmax(0, 1fr) 92px;
  align-items: start;
  gap: 12px;
  display: grid;
}

.report-head {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: .12em;
  padding: 10px 14px;
  font-size: 12px;
}

.report-row {
  padding: 13px 14px;
}

.report-block {
  border-bottom: 1px solid var(--line);
}

.report-block:last-child {
  border-bottom: 0;
}

.id-stack {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.3;
  display: block;
}

.team-friendly, .team-enemy {
  font-weight: 800;
}

.team-friendly {
  color: var(--green);
}

.team-enemy {
  color: var(--red);
}

.confidence-card, .candidate-list {
  background: #000;
  margin: 0 14px 14px 100px;
  padding: 12px;
}

.confidence-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  display: grid;
}

.confidence-summary span, .confidence-summary small {
  color: var(--muted);
  display: block;
}

.confidence-summary strong {
  margin-top: 4px;
  font-size: 20px;
  display: block;
}

.confidence-score {
  font-size: 34px;
}

.confidence-detail {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  display: flex;
}

.confidence-detail span {
  border: 1px solid var(--line);
  color: var(--soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.candidate-row {
  grid-template-columns: minmax(0, 1fr) 220px 58px;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  display: grid;
}

.candidate-row + .candidate-row {
  border-top: 1px solid var(--line);
}

.candidate-row.selected {
  color: var(--gold-2);
}

.candidate-meter {
  background: #202020;
  border: 0;
  border-radius: 999px;
  width: 100%;
  height: 8px;
  display: block;
  overflow: hidden;
}

.candidate-meter::-webkit-meter-bar {
  background: #202020;
  border: 0;
  border-radius: 999px;
}

.candidate-meter::-webkit-meter-optimum-value, .candidate-meter::-webkit-meter-suboptimum-value, .candidate-meter::-webkit-meter-even-less-good-value {
  background: var(--gold);
  border-radius: 999px;
}

.candidate-meter::-moz-meter-bar {
  background: var(--gold);
  border-radius: 999px;
}

.sidebar-chat-list, .glyph-list, .scan-list {
  color: var(--soft);
  scrollbar-width: thin;
  scrollbar-color: #303030 transparent;
  gap: 8px;
  max-height: 420px;
  padding: 2px 3px 2px 0;
  display: grid;
  overflow: auto;
}

.sidebar-chat-list::-webkit-scrollbar, .glyph-list::-webkit-scrollbar, .scan-list::-webkit-scrollbar {
  width: 6px;
}

.sidebar-chat-list::-webkit-scrollbar-thumb, .glyph-list::-webkit-scrollbar-thumb, .scan-list::-webkit-scrollbar-thumb {
  background: #303030;
  border-radius: 99px;
}

.sidebar-chat-list.empty, .glyph-list.empty, .scan-list.empty {
  border: 1px dashed var(--line-2);
  min-height: 78px;
  color: var(--muted);
  background: #000;
  border-radius: 6px;
  align-content: center;
  padding: 16px;
  font-size: 14px;
}

.chat-message-row, .glyph-row, .scan-row {
  border: 1px solid var(--line);
  background: #010101;
  border-radius: 6px;
  position: relative;
}

.chat-message-row {
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px;
  display: grid;
}

.glyph-row, .scan-row {
  padding: 10px;
  display: block;
}

.chat-message-row:before, .glyph-row:before, .scan-row:before {
  content: "";
  background: var(--line-2);
  border-radius: 3px;
  width: 3px;
  position: absolute;
  inset: 10px auto 10px 0;
}

.chat-message-row.radiant:before, .glyph-row.radiant:before, .scan-row.radiant:before {
  background: var(--green);
}

.chat-message-row.dire:before, .glyph-row.dire:before, .scan-row.dire:before {
  background: var(--red);
}

.chat-message-row:hover, .glyph-row:hover, .scan-row:hover {
  border-color: #ffffff2e;
}

.glyph-row.negative {
  opacity: .72;
}

.chat-message-avatar, .chat-message-avatar .hero-map-icon {
  width: 32px;
  height: 32px;
}

.chat-message-avatar .hero-map-icon, .glyph-player .hero-map-icon, .scan-player .hero-map-icon {
  background: #000;
  border-radius: 4px;
}
