*{box-sizing:border-box}
:root{
  font-family:Arial,Helvetica,sans-serif;
  color:#172033;
  background:#f5f7fb;
  --active:#ffffff;
  --reserve:#fff7df;
  --il:#fde8eb;
  --minors:#e8f7ec;
}
body{margin:0;background:#f5f7fb}
.page-shell{width:min(1500px,calc(100% - 28px));margin:0 auto;padding:28px 0 48px}
.site-header,.panel-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
h1,h2,h3,p{margin-top:0}
h1{margin-bottom:5px;font-size:clamp(28px,4vw,42px);line-height:1.05}
h2,h3{margin-bottom:0}
.eyebrow{margin-bottom:6px;color:#68738a;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.subtitle{margin-bottom:0;color:#68738a;font-size:16px}
.button{border:0;border-radius:9px;padding:10px 15px;background:#172033;color:#fff;font-size:13px;font-weight:700;cursor:pointer}
.button:hover{opacity:.92}
.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}
.summary-card,.panel{background:#fff;border:1px solid #e3e8f0;border-radius:12px;box-shadow:0 6px 18px rgba(30,42,68,.045)}
.summary-card{padding:15px 17px}
.summary-card .label{display:block;margin-bottom:6px;color:#7b8495;font-size:10px;font-weight:700;text-transform:uppercase}
.summary-card strong{font-size:16px}
.panel{padding:20px}
.status{margin:0;color:#68738a;font-size:12px}
.view-tabs{display:flex;gap:24px;margin:18px 0 22px;border-bottom:1px solid #e7ebf1}
.view-tab{border:0;border-bottom:3px solid transparent;padding:8px 2px 9px;background:transparent;color:#7b8495;font-weight:700;cursor:pointer}
.view-tab.active{color:#172033;border-bottom-color:#172033}

.roster-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.major-section+.major-section{margin-top:28px}
.roster-columns .major-section+.major-section{margin-top:0}
.section-heading{margin-bottom:9px}
.section-heading h3{font-size:19px}
.count{color:#7b8495;font-size:11px}

.group{margin-top:10px;border:1px solid #e7ebf1;border-radius:9px;overflow:hidden;background:#fff}
.group.status-active{background:var(--active)}
.group.status-reserve{background:var(--reserve);border-color:#f1d98f}
.group.status-il{background:var(--il);border-color:#efbcc4}
.group.status-minors{background:var(--minors);border-color:#b8ddc0}

.group-title{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;border-bottom:1px solid rgba(23,32,51,.08)}
.status-active .group-title{background:#f8f9fc}
.status-reserve .group-title{background:#fff1c5}
.status-il .group-title{background:#fbd8dd}
.status-minors .group-title{background:#d9f0df}
.group-title strong{font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.group-title span{color:#68738a;font-size:10px}

.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;table-layout:auto}
th,td{
  padding:6px 8px;
  border-bottom:1px solid rgba(23,32,51,.065);
  text-align:left;
  white-space:nowrap;
  line-height:1.15
}
tbody tr:last-child td{border-bottom:0}
th{color:#6d7687;font-size:9px;text-transform:uppercase;background:rgba(255,255,255,.18)}
td{font-size:12px}
.player-name{font-weight:700}
.slot{font-weight:700;width:42px}
.eligible{white-space:normal;min-width:100px}
.age-col{width:40px;text-align:center}
.level-col{width:54px}

.status-badge,.level-badge{
  display:inline-block;
  padding:3px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  line-height:1.15
}
.status-active-badge{background:#eef2f8;color:#172033}
.status-reserve-badge{background:#ffe8a8;color:#6f5200}
.status-il-badge{background:#ffcfd6;color:#7b1d2b}
.status-minors-badge{background:#cdebd4;color:#1d6230}
.level-badge{background:#edf1f6;color:#344054}
.level-mlb{background:#dbeafe;color:#1e40af}
.level-aaa{background:#e8f7ec;color:#1d6230}
.level-aa{background:#eef5d9;color:#536d14}
.level-a{background:#fff1c5;color:#6f5200}
.level-rookie{background:#f4e8ff;color:#6b21a8}

.loading-state,.empty-state{padding:25px 10px;color:#7b8495;text-align:center}
.error{color:#a32020}

@media(max-width:1080px){
  .roster-columns{grid-template-columns:1fr}
}
@media(max-width:760px){
  .site-header,.panel-heading{align-items:flex-start;flex-direction:column}
  .summary-grid{grid-template-columns:1fr}
  .button{width:100%}
  .view-tabs{overflow-x:auto;gap:20px}
  .panel{padding:14px}
  th,td{padding:6px 6px}
}

/* ---------- Stats View ---------- */
.stats-view{
  display:flex;
  flex-direction:column;
  gap:28px;
}
.stats-player-type h3{
  margin:0 0 10px;
  font-size:20px;
}
.stats-status-section{
  margin-top:12px;
  border:1px solid #e7ebf1;
  border-radius:10px;
  overflow:hidden;
}
.stats-status-section.status-reserve{border-color:#f1d98f}
.stats-status-section.status-il{border-color:#efbcc4}
.stats-status-section.status-minors{border-color:#b8ddc0}
.stats-status-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 11px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  background:#f8f9fc;
}
.stats-status-section.status-reserve .stats-status-heading{background:#fff1c5}
.stats-status-section.status-il .stats-status-heading{background:#fbd8dd}
.stats-status-section.status-minors .stats-status-heading{background:#d9f0df}
.stats-player{
  padding:10px 12px 11px;
  border-top:1px solid rgba(23,32,51,.07);
}
.stats-player:first-of-type{border-top:0}
.stats-player-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:7px;
}
.stats-player-name{
  font-size:14px;
  font-weight:700;
}
.stats-player-meta{
  color:#667085;
  font-size:11px;
}
.stats-player-meta .level-badge{margin-left:3px}
.stats-table{
  width:100%;
  border-collapse:collapse;
  table-layout:auto;
}
.stats-table th,
.stats-table td{
  padding:5px 7px;
  font-size:11px;
  white-space:nowrap;
  text-align:right;
}
.stats-table th:first-child,
.stats-table td:first-child{
  text-align:left;
  font-weight:700;
}
.stats-table thead th{
  font-size:9px;
  color:#667085;
}
.stats-table .stats-total-row{
  background:rgba(23,32,51,.035);
  font-weight:700;
}
.stats-table .stats-career-row{
  background:rgba(23,32,51,.065);
  font-weight:700;
}
.stats-loading,
.stats-unavailable{
  color:#7b8495;
  font-size:11px;
  padding:5px 0;
}
.stats-refresh-note{
  color:#7b8495;
  font-size:11px;
  margin-bottom:10px;
}

.header-actions{display:flex;gap:10px;align-items:center}
.button-secondary{background:#fff;color:#172033;border:1px solid #d9e0ea;text-decoration:none}
.prospect-controls{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(130px,.6fr));gap:12px;align-items:end;margin:18px 0 16px;padding:12px;background:#f8f9fc;border:1px solid #e7ebf1;border-radius:10px}
.prospect-controls label{display:flex;flex-direction:column;gap:5px;color:#68738a;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.prospect-controls input,.prospect-controls select{width:100%;min-height:38px;padding:8px 10px;border:1px solid #d9e0ea;border-radius:7px;background:#fff;color:#172033;font:inherit;font-size:13px}
.prospect-table-wrap{overflow-x:auto;border:1px solid #e7ebf1;border-radius:9px}
.prospect-table{min-width:900px}
.prospect-table td{padding:8px 10px}
.rank-cell{font-weight:800}
.grades-cell{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}
.rise-up{color:#137a39;font-weight:800}
.rise-down{color:#a33a3a}
.match-warning{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;margin-left:5px;border-radius:50%;background:#fff1c5;color:#795c00;font-size:9px;font-weight:800;vertical-align:middle}
.prospect-note{margin-top:10px;color:#68738a;font-size:11px}
@media(max-width:850px){.header-actions{width:100%;flex-wrap:wrap}.header-actions .button{flex:1;text-align:center}.prospect-controls{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.prospect-controls{grid-template-columns:1fr}}


/* Prospect Finder v2 */
.prospect-section + .prospect-section{margin-top:30px}
.prospect-section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:10px
}
.prospect-section-heading h3{font-size:20px;margin:0}
.my-prospects-section{
  padding-bottom:28px;
  border-bottom:1px solid #e7ebf1
}
.prospect-controls{
  grid-template-columns:minmax(210px,1.4fr) repeat(4,minmax(125px,.7fr))
}
.draft-pill{
  display:inline-block;
  min-width:34px;
  padding:3px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  text-align:center
}
.draft-yes{background:#ffe2e2;color:#8c2323}
.draft-no{background:#edf1f6;color:#667085}
@media(max-width:1100px){
  .prospect-controls{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:760px){
  .prospect-controls{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  .prospect-controls{grid-template-columns:1fr}
}


/* Prospect Finder v3 */
.fv-cell{font-weight:800}
.my-prospect-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.my-prospect-actions label{display:flex;flex-direction:column;gap:4px;color:#68738a;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.my-prospect-actions select{min-height:34px;padding:6px 8px;border:1px solid #d9e0ea;border-radius:7px;background:#fff;color:#172033;font-size:12px}
.prospect-controls{grid-template-columns:minmax(190px,1.3fr) repeat(5,minmax(120px,.65fr))}
@media(max-width:1250px){.prospect-controls{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){
  .prospect-section-heading{align-items:flex-start;flex-direction:column}
  .my-prospect-actions{width:100%}
  .my-prospect-actions label{flex:1}
  .my-prospect-actions select{width:100%}
}


/* Dynamic league bubbles */
.league-switcher-wrap{
  margin:18px 0 20px;
  padding:16px;
  background:#fff;
  border:1px solid #e3e8f0;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(30,42,68,.045)
}
.league-switcher-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px
}
.league-switcher-heading h2{
  margin:0;
  font-size:18px
}
.league-bubbles{
  display:flex;
  flex-wrap:wrap;
  gap:9px
}
.league-bubble{
  appearance:none;
  border:1px solid #dce2eb;
  border-radius:999px;
  background:#f8f9fc;
  color:#172033;
  padding:9px 14px 10px;
  min-width:170px;
  max-width:260px;
  text-align:left;
  cursor:pointer;
  transition:border-color .15s ease,background-color .15s ease,transform .15s ease
}
.league-bubble:hover{
  border-color:#aeb8c8;
  background:#fff
}
.league-bubble.active{
  border-color:#172033;
  background:#172033;
  color:#fff
}
.league-bubble-league,
.league-bubble-team{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.league-bubble-league{
  font-size:11px;
  font-weight:800;
  line-height:1.2
}
.league-bubble-team{
  margin-top:3px;
  font-size:10px;
  opacity:.72;
  line-height:1.2
}
.league-bubble.active .league-bubble-team{opacity:.8}
@media(max-width:760px){
  .league-switcher-heading{align-items:flex-start;flex-direction:column}
  .league-bubble{min-width:calc(50% - 5px);max-width:none;flex:1 1 calc(50% - 5px)}
}
@media(max-width:480px){
  .league-bubble{min-width:100%;flex-basis:100%}
}


/* MLB Pipeline enrichment */
.mlb-rank-cell{font-weight:800;text-align:center}
.player-scout-link{
  border:0;background:transparent;padding:0;color:#172033;font:inherit;font-weight:800;
  cursor:pointer;text-decoration:underline;text-decoration-color:#c8d1df;text-underline-offset:3px
}
.player-scout-link:hover{color:#2457a7}
.scouting-modal{display:none;position:fixed;inset:0;z-index:9999}
.scouting-modal.open{display:block}
.scouting-modal-backdrop{position:absolute;inset:0;background:rgba(17,24,39,.58)}
.scouting-card{
  position:absolute;top:5vh;left:50%;transform:translateX(-50%);
  width:min(820px,92vw);max-height:90vh;overflow:auto;background:#fff;
  border-radius:14px;padding:24px 26px 28px;box-shadow:0 24px 70px rgba(0,0,0,.28)
}
.scouting-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:28px;cursor:pointer;color:#667085}
.scouting-card h2{margin:0 0 4px;font-size:26px}
.scouting-meta{margin:0;color:#667085;font-size:13px}
.scouting-grades{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.scouting-grades div{min-width:88px;padding:8px 10px;border:1px solid #e1e6ee;border-radius:8px;background:#f8f9fc}
.scouting-grades span{display:block;color:#68738a;font-size:9px;font-weight:700;text-transform:uppercase}
.scouting-grades strong{display:block;margin-top:3px;font-size:18px}
.scouting-report-copy{color:#273142;font-size:14px;line-height:1.58}
.scouting-report-copy p{margin:0 0 14px}
@media(max-width:640px){.scouting-card{top:2vh;width:96vw;max-height:96vh;padding:20px 18px 24px}}

.scouting-year{
  margin:16px 0 8px;
  font-size:18px;
  font-weight:800;
  color:#172033;
}

.scouting-signed{
  margin:8px 0 0;
  color:#58657a;
  font-size:12px;
}


/* Shared fixed-column stats tables */
.aligned-stats-table{
  width:100%;
  table-layout:fixed;
  border-collapse:collapse;
}
.aligned-stats-table th,
.aligned-stats-table td{
  padding:7px 9px;
  text-align:right;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.aligned-stats-table th:first-child,
.aligned-stats-table td:first-child{
  text-align:left;
}
.aligned-stats-table .c-level{width:24%}
.aligned-stats-table th{
  font-size:10px;
  color:#667085;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.aligned-stats-table td{
  font-size:12px;
}
.aligned-stats-table .total-row td{font-weight:800;background:#f7f8fa}
.aligned-stats-table .career-row td{font-weight:800;background:#eef0f3}

/* Prospect view tabs */
.prospect-view-tabs{
  display:flex;
  gap:6px;
  margin:14px 0 18px;
  border-bottom:1px solid #e4e8ef;
}
.prospect-view-tab{
  border:0;
  border-bottom:3px solid transparent;
  background:transparent;
  padding:10px 14px;
  font:inherit;
  font-weight:800;
  color:#697386;
  cursor:pointer;
}
.prospect-view-tab.active{
  color:#172033;
  border-bottom-color:#172033;
}
.prospect-view-panel{display:none}
.prospect-view-panel.active{display:block}

.prospect-stats-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.prospect-stat-card{
  border:1px solid #e3e8f0;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}
.prospect-stat-player-head{
  display:grid;
  grid-template-columns:62px minmax(180px,1fr) 72px;
  align-items:center;
  gap:10px;
  padding:11px 14px;
  border-bottom:1px solid #edf0f4;
}
.prospect-rank{font-weight:900;color:#172033}
.prospect-org{color:#667085;font-size:12px;text-align:right}
.prospect-stat-body{padding:0 8px 8px}
.prospect-stats-table{margin:0}
.stats-empty{padding:12px 14px;color:#7a8498}
@media(max-width:720px){
  .prospect-stat-player-head{grid-template-columns:48px 1fr 48px}
  .aligned-stats-table th,.aligned-stats-table td{padding:6px 5px;font-size:10px}
}


/* Team Stats View v13: true baseball-status grouping */
.stats-baseball-group{
  margin:22px 0 32px;
}
.stats-baseball-group-heading{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  padding:0 0 9px;
  margin-bottom:10px;
  border-bottom:2px solid #172033;
}
.stats-baseball-group-heading h3{
  margin:0;
  font-size:22px;
}
.stats-baseball-group-heading span{
  color:#6b7486;
  font-size:12px;
}
.stats-type-block{
  margin:0 0 20px;
}
.stats-type-heading{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  padding:8px 10px;
  background:#f6f7f9;
  border-bottom:1px solid #e3e7ed;
}
.stats-type-heading h4{
  margin:0;
  font-size:15px;
}
.stats-type-heading span{
  color:#717b8e;
  font-size:11px;
}

/* Identical column geometry for every team stats table */
.stats-table.aligned-stats-table{
  width:100%;
  table-layout:fixed !important;
  border-collapse:collapse;
}
.stats-table.aligned-stats-table col.stats-col-level{
  width:19%;
}
.stats-table.aligned-stats-table col.stats-col-num{
  width:9%;
}
.stats-table.aligned-stats-table th,
.stats-table.aligned-stats-table td{
  box-sizing:border-box;
  text-align:center;
  padding:7px 5px;
  font-variant-numeric:tabular-nums;
}
.stats-table.aligned-stats-table th:first-child,
.stats-table.aligned-stats-table td:first-child{
  text-align:left;
  padding-left:10px;
}


/* v14 Team Stats View — actual baseball status, not Fantrax lineup slot */
.stats-baseball-section{
  margin:26px 0 36px;
}
.stats-baseball-section-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:16px;
  padding-bottom:10px;
  border-bottom:2px solid #172033;
  margin-bottom:10px;
}
.stats-baseball-section-head h3{
  margin:0;
  font-size:22px;
}
.stats-baseball-section-head span,
.stats-type-section-head span{
  font-size:11px;
  color:#6d778b;
}
.stats-type-section{
  margin:0 0 22px;
}
.stats-type-section-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  padding:8px 12px;
  background:#f6f7f9;
  border-bottom:1px solid #e2e6ec;
}
.stats-type-section-head h4{
  margin:0;
  font-size:15px;
}

/* Exact same 10-column grid on every batting/pitching stat table */
.stats-table.aligned-stats-table{
  table-layout:fixed !important;
  width:100% !important;
}
.stats-table.aligned-stats-table col.stats-col-level{width:19% !important}
.stats-table.aligned-stats-table col.stats-col-num{width:9% !important}
.stats-table.aligned-stats-table th,
.stats-table.aligned-stats-table td{
  width:auto !important;
  text-align:center !important;
  font-variant-numeric:tabular-nums;
}
.stats-table.aligned-stats-table th:first-child,
.stats-table.aligned-stats-table td:first-child{
  text-align:left !important;
}

/* v15 compact one-row Stats View */
.compact-stats-view{gap:18px}
.compact-baseball-section{margin:10px 0 28px;border:1px solid #e3e8f0;border-radius:11px;overflow:hidden;background:#fff}
.compact-baseball-title,.compact-type-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.compact-baseball-title{padding:11px 14px;background:#172033;color:#fff}
.compact-baseball-title h3,.compact-type-title h4{margin:0}
.compact-baseball-title h3{font-size:17px}.compact-baseball-title span{font-size:10px;opacity:.75}
.compact-type-title{padding:7px 12px;background:#f4f6f9;border-top:1px solid #e3e8f0;border-bottom:1px solid #e3e8f0}
.compact-type-title h4{font-size:12px;text-transform:uppercase;letter-spacing:.05em}.compact-type-title span{font-size:10px;color:#7b8495}
.compact-stats-head,.compact-player-toggle{display:grid;grid-template-columns:minmax(230px,2.35fr) repeat(9,minmax(46px,.55fr)) 24px;align-items:center;width:100%}
.compact-stats-head{padding:5px 10px;color:#6d7687;font-size:9px;font-weight:700;text-transform:uppercase;border-bottom:1px solid #e7ebf1}
.compact-stats-head span:not(:first-child){text-align:center}.compact-stats-head:after{content:""}
.compact-player-row{border-bottom:1px solid #edf0f4}.compact-player-row:last-child{border-bottom:0}
.compact-player-toggle{border:0;background:#fff;padding:6px 10px;cursor:pointer;color:#172033;font:inherit;text-align:left}
.compact-player-toggle:hover{background:#f8fafc}.compact-player-row.open>.compact-player-toggle{background:#f4f7fb}
.compact-player-identity{min-width:0;display:flex;flex-direction:column;gap:2px}.compact-player-identity strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-player-identity small{font-size:9.5px;color:#6b7486;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-stat-grid{display:contents}.compact-stat-grid>span{font-size:11px;text-align:center;font-variant-numeric:tabular-nums}.compact-no-stats{grid-column:2/11!important;text-align:left!important;color:#8a93a3!important;font-size:10px!important}
.compact-chevron{text-align:center;color:#7b8495;font-size:15px;transition:transform .15s}.compact-player-row.open .compact-chevron{transform:rotate(180deg)}
.compact-player-detail{padding:8px 10px 12px 240px;background:#fafbfc;border-top:1px dashed #dfe4eb}.compact-player-detail .stats-table{background:#fff;border:1px solid #e3e8f0;border-radius:7px;overflow:hidden}
@media(max-width:900px){.compact-stats-head,.compact-player-toggle{grid-template-columns:minmax(190px,2fr) repeat(9,48px) 22px;min-width:700px}.compact-type-section{overflow-x:auto}.compact-player-detail{padding-left:10px;min-width:700px}}


/* v16 — Prospect views use the same simple tab navigation as My Team */
.prospect-view-tabs{
  display:flex;
  gap:24px;
  margin:18px 0 22px;
  border-bottom:1px solid #e7ebf1;
}
.prospect-view-tab{
  border:0;
  border-bottom:3px solid transparent;
  padding:8px 2px 9px;
  background:transparent;
  color:#7b8495;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  border-radius:0;
}
.prospect-view-tab.active{
  color:#172033;
  border-bottom-color:#172033;
}
.prospect-view-panel{display:none}
.prospect-view-panel.active{display:block}

/* v16 — compact Prospect Finder stats */
.prospect-compact-wrap{
  width:100%;
  overflow-x:auto;
  border:1px solid #e3e8f0;
  border-radius:10px;
  background:#fff;
}
.prospect-compact-head,
.prospect-compact-toggle{
  display:grid;
  grid-template-columns:minmax(250px,2.8fr) repeat(12,minmax(52px,.55fr)) 26px;
  align-items:center;
  min-width:1050px;
  width:100%;
}
.prospect-compact-head{
  padding:6px 10px;
  color:#6d7687;
  background:#f6f7f9;
  border-bottom:1px solid #e4e8ef;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}
.prospect-compact-head span:not(:first-child){text-align:center}
.prospect-compact-row{border-bottom:1px solid #edf0f4}
.prospect-compact-row:last-child{border-bottom:0}
.prospect-compact-toggle{
  border:0;
  background:#fff;
  padding:6px 10px;
  color:#172033;
  font:inherit;
  cursor:pointer;
  text-align:left;
}
.prospect-compact-toggle:hover{background:#f8fafc}
.prospect-compact-row.open>.prospect-compact-toggle{background:#f4f7fb}
.prospect-compact-identity{
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:2px;
}
.prospect-compact-identity .player-scout-link,
.prospect-compact-identity strong{
  width:max-content;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
}
.prospect-compact-identity small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#6b7486;
  font-size:9.5px;
}
.prospect-compact-stat-grid{display:contents}
.prospect-compact-stat-grid>span{
  text-align:center;
  font-size:11px;
  font-variant-numeric:tabular-nums;
}
.prospect-compact-no-stats{
  grid-column:2/14!important;
  text-align:left!important;
  color:#8a93a3!important;
  font-size:10px!important;
}
.prospect-compact-chevron{
  text-align:center;
  color:#7b8495;
  font-size:15px;
  transition:transform .15s;
}
.prospect-compact-row.open .prospect-compact-chevron{transform:rotate(180deg)}
.prospect-compact-detail{
  padding:10px 12px 12px 250px;
  background:#fafbfc;
  border-top:1px dashed #dfe4eb;
  overflow-x:auto;
}
.prospect-detail-table{
  width:100%;
  min-width:900px;
  border-collapse:collapse;
  table-layout:fixed;
  background:#fff;
  border:1px solid #e3e8f0;
}
.prospect-detail-table th,
.prospect-detail-table td{
  padding:6px 7px;
  text-align:center;
  white-space:nowrap;
  font-size:10px;
  font-variant-numeric:tabular-nums;
}
.prospect-detail-table th:first-child,
.prospect-detail-table td:first-child{text-align:left}
.prospect-detail-table th{
  color:#667085;
  font-size:9px;
  text-transform:uppercase;
}
.prospect-detail-table .total-row{font-weight:800;background:#f7f8fa}
.prospect-detail-table .career-row{font-weight:800;background:#eef0f3}
#myProspectBatterStats,
#myProspectPitcherStats{margin-bottom:22px}
@media(max-width:900px){
  .prospect-compact-detail{padding-left:10px}
}


/* v17 — hard grid alignment fix for compact prospect stat rows */
.prospect-compact-head,
.prospect-compact-toggle{
  display:grid !important;
  grid-template-columns:minmax(250px,2.8fr) repeat(12,minmax(52px,.55fr)) 26px !important;
  column-gap:0 !important;
  align-items:center;
}

.prospect-compact-toggle > .prospect-compact-identity{
  grid-column:1;
}

.prospect-compact-toggle > span:not(.prospect-compact-identity):not(.prospect-compact-chevron):not(.prospect-compact-no-stats){
  text-align:center;
  font-size:11px;
  font-variant-numeric:tabular-nums;
}

.prospect-compact-toggle > .prospect-compact-no-stats{
  grid-column:2 / 14;
  text-align:left;
  color:#8a93a3;
  font-size:10px;
}

.prospect-compact-toggle > .prospect-compact-chevron{
  grid-column:14;
  text-align:center;
}

/* obsolete wrapper from v16 is intentionally disabled */
.prospect-compact-stat-grid{
  display:contents !important;
}


/* v18 — valid compact grid: player name button no longer breaks the row */
.prospect-compact-toggle{
  display:grid !important;
  grid-template-columns:minmax(280px,3.1fr) repeat(12,minmax(58px,.62fr)) 28px !important;
  align-items:center !important;
  width:100% !important;
  min-width:1120px !important;
  padding:6px 10px !important;
  background:#fff;
  cursor:pointer;
}

.prospect-compact-head{
  display:grid !important;
  grid-template-columns:minmax(280px,3.1fr) repeat(12,minmax(58px,.62fr)) 28px !important;
  width:100% !important;
  min-width:1120px !important;
}

.prospect-compact-toggle > .prospect-compact-identity{grid-column:1}
.prospect-compact-toggle > .prospect-compact-chevron{grid-column:14}

/* Every plain stat span after the identity becomes its own grid cell */
.prospect-compact-toggle > span:not(.prospect-compact-identity):not(.prospect-compact-chevron):not(.prospect-compact-no-stats){
  text-align:center !important;
  font-size:11px !important;
  line-height:1.1;
  font-variant-numeric:tabular-nums;
}

.prospect-compact-toggle > .prospect-compact-no-stats{
  grid-column:2 / 14 !important;
  text-align:left !important;
  color:#8a93a3 !important;
  font-size:10px !important;
}

.prospect-compact-row.open > .prospect-compact-toggle{
  background:#f4f7fb;
}

.prospect-compact-detail{
  padding:10px 12px 12px 290px !important;
  background:#fafbfc;
  border-top:1px solid #e3e8f0;
}

.prospect-detail-table{
  width:100%;
  min-width:920px;
  table-layout:fixed;
  border-collapse:collapse;
  background:#fff;
}
.prospect-detail-table th,
.prospect-detail-table td{
  text-align:center;
  padding:6px 6px;
  white-space:nowrap;
  font-size:10px;
  font-variant-numeric:tabular-nums;
}
.prospect-detail-table th:first-child,
.prospect-detail-table td:first-child{
  text-align:left;
  width:110px;
}
.prospect-detail-table .total-row td{
  font-weight:800;
  background:#f7f8fa;
}
.prospect-detail-table .career-row td{
  font-weight:800;
  background:#eef0f3;
}

@media(max-width:900px){
  .prospect-compact-detail{padding-left:10px !important}
}


/* v19 — compact stats controls */
.compact-stats-controls{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
  margin:0 0 10px;
}
.compact-stats-controls label{
  display:flex;
  flex-direction:column;
  gap:3px;
  color:#68738a;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.compact-stats-controls select{
  min-height:32px;
  padding:5px 8px;
  border:1px solid #d9e0ea;
  border-radius:6px;
  background:#fff;
  color:#172033;
  font-size:11px;
}

/* RP rank leads the player detail line and is visually distinct */
.prospect-compact-identity small{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.compact-rp-rank{
  display:inline-block;
  flex:0 0 auto;
  padding:2px 6px;
  border-radius:999px;
  background:#172033;
  color:#fff;
  font-size:9px;
  font-weight:800;
  line-height:1.2;
}
.compact-player-meta{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#6b7486;
  font-size:9.5px;
}
