/* Best Ball Portfolio Tool - Standalone CSS */
/* Light theme with #F5F7FA background */

:root {
  --bbpt-bg: #F5F7FA;
  --bbpt-card: #ffffff;
  --bbpt-card-hover: #f0f2f5;
  --bbpt-border: #e2e5ea;
  --bbpt-input: #ffffff;
  --bbpt-text: #1a1d23;
  --bbpt-text-muted: #6b7280;
  --bbpt-text-dim: #9ca3af;
  --bbpt-primary: #2563eb;
  --bbpt-primary-fg: #ffffff;
  --bbpt-accent: #16a34a;
  --bbpt-accent-fg: #ffffff;
  --bbpt-secondary: #eef0f4;
  --bbpt-secondary-fg: #4b5563;
  --bbpt-destructive: #dc2626;
  --bbpt-amber: #d97706;
  --bbpt-emerald: #16a34a;
  --bbpt-blue: #2563eb;
  --bbpt-purple: #7c3aed;
  --bbpt-red: #dc2626;
  --bbpt-radius: 8px;
  /* Position colors */
  --bbpt-pos-p: #d97706;
  --bbpt-pos-if: #2563eb;
  --bbpt-pos-of: #16a34a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }

body.bbpt-body {
  background: var(--bbpt-bg);
  color: var(--bbpt-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  font-size: 14px;
}

#bestball-app {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
  font-size: 15px;
  font-weight: 450;
}

/* ── Header ────────────────────────────────── */
.bbpt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--bbpt-primary), #4f46e5);
  border-radius: var(--bbpt-radius);
  box-shadow: 0 2px 8px rgba(37,99,235,0.18), 0 1px 3px rgba(0,0,0,0.06);
}
.bbpt-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bbpt-header .bbpt-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0;
}
.bbpt-header .bbpt-logo-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.bbpt-header-right .bbpt-select {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  backdrop-filter: blur(4px);
}
.bbpt-header-right .bbpt-select:focus {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 1px;
}
.bbpt-sport-select {
  background: var(--bbpt-secondary);
  border: 1px solid var(--bbpt-border);
  color: var(--bbpt-text);
  padding: 6px 12px;
  border-radius: var(--bbpt-radius);
  font-size: 13px;
  cursor: pointer;
}
.bbpt-sport-select:focus { outline: 2px solid var(--bbpt-primary); outline-offset: 1px; }

