:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-strong: #10130f;
  --text: #151812;
  --muted: #656b5f;
  --line: #d9ddd1;
  --line-strong: #aab3a2;
  --green: #177245;
  --green-soft: #dceee3;
  --accent: #177245;
  --accent-strong: #0f5e39;
  --accent-soft: #e8f4eb;
  --accent-wash: #f4faf2;
  --amber: #b26618;
  --amber-soft: #fff1dd;
  --red: #b43f3a;
  --blue: #28668f;
  --blue-soft: #e8f1f6;
  --focus-ring: 0 0 0 3px rgba(23, 114, 69, 0.18);
  --action-shadow: 0 14px 28px rgba(23, 114, 69, 0.18);
  --shadow: 0 18px 45px rgba(24, 30, 20, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Artificial Analysis-inspired product system: product-pass-405 */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f2f2f2;
  --surface-strong: #0b0b0b;
  --text: #111111;
  --ink: #111111;
  --muted: #707070;
  --line: #dedede;
  --line-strong: #a8a8a8;
  --green: #3f8a5d;
  --green-soft: #e8f3ec;
  --accent: #7b245e;
  --accent-strong: #5f1747;
  --accent-soft: #f2e5ed;
  --accent-wash: #faf5f8;
  --amber: #e26532;
  --amber-soft: #fff0e8;
  --red: #d83b4b;
  --blue: #2d6cdf;
  --blue-soft: #eaf0fc;
  --yellow: #f2cf27;
  --focus-ring: 0 0 0 3px rgba(123, 36, 94, 0.15);
  --action-shadow: none;
  --shadow: none;
  --font-display: "Iowan Old Style", "Baskerville", "Times New Roman", Times, serif;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(222, 222, 222, 0.75);
  background: #ffffff;
}

.brand-shell {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  padding: 5px 14px 5px 7px;
  border-radius: 999px;
  background: #0b0b0b;
  color: #ffffff;
  text-decoration: none;
}

.brand-shell:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(123, 36, 94, 0.22);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  color: #0b0b0b;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
}

.brand-shell h1 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1;
}

.product-nav {
  position: static;
  z-index: auto;
  display: flex;
  gap: 2px;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border: 0;
  border-radius: 999px;
  background: #ececec;
  box-shadow: none;
  scrollbar-width: none;
}

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

.nav-tab,
.nav-tab-primary,
.nav-tab-secondary,
.nav-tab-muted {
  flex: 0 0 auto;
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #191919;
  font-size: 0.82rem;
  font-weight: 650;
  box-shadow: none;
}

.nav-tab::before,
.nav-tab-primary::before,
.nav-tab-secondary::before,
.nav-tab-muted::before {
  display: none;
}

.nav-tab:hover,
.nav-tab:focus-visible {
  border: 0;
  background: #ffffff;
  color: #111111;
  outline: none;
  box-shadow: none;
}

.product-nav .nav-tab.is-active,
body[data-active-screen="compare"] .product-nav .nav-tab.is-active,
body[data-active-screen="club"] .product-nav .nav-tab.is-active,
body[data-active-screen="league"] .product-nav .nav-tab.is-active,
body[data-active-screen="methodology"] .product-nav .nav-tab.is-active {
  border: 0;
  background: #0b0b0b;
  color: #ffffff;
  box-shadow: none;
}

.controls {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: end;
  min-width: 0;
}

.topbar-control {
  position: relative;
  display: block;
  min-width: 0;
}

body[data-active-screen="players"] .league-page-control,
body[data-active-screen="compare"] .league-page-control,
body[data-active-screen="player-report"] .league-page-control,
body[data-active-screen="methodology"] .league-page-control {
  display: none;
}

.topbar-control label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar-control select {
  width: auto;
  max-width: 220px;
  min-height: 38px;
  padding: 0 34px 0 13px;
  border: 0;
  border-radius: 999px;
  background-color: #ececec;
  color: #111111;
  font-size: 0.8rem;
  font-weight: 650;
  box-shadow: none;
}

.topbar-control select:hover,
.topbar-control select:focus {
  border: 0;
  background-color: #e3e3e3;
  box-shadow: var(--focus-ring);
}

main {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.screen-masthead,
.player-report-hero,
.league-report-hero,
.methodology-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
  gap: 36px;
  align-items: end;
  margin: 0 0 20px;
  padding: 42px 0 30px;
  border-bottom: 1px solid var(--line);
}

.screen-masthead > p {
  max-width: 440px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.screen-masthead h2,
.player-report-hero h2,
.league-report-hero h2,
.methodology-hero h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

.report-kicker,
.finder-read-kicker,
.comparison-read-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.scout-actions {
  display: flex;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 4px;
  overflow-x: auto;
  border: 0;
  border-radius: 999px;
  background: #ececec;
  box-shadow: none;
  scrollbar-width: none;
}

.scout-actions::-webkit-scrollbar {
  display: none;
}

.scout-actions button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #202020;
  font-size: 0.8rem;
  font-weight: 680;
  box-shadow: none;
}

.scout-actions button::before {
  display: none;
}

.scout-actions button:hover,
.scout-actions button:focus-visible {
  border: 0;
  background: #ffffff;
  color: #111111;
  outline: none;
  box-shadow: none;
}

.scout-actions button.is-active {
  border: 0;
  background: #0b0b0b;
  color: #ffffff;
  box-shadow: none;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: none;
}

.panel {
  padding: 20px;
}

.panel-heading {
  align-items: baseline;
  margin-bottom: 18px;
}

.panel-heading h2,
.mini-heading strong,
.finder-map-copy strong,
.finder-breakdown-copy strong,
.multi-compare-heading strong {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

.panel-heading h2 {
  font-size: 1.65rem;
  line-height: 1;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 550;
}

select,
input {
  min-height: 42px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  background-color: #ffffff;
  color: #111111;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: none;
}

select:hover,
input:hover {
  border-color: #989898;
}

select:focus,
input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: var(--focus-ring);
}

.finder-controls,
.comparison-controls,
.multi-compare-controls,
.detail-control-grid {
  gap: 10px;
  padding: 14px;
  border-radius: 6px;
  background: #f3f3f3;
}

.finder-controls,
.comparison-controls {
  margin-bottom: 16px;
}

.finder-filter-toggle {
  display: none;
}

.finder-controls label,
.comparison-controls label,
.multi-compare-controls label,
.detail-control-grid label,
.player-report-actions label {
  gap: 5px;
  color: #5f5f5f;
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-priority-control,
.choice-priority-control {
  color: var(--accent);
}

.search-priority-control input[type="search"],
.choice-priority-control select {
  min-height: 46px;
  border: 1px solid #bcbcbc;
  border-left-width: 1px;
  background: #ffffff;
  color: #111111;
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: none;
}

.search-priority-control input[type="search"]:focus,
.choice-priority-control select:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.finder-read,
.comparison-read {
  gap: 26px;
  margin-bottom: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#finder-read-title,
#comparison-read-title,
.player-verdict > strong,
.squad-verdict > strong,
.market-read > strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

#finder-read-body,
#comparison-read-body,
.player-verdict p,
.squad-verdict p,
.market-read p {
  color: #222222;
  font-size: 0.9rem;
  font-weight: 560;
  line-height: 1.45;
}

#finder-read-points,
#comparison-read-points,
#player-verdict-points,
#club-verdict-points,
#market-read-points,
#league-read-points {
  gap: 5px;
}

#finder-read-points li,
#comparison-read-points li,
#player-verdict-points li,
#club-verdict-points li,
#market-read-points li,
#league-read-points li {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 560;
}

#finder-read-points li::before,
#comparison-read-points li::before,
#player-verdict-points li::before,
#club-verdict-points li::before,
#market-read-points li::before,
#league-read-points li::before {
  background: var(--accent);
}

.finder-read-facts,
.comparison-read-facts,
.player-report-facts,
.league-read-facts,
.detail-stat-row {
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}

