@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/IBMPlexSansCondensed-Light.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/IBMPlexSansCondensed-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/IBMPlexSansCondensed-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/JetBrainsMono-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/JetBrainsMono-Medium.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --ink: #101116;
  --ink-deep: #0b0c11;
  --panel: rgba(17, 18, 25, 0.92);
  --violet: #aaa3c7;
  --violet-bright: #d4d0e5;
  --text: #f2f1f6;
  --muted: #747c97;
  --faint: #4d5367;
  --line: rgba(170, 163, 199, 0.48);
  --line-soft: rgba(170, 163, 199, 0.2);
  --line-faint: rgba(170, 163, 199, 0.1);
  --negative: #77839f;
  --condensed: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(170, 163, 199, 0.018) 50%, transparent 50.2%),
    linear-gradient(180deg, #121319, #0d0e13 62%, #111217);
  color: var(--text);
  font-family: var(--condensed);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
select {
  font: inherit;
}

button {
  border-radius: 0;
}

[hidden] {
  display: none !important;
}

.screen-texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(54, 45, 63, 0.12) 42%, rgba(54, 45, 63, 0.3) 100%),
    url("assets/textures/surface-grain.png") 0 0 / 384px 256px repeat;
}

.screen-texture::before,
.screen-texture::after {
  content: "";
  position: absolute;
  inset: 0;
}

.screen-texture::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 22%, transparent 74%, rgba(10, 8, 13, 0.08));
}

.screen-texture::after {
  background: radial-gradient(ellipse at 58% 40%, transparent 42%, rgba(0, 0, 0, 0.1) 100%);
}

.system-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto;
  align-items: stretch;
  height: 74px;
  margin: 12px 12px 0;
  border: 1px solid var(--line);
  background: transparent;
  box-shadow: inset 0 0 24px rgba(170, 163, 199, 0.025);
}

.system-brand {
  display: flex;
  align-items: center;
  gap: 38px;
  min-width: 0;
  padding: 0 34px;
  color: inherit;
  text-decoration: none;
}

.wordmark {
  color: var(--violet);
  font-family: var(--condensed);
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.update-readout {
  display: grid;
  grid-template-columns: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
  text-transform: uppercase;
}

.update-readout span:first-child::after {
  content: "";
  display: block;
  width: 32px;
  margin-top: 4px;
  border-top: 1px dotted var(--faint);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 375px;
  padding: 0 37px 0 38px;
}

.primary-nav button {
  position: relative;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 23px;
  font-weight: 400;
  padding: 0;
}

.primary-nav button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  border-bottom: 1px solid transparent;
}

.primary-nav button:hover,
.primary-nav button.active {
  color: var(--violet-bright);
}

.primary-nav button.active::after {
  border-bottom-color: var(--violet);
}

.system-stage {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 86px);
}

.page-view {
  position: relative;
}

.control-deck,
.about-rail {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: stretch;
  min-height: 64px;
  margin: 0 46px;
  border-bottom: 1px solid var(--line-soft);
}

.deck-node,
.about-rail > span {
  align-self: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.deck-node::before,
.about-rail > span::before {
  content: "";
  display: inline-block;
  width: 13px;
  margin-right: 8px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.regression-tabs button {
  position: relative;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  padding: 0 0 11px;
  letter-spacing: 0;
}

.regression-tabs button::before {
  content: "[";
  margin-right: 3px;
  color: var(--faint);
}

.regression-tabs button::after {
  content: "]";
  margin-left: 3px;
  color: var(--faint);
}

.regression-tabs button.active,
.regression-tabs button:hover {
  color: var(--violet-bright);
}

.data-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  min-width: 0;
  height: 100%;
  padding: 8px 0 7px;
}

.data-controls label {
  display: grid;
  align-content: center;
  gap: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.data-controls select,
.data-controls input {
  height: 29px;
  border: 0;
  border-bottom: 1px solid rgba(190, 182, 221, 0.48);
  outline: 0;
  background: transparent;
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: 13px;
  padding: 0 4px;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.data-controls select {
  width: 70px;
  appearance: none;
  text-align: left;
}

.data-controls input[type="number"] {
  width: 70px;
}

.data-controls .search-field input {
  width: 176px;
  text-transform: uppercase;
}

.data-controls select:hover,
.data-controls input:hover,
.data-controls select:focus,
.data-controls input:focus {
  border-bottom-color: var(--violet-bright);
  background: rgba(170, 163, 199, 0.045);
  color: #f0edf8;
}

.data-controls input::placeholder {
  color: var(--faint);
  opacity: 1;
}

.data-frame {
  position: relative;
  margin: 0 46px;
  padding-bottom: 43px;
}

.data-frame::after,
.profile-view::after {
  content: "";
  position: absolute;
  z-index: 12;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--violet-bright);
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
}

.profile-view::after {
  top: 46px;
  right: 46px;
  left: 46px;
}

.data-frame .table-scroll,
.data-frame .system-footer,
.profile-view .profile-header,
.profile-view .profile-content {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 120ms ease-out,
    transform 150ms ease-out;
}

.data-frame.is-data-switching .table-scroll,
.data-frame.is-data-switching .system-footer,
.profile-view.is-data-switching .profile-header,
.profile-view.is-data-switching .profile-content {
  opacity: 0.68;
  transform: translate3d(0, 2px, 0);
}

.data-frame.is-data-switching::after,
.profile-view.is-data-switching::after {
  animation: data-swap-progress 900ms ease-in-out infinite;
}

.data-frame.is-data-entering .table-scroll,
.data-frame.is-data-entering .system-footer,
.profile-view.is-data-entering .profile-header,
.profile-view.is-data-entering .profile-content {
  animation: data-swap-in 240ms cubic-bezier(0.22, 0.72, 0.24, 1) both;
}

@keyframes data-swap-in {
  from {
    opacity: 0.68;
    transform: translate3d(0, 3px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes data-swap-progress {
  0% {
    opacity: 0;
    transform: scaleX(0.08);
  }

  45% {
    opacity: 0.46;
  }

  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .data-frame .table-scroll,
  .data-frame .system-footer,
  .profile-view .profile-header,
  .profile-view .profile-content {
    transition: none;
  }

  .data-frame.is-data-entering .table-scroll,
  .data-frame.is-data-entering .system-footer,
  .profile-view.is-data-entering .profile-header,
  .profile-view.is-data-entering .profile-content,
  .data-frame.is-data-switching::after,
  .profile-view.is-data-switching::after {
    animation: none;
  }
}

.table-scroll {
  position: relative;
  height: calc(100vh - 220px);
  min-height: 430px;
  overflow: auto;
  scroll-padding-top: 62px;
  scroll-snap-type: y proximity;
  border-right: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  scrollbar-color: var(--faint) transparent;
  scrollbar-width: thin;
}

.table-scroll::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: var(--faint);
}

#statsTable {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
  table-layout: fixed;
}

#statsTable th,
#statsTable td {
  position: relative;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

#statsTable td:not(.player-cell) {
  font-family: var(--mono);
  font-size: 15px;
}

#statsTable th:last-child,
#statsTable td:last-child {
  border-right: 0;
}

#statsTable th::before,
#statsTable td::before {
  content: "+";
  position: absolute;
  z-index: 2;
  top: -7px;
  left: -4px;
  color: var(--violet);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}

#statsTable thead {
  position: static;
}

#statsTable th {
  position: sticky;
  z-index: 8;
  top: 0;
  height: 37px;
  background: #454353;
  box-shadow: 0 1px 0 rgba(170, 163, 199, 0.34);
  color: var(--violet);
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  padding: 3px 8px 0;
  text-align: right;
  text-transform: uppercase;
}

