:root {
  --bg: #050708;
  --surface: #0a1114;
  --surface-2: #0d171b;
  --surface-3: #111d22;
  --line: rgba(210, 236, 242, 0.12);
  --line-strong: rgba(112, 255, 54, 0.32);
  --text: #f5f8f9;
  --muted: #9aa8ae;
  --green: #55ff22;
  --blue: #13a8ff;
  --purple: #9c58ff;
  --amber: #f1b832;
  --danger: #ff6f61;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

/* Admin command center refresh */
.admin-command-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 169, 255, 0.08), transparent 24rem),
    radial-gradient(circle at 92% 4%, rgba(105, 245, 51, 0.12), transparent 28rem),
    #030707;
}

.admin-command-page main {
  margin-inline: auto;
  max-width: 1580px;
  padding-inline: clamp(0.9rem, 2vw, 2rem);
}

.admin-command-page .admin-toolbar {
  backdrop-filter: blur(18px);
  background: rgba(3, 7, 7, 0.88);
  border-bottom: 1px solid rgba(210, 236, 242, 0.1);
  padding-inline: clamp(0.9rem, 2vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 80;
}

.admin-command-page .admin-toolbar strong {
  color: var(--green);
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-command-page .admin-hero {
  align-items: end;
  border-radius: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 420px);
  min-height: 250px;
  overflow: hidden;
  position: relative;
}

.admin-command-page .admin-hero::after,
.admin-command-page .admin-panel::after {
  background-image:
    linear-gradient(rgba(105, 245, 51, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 245, 51, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  opacity: 0.38;
  pointer-events: none;
  position: absolute;
}

.admin-command-page .admin-hero > *,
.admin-command-page .admin-panel > * {
  position: relative;
  z-index: 1;
}

.admin-command-page .admin-hero h1 {
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  max-width: 920px;
}

.admin-command-page .admin-status {
  background:
    radial-gradient(circle at 100% 0%, rgba(105, 245, 51, 0.14), transparent 70%),
    rgba(5, 10, 12, 0.82);
  min-height: 120px;
}

.admin-command-page .admin-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-command-page .admin-kpis article,
.admin-command-page .admin-panel,
.admin-command-page .admin-health {
  border-color: rgba(210, 236, 242, 0.14);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  position: relative;
}

.admin-command-page .admin-nav {
  backdrop-filter: blur(16px);
  background: rgba(6, 13, 15, 0.92);
  border-color: rgba(210, 236, 242, 0.12);
  border-radius: 999px;
  flex-wrap: nowrap;
  margin-top: 1rem;
  overflow-x: auto;
  padding: 0.45rem;
  position: sticky;
  top: 72px;
  z-index: 60;
}

.admin-command-page .admin-nav button {
  border-radius: 999px;
  flex: 0 0 auto;
  min-height: 42px;
  padding-inline: 1rem;
  white-space: nowrap;
}

.admin-command-page .admin-panel {
  margin-top: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.admin-command-page .admin-command-overview > header {
  align-items: start;
  border-bottom: 1px solid rgba(210, 236, 242, 0.1);
  gap: 1rem;
  padding-bottom: 1rem;
}

.admin-command-season {
  background: rgba(105, 245, 51, 0.08);
  border: 1px solid rgba(105, 245, 51, 0.22);
  border-radius: 12px;
  min-width: 180px;
  padding: 0.95rem;
  text-align: right;
}

.admin-command-season span,
.admin-command-label {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-command-season strong {
  color: var(--green);
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  margin-top: 0.35rem;
}

.admin-command-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  margin-top: 1rem;
}

.admin-command-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(105, 245, 51, 0.12), transparent 16rem),
    linear-gradient(145deg, rgba(15, 26, 29, 0.94), rgba(4, 8, 10, 0.96));
  border: 1px solid rgba(210, 236, 242, 0.14);
  border-radius: 14px;
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.admin-command-priority {
  grid-row: span 2;
}

.admin-command-card h3 {
  font-size: clamp(1.65rem, 3vw, 3.6rem);
  line-height: 0.95;
  margin: 0;
}

.admin-command-card p {
  color: #c7d1d4;
  font-weight: 750;
  line-height: 1.5;
  margin: 0;
}

.admin-command-actions {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.25rem;
}

.admin-command-actions button,
.admin-command-job,
.admin-season-readout,
.admin-command-activity article,
.admin-command-activity p {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(210, 236, 242, 0.12);
  border-radius: 10px;
}

.admin-command-actions button {
  color: #061006 !important;
  display: grid;
  gap: 0.55rem;
  min-height: 116px;
  padding: 0.9rem;
  text-align: left;
}

.admin-command-actions button:hover {
  border-color: var(--line-strong);
}

.admin-command-actions span,
.admin-command-job small,
.admin-season-readout small,
.admin-command-activity span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.35;
}

.admin-command-actions button span,
.admin-command-actions button strong {
  color: #061006 !important;
}

.admin-command-actions button strong {
  text-shadow: none;
}

.admin-command-actions strong {
  color: var(--green);
  font-size: 1.45rem;
  line-height: 1;
}

.admin-command-job {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.85rem;
}

.admin-command-job b {
  display: block;
  margin-bottom: 0.2rem;
}

.admin-command-job button,
.admin-command-wide-button {
  border-radius: 9px;
  min-height: 40px;
}

.admin-season-readout {
  padding: 1rem;
}

.admin-season-readout strong {
  color: var(--green);
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
}

.admin-command-wide-button {
  width: 100%;
}

.admin-command-activity {
  grid-column: 1 / -1;
}

.admin-command-activity #overview-activity-list {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-command-activity article,
.admin-command-activity p {
  margin: 0;
  min-height: 72px;
  padding: 0.75rem;
}

.admin-command-activity strong {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: block;
  display: -webkit-box;
  line-height: 1.25;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.admin-command-activity span {
  display: block;
  margin-top: 0.45rem;
}

.admin-command-page .admin-workspace {
  grid-template-columns: minmax(210px, 260px) minmax(560px, 1fr) minmax(320px, 380px);
}

.admin-command-page .admin-team-rail,
.admin-command-page .admin-roster-panel,
.admin-command-page .admin-editor,
.admin-command-page .admin-studio-list,
.admin-command-page .admin-studio-detail,
.admin-command-page .admin-preview-card {
  border-color: rgba(210, 236, 242, 0.13);
}

.admin-command-page .admin-player-card {
  grid-template-columns: minmax(260px, 1fr) minmax(350px, auto);
  min-height: 92px;
}

.admin-command-page .admin-player-card-metrics {
  gap: 0.5rem;
  grid-template-columns: repeat(5, minmax(58px, 66px));
}

.admin-command-page .admin-metric-chip b {
  font-size: 1rem;
}

.admin-command-page .admin-settings-grid article {
  min-height: 158px;
}

.admin-command-page .admin-automation-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 169, 255, 0.12), transparent 22rem),
    rgba(4, 9, 11, 0.78);
  border: 1px solid rgba(210, 236, 242, 0.13);
  border-radius: 14px;
  margin-top: 1rem;
  padding: 1rem;
}

@media (max-width: 1180px) {
  .admin-command-page .admin-command-grid,
  .admin-command-page .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-command-priority {
    grid-row: auto;
  }

  .admin-command-activity #overview-activity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-command-page .admin-player-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-command-page main {
    padding-inline: 0.75rem;
  }

  .admin-command-page .admin-toolbar {
    grid-template-columns: 1fr auto;
  }

  .admin-command-page .admin-hero,
  .admin-command-page .admin-kpis,
  .admin-command-actions,
  .admin-command-activity #overview-activity-list,
  .admin-command-page .admin-user-summary,
  .admin-command-page .admin-health-grid {
    grid-template-columns: 1fr;
  }

  .admin-command-page .admin-command-overview > header,
  .admin-command-page .admin-panel > header,
  .admin-command-page .admin-health > header,
  .admin-command-page .admin-team-toolbar,
  .admin-scouting-bulk > header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-command-season {
    text-align: left;
  }

  .admin-command-page .admin-nav {
    border-radius: 14px;
    top: 62px;
  }

  .admin-command-page .admin-player-card-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Shared CourtsideIQ navigation */