.finder-read-facts span,
.comparison-read-facts span,
.player-report-facts span,
.league-read-facts span,
.detail-stat-row > div {
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.finder-read-facts span:nth-child(2),
.comparison-read-facts span:nth-child(2),
.player-report-facts span:nth-child(2),
.league-read-facts span:nth-child(2),
.detail-stat-row > div:nth-child(2) {
  background: #fbf7fa;
}

.finder-read-facts span:nth-child(3),
.comparison-read-facts span:nth-child(3),
.player-report-facts span:nth-child(3),
.league-read-facts span:nth-child(3),
.detail-stat-row > div:nth-child(3) {
  background: #f5f8fd;
}

.finder-read-facts span:nth-child(4),
.comparison-read-facts span:nth-child(4),
.player-report-facts span:nth-child(4),
.league-read-facts span:nth-child(4),
.detail-stat-row > div:nth-child(4) {
  background: #fffbeb;
}

.finder-read-facts small,
.comparison-read-facts small,
.player-report-facts small,
.league-read-facts small,
.detail-stat-row span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.finder-read-facts strong,
.comparison-read-facts strong,
.player-report-facts strong,
.league-read-facts strong,
.detail-stat-row strong {
  color: #111111;
  font-size: 0.96rem;
  font-weight: 720;
}

.finder-method-panel,
.advanced-method-details,
.enrichment-note {
  border-color: var(--line);
}

.finder-method-summary::after {
  border: 0;
  background: #ececec;
  color: #111111;
}

.finder-map-panel,
.finder-breakdown-panel,
.squad-map-panel,
.player-peer-panel,
.role-profile-block,
.fit-driver-panel,
.multi-compare-panel {
  border-color: var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.finder-map-panel,
.finder-breakdown-panel {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}

.finder-breakdown-card,
.player-peer-card,
.comparison-verdict-card,
.comparison-trait-card,
.methodology-contract-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.finder-breakdown-card:nth-child(4n+1),
.player-peer-card:nth-child(4n+1) {
  border-top: 3px solid var(--accent);
}

.finder-breakdown-card:nth-child(4n+2),
.player-peer-card:nth-child(4n+2) {
  border-top: 3px solid var(--blue);
}

.finder-breakdown-card:nth-child(4n+3),
.player-peer-card:nth-child(4n+3) {
  border-top: 3px solid var(--yellow);
}

.finder-breakdown-card:nth-child(4n+4),
.player-peer-card:nth-child(4n+4) {
  border-top: 3px solid var(--amber);
}

.method-note,
.comparison-method-note {
  border: 0;
  border-radius: 6px;
  background: #f2f2f2;
  color: var(--muted);
}

.action-link,
.secondary-action,
.comparison-multi-action,
.player-report-actions button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #cfcfcf;
  border-radius: 5px;
  background: #ffffff;
  color: #111111;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: none;
}

.action-link:hover,
.action-link:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible,
.comparison-multi-action:hover,
.comparison-multi-action:focus-visible {
  border-color: #111111;
  background: #f4f4f4;
  color: #111111;
  outline: none;
  box-shadow: none;
}

.action-link-primary,
.action-primary,
.player-report-actions button:not(:disabled) {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.action-link-primary:hover,
.action-link-primary:focus-visible,
.action-primary:hover,
.action-primary:focus-visible,
.player-report-actions button:not(:disabled):hover,
.player-report-actions button:not(:disabled):focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.methodology-link {
  color: var(--accent);
  font-weight: 700;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 10px;
  border-bottom: 1px solid #cfcfcf;
  background: #f1f1f1;
  color: #555555;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

td {
  padding: 12px 10px;
  border-bottom: 1px solid #e7e7e7;
  color: #202020;
  font-size: 0.79rem;
  font-weight: 540;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #faf7e9;
}

td a,
.player-link {
  color: #111111;
  font-weight: 730;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

td a:hover,
td a:focus-visible,
.player-link:hover,
.player-link:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.cell-subtext {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 540;
}

.term-help {
  border-color: #bbbbbb;
  background: #ffffff;
  color: #444444;
}

.term-help:hover,
.term-help:focus-visible {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.input-clear-button[hidden] {
  display: none;
}

.comparison-mode-tabs {
  display: flex;
  gap: 22px;
  margin: 2px 0 18px;
  border-bottom: 1px solid var(--line);
}

.comparison-mode-tabs button {
  min-height: 50px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.comparison-mode-tabs button::before {
  display: none;
}

.comparison-mode-tabs button:hover,
.comparison-mode-tabs button:focus-visible {
  border-color: #aaaaaa;
  background: transparent;
  color: #111111;
  outline: none;
  box-shadow: none;
}

.comparison-mode-tabs button.is-active {
  border-color: var(--accent);
  background: transparent;
  color: #111111;
  box-shadow: none;
}

.comparison-mode-tabs strong {
  font-size: 0.88rem;
  font-weight: 750;
}

.comparison-mode-tabs span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 540;
}

.comparison-question-actions {
  display: flex;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border-radius: 999px;
  background: #ececec;
}

.comparison-question-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #333333;
  box-shadow: none;
}

.comparison-question-actions button::before {
  display: none;
}

.comparison-question-actions button.is-active,
.comparison-question-actions button:hover,
.comparison-question-actions button:focus-visible {
  border: 0;
  background: #ffffff;
  color: #111111;
  outline: none;
  box-shadow: none;
}

.comparison-focus-card,
.direct-matchup,
.comparison-metric-grid,
.spatial-read-cards,
.profile-note-grid {
  border-color: var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.player-report-hero,
.league-report-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(460px, 0.85fr);
}

#player-report-meta,
#league-read-body,
.methodology-hero p,
.context-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 520;
  line-height: 1.45;
}

.player-report-actions {
  max-width: 720px;
}

.player-report-actions label {
  text-transform: none;
}

.player-report-facts,
.league-read-facts {
  width: 100%;
}

.league-insights-grid {
  gap: 12px;
}

.league-insights-grid .compact-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.league-insights-grid th,
.league-insights-grid td {
  padding-inline: 8px;
  overflow-wrap: anywhere;
}

.league-insights-grid th:nth-child(3),
.league-insights-grid td:nth-child(3) {
  display: none;
}

.league-insights-grid > .panel:nth-child(2) th:nth-child(4),
.league-insights-grid > .panel:nth-child(2) td:nth-child(4),
.league-insights-grid > .panel:nth-child(3) th:nth-child(4),
.league-insights-grid > .panel:nth-child(3) td:nth-child(4) {
  display: none;
}

.league-insights-grid th:first-child,
.league-insights-grid td:first-child {
  width: 28%;
}

.league-insights-grid th:nth-child(2),
.league-insights-grid td:nth-child(2) {
  width: 30%;
}

.league-insights-grid > .panel {
  border-top-width: 1px;
}

.league-insights-grid > .panel::before,
.methodology-card::before {
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 14px;
  background: var(--accent);
  content: "";
}

.league-insights-grid > .panel:nth-child(2)::before,
.methodology-card:nth-child(2)::before {
  background: var(--yellow);
}

.league-insights-grid > .panel:nth-child(3)::before,
.methodology-card:nth-child(3)::before {
  background: var(--amber);
}

.methodology-card:nth-child(4)::before {
  background: var(--blue);
}

.league-insights-grid > .panel:nth-child(2) .panel-heading h2,
.league-insights-grid > .panel:nth-child(3) .panel-heading h2 {
  color: #111111;
}

.methodology-grid {
  gap: 12px;
}

.methodology-card,
.methodology-card.is-league,
.methodology-card.is-stats,
.methodology-card.is-choice {
  min-height: 180px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.methodology-card > span {
  width: auto;
  height: auto;
  place-items: initial;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
}

.methodology-card.is-league > span,
.methodology-card.is-stats > span {
  background: transparent;
  color: var(--muted);
}

.methodology-card h3,
.methodology-detail-grid h3,
.methodology-contract-grid h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.methodology-card p,
.methodology-detail-grid p,
.methodology-contract-grid p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 520;
}

.methodology-detail-grid > div {
  border-top: 1px solid var(--line);
}

.pitch-chart {
  border-radius: 6px;
  background: #f4f5f1;
}

.gaffer-chart-tooltip,
.squad-map-tooltip {
  border: 1px solid #d0d0d0 !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  color: #111111 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14) !important;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand controls"
      "nav nav";
    gap: 10px 14px;
  }

  .brand-shell {
    grid-area: brand;
  }

  .product-nav {
    grid-area: nav;
    justify-self: stretch;
    width: 100%;
  }

  .controls {
    grid-area: controls;
  }

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

  .finder-controls .search-priority-control {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  main {
    padding: 0 14px 48px;
  }

  .screen-masthead,
  .player-report-hero,
  .league-report-hero,
  .methodology-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0 24px;
  }

  .screen-masthead h2,
  .player-report-hero h2,
  .league-report-hero h2,
  .methodology-hero h2 {
    font-size: 2.7rem;
  }

  .screen-masthead > p {
    max-width: 620px;
  }

  .player-report-facts,
  .league-read-facts {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .methodology-grid,
  .league-insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 10px 12px;
  }

  .brand-shell {
    min-height: 36px;
    padding-right: 11px;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .brand-shell h1 {
    font-size: 0.9rem;
  }

  .topbar-control select {
    max-width: 164px;
    min-height: 36px;
    font-size: 0.72rem;
  }

  .nav-tab,
  .nav-tab-primary,
  .nav-tab-secondary,
  .nav-tab-muted {
    width: auto;
    min-height: 30px;
    padding-inline: 11px;
    font-size: 0.76rem;
  }

  .screen-masthead,
  .player-report-hero,
  .league-report-hero,
  .methodology-hero {
    padding-top: 26px;
  }

  .screen-masthead h2,
  .player-report-hero h2,
  .league-report-hero h2,
  .methodology-hero h2 {
    font-size: 2.3rem;
  }

  .screen-masthead > p {
    font-size: 0.86rem;
  }

  .panel {
    padding: 14px;
  }

  .panel-heading h2 {
    font-size: 1.4rem;
  }

  .finder-controls,
  .comparison-controls,
  .detail-control-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .finder-controls .search-priority-control,
  .comparison-controls .search-priority-control {
    grid-column: auto;
  }

  .player-finder[data-mobile-filters-open="false"] .finder-controls label:not(:first-child) {
    display: none;
  }

  .finder-filter-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    margin: -6px 0 14px;
    padding: 0 13px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    background: #ffffff;
    color: #111111;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 720;
  }

  .finder-filter-toggle strong {
    font-size: 1rem;
    line-height: 1;
  }

  .finder-filter-toggle:hover,
  .finder-filter-toggle:focus-visible {
    border-color: #111111;
    outline: none;
    box-shadow: var(--focus-ring);
  }

  .finder-read,
  .comparison-read {
    grid-template-columns: 1fr;
  }

  .finder-read-facts,
  .comparison-read-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-report-facts,
  .league-read-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-report-facts span:last-child,
  .league-read-facts span:last-child {
    grid-column: 1 / -1;
  }

  .comparison-mode-tabs {
    gap: 16px;
    overflow-x: auto;
  }

  .comparison-mode-tabs button {
    flex: 0 0 auto;
  }

  .comparison-mode-tabs span {
    display: none;
  }

  .methodology-grid,
  .league-insights-grid {
    grid-template-columns: 1fr;
  }

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

  .action-link,
  .secondary-action,
  .comparison-multi-action,
  .player-report-actions button {
    min-height: 40px;
  }

  th {
    position: static;
  }
}

@layer legacy {
* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px) 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
}

h2 {
  font-size: 1rem;
  line-height: 1.2;
}

.controls {
  display: grid;
  gap: 10px;
  min-width: min(300px, 100%);
}

.controls label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.topbar-control {
  display: grid;
  gap: 5px;
}

body[data-active-screen="players"] .league-page-control,
body[data-active-screen="compare"] .league-page-control,
body[data-active-screen="player-report"] .league-page-control,
body[data-active-screen="methodology"] .league-page-control {
  display: none;
}

.product-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px clamp(14px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(24, 30, 20, 0.07);
}

.nav-tab {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f4f6f0;
  color: #384033;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.nav-tab-primary {
  border-color: rgba(23, 114, 69, 0.2);
  background: var(--accent-wash);
  color: #163d2b;
}

.nav-tab-secondary {
  border-color: rgba(40, 102, 143, 0.18);
  background: #f2f7fa;
  color: #174f7a;
}

.nav-tab-primary::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.nav-tab-secondary::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
  content: "";
}