#statsTable .group-header-row .column-group {
  z-index: 9;
  top: 0;
  height: 25px;
  border-right-color: rgba(170, 163, 199, 0.28);
  border-bottom-color: rgba(170, 163, 199, 0.28);
  background: #292833;
  box-shadow: none;
  color: #aaa4c0;
  cursor: default;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 2px 8px 0;
  text-align: center;
}

#statsTable .group-header-row .column-group::before {
  content: none;
}

#statsTable .stat-header-row th {
  top: 25px;
  height: 37px;
}

#statsTable .group-start {
  border-left: 1px solid rgba(190, 182, 221, 0.52);
}

#statsTable th.player-column {
  text-align: left;
}

#statsTable th.rank-column {
  text-align: center;
}

#statsTable th.rank-column,
#statsTable td.rank-cell {
  position: sticky;
  left: 0;
}

#statsTable th.player-column,
#statsTable td.player-cell {
  position: sticky;
  left: 42px;
}

#statsTable th.rank-column,
#statsTable th.player-column {
  z-index: 12;
}

#statsTable td.rank-cell,
#statsTable td.player-cell {
  z-index: 4;
  background: rgba(16, 17, 22, 0.98);
}

#statsTable td.player-cell {
  box-shadow: 8px 0 11px -11px rgba(0, 0, 0, 0.95);
}

#statsTable th[aria-sort="ascending"],
#statsTable th[aria-sort="descending"] {
  background: linear-gradient(180deg, #625e73 0%, #514d61 100%);
  box-shadow:
    inset 0 0 0 1px rgba(218, 211, 239, 0.22),
    inset 0 -3px 0 var(--violet-bright),
    0 1px 0 rgba(170, 163, 199, 0.34);
  color: #f4f0ff;
  font-weight: 500;
}

#statsTable .stats-sort-mark {
  display: inline-block;
  margin-left: 4px;
  color: #ddd6f3;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
  transform: translateY(-1px);
}

#statsTable td.sort-active {
  background-color: rgba(170, 163, 199, 0.075);
  box-shadow:
    inset 1px 0 0 rgba(190, 182, 221, 0.12),
    inset -1px 0 0 rgba(190, 182, 221, 0.12);
}

#statsTable td.player-cell.sort-active {
  background: #24232d;
}

#statsTable tbody tr:hover td.sort-active {
  background-color: rgba(170, 163, 199, 0.15);
}

#statsTable tbody tr {
  height: 38px;
  background: transparent;
  scroll-snap-align: start;
}

#statsTable tbody tr:hover {
  background: rgba(170, 163, 199, 0.08);
}

#statsTable tbody tr:hover td.rank-cell,
#statsTable tbody tr:hover td.player-cell {
  background: #1b1b23;
}

#statsTable td {
  height: 38px;
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  padding: 3px 8px 0;
  text-align: right;
}

#statsTable td.rank-cell {
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  text-align: center;
}

#statsTable td.player-cell {
  overflow: hidden;
  text-align: left;
}

.player-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.player-name {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.team-pip {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  background: var(--violet);
  box-shadow: 0 0 0 1px rgba(170, 163, 199, 0.22);
}

#statsTable td.negative {
  color: var(--negative);
}

#statsTable td.missing {
  color: var(--faint);
}

#statsTable td.stat-cell {
  padding-top: 1px;
}

#statsTable td.stat-cell::after {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 3px;
  opacity: var(--bar-alpha, 0);
}

#statsTable td.stat-cell.pct-high::after {
  background: #b4abd2;
}

#statsTable td.stat-cell.pct-low::after {
  background: #596681;
}

.stat-stack {
  display: grid;
  justify-items: end;
  line-height: .9;
}

.stat-stack > span {
  font-family: var(--mono);
  font-size: 15px;
}

.stat-stack small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1;
}

.usage-meter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 23px;
}

.usage-meter i {
  width: 6px;
  height: 18px;
  background: rgba(170, 163, 199, 0.18);
}

.usage-meter i.active {
  background: var(--violet);
}

.empty-row td {
  height: 180px !important;
  color: var(--muted) !important;
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: 0;
  text-align: center !important;
}

.system-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  height: 35px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  padding: 0 5px;
}

.system-footer::before,
.system-footer::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.system-footer::before {
  left: 35px;
}

.system-footer::after {
  right: 35px;
}

.footer-constellation {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
  overflow: hidden;
}

.footer-constellation::before {
  content: "";
  flex: 1 1 auto;
  min-width: 40px;
  border-top: 1px solid var(--line-soft);
}

.footer-constellation::after {
  content: "";
  flex: 0 0 34px;
  height: 10px;
  margin-left: 7px;
  background: radial-gradient(circle, var(--muted) 0 1px, transparent 1.2px) 0 0 / 5px 5px;
  opacity: 0.72;
}

.footer-constellation i {
  display: block;
  width: 2px;
  height: 5px;
  background: var(--line);
}

.footer-constellation i:nth-child(2),
.footer-constellation i:nth-child(11) { height: 9px; }
.footer-constellation i:nth-child(3),
.footer-constellation i:nth-child(9) { height: 12px; }
.footer-constellation i:nth-child(4),
.footer-constellation i:nth-child(8) { height: 7px; }
.footer-constellation i:nth-child(5) { height: 14px; background: var(--violet); }
.footer-constellation i:nth-child(6),
.footer-constellation i:nth-child(7) { height: 10px; }
.footer-constellation i:nth-child(10) { height: 6px; }
.footer-constellation i:nth-child(12) { height: 4px; }

.trace {
  position: absolute;
  pointer-events: none;
  color: var(--muted);
}

.trace-top {
  top: -31px;
  right: -30px;
  width: 55%;
  height: 31px;
  border-bottom: 1px solid var(--line);
}

.trace-top::before {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -9px;
  width: 166px;
  height: 8px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: skewX(42deg);
  transform-origin: right top;
}

.trace-top::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 13%;
  width: 210px;
  border-top: 1px solid var(--line);
  transform: skewX(-42deg);
}

.trace-top i {
  position: absolute;
  bottom: -4px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink);
}

.trace-top i:nth-child(1) { left: 0; background: var(--violet); }
.trace-top i:nth-child(2) { left: 31%; }
.trace-top i:nth-child(3) {
  bottom: -5px;
  left: 53%;
  width: 38px;
  height: 10px;
  border: 0;
  border-radius: 0;
  background: radial-gradient(circle, var(--violet) 0 1px, transparent 1.2px) 0 0 / 4px 4px;
}
.trace-top i:nth-child(4) { right: 18%; }
.trace-top i:nth-child(5) {
  right: 0;
  bottom: -5px;
  width: 38px;
  height: 10px;
  border: 0;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, var(--muted) 0 2px, transparent 2px 4px);
}

.trace-right {
  top: 0;
  right: -31px;
  width: 31px;
  height: 132px;
  border-right: 1px solid var(--line);
}

.trace-right::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 31px;
  height: 31px;
  border-top: 1px solid var(--line);
  transform: skewY(45deg);
  transform-origin: top right;
}

.trace-right i {
  position: absolute;
  right: -4px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink);
}

.trace-right i:nth-child(1) { top: 6px; }
.trace-right i:nth-child(2) { top: 75px; }
.trace-right i:nth-child(3) { bottom: -3px; }