.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.global-site-nav {
  align-items: center;
  background: rgba(3, 7, 9, 0.97);
  border-bottom: 1px solid rgba(138, 164, 158, 0.22);
  display: grid;
  gap: clamp(1rem, 2vw, 2.25rem);
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 68px;
  padding: 0.65rem clamp(1rem, 3vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.global-nav-brand {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
}

.global-nav-brand img {
  display: block;
  height: 34px;
  object-fit: contain;
  object-position: left center;
  width: clamp(150px, 13vw, 205px);
}

.global-nav-menu {
  align-items: center;
  display: grid;
  gap: clamp(0.9rem, 1.5vw, 1.75rem);
  grid-template-columns: minmax(0, 1fr) minmax(210px, 310px) auto;
  min-width: 0;
}

.global-nav-links {
  align-items: center;
  display: flex;
  gap: clamp(0.9rem, 1.6vw, 1.7rem);
  min-width: 0;
}

.global-nav-links > a,
.global-tools-menu > summary {
  color: #dce6e3;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  list-style: none;
  padding: 0.85rem 0;
  position: relative;
  white-space: nowrap;
}

.global-tools-menu > summary::-webkit-details-marker {
  display: none;
}

.global-nav-links > a:hover,
.global-nav-links > a.active,
.global-tools-menu > summary:hover,
.global-tools-menu.active > summary {
  color: #fff;
}

.global-nav-links > a.active::after,
.global-tools-menu.active > summary::after {
  background: var(--green);
  bottom: 0.35rem;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.global-tools-menu {
  position: relative;
}

.global-tools-panel {
  background: #091012;
  border: 1px solid rgba(138, 164, 158, 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  display: grid;
  left: 50%;
  min-width: 280px;
  overflow: hidden;
  padding: 0.4rem;
  position: absolute;
  top: calc(100% + 0.2rem);
  transform: translateX(-50%);
  z-index: 1100;
}

.global-tools-panel a {
  align-items: center;
  border-radius: 6px;
  color: #e6eeec;
  display: flex;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 0.8rem;
}

.global-tools-panel a:hover {
  background: rgba(85, 255, 34, 0.09);
  color: #fff;
}

.global-tools-panel small {
  color: var(--green);
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.global-tools-panel a:not(:first-child) small::before {
  content: "🔒 ";
}

.global-player-search {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(138, 164, 158, 0.24);
  border-radius: 7px;
  display: flex;
  min-width: 0;
  position: relative;
}

.global-player-search > span {
  color: var(--muted);
  font-size: 1.05rem;
  padding-left: 0.75rem;
}

.global-player-search input {
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  min-width: 0;
  outline: 0;
  padding: 0.68rem 0.75rem 0.68rem 0.55rem;
  width: 100%;
}

.global-player-results {
  background: #091012;
  border: 1px solid rgba(138, 164, 158, 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  left: 0;
  max-height: 360px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 1100;
}

.global-player-results[hidden] {
  display: none;
}

.global-player-results a {
  border-bottom: 1px solid rgba(138, 164, 158, 0.14);
  display: grid;
  gap: 0.2rem;
  padding: 0.72rem 0.8rem;
}

.global-player-results a:hover {
  background: rgba(85, 255, 34, 0.08);
}

.global-player-results strong {
  color: #fff;
  font-size: 0.84rem;
}

.global-player-results span,
.global-player-results p {
  color: var(--muted);
  font-size: 0.72rem;
  margin: 0;
}

.global-player-results p {
  padding: 0.8rem;
}

.global-subscribe-link {
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 6px;
  color: #051006;
  font-size: 0.82rem;
  font-weight: 950;
  padding: 0.68rem 0.95rem;
  text-align: center;
  white-space: nowrap;
}

.global-account-actions {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.global-account-link,
.global-admin-link {
  border: 1px solid rgba(138, 164, 158, 0.3);
  border-radius: 6px;
  color: #f3f7f6;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 0.68rem 0.85rem;
  text-align: center;
  white-space: nowrap;
}

.global-account-link:hover,
.global-account-link.is-signed-in,
.global-admin-link:hover {
  border-color: rgba(85, 255, 34, 0.48);
  color: var(--green);
}

.global-admin-link {
  background: rgba(85, 255, 34, 0.1);
  border-color: rgba(85, 255, 34, 0.35);
  color: var(--green);
}

.global-subscribe-link.is-plan {
  background: rgba(85, 255, 34, 0.1);
  color: var(--green);
}

.global-nav-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  justify-self: end;
  padding: 0.4rem;
}

.global-nav-toggle > span:not(.sr-only) {
  background: #fff;
  display: block;
  height: 2px;
  margin: 4px 0;
  width: 24px;
}

body.has-global-nav > .topbar:not(.admin-toolbar),
body.has-global-nav > .ciq-nav {
  display: none;
}

body.has-global-nav .player-sidebar,
body.has-global-nav .player-dashboard-topbar {
  display: none;
}

body.has-global-nav .player-app-shell {
  display: block;
  min-height: auto;
}

body.has-global-nav .player-main-shell {
  width: 100%;
}

.admin-toolbar {
  align-items: center;
  background: #080e10;
  border-bottom: 1px solid rgba(138, 164, 158, 0.2);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  min-height: 56px;
  padding: 0.55rem clamp(1rem, 3vw, 3rem);
}

.admin-toolbar > strong {
  color: var(--muted);
  font-size: 0.75rem;
  margin-right: auto;
  text-transform: uppercase;
}

.admin-toolbar .search {
  max-width: 360px;
  width: min(360px, 50vw);
}

@media (max-width: 1120px) {
  .global-site-nav {
    grid-template-columns: auto auto;
  }

  .global-nav-toggle {
    display: block;
  }

  .global-nav-menu {
    align-items: stretch;
    background: #070d0f;
    border-top: 1px solid rgba(138, 164, 158, 0.2);
    display: none;
    gap: 0.8rem;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    margin: 0 -1rem -0.65rem;
    padding: 0.85rem 1rem 1rem;
  }

  .global-nav-menu.is-open {
    display: grid;
  }

  .global-nav-links {
    align-items: stretch;
    display: grid;
    gap: 0;
  }

  .global-nav-links > a,
  .global-tools-menu > summary {
    border-bottom: 1px solid rgba(138, 164, 158, 0.14);
    padding: 0.75rem 0.2rem;
  }

  .global-tools-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    left: auto;
    margin: 0.2rem 0 0;
    min-width: 0;
    position: static;
    transform: none;
  }

  .global-subscribe-link {
    width: 100%;
  }

  .global-account-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}

@media (max-width: 520px) {
  .global-site-nav {
    min-height: 60px;
    padding: 0.55rem 0.75rem;
  }

  .global-nav-brand img {
    height: 29px;
    width: 145px;
  }

  .global-nav-menu {
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }
}

/* Site-wide layout stabilization
   Keeps wide dashboard grids from depending on one exact monitor width. */
html {
  overflow-x: hidden;
}

body {
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

main,
section,
article,
aside,
header,
nav,
footer,
div,
form,
table,
tbody,
thead,
tr,
td,
th {
  min-width: 0;
}

h1,
h2,
h3,
h4,
p,
a,
span,
strong,
small,
b,
td,
th,
button,
input,
select {
  min-width: 0;
}

p,
td,
th,
li,
.player-panel,
.team-panel,
.panel {
  overflow-wrap: break-word;
}

.topbar {
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) minmax(190px, 320px) auto;
}

.nav-links {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links a,
.account-link {
  white-space: nowrap;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.search {
  min-width: 0;
}

.home-v2 .topbar {
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
}

.home-v2 .nav-links {
  justify-content: center;
}

.page-shell,
.home-shell,
.team-page-shell,
.fit-engine-shell,
.contract-engine-shell,
.team-dashboard-page .team-page-shell,
.teams-index-page main,
.player-dashboard-page main,
.methodology-page main,
.stories-page main {
  width: min(100%, var(--page-max, 1680px));
}

.hero,
.home-hero,
.featured-stage,
.player-dashboard-hero,
.team-dashboard-hero,
.team-identity-strip,
.team-dashboard-grid,
.team-grid,
.admin-player-card,
.fit-engine-grid,
.contract-engine-grid {
  min-width: 0;
}

@media (max-width: 1540px) {
  .home-shell {
    padding-inline: 1rem;
  }

  .home-hero {
    grid-template-columns: minmax(420px, 0.88fr) minmax(560px, 1.12fr);
  }

  .hero-command h1 {
    font-size: 4.05rem;
  }

  .featured-stage {
    grid-template-columns: minmax(190px, 0.55fr) minmax(240px, 0.7fr) minmax(170px, 0.5fr);
  }

  .featured-copy h2 {
    font-size: 2.45rem;
  }

  .featured-rei strong {
    font-size: 3.75rem;
  }

  .filter-bar {
    grid-template-columns: repeat(4, minmax(110px, 1fr)) repeat(4, minmax(130px, 1fr)) minmax(116px, 0.8fr);
  }

  .team-dashboard-page .team-dashboard-hero {
    grid-template-columns: minmax(320px, 0.82fr) minmax(280px, 0.68fr) minmax(430px, 0.95fr);
  }

  .team-dashboard-page .team-title-block {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .team-dashboard-page .team-title-block h1 {
    font-size: 4.75rem;
  }

  .team-hero-player img {
    height: clamp(132px, 13vw, 195px);
  }

  .team-hero-player.player-1 img {
    height: clamp(170px, 16vw, 235px);
  }

  .team-dashboard-page .team-hero-metrics .team-iq-main strong {
    font-size: 4rem;
  }

  .team-identity-strip {
    grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.25fr) minmax(250px, 0.8fr);
  }
}

@media (max-width: 1360px) {
  .topbar {
    grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
  }

  .topbar .search {
    display: none;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .home-hero,
  .role-map-row,
  .lower-grid,
  .team-identity-strip,
  .league-command-board,
  .team-league-map,
  .team-blueprint {
    grid-template-columns: 1fr;
  }

  .hero-command h1 {
    font-size: 4.25rem;
    max-width: 760px;
  }

  .featured-stage {
    min-height: 390px;
  }

  .feature-player-art {
    bottom: 3.6rem;
    right: 170px;
    width: min(42%, 360px);
  }

  .filter-bar {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .insight-board-grid,
  .team-grid,
  .teams-index-page .team-grid,
  .story-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-dashboard-page .team-dashboard-hero {
    grid-template-columns: minmax(300px, 0.62fr) minmax(540px, 1.38fr);
    min-height: auto;
  }

  .team-dashboard-page .team-title-block h1 {
    font-size: 4.6rem;
    max-width: none;
  }

  .team-hero-players {
    min-height: 250px;
  }

  .team-dashboard-page .team-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-dashboard-page .team-hero-metrics .team-iq-main {
    grid-row: auto;
    min-height: 160px;
  }

  .team-dashboard-page .team-hero-metrics article:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .team-dashboard-page .team-hero-metrics article:nth-child(-n + 3) {
    border-top: 0;
  }

  .team-dashboard-page .team-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-needs-card,
  .team-lineup-card,
  .team-style-card,
  .team-roster-table,
  .team-key-contracts {
    grid-column: auto;
  }

  .player-dashboard-hero {
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  }

  .player-hero-art {
    min-height: 430px;
  }

  .player-hero-art img {
    max-height: 490px;
    width: min(500px, 165%);
  }

  .player-hero-info h1 {
    font-size: 4.9rem;
  }

  .player-hero-info h1.long-name {
    font-size: 4.35rem;
  }

  .player-hero-info h1.extra-long-name {
    font-size: 3.8rem;
  }

  .player-quick-card {
    max-width: 100%;
  }

  .validation-grid,
  .player-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-player-card {
    grid-template-columns: minmax(260px, 1fr) minmax(300px, 0.9fr);
  }

  .admin-player-card-metrics {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
  }
}

@media (max-width: 1080px) {
  .topbar,
  .home-v2 .topbar {
    grid-template-columns: minmax(150px, 1fr) auto;
  }

  .topbar .nav-links,
  .home-v2 .nav-links {
    grid-column: 1 / -1;
    order: 3;
  }

  .home-shell,
  .player-dashboard-page main,
  .team-page-shell {
    padding-inline: 0.75rem;
  }

  .featured-stage,
  .team-dashboard-page .team-dashboard-hero,
  .team-dashboard-page .team-hero-metrics,
  .team-dashboard-page .team-dashboard-grid,
  .player-dashboard-hero,
  .player-hero-info,
  .admin-player-card {
    grid-template-columns: 1fr;
  }

  .feature-player-art,
  .featured-rei,
  .featured-metrics,
  .featured-profile-link {
    position: relative;
    inset: auto;
    width: auto;
  }

  .feature-player-art {
    min-height: 230px;
  }

  .player-dashboard-hero {
    padding: 1rem 0.75rem 0;
  }

  .player-hero-art {
    min-height: 360px;
  }

  .player-hero-info h1,
  .player-hero-info h1.long-name,
  .player-hero-info h1.extra-long-name {
    font-size: 4rem;
  }

  .player-bio-line,
  .player-hero-metrics,
  .validation-grid,
  .method-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-dashboard-page .team-title-block h1 {
    font-size: 3.6rem;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(105, 245, 51, 0.1), transparent 30rem),
    linear-gradient(180deg, #050708 0%, #071014 46%, #050708 100%);
  color: var(--text);
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 8, 0.88);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 210px 1fr minmax(220px, 340px) auto;
  min-height: 72px;
  padding: 0.75rem clamp(1rem, 2.5vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  display: flex;
  min-width: 0;
}

.brand img {
  height: 40px;
  object-fit: contain;
  object-position: left center;
  width: 200px;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  justify-content: center;
}

.nav-links a,
.account-link {
  background: none;
  border: 0;
  color: #e7edf0;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0;
}

.search {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 0.55rem;
  height: 42px;
  padding: 0 0.85rem;
  position: relative;
}

.search span {
  color: var(--green);
  font-size: 1.2rem;
}

.search input {
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.search-results {
  background: rgba(7, 13, 16, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 0.25rem;
  left: 0;
  max-height: 360px;
  overflow: auto;
  padding: 0.4rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 60;
}

.search-results:empty,
.search-results[hidden] {
  display: none;
}

.search-results a,
.search-results p {
  border-radius: 7px;
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.6rem;
}

.search-results a:hover {
  background: rgba(105, 245, 51, 0.08);
}

.search-results b {
  color: #fff;
  font-size: 0.9rem;
}

.search-results span,
.search-results p {
  color: var(--muted);
  font-size: 0.78rem;
}

main {
  margin: 0 auto;
  max-width: 1560px;
  padding: 1.3rem clamp(1rem, 2.5vw, 2rem) 2rem;
}

.hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(360px, 0.92fr) minmax(520px, 1.08fr);
  min-height: clamp(460px, 62vh, 620px);
}

.hero-copy,
.player-card,
.kpi-row article,
.panel,
.metric-grid article,
.reports article,
.report-links {
  background: linear-gradient(145deg, rgba(13, 23, 27, 0.94), rgba(6, 11, 13, 0.96));
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.22);
}

.hero-stage {
  background:
    radial-gradient(circle at 66% 42%, rgba(105, 245, 51, 0.2), transparent 18rem),
    radial-gradient(circle at 86% 20%, rgba(19, 168, 255, 0.14), transparent 24rem),
    linear-gradient(135deg, rgba(12, 22, 26, 0.95), rgba(4, 7, 8, 0.96));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
  position: relative;
}

.hero-stage::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, black, transparent 70%);
  position: absolute;
}

.hero-stage > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.8rem, 2vw, 1.6rem) 0 clamp(0.8rem, 2vw, 1.6rem) clamp(0rem, 1vw, 0.8rem);
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3rem, 4.6vw, 5.6rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 0.95rem;
  max-width: 620px;
}

.hero-copy > p:not(.eyebrow) {
  color: #c8d2d6;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.hero-visual {
  align-self: stretch;
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.arena-lines {
  background:
    radial-gradient(circle at 50% 70%, transparent 0 108px, rgba(255,255,255,0.13) 109px 111px, transparent 112px),
    linear-gradient(90deg, transparent 0 49.8%, rgba(255,255,255,0.1) 49.9% 50.1%, transparent 50.2%),
    linear-gradient(rgba(105, 245, 51, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 245, 51, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  inset: 5% 0 3%;
  mask-image: linear-gradient(180deg, black 0 72%, transparent);
  position: absolute;
}

.arena-lines::before {
  border: 2px solid rgba(255,255,255,0.12);
  border-bottom: 0;
  border-radius: 180px 180px 0 0;
  bottom: 0;
  content: "";
  height: 160px;
  left: calc(50% - 180px);
  position: absolute;
  width: 360px;
}

.hero-player {
  align-items: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(105, 245, 51, 0.24), transparent 28%),
    radial-gradient(circle at 45% 48%, rgba(19, 168, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(5, 10, 12, 0.84));
  border: 1px solid rgba(105, 245, 51, 0.22);
  border-radius: 24px;
  bottom: 5%;
  box-shadow:
    inset 0 -60px 90px rgba(0,0,0,0.34),
    0 0 70px rgba(105, 245, 51, 0.16),
    0 42px 84px rgba(0,0,0,0.38);
  display: flex;
  flex-direction: column;
  height: min(82%, 390px);
  justify-content: end;
  left: 35%;
  padding: 0 1rem 1rem;
  position: absolute;
  transform: translateX(-50%);
  width: min(42%, 270px);
  z-index: 3;
}

.hero-player::before {
  background: linear-gradient(180deg, transparent, rgba(5, 7, 8, 0.94));
  bottom: 0;
  content: "";
  height: 38%;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}

.hero-player::after {
  border: 1px solid rgba(105, 245, 51, 0.34);
  border-radius: 50%;
  content: "";
  height: 78%;
  left: 50%;
  position: absolute;
  top: 8%;
  transform: translateX(-50%);
  width: 78%;
}

.hero-player img {
  filter:
    contrast(1.12)
    saturate(1.12)
    brightness(0.96)
    drop-shadow(0 0 24px rgba(105, 245, 51, 0.42))
    drop-shadow(0 36px 34px rgba(0, 0, 0, 0.54));
  image-rendering: auto;
  max-height: 92%;
  object-fit: contain;
  position: relative;
  transform: translateY(3%) scale(1.08);
  transform-origin: bottom center;
  width: min(122%, 350px);
  z-index: 3;
}

.hero-player .name {
  background: rgba(5, 10, 12, 0.8);
  border: 1px solid rgba(105, 245, 51, 0.28);
  border-radius: 999px;
  color: #f7fafb;
  font-size: 0.86rem;
  font-weight: 900;
  margin-top: 0.5rem;
  padding: 0.45rem 0.7rem;
  position: relative;
  text-transform: uppercase;
  z-index: 3;
}

.hero-player .name::before {
  color: var(--green);
  content: "Featured profile";
  display: block;
  font-size: 0.62rem;
  margin-bottom: 0.14rem;
}

.floating-card {
  background: rgba(4, 9, 11, 0.78);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  min-width: 150px;
  padding: 0.75rem;
  position: absolute;
  z-index: 4;
}

.floating-card span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.floating-card strong {
  color: var(--green);
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin: 0.35rem 0;
}

.floating-card p {
  color: #c5d0d5;
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0;
}

.rei-card {
  left: 2%;
  top: 12%;
}

.pfe-card {
  right: 4%;
  top: 22%;
}

.cvr-card {
  bottom: 13%;
  right: 12%;
}

.hero-trend {
  bottom: 14%;
  height: 180px;
  left: 7%;
  opacity: 0.9;
  position: absolute;
  width: 88%;
  z-index: 2;
}

.hero-trend polyline {
  fill: none;
  stroke: rgba(105, 245, 51, 0.72);
  stroke-dasharray: 4 8;
  stroke-width: 3;
}

.hero-trend circle {
  fill: var(--green);
}

.button {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
}

.button.primary {
  background: var(--green);
  color: #061007;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  color: var(--text);
}

.player-card {
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.35rem);
  position: relative;
}

.featured-card {
  margin-top: 0.7rem;
}

.player-card::before {
  background:
    linear-gradient(rgba(105, 245, 51, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 245, 51, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  inset: 0;
  opacity: 0.8;
  position: absolute;
}

.card-head,
.player-summary,
.stat-grid,
.shot-map {
  position: relative;
  z-index: 1;
}

.card-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}

.card-head span,
.summary-score span,
.stat-grid span,
.kpi-row span {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-head h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  margin: 0.35rem 0 0;
}

.card-head b {
  background: rgba(105, 245, 51, 0.11);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.75rem;
  padding: 0.42rem 0.62rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.player-summary {
  align-items: center;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 190px 1fr;
  margin-bottom: 1rem;
}

.jersey-token {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(105, 245, 51, 0.14), transparent 58%),
    #091114;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 5.8rem;
  font-weight: 900;
  justify-content: center;
}

.summary-score strong {
  color: var(--green);
  display: block;
  font-size: clamp(4rem, 10vw, 7.2rem);
  line-height: 0.9;
}

.summary-score em {
  color: #dfe6e8;
  font-style: normal;
  font-weight: 700;
}

.stat-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, 1fr);
}

.stat-grid article {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  padding: 0.9rem;
}

.stat-grid b {
  color: white;
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
  margin: 0.35rem 0;
}

.stat-grid small {
  color: var(--muted);
}

.shot-map {
  background:
    radial-gradient(circle at 50% 100%, transparent 0 64px, rgba(255,255,255,0.08) 65px 66px, transparent 67px),
    linear-gradient(90deg, transparent 0 49.7%, rgba(255,255,255,0.07) 49.8% 50.2%, transparent 50.3%),
    rgba(0, 0, 0, 0.19);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  height: 145px;
  margin-top: 0.8rem;
  overflow: hidden;
}

.shot-map::before {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  border-radius: 80px 80px 0 0;
  bottom: 0;
  content: "";
  height: 70px;
  left: calc(50% - 80px);
  position: absolute;
  width: 160px;
}

.shot-map span {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(105, 245, 51, 0.38);
  height: var(--s);
  left: var(--x);
  position: absolute;
  top: var(--y);
  width: var(--s);
}

.kpi-row {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0.7rem;
}

.kpi-row article {
  padding: 1rem;
}

.kpi-row strong {
  color: var(--green);
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  margin: 0.55rem 0;
}

.kpi-row p,
.metric-grid p,
.reports p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.rankings,
.framework,
.metrics,
.insight-strip,
.roles,
.reports {
  padding-top: 3rem;
}

.section-title {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1;
  margin: 0;
}

.leaderboard-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.leaderboard-grid .wide {
  grid-column: span 2;
  grid-row: span 2;
}

.leaderboard-grid .wide.panel {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.65rem;
}

.leaderboard-grid .wide table {
  flex: 1;
  font-size: 0.9rem;
  height: 100%;
}

.leaderboard-grid .wide th {
  padding-bottom: 0.45rem;
}

.leaderboard-grid .wide td {
  padding-bottom: 0.68rem;
  padding-top: 0.68rem;
}

.rankings .section-title {
  align-items: start;
  display: grid;
  gap: 0.2rem;
  justify-content: start;
}

.leaderboard-grid .compact {
  min-height: 0;
}

.framework-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, 1fr);
}

.framework-grid article {
  background:
    radial-gradient(circle at 100% 0%, rgba(105, 245, 51, 0.11), transparent 56%),
    linear-gradient(145deg, rgba(13, 23, 27, 0.94), rgba(6, 11, 13, 0.96));
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 230px;
  padding: 1.1rem;
}

.framework-grid span {
  color: var(--green);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 1.1rem;
}

.framework-grid h3 {
  font-size: 1.18rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.framework-grid p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

.panel {
  padding: 1rem;
}

.panel header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.panel h3,
.metric-grid h3 {
  font-size: 1rem;
  margin: 0;
  text-transform: uppercase;
}

.panel a {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

table {
  border-collapse: collapse;
  font-size: 0.88rem;
  width: 100%;
}

th {
  color: var(--muted);
  font-size: 0.7rem;
  padding: 0 0.55rem 0.55rem;
  text-align: left;
  text-transform: uppercase;
}

td {
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  padding: 0.72rem 0.55rem;
  white-space: nowrap;
}

td:first-child,
td:nth-last-child(2),
td:last-child {
  color: var(--green);
  font-weight: 900;
}

.mini-list {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini-list li {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.65rem 0.7rem;
}

.mini-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-list b {
  color: var(--green);
}

.mini-list.blue b {
  color: var(--blue);
}

.mini-list.amber b {
  color: var(--amber);
}

.mini-list.purple b {
  color: var(--purple);
}

.metric-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, 1fr);
}

.metric-grid article,
.data-grid article {
  min-height: 190px;
  padding: 1rem;
}

.insight-card-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, 1fr);
}

.insight-card-grid article {
  background:
    radial-gradient(circle at 100% 0%, rgba(19, 168, 255, 0.12), transparent 56%),
    linear-gradient(145deg, rgba(13, 23, 27, 0.94), rgba(6, 11, 13, 0.96));
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 168px;
  padding: 1rem;
}

.insight-card-grid span {
  color: var(--green);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.insight-card-grid h3 {
  font-size: 1.12rem;
  margin-bottom: 0.65rem;
}

.insight-card-grid p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.metric-grid span {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-size: 0.85rem;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  margin-bottom: 1.2rem;
  width: 46px;
}

.metric-grid .formula {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: white;
  font-weight: 800;
  margin-top: 0.8rem;
  padding: 0.75rem;
}

.data-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 0.75fr 1.45fr 0.8fr;
}

.data-grid article {
  background:
    radial-gradient(circle at 100% 0%, rgba(19, 168, 255, 0.12), transparent 58%),
    linear-gradient(145deg, rgba(13, 23, 27, 0.94), rgba(6, 11, 13, 0.96));
  border: 1px solid var(--line);
  border-radius: 10px;
}

.data-grid span {
  color: var(--green);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.data-grid h3 {
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.data-grid p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.role-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.role-grid span,
.role-grid a {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e9eff1;
  display: inline-flex;
  font-weight: 800;
  padding: 0.72rem 0.9rem;
}

.role-grid a:hover {
  background: rgba(105, 245, 51, 0.12);
  border-color: var(--line-strong);
  color: var(--green);
}

.reports {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr 1fr;
}

.reports article,
.report-links {
  padding: 1.15rem;
}

.reports h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.report-links {
  display: grid;
  gap: 0.65rem;
}

.report-links a {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  display: flex;
  gap: 0.8rem;
  min-height: 70px;
  padding: 0.8rem;
}

.report-links b {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
}

.player-link {
  color: var(--text);
  font-weight: 900;
}

.player-link:hover {
  color: var(--green);
}

.profile-hero {
  background:
    radial-gradient(circle at 78% 28%, rgba(105, 245, 51, 0.2), transparent 24rem),
    linear-gradient(135deg, rgba(13, 23, 27, 0.96), rgba(5, 8, 9, 0.98));
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 0.75fr);
  min-height: 560px;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
}

.profile-copy {
  align-self: center;
  max-width: 780px;
}

.back-link {
  color: var(--muted);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.profile-copy h1 {
  font-size: clamp(4rem, 8vw, 8rem);
  margin-bottom: 1rem;
}

.profile-copy > p:not(.eyebrow) {
  color: #cad4d8;
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 650px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.profile-meta span,
.tag-list span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e8eff2;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.55rem 0.78rem;
}

.profile-image-card {
  align-items: end;
  background:
    radial-gradient(circle at 50% 34%, rgba(105, 245, 51, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(2, 5, 6, 0.68));
  border: 1px solid rgba(105, 245, 51, 0.2);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.profile-image-card::after {
  background: linear-gradient(180deg, transparent, rgba(5, 7, 8, 0.95));
  bottom: 0;
  content: "";
  height: 36%;
  left: 0;
  position: absolute;
  right: 0;
}

.profile-image-card img {
  filter:
    contrast(1.1)
    saturate(1.08)
    brightness(0.97)
    drop-shadow(0 0 30px rgba(105, 245, 51, 0.3))
    drop-shadow(0 42px 38px rgba(0, 0, 0, 0.58));
  max-height: 104%;
  max-width: 128%;
  object-fit: contain;
  position: relative;
  transform: translateY(3%);
  z-index: 1;
}

.profile-score {
  background: rgba(5, 10, 12, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  bottom: 1rem;
  left: 1rem;
  padding: 0.9rem 1rem;
  position: absolute;
  z-index: 2;
}

.profile-score span,
.player-kpis span,
.formula-stack span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-score strong {
  color: var(--green);
  display: block;
  font-size: 3.2rem;
  line-height: 1;
}

.profile-score small {
  color: #dce5e8;
  font-weight: 700;
}

.player-kpis {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 0.7rem;
}

.bio-strip {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(8, 1fr);
  margin-top: 0.7rem;
}

.bio-strip article {
  background:
    radial-gradient(circle at 100% 0%, rgba(105, 245, 51, 0.1), transparent 54%),
    linear-gradient(145deg, rgba(13, 23, 27, 0.94), rgba(6, 11, 13, 0.96));
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 112px;
  padding: 1rem;
  position: relative;
}

.bio-strip article::after {
  background: var(--green);
  border-radius: 999px;
  bottom: 0.85rem;
  content: "";
  height: 3px;
  left: 1rem;
  opacity: 0.65;
  position: absolute;
  width: 34px;
}

.bio-strip span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.bio-strip strong {
  color: var(--text);
  display: block;
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
  line-height: 1.05;
}

.bio-strip small {
  color: var(--green);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 0.35rem;
}

.player-kpis article,
.player-report article,
.player-report aside {
  background: linear-gradient(145deg, rgba(13, 23, 27, 0.94), rgba(6, 11, 13, 0.96));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}

.player-kpis strong {
  color: var(--green);
  display: block;
  font-size: 2.35rem;
  line-height: 1;
  margin: 0.55rem 0;
}

.player-kpis p {
  color: var(--muted);
  margin: 0;
}

.kpi-status {
  border: 1px solid rgba(105, 245, 51, 0.26);
  border-radius: 999px;
  color: #bdf8ad;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 0.8rem;
  padding: 0.24rem 0.5rem;
}

.profile-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1.1fr 0.9fr 1fr 1fr;
  padding-top: 3rem;
}

.breakdown-bars {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}

.breakdown-bars div {
  display: grid;
  gap: 0.4rem;
}

.breakdown-bars span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: space-between;
  line-height: 1.2;
  text-transform: uppercase;
}

.breakdown-bars em {
  color: var(--muted);
  font-style: normal;
}

.breakdown-bars small {
  color: rgba(236, 242, 244, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
  text-transform: none;
}

.breakdown-bars b {
  background: rgba(255, 255, 255, 0.055);
  border-radius: 999px;
  color: rgba(236, 242, 244, 0.82);
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  height: 14px;
  overflow: hidden;
  position: relative;
}

.breakdown-bars b::before {
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: inherit;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: var(--w);
}

.breakdown-bars i {
  inset: 0 0 0 auto;
  line-height: 14px;
  padding-right: 0.35rem;
  position: absolute;
  text-align: right;
  width: 3rem;
  z-index: 1;
}

.role-breakdown p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.scouting-card ul {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.scouting-card li {
  color: #cdd7db;
  line-height: 1.45;
}

.scouting-card b {
  color: var(--green);
}

.formula-stack {
  display: grid;
  gap: 0.7rem;
}

.formula-stack div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0.8rem;
}

.formula-stack p {
  color: #f3f7f8;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0.35rem 0 0;
}

.player-report {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1.25fr 0.75fr;
  padding-top: 0.7rem;
}

.player-report h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.player-report p {
  color: #cad4d8;
  line-height: 1.6;
  max-width: 840px;
}

.player-report aside h3 {
  margin-top: 0;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.source-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 1rem 0 0;
  padding-top: 1rem;
}

.player-dashboard-page {
  background: #04070b;
}

.player-app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.player-sidebar {
  background: linear-gradient(180deg, rgba(3, 8, 14, 0.98), rgba(5, 9, 13, 0.98));
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100vh;
  padding: 1rem;
  position: sticky;
  top: 0;
}

.player-side-brand {
  display: grid;
  gap: 0.45rem;
  padding: 0.25rem 0.25rem 1rem;
}

.player-side-brand img {
  height: 42px;
  object-fit: contain;
  object-position: left center;
  width: 200px;
}

.player-side-brand span,
.player-side-upgrade p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.player-side-nav {
  display: grid;
  gap: 0.35rem;
}

.player-side-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d7e1e5;
  font-weight: 700;
  padding: 0.85rem 0.9rem;
}

.player-side-nav a.active,
.player-side-nav a:hover {
  background: rgba(19, 94, 255, 0.22);
  border-color: rgba(19, 168, 255, 0.25);
  color: #ffffff;
}

.player-side-upgrade {
  background:
    radial-gradient(circle at 100% 100%, rgba(19, 168, 255, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: auto;
  padding: 1rem;
}

.player-side-upgrade b {
  color: #ffffff;
}

.player-side-upgrade a {
  background: #0f6fff;
  border-radius: 7px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 900;
  margin-top: 0.75rem;
  padding: 0.62rem 0.8rem;
}

.player-main-shell {
  min-width: 0;
}

.player-dashboard-topbar {
  align-items: center;
  background: rgba(4, 7, 11, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 66px;
  padding: 0.75rem 1.2rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.player-search {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  gap: 0.65rem;
  height: 40px;
  max-width: 420px;
  padding: 0 0.9rem;
  position: relative;
  width: 40vw;
}

.player-search input {
  background: transparent;
  border: 0;
  color: var(--text);
  flex: 1;
  font: inherit;
  min-width: 0;
  outline: 0;
}

.player-top-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.player-top-actions a,
.player-top-actions span {
  color: #dce6ea;
  font-weight: 800;
}

.player-top-actions span {
  border: 1px solid rgba(19, 168, 255, 0.45);
  border-radius: 50%;
  color: var(--blue);
  display: grid;
  height: 34px;
  place-items: center;
  width: 34px;
}

.player-dashboard-page main {
  padding: 0 1.2rem 1.2rem;
}

.player-dashboard-hero {
  background:
    radial-gradient(circle at 10% 50%, rgba(13, 111, 255, 0.32), transparent 24rem),
    radial-gradient(circle at 72% 14%, rgba(85, 255, 34, 0.13), transparent 25rem),
    linear-gradient(90deg, rgba(85, 255, 34, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(6, 13, 20, 0.98), rgba(3, 7, 11, 0.98));
  background-size: auto, auto, 82px 82px, auto;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.35rem;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  min-height: 485px;
  overflow: hidden;
  padding: 1.5rem 1.2rem 0 0;
  position: relative;
}

.player-hero-art {
  align-items: end;
  display: flex;
  justify-content: center;
  min-height: 470px;
  overflow: visible;
  position: relative;
}

.player-hero-art::before {
  background: var(--team-logo-url) center / contain no-repeat;
  content: "";
  filter: grayscale(1);
  height: clamp(300px, 32vw, 480px);
  left: 50%;
  opacity: 0.16;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -54%) scale(1.08);
  width: clamp(300px, 32vw, 480px);
  z-index: 0;
}

.player-hero-art::after {
  background:
    radial-gradient(circle at 50% 62%, rgba(85, 255, 34, 0.2), transparent 57%),
    linear-gradient(180deg, transparent 62%, rgba(5, 7, 8, 0.92));
  content: "";
  height: 82%;
  left: 50%;
  position: absolute;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 95%;
  z-index: 0;
}

.player-hero-art img {
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.55));
  max-height: 520px;
  max-width: 190%;
  object-fit: contain;
  position: relative;
  transform: translateX(0);
  width: min(570px, 200%);
  z-index: 1;
}

.player-hero-info {
  align-self: center;
  display: grid;
  gap: 1.05rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  min-width: 0;
  padding: 1rem 0 1.35rem;
  position: relative;
  z-index: 2;
}

.player-heading-block {
  max-width: 100%;
  min-width: 0;
  padding-right: 1rem;
}

.breadcrumb {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.player-hero-info h1 {
  font-size: clamp(3.75rem, 5vw, 6.25rem);
  letter-spacing: 0;
  line-height: 0.82;
  margin-bottom: 0.7rem;
  overflow-wrap: normal;
}

.player-hero-info h1 span {
  display: block;
  white-space: nowrap;
}

.player-hero-info h1.long-name {
  font-size: clamp(3.2rem, 4.25vw, 5.25rem);
}

.player-hero-info h1.extra-long-name {
  font-size: clamp(2.75rem, 3.65vw, 4.5rem);
}

.player-hero-info h1.single-name span:first-child {
  display: none;
}

.player-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.player-title-row span {
  color: #eef5f7;
  font-weight: 800;
}

.player-bio-line {
  display: grid;
  gap: 0.6rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 0.35rem;
}

.player-bio-line article {
  border-right: 1px solid var(--line);
  min-width: 0;
  padding-right: 0.6rem;
}

.player-bio-line span,
.player-quick-card span,
.player-hero-metrics span,
.summary-stat-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-bio-line strong {
  display: block;
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.player-salary-season-card select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #f7fbfb;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  margin-top: 0.4rem;
  max-width: 8rem;
  padding: 0.28rem 0.35rem;
}

.player-hero-metrics {
  display: grid;
  gap: 0.55rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.player-hero-metrics article,
.player-quick-card,
.player-panel {
  background: linear-gradient(145deg, rgba(9, 18, 27, 0.99), rgba(4, 9, 13, 1));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.player-hero-metrics article {
  min-height: 128px;
  padding: 0.85rem 0.9rem;
}

.player-hero-metrics b {
  color: var(--green);
  display: block;
  font-size: 0.78rem;
  line-height: 1.2;
  margin-top: 0.35rem;
}

.player-hero-metrics strong {
  color: var(--green);
  display: block;
  font-size: clamp(1.9rem, 2.7vw, 2.8rem);
  line-height: 1;
  margin-top: 0.45rem;
}

.player-hero-metrics article:nth-child(2) strong {
  color: var(--purple);
}

.player-hero-metrics article:nth-child(3) strong {
  color: var(--amber);
}

.player-hero-metrics article:nth-child(4) strong {
  color: #24d5ff;
}

.player-hero-metrics article:nth-child(5) strong {
  color: #45e583;
}

.player-hero-metrics small {
  color: #dce5e8;
  display: block;
  font-weight: 800;
  margin-top: 0.35rem;
}

.player-quick-card {
  align-self: start;
  display: grid;
  gap: 0 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.78rem 0.9rem;
  position: relative;
  z-index: 4;
}

.player-quick-card::before {
  color: var(--green);
  content: "Box score snapshot";
  font-size: 0.68rem;
  font-weight: 950;
  grid-column: 1 / -1;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}

.player-quick-card article {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
}

.player-quick-card strong {
  display: block;
  font-size: 1.32rem;
  margin-top: 0.25rem;
}

.player-quick-card small {
  color: var(--muted);
  font-size: 0.74rem;
}

.player-quick-card article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.player-tabs {
  background: rgba(4, 7, 11, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0 0.4rem;
}

.player-tabs a {
  border-bottom: 3px solid transparent;
  color: #c9d3d8;
  flex: 1 0 auto;
  font-weight: 800;
  padding: 0.9rem 1.2rem;
  text-align: center;
}

.player-tabs a.active {
  border-color: #1e78ff;
  color: #ffffff;
}

.player-dashboard-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-top: 0.7rem;
}

.player-panel {
  min-height: 210px;
  padding: 1rem;
}

.player-panel header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.player-panel h3 {
  font-size: 1rem;
  margin: 0;
  text-transform: uppercase;
}

.player-panel a {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.rei-breakdown-panel,
.player-ranking-panel,
.fit-panel,
.insight-panel,
.trend-panel {
  grid-column: span 4;
}

.validation-panel {
  grid-column: 1 / -1;
}

.season-summary,
.similar-panel {
  grid-column: span 8;
}

.share-card-panel {
  grid-column: span 4;
}

.scouting-preview-panel {
  grid-column: 1 / -1;
}

.rei-breakout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.6fr 1fr;
}

.rei-breakout > div:first-child span {
  color: var(--blue);
  display: block;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rei-breakout > div:first-child strong {
  color: #1f7cff;
  display: block;
  font-size: 3.6rem;
  line-height: 1;
  margin: 0.35rem 0;
}

.rei-breakout > div:first-child b {
  background: rgba(31, 124, 255, 0.22);
  border: 1px solid rgba(31, 124, 255, 0.45);
  border-radius: 6px;
  color: #9fc6ff;
  display: inline-flex;
  font-size: 0.78rem;
  padding: 0.28rem 0.5rem;
}

.player-ranking-panel table {
  font-size: 0.86rem;
}

.player-ranking-panel td,
.player-ranking-panel th {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.active-row {
  background: rgba(31, 124, 255, 0.22);
}

.insight-panel ul {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.insight-panel li {
  border-left: 3px solid var(--blue);
  color: #d9e4e8;
  line-height: 1.45;
  padding-left: 0.75rem;
}

.validation-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.validation-grid article {
  background:
    radial-gradient(circle at 100% 0, rgba(85, 255, 34, 0.1), transparent 9rem),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  min-height: 190px;
  padding: 0.85rem;
}

.validation-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.validation-grid strong {
  color: var(--green);
  display: block;
  font-size: clamp(1.75rem, 2.4vw, 2.55rem);
  line-height: 1;
  margin: 0.45rem 0 0.7rem;
}

.validation-grid p {
  color: #d4dee1;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

.validation-grid small {
  color: var(--blue);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.35;
  margin-top: 0.75rem;
  text-transform: uppercase;
}

.trend-line {
  min-height: 170px;
  overflow: hidden;
}

.trend-line svg {
  display: block;
  height: 190px;
  width: 100%;
}

.trend-line .trend-area {
  fill: url(#trend-fill);
}

.trend-line .trend-path {
  fill: none;
  stroke: #1f7cff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.trend-line circle {
  fill: #1f7cff;
  stroke: #071018;
  stroke-width: 3;
}

.trend-line text {
  fill: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-anchor: middle;
}

.trend-line .trend-year,
.similar-list small,
.summary-stat-grid small {
  color: var(--muted);
  fill: #9aa8ae;
  font-size: 12px;
  font-weight: 700;
}

.similar-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, 1fr);
}

.similar-list a {
  color: #ffffff;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.similar-list .similar-photo {
  align-items: center;
  background: radial-gradient(circle at 50% 20%, rgba(31, 124, 255, 0.4), rgba(5, 11, 16, 0.95));
  border: 1px solid rgba(31, 124, 255, 0.4);
  border-radius: 50%;
  display: flex;
  font-size: 1rem;
  font-weight: 900;
  height: 70px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 70px;
}

.similar-list .similar-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.similar-list .similar-photo.photo-missing::before {
  content: attr(data-initials);
}

.similar-list b {
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.summary-stat-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.summary-stat-grid article {
  border-right: 1px solid var(--line);
  min-width: 0;
  padding-right: 0.65rem;
}

.summary-stat-grid strong {
  display: block;
  font-size: 1.6rem;
  margin: 0.35rem 0;
}

.fit-meter {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 18px;
  overflow: hidden;
  margin: 1rem 0;
}

.fit-meter span {
  background: linear-gradient(90deg, var(--danger), var(--amber), var(--green));
  display: block;
  height: 100%;
  width: var(--fit);
}

.fit-panel p {
  color: #d9e4e8;
  line-height: 1.5;
  margin: 0;
}

.scouting-preview {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.scouting-report-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.scouting-preview > div:first-child {
  background:
    radial-gradient(circle at 100% 0, rgba(85, 255, 34, 0.12), transparent 18rem),
    rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}

.scouting-preview span,
.scouting-preview-grid span,
.premium-lock-strip span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.scouting-preview strong {
  color: var(--green);
  display: block;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  margin: 0.5rem 0;
}

.scouting-preview p {
  color: #d8e3e0;
  line-height: 1.5;
  margin: 0;
}

.scouting-preview-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scouting-preview-grid article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 104px;
  padding: 0.85rem;
}

.scouting-preview-grid b {
  color: #fff;
  display: block;
  font-size: 1rem;
  line-height: 1.15;
  margin-top: 0.45rem;
}

.premium-lock-strip {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(85, 255, 34, 0.12), rgba(0, 180, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(85, 255, 34, 0.26);
  border-radius: 10px;
  display: flex;
  gap: 1rem;
  grid-column: 1 / -1;
  padding: 0.85rem 1rem;
}

.premium-lock-strip span {
  color: var(--green);
  flex: 0 0 auto;
}

.scouting-report-shell {
  padding: clamp(1rem, 2vw, 1.6rem);
}

.scouting-report-hero {
  align-items: stretch;
  background:
    radial-gradient(circle at 82% 10%, rgba(85, 255, 34, 0.16), transparent 24rem),
    linear-gradient(120deg, rgba(8, 17, 22, 0.98), rgba(5, 11, 12, 0.98));
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  min-height: 360px;
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.scouting-report-photo {
  align-items: flex-end;
  background:
    radial-gradient(circle at 50% 58%, rgba(85, 255, 34, 0.18), transparent 46%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.scouting-report-photo img {
  filter: drop-shadow(0 0 26px rgba(85, 255, 34, 0.22));
  max-height: 330px;
  max-width: 100%;
  object-fit: contain;
}

.scouting-report-title {
  align-self: center;
}

.scouting-eyebrow {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.scouting-report-title h1 {
  color: #fff;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.9;
  margin: 0;
  max-width: 780px;
}

.scouting-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.scouting-meta span {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e8f0ee;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.42rem 0.68rem;
}

.scouting-report-title > p:not(.scouting-eyebrow) {
  color: #c7d4d1;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
  max-width: 760px;
}

.scouting-verdict-card {
  align-self: center;
  background:
    radial-gradient(circle at 100% 0, rgba(85, 255, 34, 0.18), transparent 70%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(85, 255, 34, 0.28);
  border-radius: 12px;
  padding: 1rem;
}

.scouting-verdict-card span,
.scouting-verdict-card small,
.scouting-section span,
.scouting-metric-strip span,
.scouting-metric-strip small {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.scouting-verdict-card strong {
  color: var(--green);
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  margin: 0.55rem 0;
}

.scouting-metric-strip {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0.85rem 0;
}

.scouting-metric-strip article {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem;
}

.scouting-metric-strip strong {
  color: var(--green);
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin: 0.45rem 0;
}

.scouting-report-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scouting-section {
  background:
    radial-gradient(circle at 90% 0, rgba(85, 255, 34, 0.08), transparent 18rem),
    rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.scouting-section.scouting-full {
  grid-column: 1 / -1;
}

.scouting-section h2 {
  color: #fff;
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  line-height: 1;
  margin: 0.5rem 0 0.75rem;
}

.scouting-section p {
  color: #d7e2df;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.premium-report-shell {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.premium-report {
  background:
    radial-gradient(circle at 82% 0, rgba(85, 255, 34, 0.13), transparent 30rem),
    linear-gradient(180deg, rgba(8, 17, 19, 0.98), rgba(3, 8, 9, 0.99));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.premium-report-header {
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1fr) 280px;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.premium-report-header h1 {
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.88;
  margin: 0;
  max-width: 980px;
}

.premium-report-facts {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.25rem 0 0;
}

.premium-report-facts div {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
}

.premium-report-facts dt {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 950;
  text-transform: uppercase;
}

.premium-report-facts dd {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 950;
  margin: 0.35rem 0 0;
}

.premium-report-facts dd span {
  color: var(--green);
  font-size: 1.8rem;
}

.premium-report-facts dd small {
  color: var(--green);
  font-size: 0.9rem;
}

.premium-report-player {
  align-items: center;
  background:
    radial-gradient(circle at 50% 58%, rgba(85, 255, 34, 0.2), transparent 48%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(85, 255, 34, 0.22);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  overflow: hidden;
  padding: 0.9rem;
}

.premium-report-player img {
  filter: drop-shadow(0 0 24px rgba(85, 255, 34, 0.22));
  max-height: 245px;
  max-width: 100%;
  object-fit: contain;
}

.premium-report-player span,
.premium-report-player b {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.premium-report-section {
  border-bottom: 1px solid var(--line);
  padding: clamp(1.15rem, 2.4vw, 1.65rem);
}

.premium-report-section h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  line-height: 0.98;
  margin: 0 0 1rem;
}

.executive-summary p,
.premium-copy-block p,
.final-verdict-copy p {
  color: #dce7e3;
  font-size: 1.03rem;
  line-height: 1.72;
  margin: 0 0 0.95rem;
  max-width: 980px;
}

.executive-summary p:last-child,
.premium-copy-block p:last-child {
  margin-bottom: 0;
}

.premium-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-two-column > *,
.premium-report-section {
  min-width: 0;
}

.premium-two-column .premium-report-section:first-child {
  border-right: 1px solid var(--line);
}

.role-fit-report-row {
  align-items: start;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.role-fit-report-row .current-role-card {
  align-self: start;
  border-bottom: 0;
}

.secondary-role-fit-list {
  display: grid;
  gap: 0.7rem;
}

.secondary-role-fit-card {
  background:
    radial-gradient(circle at 100% 0, rgba(85, 255, 34, 0.1), transparent 13rem),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 0.9rem 1rem;
}

.secondary-role-fit-card header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.secondary-role-fit-card h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0;
}

.secondary-role-fit-card header strong {
  background: rgba(85, 255, 34, 0.1);
  border: 1px solid rgba(85, 255, 34, 0.32);
  border-radius: 999px;
  color: var(--green);
  flex: 0 0 auto;
  font-size: 0.9rem;
  padding: 0.3rem 0.55rem;
}

.secondary-role-fit-card p {
  color: #b7c3c0;
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0.55rem 0 0;
  max-width: 68ch;
  overflow-wrap: anywhere;
}

.premium-point-list {
  display: grid;
  gap: 0.75rem;
}

.premium-point-list article {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem;
}

.premium-point-list h3,
.team-fit-columns h3,
.team-fit-list h4 {
  color: var(--green);
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.premium-point-list p,
.team-fit-list p,
.team-fit-list li {
  color: #d9e4e0;
  line-height: 1.5;
  margin: 0;
}

.metric-evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}

.metric-evidence-list li {
  background: rgba(20, 169, 255, 0.08);
  border: 1px solid rgba(20, 169, 255, 0.22);
  border-radius: 999px;
  color: #bfe8ff;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0.3rem 0.5rem;
}

.current-role-readout {
  background:
    radial-gradient(circle at 100% 0, rgba(85, 255, 34, 0.18), transparent 16rem),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(85, 255, 34, 0.26);
  border-radius: 12px;
  padding: 1.1rem;
}

.current-role-readout span {
  color: var(--green);
  display: block;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.05;
}

.current-role-readout strong {
  color: #fff;
  display: block;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  margin: 0.8rem 0 0.45rem;
}

.current-role-readout small {
  color: #dbe6e2;
  font-size: 1rem;
  font-weight: 900;
}

.team-fit-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-fit-list {
  display: grid;
  gap: 0.8rem;
}

.team-fit-list article {
  background:
    radial-gradient(circle at 100% 0, rgba(85, 255, 34, 0.09), transparent 15rem),
    rgba(255, 255, 255, 0.032);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem;
}

.team-fit-list strong,
.team-fit-list b {
  color: #fff;
  display: block;
  font-size: 0.95rem;
  margin: 0.3rem 0;
}

.team-fit-list ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
}

.premium-report-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.premium-report-table th,
.premium-report-table td {
  border-bottom: 1px solid var(--line);
  color: #e7f0ed;
  padding: 0.85rem 0.25rem;
  text-align: left;
}

.premium-report-table th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.premium-report-table td:last-child {
  color: var(--green);
  font-weight: 950;
  overflow-wrap: anywhere;
  text-align: left;
}

.premium-report-table th:first-child,
.premium-report-table td:first-child {
  width: 28%;
}

.premium-report-table td b {
  color: #fff;
  display: block;
}

.report-table-rationale {
  color: #aebbb8;
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 0.35rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: normal;
}

.historical-comparison-table th:first-child,
.historical-comparison-table td:first-child {
  width: 78%;
}

.historical-comparison-table th:last-child,
.historical-comparison-table td:last-child {
  width: 22%;
}

.historical-comparison-table td {
  min-width: 0;
  overflow: hidden;
  vertical-align: top;
}

.role-evolution-note {
  background: rgba(255, 255, 255, 0.035);
  border-left: 3px solid var(--green);
  color: #d9e4e0;
  line-height: 1.55;
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.85rem;
}

.role-ceiling-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 1rem;
  padding: 0.95rem;
}

.role-ceiling-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.role-ceiling-card dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.role-ceiling-card div {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.role-ceiling-card div:first-child {
  border-top: 0;
  padding-top: 0;
}

.role-ceiling-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.role-ceiling-card dd {
  color: var(--green);
  font-size: 1rem;
  font-weight: 950;
  margin: 0.25rem 0 0;
}

.contract-report-card {
  background:
    radial-gradient(circle at 100% 0, rgba(85, 255, 34, 0.15), transparent 15rem),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(85, 255, 34, 0.24);
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.contract-report-card span,
.projection-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.73rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contract-report-card strong {
  color: var(--green);
  display: block;
  font-size: 3.2rem;
  line-height: 1;
  margin: 0.45rem 0;
}

.contract-report-card small {
  color: #fff;
  font-weight: 900;
}

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

.projection-grid article {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 110px;
  padding: 0.9rem;
}

.projection-grid strong {
  color: #fff;
  display: block;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  line-height: 1;
  margin-top: 0.55rem;
}

.projection-grid .contender-readiness-card {
  align-items: center;
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  min-height: 135px;
  padding: 1.2rem 1.6rem;
}

.projection-grid .contender-readiness-card strong {
  color: var(--green);
  font-size: clamp(2.75rem, 4vw, 4.25rem);
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.projection-grid .contender-readiness-card span {
  color: #f4fbf6;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  line-height: 1.15;
}

.projection-grid .playoff-translation-card {
  grid-column: 1 / -1;
  min-height: 0;
}

.projection-grid .playoff-translation-card strong {
  color: #dce7e3;
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  font-weight: 700;
  line-height: 1.55;
  max-width: 80ch;
}

.final-verdict {
  border-bottom: 0;
}

.championship-analysis {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.final-verdict-copy {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.final-verdict-copy p {
  background: rgba(255, 255, 255, 0.028);
  border-left: 3px solid rgba(85, 255, 34, 0.65);
  margin: 0;
  max-width: 1100px;
  padding: 0.8rem 0.95rem;
}

.overall-grade {
  align-items: center;
  background: rgba(85, 255, 34, 0.1);
  border: 1px solid rgba(85, 255, 34, 0.28);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 950;
  gap: 0.45rem;
  margin-top: 0.45rem;
  padding: 0.65rem 1rem;
}

.overall-grade strong {
  color: var(--green);
  font-size: 1.5rem;
}

.share-card-preview {
  background:
    radial-gradient(circle at 90% 16%, rgba(105, 245, 51, 0.2), transparent 48%),
    linear-gradient(145deg, rgba(13, 23, 27, 0.98), rgba(5, 8, 10, 0.98));
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  min-height: 220px;
  padding: 1rem;
}

.share-card-preview span,
.share-card-preview small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.share-card-preview h2 {
  font-size: 2rem;
  line-height: 1;
  margin: 1.2rem 0 0.4rem;
}

.share-card-preview p {
  color: var(--green);
  font-weight: 900;
  margin: 0 0 1rem;
}

.share-card-preview strong {
  color: var(--green);
  display: block;
  font-size: 4rem;
  line-height: 0.9;
}

.tool-hero {
  background:
    radial-gradient(circle at 82% 24%, rgba(19, 168, 255, 0.14), transparent 24rem),
    linear-gradient(135deg, rgba(13, 23, 27, 0.96), rgba(5, 8, 9, 0.98));
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 0.8rem;
  min-height: 280px;
  padding: clamp(1rem, 3vw, 2rem);
}

.tool-hero h1 {
  font-size: clamp(3rem, 6vw, 6rem);
}

.tool-hero p:not(.eyebrow) {
  color: #cad4d8;
  line-height: 1.6;
  max-width: 760px;
}

.methodology-page main {
  max-width: 1480px;
}

.method-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(85, 255, 34, 0.16), transparent 25rem),
    linear-gradient(135deg, rgba(13, 23, 27, 0.96), rgba(5, 8, 9, 0.98));
}

.method-section {
  margin-top: 1.5rem;
}

.method-section .section-title {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.method-section .section-title h2 {
  font-size: clamp(2.4rem, 4.6vw, 4.25rem);
  line-height: 1;
  margin: 0;
  text-align: right;
}

.method-lede {
  color: #cbd5d8;
  line-height: 1.6;
  margin: 0 0 0.9rem;
  max-width: 820px;
}

.method-metric-grid,
.method-tier-grid,
.method-rule-grid,
.method-validation-grid,
.method-example-grid {
  display: grid;
  gap: 0.75rem;
}

.method-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-tier-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.method-rule-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-validation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-example-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.method-metric-grid article,
.method-tier-grid article,
.method-rule-grid article,
.method-validation-grid article,
.method-example-grid article,
.method-role-table-wrap {
  background:
    radial-gradient(circle at 100% 0, rgba(85, 255, 34, 0.08), transparent 14rem),
    linear-gradient(145deg, rgba(12, 22, 26, 0.97), rgba(5, 9, 11, 0.98));
  border: 1px solid var(--line);
  border-radius: 10px;
}

.method-metric-grid article,
.method-tier-grid article,
.method-rule-grid article,
.method-validation-grid article,
.method-example-grid article {
  min-height: 220px;
  padding: 1rem;
}

.method-metric-grid span {
  align-items: center;
  border: 1px solid rgba(85, 255, 34, 0.7);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-size: 0.68rem;
  font-weight: 950;
  height: 36px;
  justify-content: center;
  margin-bottom: 0.85rem;
  width: 36px;
}

.method-metric-grid h2,
.method-tier-grid h3,
.method-rule-grid h3,
.method-validation-grid h3,
.method-example-grid h3 {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.1;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.method-metric-grid p,
.method-tier-grid p,
.method-rule-grid p,
.method-validation-grid p,
.method-example-grid p,
.method-metric-grid li {
  color: #cbd5d8;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.method-validation-grid span {
  color: var(--green);
  display: block;
  font-size: 0.76rem;
  font-weight: 950;
  margin-bottom: 0.8rem;
}

.method-example-grid b {
  color: var(--green);
}

.role-tool-page main {
  max-width: 1480px;
}

.role-tool-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(85, 255, 34, 0.14), transparent 22rem),
    linear-gradient(145deg, rgba(10, 18, 20, 0.98), rgba(5, 8, 9, 0.98));
}

.role-tool-hero.premium {
  background:
    radial-gradient(circle at 82% 8%, rgba(19, 168, 255, 0.15), transparent 24rem),
    radial-gradient(circle at 20% 70%, rgba(85, 255, 34, 0.12), transparent 20rem),
    linear-gradient(145deg, rgba(10, 18, 20, 0.98), rgba(5, 8, 9, 0.98));
}

.role-tool-layout,
.projection-lab-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 330px minmax(0, 1fr);
  margin-top: 1rem;
}

.role-tool-picker {
  align-self: start;
  display: grid;
  gap: 0.85rem;
  position: sticky;
  top: 88px;
}

.role-tool-picker label {
  color: var(--muted);
  display: grid;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 0.38rem;
  text-transform: uppercase;
}

.role-tool-picker select,
.role-tool-picker input {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  min-height: 44px;
  padding: 0 0.75rem;
}

.role-tool-mini {
  background:
    radial-gradient(circle at 100% 0%, rgba(85, 255, 34, 0.11), transparent 12rem),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem;
}

.role-tool-avatar {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  height: 68px;
  justify-content: center;
  overflow: hidden;
  width: 68px;
}

.role-tool-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.role-tool-avatar span {
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 950;
}

.role-tool-mini strong {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.05;
}

.role-tool-mini small {
  color: var(--muted);
  font-weight: 850;
}

.role-tool-premium-link,
.role-tool-upgrade a,
.role-tool-current a,
.role-tool-matches a,
.development-roadmap a,
.projection-scoreboard a {
  color: inherit;
}

.role-tool-premium-link,
.role-tool-upgrade a {
  align-items: center;
  background: var(--green);
  border-radius: 7px;
  color: #061007;
  display: flex;
  font-weight: 950;
  justify-content: center;
  min-height: 46px;
  padding: 0 0.9rem;
}

.role-tool-premium-link {
  color: #061007 !important;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: none;
}

.role-tool-premium-link.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #fff !important;
}

.role-tool-results,
.projection-lab-main {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-tool-current,
.projection-scoreboard,
.role-tool-upgrade,
.role-tool-table,
.role-tool-matches,
.projection-sliders,
.development-roadmap {
  min-width: 0;
}

.role-tool-current {
  grid-column: 1 / -1;
}

.role-tool-score-head {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
}

.role-tool-score-head h2,
.projection-scoreboard h2,
.role-tool-upgrade h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  margin: 0;
}

.role-tool-score-head p,
.projection-scoreboard p,
.role-tool-upgrade p,
.role-tool-upgrade li {
  color: #c9d2cf;
  line-height: 1.45;
}

.role-tool-score-head strong {
  color: var(--green);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
}

.role-tool-status {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
}

.role-tool-status span,
.role-tool-table th,
.projection-score-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.role-tool-status b,
.role-tool-status a {
  color: #fff;
  display: block;
  font-size: 1.25rem;
  font-weight: 950;
  margin-top: 0.2rem;
}

.role-tool-table {
  overflow-x: auto;
}

.role-tool-table table {
  border-collapse: collapse;
  width: 100%;
}

.role-tool-table th,
.role-tool-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.72rem 0.5rem;
  text-align: left;
}

.role-tool-table td {
  color: #fff;
  font-weight: 850;
}

.role-tool-table td small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

.role-read {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 950;
  padding: 0.28rem 0.5rem;
}

.role-read.above-target,
.role-read.on-target {
  background: rgba(85, 255, 34, 0.12);
  border-color: rgba(85, 255, 34, 0.42);
  color: var(--green);
}

.role-read.gap {
  background: rgba(255, 111, 97, 0.12);
  border-color: rgba(255, 111, 97, 0.38);
  color: #ffb0a8;
}

.role-tool-matches {
  display: grid;
  gap: 0.65rem;
}

.role-tool-matches #role-match-list {
  display: grid;
  gap: 0.5rem;
}

.role-tool-matches a {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 32px 1fr auto;
  padding: 0.72rem;
}

.role-tool-matches span {
  color: var(--green);
  font-weight: 950;
}

.role-tool-matches strong {
  color: #fff;
}

.role-tool-matches b {
  color: var(--green);
}

.role-tool-upgrade {
  background:
    radial-gradient(circle at 100% 0%, rgba(85, 255, 34, 0.16), transparent 18rem),
    linear-gradient(145deg, rgba(10, 20, 21, 0.98), rgba(4, 8, 9, 0.98));
}

.role-tool-upgrade ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.projection-scoreboard {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.85fr);
}

.projection-score-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, 1fr);
}

.projection-score-grid article {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
}

.projection-score-grid strong {
  color: var(--green);
  display: block;
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
}

.role-tool-page .projection-scoreboard h2 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.projection-sliders {
  grid-column: 1 / -1;
}

#slider-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.projection-slider {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem;
}

.projection-slider span {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.projection-slider b {
  color: #fff;
}

.projection-slider small {
  color: var(--muted);
  font-weight: 850;
}

.projection-slider input {
  accent-color: var(--green);
  width: 100%;
}

.projection-slider output {
  color: var(--green);
  font-size: 1.45rem;
  font-weight: 950;
}

.development-roadmap ol {
  color: #dce6e9;
  display: grid;
  gap: 0.7rem;
  line-height: 1.45;
  margin: 0;
  padding-left: 1.2rem;
}

.fit-engine-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(19, 168, 255, 0.11), transparent 32rem),
    radial-gradient(circle at 80% 18%, rgba(85, 255, 34, 0.12), transparent 30rem),
    #030708;
}

.fit-engine-shell {
  max-width: 1760px;
}

.fit-engine-title {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1rem 0 1.15rem;
}

.fit-engine-title h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 0.9;
  margin: 0;
  text-transform: uppercase;
}

.fit-engine-title p:last-child {
  color: #b8c6c5;
  line-height: 1.45;
  margin: 0;
  max-width: 620px;
}

.fit-engine-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 420px minmax(0, 1fr) 380px;
  margin-top: 1rem;
}

.fit-side,
.fit-main,
.fit-right {
  display: grid;
  gap: 1rem;
}

.fit-side,
.fit-right {
  align-content: start;
}

.fit-engine-page .panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(19, 168, 255, 0.08), transparent 17rem),
    linear-gradient(145deg, rgba(10, 19, 23, 0.96), rgba(5, 9, 11, 0.96));
  border-color: rgba(148, 180, 190, 0.22);
}

.fit-player-card {
  overflow: hidden;
  padding: 0;
}

.fit-player-main {
  display: grid;
  gap: 1rem;
  grid-template-columns: 130px 1fr;
  padding: 1rem;
}

.fit-player-main img,
.fit-player-main > span {
  align-items: center;
  align-self: stretch;
  background:
    radial-gradient(circle at 50% 34%, rgba(85, 255, 34, 0.16), transparent 7rem),
    rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  display: flex;
  font-size: 2rem;
  font-weight: 950;
  justify-content: center;
  min-height: 160px;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.fit-player-main h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2.4vw, 2.8rem);
  line-height: 0.95;
  margin: 0.15rem 0 0.2rem;
  text-transform: uppercase;
}

.fit-player-main small,
.fit-player-split small {
  color: var(--muted);
  font-weight: 800;
}

.fit-bio-row {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1rem;
}

.fit-bio-row span,
.fit-player-split span,
.fit-contract-grid span {
  color: var(--muted);
  display: grid;
  font-size: 0.72rem;
  font-weight: 950;
  gap: 0.22rem;
  text-transform: uppercase;
}

.fit-bio-row b,
.fit-player-split b,
.fit-contract-grid b,
.fit-contract-grid a {
  color: #fff;
  font-size: 1.05rem;
  text-transform: none;
}

.fit-bio-row span:last-child b {
  color: var(--green);
}

.fit-player-split {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.fit-player-split span {
  padding: 1rem;
}

.fit-player-split span + span {
  border-left: 1px solid var(--line);
}

.fit-player-split b:first-letter {
  text-transform: uppercase;
}

.fit-destinations header,
.fit-map-card header,
.fit-breakdown-card header,
.fit-team-detail header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.fit-destinations h2,
.fit-contract-card h2,
.fit-map-card h2,
.fit-team-detail h2,
.fit-summary-card h2,
.fit-breakdown-card h2,
.fit-scout-card h2,
.fit-bars h2,
.fit-outlook h2 {
  color: #fff;
  font-size: 1.08rem;
  margin: 0;
  text-transform: uppercase;
}

.fit-destinations h2 span,
.fit-breakdown-card h2 span {
  color: var(--muted);
  font-size: 0.75rem;
}

.fit-destinations button,
.fit-breakdown-list button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: #fff;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 0.62rem;
  grid-template-columns: 24px 30px 1fr auto;
  padding: 0.68rem 0;
  text-align: left;
  width: 100%;
}

.fit-destinations button.active,
.fit-breakdown-list button.active {
  background: linear-gradient(90deg, rgba(19, 168, 255, 0.14), rgba(85, 255, 34, 0.05));
}

.fit-destinations button img,
.fit-breakdown-list img,
.fit-team-title img,
.fit-outlook-grid img {
  height: 30px;
  width: 30px;
}

.fit-destinations button span {
  color: var(--muted);
  font-weight: 950;
}

.fit-destinations button strong,
.fit-breakdown-list strong {
  color: var(--green);
  font-weight: 950;
}

.fit-destinations button small {
  color: #c6d0d0;
  grid-column: 3 / -1;
  margin-top: -0.45rem;
}

.fit-destinations header button,
#view-all-teams {
  background: rgba(19, 168, 255, 0.12);
  border: 1px solid rgba(19, 168, 255, 0.34);
  border-radius: 7px;
  color: #dff3ff;
  cursor: pointer;
  font-weight: 900;
  padding: 0.5rem 0.75rem;
}

.fit-contract-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1rem;
}

.fit-contract-grid a {
  color: #13a8ff;
}

.fit-contract-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 1rem 0 0;
  padding-top: 0.85rem;
}

.fit-map-card {
  min-height: 590px;
}

.fit-map-card label {
  color: var(--muted);
  display: grid;
  font-size: 0.7rem;
  font-weight: 950;
  gap: 0.35rem;
  min-width: 280px;
  text-transform: uppercase;
}

.fit-map-card select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #fff;
  min-height: 42px;
  padding: 0 0.7rem;
}

.fit-map-stage {
  background:
    radial-gradient(circle at 53% 48%, rgba(85, 255, 34, 0.17), transparent 18rem),
    radial-gradient(circle at 80% 30%, rgba(19, 168, 255, 0.12), transparent 16rem),
    linear-gradient(rgba(85, 255, 34, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 255, 34, 0.08) 1px, transparent 1px),
    #071014;
  background-size: auto, auto, 54px 54px, 54px 54px, auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 505px;
  overflow: hidden;
  position: relative;
}

.fit-map-stage::before {
  background:
    radial-gradient(ellipse at 47% 48%, rgba(68, 86, 98, 0.55), rgba(68, 86, 98, 0.08) 44%, transparent 62%);
  content: "";
  inset: 6%;
  opacity: 0.42;
  position: absolute;
}

.fit-real-map {
  filter:
    grayscale(1)
    brightness(0.82)
    contrast(1.55)
    sepia(0.18)
    hue-rotate(70deg)
    drop-shadow(0 0 32px rgba(85, 255, 34, 0.13));
  height: 100%;
  left: 50%;
  mix-blend-mode: screen;
  object-fit: contain;
  opacity: 0.34;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 1;
}

.fit-team-node {
  --color: var(--green);
  align-items: center;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid color-mix(in srgb, var(--color), white 20%);
  border-radius: 50%;
  box-shadow: 0 0 24px color-mix(in srgb, var(--color), transparent 38%);
  cursor: pointer;
  display: flex;
  height: 54px;
  justify-content: center;
  left: var(--x);
  padding: 0;
  position: absolute;
  top: var(--y);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, box-shadow 160ms ease;
  width: 54px;
  z-index: 2;
}

/* Trade Targets */
.trade-targets-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(42, 214, 177, 0.12), transparent 34rem),
    radial-gradient(circle at 86% 10%, rgba(85, 255, 34, 0.1), transparent 32rem),
    #02080b;
}

.trade-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: 300px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1540px;
  padding: 1.2rem;
}

.trade-sidebar {
  display: grid;
  gap: 0.8rem;
  align-self: start;
}

.trade-sidebar .panel,
.trade-target-board {
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 214, 177, 0.1), transparent 22rem),
    linear-gradient(150deg, rgba(10, 22, 31, 0.94), rgba(5, 11, 13, 0.96));
}

.trade-team-head {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}

.trade-team-head img {
  height: 58px;
  width: 58px;
}

.trade-team-head h2 {
  font-size: 1.05rem;
  margin: 0;
}

.trade-team-head span,
.trade-context span,
.trade-needs span,
.trade-target-main p,
.trade-package small {
  color: var(--muted);
}

.trade-team-card a,
.trade-filters button {
  align-items: center;
  border: 1px solid rgba(42, 214, 177, 0.4);
  border-radius: 5px;
  color: #8eeed7;
  display: flex;
  font-weight: 900;
  justify-content: center;
  margin-top: 1rem;
  min-height: 38px;
}

.trade-context h2,
.trade-needs h2,
.trade-filters h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
}

.trade-context p,
.trade-needs p {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  padding: 0.7rem 0;
}

.trade-needs p {
  grid-template-columns: minmax(0, 1fr) auto;
}

.trade-needs em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
  grid-column: 2;
}

.trade-context b,
.trade-needs b {
  color: #fff;
}

.trade-filters label {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.45rem;
  margin-top: 1rem;
  text-transform: uppercase;
}

.trade-filters output {
  color: #fff;
  justify-self: end;
}

.trade-filters input {
  accent-color: #55ff22;
}

.trade-main {
  display: grid;
  gap: 1rem;
}

.trade-title {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0 1rem;
}

.trade-title h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.95;
  margin: 0;
}

.trade-title p {
  color: #d6dfdd;
  margin: 0.55rem 0 0;
}

.trade-title label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.45rem;
  text-transform: uppercase;
}

