:root {
  color-scheme: dark;
  --bg: #070a0d;
  --panel: #111820;
  --panel-soft: #18222c;
  --panel-strong: #0d1319;
  --line: #26313b;
  --line-strong: #354250;
  --text: #f2f5f7;
  --muted: #c3cbd3;
  --accent: #1fbf75;
  --accent-strong: #65e6a6;
  --accent-cool: #7db7ff;
  --accent-warm: #f4bd63;
  --danger: #ff8b7b;
  --focus: #8cc7ff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scrollbar-gutter: stable;
}

html.login-photo-overlay-active {
  scrollbar-gutter: auto;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, Helvetica, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
  font-size: 15px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
}

body.login-photo-overlay-active {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 2.15rem;
  border: 1px solid rgba(215, 239, 118, 0.35);
  border-radius: 4px;
  background: var(--accent);
  color: #07110f;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(20rem, 28rem);
  min-height: 100vh;
}

.login-visual {
  position: relative;
  overflow: hidden;
  min-height: 28rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.pitch-lines {
  position: absolute;
  inset: 8%;
  border: 2px solid rgba(244, 247, 242, 0.18);
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(244, 247, 242, 0.18) calc(50% - 1px), rgba(244, 247, 242, 0.18) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, rgba(114, 199, 119, 0.08) 0 4rem, rgba(114, 199, 119, 0.02) 4rem 8rem);
  border-radius: 8px;
  transform: perspective(800px) rotateX(52deg) rotateZ(-3deg);
  transform-origin: center;
}

.pitch-lines::before,
.pitch-lines::after {
  position: absolute;
  content: "";
  left: 50%;
  top: 50%;
  width: 11rem;
  height: 11rem;
  border: 2px solid rgba(244, 247, 242, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-lines::after {
  width: 0.8rem;
  height: 0.8rem;
  background: rgba(215, 239, 118, 0.8);
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(16, 26, 24, 0.82);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  line-height: 1;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.login-copy,
.page-heading p,
.info-card p {
  color: var(--muted);
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.login-form label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.login-form input {
  min-height: 2.9rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #07110f;
  color: var(--text);
  padding: 0 0.85rem;
}

.login-form button {
  margin-top: 0.75rem;
}

.password-reveal-field {
  position: relative;
  display: grid;
}

.login-form .password-reveal-field input {
  padding-right: 3.25rem;
}

.login-form .password-reveal-toggle {
  position: absolute;
  inset-block: 0.36rem;
  right: 0.36rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.18rem;
  height: auto;
  min-height: 0;
  margin: 0;
  border-color: rgba(125, 183, 255, 0.28);
  background: rgba(125, 183, 255, 0.08);
  color: var(--muted);
  line-height: 1;
  padding: 0;
  z-index: 1;
}

.login-form .password-reveal-toggle:hover,
.login-form .password-reveal-toggle[aria-pressed="true"] {
  background: rgba(125, 183, 255, 0.16);
  color: var(--text);
}

.login-form .password-reveal-toggle svg {
  width: 1.18rem;
  height: 1.18rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.notice,
.error {
  margin: 1rem 0 0;
  border: 1px solid rgba(215, 239, 118, 0.28);
  border-radius: 6px;
  background: rgba(215, 239, 118, 0.08);
  color: var(--text);
  padding: 0.9rem;
  line-height: 1.5;
}

.error {
  border-color: rgba(255, 139, 123, 0.35);
  background: rgba(255, 139, 123, 0.08);
}

.login-photo-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9000;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 9, 0.96);
  cursor: zoom-out;
  overflow: hidden;
  animation: loginPhotoBackdropIn 360ms ease-out both;
}

.login-photo-image {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  animation: loginPhotoExpand 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-photo-overlay-closing {
  pointer-events: none;
  animation: loginPhotoBackdropOut 240ms ease-in both;
}

.login-photo-overlay-closing .login-photo-image {
  animation: loginPhotoShrink 240ms ease-in both;
}

@keyframes loginPhotoBackdropIn {
  from {
    background: rgba(2, 6, 9, 0);
  }

  to {
    background: rgba(2, 6, 9, 0.96);
  }
}

@keyframes loginPhotoBackdropOut {
  from {
    background: rgba(2, 6, 9, 0.96);
  }

  to {
    background: rgba(2, 6, 9, 0);
  }
}

@keyframes loginPhotoExpand {
  from {
    opacity: 0;
    filter: blur(1px);
    transform: scale(0.08);
  }

  62% {
    opacity: 1;
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes loginPhotoShrink {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.96);
  }
}

.app-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem 0.85rem;
  align-items: center;
  min-height: 3.2rem;
  padding: 0.32rem 0.7rem;
  border-bottom: 1px solid var(--line);
  background: #0b1015;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: visible;
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.52rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
  line-height: 1.05;
  min-width: 0;
}

.brand-copy > span {
  white-space: nowrap;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.brand-mark {
  width: 1.18rem;
  height: 1.18rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--accent-strong) 0 18%, transparent 19%);
}

.sample-controls {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.16rem;
  align-items: center;
}

.sample-control-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sample-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.98rem;
  height: 1.98rem;
  border: 1px solid rgba(195, 203, 211, 0.28);
  border-radius: 7px;
  background: #111a22;
  color: var(--muted);
  text-decoration: none;
}

.sample-control-button:hover,
.sample-control-button.active {
  border-color: rgba(31, 191, 117, 0.48);
  background: #18222c;
  color: var(--text);
}

.sample-control-button.inactive {
  opacity: 0.62;
}

.sample-control-button svg {
  display: block;
  width: 1.36rem;
  height: 1.36rem;
}

.sample-control-button rect,
.sample-control-button line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.sample-control-button circle {
  fill: currentColor;
}

.sample-control-slash {
  stroke: var(--danger);
  stroke-linecap: round;
}

.next-match-countdown {
  display: inline-grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.98rem;
  flex: 0 0 auto;
  border: 1px solid rgba(195, 203, 211, 0.28);
  border-radius: 7px;
  background: #111a22;
  color: #d9e1e6;
  padding: 0.16rem 0.42rem;
  text-decoration: none;
  white-space: nowrap;
}

.next-match-countdown:hover,
.next-match-countdown:focus-visible {
  border-color: rgba(31, 191, 117, 0.48);
  background: #18222c;
  color: var(--text);
}

.next-match-ended {
  color: var(--muted);
}

.next-match-teams {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.next-match-teams .match-pair {
  --match-slot-width: 3.38rem;
  column-gap: 0.18rem;
}

.next-match-teams :where(.team-badge-tiny) {
  --team-code-width: 1.56rem;
  gap: 0.16rem;
}

.next-match-teams :where(.team-badge-tiny) .team-flag {
  width: 0.88rem;
  height: 0.88rem;
}

.next-match-teams :where(.team-badge-tiny) .team-badge-code {
  font-size: 0.74rem;
}

.next-match-time {
  display: inline-grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0.16rem;
  align-items: baseline;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.next-match-segment {
  display: inline-flex;
  align-items: baseline;
  gap: 0.03rem;
}

.next-match-segment strong {
  min-width: 1.02rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: right;
}

.next-match-segment small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
}

.nav-menu-toggle {
  display: none;
  justify-self: end;
  width: 2.35rem;
  min-height: 2.35rem;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(20, 34, 31, 0.95);
  color: var(--text);
  padding: 0;
}

.nav-menu-toggle:hover {
  background: var(--panel-soft);
}

.nav-menu-icon,
.nav-menu-icon::before,
.nav-menu-icon::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-menu-icon {
  position: relative;
  margin: 0 auto;
}

.nav-menu-icon::before,
.nav-menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-menu-icon::before {
  top: -0.38rem;
}

.nav-menu-icon::after {
  top: 0.38rem;
}

.main-nav {
  display: flex;
  gap: 0;
  align-items: stretch;
  justify-content: center;
  overflow: visible;
  min-width: 0;
  max-width: 100%;
  width: max-content;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1319;
  padding: 0.12rem;
}

.nav-item {
  position: relative;
  flex: 0 0 auto;
}

.nav-primary-row {
  display: flex;
  align-items: stretch;
}

.nav-link {
  min-width: 4.35rem;
  min-height: 1.98rem;
  display: grid;
  grid-template-columns: 0.9rem auto;
  gap: 0.32rem;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.18rem 0.48rem;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}

.nav-link:hover,
.nav-link.active,
.nav-item.flyout-open > .nav-primary-row .nav-link {
  border-color: rgba(31, 191, 117, 0.42);
  background: #18222c;
  color: var(--text);
}

.nav-label {
  max-width: 100%;
  color: inherit;
  font-size: 0.78rem;
  line-height: 1.15;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: clip;
  white-space: nowrap;
  word-break: normal;
}

.nav-icon {
  position: relative;
  display: block;
  width: 0.88rem;
  height: 0.88rem;
  margin: 0;
  color: currentColor;
}

.nav-icon::before,
.nav-icon::after {
  position: absolute;
  content: "";
}

.nav-icon-dashboard {
  border: 1px solid currentColor;
  border-radius: 4px;
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}

.nav-icon-schedule {
  border: 1px solid currentColor;
  border-radius: 4px;
}

.nav-icon-schedule::before {
  inset: 0.28rem 0 0;
  border-top: 1px solid currentColor;
}

.nav-icon-schedule::after {
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.25rem;
  height: 0.2rem;
  background: currentColor;
  box-shadow: 0 -0.32rem 0 currentColor;
}

.nav-icon-groups {
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.nav-icon-groups::before,
.nav-icon-groups::after {
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
}

.nav-icon-groups::before {
  top: 0.38rem;
}

.nav-icon-groups::after {
  bottom: 0.38rem;
}

.nav-icon-knockout::before,
.nav-icon-knockout::after {
  width: 0.7rem;
  height: 0.48rem;
  border: 1px solid currentColor;
  border-right: 0;
}

.nav-icon-knockout::before {
  left: 0;
  top: 0.07rem;
  border-bottom: 0;
}

.nav-icon-knockout::after {
  right: 0;
  bottom: 0.07rem;
  border-left: 0;
  border-right: 1px solid currentColor;
  border-top: 0;
}

.nav-icon-history {
  border: 1px solid currentColor;
  border-radius: 3px;
}

.nav-icon-history::before {
  left: 0.16rem;
  right: 0.16rem;
  top: 0.3rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0.25rem 0 currentColor;
}

.nav-icon-history::after {
  left: 0.16rem;
  top: 0.12rem;
  width: 0.14rem;
  height: 0.14rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0.27rem 0 0 currentColor,
    0.54rem 0 0 currentColor;
}

.nav-icon-teams {
  border-bottom: 1px solid currentColor;
}

.nav-icon-teams::before,
.nav-icon-teams::after {
  top: 0.15rem;
  width: 0.46rem;
  height: 0.46rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.nav-icon-teams::before {
  left: 0.08rem;
  box-shadow: 0.58rem 0.15rem 0 -0.08rem currentColor;
}

.nav-icon-teams::after {
  right: 0.08rem;
}

.nav-icon-admin {
  border: 1px solid currentColor;
  border-radius: 50%;
}

.nav-icon-admin::before {
  inset: 0.34rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.nav-icon-calculations {
  border: 1px solid currentColor;
  border-radius: 3px;
}

.nav-icon-calculations::before {
  top: 0.18rem;
  left: 0.18rem;
  width: 0.16rem;
  height: 0.16rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0.32rem 0 0 currentColor,
    0 0.32rem 0 currentColor,
    0.32rem 0.32rem 0 currentColor;
}

.nav-icon-calculations::after {
  top: 0.15rem;
  right: 0.16rem;
  bottom: 0.15rem;
  width: 1px;
  background: currentColor;
  transform: rotate(18deg);
}

.nav-icon-season-value {
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.nav-icon-season-value::before {
  left: 0.04rem;
  right: 0.12rem;
  bottom: 0.1rem;
  height: 0.56rem;
  border-top: 1px solid currentColor;
  border-radius: 50% 50% 0 0;
  transform: rotate(-13deg);
}

.nav-icon-season-value::after {
  right: 0.05rem;
  bottom: 0.14rem;
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background: currentColor;
}

.nav-submenu-toggle {
  display: none;
}

.nav-flyout {
  position: absolute;
  top: 100%;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 1.5rem);
  padding-top: 0.42rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.2rem);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  visibility: hidden;
  z-index: 60;
}

.nav-flyout-teams {
  width: max-content;
  max-width: calc(100vw - 1.5rem);
}

.nav-flyout-admin {
  min-width: 11rem;
}

.nav-flyout-calculations {
  min-width: 11rem;
}

.nav-item:hover .nav-flyout,
.nav-item:focus-within .nav-flyout,
.nav-item.flyout-open .nav-flyout {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.app-header.flyout-suppressed .nav-item:hover .nav-flyout,
.app-header.flyout-suppressed .nav-item:focus-within .nav-flyout {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.2rem);
  visibility: hidden;
}

.sample-scenario-flyout {
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 11rem;
  max-width: calc(100vw - 1.5rem);
  padding-top: 0.42rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.2rem);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  visibility: hidden;
  z-index: 60;
}

.sample-scenario-flyout::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.65rem;
  content: "";
}

.sample-control-item:hover .sample-scenario-flyout,
.sample-control-item:focus-within .sample-scenario-flyout,
.sample-control-item.flyout-open .sample-scenario-flyout {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.app-header.flyout-suppressed .sample-control-item:hover .sample-scenario-flyout,
.app-header.flyout-suppressed .sample-control-item:focus-within .sample-scenario-flyout {
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.2rem);
  visibility: hidden;
}

.flyout-panel {
  display: grid;
  gap: 0.4rem;
  width: max-content;
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  border: 1px solid #465665;
  border-radius: 7px;
  background: #0b1117;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
  padding: 0.46rem;
}

.flyout-section {
  display: grid;
  gap: 0.3rem;
}

.flyout-title {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.flyout-grid,
.flyout-round-grid,
.flyout-history-grid,
.flyout-group-grid {
  display: grid;
  gap: 0.22rem;
  justify-content: start;
}

.flyout-grid {
  grid-template-columns: repeat(2, max-content);
}

.flyout-round-grid {
  grid-template-columns: repeat(3, max-content);
}

.flyout-history-grid {
  grid-template-columns: repeat(4, minmax(2.35rem, 1fr));
  max-width: 12.5rem;
}

.flyout-group-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(2.15rem, 1fr));
  max-width: 20rem;
}

.flyout-link,
.flyout-group-link,
.flyout-team-link {
  min-width: 0;
  border: 1px solid rgba(195, 203, 211, 0.32);
  border-radius: 6px;
  background: #111a22;
  color: #e6ecef;
  text-decoration: none;
  font-weight: 600;
}

.flyout-link,
.flyout-group-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.56rem;
  padding: 0.14rem 0.36rem;
  font-size: 0.8rem;
  line-height: 1.12;
  text-align: center;
}

.flyout-link:hover,
.flyout-link.active,
.flyout-group-link:hover,
.flyout-group-link.active,
.flyout-team-link:hover,
.flyout-team-link.active {
  border-color: rgba(101, 230, 166, 0.72);
  background: #182832;
  color: #f5f8fa;
}

.flyout-team-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(6, auto);
  gap: 0.18rem;
  justify-content: start;
  width: min(46rem, calc(100vw - 2.4rem));
}

.flyout-team-group {
  display: grid;
  grid-template-columns: 1.42rem minmax(0, 1fr);
  gap: 0.14rem;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: #0d1319;
  padding: 0.12rem;
}

.flyout-team-group.active {
  border-color: rgba(114, 199, 119, 0.28);
}

.flyout-team-group-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.42rem;
  min-height: 1.34rem;
  border: 1px solid rgba(125, 183, 255, 0.38);
  border-radius: 5px;
  background: #121d28;
  color: #b8d6ff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.flyout-team-group-code:hover,
.flyout-team-group-code.active {
  border-color: rgba(31, 191, 117, 0.48);
  background: rgba(31, 191, 117, 0.16);
  color: var(--text);
}

.flyout-team-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.12rem;
  width: 100%;
  min-width: 0;
}

.flyout-team-link {
  display: inline-flex;
  gap: 0.18rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.5rem;
  padding: 0.08rem 0.14rem;
}

.flyout-team-link .team-badge {
  gap: 0.18rem;
}

.flyout-team-link .team-flag {
  width: 0.9rem;
  height: 0.9rem;
}

.flyout-team-link .team-badge-code {
  font-size: 0.72rem;
  font-weight: 700;
}

.logout-form {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.65rem;
}

.logout-form button {
  min-height: 2.05rem;
  background: transparent;
  color: var(--text);
}

.user-label {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.page-shell {
  width: min(1280px, calc(100% - 1.4rem));
  margin: 0 auto;
  padding: 1.15rem 0 2.2rem;
}

.dashboard-shell {
  margin-right: auto;
  margin-left: 0.7rem;
}

.dashboard-phase-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.1;
}

.dashboard-phase-buttons {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 5px;
}

.dashboard-phase-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  min-height: 1.45rem;
  padding: 0.08rem 0.34rem;
  border-right: 1px solid rgba(148, 163, 184, 0.26);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-phase-button:last-child {
  border-right: 0;
}

.dashboard-phase-button:hover,
.dashboard-phase-button:focus-visible {
  background: rgba(96, 165, 250, 0.12);
  color: var(--text);
}

.dashboard-phase-button[aria-current="page"] {
  background: rgba(31, 191, 117, 0.18);
  color: var(--accent);
}

.dashboard-phase-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
  font-weight: 650;
  white-space: nowrap;
}

.page-heading {
  max-width: 58rem;
  margin-bottom: 0.85rem;
}

.page-heading h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
}

.page-heading h1.eyebrow {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.2;
}

.page-heading p {
  margin-bottom: 0;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  border: 1px solid rgba(114, 199, 119, 0.35);
  border-radius: 4px;
  color: var(--accent-strong);
  padding: 0 0.48rem;
  font-size: 0.84rem;
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  background: rgba(114, 199, 119, 0.1);
}

.muted-text {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  transform: translateY(-180%);
  border: 2px solid var(--accent);
  border-radius: 5px;
  background: #0b1117;
  color: var(--text);
  padding: 0.45rem 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr) repeat(2, minmax(0, 0.95fr)) minmax(0, 0.94fr);
  gap: 0.55rem;
}

.stack {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
}

.info-card {
  min-width: 0;
  min-height: 4.8rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(16, 26, 24, 0.86);
  padding: 0.62rem;
}

.compact-list,
.team-list {
  display: grid;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list li,
.team-list li {
  display: grid;
  gap: 0.18rem;
}

.dashboard-match-list li {
  gap: 0.12rem;
}

.dashboard-match-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  color: #e9f0ec;
  text-decoration: none;
  font-weight: 800;
}

.dashboard-match-link:hover,
.dashboard-match-link:focus-visible {
  color: var(--accent-strong);
}

.dashboard-match-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  gap: 0.35rem;
  row-gap: 0.12rem;
}

.dashboard-match-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.dashboard-broadcast-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 100%;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 4px;
  background: rgba(14, 33, 37, 0.72);
  color: #cdefff;
  padding: 0.08rem 0.24rem;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.dashboard-result-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18rem;
  flex: 0 0 auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dashboard-result-final {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 850;
}

.dashboard-result-half {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
}

.compact-list span,
.team-list small,
.match-row span,
.team-tile span,
.group-matches span {
  color: var(--muted);
}

.compact-list .dashboard-broadcast-label {
  color: #cdefff;
}

.dashboard-next-card,
.dashboard-results-card {
  grid-column: span 1;
}

.dashboard-match-link .dashboard-result-final {
  color: var(--accent-strong);
}

.dashboard-match-link .dashboard-result-half {
  color: var(--muted);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.mini-grid span {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.45);
  color: var(--muted);
  padding: 0.38rem 0.45rem;
  font-size: 0.85rem;
}

.mini-grid strong {
  color: var(--accent-strong);
}

.mini-grid small {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-team-rank-row {
  grid-column: 1 / -1;
  justify-self: start;
  order: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.55rem;
  width: min(2160px, calc(100vw - 1.4rem));
  min-width: 0;
  max-width: min(2160px, calc(100vw - 1.4rem));
}

.dashboard-stat-summary-stack {
  flex: 0 0 29rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: flex-start;
  gap: 0.55rem;
  width: min(100%, 29rem);
  max-width: 100%;
}

.dashboard-stat-summary-cards {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: max-content;
  max-width: 100%;
}

.dashboard-stat-summary-cards > .dashboard-goal-card {
  flex: 0 0 auto;
}

.dashboard-goal-card {
  grid-column: span 1;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  display: grid;
  align-content: start;
  gap: 0.34rem;
}

.dashboard-goal-card h2 {
  margin-bottom: 0;
}

.dashboard-goal-stats {
  display: grid;
  gap: 0.16rem;
  margin: 0;
  width: max-content;
  max-width: 100%;
}

.dashboard-goal-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 4.6rem 1.55rem 2.55rem 2.65rem;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid rgba(125, 183, 255, 0.2);
  border-radius: 5px;
  background: rgba(7, 17, 15, 0.42);
  padding: 0.24rem 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.12;
}