.edge-scale,
.edge-spectrum,
.edge-orbit {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.edge-scale {
  top: 148px;
  left: -27px;
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  align-items: center;
  width: 17px;
  height: 116px;
  border-left: 1px solid var(--line-soft);
}

.edge-scale::before,
.edge-scale::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

.edge-scale::before { top: -2px; }
.edge-scale::after { bottom: -2px; }

.edge-scale i {
  display: block;
  width: 6px;
  height: 1px;
  background: var(--line);
}

.edge-scale i:nth-child(2),
.edge-scale i:nth-child(6) { width: 10px; }
.edge-scale i:nth-child(4) { width: 15px; background: var(--violet); }

.edge-spectrum {
  right: -32px;
  bottom: 104px;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 3px;
  width: 24px;
  height: 46px;
}

.edge-spectrum i {
  display: block;
  height: 1px;
  background: var(--line);
}

.edge-spectrum i:nth-child(1),
.edge-spectrum i:nth-child(9) { width: 6px; }
.edge-spectrum i:nth-child(2),
.edge-spectrum i:nth-child(8) { width: 11px; }
.edge-spectrum i:nth-child(3),
.edge-spectrum i:nth-child(7) { width: 16px; }
.edge-spectrum i:nth-child(4),
.edge-spectrum i:nth-child(6) { width: 21px; }
.edge-spectrum i:nth-child(5) { width: 24px; background: var(--violet); }

.edge-orbit {
  top: 322px;
  right: -30px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
}

.edge-orbit::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.edge-orbit i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--violet);
}

.edge-orbit i:first-child { top: -2px; left: 7px; }
.edge-orbit i:last-child { right: -2px; bottom: 2px; background: var(--muted); }

.void-page {
  height: calc(100vh - 86px);
  padding: 46px;
}

.void-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(rgba(170, 163, 199, 0.025) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(90deg, rgba(170, 163, 199, 0.025) 1px, transparent 1px) 0 0 / 52px 52px,
    rgba(10, 11, 16, 0.32);
}

.void-frame::before,
.void-frame::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--line);
}

.void-frame::before { top: -5px; left: -5px; }
.void-frame::after { right: -5px; bottom: -5px; }

.void-frame span {
  position: absolute;
  border-top: 1px solid var(--line-soft);
}

.void-frame span:nth-child(1) { top: 18%; left: 7%; width: 22%; }
.void-frame span:nth-child(2) { top: 54%; right: 8%; width: 16%; }
.void-frame span:nth-child(3) { bottom: 12%; left: 38%; width: 25%; }

.teams-rail {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0 46px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.teams-rail > span::before {
  content: "";
  display: inline-block;
  width: 13px;
  margin-right: 8px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.teams-rail label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.teams-rail select {
  width: 76px;
  height: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  outline: 0;
  background: rgba(9, 10, 14, 0.28);
  color: var(--text);
  font-family: var(--mono);
  font-size: 10px;
  padding: 0 9px;
}

.teams-frame,
.team-detail-frame {
  margin: 0 46px;
  border-right: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  background: rgba(10, 11, 16, 0.24);
}

.teams-header {
  display: flex;
  align-items: center;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}

.teams-header h1 {
  margin: 0;
  color: var(--violet);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.teams-table-scroll {
  max-height: 64vh;
  min-height: 420px;
  overflow: auto;
  scrollbar-color: rgba(170, 163, 199, 0.38) transparent;
}

#teamsTable {
  width: 100%;
  min-width: 1084px;
  border-collapse: collapse;
  table-layout: fixed;
}

#teamsTable th,
#teamsTable td {
  height: 42px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  padding: 0 9px;
  text-align: center;
  white-space: nowrap;
}

#teamsTable thead th {
  position: sticky;
  z-index: 12;
  top: 0;
  height: 34px;
  background: #1c1d23;
  color: #a6a6ad;
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.035em;
  text-align: center;
}

#teamsTable thead th:first-child {
  text-align: left;
}

#teamsTable thead th:hover,
#teamsTable thead th[aria-sort="ascending"],
#teamsTable thead th[aria-sort="descending"] {
  background: #2a2b31;
  color: #f1f1f3;
}

#teamsTable tbody tr {
  cursor: pointer;
  transition: background-color 100ms ease;
}

#teamsTable tbody tr:hover,
#teamsTable tbody tr.selected {
  background: rgba(170, 163, 199, 0.07);
}

#teamsTable td.team-code {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  color: var(--text);
  font-family: var(--condensed);
  font-size: 15px;
}

#teamsTable th:first-child,
#teamsTable td:first-child {
  position: sticky;
  left: 0;
}

#teamsTable th:first-child {
  z-index: 14;
}

#teamsTable td:first-child {
  z-index: 5;
  background: rgba(16, 17, 22, 0.98);
  box-shadow: 7px 0 10px -10px rgba(0, 0, 0, 0.9);
}

#teamsTable tbody tr:hover td:first-child,
#teamsTable tbody tr.selected td:first-child {
  background: #1b1b23;
}

.team-badge {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 1px solid color-mix(in srgb, var(--team-color) 72%, white 10%);
  border-radius: 50%;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-color) 84%, white 5%), rgba(11, 12, 17, 0.88) 74%);
  box-shadow: inset 0 0 0 2px rgba(10, 11, 16, 0.45);
  color: #fff;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.team-badge.has-logo {
  width: 31px;
  height: 31px;
  flex-basis: 31px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.team-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-name {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
}

.team-name strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.team-name small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
}

#teamsTable td.team-record {
  color: #efeff3;
  font-weight: 500;
}

#teamsTable th:nth-child(3),
#teamsTable td:nth-child(3),
#teamsTable th:nth-child(6),
#teamsTable td:nth-child(6) {
  border-left: 1px solid rgba(170, 163, 199, 0.38);
}

#teamsTable td.team-metric-cell {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.team-metric-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 6px;
  display: grid;
  grid-template-columns: 16px 36px;
  align-items: baseline;
  gap: 4px;
  transform: translateY(-50%);
  text-align: right;
}

.team-metric-copy span {
  color: #7d7e86;
  font-size: 8px;
}

.team-metric-copy strong {
  color: #f2f2f4;
  font-size: 11px;
  font-weight: 500;
}

.team-metric-track {
  position: absolute;
  top: 50%;
  right: 6px;
  left: 64px;
  height: 12px;
  transform: translateY(-50%);
}

.team-metric-track i {
  position: absolute;
  z-index: 2;
  top: -2px;
  bottom: -2px;
  left: 50%;
  border-left: 1px solid rgba(239, 239, 242, 0.82);
}

.team-metric-track b {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: calc(var(--metric-width) * 0.5);
  background: #a69bc8;
  box-shadow: 0 0 8px rgba(166, 155, 200, 0.16);
}

.team-metric-cell.positive .team-metric-track b {
  left: 50%;
}

.team-metric-cell.negative .team-metric-track b {
  right: 50%;
  background: #596681;
  box-shadow: 0 0 7px rgba(89, 102, 129, 0.14);
}

.team-metric-cell.is-empty {
  color: var(--faint);
}

.team-sort-mark {
  color: #666871;
  font-size: 9px;
}

#teamsTable thead th[aria-sort="ascending"] .team-sort-mark,
#teamsTable thead th[aria-sort="descending"] .team-sort-mark {
  color: #fff;
}

table th[data-table-tooltip]::after {
  content: attr(data-table-tooltip);
  position: absolute;
  z-index: 60;
  top: calc(100% + 9px);
  left: 50%;
  width: 210px;
  max-width: calc(100vw - 28px);
  padding: 9px 10px;
  border-radius: 2px;
  border: 1px solid rgba(170, 163, 199, 0.42);
  background: #292733;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.42);
  color: #e2dfeb;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -3px);
  transition: opacity 100ms ease, transform 100ms ease;
}

table th[data-table-tooltip] {
  position: relative;
}

