.tsp-draft-page {
  --tsp-draft-ink: #171719;
  --tsp-draft-muted: #545960;
  --tsp-draft-rule: #dfe0e3;
  --tsp-draft-paper: #fff;
  --tsp-draft-wash: #f5f5f6;
  --tsp-draft-red: #ad2313;
  --tsp-draft-selected: #fdf3ee;
  --tsp-draft-sort-fill: #fff7d6;
  --tsp-draft-pick-width: 48px;
  --tsp-draft-player-width: 155px;
  box-sizing: border-box;
  width: min(calc(100% - 48px), 1360px);
  min-width: 0;
  margin-inline: auto;
  color: var(--tsp-draft-ink);
  background: var(--tsp-draft-paper);
}

.tsp-draft-page *, .tsp-draft-page *::before, .tsp-draft-page *::after { box-sizing: border-box; }
.tsp-draft-page [hidden] { display: none; }
.tsp-draft-page :where(h1, h2, p) { margin: 0; }
.tsp-draft-page a { text-decoration: none; }
.tsp-draft-page a:hover { color: var(--tsp-draft-red); text-decoration: none; }
.tsp-draft-page :focus-visible { outline: 2px solid var(--tsp-draft-red); outline-offset: 2px; }
.tsp-draft-page button, .tsp-draft-page select { font: inherit; cursor: pointer; }

.tsp-draft-breadcrumb { margin: 16px 0 9px; color: var(--tsp-draft-muted); font-size: 12px; }
.tsp-draft-breadcrumb span { margin-inline: 4px; }
.tsp-draft-breadcrumb a { color: inherit; }
.tsp-draft-page h1 {
  color: var(--tsp-draft-ink);
  font-size: clamp(29px, 3.2vw, 42px);
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.tsp-draft-controls {
  position: sticky;
  z-index: 4;
  top: var(--tsp-draft-sticky-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 22px;
  min-width: 0;
  margin-top: 9px;
  border-bottom: 1px solid var(--tsp-draft-rule);
  background: var(--tsp-draft-paper);
}

.tsp-draft-years, .tsp-draft-round-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
}

.tsp-draft-years { flex-wrap: wrap; }
.tsp-draft-years a, .tsp-draft-round-nav a {
  display: inline-grid;
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: 6px;
  place-items: center;
  color: var(--tsp-draft-muted);
  font-weight: 630;
  white-space: nowrap;
}

.tsp-draft-years select {
  appearance: none;
  min-height: 44px;
  padding-inline: 5px;
  border: 0;
  color: var(--tsp-draft-ink);
  background: var(--tsp-draft-paper);
  font-weight: 730;
}
.tsp-draft-years button {
  min-height: 36px;
  padding-inline: 6px;
  border: 0;
  color: var(--tsp-draft-red);
  background: transparent;
  font-weight: 690;
}

.tsp-draft-round-nav {
  overflow-x: auto;
  scrollbar-width: thin;
}
.tsp-draft-round-nav a { min-width: 36px; font-variant-numeric: tabular-nums; }
.tsp-draft-round-nav a:focus-visible { outline-offset: -4px; }
.tsp-draft-round-nav a[aria-current="location"] { color: var(--tsp-draft-red); font-weight: 790; }

.tsp-draft-board { min-width: 0; padding-top: 18px; }
.tsp-draft-board, .tsp-draft-round, .tsp-draft-round tbody tr {
  scroll-margin-top: calc(var(--tsp-draft-sticky-top, 0px) + 104px);
}
.tsp-draft-board-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 14px;
}
.tsp-draft-board-header h2 { font-size: 23px; font-weight: 780; letter-spacing: -.035em; }
.tsp-draft-board-header > :is(p, span), .tsp-draft-board-tools { color: var(--tsp-draft-muted); font-size: 12px; }
.tsp-draft-board-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
.tsp-draft-board-tools button {
  min-height: 36px;
  padding: 0;
  border: 0;
  color: var(--tsp-draft-red);
  background: transparent;
  font-weight: 690;
}
.tsp-draft-swipe { margin-inline-start: auto; }

.tsp-draft-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.tsp-draft-round { min-width: var(--tsp-draft-width, 0px); }
.tsp-draft-round + .tsp-draft-round { margin-top: 22px; }
.tsp-draft-round[hidden] + .tsp-draft-round { margin-top: 0; }
.tsp-draft-round > header {
  position: sticky;
  inset-inline-start: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  max-width: calc(100vw - 48px);
  padding: 7px 0;
  color: var(--tsp-draft-muted);
  font-size: 12px;
}
.tsp-draft-round > header h2 { color: var(--tsp-draft-ink); font-size: 15px; font-weight: 740; }