/* ── Stats Cards ───────────────────────────── */
.bbpt-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .bbpt-stats-row { grid-template-columns: repeat(4, 1fr); } }
.bbpt-stat-card {
  background: var(--bbpt-card);
  border: 1px solid var(--bbpt-border);
  border-radius: var(--bbpt-radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
}
.bbpt-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bbpt-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.bbpt-stat-icon.bbpt-blue { color: var(--bbpt-primary); background: rgba(37,99,235,0.08); }
.bbpt-stat-icon.bbpt-green { color: var(--bbpt-accent); background: rgba(22,163,74,0.08); }
.bbpt-stat-icon.bbpt-amber { color: var(--bbpt-amber); background: rgba(217,119,6,0.08); }
.bbpt-stat-label { font-size: 13px; color: var(--bbpt-text-muted); }
.bbpt-stat-value { font-size: 24px; font-weight: 600; color: var(--bbpt-text); }

/* ── Tab Navigation ────────────────────────── */
.bbpt-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #e4e8ef;
  border: 1px solid var(--bbpt-border);
  border-radius: var(--bbpt-radius);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.bbpt-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bbpt-text-muted);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  user-select: none;
}
.bbpt-tab svg { flex-shrink: 0; opacity: 0.55; transition: opacity 0.15s; }
.bbpt-tab:hover { background: var(--bbpt-card); color: var(--bbpt-text); border-color: var(--bbpt-border); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.bbpt-tab:hover svg { opacity: 0.8; }
.bbpt-tab.bbpt-active { background: var(--bbpt-primary); color: var(--bbpt-primary-fg); border-color: var(--bbpt-primary); box-shadow: 0 1px 3px rgba(37,99,235,0.3); }
.bbpt-tab.bbpt-active svg { opacity: 1; }

/* ── Sub-tabs (inside tabs) ────────────────── */
.bbpt-subtabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: #e4e8ef;
  border: 1px solid var(--bbpt-border);
  border-radius: var(--bbpt-radius);
  margin-bottom: 16px;
  overflow-x: auto;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.bbpt-subtab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bbpt-text-muted);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  user-select: none;
}
.bbpt-subtab svg { flex-shrink: 0; width: 14px; height: 14px; opacity: 0.5; transition: opacity 0.15s; }
.bbpt-subtab:hover { background: var(--bbpt-card); color: var(--bbpt-text); border-color: var(--bbpt-border); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.bbpt-subtab:hover svg { opacity: 0.75; }
.bbpt-subtab.bbpt-active { background: var(--bbpt-primary); color: var(--bbpt-primary-fg); border-color: var(--bbpt-primary); box-shadow: 0 1px 3px rgba(37,99,235,0.25); }
.bbpt-subtab.bbpt-active svg { opacity: 1; }

/* ── Tab Panels ────────────────────────────── */
.bbpt-panel { display: none; }
.bbpt-panel.bbpt-active { display: block; }
.bbpt-subpanel { display: none; }
.bbpt-subpanel.bbpt-active { display: block; }

/* ── Cards ─────────────────────────────────── */
.bbpt-card {
  background: var(--bbpt-card);
  border: 1px solid var(--bbpt-border);
  border-radius: var(--bbpt-radius);
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
}
.bbpt-card-header {
  padding: 16px 16px 12px;
}
.bbpt-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--bbpt-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bbpt-card-desc {
  font-size: 14px;
  color: var(--bbpt-text-muted);
  margin-top: 4px;
}
.bbpt-card-body { padding: 0 16px 16px; }
.bbpt-card-body.bbpt-no-pt { padding-top: 0; }
.bbpt-card-body.bbpt-full { padding: 0; }

/* ── Upload Cards ──────────────────────────── */
.bbpt-upload-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .bbpt-upload-grid { grid-template-columns: repeat(2, 1fr); } }

.bbpt-upload-zone {
  border: 2px dashed var(--bbpt-border);
  border-radius: var(--bbpt-radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.bbpt-upload-zone:hover {
  border-color: var(--bbpt-primary);
  background: rgba(37, 99, 235, 0.04);
}
.bbpt-upload-zone svg { margin: 0 auto 8px; }
.bbpt-upload-zone p { font-size: 14px; color: var(--bbpt-text-muted); }
.bbpt-upload-zone .bbpt-small { font-size: 12px; margin-top: 4px; }

.bbpt-upload-zone.bbpt-uploaded {
  border-color: var(--bbpt-emerald);
  border-style: solid;
  background: rgba(22, 163, 74, 0.06);
}
.bbpt-upload-zone.bbpt-uploaded svg { color: var(--bbpt-emerald); }
.bbpt-upload-zone.bbpt-uploaded p { color: var(--bbpt-text); }
.bbpt-upload-zone.bbpt-uploaded:hover {
  border-color: var(--bbpt-emerald);
  background: rgba(22, 163, 74, 0.1);
}

/* ── Data counts / info chips ──────────────── */
.bbpt-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.bbpt-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bbpt-secondary);
  border-radius: 6px;
  font-size: 14px;
  color: var(--bbpt-text);
}
.bbpt-chip .bbpt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.bbpt-chip .bbpt-dot.bbpt-blue { background: var(--bbpt-primary); }
.bbpt-chip .bbpt-dot.bbpt-green { background: var(--bbpt-accent); }
.bbpt-chip .bbpt-dot.bbpt-amber { background: var(--bbpt-amber); }

/* ── Tables ────────────────────────────────── */
.bbpt-table-wrap {
  overflow: auto;
  max-height: 500px;
}
.bbpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bbpt-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bbpt-card);
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--bbpt-text-muted);
  border-bottom: 1px solid var(--bbpt-border);
  white-space: nowrap;
}
.bbpt-table th.bbpt-right, .bbpt-table td.bbpt-right { text-align: right; }
.bbpt-table th.bbpt-center, .bbpt-table td.bbpt-center { text-align: center; }
.bbpt-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--bbpt-border);
    color: var(--bbpt-text);
    vertical-align: middle;
    text-align: left;
}
.bbpt-table tr:hover td { background: rgba(0,0,0,0.02); }
.bbpt-table .bbpt-muted { color: var(--bbpt-text-muted); }
.bbpt-table .bbpt-mono { font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 13px; }
.bbpt-table .bbpt-empty-row td { text-align: center; padding: 32px 12px; color: var(--bbpt-text-muted); }

