.sport-timeline-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
  min-width: 0;
}
.sport-timeline-control button,
.sport-timeline-header button {
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--native-game-border, var(--border, #b9cfe0));
  border-radius: 10px;
  color: inherit;
  background: var(--native-game-alt, var(--surface-alt, #f3f8fb));
  font: inherit;
  cursor: pointer;
}
.sport-timeline-summary {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.sport-encounter-times {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 6px 0;
  font-size: 0.85em;
  line-height: 1.4;
  color: var(--native-game-muted, var(--muted, #6d8799));
  white-space: normal;
  overflow-wrap: anywhere;
}
.sport-timeline-dialog {
  box-sizing: border-box;
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 16px;
  border: 1px solid var(--native-game-border, var(--border, #b9cfe0));
  border-radius: 12px;
  color: var(--native-game-text, var(--text, #163047));
  background: var(--native-game-surface, var(--surface, #fff));
  font: inherit;
}
.sport-timeline-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.sport-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sport-timeline-header h2 {
  margin: 0;
  font-size: 1.3em;
}
.sport-timeline-scroll {
  max-height: calc(100dvh - 230px);
  overflow: auto;
  margin: 12px 0;
}
.sport-timeline-dialog table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  table-layout: auto;
}
.sport-timeline-dialog th,
.sport-timeline-dialog td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--native-game-border, var(--border, #b9cfe0));
  text-align: left;
  white-space: normal;
  vertical-align: top;
}
.sport-timeline-dialog th {
  position: sticky;
  top: 0;
  background: var(--native-game-surface, var(--surface, #fff));
}
.sport-timeline-dialog td:first-child {
  white-space: nowrap;
}
.sport-timeline-note,
.sport-timeline-mode {
  font-size: 0.9em;
  margin: 10px 0;
  color: var(--native-game-muted, var(--muted, #6d8799));
}
.sport-timeline-error {
  color: #b42318;
}
@media (max-width: 500px) {
  .sport-timeline-dialog {
    padding: 12px;
  }
  .sport-timeline-summary {
    flex-basis: 100%;
  }
  .sport-timeline-scroll {
    max-height: calc(100dvh - 270px);
  }
}