table th[data-table-tooltip]:hover::after,
table th[data-table-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

table th[data-table-tooltip]:focus-visible {
  outline: 1px solid var(--violet-bright);
  outline-offset: -2px;
}

table th[data-table-tooltip]:not([data-sort-key]):not([data-team-sort]) {
  cursor: help;
}

table th[data-table-tooltip]:first-child::after {
  left: 0;
  transform: translate(0, -3px);
}

table th[data-table-tooltip]:first-child:hover::after,
table th[data-table-tooltip]:first-child:focus-visible::after {
  transform: translate(0, 0);
}

table th[data-table-tooltip]:last-child::after {
  right: 0;
  left: auto;
  transform: translate(0, -3px);
}

table th[data-table-tooltip]:last-child:hover::after,
table th[data-table-tooltip]:last-child:focus-visible::after {
  transform: translate(0, 0);
}

.team-detail-frame {
  margin-bottom: 44px;
  border-top: 1px solid var(--line);
}

.team-detail-frame > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 16px;
}

.team-detail-frame header small,
.team-detail-frame header span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.team-detail-frame h2 {
  margin: 4px 0 0;
  color: var(--violet);
  font-size: 23px;
  font-weight: 400;
}

.team-detail-grid {
  display: grid;
  grid-template-columns: minmax(245px, 0.55fr) minmax(620px, 1.45fr);
}

.team-rating-readout {
  display: grid;
  align-content: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 230px;
  border-right: 1px solid var(--line-soft);
}

.team-rating-readout > div {
  min-height: 88px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 15px 17px;
}

.team-rating-readout span,
.team-rating-readout strong,
.team-rating-readout small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
}

.team-rating-readout span {
  color: var(--muted);
  font-size: 8px;
}

.team-rating-readout strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 22px;
}

.team-rating-readout small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 7px;
}

.team-rotation-scroll {
  overflow: auto;
}

.team-rotation-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.team-rotation-table th,
.team-rotation-table td {
  height: 34px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  padding: 2px 10px 0;
  text-align: right;
}

.team-rotation-table th {
  background: rgba(69, 67, 83, 0.36);
  color: var(--violet);
  font-size: 8px;
}

.team-rotation-table th:first-child,
.team-rotation-table td:first-child {
  text-align: left;
}

.team-rotation-table a {
  color: var(--text);
  text-decoration: none;
}

.team-rotation-table a:hover {
  color: var(--violet-bright);
}

.about-rail {
  grid-template-columns: 1fr auto;
}

.regression-tabs {
  display: flex;
  align-items: end;
  gap: 22px;
  height: 100%;
}

.regression-tabs button.active {
  box-shadow: inset 0 -2px 0 var(--violet);
}

.about-frame {
  position: relative;
  margin: 0 46px 40px;
  border-right: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  background: rgba(10, 11, 16, 0.18);
}

.methodology-paper {
  width: 100%;
}

.about-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, auto);
  gap: 54px;
  min-height: 188px;
  border-bottom: 1px solid var(--line);
  padding: 34px 42px 32px;
}

.about-title-block > p:first-child {
  margin: 0 0 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.about-header h1 {
  margin: 0;
  color: var(--violet);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.08;
}

.about-dek {
  max-width: 720px;
  margin: 15px 0 0;
  color: #c3c3ce;
  font-size: 15px;
  line-height: 1.55;
}

.about-header dl {
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  gap: 24px;
  margin: 0;
}

.about-header dl div {
  min-width: 90px;
  border-left: 1px solid var(--line-soft);
  padding-left: 14px;
}

.about-header dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.about-header dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 20px;
}

.method-index {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 43px;
  border-bottom: 1px solid var(--line-soft);
  padding: 0 42px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.method-index a {
  color: var(--muted);
  text-decoration: none;
}

.method-index a::before {
  content: "/";
  margin-right: 8px;
  color: var(--faint);
}

.method-index a:hover,
.method-index a:focus-visible {
  color: var(--violet-bright);
}

.method-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 820px);
  justify-content: center;
  gap: 36px;
  scroll-margin-top: 24px;
  border-bottom: 1px solid var(--line-soft);
  padding: 42px 40px 44px;
}

.method-section-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  padding-top: 7px;
}

.method-section-body h2,
.validation-figure h2 {
  margin: 0 0 17px;
  color: var(--violet-bright);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.method-section-body p {
  margin: 0 0 16px;
  color: #c5c5cf;
  font-size: 15px;
  line-height: 1.68;
}

.method-section-body p:last-child {
  margin-bottom: 0;
}

.method-section-body strong {
  color: var(--text);
  font-weight: 500;
}

.method-section-body code,
.worked-example code {
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: 0.82em;
}

.method-equation {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 56px;
  margin: 24px 0 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 0;
}

.method-equation-wide {
  margin-bottom: 22px;
}

.method-equation > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.method-equation > code {
  overflow-wrap: anywhere;
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
}

.validation-figure {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.validation-figure figcaption {
  display: grid;
  grid-template-columns: 180px minmax(0, 820px);
  justify-content: center;
  gap: 36px;
  padding: 38px 40px 22px;
}

.validation-figure figcaption > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  padding-top: 7px;
}

.validation-figure figcaption h2 {
  margin-bottom: 8px;
}

.validation-figure figcaption p,
.figure-note {
  margin: 0;
  color: #aeb0be;
  font-size: 13px;
  line-height: 1.6;
}

.fit-readout {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: end;
  align-items: center;
  gap: 30px;
  min-height: 42px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  padding: 0 42px;
}

.fit-readout b {
  color: var(--text);
  font-weight: 400;
}

.about-chart-wrap {
  position: relative;
  height: min(66vh, 650px);
  min-height: 520px;
  background:
    linear-gradient(rgba(170, 163, 199, 0.045) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(90deg, rgba(170, 163, 199, 0.045) 1px, transparent 1px) 0 0 / 52px 52px,
    rgba(8, 9, 13, 0.58);
}

#aboutChart {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-key {
  position: absolute;
  right: 26px;
  bottom: 22px;
  display: grid;
  gap: 5px;
  width: 190px;
  color: var(--violet);
  font-family: var(--mono);
  font-size: 9px;
}

.chart-key i {
  display: block;
  height: 10px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(90deg, #66718d, #d8d5e5, #a9a1c8);
}

.chart-key small {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  width: 210px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 16, 0.96);
  color: var(--text);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  padding: 10px 12px;
  pointer-events: none;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  color: var(--violet-bright);
  font-weight: 400;
  margin-bottom: 3px;
}

.chart-tooltip span {
  color: var(--muted);
}

.player-chart-tooltip {
  position: fixed;
  z-index: 100;
  width: max-content;
  min-width: 164px;
  max-width: min(248px, calc(100vw - 20px));
  border: 1px solid rgba(170, 163, 199, 0.58);
  background: rgba(10, 11, 16, 0.97);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  color: var(--text);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.35;
  padding: 9px 11px 10px;
  pointer-events: none;
}

.player-chart-tooltip > small {
  display: block;
  margin-bottom: 3px;
  color: var(--faint);
  font-size: 7px;
  text-transform: uppercase;
}

.player-chart-tooltip > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--violet-bright);
  font-family: var(--condensed);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.05;
}

.player-chart-tooltip dl {
  display: grid;
  gap: 4px;
  min-width: 142px;
  margin: 0;
}

.player-chart-tooltip dl > div {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto;
  align-items: baseline;
  gap: 16px;
}

.player-chart-tooltip dt,
.player-chart-tooltip dd {
  margin: 0;
}

.player-chart-tooltip dt {
  color: var(--muted);
  font-size: 8px;
}

.player-chart-tooltip dd {
  color: var(--text);
  text-align: right;
}

.player-chart-tooltip dl > div.accent dd {
  color: var(--violet-bright);
}

.player-chart-tooltip > span {
  display: block;
  margin-top: 8px;
  border-top: 1px dotted var(--line-soft);
  color: var(--muted);
  font-size: 8px;
  padding-top: 7px;
}

canvas[data-player-chart-tooltip="true"],
.percentile-bars [data-player-chart-tooltip="true"] {
  cursor: crosshair;
}