.tsp-draft-round table {
  width: max(100%, var(--tsp-draft-width, 0px));
  min-width: max-content;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.tsp-draft-round table[style*="--tsp-draft-width"],
.tsp-draft-scroll[style*="--tsp-draft-width"] table { min-width: 0; table-layout: fixed; }
.tsp-draft-round :is(th, td) {
  padding: 5px 7px;
  border: 0;
  vertical-align: middle;
}
.tsp-draft-round thead th {
  border-bottom: 1px solid #bfc0c5;
  color: var(--tsp-draft-ink);
  background: var(--tsp-draft-wash);
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}
.tsp-draft-round thead tr:first-child th { border-top: 2px solid var(--tsp-draft-ink); }
.tsp-draft-round :is(.tsp-draft-group, [scope="colgroup"]) { color: var(--tsp-draft-muted); }
.tsp-draft-round [scope="colgroup"] + [scope="colgroup"],
.tsp-draft-round .tsp-draft-stat-start { border-inline-start: 1px solid var(--tsp-draft-rule); }
.tsp-draft-round th:has(button[data-draft-sort]) { padding: 0; }
.tsp-draft-round button[data-draft-sort] {
  width: 100%;
  min-height: 30px;
  padding-inline: 7px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: inherit;
}
.tsp-draft-round button[data-draft-sort]:hover { color: var(--tsp-draft-red); }
.tsp-draft-round button[data-draft-sort]:focus-visible { outline-offset: -3px; }
.tsp-draft-round th.tsp-draft-sorted-column[aria-sort="ascending"] button::after,
.tsp-draft-round th.tsp-draft-sorted-column[aria-sort="descending"] button::after {
  display: block;
  color: var(--tsp-draft-red);
  font-size: 9px;
  line-height: 1;
  content: 'Asc' / '';
}
.tsp-draft-round th.tsp-draft-sorted-column[aria-sort="descending"] button::after { content: 'Desc' / ''; }
.tsp-draft-round tbody :is(th, td) {
  border-bottom: 1px solid var(--tsp-draft-rule);
  background: var(--tsp-draft-paper);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.tsp-draft-round tbody :is(th, td) a { color: #214f69; }
.tsp-draft-round tbody :is(th, td) a:hover { color: var(--tsp-draft-red); }
.tsp-draft-round tbody td:nth-child(2) { font-weight: 690; }
.tsp-draft-note { display: block; margin-top: 2px; color: var(--tsp-draft-muted); font-size: 10px; }
.tsp-draft-round .tsp-draft-numeric,
.tsp-draft-round th:has(button[data-numeric="1"]) { text-align: end; }
.tsp-draft-round :is(th, td).tsp-draft-sorted-column { background: var(--tsp-draft-sort-fill); }
.tsp-draft-round tbody :is(tr:target, .tsp-draft-target) > :not(.tsp-draft-sorted-column) {
  background: var(--tsp-draft-selected);
}
.tsp-draft-round tbody :is(tr:target, .tsp-draft-target) > th {
  color: var(--tsp-draft-red);
  box-shadow: inset 3px 0 #fe2306;
}
.tsp-draft-missing { color: #777a81; }
.tsp-draft-sources { padding-block: 17px 24px; color: var(--tsp-draft-muted); font-size: 12px; }
.tsp-draft-sources summary { cursor: pointer; list-style: none; }
.tsp-draft-sources summary::-webkit-details-marker { display: none; }

@media (max-width: 640px) {
  .tsp-draft-page { width: calc(100% - 28px); }
  .tsp-draft-breadcrumb { margin-block: 12px 8px; font-size: 11px; }
  .tsp-draft-page h1 { font-size: clamp(25px, 7.6vw, 35px); }
  .tsp-draft-controls { flex-direction: column; align-items: stretch; gap: 0; margin-top: 5px; }
  .tsp-draft-round-nav { border-top: 1px solid var(--tsp-draft-rule); }
  .tsp-draft-round-nav a { flex-grow: 1; min-width: 41px; min-height: 42px; }
  .tsp-draft-board { padding-top: 12px; }
  .tsp-draft-board-header h2 { font-size: 20px; }
  .tsp-draft-board-header > :is(p, span), .tsp-draft-board-tools { font-size: 11px; }
  .tsp-draft-scroll { scroll-padding-inline-start: calc(var(--tsp-draft-pick-width) + var(--tsp-draft-player-width)); }
  .tsp-draft-round > header { max-width: calc(100vw - 28px); padding: 5px 0; }
  .tsp-draft-round :is(thead tr:last-child, tbody tr) > :is(th, td):nth-child(-n+2) {
    position: sticky;
    z-index: 1;
  }
  .tsp-draft-round :is(thead tr:last-child, tbody tr) > :is(th, td):first-child { inset-inline-start: 0; }
  .tsp-draft-round :is(thead tr:last-child, tbody tr) > :is(th, td):nth-child(2) {
    inset-inline-start: var(--tsp-draft-pick-width);
    border-inline-end: 1px solid #bfc0c5;
  }
  .tsp-draft-round button[data-draft-sort] { min-height: 36px; }
  .tsp-draft-round tbody :is(th, td) { padding-block: 7px; }
}