.nav-tab:hover,
.nav-tab:focus-visible {
  border-color: rgba(23, 114, 69, 0.28);
  color: var(--text);
  background: #eef5eb;
  outline: none;
  box-shadow: 0 10px 24px rgba(28, 34, 23, 0.09);
}

.nav-tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface);
  box-shadow: var(--action-shadow);
}

body[data-active-screen="compare"] .nav-tab.is-active {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(40, 102, 143, 0.2);
}

body[data-active-screen="club"] .nav-tab.is-active,
body[data-active-screen="league"] .nav-tab.is-active {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 14px 28px rgba(178, 102, 24, 0.18);
}

.nav-tab.is-active::before {
  background: var(--surface);
}

.nav-tab-muted {
  margin-left: auto;
  background: #f1f3ed;
  color: var(--muted);
}

.nav-tab-muted::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line-strong);
  content: "";
}

.product-nav .nav-tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface);
  box-shadow: var(--action-shadow);
}

body[data-active-screen="compare"] .product-nav .nav-tab.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--surface);
  box-shadow: 0 14px 28px rgba(40, 102, 143, 0.2);
}

body[data-active-screen="club"] .product-nav .nav-tab.is-active,
body[data-active-screen="league"] .product-nav .nav-tab.is-active {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--surface);
  box-shadow: 0 14px 28px rgba(178, 102, 24, 0.18);
}

body[data-active-screen="methodology"] .product-nav .nav-tab.is-active {
  border-color: var(--surface-strong);
  background: var(--surface-strong);
  color: var(--surface);
  box-shadow: 0 14px 28px rgba(16, 19, 15, 0.16);
}

.product-nav .nav-tab.is-active::before {
  background: var(--surface);
}

select,
input {
  width: 100%;
  min-height: 42px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input {
  padding-right: 12px;
}

select:hover,
input:hover {
  border-color: var(--line-strong);
}

select:focus,
input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: var(--focus-ring);
}

input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 22px clamp(14px, 3vw, 42px) 42px;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.screen > .panel:last-child,
.screen > .chart-grid:last-child,
.screen > .summary-band:last-child {
  margin-bottom: 0;
}

.summary-band,
.chart-grid {
  display: grid;
  gap: 14px;
}

.summary-band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.analysis-summary {
  margin-bottom: 14px;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 18px;
}

.metric-card span,
.metric-card small,
.panel-heading span {
  color: var(--muted);
}

.metric-card span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.metric-card small,
.panel-heading span {
  font-size: 0.85rem;
}

.chart-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  margin-bottom: 14px;
}

.analysis-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
}

.player-analysis-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.league-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.league-insights-grid .compact-table table {
  min-width: 560px;
}

.league-insights-grid > .panel {
  border-top: 4px solid rgba(23, 114, 69, 0.58);
}

.league-insights-grid > .panel:nth-child(2) {
  border-top-color: rgba(178, 102, 24, 0.64);
}

.league-insights-grid > .panel:nth-child(3) {
  border-top-color: rgba(40, 102, 143, 0.58);
}

.league-insights-grid > .panel:nth-child(2) .panel-heading h2 {
  color: var(--amber);
}

.league-insights-grid > .panel:nth-child(3) .panel-heading h2 {
  color: var(--blue);
}

.league-insights-grid td,
.league-insights-grid th {
  padding-inline: 9px;
  white-space: normal;
  line-height: 1.28;
}

.league-insights-grid td:nth-child(4),
.league-insights-grid td:nth-child(5) {
  font-weight: 800;
}

.player-report-hero,
.league-report-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--line);
}

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

.player-report-hero h2,
.league-report-hero h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.player-report-hero p,
.league-report-hero p {
  max-width: 760px;
}

#league-read-body {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

#league-read-points {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

#league-read-points li {
  position: relative;
  max-width: 840px;
  padding-left: 16px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 720;
  line-height: 1.35;
}

#league-read-points li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

#player-report-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.context-note {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.35;
}

.context-note.is-warning {
  color: var(--amber);
}

.player-report-actions {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
  max-width: 760px;
  margin-top: 14px;
}

.player-report-actions label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

#player-report-search {
  min-width: 0;
}

.player-report-actions button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--text);
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--surface);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.player-report-actions button:disabled {
  border-color: var(--line);
  background: #eef0e8;
  color: var(--muted);
  cursor: default;
}

.player-report-facts,
.league-read-facts {
  display: grid;
  gap: 8px;
}

.player-report-facts {
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  width: min(700px, 100%);
}

.league-read-facts {
  grid-template-columns: repeat(5, minmax(96px, 1fr));
  width: min(680px, 100%);
}

.player-report-facts span,
.league-read-facts span {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-top: 3px solid rgba(23, 114, 69, 0.5);
  border-radius: 6px;
  background: var(--surface);
}

.player-report-facts span:nth-child(2),
.league-read-facts span:nth-child(4) {
  border-top-color: rgba(178, 102, 24, 0.6);
  background: #fffdf8;
}

.player-report-facts span:nth-child(5),
.league-read-facts span:nth-child(3) {
  border-top-color: rgba(40, 102, 143, 0.56);
  background: #f8fbfd;
}

.player-report-facts small,
.league-read-facts small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-report-facts strong,
.league-read-facts strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  line-height: 1.1;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 10px;
  min-width: 0;
}

.route-actions a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.route-actions a:hover {
  border-color: var(--green);
  color: var(--green);
}

.panel-heading a {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.panel-heading a:hover {
  text-decoration: underline;
}

.panel-heading a.is-disabled {
  color: var(--muted);
  pointer-events: none;
}

.chart {
  width: 100%;
  min-height: 360px;
  overflow: hidden;
}

.chart.compact {
  min-height: 210px;
}

.pitch-visual {
  position: relative;
  height: 132px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 50%, transparent 50%) 0 0 / 16.66% 100%,
    #177245;
}