.percentile-bars [data-player-chart-tooltip="true"]:focus-visible {
  outline: 1px solid var(--violet);
  outline-offset: 3px;
}

.figure-note {
  border-top: 1px solid var(--line-soft);
  padding: 14px 42px 17px;
  font-family: var(--mono);
  font-size: 9px;
}

.method-table {
  width: 100%;
  margin: 25px 0 24px;
  border-collapse: collapse;
  color: #c8c8d2;
  font-family: var(--mono);
  font-size: 9px;
}

.method-table caption {
  border-top: 1px solid var(--line);
  padding: 9px 0;
  color: var(--muted);
  text-align: left;
  text-transform: uppercase;
}

.method-table th,
.method-table td {
  border-top: 1px solid var(--line-soft);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.method-table th {
  color: var(--violet);
  font-weight: 400;
}

.method-table th:first-child,
.method-table td:first-child {
  width: 155px;
  padding-left: 0;
}

.worked-example {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0 15px;
}

.worked-example header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 10px;
}

.worked-example header > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.worked-example h3 {
  margin: 0;
  color: var(--violet-bright);
  font-size: 18px;
  font-weight: 400;
}

.worked-example table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 9px;
}

.worked-example th,
.worked-example td {
  border-top: 1px solid var(--line-soft);
  padding: 9px 10px;
  text-align: left;
  font-weight: 400;
}

.worked-example th {
  width: 180px;
  padding-left: 0;
  color: var(--muted);
}

.worked-example td:nth-child(2) {
  width: 95px;
  color: var(--text);
  font-size: 12px;
}

.worked-example td:last-child {
  color: #8f94a8;
}

.worked-example .example-total th,
.worked-example .example-total td {
  color: var(--violet-bright);
}

.worked-example > p {
  margin: 14px 0 0;
  color: #9fa2b2;
  font-size: 12px;
  line-height: 1.6;
}

.method-limitations {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.method-limitations li {
  position: relative;
  border-top: 1px solid var(--line-soft);
  padding: 10px 0 10px 24px;
  color: #b8bac6;
  font-size: 13px;
  line-height: 1.55;
}

.method-limitations li::before {
  content: "+";
  position: absolute;
  left: 2px;
  color: var(--violet);
  font-family: var(--mono);
}

.method-sources {
  display: grid;
  grid-template-columns: 180px minmax(0, 820px);
  justify-content: center;
  gap: 36px;
  padding: 28px 40px 34px;
}

.method-sources > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.method-sources p {
  margin: 0;
  color: #9296a8;
  font-size: 12px;
  line-height: 1.6;
}

.method-sources a {
  color: var(--violet-bright);
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.player-name {
  text-decoration: none;
}

.player-name:hover {
  color: var(--violet-bright);
}

.profile-rail {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0 46px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.profile-rail > a::before {
  content: "";
  display: inline-block;
  width: 13px;
  margin-right: 8px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.profile-selectors select {
  height: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  outline: 0;
  background: rgba(9, 10, 14, 0.28);
  color: var(--text);
  font-family: var(--mono);
  font-size: 10px;
  padding: 0 9px;
}

.player-finder {
  width: min(calc(100% - 64px), 1120px);
  margin: 0 auto;
  padding: 62px 0 76px;
}

.player-search-wrap {
  position: relative;
  z-index: 20;
}

.player-search {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 74px;
  border: 1px solid rgba(170, 163, 199, 0.32);
  border-radius: 16px;
  background: rgba(24, 25, 33, 0.8);
  box-shadow: 0 18px 48px rgba(4, 5, 8, 0.16);
  padding: 0 22px;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.player-search:focus-within {
  border-color: rgba(212, 208, 229, 0.68);
  background: rgba(29, 30, 40, 0.94);
  box-shadow: 0 20px 54px rgba(4, 5, 8, 0.26), 0 0 0 3px rgba(170, 163, 199, 0.08);
}

.player-search > span {
  position: relative;
  width: 22px;
  height: 22px;
}

.player-search > span::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 13px;
  height: 13px;
  border: 1.5px solid #a4a5b2;
  border-radius: 50%;
}

.player-search > span::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  width: 7px;
  border-top: 1.5px solid #a4a5b2;
  transform: rotate(45deg);
  transform-origin: left center;
}

.player-search input {
  width: 100%;
  height: 72px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--condensed);
  font-size: 26px;
  font-weight: 300;
  padding: 2px 0 0;
}

.player-search input::placeholder {
  color: #777b8c;
  opacity: 1;
}

.player-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 30px;
  border-top: 1px solid rgba(170, 163, 199, 0.2);
}

.player-result {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 68px;
  border-bottom: 1px solid rgba(170, 163, 199, 0.15);
  border-radius: 10px;
  color: inherit;
  padding: 12px 13px;
  text-decoration: none;
  transition: background 130ms ease, transform 130ms ease;
}

.player-result:hover,
.player-result:focus-visible {
  outline: 0;
  background: rgba(170, 163, 199, 0.075);
  transform: translateY(-1px);
}

.player-result > strong {
  overflow: hidden;
  color: var(--text);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-results .directory-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 220px;
  place-content: center;
  gap: 7px;
}

.player-results .directory-empty strong {
  color: #b8bac8;
  font-family: var(--condensed);
  font-size: 22px;
  font-weight: 400;
  text-transform: none;
}

.player-results .directory-empty span {
  color: #7f8393;
  font-family: var(--condensed);
  font-size: 14px;
  text-transform: none;
}

.directory-empty,
.profile-empty {
  color: var(--faint) !important;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  text-align: center !important;
}

.profile-rail {
  gap: 18px;
}

.profile-rail > a {
  color: var(--muted);
  text-decoration: none;
}

.profile-rail > a:hover,
.profile-rail-name {
  color: var(--violet);
}

.profile-rail-name::before {
  content: "/";
  margin-right: 18px;
  color: var(--faint);
}

.profile-selectors {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.profile-selectors label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-selectors select {
  min-width: 76px;
}

.profile-header {
  display: grid;
  grid-template-columns: minmax(310px, 1.35fr) minmax(230px, 0.82fr) minmax(220px, 0.76fr) minmax(290px, 1.12fr);
  min-height: 216px;
  margin: 0 46px;
  border-right: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  background: rgba(10, 11, 16, 0.28);
}

.profile-header > article {
  min-width: 0;
  border-right: 1px solid var(--line-soft);
}

.profile-header > article:last-child {
  border-right: 0;
}

.profile-identity {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: stretch;
}

.profile-portrait-wrap {
  position: relative;
  align-self: end;
  height: 196px;
  overflow: hidden;
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(rgba(170, 163, 199, 0.04) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(170, 163, 199, 0.04) 1px, transparent 1px) 0 0 / 22px 22px;
}

.profile-portrait-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: saturate(0.78) contrast(1.04);
}

.profile-portrait-wrap > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--violet);
  font-family: var(--mono);
  font-size: 30px;
}

.profile-identity-copy {
  align-self: center;
  min-width: 0;
  padding: 24px 22px;
}

.profile-identity-copy p,
.profile-identity-copy h1 {
  margin: 0;
}

.profile-identity-copy p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.profile-identity-copy h1 {
  margin-top: 7px;
  color: var(--text);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.02;
  text-transform: uppercase;
}

.profile-meta {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  color: #a4a7b5;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.25;
}

.profile-meta span::before {
  content: "+";
  margin-right: 7px;
  color: var(--faint);
}

.profile-apm-panel,
.profile-skill-panel,
.profile-roster-panel {
  padding: 18px;
}

.profile-apm-panel > header,
.profile-skill-panel > header,
.profile-roster-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.profile-apm-panel header small,
.profile-skill-panel header small,
.profile-roster-panel header small {
  color: var(--faint);
  font-size: 8px;
}

