@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

body { background: #f3f5ef; }
.site-header { height: 80px; max-width: 1280px; margin: auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.5px; text-decoration: none; }
.brand-accent, .nav-menu-button span, .dropdown-kicker { color: var(--accent); }
.brand-mark { display: block; flex: 0 0 24px; width: 24px; height: 24px; background: url('../../assets/logo-mark.svg') center/contain no-repeat; }
.brand-mark span { display: none; }
:root.dark .brand-mark { background-image: url('../../assets/logo-mark-dark.svg'); }
.main-nav { display: flex; align-items: center; gap: 31px; margin-left: auto; margin-right: 30px; font-size: 13px; font-weight: 600; }
.nav-menu { position: relative; }.nav-menu-button { border: 0; background: none; padding: 28px 0; cursor: pointer; font-weight: 600; }.nav-menu-button span { font-size: 16px; margin-left: 4px; }
.dropdown { display: none; position: absolute; top: 65px; right: -18px; width: 225px; padding: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 30px #1723191a; }.dropdown.open { display: block; }
.dropdown-kicker { margin: 0 0 12px; font: 10px 'DM Mono', monospace; letter-spacing: 1.1px; text-transform: uppercase; }.dropdown-title { margin: 0 0 16px; font: 15px/1.25 'Space Grotesk', sans-serif; }.coming-soon { display: block; width: max-content; margin-top: 8px; padding: 6px 8px; background: var(--accent-soft); color: var(--accent-dark); font: 9px 'DM Mono', monospace; letter-spacing: 1.1px; text-transform: uppercase; text-decoration: none; }
.menu-toggle { display: none; font-size: 19px; }
.theme-toggle { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: none; color: inherit; cursor: pointer; font-size: 17px; }
.theme-toggle .moon { display: none; }
.dark .theme-toggle .sun { display: none; }
.dark .theme-toggle .moon { display: block; }

:root {
  color-scheme: light;
  --ink: #17251f;
  --muted: #68756f;
  --paper: #f7f5ef;
  --surface: #fffdf8;
  --line: #d9ded6;
  --accent: #d75735;
  --accent-dark: #9b351f;
  --accent-soft: #f4d9cf;
  --wash: #e9eee3;
  --control: #e8ece5;
  --track: #dfe5dc;
  --better: #dcefdc;
  --worse: #f5dddd;
  --tied: #eef0eb;
  --shadow: 0 16px 40px rgba(35, 49, 42, 0.09);
  font-family: 'DM Sans', sans-serif;
}
:root { --ink: #14201a; --muted: #68746d; --paper: #f3f5ef; --surface: #fff; --line: #d8ded7; --accent: #16804e; --accent-dark: #0c5b38; --accent-soft: #dcecdf; --wash: #dcecdf; --control: #e8eee9; --track: #dfe5dc; --better: #dcefdc; --worse: #f5dddd; --tied: #eef0eb; --shadow: 0 16px 40px rgba(35, 49, 42, 0.09); color-scheme: light; }
:root.dark { --ink: #eef4ed; --muted: #9ca9a0; --paper: #111714; --surface: #19221c; --line: #334139; --accent: #6bd19a; --accent-dark: #90e0ad; --accent-soft: #213c2b; --wash: #213c2b; --control: #223027; --track: #334139; --better: #244b34; --worse: #553642; --tied: #29362e; --shadow: 0 16px 40px rgba(0, 0, 0, 0.28); color-scheme: dark; }

* { box-sizing: border-box; }
body, button, input, select { font-family: 'DM Sans', sans-serif; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 90% 0%, var(--wash), transparent 38%), var(--paper); color: var(--ink); }
button { font: inherit; cursor: pointer; }
.app-shell { width: min(100% - 32px, 620px); margin: 0 auto; padding: 28px 0 48px; }
.app-header, .progress-row, .list-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.header-actions { display: flex; gap: 14px; }
.header-actions .main-menu-button { min-width: 150px; padding: 18px 24px; border: 2px solid var(--accent); border-radius: 7px; background: var(--accent-soft); font-family: Arial, sans-serif; font-size: 1.2rem; font-weight: 700; }
.eyebrow { margin: 0 0 7px; color: var(--accent-dark); font-family: Arial, sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: 'Space Grotesk', sans-serif; }
h1 { max-width: 300px; margin-bottom: 28px; font-size: clamp(2.2rem, 11vw, 4rem); line-height: 0.94; letter-spacing: -0.04em; }
h2 { margin-bottom: 0; font-size: 1.55rem; line-height: 1.05; }
.text-button { border: 0; padding: 4px 0; background: transparent; color: var(--accent-dark); font-family: Arial, sans-serif; font-size: 0.78rem; font-weight: 700; }
.panel, .comparison, .rankings-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.setup-panel { padding: 22px; }
.setup-panel .secondary-button { margin-top: 10px; }
.field-group + .field-group { margin-top: 22px; }
.field-label { display: block; margin-bottom: 9px; font-family: Arial, sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 7px; background: var(--control); }
.segment, .position-button { border: 0; border-radius: 5px; padding: 11px 8px; background: transparent; color: var(--muted); font-family: Arial, sans-serif; font-size: 0.9rem; font-weight: 700; }
.segment.is-selected, .position-button.is-selected { border-color: var(--accent); background: var(--accent); color: white; box-shadow: 0 0 0 2px var(--accent-soft); }
.position-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.position-button { border: 1px solid var(--line); }
.primary-button, .secondary-button { width: 100%; border-radius: 6px; padding: 14px 16px; font-family: Arial, sans-serif; font-size: 0.86rem; font-weight: 700; }
.primary-button { margin-top: 25px; border: 1px solid var(--accent); background: var(--accent); color: white; }
.secondary-button { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.status-message { min-height: 1em; margin: 14px 0 0; color: var(--muted); font-family: Arial, sans-serif; font-size: 0.78rem; }
.import-status { margin-top: 10px; }
.import-status[data-status="error"] { color: var(--accent-dark); }
.import-status[data-status="success"] { color: var(--accent-dark); }
.is-hidden { display: none !important; }
.progress-row { align-items: end; margin: 18px 0 12px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 4px; background: var(--track); }
.progress-track span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 250ms ease; }
.player-search { position: relative; margin-top: 14px; }
.player-search input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 13px 14px; background: var(--surface); color: var(--ink); font-family: Arial, sans-serif; font-size: 0.9rem; }
.player-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-results { position: absolute; z-index: 3; top: calc(100% + 5px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); }
.search-result { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid var(--line); padding: 11px 13px; background: transparent; color: var(--ink); text-align: left; }
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus { background: var(--accent-soft); }
.search-result span { font-weight: 700; }
.search-result small, .search-empty { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.72rem; }
.search-empty { margin: 0; padding: 12px 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
dialog { width: min(100% - 32px, 430px); border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10, 20, 16, 0.42); }
dialog h2 { margin-bottom: 20px; }
.export-option { display: flex; align-items: center; gap: 9px; font-family: Arial, sans-serif; font-size: 0.86rem; }
.export-option input { width: 18px; height: 18px; accent-color: var(--accent); }
.export-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 24px; }
.export-actions .primary-button { margin-top: 0; }
.comparison, .rankings-panel { margin-top: 18px; padding: 18px; }
.comparison-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-bottom: 18px; }
.comparison-toolbar .secondary-button { width: auto; padding: 8px 10px; font-size: 0.72rem; }
.comparison-toolbar .secondary-button:first-child { justify-self: start; }
.comparison-toolbar .secondary-button:last-child { justify-self: end; }
.question { margin-bottom: 16px; color: var(--muted); font-family: Arial, sans-serif; font-size: 0.82rem; }
.player-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 10px; }
.player-card { display: flex; width: 100%; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; padding: 17px; background: var(--surface); color: var(--ink); text-align: left; }
.player-card:active { transform: translateY(1px); border-color: var(--accent); }
.player-name { display: block; margin-bottom: 5px; font-size: 1.35rem; font-weight: 700; }
.player-image { display: block; width: 100%; height: 160px; margin: 13px 0; border-radius: 5px; object-fit: contain; object-position: center; background: var(--control); }
.player-meta { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.75rem; }
.stats-table { width: 100%; margin-top: 13px; border-collapse: separate; border-spacing: 0 4px; table-layout: fixed; font-family: Arial, sans-serif; font-size: 0.72rem; }
.stats-table tr { height: 34px; }
.stats-table th, .stats-table td { height: 34px; padding: 7px 8px; text-align: left; vertical-align: middle; }
.stats-table th { width: 65%; color: var(--muted); font-weight: 400; }
.stats-table th { overflow-wrap: anywhere; line-height: 1.2; }
.stats-table td { border-radius: 4px; color: var(--ink); font-weight: 700; text-align: right; }
.stats-table.is-reversed th { text-align: right; }
.stats-table.is-reversed td { text-align: left; }
.info-icon { position: relative; z-index: 10; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-left: 4px; border: 1px solid currentColor; border-radius: 50%; color: var(--accent-dark); font-family: Georgia, serif; font-size: 0.62rem; font-weight: 700; line-height: 1; cursor: help; }
.stats-table:not(.is-reversed) .info-icon { margin: 0 8px 0 0; }
.info-icon:hover, .info-icon:focus { z-index: 30; }
.stat-tooltip { position: absolute; z-index: 100; bottom: calc(100% + 7px); left: 50%; width: 190px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--ink); color: var(--paper); font-family: Arial, sans-serif; font-size: 0.68rem; font-weight: 400; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity 120ms ease, transform 120ms ease; }
.info-icon:hover .stat-tooltip, .info-icon:focus .stat-tooltip { opacity: 1; transform: translate(-50%, 0); }
.stats-table td.is-better { background: var(--better); }
.stats-table td.is-worse { background: var(--worse); }
.stats-table td.is-tied { background: var(--tied); }
.ranking-reset-button { margin: 0 0 10px; }
.export-button { margin: 0 0 10px; }
.unranked-toggle { margin-bottom: 8px; }
.ranking-key { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: var(--muted); font-family: Arial, sans-serif; font-size: 0.7rem; }
.ranked-key-swatch { width: 11px; height: 11px; border-radius: 3px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.list-heading { align-items: center; margin-bottom: 14px; }
.all-rankings-panel { margin-top: 18px; padding: 18px; }
.rankings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ranking-column h3 { margin: 0 0 8px; font-family: Arial, sans-serif; font-size: 0.8rem; }
.ranking-column .ranking-list { padding-left: 22px; }
.ranking-column .ranking-list li { padding: 8px 0 8px 3px; font-size: 0.75rem; }
.ranking-column .rank-meta { font-size: 0.65rem; }
.ranking-list { margin: 0; padding-left: 30px; font-family: Arial, sans-serif; }
.ranking-list li { padding: 11px 0 11px 4px; border-bottom: 1px solid var(--line); }
.ranking-list li:last-child { border-bottom: 0; }
.ranking-list li.is-ranked { border-left: 4px solid var(--accent); padding-left: 8px; background: var(--accent-soft); }
.ranking-list li { overflow: hidden; }
.rank-entry { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.rank-entry > span:first-child { min-width: 0; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.row-actions { flex: 0 0 auto; }
.row-action { border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; background: transparent; color: var(--accent-dark); font-family: Arial, sans-serif; font-size: 0.62rem; font-weight: 700; }
.row-action:disabled { opacity: 0.35; cursor: default; }
.rank-name { font-weight: 700; }
.rank-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 0.72rem; }
@media (max-width: 800px) {
  .site-header { width: 100%; height: 68px; padding: 0 20px; }
  .main-nav { display: none; position: absolute; top: 68px; right: 0; left: 0; z-index: 10; margin: 0; padding: 10px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.open { display: flex !important; }
  .nav-menu-button { width: 100%; padding: 14px 0; text-align: left; }
  .dropdown { position: static; width: 100%; margin-bottom: 4px; box-shadow: none; }
  .menu-toggle { display: grid !important; margin-left: 8px; }
  .theme-toggle { display: grid; margin-left: auto; }
  .app-shell { width: min(100% - 24px, 620px); padding: 20px 0 32px; }
  .app-header { gap: 10px; }
  h1 { margin-bottom: 20px; font-size: clamp(2rem, 12vw, 3rem); }
  .header-actions .main-menu-button { min-width: 0; padding: 10px 12px; font-size: 0.85rem; }
  .comparison, .rankings-panel, .all-rankings-panel { padding: 12px; }
  .comparison-toolbar { display: flex; flex-wrap: wrap; gap: 7px; }
  .comparison-toolbar .secondary-button { flex: 1 1 calc(50% - 7px); min-width: 0; }
  .comparison-toolbar .secondary-button:nth-child(2) { order: 3; flex-basis: 100%; }
  .comparison-toolbar .secondary-button:first-child,
  .comparison-toolbar .secondary-button:last-child { justify-self: auto; }
  .player-card { min-width: 0; padding: 11px; }
  .player-name { min-height: 2.7em; margin-bottom: 3px; font-size: 1.05rem; line-height: 1.28; }
  .player-image { height: auto; aspect-ratio: 1.35; margin: 10px 0; }
  .player-meta { font-size: 0.68rem; }
  .stats-table { margin-top: 9px; font-size: 0.64rem; }
  .stats-table th, .stats-table td { height: auto; min-height: 30px; padding: 6px 4px; }
  .stats-table th { width: 68%; }
  .stats-table td { width: 32%; }
  .info-icon { flex: 0 0 14px; }
  .stats-table:not(.is-reversed) .info-icon { margin-right: 4px; }
  .stat-tooltip { right: 0; left: auto; width: min(190px, 70vw); transform: translateY(4px); }
  .info-icon:hover .stat-tooltip, .info-icon:focus .stat-tooltip { transform: translateY(0); }
  .rankings-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the ranker functional while using the site's editorial visual system. */
:root {
  --ink: #14201a;
  --muted: #68746d;
  --paper: #f3f5ef;
  --surface: #fff;
  --line: #d8ded7;
  --accent: #16804e;
  --accent-dark: #0c5b38;
  --accent-soft: #dcecdf;
  --wash: #dcecdf;
  --control: #fff;
  --track: #d8ded7;
  --shadow: none;
  color-scheme: light;
}
:root.dark {
  --ink: #eef4ed;
  --muted: #9ca9a0;
  --paper: #111714;
  --surface: #19221c;
  --line: #334139;
  --accent: #6bd19a;
  --accent-dark: #90e0ad;
  --accent-soft: #213c2b;
  --wash: #213c2b;
  --control: #19221c;
  --track: #334139;
  color-scheme: dark;
}

body {
  background: var(--paper);
  color: var(--ink);
  transition: background .25s, color .25s;
}
.site-header {
  max-width: 1280px;
  border-bottom-color: var(--line);
}
.brand { font-family: var(--display); }
.brand-accent, .nav-menu-button span, .dropdown-kicker { color: var(--green); }
.app-shell {
  width: min(100% - 128px, 1280px);
  padding: 92px 64px 120px;
}
.app-header {
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin-bottom: 23px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.1px;
}
h1, h2, h3 { font-family: var(--display); }
h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(54px, 7vw, 92px);
  line-height: .99;
  letter-spacing: -4px;
}
h2 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -2px; }
.text-button {
  color: var(--green-dark);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}
.header-actions .main-menu-button {
  min-width: 0;
  padding: 13px 17px;
  border: 0;
  border-radius: 0;
  background: var(--green);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
}
.panel, .comparison, .rankings-panel {
  border: 0;
  border-top: 2px solid var(--green);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.setup-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 180px;
  align-items: end;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.field-group + .field-group { margin-top: 0; }
.field-label {
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
}
.segmented-control { border: 1px solid var(--line); border-radius: 0; }
.segment, .position-button {
  border-radius: 0;
  padding: 9px 13px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
}
.segment.is-selected, .position-button.is-selected {
  border-color: var(--green);
  background: var(--green);
  box-shadow: none;
}
.position-grid { gap: 0; }
.position-button { border-radius: 0; }
.primary-button, .secondary-button {
  border-radius: 0;
  padding: 13px 17px;
  font-family: var(--sans);
  font-size: 13px;
}
.primary-button {
  margin-top: 0;
  border-color: var(--green);
  background: var(--green);
}
.secondary-button { background: var(--surface); }
.status-message { font-family: var(--mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
.setup-panel .status-message { grid-column: 1 / -1; margin-top: 0; }
.progress-row { margin: 54px 0 12px; }
.progress-track { border-radius: 0; }
.player-search input { border-radius: 0; font-family: var(--sans); }
.comparison, .rankings-panel, .all-rankings-panel { margin-top: 48px; padding: 24px 0 0; }
.comparison-toolbar { margin-bottom: 24px; }
.comparison-toolbar .secondary-button { border-radius: 0; }
.player-card { border-radius: 0; padding: 20px; }
.player-image { border-radius: 0; }
.ranking-list { font-family: var(--sans); }
.ranking-list li.is-ranked { border-left: 2px solid var(--green); background: var(--accent-soft); }
.row-action { border-radius: 0; font-family: var(--mono); }
.ranking-column h3 { font-family: var(--display); font-size: 22px; }
.ranking-column .ranking-list { padding-left: 22px; }
dialog { border-radius: 0; box-shadow: none; }

@media (max-width: 800px) {
  .app-shell { width: 100%; padding: 70px 20px 68px; }
  .app-header { align-items: flex-start; }
  h1 { font-size: 52px; letter-spacing: -2px; }
  .setup-panel { grid-template-columns: 1fr; gap: 22px; }
  .setup-panel .primary-button { margin-top: 4px; }
  .setup-panel .status-message { grid-column: auto; }
  .comparison, .rankings-panel, .all-rankings-panel { padding-top: 18px; }
}

.player-choices {
  display: block;
  min-width: 0;
}
.comparison-sticky-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(20, 32, 26, .08);
}
.comparison-heads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 -1px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.comparison-player-head {
  min-width: 0;
  position: relative;
  padding: 16px 14px 13px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.comparison-player-head::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--line); content: ""; }
.comparison-player-head.candidate-head::before { background: var(--accent); }
.comparison-player-head.current-head::before { background: var(--ink); opacity: .35; }
.comparison-player-head:last-child { border-right: 0; }
.comparison-player-identity {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 11px;
}
.comparison-player-identity img {
  display: block;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: var(--control);
}
.comparison-player-identity > div { min-width: 0; }
.comparison-player-label {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.comparison-player-identity h3 {
  overflow-wrap: anywhere;
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.08;
}
.comparison-player-name {
  display: flex;
  height: 2.16em;
  flex-direction: column;
  overflow: hidden;
}
.comparison-player-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comparison-player-identity p {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.head-signals,
.comparison-page-heading small,
.report-metric-cell small,
.outlook-signal small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.2;
}
.head-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 8px;
}
.head-signals span { white-space: nowrap; }
.head-signals strong { margin-left: 2px; font-size: 10px; }
.choice-action {
  width: 100%;
  margin-top: 12px;
  border: 0;
  padding: 10px 5px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
}
.choice-action:active { transform: translateY(1px); }
.grade-Aplus, .grade-A { --grade-color: #0b7a4b; }
.grade-Aminus, .grade-Bplus, .grade-B { --grade-color: #3f795b; }
.grade-Bminus, .grade-Cplus, .grade-C { --grade-color: #98731d; }
.grade-Cminus, .grade-Dplus, .grade-D, .grade-Dminus, .grade-F { --grade-color: #b04c34; }
.grade-na { --grade-color: var(--muted); }
.head-signals strong,
.metric-grade,
.outlook-signal > strong { color: var(--grade-color, var(--ink)); }
.report-page .metric-grade { color: var(--ink); }
.comparison-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  scrollbar-width: none;
}
.comparison-tabs::-webkit-scrollbar { display: none; }
.comparison-tab {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 11px 12px 9px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.comparison-tab.is-selected {
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.comparison-viewport {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.comparison-viewport::-webkit-scrollbar { display: none; }
.comparison-pages { display: flex; width: 100%; align-items: flex-start; }
.comparison-page {
  flex: 0 0 100%;
  min-width: 0;
  padding: 18px 0 8px;
  scroll-snap-align: start;
}
.comparison-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.comparison-page-heading .eyebrow { margin-bottom: 5px; }
.comparison-page-heading h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 23px;
  line-height: 1;
}
.comparison-page-heading small { text-align: right; }
.comparison-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr);
  border-top: 1px solid var(--line);
}
.comparison-row:last-child { border-bottom: 1px solid var(--line); }
.comparison-label {
  min-width: 0;
  padding: 11px 7px 11px 0;
}
.comparison-label strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.2;
}
.comparison-label small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.25;
}
.report-section-label {
  margin-top: 18px;
  border-top: 2px solid var(--line);
  padding: 12px 0 6px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.report-section-label + .comparison-row { border-top: 0; }
.report-page .comparison-label small,
.report-page .report-metric-cell small { font-size: 10px; }
.comparison-value {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  border-left: 1px solid var(--line);
  padding: 11px 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}
.comparison-value.is-better,
.report-metric-cell.is-better,
.outlook-signal.is-better { background: var(--better); color: var(--accent-dark); }
.comparison-value.is-worse,
.report-metric-cell.is-worse,
.outlook-signal.is-worse { background: var(--worse); }
.comparison-value.is-tied,
.report-metric-cell.is-tied,
.outlook-signal.is-tied { background: var(--tied); }
.comparison-value.is-better,
.report-metric-cell.is-better,
.outlook-signal.is-better { box-shadow: inset 3px 0 0 var(--accent); }
.comparison-value.is-missing,
.report-metric-cell.is-missing,
.outlook-signal.is-missing { color: var(--muted); background: transparent; }
.report-metric-cell {
  display: flex;
  min-width: 0;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  border-left: 1px solid var(--line);
  padding: 8px 5px;
  text-align: right;
}
.report-metric-main {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.report-metric-main > strong {
  order: 2;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  text-align: right;
}
.report-metric-main .metric-grade { order: 1; text-align: left; }
.metric-grade {
  display: inline-block;
  margin-top: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.report-metric-cell small {
  align-self: flex-end;
  margin-top: 6px;
}
.outlook-signal {
  display: flex;
  min-width: 0;
  min-height: 92px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  border-left: 1px solid var(--line);
  padding: 9px 5px;
  text-align: right;
}
.outlook-signal > strong {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}
.outlook-signal small { margin-top: 4px; }
.outlook-signal p {
  max-width: 100%;
  margin: 7px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.signal-row .comparison-label { align-self: center; }
.ranker-depth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ranker-depth-grid .depth-chart-card { border-color: var(--line); }
.ranker-depth-grid .depth-chart-row.is-selected { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.ranker-depth-grid .depth-chart-row img,
.ranker-depth-grid .depth-chart-image-placeholder { background: var(--control); color: var(--accent-dark); }
.weekly-chart-shell { border: 1px solid var(--line); background: var(--surface); }
.weekly-chart { min-height: 330px; padding: 14px 8px 5px; overflow-x: auto; }
.weekly-chart svg { display: block; width: 100%; min-width: 560px; height: 300px; }
.weekly-grid { stroke: var(--line); stroke-width: 1; }
.weekly-zero { stroke: var(--muted); stroke-dasharray: 3 4; stroke-width: 1; opacity: .65; }
.weekly-axis { fill: var(--muted); font: 10px var(--mono); }
.weekly-label { font-size: 9px; }
.weekly-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.weekly-point { stroke: var(--surface); stroke-width: 1.5; }
.weekly-missed { fill: var(--surface); stroke-width: 1.5; stroke-dasharray: 2 1; }
.weekly-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid var(--line); padding: 12px 14px 14px; }
.weekly-legend-item { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: 9px var(--mono); }
.weekly-legend-item i { display: inline-block; width: 20px; height: 3px; }
.weekly-missing-key i { width: 9px; height: 9px; border: 1px solid var(--muted); border-radius: 50%; background: transparent; }
.weekly-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.weekly-summary { border-top: 2px solid var(--accent); padding-top: 10px; }
.weekly-summary strong, .weekly-summary span { display: block; }
.weekly-summary strong { font: 16px var(--display); }
.weekly-summary span { margin-top: 4px; color: var(--muted); font: 9px var(--mono); }
.comparison-empty { margin: 60px 0; color: var(--muted); font: 10px var(--mono); text-align: center; }
@media (max-width: 800px) {
  .comparison-heads { margin: 0 -1px; }
  .comparison-player-head { padding: 13px 8px 10px; }
  .comparison-player-identity { gap: 7px; }
  .comparison-player-identity img { flex-basis: 56px; width: 56px; height: 56px; }
  .comparison-player-identity h3 { font-size: 15px; }
  .comparison-player-identity p { margin-top: 5px; font-size: 9px; }
  .comparison-player-label { font-size: 8px; }
  .head-signals, .comparison-page-heading small, .report-metric-cell small, .outlook-signal small { font-size: 8px; }
  .head-signals { gap: 4px 6px; }
  .head-signals strong { font-size: 9px; }
  .choice-action { margin-top: 10px; font-size: 10px; }
  .comparison-tab { padding-right: 10px; padding-left: 10px; font-size: 9px; }
  .comparison-page { padding-top: 15px; }
  .report-section-label { margin-top: 14px; padding-top: 10px; padding-bottom: 5px; font-size: 8px; }
  .comparison-page-heading h3 { font-size: 20px; }
  .comparison-row { grid-template-columns: minmax(0, 1.18fr) minmax(0, .91fr) minmax(0, .91fr); }
  .comparison-label { padding-right: 5px; }
  .comparison-label strong { font-size: 10px; }
  .comparison-label small { font-size: 9px; }
  .comparison-value { padding-right: 4px; padding-left: 4px; font-size: 10px; }
  .outlook-signal > strong { font-size: 20px; }
  .report-metric-cell { min-height: 68px; padding-right: 4px; padding-left: 4px; }
  .report-metric-main { gap: 4px; }
  .report-metric-main > strong { font-size: 11px; }
  .metric-grade { font-size: 18px; }
  .report-page .report-metric-cell small { font-size: 9px; }
  .outlook-signal { min-height: 115px; padding-right: 4px; padding-left: 4px; }
  .outlook-signal p { font-size: 8px; }
  .ranker-depth-grid { grid-template-columns: minmax(0, 1fr); }
  .weekly-summary-grid { grid-template-columns: minmax(0, 1fr); }
}