.dashboard-goal-head {
  border-color: transparent;
  background: transparent;
  padding-top: 0;
  padding-bottom: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-goal-head span:nth-child(n + 2) {
  justify-content: center;
  text-align: center;
}

.dashboard-goal-head span:nth-child(2),
.dashboard-goal-head span:nth-child(3) {
  color: #e6ecef;
  font-size: 1rem;
  line-height: 1;
}

.dashboard-goal-row span,
.dashboard-goal-row strong {
  display: flex;
  align-items: center;
  min-height: 1.08rem;
  min-width: 0;
}

.dashboard-goal-label {
  justify-content: flex-start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e6ecef;
  font-weight: 800;
}

.dashboard-goal-count,
.dashboard-goal-average,
.dashboard-goal-percent {
  justify-content: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dashboard-goal-count {
  color: var(--accent-strong);
  font-size: 0.98rem;
  font-weight: 850;
}

.dashboard-goal-average,
.dashboard-goal-percent {
  color: #d9e1e6;
  font-size: 0.9rem;
  font-weight: 800;
}

.dashboard-goal-card p {
  margin: 0;
  font-size: 0.72rem;
}

.dashboard-team-stat-card {
  grid-column: span 1;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  align-content: start;
}

.dashboard-team-stat-stats {
  width: max-content;
  max-width: 100%;
}

.dashboard-team-stat-row {
  grid-template-columns: 4.6rem 2.8rem 3rem;
}

.dashboard-goal-distribution-card {
  position: relative;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  border-color: rgba(125, 183, 255, 0.28);
  background:
    radial-gradient(circle at 18% 12%, rgba(125, 211, 252, 0.16), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(250, 204, 21, 0.13), transparent 28%),
    linear-gradient(145deg, rgba(15, 27, 34, 0.95), rgba(8, 16, 21, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0.55rem 1.4rem rgba(0, 0, 0, 0.22);
}

.dashboard-goal-distribution-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.dashboard-goal-distribution-head h2 {
  margin-bottom: 0;
}

.dashboard-goal-distribution-head span {
  border: 1px solid rgba(125, 183, 255, 0.24);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.56);
  color: var(--muted);
  padding: 0.08rem 0.28rem;
  font-size: 0.72rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dashboard-goal-distribution-chart {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(9, 1.68rem);
  align-items: end;
  justify-content: center;
  gap: 0.03rem;
  width: max-content;
  max-width: 100%;
  min-height: 10.05rem;
  border: 1px solid rgba(125, 183, 255, 0.24);
  border-radius: 6px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 1.32rem / 100% 1.58rem,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 12.5% 100%,
    radial-gradient(circle at 30% 10%, rgba(125, 211, 252, 0.14), transparent 35%),
    rgba(4, 12, 16, 0.58);
  padding: 0.48rem 0.5rem 0.56rem;
  overflow: hidden;
}

.dashboard-goal-distribution-chart::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0.5rem;
  bottom: 0.83rem;
  left: 0.52rem;
  height: 2.55rem;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(125, 183, 255, 0.13), rgba(101, 230, 166, 0.05)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 2.4rem 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: perspective(18rem) rotateX(58deg) skewX(-10deg);
  transform-origin: center bottom;
}

.dashboard-goal-distribution-bin {
  --bar-top: #a7f3d0;
  --bar-bottom: #15803d;
  --bar-side: #14532d;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 7.65rem 0.92rem;
  justify-items: center;
  align-items: end;
  min-width: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.dashboard-goal-distribution-bin:nth-child(1) {
  --bar-top: #cbd5e1;
  --bar-bottom: #64748b;
  --bar-side: #334155;
}

.dashboard-goal-distribution-bin:nth-child(2) {
  --bar-top: #93c5fd;
  --bar-bottom: #2563eb;
  --bar-side: #1e3a8a;
}

.dashboard-goal-distribution-bin:nth-child(3) {
  --bar-top: #7dd3fc;
  --bar-bottom: #0284c7;
  --bar-side: #075985;
}

.dashboard-goal-distribution-bin:nth-child(4) {
  --bar-top: #86efac;
  --bar-bottom: #16a34a;
  --bar-side: #166534;
}

.dashboard-goal-distribution-bin:nth-child(5) {
  --bar-top: #bef264;
  --bar-bottom: #65a30d;
  --bar-side: #3f6212;
}

.dashboard-goal-distribution-bin:nth-child(6) {
  --bar-top: #fde68a;
  --bar-bottom: #d97706;
  --bar-side: #92400e;
}

.dashboard-goal-distribution-bin:nth-child(7) {
  --bar-top: #fca5a5;
  --bar-bottom: #dc2626;
  --bar-side: #991b1b;
}

.dashboard-goal-distribution-bin:nth-child(8) {
  --bar-top: #f0abfc;
  --bar-bottom: #c026d3;
  --bar-side: #86198f;
}

.dashboard-goal-distribution-bin:nth-child(9) {
  --bar-top: #c4b5fd;
  --bar-bottom: #7c3aed;
  --bar-side: #4c1d95;
}

.dashboard-goal-distribution-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 7.65rem;
  border-bottom: 1px solid rgba(230, 236, 239, 0.22);
  filter: drop-shadow(0.35rem 0.38rem 0.28rem rgba(0, 0, 0, 0.28));
}

.dashboard-goal-distribution-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 1.54rem;
  height: 0;
  min-height: 1.86rem;
  border-radius: 7px 7px 2px 2px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 35%),
    linear-gradient(180deg, var(--bar-top), var(--bar-bottom));
  box-shadow:
    inset 0.18rem 0 0.22rem rgba(255, 255, 255, 0.13),
    inset -0.1rem 0 0.2rem rgba(0, 0, 0, 0.18),
    0 0.42rem 0.88rem rgba(0, 0, 0, 0.38);
  transform: skewX(-6deg);
  transform-origin: center bottom;
}

.dashboard-goal-distribution-value {
  position: absolute;
  right: -0.02rem;
  bottom: 0.24rem;
  left: 0;
  z-index: 2;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.52),
    0 0.16rem 0.36rem rgba(0, 0, 0, 0.42);
  transform: skewX(6deg);
}

.dashboard-goal-distribution-bar--h0 {
  height: 0;
}

.dashboard-goal-distribution-bar--h10 {
  height: 0.77rem;
}

.dashboard-goal-distribution-bar--h20 {
  height: 1.53rem;
}

.dashboard-goal-distribution-bar--h30 {
  height: 2.3rem;
}

.dashboard-goal-distribution-bar--h40 {
  height: 3.06rem;
}

.dashboard-goal-distribution-bar--h50 {
  height: 3.83rem;
}

.dashboard-goal-distribution-bar--h60 {
  height: 4.59rem;
}

.dashboard-goal-distribution-bar--h70 {
  height: 5.36rem;
}

.dashboard-goal-distribution-bar--h80 {
  height: 6.12rem;
}

.dashboard-goal-distribution-bar--h90 {
  height: 6.89rem;
}

.dashboard-goal-distribution-bar--h100 {
  height: 7.65rem;
}

.dashboard-goal-distribution-bar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.dashboard-goal-distribution-bar::after {
  top: 0;
  right: -0.31rem;
  bottom: 0.02rem;
  width: 0.32rem;
  border-radius: 0 5px 4px 0;
  background: linear-gradient(180deg, var(--bar-side), color-mix(in srgb, var(--bar-side) 78%, black));
  transform: skewY(-45deg);
  transform-origin: left top;
}

.dashboard-goal-distribution-bar.is-empty {
  min-height: 0.5rem;
  border-radius: 5px 5px 2px 2px;
  background: rgba(230, 236, 239, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  opacity: 0.78;
}

.dashboard-goal-distribution-bar.is-empty .dashboard-goal-distribution-value {
  bottom: 0.06rem;
  color: rgba(242, 245, 247, 0.76);
  font-size: 0.66rem;
  text-shadow: none;
}

.dashboard-goal-distribution-bar.is-empty::after {
  display: none;
}

.dashboard-goal-distribution-label {
  color: #d6dee6;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0.12rem 0.24rem rgba(0, 0, 0, 0.34);
}

.dashboard-team-rank-card {
  flex: 0 0 15.95rem;
  width: min(100%, 15.95rem);
  display: grid;
  align-content: start;
  gap: 0.36rem;
}

.dashboard-team-rank-card--club {
  flex-basis: 17.4rem;
  width: min(100%, 17.4rem);
}

.dashboard-team-rank-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.dashboard-team-rank-head h2 {
  margin-bottom: 0;
}

.dashboard-team-rank-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-team-rank-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.24rem;
}

.dashboard-team-rank-select,
.dashboard-team-rank-sort-button {
  height: 1.78rem;
  border: 1px solid rgba(125, 183, 255, 0.24);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.68);
  color: #e6ecef;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
}

.dashboard-team-rank-select {
  min-width: 5.7rem;
  max-width: 100%;
  padding: 0 1.35rem 0 0.42rem;
}

.dashboard-team-rank-mode-select {
  min-width: 3.15rem;
  padding-right: 0.9rem;
  font-size: 0.94rem;
}

.dashboard-team-rank-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
}

.dashboard-team-rank-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.78rem;
  padding: 0;
  cursor: pointer;
}

.dashboard-team-rank-sort-button[data-sort-active="true"] {
  border-color: rgba(103, 232, 165, 0.58);
  background: rgba(22, 101, 52, 0.3);
  color: var(--accent-strong);
}

.dashboard-team-rank-table-wrap {
  max-height: calc(1rem + 16 * 1.38rem + 15 * 0.11rem);
  overflow-y: auto;
  padding-right: 0.36rem;
  scrollbar-gutter: stable;
}

.dashboard-team-rank-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.11rem;
  table-layout: fixed;
  font-size: 0.78rem;
  line-height: 1.08;
}

.dashboard-team-rank-table th,
.dashboard-team-rank-table td {
  min-width: 0;
  padding: 0.14rem 0.12rem;
  vertical-align: middle;
}

.dashboard-team-rank-table th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

.dashboard-team-rank-table th:nth-child(1),
.dashboard-team-rank-table td:nth-child(1) {
  width: 1.28rem;
  text-align: right;
}

.dashboard-team-rank-table th:nth-child(3),
.dashboard-team-rank-table td:nth-child(3) {
  width: 1.32rem;
  text-align: center;
}

.dashboard-team-rank-table th:nth-child(4),
.dashboard-team-rank-table td:nth-child(4) {
  width: 2.55rem;
  text-align: right;
}

.dashboard-team-rank-table tbody tr {
  background: rgba(7, 17, 15, 0.42);
}

.dashboard-team-rank-table tbody td {
  border-top: 1px solid rgba(125, 183, 255, 0.18);
  border-bottom: 1px solid rgba(125, 183, 255, 0.18);
}

.dashboard-team-rank-table tbody td:first-child {
  border-left: 1px solid rgba(125, 183, 255, 0.18);
  border-radius: 4px 0 0 4px;
}

.dashboard-team-rank-table tbody td:last-child {
  border-right: 1px solid rgba(125, 183, 255, 0.18);
  border-radius: 0 4px 4px 0;
}

.dashboard-team-rank-position,
.dashboard-team-rank-sample {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.dashboard-team-rank-team {
  display: grid;
  grid-template-columns: 0.88rem 1.68rem minmax(0, 1fr);
  align-items: center;
  gap: 0.14rem;
  min-width: 0;
  color: #e4ece8;
  text-decoration: none;
}

.dashboard-team-rank-team--club {
  display: block;
}

.dashboard-team-rank-team:hover,
.dashboard-team-rank-team:focus-visible {
  color: var(--accent-strong);
}

.dashboard-team-rank-flag {
  display: block;
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-team-rank-flag-empty {
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.dashboard-team-rank-code {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  text-rendering: geometricPrecision;
}

.dashboard-team-rank-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-weight: 400;
}

.dashboard-team-rank-club-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-weight: 500;
}

.dashboard-team-rank-value strong {
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.dashboard-scorer-card {
  grid-column: span 2;
}

.dashboard-scorer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem;
}

.dashboard-scorer-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-scorer-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.48rem;
}

.dashboard-scorer-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.28rem;
}

.dashboard-scorer-column + .dashboard-scorer-column {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 0.5rem;
}

.dashboard-scorer-column h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-scorer-column p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.dashboard-scorer-list {
  display: grid;
  gap: 0.16rem;
  max-height: calc(10 * 1.42rem + 9 * 0.16rem);
  overflow-y: auto;
  padding: 0 0.12rem 0 0;
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(101, 230, 166, 0.36) transparent;
}

.dashboard-scorer-list li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr) max-content;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.42rem;
  color: #e4ece8;
  font-size: 0.78rem;
}

.dashboard-scorer-rank {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: right;
}

.dashboard-scorer-player {
  min-width: 0;
  display: inline-grid;
  grid-template-columns: 1.02rem minmax(0, 1fr);
  align-items: center;
  gap: 0.28rem;
}

.dashboard-scorer-flag {
  width: 1.02rem;
  height: 0.72rem;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.dashboard-scorer-flag-empty {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-scorer-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-scorer-list strong {
  min-width: 1.24rem;
  border-radius: 4px;
  background: rgba(135, 220, 157, 0.12);
  color: var(--accent-strong);
  font-size: 0.74rem;
  line-height: 1.18rem;
  text-align: center;
}

.dashboard-market-card {
  display: grid;
  align-content: start;
  gap: 0.36rem;
}

.dashboard-market-card h2 {
  margin-bottom: 0;
}

.dashboard-market-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
}

.dashboard-market-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-market-table {
  display: grid;
  gap: 0.12rem;
  max-height: calc(1rem + 10 * 1.42rem + 10 * 0.12rem);
  overflow-y: auto;
  padding-right: 0.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(101, 230, 166, 0.36) transparent;
}

.dashboard-market-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 0.32rem;
  min-height: 1.42rem;
  color: #e4ece8;
  font-size: 0.76rem;
  line-height: 1.12;
}

.dashboard-market-row-head {
  min-height: 1rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-market-row-head span:last-child {
  text-align: right;
}

.dashboard-market-team {
  min-width: 0;
  display: inline-grid;
  grid-template-columns: 1.02rem minmax(0, 1fr);
  align-items: center;
  gap: 0.28rem;
}

.dashboard-market-flag {
  width: 1.02rem;
  height: 0.72rem;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.dashboard-market-flag-empty {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-market-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-market-value {
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.dashboard-market-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.schedule-controls {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(16, 26, 24, 0.78);
  padding: 0.52rem;
}

.schedule-filter-form {
  display: grid;
  grid-template-columns: minmax(13rem, 1.2fr) repeat(4, minmax(8rem, 0.75fr)) auto;
  gap: 0.42rem;
  align-items: end;
}

.filter-field {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
}

.filter-field label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 2.05rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.72);
  color: var(--text);
  padding: 0 0.5rem;
}

.schedule-filter-actions {
  display: flex;
  gap: 0.35rem;
  align-items: end;
}

.schedule-filter-actions button,
.schedule-filter-actions .text-link {
  min-height: 2.05rem;
  white-space: nowrap;
}

.schedule-summary {
  margin: 0;
  color: var(--muted);
}

.schedule-summary strong {
  color: var(--text);
}

.schedule-sections {
  display: grid;
  gap: 0.65rem;
}

.schedule-section {
  display: grid;
  gap: 0.45rem;
}

.schedule-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}

.schedule-section-head h2,
.schedule-section-head p {
  margin: 0;
}

.schedule-section-head p {
  margin-top: 0.12rem;
  color: var(--muted);
}

.schedule-section-head > span,
.schedule-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 0 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.schedule-state-upcoming {
  border-color: rgba(114, 199, 119, 0.34);
  background: rgba(114, 199, 119, 0.1);
  color: var(--text);
}

.schedule-state-past {
  background: rgba(255, 255, 255, 0.04);
}

.match-row-past {
  background: rgba(16, 26, 24, 0.56);
}

.schedule-empty {
  min-height: 5rem;
}

.match-list {
  display: grid;
  gap: 0.28rem;
}

.match-row {
  display: grid;
  grid-template-columns: minmax(13.5rem, 1.05fr) minmax(6.8rem, 0.46fr) minmax(8.5rem, 0.58fr) auto;
  gap: 0.44rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(16, 26, 24, 0.86);
  min-height: 2.86rem;
  padding: 0.32rem 0.48rem;
}

.schedule-match-row {
  grid-template-columns: minmax(14rem, 19rem) max-content max-content;
  gap: 0.34rem;
  justify-content: start;
  min-height: 2.42rem;
  padding: 0.26rem 0.42rem;
}

.match-row-link {
  color: inherit;
  text-decoration: none;
}

.match-row-link:hover {
  border-color: rgba(114, 199, 119, 0.45);
  background: rgba(20, 34, 31, 0.96);
}

.match-row h2,
.match-row h3 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.match-row p,
.group-matches p {
  margin: 0.14rem 0 0;
  color: var(--muted);
}

.match-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  min-height: 1.55rem;
  border: 1px solid rgba(114, 199, 119, 0.35);
  border-radius: 4px;
  color: var(--accent-strong);
  font-weight: 700;
}

.match-main {
  min-width: 0;
}

.match-main h2,
.match-main h3 {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.26rem;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.odds-match-main h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.inline-match-number {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  min-height: 1.25rem;
  border: 1px solid rgba(114, 199, 119, 0.3);
  border-radius: 3px;
  color: var(--accent-strong);
  padding: 0 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.inline-stage-code {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  min-height: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: #d9e1e6;
  padding: 0 0.08rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.schedule-score {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.18rem;
  margin-left: 0.08rem;
}

.match-main .schedule-match-line .match-pair {
  flex: 0 1 auto;
}

.schedule-score-final,
.schedule-score-half {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
}

.schedule-score-half {
  color: var(--muted);
  font-size: 0.74rem;
}

.schedule-score-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  min-height: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.schedule-score-box-half {
  width: 1.02rem;
  min-height: 1.02rem;
  color: #d9e1e6;
  font-size: 0.68rem;
}

.schedule-score-decision {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.schedule-time-block {
  display: grid;
  grid-template-columns: minmax(4.2rem, 1fr) auto auto;
  gap: 0.22rem;
  align-items: center;
  min-width: 0;
}

.schedule-date-value {
  overflow: hidden;
  color: #c4ced2;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
  min-height: 1.22rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0 0.24rem;
  white-space: nowrap;
}

.schedule-time-chip span,
.schedule-place-label {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.schedule-time-chip strong {
  color: #dce6ea;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.schedule-place-block {
  display: flex;
  gap: 0.22rem;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.schedule-place-block strong,
.schedule-place-block span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-place-block strong {
  color: #dce6ea;
  font-size: 0.76rem;
  font-weight: 700;
}

.match-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem 0.5rem;
  font-size: 0.78rem;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.52rem;
}

.group-card {
  display: grid;
  gap: 0.48rem;
}

.group-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.group-card-head .eyebrow,
.group-card-head h2 {
  margin-bottom: 0.25rem;
}

.data-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.data-status-strip div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(16, 26, 24, 0.68);
  padding: 0.42rem;
}

.data-status-strip span {
  color: var(--muted);
}

.group-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 0.65rem;
}

.group-nav::-webkit-scrollbar,
.team-group-nav::-webkit-scrollbar {
  display: none;
}

.group-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.72rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.45);
  color: var(--muted);
  padding: 0 0.42rem;
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 700;
}

.group-nav a:hover,
.group-nav a.active {
  border-color: rgba(114, 199, 119, 0.45);
  background: rgba(114, 199, 119, 0.14);
  color: var(--text);
}

.group-layout {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 0.55rem;
  align-items: start;
  margin-bottom: 0.9rem;
  max-width: 100%;
}

.section-block {
  display: grid;
  gap: 0.55rem;
}

.all-tables-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.standing-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  color: var(--text);
}

.standing-table th,
.standing-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.34rem 0.28rem;
  text-align: right;
  vertical-align: middle;
}

.standing-table th:nth-child(2),
.standing-table td:nth-child(2) {
  min-width: 11rem;
  text-align: left;
}

.standing-table thead th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.standing-table small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.standing-team-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  vertical-align: middle;
}

.standing-team-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: inherit;
  text-decoration: none;
}

.standing-team-link:hover .team-badge-code {
  color: var(--accent-strong);
}

.standing-team-badge .team-badge-code {
  color: #dfe8ec;
  font-size: 0.78rem;
  font-weight: 700;
}

.standing-team-badge .team-flag {
  width: 1.02rem;
  height: 1.02rem;
}

.standing-table-compact {
  min-width: 31rem;
  font-size: 0.86rem;
}

.standing-table-compact th,
.standing-table-compact td {
  padding: 0.26rem 0.24rem;
}

.group-card .table-wrap {
  overflow-x: hidden;
}

.group-card .standing-table-compact {
  min-width: 0;
  table-layout: fixed;
  font-size: 0.8rem;
}

.group-card .standing-table-compact th,
.group-card .standing-table-compact td {
  padding: 0.24rem 0.18rem;
}

.group-card .standing-table-compact th:nth-child(2),
.group-card .standing-table-compact td:nth-child(2) {
  min-width: 0;
  width: auto;
}

.group-card .standing-table-compact th:first-child,
.group-card .standing-table-compact td:first-child {
  width: 1.56rem;
}

.group-card .standing-table-compact th:nth-child(3),
.group-card .standing-table-compact td:nth-child(3) {
  width: 1.7rem;
}

.group-card .standing-table-compact th:nth-child(4),
.group-card .standing-table-compact td:nth-child(4),
.group-card .standing-table-compact th:nth-child(5),
.group-card .standing-table-compact td:nth-child(5),
.group-card .standing-table-compact th:nth-child(6),
.group-card .standing-table-compact td:nth-child(6) {
  display: none;
}

.group-card .standing-table-compact th:nth-child(7),
.group-card .standing-table-compact td:nth-child(7) {
  width: 2.2rem;
}

.group-card .standing-table-compact th:nth-child(8),
.group-card .standing-table-compact td:nth-child(8) {
  width: 2.64rem;
}

.group-card .standing-table-compact th:nth-child(9),
.group-card .standing-table-compact td:nth-child(9) {
  width: 1.9rem;
}

.group-card .standing-team-badge {
  display: flex;
  margin: 0;
}

.group-table-card {
  min-width: 0;
  min-height: 0;
  width: max-content;
  max-width: 100%;
}

.group-detail-standing-table {
  width: max-content;
  min-width: 24.2rem;
  table-layout: fixed;
  font-size: 0.82rem;
}

.group-detail-standing-table th,
.group-detail-standing-table td {
  padding: 0.28rem 0.22rem;
}

.group-detail-standing-table th:first-child,
.group-detail-standing-table td:first-child {
  width: 2.05rem;
}

.group-detail-standing-table th:nth-child(2),
.group-detail-standing-table td:nth-child(2) {
  width: 5.2rem;
  min-width: 5.2rem;
}

.group-detail-standing-table th:nth-child(n+3),
.group-detail-standing-table td:nth-child(n+3) {
  width: 2.28rem;
}

.group-detail-standing-table th:nth-child(8),
.group-detail-standing-table td:nth-child(8) {
  width: 3.3rem;
}

.group-xg-card {
  min-width: 0;
  width: max-content;
  max-width: 100%;
}

.group-xg-table-wrap {
  overflow-x: auto;
}

.group-xg-table {
  width: max-content;
  min-width: 18.4rem;
  table-layout: fixed;
  font-size: 0.82rem;
}

.group-xg-table th,
.group-xg-table td {
  padding: 0.28rem 0.24rem;
  text-align: right;
}

.group-xg-table th:first-child,
.group-xg-table td:first-child {
  width: 5.2rem;
  min-width: 5.2rem;
  text-align: left;
}

.group-xg-table th:nth-child(n+2),
.group-xg-table td:nth-child(n+2) {
  width: 4.15rem;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.historical-world-cup-shell {
  display: grid;
  gap: 0.82rem;
  width: min(1500px, calc(100% - 1.4rem));
  margin-right: auto;
  margin-left: 0.7rem;
}

.historical-world-cup-heading {
  max-width: 32rem;
  margin-bottom: 0;
}

.historical-world-cup-heading h1 {
  margin-bottom: 0.24rem;
}

.historical-world-cup-heading p {
  max-width: 28rem;
}

.historical-world-cup-year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
  max-width: 28rem;
}

.historical-world-cup-year-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.15rem;
  min-height: 1.72rem;
  border: 1px solid rgba(195, 203, 211, 0.3);
  border-radius: 5px;
  background: #101820;
  color: #dfe8ec;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.historical-world-cup-year-nav a:hover,
.historical-world-cup-year-nav a.active {
  border-color: rgba(101, 230, 166, 0.72);
  background: #182832;
  color: #f7fbfc;
}