.profile-apm-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 17px;
}

.profile-apm-main strong {
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: 45px;
  font-weight: 500;
  line-height: 1;
}

.profile-apm-main span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.profile-apm-splits {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.profile-apm-splits > div {
  display: grid;
  grid-template-columns: 28px 1fr 38px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.profile-apm-splits i {
  position: relative;
  display: block;
  height: 7px;
  background: rgba(170, 163, 199, 0.08);
}

.profile-apm-splits b {
  display: block;
  height: 100%;
  background: var(--violet);
}

.profile-apm-splits strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 400;
  text-align: right;
}

.profile-apm-panel > footer {
  margin-top: 20px;
  border-top: 1px dotted var(--line-soft);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  padding-top: 10px;
}

.profile-skill-chart-wrap {
  position: relative;
  width: min(100%, 160px);
  aspect-ratio: 1;
  margin: 5px auto 0;
}

#profileSkillChart {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.profile-roster {
  display: grid;
  gap: 12px;
  margin-top: 19px;
}

.profile-roster > div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
}

.profile-roster b {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
}

.profile-roster span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.profile-roster a,
.profile-roster em {
  color: #8d91a2;
  font-size: 13px;
  font-style: normal;
  line-height: 1;
  text-decoration: none;
}

.profile-roster a:hover,
.profile-roster a.active {
  color: var(--violet-bright);
}

.profile-roster a.active {
  border-bottom: 1px solid var(--violet);
}

.profile-tabs {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: end;
  gap: 28px;
  height: 47px;
  margin: 0 46px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(16, 17, 22, 0.96), rgba(16, 17, 22, 0.96)),
    url("assets/textures/surface-grain.png") 0 0 / 384px 256px repeat;
  box-shadow: 0 10px 18px rgba(8, 8, 12, 0.2);
  padding: 0 18px;
}

.profile-tabs button,
.profile-segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.profile-tabs button {
  height: 100%;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  padding: 2px 4px 0;
}

.profile-tabs button:hover,
.profile-tabs button.active {
  color: var(--violet-bright);
}

.profile-tabs button.active {
  border-bottom-color: var(--violet);
}

.profile-content {
  display: grid;
  min-width: 0;
  gap: 18px;
  margin: 18px 46px 52px;
}

.profile-stack-section {
  display: grid;
  min-width: 0;
  gap: 18px;
  scroll-margin-top: 58px;
}

.profile-loading,
.profile-error {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.profile-loading.compact {
  min-height: 120px;
}

.profile-error {
  align-content: center;
  gap: 10px;
}

.profile-error h2 {
  margin: 0;
  color: var(--violet);
  font-family: var(--condensed);
  font-size: 28px;
  font-weight: 400;
}

.profile-error a {
  color: var(--violet-bright);
}

.profile-data-frame {
  min-width: 0;
  border: 1px solid var(--line-soft);
  background: rgba(10, 11, 16, 0.28);
}

.profile-data-frame > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 16px;
}

.profile-data-frame > header small,
.profile-data-frame > header span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.profile-data-frame > header h2 {
  margin: 4px 0 0;
  color: var(--violet);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.profile-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow: auto;
}

.profile-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  table-layout: auto;
}

.profile-table th,
.profile-table td {
  position: relative;
  height: 36px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  padding: 2px 10px 0;
  text-align: right;
  white-space: nowrap;
}

.profile-table th {
  height: 32px;
  background: rgba(68, 66, 84, 0.46);
  color: var(--violet);
  font-size: 10px;
}

.profile-table th:first-child,
.profile-table td:first-child,
.profile-table th:nth-child(2),
.profile-table td:nth-child(2) {
  text-align: left;
}

.profile-table tbody tr.selected {
  background: rgba(170, 163, 199, 0.075);
}

.profile-table tbody tr:hover {
  background: rgba(170, 163, 199, 0.055);
}

.profile-metric {
  padding-left: 13px !important;
}

.profile-metric::after {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 3px;
  opacity: var(--bar-alpha, 0);
}

.profile-metric.pct-high::after {
  background: #b4abd2;
}

.profile-metric.pct-low::after {
  background: #596681;
}

.profile-metric strong,
.profile-metric small {
  display: block;
  font-weight: 400;
  line-height: 1;
}

.profile-metric small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 7px;
}

.apm-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apm-chart-panel {
  min-width: 0;
  border-right: 1px solid var(--line-soft);
}

.apm-chart-panel:last-child {
  border-right: 0;
}

.apm-chart-panel > header,
.shooting-panel > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 46px;
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 13px;
}

.apm-chart-panel h3,
.shooting-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.apm-chart-panel p,
.shooting-panel p,
.apm-chart-panel small,
.shooting-panel small {
  margin: 2px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
}

.apm-game-chart-wrap {
  position: relative;
  height: 390px;
  background:
    linear-gradient(rgba(170, 163, 199, 0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(170, 163, 199, 0.025) 1px, transparent 1px) 0 0 / 48px 48px;
}

.apm-game-chart-wrap canvas,
.shooting-chart-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.shooting-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.shooting-panel {
  min-width: 0;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.shooting-panel-career,
.shooting-panel-games {
  grid-column: span 6;
}

.shooting-panel-summary,
.shooting-panel-attempts {
  grid-column: span 3;
}

.shooting-panel-zones {
  grid-column: span 2;
}

.shooting-panel-density {
  grid-column: span 4;
}

.shooting-chart-canvas {
  height: 420px;
  background:
    linear-gradient(rgba(170, 163, 199, 0.025) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(170, 163, 199, 0.025) 1px, transparent 1px) 0 0 / 44px 44px;
}

.shooting-panel-summary .shooting-chart-canvas,
.shooting-panel-attempts .shooting-chart-canvas,
.shooting-panel-zones .shooting-chart-canvas,
.shooting-panel-density .shooting-chart-canvas {
  height: 300px;
}

.shooting-summary-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--mono);
}

.shooting-summary-table th,
.shooting-summary-table td {
  height: 38px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 9px;
  font-weight: 400;
  padding: 2px 4px 0;
  text-align: right;
}

.shooting-summary-table th {
  color: var(--muted);
  font-size: 7px;
}

.shooting-summary-table td {
  color: var(--text);
  font-size: 11px;
}

.shooting-zone-list {
  display: grid;
  align-content: start;
}

.shooting-zone-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  min-height: 45px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  padding: 9px 12px;
}

.shooting-zone-list strong {
  color: var(--text);
  font-size: 10px;
  font-weight: 400;
}

.shooting-zone-list small {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: 7px;
}

.profile-segmented {
  display: flex;
  gap: 1px;
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 12px;
}

.profile-segmented button {
  height: 27px;
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 8px;
  padding: 0 12px;
}

.profile-segmented button:hover,
.profile-segmented button.active {
  border-color: var(--line);
  background: rgba(170, 163, 199, 0.1);
  color: var(--violet-bright);
}

.percentile-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  padding: 25px 28px 30px;
}

.percentile-bars > div {
  display: grid;
  grid-template-columns: 110px 1fr 32px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.percentile-bars i {
  display: block;
  height: 8px;
  background: rgba(119, 131, 159, 0.12);
}

.percentile-bars b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #66718d, #aaa3c7);
}

.percentile-bars strong {
  color: var(--text);
  font-weight: 400;
  text-align: right;
}

.shot-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(190px, 0.55fr);
  min-height: 500px;
}

.shot-canvas-wrap {
  aspect-ratio: 50 / 47;
  min-height: 460px;
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(rgba(170, 163, 199, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(170, 163, 199, 0.035) 1px, transparent 1px) 0 0 / 48px 48px;
}

#profileShotChart {
  display: block;
  width: 100%;
  height: 100%;
}