/* ── Badges ────────────────────────────────── */
.bbpt-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'SF Mono', 'Fira Code', monospace;
  white-space: nowrap;
}
.bbpt-badge.bbpt-outline { border: 1px solid var(--bbpt-border); color: var(--bbpt-text-muted); background: transparent; }
.bbpt-badge.bbpt-secondary { background: var(--bbpt-secondary); color: var(--bbpt-secondary-fg); }
.bbpt-badge.bbpt-primary { background: var(--bbpt-primary); color: #fff; }
.bbpt-badge.bbpt-green { background: rgba(22,163,74,0.1); color: #15803d; }
.bbpt-badge.bbpt-amber { background: rgba(217,119,6,0.1); color: #b45309; }
.bbpt-badge.bbpt-red { background: rgba(220,38,38,0.1); color: #dc2626; }
.bbpt-badge.bbpt-blue { background: rgba(37,99,235,0.1); color: #1d4ed8; }
.bbpt-badge.bbpt-purple { background: rgba(124,58,237,0.1); color: #6d28d9; }

/* position-specific badges */
.bbpt-badge.bbpt-pos-p { border-color: var(--bbpt-pos-p); color: var(--bbpt-pos-p); }
.bbpt-badge.bbpt-pos-if { border-color: var(--bbpt-pos-if); color: var(--bbpt-pos-if); }
.bbpt-badge.bbpt-pos-of { border-color: var(--bbpt-pos-of); color: var(--bbpt-pos-of); }

/* ── Search / Input ────────────────────────── */
.bbpt-search-wrap { position: relative; display: inline-flex; }
.bbpt-search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--bbpt-text-muted);
  pointer-events: none;
}
.bbpt-input {
  background: var(--bbpt-input);
  border: 1px solid var(--bbpt-border);
  color: var(--bbpt-text);
  padding: 8px 12px;
  border-radius: var(--bbpt-radius);
  font-size: 14px;
  width: 200px;
}
.bbpt-input:focus { outline: 2px solid var(--bbpt-primary); outline-offset: 1px; }
.bbpt-input.bbpt-with-icon { padding-left: 32px; }

.bbpt-select {
  background: var(--bbpt-input);
  border: 1px solid var(--bbpt-border);
  color: var(--bbpt-text);
  padding: 8px 12px;
  border-radius: var(--bbpt-radius);
  font-size: 14px;
  cursor: pointer;
}
.bbpt-select:focus { outline: 2px solid var(--bbpt-primary); outline-offset: 1px; }

.bbpt-label { font-size: 13px; color: var(--bbpt-text-muted); display: block; margin-bottom: 4px; }

/* ── Buttons ───────────────────────────────── */
.bbpt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--bbpt-radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.bbpt-btn.bbpt-primary { background: var(--bbpt-primary); color: #fff; border-color: var(--bbpt-primary); }
.bbpt-btn.bbpt-primary:hover { background: #2563eb; }
.bbpt-btn.bbpt-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.bbpt-btn.bbpt-outline { background: transparent; color: var(--bbpt-text-muted); border-color: var(--bbpt-border); }
.bbpt-btn.bbpt-outline:hover { background: var(--bbpt-secondary); color: var(--bbpt-text); }
.bbpt-btn.bbpt-destructive { background: transparent; color: var(--bbpt-destructive); border-color: var(--bbpt-border); }
.bbpt-btn.bbpt-destructive:hover { background: rgba(239,68,68,0.1); }

.bbpt-btn-sm { padding: 6px 12px; font-size: 13px; }

/* ── Toolbar row ───────────────────────────── */
.bbpt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.bbpt-toolbar-left { display: flex; flex-direction: column; gap: 2px; }
.bbpt-toolbar-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ── Grid layouts ──────────────────────────── */
.bbpt-grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bbpt-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.bbpt-grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bbpt-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bbpt-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.bbpt-grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .bbpt-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.bbpt-grid-5 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .bbpt-grid-5 { grid-template-columns: repeat(5, 1fr); } }

/* ── CSS Bar Charts ────────────────────────── */
.bbpt-bar-chart { margin: 12px 0; }
.bbpt-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.bbpt-bar-label {
  width: 60px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bbpt-text);
  text-align: right;
  flex-shrink: 0;
}
.bbpt-bar-track {
  flex: 1;
  height: 24px;
  background: var(--bbpt-secondary);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}
.bbpt-bar-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  transition: width 0.3s;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.bbpt-bar-segment.bbpt-p { background: var(--bbpt-pos-p); }
.bbpt-bar-segment.bbpt-if { background: var(--bbpt-pos-if); }
.bbpt-bar-segment.bbpt-of { background: var(--bbpt-pos-of); }
.bbpt-bar-segment.bbpt-primary { background: var(--bbpt-primary); }
.bbpt-bar-value {
  width: 50px;
  font-size: 13px;
  color: var(--bbpt-text-muted);
  flex-shrink: 0;
  font-family: monospace;
}

/* ── Stacked bar (horizontal bar with fill) ── */
.bbpt-hbar {
  height: 28px;
  background: var(--bbpt-secondary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.bbpt-hbar-fill {
  height: 100%;
  border-radius: 4px 0 0 4px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

/* ── Round selector buttons ────────────────── */
.bbpt-round-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.bbpt-round-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--bbpt-border);
  background: transparent;
  color: var(--bbpt-text-muted);
  transition: background 0.15s, color 0.15s;
}
.bbpt-round-btn:hover { background: var(--bbpt-secondary); color: var(--bbpt-text); }
.bbpt-round-btn.bbpt-active { background: var(--bbpt-primary); color: #fff; border-color: var(--bbpt-primary); }
.bbpt-round-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Scroll area ───────────────────────────── */
.bbpt-scroll { overflow-y: auto; }
.bbpt-scroll-200 { max-height: 200px; }
.bbpt-scroll-400 { max-height: 400px; }
.bbpt-scroll-500 { max-height: 500px; }
.bbpt-scroll-600 { max-height: 600px; }

/* ── Misc ──────────────────────────────────── */
.bbpt-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--bbpt-text-muted);
}
.bbpt-empty svg { margin: 0 auto 12px; width: 48px; height: 48px; opacity: 0.5; }

.bbpt-text-emerald { color: #15803d; }
.bbpt-text-amber { color: #b45309; }
.bbpt-text-red { color: #dc2626; }
.bbpt-text-blue { color: #1d4ed8; }
.bbpt-text-purple { color: #6d28d9; }
.bbpt-text-muted { color: var(--bbpt-text-muted); }
.bbpt-text-primary { color: var(--bbpt-primary); }
.bbpt-font-bold { font-weight: 700; }
.bbpt-font-medium { font-weight: 500; }
.bbpt-mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px; }

.bbpt-flex { display: flex; }
.bbpt-flex-wrap { flex-wrap: wrap; }
.bbpt-gap-4 { gap: 4px; }
.bbpt-gap-8 { gap: 8px; }
.bbpt-gap-12 { gap: 12px; }
.bbpt-gap-16 { gap: 16px; }
.bbpt-items-center { align-items: center; }
.bbpt-justify-between { justify-content: space-between; }
.bbpt-mt-8 { margin-top: 8px; }
.bbpt-mt-16 { margin-top: 16px; }
.bbpt-mb-8 { margin-bottom: 8px; }
.bbpt-mb-16 { margin-bottom: 16px; }
.bbpt-space-y > * + * { margin-top: 16px; }

/* ── Draft card picks list ─────────────────── */
.bbpt-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.1s;
}
.bbpt-pick-row:hover { background: rgba(0,0,0,0.03); }
.bbpt-pick-num {
  width: 26px;
  font-family: monospace;
  font-size: 12px;
  color: var(--bbpt-text-muted);
}
.bbpt-pick-name {
    font-size: 14px;
    color: var(--bbpt-text);
    font-weight: 500;
}
.bbpt-pick-meta { display: flex; align-items: center; gap: 8px; }

/* ── Slider ────────────────────────────────── */
.bbpt-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bbpt-secondary);
  border: 1px solid var(--bbpt-border);
  border-radius: var(--bbpt-radius);
}
.bbpt-slider {
  flex: 1;
  max-width: 300px;
  accent-color: var(--bbpt-primary);
  height: 6px;
}

/* ── ADP Chart (CSS-based) ─────────────────── */
.bbpt-adp-chart {
  display: flex;
  overflow-x: auto;
  min-height: 400px;
  position: relative;
}
.bbpt-adp-col {
  flex: 1;
  min-width: 60px;
  max-width: 80px;
  position: relative;
  border-left: 1px solid var(--bbpt-border);
  height: 400px;
}
.bbpt-adp-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 0 4px;
}
.bbpt-adp-y-axis {
  width: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 8px;
  text-align: right;
  font-size: 12px;
  color: var(--bbpt-text-muted);
  height: 400px;
  flex-shrink: 0;
}
.bbpt-adp-x-labels {
  display: flex;
  margin-top: 8px;
}
.bbpt-adp-x-label {
  flex: 1;
  min-width: 60px;
  max-width: 80px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.bbpt-adp-x-sub { font-size: 11px; color: var(--bbpt-text-muted); font-weight: 400; }

/* ── Legend ─────────────────────────────────── */
.bbpt-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bbpt-border);
}
.bbpt-legend-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--bbpt-text-muted); }
.bbpt-legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ── Summary stat boxes ────────────────────── */
.bbpt-summary-box {
  padding: 14px;
  border-radius: var(--bbpt-radius);
  background: var(--bbpt-secondary);
  border: 1px solid var(--bbpt-border);
  text-align: center;
}
.bbpt-summary-box .bbpt-value { font-size: 24px; font-weight: 700; color: var(--bbpt-text); }
.bbpt-summary-box .bbpt-label { font-size: 12px; color: var(--bbpt-text-muted); margin-top: 2px; }

/* ── Player list in round analysis ─────────── */
.bbpt-player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--bbpt-radius);
  background: var(--bbpt-secondary);
  margin-bottom: 6px;
}
.bbpt-player-item .bbpt-rank { font-size: 17px; font-weight: 600; color: var(--bbpt-text-muted); width: 28px; }
.bbpt-player-item .bbpt-name { font-weight: 500; color: var(--bbpt-text); }
.bbpt-player-item .bbpt-team { font-size: 13px; color: var(--bbpt-text-muted); text-align:left; }
.bbpt-player-item .bbpt-count { font-weight: 600; color: var(--bbpt-text); }
.bbpt-player-item .bbpt-pct { font-size: 12px; color: var(--bbpt-text-muted); }