.historical-world-cup-section {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
}

.historical-section-head {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 0.5rem;
  align-items: baseline;
  justify-content: start;
}

.historical-section-head h2 {
  margin: 0;
  font-size: 1.02rem;
}

.historical-section-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.historical-standings-grid,
.historical-match-grid,
.historical-knockout-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0.52rem;
  align-items: start;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.historical-group-panel,
.historical-match-panel {
  display: grid;
  gap: 0.32rem;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(11, 17, 23, 0.82);
  padding: 0.42rem;
}

.historical-group-panel h3,
.historical-match-panel h3 {
  margin: 0;
  color: #eef5f6;
  font-size: 0.86rem;
  line-height: 1.15;
}

.historical-group-panel .table-wrap,
.historical-match-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(5, 10, 14, 0.48);
}

.historical-standing-table {
  width: max-content;
  min-width: 21.35rem;
  table-layout: fixed;
  font-size: 0.78rem;
}

.historical-standing-table th,
.historical-standing-table td {
  padding: 0.22rem 0.16rem;
  font-variant-numeric: tabular-nums;
}

.historical-standing-table th:first-child,
.historical-standing-table td:first-child {
  width: 1.55rem;
}

.historical-standing-table th:nth-child(2),
.historical-standing-table td:nth-child(2) {
  width: 6.55rem;
  min-width: 6.55rem;
}

.historical-standing-table th:nth-child(n+3),
.historical-standing-table td:nth-child(n+3) {
  width: 1.72rem;
}

.historical-standing-table th:nth-child(8),
.historical-standing-table td:nth-child(8) {
  width: 2.45rem;
}

.historical-standing-table td:nth-child(2) strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #e8eef0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.historical-match-table {
  width: max-content;
  min-width: 22.4rem;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--text);
  font-size: 0.78rem;
}

.historical-match-table th,
.historical-match-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.24rem 0.18rem;
  text-align: right;
  vertical-align: middle;
}

.historical-match-table thead th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

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

.historical-date-column {
  width: 3.25rem;
}

.historical-team-column {
  width: 13.25rem;
}

.historical-score-column {
  width: 5.9rem;
}

.historical-match-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.18rem;
  align-items: center;
}

.historical-match-pair span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.historical-match-pair span:first-child,
.historical-match-pair span:last-child {
  color: #e8eef0;
  font-weight: 650;
}

.historical-match-pair span:last-child {
  text-align: left;
}

.historical-match-pair span:first-child {
  text-align: right;
}

.historical-match-table td:first-child,
.historical-match-table td:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .historical-standings-grid,
  .historical-match-grid,
  .historical-knockout-grid {
    grid-template-columns: minmax(0, 1fr);
    overflow-x: visible;
  }

  .historical-group-panel,
  .historical-match-panel {
    width: 100%;
  }
}

.third-place-card {
  min-width: 0;
  width: max-content;
  max-width: 100%;
}

.third-place-board {
  display: grid;
  grid-template-columns: max-content minmax(30rem, 38rem);
  align-items: start;
  gap: 0.72rem;
  max-width: 100%;
  min-width: 0;
}

.third-place-rules {
  display: grid;
  gap: 0.48rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(114, 199, 119, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(29, 55, 47, 0.82), rgba(10, 19, 20, 0.92)),
    var(--panel);
  padding: 0.58rem;
}

.third-place-rules-head {
  display: grid;
  gap: 0.34rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.46rem;
}

.third-place-rules-head h2 {
  margin: 0.08rem 0 0;
  font-size: 0.98rem;
}

.third-place-rules-head .text-link {
  width: max-content;
  font-size: 0.78rem;
}

.third-place-rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.34rem;
}

.third-place-rules-with-ninth {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.third-place-rules-with-ninth .third-place-rules-head,
.third-place-rules-with-ninth .third-place-rules-grid,
.third-place-rules-with-ninth .third-place-sim-form {
  grid-column: 1 / -1;
}

.third-place-rule-item {
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(8, 16, 17, 0.58);
  padding: 0.42rem 0.48rem;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.third-place-rule-item:hover,
.third-place-rule-item:focus,
.third-place-rule-item:focus-within {
  border-color: rgba(114, 199, 119, 0.34);
  background: rgba(11, 24, 22, 0.74);
}

.third-place-rules h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.22;
}

.third-place-rule-detail {
  display: grid;
  gap: 0.34rem;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.12rem);
  visibility: hidden;
  transition: max-height 180ms ease, margin-top 180ms ease, opacity 140ms ease, transform 180ms ease;
}

.third-place-rule-item:hover .third-place-rule-detail,
.third-place-rule-item:focus .third-place-rule-detail,
.third-place-rule-item:focus-within .third-place-rule-detail {
  max-height: 32rem;
  margin-top: 0.36rem;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.third-place-rules p {
  margin: 0;
  color: #cfd8dd;
  font-size: 0.74rem;
  line-height: 1.34;
}

.third-place-rules ol,
.third-place-rules ul {
  display: grid;
  gap: 0.22rem;
  margin: 0;
  padding-left: 0.98rem;
  color: #e8eef1;
  font-size: 0.74rem;
  line-height: 1.28;
}

@media (hover: none) {
  .third-place-rule-detail {
    max-height: none;
    margin-top: 0.36rem;
    opacity: 1;
    transform: none;
    visibility: visible;
  }
}

.third-place-card-points {
  padding-left: 0;
  list-style: none;
}

.third-place-card-points li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 0.24rem;
}

.third-place-card-points li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.third-place-card-points strong {
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.third-place-table {
  width: max-content;
  min-width: 30.8rem;
  border-collapse: separate;
  border-spacing: 0 0.18rem;
  font-size: 0.84rem;
}

.third-place-table th,
.third-place-table td {
  border-bottom: 0;
  padding: 0.22rem 0.26rem;
}

.third-place-table th:first-child,
.third-place-table td:first-child {
  width: 1.72rem;
  text-align: right;
}

.third-place-table th:nth-child(2),
.third-place-table td:nth-child(2) {
  width: 2.22rem;
  min-width: 0;
  text-align: center;
}

.third-place-table th:nth-child(3),
.third-place-table td:nth-child(3) {
  width: 5.8rem;
  min-width: 5.4rem;
  text-align: left;
}

.third-place-table th:nth-child(4),
.third-place-table td:nth-child(4) {
  width: 1.92rem;
}

.third-place-table th:nth-child(5),
.third-place-table td:nth-child(5) {
  width: 3.25rem;
}

.third-place-table th:nth-child(6),
.third-place-table td:nth-child(6) {
  width: 2.62rem;
}

.third-place-table th:nth-child(7),
.third-place-table td:nth-child(7) {
  width: 2.42rem;
}

.third-place-table th:nth-child(8),
.third-place-table td:nth-child(8) {
  width: 2.32rem;
}

.third-place-row td {
  background: rgba(9, 17, 16, 0.58);
}

.third-place-row td:first-child {
  border-radius: 5px 0 0 5px;
}

.third-place-row td:last-child {
  border-radius: 0 5px 5px 0;
}

.third-place-advance td {
  border-top: 1px solid rgba(150, 235, 161, 0.2);
  border-bottom: 1px solid rgba(5, 10, 9, 0.68);
  background:
    linear-gradient(180deg, rgba(38, 72, 58, 0.95), rgba(18, 35, 30, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34),
    0 0.35rem 0.85rem rgba(0, 0, 0, 0.18);
}

.third-place-advance td:first-child {
  box-shadow:
    inset 2px 0 0 rgba(101, 230, 166, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34),
    0 0.35rem 0.85rem rgba(0, 0, 0, 0.18);
}

.third-place-open.third-place-advance td:first-child {
  box-shadow:
    inset 2px 0 0 rgba(244, 189, 99, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34),
    0 0.35rem 0.85rem rgba(0, 0, 0, 0.18);
}

.third-place-out td {
  color: rgba(242, 245, 247, 0.72);
  background: rgba(7, 13, 14, 0.52);
}

.third-place-table small {
  color: var(--muted);
  font-size: 0.68rem;
}

.third-place-table .standing-team-badge {
  display: inline-flex;
  margin: 0;
  vertical-align: middle;
}

.third-place-out .standing-team-badge,
.third-place-out .third-place-group-link {
  opacity: 0.72;
}

.third-place-group-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.62rem;
  min-height: 1.42rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.45);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.third-place-group-link:hover {
  border-color: rgba(114, 199, 119, 0.45);
  background: rgba(114, 199, 119, 0.14);
}

.third-place-sim-form {
  display: flex;
  margin: 0;
  padding-top: 0.08rem;
}

.third-place-roll-button {
  display: inline-grid;
  grid-template-columns: 1rem auto;
  align-items: center;
  gap: 0.32rem;
  min-height: 1.98rem;
  padding: 0 0.54rem;
  white-space: nowrap;
}

.third-place-roll-button svg {
  width: 1rem;
  height: 1rem;
}

.third-place-roll-button rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.third-place-roll-button circle {
  fill: currentColor;
}

.third-place-density {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
  border: 1px solid rgba(125, 183, 255, 0.2);
  border-radius: 6px;
  background: rgba(7, 13, 14, 0.52);
  padding: 0.5rem;
}

.third-place-density-ninth {
  border-color: rgba(255, 139, 123, 0.24);
  background: rgba(18, 11, 12, 0.5);
}

.third-place-density-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.45rem;
}

.third-place-density-head h3 {
  margin: 0.03rem 0 0;
  font-size: 0.78rem;
  line-height: 1.15;
}

.third-place-density-head > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.72rem;
  min-height: 1.36rem;
  border: 1px solid rgba(125, 183, 255, 0.26);
  border-radius: 4px;
  color: var(--accent-cool);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.third-place-density-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.24rem;
}

.third-place-density-meta span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 0.22rem;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(8, 16, 17, 0.56);
  padding: 0.22rem 0.28rem;
}

.third-place-density-meta small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.third-place-density-meta strong {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.third-place-density-meta em {
  grid-column: 1 / -1;
  color: var(--accent-warm);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.third-place-function {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  margin: 0;
}

.third-place-function figcaption {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.third-place-function-chart {
  display: block;
  width: 100%;
  height: 6.65rem;
}

.third-place-density-axis {
  stroke: rgba(195, 203, 211, 0.34);
  stroke-width: 1;
}

.third-place-density-area {
  fill: rgba(125, 183, 255, 0.16);
}

.third-place-density-line {
  fill: none;
  stroke: #7db7ff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.third-place-density-point {
  fill: #d9ecff;
  stroke: rgba(7, 13, 14, 0.88);
  stroke-width: 1.1;
}

.third-place-density-peak {
  fill: var(--accent-warm);
  stroke: rgba(7, 13, 14, 0.86);
  stroke-width: 1.2;
}

.third-place-density-ninth .third-place-density-area {
  fill: rgba(255, 139, 123, 0.14);
}

.third-place-density-ninth .third-place-density-line {
  stroke: var(--danger);
}

.third-place-density-ninth .third-place-density-point {
  fill: #ffd2cc;
}

.third-place-cdf-step {
  fill: none;
  stroke: rgba(244, 189, 99, 0.38);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.third-place-cdf-line {
  fill: none;
  stroke: var(--accent-warm);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.third-place-cdf-point {
  fill: var(--accent-warm);
  stroke: rgba(7, 13, 14, 0.88);
  stroke-width: 1;
}

.third-place-density-axis-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.16rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.third-place-density-axis-labels span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.third-place-density-axis-labels.density-label-count-1 {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
}

.third-place-density-axis-labels.density-label-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.third-place-density-axis-labels .density-label-peak {
  color: var(--accent-warm);
  text-align: center;
}

.third-place-density-axis-labels .density-label-end {
  text-align: right;
}

.third-place-density-milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.24rem;
}

.third-place-density-milestones span {
  display: grid;
  gap: 0.04rem;
  min-width: 0;
  border: 1px solid rgba(244, 189, 99, 0.16);
  border-radius: 4px;
  background: rgba(34, 25, 10, 0.24);
  padding: 0.22rem 0.28rem;
}

.third-place-density-milestones small,
.third-place-density-values small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.third-place-density-milestones strong,
.third-place-density-values strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.third-place-density-milestones em {
  color: var(--accent-warm);
  font-size: 0.61rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.third-place-density-values {
  display: grid;
  grid-auto-columns: minmax(5.35rem, 1fr);
  grid-auto-flow: column;
  gap: 0.22rem;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 0.08rem;
}

.third-place-density-values span {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  border: 1px solid rgba(125, 183, 255, 0.14);
  border-radius: 4px;
  background: rgba(8, 16, 17, 0.58);
  padding: 0.22rem 0.28rem;
}

.third-place-simulation {
  display: grid;
  gap: 0.48rem;
  width: min(28rem, 100%);
  min-height: 0;
  margin-top: 0.72rem;
}

.third-place-simulation-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.42rem;
}

.third-place-simulation-head h2 {
  margin: 0.08rem 0 0;
  font-size: 1.04rem;
}

.third-place-simulation-table {
  width: max-content;
  min-width: 22rem;
  border-collapse: separate;
  border-spacing: 0 0.16rem;
  font-size: 0.82rem;
}

.third-place-simulation-table caption {
  color: var(--muted);
  padding-bottom: 0.28rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 800;
}

.third-place-simulation-table th,
.third-place-simulation-table td {
  padding: 0.22rem 0.42rem;
  text-align: right;
}

.third-place-simulation-table th:first-child,
.third-place-simulation-table td:first-child {
  text-align: left;
}

@media (max-width: 760px) {
  .third-place-rules-with-ninth {
    grid-template-columns: 1fr;
  }
}

.team-list li {
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.28rem;
}

.group-matches {
  display: grid;
  gap: 0.65rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.group-matches p {
  display: grid;
  gap: 0.15rem;
}

.team-directory {
  display: grid;
  grid-template-columns: repeat(6, minmax(7.5rem, 1fr));
  gap: 0.34rem;
}

.team-group-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 0.65rem;
}

.team-group-nav a,
.team-group-nav span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.45);
  color: var(--muted);
  padding: 0 0.38rem;
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 700;
}

.team-group-nav span {
  border-color: rgba(114, 199, 119, 0.28);
  color: var(--accent-strong);
}

.team-group-nav a:hover,
.team-group-nav a.active {
  border-color: rgba(114, 199, 119, 0.45);
  background: rgba(114, 199, 119, 0.14);
  color: var(--text);
}

.teams-page-shell {
  padding-top: 0.72rem;
}

.team-group-directory {
  --team-chip-gap: 0.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(18rem, 24rem));
  align-items: start;
  gap: 0.3rem 0.55rem;
  width: min(100%, 49rem);
  max-width: 100%;
}

.team-group-block {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 0.48rem;
}

.team-group-section {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 0.22rem;
}

.team-group-section header {
  display: grid;
  grid-template-columns: 1.72rem minmax(0, 1fr);
  justify-content: start;
  gap: 0.24rem;
  align-items: center;
  width: 100%;
}

.team-group-section .eyebrow,
.team-group-section h2 {
  margin-bottom: 0;
}

.team-group-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.72rem;
  min-height: 1.62rem;
  border: 1px solid rgba(125, 183, 255, 0.42);
  border-radius: 6px;
  background: #121d28;
  color: #b8d6ff;
  padding: 0 0.22rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

a.team-group-code:hover {
  border-color: rgba(96, 165, 250, 0.75);
  background: rgba(37, 99, 235, 0.28);
  color: var(--text);
}

.team-group-teamline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--team-chip-gap);
  align-items: center;
  min-width: 0;
}

.team-row-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.62rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0d1319;
  color: inherit;
  justify-content: flex-start;
  padding: 0.14rem 0.24rem;
  text-decoration: none;
}

.team-row-link:hover {
  border-color: rgba(96, 165, 250, 0.58);
  background: rgba(30, 41, 59, 0.95);
}

.team-row-link .team-badge {
  width: 100%;
  gap: 0.3rem;
}

.team-row-link .team-flag {
  width: 1.08rem;
  height: 1.08rem;
}

.team-row-link .team-badge-code {
  flex: 1 0 auto;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
}

.team-tile {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(16, 26, 24, 0.86);
  padding: 0.36rem 0.42rem;
}

.team-tile-link {
  color: inherit;
  text-decoration: none;
}

.team-tile-link:hover {
  border-color: rgba(114, 199, 119, 0.45);
  background: rgba(20, 34, 31, 0.96);
}

.team-tile div {
  display: grid;
  gap: 0.12rem;
}

.team-tile .status-pill {
  align-self: flex-start;
  white-space: nowrap;
}

.team-inline-link,
.table-team-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.team-inline-link:hover,
.table-team-link:hover {
  color: var(--accent-strong);
}

.group-match-row {
  grid-template-columns: minmax(15rem, 1fr) minmax(7rem, 0.5fr) minmax(9rem, 0.65fr) minmax(5.8rem, auto);
}

.group-match-row h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.team-match-row {
  grid-template-columns: minmax(17rem, 29rem) max-content max-content;
  gap: 0.32rem;
  justify-content: start;
  min-height: 2.38rem;
  padding: 0.24rem 0.42rem;
}

.team-match-row h3 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.team-match-row .match-pair {
  flex: 0 1 auto;
}

.team-match-score {
  margin-left: 0.06rem;
}

.team-match-time {
  grid-template-columns: minmax(4.2rem, 1fr) auto;
}

.team-match-place {
  max-width: 15rem;
}

.result-slot {
  justify-self: end;
  min-width: 5.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  padding: 0.28rem 0.42rem;
  text-align: center;
  font-weight: 700;
}

.knockout-shell {
  width: min(1520px, calc(100% - 1rem));
}

.knockout-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.55rem;
  max-width: none;
}

.knockout-empty-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.15rem;
  min-height: 1.8rem;
  border: 1px solid rgba(185, 207, 190, 0.52);
  border-radius: 6px;
  background: #111a14;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.knockout-empty-toggle:hover,
.knockout-empty-toggle:focus-visible,
.knockout-empty-toggle.active {
  border-color: rgba(31, 191, 117, 0.58);
  background: #17261d;
  color: var(--text);
}

.knockout-round-index a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0d1319;
  padding: 0.12rem 0.34rem;
}

.knockout-round-index {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  justify-content: center;
  gap: 0.24rem;
  margin-top: 0.1rem;
}

.knockout-round-index a {
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
}

.knockout-round-index a:hover {
  border-color: rgba(31, 191, 117, 0.42);
  color: var(--text);
}

.knockout-bracket {
  display: grid;
  gap: 0.45rem;
}

.knockout-bracket-double {
  grid-template-columns: minmax(31rem, 1fr) minmax(8.8rem, 0.32fr) minmax(31rem, 1fr);
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(31, 191, 117, 0.06), transparent 22%, transparent 78%, rgba(31, 191, 117, 0.06)),
    #081008;
  padding: 0.55rem;
  overflow-x: auto;
}

.knockout-tree-half {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.knockout-final-card h2 {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: center;
}

.knockout-tree-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(5.8rem, 1fr));
  gap: 0.68rem;
  color: #dfe7ec;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.knockout-tree-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(5.8rem, 1fr));
  grid-auto-rows: minmax(3.35rem, auto);
  gap: 0.34rem 0.68rem;
  align-items: stretch;
}

.knockout-side-left .knockout-tree-labels,
.knockout-side-left .knockout-tree-grid {
  grid-template-columns: minmax(12.5rem, 1.36fr) repeat(3, minmax(4.7rem, 0.72fr));
}

.knockout-side-right .knockout-tree-labels,
.knockout-side-right .knockout-tree-grid {
  grid-template-columns: repeat(3, minmax(4.7rem, 0.72fr)) minmax(12.5rem, 1.36fr);
}

.bracket-node {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.bracket-node-col-1 {
  grid-column: 1 / span 1;
}

.bracket-node-col-2 {
  grid-column: 2 / span 1;
}

.bracket-node-col-3 {
  grid-column: 3 / span 1;
}

.bracket-node-col-4 {
  grid-column: 4 / span 1;
}

.bracket-node-row-1 { grid-row-start: 1; }
.bracket-node-row-2 { grid-row-start: 2; }
.bracket-node-row-3 { grid-row-start: 3; }
.bracket-node-row-4 { grid-row-start: 4; }
.bracket-node-row-5 { grid-row-start: 5; }
.bracket-node-row-6 { grid-row-start: 6; }
.bracket-node-row-7 { grid-row-start: 7; }
.bracket-node-row-8 { grid-row-start: 8; }
.bracket-node-row-9 { grid-row-start: 9; }
.bracket-node-row-10 { grid-row-start: 10; }
.bracket-node-row-11 { grid-row-start: 11; }
.bracket-node-row-12 { grid-row-start: 12; }
.bracket-node-row-13 { grid-row-start: 13; }
.bracket-node-row-14 { grid-row-start: 14; }
.bracket-node-row-15 { grid-row-start: 15; }
.bracket-node-row-16 { grid-row-start: 16; }

.bracket-node-span-1 { grid-row-end: span 1; }
.bracket-node-span-2 { grid-row-end: span 2; }
.bracket-node-span-3 { grid-row-end: span 3; }
.bracket-node-span-4 { grid-row-end: span 4; }
.bracket-node-span-5 { grid-row-end: span 5; }
.bracket-node-span-6 { grid-row-end: span 6; }
.bracket-node-span-7 { grid-row-end: span 7; }
.bracket-node-span-8 { grid-row-end: span 8; }
.bracket-node-span-9 { grid-row-end: span 9; }
.bracket-node-span-10 { grid-row-end: span 10; }
.bracket-node-span-11 { grid-row-end: span 11; }
.bracket-node-span-12 { grid-row-end: span 12; }
.bracket-node-span-13 { grid-row-end: span 13; }
.bracket-node-span-14 { grid-row-end: span 14; }
.bracket-node-span-15 { grid-row-end: span 15; }
.bracket-node-span-16 { grid-row-end: span 16; }

.knockout-side-left .bracket-node:not(.bracket-node-col-1)::before {
  position: absolute;
  top: 50%;
  left: -0.68rem;
  width: 0.68rem;
  border-top: 1px solid rgba(223, 231, 236, 0.38);
  content: "";
}

.knockout-side-left .bracket-node:not(.bracket-node-col-1):not([data-span="1"])::after {
  position: absolute;
  top: 0.58rem;
  bottom: 0.58rem;
  left: -0.68rem;
  border-left: 1px solid rgba(223, 231, 236, 0.3);
  content: "";
}

.knockout-side-right .bracket-node:not(.bracket-node-col-4)::before {
  position: absolute;
  top: 50%;
  right: -0.68rem;
  width: 0.68rem;
  border-top: 1px solid rgba(223, 231, 236, 0.38);
  content: "";
}

.knockout-side-right .bracket-node:not(.bracket-node-col-4):not([data-span="1"])::after {
  position: absolute;
  top: 0.58rem;
  right: -0.68rem;
  bottom: 0.58rem;
  border-right: 1px solid rgba(223, 231, 236, 0.3);
  content: "";
}

.knockout-center {
  position: relative;
  display: grid;
  gap: 0.58rem;
  align-content: center;
  align-self: stretch;
  min-width: 0;
}

.knockout-center::before,
.knockout-center::after {
  position: absolute;
  top: 50%;
  width: 0.55rem;
  border-top: 1px solid rgba(223, 231, 236, 0.36);
  content: "";
}

.knockout-center::before {
  left: -0.55rem;
}

.knockout-center::after {
  right: -0.55rem;
}

.knockout-match {
  display: grid;
  width: 100%;
  border: 1px solid rgba(185, 207, 190, 0.56);
  border-radius: 3px;
  background: #cbd9cd;
  color: #07110f;
  overflow: hidden;
}

.knockout-node {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.knockout-node-inner,
.knockout-node-final,
.knockout-node-third {
  justify-self: center;
}

.knockout-node-hit {
  gap: 0.1rem;
  min-height: 3.05rem;
  padding: 0.13rem;
}

.knockout-node-inner .knockout-node-hit,
.knockout-node-final .knockout-node-hit,
.knockout-node-third .knockout-node-hit {
  min-height: 2.88rem;
}

.knockout-node-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.18rem;
  align-items: center;
  min-height: 0.82rem;
}

.knockout-node-head .knockout-round-badge {
  justify-self: center;
}

.knockout-node-decision {
  color: #16432b;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.knockout-node-slots {
  display: grid;
  gap: 0.1rem;
}

.knockout-node-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(1.15rem, auto);
  gap: 0.12rem;
  align-items: center;
  min-width: 0;
  min-height: 0.98rem;
  border: 1px solid rgba(7, 17, 15, 0.14);
  border-radius: 2px;
  background: #e4ece4;
  padding: 0.06rem 0.1rem;
  line-height: 1;
}