.zone-readout {
  display: grid;
  align-content: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.zone-readout > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  border-bottom: 1px solid var(--line-soft);
  padding: 15px 18px;
}

.zone-readout strong {
  color: var(--text);
  font-weight: 400;
}

.zone-readout small {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: 8px;
}

.game-log-table {
  min-width: 1020px;
}

.game-log-table .result-w {
  color: var(--violet-bright);
}

.game-log-table .result-l {
  color: var(--negative);
}

@media (max-width: 900px) {
  .system-header {
    grid-template-columns: minmax(320px, 1fr) auto;
  }

  .system-brand {
    gap: 22px;
    padding: 0 20px;
  }

  .wordmark {
    font-size: 36px;
  }

  .primary-nav {
    width: auto;
    gap: 20px;
    padding-right: 22px;
    padding-left: 18px;
  }

  .primary-nav button {
    font-size: 20px;
  }

  .control-deck {
    grid-template-columns: 1fr;
  }

  .deck-node {
    display: none;
  }

  .data-controls {
    gap: 22px;
  }

  .about-header {
    grid-template-columns: 1fr;
  }

  .about-header dl {
    justify-content: start;
  }

  .method-section,
  .validation-figure figcaption,
  .method-sources {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 680px) {
  .system-header {
    grid-template-columns: 1fr;
    grid-template-rows: 58px 48px;
    height: 107px;
  }

  .system-brand {
    justify-content: space-between;
  }

  .wordmark {
    font-size: 34px;
  }

  .update-readout {
    font-size: 8px;
  }

  .primary-nav {
    width: auto;
    justify-content: space-between;
    border-top: 1px solid var(--line-soft);
    padding: 0 18px;
  }

  .primary-nav button {
    font-size: 19px;
  }

  .primary-nav button::after {
    bottom: 9px;
  }

  .system-stage {
    min-height: calc(100vh - 119px);
  }

  .control-deck {
    grid-template-columns: 1fr;
    min-height: 76px;
    margin: 0 12px;
    padding: 0;
  }

  .data-controls {
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    height: 76px;
    padding: 8px 1px 7px;
    scrollbar-width: thin;
  }

  .data-controls label {
    flex: 0 0 auto;
    font-size: 9px;
  }

  .data-controls select,
  .data-controls input {
    height: 30px;
    font-size: 12px;
  }

  .data-controls select,
  .data-controls input[type="number"] {
    width: 50px;
  }

  .data-controls .search-field input {
    width: 90px;
  }

  #tableCols col:first-child {
    width: 0 !important;
  }

  #tableCols col:nth-child(2) {
    width: 160px !important;
  }

  #statsTable th.rank-column,
  #statsTable td.rank-cell {
    position: static;
    width: 0;
    max-width: 0;
    overflow: hidden;
    border: 0;
    padding: 0;
    visibility: hidden;
  }

  #statsTable th.player-column,
  #statsTable td.player-cell {
    left: 0;
  }

  .data-frame,
  .about-frame {
    margin-right: 12px;
    margin-left: 12px;
  }

  .table-scroll {
    height: calc(100vh - 235px);
    min-height: 390px;
  }

  .trace-top,
  .trace-right,
  .axis-mark,
  .edge-scale,
  .edge-spectrum,
  .edge-orbit {
    display: none;
  }

  .system-footer {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .footer-constellation {
    display: none;
  }

  .void-page {
    height: calc(100vh - 119px);
    padding: 12px;
  }

  .about-rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding-top: 0;
  }

  .regression-tabs {
    height: 48px;
  }

  .about-header {
    min-height: 0;
    padding: 18px 16px;
  }

  .about-header h1 {
    font-size: 28px;
  }

  .about-dek {
    margin-top: 12px;
    font-size: 13px;
  }

  .about-header dl {
    gap: 10px;
  }

  .about-header dl div {
    min-width: 0;
    padding-left: 8px;
  }

  .about-header dd {
    font-size: 17px;
  }

  .method-index {
    gap: 18px;
    overflow-x: auto;
    padding: 0 16px;
    white-space: nowrap;
  }

  .method-section,
  .validation-figure figcaption,
  .method-sources {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 28px 16px 30px;
  }

  .method-section-label,
  .validation-figure figcaption > span {
    padding-top: 0;
  }

  .method-section-body h2,
  .validation-figure h2 {
    font-size: 21px;
  }

  .method-section-body p {
    font-size: 14px;
  }

  .method-equation {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .fit-readout {
    grid-template-columns: repeat(2, 1fr);
    justify-content: stretch;
    gap: 8px;
    padding: 9px 14px;
  }

  .about-chart-wrap {
    height: 430px;
    min-height: 430px;
  }

  .chart-key {
    right: 16px;
    bottom: 13px;
    width: 150px;
  }

  .figure-note {
    padding-right: 16px;
    padding-left: 16px;
  }

  .method-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .worked-example th {
    width: 130px;
  }

  .worked-example td:last-child {
    display: none;
  }
}