.pitch-visual::before,
.pitch-chart::before {
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  content: "";
}

.pitch-line {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.76);
}

.pitch-line.halfway {
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 0;
  border-width: 0 0 0 2px;
}

.pitch-line.box {
  top: 36px;
  width: 58px;
  height: 60px;
}

.pitch-line.box.left {
  left: 12px;
  border-left: 0;
}

.pitch-line.box.right {
  right: 12px;
  border-right: 0;
}

.pitch-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

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

.player-spatial-grid.is-touch-only {
  grid-template-columns: minmax(0, 1fr);
}

.player-spatial-read {
  display: grid;
  gap: 12px;
}

.spatial-read-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spatial-read-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 7px;
  background: #fbfcf8;
}

.spatial-read-card.is-mixed {
  border-left-color: var(--amber);
}

.spatial-read-card.is-watch {
  border-left-color: var(--red);
}

.spatial-read-card.is-muted {
  border-left-color: var(--muted);
}

.spatial-read-card small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.spatial-read-card strong {
  overflow-wrap: anywhere;
  font-size: 1.1rem;
  line-height: 1.12;
}

.spatial-read-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.35;
}

#player-spatial-read-points {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#player-spatial-read-points li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.35;
}

#player-spatial-read-points li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

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

.player-enrichment-grid > .panel,
.transfer-history-details,
.player-transfer-table {
  min-width: 0;
  max-width: 100%;
}

.pitch-chart {
  position: relative;
  min-height: 300px;
  max-width: 100%;
  overflow: hidden;
  contain: paint;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 50%, transparent 50%) 0 0 / 16.66% 100%,
    #177245;
}

.pitch-chart .pitch-line,
.pitch-chart .pitch-dot {
  pointer-events: none;
}

.pitch-chart .pitch-line.halfway {
  top: 12px;
  bottom: 12px;
}

.pitch-chart .pitch-line.box {
  top: 82px;
  width: 86px;
  height: 136px;
}

.player-spatial-chart {
  position: absolute;
  inset: 12px;
  z-index: 1;
  min-height: auto;
  height: calc(100% - 24px);
}

.table-panel {
  padding-bottom: 8px;
}

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

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.compact-table table {
  min-width: 460px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

.term-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}

.term-label[data-term-help] {
  cursor: help;
}

th .term-label {
  justify-content: flex-end;
}

th:first-child .term-label,
td:first-child .term-label {
  justify-content: flex-start;
}

.term-help {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 1px solid rgba(31, 38, 29, 0.22);
  border-radius: 999px;
  background: #f6f8f1;
  color: #4d5548;
  font: 900 0.68rem/1 Inter, system-ui, sans-serif;
  cursor: help;
}

.term-help::before {
  content: "i";
}

.term-help:hover,
.term-help:focus-visible {
  border-color: var(--accent);
  background: #e9f4eb;
  color: var(--accent);
  outline: none;
}

.term-tooltip {
  position: fixed;
  z-index: 1200;
  max-width: min(360px, calc(100vw - 28px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: #10130f;
  color: #f8fbf4;
  box-shadow: 0 18px 44px rgba(10, 14, 10, 0.24);
  font: 760 0.78rem/1.42 Inter, system-ui, sans-serif;
  opacity: 0;
  overflow-wrap: anywhere;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  white-space: normal;
}

.term-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.transfer-move-cell {
  min-width: 220px;
  max-width: 340px;
  text-align: left;
  white-space: normal;
  line-height: 1.35;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  font-size: 0.92rem;
}

.detail-controls {
  margin-bottom: 14px;
}

.player-finder {
  margin-bottom: 14px;
}

.scout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f2;
  box-shadow: 0 8px 22px rgba(28, 34, 23, 0.06);
  overflow-x: auto;
}

.scout-actions button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(23, 114, 69, 0.13);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(28, 34, 23, 0.05);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.scout-actions button::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.scout-actions button[data-finder-preset="market"]::before {
  background: var(--amber);
}

.scout-actions button[data-finder-preset="midfield"]::before,
.scout-actions button[data-finder-preset="wide"]::before {
  background: var(--blue);
}

.scout-actions button:hover,
.scout-actions button:focus-visible {
  border-color: rgba(23, 114, 69, 0.34);
  background: var(--accent-wash);
  outline: none;
  box-shadow: 0 10px 22px rgba(23, 114, 69, 0.1);
}

.scout-actions button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface);
  box-shadow: var(--action-shadow);
}

.scout-actions button.is-active::before {
  background: var(--surface);
}

.coverage-matrix-panel {
  margin-bottom: 14px;
}

.metric-matrix-panel {
  margin-bottom: 14px;
}

.coverage-matrix-table table {
  min-width: 1240px;
}

.metric-matrix-table table {
  min-width: 1120px;
}

.coverage-rate-cell {
  font-weight: 800;
}

.finder-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.finder-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.finder-controls .search-priority-control,
.comparison-controls .search-priority-control {
  grid-column: span 2;
}

.multi-compare-controls .search-priority-control {
  grid-column: auto;
}

.search-priority-control {
  color: var(--accent);
}

.search-priority-control input[type="search"] {
  min-height: 50px;
  padding-left: 14px;
  border: 2px solid rgba(23, 114, 69, 0.28);
  border-left-width: 5px;
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(23, 114, 69, 0.09);
}

.search-priority-control input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring), 0 16px 30px rgba(23, 114, 69, 0.14);
}

.choice-priority-control {
  color: var(--amber);
}

.choice-priority-control select {
  min-height: 50px;
  border: 2px solid rgba(178, 102, 24, 0.28);
  border-left-width: 5px;
  background: #fffdf8;
  font-size: 0.95rem;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(178, 102, 24, 0.08);
}

.choice-priority-control select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(178, 102, 24, 0.17), 0 16px 30px rgba(178, 102, 24, 0.12);
}

.finder-read {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finder-read-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finder-read strong {
  display: block;
  overflow-wrap: anywhere;
}

#finder-read-title {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.05;
}

#finder-read-body {
  max-width: 820px;
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.4;
}

#finder-read-points {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

#finder-read-points li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.35;
}

#finder-read-points li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.finder-read-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
}

.finder-read-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 10px;
}

.finder-read-facts span {
  min-width: 0;
  padding-left: 10px;
  border-left: 3px solid var(--green);
}

.finder-read-facts small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finder-read-facts strong {
  font-size: 1rem;
  line-height: 1.14;
}

.finder-method-panel {
  display: block;
  min-width: 0;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.finder-method-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  cursor: pointer;
  list-style: none;
}

.finder-method-summary::-webkit-details-marker {
  display: none;
}

.finder-method-summary::after {
  content: "+";
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 1rem;
  font-weight: 900;
}

.finder-method-panel[open] .finder-method-summary::after {
  content: "-";
}

.finder-method-summary span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.finder-method-summary strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.16;
}

.finder-method-detail {
  display: grid;
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding-top: 10px;
}

.finder-method-panel:not([open]) .finder-method-detail {
  display: none;
}

.finder-method-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.finder-method-copy strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  line-height: 1.16;
}

.finder-method-copy p,
.finder-method-copy small {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.36;
}

.finder-method-weights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.finder-method-pill {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcf7;
}

.finder-method-pill strong,
.finder-method-pill small {
  min-width: 0;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.1;
}

.finder-method-pill strong {
  overflow-wrap: anywhere;
}

.finder-method-pill small {
  color: var(--green);
  overflow-wrap: anywhere;
  white-space: normal;
}

.finder-method-pill.is-muted {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.finder-map-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.finder-map-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.finder-map-copy strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  line-height: 1.16;
}

.finder-map-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.38;
}

.finder-map-chart {
  min-width: 0;
  min-height: 310px;
}

.finder-breakdown-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(340px, 0.46fr) minmax(260px, 0.26fr);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.finder-breakdown-copy {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.finder-breakdown-copy strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  line-height: 1.16;
}

.finder-breakdown-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.38;
}

.finder-breakdown-chart {
  min-width: 0;
  min-height: 260px;
}

.finder-breakdown-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.finder-breakdown-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcf7;
  color: inherit;
  text-decoration: none;
}

.finder-breakdown-card:hover {
  border-color: var(--green);
}

.finder-breakdown-card span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.finder-breakdown-card strong {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.12;
}

.finder-breakdown-card small,
.finder-breakdown-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.3;
}

.finder-breakdown-card em {
  color: var(--text);
}

.finder-breakdown-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.finder-breakdown-card-actions .player-link {
  font-size: 0.72rem;
  line-height: 1.1;
}