.trade-title select {
  min-width: 270px;
}

.trade-target-board {
  padding: 1rem;
}

.trade-target-board > header,
.trade-view-toggle {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.trade-target-board h2 {
  margin: 0;
}

.trade-target-board header p {
  color: var(--muted);
  margin: 0.2rem 0 0;
}

.trade-view-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  gap: 0.25rem;
  padding: 0.25rem;
}

.trade-view-toggle span {
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0 0.45rem;
}

.trade-view-toggle button {
  border-radius: 4px;
  color: #fff;
  min-height: 32px;
  padding: 0 0.85rem;
}

.trade-view-toggle button.active {
  background: linear-gradient(135deg, #55ff22, #2ad6b1);
  color: #061006;
}

.trade-target-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.trade-target-list.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-target-card {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 1px),
    radial-gradient(circle at 0% 0%, rgba(42, 214, 177, 0.11), transparent 20rem),
    rgba(7, 15, 20, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(310px, 1.5fr) 150px 160px 180px minmax(230px, 1fr);
  padding: 1rem;
}

.trade-target-list.grid .trade-target-card {
  grid-template-columns: 1fr;
}

.trade-target-main {
  align-items: center;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto 92px minmax(0, 1fr);
}

.trade-rank {
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 950;
}

.trade-target-main > img {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  height: 92px;
  object-fit: cover;
  object-position: top center;
  width: 92px;
}

.trade-target-main h3 {
  font-size: 1.3rem;
  margin: 0;
}

.trade-target-main a {
  color: #fff;
}

.trade-target-main p {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  margin: 0.35rem 0;
}

.trade-target-main p img {
  height: 18px;
  width: 18px;
}

.trade-target-main strong {
  color: var(--green);
}

.trade-fit-score,
.trade-grades,
.trade-why,
.trade-package {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 1rem;
}

.trade-fit-score span,
.trade-package > span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trade-fit-score b {
  color: var(--green);
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  margin-top: 0.4rem;
}

.trade-fit-score small {
  color: var(--green);
  font-weight: 900;
}

.trade-fit-radar {
  margin: 0;
  min-width: 160px;
}

.trade-fit-radar svg {
  display: block;
  height: 132px;
  margin: 0 auto;
  overflow: visible;
  width: 132px;
}

.trade-radar-grid polygon,
.trade-radar-grid line {
  fill: none;
  stroke: rgba(202, 255, 236, 0.14);
  stroke-width: 1;
}

.trade-radar-shape {
  fill: rgba(85, 255, 34, 0.24);
  filter: drop-shadow(0 0 10px rgba(42, 214, 177, 0.26));
  stroke: var(--green);
  stroke-linejoin: round;
  stroke-width: 2;
}

.trade-fit-radar circle {
  fill: #071014;
  stroke: var(--green);
  stroke-width: 2;
}

.trade-fit-radar figcaption {
  display: grid;
  gap: 0.3rem 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-fit-radar figcaption span {
  color: var(--muted);
  display: flex;
  font-size: 0.66rem;
  font-weight: 800;
  justify-content: space-between;
  text-transform: uppercase;
}

.trade-fit-radar figcaption b {
  color: var(--green);
}

.trade-fit-radar figcaption em {
  color: rgba(220, 235, 240, 0.55);
  font-size: 0.62rem;
  font-style: normal;
  grid-column: 1 / -1;
  text-align: center;
}

.trade-grades {
  display: grid;
  gap: 0.8rem;
}

.trade-grades span {
  color: var(--muted);
}

.trade-grades b {
  color: var(--green);
  display: block;
  font-size: 1.9rem;
}

.trade-why h4 {
  margin: 0 0 0.5rem;
}

.trade-why ul {
  color: #eaf2f0;
  line-height: 1.7;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trade-why li::before {
  color: var(--green);
  content: "✓ ";
}

.trade-package {
  grid-column: 1 / -1;
}

.trade-package div {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.6rem;
}

.trade-package p {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  display: grid;
  gap: 0.1rem 0.6rem;
  grid-template-columns: 28px minmax(0, 1fr);
  margin: 0;
  padding: 0.55rem;
}

.trade-package i {
  align-items: center;
  background: rgba(42, 214, 177, 0.14);
  border-radius: 50%;
  color: #8eeed7;
  display: flex;
  font-style: normal;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.trade-package small {
  grid-column: 2;
}

.trade-package .trade-package-note {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  grid-column: auto;
  line-height: 1.45;
  margin-top: 0.65rem;
}

@media (max-width: 1180px) {
  .trade-shell {
    grid-template-columns: 1fr;
  }

  .trade-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trade-target-card {
    grid-template-columns: 1fr 140px;
  }

  .trade-package {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .trade-sidebar,
  .trade-target-list.grid,
  .trade-target-card,
  .trade-title {
    grid-template-columns: 1fr;
  }

  .trade-title {
    align-items: stretch;
    display: grid;
  }

  .trade-package div {
    grid-template-columns: 1fr;
  }
}

.fit-team-node.good { --color: #ffd43b; }
.fit-team-node.watch { --color: #13a8ff; }

/* Metric explainer */
.metric-explainer-page {
  background:
    radial-gradient(circle at 15% 8%, rgba(85, 255, 34, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 20%, rgba(19, 168, 255, 0.1), transparent 30rem),
    #030708;
}

.metric-explainer-shell {
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1380px;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.metric-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.metric-switcher a {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
  padding: 0.55rem 0.9rem;
  text-transform: uppercase;
}

.metric-switcher a:hover,
.metric-switcher a.active {
  background: rgba(85, 255, 34, 0.12);
  border-color: var(--green);
  color: var(--green);
}

.metric-explainer-hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), transparent 1px),
    radial-gradient(circle at 80% 25%, rgba(85, 255, 34, 0.15), transparent 24rem),
    rgba(5, 12, 14, 0.94);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 220px;
  min-height: 310px;
  padding: clamp(1.25rem, 4vw, 3.5rem);
}

.metric-explainer-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin: 0.35rem 0 1rem;
}

.metric-explainer-hero > div > p:last-child {
  color: #cfdbd8;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  max-width: 850px;
}

.metric-explainer-hero aside {
  align-items: center;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(85, 255, 34, 0.2), rgba(85, 255, 34, 0.035));
  border: 1px solid rgba(85, 255, 34, 0.35);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
}

.metric-explainer-hero aside span,
.metric-explainer-hero aside small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 900;
  line-height: 1.4;
  text-transform: uppercase;
}

.metric-explainer-hero aside strong {
  color: var(--green);
  font-size: 4.4rem;
  line-height: 1;
}

.metric-explainer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-explainer-card,
.metric-tier-section,
.metric-explainer-cta {
  background: rgba(7, 15, 18, 0.9);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: clamp(1rem, 2.5vw, 1.6rem);
}

.metric-explainer-card h2,
.metric-tier-section h2,
.metric-explainer-cta h2 {
  margin: 0.25rem 0 1rem;
}

.metric-explainer-card ul {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.metric-explainer-card li {
  color: #d8e3e0;
  line-height: 1.55;
  padding-left: 1.1rem;
  position: relative;
}

.metric-explainer-card li::before {
  color: var(--green);
  content: "•";
  left: 0;
  position: absolute;
}

.metric-formula-card {
  grid-column: 1 / -1;
}

.metric-formula-card > div {
  display: grid;
  gap: 0.65rem;
}

.metric-formula-card code {
  align-items: start;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: #e8f3f0;
  display: grid;
  font-family: "SFMono-Regular", Consolas, monospace;
  gap: 0.75rem;
  grid-template-columns: 28px minmax(0, 1fr);
  line-height: 1.6;
  padding: 0.8rem;
  white-space: normal;
}

.metric-formula-card code span {
  align-items: center;
  background: rgba(85, 255, 34, 0.12);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-family: Inter, sans-serif;
  font-size: 0.7rem;
  font-weight: 950;
  height: 28px;
  justify-content: center;
}

.metric-tier-section > div:first-child {
  margin-bottom: 1rem;
}

.metric-tier-list {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.metric-tier-list article {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--green);
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
}

.metric-tier-list strong {
  color: var(--green);
  font-size: 1.15rem;
}

.metric-tier-list span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.metric-explainer-cta {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.metric-explainer-cta a {
  background: var(--green);
  border-radius: 6px;
  color: #051006;
  font-weight: 950;
  padding: 0.8rem 1rem;
}

@media (max-width: 760px) {
  .metric-explainer-hero,
  .metric-explainer-grid {
    grid-template-columns: 1fr;
  }

  .metric-explainer-hero aside {
    aspect-ratio: auto;
    border-radius: 8px;
  }

  .metric-formula-card {
    grid-column: auto;
  }

  .metric-explainer-cta {
    align-items: stretch;
    display: grid;
    gap: 0.75rem;
  }

  .metric-explainer-cta a {
    text-align: center;
  }
}

/* Shared dropdown system */
select {
  appearance: none !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    linear-gradient(45deg, transparent 50%, var(--green) 50%) right 0.85rem center / 8px 8px no-repeat,
    #17201f !important;
  border: 1px solid rgba(85, 255, 34, 0.32) !important;
  border-radius: 8px !important;
  color: #f4fbf6 !important;
  cursor: pointer;
  font: inherit !important;
  font-weight: 850 !important;
  min-height: 42px !important;
  padding: 0.55rem 2.2rem 0.55rem 0.75rem !important;
}

select:hover,
select:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(85, 255, 34, 0.12);
  outline: none;
}

select option {
  background: #17201f;
  color: #f4fbf6;
}

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

.team-player-picker {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-player-picker > label {
  display: grid;
  gap: 0.35rem;
  min-width: 0 !important;
}

.role-tool-picker .team-player-picker {
  grid-template-columns: 1fr;
}

@media (max-width: 620px) {
  .team-player-picker {
    grid-template-columns: 1fr;
  }
}
.fit-team-node.poor { --color: #ff5a75; }

.fit-team-node img {
  height: 38px;
  width: 38px;
}

.fit-team-node span {
  background: #05090a;
  border: 1px solid var(--color);
  border-radius: 999px;
  bottom: -10px;
  color: var(--color);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  padding: 0.2rem 0.32rem;
  position: absolute;
  right: -8px;
}

.fit-team-node:hover,
.fit-team-node.selected {
  box-shadow: 0 0 38px color-mix(in srgb, var(--color), transparent 12%);
  transform: translate(-50%, -50%) scale(1.18);
  z-index: 3;
}

.fit-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
}

.fit-map-legend span {
  align-items: center;
  color: #d4dfdd;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  gap: 0.35rem;
  text-transform: uppercase;
}

.fit-map-legend i {
  background: var(--green);
  border-radius: 50%;
  display: inline-flex;
  height: 12px;
  width: 12px;
}

.fit-map-legend .good { background: #ffd43b; }
.fit-map-legend .watch { background: #13a8ff; }
.fit-map-legend .poor { background: #ff5a75; }

.fit-team-detail header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}

.fit-team-title {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}

.fit-team-title img {
  height: 48px;
  width: 48px;
}

.fit-team-title small,
.fit-team-detail strong {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fit-team-detail strong b {
  color: var(--green);
  font-size: 2rem;
  margin-left: 0.35rem;
}

.fit-team-detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.15fr 1fr 0.9fr;
}

.fit-team-detail h3 {
  color: #fff;
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.fit-team-detail ul {
  color: #dce6e6;
  display: grid;
  gap: 0.5rem;
  line-height: 1.45;
  margin: 0;
  padding-left: 1.1rem;
}

.fit-team-detail dl {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.fit-team-detail dl div {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem;
}

.fit-team-detail dl div + div {
  border-top: 1px solid var(--line);
}

.fit-team-detail dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fit-team-detail dd {
  color: #fff;
  font-weight: 900;
  margin: 0;
}

.fit-radar {
  align-content: center;
  display: grid;
  gap: 0.5rem;
}

.fit-radar span {
  color: #dce6e6;
  display: grid;
  font-size: 0.74rem;
  font-weight: 850;
  gap: 0.22rem;
  grid-template-columns: 90px 1fr;
}

.fit-radar span::after {
  background: linear-gradient(90deg, var(--green), #13a8ff);
  border-radius: 999px;
  content: "";
  height: 8px;
  margin-top: 0.2rem;
  width: var(--v);
}

.fit-lower-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.fit-summary-card {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.fit-ring {
  --score: 80;
  align-items: center;
  background:
    radial-gradient(circle, #061114 58%, transparent 59%),
    conic-gradient(var(--green) calc(var(--score) * 1%), rgba(255, 255, 255, 0.11) 0);
  border-radius: 50%;
  display: grid;
  height: 170px;
  justify-items: center;
  place-content: center;
  width: 170px;
}

.fit-ring strong {
  color: var(--green);
  font-size: 3rem;
  line-height: 0.9;
}

.fit-ring span {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fit-summary-list {
  display: grid;
  gap: 0.72rem;
  width: 100%;
}

.fit-summary-list span {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #dce6e6;
  display: flex;
  font-weight: 850;
  justify-content: space-between;
  padding-bottom: 0.5rem;
}

.fit-summary-list b {
  color: var(--green);
}

.fit-breakdown-list button {
  grid-template-columns: 24px 32px 1fr auto;
}

.fit-breakdown-list small {
  color: var(--muted);
  grid-column: 3 / -1;
  margin-top: -0.4rem;
}

.fit-scout-card p {
  color: #dce6e6;
  line-height: 1.55;
}

.fit-scout-card small {
  color: var(--muted);
  display: block;
  line-height: 1.45;
  margin-top: 1rem;
}

.fit-bar-row {
  align-items: center;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 145px 1fr 36px;
  margin-top: 0.72rem;
}

.fit-bar-row span,
.fit-bar-row strong {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
}

.fit-bar-row i {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  display: block;
  height: 9px;
  overflow: hidden;
}

.fit-bar-row b {
  background: linear-gradient(90deg, var(--green), #13a8ff);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.fit-outlook-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1rem;
}

.fit-outlook-grid article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  min-height: 130px;
  padding: 0.8rem;
  text-align: center;
}

.fit-outlook-grid small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fit-outlook-grid b {
  color: #fff;
}

.fit-outlook-grid strong {
  color: var(--green);
  font-size: 1.5rem;
}

.contract-engine-page {
  background:
    radial-gradient(circle at 72% 0%, rgba(139, 92, 246, 0.18), transparent 28rem),
    radial-gradient(circle at 38% 14%, rgba(19, 168, 255, 0.10), transparent 34rem),
    #030708;
}

.contract-shell {
  max-width: 1720px;
}

.contract-title {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1rem 0 1.1rem;
}

.contract-title h1 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

.contract-title label {
  color: var(--muted);
  display: grid;
  font-size: 0.72rem;
  font-weight: 950;
  gap: 0.35rem;
  min-width: 340px;
  text-transform: uppercase;
}

.contract-title select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #fff;
  min-height: 44px;
  padding: 0 0.75rem;
}

.contract-dashboard {
  display: grid;
  gap: 1rem;
  grid-template-columns: 405px minmax(0, 1fr) 380px;
  margin-top: 1rem;
}

.contract-left,
.contract-main,
.contract-right {
  display: grid;
  gap: 1rem;
}

.contract-left,
.contract-right {
  align-content: start;
}

.contract-engine-page .panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.10), transparent 16rem),
    linear-gradient(145deg, rgba(11, 20, 25, 0.96), rgba(5, 9, 12, 0.96));
  border-color: rgba(166, 188, 204, 0.22);
}

.contract-player-card {
  overflow: hidden;
  padding: 0;
}

.contract-player-head {
  display: grid;
  gap: 1rem;
  grid-template-columns: 135px 1fr;
  padding: 1rem;
}

.contract-player-head > img,
.contract-player-head > span {
  align-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(85, 255, 34, 0.12), transparent 8rem),
    rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  display: flex;
  font-size: 2rem;
  font-weight: 950;
  justify-content: center;
  min-height: 168px;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.contract-player-head h2 {
  color: #fff;
  font-size: clamp(1.45rem, 2vw, 2.25rem);
  line-height: 0.98;
  margin: 0.15rem 0 0.3rem;
  text-transform: uppercase;
}

.contract-player-head h2 span {
  display: block;
  max-width: 100%;
  overflow-wrap: normal;
  white-space: nowrap;
}

.contract-player-head small {
  align-items: center;
  color: #d6e2e2;
  display: flex;
  gap: 0.35rem;
  font-weight: 850;
}

.contract-player-head small img {
  height: 22px;
  width: 22px;
}

.contract-bio-grid,
.contract-current-grid,
.contract-gap-grid,
.contract-rec-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1rem;
}

.contract-bio-grid span,
.contract-current-grid span,
.contract-rec-grid span,
.contract-gap-grid span,
.contract-sim-list span {
  color: var(--muted);
  display: grid;
  font-size: 0.72rem;
  font-weight: 950;
  gap: 0.24rem;
  text-transform: uppercase;
}

.contract-bio-grid b,
.contract-current-grid b,
.contract-rec-grid b,
.contract-gap-grid b,
.contract-sim-list b {
  color: #fff;
  font-size: 1.08rem;
  text-transform: none;
}

.contract-bio-grid span:last-child b {
  color: var(--green);
}

.contract-current-grid {
  border-top: 1px solid var(--line);
  margin: 0;
}

.contract-current-grid span {
  padding: 1rem;
}

.contract-current-grid span + span {
  border-left: 1px solid var(--line);
}

.contract-current-grid small {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: none;
}

.contract-top-grid,
.contract-bottom-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.contract-value-card h2,
.contract-assessment-card h2,
.contract-recommend-card h2,
.contract-projection h2,
.contract-scenarios h2,
.contract-comps-card h2,
.contract-cap-card h2,
.contract-receipt-card h2,
.contract-sim-card h2 {
  color: #fff;
  font-size: 1.08rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.contract-value-layout {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(150px, 0.9fr) minmax(170px, 1fr);
}

.contract-ring {
  height: clamp(150px, 12vw, 180px);
  width: clamp(150px, 12vw, 180px);
}

.contract-ring strong {
  font-size: 3.6rem;
}

.contract-outcome-copy {
  color: #d5e1e1;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
  margin: -0.25rem 0 0.1rem;
  max-width: 19rem;
  text-align: center;
}

.contract-value-list,
.contract-sim-list {
  display: grid;
  gap: 0.8rem;
}

.contract-value-list span,
.contract-sim-list span {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #dce7e7;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 0.45rem;
}

.contract-value-list b,
.contract-sim-list b {
  color: var(--green);
  font-variant-numeric: tabular-nums;
  min-width: 2.4ch;
  text-align: right;
  white-space: nowrap;
}

.contract-assessment {
  display: grid;
  justify-items: center;
  padding: 1rem;
  text-align: center;
}

.contract-assessment strong {
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.contract-assessment.negative strong {
  color: #ff5a75;
}

.contract-assessment.warning strong {
  color: #ffd43b;
}

.contract-assessment span {
  color: #dbe6e6;
  font-weight: 850;
  margin-top: 0.45rem;
}

.contract-assessment-card p {
  border-top: 1px solid var(--line);
  color: #d2dddd;
  line-height: 1.5;
  margin: 1rem 0 0;
  padding-top: 1rem;
}

.contract-recommend-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.22), transparent 16rem),
    linear-gradient(145deg, rgba(13, 18, 27, 0.98), rgba(6, 9, 13, 0.98));
}

.contract-rec-hero {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1rem;
}

.contract-rec-hero span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contract-rec-hero strong {
  color: #a875ff;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.contract-recommend-card a {
  align-items: center;
  background: linear-gradient(90deg, #7c3aed, #a875ff);
  border-radius: 7px;
  color: #fff;
  display: flex;
  font-weight: 950;
  justify-content: center;
  margin-top: 1rem;
  min-height: 44px;
}

.contract-muted {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
  margin: 1rem 0 0;
}

.contract-empty {
  align-items: start;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  min-height: 9rem;
  padding: 1rem;
}

.contract-empty strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
}

.contract-empty p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
}

.contract-projection {
  overflow-x: auto;
}

.contract-projection header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.contract-projection header a {
  color: #a875ff;
  font-weight: 950;
}

.contract-projection table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.contract-projection th,
.contract-projection td {
  border-bottom: 1px solid var(--line);
  color: #fff;
  padding: 0.82rem 0.75rem;
  text-align: left;
}

.contract-projection th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contract-projection .positive,
.contract-projection tfoot td:last-child {
  color: var(--green);
}

.contract-projection .negative {
  color: #ff5a75;
}

.contract-projection tfoot td {
  font-weight: 950;
}

.contract-scenario-list {
  display: grid;
  gap: 0.55rem;
}

.contract-scenario-list div {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr auto auto;
  padding: 0.75rem;
}

.contract-scenario-list div.active {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(168, 117, 255, 0.55);
}

.contract-scenario-list b,
.contract-scenario-list span {
  color: #fff;
}

.contract-scenario-list strong {
  color: #a875ff;
}

.contract-comps-list {
  display: grid;
  gap: 0.55rem;
}

.contract-comps-list a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #fff;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 34px 1fr auto auto;
  padding: 0.6rem 0;
}

.contract-comps-list img {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  height: 34px;
  object-fit: cover;
  object-position: top center;
  width: 34px;
}

.contract-comps-list span {
  color: #dbe5e5;
}

.contract-comps-list strong {
  color: var(--green);
}

.contract-cap-bars {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, 1fr);
  min-height: 190px;
}

.contract-cap-bars div {
  align-items: center;
  display: grid;
  gap: 0.4rem;
  justify-items: center;
}

.contract-cap-bars i {
  align-items: end;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px 4px 0 0;
  display: flex;
  height: 130px;
  overflow: hidden;
  width: 34px;
}

.contract-cap-bars b {
  background: linear-gradient(180deg, #a875ff, #13a8ff);
  display: block;
  width: 100%;
}

.contract-cap-bars span,
.contract-cap-bars strong {
  color: #dce6e6;
  font-size: 0.75rem;
  font-weight: 850;
}

.contract-cap-card p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.contract-receipt-card ul {
  color: #dce6e6;
  display: grid;
  gap: 0.65rem;
  line-height: 1.45;
  margin: 0;
  padding-left: 1.1rem;
}

@media (max-width: 1420px) {
  .contract-dashboard {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .contract-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1080px) {
  .contract-title {
    align-items: stretch;
    flex-direction: column;
  }

  .contract-title label {
    min-width: 0;
  }

  .contract-dashboard,
  .contract-top-grid,
  .contract-bottom-grid,
  .contract-right,
  .contract-value-layout {
    grid-template-columns: 1fr;
  }

  .contract-ring {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .contract-player-head,
  .contract-bio-grid,
  .contract-current-grid,
  .contract-gap-grid,
  .contract-rec-grid {
    grid-template-columns: 1fr;
  }

  .contract-current-grid span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .contract-scenario-list div,
  .contract-comps-list a {
    grid-template-columns: 1fr;
  }

  .contract-cap-bars {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
    overflow-x: auto;
  }
}

/* Final team dashboard packing pass: removes blank grid islands on wide screens. */
@media (min-width: 1181px) {
  .team-dashboard-page .team-dashboard-grid {
    align-items: stretch;
    grid-auto-flow: dense;
    grid-template-areas:
      "profile needs cap"
      "ranking style targets"
      "timeline style targets"
      "contract key outlook";
    grid-template-columns: minmax(270px, 0.92fr) minmax(420px, 1.22fr) minmax(320px, 0.96fr);
  }

  .team-dashboard-page .team-profile-card { grid-area: profile; }
  .team-dashboard-page .team-needs-card { grid-area: needs; }
  .team-dashboard-page .team-cap-card { grid-area: cap; }
  .team-dashboard-page .team-ranking-card { grid-area: ranking; }
  .team-dashboard-page .team-fit-targets { grid-area: targets; }
  .team-dashboard-page .team-timeline-card { grid-area: timeline; }
  .team-dashboard-page .team-style-card { grid-area: style; }
  .team-dashboard-page .team-contract-card { grid-area: contract; }
  .team-dashboard-page .team-key-contracts { grid-area: key; }
  .team-dashboard-page .team-outlook-card { grid-area: outlook; }

  .team-dashboard-page .team-panel {
    height: 100%;
    min-height: 0;
  }

  .team-dashboard-page .team-needs-card,
  .team-dashboard-page .team-style-card,
  .team-dashboard-page .team-key-contracts {
    grid-column: auto;
  }

  .team-dashboard-page .team-needs-body {
    align-items: center;
    gap: 1rem;
    grid-template-columns: 116px 1fr;
  }

  .team-dashboard-page .team-needs-body strong {
    font-size: 3.15rem;
  }

  .team-dashboard-page .team-needs-list li {
    gap: 0.75rem;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 190px);
    padding: 0.28rem 0;
  }

  .team-dashboard-page .team-style-card {
    align-content: stretch;
    align-items: stretch;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(250px, 1fr) auto;
  }

  .team-dashboard-page .team-style-grid {
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    order: 3;
  }

  .team-dashboard-page .team-style-grid article {
    padding: 0.62rem 0.68rem;
  }

  .team-dashboard-page .team-style-grid strong {
    font-size: 1.75rem;
  }

  .team-dashboard-page .team-style-grid small {
    line-height: 1.15;
  }

  .team-dashboard-page .team-radar svg {
    height: clamp(270px, 25vw, 360px);
    width: clamp(270px, 25vw, 360px);
  }

  .team-dashboard-page .team-radar {
    align-items: center;
    display: grid;
    justify-items: center;
    min-height: 260px;
    order: 2;
  }

  .team-dashboard-page .team-style-card header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    order: 1;
  }

  .team-dashboard-page .team-style-card header small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .team-dashboard-page .team-fit-targets ol {
    display: grid;
    gap: 0;
  }

  .team-dashboard-page .team-fit-targets li {
    min-height: 48px;
    padding-block: 0.52rem;
  }

  .team-dashboard-page .team-fit-targets img {
    height: 34px;
    width: 34px;
  }

  .team-dashboard-page .team-fit-targets small {
    line-height: 1.15;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .team-dashboard-page .team-dashboard-grid {
    grid-template-areas:
      "profile cap"
      "needs needs"
      "ranking targets"
      "style style"
      "timeline contract"
      "key outlook";
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile override pass. */
@media (max-width: 720px) {
  body {
    overflow-x: hidden !important;
  }

  .page-shell,
  .home-shell,
  .ciq-shell,
  .team-page-shell,
  .fit-engine-shell,
  .contract-engine-shell,
  .trade-targets-page,
  .account-shell,
  .pricing-shell,
  .stories-shell,
  .story-shell,
  .methodology-page main,
  .stories-page main,
  .teams-index-page main,
  .player-dashboard-page main,
  .role-tool-page main,
  main {
    max-width: 100% !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    width: 100% !important;
  }

  .global-site-nav {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 0.62rem 0.85rem !important;
  }

  .global-nav-menu {
    grid-template-columns: 1fr !important;
    margin-inline: -0.85rem !important;
    overflow-y: auto;
  }

  .global-nav-links,
  .global-account-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }

  .home-hero,
  .hero,
  .featured-stage,
  .leaderboard-grid,
  .lower-grid,
  .team-grid,
  .teams-index-page .team-grid,
  .team-dashboard-page .team-dashboard-hero,
  .team-dashboard-page .team-blueprint,
  .team-dashboard-page .team-dashboard-grid,
  .team-dashboard-page .team-style-card,
  .team-dashboard-page .team-needs-body,
  .team-dashboard-page .team-hero-metrics,
  .player-dashboard-hero,
  .player-dashboard-grid,
  .player-hero-info,
  .player-hero-metrics,
  .player-bio-line,
  .validation-grid,
  .profile-grid,
  .fit-engine-grid,
  .fit-layout,
  .contract-engine-grid,
  .contract-layout,
  .trade-layout,
  .tool-grid,
  .method-grid,
  .method-tier-grid,
  .pricing-grid,
  .pricing-comparison-grid,
  .account-grid,
  .auth-layout,
  .admin-layout,
  .admin-grid,
  .admin-player-card,
  .admin-player-card-metrics {
    grid-template-columns: 1fr !important;
  }

  .hero-command h1,
  .player-hero-info h1,
  .player-hero-info h1.long-name,
  .player-hero-info h1.extra-long-name,
  .team-dashboard-page .team-title-block h1,
  .tool-hero h1,
  .pricing-hero h1,
  .account-hero h1,
  .stories-hero h1,
  .story-hero h1 {
    font-size: clamp(2.35rem, 13.5vw, 4rem) !important;
    line-height: 0.94 !important;
    overflow-wrap: anywhere;
  }

  .player-dashboard-hero {
    padding: 1rem 0.85rem !important;
  }

  .player-hero-art {
    min-height: 330px !important;
    order: -1;
  }

  .player-hero-art img {
    max-height: 390px !important;
    object-fit: contain;
    width: min(112vw, 500px) !important;
  }

  .team-dashboard-page .team-title-block {
    grid-template-columns: 56px minmax(0, 1fr) !important;
  }

  .team-dashboard-page .team-role-coverage > div,
  .team-dashboard-page .team-needs-list li,
  .team-dashboard-page .team-style-grid {
    grid-template-columns: 1fr !important;
  }

  .fit-map-stage,
  .role-map-stage,
  .team-league-map {
    min-height: 330px !important;
    overflow: hidden !important;
  }

  .fit-team-node {
    transform: translate(-50%, -50%) scale(0.72) !important;
  }
}

@media (max-width: 520px) {
  .global-nav-links,
  .global-account-actions {
    grid-template-columns: 1fr !important;
  }

  .hero-command h1,
  .player-hero-info h1,
  .player-hero-info h1.long-name,
  .player-hero-info h1.extra-long-name,
  .team-dashboard-page .team-title-block h1,
  .tool-hero h1,
  .pricing-hero h1,
  .account-hero h1,
  .stories-hero h1,
  .story-hero h1 {
    font-size: clamp(2.25rem, 14vw, 3.45rem) !important;
  }

  .player-hero-art {
    min-height: 290px !important;
  }

  .player-hero-art img {
    max-height: 340px !important;
  }

  .fit-team-node {
    transform: translate(-50%, -50%) scale(0.62) !important;
  }
}

/* Site-wide mobile lock
   This final layer keeps every CourtsideIQ page usable on phone-width screens. */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

*,
*::before,
*::after {
  min-width: 0;
}

img,
svg,
canvas,
video {
  height: auto;
  max-width: 100%;
}

.table-scroll,
.leader-table,
.team-roster-table,
.team-key-contracts,
.contract-projection,
.contract-table,
.comparison-table-wrap,
.admin-table-wrap,
.method-table,
.score-receipt-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
  .global-site-nav {
    gap: 0.65rem;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 60px;
    padding: 0.62rem 0.85rem;
  }

  .global-nav-brand img {
    height: 29px;
    width: 146px;
  }

  .global-nav-menu {
    border-radius: 0 0 10px 10px;
    margin: 0 -0.85rem -0.62rem;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    padding: 0.85rem;
  }

  .global-nav-links {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .global-nav-links > a,
  .global-tools-menu > summary {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(138, 164, 158, 0.16);
    border-radius: 7px;
    display: block;
    padding: 0.78rem;
    text-align: center;
    white-space: normal;
  }

  .global-nav-links > a.active::after,
  .global-tools-menu.active > summary::after {
    bottom: 0;
    left: 18%;
    right: 18%;
  }

  .global-player-search,
  .global-account-actions,
  .global-subscribe-link {
    width: 100%;
  }

  .global-account-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 0.75rem 0.85rem;
  }

  .admin-toolbar .search {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 720px) {
  :root {
    --content-gutter: 0.85rem;
  }

  body {
    font-size: 15px;
  }

  body,
  button,
  input,
  select,
  textarea {
    letter-spacing: 0;
  }

  .page-shell,
  .home-shell,
  .ciq-shell,
  .team-page-shell,
  .fit-engine-shell,
  .contract-engine-shell,
  .trade-targets-page,
  .account-shell,
  .pricing-shell,
  .stories-shell,
  .story-shell,
  .methodology-page main,
  .stories-page main,
  .teams-index-page main,
  .player-dashboard-page main,
  .role-tool-page main,
  main {
    max-width: 100%;
    padding-left: var(--content-gutter) !important;
    padding-right: var(--content-gutter) !important;
    width: 100%;
  }

  h1,
  h2,
  h3,
  .page-title,
  .section-title,
  .hero-command h1,
  .player-hero-info h1,
  .team-dashboard-page .team-title-block h1,
  .tool-hero h1,
  .pricing-hero h1,
  .account-hero h1,
  .stories-hero h1,
  .story-hero h1 {
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .hero-command h1,
  .player-hero-info h1,
  .player-hero-info h1.long-name,
  .player-hero-info h1.extra-long-name,
  .team-dashboard-page .team-title-block h1,
  .tool-hero h1,
  .pricing-hero h1,
  .account-hero h1 {
    font-size: clamp(2.65rem, 13.5vw, 4.25rem) !important;
    line-height: 0.94 !important;
  }

  .home-hero,
  .hero,
  .featured-stage,
  .hero-metric-row,
  .leaderboard-grid,
  .lower-grid,
  .story-rail,
  .team-grid,
  .teams-index-page .team-grid,
  .team-dashboard-page .team-dashboard-hero,
  .team-dashboard-page .team-blueprint,
  .team-dashboard-page .team-dashboard-grid,
  .team-dashboard-page .team-style-card,
  .team-dashboard-page .team-needs-body,
  .team-dashboard-page .team-hero-metrics,
  .player-dashboard-hero,
  .player-dashboard-grid,
  .player-hero-info,
  .player-hero-metrics,
  .player-bio-line,
  .validation-grid,
  .profile-grid,
  .fit-engine-grid,
  .fit-layout,
  .contract-engine-grid,
  .contract-layout,
  .trade-layout,
  .tool-grid,
  .method-grid,
  .method-tier-grid,
  .pricing-grid,
  .pricing-comparison-grid,
  .account-grid,
  .auth-layout,
  .admin-shell,
  .admin-layout,
  .admin-grid,
  .admin-player-card,
  .admin-player-card-metrics {
    grid-template-columns: 1fr !important;
  }

  .panel,
  .card,
  .team-panel,
  .player-panel,
  .metric-card,
  .story-card,
  .team-card,
  .tool-card,
  .method-card,
  .admin-card {
    border-radius: 8px;
  }

  .hero-actions,
  .ciq-hero-actions,
  .pricing-actions,
  .pricing-cta-row,
  .account-actions,
  .tool-actions,
  .filter-bar {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .hero-actions a,
  .ciq-hero-actions a,
  .pricing-actions a,
  .pricing-cta-row a,
  .account-actions a,
  .tool-actions a,
  .filter-bar button,
  .filter-bar select {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .leaderboard-grid .wide,
  .team-dashboard-page .team-blueprint-main,
  .team-dashboard-page .team-style-card,
  .team-dashboard-page .team-key-contracts,
  .team-dashboard-page .team-roster-table,
  .team-dashboard-page .team-role-coverage,
  .team-dashboard-page .team-needs-card,
  .team-dashboard-page .team-signal-stack {
    grid-column: auto !important;
  }

  .leaderboard-grid table,
  .team-roster-table table,
  .team-key-contracts table,
  .contract-projection table,
  .contract-table table,
  .admin-table-wrap table,
  .score-receipt-table table {
    min-width: 620px;
  }

  .team-tabs,
  .nav-links,
  .tool-tabs,
  .method-tabs,
  .admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .team-tabs::-webkit-scrollbar,
  .nav-links::-webkit-scrollbar,
  .tool-tabs::-webkit-scrollbar,
  .method-tabs::-webkit-scrollbar,
  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .team-tabs > *,
  .nav-links > *,
  .tool-tabs > *,
  .method-tabs > *,
  .admin-tabs > * {
    flex: 0 0 auto;
  }

  .player-dashboard-hero {
    gap: 0.85rem;
    padding: 1rem 0.85rem !important;
  }

  .player-hero-art {
    min-height: 355px !important;
    order: -1;
  }

  .player-hero-art img {
    max-height: 410px !important;
    object-fit: contain;
    width: min(112vw, 500px) !important;
  }

  .player-bio-line,
  .player-hero-metrics {
    gap: 0.65rem;
  }

  .player-hero-metrics article,
  .validation-grid article,
  .summary-metric,
  .team-dashboard-page .team-hero-metrics article,
  .team-style-grid article,
  .team-role-coverage article {
    padding: 0.85rem;
  }

  .team-dashboard-page .team-title-block {
    grid-template-columns: 56px minmax(0, 1fr) !important;
  }

  .team-dashboard-page .team-logo-frame {
    height: 54px;
    width: 54px;
  }

  .team-dashboard-page .team-hero-metrics .team-iq-main strong,
  .team-dashboard-page .team-hero-metrics strong,
  .team-dashboard-page .team-signal-stack strong {
    font-size: clamp(2.35rem, 12vw, 3.5rem) !important;
  }

  .team-dashboard-page .team-needs-list li,
  .team-dashboard-page .team-style-grid,
  .team-dashboard-page .team-role-coverage > div {
    grid-template-columns: 1fr !important;
  }

  .team-dashboard-page .team-radar,
  .team-dashboard-page .team-radar svg {
    height: auto;
    margin-inline: auto;
    max-width: 280px;
    width: 100%;
  }

  .blueprint-court {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .fit-map-stage,
  .role-map-stage,
  .team-league-map {
    min-height: 360px !important;
    overflow: hidden;
  }

  .fit-team-node {
    transform: translate(-50%, -50%) scale(0.76);
  }

  .contract-engine-shell .metric-breakdown,
  .contract-engine-shell .value-score-card,
  .fit-engine-shell .fit-summary,
  .fit-engine-shell .contract-card {
    overflow: hidden;
  }

  .admin-player-card {
    gap: 0.85rem;
  }

  .admin-player-card-metrics {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .global-nav-links,
  .global-account-actions {
    grid-template-columns: 1fr;
  }

  .global-nav-toggle {
    padding-right: 0;
  }

  .hero-command h1,
  .player-hero-info h1,
  .player-hero-info h1.long-name,
  .player-hero-info h1.extra-long-name,
  .team-dashboard-page .team-title-block h1,
  .tool-hero h1,
  .pricing-hero h1,
  .account-hero h1 {
    font-size: clamp(2.35rem, 14vw, 3.55rem) !important;
  }

  .player-hero-art {
    min-height: 300px !important;
  }

  .player-hero-art img {
    max-height: 350px !important;
  }

  .blueprint-court,
  .insight-board-grid,
  .stories-grid,
  .ciq-insight-cards,
  .ciq-metric-system {
    grid-template-columns: 1fr !important;
  }

  .fit-map-stage,
  .role-map-stage,
  .team-league-map {
    min-height: 315px !important;
  }

  .fit-team-node {
    transform: translate(-50%, -50%) scale(0.64);
  }
}

.admin-automation-panel {
  background:
    radial-gradient(circle at 90% 0%, rgba(105, 245, 51, 0.1), transparent 24rem),
    rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0.85rem;
  padding: 1rem;
}

.admin-automation-panel > header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.admin-automation-panel h3 {
  font-size: 1.7rem;
  margin: 0.2rem 0 0.8rem;
}

.admin-automation-state {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-automation-form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-automation-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 0.4rem;
  text-transform: uppercase;
}

.admin-automation-form input {
  min-width: 0;
  width: 100%;
}

.admin-toggle-field {
  align-content: center;
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr !important;
  justify-self: start;
}

.admin-toggle-field input {
  accent-color: var(--green);
  height: 1.1rem;
  width: 1.1rem;
}

.admin-automation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.admin-danger-action {
  border-color: rgba(255, 115, 95, 0.5) !important;
  color: #ff8c7b !important;
}

@media (max-width: 900px) {
  .admin-automation-form {
    grid-template-columns: 1fr;
  }

  .admin-automation-panel > header {
    display: grid;
  }
}

/* Contract Engine final guardrail: keep the value score card from overlapping. */
.contract-engine-page .contract-value-card {
  overflow: hidden;
}

.contract-engine-page .contract-value-card .contract-value-layout {
  align-items: center !important;
  display: grid !important;
  gap: 0.9rem !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
}

.contract-engine-page .contract-value-card .contract-ring {
  height: clamp(142px, 14vw, 190px) !important;
  width: clamp(142px, 14vw, 190px) !important;
}

.contract-engine-page .contract-value-card .contract-value-list {
  display: grid !important;
  gap: 0.55rem !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100%;
}

.contract-engine-page .contract-value-card .contract-value-list span {
  align-items: start !important;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line) !important;
  border-radius: 0.45rem;
  display: grid !important;
  gap: 0.2rem !important;
  grid-template-columns: 1fr !important;
  line-height: 1.15 !important;
  min-width: 0 !important;
  padding: 0.65rem 0.55rem !important;
}

.contract-engine-page .contract-value-card .contract-value-list em {
  color: var(--muted);
  display: block;
  font-size: 0.66rem !important;
  font-style: normal;
  line-height: 1.05;
  min-width: 0;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.contract-engine-page .contract-value-card .contract-value-list span:last-child {
  grid-column: 1 / -1;
}

.contract-engine-page .contract-value-card .contract-value-list b {
  color: var(--green);
  font-size: 1.05rem !important;
  line-height: 1 !important;
  min-width: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

@media (max-width: 520px) {
  .contract-engine-page .contract-value-card .contract-value-list {
    grid-template-columns: 1fr !important;
  }
}

/* Team Style Summary should read top-to-bottom: title, radar, then stats. */
.team-dashboard-page .team-style-card {
  align-content: stretch !important;
  align-items: stretch !important;
  display: grid !important;
  gap: 1rem !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto minmax(290px, 1fr) auto !important;
}

.team-dashboard-page .team-style-card header {
  order: 1;
}

.team-dashboard-page .team-radar {
  align-items: center !important;
  display: grid !important;
  justify-items: center !important;
  min-height: 290px !important;
  order: 2;
}

.team-dashboard-page .team-radar svg {
  height: clamp(280px, 27vw, 390px) !important;
  width: clamp(280px, 27vw, 390px) !important;
}

.team-dashboard-page .team-style-grid {
  display: grid !important;
  gap: 0.75rem !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  order: 3;
}

.team-dashboard-page .team-style-grid article {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 1420px) {
  .fit-engine-grid {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .fit-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .fit-summary-card,
  .fit-breakdown-card,
  .fit-scout-card {
    min-width: 0;
  }
}

@media (max-width: 1080px) {
  .fit-engine-title,
  .fit-destinations header,
  .fit-map-card header,
  .fit-team-detail header {
    align-items: stretch;
    flex-direction: column;
  }

  .fit-engine-grid,
  .fit-lower-grid,
  .fit-team-detail-grid,
  .fit-right {
    grid-template-columns: 1fr;
  }

  .fit-map-card label {
    min-width: 0;
  }

  .fit-map-stage {
    min-height: 470px;
  }
}

@media (max-width: 700px) {
  .fit-engine-title h1 {
    font-size: 2.4rem;
  }

  .fit-player-main,
  .fit-player-split,
  .fit-bio-row,
  .fit-contract-grid,
  .fit-outlook-grid {
    grid-template-columns: 1fr;
  }

  .fit-player-split span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .fit-map-stage {
    min-height: 430px;
  }

  .fit-team-node {
    height: 42px;
    width: 42px;
  }

  .fit-team-node img {
    height: 30px;
    width: 30px;
  }

  .fit-destinations button,
  .fit-breakdown-list button {
    grid-template-columns: 22px 28px 1fr auto;
  }

  .fit-bar-row {
    grid-template-columns: 1fr 2fr 34px;
  }
}

.method-metric-grid ul {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  padding-left: 1rem;
}

.method-metric-grid code {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.45;
  margin-top: 0.85rem;
  padding: 0.72rem;
}

.method-metric-grid small {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.45;
  margin-top: 0.7rem;
}

.method-role-table-wrap {
  overflow-x: auto;
}

.method-role-table {
  border-collapse: collapse;
  min-width: 1060px;
  width: 100%;
}

.method-role-table th,
.method-role-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.82rem;
  text-align: left;
  vertical-align: top;
}

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

.method-role-table tbody th {
  color: #fff;
  font-size: 0.9rem;
  width: 190px;
}

.method-role-table tbody th a {
  color: #fff;
}

.method-role-table td b {
  color: var(--green);
  display: block;
  font-size: 0.9rem;
}

.method-role-table td span {
  color: #fff;
  display: block;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
  margin: 0.25rem 0;
}

.method-role-table td small {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  line-height: 1.35;
}

.method-tier-grid article {
  min-height: 0;
}

.method-tier-grid p {
  font-size: 0.78rem;
}

.method-credibility {
  margin-bottom: 2rem;
}

.compare-grid,
.team-grid,
.method-grid,
.tool-stat-row,
.method-flow {
  display: grid;
  gap: 0.7rem;
}

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

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-stat-row,
.method-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.8rem;
}

.compare-card,
.team-card,
.method-grid article,
.tool-stat-row article,
.method-flow article,
.empty-state {
  background: linear-gradient(145deg, rgba(13, 23, 27, 0.94), rgba(6, 11, 13, 0.96));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}

.tool-stat-row article {
  min-height: 132px;
}

.tool-stat-row span,
.method-flow span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.tool-stat-row strong {
  color: var(--green);
  display: block;
  font-size: clamp(1.45rem, 2vw, 2.4rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.tool-stat-row p,
.method-flow p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0.65rem 0 0;
}

.method-flow h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.compare-card header,
.team-card header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.compare-card header span,
.team-card header span,
.method-grid span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-card h2,
.method-grid h2 {
  font-size: 1.35rem;
  margin: 0.35rem 0;
}

.compare-card header strong,
.team-card header strong {
  color: var(--green);
  font-size: 2.4rem;
  line-height: 1;
}

.team-highlights {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.team-highlights p {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: 90px 1fr auto;
  margin: 0;
  padding: 0.65rem;
}

.team-highlights b,
.team-highlights em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.role-mix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.role-mix span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dce6ea;
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.34rem 0.55rem;
}

.role-mix b {
  color: var(--green);
}

.team-card-action {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--green);
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.8rem;
}

.team-dashboard-page {
  background:
    radial-gradient(circle at 80% 0%, rgba(19, 168, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 18% 8%, rgba(85, 255, 34, 0.12), transparent 30rem),
    linear-gradient(180deg, #050708 0%, #061015 48%, #050708 100%);
}

.team-page-shell {
  margin: 0 auto;
  max-width: 1560px;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.team-dashboard-hero {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(12, 23, 32, 0.96), rgba(7, 13, 16, 0.98)),
    radial-gradient(circle at 70% 30%, rgba(85, 255, 34, 0.1), transparent 28rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: minmax(290px, 1.1fr) minmax(640px, 2.6fr);
  margin-bottom: 1rem;
  overflow: hidden;
  padding: clamp(1.1rem, 2.4vw, 2rem);
  position: relative;
}

.team-dashboard-hero::before {
  background:
    linear-gradient(rgba(85, 255, 34, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 168, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

.team-title-block,
.team-hero-metrics {
  position: relative;
  z-index: 1;
}

.team-title-block {
  align-items: center;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 112px 1fr;
}

.team-logo-frame {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  justify-items: center;
  overflow: hidden;
  position: relative;
}

.team-logo-frame img {
  height: 78%;
  object-fit: contain;
  width: 78%;
  z-index: 1;
}

.team-logo-frame span {
  color: rgba(255, 255, 255, 0.16);
  font-size: 1.8rem;
  font-weight: 950;
  position: absolute;
}

.team-title-block p,
.team-title-block span {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin: 0;
}

.team-title-block h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0.2rem 0;
}

.team-hero-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.team-hero-metrics article {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
  min-height: 112px;
  padding: 0.75rem 1.15rem;
}

.team-hero-metrics article:first-child {
  border-left: 0;
}

.team-hero-metrics span,
.team-panel header a,
.team-panel dt,
.team-roster-section .eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-hero-metrics strong {
  color: var(--green);
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  line-height: 1;
}

.team-hero-metrics small {
  color: #d8e3e7;
  font-weight: 800;
}

.team-rating-ring strong {
  align-items: center;
  background:
    radial-gradient(circle at center, rgba(5, 7, 8, 0.96) 57%, transparent 58%),
    conic-gradient(var(--green) 0 70%, rgba(19, 168, 255, 0.65) 70% 84%, rgba(255, 255, 255, 0.11) 84% 100%);
  border-radius: 50%;
  display: inline-flex;
  height: 92px;
  justify-content: center;
  width: 92px;
}

.team-tabs {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: clamp(1rem, 4vw, 4rem);
  margin-bottom: 0.85rem;
  overflow-x: auto;
  padding: 0 0.5rem;
}

.team-tabs a {
  border-bottom: 2px solid transparent;
  color: #dce5e9;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 1rem 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-tabs a.active,
.team-tabs a:hover {
  border-color: var(--green);
  color: var(--green);
}

.team-blueprint {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(580px, 1.25fr) minmax(280px, 0.7fr) minmax(280px, 0.7fr);
  margin-bottom: 0.85rem;
}

.team-blueprint-main,
.team-signal-stack,
.team-role-coverage {
  background:
    radial-gradient(circle at 18% 24%, color-mix(in srgb, var(--team-primary, var(--green)) 24%, transparent), transparent 22rem),
    radial-gradient(circle at 84% 8%, color-mix(in srgb, var(--team-secondary, var(--blue)) 18%, transparent), transparent 18rem),
    linear-gradient(90deg, rgba(85, 255, 34, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(85, 255, 34, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, rgba(9, 18, 21, 0.97), rgba(4, 8, 10, 0.99));
  background-size: auto, auto, 52px 52px, 52px 52px, auto;
  border: 1px solid rgba(221, 244, 239, 0.16);
  border-radius: 9px;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.team-blueprint-main header,
.team-signal-stack > span,
.team-role-coverage > span {
  position: relative;
  z-index: 1;
}

.team-blueprint-main header span,
.team-signal-stack > span,
.team-role-coverage > span {
  color: var(--green);
  display: block;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.team-blueprint-main h2,
.team-signal-stack h2,
.team-role-coverage h2 {
  font-size: clamp(1.7rem, 2.6vw, 3rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0.25rem 0 0.9rem;
}

.blueprint-court {
  background:
    radial-gradient(ellipse at center, rgba(85, 255, 34, 0.08), transparent 58%),
    linear-gradient(90deg, transparent 49.7%, rgba(255, 255, 255, 0.1) 49.7% 50.3%, transparent 50.3%),
    radial-gradient(circle at 50% 50%, transparent 0 72px, rgba(255, 255, 255, 0.08) 73px 74px, transparent 75px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 260px;
  overflow: hidden;
  padding: 1.1rem;
  position: relative;
}

.blueprint-court::before,
.blueprint-court::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  height: 148px;
  position: absolute;
  top: calc(50% - 74px);
  width: 148px;
}

.blueprint-court::before {
  left: -58px;
}

.blueprint-court::after {
  right: -58px;
}

.blueprint-player {
  align-self: center;
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  min-width: 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

.blueprint-player:nth-child(2),
.blueprint-player:nth-child(4) {
  transform: translateY(34px);
}

.blueprint-player:nth-child(3) {
  transform: translateY(-28px);
}

.blueprint-player img {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid color-mix(in srgb, var(--team-primary, var(--green)) 50%, rgba(255,255,255,0.16));
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  height: 78px;
  object-fit: cover;
  width: 78px;
}

.blueprint-player span {
  background: color-mix(in srgb, var(--team-primary, var(--green)) 35%, rgba(4, 8, 10, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
  margin-top: -0.95rem;
  padding: 0.18rem 0.45rem;
}

.blueprint-player b {
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.05;
  margin-top: 0.15rem;
}

.blueprint-player small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.05;
  min-height: 1.4em;
}

.blueprint-player strong {
  color: var(--green);
  font-size: 1.05rem;
  line-height: 1;
}

.team-signal-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-signal-stack p {
  color: #dce6e5;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.team-signal-stack p b {
  color: #fff;
}

.team-signal-stack div {
  display: grid;
  gap: 0.55rem;
}

.team-signal-stack article {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0.72rem;
}

.team-signal-stack small {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-signal-stack strong {
  color: var(--green);
  display: block;
  font-size: 1rem;
  line-height: 1.12;
  margin-top: 0.18rem;
}

.team-role-coverage > div {
  display: grid;
  gap: 0.42rem;
}

.team-role-coverage p {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 7px;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1fr) 24px;
  margin: 0;
  padding: 0.5rem 0.58rem;
}

.team-role-coverage p b {
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.05;
}

.team-role-coverage p span {
  color: var(--danger);
  font-weight: 950;
  text-align: right;
}

.team-role-coverage p.is-covered span {
  color: var(--green);
}

.team-role-coverage p.is-thin span {
  color: #ffd34d;
}

.team-role-coverage p.is-thin {
  border-color: rgba(255, 211, 77, 0.24);
}

.team-role-coverage p small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  grid-column: 1 / -1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-dashboard-grid {
  align-items: start;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.55fr) minmax(280px, 0.95fr);
}

.team-panel {
  background:
    linear-gradient(145deg, rgba(12, 22, 29, 0.94), rgba(6, 10, 13, 0.97)),
    radial-gradient(circle at 80% 0%, rgba(19, 168, 255, 0.08), transparent 22rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 1rem;
}

.team-panel header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.team-panel h2 {
  font-size: 1rem;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.team-panel a {
  color: var(--blue);
}

.team-panel dl,
.team-panel ul,
.team-panel ol {
  margin: 0;
  padding: 0;
}

.team-panel dl div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
}

.team-panel dl div:last-child {
  border-bottom: 0;
}

.team-panel dd {
  color: #eff5f6;
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.team-needs-card,
.team-lineup-card,
.team-style-card,
.team-key-contracts {
  grid-column: span 2;
}

.team-needs-body {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 116px 1fr;
}

.team-needs-body > div {
  border-right: 1px solid var(--line);
  padding-right: 0.9rem;
  text-align: center;
}

.team-needs-body span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-needs-body strong {
  color: var(--green);
  display: block;
  font-size: 3.15rem;
  line-height: 1;
  margin-top: 0.3rem;
}

.team-needs-list li {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 200px);
  list-style: none;
  padding: 0.28rem 0;
}

.team-needs-list b {
  color: #fff;
  display: block;
  line-height: 1.1;
  margin-top: 0.12rem;
}

.team-needs-list i {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  display: block;
  height: 10px;
  overflow: hidden;
}

.team-needs-list em {
  background: linear-gradient(90deg, var(--danger), var(--amber), var(--green), var(--blue));
  display: block;
  height: 100%;
}

.cap-meter {
  align-items: center;
  background:
    radial-gradient(circle at center, rgba(7, 13, 16, 0.98) 58%, transparent 59%),
    conic-gradient(var(--green) 0 var(--cap-angle, 42deg), rgba(255, 255, 255, 0.1) var(--cap-angle, 42deg) 360deg);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  height: 150px;
  justify-content: center;
  margin: 0 auto 1rem;
  width: 150px;
}

.cap-meter strong {
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
}

.cap-meter span,
.team-cap-card p {
  color: var(--muted);
  font-weight: 800;
}

.team-cap-card p {
  text-align: center;
}

.team-ranking-card b {
  color: var(--green);
  margin-right: 1.5rem;
}

.team-ranking-card span {
  color: #fff;
}

.team-lineup-table {
  display: grid;
  gap: 0.2rem;
}

.team-lineup-table a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 40px 42px minmax(120px, 1fr) 44px 64px minmax(130px, 1fr);
  padding: 0.55rem 0;
}

.team-lineup-table a:last-child {
  border-bottom: 0;
}

.team-lineup-table img,
.team-fit-targets img,
.team-roster-player img {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.team-lineup-table img {
  height: 42px;
  width: 42px;
}

.team-lineup-table span,
.team-lineup-table em,
.team-lineup-table strong {
  font-style: normal;
  font-weight: 900;
}

.team-lineup-table strong {
  color: var(--green);
}

.team-lineup-table small {
  color: var(--muted);
  font-weight: 800;
}

.team-fit-targets li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 24px 42px 1fr 44px;
  list-style: none;
  padding: 0.62rem 0;
}

.team-fit-targets li:last-child {
  border-bottom: 0;
}

.team-fit-targets img {
  height: 42px;
  width: 42px;
}

.team-fit-targets span,
.team-fit-targets strong {
  color: var(--green);
  font-weight: 950;
}

.team-fit-targets small {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.team-timeline-card li {
  border-left: 1px solid var(--line-strong);
  list-style: none;
  padding: 0 0 1rem 1rem;
  position: relative;
}

.team-timeline-card li::before {
  background: var(--green);
  border-radius: 50%;
  content: "";
  height: 9px;
  left: -5px;
  position: absolute;
  top: 0.18rem;
  width: 9px;
}

.team-timeline-card span {
  color: var(--green);
  font-weight: 900;
}

.team-timeline-card b {
  display: block;
  margin: 0.15rem 0;
}

.team-timeline-card p {
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.team-style-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 220px;
}

.team-style-card header {
  grid-column: 1 / -1;
}

.team-style-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-style-grid article span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-style-grid strong {
  display: block;
  font-size: 1.55rem;
}

.team-style-grid small {
  color: var(--muted);
  font-weight: 800;
}

.team-radar svg {
  height: 220px;
  overflow: visible;
  width: 220px;
}

.team-radar text {
  fill: #dce7e9;
  font-size: 10px;
  font-weight: 800;
  text-anchor: middle;
}

.radar-grid {
  fill: rgba(85, 255, 34, 0.05);
  stroke: rgba(85, 255, 34, 0.22);
}

.radar-grid-mid {
  opacity: 0.55;
}

.radar-shape {
  fill: rgba(85, 255, 34, 0.28);
  stroke: var(--green);
  stroke-width: 2;
}

.team-contract-layout {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 145px 1fr;
}

.contract-donut {
  align-items: center;
  background:
    radial-gradient(circle at center, rgba(7, 13, 16, 0.98) 58%, transparent 59%),
    conic-gradient(var(--purple) 0 20%, var(--blue) 20% 44%, var(--green) 44% var(--payroll-angle, 250deg), rgba(255, 255, 255, 0.12) var(--payroll-angle, 250deg) 360deg);
  border-radius: 50%;
  display: grid;
  height: 130px;
  justify-items: center;
  width: 130px;
}

.contract-donut span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 950;
}

.team-key-contracts table,
.team-roster-table table {
  border-collapse: collapse;
  width: 100%;
}

.team-key-contracts th,
.team-key-contracts td,
.team-roster-table th,
.team-roster-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.45rem;
  text-align: left;
}

.team-key-contracts th,
.team-roster-table th {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-key-contracts td,
.team-roster-table td {
  color: #eef5f7;
  font-weight: 800;
}

.team-key-contracts td:nth-child(n + 2),
.team-roster-table td:nth-child(3) {
  color: var(--green);
  font-weight: 950;
}

.team-roster-table th:nth-child(3),
.team-roster-table td:nth-child(3) {
  text-align: right;
}

.team-outlook-card {
  min-height: 250px;
  position: relative;
}

.team-watermark {
  bottom: 1rem;
  opacity: 0.16;
  position: absolute;
  right: 1rem;
  width: 130px;
}

.team-watermark img {
  width: 100%;
}

.team-roster-section {
  margin-top: 0.9rem;
}

.team-roster-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-roster-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(85, 255, 34, 0.09), transparent 13rem),
    linear-gradient(145deg, rgba(12, 22, 29, 0.96), rgba(6, 10, 13, 0.98));
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #eef5f7;
  display: grid;
  gap: 1rem;
  min-height: 190px;
  padding: 1rem;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.team-roster-card:hover,
.team-roster-card:focus-visible {
  background:
    radial-gradient(circle at 100% 0%, rgba(85, 255, 34, 0.16), transparent 15rem),
    linear-gradient(145deg, rgba(14, 27, 31, 0.98), rgba(7, 13, 15, 0.99));
  border-color: rgba(85, 255, 34, 0.55);
  outline: none;
  transform: translateY(-2px);
}

.team-roster-card > header {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 76px minmax(0, 1fr) auto;
}

.team-roster-card > header > img {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  height: 76px;
  object-fit: cover;
  object-position: top center;
  width: 76px;
}

.team-roster-card h3 {
  font-size: 1rem;
  margin: 0;
}

.team-roster-card header p {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0.25rem 0 0.35rem;
}

.team-roster-card header strong {
  color: var(--green);
  display: block;
  font-size: 0.7rem;
  line-height: 1.25;
}

.team-roster-card > header > span {
  color: var(--green);
  font-size: 1.25rem;
  transition: transform 160ms ease;
}

.team-roster-card:hover > header > span,
.team-roster-card:focus-visible > header > span {
  transform: translateX(3px);
}

.team-roster-card-metrics {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.team-roster-card-metrics p {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.55rem 0.25rem;
  text-align: center;
}

.team-roster-card-metrics span {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 950;
}

.team-roster-card-metrics b {
  color: var(--green);
  font-size: 0.88rem;
  line-height: 1;
}

.section-heading-row {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 1.2rem 0 0.75rem;
}

.section-heading-row h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0.15rem 0 0;
}

.section-heading-row a {
  color: var(--green);
  font-weight: 900;
}

.team-roster-table {
  background: linear-gradient(145deg, rgba(12, 22, 29, 0.94), rgba(6, 10, 13, 0.97));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  padding: 0.6rem 0.9rem;
}

.team-roster-player {
  align-items: center;
  display: inline-flex;
  gap: 0.7rem;
  min-width: 220px;
}

.team-roster-player img {
  height: 42px;
  width: 42px;
}

.team-roster-player span {
  display: grid;
}

.team-roster-player small {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .team-roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .team-roster-grid {
    grid-template-columns: 1fr;
  }
}

.teams-index-page {
  background:
    radial-gradient(circle at 72% 4%, rgba(19, 168, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 14% 18%, rgba(85, 255, 34, 0.12), transparent 30rem),
    linear-gradient(180deg, #050606 0%, #061011 54%, #050708 100%);
}

.teams-index-page main {
  margin: 0 auto;
  max-width: 1500px;
  padding: 1.1rem clamp(1rem, 2.2vw, 2rem) 2.5rem;
}

.teams-hero {
  align-items: stretch;
  background:
    radial-gradient(circle at 78% 20%, rgba(19, 168, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 18% 58%, rgba(85, 255, 34, 0.16), transparent 24rem),
    linear-gradient(90deg, rgba(85, 255, 34, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(85, 255, 34, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(9, 19, 22, 0.98), rgba(4, 8, 10, 0.99));
  background-size: auto, auto, 72px 72px, 72px 72px, auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  margin-bottom: 0.9rem;
  min-height: 360px;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 3rem);
  position: relative;
}

.teams-hero::after {
  background:
    radial-gradient(circle, rgba(85, 255, 34, 0.34) 0 5px, transparent 6px),
    linear-gradient(120deg, transparent 0 18%, rgba(85, 255, 34, 0.12) 18% 19%, transparent 19% 43%, rgba(19, 168, 255, 0.12) 43% 44%, transparent 44%);
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

.teams-hero > * {
  position: relative;
  z-index: 1;
}

.teams-hero h1 {
  font-size: clamp(4rem, 7vw, 7.1rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
  max-width: 780px;
}

.teams-hero p:not(.eyebrow) {
  color: #dce6e5;
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 610px;
}

.teams-hero aside {
  align-self: end;
  background: rgba(3, 7, 8, 0.72);
  border: 1px solid rgba(85, 255, 34, 0.28);
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(85, 255, 34, 0.1);
  padding: 1.2rem;
}

.teams-hero aside span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.teams-hero aside strong {
  color: var(--green);
  display: block;
  font-size: 5rem;
  line-height: 0.9;
  margin: 0.35rem 0;
}

.team-hero-faces {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.42rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.team-hero-faces a {
  align-items: center;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 36px 1fr;
}

.team-hero-faces img {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(85, 255, 34, 0.28);
  border-radius: 50%;
  height: 36px;
  object-fit: cover;
  width: 36px;
}

.team-hero-faces span {
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teams-index-page .tool-stat-row {
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.teams-index-page .tool-stat-row article {
  background:
    linear-gradient(135deg, rgba(10, 20, 21, 0.94), rgba(6, 11, 12, 0.98)),
    radial-gradient(circle at 80% 0%, rgba(85, 255, 34, 0.12), transparent 12rem);
  border-radius: 8px;
  min-height: 118px;
}

.league-command-board {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.75fr);
  margin-bottom: 0.85rem;
}

.league-featured-team,
.league-pulse,
.conference-lanes article,
.team-identity-strip article {
  background:
    radial-gradient(circle at 82% 8%, rgba(85, 255, 34, 0.1), transparent 18rem),
    linear-gradient(145deg, rgba(9, 18, 21, 0.97), rgba(4, 8, 10, 0.99));
  border: 1px solid rgba(221, 244, 239, 0.15);
  border-radius: 9px;
  overflow: hidden;
}

.league-featured-team {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 150px 180px;
  min-height: 220px;
  padding: 1.35rem;
  position: relative;
}

.league-featured-team::before,
.conference-lanes article::before,
.team-identity-strip article::before {
  background:
    linear-gradient(90deg, rgba(85, 255, 34, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(85, 255, 34, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.league-featured-team > *,
.conference-lanes article > *,
.team-identity-strip article > * {
  position: relative;
  z-index: 1;
}

.league-featured-team span,
.league-pulse > span,
.conference-lanes header span,
.team-north-star > span,
.team-pressure-card > span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.league-featured-team h2 {
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0.25rem 0;
}

.league-featured-team p,
.team-north-star p,
.team-pressure-card p {
  color: #dce6e5;
  line-height: 1.5;
  margin: 0;
  max-width: 620px;
}

.league-featured-team a,
.team-pressure-card a {
  color: var(--green);
  display: inline-flex;
  font-weight: 950;
  margin-top: 1rem;
}

.league-featured-team img {
  filter: drop-shadow(0 0 24px rgba(85, 255, 34, 0.18));
  max-height: 165px;
  object-fit: contain;
  opacity: 0.9;
  width: 100%;
}

.league-featured-team strong {
  color: var(--green);
  font-size: clamp(3.8rem, 5.4vw, 5.8rem);
  line-height: 0.9;
  text-align: right;
}

.league-pulse {
  padding: 1.2rem;
}

.league-pulse div {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.league-pulse p {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 0.85rem;
}

.league-pulse b {
  color: var(--green);
  display: block;
  font-size: 2.2rem;
  line-height: 1;
}

.league-pulse small {
  color: var(--muted);
  display: block;
  font-weight: 900;
  margin-top: 0.35rem;
  text-transform: uppercase;
}

.team-league-map {
  align-items: stretch;
  background:
    radial-gradient(circle at 12% 20%, rgba(85, 255, 34, 0.13), transparent 20rem),
    radial-gradient(circle at 92% 8%, rgba(19, 168, 255, 0.12), transparent 18rem),
    linear-gradient(90deg, rgba(85, 255, 34, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(85, 255, 34, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(8, 16, 18, 0.98), rgba(4, 8, 10, 0.99));
  background-size: auto, auto, 54px 54px, 54px 54px, auto;
  border: 1px solid rgba(221, 244, 239, 0.15);
  border-radius: 9px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  margin-bottom: 0.85rem;
  padding: 1.1rem;
}

.team-league-map h2 {
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0.2rem 0 0;
}

.identity-map {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.identity-map button {
  background:
    radial-gradient(circle at 50% 0%, rgba(85, 255, 34, 0.16), transparent 7rem),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  min-height: 132px;
  padding: 0.85rem;
  text-align: left;
}

.identity-map button:hover {
  border-color: rgba(85, 255, 34, 0.38);
  transform: translateY(-1px);
}

.identity-map span,
.team-card-identity span {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.identity-map strong {
  color: var(--green);
  display: block;
  font-size: 3rem;
  line-height: 0.95;
  margin-top: 0.45rem;
}

.identity-map small {
  color: var(--muted);
  display: block;
  font-weight: 900;
  margin-top: 0.25rem;
  text-transform: uppercase;
}

.conference-lanes {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.1rem;
}

.conference-lanes article {
  padding: 1rem;
  position: relative;
}

.conference-lanes header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.conference-lanes header a {
  color: var(--blue);
  font-weight: 900;
}

.conference-lanes article > div {
  display: grid;
  gap: 0.35rem;
}

.conference-lanes article a {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 7px;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 24px 38px minmax(0, 1fr) 64px;
  padding: 0.48rem 0.55rem;
}

.conference-lanes article a span,
.conference-lanes article a strong {
  color: var(--green);
  font-weight: 950;
}

.conference-lanes img {
  height: 32px;
  object-fit: contain;
  width: 32px;
}

.conference-lanes b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conference-lanes small {
  color: var(--muted);
  display: none;
}

.teams-grid-heading {
  align-items: center;
  margin-top: 1.2rem;
}

.teams-grid-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4.5rem);
}

.team-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  max-width: 720px;
}

.team-filter-pills button {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #dce6e5;
  cursor: pointer;
  font-weight: 900;
  padding: 0.56rem 0.75rem;
}

.team-filter-pills button.is-active,
.team-filter-pills button:hover {
  background: var(--green);
  border-color: var(--green);
  color: #061006;
}

.teams-index-page .team-grid {
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teams-index-page .team-card {
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--team-primary, var(--green)) 24%, transparent), transparent 14rem),
    radial-gradient(circle at 100% 22%, rgba(19, 168, 255, 0.11), transparent 16rem),
    linear-gradient(145deg, rgba(10, 19, 21, 0.98), rgba(4, 8, 9, 0.99));
  border-color: rgba(221, 244, 239, 0.14);
  border-radius: 9px;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto 4.85rem 1fr auto;
  min-height: 390px;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.teams-index-page .team-card::before {
  background:
    linear-gradient(90deg, rgba(85, 255, 34, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(85, 255, 34, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
  position: absolute;
}

.teams-index-page .team-card > :not(.team-card-watermark) {
  position: relative;
  z-index: 1;
}

.team-card-watermark {
  height: 240px;
  opacity: 0.07;
  position: absolute;
  right: -54px;
  top: 16px;
  width: 240px;
  z-index: 0;
}

.team-card-watermark img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.teams-index-page .team-card header {
  align-items: center;
}

.team-card-logo {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  height: 76px;
  justify-items: center;
  overflow: hidden;
  position: relative;
  width: 76px;
}

.team-card-logo img {
  height: 72%;
  object-fit: contain;
  width: 72%;
}

.team-card-logo span {
  color: rgba(255, 255, 255, 0.12);
  font-size: 1rem;
  position: absolute;
}

.teams-index-page .team-card-logo span {
  display: none;
}

.teams-index-page .team-card h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0.4rem 0 0.65rem;
}

.team-card-identity {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  margin-bottom: 0.65rem;
  padding: 0.65rem;
}

.team-card-identity strong {
  color: var(--green);
  display: block;
  font-size: 1.1rem;
  line-height: 1.1;
  margin-top: 0.16rem;
}

.team-card-score {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  margin-bottom: 0.8rem;
  padding-bottom: 0.85rem;
}

.team-card-score span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.team-card-score strong {
  color: var(--green);
  font-size: 3.25rem;
  line-height: 0.9;
}

.team-card-score-value {
  align-items: baseline;
  display: flex;
  gap: 0.65rem;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.team-card-score-value span {
  color: var(--muted);
  white-space: nowrap;
}

.team-card-score em {
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.teams-index-page .team-highlights p {
  background: rgba(255, 255, 255, 0.045);
  border-radius: 7px;
  grid-template-columns: 80px 1fr auto;
}

.teams-index-page .role-mix {
  align-content: start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0;
  max-height: 4.4rem;
  overflow: hidden;
}

.teams-index-page .role-mix span {
  max-width: 100%;
}

.team-card-player-strip {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
  margin-top: 0;
  padding-top: 0.6rem;
}

.team-card-player-strip a {
  align-items: center;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 24px 1fr;
  padding: 0.32rem 0;
}

.team-card-player-strip i {
  color: var(--green);
  font-style: normal;
  font-weight: 950;
}

.team-card-player-strip b {
  color: #fff;
  line-height: 1.1;
}

.team-card-player-strip span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  grid-column: 2;
  margin-top: -0.35rem;
}

.teams-index-page .team-card-action {
  background: rgba(85, 255, 34, 0.08);
  border: 1px solid rgba(85, 255, 34, 0.22);
  border-radius: 7px;
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
}

.teams-index-page .team-card:hover {
  border-color: color-mix(in srgb, var(--team-primary, var(--green)) 48%, rgba(255,255,255,0.15));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35), 0 0 42px color-mix(in srgb, var(--team-primary, var(--green)) 18%, transparent);
  transform: translateY(-2px);
}

.team-card-player-photos {
  align-items: end;
  display: flex;
  gap: 0;
  height: 72px;
  margin: -0.3rem 0 0.7rem;
}

.team-card-player-photos a {
  border-radius: 50%;
  display: block;
  margin-right: -0.55rem;
  position: relative;
  transition: transform 160ms ease;
}

.team-card-player-photos a:hover,
.team-card-player-photos a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  transform: translateY(-4px);
  z-index: 2;
}

.team-card-player-photos img {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid color-mix(in srgb, var(--team-primary, var(--green)) 46%, rgba(255,255,255,0.16));
  border-radius: 50%;
  height: 66px;
  object-fit: cover;
  width: 66px;
}

.team-card-player-photos a:nth-child(2) img {
  height: 72px;
  width: 72px;
}

.featured-team-visual {
  align-items: center;
  display: grid;
  justify-items: center;
  min-width: 0;
}

.featured-team-visual > img {
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--team-primary, var(--green)) 32%, transparent));
  max-height: 126px;
  object-fit: contain;
  width: 100%;
}

.featured-team-visual div {
  display: flex;
  justify-content: center;
  margin-top: -1rem;
}

.featured-team-visual div a {
  border-radius: 50%;
  margin-left: -0.5rem;
  position: relative;
}

.featured-team-visual div a:hover,
.featured-team-visual div a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  transform: translateY(-3px);
  z-index: 2;
}

.featured-team-visual div img {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid color-mix(in srgb, var(--team-primary, var(--green)) 48%, rgba(255,255,255,0.18));
  border-radius: 50%;
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.team-dashboard-page .topbar,
.teams-index-page .topbar {
  background: rgba(5, 6, 6, 0.94);
}

.team-dashboard-page .team-page-shell {
  max-width: 1680px;
}

.team-dashboard-page .team-dashboard-hero {
  background:
    radial-gradient(circle at 16% 46%, color-mix(in srgb, var(--team-primary, var(--blue)) 25%, transparent), transparent 28rem),
    radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--team-secondary, var(--green)) 22%, transparent), transparent 28rem),
    linear-gradient(90deg, rgba(85, 255, 34, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(85, 255, 34, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(9, 18, 21, 0.99), rgba(3, 7, 9, 0.99));
  background-size: auto, auto, 72px 72px, 72px 72px, auto;
  border-color: rgba(221, 244, 239, 0.16);
  grid-template-columns: minmax(360px, 0.82fr) minmax(320px, 0.7fr) minmax(500px, 0.98fr);
  min-height: 330px;
  padding: clamp(1.4rem, 2.7vw, 2.7rem);
}

.team-dashboard-page .team-dashboard-hero::after {
  background: linear-gradient(90deg, transparent, rgba(85, 255, 34, 0.07), transparent);
  content: "";
  height: 1px;
  left: 2rem;
  position: absolute;
  right: 2rem;
  top: 50%;
  z-index: 0;
}

.team-dashboard-page .team-title-block {
  gap: 1.35rem;
  grid-template-columns: 148px 1fr;
}

.team-dashboard-page .team-logo-frame {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 70px color-mix(in srgb, var(--team-primary, var(--green)) 18%, transparent);
}

.team-dashboard-page .team-title-block h1 {
  font-size: clamp(4rem, 6.6vw, 6.7rem);
  max-width: 620px;
}

.team-hero-core {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
  max-width: 520px;
}

.team-hero-core a {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.3rem 0.75rem 0.3rem 0.3rem;
}

.team-hero-core img {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  height: 34px;
  object-fit: cover;
  width: 34px;
}

.team-hero-core span {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.team-hero-players {
  align-items: end;
  align-self: stretch;
  display: flex;
  gap: 1rem;
  justify-content: center;
  min-height: 280px;
  position: relative;
  z-index: 1;
}

.team-hero-players::before {
  background: color-mix(in srgb, var(--team-primary, var(--green)) 20%, transparent);
  border-radius: 50%;
  bottom: 1.5rem;
  content: "";
  filter: blur(18px);
  height: 170px;
  position: absolute;
  width: 260px;
  z-index: -1;
}

.team-hero-player {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-width: 0;
  position: relative;
  width: 32%;
}

.team-hero-player img {
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.5));
  height: clamp(145px, 15vw, 220px);
  object-fit: contain;
  width: 150%;
}

.team-hero-player.player-1 img {
  height: clamp(190px, 19vw, 270px);
}

.team-hero-player span {
  background: rgba(4, 8, 10, 0.88);
  border: 1px solid color-mix(in srgb, var(--team-primary, var(--green)) 44%, rgba(255,255,255,0.14));
  border-radius: 999px;
  display: block;
  margin-top: -0.55rem;
  max-width: 170px;
  min-height: 48px;
  padding: 0.5rem 0.7rem;
  position: relative;
  text-align: center;
}

.team-hero-player b {
  display: block;
  font-size: 0.74rem;
  line-height: 1.05;
}

.team-hero-player small {
  color: var(--muted);
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  margin-top: 0.18rem;
}

.team-dashboard-page .team-hero-metrics {
  align-self: center;
  background: rgba(4, 8, 10, 0.5);
  border: 1px solid var(--line);
  border-radius: 9px;
  grid-template-columns: 1.25fr repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.team-dashboard-page .team-hero-metrics article {
  border-left: 0;
  border-top: 1px solid var(--line);
  min-height: 132px;
  padding: 1rem;
}

.team-dashboard-page .team-hero-metrics article:nth-child(-n + 3) {
  border-top: 0;
}

.team-dashboard-page .team-hero-metrics article:nth-child(3n + 2),
.team-dashboard-page .team-hero-metrics article:nth-child(3n + 3) {
  border-left: 1px solid var(--line);
}

.team-dashboard-page .team-hero-metrics strong {
  font-size: clamp(2rem, 3vw, 3.35rem);
  overflow-wrap: normal;
  word-break: normal;
}

.team-dashboard-page .team-hero-metrics .team-iq-main {
  grid-row: span 2;
  min-height: 264px;
}

.team-dashboard-page .team-hero-metrics .team-iq-main strong {
  background: none;
  border-radius: 0;
  display: block;
  font-size: clamp(3.6rem, 4.3vw, 5.1rem);
  letter-spacing: 0;
  line-height: 0.82;
  margin: 1.4rem 0 0.55rem;
  white-space: nowrap;
  width: auto;
}

.team-dashboard-page .team-hero-metrics .team-iq-main::after {
  background:
    conic-gradient(var(--green) 0 76%, color-mix(in srgb, var(--team-primary, var(--green)) 72%, var(--blue)) 76% 88%, rgba(255, 255, 255, 0.12) 88% 100%);
  border-radius: 999px;
  content: "";
  display: block;
  height: 10px;
  margin-top: 1.1rem;
  width: min(100%, 220px);
}

.team-dashboard-page .team-hero-metrics article:not(.team-iq-main) strong {
  font-size: clamp(1.35rem, 1.7vw, 1.9rem);
  line-height: 1.04;
}

.team-dashboard-page .team-tabs {
  background: rgba(4, 8, 10, 0.64);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 0.9rem;
  padding: 0 1rem;
}

.team-identity-strip {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(320px, 1.1fr) minmax(380px, 1.25fr) minmax(280px, 0.8fr);
  margin-bottom: 0.85rem;
}

.team-identity-strip article {
  min-height: 250px;
  padding: 1.15rem;
  position: relative;
}

.team-north-star {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-north-star h2,
.team-pressure-card h2 {
  font-size: clamp(1.8rem, 2.5vw, 3rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0.35rem 0 0.8rem;
}

.team-north-star div {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.team-north-star b {
  color: var(--green);
  display: block;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.team-north-star small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  margin-top: 0.3rem;
  text-transform: uppercase;
}

.team-core-card header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.team-core-card h2 {
  font-size: 1.05rem;
  margin: 0;
  text-transform: uppercase;
}

.team-core-card header a {
  color: var(--blue);
  font-weight: 900;
}

.team-core-card > div {
  display: grid;
  gap: 0.5rem;
}

.team-core-card a {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 50px 1fr 64px;
  padding: 0.55rem;
}

.team-core-card img {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 50px;
  object-fit: cover;
  width: 50px;
}

.team-core-card b,
.team-core-card strong {
  color: #fff;
  font-weight: 950;
}

.team-core-card small {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.team-core-card strong {
  color: var(--green);
  font-size: 1.45rem;
  text-align: right;
}

.team-pressure-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-pressure-card b {
  color: #fff;
}

.team-dashboard-page .team-panel {
  background:
    radial-gradient(circle at 90% 0%, rgba(85, 255, 34, 0.08), transparent 18rem),
    linear-gradient(145deg, rgba(9, 18, 21, 0.97), rgba(4, 8, 10, 0.99));
  border-color: rgba(221, 244, 239, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 1.15rem;
}

.team-dashboard-page .team-panel h2 {
  font-size: 1.05rem;
}

.team-dashboard-page .team-needs-card {
  min-height: 292px;
}

.team-dashboard-page .team-lineup-card,
.team-dashboard-page .team-style-card {
  min-height: 330px;
}

.team-dashboard-page .team-roster-table {
  background:
    radial-gradient(circle at 85% 0%, rgba(19, 168, 255, 0.08), transparent 20rem),
    linear-gradient(145deg, rgba(9, 18, 21, 0.97), rgba(4, 8, 10, 0.99));
}

@media (max-width: 1180px) {
  .team-dashboard-hero,
  .team-blueprint,
  .team-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .team-needs-card,
  .team-lineup-card,
  .team-style-card,
  .team-key-contracts {
    grid-column: auto;
  }

  .team-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-league-map,
  .identity-map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .team-title-block,
  .team-needs-body,
  .team-contract-layout,
  .team-style-card {
    grid-template-columns: 1fr;
  }

  .team-logo-frame {
    max-width: 112px;
  }

  .team-hero-metrics,
  .team-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-dashboard-page .team-hero-metrics .team-iq-main {
    grid-row: auto;
  }

  .blueprint-court {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .blueprint-player:nth-child(n) {
    transform: none;
  }

  .team-hero-metrics article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .team-lineup-table a {
    grid-template-columns: 34px 38px 1fr 52px;
  }

  .team-lineup-table em,
  .team-lineup-table small {
    display: none;
  }

  .team-needs-body > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 1rem;
  }
}

.method-grid p,
.empty-state p {
  color: var(--muted);
  line-height: 1.55;
}

.method-roles {
  padding-top: 3rem;
}

.role-detail-hero {
  background:
    radial-gradient(circle at 76% 22%, rgba(105, 245, 51, 0.18), transparent 26rem),
    linear-gradient(135deg, rgba(13, 23, 27, 0.96), rgba(5, 8, 9, 0.98));
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 280px;
  min-height: 420px;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
}

.role-detail-hero h1 {
  font-size: clamp(3.5rem, 7vw, 7rem);
  margin-bottom: 1rem;
}

.role-detail-hero p:not(.eyebrow) {
  color: #cad4d8;
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 780px;
}

.role-score-card {
  align-self: end;
  background:
    radial-gradient(circle at 100% 0%, rgba(105, 245, 51, 0.18), transparent 60%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1rem;
}

.role-score-card span {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-score-card strong {
  color: var(--green);
  display: block;
  font-size: 5rem;
  line-height: 0.9;
  margin: 0.7rem 0;
}

.role-score-card p {
  color: #d6e0e3;
  line-height: 1.4;
  margin: 0;
}

.role-detail-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 0.75fr 1.25fr 0.75fr;
  padding-top: 0.7rem;
}

.role-inputs {
  display: grid;
  gap: 0.65rem;
}

.role-inputs article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0.8rem;
}

.role-inputs span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-inputs strong {
  color: var(--green);
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  margin: 0.4rem 0;
}

.role-inputs p {
  color: #cbd5d9;
  margin: 0;
}

.role-notes ul {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.role-notes li {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 8px;
  color: #d1dbdf;
  line-height: 1.45;
  padding: 0.8rem;
}

.related-roles {
  padding-top: 3rem;
}

.admin-login {
  display: grid;
  min-height: calc(100vh - 120px);
  place-items: center;
}

.admin-login form {
  background:
    radial-gradient(circle at 86% 18%, rgba(105, 245, 51, 0.14), transparent 15rem),
    linear-gradient(145deg, rgba(13, 23, 27, 0.96), rgba(5, 8, 9, 0.98));
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 520px;
  padding: clamp(1.25rem, 4vw, 2rem);
  width: min(100%, 520px);
}

.admin-login h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  margin-bottom: 1.25rem;
}

.admin-login label {
  color: #dce6e9;
  display: grid;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-login input {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  height: 46px;
  padding: 0 0.85rem;
}

.admin-login button {
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: #061006;
  cursor: pointer;
  font-weight: 900;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  width: 100%;
}

.admin-login-message {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-top: 0.9rem;
}

.admin-hero {
  background:
    radial-gradient(circle at 82% 24%, rgba(105, 245, 51, 0.14), transparent 24rem),
    linear-gradient(135deg, rgba(13, 23, 27, 0.96), rgba(5, 8, 9, 0.98));
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 320px;
  min-height: 330px;
  padding: clamp(1rem, 3vw, 2rem);
}

.admin-hero h1 {
  font-size: clamp(3rem, 6vw, 6.4rem);
  margin-bottom: 1rem;
}

.admin-hero p:not(.eyebrow) {
  color: #cad4d8;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 760px;
}

.admin-status {
  align-self: end;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #dce6e9;
  font-weight: 800;
  line-height: 1.45;
  padding: 1rem;
}

.admin-status[data-type="success"] {
  border-color: var(--line-strong);
  color: var(--green);
}

.admin-status[data-type="error"] {
  border-color: rgba(255, 111, 97, 0.4);
  color: var(--danger);
}

.admin-kpis {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0.7rem;
}

.admin-kpis article,
.admin-panel {
  background: linear-gradient(145deg, rgba(13, 23, 27, 0.94), rgba(6, 11, 13, 0.96));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}

.admin-kpis span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-kpis strong {
  color: var(--green);
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  margin: 0.55rem 0;
}

.admin-kpis p {
  color: var(--muted);
  margin: 0;
}

.admin-nav {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.55rem;
}

.admin-nav button {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid transparent;
  border-radius: 8px;
  color: #dce6e9;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 38px;
  padding: 0 0.85rem;
}

.admin-nav button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #061007;
}

.admin-panel-intro {
  color: var(--muted);
  line-height: 1.5;
  margin: 0.65rem 0 0;
  max-width: 680px;
}

.admin-users-panel {
  background:
    radial-gradient(circle at 92% 0%, rgba(105, 245, 51, 0.1), transparent 25rem),
    linear-gradient(145deg, rgba(12, 22, 25, 0.98), rgba(5, 10, 12, 0.98));
}

.admin-user-summary {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.admin-user-summary article {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 1rem;
}

.admin-user-summary span,
.admin-user-summary small,
.admin-user-meta span,
.admin-user-access > span,
.admin-user-search > span {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-user-summary strong {
  color: var(--green);
  display: block;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  margin: 0.55rem 0 0.45rem;
}

.admin-user-toolbar {
  align-items: end;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 -1rem 0.25rem;
  padding: 0.85rem 1rem;
}

.admin-user-search {
  display: grid;
  gap: 0.35rem;
  max-width: 420px;
  width: 100%;
}

.admin-user-search input,
.admin-user-access select {
  background: #11191c;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  min-height: 42px;
  padding: 0 0.75rem;
  width: 100%;
}

.admin-user-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-user-filters button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 38px;
  padding: 0 0.75rem;
}

.admin-user-filters button.is-active {
  background: rgba(105, 245, 51, 0.12);
  border-color: var(--green);
  color: var(--green);
}

.admin-user-list {
  display: grid;
}

.admin-user-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(260px, 1.6fr) minmax(120px, 0.65fr) minmax(100px, 0.55fr) minmax(180px, 0.8fr) 110px;
  min-width: 0;
  padding: 0.9rem 0;
}

.admin-user-row:last-child {
  border-bottom: 0;
}

.admin-user-identity {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 48px minmax(0, 1fr);
  min-width: 0;
}

.admin-user-identity img,
.admin-user-avatar {
  align-items: center;
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(105, 245, 51, 0.22), rgba(0, 174, 239, 0.13));
  border: 1px solid rgba(105, 245, 51, 0.3);
  border-radius: 50%;
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  justify-content: center;
  object-fit: cover;
  width: 48px;
}

.admin-user-identity strong,
.admin-user-identity a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-identity strong {
  font-size: 1rem;
}

.admin-user-identity a {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.25rem;
  text-decoration: none;
}

.admin-user-meta strong {
  display: block;
  font-size: 0.86rem;
  margin-top: 0.35rem;
  text-transform: capitalize;
}

.admin-user-status {
  color: #dce6e9;
}

.admin-user-status.is-admin {
  color: var(--blue);
}

.admin-user-status.is-subscriber {
  color: var(--green);
}

.admin-user-access {
  display: grid;
  gap: 0.35rem;
}

.admin-user-save {
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 7px;
  color: #061007;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 42px;
}

.admin-user-save:disabled {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.admin-user-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
  min-height: 220px;
  text-align: center;
}

.admin-user-empty strong {
  color: var(--text);
  font-size: 1.1rem;
}

.admin-user-empty.is-error strong {
  color: var(--danger);
}

@media (max-width: 1100px) {
  .admin-user-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-row {
    grid-template-columns: minmax(240px, 1.5fr) minmax(110px, 0.7fr) minmax(170px, 0.9fr) 105px;
  }

  .admin-user-row .admin-user-meta:nth-of-type(2) {
    display: none;
  }
}

@media (max-width: 760px) {
  .admin-user-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-user-row {
    grid-template-columns: 1fr 1fr;
  }

  .admin-user-identity {
    grid-column: 1 / -1;
  }

  .admin-user-access {
    grid-column: 1 / -1;
  }

  .admin-user-save {
    grid-column: 1 / -1;
  }
}

.admin-panel {
  margin-top: 3rem;
}

.admin-panel > header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.admin-panel h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  margin: 0;
}

.admin-wide-field {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}

.admin-save-role,
.admin-save-scouting {
  margin: 0.35rem 0 1.1rem;
  width: fit-content;
}

.admin-health {
  background:
    radial-gradient(circle at 78% 12%, rgba(105, 245, 51, 0.12), transparent 22rem),
    linear-gradient(145deg, rgba(13, 23, 27, 0.94), rgba(6, 11, 13, 0.96));
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 0.75rem;
  padding: 1rem;
}

.admin-health > header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-health h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  line-height: 1;
  margin: 0;
}

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

.admin-health-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 0.45rem;
  min-height: 126px;
  padding: 1rem;
  text-align: left;
}

.admin-health-card:hover,
.admin-health-card:focus {
  border-color: var(--line-strong);
}

.admin-health-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-health-card strong {
  color: var(--green);
  font-size: 2.45rem;
  line-height: 1;
}

.admin-health-card small {
  color: #c7d1d4;
  font-weight: 700;
  line-height: 1.35;
}

.admin-workspace {
  display: grid;
  gap: 1rem;
  grid-template-columns: 250px minmax(420px, 1fr) 340px;
  min-height: 680px;
}

.admin-team-rail,
.admin-roster-panel,
.admin-editor {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  padding: 0.8rem;
}

.admin-rail-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.admin-rail-title span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-team-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  max-height: 610px;
  overflow: auto;
  padding-right: 0.25rem;
}

.admin-panel .admin-team-card {
  align-items: flex-start;
  background:
    radial-gradient(circle at 100% 0%, rgba(105, 245, 51, 0.1), transparent 68%),
    linear-gradient(145deg, rgba(12, 20, 23, 0.96), rgba(3, 6, 7, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 0.35rem;
  min-height: 104px;
  padding: 0.85rem;
  text-align: left;
}

.admin-panel .admin-team-card:hover,
.admin-panel .admin-team-card:focus,
.admin-panel .admin-team-card.is-active {
  background:
    radial-gradient(circle at 100% 0%, rgba(105, 245, 51, 0.16), transparent 68%),
    linear-gradient(145deg, rgba(14, 24, 27, 0.98), rgba(4, 8, 9, 0.98));
  border-color: var(--line-strong);
}

.admin-panel .admin-team-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-panel .admin-team-card strong {
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.admin-panel .admin-team-card small {
  color: #cad4d8;
  font-weight: 800;
}

.admin-team-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
}

.admin-team-toolbar h3 {
  font-size: 1.12rem;
  margin: 0;
}

.admin-team-summary {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 0.25rem;
}

.admin-roster-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.admin-roster-filters button,
.admin-rail-title button,
.admin-health > header button {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #dce6e9;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  min-height: 30px;
  padding: 0 0.62rem;
}

.admin-roster-filters button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #061007;
}

.admin-panel button,
.admin-table button {
  background: var(--green);
  border: 0;
  border-radius: 7px;
  color: #061007;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 38px;
  padding: 0 0.85rem;
}

.admin-player-list {
  display: grid;
  gap: 0.55rem;
  max-height: 585px;
  overflow: auto;
  padding-right: 0.25rem;
}

.admin-player-card {
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(270px, 1fr) minmax(300px, auto);
  min-height: 82px;
  padding: 0.6rem 0.75rem;
}

.admin-player-card.is-active {
  background: linear-gradient(135deg, rgba(105, 245, 51, 0.12), rgba(255, 255, 255, 0.035));
  border-color: var(--line-strong);
}

.admin-player-open {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 50px minmax(0, 1fr);
  min-width: 0;
  padding: 0;
  text-align: left;
}

.admin-player-open img,
.admin-editor header img {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.admin-player-open img {
  width: 50px;
}

.admin-player-open strong,
.admin-player-open small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-player-open strong {
  font-size: 0.98rem;
}

.admin-player-open small {
  color: var(--muted);
  font-weight: 800;
  margin-top: 0.18rem;
}

.admin-player-card-metrics {
  align-items: center;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(5, minmax(50px, 56px));
  justify-items: end;
}

.admin-player-card-metrics .admin-metric-chip {
  background: rgba(3, 6, 7, 0.52);
  border: 1px solid rgba(210, 236, 242, 0.08);
  border-radius: 7px;
  min-width: 0;
  padding: 0.38rem 0.3rem 0.32rem;
  text-align: center;
  width: 100%;
}

.admin-player-card-metrics .admin-metric-chip b {
  color: var(--green);
  display: block;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0;
}

.admin-player-card-metrics .admin-metric-chip small,
.admin-player-card-metrics em {
  color: var(--muted);
  display: block;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  margin-top: 0.28rem;
  text-transform: uppercase;
}

.admin-player-card-metrics em {
  background: rgba(241, 184, 50, 0.12);
  border: 1px solid rgba(241, 184, 50, 0.28);
  border-radius: 999px;
  color: #c7d1d4;
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 0.05rem;
  padding: 0.24rem 0.46rem;
  text-align: center;
}

.admin-editor {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow: auto;
}

.admin-editor-empty {
  align-content: center;
  display: grid;
  min-height: 420px;
  text-align: center;
}

.admin-editor-empty h3,
.admin-editor-form h3 {
  font-size: 1.8rem;
  line-height: 1;
  margin: 0.25rem 0;
}

.admin-editor-empty p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 auto;
  max-width: 270px;
}

.admin-editor-form {
  display: grid;
  gap: 0.9rem;
}

.admin-editor-form header {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 74px minmax(0, 1fr);
}

.admin-editor header img {
  width: 74px;
}

.admin-editor-form header small {
  color: var(--muted);
  font-weight: 800;
}

.admin-editor-actions {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr 1fr;
}

.admin-editor-actions a {
  background: rgba(20, 169, 255, 0.1);
  border: 1px solid rgba(20, 169, 255, 0.24);
  border-radius: 7px;
  color: var(--blue);
  font-weight: 900;
  padding: 0.7rem;
  text-align: center;
}

.admin-editor-actions button,
.admin-generate-scouting {
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 7px;
  color: #061007;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  min-height: 42px;
  padding: 0.7rem;
}

.admin-editor-actions button {
  grid-column: 1 / -1;
}

.admin-editor-actions button:disabled,
.admin-generate-scouting:disabled {
  cursor: progress;
  opacity: 0.68;
}

.admin-generate-scouting {
  margin: 0.35rem 0 0.6rem;
  width: fit-content;
}

.admin-scouting-bulk {
  background:
    radial-gradient(circle at 100% 0%, rgba(105, 245, 51, 0.12), transparent 44%),
    rgba(3, 8, 9, 0.76);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
}

.admin-scouting-bulk > header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.admin-scouting-bulk h3 {
  font-size: 1.45rem;
  margin: 0.2rem 0 0.35rem;
}

.admin-scouting-bulk header p:last-child,
.admin-queue-note {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.admin-queue-state {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dce6e9;
  font-size: 0.72rem;
  font-weight: 950;
  padding: 0.4rem 0.65rem;
  text-transform: uppercase;
}

.admin-queue-state[data-status="running"] {
  background: rgba(20, 169, 255, 0.12);
  border-color: rgba(20, 169, 255, 0.35);
  color: var(--blue);
}

.admin-queue-state[data-status="completed"] {
  background: rgba(105, 245, 51, 0.1);
  border-color: var(--line-strong);
  color: var(--green);
}

.admin-queue-state[data-status="cancelled"] {
  background: rgba(241, 184, 50, 0.11);
  border-color: rgba(241, 184, 50, 0.3);
  color: #f1b832;
}

.admin-scouting-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-panel .admin-secondary-button {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  color: #dce6e9;
}

.admin-panel .admin-secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-queue-progress {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(210, 236, 242, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 0.8rem;
  padding: 0.85rem;
}

.admin-queue-progress-copy {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.admin-queue-progress-copy strong {
  color: #f2f7f6;
}

.admin-queue-progress-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.admin-queue-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.admin-queue-track span {
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.35s ease;
}

.admin-queue-stats {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-queue-stats span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-queue-stats b {
  color: var(--green);
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.1rem;
}

.admin-queue-results {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-queue-results article {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(210, 236, 242, 0.08);
  border-radius: 7px;
  display: grid;
  gap: 0.15rem 0.6rem;
  grid-template-columns: auto 1fr;
  padding: 0.6rem;
}

.admin-queue-results article span {
  border-radius: 999px;
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 950;
  grid-row: 1 / 3;
  text-transform: uppercase;
}

.admin-queue-results article[data-status="failed"] span {
  color: #ff7468;
}

.admin-queue-results article[data-status="skipped"] span {
  color: #f1b832;
}

.admin-queue-results article strong,
.admin-queue-results article small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-queue-results article small {
  color: var(--muted);
}

.admin-queue-note {
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  padding-top: 0.8rem;
}

.admin-editor-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-editor-flags span {
  background: rgba(105, 245, 51, 0.09);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.35rem 0.55rem;
  text-transform: uppercase;
}

.admin-editor-form label {
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-editor-form label small {
  color: #c7d1d4;
  font-size: 0.75rem;
  text-transform: none;
}

.admin-editor-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr 1fr;
}

.admin-editor-form select,
.admin-editor-form input,
.admin-editor-form output {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: var(--text);
  display: flex;
  align-items: center;
  font: inherit;
  min-height: 42px;
  outline: none;
  padding: 0 0.65rem;
  width: 100%;
}

.admin-editor-form output {
  border-color: var(--line-strong);
  color: var(--green);
  font-weight: 900;
}

.admin-editor-receipt {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
}

.admin-editor-receipt small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.admin-editor-form > button {
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: #061007;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 46px;
}

.admin-studio-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 320px minmax(0, 1fr);
}

.admin-studio-list {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 0.5rem;
  max-height: 680px;
  overflow: auto;
  padding: 0.75rem;
}

.admin-studio-list button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  text-align: left;
}

.admin-studio-list button.is-active,
.admin-studio-list button:hover {
  border-color: var(--line-strong);
}

.admin-studio-list strong,
.admin-studio-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-studio-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-studio-detail,
.admin-preview-card {
  background:
    radial-gradient(circle at 84% 12%, rgba(105, 245, 51, 0.1), transparent 18rem),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 420px;
  padding: 1rem;
}

.admin-studio-detail h3,
.admin-preview-card h3 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.95;
  margin: 0.25rem 0 1rem;
}

.admin-formula-grid,
.admin-report-sections,
.admin-control-grid,
.admin-settings-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-formula-grid article,
.admin-report-sections article,
.admin-settings-grid article {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
}

.admin-formula-grid span,
.admin-report-sections b,
.admin-settings-grid span,
.admin-report-score span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-formula-grid strong,
.admin-settings-grid strong,
.admin-report-score strong {
  color: var(--green);
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin: 0.45rem 0;
}

.admin-formula-grid small,
.admin-report-sections span,
.admin-settings-grid p,
.admin-report-score small,
.admin-preview-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.admin-mini-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}

.admin-mini-list a,
.admin-mini-list span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  padding: 0.65rem;
}

.admin-blue-link {
  color: var(--blue);
  font-weight: 900;
}

.admin-story-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
}

.admin-story-actions span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-report-score {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  padding: 0.9rem;
}

.admin-studio-detail textarea,
.admin-control-grid textarea,
.admin-control-grid input,
.admin-control-grid select,
.admin-story-draft {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 42px;
  padding: 0.75rem;
  width: 100%;
}

.admin-studio-detail textarea {
  margin: 0.75rem 0;
  min-height: 210px;
}

.admin-control-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.admin-control-grid label {
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-control-grid textarea {
  min-height: 92px;
}

.admin-preview-card {
  min-height: 220px;
}

.admin-preview-card strong {
  color: var(--green);
  display: block;
  font-size: 2rem;
  margin-top: 1rem;
}

.admin-story-draft {
  min-height: 420px;
  line-height: 1.55;
}

.admin-activity-list {
  display: grid;
  gap: 0.65rem;
}

.admin-activity-list article,
.admin-activity-list p {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
}

.admin-activity-list strong,
.admin-activity-list span {
  display: block;
}

.admin-activity-list span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.admin-panel .admin-player-open {
  background: transparent;
  border: 0;
  color: var(--text);
  min-height: auto;
  padding: 0;
}

.admin-panel .admin-roster-filters button {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  color: #dce6e9;
}

.admin-panel .admin-roster-filters button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #061007;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  min-width: 1080px;
}

.admin-table td:first-child {
  color: var(--text);
}

.admin-table td:first-child strong {
  display: block;
}

.admin-table td:first-child small {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: 0.2rem;
}

.admin-player-cell {
  align-items: center;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 42px minmax(160px, 1fr);
}

.admin-player-cell img {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  width: 42px;
}

.admin-photo-upload {
  display: grid;
  gap: 0.35rem;
}

.admin-photo-upload input {
  max-width: 150px;
}

.admin-photo-upload span {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table select,
.admin-table input,
.admin-table output {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: var(--text);
  display: flex;
  align-items: center;
  font: inherit;
  min-height: 38px;
  outline: none;
  padding: 0 0.65rem;
  width: 100%;
}

.admin-table output {
  border-color: var(--line-strong);
  color: var(--green);
  font-weight: 900;
}

.metric-status {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d6e0e3;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  min-height: 32px;
  padding: 0 0.65rem;
  white-space: nowrap;
}

.metric-status[data-status="live_calculated"] {
  border-color: var(--line-strong);
  color: var(--green);
}

.metric-status[data-status="inputs_present"] {
  border-color: rgba(19, 168, 255, 0.42);
  color: #7fd0ff;
}

.metric-status[data-status="partial_estimate"] {
  border-color: rgba(241, 184, 50, 0.45);
  color: var(--amber);
}

.metric-status[data-status="missing_inputs"] {
  border-color: rgba(255, 111, 97, 0.45);
  color: var(--danger);
}

.metric-status[data-status="needs_review"] {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--muted);
}

/* Home v2 */
.home-v2 {
  background:
    radial-gradient(circle at 72% 8%, rgba(105, 245, 51, 0.14), transparent 22rem),
    radial-gradient(circle at 18% 28%, rgba(19, 168, 255, 0.08), transparent 28rem),
    #030606;
}

.home-v2 .topbar {
  grid-template-columns: 220px 1fr auto;
  min-height: 66px;
  padding-block: 0.55rem;
}

.home-v2 .brand img {
  height: 34px;
  width: 188px;
}

.home-v2 .nav-links {
  gap: clamp(1rem, 2.2vw, 2.3rem);
}

.home-v2 .nav-links .active {
  color: var(--green);
  position: relative;
}

.home-v2 .nav-links .active::after {
  background: var(--green);
  bottom: -1.25rem;
  box-shadow: 0 0 14px rgba(105, 245, 51, 0.8);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.home-nav-actions {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.icon-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #eaf1f3;
  display: inline-flex;
  font-size: 1.05rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.sign-in {
  align-items: center;
  background: linear-gradient(180deg, #55ff22, #30d914);
  border-radius: 8px;
  color: #061006;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  padding: 0 1rem;
}

.home-shell {
  max-width: 1680px;
  padding-top: 1rem;
}

.home-hero,
.insight-board,
.role-orbit,
.role-scatter,
.story-rail article,
.compare-teaser,
.leader-card-panel,
.metric-footer,
.filter-bar {
  border: 1px solid rgba(192, 230, 237, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.home-hero {
  background:
    linear-gradient(rgba(105, 245, 51, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 245, 51, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 75% 42%, rgba(105, 245, 51, 0.24), transparent 24rem),
    linear-gradient(135deg, rgba(8, 15, 17, 0.98), rgba(3, 7, 8, 0.98));
  background-size: 38px 38px, 38px 38px, auto, auto;
  border-radius: 14px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(360px, 0.72fr) minmax(540px, 1.28fr);
  overflow: hidden;
  padding: 1rem;
}

.hero-command {
  padding: clamp(0.6rem, 2vw, 1rem) clamp(0.2rem, 1vw, 0.8rem);
}

.hero-command h1 {
  font-size: clamp(3.1rem, 5.1vw, 6.2rem);
  line-height: 0.94;
  margin: 0 0 0.7rem;
  max-width: 630px;
  text-transform: uppercase;
}

.hero-command h1::first-line {
  color: #fff;
}

.hero-command h1 {
  color: var(--green);
}

.hero-command p:not(.eyebrow) {
  color: #d1dcdf;
  font-size: 1rem;
  line-height: 1.45;
  max-width: 580px;
}

.hero-search {
  align-items: center;
  background: rgba(5, 10, 12, 0.94);
  border: 2px solid var(--green);
  border-radius: 18px;
  box-shadow: 0 0 28px rgba(105, 245, 51, 0.28);
  display: flex;
  gap: 1rem;
  margin: 1.2rem 0 0.85rem;
  max-width: 660px;
  min-height: 76px;
  padding: 0 1.1rem;
  position: relative;
}

.hero-search > span {
  color: #fff;
  font-size: 2.1rem;
}

.hero-search input {
  background: transparent;
  border: 0;
  color: #fff;
  flex: 1;
  font: inherit;
  font-size: 1.45rem;
  outline: 0;
}

.hero-search .search-results {
  top: calc(100% + 0.65rem);
}

.trending-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.trending-row b {
  color: var(--green);
  font-size: 0.82rem;
}

.trending-row a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbe5e8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.34rem 0.62rem;
}

.quick-lanes {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(6, 1fr);
}

.quick-lanes a {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  min-height: 88px;
  padding: 0.7rem 0.4rem;
  text-align: center;
}

.quick-lanes span {
  align-items: center;
  background: rgba(105, 245, 51, 0.12);
  border: 1px solid rgba(105, 245, 51, 0.28);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-size: 1.25rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.quick-lanes b {
  color: #f1f6f7;
  font-size: 0.72rem;
  line-height: 1.15;
}

.featured-stage {
  background:
    radial-gradient(circle at 58% 44%, rgba(105, 245, 51, 0.3), transparent 18rem),
    radial-gradient(circle at 85% 30%, rgba(19, 168, 255, 0.12), transparent 20rem),
    linear-gradient(135deg, rgba(9, 18, 20, 0.92), rgba(4, 8, 9, 0.95));
  border: 1px solid rgba(105, 245, 51, 0.18);
  border-radius: 12px;
  min-height: 420px;
  overflow: hidden;
  padding: 1.35rem;
  position: relative;
}

.featured-stage::before {
  background:
    linear-gradient(120deg, transparent 0 45%, rgba(105, 245, 51, 0.2) 45.2% 45.5%, transparent 46%),
    linear-gradient(40deg, transparent 0 62%, rgba(105, 245, 51, 0.16) 62.2% 62.5%, transparent 63%);
  content: "";
  inset: 0;
  opacity: 0.75;
  position: absolute;
}

.featured-copy,
.featured-rei,
.featured-metrics,
.featured-profile-link,
.feature-player-art {
  position: relative;
  z-index: 1;
}

.featured-copy span,
.featured-copy b,
.featured-rei span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-copy h2 {
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 0.96;
  margin: 0.35rem 0 0.65rem;
  max-width: 360px;
}

.featured-copy p {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}

.featured-copy small {
  color: #d6e2e5;
  font-weight: 800;
}

.feature-player-art {
  bottom: 4.4rem;
  left: 36%;
  pointer-events: none;
  position: absolute;
  right: 17%;
  top: 0;
}

.feature-player-art img {
  filter: saturate(1.1) contrast(1.08) drop-shadow(0 0 34px rgba(105, 245, 51, 0.42)) drop-shadow(0 30px 42px rgba(0, 0, 0, 0.65));
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  width: 100%;
}

.feature-player-art img[hidden] {
  display: none;
}

.feature-player-art:has(img[hidden])::after {
  align-items: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(105, 245, 51, 0.26), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(5, 10, 12, 0.88));
  border: 1px solid rgba(105, 245, 51, 0.25);
  border-radius: 34px;
  bottom: 0;
  color: rgba(105, 245, 51, 0.88);
  content: attr(data-initials);
  display: flex;
  font-size: clamp(5rem, 12vw, 12rem);
  font-weight: 900;
  justify-content: center;
  left: 12%;
  position: absolute;
  right: 12%;
  top: 18%;
}

.featured-rei {
  background: rgba(6, 11, 13, 0.74);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 210px;
}

.featured-rei strong {
  color: var(--green);
  display: block;
  font-size: 4.6rem;
  line-height: 0.92;
}

.featured-rei p {
  display: grid;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
}

.featured-rei b {
  color: #fff;
  font-size: 1rem;
}

.featured-rei em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.featured-rei svg {
  height: 42px;
  width: 100%;
}

.featured-rei polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
}

.featured-metrics {
  bottom: 4.3rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, 1fr);
  left: 1rem;
  position: absolute;
  right: 1rem;
}

.featured-metrics article {
  background: rgba(7, 13, 16, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
}

.featured-metrics span {
  color: #b7c5ca;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-metrics b {
  color: #fff;
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin: 0.25rem 0;
}

.featured-metrics small {
  color: var(--muted);
  font-weight: 800;
}

.featured-profile-link {
  align-items: center;
  background: rgba(105, 245, 51, 0.08);
  border: 1px solid var(--green);
  border-radius: 9px;
  bottom: 1rem;
  color: #fff;
  display: flex;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  left: 1rem;
  position: absolute;
  right: 1rem;
}

.filter-bar {
  align-items: center;
  background: rgba(6, 11, 13, 0.92);
  border-radius: 12px;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(4, minmax(100px, 1fr)) repeat(4, minmax(130px, 1fr)) minmax(120px, 1fr);
  margin: 0.75rem 0;
  padding: 0.75rem;
}

.filter-bar button,
.filter-bar select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f4f8f9;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 38px;
  padding: 0 0.8rem;
}

.filter-bar .active {
  background: var(--green);
  color: #061006;
}

.home-section,
.role-map-row,
.lower-grid {
  margin-top: 0.85rem;
}

.home-section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.55rem;
}

.home-section-head h2,
.role-orbit h2,
.role-scatter h2,
.compare-teaser h2,
.leader-card-panel h2 {
  font-size: 1.05rem;
  margin: 0;
  text-transform: uppercase;
}

.home-section-head h2 span,
.leader-card-panel h2 span,
.role-scatter header span,
.role-orbit header span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  margin-left: 0.45rem;
  text-transform: none;
}

.home-section-head a,
.insight-board a,
.story-rail a,
.compare-teaser > a,
.leader-card-panel header a,
.role-orbit > a {
  color: #d8fbd0;
  font-size: 0.82rem;
  font-weight: 900;
}

.insight-board-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(5, 1fr);
}

.insight-board,
.role-orbit,
.role-scatter,
.compare-teaser,
.leader-card-panel,
.metric-footer {
  background: linear-gradient(145deg, rgba(10, 18, 21, 0.95), rgba(4, 8, 9, 0.96));
  border-radius: 10px;
  padding: 1rem;
}

.insight-board {
  min-height: 210px;
}

.insight-board.hot {
  background:
    radial-gradient(circle at 100% 0, rgba(105, 245, 51, 0.18), transparent 10rem),
    linear-gradient(145deg, rgba(10, 18, 21, 0.95), rgba(4, 8, 9, 0.96));
}

.insight-board h3 {
  color: var(--green);
  font-size: 0.88rem;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.insight-board h3 small {
  color: #d7fbd0;
  font-size: 0.7rem;
}

.insight-board ol {
  display: grid;
  gap: 0.52rem;
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
}

.insight-board li a {
  align-items: center;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: 1fr auto;
}

.insight-board li span {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insight-board li span small {
  color: rgba(216, 226, 229, 0.68);
  display: block;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.25;
  margin-top: 0.15rem;
}

.role-pagination {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-top: 0.8rem;
  padding-top: 1rem;
}

.role-pagination > div {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.role-pagination > div > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.role-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.role-pagination a {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: #e7eff1;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: 0.45rem 0.7rem;
}

.role-pagination a:hover,
.role-pagination a:focus-visible,
.role-pagination a[aria-current="page"] {
  background: color-mix(in srgb, var(--green) 16%, transparent);
  border-color: var(--green);
  color: var(--green);
}

.role-pagination .is-disabled {
  cursor: default;
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 620px) {
  .role-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .role-pagination > div {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .role-pagination-step:last-child {
    justify-self: end;
  }
}

.insight-board li b {
  color: var(--green);
  font-size: 0.9rem;
}

.role-map-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(420px, 0.78fr) minmax(540px, 1.22fr);
}

.role-orbit header,
.role-scatter header,
.leader-card-panel header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.orbit-stage {
  aspect-ratio: 1.55 / 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(105, 245, 51, 0.2), transparent 5rem),
    radial-gradient(circle, transparent 0 74px, rgba(105, 245, 51, 0.16) 75px 76px, transparent 77px),
    linear-gradient(90deg, transparent, rgba(105, 245, 51, 0.05), transparent);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.orbit-stage::before,
.orbit-stage::after {
  border: 1px solid rgba(105, 245, 51, 0.16);
  border-radius: 50%;
  content: "";
  inset: 9%;
  position: absolute;
}

.orbit-stage::after {
  inset: 24%;
}

.orbit-core {
  align-items: center;
  background: #071014;
  border: 1px solid rgba(105, 245, 51, 0.28);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  height: 124px;
  justify-content: center;
  left: 50%;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 124px;
  z-index: 2;
}

.orbit-core b {
  color: #fff;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.orbit-core small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.orbit-stage a {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.orbit-stage a i {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.orbit-stage a span {
  color: #eef5f6;
  font-size: 0.68rem;
  font-weight: 800;
  max-width: 86px;
}

.scatter-stage {
  aspect-ratio: 1.84 / 1;
  background:
    linear-gradient(rgba(105, 245, 51, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 245, 51, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 70% 28%, rgba(105, 245, 51, 0.16), transparent 12rem),
    #061012;
  background-size: 38px 38px, 38px 38px, auto, auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.axis {
  color: #cfd9dc;
  font-size: 0.7rem;
  font-weight: 900;
  position: absolute;
  text-transform: uppercase;
}

.axis.y {
  left: 0.5rem;
  top: 50%;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
}

.axis.x {
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
}

.scatter-point {
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  height: 38px;
  justify-content: center;
  position: absolute;
  transform: translate(-50%, 50%);
  width: 38px;
}

.scatter-point b {
  color: #fff;
  font-size: 0.72rem;
  position: relative;
  z-index: 1;
}

.scatter-point span {
  background: rgba(3, 7, 8, 0.78);
  border-radius: 999px;
  bottom: 80%;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  left: 50%;
  opacity: 0;
  padding: 0.2rem 0.45rem;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.scatter-point:hover span {
  opacity: 1;
}

.scatter-point.primary,
.green-dot {
  background: rgba(105, 245, 51, 0.52);
}

.scatter-point.defense,
.blue-dot {
  background: rgba(19, 168, 255, 0.52);
}

.scatter-point.two-way,
.amber-dot {
  background: rgba(241, 184, 50, 0.55);
}

.scatter-point.other,
.purple-dot {
  background: rgba(156, 88, 255, 0.48);
}

.scatter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
  margin-top: 0.65rem;
}

.scatter-legend span {
  align-items: center;
  color: #d8e3e6;
  display: flex;
  font-size: 0.74rem;
  font-weight: 800;
  gap: 0.35rem;
}

.scatter-legend i {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.story-rail {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(6, 1fr);
}

.story-rail article {
  background:
    linear-gradient(180deg, rgba(105, 245, 51, 0.08), transparent 44%),
    rgba(7, 13, 16, 0.94);
  border-radius: 10px;
  min-height: 250px;
  overflow: hidden;
  padding: 0.8rem;
}

.story-rail img,
.story-avatar {
  background: radial-gradient(circle at 50% 30%, rgba(105, 245, 51, 0.2), rgba(5, 9, 10, 0.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  height: 104px;
  margin-bottom: 0.75rem;
  object-fit: contain;
  width: 100%;
}

.story-avatar {
  align-items: center;
  color: var(--green);
  font-size: 2rem;
  font-weight: 900;
  justify-content: center;
}

.story-rail span {
  background: rgba(105, 245, 51, 0.14);
  border: 1px solid rgba(105, 245, 51, 0.26);
  border-radius: 4px;
  color: #cfffc6;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0.2rem 0.35rem;
  text-transform: uppercase;
}

.story-rail h3 {
  font-size: 1rem;
  line-height: 1.15;
  margin: 0.65rem 0 0.35rem;
}

.story-rail p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.lower-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(440px, 0.76fr) minmax(580px, 1fr);
}

.compare-teaser header p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.25rem 0 0;
}

.compare-matchup {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr auto 1fr;
  margin: 0.85rem 0;
}

.compare-matchup a {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  padding: 0.75rem;
}

.compare-matchup b {
  color: #fff;
  font-size: 0.88rem;
}

.compare-matchup span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.compare-matchup > strong {
  align-items: center;
  background: rgba(105, 245, 51, 0.12);
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.compare-teaser table {
  border-collapse: collapse;
  width: 100%;
}

.compare-teaser th,
.compare-teaser td {
  border-bottom: 1px solid var(--line);
  color: #dbe5e8;
  font-size: 0.78rem;
  padding: 0.45rem;
  text-align: right;
}

.compare-teaser th:first-child,
.compare-teaser td:first-child {
  text-align: left;
}

.compare-teaser td:last-child {
  color: var(--green);
  font-weight: 900;
}

.compare-teaser > a {
  align-items: center;
  border: 1px solid var(--green);
  border-radius: 8px;
  display: flex;
  height: 40px;
  justify-content: center;
  margin-top: 0.9rem;
}

.metric-tabs {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 0.75rem;
}

.metric-tabs button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dce6e8;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  height: 30px;
}

.metric-tabs .active {
  background: var(--green);
  color: #061006;
}

.rank-card-row {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(5, 1fr);
}

.rank-card-row a {
  background:
    radial-gradient(circle at 50% 20%, rgba(105, 245, 51, 0.16), transparent 5rem),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  min-height: 220px;
  padding: 0.8rem;
  text-align: center;
}

.rank-card-row span {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
}

.rank-card-row div {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  display: flex;
  font-size: 1.6rem;
  font-weight: 900;
  height: 78px;
  justify-content: center;
  margin: 0.35rem 0 0.65rem;
  overflow: hidden;
}

.rank-card-row img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.rank-card-row b {
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.15;
}

.rank-card-row strong {
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
  margin-top: 0.45rem;
}

.rank-card-row small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.metric-footer {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 0.85rem;
}

.metric-footer article {
  align-items: center;
  display: grid;
  gap: 0.2rem 0.7rem;
  grid-template-columns: auto 1fr;
}

.metric-footer span {
  align-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-size: 1.3rem;
  grid-row: span 2;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.metric-footer strong {
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.metric-footer p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0;
}

@media (max-width: 1280px) {
  .home-v2 .topbar,
  .home-hero,
  .role-map-row,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .home-nav-actions {
    justify-content: end;
  }

  .insight-board-grid,
  .story-rail {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 760px) {
  .admin-queue-progress-copy,
  .admin-scouting-bulk > header {
    display: grid;
  }

  .admin-queue-progress-copy span {
    text-align: left;
  }

  .admin-queue-stats,
  .admin-queue-results {
    grid-template-columns: 1fr 1fr;
  }

  .home-v2 .topbar {
    grid-template-columns: 1fr;
  }

  .home-v2 .nav-links,
  .home-nav-actions {
    justify-content: start;
    overflow-x: auto;
  }

  .home-hero {
    padding: 0.75rem;
  }

  .hero-command h1 {
    font-size: 3rem;
  }

  .hero-search {
    min-height: 62px;
  }

  .hero-search input {
    font-size: 1rem;
  }

  .quick-lanes,
  .featured-metrics,
  .insight-board-grid,
  .story-rail,
  .filter-bar,
  .rank-card-row,
  .metric-footer {
    grid-template-columns: 1fr;
  }

  .featured-stage {
    min-height: 720px;
  }

  .feature-player-art {
    bottom: 17rem;
    left: 0;
    right: 0;
    top: 8rem;
  }

  .featured-rei {
    left: 1rem;
    right: 1rem;
    top: auto;
    width: auto;
    bottom: 22rem;
  }

  .compare-matchup {
    grid-template-columns: 1fr;
  }

  .compare-matchup > strong {
    justify-self: center;
  }

  .scatter-stage,
  .orbit-stage {
    min-height: 340px;
  }

  .orbit-stage a span {
    display: none;
  }
}

/* Mockup-close homepage pass */
.home-v2 {
  background: #020404;
}

.home-v2 .topbar {
  background: rgba(2, 4, 4, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
  grid-template-columns: 210px 1fr auto;
  min-height: 58px;
  padding: 0.45rem 1.45rem;
}

.home-v2 .brand img {
  height: 31px;
  width: 190px;
}

.home-v2 .nav-links a,
.home-v2 .account-link {
  font-size: 0.86rem;
}

.home-shell {
  max-width: 1620px;
  padding: 0.9rem 1.4rem 1.4rem;
}

.home-hero {
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 0.7rem;
  grid-template-columns: 0.72fr 0.98fr;
  min-height: 0;
  padding: 0;
}

.hero-command,
.featured-stage {
  background:
    linear-gradient(rgba(105, 245, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 245, 51, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 100% 10%, rgba(105, 245, 51, 0.14), transparent 15rem),
    linear-gradient(145deg, rgba(7, 13, 15, 0.96), rgba(2, 5, 6, 0.98));
  background-size: 34px 34px, 34px 34px, auto, auto;
  border: 1px solid rgba(185, 228, 236, 0.14);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(105, 245, 51, 0.02), 0 18px 48px rgba(0, 0, 0, 0.28);
  min-height: 343px;
}

.hero-command {
  padding: 1.35rem 1.45rem 1rem;
}

.hero-command .eyebrow {
  display: none;
}

.hero-command h1 {
  color: #f8fbfb;
  font-size: clamp(3.2rem, 4vw, 4.95rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 0.65rem;
  max-width: 620px;
  text-transform: uppercase;
}

.hero-command h1 span,
.hero-command h1 strong {
  display: block;
}

.hero-command h1 em,
.hero-command h1 strong {
  color: var(--green);
  font-style: normal;
}

.hero-command p:not(.eyebrow) {
  color: #d7e0e3;
  font-size: 0.94rem;
  line-height: 1.38;
  margin-bottom: 0;
  max-width: 520px;
}

.hero-search {
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(105, 245, 51, 0.34), inset 0 0 18px rgba(105, 245, 51, 0.05);
  margin: 1rem 0 0.6rem;
  max-width: none;
  min-height: 68px;
  padding-inline: 1rem;
}

.hero-search > span {
  font-size: 2rem;
}

.hero-search input {
  font-size: 1.28rem;
  font-weight: 500;
}

.trending-row {
  margin-bottom: 0.75rem;
}

.trending-row b,
.home-section-head h2,
.role-orbit h2,
.role-scatter h2 {
  color: var(--green);
}

.trending-row a {
  border-radius: 999px;
  font-size: 0.62rem;
  padding: 0.25rem 0.55rem;
}

.quick-lanes {
  gap: 0.4rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.quick-lanes a {
  background: rgba(255, 255, 255, 0.018);
  border-color: rgba(255, 255, 255, 0.07);
  min-height: 70px;
  padding: 0.42rem 0.25rem;
}

.quick-lanes span {
  background: transparent;
  border: 0;
  font-size: 1.55rem;
  height: 28px;
  width: 28px;
}

.quick-lanes b {
  font-size: 0.62rem;
}

.featured-stage {
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(260px, 0.65fr) 210px;
  min-height: 343px;
  padding: 1.1rem;
}

.featured-stage::before {
  background:
    radial-gradient(circle at 58% 46%, rgba(105, 245, 51, 0.34), transparent 13rem),
    linear-gradient(140deg, transparent 0 42%, rgba(105, 245, 51, 0.26) 42.2% 42.4%, transparent 42.8%),
    linear-gradient(25deg, transparent 0 58%, rgba(105, 245, 51, 0.22) 58.2% 58.4%, transparent 58.8%);
  opacity: 1;
}

.featured-copy {
  align-self: start;
  grid-column: 1;
}

.featured-copy h2 {
  font-size: clamp(2.25rem, 2.5vw, 3.25rem);
  line-height: 0.94;
  margin: 0.35rem 0 0.55rem;
}

.featured-copy p {
  align-items: start;
  display: grid;
}

.featured-copy b {
  border: 1px solid rgba(105, 245, 51, 0.36);
  border-radius: 999px;
  color: #f1fff0;
  display: inline-flex;
  font-size: 0.68rem;
  justify-self: start;
  padding: 0.28rem 0.55rem;
}

.feature-player-art {
  bottom: 3.7rem;
  grid-column: 2;
  left: auto;
  position: absolute;
  right: 190px;
  top: -0.45rem;
  width: min(44%, 390px);
}

.feature-player-art:has(img[hidden])::after {
  border: 0;
  border-radius: 0;
  bottom: 0;
  font-size: 8rem;
  left: 8%;
  right: 8%;
  top: 12%;
}

.featured-rei {
  background: rgba(6, 11, 13, 0.72);
  border-color: rgba(190, 230, 238, 0.16);
  grid-column: 3;
  padding: 0.9rem;
  position: relative;
  right: auto;
  top: auto;
  width: auto;
}

.featured-rei strong {
  font-size: 4.4rem;
}

.featured-metrics {
  bottom: 3.9rem;
  gap: 0.5rem;
  grid-template-columns: repeat(4, 1fr);
  left: 1rem;
  right: 1rem;
}

.featured-metrics article {
  backdrop-filter: blur(10px);
  background: rgba(8, 14, 17, 0.72);
  border-color: rgba(200, 235, 242, 0.16);
  border-radius: 10px;
  min-height: 76px;
  padding: 0.65rem 0.75rem;
}

.featured-metrics b {
  font-size: 1.75rem;
}

.featured-profile-link {
  bottom: 0.85rem;
  height: 36px;
}

.filter-bar {
  background: rgba(5, 10, 12, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  gap: 0.45rem;
  grid-template-columns: 150px 120px 120px 120px 1fr 1fr 1fr 1fr 130px;
  margin: 0.7rem 0;
  padding: 0.55rem;
}

.filter-bar button,
.filter-bar select {
  min-height: 34px;
  font-size: 0.74rem;
}

.home-section-head {
  margin-bottom: 0.45rem;
}

.home-section-head h2 {
  font-size: 1rem;
}

.insight-board-grid {
  gap: 0.55rem;
}

.insight-board {
  border-color: rgba(190, 230, 238, 0.13);
  min-height: 178px;
  padding: 0.75rem;
}

.insight-board h3 {
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

.insight-board ol {
  gap: 0.42rem;
}

.insight-board li span,
.insight-board a {
  font-size: 0.72rem;
}

.role-map-row,
.lower-grid {
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.role-map-row {
  grid-template-columns: 0.78fr 1fr;
}

.role-orbit,
.role-scatter,
.compare-teaser,
.leader-card-panel {
  border-color: rgba(190, 230, 238, 0.13);
  padding: 0.85rem;
}

.orbit-stage,
.scatter-stage {
  aspect-ratio: 1.92 / 1;
}

.orbit-core {
  height: 112px;
  width: 112px;
}

.orbit-stage a i {
  height: 31px;
  width: 31px;
}

.orbit-stage a span {
  font-size: 0.62rem;
}

.scatter-point {
  height: 34px;
  width: 34px;
}

.story-rail {
  gap: 0.55rem;
}

.story-rail article {
  min-height: 216px;
  padding: 0.65rem;
}

.story-rail img,
.story-avatar {
  height: 88px;
}

.story-rail h3 {
  font-size: 0.9rem;
}

.lower-grid {
  grid-template-columns: 0.77fr 1fr;
}

.compare-teaser,
.leader-card-panel {
  min-height: 342px;
}

.rank-card-row {
  gap: 0.5rem;
}

.rank-card-row a {
  min-height: 200px;
  padding: 0.65rem;
}

.rank-card-row div {
  height: 72px;
}

.metric-footer {
  margin-top: 0.65rem;
  padding: 0.85rem 1rem;
}

@media (max-width: 1280px) {
  .featured-stage,
  .home-hero,
  .role-map-row,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .feature-player-art,
  .featured-rei,
  .featured-metrics,
  .featured-profile-link {
    position: relative;
    inset: auto;
    width: auto;
  }

  .feature-player-art {
    min-height: 220px;
  }

  .filter-bar,
  .insight-board-grid,
  .story-rail {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-table select:focus,
.admin-table input:focus {
  border-color: var(--line-strong);
}

.admin-table input[type="number"] {
  min-width: 86px;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 190px 1fr auto;
  }

  .search {
    display: none;
  }

  .hero,
  .leaderboard-grid,
  .reports,
  .profile-hero,
  .profile-grid,
  .player-report,
  .role-detail-hero,
  .role-detail-grid,
  .admin-hero,
  .admin-workspace,
  .admin-health-grid,
  .admin-editor-grid,
  .admin-studio-grid,
  .admin-formula-grid,
  .admin-report-sections,
  .admin-control-grid,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-editor {
    max-height: none;
    position: static;
  }

  .admin-team-grid,
  .admin-player-list {
    max-height: none;
  }

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

  .admin-player-card-metrics {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    justify-items: start;
  }

  .admin-player-card-metrics em {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  .role-tool-layout,
  .projection-lab-layout,
  .role-tool-results,
  .projection-lab-main,
  .projection-scoreboard,
  .projection-score-grid,
  #slider-grid {
    grid-template-columns: 1fr;
  }

  .role-tool-picker {
    position: static;
  }

  .role-tool-status {
    grid-template-columns: 1fr;
  }

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

  .player-sidebar {
    display: none;
  }

  .player-dashboard-hero {
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 0;
    padding-right: 0.75rem;
  }

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

  .player-quick-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }

  .player-hero-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .method-metric-grid,
  .method-rule-grid,
  .method-validation-grid,
  .method-example-grid,
  .validation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-tier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .player-hero-metrics article {
    min-height: 108px;
    padding: 0.7rem;
  }

  .player-hero-metrics b {
    font-size: 0.68rem;
  }

  .player-hero-metrics strong {
    font-size: 1.75rem;
  }

  .rei-breakdown-panel,
  .player-ranking-panel,
  .insight-panel,
  .trend-panel,
  .validation-panel,
  .fit-panel,
  .share-card-panel,
  .scouting-preview-panel,
  .similar-panel,
  .season-summary {
    grid-column: span 6;
  }

  .scouting-preview,
  .scouting-report-hero,
  .scouting-report-grid,
  .premium-report-header,
  .premium-two-column,
  .team-fit-columns {
    grid-template-columns: 1fr;
  }

  .premium-two-column .premium-report-section:first-child {
    border-right: 0;
  }

  .premium-report-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scouting-metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: 430px;
  }

  .kpi-row,
  .metric-grid,
  .data-grid,
  .player-kpis,
  .bio-strip,
  .admin-kpis,
  .team-grid,
  .method-grid,
  .tool-stat-row,
  .method-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .brand img {
    height: 36px;
    width: 178px;
  }

  .nav-links {
    display: none;
  }

  .account-link {
    font-size: 0.82rem;
  }

  main {
    padding-inline: 0.75rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-stage {
    padding-block: 0.9rem;
  }

  h1 {
    font-size: clamp(2.1rem, 8.5vw, 3rem);
  }

  .hero-copy,
  .player-card {
    padding: 0.85rem;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 0.65rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-player {
    left: 46%;
    width: min(48%, 220px);
  }

  .hero-player .name {
    font-size: 0.68rem;
    padding: 0.34rem 0.55rem;
  }

  .floating-card {
    min-width: 145px;
    padding: 0.65rem;
  }

  .floating-card strong {
    font-size: 1.55rem;
  }

  .rei-card {
    left: 0;
    top: 8%;
  }

  .pfe-card {
    right: 0;
    top: 20%;
  }

  .cvr-card {
    bottom: 8%;
    right: 0;
  }

  .player-summary,
  .stat-grid,
  .kpi-row,
  .framework-grid,
  .metric-grid,
  .data-grid,
  .player-kpis,
  .bio-strip,
  .admin-kpis,
  .team-grid,
  .method-grid,
  .tool-stat-row,
  .method-flow {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    min-height: 0;
  }

  .player-dashboard-topbar {
    align-items: stretch;
    flex-direction: column;
    position: static;
  }

  .player-search {
    width: 100%;
  }

  .player-dashboard-page main {
    padding: 0 0.75rem 0.75rem;
  }

  .player-dashboard-hero,
  .player-hero-metrics,
  .player-bio-line,
  .player-quick-card,
  .method-metric-grid,
  .method-tier-grid,
  .method-rule-grid,
  .method-validation-grid,
  .method-example-grid,
  .validation-grid,
  .summary-stat-grid,
  .similar-list {
    grid-template-columns: 1fr;
  }

  .method-section .section-title {
    align-items: start;
    display: grid;
  }

  .method-section .section-title h2 {
    text-align: left;
  }

  .player-hero-art {
    min-height: 240px;
  }

  .player-hero-art img {
    max-height: 250px;
  }

  .rei-breakdown-panel,
  .player-ranking-panel,
  .insight-panel,
  .trend-panel,
  .validation-panel,
  .fit-panel,
  .share-card-panel,
  .scouting-preview-panel,
  .similar-panel,
  .season-summary {
    grid-column: 1 / -1;
  }

  .scouting-preview-grid,
  .scouting-metric-strip {
    grid-template-columns: 1fr;
  }

  .premium-lock-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .scouting-report-hero {
    min-height: 0;
  }

  .premium-report-facts,
  .projection-grid {
    grid-template-columns: 1fr;
  }

  .premium-report-header h1 {
    font-size: clamp(2.6rem, 14vw, 4.6rem);
  }

  .projection-grid .contender-readiness-card {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .projection-grid .contender-readiness-card strong {
    align-self: flex-end;
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .rei-breakout {
    grid-template-columns: 1fr;
  }

  .profile-copy h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .profile-image-card {
    min-height: 460px;
  }

  .jersey-token {
    max-width: 190px;
  }

  .button {
    width: 100%;
  }

  .section-title {
    align-items: start;
    flex-direction: column;
  }

  table {
    font-size: 0.78rem;
  }

  th:nth-child(3),
  td:nth-child(3),
  th:nth-child(4),
  td:nth-child(4) {
    display: none;
  }
}

/* Final responsive guardrails */
html,
body {
  overflow-x: clip;
}

main,
section,
article,
aside,
header,
nav,
footer,
div,
form,
table,
tbody,
thead,
tr,
td,
th,
h1,
h2,
h3,
h4,
p,
a,
span,
strong,
small,
b,
button,
input,
select {
  min-width: 0;
}

.nav-links {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1540px) {
  .topbar {
    gap: 0.65rem;
  }

  .home-hero {
    grid-template-columns: minmax(420px, 0.88fr) minmax(560px, 1.12fr);
  }

  .hero-command h1 {
    font-size: 4.05rem;
  }

  .featured-stage {
    grid-template-columns: minmax(190px, 0.55fr) minmax(240px, 0.7fr) minmax(170px, 0.5fr);
  }

  .filter-bar {
    grid-template-columns: repeat(4, minmax(110px, 1fr)) repeat(4, minmax(130px, 1fr)) minmax(116px, 0.8fr);
  }

  .team-dashboard-page .team-dashboard-hero {
    grid-template-columns: minmax(320px, 0.82fr) minmax(280px, 0.68fr) minmax(430px, 0.95fr);
  }

  .team-dashboard-page .team-title-block {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .team-dashboard-page .team-title-block h1 {
    font-size: 4.75rem;
  }

  .team-identity-strip {
    grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.25fr) minmax(250px, 0.8fr);
  }

  .admin-player-card {
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 0.9fr);
  }
}

@media (max-width: 1460px) {
  .topbar {
    grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
  }

  .topbar .search {
    display: none;
  }

  .nav-links {
    gap: 1rem;
    justify-content: flex-start;
  }
}

@media (max-width: 1360px) {
  .topbar,
  .home-v2 .topbar {
    grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
  }

  .topbar .search {
    display: none;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .home-hero,
  .role-map-row,
  .lower-grid,
  .team-dashboard-page .team-dashboard-hero,
  .team-identity-strip,
  .league-command-board,
  .team-league-map,
  .team-blueprint {
    grid-template-columns: 1fr;
  }

  .hero-command h1 {
    font-size: 4.25rem;
    max-width: 760px;
  }

  .featured-stage {
    min-height: 390px;
  }

  .feature-player-art {
    bottom: 3.6rem;
    right: 170px;
    width: min(42%, 360px);
  }

  .filter-bar {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .insight-board-grid,
  .team-grid,
  .teams-index-page .team-grid,
  .story-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-dashboard-page .team-dashboard-hero {
    min-height: auto;
  }

  .team-dashboard-page .team-title-block h1 {
    font-size: 4.6rem;
    max-width: none;
  }

  .team-hero-players {
    min-height: 250px;
  }

  .team-dashboard-page .team-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-dashboard-page .team-hero-metrics .team-iq-main {
    grid-row: auto;
    min-height: 160px;
  }

  .team-dashboard-page .team-hero-metrics article:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .team-dashboard-page .team-hero-metrics article:nth-child(-n + 3) {
    border-top: 0;
  }

  .team-dashboard-page .team-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-needs-card,
  .team-lineup-card,
  .team-style-card,
  .team-roster-table,
  .team-key-contracts {
    grid-column: auto;
  }

  .player-dashboard-hero {
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  }

  .player-hero-art {
    min-height: 430px;
  }

  .player-hero-art img {
    max-height: 490px;
    width: min(500px, 165%);
  }

  .player-hero-info h1 {
    font-size: 4.9rem;
  }

  .player-hero-info h1.long-name {
    font-size: 4.35rem;
  }

  .player-hero-info h1.extra-long-name {
    font-size: 3.8rem;
  }

  .validation-grid,
  .player-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-player-card {
    grid-template-columns: minmax(260px, 1fr) minmax(300px, 0.9fr);
  }

  .admin-player-card-metrics {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
  }
}

@media (max-width: 1080px) {
  .topbar,
  .home-v2 .topbar {
    grid-template-columns: minmax(150px, 1fr) auto;
  }

  .topbar .nav-links,
  .home-v2 .nav-links {
    grid-column: 1 / -1;
    order: 3;
  }

  .featured-stage,
  .team-dashboard-page .team-hero-metrics,
  .team-dashboard-page .team-dashboard-grid,
  .player-dashboard-hero,
  .player-hero-info,
  .admin-player-card {
    grid-template-columns: 1fr;
  }

  .feature-player-art,
  .featured-rei,
  .featured-metrics,
  .featured-profile-link {
    position: relative;
    inset: auto;
    width: auto;
  }

  .player-bio-line,
  .player-hero-metrics,
  .validation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Team dashboard cleanup */
.team-dashboard-page .team-dashboard-hero {
  grid-template-columns: minmax(430px, 0.82fr) minmax(620px, 1.18fr);
  min-height: 0;
}

.team-dashboard-page .team-dashboard-hero::after,
.team-dashboard-page .team-hero-players,
.team-dashboard-page .team-hero-core {
  display: none;
}

.team-switcher {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  max-width: 280px;
}

.team-switcher span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.team-switcher select {
  appearance: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    linear-gradient(45deg, transparent 50%, var(--green) 50%) right 0.85rem center / 8px 8px no-repeat;
  border: 1px solid rgba(85, 255, 34, 0.28);
  border-radius: 8px;
  color: #f4fbf6;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 42px;
  padding: 0.55rem 2.1rem 0.55rem 0.75rem;
}

.team-dashboard-page .team-hero-metrics {
  grid-template-columns: 1.05fr repeat(2, minmax(0, 1fr));
}

.team-dashboard-page .team-hero-metrics article {
  min-height: 116px;
  padding: 0.85rem 1rem;
}

.team-dashboard-page .team-hero-metrics .team-iq-main {
  grid-row: span 2;
  min-height: 232px;
}

.team-dashboard-page .team-hero-metrics .team-iq-main strong {
  font-size: 4.15rem;
  white-space: normal;
}

.team-dashboard-page .team-hero-metrics strong,
.team-dashboard-page .team-hero-metrics article:not(.team-iq-main) strong {
  font-size: 1.85rem;
  line-height: 0.98;
}

.team-dashboard-page .team-hero-metrics .team-iq-main::after {
  display: none;
}

.team-blueprint {
  grid-template-columns: minmax(520px, 1.35fr) minmax(300px, 0.8fr) minmax(320px, 0.85fr);
}

.team-blueprint-main,
.team-signal-stack,
.team-role-coverage {
  min-height: 360px;
}

.team-role-coverage > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-role-coverage p {
  align-content: start;
  min-height: 72px;
}

.team-role-coverage p b {
  font-size: 0.75rem;
}

.team-role-coverage p small {
  white-space: normal;
}

.team-dashboard-grid {
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.28fr) minmax(300px, 0.9fr);
}

.team-needs-card,
.team-style-card,
.team-key-contracts {
  grid-column: span 2;
}

.team-fit-targets,
.team-cap-card,
.team-outlook-card,
.team-profile-card,
.team-ranking-card,
.team-timeline-card,
.team-contract-card {
  min-height: 280px;
}

.team-style-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 260px;
}

.team-style-grid {
  gap: 0.65rem;
}

.team-style-grid article {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 8px;
  padding: 0.75rem;
}

.team-style-grid strong {
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
}

.team-radar {
  display: grid;
  justify-items: center;
}

.team-radar svg {
  height: 245px;
  width: 245px;
}

.team-blueprint + .team-identity-strip {
  display: none;
}

@media (max-width: 1460px) {
  .team-blueprint,
  .team-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .team-dashboard-page .team-dashboard-hero {
    grid-template-columns: minmax(430px, 0.82fr) minmax(620px, 1.18fr);
  }

  .team-dashboard-page .team-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-dashboard-page .team-hero-metrics .team-iq-main {
    grid-row: auto;
    min-height: 140px;
  }

  .team-needs-card,
  .team-style-card,
  .team-key-contracts {
    grid-column: auto;
  }
}

@media (max-width: 960px) {
  .team-title-block,
  .team-style-card,
  .team-dashboard-page .team-hero-metrics,
  .team-role-coverage > div {
    grid-template-columns: 1fr;
  }
}

/* Final team hero lockup: keeps long team names from sliding under the IQ panel. */
.team-dashboard-page .team-dashboard-hero {
  align-items: stretch;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.team-dashboard-page .team-title-block {
  align-content: center;
  align-items: center;
  grid-template-columns: minmax(76px, 0.18fr) minmax(0, 1fr);
  min-width: 0;
}

.team-dashboard-page .team-title-block > div:last-child {
  min-width: 0;
}

.team-dashboard-page .team-logo-frame {
  max-width: 108px;
  width: 100%;
}

.team-dashboard-page .team-title-block h1 {
  font-size: clamp(3.2rem, 4.8vw, 5.45rem);
  line-height: 0.92;
  max-width: 100%;
  overflow-wrap: normal;
  text-wrap: balance;
}

.team-dashboard-page .team-hero-metrics {
  min-width: 0;
}

@media (max-width: 1280px) {
  .team-dashboard-page .team-dashboard-hero {
    grid-template-columns: 1fr;
  }

  .team-dashboard-page .team-title-block {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .team-dashboard-page .team-title-block h1 {
    font-size: clamp(3.2rem, 8vw, 5.5rem);
  }
}

/* Site-wide responsive stability pass */
:root {
  --content-gutter: clamp(0.75rem, 2vw, 1.5rem);
}

.page-shell,
.home-shell,
.team-page-shell,
.fit-engine-shell,
.contract-engine-shell,
.role-tool-page main,
.methodology-page main,
.stories-page main,
.player-dashboard-page main,
.teams-index-page main {
  margin-inline: auto;
  max-width: min(1680px, calc(100vw - var(--content-gutter) * 2));
}

.team-panel,
.player-panel,
.metric-card,
.story-card,
.team-card,
.tool-card,
.method-card,
.admin-card {
  min-width: 0;
}

.team-dashboard-page .team-dashboard-hero,
.team-dashboard-page .team-blueprint,
.team-dashboard-page .team-dashboard-grid,
.player-dashboard-page .player-dashboard-hero,
.player-dashboard-page .player-dashboard-grid,
.fit-engine-grid,
.contract-engine-grid,
.tool-grid,
.method-grid,
.story-grid,
.team-grid {
  width: 100%;
}

.team-dashboard-page .team-dashboard-hero {
  gap: clamp(0.9rem, 1.5vw, 1.35rem);
}

.team-dashboard-page .team-title-block h1,
.player-hero-info h1,
.hero-command h1 {
  letter-spacing: 0;
}

.team-dashboard-page .team-hero-metrics article,
.team-dashboard-page .team-role-coverage p,
.team-dashboard-page .team-signal-stack article,
.team-dashboard-page .team-style-grid article {
  overflow: hidden;
}

.team-dashboard-page .team-hero-metrics strong,
.team-dashboard-page .team-signal-stack strong,
.team-dashboard-page .team-style-grid strong,
.team-dashboard-page .team-panel dd,
.player-dashboard-page .metric-tile strong,
.player-dashboard-page .summary-metric strong {
  overflow-wrap: normal;
  word-break: normal;
}

.team-dashboard-page .team-blueprint {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.72fr) minmax(300px, 0.78fr);
}

.team-dashboard-page .team-dashboard-grid {
  align-items: stretch;
  grid-auto-flow: dense;
  grid-template-areas:
    "profile needs cap"
    "ranking style targets"
    "timeline style targets"
    "contract key outlook";
  grid-template-columns: minmax(270px, 0.92fr) minmax(420px, 1.22fr) minmax(320px, 0.96fr);
}

.team-dashboard-page .team-profile-card {
  grid-area: profile;
}

.team-dashboard-page .team-needs-card {
  grid-area: needs;
}

.team-dashboard-page .team-cap-card {
  grid-area: cap;
}

.team-dashboard-page .team-ranking-card {
  grid-area: ranking;
}

.team-dashboard-page .team-fit-targets {
  grid-area: targets;
}

.team-dashboard-page .team-timeline-card {
  grid-area: timeline;
}

.team-dashboard-page .team-style-card {
  grid-area: style;
}

.team-dashboard-page .team-contract-card {
  grid-area: contract;
}

.team-dashboard-page .team-key-contracts {
  grid-area: key;
}

.team-dashboard-page .team-outlook-card {
  grid-area: outlook;
}

@media (max-width: 1500px) {
  .team-dashboard-page .team-blueprint,
  .team-dashboard-page .team-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-dashboard-page .team-blueprint-main,
  .team-dashboard-page .team-style-card,
  .team-dashboard-page .team-key-contracts,
  .team-dashboard-page .team-roster-table {
    grid-column: 1 / -1;
  }

  .team-dashboard-page .team-needs-card {
    grid-column: auto;
  }
}

@media (max-width: 1180px) {
  .team-dashboard-page .team-dashboard-hero,
  .team-dashboard-page .team-blueprint,
  .team-dashboard-page .team-dashboard-grid,
  .player-dashboard-page .player-dashboard-hero,
  .player-dashboard-page .player-dashboard-grid,
  .fit-engine-grid,
  .contract-engine-grid,
  .tool-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .team-dashboard-page .team-blueprint-main,
  .team-dashboard-page .team-signal-stack,
  .team-dashboard-page .team-role-coverage,
  .team-dashboard-page .team-needs-card,
  .team-dashboard-page .team-style-card,
  .team-dashboard-page .team-key-contracts {
    grid-column: auto;
  }

  .team-dashboard-page .team-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-dashboard-page .team-hero-metrics .team-iq-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 150px;
  }

  .team-dashboard-page .team-style-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  .home-v2 .topbar {
    grid-template-columns: 1fr;
  }

  .brand img {
    max-width: 190px;
  }

  .nav-links {
    justify-content: flex-start;
    padding-bottom: 0.25rem;
  }

  .team-dashboard-page .team-title-block {
    align-items: start;
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .team-dashboard-page .team-title-block h1 {
    font-size: clamp(2.6rem, 13vw, 4.4rem);
  }

  .team-dashboard-page .team-hero-metrics,
  .team-dashboard-page .team-role-coverage > div,
  .player-bio-line,
  .player-hero-metrics,
  .validation-grid,
  .story-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .blueprint-court {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .blueprint-player:nth-child(n) {
    transform: none;
  }

  .team-tabs,
  .nav-links {
    scrollbar-width: none;
  }
}

/* True final team dashboard packing pass: keep cards from leaving blank islands. */
@media (min-width: 1181px) {
  .team-dashboard-page .team-dashboard-grid {
    align-items: stretch;
    grid-auto-flow: dense;
    grid-template-areas:
      "profile needs cap"
      "ranking style targets"
      "timeline style targets"
      "contract key outlook";
    grid-template-columns: minmax(270px, 0.92fr) minmax(420px, 1.22fr) minmax(320px, 0.96fr);
  }

  .team-dashboard-page .team-profile-card { grid-area: profile; }
  .team-dashboard-page .team-needs-card { grid-area: needs; }
  .team-dashboard-page .team-cap-card { grid-area: cap; }
  .team-dashboard-page .team-ranking-card { grid-area: ranking; }
  .team-dashboard-page .team-fit-targets { grid-area: targets; }
  .team-dashboard-page .team-timeline-card { grid-area: timeline; }
  .team-dashboard-page .team-style-card { grid-area: style; }
  .team-dashboard-page .team-contract-card { grid-area: contract; }
  .team-dashboard-page .team-key-contracts { grid-area: key; }
  .team-dashboard-page .team-outlook-card { grid-area: outlook; }

  .team-dashboard-page .team-panel {
    height: 100%;
    min-height: 0;
  }

  .team-dashboard-page .team-needs-card,
  .team-dashboard-page .team-style-card,
  .team-dashboard-page .team-key-contracts {
    grid-column: auto;
  }

  .team-dashboard-page .team-needs-body {
    align-items: center;
    gap: 1rem;
    grid-template-columns: 116px 1fr;
  }

  .team-dashboard-page .team-needs-body strong {
    font-size: 3.15rem;
  }

  .team-dashboard-page .team-needs-list li {
    gap: 0.75rem;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 190px);
    padding: 0.28rem 0;
  }

  .team-dashboard-page .team-style-card {
    align-items: center;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr) 215px;
  }

  .team-dashboard-page .team-style-grid {
    gap: 0.55rem;
  }

  .team-dashboard-page .team-style-grid article {
    padding: 0.62rem;
  }

  .team-dashboard-page .team-radar svg {
    height: 205px;
    width: 205px;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .team-dashboard-page .team-dashboard-grid {
    grid-template-areas:
      "profile cap"
      "needs needs"
      "ranking targets"
      "style style"
      "timeline contract"
      "key outlook";
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* True final teams mobile guard: keep Teams readable on phone. */
@media (max-width: 760px) {
  .teams-index-page main {
    box-sizing: border-box;
    max-width: calc(100vw - 1.25rem) !important;
    overflow: hidden !important;
    padding-inline: 0 !important;
    width: calc(100vw - 1.25rem) !important;
  }

  .teams-index-page main > *,
  .teams-index-page .teams-hero > *,
  .teams-index-page .team-league-map > *,
  .teams-index-page .league-command-board > *,
  .teams-index-page .conference-lanes > *,
  .teams-index-page .team-grid > * {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .teams-index-page .teams-hero,
  .teams-index-page .league-command-board,
  .teams-index-page .team-league-map,
  .teams-index-page .conference-lanes,
  .teams-index-page .team-grid,
  .teams-index-page .teams-grid-heading,
  .teams-index-page .tool-stat-row,
  .teams-index-page .league-pulse div,
  .teams-index-page .identity-map,
  .teams-index-page .team-filter-pills {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-content: stretch !important;
    width: 100% !important;
  }

  .teams-index-page .teams-hero,
  .teams-index-page .team-league-map,
  .teams-index-page .league-featured-team,
  .teams-index-page .league-pulse,
  .teams-index-page .conference-lanes article,
  .teams-index-page .team-card {
    border-radius: 8px !important;
    min-height: 0 !important;
    padding: 1rem !important;
  }

  .teams-index-page .league-featured-team {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .teams-index-page .featured-team-visual {
    display: none !important;
  }

  .teams-index-page .teams-hero h1,
  .teams-index-page .team-league-map h2,
  .teams-index-page .teams-grid-heading h2,
  .teams-index-page .league-featured-team h2 {
    display: block !important;
    font-size: clamp(2.2rem, 10.5vw, 3.25rem) !important;
    letter-spacing: 0 !important;
    line-height: 0.98 !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    text-align: left !important;
    text-wrap: balance;
    white-space: normal !important;
    word-break: normal !important;
    writing-mode: horizontal-tb !important;
  }

  .teams-index-page .teams-hero p,
  .teams-index-page .team-league-map p,
  .teams-index-page .league-featured-team p,
  .teams-index-page .identity-map span,
  .teams-index-page .identity-map strong,
  .teams-index-page .identity-map small,
  .teams-index-page .team-card h2,
  .teams-index-page .team-card-identity strong,
  .teams-index-page .team-highlights p,
  .teams-index-page .role-mix span,
  .teams-index-page .team-card-player-strip b,
  .teams-index-page .team-card-player-strip span {
    max-width: 100% !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
    word-break: normal !important;
    writing-mode: horizontal-tb !important;
  }

  .teams-index-page .identity-map button {
    min-height: 0 !important;
    padding: 0.85rem !important;
  }

  .teams-index-page .identity-map strong {
    font-size: 2.05rem !important;
  }

  .teams-index-page .team-card {
    grid-template-rows: auto !important;
  }

  .teams-index-page .team-card-score strong {
    font-size: 2.55rem !important;
  }

  .teams-index-page .team-highlights p {
    grid-template-columns: minmax(72px, auto) minmax(0, 1fr) auto !important;
  }

  .teams-index-page .role-mix {
    max-height: none !important;
  }

  .teams-index-page .team-card-player-photos {
    height: auto !important;
    margin-top: 0 !important;
  }

  .teams-index-page .team-card-player-photos img {
    height: 54px !important;
    width: 54px !important;
  }
}

/* Team dashboard responsive guard: named desktop areas must not survive on mobile. */
@media (max-width: 1180px) {
  .team-dashboard-page .team-dashboard-grid {
    grid-auto-flow: row !important;
    grid-template-areas: none !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .team-dashboard-page .team-dashboard-grid > .team-panel {
    grid-area: auto !important;
    grid-column: 1 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .team-dashboard-page .team-blueprint {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .team-dashboard-page .team-blueprint > * {
    grid-column: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  .team-dashboard-page .team-page-shell {
    box-sizing: border-box;
    max-width: calc(100vw - 1.25rem) !important;
    overflow-x: hidden !important;
    width: calc(100vw - 1.25rem) !important;
  }

  .team-dashboard-page .team-dashboard-hero,
  .team-dashboard-page .team-blueprint,
  .team-dashboard-page .team-dashboard-grid,
  .team-dashboard-page .team-style-card,
  .team-dashboard-page .team-needs-body,
  .team-dashboard-page .team-contract-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .team-dashboard-page .team-dashboard-hero > *,
  .team-dashboard-page .team-blueprint > *,
  .team-dashboard-page .team-dashboard-grid > *,
  .team-dashboard-page .team-panel > *,
  .team-dashboard-page .team-style-card > *,
  .team-dashboard-page .team-needs-body > *,
  .team-dashboard-page .team-contract-layout > * {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .team-dashboard-page .team-panel {
    min-height: 0 !important;
    padding: 0.9rem !important;
  }

  .team-dashboard-page .team-panel header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
  }

  .team-dashboard-page .team-panel h2,
  .team-dashboard-page .team-panel a,
  .team-dashboard-page .team-panel dt,
  .team-dashboard-page .team-panel dd,
  .team-dashboard-page .team-panel li,
  .team-dashboard-page .team-panel p,
  .team-dashboard-page .team-panel span,
  .team-dashboard-page .team-panel strong,
  .team-dashboard-page .team-panel small,
  .team-dashboard-page .team-panel b {
    overflow-wrap: break-word !important;
    white-space: normal !important;
    word-break: normal !important;
    writing-mode: horizontal-tb !important;
  }

  .team-dashboard-page .team-needs-body {
    align-items: stretch !important;
  }

  .team-dashboard-page .team-needs-list li {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .team-dashboard-page .team-style-card header {
    grid-column: auto !important;
  }

  .team-dashboard-page .team-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .team-dashboard-page .team-radar {
    display: grid;
    justify-items: center;
  }

  .team-dashboard-page .team-radar svg {
    height: auto !important;
    max-width: 220px !important;
    width: min(100%, 220px) !important;
  }

  .team-dashboard-page .team-fit-targets li {
    grid-template-columns: 22px 46px minmax(0, 1fr) auto !important;
  }

  .team-dashboard-page .team-panel dl div {
    gap: 0.75rem;
  }

  .team-dashboard-page .team-panel dd {
    flex: 0 1 auto;
  }

  .team-dashboard-page .team-key-contracts,
  .team-dashboard-page .team-roster-table {
    overflow-x: auto !important;
  }

  .team-dashboard-page .team-key-contracts table {
    min-width: 560px;
  }
}
.admin-transaction-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  gap: 18px;
  padding: 18px;
}

.admin-transaction-form,
.admin-transaction-feed {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(164, 188, 196, .2);
  border-radius: 16px;
  background: rgba(8, 18, 21, .88);
}

.admin-transaction-form {
  display: grid;
  gap: 14px;
}

.admin-transaction-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.admin-transaction-heading span,
.admin-transaction-card header span {
  color: var(--green);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.admin-transaction-heading strong {
  color: var(--muted);
  font-size: .78rem;
  text-align: right;
}

.admin-transaction-form > label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-transaction-form textarea {
  min-height: 88px;
  resize: vertical;
}

#transaction-list {
  display: grid;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
}

.admin-transaction-card {
  padding: 14px;
  border: 1px solid rgba(164, 188, 196, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.admin-transaction-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-transaction-card header div {
  display: grid;
  gap: 4px;
}

.admin-transaction-card header b {
  padding: 5px 8px;
  border-radius: 999px;
  color: #091014;
  background: #ffbd34;
  font-size: .68rem;
  text-transform: uppercase;
}

.admin-transaction-card header b[data-status="official"] { background: var(--green); }
.admin-transaction-card header b[data-status="rejected"] { background: #ff665f; }

.admin-transaction-card h4 {
  margin: 12px 0 5px;
  color: #fff;
}

.admin-transaction-card p,
.admin-transaction-card small {
  margin: 5px 0;
  color: var(--muted);
}

.admin-transaction-card a { color: #19a8ff; }

.admin-transaction-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .admin-transaction-layout { grid-template-columns: 1fr; padding: 10px; }
  .admin-transaction-form,
  .admin-transaction-feed { padding: 14px; }
}