.knockout-node-edge .knockout-node-slot {
  grid-template-columns: minmax(1.85rem, auto) minmax(0, 1fr) minmax(1.15rem, auto);
}

.knockout-node-right.knockout-node-edge .knockout-node-slot {
  grid-template-columns: minmax(1.15rem, auto) minmax(0, 1fr) minmax(1.85rem, auto);
}

.knockout-node-right:not(.knockout-node-edge) .knockout-node-slot {
  grid-template-columns: minmax(1.15rem, auto) minmax(0, 1fr);
}

.knockout-node-right.knockout-node-edge .knockout-node-score {
  grid-column: 1;
  grid-row: 1;
}

.knockout-node-right:not(.knockout-node-edge) .knockout-node-score {
  grid-column: 1;
  grid-row: 1;
}

.knockout-node-right.knockout-node-edge .knockout-node-identity {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-start;
  justify-self: stretch;
}

.knockout-node-right:not(.knockout-node-edge) .knockout-node-identity {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-start;
  justify-self: stretch;
}

.knockout-node-right.knockout-node-edge .knockout-node-seed {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.knockout-node-slot-winner {
  border-color: rgba(5, 112, 65, 0.46);
  background: #eef5e6;
}

.knockout-node-slot-loser {
  border-color: rgba(7, 17, 15, 0.1);
  background: #d5ddd5;
}

.knockout-node-slot-loser .knockout-node-identity,
.knockout-node-slot-loser .knockout-node-seed,
.knockout-node-slot-loser .knockout-node-score {
  opacity: 0.52;
}

.knockout-node-seed {
  color: #057041;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.knockout-node-identity {
  display: inline-flex;
  gap: 0.16rem;
  align-items: center;
  min-width: 0;
}

.knockout-node-identity-full {
  max-width: 100%;
}

.knockout-node-right .knockout-node-identity-full {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.knockout-node-identity-compact {
  justify-content: center;
}

.knockout-node-right .knockout-node-identity-compact {
  flex-direction: row-reverse;
}

.knockout-team-flag {
  width: 0.82rem;
  height: 0.82rem;
  flex: 0 0 auto;
  border: 1px solid rgba(7, 17, 15, 0.18);
  border-radius: 2px;
  background: #f1f5ef;
  object-fit: cover;
}

.knockout-team-flag-empty {
  display: inline-block;
  background:
    linear-gradient(135deg, rgba(7, 17, 15, 0.16), transparent),
    #f1f5ef;
}

.knockout-team-name,
.knockout-team-code {
  min-width: 0;
  overflow: hidden;
  color: #07110f;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knockout-team-name {
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.knockout-team-code {
  font-size: 0.7rem;
}

.knockout-node-right .knockout-team-name,
.knockout-node-right .knockout-team-code {
  flex: 1 1 auto;
  text-align: right;
}

.knockout-node-score {
  display: inline-flex;
  gap: 0.12rem;
  align-items: baseline;
  justify-content: flex-end;
  justify-self: end;
  min-width: 1.32rem;
  border-left: 1px solid rgba(7, 17, 15, 0.12);
  color: #07110f;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.knockout-node-right .knockout-node-score {
  justify-content: flex-start;
  justify-self: start;
  border-right: 1px solid rgba(7, 17, 15, 0.12);
  border-left: 0;
  text-align: left;
}

.knockout-node-score-open {
  color: rgba(7, 17, 15, 0.34);
}

.knockout-probe-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(244, 189, 99, 0.42);
  border-radius: 6px;
  background: rgba(244, 189, 99, 0.08);
  padding: 0.45rem 0.55rem;
}

.knockout-probe-banner div {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.knockout-probe-banner span {
  color: var(--muted);
}

.knockout-match-open {
  border-color: rgba(185, 207, 190, 0.68);
}

.knockout-match-fixed {
  border-color: rgba(101, 230, 166, 0.64);
}

.knockout-match-hit {
  display: grid;
  gap: 0.12rem;
  min-height: 3.05rem;
  color: inherit;
  padding: 0.16rem;
  text-decoration: none;
}

.knockout-match-hit:hover {
  background: #d8e4da;
}

.knockout-match-head {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  align-items: center;
  min-height: 0.82rem;
}

.knockout-match .match-number {
  width: auto;
  min-width: 1.28rem;
  min-height: 0.82rem;
  border-color: rgba(7, 17, 15, 0.18);
  color: #057041;
  padding: 0 0.16rem;
  font-size: 0.62rem;
  line-height: 1;
}

.knockout-round-badge {
  color: #16432b;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}

.knockout-slots {
  display: grid;
  gap: 0.1rem;
}

.knockout-slot {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0.98rem;
  border: 1px solid rgba(7, 17, 15, 0.14);
  border-radius: 2px;
  background: #e4ece4;
  padding: 0.06rem 0.1rem;
  line-height: 1;
}

.knockout-slot .team-badge,
.knockout-slot .team-placeholder-badge {
  min-width: 0;
  max-width: 100%;
}

.knockout-slot .team-placeholder-badge {
  border: 0;
  background: transparent;
  color: #07110f;
  padding: 0;
}

.knockout-slot .team-badge {
  gap: 0.14rem;
}

.knockout-slot .team-flag {
  width: 0.68rem;
  height: 0.68rem;
}

.knockout-slot .team-badge-code {
  color: #07110f;
  font-size: 0.68rem;
  font-weight: 700;
}

.knockout-slot span {
  color: #07110f;
}

.knockout-slot-placeholder {
  border-color: rgba(7, 17, 15, 0.18);
}

.knockout-slot-open {
  border-color: rgba(7, 17, 15, 0.18);
}

.knockout-match-meta {
  display: none;
}

.knockout-match-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knockout-match-meta strong {
  color: var(--accent-strong);
}

.knockout-final-card {
  display: grid;
  gap: 0.18rem;
}

.knockout-final-main {
  padding: 0.2rem;
  border: 1px solid rgba(244, 189, 99, 0.55);
  background: rgba(244, 189, 99, 0.08);
}

.knockout-third-place {
  opacity: 0.86;
}

.knockout-extra-rounds {
  margin-top: 0.75rem;
}

.match-detail-heading {
  max-width: 60rem;
}

.match-detail-heading h1 {
  font-size: clamp(1.2rem, 1.85vw, 1.65rem);
  font-weight: 600;
}

.match-detail-grid,
.match-section-grid,
.team-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.detail-card {
  min-height: 0;
}

.detail-card h2 {
  margin-bottom: 0.62rem;
  font-size: 1rem;
  font-weight: 600;
}

.team-detail-overview-grid {
  grid-template-columns: max-content max-content;
  gap: 0.55rem;
  justify-content: start;
}

.team-detail-group-table-card {
  min-width: 0;
  width: max-content;
  max-width: 100%;
}

.team-detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 0.4rem;
  align-items: start;
}

.team-group-stat-card {
  width: 11.9rem;
  min-height: 0;
  padding: 0.32rem;
}

.team-group-stat-card-summary {
  width: 13.95rem;
}

.team-group-stat-head {
  gap: 0.24rem 0.45rem;
  align-items: end;
  margin-bottom: 0.12rem;
}

.team-group-stat-head .eyebrow {
  font-size: 0.62rem;
  line-height: 1.1;
}

.team-group-stat-head h2 {
  font-size: 0.82rem;
  line-height: 1.1;
}

.team-group-stat-head .lineup-source-badge {
  padding: 0.16rem 0.34rem;
  font-size: 0.62rem;
}

.team-group-stat-match-link {
  display: inline-flex;
  margin-bottom: 0.16rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-decoration: none;
}

.team-group-stat-match-link:hover {
  color: var(--accent-strong);
}

.team-group-stat-match-link-muted {
  color: rgba(195, 203, 211, 0.72);
}

.team-group-stat-table {
  font-size: 0.68rem;
  line-height: 1.12;
}

.match-statistics-table.team-group-stat-table th,
.match-statistics-table.team-group-stat-table td {
  padding: 0.18rem 0.1rem;
}

.match-statistics-table.team-group-stat-table th:first-child,
.match-statistics-table.team-group-stat-table td:first-child {
  width: 2.7rem;
}

.match-statistics-table.team-group-stat-table th:nth-child(2),
.match-statistics-table.team-group-stat-table td:nth-child(2),
.match-statistics-table.team-group-stat-table tbody th {
  width: 5.35rem;
  font-size: 0.63rem;
  line-height: 1.12;
}

.match-statistics-table.team-group-stat-table:not(.team-group-stat-table-summary) th:last-child,
.match-statistics-table.team-group-stat-table:not(.team-group-stat-table-summary) td:last-child {
  width: 2.7rem;
}

.team-group-stat-table td strong {
  font-size: 0.74rem;
}

.team-group-stat-table .team-badge {
  --team-code-width: 1.7rem;
  gap: 0.1rem;
  justify-content: inherit;
}

.team-group-stat-table .team-flag {
  width: 0.78rem;
  height: 0.78rem;
}

.team-group-stat-table .team-badge-code {
  font-size: 0.64rem;
}

.match-statistics-table.team-group-stat-table-summary th:first-child,
.match-statistics-table.team-group-stat-table-summary td:first-child {
  width: 2.7rem;
}

.match-statistics-table.team-group-stat-table-summary th:nth-child(2),
.match-statistics-table.team-group-stat-table-summary td:nth-child(2),
.match-statistics-table.team-group-stat-table-summary tbody th {
  width: 4.85rem;
}

.match-statistics-table.team-group-stat-table-summary th:nth-child(3),
.match-statistics-table.team-group-stat-table-summary td:nth-child(3) {
  width: 2.25rem;
  text-align: right;
}

.match-statistics-table.team-group-stat-table-summary th:nth-child(4),
.match-statistics-table.team-group-stat-table-summary td:nth-child(4) {
  width: 2.75rem;
  text-align: right;
}

.team-group-stat-diff-positive strong {
  color: var(--accent-strong);
}

.team-group-stat-diff-negative strong {
  color: var(--danger);
}

.detail-list {
  display: grid;
  gap: 0.58rem;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.45fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.detail-list dt {
  color: #d9e1e6;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.detail-list dd {
  margin: 0;
}

.score-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(114, 199, 119, 0.35);
  border-radius: 5px;
  background: rgba(16, 26, 24, 0.86);
  padding: 0.85rem;
}

.score-panel div:not(.score-divider) {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
}

.score-panel div:first-child {
  justify-content: flex-end;
  text-align: right;
}

.score-panel div:last-child {
  justify-content: flex-start;
}

.score-panel > div > span {
  color: var(--muted);
}

.score-panel .team-badge-code,
.score-panel .team-placeholder-badge {
  color: var(--text);
}

.score-panel strong {
  font-size: 1.45rem;
  line-height: 1;
}

.score-divider {
  color: var(--accent-strong);
  font-size: 1.25rem;
  font-weight: 700;
}

.result-note {
  margin-bottom: 1rem;
  text-align: center;
}

.match-decision-panel {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  gap: 0.35rem 0.75rem;
  margin: -0.3rem 0 1rem;
  color: var(--text);
  font-size: 0.82rem;
}

.match-decision-panel div {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
  border: 1px solid rgba(139, 164, 159, 0.28);
  border-radius: 5px;
  background: rgba(13, 21, 24, 0.78);
  padding: 0.42rem 0.52rem;
}

.match-decision-panel dt {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1;
  text-transform: uppercase;
}

.match-decision-panel dd {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.match-decision-panel .match-slot {
  --match-slot-width: auto;
}

.match-summary-section {
  display: grid;
  grid-template-columns: minmax(20rem, 24rem) minmax(20rem, 24rem);
  gap: 0.75rem;
  align-items: start;
  contain: layout paint;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.match-summary-section-has-shootout {
  grid-template-columns: minmax(20rem, 24rem) minmax(20rem, 24rem) minmax(15.3rem, 18.45rem);
  padding-bottom: 0.08rem;
}

.match-events-card,
.match-statistics-card,
.match-postmatch-card,
.penalty-shootout-card {
  display: grid;
  gap: 0.48rem;
  min-width: 0;
}

.match-statistics-panel,
.penalty-shootout-panel {
  min-width: 0;
}

.match-events-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: end;
  justify-content: space-between;
}

.match-events-head .eyebrow,
.match-events-head h2 {
  margin: 0;
}

.match-events-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.74rem;
  line-height: 1.25;
}

.match-events-table th,
.match-events-table td {
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.28rem 0.32rem;
  vertical-align: middle;
}

.match-events-table thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.match-events-table th:first-child,
.match-events-table td:first-child {
  text-align: right;
}

.match-events-table th:nth-child(2),
.match-events-table td:nth-child(2) {
  width: 3.35rem;
  text-align: center;
}

.match-events-table th:last-child,
.match-events-table td:last-child {
  text-align: left;
}

.match-events-table .team-badge {
  justify-content: inherit;
}

.match-statistics-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.76rem;
  line-height: 1.25;
}

.match-statistics-table th,
.match-statistics-table td {
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.34rem;
  vertical-align: middle;
}

.match-statistics-table thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.match-statistics-table th:first-child,
.match-statistics-table td:first-child {
  width: 4.7rem;
  text-align: right;
}

.match-statistics-table th:nth-child(2) {
  text-align: center;
}

.match-statistics-table td:nth-child(2),
.match-statistics-table tbody th {
  color: #d9e1e6;
  font-size: 0.72rem;
  font-weight: 650;
  text-align: center;
}

.match-statistics-table th:last-child,
.match-statistics-table td:last-child {
  width: 4.7rem;
  text-align: left;
}

.match-statistics-table td {
  font-variant-numeric: tabular-nums;
}

.match-statistics-table td strong {
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.match-statistics-table .team-badge {
  justify-content: inherit;
}

.penalty-shootout-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.72rem;
  line-height: 1.2;
}

.penalty-shootout-col-side {
  width: calc((100% - 2rem) / 2);
}

.penalty-shootout-col-number {
  width: 2rem;
}

.penalty-shootout-table th,
.penalty-shootout-table td {
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.24rem 0.28rem;
  vertical-align: middle;
}

.penalty-shootout-table thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.penalty-shootout-table .penalty-shootout-title-row th {
  border-top: 0;
  padding: 0.08rem 0.1rem 0.28rem;
  color: var(--text);
  font-variant-numeric: normal;
  text-align: left;
  text-transform: none;
}

.penalty-shootout-title-line {
  display: flex;
  gap: 0.28rem 0.42rem;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.penalty-shootout-title {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.penalty-shootout-score-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.14rem;
  justify-content: flex-end;
  min-width: 0;
}

.penalty-shootout-score-item {
  display: inline-flex;
  gap: 0.12rem;
  align-items: baseline;
  border: 1px solid rgba(139, 164, 159, 0.26);
  border-radius: 4px;
  background: rgba(13, 21, 24, 0.78);
  padding: 0.04rem 0.18rem;
  line-height: 1.05;
  white-space: nowrap;
}

.penalty-shootout-score-item span {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 800;
}

.penalty-shootout-score-item strong {
  color: var(--accent-strong);
  font-size: 0.66rem;
  font-weight: 850;
}

.penalty-shootout-table th:first-child,
.penalty-shootout-table td:first-child {
  text-align: right;
}

.penalty-shootout-table th:nth-child(2),
.penalty-shootout-table td:nth-child(2) {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.penalty-shootout-table .team-badge {
  max-width: 100%;
}

.penalty-shootout-table th:first-child .team-badge {
  justify-content: flex-end;
}

.penalty-shootout-table th:last-child,
.penalty-shootout-table td:last-child {
  text-align: left;
}

.penalty-shootout-table th:last-child .team-badge {
  justify-content: flex-start;
}

.penalty-shootout-row-first td {
  background: rgba(215, 239, 118, 0.05);
}

.penalty-shootout-side {
  overflow: hidden;
}

.penalty-shootout-attempt {
  display: inline-flex;
  gap: 0.22rem;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  color: #d9e1e6;
  vertical-align: middle;
}

.penalty-shootout-attempt-home {
  flex-direction: row-reverse;
}

.penalty-shootout-attempt strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.penalty-shootout-attempt-scored strong,
.penalty-shootout-attempt-first strong {
  color: var(--accent-strong);
}

.penalty-shootout-attempt-saved strong,
.penalty-shootout-attempt-missed strong {
  color: #f4cf9b;
}

.penalty-shootout-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.42rem;
  height: 1.08rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

.penalty-shootout-order-first {
  background: var(--accent-strong);
  color: #07110f;
  box-shadow: 0 0 0 1px rgba(215, 239, 118, 0.28);
}

.match-event-side {
  overflow: hidden;
  overflow-wrap: normal;
}

.match-event-minute {
  color: var(--accent-strong);
  font-weight: 800;
  white-space: nowrap;
}

.match-event-item {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  vertical-align: middle;
}

.match-event-home .match-event-item {
  flex-direction: row-reverse;
}

.match-event-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-event-symbol {
  position: relative;
  display: inline-flex;
  flex: 0 0 1rem;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
}

.match-event-symbol-card-yellow::before,
.match-event-symbol-card-red::before,
.match-event-symbol-card-second::before {
  content: "";
  width: 0.48rem;
  height: 0.7rem;
  border-radius: 2px;
  transform: rotate(-8deg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.26), 0 1px 3px rgba(0, 0, 0, 0.26);
}

.match-event-symbol-card-yellow::before {
  background: #f7d348;
}

.match-event-symbol-card-red::before {
  background: #e24a4a;
}

.match-event-symbol-card-second::before {
  background: linear-gradient(90deg, #f7d348 0 50%, #e24a4a 50% 100%);
}

.match-event-symbol-ball::before,
.match-event-symbol-ball-own::before,
.match-event-symbol-ball-disallowed::before,
.match-event-symbol-penalty::before,
.match-event-symbol-penalty-missed::before {
  content: "";
  width: 0.96rem;
  height: 0.96rem;
  border-radius: 999px;
  background: url("/images/soccer-ball.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 1px rgba(244, 247, 242, 0.5)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.34));
}

.match-event-symbol-ball-disallowed::after {
  content: "";
  position: absolute;
  width: 0.98rem;
  height: 2px;
  border-radius: 999px;
  background: #e24a4a;
  transform: rotate(-38deg);
  box-shadow: 0 0 0 1px rgba(16, 26, 24, 0.68);
}

.match-event-symbol-penalty-missed::before {
  background:
    linear-gradient(135deg, transparent 0 42%, #e24a4a 43% 57%, transparent 58% 100%),
    url("/images/soccer-ball.svg") center / contain no-repeat;
}

.match-event-symbol-penalty::after,
.match-event-symbol-penalty-missed::after {
  pointer-events: none;
}

.match-event-symbol-penalty::after,
.match-event-symbol-penalty-missed::after {
  content: "11";
  position: absolute;
  right: -0.12rem;
  bottom: -0.16rem;
  min-width: 0.52rem;
  border-radius: 999px;
  background: #0b1513;
  color: var(--accent-strong);
  font-size: 0.46rem;
  font-weight: 900;
  line-height: 0.64rem;
  text-align: center;
}

.match-event-symbol-substitution::before {
  content: "\21C4";
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.match-event-symbol-var::before,
.match-event-symbol-other::before {
  content: "VAR";
  min-width: 1.18rem;
  border: 1px solid rgba(122, 184, 255, 0.42);
  border-radius: 3px;
  color: #b9d7ff;
  font-size: 0.46rem;
  font-weight: 900;
  line-height: 0.78rem;
  text-align: center;
}

.match-event-symbol-other::before {
  content: "";
  min-width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: var(--muted);
}

.match-event-row-both td {
  background: rgba(114, 199, 119, 0.07);
  text-align: center;
}

.match-event-row-both strong {
  display: inline-block;
  margin-left: 0.24rem;
  color: var(--text);
  font-weight: 700;
}

.match-events-empty {
  margin: 0;
}

.match-lineup-section {
  margin-bottom: 0.75rem;
}

.lineup-card {
  display: grid;
  gap: 0.68rem;
}

.lineup-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: end;
  justify-content: space-between;
}

.lineup-card-head .eyebrow,
.lineup-card-head h2 {
  margin: 0;
}

.lineup-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  border: 1px solid rgba(244, 189, 99, 0.34);
  border-radius: 999px;
  background: rgba(244, 189, 99, 0.08);
  padding: 0.12rem 0.48rem;
  color: #f2cf8c;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
}

.lineup-pitch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.lineup-pitch {
  display: grid;
  grid-template-rows: auto minmax(18.75rem, 1fr) auto auto;
  gap: 0.42rem;
  min-width: 0;
}

.lineup-pitch-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(114, 199, 119, 0.22);
  border-radius: 5px;
  background: rgba(11, 17, 21, 0.72);
  padding: 0.32rem 0.42rem;
}

.lineup-pitch-away .lineup-pitch-head {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.lineup-side-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lineup-pitch-head .team-badge {
  min-width: 0;
}

.lineup-pitch-head > strong {
  color: var(--accent-strong);
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

.lineup-pitch-surface {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  gap: 0.38rem;
  min-width: 0;
  min-height: 18.75rem;
  overflow: hidden;
  border: 1px solid rgba(114, 199, 119, 0.36);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px calc(50% - 1px), rgba(255, 255, 255, 0.18) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24%, rgba(255, 255, 255, 0.08) 24% calc(24% + 1px), transparent calc(24% + 1px) 76%, rgba(255, 255, 255, 0.08) 76% calc(76% + 1px), transparent calc(76% + 1px)),
    linear-gradient(135deg, rgba(19, 94, 67, 0.95), rgba(28, 113, 73, 0.84));
  padding: 0.62rem 0.5rem;
}

.lineup-pitch-surface::before,
.lineup-pitch-surface::after {
  position: absolute;
  left: 50%;
  z-index: 0;
  width: 44%;
  height: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  content: "";
  transform: translateX(-50%);
}

.lineup-pitch-surface::before {
  top: -1px;
  border-top: 0;
  border-radius: 0 0 999px 999px;
}

.lineup-pitch-surface::after {
  bottom: -1px;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.lineup-field-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.3rem;
  align-items: center;
  min-width: 0;
}

.lineup-row-label {
  color: rgba(234, 244, 238, 0.68);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.lineup-player-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.24rem;
  justify-content: center;
  min-width: 0;
}

.lineup-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "number name"
    "number position";
  column-gap: 0.22rem;
  align-items: center;
  flex: 1 1 4.15rem;
  min-width: 0;
  max-width: 6.4rem;
  border: 1px solid rgba(231, 242, 235, 0.22);
  border-radius: 5px;
  background: rgba(8, 18, 14, 0.76);
  padding: 0.22rem 0.28rem;
  box-shadow: 0 0.35rem 0.8rem rgba(0, 0, 0, 0.18);
}

.lineup-player-number {
  grid-area: number;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  min-height: 1.05rem;
  border-radius: 999px;
  background: rgba(244, 189, 99, 0.16);
  color: #f2cf8c;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.lineup-player strong {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  color: #f1f5f3;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-player small {
  grid-area: position;
  min-width: 0;
  overflow: hidden;
  color: rgba(213, 226, 219, 0.7);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-player-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  color: rgba(234, 244, 238, 0.62);
  font-size: 0.66rem;
  font-weight: 700;
}

.lineup-pitch-empty {
  opacity: 0.76;
}

.lineup-coach-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.38rem;
  align-items: baseline;
  min-width: 0;
  border: 1px solid rgba(114, 199, 119, 0.2);
  border-radius: 5px;
  background: rgba(11, 17, 21, 0.68);
  padding: 0.32rem 0.44rem;
  font-size: 0.76rem;
}

.lineup-coach-line span {
  color: var(--muted);
  font-weight: 700;
}

.lineup-coach-line strong {
  min-width: 0;
  overflow: hidden;
  color: #dfece5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-market-share {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem 0.36rem;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(125, 183, 255, 0.3);
  border-radius: 5px;
  background: rgba(18, 29, 40, 0.72);
  padding: 0.24rem 0.44rem;
  color: #cdd7df;
  font-size: 0.74rem;
  line-height: 1.12;
}

.lineup-market-share span {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-market-share .lineup-market-value {
  color: #dfece5;
}

.lineup-market-share .lineup-market-value-normalized {
  color: #a8d5ff;
}

.lineup-market-share .lineup-market-value-season {
  color: #ffd166;
}

.lineup-market-share strong {
  flex: 0 0 auto;
  color: #9df2b5;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.lineup-note {
  margin: 0;
  font-size: 0.76rem;
}

.team-detail-heading {
  max-width: 60rem;
}

.team-detail-title {
  margin-bottom: 0.12rem;
}

.team-detail-titleline {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}

.team-detail-heading .team-badge-detail {
  gap: 0.42rem;
}

.team-badge-photo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: zoom-in;
}

.team-badge-photo-button:hover,
.team-badge-photo-button:focus-visible {
  background: rgba(125, 183, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(125, 183, 255, 0.45);
}

.team-badge-photo-button .team-badge {
  pointer-events: none;
}

.team-detail-heading .team-badge-detail .team-flag {
  width: 1.9rem;
  height: 1.9rem;
  border-width: 1px;
}

.team-detail-heading .team-badge-detail .team-badge-code {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 700;
}

.team-detail-group-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  min-height: 1.34rem;
  border: 1px solid rgba(114, 199, 119, 0.36);
  border-radius: 4px;
  background: rgba(114, 199, 119, 0.1);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.team-detail-group-link:hover {
  border-color: rgba(114, 199, 119, 0.58);
  background: rgba(114, 199, 119, 0.16);
  color: var(--text);
}

.squad-section-list {
  display: grid;
  gap: 0.46rem;
}

.squad-section {
  border-top: 1px solid rgba(125, 183, 255, 0.16);
  padding-top: 0.44rem;
}

.squad-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.squad-section-head {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: space-between;
  min-height: 1.45rem;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(125, 183, 255, 0.1), rgba(114, 199, 119, 0.04));
  padding: 0.1rem 0.32rem;
}

.squad-section-head h3 {
  min-width: 0;
  margin: 0;
  color: #d9e1e6;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.squad-section-head span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 1.28rem;
  min-height: 1.05rem;
  border: 1px solid rgba(114, 199, 119, 0.28);
  border-radius: 3px;
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.squad-section-note {
  margin: 0.22rem 0.3rem 0.12rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.market-values-card {
  align-content: start;
}

.market-values-head {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.market-values-head h2 {
  margin: 0;
}

.market-date-form {
  display: flex;
  gap: 0.28rem;
  align-items: center;
  min-width: 0;
}

.market-date-select {
  width: 8.4rem;
  max-width: 100%;
  border: 1px solid rgba(125, 183, 255, 0.22);
  border-radius: 4px;
  background: rgba(6, 17, 24, 0.86);
  color: var(--text);
  padding: 0.22rem 0.35rem;
  font: inherit;
  font-size: 0.76rem;
}

.market-date-select .market-date-planned {
  color: rgba(214, 221, 226, 0.42);
}

.market-date-form button {
  min-height: 1.72rem;
  border: 1px solid rgba(114, 199, 119, 0.34);
  border-radius: 4px;
  background: rgba(114, 199, 119, 0.12);
  color: var(--accent-strong);
  padding: 0.16rem 0.42rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.market-summary-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 0.42rem;
}

.market-player-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}

.market-player-row {
  display: grid;
  grid-template-columns: 1.55rem minmax(7.8rem, 12.5rem) minmax(4.55rem, auto) 2.55rem minmax(4.55rem, auto);
  gap: 0.34rem;
  align-items: center;
  min-height: 1.62rem;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  padding: 0.12rem 0.16rem;
}

.market-player-row-head {
  min-height: 1.18rem;
  border-top: 0;
  color: rgba(214, 221, 226, 0.62);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.market-player-row-head span:nth-child(3),
.market-player-row-head span:nth-child(5) {
  justify-self: end;
}

.market-player-row-head span:nth-child(4) {
  justify-self: center;
}

.market-player-row-head + .market-player-row {
  border-top: 0;
}

.market-player-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.02rem;
}

.market-player-name strong,
.market-player-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-player-name strong {
  color: var(--text);
  font-size: 0.78rem;
}

.market-player-name small {
  color: var(--muted);
  font-size: 0.68rem;
}

.market-player-value {
  justify-self: end;
  color: #e8edf0;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.market-player-normalized-value {
  color: #b9edc4;
}

.market-player-source {
  justify-self: center;
  min-width: 2.35rem;
  border: 1px solid rgba(125, 183, 255, 0.18);
  border-radius: 3px;
  color: var(--muted);
  padding: 0.08rem 0.18rem;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.market-player-status-original .market-player-source,
.market-player-status-manual .market-player-source {
  border-color: rgba(114, 199, 119, 0.28);
  color: var(--accent-strong);
}

.market-player-status-fallback .market-player-source {
  border-color: rgba(255, 198, 95, 0.34);
  color: #ffd27d;
}

.market-player-status-missing .market-player-value,
.market-player-status-missing .market-player-source {
  color: rgba(214, 221, 226, 0.48);
}

.squad-player-list {
  display: grid;
  gap: 0;
  margin: 0.18rem 0 0;
  padding: 0;
  list-style: none;
}

.squad-player-row {
  display: grid;
  grid-template-columns: 1.55rem 1.84rem minmax(0, 1fr);
  gap: 0.32rem;
  align-items: center;
  min-height: 2.08rem;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  padding: 0.11rem 0.16rem;
}

.squad-player-row:first-child {
  border-top: 0;
}

.squad-shirt-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.42rem;
  min-height: 1.18rem;
  border: 1px solid rgba(125, 183, 255, 0.28);
  border-radius: 3px;
  background: rgba(125, 183, 255, 0.08);
  color: var(--accent-cool);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.squad-player-photo {
  position: relative;
  display: inline-flex;
  width: 1.72rem;
  height: 1.72rem;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 25%, rgba(125, 183, 255, 0.28), rgba(33, 45, 58, 0.74));
  color: rgba(238, 244, 248, 0.82);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 -0.38rem 0.72rem rgba(0, 0, 0, 0.22);
}

.squad-player-photo-button {
  padding: 0;
  cursor: zoom-in;
}

.squad-player-photo-button:hover,
.squad-player-photo-button:focus-visible {
  border-color: rgba(125, 183, 255, 0.58);
  box-shadow:
    0 0 0 2px rgba(125, 183, 255, 0.2),
    inset 0 -0.38rem 0.72rem rgba(0, 0, 0, 0.22);
}

.squad-player-photo-button:disabled {
  cursor: default;
}

.squad-player-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.squad-photo-zoom-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: block;
  background: rgba(4, 8, 12, 0.72);
  cursor: zoom-out;
}

.squad-photo-zoom-overlay[hidden] {
  display: none;
}

.squad-photo-zoom-panel {
  position: fixed;
  top: var(--squad-photo-zoom-top, 1rem);
  left: var(--squad-photo-zoom-left, 1rem);
  display: grid;
  gap: 0.58rem;
  justify-items: center;
  max-width: min(28rem, 86vw);
  transform-origin: var(--squad-photo-zoom-origin-x, 50%) var(--squad-photo-zoom-origin-y, 50%);
  cursor: zoom-out;
}

.squad-photo-zoom-image {
  width: auto;
  max-width: min(24rem, 78vw);
  max-height: min(34rem, 76vh);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #10171e;
  object-fit: contain;
  box-shadow: 0 1.1rem 3.8rem rgba(0, 0, 0, 0.46);
}

.squad-photo-zoom-name {
  max-width: min(24rem, 78vw);
  overflow-wrap: anywhere;
  color: rgba(238, 244, 248, 0.92);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.squad-player-photo-fallback {
  transform: translateY(0.02rem);
}

.squad-player-main {
  display: flex;
  min-width: 0;
  gap: 0.4rem;
  align-items: baseline;
}

.squad-player-main strong {
  min-width: 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.squad-player-main small {
  flex: 0 1 auto;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.admin-command-grid,
.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-command-card {
  min-height: 12rem;
}

.admin-command-card h2 {
  font-size: 1.35rem;
}

.admin-panel {
  min-height: 0;
}

.admin-action-form {
  margin-top: 1rem;
}

.admin-action-form button {
  width: 100%;
}

.admin-link-button {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.user-admin-shell {
  width: min(1500px, calc(100% - 1.4rem));
}

.user-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.user-admin-form-card h2 {
  margin-bottom: 0.35rem;
}

.user-admin-form {
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.user-form-grid {
  display: grid;
  grid-template-columns: 7.6rem minmax(0, 1fr);
  gap: 0.48rem 0.58rem;
  align-items: center;
}

.user-form-grid label {
  margin: 0;
  font-size: 0.78rem;
}

.user-admin-form input,
.user-admin-form select {
  min-height: 2.28rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #07110f;
  color: var(--text);
  padding: 0 0.65rem;
}

.user-admin-form .password-reveal-field input {
  min-height: 2.28rem;
}

.user-admin-form .password-reveal-toggle {
  inset-block: 0.28rem;
  width: 2rem;
}

.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.user-stat-card {
  min-height: 0;
  padding: 0.8rem;
}

.user-stat-card strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
}

.user-stat-card span {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-work-shell {
  max-width: 78rem;
}

.admin-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.work-item-card {
  display: grid;
  gap: 0.8rem;
}

.work-created-at {
  color: var(--muted);
  font-weight: 700;
  text-transform: none;
}

.work-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
}

.work-item-head h2 {
  margin: 0.15rem 0 0;
}

.compact-work-list {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding-left: 1.05rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.42;
}

.work-prompt-panel {
  display: grid;
  gap: 0.75rem;
}

.work-prompt {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 22rem;
  resize: vertical;
  border: 1px solid rgba(195, 203, 211, 0.28);
  border-radius: 8px;
  background: #0f171f;
  color: #e6ecef;
  padding: 0.85rem;
  font-family: "Cascadia Mono", Consolas, "Segoe UI Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.import-status-shell {
  max-width: 84rem;
}

.import-pause-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(114, 199, 119, 0.3);
  border-radius: 7px;
  background: rgba(16, 26, 24, 0.78);
  padding: 0.68rem 0.78rem;
}

.import-pause-panel.is-paused {
  border-color: rgba(215, 239, 118, 0.36);
  background: rgba(215, 239, 118, 0.08);
}

.import-pause-panel h2,
.import-pause-panel p {
  margin: 0;
}

.import-pause-panel h2 {
  font-size: 1rem;
}

.import-pause-panel p {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.import-pause-panel small {
  display: block;
  margin-top: 0.14rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.import-pause-action {
  margin: 0;
}

.import-pause-action button {
  min-height: 2.1rem;
  white-space: nowrap;
}

.import-status-board {
  display: grid;
  gap: 0.7rem;
  width: 100%;
  min-width: 0;
}

.import-status-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
}

.import-status-head h2 {
  margin: 0;
}

.import-status-head p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.import-status-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.import-status-table {
  width: max-content;
  min-width: 66rem;
  border-collapse: separate;
  border-spacing: 0 0.14rem;
  table-layout: fixed;
}

.import-status-table th,
.import-status-table td {
  border-top: 1px solid rgba(195, 203, 211, 0.18);
  border-bottom: 1px solid rgba(195, 203, 211, 0.18);
  background: #0f171f;
  padding: 0.42rem 0.52rem;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: left;
  vertical-align: top;
}

.import-status-table thead th {
  border-color: rgba(195, 203, 211, 0.28);
  background: #111a22;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.import-status-table th:first-child,
.import-status-table td:first-child {
  width: 12.4rem;
  border-left: 1px solid rgba(195, 203, 211, 0.18);
  border-radius: 7px 0 0 7px;
}

.import-status-table th:nth-child(2),
.import-status-table td:nth-child(2) {
  width: 9.6rem;
}

.import-status-table th:nth-child(3),
.import-status-table td:nth-child(3) {
  width: 13.2rem;
}

.import-status-table th:nth-child(4),
.import-status-table td:nth-child(4) {
  width: 10.4rem;
}

.import-status-table th:nth-child(5),
.import-status-table td:nth-child(5) {
  width: 17rem;
}

.import-status-table th:nth-child(6),
.import-status-table td:nth-child(6) {
  width: 10rem;
}

.import-status-table th:last-child,
.import-status-table td:last-child {
  width: 9.8rem;
  border-right: 1px solid rgba(195, 203, 211, 0.18);
  border-radius: 0 7px 7px 0;
}

.import-status-name {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.38rem;
  align-items: start;
  gap: 0.34rem;
  position: relative;
}

.import-status-name small,
.import-status-sub {
  display: block;
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.22;
}

.import-status-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.28rem;
  height: 1.28rem;
  border: 1px solid rgba(101, 230, 166, 0.44);
  border-radius: 50%;
  background: #13232a;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.import-status-tooltip {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.34rem;
  width: min(30rem, calc(100vw - 3rem));
  max-width: 30rem;
  max-height: 0;
  overflow: hidden;
  border: 0 solid rgba(195, 203, 211, 0.28);
  border-radius: 8px;
  background: #0b1117;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: #e6ecef;
  margin-top: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.32;
  opacity: 0;
  visibility: hidden;
}

.import-status-tooltip strong {
  color: var(--accent-cool);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.import-status-info:hover + .import-status-tooltip,
.import-status-info:focus + .import-status-tooltip {
  max-height: 28rem;
  border-width: 1px;
  margin-top: 0.26rem;
  padding: 0.72rem;
  opacity: 1;
  visibility: visible;
}

.import-status-error {
  font-weight: 700;
}

.import-status-error.has-error {
  color: #ff8b7b;
}

.import-status-error-cell {
  display: inline-grid;
  grid-template-columns: max-content 1.28rem;
  align-items: center;
  gap: 0.34rem;
  max-width: 100%;
}

.import-status-error-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.18rem;
  height: 1.18rem;
  border: 1px solid rgba(255, 139, 123, 0.46);
  border-radius: 50%;
  background: #2a1716;
  color: #ffb1a6;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.import-status-error-info.is-ok {
  border-color: rgba(101, 230, 166, 0.44);
  background: #13232a;
  color: var(--accent);
}

.import-status-error-info.has-error {
  border-color: rgba(255, 139, 123, 0.46);
  background: #2a1716;
  color: #ffb1a6;
}

.import-status-error-tooltip {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.34rem;
  width: min(24rem, calc(100vw - 3rem));
  max-width: 24rem;
  max-height: 0;
  overflow: hidden;
  border: 0 solid rgba(255, 139, 123, 0.28);
  border-radius: 8px;
  background: #0b1117;
  color: #e6ecef;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.32;
  opacity: 0;
  visibility: hidden;
}

.import-status-error-tooltip strong {
  color: #ffb1a6;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.import-status-error-info:hover + .import-status-error-tooltip,
.import-status-error-info:focus + .import-status-error-tooltip {
  max-height: 18rem;
  border-width: 1px;
  margin-top: 0.22rem;
  padding: 0.64rem;
  opacity: 1;
  visibility: visible;
}

.import-status-action {
  margin: 0;
}

.import-status-action button {
  width: 100%;
  min-height: 1.92rem;
  padding: 0.24rem 0.52rem;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
}

.import-status-action button:disabled {
  border-color: rgba(195, 203, 211, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: not-allowed;
}

.calculation-shell {
  max-width: 82rem;
}

.calculation-heading {
  display: grid;
  gap: 0.7rem;
}

.calculation-tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1319;
  padding: 0.16rem;
}

.calculation-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.82rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  padding: 0.18rem 0.72rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
}

.calculation-tab:hover,
.calculation-tab.active {
  border-color: rgba(101, 230, 166, 0.62);
  background: #182832;
  color: var(--text);
}

.algo-source-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) auto;
  gap: 0.55rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.algo-source-strip div,
.algo-source-strip .text-link {
  min-width: 0;
  border: 1px solid rgba(195, 203, 211, 0.22);
  border-radius: 8px;
  background: #0f171f;
  padding: 0.64rem 0.72rem;
}

.algo-source-strip span {
  display: block;
  margin-bottom: 0.14rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.algo-source-strip strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.algo-source-strip .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.algo-summary-grid,
.algo-step-grid,
.algo-context-grid,
.algo-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.algo-card,
.algo-step,
.algo-signal-card,
.algo-context-card,
.algo-work-card {
  min-width: 0;
}

.algo-card h2,
.algo-step h3,
.algo-signal-card h3,
.algo-context-card h3,
.algo-work-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.algo-section {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  margin-top: 1rem;
}

.algo-section > * {
  min-width: 0;
}

.algo-section-head {
  display: grid;
  gap: 0.28rem;
}

.algo-section-head h2 {
  margin: 0;
}

.algo-section-head p:last-child {
  max-width: 68rem;
  margin: 0;
  color: var(--muted);
}

.algo-step,
.algo-signal-card,
.algo-context-card,
.algo-work-card {
  display: grid;
  gap: 0.56rem;
  border: 1px solid rgba(195, 203, 211, 0.2);
  border-radius: 8px;
  background: #0f171f;
  padding: 0.78rem;
}

.algo-step dl,
.algo-context-card dl {
  display: grid;
  gap: 0.42rem;
  margin: 0;
}

.algo-step dl div,
.algo-context-card dl div {
  display: grid;
  gap: 0.12rem;
}

.algo-step dt,
.algo-context-card dt {
  color: var(--accent-cool);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.algo-step dd,
.algo-context-card dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.42;
}

.algo-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.algo-signal-card p,
.algo-context-card p,
.algo-work-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.42;
}

.algo-context-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.algo-data-table {
  width: 100%;
  min-width: 58rem;
  border-collapse: separate;
  border-spacing: 0 0.18rem;
  table-layout: fixed;
}

.algo-data-table th,
.algo-data-table td {
  border-top: 1px solid rgba(195, 203, 211, 0.16);
  border-bottom: 1px solid rgba(195, 203, 211, 0.16);
  background: #0f171f;
  padding: 0.5rem 0.56rem;
  font-size: 0.86rem;
  line-height: 1.32;
  vertical-align: top;
}

.algo-data-table th:first-child,
.algo-data-table td:first-child {
  border-left: 1px solid rgba(195, 203, 211, 0.16);
  border-radius: 7px 0 0 7px;
}

.algo-data-table th:last-child,
.algo-data-table td:last-child {
  border-right: 1px solid rgba(195, 203, 211, 0.16);
  border-radius: 0 7px 7px 0;
}

.algo-data-table thead th {
  background: #18222c;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.algo-data-table tbody th {
  color: var(--text);
  font-weight: 700;
}

.algo-work-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.algo-output {
  color: var(--muted);
}

.algo-question-list {
  display: grid;
  gap: 0.44rem;
  margin: 0;
  padding-left: 1.25rem;
}

.algo-question-list li {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.42;
}

.algo-prompt-section {
  margin-bottom: 1rem;
}

.algo-prompt-section .action-note {
  overflow-wrap: anywhere;
}

.algo-prompt {
  min-height: 30rem;
}

.market-explanation-shell {
  max-width: 94rem;
}

.market-explanation-section {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  min-width: 0;
}

.market-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.market-step,
.market-factor-panel,
.market-formula-legend-panel,
.market-summary-item {
  border: 1px solid rgba(195, 203, 211, 0.2);
  border-radius: 8px;
  background: #0f171f;
}

.market-step {
  display: grid;
  gap: 0.38rem;
  padding: 0.68rem;
}

.market-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.42rem;
  height: 1.42rem;
  border: 1px solid rgba(101, 230, 166, 0.46);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.market-step h3,
.market-factor-panel h3,
.market-formula-legend-panel h3 {
  margin: 0;
  font-size: 0.96rem;
}

.market-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.market-formula-panel {
  display: grid;
  gap: 0.42rem;
  max-width: 100%;
  border: 1px solid rgba(125, 183, 255, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(17, 28, 38, 0.96), rgba(14, 22, 29, 0.96));
  overflow-x: auto;
  padding: 0.78rem 0.9rem;
}

.market-formula-line {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  gap: 0.56rem;
  align-items: baseline;
  width: max-content;
  min-width: 100%;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.55;
  white-space: nowrap;
}

.market-formula-line span:nth-child(2) {
  color: var(--accent-cool);
  font-weight: 700;
}

.market-formula-line var {
  color: #e8f7ff;
  font-style: italic;
}

.market-formula-line sub sub,
.market-formula-symbol sub sub,
.market-calculation-formula sub sub {
  font-size: 0.72em;
}

.market-factor-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 0.4fr) minmax(16rem, 0.7fr) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.market-factor-panel {
  display: grid;
  gap: 0.48rem;
  padding: 0.66rem;
}

.market-formula-legend-panel {
  display: grid;
  gap: 0.5rem;
  max-width: 100%;
  overflow: hidden;
  padding: 0.66rem;
}

.market-factor-table,
.market-formula-legend-table,
.market-example-table,
.market-calculation-table,
.market-breakdown-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.14rem;
}

.market-factor-table th,
.market-factor-table td,
.market-formula-legend-table th,
.market-formula-legend-table td,
.market-example-table th,
.market-example-table td,
.market-calculation-table th,
.market-calculation-table td,
.market-breakdown-table th,
.market-breakdown-table td {
  border-top: 1px solid rgba(195, 203, 211, 0.15);
  border-bottom: 1px solid rgba(195, 203, 211, 0.15);
  background: #0d151d;
  padding: 0.36rem 0.46rem;
  font-size: 0.82rem;
  line-height: 1.25;
  vertical-align: middle;
}

.market-factor-table th:first-child,
.market-factor-table td:first-child,
.market-formula-legend-table th:first-child,
.market-formula-legend-table td:first-child,
.market-example-table th:first-child,
.market-example-table td:first-child,
.market-calculation-table th:first-child,
.market-calculation-table td:first-child,
.market-breakdown-table th:first-child,
.market-breakdown-table td:first-child {
  border-left: 1px solid rgba(195, 203, 211, 0.15);
  border-radius: 7px 0 0 7px;
}

.market-factor-table th:last-child,
.market-factor-table td:last-child,
.market-formula-legend-table th:last-child,
.market-formula-legend-table td:last-child,
.market-example-table th:last-child,
.market-example-table td:last-child,
.market-calculation-table th:last-child,
.market-calculation-table td:last-child,
.market-breakdown-table th:last-child,
.market-breakdown-table td:last-child {
  border-right: 1px solid rgba(195, 203, 211, 0.15);
  border-radius: 0 7px 7px 0;
}

.market-factor-table thead th,
.market-formula-legend-table thead th,
.market-example-table thead th,
.market-calculation-table thead th,
.market-breakdown-table thead th {
  background: #18222c;
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.market-factor-table td:last-child,
.market-age-param-table td:nth-child(n+2),
.market-example-table td:nth-child(n+4),
.market-calculation-table td:nth-child(3),
.market-calculation-table td:nth-child(4),
.market-breakdown-table td:nth-child(n+3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.market-position-table td:nth-child(2) {
  min-width: 11rem;
}

.market-formula-legend-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.market-formula-legend-frame {
  --legend-entry-width: 7.8rem;
  --legend-explanation-width: calc((100% - var(--legend-entry-width) - var(--legend-entry-width) - var(--legend-entry-width)) / 3);
  --legend-line-1: var(--legend-entry-width);
  --legend-line-2: calc(var(--legend-line-1) + var(--legend-explanation-width));
  --legend-line-3: calc(var(--legend-line-2) + var(--legend-entry-width));
  --legend-line-4: calc(var(--legend-line-3) + var(--legend-explanation-width));
  --legend-line-5: calc(var(--legend-line-4) + var(--legend-entry-width));
  position: relative;
  width: max(60rem, 100%);
}

.market-formula-legend-frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent calc(var(--legend-line-1) - 0.5px), rgba(195, 203, 211, 0.32) calc(var(--legend-line-1) - 0.5px) calc(var(--legend-line-1) + 0.5px), transparent calc(var(--legend-line-1) + 0.5px)),
    linear-gradient(90deg, transparent calc(var(--legend-line-2) - 1px), rgba(125, 183, 255, 0.68) calc(var(--legend-line-2) - 1px) calc(var(--legend-line-2) + 1px), transparent calc(var(--legend-line-2) + 1px)),
    linear-gradient(90deg, transparent calc(var(--legend-line-3) - 0.5px), rgba(195, 203, 211, 0.32) calc(var(--legend-line-3) - 0.5px) calc(var(--legend-line-3) + 0.5px), transparent calc(var(--legend-line-3) + 0.5px)),
    linear-gradient(90deg, transparent calc(var(--legend-line-4) - 1px), rgba(125, 183, 255, 0.68) calc(var(--legend-line-4) - 1px) calc(var(--legend-line-4) + 1px), transparent calc(var(--legend-line-4) + 1px)),
    linear-gradient(90deg, transparent calc(var(--legend-line-5) - 0.5px), rgba(195, 203, 211, 0.32) calc(var(--legend-line-5) - 0.5px) calc(var(--legend-line-5) + 0.5px), transparent calc(var(--legend-line-5) + 0.5px));
}

.market-formula-legend-table {
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0 0.14rem;
  table-layout: fixed;
}

.market-formula-entry-col {
  width: 7.8rem;
}

.market-formula-explanation-col {
  width: calc((100% - 23.4rem) / 3);
}

.market-formula-legend-table tbody th {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.market-formula-symbol {
  color: #e8f7ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.market-formula-symbol var,
.market-calculation-formula var {
  font-style: italic;
}

.market-formula-symbol sub,
.market-formula-symbol sup,
.market-calculation-formula sub,
.market-calculation-formula sup {
  line-height: 0;
}

.market-formula-legend-table tbody td {
  color: #e6ecef;
  font-size: 0.8rem;
  line-height: 1.2;
}

.market-formula-legend-table th,
.market-formula-legend-table td {
  border-right: 0;
  padding-block: 0.33rem;
}

.market-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.market-summary-item {
  display: grid;
  gap: 0.16rem;
  padding: 0.58rem 0.66rem;
}

.market-summary-item span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.market-summary-item strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.15;
}

.market-table-wrap,
.market-calculation-wrap,
.market-breakdown-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.market-calculation-table {
  width: max-content;
  min-width: 68rem;
}

.market-example-table {
  min-width: 58rem;
}

.market-breakdown-table {
  width: max-content;
  min-width: 36rem;
}

.market-example-table caption,
.market-calculation-table caption,
.market-breakdown-table caption {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
}

.market-example-table tbody th,
.market-calculation-table tbody th,
.market-breakdown-table tbody th {
  color: var(--text);
  font-weight: 700;
  text-align: left;
}

.market-calculation-table td:last-child {
  color: #e8f7ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.market-calculation-formula {
  white-space: nowrap;
}

.market-calculation-variables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12rem 0.42rem;
  max-width: 30rem;
  color: #e6ecef;
  font-size: 0.78rem;
  line-height: 1.2;
}

.market-calculation-variables span {
  white-space: nowrap;
}

.market-calculation-variables .market-formula-symbol {
  display: inline-block;
  min-width: 2.6rem;
  text-align: right;
}

.market-example-table tbody tr.is-starter th,
.market-example-table tbody tr.is-starter td {
  background: rgba(24, 40, 50, 0.94);
}

.market-example-table tbody tr.is-starter td:nth-child(5) {
  color: var(--accent-strong);
  font-weight: 800;
}

.season-value-shell {
  max-width: 104rem;
}

.season-value-heading {
  display: grid;
  gap: 0.62rem;
}

.season-source-strip,
.season-total-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin: 0;
}

.season-source-strip div,
.season-total-strip div {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 0.34rem;
  align-items: baseline;
  min-height: 1.74rem;
  border: 1px solid rgba(195, 203, 211, 0.18);
  border-radius: 7px;
  background: #0f171f;
  padding: 0.26rem 0.48rem;
}

.season-source-strip span,
.season-total-strip dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.season-source-strip strong,
.season-total-strip dd {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.season-curve-section,
.season-team-section {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  min-width: 0;
}

.season-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem 0.7rem;
  align-items: end;
  justify-content: space-between;
  min-width: 0;
}

.season-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.season-curve-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  align-items: center;
}

.season-curve-toggle {
  display: inline-flex;
  gap: 0.22rem;
  align-items: center;
  min-height: 1.28rem;
  border: 1px solid rgba(195, 203, 211, 0.16);
  border-radius: 7px;
  background: #0f171f;
  color: var(--text);
  padding: 0.12rem 0.34rem;
  font-size: 0.7rem;
  font-weight: 800;
}

.season-curve-toggle:hover,
.season-curve-toggle.active {
  border-color: rgba(101, 230, 166, 0.46);
  background: #17242b;
}

.season-curve-toggle[aria-pressed="false"] {
  color: #73818b;
  opacity: 0.72;
}

.season-curve-toggle[aria-pressed="false"] i {
  opacity: 0.36;
}

.season-curve-toggle i {
  width: 0.62rem;
  height: 0.2rem;
  border-radius: 999px;
}

.season-curve-frame {
  width: 100%;
  border: 1px solid rgba(195, 203, 211, 0.18);
  border-radius: 8px;
  background: #0d151d;
  overflow-x: auto;
  padding: 0.55rem 0.62rem 0.35rem;
}

.season-curve-chart {
  display: block;
  width: 100%;
  min-width: 50rem;
  height: auto;
}

.season-chart-bg {
  fill: #101922;
  stroke: rgba(195, 203, 211, 0.18);
}

.season-chart-grid,
.season-chart-age-grid {
  stroke: rgba(195, 203, 211, 0.14);
  stroke-width: 1;
}

.season-chart-age-grid {
  stroke-dasharray: 3 5;
}

.season-chart-label,
.season-chart-axis-label {
  fill: #a8b4bd;
  font-size: 0.72rem;
  font-weight: 700;
}

.season-chart-curve {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.1;
}

.season-chart-curve[hidden] {
  display: none;
}

.season-chart-curve.season-curve-color-1 {
  stroke: #65e6a6;
}

.season-chart-curve.season-curve-color-2 {
  stroke: #7db7ff;
}

.season-chart-curve.season-curve-color-3 {
  stroke: #ffd166;
}

.season-chart-curve.season-curve-color-4 {
  stroke: #f78c6b;
}

.season-chart-curve.season-curve-color-5 {
  stroke: #c792ea;
}

.season-chart-curve.season-curve-color-6 {
  stroke: #89ddff;
}

.season-chart-curve.season-curve-color-7 {
  stroke: #f07178;
}

.season-curve-toggle.season-curve-color-1 i {
  background: #65e6a6;
}

.season-curve-toggle.season-curve-color-2 i {
  background: #7db7ff;
}

.season-curve-toggle.season-curve-color-3 i {
  background: #ffd166;
}

.season-curve-toggle.season-curve-color-4 i {
  background: #f78c6b;
}

.season-curve-toggle.season-curve-color-5 i {
  background: #c792ea;
}

.season-curve-toggle.season-curve-color-6 i {
  background: #89ddff;
}

.season-curve-toggle.season-curve-color-7 i {
  background: #f07178;
}

.season-empty {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
}

.season-table-wrap,
.season-player-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.season-player-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.12rem;
}

.season-table-wrap {
  width: 100%;
  max-width: 40.6rem;
}

.season-team-summary-table {
  width: max-content;
  min-width: 0;
  border: 1px solid rgba(195, 203, 211, 0.2);
  border-collapse: collapse;
  border-spacing: 0;
}

.season-player-table {
  min-width: 38rem;
}

.season-team-summary-table th,
.season-team-summary-table td,
.season-player-table th,
.season-player-table td {
  background: #0f171f;
  padding: 0.26rem 0.36rem;
  font-size: 0.76rem;
  line-height: 1.18;
  vertical-align: middle;
}

.season-team-summary-table th,
.season-team-summary-table td {
  border: 1px solid rgba(195, 203, 211, 0.16);
  border-radius: 0;
}

.season-player-table th,
.season-player-table td {
  border-top: 1px solid rgba(195, 203, 211, 0.14);
  border-bottom: 1px solid rgba(195, 203, 211, 0.14);
}

.season-team-summary-table th:first-child,
.season-team-summary-table td:first-child,
.season-player-table th:first-child,
.season-player-table td:first-child {
  border-left: 1px solid rgba(195, 203, 211, 0.14);
}

.season-player-table th:first-child,
.season-player-table td:first-child {
  border-radius: 6px 0 0 6px;
}

.season-team-summary-table th:last-child,
.season-team-summary-table td:last-child,
.season-player-table th:last-child,
.season-player-table td:last-child {
  border-right: 1px solid rgba(195, 203, 211, 0.14);
}

.season-player-table th:last-child,
.season-player-table td:last-child {
  border-radius: 0 6px 6px 0;
}

.season-team-summary-table thead th,
.season-player-table thead th {
  background: #18222c;
  color: var(--accent-strong);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.season-team-summary-table thead th:nth-child(-n+2) {
  text-align: left;
}

.season-team-summary-table thead th:nth-child(n+3) {
  text-align: right;
}

.season-team-summary-table thead th:nth-child(n+3) :where(.elo-sort-button) {
  justify-content: flex-end;
}

.season-team-summary-table tbody th,
.season-player-table tbody th {
  color: var(--text);
  font-weight: 800;
  text-align: left;
}

.season-team-summary-table tbody th a {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.season-team-summary-table td:nth-child(n+3),
.season-player-table td:nth-child(1),
.season-player-table td:nth-child(3),
.season-player-table td:nth-child(n+4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.season-team-summary-table td:nth-child(1) {
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

.season-team-summary-table td:nth-child(1),
.season-player-table td:nth-child(1),
.season-player-table td:nth-child(3),
.season-player-table td:nth-child(4),
.season-player-table td:nth-child(6),
.season-player-table td:nth-child(8) {
  color: var(--muted);
}

.season-team-summary-table td:nth-child(4),
.season-player-table td:nth-child(7) {
  color: #e8f7ff;
  font-weight: 800;
}

.season-summary-group-col {
  width: 2.5rem;
}

.season-summary-team-col {
  width: 4.65rem;
}

.season-summary-money-col {
  width: 7.15rem;
}

.season-summary-factor-col {
  width: 4.5rem;
}

.season-summary-count-col {
  width: 3.2rem;
}

.season-team-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
  align-items: start;
}

.season-team-detail {
  min-width: 0;
  border: 1px solid rgba(195, 203, 211, 0.18);
  border-radius: 8px;
  background: #0d151d;
  overflow: hidden;
}

.season-team-detail summary {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) max-content max-content max-content 0.8rem;
  gap: 0.42rem;
  align-items: center;
  min-height: 2.2rem;
  cursor: pointer;
  list-style: none;
  padding: 0.3rem 0.46rem;
}

.season-team-detail summary::-webkit-details-marker {
  display: none;
}

.season-team-detail summary::after {
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  justify-self: end;
  transform: rotate(45deg);
}

.season-team-detail[open] summary::after {
  transform: rotate(225deg);
}

.season-team-detail summary strong {
  color: #e8f7ff;
  font-size: 0.82rem;
  white-space: nowrap;
}

.season-team-detail summary small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.season-team-detail .season-player-wrap {
  border-top: 1px solid rgba(195, 203, 211, 0.12);
  padding: 0.22rem 0.34rem 0.36rem;
}

.season-player-table tbody th strong,
.season-player-table tbody th small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-player-table tbody th small {
  margin-top: 0.04rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
}

.season-player-status-missing td,
.season-player-status-missing th {
  opacity: 0.66;
}

.season-tabs {
  margin-top: 0.02rem;
}

.season-explanation-shell {
  max-width: 94rem;
}

.season-step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.season-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: stretch;
}

.season-method-list {
  display: grid;
  gap: 0.36rem;
  margin: 0;
  padding-left: 1.15rem;
}

.season-method-list li,
.season-panel-copy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.season-panel-copy {
  margin: 0;
}

.season-parameter-table {
  width: max-content;
  min-width: 0;
  border: 1px solid rgba(195, 203, 211, 0.2);
  border-collapse: collapse;
  border-spacing: 0;
}

.season-parameter-wrap,
.season-example-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.season-parameter-wrap {
  max-width: 43.6rem;
}

.season-example-wrap {
  max-width: 45.8rem;
}

.season-parameter-table th,
.season-parameter-table td,
.season-example-table th,
.season-example-table td {
  border: 1px solid rgba(195, 203, 211, 0.16);
  border-radius: 0;
  padding: 0.34rem 0.48rem;
}

.season-parameter-table th:first-child,
.season-parameter-table td:first-child,
.season-parameter-table th:last-child,
.season-parameter-table td:last-child,
.season-example-table th:first-child,
.season-example-table td:first-child,
.season-example-table th:last-child,
.season-example-table td:last-child {
  border-radius: 0;
}

.season-parameter-table thead th,
.season-example-table thead th {
  text-align: left;
}

.season-parameter-table tbody th,
.season-example-table tbody th {
  text-align: left;
}

.season-parameter-table td:first-child,
.season-example-table td:nth-child(2) {
  text-align: left;
}

.season-parameter-table th:nth-child(n+3),
.season-example-table th:nth-child(n+3) {
  text-align: right;
}

.season-param-pos-col {
  width: 3.1rem;
}

.season-param-group-col {
  width: 13.2rem;
}

.season-param-num-col {
  width: 5.3rem;
}

.season-param-amp-col {
  width: 6rem;
}

.season-parameter-table td:nth-child(n+3),
.season-example-table td:nth-child(n+3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.season-example-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.season-example-table {
  width: max-content;
  min-width: 0;
  border: 1px solid rgba(195, 203, 211, 0.2);
  border-collapse: collapse;
  border-spacing: 0;
}

.season-example-table .market-calculation-formula {
  text-align: left;
}

.season-example-name-col {
  width: 11.2rem;
}

.season-example-pos-col {
  width: 3.4rem;
}

.season-example-age-col {
  width: 4.4rem;
}

.season-example-money-col {
  width: 7.8rem;
}

.season-example-factor-col {
  width: 5.1rem;
}

.season-example-ratio-col {
  width: 6rem;
}

.season-example-formula {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: baseline;
  box-sizing: border-box;
  width: 100%;
  max-width: 27.7rem;
  border: 1px solid rgba(125, 183, 255, 0.28);
  border-radius: 7px;
  background: #0f171f;
  overflow-x: auto;
  padding: 0.42rem 0.56rem;
}

.season-example-formula span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.season-example-formula strong {
  color: #e8f7ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.season-team-value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.elo-shell {
  max-width: 100rem;
}

.elo-source-strip {
  display: grid;
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  gap: 0.45rem;
  max-width: 100%;
  margin-bottom: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.05rem;
}

.elo-source-item {
  display: grid;
  gap: 0.08rem;
  min-width: 7.4rem;
  max-width: 15rem;
  border: 1px solid rgba(195, 203, 211, 0.2);
  border-radius: 8px;
  background: #0f171f;
  color: var(--text);
  padding: 0.44rem 0.54rem;
  text-decoration: none;
}

.elo-source-item:hover {
  border-color: rgba(101, 230, 166, 0.38);
}

.elo-source-item span,
.elo-source-item small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.05;
}

.elo-source-item span {
  text-transform: uppercase;
}

.elo-source-item strong {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.16;
  white-space: nowrap;
}

.elo-ranking-filter {
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.35rem;
  min-width: 15.8rem;
  max-width: 19rem;
}

.elo-ranking-filter label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.elo-ranking-filter select {
  min-height: 1.58rem;
  width: 9.4rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.75);
  color: var(--text);
  padding: 0 0.24rem;
  font-size: 0.78rem;
}

.elo-ranking-filter button {
  grid-column: 2;
  min-height: 1.58rem;
  border: 1px solid rgba(101, 230, 166, 0.34);
  border-radius: 4px;
  background: rgba(12, 22, 20, 0.86);
  color: var(--accent-strong);
  padding: 0 0.34rem;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.elo-ranking-filter button:hover,
.elo-ranking-filter button:focus-visible {
  border-color: rgba(101, 230, 166, 0.68);
  color: var(--text);
}

.elo-odds-type-filter {
  align-content: center;
  gap: 0.18rem;
  min-width: 8.7rem;
  max-width: 9.8rem;
}

.elo-odds-type-filter label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.elo-odds-type-filter select {
  min-height: 1.58rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.75);
  color: var(--text);
  padding: 0 0.24rem;
  font-size: 0.74rem;
}

.elo-board {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
  min-width: 0;
}

.elo-grid {
  display: grid;
  grid-template-columns: minmax(20.75rem, max-content) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  min-width: 0;
}

.elo-board-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: end;
  justify-content: space-between;
  width: min(100%, 28rem);
  min-height: 3.35rem;
}

.elo-board-head h2,
.elo-board-head p {
  margin: 0;
}

.elo-board-head > p {
  max-width: 16rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.28;
}

.elo-board-head strong {
  color: var(--accent-strong);
}

.elo-table-action-row {
  display: flex;
  gap: 0.32rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 2.24rem;
  margin-bottom: -0.06rem;
  overflow-x: auto;
}

.elo-collapse-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.28rem;
  align-items: center;
  justify-content: center;
  min-height: 1.68rem;
  border: 1px solid rgba(101, 230, 166, 0.34);
  border-radius: 5px;
  background: rgba(12, 22, 20, 0.86);
  color: var(--accent-strong);
  padding: 0 0.46rem;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
}

.elo-collapse-toggle:hover,
.elo-collapse-toggle:focus-visible {
  border-color: rgba(101, 230, 166, 0.68);
  color: var(--text);
}

.elo-collapse-toggle:focus-visible {
  outline: 2px solid rgba(101, 230, 166, 0.66);
  outline-offset: 2px;
}

.elo-collapse-icon {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 0.5rem;
  transition: transform 0.16s ease;
}

.elo-collapse-icon::before {
  position: absolute;
  inset: 0.08rem 0.12rem 0.12rem 0.08rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

[data-elo-collapsed="true"] .elo-collapse-icon {
  transform: rotate(-90deg);
}

[data-elo-collapsed="true"] .elo-collapsible-content,
[data-elo-collapsed="true"] .elo-ratings-table tbody,
[data-elo-collapsed="true"] .elo-match-table tbody {
  display: none;
}

.elo-ratings-panel {
  align-content: start;
}

.elo-matches-panel,
.elo-matches-head {
  width: 100%;
}

.elo-matches-head > p {
  max-width: 20rem;
}

.elo-match-control-strip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.24rem;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(16, 26, 24, 0.78);
  overflow-x: auto;
  padding: 0.22rem 0.28rem;
}

.elo-match-action-row .elo-match-control-strip {
  max-width: calc(100% - 5.2rem);
}

.elo-match-filter-select {
  display: grid;
  grid-template-columns: auto minmax(3.2rem, 4.8rem);
  gap: 0.2rem;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.elo-match-team-select {
  grid-template-columns: auto minmax(7.4rem, 9.4rem);
}

.elo-match-round-select {
  grid-template-columns: auto minmax(6.4rem, 8.2rem);
}

.elo-match-filter-select span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.elo-match-filter-select select {
  min-height: 1.62rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.75);
  color: var(--text);
  padding: 0 0.24rem;
}

.elo-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.elo-ratings-table {
  width: max-content;
  min-width: 20.75rem;
  border-collapse: separate;
  border-spacing: 0 0.12rem;
  table-layout: fixed;
}

.elo-team-column {
  width: 4.35rem;
}

.elo-value-column {
  width: 4.65rem;
}

.elo-points-column {
  width: 5.4rem;
}

.elo-difference-column {
  width: 6.35rem;
}

.elo-ratings-table th,
.elo-ratings-table td {
  border-top: 1px solid rgba(195, 203, 211, 0.16);
  border-bottom: 1px solid rgba(195, 203, 211, 0.16);
  background: #0f171f;
  padding: 0.25rem 0.32rem;
  font-size: 0.74rem;
  line-height: 1.05;
  vertical-align: middle;
}

.elo-ratings-table th:first-child,
.elo-ratings-table td:first-child {
  border-left: 1px solid rgba(195, 203, 211, 0.16);
  border-radius: 6px 0 0 6px;
}

.elo-ratings-table th:last-child,
.elo-ratings-table td:last-child {
  border-right: 1px solid rgba(195, 203, 211, 0.16);
  border-radius: 0 6px 6px 0;
}

.elo-ratings-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #18222c;
  color: var(--accent-strong);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.elo-sort-button {
  position: relative;
  display: inline-flex;
  gap: 0.14rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.elo-ratings-table thead th:not(:first-child) .elo-sort-button,
.elo-match-table thead th:not(:first-child) .elo-sort-button,
.elo-group-table thead th:nth-child(3) .elo-sort-button,
.elo-group-table thead th:nth-child(4) .elo-sort-button {
  justify-content: flex-end;
}

.elo-sort-button:hover,
.elo-sort-button:focus-visible {
  color: var(--text);
}

.elo-sort-button:focus-visible {
  outline: 2px solid rgba(101, 230, 166, 0.66);
  outline-offset: 2px;
  border-radius: 4px;
}

.elo-sort-mark {
  position: relative;
  display: inline-block;
  width: 0.36rem;
  height: 0.54rem;
  flex: 0 0 0.36rem;
}

.elo-sort-mark::before,
.elo-sort-mark::after {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 0.15rem solid transparent;
  border-left: 0.15rem solid transparent;
  content: "";
  opacity: 0.34;
  transform: translateX(-50%);
}

.elo-sort-mark::before {
  top: 0;
  border-bottom: 0.2rem solid currentColor;
}

.elo-sort-mark::after {
  bottom: 0;
  border-top: 0.2rem solid currentColor;
}

.elo-sort-button[data-sort-active="true"][data-sort-direction="asc"] .elo-sort-mark::before,
.elo-sort-button[data-sort-active="true"][data-sort-direction="desc"] .elo-sort-mark::after,
.elo-sort-button[data-match-sort-active="true"][data-match-sort-direction="asc"] .elo-sort-mark::before,
.elo-sort-button[data-match-sort-active="true"][data-match-sort-direction="desc"] .elo-sort-mark::after,
.elo-sort-button[data-group-sort-active="true"][data-group-sort-direction="asc"] .elo-sort-mark::before,
.elo-sort-button[data-group-sort-active="true"][data-group-sort-direction="desc"] .elo-sort-mark::after {
  opacity: 1;
}

.elo-team-cell {
  font-weight: 700;
}

.elo-team-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 4rem;
  color: var(--text);
  text-decoration: none;
}

.elo-team-link .team-badge {
  width: 100%;
  margin: 0;
}

.elo-team-link .team-flag {
  width: 1rem;
}

.elo-value-cell {
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.elo-value-cell strong,
.elo-value-cell span {
  display: block;
}

.elo-value-cell strong {
  color: #d9e1e6;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}

.elo-value-cell span {
  margin-top: 0.05rem;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 700;
  line-height: 1;
}

.elo-difference-positive strong {
  color: #65e6a6;
}

.elo-difference-negative strong {
  color: #ff8b7b;
}

.elo-difference-flat strong {
  color: var(--text);
}

.elo-match-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.elo-match-table {
  width: max-content;
  min-width: 39.4rem;
  border-collapse: separate;
  border-spacing: 0 0.12rem;
  table-layout: fixed;
}

.elo-match-column {
  width: 11.7rem;
}

.elo-match-value-column {
  width: 3.72rem;
}

.elo-match-points-column {
  width: 4.85rem;
}

.elo-match-difference-column {
  width: 4.68rem;
}

.elo-match-table th,
.elo-match-table td {
  border-top: 1px solid rgba(195, 203, 211, 0.16);
  border-bottom: 1px solid rgba(195, 203, 211, 0.16);
  background: #0f171f;
  padding: 0.25rem 0.32rem;
  font-size: 0.74rem;
  line-height: 1.05;
  vertical-align: middle;
}

.elo-match-table th:first-child,
.elo-match-table td:first-child {
  border-left: 1px solid rgba(195, 203, 211, 0.16);
  border-radius: 6px 0 0 6px;
}

.elo-match-table th:last-child,
.elo-match-table td:last-child {
  border-right: 1px solid rgba(195, 203, 211, 0.16);
  border-radius: 0 6px 6px 0;
}

.elo-match-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #18222c;
  color: var(--accent-strong);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.elo-match-table thead th:not(:first-child),
.elo-match-number-cell {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.elo-match-cell {
  min-width: 0;
  font-weight: 700;
  text-align: left;
}

.elo-match-link {
  display: inline-flex;
  gap: 0.14rem;
  align-items: center;
  width: 11.15rem;
  max-width: 100%;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.elo-match-link:hover .team-badge-code,
.elo-match-link:focus-visible .team-badge-code {
  color: var(--accent-strong);
}

.elo-match-link:focus-visible {
  outline: 2px solid rgba(101, 230, 166, 0.66);
  outline-offset: 2px;
  border-radius: 4px;
}

.elo-match-link .inline-match-number {
  width: 1.52rem;
}

.elo-match-link .inline-stage-code {
  width: 1.42rem;
}

.elo-match-link :where(.match-pair-tiny) {
  --match-slot-width: 3.35rem;
  flex: 1 1 auto;
  column-gap: 0.14rem;
  overflow: hidden;
}

.elo-match-link :where(.team-badge-tiny) .team-flag {
  width: 1rem;
  height: 1rem;
}

.elo-match-link :where(.team-placeholder-badge-tiny) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.elo-match-number-cell {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.elo-match-number-cell strong {
  font-weight: 750;
}

.elo-match-filter-empty {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(16, 26, 24, 0.72);
  color: var(--muted);
  padding: 0.32rem 0.44rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.elo-odds-shell {
  max-width: 92rem;
}

.elo-odds-board {
  width: 100%;
  overflow-x: hidden;
}

.elo-odds-head {
  width: min(100%, 36rem);
}

.elo-odds-head > p {
  max-width: 13rem;
}

.elo-odds-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  contain: inline-size;
  overflow-x: auto;
}

.elo-odds-table {
  width: max-content;
  min-width: 72.85rem;
  border-collapse: separate;
  border-spacing: 0 0.12rem;
  table-layout: fixed;
}

.elo-odds-match-column {
  width: 11.7rem;
}

.elo-odds-value-column {
  width: 2.54rem;
}

.elo-odds-table th,
.elo-odds-table td {
  position: relative;
  border-top: 1px solid rgba(195, 203, 211, 0.16);
  border-bottom: 1px solid rgba(195, 203, 211, 0.16);
  background: #0f171f;
  padding: 0.24rem 0.24rem;
  font-size: 0.74rem;
  line-height: 1.05;
  vertical-align: middle;
}

.elo-odds-table th:first-child,
.elo-odds-table td:first-child {
  border-left: 1px solid rgba(195, 203, 211, 0.16);
  border-radius: 6px 0 0 6px;
}

.elo-odds-table th:last-child,
.elo-odds-table td:last-child {
  border-right: 1px solid rgba(195, 203, 211, 0.16);
  border-radius: 0 6px 6px 0;
}

.elo-odds-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #18222c;
  color: var(--accent-strong);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.elo-odds-table thead tr:first-child th {
  background: #1c2932;
}

.elo-odds-model-head {
  text-align: center;
}

.elo-odds-market-head {
  color: #f3d99b;
}

.elo-odds-hybrid-head {
  color: #b8e2ff;
}

.elo-odds-selection-head,
.elo-odds-value-cell {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.elo-odds-table[data-elo-odds-type="h0"] .elo-odds-selection-head {
  font-size: 0.52rem;
}

.elo-odds-value-cell {
  color: #d9e1e6;
  font-weight: 750;
  white-space: nowrap;
}

.elo-odds-value-cell.elo-odds-market-lineup {
  color: #9df2b5;
}

.elo-odds-value-cell.elo-odds-market-squad {
  color: #ffb15c;
}

.elo-odds-warning-cell {
  box-shadow: inset 0 -1px 0 rgba(255, 207, 102, 0.72);
}

.elo-odds-section-start {
  border-left: 0 !important;
}

.elo-odds-section-start::before {
  content: "";
  position: absolute;
  top: -0.08rem;
  bottom: -0.08rem;
  left: -0.06rem;
  width: 1px;
  background: rgba(125, 183, 255, 0.42);
  pointer-events: none;
  z-index: 2;
}

.elo-group-panel {
  width: 100%;
  margin-top: 0.9rem;
}

.elo-group-panel .elo-board-head {
  width: min(100%, 36rem);
}

.elo-group-panel .elo-board-head > p {
  max-width: 18rem;
}

.elo-group-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.elo-group-table {
  width: max-content;
  min-width: 28.45rem;
  border-collapse: separate;
  border-spacing: 0 0.12rem;
  table-layout: fixed;
}

.elo-group-code-column {
  width: 2.35rem;
}

.elo-group-teams-column {
  width: 15.5rem;
}

.elo-group-value-column {
  width: 4.65rem;
}

.elo-group-distance-column {
  width: 5.95rem;
}

.elo-group-table th,
.elo-group-table td {
  border-top: 1px solid rgba(195, 203, 211, 0.16);
  border-bottom: 1px solid rgba(195, 203, 211, 0.16);
  background: #0f171f;
  padding: 0.25rem 0.32rem;
  font-size: 0.74rem;
  line-height: 1.05;
  vertical-align: middle;
}

.elo-group-table th:first-child,
.elo-group-table td:first-child {
  border-left: 1px solid rgba(195, 203, 211, 0.16);
  border-radius: 6px 0 0 6px;
}

.elo-group-table th:last-child,
.elo-group-table td:last-child {
  border-right: 1px solid rgba(195, 203, 211, 0.16);
  border-radius: 0 6px 6px 0;
}

.elo-group-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #18222c;
  color: var(--accent-strong);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.elo-group-table thead th:not(:first-child),
.elo-group-table .elo-value-cell {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.elo-group-table thead th:nth-child(2),
.elo-group-teams-cell {
  text-align: left;
}

.elo-group-code-cell span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.32rem;
  min-height: 1.26rem;
  border: 1px solid rgba(101, 230, 166, 0.28);
  border-radius: 4px;
  background: rgba(101, 230, 166, 0.08);
  color: var(--accent-strong);
  font-weight: 850;
}

.elo-group-team-strip {
  display: grid;
  grid-template-columns: repeat(4, 3.62rem);
  gap: 0.14rem;
  align-items: center;
}

.elo-group-team-link {
  display: inline-flex;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.elo-group-team-link:hover .team-badge-code,
.elo-group-team-link:focus-visible .team-badge-code {
  color: var(--accent-strong);
}

.elo-group-team-link:focus-visible {
  outline: 2px solid rgba(101, 230, 166, 0.66);
  outline-offset: 2px;
  border-radius: 4px;
}

.elo-group-team-link .team-badge {
  width: 100%;
  margin: 0;
}

.elo-group-team-link .team-flag {
  width: 1rem;
}

.action-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.status-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.status-card {
  min-height: 10rem;
  padding: 0.85rem;
}

.status-card-head {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.status-card-head h2 {
  margin: 0;
}

.summary-list,
.role-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.role-list {
  grid-template-columns: repeat(3, minmax(0, 12rem));
}

.summary-list div,
.role-list div {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.45);
  padding: 0.65rem;
}

.summary-list dt,
.role-list dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.summary-list dd,
.role-list dd {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.status-table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
  color: var(--text);
}

.status-table th,
.status-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.62rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.status-table thead th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.user-table-wrap,
.user-recent-wrap {
  margin-top: 0.35rem;
}

.user-admin-table,
.user-recent-table {
  width: 100%;
  min-width: 58rem;
  border-collapse: collapse;
  color: var(--text);
  font-size: 0.82rem;
}

.user-recent-table {
  min-width: 36rem;
}

.user-admin-table th,
.user-admin-table td,
.user-recent-table th,
.user-recent-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.42rem 0.46rem;
  text-align: left;
  vertical-align: top;
}

.user-admin-table thead th,
.user-recent-table thead th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.user-admin-table th:first-child,
.user-admin-table td:first-child {
  width: 10.5rem;
}

.user-admin-table th:nth-child(2),
.user-admin-table td:nth-child(2),
.user-admin-table th:nth-child(3),
.user-admin-table td:nth-child(3),
.user-admin-table th:nth-child(9),
.user-admin-table td:nth-child(9) {
  width: 6.2rem;
}

.user-admin-table th:nth-child(4),
.user-admin-table td:nth-child(4),
.user-admin-table th:nth-child(5),
.user-admin-table td:nth-child(5),
.user-admin-table th:nth-child(6),
.user-admin-table td:nth-child(6) {
  width: 4rem;
  text-align: right;
}

.user-admin-table th:nth-child(7),
.user-admin-table td:nth-child(7) {
  width: 8.8rem;
}

.user-name {
  display: block;
  font-weight: 800;
}

.user-admin-table small {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.user-top-pages {
  display: grid;
  gap: 0.12rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.user-top-pages li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.2rem;
  gap: 0.35rem;
  align-items: center;
}

.user-top-pages span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-top-pages strong {
  text-align: right;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 0.5rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-ok {
  border-color: rgba(114, 199, 119, 0.4);
  background: rgba(114, 199, 119, 0.14);
}

.status-warning,
.status-pending {
  border-color: rgba(215, 239, 118, 0.35);
  background: rgba(215, 239, 118, 0.09);
}

.status-error {
  border-color: rgba(255, 139, 123, 0.4);
  background: rgba(255, 139, 123, 0.12);
}

.odds-shell {
  display: grid;
  grid-template-columns: max-content 30rem;
  gap: 0 0.3rem;
  align-items: start;
  justify-content: start;
  width: min(1620px, calc(100% - 1.4rem));
}

.odds-shell > .page-heading,
.odds-shell > .notice,
.odds-shell > .error,
.odds-shell > .odds-control-strip,
.odds-shell > .info-card {
  grid-column: 1 / -1;
}

.odds-analysis-layout {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: max-content 30rem;
  gap: 0 0.3rem;
  align-items: start;
  justify-content: start;
  min-width: 0;
}

.knockout-results-shell {
  width: min(1500px, calc(100% - 1.4rem));
}

.knockout-result-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  gap: 0.55rem;
  align-items: stretch;
  margin-bottom: 0.75rem;
}

.knockout-result-summary .summary-list {
  margin: 0;
}

.knockout-result-summary > .action-note {
  display: flex;
  align-items: center;
  margin: 0;
  border: 1px solid rgba(244, 189, 99, 0.26);
  border-radius: 5px;
  background: rgba(244, 189, 99, 0.08);
  padding: 0.55rem;
}

.knockout-result-round {
  margin-bottom: 0.8rem;
}

.knockout-result-round h2 {
  margin: 0 0 0.42rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.knockout-result-grid {
  display: grid;
  gap: 0.34rem;
}

.knockout-result-row {
  display: grid;
  grid-template-columns: minmax(16rem, 1.1fr) minmax(27rem, 1.6fr) minmax(14rem, 0.8fr);
  gap: 0.45rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(16, 26, 24, 0.78);
  padding: 0.42rem;
}

.knockout-result-match {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.24rem 0.45rem;
  align-items: center;
  min-width: 0;
}

.knockout-result-match small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.72rem;
}

.knockout-result-form {
  display: grid;
  grid-template-columns: minmax(3.6rem, 0.8fr) auto minmax(3.6rem, 0.8fr) minmax(4.4rem, 0.55fr) minmax(3.2rem, 0.42fr) auto minmax(3.2rem, 0.42fr) minmax(6.2rem, 0.7fr) minmax(5.6rem, 0.6fr);
  gap: 0.3rem;
  align-items: end;
  min-width: 0;
}

.knockout-result-form label {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.knockout-result-form label span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.knockout-result-form input,
.knockout-result-form select {
  min-height: 1.9rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.75);
  color: var(--text);
  padding: 0 0.42rem;
}

.knockout-result-form input {
  text-align: center;
  font-weight: 800;
}

.knockout-result-form .score-divider {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
}

.knockout-result-form .score-divider-penalty {
  font-size: 0.82rem;
}

.knockout-confirm-toggle {
  display: flex !important;
  grid-template-columns: none;
  gap: 0.3rem !important;
  align-items: center;
  min-height: 1.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.48);
  padding: 0 0.38rem;
}

.knockout-confirm-toggle input {
  width: auto;
  min-height: 0;
}

.knockout-result-form button {
  min-height: 1.9rem;
  padding-inline: 0.5rem;
}

.knockout-result-row > .action-note {
  margin: 0;
  font-size: 0.78rem;
}

.odds-control-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  justify-self: start;
  width: min(50rem, 100%);
  max-width: 100%;
  gap: 0.32rem;
  align-items: center;
  margin-bottom: 0.58rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(16, 26, 24, 0.78);
  padding: 0.34rem;
}

.odds-filter-select {
  display: grid;
  grid-template-columns: auto minmax(3.6rem, 4.8rem);
  gap: 0.24rem;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.odds-market-select {
  grid-template-columns: auto minmax(9rem, 10.8rem);
}

.odds-filter-select span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.odds-filter-select select {
  min-height: 1.78rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.75);
  color: var(--text);
  padding: 0 0.34rem;
}

.odds-filter-reset {
  min-height: 1.9rem;
  border-color: var(--line);
  background: rgba(7, 17, 15, 0.75);
  color: var(--muted);
  padding: 0 0.62rem;
  white-space: nowrap;
}

.odds-filter-reset:hover,
.odds-filter-reset:focus-visible {
  background: rgba(31, 191, 117, 0.16);
  color: var(--text);
}

.odds-history-panel {
  display: grid;
  grid-column: 2;
  order: 11;
  gap: 0.36rem;
  align-items: start;
  width: min(100%, 30rem);
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(84, 214, 166, 0.22);
  border-radius: 5px;
  background: rgba(11, 24, 21, 0.72);
  padding: 0.42rem;
}

.odds-history-control-strip {
  display: grid;
  grid-template-columns: max-content;
  gap: 0.22rem;
  align-items: start;
  min-width: 0;
}

.odds-history-control-strip .odds-filter-select {
  width: max-content;
  grid-template-columns: 3.45rem minmax(5rem, 7.5rem);
}

.odds-history-match-select {
  grid-template-columns: 3.45rem minmax(12rem, 14rem);
}

.odds-history-control-strip .odds-market-select {
  grid-template-columns: 3.45rem minmax(9.8rem, 11.2rem);
}

.odds-history-display-select {
  grid-template-columns: 3.45rem minmax(8rem, 9.5rem);
}

.odds-history-selected {
  min-height: 1.18rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.odds-history-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.42rem;
  align-items: start;
  min-width: 0;
}

.odds-history-chart-card {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(7, 17, 15, 0.58);
  padding: 0.36rem;
}

.odds-history-chart-head {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
}

.odds-history-chart-head h2 {
  margin: 0;
  color: var(--accent-cool);
  font-size: 0.82rem;
  line-height: 1.1;
}

.odds-history-chart-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.odds-history-plot-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.odds-history-svg {
  display: block;
  width: 100%;
  min-width: 25rem;
  height: 12rem;
}

.odds-history-axis,
.odds-history-grid {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.odds-history-grid {
  stroke-dasharray: 3 5;
}

.odds-history-axis-label,
.odds-history-y-label {
  fill: var(--muted);
  font-size: 0.62rem;
}

.odds-history-fairness-label {
  fill: #f7c873;
  font-size: 0.6rem;
  font-weight: 800;
}

.odds-history-end-label {
  fill: #f4f7f8;
  stroke: rgba(7, 17, 15, 0.9);
  stroke-linejoin: round;
  stroke-width: 3px;
  font-size: 0.68rem;
  font-weight: 900;
  paint-order: stroke fill;
}

.odds-history-line {
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.odds-history-point {
  stroke: rgba(7, 17, 15, 0.88);
  stroke-width: 1.4;
}

.odds-history-point-cross-line {
  stroke: #ff8b7b;
  stroke-width: 2.15;
  stroke-linecap: round;
}

.odds-history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.26rem 0.44rem;
  align-items: center;
  min-height: 1.15rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.odds-history-legend-item {
  display: inline-grid;
  grid-template-columns: 0.82rem auto;
  gap: 0.2rem;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.odds-history-legend-swatch {
  width: 0.72rem;
  height: 0.18rem;
  border-radius: 999px;
}

.odds-history-legend-note {
  color: #ffd0ca;
  font-weight: 800;
}

.odds-history-legend-cross {
  position: relative;
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
}

.odds-history-legend-cross::before,
.odds-history-legend-cross::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0.12rem;
  border-radius: 999px;
  background: #ff8b7b;
}

.odds-history-legend-cross::before {
  transform: rotate(45deg);
}

.odds-history-legend-cross::after {
  transform: rotate(-45deg);
}

.odds-history-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.odds-workboard {
  display: grid;
  grid-column: 1;
  order: 10;
  justify-items: start;
  gap: 0.22rem;
}

.odds-filter-empty {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(16, 26, 24, 0.72);
  color: var(--muted);
  padding: 0.32rem 0.44rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.odds-work-row {
  display: grid;
  grid-template-columns: max-content max-content;
  grid-template-rows: auto auto;
  gap: 0.06rem 0.18rem;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(16, 26, 24, 0.82);
  padding: 0.22rem 0.24rem;
}

.odds-work-row .odds-match-main {
  display: contents;
  min-width: 0;
}

.odds-work-row .odds-match-main h2,
.odds-work-row .odds-match-main p {
  margin: 0;
}

.odds-work-row .odds-match-main h2 {
  grid-column: 1;
  grid-row: 1;
  flex-wrap: nowrap;
  gap: 0.14rem;
  max-width: 12.4rem;
  font-size: 0.86rem;
  line-height: 1.05;
}

.odds-match-meta-line {
  display: block;
  grid-column: 1;
  grid-row: 2;
  max-width: 12.4rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.odds-work-row :where(.match-pair-compact) {
  --match-slot-width: 3.48rem;
  grid-template-columns: minmax(var(--match-slot-width), 4.25rem) auto minmax(var(--match-slot-width), 4.25rem);
  column-gap: 0.18rem;
  overflow: hidden;
}

.odds-work-row :where(.team-placeholder-badge-compact) {
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.odds-market-band {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  width: auto;
}

.odds-market-line {
  display: grid;
  grid-template-columns: 4.55rem max-content;
  gap: 0.16rem;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.52);
  padding: 0.12rem 0.14rem;
}

.odds-market-line h3 {
  display: inline-flex;
  align-items: center;
  margin: 0;
  width: 4.55rem;
  min-width: 0;
  color: var(--accent-cool);
  font-size: 0.68rem;
  line-height: 1.05;
  white-space: nowrap;
}

.odds-selection-strip {
  display: grid;
  grid-template-columns: repeat(3, 2.62rem);
  gap: 0.12rem;
  min-width: 0;
}

.odds-selection-count-2 {
  grid-template-columns: repeat(3, 2.62rem);
}

.odds-selection-count-3 {
  grid-template-columns: repeat(3, 2.62rem);
}

.odds-tick {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.1rem;
  align-items: center;
  width: 2.62rem;
  min-width: 0;
  min-height: 1.24rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(7, 17, 15, 0.62);
  padding: 0.03rem 0.12rem;
  font-variant-numeric: tabular-nums;
}

.odds-tick span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

.odds-tick strong {
  color: var(--text);
  min-width: 1.7rem;
  font-size: 0.8rem;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.odds-tick strong[hidden] {
  display: none !important;
}

.odds-tick strong.has-odd {
  color: var(--text);
}

.odds-tick strong.missing-odd {
  color: var(--muted);
}

.odds-tick strong.bet365-odd {
  color: #ff8b7b;
}

.odds-bookmaker-stack {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.odds-bookmaker-line {
  display: grid;
  grid-template-columns: 1.75rem max-content;
  gap: 0.12rem;
  align-items: center;
  min-width: 0;
}

.odds-bookmaker-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.22rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(16, 26, 24, 0.72);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.odds-bookmaker-line[data-odds-bookmaker="bet365"] .odds-bookmaker-label {
  border-color: rgba(255, 139, 123, 0.44);
  background: rgba(80, 25, 23, 0.54);
  color: #ffd0ca;
}

.odds-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.odds-summary-card {
  min-height: 4.8rem;
  display: grid;
  gap: 0.35rem;
  align-content: center;
}

.odds-summary-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.odds-summary-card strong {
  font-size: 1.45rem;
}

.odds-market-card {
  min-height: 0;
  margin-bottom: 1rem;
}

.odds-market-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.odds-market-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid rgba(114, 199, 119, 0.32);
  border-radius: 6px;
  background: rgba(7, 17, 15, 0.45);
  color: var(--muted);
  padding: 0 0.65rem;
  font-weight: 800;
}

.odds-list {
  display: grid;
  gap: 0.55rem;
}

.odds-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(16rem, 1fr) minmax(22rem, 0.95fr);
  gap: 0.75rem;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(16, 26, 24, 0.86);
  padding: 0.75rem;
}

.odds-match-main {
  display: grid;
  gap: 0.35rem;
  align-content: center;
}

.odds-match-main h2,
.odds-match-main p {
  margin: 0;
}

.odds-match-main p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  color: var(--muted);
}

.odds-quote-panel {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.odds-quote-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.odds-quote-head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.odds-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.odds-quote-cell {
  display: grid;
  gap: 0.2rem;
  min-height: 5.35rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.45);
  padding: 0.55rem;
}

.odds-quote-cell span,
.odds-quote-cell small {
  color: var(--muted);
}

.odds-quote-cell strong {
  font-size: 1.25rem;
}

.team-badge,
.match-pair,
.team-placeholder-badge {
  min-width: 0;
}

.team-badge {
  --team-code-width: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  max-width: 100%;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

.team-flag {
  width: 1.24rem;
  height: 1.24rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: var(--panel-strong);
  object-fit: cover;
}

.team-flag-empty {
  display: inline-block;
  background:
    linear-gradient(135deg, rgba(215, 239, 118, 0.32), transparent),
    var(--panel-strong);
}

.team-badge-code {
  display: inline-flex;
  align-items: center;
  align-self: center;
  overflow: hidden;
  color: #f4f7f8;
  font-size: 0.9rem;
  font-weight: 700;
  flex: 0 0 var(--team-code-width);
  width: var(--team-code-width);
  line-height: 1.05;
  min-height: 1em;
  text-rendering: geometricPrecision;
  text-overflow: ellipsis;
}

.team-badge-tiny {
  --team-code-width: 1.62rem;
  gap: 0.22rem;
}

.team-badge-tiny .team-flag {
  width: 1.02rem;
  height: 1.02rem;
}

.team-badge-tiny .team-badge-code {
  font-size: 0.78rem;
}

.team-badge-compact .team-flag {
  width: 1.18rem;
  height: 1.18rem;
}

.team-badge-compact {
  --team-code-width: 1.82rem;
}

.team-badge-compact .team-badge-code {
  font-size: 0.86rem;
  font-weight: 700;
}

.team-badge-detail {
  --team-code-width: auto;
  gap: 0.55rem;
}

.team-badge-detail .team-flag {
  width: 2.35rem;
  height: 2.35rem;
  border-width: 2px;
}

.team-badge-detail .team-badge-code {
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  flex-basis: auto;
  width: auto;
}

.match-detail-heading .team-badge-detail {
  gap: 0.38rem;
}

.match-detail-heading .team-badge-detail .team-flag {
  width: 1.55rem;
  height: 1.55rem;
  border-width: 1px;
}

.match-detail-heading .team-badge-detail .team-badge-code {
  font-size: clamp(1.28rem, 1.9vw, 1.72rem);
  font-weight: 700;
}

.match-detail-heading .match-pair {
  flex-wrap: nowrap;
}

.match-detail-heading .match-pair-separator {
  font-weight: 700;
}

.team-badge-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.team-badge-link:hover .team-badge-code {
  color: var(--accent-strong);
}

.match-pair {
  --match-slot-width: 4.6rem;
  display: inline-grid;
  grid-template-columns: minmax(var(--match-slot-width), max-content) auto minmax(var(--match-slot-width), max-content);
  column-gap: 0.36rem;
  align-items: center;
  max-width: 100%;
}

.match-pair-tiny {
  --match-slot-width: 3.65rem;
}

.match-pair-compact {
  --match-slot-width: 4.15rem;
}

.match-pair-detail {
  --match-slot-width: clamp(4.65rem, 8vw, 6.4rem);
}

.match-main .match-pair {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.match-pair > .team-badge,
.match-pair > .team-placeholder-badge {
  justify-content: flex-start;
  width: 100%;
}

.match-pair-separator {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.team-placeholder-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border: 1px solid rgba(215, 239, 118, 0.22);
  border-radius: 4px;
  background: rgba(215, 239, 118, 0.08);
  color: var(--accent-strong);
  padding: 0 0.42rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.05;
  white-space: normal;
}

.team-placeholder-badge-compact {
  min-height: 1.08rem;
  padding: 0 0.26rem;
  font-size: 0.68rem;
  white-space: nowrap;
}

.team-placeholder-badge-tiny {
  min-height: 1.35rem;
  font-size: 0.72rem;
}

.team-placeholder-badge-detail {
  min-height: 2.2rem;
  padding: 0 0.62rem;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.odds-quote-cell.has-odd {
  border-color: rgba(114, 199, 119, 0.35);
}

.odds-quote-cell.missing-odd strong {
  color: var(--muted);
}

.eyebrow,
.flyout-title,
.filter-field label,
.status-pill,
.data-area-status,
.data-status-label,
.match-status,
.match-meta,
.odds-market-label,
.odds-selection-label,
.standing-table th {
  color: var(--muted);
  font-weight: 700;
}

.eyebrow,
.filter-field label,
.data-status-label,
.match-meta,
.odds-market-label,
.odds-selection-label,
.standing-table th {
  font-size: 0.86rem;
  line-height: 1.25;
}

.muted-text,
.info-card p,
.page-heading p,
.login-copy,
.user-label,
.odds-empty,
.odds-history-meta {
  color: var(--muted);
}

.info-card,
.stat-card,
.group-card,
.match-card,
.admin-card,
.odds-match-card {
  border-color: var(--line);
  background: var(--panel);
}

.team-placeholder-badge,
.status-pill,
.data-area-status {
  font-weight: 700;
}

@media (max-width: 1520px) {
  .odds-shell {
    grid-template-columns: 1fr;
  }

  .odds-analysis-layout {
    grid-template-columns: 1fr;
  }

  .odds-history-panel {
    grid-column: 1;
    order: 10;
  }

  .odds-workboard {
    grid-column: 1;
    order: 11;
  }
}

@media (max-width: 1040px) {
  .algo-source-strip,
  .elo-source-strip,
  .elo-grid,
  .market-step-grid,
  .market-factor-grid,
  .season-method-grid,
  .season-team-value-grid,
  .algo-summary-grid,
  .algo-step-grid,
  .algo-context-grid,
  .algo-work-grid {
    grid-template-columns: 1fr;
  }

  .elo-match-control-strip {
    flex-wrap: nowrap;
    width: max-content;
    overflow-x: auto;
  }

  .algo-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .season-example-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .season-team-panels {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1040px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 13rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.38rem 0.6rem;
    padding: 0.55rem 0.65rem;
  }

  .app-header.nav-open {
    align-items: start;
    max-height: calc(100vh - 1px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .brand-cluster {
    flex-wrap: wrap;
    row-gap: 0.24rem;
  }

  .next-match-countdown {
    min-height: 1.82rem;
    padding: 0.12rem 0.36rem;
  }

  .nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 0.28rem;
    justify-content: stretch;
    overflow-x: visible;
    width: 100%;
    margin-top: 0.2rem;
    border-radius: 8px;
    padding: 0.38rem;
  }

  .app-header.nav-open .main-nav {
    display: grid;
  }

  .nav-item {
    width: 100%;
  }

  .nav-primary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.28rem;
  }

  .nav-link {
    width: 100%;
    grid-template-columns: 1.3rem minmax(0, 1fr);
    grid-template-rows: 1fr;
    gap: 0.5rem;
    justify-content: stretch;
    min-height: 2.25rem;
    padding: 0.28rem 0.58rem;
    text-align: left;
  }

  .nav-icon {
    margin: 0;
  }

  .nav-label {
    overflow: hidden;
    font-size: 0.84rem;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-submenu-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    min-height: 2.25rem;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(20, 34, 31, 0.95);
    color: var(--text);
    padding: 0;
  }

  .nav-submenu-toggle:hover {
    background: var(--panel-soft);
  }

  .nav-submenu-toggle::before {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-0.12rem);
    transition: transform 140ms ease;
  }

  .nav-item.flyout-open .nav-submenu-toggle::before {
    transform: rotate(225deg) translate(-0.08rem, -0.08rem);
  }

  .nav-flyout,
  .nav-flyout-teams {
    position: static;
    width: 100%;
    max-height: 0;
    padding-top: 0;
    opacity: 1;
    overflow: hidden;
    pointer-events: auto;
    transform: none;
    transition: max-height 180ms ease, margin-top 180ms ease;
    visibility: visible;
  }

  .nav-item:hover .nav-flyout,
  .nav-item:focus-within .nav-flyout {
    max-height: 0;
    transform: none;
  }

  .nav-item.flyout-open .nav-flyout {
    max-height: 58vh;
    margin-top: 0.4rem;
    transform: none;
  }

  .nav-flyout::before {
    display: none;
  }

  .flyout-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: min(52vh, 30rem);
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.55rem;
  }

  .flyout-grid,
  .flyout-round-grid,
  .flyout-history-grid,
  .flyout-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flyout-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    width: 100%;
    min-width: 0;
  }

  .flyout-team-list {
    width: 100%;
    min-width: 0;
  }

  .flyout-link,
  .flyout-group-link {
    min-height: 1.85rem;
    padding: 0.2rem 0.45rem;
  }

  .flyout-team-group {
    padding: 0.16rem;
  }

  .flyout-team-link {
    min-height: 1.5rem;
  }

  .flyout-team-group-code,
  .dashboard-phase-button {
    min-width: 1.5rem;
    min-height: 1.5rem;
  }

  .team-group-directory {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .team-group-block {
    width: 100%;
  }

  .team-group-section header {
    grid-template-columns: 1.72rem minmax(0, 1fr);
  }

  .team-group-teamline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .logout-form {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .app-header.nav-open .logout-form {
    display: inline-flex;
  }

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

  .dashboard-next-card,
  .dashboard-results-card {
    grid-column: span 1;
  }

  .dashboard-scorer-card {
    grid-column: 1 / -1;
  }

  .dashboard-market-card {
    grid-column: 1 / -1;
  }

  .schedule-filter-form,
  .match-row,
  .odds-shell,
  .odds-control-strip,
  .odds-history-charts,
  .elo-match-control-strip,
  .odds-work-row,
  .knockout-result-summary,
  .knockout-result-row,
  .knockout-bracket-double,
  .group-grid,
  .group-layout,
  .third-place-board,
  .all-tables-grid,
  .data-status-strip,
  .team-directory,
  .match-detail-grid,
  .match-section-grid,
  .team-detail-grid,
  .team-detail-stat-grid,
  .match-summary-section,
  .lineup-pitch-grid {
    grid-template-columns: 1fr;
  }

  .match-summary-section-has-shootout {
    grid-template-columns: minmax(20rem, 24rem) minmax(20rem, 24rem) minmax(15.3rem, 18.45rem);
  }

  .team-detail-overview-grid {
    grid-template-columns: 1fr;
  }

  .schedule-filter-actions,
  .schedule-section-head,
  .match-events-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .group-card-head,
  .third-place-rules-head,
  .data-status-strip div {
    align-items: flex-start;
    flex-direction: column;
  }

  .third-place-rules-grid {
    grid-template-columns: 1fr;
  }

  .third-place-card,
  .third-place-rules,
  .third-place-simulation {
    width: 100%;
    max-width: 100%;
  }

  .group-table-card,
  .group-xg-card {
    width: 100%;
    max-width: 100%;
  }

  .team-group-stat-card,
  .team-group-stat-card-summary {
    width: 100%;
  }

  .schedule-state-badge {
    justify-self: start;
  }

  .knockout-tree-half {
    min-width: 0;
  }

  .knockout-bracket-double {
    grid-template-columns: minmax(29rem, 1fr) minmax(7.4rem, 0.34fr) minmax(29rem, 1fr);
    overflow-x: auto;
  }

  .result-slot {
    justify-self: start;
  }

  .detail-list div,
  .score-panel {
    grid-template-columns: 1fr;
  }

  .match-decision-panel {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .match-decision-panel dd {
    white-space: normal;
  }

  .match-pair-compact {
    --match-slot-width: 4.05rem;
  }

  .match-pair-detail {
    --match-slot-width: 4.35rem;
  }

  .team-badge-detail .team-flag {
    width: 1.85rem;
    height: 1.85rem;
  }

  .match-detail-heading .team-badge-detail .team-flag {
    width: 1.22rem;
    height: 1.22rem;
  }

  .match-detail-heading .team-badge-detail .team-badge-code {
    font-size: 1.2rem;
  }

  .score-panel div:first-child {
    justify-content: flex-start;
    text-align: left;
  }

  .score-panel div:last-child {
    justify-content: flex-start;
  }

  .match-events-table {
    font-size: 0.74rem;
  }

  .match-events-table th,
  .match-events-table td {
    padding-inline: 0.28rem;
  }

  .match-events-table th:nth-child(2),
  .match-events-table td:nth-child(2) {
    width: 3.35rem;
  }

  .match-event-row-both strong {
    display: block;
    margin-left: 0;
    margin-top: 0.12rem;
  }

  .squad-section-head {
    padding-inline: 0.24rem;
  }

  .squad-section-note {
    margin-inline: 0.24rem;
  }

  .market-values-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-date-form {
    width: 100%;
  }

  .market-date-select {
    flex: 1 1 auto;
    width: auto;
  }

  .market-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-player-list {
    width: 100%;
  }

  .market-player-row {
    grid-template-columns: 1.45rem minmax(0, 1fr) 4.15rem 2.35rem 4.15rem;
    gap: 0.18rem;
    padding-inline: 0.08rem;
  }

  .market-player-source {
    grid-column: auto;
    min-width: 0;
    padding-inline: 0.14rem;
  }

  .market-player-value {
    grid-column: auto;
    font-size: 0.7rem;
  }

  .squad-player-row {
    grid-template-columns: 1.45rem 1.72rem minmax(0, 1fr);
    gap: 0.24rem;
    padding-inline: 0.08rem;
  }

  .squad-player-photo {
    width: 1.6rem;
    height: 1.6rem;
  }

  .squad-player-main {
    flex-direction: column;
    gap: 0.02rem;
    align-items: flex-start;
  }

  .admin-command-grid,
  .admin-action-grid,
  .admin-work-grid,
  .user-admin-grid,
  .user-stats-grid,
  .status-card-grid,
  .summary-list,
  .role-list,
  .odds-market-band,
  .odds-summary-grid,
  .odds-row {
    grid-template-columns: 1fr;
  }

  .knockout-result-form {
    width: 100%;
  }

  .odds-history-panel {
    grid-column: 1;
    order: 10;
  }

  .odds-workboard {
    grid-column: 1;
    order: 11;
  }

  .user-form-grid {
    grid-template-columns: 1fr;
    gap: 0.28rem;
  }

  .odds-filter-select,
  .odds-market-select,
  .odds-history-match-select,
  .odds-history-display-select,
  .elo-match-filter-select,
  .elo-match-team-select,
  .elo-match-round-select {
    width: 100%;
    grid-template-columns: 5.35rem minmax(0, 1fr);
  }

  .odds-history-control-strip {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .odds-history-control-strip .odds-filter-select,
  .odds-history-control-strip .odds-market-select,
  .odds-history-match-select,
  .odds-history-display-select {
    width: 100%;
    grid-template-columns: 5.35rem minmax(0, 1fr);
  }

  .odds-history-svg {
    min-width: 28rem;
  }

  .odds-market-line {
    grid-template-columns: 4.55rem max-content;
  }

  .odds-market-band {
    justify-self: stretch;
    width: 100%;
  }

  .odds-workboard {
    justify-items: stretch;
  }

  .odds-work-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
    width: 100%;
    gap: 0.18rem;
  }

  .odds-work-row .odds-match-main {
    display: grid;
    gap: 0.06rem;
  }

  .odds-work-row .odds-match-main h2,
  .odds-match-meta-line,
  .odds-market-band {
    grid-column: 1;
    grid-row: auto;
  }

  .odds-match-meta-line {
    white-space: normal;
  }

  .odds-market-line {
    width: max-content;
  }

  .odds-selection-strip {
    justify-content: start;
  }

  .knockout-result-form {
    grid-template-columns: minmax(4rem, 1fr) auto minmax(4rem, 1fr) minmax(4.4rem, 0.8fr) minmax(6rem, 1fr) minmax(5.6rem, 0.8fr);
  }

  .odds-quote-grid {
    grid-template-columns: repeat(3, minmax(6.5rem, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-summary-stack {
    flex-basis: 100%;
    width: 100%;
  }

  .dashboard-stat-summary-cards {
    display: grid;
    width: 100%;
  }

  .dashboard-stat-summary-cards > .dashboard-goal-card {
    width: 100%;
  }

  .dashboard-scorer-board {
    grid-template-columns: 1fr;
  }

  .dashboard-goal-distribution-card,
  .dashboard-goal-distribution-chart {
    width: 100%;
  }

  .dashboard-goal-distribution-chart {
    grid-template-columns: repeat(9, 1.68rem);
    justify-content: center;
    gap: 0.03rem;
    padding-right: 0.34rem;
    padding-left: 0.34rem;
  }

  .dashboard-scorer-column + .dashboard-scorer-column {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.45rem;
    padding-left: 0;
  }

  .brand-copy small {
    display: none;
  }

  .logout-form button,
  .import-pause-action button,
  .schedule-filter-actions button,
  .schedule-filter-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .import-pause-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .schedule-filter-actions {
    display: grid;
    width: 100%;
  }

  .flyout-grid,
  .flyout-round-grid,
  .flyout-group-grid,
  .flyout-history-grid,
  .flyout-team-grid {
    grid-template-columns: 1fr;
  }

  .flyout-team-grid,
  .flyout-group-grid {
    display: grid;
  }

  .flyout-team-list {
    width: 100%;
  }

  .calculation-tabs {
    width: 100%;
  }

  .calculation-tab {
    flex: 1 1 auto;
  }

  .import-status-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .algo-signal-grid {
    grid-template-columns: 1fr;
  }

  .market-summary-grid {
    grid-template-columns: 1fr;
  }

  .season-example-summary {
    grid-template-columns: 1fr;
  }

  .season-source-strip,
  .season-total-strip,
  .season-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .season-source-strip div,
  .season-total-strip div {
    justify-content: space-between;
  }

  .season-curve-chart {
    min-width: 34rem;
  }

  .season-team-detail summary {
    grid-template-columns: minmax(0, 1fr) max-content 0.8rem;
  }

  .season-team-detail summary small {
    display: none;
  }

  .market-formula-panel {
    padding: 0.66rem;
  }

  .market-formula-line {
    font-size: 1rem;
  }

  .elo-board-head {
    width: 100%;
  }

  .app-header.nav-open .logout-form {
    display: grid;
    width: 100%;
  }

  .knockout-result-form {
    grid-template-columns: minmax(3.8rem, 1fr) auto minmax(3.8rem, 1fr);
  }

  .knockout-result-form select,
  .knockout-confirm-toggle,
  .knockout-result-form button {
    grid-column: 1 / -1;
  }

  .lineup-card-head {
    align-items: start;
    flex-direction: column;
  }

  .lineup-pitch {
    grid-template-rows: auto minmax(17.4rem, 1fr) auto;
  }

  .lineup-pitch-surface {
    min-height: 17.4rem;
    padding-inline: 0.38rem;
  }

  .lineup-field-row {
    grid-template-columns: 1.65rem minmax(0, 1fr);
    gap: 0.2rem;
  }

  .lineup-player-row {
    gap: 0.18rem;
  }

  .lineup-player {
    padding: 0.2rem 0.22rem;
  }

  .lineup-player-number {
    width: 0.95rem;
    min-height: 0.95rem;
  }

  .lineup-player strong {
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-photo-overlay,
  .login-photo-image,
  .login-photo-overlay-closing,
  .login-photo-overlay-closing .login-photo-image {
    animation: none;
  }
}