.finder-breakdown-card.is-empty {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.player-finder-table table {
  min-width: 1420px;
}

.player-finder-table [data-cell="role"],
.player-finder-table [data-cell="signal"] {
  white-space: normal;
  line-height: 1.25;
}

.finder-result-actions {
  display: flex;
  justify-content: center;
  padding: 12px 0 2px;
}

.finder-result-actions .secondary-action[hidden] {
  display: none;
}

.squad-player-table table {
  min-width: 1080px;
}

.squad-player-table [data-cell="role"],
.squad-player-table [data-cell="signal"] {
  white-space: normal;
  line-height: 1.25;
}

.cell-subtext {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}

.context-warning .cell-subtext {
  color: var(--amber);
}

.context-neutral .cell-subtext {
  color: var(--blue);
}

.method-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin: 0 0 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcf7;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.method-note strong {
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.method-note.compact {
  margin-bottom: 10px;
  padding-block: 8px;
}

.tier-context-note {
  color: var(--text);
  font-weight: 800;
}

.methodology-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--line);
}

.methodology-hero h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.methodology-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.methodology-card,
.methodology-panel {
  padding: 18px;
}

.methodology-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 230px;
  border-top: 4px solid rgba(23, 114, 69, 0.55);
  background: linear-gradient(180deg, var(--accent-wash), #ffffff 58%);
}

.methodology-card > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--surface);
  font-size: 0.82rem;
  font-weight: 900;
}

.methodology-card.is-league {
  border-top-color: rgba(178, 102, 24, 0.62);
  background: linear-gradient(180deg, #fff8ed, #ffffff 58%);
}

.methodology-card.is-league > span {
  background: var(--amber);
}

.methodology-card.is-stats {
  border-top-color: rgba(40, 102, 143, 0.58);
  background: linear-gradient(180deg, #f0f7fb, #ffffff 58%);
}

.methodology-card.is-stats > span {
  background: var(--blue);
}

.methodology-card.is-choice {
  border-top-color: rgba(16, 19, 15, 0.42);
}

.methodology-card h3,
.methodology-detail-grid h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.methodology-card p,
.methodology-detail-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.42;
}

.methodology-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.methodology-detail-grid > div {
  min-width: 0;
  padding-top: 12px;
  border-top: 3px solid var(--green);
}

.methodology-contract-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  margin-top: 14px;
}

.advanced-method-details {
  margin-top: 14px;
}

.advanced-method-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.advanced-method-details:not([open]) .methodology-contract-grid {
  display: none;
}

.methodology-contract-grid > div {
  min-width: 0;
}

.methodology-contract-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.methodology-contract-grid p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.42;
}

.methodology-role-list,
.methodology-trait-list {
  display: grid;
  gap: 10px;
}

.methodology-contract-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.methodology-contract-card-heading {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
}

.methodology-contract-card-heading strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.2;
}

.methodology-contract-card-heading span {
  flex: 0 1 auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.methodology-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.methodology-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid rgba(35, 42, 38, 0.1);
  border-radius: 999px;
  background: #ffffff;
}

.methodology-pill strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.76rem;
  line-height: 1.15;
}

.methodology-pill small {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.comparison-explorer-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
}

.comparison-primary-panel {
  display: flex;
  flex-direction: column;
}

.comparison-primary-panel > .panel-heading {
  order: 1;
}

.comparison-mode-tabs {
  order: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.comparison-mode-tabs button {
  position: relative;
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px 10px 15px;
  border: 1px solid rgba(40, 102, 143, 0.18);
  border-radius: 8px;
  background: #f2f7fa;
  color: #174f7a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(28, 34, 23, 0.05);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.comparison-mode-tabs button::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: var(--blue);
  content: "";
}

.comparison-mode-tabs button:hover,
.comparison-mode-tabs button:focus-visible {
  border-color: rgba(40, 102, 143, 0.42);
  background: #e8f1f6;
  outline: none;
  box-shadow: 0 12px 24px rgba(40, 102, 143, 0.12);
}

.comparison-mode-tabs button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(40, 102, 143, 0.18);
}

.comparison-mode-tabs button.is-active::before {
  background: #ffffff;
}

.comparison-mode-tabs strong,
.comparison-mode-tabs span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.14;
}

.comparison-mode-tabs strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.comparison-mode-tabs span {
  margin-top: 4px;
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 760;
  opacity: 0.72;
}

.comparison-question-actions {
  order: 3;
}

.comparison-method-note {
  order: 4;
}

.comparison-controls {
  order: 5;
}

.comparison-focus-card {
  order: 6;
}

.comparison-read {
  order: 7;
}

.method-note {
  order: 8;
}

.fit-driver-panel {
  order: 9;
}

#comparison-chart {
  order: 10;
}

.multi-compare-panel {
  order: 11;
}

.direct-matchup {
  order: 12;
}

.comparison-screen[data-compare-mode="head-to-head"] .comparison-explorer-grid,
.comparison-screen[data-compare-mode="multi"] .comparison-explorer-grid {
  grid-template-columns: minmax(0, 1fr);
}

.comparison-screen[data-compare-mode="head-to-head"] .comparison-question-actions,
.comparison-screen[data-compare-mode="head-to-head"] .comparison-method-note,
.comparison-screen[data-compare-mode="head-to-head"] .comparison-focus-card,
.comparison-screen[data-compare-mode="head-to-head"] .comparison-read,
.comparison-screen[data-compare-mode="head-to-head"] .method-note,
.comparison-screen[data-compare-mode="head-to-head"] .multi-compare-panel,
.comparison-screen[data-compare-mode="head-to-head"] .fit-driver-panel,
.comparison-screen[data-compare-mode="head-to-head"] #comparison-chart,
.comparison-screen[data-compare-mode="head-to-head"] .comparison-peer-results-panel,
.comparison-screen[data-compare-mode="similar"] .direct-matchup,
.comparison-screen[data-compare-mode="similar"] .multi-compare-panel,
.comparison-screen[data-compare-mode="multi"] .comparison-question-actions,
.comparison-screen[data-compare-mode="multi"] .comparison-method-note,
.comparison-screen[data-compare-mode="multi"] .comparison-controls,
.comparison-screen[data-compare-mode="multi"] .comparison-focus-card,
.comparison-screen[data-compare-mode="multi"] .comparison-read,
.comparison-screen[data-compare-mode="multi"] .method-note,
.comparison-screen[data-compare-mode="multi"] .direct-matchup,
.comparison-screen[data-compare-mode="multi"] .fit-driver-panel,
.comparison-screen[data-compare-mode="multi"] #comparison-chart,
.comparison-screen[data-compare-mode="multi"] .comparison-peer-results-panel {
  display: none;
}

.comparison-screen[data-compare-mode="head-to-head"] .comparison-controls {
  order: 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(23, 114, 69, 0.16);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fbfcf8;
}

.comparison-screen[data-compare-mode="head-to-head"] .comparison-controls label:nth-child(n+3) {
  display: none;
}

.comparison-screen[data-compare-mode="head-to-head"] .comparison-controls .search-priority-control {
  grid-column: auto;
}

.comparison-screen[data-compare-mode="head-to-head"] .direct-matchup {
  order: 4;
  margin-top: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fbfcf8;
}

.comparison-screen[data-compare-mode="multi"] .multi-compare-panel {
  order: 3;
  margin-top: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fbfcf8;
}

.comparison-explorer-grid .compact-table table {
  min-width: 100%;
  table-layout: fixed;
}

.comparison-explorer-grid .compact-table th,
.comparison-explorer-grid .compact-table td {
  padding-inline: 8px;
  text-align: left;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.3;
}

.comparison-explorer-grid .compact-table th:nth-child(1),
.comparison-explorer-grid .compact-table td:nth-child(1) {
  width: 28%;
}

.comparison-explorer-grid .compact-table th:nth-child(2),
.comparison-explorer-grid .compact-table td:nth-child(2) {
  width: 25%;
}

.comparison-explorer-grid .compact-table th:nth-child(3),
.comparison-explorer-grid .compact-table td:nth-child(3) {
  width: 31%;
}

.comparison-explorer-grid .compact-table th:nth-child(4),
.comparison-explorer-grid .compact-table td:nth-child(4) {
  display: none;
}

.comparison-explorer-grid .compact-table th:nth-child(5),
.comparison-explorer-grid .compact-table td:nth-child(5) {
  width: 16%;
  text-align: right;
}

.comparison-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.comparison-question-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.comparison-question-actions button {
  position: relative;
  min-width: 0;
  min-height: 72px;
  padding: 12px 13px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(28, 34, 23, 0.06);
  overflow: hidden;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.comparison-question-actions button::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
  content: "";
}

.comparison-question-actions button:hover,
.comparison-question-actions button:focus-visible {
  border-color: rgba(40, 102, 143, 0.42);
  outline: none;
  box-shadow: 0 12px 24px rgba(40, 102, 143, 0.12);
}

.comparison-question-actions button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(40, 102, 143, 0.18);
}