@media (max-width: 1240px) {
  .shooting-panel-summary,
  .shooting-panel-attempts,
  .shooting-panel-zones,
  .shooting-panel-density {
    grid-column: span 6;
  }

  .profile-header {
    grid-template-columns: minmax(330px, 1.2fr) minmax(230px, 0.8fr) minmax(230px, 0.75fr);
  }

  .profile-roster-panel {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line-soft);
  }

  .profile-roster {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .profile-view::after {
    right: 24px;
    left: 24px;
  }

  .teams-rail,
  .teams-frame,
  .team-detail-frame,
  .profile-rail,
  .profile-header,
  .profile-tabs,
  .profile-content {
    margin-right: 24px;
    margin-left: 24px;
  }

  .profile-header {
    grid-template-columns: 1fr 1fr;
  }

  .team-detail-grid,
  .apm-chart-grid {
    grid-template-columns: 1fr;
  }

  .team-rating-readout {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .apm-chart-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .profile-identity {
    min-height: 216px;
  }

  .profile-skill-panel {
    border-top: 1px solid var(--line-soft);
  }

  .profile-roster-panel {
    grid-column: auto;
  }

  .profile-roster {
    grid-template-columns: 1fr;
  }

  .shot-workspace {
    grid-template-columns: 1fr;
  }

  .shot-canvas-wrap {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .zone-readout {
    grid-template-columns: repeat(5, 1fr);
  }

  .zone-readout > div {
    border-right: 1px solid var(--line-soft);
    border-bottom: 0;
  }

  .player-finder {
    width: min(calc(100% - 48px), 760px);
    padding-top: 48px;
  }

  .player-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .profile-view::after {
    right: 12px;
    left: 12px;
  }

  .teams-rail,
  .teams-frame,
  .team-detail-frame,
  .profile-rail,
  .profile-header,
  .profile-tabs,
  .profile-content {
    margin-right: 12px;
    margin-left: 12px;
  }

  .teams-rail,
  .profile-rail {
    min-height: 50px;
  }

  .profile-rail-name {
    display: none;
  }

  .player-finder {
    width: calc(100% - 32px);
    padding: 36px 0 54px;
  }

  .player-search {
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 64px;
    border-radius: 13px;
    padding: 0 17px;
  }

  .player-search input {
    height: 62px;
    font-size: 22px;
  }

  .player-result {
    min-height: 62px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .player-result > strong {
    font-size: 21px;
  }

  .teams-header {
    min-height: 0;
    padding: 16px;
  }

  .teams-header h1 {
    font-size: 29px;
  }

  .teams-header dl {
    gap: 8px;
  }

  .teams-header dl div {
    min-width: 0;
    padding-left: 8px;
  }

  .teams-table-scroll {
    min-height: 390px;
  }

  .shooting-panel-career,
  .shooting-panel-games,
  .shooting-panel-summary,
  .shooting-panel-attempts,
  .shooting-panel-zones,
  .shooting-panel-density {
    grid-column: 1 / -1;
  }

  .profile-header {
    grid-template-columns: 1fr;
  }

  .profile-header > article,
  .profile-skill-panel,
  .profile-roster-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .profile-identity {
    grid-template-columns: 112px 1fr;
    min-height: 188px;
  }

  .profile-portrait-wrap {
    height: 174px;
  }

  .profile-identity-copy {
    padding: 18px 15px;
  }

  .profile-identity-copy h1 {
    font-size: 25px;
  }

  .profile-meta {
    margin-top: 14px;
    font-size: 8px;
  }

  .profile-tabs {
    gap: 8px;
    height: 45px;
    overflow-x: auto;
    padding: 0 6px;
  }

  .profile-tabs button {
    flex: 0 0 auto;
    font-size: 14px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .profile-content {
    margin-top: 12px;
    margin-bottom: 28px;
  }

  .profile-data-frame > header {
    padding: 11px 12px;
  }

  .profile-data-frame > header h2 {
    font-size: 19px;
  }

  .percentile-bars {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .percentile-bars > div {
    grid-template-columns: 94px 1fr 28px;
  }

  .apm-game-chart-wrap {
    height: 350px;
  }

  .shot-canvas-wrap {
    min-height: 320px;
  }

  .zone-readout {
    grid-template-columns: 1fr 1fr;
  }

  .zone-readout > div {
    border-bottom: 1px solid var(--line-soft);
  }
}

/* About reads as a methodology document, not another dashboard surface. */
.about-view {
  padding-bottom: 80px;
}

.about-document {
  width: min(860px, calc(100% - 64px));
  margin: 50px auto 0;
  color: #c9c9d3;
}

.about-document-header {
  padding-bottom: 10px;
}

.document-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.about-document h1 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
}

.about-document .about-dek {
  max-width: none;
  margin: 15px 0 0;
  color: #c9c9d3;
  font-size: 16px;
  line-height: 1.58;
}

.document-meta {
  margin: 17px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
}

.document-section {
  scroll-margin-top: 28px;
  padding-top: 29px;
}

.about-document h2 {
  margin: 0 0 11px;
  color: var(--text);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}

.about-document h3 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
}

.document-section > p,
.method-sources p {
  max-width: 820px;
  margin: 0 0 14px;
  color: #c9c9d3;
  font-size: 16px;
  line-height: 1.58;
}

.about-document strong {
  color: #ececf2;
  font-weight: 500;
}

.about-document code {
  color: #d7d2e8;
  font-family: var(--mono);
  font-size: 0.85em;
}

.about-document .method-equation {
  display: block;
  min-height: 0;
  margin: 20px 0;
  border: 0;
  background: transparent;
  padding: 0 0 0 22px;
}

.about-document .method-equation code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--violet-bright);
  font-size: 12px;
  line-height: 1.65;
}

.about-document .validation-figure {
  margin: 38px 0 7px;
  border: 0;
  padding-top: 0;
}

.about-document .validation-figure figcaption {
  display: flex;
  grid-template-columns: none;
  justify-content: space-between;
  align-items: start;
  gap: 28px;
  padding: 0;
}

.about-document .validation-figure figcaption > div:first-child {
  max-width: 690px;
}

.about-document .validation-figure figcaption h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 19px;
  font-weight: 500;
}

.about-document .validation-figure figcaption p {
  margin: 0;
  color: #bdbdc8;
  font-size: 14px;
  line-height: 1.55;
}

.about-document .regression-tabs {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 0;
  height: 31px;
  border: 1px solid var(--line-soft);
}

.about-document .regression-tabs button {
  height: 100%;
  border: 0;
  border-left: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  padding: 0 11px;
  text-transform: none;
}

.about-document .regression-tabs button:first-child {
  border-left: 0;
}

.about-document .regression-tabs button::before,
.about-document .regression-tabs button::after {
  content: none;
}

.about-document .regression-tabs button.active,
.about-document .regression-tabs button:hover {
  background: rgba(170, 163, 199, 0.11);
  box-shadow: none;
  color: var(--violet-bright);
}

.about-document .fit-readout {
  display: flex;
  grid-template-columns: none;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 0;
  margin: 18px 0 12px;
  border: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  padding: 0;
}

.about-document .fit-readout b {
  color: #e3e3e9;
  font-weight: 400;
}

.about-document .about-chart-wrap {
  height: 480px;
  min-height: 0;
  border: 1px solid rgba(170, 163, 199, 0.34);
  background:
    linear-gradient(rgba(170, 163, 199, 0.032) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(90deg, rgba(170, 163, 199, 0.032) 1px, transparent 1px) 0 0 / 52px 52px,
    rgba(8, 9, 13, 0.24);
}

.about-document .chart-key {
  right: 18px;
  bottom: 16px;
  width: 155px;
  font-size: 8px;
}

.about-document .chart-key i {
  height: 8px;
}

.about-document .figure-note {
  margin: 11px 0 0;
  border: 0;
  color: #9799aa;
  font-family: var(--condensed);
  font-size: 13px;
  line-height: 1.55;
  padding: 0;
}

.about-document .worked-example {
  margin-top: 24px;
  border: 0;
  padding: 0;
}

.about-document .worked-example table {
  width: 100%;
  margin: 0 0 15px;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 10px;
}

.about-document .worked-example th,
.about-document .worked-example td {
  border-top: 1px solid rgba(170, 163, 199, 0.2);
  padding: 10px 12px;
  text-align: left;
  font-weight: 400;
}

.about-document .worked-example th {
  width: 150px;
  padding-left: 0;
  color: var(--muted);
}

.about-document .worked-example td:nth-child(2) {
  width: 84px;
  color: var(--text);
  font-size: 12px;
}

.about-document .worked-example td:last-child {
  color: #9699aa;
}

.about-document .worked-example .example-total th,
.about-document .worked-example .example-total td {
  color: var(--violet-bright);
}

.about-document .worked-example > p {
  margin: 0 0 13px;
  color: #aaaab6;
  font-size: 16px;
  line-height: 1.58;
}

.about-document .worked-example .example-calculation {
  color: #c9c9d3;
}

.about-document .worked-example .example-calculation strong {
  color: var(--violet-bright);
  font-family: var(--mono);
  font-size: 0.82em;
}

.about-document .method-sources {
  display: block;
  margin-top: 36px;
  border-top: 1px solid rgba(170, 163, 199, 0.34);
  padding: 26px 0 0;
}

.about-document .method-sources h2 {
  font-size: 18px;
}

.about-document .method-sources p {
  color: #aaaab6;
  font-size: 15px;
}

.about-document .method-sources a {
  color: var(--violet-bright);
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .about-view {
    padding-bottom: 52px;
  }

  .about-document {
    width: calc(100% - 32px);
    margin-top: 32px;
  }

  .about-document-header {
    padding-bottom: 25px;
  }

  .about-document h1 {
    font-size: 24px;
  }

  .about-document .about-dek {
    font-size: 16px;
  }

  .document-section {
    padding-top: 27px;
  }

  .about-document h2,
  .about-document .validation-figure figcaption h2 {
    font-size: 19px;
  }

  .document-section > p {
    font-size: 16px;
  }

  .about-document .validation-figure {
    margin-top: 34px;
    padding-top: 0;
  }

  .about-document .validation-figure figcaption {
    display: grid;
    gap: 18px;
  }

  .about-document .regression-tabs {
    width: max-content;
  }

  .about-document .about-chart-wrap {
    height: 430px;
  }

  .about-document .worked-example {
    overflow-x: auto;
  }

  .about-document .worked-example table {
    min-width: 560px;
  }
}