/* ── Roster construction cards ─────────────── */
.bbpt-roster-card {
  padding: 14px;
  border-radius: var(--bbpt-radius);
  background: var(--bbpt-secondary);
  border: 1px solid var(--bbpt-border);
}
.bbpt-roster-card .bbpt-title { font-size: 17px; font-weight: 600; color: var(--bbpt-text); }

/* ── Rank badge colors (playoffs) ──────────── */
.bbpt-rank-1 { background: rgba(217,119,6,0.12); color: #92400e; border-color: rgba(217,119,6,0.4); }
.bbpt-rank-2 { background: rgba(100,116,139,0.12); color: #475569; border-color: rgba(100,116,139,0.4); }
.bbpt-rank-3 { background: rgba(180,83,9,0.12); color: #78350f; border-color: rgba(180,83,9,0.4); }
.bbpt-rank-top5 { background: rgba(22,163,74,0.1); color: #15803d; border-color: rgba(22,163,74,0.4); }
.bbpt-rank-top10 { background: rgba(37,99,235,0.1); color: #1d4ed8; border-color: rgba(37,99,235,0.4); }

/* ── Animations ────────────────────────────── */
@keyframes bbpt-spin { to { transform: rotate(360deg); } }
.bbpt-spin { animation: bbpt-spin 1s linear infinite; display: inline-block; }

/* ── Clear data button floating ────────────── */
.bbpt-clear-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bbpt-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--bbpt-text);
    text-align: left;
}
.bbpt-section-desc { font-size: 14px; color: var(--bbpt-text-muted); margin-top: 2px; }

/* ── Top 12 preview badges ─────────────────── */
.bbpt-preview-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* hidden file inputs */
.bbpt-hidden { display: none!important; }