.comparison-question-actions button.is-active::before {
  background: #ffffff;
}

.comparison-question-actions strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.1;
}

.comparison-question-actions span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1.25;
}

.comparison-question-actions button.is-active span {
  color: rgba(255, 255, 255, 0.78);
}

.comparison-method-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fbfcf7;
}

.comparison-method-note strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.comparison-method-note span {
  flex: 1 1 420px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.35;
}

.comparison-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.comparison-player-control {
  grid-column: span 1;
}

.comparison-search-control {
  position: relative;
  display: block;
  min-width: 0;
}

.comparison-search-control input {
  padding-right: 42px;
}

.comparison-search-note {
  min-height: 1.1rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: none;
}

.comparison-search-note.is-warning {
  color: var(--amber);
}

.input-clear-button {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: #eef3ea;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.input-clear-button:hover,
.input-clear-button:focus-visible {
  background: var(--surface-strong);
  color: var(--surface);
  outline: none;
}

.comparison-focus-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 0.85fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf7;
}

.comparison-focus-card div {
  min-width: 0;
}

.comparison-focus-card span,
.comparison-focus-card small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.comparison-focus-card span {
  text-transform: uppercase;
}

.comparison-focus-card strong {
  display: block;
  margin-block: 3px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.2;
}

.comparison-focus-card .player-link {
  justify-self: end;
  white-space: nowrap;
}

.comparison-read {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.65fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.comparison-read-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-read strong {
  display: block;
  overflow-wrap: anywhere;
}

#comparison-read-title {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.05;
}

#comparison-read-body {
  max-width: 820px;
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.4;
}

#comparison-read-points {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

#comparison-read-points li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.35;
}

#comparison-read-points li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.comparison-read-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
}

.read-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 10px;
}

.read-actions .comparison-read-link,
.read-actions .finder-read-link {
  margin-top: 0;
}

.methodology-link {
  display: inline-flex;
  width: fit-content;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fit-driver-copy .methodology-link {
  margin-top: 10px;
}

.comparison-read-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 10px;
}

.comparison-read-facts span {
  min-width: 0;
  padding-left: 10px;
  border-left: 3px solid var(--green);
}

.comparison-read-facts small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-read-facts strong {
  font-size: 1rem;
  line-height: 1.14;
}

.multi-compare-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.multi-compare-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: end;
  justify-content: space-between;
}

.multi-compare-heading strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(1.16rem, 1.7vw, 1.5rem);
  line-height: 1.1;
}

#comparison-multi-note {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.3;
  text-align: right;
}

.multi-compare-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(170px, 0.48fr) auto;
  gap: 10px;
  align-items: end;
}

.multi-compare-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.multi-compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.secondary-action {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #cdd6c7;
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(28, 34, 23, 0.05);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: rgba(30, 103, 75, 0.45);
  background: #f4f8f1;
  outline: none;
}

.secondary-action.action-primary {
  min-height: 42px;
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--action-shadow);
}

.secondary-action.action-primary:hover,
.secondary-action.action-primary:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.secondary-action.action-secondary {
  border-color: rgba(40, 102, 143, 0.32);
  background: var(--blue-soft);
  color: #174f7a;
}

.comparison-multi-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
  align-items: center;
}

.comparison-multi-chip {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  max-width: 320px;
  padding: 7px 8px 7px 10px;
  border: 1px solid rgba(30, 103, 75, 0.22);
  border-radius: 999px;
  background: #f4f8f1;
  color: var(--text);
}

.comparison-multi-chip span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-multi-chip small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-multi-chip button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 19, 15, 0.08);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.comparison-multi-chip button:hover,
.comparison-multi-chip button:focus-visible {
  background: var(--surface-strong);
  color: var(--surface);
  outline: none;
}

.comparison-multi-empty {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.multi-compare-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.multi-compare-chart-block {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.multi-compare-chart-block.is-wide {
  grid-column: 1 / -1;
}

.multi-compare-chart-block.is-radar-main {
  padding-top: 12px;
}

.multi-compare-chart-block strong,
.multi-compare-chart-block span {
  display: block;
  line-height: 1.18;
}

.multi-compare-chart-block strong {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 900;
}

.multi-compare-chart-block span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.multi-compare-chart-block span.term-label,
.detail-stat-row span.term-label,
.metric-card span.term-label,
.mini-heading span.term-label,
.methodology-hero span.term-label,
.methodology-card span.term-label,
.methodology-panel span.term-label,
.player-report-facts .term-label,
.league-read-facts .term-label {
  display: inline-flex;
  margin-top: 0;
}

.chart.compact.comparison-multi-radar-chart,
.chart.compact.comparison-multi-score-chart {
  min-height: 390px;
}

.chart.compact.comparison-multi-radar-chart {
  min-height: 680px;
}

.chart.compact.comparison-multi-matrix-chart {
  min-height: 620px;
}

.multi-compare-table {
  margin-top: 2px;
}

.multi-compare-table table {
  min-width: 900px;
}

.comparison-explorer-grid .multi-compare-table th,
.comparison-explorer-grid .multi-compare-table td {
  display: table-cell;
}

.comparison-explorer-grid .multi-compare-table th:nth-child(1),
.comparison-explorer-grid .multi-compare-table td:nth-child(1) {
  width: 22%;
}

.comparison-explorer-grid .multi-compare-table th:nth-child(2),
.comparison-explorer-grid .multi-compare-table td:nth-child(2) {
  width: 22%;
}

.comparison-explorer-grid .multi-compare-table th:nth-child(3),
.comparison-explorer-grid .multi-compare-table td:nth-child(3) {
  width: 20%;
}

.comparison-explorer-grid .multi-compare-table th:nth-child(4),
.comparison-explorer-grid .multi-compare-table td:nth-child(4),
.comparison-explorer-grid .multi-compare-table th:nth-child(5),
.comparison-explorer-grid .multi-compare-table td:nth-child(5),
.comparison-explorer-grid .multi-compare-table th:nth-child(6),
.comparison-explorer-grid .multi-compare-table td:nth-child(6) {
  width: 12%;
  text-align: right;
}

.direct-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 16px;
  align-items: start;
  margin: 14px 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.direct-matchup strong {
  display: block;
  overflow-wrap: anywhere;
}

#comparison-matchup-title {
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  line-height: 1.08;
}

#comparison-matchup-body {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.4;
}

#comparison-matchup-points {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

#comparison-matchup-points li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.35;
}

#comparison-matchup-points li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.direct-matchup-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 10px;
}

.direct-matchup-facts span {
  min-width: 0;
  padding-left: 10px;
  border-left: 3px solid var(--line-strong);
}

.direct-matchup-facts small {
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.direct-matchup-facts strong {
  font-size: 0.98rem;
  line-height: 1.14;
}

.direct-matchup-facts em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.25;
}

.matchup-verdict {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
  width: 100%;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.matchup-verdict-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.matchup-verdict-copy strong {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.16;
}

.matchup-verdict-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.38;
}

.matchup-verdict-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.matchup-verdict-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.matchup-verdict-card.is-source-lens {
  border-color: rgba(23, 114, 69, 0.5);
  background: #f0f7ed;
  box-shadow: inset 4px 0 0 rgba(23, 114, 69, 0.7);
}

.matchup-verdict-card span,
.matchup-verdict-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.matchup-verdict-card strong {
  font-size: 0.96rem;
  line-height: 1.16;
}

.matchup-verdict-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.32;
}

.matchup-trait-lens {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  width: 100%;
  margin-top: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.matchup-trait-copy strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.16;
}

.matchup-trait-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.38;
}

.matchup-trait-chart {
  min-height: 290px;
}

.matchup-trait-cards {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.matchup-trait-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.matchup-trait-card.is-source-lens {
  border-color: rgba(23, 114, 69, 0.54);
  background: #f0f7ed;
  box-shadow: inset 4px 0 0 rgba(23, 114, 69, 0.78);
}

.matchup-trait-card-header {
  display: flex;
  gap: 8px;
  align-items: start;
  justify-content: space-between;
  min-width: 0;
}

.matchup-trait-card-header strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.16;
}

.matchup-trait-card-meta {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  min-width: 86px;
}

.matchup-trait-edge,
.matchup-trait-badge {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: right;
}

.matchup-trait-edge {
  color: var(--green);
}

.matchup-trait-badge {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(23, 114, 69, 0.12);
  color: var(--green);
}

.matchup-trait-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.32;
}

.matchup-trait-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.matchup-trait-facts span {
  min-width: 0;
  padding-left: 8px;
  border-left: 3px solid var(--green);
}

.matchup-trait-facts small {
  display: block;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.matchup-trait-facts strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.1;
}

.matchup-trait-card.is-empty {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.matchup-shape {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  width: 100%;
  margin-top: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.matchup-shape-copy strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.16;
}

.matchup-shape-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.38;
}

.chart.compact.matchup-radar-chart {
  min-height: 620px;
}

.matchup-metric-table {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  margin-top: 2px;
}

.matchup-metric-table table {
  min-width: 820px;
}

.matchup-metric-table th,
.matchup-metric-table td {
  padding-inline: 8px;
  text-align: left;
  white-space: normal;
  line-height: 1.3;
}

.matchup-metric-table td[data-cell="metric"] {
  font-weight: 850;
}

.matchup-metric-table td[data-cell="edge"] {
  font-weight: 900;
}

.role-profile-block {
  margin-top: 12px;
}

.player-role-profile-chart {
  min-height: 300px;
  margin-top: 8px;
}

.chart.compact.player-full-spectrum-chart {
  min-height: 390px;
  margin-top: 8px;
}

.fit-driver-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
  margin: 14px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.fit-driver-copy strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  line-height: 1.15;
}

.fit-driver-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.42;
}

.fit-driver-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fit-driver-group {
  min-width: 0;
}

.fit-driver-group-title {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fit-driver-rows {
  display: grid;
  gap: 8px;
}

.fit-driver-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  min-height: 54px;
  padding: 9px 10px 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  --driver-rgb: 23, 114, 69;
  background: #fbfcf7;
}

.fit-driver-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--driver-pct, 0%);
  background: linear-gradient(90deg, rgba(var(--driver-rgb), 0.17), rgba(var(--driver-rgb), 0.03));
  content: "";
  pointer-events: none;
}

.fit-driver-row.is-driver-support {
  --driver-rgb: 79, 123, 171;
}

.fit-driver-row.is-driver-mixed {
  --driver-rgb: 185, 125, 36;
}

.fit-driver-row.is-driver-watchout {
  --driver-rgb: 179, 68, 55;
}

.fit-driver-row strong,
.fit-driver-row span,
.fit-driver-row small {
  position: relative;
  min-width: 0;
}

.fit-driver-row strong {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.15;
}

.fit-driver-row span {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.fit-driver-row.is-driver-watchout span {
  color: #8f3028;
}

.fit-driver-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.fit-driver-row.is-empty {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.fit-driver-row.is-empty::before {
  display: none;
}

.player-link.is-disabled {
  pointer-events: none;
  color: var(--muted);
  opacity: 0.55;
}

.player-link {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

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

.action-link,
.read-actions .player-link,
.comparison-focus-card .player-link,
.finder-breakdown-card-actions .player-link,
.player-peer-card > .player-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: fit-content;
  padding: 0 13px;
  border: 1px solid rgba(23, 114, 69, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(28, 34, 23, 0.06);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.action-link:hover,
.action-link:focus-visible,
.read-actions .player-link:hover,
.read-actions .player-link:focus-visible,
.comparison-focus-card .player-link:hover,
.comparison-focus-card .player-link:focus-visible,
.finder-breakdown-card-actions .player-link:hover,
.finder-breakdown-card-actions .player-link:focus-visible,
.player-peer-card > .player-link:hover,
.player-peer-card > .player-link:focus-visible {
  border-color: rgba(23, 114, 69, 0.45);
  background: var(--accent-wash);
  color: var(--accent-strong);
  outline: none;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(23, 114, 69, 0.12);
}

.action-link-primary,
.read-actions .action-link-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--action-shadow);
}

.action-link-primary:hover,
.action-link-primary:focus-visible,
.read-actions .action-link-primary:hover,
.read-actions .action-link-primary:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.action-link-secondary,
.action-link.action-link-secondary,
.read-actions .action-link-secondary {
  border-color: rgba(40, 102, 143, 0.32);
  background: var(--blue-soft);
  color: #174f7a;
}

.action-link-secondary:hover,
.action-link-secondary:focus-visible,
.action-link.action-link-secondary:hover,
.action-link.action-link-secondary:focus-visible,
.read-actions .action-link-secondary:hover,
.read-actions .action-link-secondary:focus-visible {
  border-color: rgba(40, 102, 143, 0.48);
  background: #dcecf4;
  color: #123f61;
}

.detail-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.squad-control-grid {
  grid-template-columns: minmax(220px, 360px);
}

.detail-control-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.squad-detail-grid {
  grid-template-columns: minmax(0, 1fr);
}

.squad-player-control[hidden],
.squad-player-detail[hidden] {
  display: none !important;
}

.detail-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.detail-stat-row div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-top: 3px solid rgba(23, 114, 69, 0.5);
  border-radius: 6px;
  background: #fbfcf8;
}

.detail-stat-row div:nth-child(2) {
  border-top-color: rgba(40, 102, 143, 0.55);
}

.detail-stat-row div:nth-child(3) {
  border-top-color: rgba(178, 102, 24, 0.6);
}

.detail-stat-row div:nth-child(4) {
  border-top-color: rgba(16, 19, 15, 0.36);
}

.detail-stat-row span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-stat-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.1;
}

.market-read {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(23, 114, 69, 0.18);
  border-radius: 8px;
  background: #f4f8ef;
}

.market-read strong {
  overflow-wrap: anywhere;
  font-size: 1.1rem;
  line-height: 1.16;
}

.market-read p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.market-read ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.market-read li {
  position: relative;
  padding-left: 15px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.32;
}

.market-read li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.squad-map-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  width: 100%;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(178, 102, 24, 0.22);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: #fffdf8;
  overflow: visible;
}

.squad-map-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.squad-map-copy strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  line-height: 1.16;
}

.squad-map-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.38;
}

.squad-map-chart {
  min-width: 0;
  min-height: 300px;
  overflow: hidden;
  contain: paint;
}

.squad-map-chart > div,
.squad-map-chart canvas {
  max-width: 100% !important;
}

.gaffer-chart-tooltip,
.squad-map-tooltip {
  max-width: min(480px, calc(100vw - 32px));
  white-space: normal;
  overflow-wrap: anywhere;
}

.squad-tooltip-content {
  display: grid;
  gap: 10px;
  color: #1f261d;
  font: 760 0.84rem/1.35 Inter, system-ui, sans-serif;
}

.squad-tooltip-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.squad-tooltip-heading strong {
  color: #10130f;
  font-size: 1rem;
  line-height: 1.12;
}

.squad-tooltip-heading span,
.squad-tooltip-signal {
  color: #596052;
  font-size: 0.78rem;
  font-weight: 800;
}

.squad-tooltip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
}

.squad-tooltip-row {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.squad-tooltip-row em {
  color: #767d70;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.squad-tooltip-row b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #171d15;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.2;
}

.squad-tooltip-signal {
  display: block;
  padding-top: 8px;
  border-top: 1px solid #e4e8de;
}

.enrichment-stat-row strong {
  font-size: clamp(0.98rem, 1.5vw, 1.3rem);
}

.enrichment-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcf8;
}

.enrichment-note > * {
  min-width: 0;
}

.enrichment-note span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.enrichment-note strong {
  overflow-wrap: anywhere;
  font-size: 0.96rem;
  line-height: 1.35;
}

.profile-note-details {
  gap: 10px;
}

.profile-note-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-note-details:not([open]) .profile-note-grid {
  display: none;
}

.profile-note-details[open] .profile-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.transfer-history-details {
  margin-top: 12px;
}

.transfer-history-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.transfer-history-details:not([open]) .player-transfer-table {
  display: none;
}

.transfer-history-details[open] .player-transfer-table {
  margin-top: 10px;
}

.profile-note-grid div {
  min-width: 0;
}

.profile-note-wide {
  grid-column: 1 / -1;
}

.comparison-stat-row {
  margin-bottom: 10px;
}

.player-verdict,
.squad-verdict {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(23, 114, 69, 0.16);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-wash);
}

.squad-verdict {
  border-color: rgba(178, 102, 24, 0.18);
  border-left-color: var(--amber);
  background: #fffdf8;
}

.player-verdict span,
.squad-verdict span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-verdict strong,
.squad-verdict strong {
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.player-verdict p,
.squad-verdict p {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.42;
}

.player-verdict ul,
.squad-verdict ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.player-verdict li,
.squad-verdict li {
  position: relative;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(43, 117, 83, 0.55);
  border-radius: 7px;
  background: #fbfcf7;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.player-verdict li::before,
.squad-verdict li::before {
  display: none;
}

.player-peer-panel {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.player-peer-list {
  display: grid;
  gap: 8px;
}

.player-peer-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

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

.peer-label {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(23, 114, 69, 0.2);
  border-radius: 999px;
  background: rgba(23, 114, 69, 0.08);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.peer-name {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.player-peer-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.3;
}

.player-peer-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 7px;
}

.player-peer-facts span {
  min-width: 0;
  padding: 7px 8px;
  border-left: 3px solid var(--green);
  background: #ffffff;
}

.player-peer-facts small {
  display: block;
  margin-bottom: 3px;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-peer-facts strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.1;
}

.player-peer-matchup {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 3px 0 0 10px;
  border-left: 3px solid rgba(43, 117, 83, 0.32);
}

.player-peer-matchup-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.player-peer-matchup-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  line-height: 1.25;
}

.peer-compare-link {
  justify-self: start;
  max-width: 100%;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.player-peer-card.is-empty {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.squad-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.squad-insight-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcf8;
}

.mini-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.mini-heading strong {
  font-size: 0.84rem;
  text-transform: uppercase;
}

.mini-heading span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: right;
}

.squad-insight-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.squad-insight-grid li {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.squad-insight-grid li.empty {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.squad-insight-grid small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.comparison-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.comparison-metric-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcf8;
}

.comparison-metric-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.comparison-metric-grid strong {
  font-size: 1.18rem;
}

.percentile-cell {
  display: grid;
  min-width: 116px;
  gap: 5px;
}

.percentile-cell span {
  color: var(--text);
  font-weight: 800;
}

.percentile-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e7dd;
}

.percentile-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.status-good {
  color: var(--green);
  font-weight: 800;
}

.status-warn {
  color: var(--amber);
  font-weight: 800;
}

.status-bad {
  color: var(--red);
  font-weight: 800;
}

@media (max-width: 900px) {
  .topbar {
    display: grid;
    align-items: start;
  }

  .summary-band,
  .chart-grid,
    .league-insights-grid,
    .detail-control-grid,
    .methodology-grid,
    .methodology-detail-grid,
    .methodology-contract-grid,
    .finder-controls,
    .finder-read,
    .finder-method-detail,
    .finder-map-panel,
    .finder-breakdown-panel,
    .squad-map-panel,
  .player-report-actions,
  .comparison-question-actions,
  .comparison-controls,
  .multi-compare-controls,
  .multi-compare-chart-grid {
    grid-template-columns: 1fr;
  }

  .multi-compare-actions {
    justify-content: flex-start;
  }

  .player-report-hero,
  .league-report-hero {
    display: grid;
    align-items: start;
  }

  .comparison-focus-card {
    grid-template-columns: 1fr;
  }

  .comparison-read {
    grid-template-columns: 1fr;
  }

  .direct-matchup {
    grid-template-columns: minmax(0, 1fr);
  }

  .matchup-trait-lens,
  .matchup-verdict,
  .matchup-verdict-cards,
  .matchup-trait-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .matchup-shape {
    grid-template-columns: minmax(0, 1fr);
  }

  .fit-driver-panel,
  .fit-driver-groups {
    grid-template-columns: 1fr;
  }

  .comparison-focus-card .player-link {
    justify-self: start;
  }

  .finder-controls .search-priority-control,
  .comparison-controls .search-priority-control,
  .multi-compare-controls .search-priority-control {
    grid-column: 1 / -1;
  }

  .player-report-facts,
  .league-read-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .spatial-read-cards {
    grid-template-columns: 1fr;
  }

  .finder-breakdown-cards {
    grid-template-columns: 1fr;
  }

  .squad-insight-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 104px;
  }
}

@media (max-width: 560px) {
  main {
    padding-inline: 10px;
  }

  .topbar {
    padding-inline: 14px;
  }

  .product-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow-x: visible;
    padding: 8px 10px;
  }

  .nav-tab {
    width: 100%;
    min-height: 38px;
    padding-inline: 8px;
    white-space: normal;
    line-height: 1.1;
  }

  .comparison-mode-tabs,
  .comparison-screen[data-compare-mode="head-to-head"] .comparison-controls {
    grid-template-columns: 1fr;
  }

  .panel,
  .metric-card {
    padding: 14px;
  }

  .panel-heading {
    display: grid;
  }

  .route-actions {
    justify-content: start;
  }

  .player-rank-table,
  .player-role-table,
  .squad-player-table,
  .player-transfer-table {
    overflow-x: visible;
  }

  .player-rank-table table,
  .player-role-table table,
  .squad-player-table table,
  .player-transfer-table table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .player-rank-table thead,
  .player-role-table thead,
  .squad-player-table thead,
  .player-transfer-table thead {
    display: none;
  }

  .player-rank-table tbody,
  .player-rank-table tr,
  .player-rank-table td,
  .player-role-table tbody,
  .player-role-table tr,
  .player-role-table td,
  .squad-player-table tbody,
  .squad-player-table tr,
  .squad-player-table td,
  .player-transfer-table tbody,
  .player-transfer-table tr,
  .player-transfer-table td {
    display: block;
    width: 100%;
  }

  .player-rank-table tr,
  .player-role-table tr,
  .squad-player-table tr,
  .player-transfer-table tr {
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }

  .player-rank-table td,
  .player-role-table td,
  .squad-player-table td,
  .player-transfer-table td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 0;
    text-align: right;
    white-space: normal;
  }

  .player-rank-table td:first-child,
  .player-role-table td:first-child,
  .squad-player-table td:first-child,
  .player-transfer-table td:first-child {
    display: block;
    padding-bottom: 8px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 800;
  }

  .player-rank-table td::before,
  .player-role-table td::before,
  .squad-player-table td::before,
  .player-transfer-table td::before {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
  }

  .player-rank-table td:first-child::before,
  .player-role-table td:first-child::before,
  .squad-player-table td:first-child::before,
  .player-transfer-table td:first-child::before {
    content: none;
  }

  .player-rank-table td:nth-child(2)::before,
  .player-role-table td:nth-child(2)::before {
    content: "Result";
  }

  .player-role-table td:nth-child(3)::before {
    content: "Unit";
  }

  .player-rank-table td:nth-child(3)::before {
    content: "Place";
  }

  .player-role-table td:nth-child(4)::before {
    content: "Same role";
  }

  .player-rank-table td:nth-child(4)::before {
    content: "Score";
  }

  .player-role-table td:nth-child(5)::before {
    content: "Whole league";
  }

  .squad-player-table td:nth-child(2)::before {
    content: "Pos";
  }

  .squad-player-table td:nth-child(3)::before {
    content: "Age";
  }

  .squad-player-table td:nth-child(4)::before {
    content: "Min";
  }

  .squad-player-table td:nth-child(5)::before {
    content: "Role";
  }

  .squad-player-table td:nth-child(6)::before {
    content: "Fit";
  }

  .squad-player-table td:nth-child(7)::before {
    content: "Top signal";
  }

  .squad-player-table td:nth-child(8)::before {
    content: "Contract";
  }

  .squad-player-table td:nth-child(9)::before {
    content: "Market";
  }

  .player-transfer-table td:nth-child(2)::before {
    content: "Move";
  }

  .player-transfer-table td:nth-child(3)::before {
    content: "Season";
  }

  .player-transfer-table td:nth-child(4)::before {
    content: "Type";
  }

  .player-transfer-table td:nth-child(5)::before {
    content: "Fee";
  }

  .player-transfer-table td:nth-child(6)::before {
    content: "Market";
  }

  .player-finder-table {
    overflow-x: visible;
  }

  .player-finder-table table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .player-finder-table thead {
    display: none;
  }

  .player-finder-table tbody,
  .player-finder-table tr,
  .player-finder-table td {
    display: block;
    width: 100%;
  }

  .player-finder-table tr {
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }

  .player-finder-table td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 0;
    text-align: right;
    white-space: normal;
  }

  .player-finder-table td:first-child {
    display: block;
    padding-bottom: 8px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 800;
  }

  .player-finder-table td::before {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
  }

  .player-finder-table td:first-child::before {
    content: none;
  }

  .player-finder-table td:nth-child(2)::before {
    content: "Age";
  }

  .player-finder-table td:nth-child(3)::before {
    content: "Nation";
  }

  .player-finder-table td:nth-child(4)::before {
    content: "League";
  }

  .player-finder-table td:nth-child(5)::before {
    content: "Club";
  }

  .player-finder-table td:nth-child(6)::before {
    content: "Pos";
  }

  .player-finder-table td:nth-child(7)::before {
    content: "Min";
  }

  .player-finder-table td:nth-child(8)::before {
    content: "Role";
  }

  .player-finder-table td:nth-child(9)::before {
    content: "Fit";
  }

  .player-finder-table td:nth-child(10)::before {
    content: "Score";
  }

  .player-finder-table td:nth-child(11)::before {
    content: "Market";
  }

  .player-finder-table td:nth-child(12)::before {
    content: "Contract";
  }

  .player-finder-table td:nth-child(13)::before {
    content: "Signal";
  }

  .player-peer-card-header {
    grid-template-columns: 1fr;
  }

  .player-peer-card-header {
    display: grid;
    justify-items: start;
  }

  .peer-name {
    text-align: left;
  }
}
}
