/* ==========================================================================
   Tappa NBA Intelligence Platform — Franchise Command Center Stylesheet
   Route: /team/:abbr
   Bloomberg-density, high-contrast dark theme, zero-slop UI tokens
   ========================================================================== */

.team-command-center {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  font-family: var(--font-sans, "Inter", -apple-system, BlinkMacSystemFont, sans-serif);
  color: var(--text-primary, #e2e8f0);
}

/* Tappa Platform Brand Header Strip */
.team-page-tappa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem;
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--tappa-orange, #ea580c);
  border-radius: var(--radius-sm, 6px);
  margin-bottom: 0.85rem;
}

/* Section Card */
.team-section-card {
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.team-section-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.team-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #18181b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.team-section-title-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.team-section-number {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  background: var(--tappa-orange-subtle, rgba(234, 88, 12, 0.12));
  color: var(--tappa-orange, #ea580c);
  border: 1px solid var(--tappa-orange-border, rgba(234, 88, 12, 0.32));
  border-radius: 3px;
}

.team-section-title {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary, #f8fafc);
  margin: 0;
}

.team-section-summary {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
}

.team-section-body {
  padding: 1rem;
}

/* ==========================================================================
   §0: COMMAND CENTER HEADER HERO
   ========================================================================== */
.team-hero-banner {
  display: grid;
  grid-template-columns: 360px 1fr 280px;
  gap: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, #0e0e12 0%, #18181e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--tappa-orange, #ea580c);
  border-radius: var(--radius-md, 8px);
  position: relative;
  align-items: center;
}

.team-identity-col {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team-logo-box {
  width: 70px;
  height: 70px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.team-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-bio-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-name-h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
}

.team-meta-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
}

.team-hero-metrics {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metric-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-metric-key {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
}

.hero-metric-val {
  font-family: var(--font-mono, monospace);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.hero-metric-sub {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: var(--text-muted, #94a3b8);
}

.team-hero-signals {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ==========================================================================
   §1: ACTIVE ROSTER DEPTH CHART
   ========================================================================== */
/* ==========================================================================
   §1: SINGLE DEPTH CHART TABLE (POSITION COLUMNS MATRIX)
   ========================================================================== */
.depth-chart-matrix-wrap {
  width: 100%;
  overflow-x: auto;
}

.depth-grid-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: separate;
  border-spacing: 0.45rem;
  font-family: var(--font-mono, monospace);
  table-layout: fixed;
}

.depth-grid-table th {
  padding: 0.5rem 0.65rem;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #ffffff;
  text-align: left;
  user-select: none;
}

.depth-tier-th {
  width: 95px;
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--text-dim, #71717a) !important;
  text-align: center !important;
  background: rgba(24, 24, 27, 0.5) !important;
}

.depth-pos-th {
  vertical-align: middle;
}

.pos-header-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pos-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.38rem;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.pos-full-name {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.depth-tier-td {
  vertical-align: middle;
  text-align: center;
  padding: 0.5rem 0.35rem;
  background: rgba(24, 24, 27, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  width: 95px;
}

.depth-tier-pill {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.12rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
  margin-bottom: 0.2rem;
}

.tier-starter {
  color: #ffffff;
  background: var(--tappa-orange-subtle, rgba(234, 88, 12, 0.14));
  border: 1px solid var(--tappa-orange-border, rgba(234, 88, 12, 0.35));
}

.tier-rotation {
  color: var(--text-secondary, #cbd5e1);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.tier-reserve {
  color: var(--text-dim, #71717a);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.depth-tier-caption {
  font-size: 0.58rem;
  color: var(--text-dim, #71717a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.depth-grid-cell {
  vertical-align: top;
  padding: 0;
}

.depth-player-card {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 64px;
}

.depth-player-card:hover {
  background: #18181f;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.is-starter-cell .depth-player-card {
  background: #15151b;
  border-color: rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--tappa-orange, #ea580c);
}

.depth-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.depth-card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.depth-card-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 135px;
}

.depth-card-meta {
  font-size: 0.62rem;
  color: var(--text-dim, #71717a);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.depth-card-salary {
  color: var(--text-secondary, #cbd5e1);
  font-weight: 600;
}

.depth-card-mpg {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.depth-card-archetypes {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tactical-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tactical-chip .chip-label {
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.02rem 0.22rem;
  border-radius: 2px;
}

.off-chip {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.off-chip .chip-label {
  background: var(--tappa-orange-subtle, rgba(234, 88, 12, 0.14));
  color: var(--tappa-orange, #ea580c);
}

.def-chip {
  background: rgba(255, 255, 255, 0.025);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.def-chip .chip-label {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.depth-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 0.25rem 0.3rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.depth-stat-unit {
  display: flex;
  flex-direction: column;
}

.depth-stat-lbl {
  font-size: 0.52rem;
  color: var(--text-dim, #71717a);
  text-transform: uppercase;
}

.depth-stat-val {
  font-size: 0.66rem;
  font-weight: 700;
  color: #ffffff;
}

.depth-card-impact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 0.3rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
  font-size: 0.62rem;
}

.depth-impact-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.depth-impact-lbl {
  color: var(--text-dim, #71717a);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.depth-impact-val {
  font-weight: 700;
}

.depth-impact-divider {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.depth-empty-cell {
  background: rgba(24, 24, 27, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

/* ==========================================================================
   §2: 5-MAN LINEUPS
   ========================================================================== */
.lineup-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
}

.lineup-matrix-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lineup-matrix-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.lineup-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.lineup-5player-block {
  display: inline-flex;
  align-items: stretch;
  gap: 0.35rem;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
  min-width: 320px;
}

.lineup-player-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-width: 58px;
  max-width: 68px;
  padding: 0.25rem 0.2rem;
  border-radius: 4px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.lineup-player-unit:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.lineup-unit-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #18181b;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  display: block;
  flex-shrink: 0;
}

.lineup-unit-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62px;
  margin-top: 0.25rem;
  line-height: 1.15;
  font-family: var(--font-sans, -apple-system, sans-serif);
}

.lineup-unit-pos {
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--text-dim, #71717a);
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.12rem;
  padding: 0.02rem 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lineup-separator {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.5rem;
}

.badge-lineup-role {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.badge-lineup-role.role-starting {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.badge-lineup-role.role-closing {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.25);
}

.badge-lineup-tactical {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.badge-lineup-tactical.tac-defense {
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-lineup-tactical.tac-spacing {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.12);
}

.badge-lineup-tactical.tac-jumbo {
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   §4: TEAM STATS & LEAGUE RANKINGS (SEASON + L5 ROLLING)
   ========================================================================== */
.team-stats-rankings-section .team-section-header {
  padding: 0.65rem 1rem;
}

/* Recent 5 Games Outcomes Strip */
.recent-5-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.recent-5-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-dim, #71717a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recent-5-chips {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.recent-game-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid transparent;
  line-height: 1.2;
}

.recent-game-chip.chip-win {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.recent-game-chip.chip-loss {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.3);
  color: #f43f5e;
}

.recent-game-chip .chip-wl {
  font-weight: 800;
}

.recent-game-chip .chip-score {
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.6rem;
}

.recent-game-chip .chip-opp {
  color: var(--text-muted, #94a3b8);
  font-size: 0.58rem;
}

/* Category Filter Mode Switcher */
.team-stat-mode-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-stat-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.team-stat-mode-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.team-stat-mode-btn.active {
  background: #27272a;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Standings Summary Overview Bar */
.rankings-overview-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin-bottom: 0.85rem;
  font-family: var(--font-sans, sans-serif);
}

.overview-metric {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.overview-num {
  font-size: 0.88rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.overview-txt {
  font-size: 0.68rem;
  color: var(--text-dim, #71717a);
  font-weight: 500;
}

.overview-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.6rem;
}

/* Bento Grid of 18 Metric Cards (6x3 All, 5x2 Traditional, 4x2 Advanced) */
.team-stats-rank-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  transition: all 0.18s ease;
}

.team-stats-rank-grid[data-view-mode="traditional"] {
  grid-template-columns: repeat(5, 1fr);
}

.team-stats-rank-grid[data-view-mode="advanced"] {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1440px) {
  .team-stats-rank-grid,
  .team-stats-rank-grid[data-view-mode="all"] {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-stats-rank-grid[data-view-mode="traditional"] {
    grid-template-columns: repeat(5, 1fr);
  }
  .team-stats-rank-grid[data-view-mode="advanced"] {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1080px) {
  .team-stats-rank-grid,
  .team-stats-rank-grid[data-view-mode="all"],
  .team-stats-rank-grid[data-view-mode="traditional"],
  .team-stats-rank-grid[data-view-mode="advanced"] {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .team-stats-rank-grid,
  .team-stats-rank-grid[data-view-mode="all"],
  .team-stats-rank-grid[data-view-mode="traditional"],
  .team-stats-rank-grid[data-view-mode="advanced"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .team-stats-rank-grid,
  .team-stats-rank-grid[data-view-mode="all"],
  .team-stats-rank-grid[data-view-mode="traditional"],
  .team-stats-rank-grid[data-view-mode="advanced"] {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   §8: FRANCHISE PAYROLL LEDGER & APRON OUTLOOK
   ========================================================================== */
.payroll-ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .payroll-ledger-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .payroll-ledger-grid {
    grid-template-columns: 1fr;
  }
}

.payroll-ledger-cell {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.15s ease;
}

.payroll-ledger-cell:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.payroll-ledger-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #cbd5e1;
  letter-spacing: 0.03em;
}

/* Individual Metric Bento Card */
.stat-rank-card {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 146px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.stat-rank-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: #18181f;
  transform: translateY(-1px);
}

/* Header: Metric Label & NBA Rank */
.stat-rank-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.4rem;
}

.stat-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.stat-card-code {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-dim, #71717a);
  letter-spacing: 0.04em;
}

.stat-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* NBA Rank Badge */
.stat-rank-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.stat-rank-badge .rank-hash {
  font-size: 0.58rem;
  opacity: 0.75;
}

.stat-rank-badge .rank-num {
  font-size: 0.76rem;
  font-weight: 800;
}

.stat-rank-badge .rank-scope {
  font-size: 0.56rem;
  font-weight: 500;
  opacity: 0.75;
  margin-left: 0.1rem;
}

.stat-rank-badge.rank-tier-elite {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.stat-rank-badge.rank-tier-top10 {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.stat-rank-badge.rank-tier-mid {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-rank-badge.rank-tier-low {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.28);
}

/* Season Value Area */
.stat-rank-main {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.45rem 0 0.4rem 0;
}

.stat-season-val {
  font-family: var(--font-mono, monospace);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-season-caption {
  font-size: 0.6rem;
  color: var(--text-dim, #71717a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* 30-Team League Distribution Micro-Gauge */
.stat-rank-gauge-wrap {
  margin-bottom: 0.55rem;
}

.stat-rank-track {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}

.stat-rank-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.35s ease;
}

.stat-rank-fill.rank-tier-elite {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.stat-rank-fill.rank-tier-top10 {
  background: linear-gradient(90deg, #0d9488 0%, #34d399 100%);
}

.stat-rank-fill.rank-tier-mid {
  background: linear-gradient(90deg, #52525b 0%, #94a3b8 100%);
}

.stat-rank-fill.rank-tier-low {
  background: linear-gradient(90deg, #9f1239 0%, #f43f5e 100%);
}

.stat-rank-median-tick {
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.stat-rank-track-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 0.52rem;
  color: var(--text-dim, #52525b);
  margin-top: 2px;
  line-height: 1;
}

.stat-rank-track-labels .median-label {
  opacity: 0.7;
}

/* Last 5 Games Rolling Form Strip */
.stat-l5-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-l5-left {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.stat-l5-caption {
  font-size: 0.58rem;
  color: var(--text-dim, #71717a);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.stat-l5-val {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.stat-l5-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.08rem 0.32rem;
  border-radius: 3px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-l5-delta.delta-positive {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.stat-l5-delta.delta-negative {
  background: rgba(244, 63, 94, 0.14);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.stat-l5-delta.delta-neutral {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted, #94a3b8);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-l5-delta .delta-arrow {
  font-size: 0.56rem;
}

/* ==========================================================================
   §5: PLAY TYPES & SHOT DIET (TACTICAL PROFILES & SPATIAL EFFICIENCY)
   ========================================================================== */
.tactical-schemes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

@media (max-width: 1024px) {
  .tactical-schemes-grid {
    grid-template-columns: 1fr;
  }
}

.tactical-panel-card {
  background: var(--bg-surface-elevated, #18181b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tactical-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tactical-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tactical-title-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.tactical-title-badge {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary, #cbd5e1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tactical-panel-meta {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted, #94a3b8);
}

.tactical-panel-content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Tactical Tables */
.tactical-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.tactical-table th {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.tactical-table td {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.tactical-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.playtype-name-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.playtype-name {
  font-weight: 600;
  color: #f8fafc;
  font-size: 0.76rem;
  white-space: nowrap;
}

.playtype-bar-track {
  width: 100%;
  max-width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.playtype-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tappa-orange, #ea580c), var(--tappa-orange-hover, #f97316));
  box-shadow: 0 0 6px rgba(234, 88, 12, 0.25);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Tactical Rank & Percentile Badges */
.tactical-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.tactical-badge.pctile-high,
.tactical-badge.rank-elite {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tactical-badge.pctile-mid,
.tactical-badge.rank-mid {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tactical-badge.pctile-low,
.tactical-badge.rank-low {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Shot Spectrum Visualization */
.shot-spectrum-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
}

.shot-spectrum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
}

.shot-spectrum-label {
  font-weight: 600;
  color: var(--text-secondary, #cbd5e1);
}

.shot-spectrum-total {
  color: var(--text-muted, #94a3b8);
  font-size: 0.62rem;
}

.shot-spectrum-track {
  display: flex;
  height: 10px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  gap: 1px;
}

.shot-spectrum-seg {
  height: 100%;
  transition: opacity 0.15s ease, filter 0.15s ease;
  cursor: default;
}

.shot-spectrum-seg:hover {
  filter: brightness(1.2);
}

.shot-spectrum-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  margin-top: 0.55rem;
  justify-content: space-between;
}

.spectrum-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
}

.legend-dot,
.zone-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.legend-label {
  color: var(--text-muted, #94a3b8);
}

.legend-val {
  font-weight: 600;
  color: #ffffff;
}

/* Zone Name Cell & Ranks */
.zone-name-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.zone-name {
  font-weight: 600;
  color: #f8fafc;
  font-size: 0.76rem;
  white-space: nowrap;
}

.cell-rank {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.62rem;
  color: var(--text-muted, #94a3b8);
}

/* Shot Diet Macro Footer */
.shot-diet-macro-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.65rem 0.5rem;
  margin-top: 0.35rem;
}

.macro-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.macro-stat-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.03em;
  font-weight: 600;
}

.macro-stat-val-group {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.macro-stat-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.macro-stat-rank {
  font-size: 0.65rem;
  color: #10b981;
  font-weight: 600;
}

.macro-stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.tactical-empty-state {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted, #94a3b8);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}


/* ==========================================================================
   §5: ARCHETYPE HEATMAP
   ========================================================================== */
.archetype-distribution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ==========================================================================
   §6: INJURY SIMULATION & NEXT-MAN-UP ENGINE
   ========================================================================== */
/* Section §6 Header Status Badge */
.injury-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 4px;
  padding: 0.25rem 0.55rem;
}

/* Interactive Horizontal Roster Rail Container */
.injury-roster-rail-box {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.injury-roster-rail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.injury-roster-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  padding-top: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.injury-roster-rail::-webkit-scrollbar {
  height: 4px;
}

.injury-roster-rail::-webkit-scrollbar-track {
  background: transparent;
}

.injury-roster-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.injury-roster-rail::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.roster-rail-chip {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  color: #ffffff;
  outline: none;
  font-family: inherit;
}

.roster-rail-chip:hover {
  background: #1f1f25;
  border-color: rgba(234, 88, 12, 0.45);
  transform: translateY(-1px);
}

.roster-rail-chip.active {
  background: rgba(244, 63, 94, 0.12);
  border-color: #f43f5e;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
}

.rail-chip-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.roster-rail-chip.active .rail-chip-photo {
  border-color: rgba(244, 63, 94, 0.5);
}

.rail-chip-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.rail-chip-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.15s ease;
}

.roster-rail-chip:hover .rail-chip-name {
  color: var(--tappa-orange, #ea580c);
}

.roster-rail-chip.active .rail-chip-name {
  color: #f43f5e;
}

.rail-chip-meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  color: var(--text-muted, #94a3b8);
}

.rail-chip-pos {
  font-family: var(--font-mono, monospace);
  color: var(--tappa-orange, #ea580c);
  font-weight: 800;
  font-size: 0.6rem;
}

.rail-chip-mpg {
  font-size: 0.6rem;
  color: var(--text-dim, #64748b);
}

.rail-chip-out-tag {
  background: #f43f5e;
  color: #ffffff;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(244, 63, 94, 0.4);
}

.rail-chip-out-tag.is-hidden {
  display: none;
}

.injury-sim-container {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Sidelined Player Context Banner */
.injury-sidelined-strip {
  background: #141418;
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-left: 3px solid #f43f5e;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.injury-sidelined-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.injury-sidelined-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #18181b;
  border: 1px solid rgba(244, 63, 94, 0.35);
  flex-shrink: 0;
}

.injury-player-name {
  font-size: 0.88rem;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.15s ease;
}

.injury-player-name:hover {
  color: var(--tappa-orange, #ea580c);
}

.injury-conservation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 4px;
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
}

/* Reusable Section Block within Injury Simulator */
.injury-block-card {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.injury-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.5rem;
}

.injury-block-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.injury-s5-net-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Rebalanced Starting 5 Grid */
.rebalanced-s5-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.rebalanced-s5-card {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.7rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  position: relative;
  transition: all 0.2s ease;
}

.rebalanced-s5-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.rebalanced-s5-card.elevated {
  background: rgba(234, 88, 12, 0.06);
  border-color: rgba(234, 88, 12, 0.45);
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.1);
}

.elevated-starter-badge {
  position: absolute;
  top: -8px;
  background: var(--tappa-orange, #ea580c);
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.rebalanced-s5-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rebalanced-pos-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--tappa-orange, #ea580c);
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: 3px;
  padding: 0.05rem 0.3rem;
}

.rebalanced-s5-name {
  font-size: 0.74rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.rebalanced-s5-name:hover {
  color: var(--tappa-orange, #ea580c);
}

.rebalanced-s5-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

/* Rotational Minutes Waterfall Table */
.waterfall-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.waterfall-table thead th {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #94a3b8);
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.waterfall-table-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.12s ease;
}

.waterfall-table-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.waterfall-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.waterfall-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ea580c, #f97316);
  transition: width 0.3s ease;
}

/* 4-Metric Franchise Impact Grid */
.injury-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.impact-metric-card {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.impact-metric-label {
  font-size: 0.62rem;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.impact-metric-values {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #ffffff;
}

.impact-metric-delta {
  font-size: 0.66rem;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
}

/* 3-Card Tactical Shifts Grid */
.tactical-shifts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.tactical-shift-card {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tactical-shift-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.tactical-shift-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tactical-shift-text {
  font-size: 0.68rem;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.4;
  margin: 0;
}

/* Legacy Fallbacks for Other Views */
.injury-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.injury-beneficiary-card {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.surge-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.4rem;
}

.surge-metric-item {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.surge-metric-label {
  font-size: 0.58rem;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
}

.surge-metric-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}

.surge-delta-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  color: #10b981;
}

/* ==========================================================================
   §7: CBA TRADE RECOMMENDATIONS
   ========================================================================== */
.trade-recs-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trade-package-card {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ==========================================================================
   §9: HISTORICAL TEAM ARC (2014-2026)
   ========================================================================== */
.historical-arc-box {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.85rem;
  position: relative;
}

.arc-svg-container {
  width: 100%;
  height: 160px;
  position: relative;
}

.arc-point-dot {
  cursor: pointer;
  transition: r 0.15s ease, fill 0.15s ease;
}

.arc-point-dot:hover {
  r: 6;
  fill: var(--tappa-orange, #ea580c);
}

/* Responsive */
@media (max-width: 1080px) {
  .team-hero-banner {
    grid-template-columns: 1fr;
  }
  .team-hero-metrics {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0;
  }
  .four-factors-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tactical-schemes-grid, .archetype-distribution-grid, .injury-hero-grid, .tactical-shifts-grid {
    grid-template-columns: 1fr;
  }
  .rebalanced-s5-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
  .injury-impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   §3: TEAM STATISTICAL LEADERS (TOP 5 MULTI-CATEGORY MATRIX)
   ========================================================================== */
.stat-leaders-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.stat-leaders-mode-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #18181b;
  padding: 0.2rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-leader-mode-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #94a3b8);
  padding: 0.22rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.team-leader-mode-btn:hover {
  color: #ffffff;
}

.team-leader-mode-btn.active {
  background: var(--tappa-orange-subtle, rgba(234, 88, 12, 0.14));
  color: var(--tappa-orange, #ea580c);
  border-color: var(--tappa-orange-border, rgba(234, 88, 12, 0.4));
  font-weight: 700;
}

.stat-leaders-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

@media (max-width: 1380px) {
  .stat-leaders-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .stat-leaders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stat-leaders-grid {
    grid-template-columns: 1fr;
  }
}

.stat-category-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #141418;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stat-category-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.7rem;
  background: #1a1a20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-leader-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  table-layout: fixed;
}

.stat-leader-table th {
  padding: 0.25rem 0.35rem;
  color: var(--text-dim, #71717a);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: 22px;
}

.stat-leader-row {
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  height: 38px;
  transition: background 0.1s ease, box-shadow 0.1s ease, opacity 0.12s ease;
}

.stat-leader-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Cross-Table Dynamic Highlighting */
.stat-leader-row.highlight-player {
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 3px 0 0 var(--tappa-orange, #ea580c), inset 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
}

.stat-leader-row.highlight-player td {
  color: #ffffff !important;
}

.leaders-hover-active .stat-leader-row:not(.highlight-player) {
  opacity: 0.45;
}

.stat-leader-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ==========================================================================
   §7: TACTICAL NEEDS & CBA TRADE RECOMMENDATIONS SUITE
   ========================================================================== */

.tactical-needs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 1024px) {
  .tactical-needs-grid {
    grid-template-columns: 1fr;
  }
}

.tactical-need-card {
  background: #151519;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tactical-need-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.need-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.need-severity-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  white-space: nowrap;
}

.need-archetype-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.need-archetype-label {
  font-size: 0.64rem;
  color: var(--text-dim, #71717a);
}

.need-archetype-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  font-weight: 700;
  color: #f97316;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.28);
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
}

.need-metric-void {
  font-size: 0.72rem;
  color: var(--text-secondary, #cbd5e1);
  margin: 0;
  line-height: 1.4;
}

.need-thresholds-group,
.need-prototypes-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.need-sublabel {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim, #71717a);
}

.need-tags-container {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.need-threshold-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.need-prototype-pill {
  font-size: 0.62rem;
  color: var(--text-secondary, #cbd5e1);
  background: #18181e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

/* Filter Bar — Linear-Style Segmented Control */
.trade-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.trade-filter-buttons {
  display: inline-flex;
  align-items: center;
  background: #0f1219;
  border: 1px solid #1a2030;
  border-radius: 4px;
  padding: 2px;
  gap: 2px;
}

.trade-filter-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.28rem 0.65rem;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.trade-filter-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}

.trade-filter-btn.active {
  background: #1a2030;
  color: #f8fafc;
  font-weight: 600;
}

.trade-compliance-note {
  font-size: 0.64rem;
  color: #64748b;
}

/* ==========================================================================
   §7: CBA TRADE RECOMMENDATIONS & 1-LINE SCENARIOS RAIL WITH EXPANDED STUDIO
   ========================================================================== */

/* 1-Line Horizontal Scenarios Rail */
.trade-scenarios-rail {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  width: 100%;
  overflow-x: auto;
  padding: 0.15rem 0 0.4rem 0;
  scrollbar-width: thin;
  scrollbar-color: #242c42 transparent;
}

.trade-scenarios-rail::-webkit-scrollbar {
  height: 4px;
}

.trade-scenarios-rail::-webkit-scrollbar-track {
  background: transparent;
}

.trade-scenarios-rail::-webkit-scrollbar-thumb {
  background: #242c42;
  border-radius: 2px;
}

/* Individual Rail Cards (All in 1 Line) */
.trade-rail-card {
  flex: 1 1 0px;
  min-width: 175px;
  background: #0f1219;
  border: 1px solid #1a2030;
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  cursor: pointer;
  position: relative;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  font-family: inherit;
}

.trade-rail-card:hover {
  border-color: #2e384d;
  background: #131722;
}

.trade-rail-card.active {
  background: #141824;
  border-color: var(--tappa-orange, #ea580c);
  box-shadow: inset 0 -2px 0 var(--tappa-orange, #ea580c);
}

.rail-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
}

.rail-scenario-num {
  font-size: 0.6rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
}

.rail-pathway-pill {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.35rem;
  border-radius: 2px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #1a2030;
}

.rail-card-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rail-player-photo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #0b0d13;
  border: 1px solid #1a2030;
  flex-shrink: 0;
}

.rail-player-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  overflow: hidden;
}

.rail-player-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-player-meta {
  font-size: 0.62rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.rail-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid #1a2030;
}

.rail-net-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #10b981;
  font-variant-numeric: tabular-nums;
}

.rail-out-text {
  font-size: 0.58rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95px;
}

/* Thorough Insight Studio (Mounted Directly Below 1-Line Rail) */
.trade-detail-mount {
  width: 100%;
}

.trade-thorough-insight-card {
  background: #0f1219;
  border: 1px solid #1e2433;
  border-radius: 4px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.insight-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #1a2030;
}

.insight-header-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.insight-scenario-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--tappa-orange, #ea580c);
  letter-spacing: 0.04em;
}

.insight-header-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.insight-pathway-pill {
  font-size: 0.62rem;
  color: #94a3b8;
  background: #141824;
  border: 1px solid #1e2433;
  padding: 0.12rem 0.45rem;
  border-radius: 2px;
}

.insight-header-metrics {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insight-metric-pill {
  font-size: 0.7rem;
  color: #f8fafc;
  background: #0b0d13;
  border: 1px solid #1a2030;
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
}

.insight-metric-dim {
  color: #64748b;
  margin-right: 0.25rem;
  font-size: 0.62rem;
}

/* 2-Column Thorough Insight Grid */
.insight-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 960px) {
  .insight-content-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.insight-left-col,
.insight-right-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Left Column: Rotational Impact & Depth Realignment */
.trade-outcome-panel {
  background: #0b0d13;
  border: 1px solid #1a2030;
  border-radius: 4px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.outcome-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.outcome-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.outcome-role-badge {
  font-size: 0.62rem;
  font-weight: 600;
  color: #f8fafc;
  background: #1a2030;
  border: 1px solid #242c42;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

@media (max-width: 600px) {
  .outcome-grid {
    grid-template-columns: 1fr;
  }
}

.outcome-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  background: #0f1219;
  padding: 0.45rem 0.55rem;
  border-radius: 3px;
  border: 1px solid #1a2030;
}

.outcome-item-label {
  font-size: 0.56rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.outcome-item-val {
  font-size: 0.68rem;
  color: #f8fafc;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

/* Strategic Thesis & Tactical Rationale */
.package-thesis-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.exchange-col-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.package-thesis-text {
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
  background: #0b0d13;
  border: 1px solid #1a2030;
  border-left: 2px solid var(--tappa-orange, #ea580c);
  padding: 0.65rem 0.85rem;
  border-radius: 0 4px 4px 0;
}

/* Right Column: Target Profile & Asset Exchange Flow */
.package-target-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0b0d13;
  border: 1px solid #1a2030;
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
}

.package-target-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #080a0f;
  border: 1px solid #1a2030;
  flex-shrink: 0;
}

.package-target-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.package-target-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.package-target-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f8fafc;
  text-decoration: none;
}

.package-target-name:hover {
  color: var(--tappa-orange, #ea580c);
  text-decoration: underline;
}

.package-target-team {
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  background: #141824;
  border: 1px solid #1e2433;
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
}

.package-target-pos {
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
}

.package-target-stats {
  font-size: 0.66rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}

.stat-bullet {
  color: #334155;
  font-size: 0.6rem;
}

/* Outgoing Assets & Pick Details */
.package-exchange-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #0b0d13;
  border: 1px solid #1a2030;
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
}

.outgoing-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.outgoing-player-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.outgoing-player-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.outgoing-player-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #f8fafc;
  text-decoration: none;
}

.outgoing-player-name:hover {
  color: var(--tappa-orange, #ea580c);
  text-decoration: underline;
}

.outgoing-player-details {
  font-size: 0.64rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.facilitator-route-pill {
  font-size: 0.58rem;
  font-weight: 600;
  color: #94a3b8;
  background: #141824;
  border: 1px solid #1e2433;
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
}

.outgoing-empty-row {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.68rem;
  padding: 0.2rem 0;
}

.package-picks-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  flex-wrap: wrap;
}

.package-pick-pill {
  font-size: 0.6rem;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}

/* Card Footer: Financial Matching & Apron Status */
.package-cba-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid #1a2030;
  flex-wrap: wrap;
}

.cba-status-pill {
  font-size: 0.64rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cba-status-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.cba-fin-deltas {
  font-size: 0.64rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   §8: FRANCHISE FINANCES & CONTRACT DISSECTION
   ========================================================================== */

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

@media (max-width: 1024px) {
  .finances-scorecard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .finances-scorecard-grid {
    grid-template-columns: 1fr;
  }
}

.finance-metric-card {
  background: #151519;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.finance-metric-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim, #71717a);
}

.finance-metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.finance-metric-sub {
  font-size: 0.62rem;
  color: var(--text-dim, #71717a);
}

/* Apron Sanctions Box */
.apron-sanctions-box {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.apron-sanctions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.45rem;
}

.apron-sanctions-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
}

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

@media (max-width: 800px) {
  .apron-sanctions-grid {
    grid-template-columns: 1fr;
  }
}

.apron-sanction-item {
  background: #181820;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sanction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sanction-rule-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}

.sanction-status-tag {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
}

.sanction-status-tag.status-restricted {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.sanction-status-tag.status-compliant {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sanction-desc {
  font-size: 0.66rem;
  color: var(--text-secondary, #cbd5e1);
  margin: 0;
  line-height: 1.35;
}

/* 3-Column Contract Dissection Grid */
.contract-dissection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 1100px) {
  .contract-dissection-grid {
    grid-template-columns: 1fr;
  }
}

.dissection-card {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dissection-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.45rem;
}

.dissection-card-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.expiring-sum-badge {
  font-size: 0.66rem;
  font-weight: 800;
  color: #f97316;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.3);
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
}

/* Expiring Table */
.expiring-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
}

.expiring-table th {
  padding: 0.25rem 0.35rem;
  color: var(--text-dim, #71717a);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.expiring-table td {
  padding: 0.35rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.expiring-badge {
  font-size: 0.58rem;
  font-weight: 800;
  color: #f97316;
  background: rgba(234, 88, 12, 0.12);
  padding: 0.06rem 0.3rem;
  border-radius: 2px;
}

/* Multi-Year Horizon Rows */
.horizon-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.horizon-season-row {
  background: #181820;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.horizon-season-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

.horizon-status-badge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #cbd5e1);
}

.horizon-committed-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}

.horizon-limits-text {
  font-size: 0.6rem;
  color: var(--text-dim, #71717a);
}

/* Salary Tiers Rows */
.salary-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.salary-tier-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tier-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tier-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
}

.tier-numbers {
  font-size: 0.64rem;
  color: var(--text-secondary, #cbd5e1);
}

.tier-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.tier-bar-fill {
  height: 100%;
  background: var(--tappa-orange, #ea580c);
  border-radius: 3px;
}

.tier-players-chips {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.tier-player-chip {
  font-size: 0.58rem;
  color: var(--text-dim, #71717a);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.05rem 0.28rem;
  border-radius: 2px;
}

/* ==========================================================================
   §5: TOP TRENDING PLAYERS & BREAKOUT MOMENTUM RADAR
   Strictly adheres to /non-ai-slop-design:
   - High density, 1-line horizontal rail with smooth kinetic scrolling
   - Dark graphite solid surfaces (#0f1219 / #121622)
   - Crisp 1px borders (#1a2030)
   - Monospace tabular numeric alignment
   - Subdued, semantic badge tints (emerald, amber, sky, purple)
   ========================================================================== */

.trending-header-stats {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.badge-trending-count {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--tappa-orange, #ea580c);
  background: var(--tappa-orange-subtle, rgba(234, 88, 12, 0.12));
  border: 1px solid var(--tappa-orange-border, rgba(234, 88, 12, 0.32));
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.trending-view-all-link {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease;
}

.trending-view-all-link:hover {
  color: #ffffff;
}

.trending-players-rail {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #242b3d transparent;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.trending-players-rail::-webkit-scrollbar {
  height: 5px;
}

.trending-players-rail::-webkit-scrollbar-track {
  background: #0b0d13;
  border-radius: 3px;
}

.trending-players-rail::-webkit-scrollbar-thumb {
  background: #242b3d;
  border-radius: 3px;
}

.trending-players-rail::-webkit-scrollbar-thumb:hover {
  background: #333f56;
}

.trending-player-card {
  flex: 0 0 310px;
  min-width: 310px;
  max-width: 310px;
  background: #0f1219;
  border: 1px solid #1a2030;
  border-radius: 6px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.trending-player-card:hover {
  border-color: #2b3548;
  transform: translateY(-2px);
}

.trending-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.trending-card-identity {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.trending-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  background: #141822;
  border: 1px solid #1e2535;
  flex-shrink: 0;
}

.trending-card-names {
  min-width: 0;
  flex: 1;
  line-height: 1.2;
}

.trending-player-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transition: color 0.15s ease;
}

.trending-player-name:hover {
  color: var(--tappa-orange, #ea580c);
}

.trending-player-sub {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.64rem;
  color: var(--text-dim, #64748b);
  margin-top: 0.18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-pos {
  color: var(--tappa-orange, #ea580c);
  font-weight: 700;
}

.trending-arch {
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-rank-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 800;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.trending-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  background: #0b0d13;
  border: 1px solid #161b26;
  border-radius: 4px;
}

.trending-surge-tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  border: 1px solid;
  white-space: nowrap;
}

.trending-momentum-score {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.momentum-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-dim, #64748b);
  letter-spacing: 0.05em;
}

.momentum-val {
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
}

.trending-deltas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.trending-delta-cell {
  background: #0b0d13;
  border: 1px solid #161b26;
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.cell-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim, #64748b);
}

.cell-values {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem;
}

.cell-primary {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

.cell-delta {
  font-size: 0.68rem;
  font-weight: 800;
}

.cell-delta.delta-up {
  color: #10b981;
}

.cell-delta.delta-down {
  color: #f43f5e;
}

.cell-sub {
  font-size: 0.58rem;
  color: var(--text-dim, #64748b);
}

.trending-signals-strip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  min-height: 20px;
}

.trending-micro-pill {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-secondary, #cbd5e1);
  background: #141822;
  border: 1px solid #202738;
  padding: 0.08rem 0.32rem;
  border-radius: 2px;
  white-space: nowrap;
}

.trending-card-footer {
  margin-top: auto;
  padding-top: 0.3rem;
  border-top: 1px solid #161b26;
}

.trending-deep-dive-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary, #cbd5e1);
  text-decoration: none;
  padding: 0.25rem 0.2rem;
  transition: color 0.15s ease;
}

.trending-deep-dive-btn:hover {
  color: var(--tappa-orange, #ea580c);
}

/* ==========================================================================
   TAPPA NBA INTELLIGENCE — LIGHT MODE SUITE FOR FRANCHISE COMMAND CENTER
   Strict Non-AI Slop / Bloomberg / Linear aesthetic:
   - High-contrast crisp typography (Slate-900 / #0f172a primary, #334155 secondary)
   - Solid #ffffff card surfaces, #f8fafc headers, 1px crisp #e2e8f0 dividers
   - Functional data accents calibrated for light background (Emerald, Rose, Tappa Orange)
   - Tabular-nums precision and zero muddy dark cards in light mode
   ========================================================================== */

[data-theme="light"] .team-command-center {
  color: #0f172a;
}

/* --- Top Brand Strip & Breadcrumb Header --- */
[data-theme="light"] .team-page-tappa-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--tappa-orange, #ea580c);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .team-page-tappa-header span.mono {
  color: #0f172a;
}

/* --- Section Card Shell & Global Section Headers --- */
[data-theme="light"] .team-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .team-section-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .team-section-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .team-section-number {
  background: rgba(234, 88, 12, 0.08);
  color: var(--tappa-orange, #ea580c);
  border: 1px solid rgba(234, 88, 12, 0.25);
}

[data-theme="light"] .team-section-title {
  color: #0f172a;
  font-weight: 700;
}

[data-theme="light"] .team-section-summary {
  color: #64748b;
}

/* ==========================================================================
   §0: COMMAND CENTER HEADER HERO
   ========================================================================== */
[data-theme="light"] .team-hero-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--tappa-orange, #ea580c);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .team-logo-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .team-name-h1 {
  color: #0f172a;
}

[data-theme="light"] .team-hero-banner .pos-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

[data-theme="light"] .team-hero-banner .age-text {
  color: #64748b;
}

[data-theme="light"] .hero-metric-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .hero-metric-key {
  color: #64748b;
}

[data-theme="light"] .hero-metric-val {
  color: #0f172a;
}

[data-theme="light"] .hero-metric-sub {
  color: #94a3b8;
}

[data-theme="light"] .team-hero-signals {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   §1: TEAM STATISTICAL LEADERS (TOP 5 MULTI-CATEGORY MATRIX)
   ========================================================================== */
[data-theme="light"] .stat-leaders-mode-group {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .team-leader-mode-btn {
  color: #64748b;
}

[data-theme="light"] .team-leader-mode-btn:hover {
  color: #0f172a;
  background: #ffffff;
}

[data-theme="light"] .team-leader-mode-btn.active {
  background: #ffffff;
  color: var(--tappa-orange, #ea580c);
  border-color: #ea580c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stat-category-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .stat-category-card:hover {
  border-color: #cbd5e1;
}

[data-theme="light"] .stat-card-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .stat-leader-table th {
  background: #f8fafc;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .stat-leader-row {
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="light"] .stat-leader-row:hover {
  background: #f8fafc;
}

[data-theme="light"] .stat-leader-row.highlight-player {
  background: rgba(234, 88, 12, 0.09) !important;
}

[data-theme="light"] .stat-leader-row.highlight-player td {
  border-color: rgba(234, 88, 12, 0.25) !important;
}

[data-theme="light"] .stat-leader-avatar {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .stat-player-link {
  color: #0f172a !important;
}

[data-theme="light"] .stat-player-link:hover {
  color: var(--tappa-orange, #ea580c) !important;
}

/* ==========================================================================
   §2: TEAM STATS & LEAGUE RANKINGS (SEASON + L5 ROLLING)
   ========================================================================== */
[data-theme="light"] .team-stat-mode-pills {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .team-stat-mode-btn {
  background: transparent;
  color: #64748b;
}

[data-theme="light"] .team-stat-mode-btn:hover {
  color: #0f172a;
}

[data-theme="light"] .team-stat-mode-btn.active {
  background: #ffffff;
  color: var(--tappa-orange, #ea580c);
  border-color: #ea580c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .rankings-overview-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .overview-txt {
  color: #0f172a;
}

[data-theme="light"] .overview-divider {
  background: #e2e8f0;
}

[data-theme="light"] .recent-5-strip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .recent-5-label {
  color: #64748b;
}

[data-theme="light"] .recent-game-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .recent-game-chip .chip-score {
  color: #0f172a;
}

[data-theme="light"] .recent-game-chip .chip-opp {
  color: #64748b;
}

[data-theme="light"] .recent-game-chip.chip-win {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #059669;
}

[data-theme="light"] .recent-game-chip.chip-loss {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.25);
  color: #e11d48;
}

[data-theme="light"] .stat-rank-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .stat-rank-card:hover {
  border-color: #cbd5e1;
}

[data-theme="light"] .stat-card-code {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .stat-card-label {
  color: #64748b;
}

[data-theme="light"] .stat-season-val {
  color: #0f172a;
}

[data-theme="light"] .stat-rank-track {
  background: #e2e8f0;
}

[data-theme="light"] .stat-rank-median-tick {
  background: #94a3b8;
}

[data-theme="light"] .stat-rank-track-labels {
  color: #94a3b8;
}

[data-theme="light"] .stat-rank-badge {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

[data-theme="light"] .stat-rank-badge.rank-tier-elite {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .stat-rank-badge.rank-tier-top10 {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .stat-rank-badge.rank-tier-mid {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

[data-theme="light"] .stat-rank-badge.rank-tier-low {
  background: rgba(244, 63, 94, 0.08);
  color: #e11d48;
  border-color: rgba(244, 63, 94, 0.25);
}

[data-theme="light"] .stat-l5-strip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .stat-l5-caption {
  color: #64748b;
}

[data-theme="light"] .stat-l5-val {
  color: #0f172a;
}

[data-theme="light"] .stat-l5-delta.delta-positive {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .stat-l5-delta.delta-negative {
  background: rgba(244, 63, 94, 0.08);
  color: #e11d48;
  border: 1px solid rgba(244, 63, 94, 0.22);
}

[data-theme="light"] .stat-l5-delta.delta-neutral {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   §3: ACTIVE ROSTER DEPTH CHART
   ========================================================================== */
[data-theme="light"] .depth-grid-table {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .depth-grid-table th {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .depth-tier-th {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .depth-tier-td {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .tier-starter {
  background: rgba(234, 88, 12, 0.08);
  color: var(--tappa-orange, #ea580c);
  border: 1px solid rgba(234, 88, 12, 0.25);
}

[data-theme="light"] .tier-rotation {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .tier-reserve {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .pos-badge {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

[data-theme="light"] .pos-full-name {
  color: #334155;
}

[data-theme="light"] .depth-player-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .depth-player-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] .is-starter-cell .depth-player-card {
  border-left: 3px solid var(--tappa-orange, #ea580c);
}

[data-theme="light"] .depth-card-avatar {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .depth-card-name {
  color: #0f172a;
}

[data-theme="light"] .depth-card-name:hover {
  color: var(--tappa-orange, #ea580c);
}

[data-theme="light"] .depth-card-meta {
  color: #64748b;
}

[data-theme="light"] .depth-card-salary {
  color: #f97316;
}

[data-theme="light"] .depth-card-mpg {
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .depth-card-stats {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .tactical-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .chip-label {
  background: rgba(0, 0, 0, 0.05);
  color: #475569;
}

[data-theme="light"] .off-chip {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: #0284c7;
}

[data-theme="light"] .def-chip {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #059669;
}

[data-theme="light"] .depth-stat-lbl {
  color: #94a3b8;
}

[data-theme="light"] .depth-stat-val {
  color: #0f172a;
}

[data-theme="light"] .depth-card-impact {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .depth-impact-lbl {
  color: #64748b;
}

[data-theme="light"] .depth-impact-divider {
  background: #e2e8f0;
}

[data-theme="light"] .depth-empty-cell {
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  color: #94a3b8;
}

/* ==========================================================================
   §4: 5-MAN LINEUPS SYNERGY & IMPACT GAMESCORE
   ========================================================================== */
[data-theme="light"] .lineup-matrix-table th {
  background: #f8fafc;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .lineup-matrix-table td {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .lineup-row:hover td {
  background: #f8fafc;
}

[data-theme="light"] .lineup-5player-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .lineup-player-unit {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .lineup-player-unit:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .lineup-unit-avatar {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .lineup-unit-name {
  color: #0f172a;
}

[data-theme="light"] .lineup-unit-pos {
  color: #64748b;
}

[data-theme="light"] .lineup-separator {
  background: #cbd5e1;
}

[data-theme="light"] .badge-lineup-role {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .badge-lineup-role.role-starting {
  background: rgba(234, 88, 12, 0.08);
  color: var(--tappa-orange, #ea580c);
  border-color: rgba(234, 88, 12, 0.25);
}

[data-theme="light"] .badge-lineup-role.role-closing {
  background: rgba(147, 51, 234, 0.08);
  color: #7c3aed;
  border-color: rgba(147, 51, 234, 0.25);
}

[data-theme="light"] .badge-lineup-tactical {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

[data-theme="light"] .badge-lineup-tactical.tac-defense {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .badge-lineup-tactical.tac-spacing {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.22);
}

[data-theme="light"] .badge-lineup-tactical.tac-jumbo {
  background: rgba(217, 119, 6, 0.08);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.25);
}

/* ==========================================================================
   §5: TOP TRENDING PLAYERS & BREAKOUT MOMENTUM RADAR
   ========================================================================== */
[data-theme="light"] .trending-players-rail {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .trending-player-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .trending-player-card:hover {
  border-color: var(--tappa-orange, #ea580c);
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.09);
}

[data-theme="light"] .trending-card-avatar {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .trending-player-name {
  color: #0f172a;
}

[data-theme="light"] .trending-player-name:hover {
  color: var(--tappa-orange, #ea580c);
}

[data-theme="light"] .trending-player-sub {
  color: #64748b;
}

[data-theme="light"] .trending-rank-badge {
  background: rgba(217, 119, 6, 0.08);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

[data-theme="light"] .trending-score-row {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .momentum-label {
  color: #64748b;
}

[data-theme="light"] .trending-deltas-grid {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .trending-delta-cell {
  background: #ffffff;
}

[data-theme="light"] .cell-label {
  color: #64748b;
}

[data-theme="light"] .cell-primary {
  color: #0f172a;
}

[data-theme="light"] .cell-sub {
  color: #94a3b8;
}

[data-theme="light"] .trending-micro-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .trending-card-footer {
  border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .trending-deep-dive-btn {
  color: #475569;
}

[data-theme="light"] .trending-deep-dive-btn:hover {
  color: var(--tappa-orange, #ea580c);
}

/* ==========================================================================
   §6: PLAY TYPES & SHOT DIET (TACTICAL SCHEMES & SPATIAL EFFICIENCY)
   ========================================================================== */
[data-theme="light"] .tactical-panel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .tactical-panel-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .tactical-title-text {
  color: #0f172a;
}

[data-theme="light"] .tactical-title-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

[data-theme="light"] .tactical-panel-meta {
  color: #64748b;
}

[data-theme="light"] .tactical-table th {
  background: #f8fafc;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .tactical-table td {
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .tactical-table tbody tr:hover {
  background: #f8fafc;
}

[data-theme="light"] .playtype-name {
  color: #0f172a;
}

[data-theme="light"] .playtype-bar-track {
  background: #e2e8f0;
}

[data-theme="light"] .tactical-badge {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

[data-theme="light"] .tactical-badge.pctile-high,
[data-theme="light"] .tactical-badge.rank-elite {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .tactical-badge.pctile-mid,
[data-theme="light"] .tactical-badge.rank-mid {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

[data-theme="light"] .tactical-badge.pctile-low,
[data-theme="light"] .tactical-badge.rank-low {
  background: rgba(244, 63, 94, 0.08);
  color: #e11d48;
  border-color: rgba(244, 63, 94, 0.25);
}

[data-theme="light"] .shot-spectrum-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .shot-spectrum-label {
  color: #64748b;
}

[data-theme="light"] .shot-spectrum-total {
  color: #0f172a;
}

[data-theme="light"] .shot-spectrum-track {
  background: #e2e8f0;
}

[data-theme="light"] .legend-label {
  color: #64748b;
}

[data-theme="light"] .legend-val {
  color: #0f172a;
}

[data-theme="light"] .zone-name {
  color: #0f172a;
}

[data-theme="light"] .cell-rank {
  color: #94a3b8;
}

[data-theme="light"] .shot-diet-macro-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .macro-stat-label {
  color: #64748b;
}

[data-theme="light"] .macro-stat-val {
  color: #0f172a;
}

[data-theme="light"] .macro-stat-divider {
  background: #e2e8f0;
}

[data-theme="light"] .tactical-empty-state {
  color: #94a3b8;
}

/* ==========================================================================
   §7: DEPTH CHART INJURY SIMULATION & NEXT-MAN-UP ENGINE
   ========================================================================== */
[data-theme="light"] .injury-header-badge {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

[data-theme="light"] .injury-roster-rail-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .injury-roster-rail {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .roster-rail-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .roster-rail-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .roster-rail-chip.active {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
}

[data-theme="light"] .rail-chip-photo {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .rail-chip-name {
  color: #0f172a;
}

[data-theme="light"] .rail-chip-pos {
  color: #64748b;
}

[data-theme="light"] .rail-chip-mpg {
  color: var(--tappa-orange, #ea580c);
}

[data-theme="light"] .rail-chip-out-tag {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .injury-sidelined-strip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #ef4444;
}

[data-theme="light"] .injury-sidelined-photo {
  background: #f1f5f9;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

[data-theme="light"] .injury-player-name {
  color: #0f172a;
}

[data-theme="light"] .injury-conservation-badge {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .injury-block-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .injury-block-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .injury-block-title {
  color: #0f172a;
}

[data-theme="light"] .rebalanced-s5-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .rebalanced-s5-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] .rebalanced-s5-card.elevated {
  background: rgba(234, 88, 12, 0.04);
  border-color: var(--tappa-orange, #ea580c);
}

[data-theme="light"] .rebalanced-s5-photo {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .rebalanced-s5-name {
  color: #0f172a;
}

[data-theme="light"] .rebalanced-pos-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

[data-theme="light"] .waterfall-table thead th {
  background: #f8fafc;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .waterfall-table-row {
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="light"] .waterfall-table-row:hover {
  background: #f8fafc;
}

[data-theme="light"] .waterfall-bar-track {
  background: #e2e8f0;
}

[data-theme="light"] .impact-metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .impact-metric-label {
  color: #64748b;
}

[data-theme="light"] .tactical-shift-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .tactical-shift-title {
  color: #0f172a;
}

[data-theme="light"] .tactical-shift-text {
  color: #334155;
}

[data-theme="light"] .injury-beneficiary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .surge-metric-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .surge-metric-label {
  color: #64748b;
}

[data-theme="light"] .surge-metric-val {
  color: #0f172a;
}

/* ==========================================================================
   §8: TACTICAL NEEDS GAPS & CBA TRADE RECOMMENDATIONS
   ========================================================================== */
[data-theme="light"] .tactical-need-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .need-title {
  color: #0f172a;
}

[data-theme="light"] .need-sublabel {
  color: #64748b;
}

[data-theme="light"] .need-archetype-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .need-metric-void {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .need-threshold-tag {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
}

[data-theme="light"] .need-prototype-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .trade-filter-buttons {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .trade-filter-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .trade-filter-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

[data-theme="light"] .trade-filter-btn.active {
  background: rgba(234, 88, 12, 0.08);
  color: var(--tappa-orange, #ea580c);
  border-color: #ea580c;
}

[data-theme="light"] .trade-compliance-note {
  color: #64748b;
}

[data-theme="light"] .trade-scenarios-rail {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .trade-rail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .trade-rail-card:hover {
  border-color: #cbd5e1;
}

[data-theme="light"] .trade-rail-card.active {
  border-color: var(--tappa-orange, #ea580c);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--tappa-orange, #ea580c);
}

[data-theme="light"] .rail-player-photo {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .rail-player-name {
  color: #0f172a;
}

[data-theme="light"] .rail-player-meta {
  color: #64748b;
}

[data-theme="light"] .rail-pathway-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

[data-theme="light"] .rail-card-bottom {
  border-top: 1px solid #f1f5f9;
}

[data-theme="light"] .rail-out-text {
  color: #64748b;
}

[data-theme="light"] .trade-thorough-insight-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .insight-top-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .insight-header-title {
  color: #0f172a;
}

[data-theme="light"] .insight-metric-pill {
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

[data-theme="light"] .insight-pathway-pill {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .trade-outcome-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .outcome-title {
  color: #0f172a;
}

[data-theme="light"] .outcome-role-badge {
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

[data-theme="light"] .outcome-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .outcome-item-label {
  color: #64748b;
}

[data-theme="light"] .outcome-item-val {
  color: #0f172a;
}

[data-theme="light"] .package-thesis-text {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .package-target-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .package-target-photo {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .package-target-name {
  color: #0f172a;
}

[data-theme="light"] .package-target-team {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .package-target-stats {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .package-exchange-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .outgoing-player-name {
  color: #0f172a;
}

[data-theme="light"] .outgoing-player-details {
  color: #64748b;
}

[data-theme="light"] .facilitator-route-pill {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.25);
  color: #9333ea;
}

[data-theme="light"] .package-pick-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .package-cba-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .trade-package-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   §9: FRANCHISE FINANCES & CONTRACT DISSECTION
   ========================================================================== */
[data-theme="light"] .finance-metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .finance-metric-label {
  color: #64748b;
}

[data-theme="light"] .finance-metric-val {
  color: #0f172a;
}

[data-theme="light"] .finance-metric-sub {
  color: #94a3b8;
}

[data-theme="light"] .apron-sanctions-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .apron-sanctions-header {
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .apron-sanctions-title {
  color: #0f172a;
}

[data-theme="light"] .apron-sanction-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .sanction-rule-name {
  color: #0f172a;
}

[data-theme="light"] .sanction-desc {
  color: #64748b;
}

[data-theme="light"] .sanction-status-tag.status-restricted {
  background: rgba(244, 63, 94, 0.08);
  color: #e11d48;
  border-color: rgba(244, 63, 94, 0.22);
}

[data-theme="light"] .sanction-status-tag.status-compliant {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.22);
}

[data-theme="light"] .dissection-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .dissection-card-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .dissection-card-title {
  color: #0f172a;
}

[data-theme="light"] .expiring-badge {
  color: var(--tappa-orange, #ea580c);
  background: rgba(234, 88, 12, 0.08);
}

[data-theme="light"] .expiring-sum-badge {
  color: var(--tappa-orange, #ea580c);
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.25);
}

[data-theme="light"] .expiring-table th {
  background: #f8fafc;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .expiring-table td {
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .horizon-season-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .horizon-status-badge {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

[data-theme="light"] .horizon-committed-val {
  color: #0f172a;
}

[data-theme="light"] .horizon-limits-text {
  color: #64748b;
}

[data-theme="light"] .tier-name {
  color: #0f172a;
}

[data-theme="light"] .tier-numbers {
  color: #64748b;
}

[data-theme="light"] .tier-numbers strong {
  color: #0f172a;
}

[data-theme="light"] .tier-bar-track {
  background: #e2e8f0;
}

[data-theme="light"] .tier-player-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .payroll-ledger-cell {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .payroll-ledger-cell:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] .payroll-ledger-title {
  color: #0f172a;
}

/* ==========================================================================
   §10: HISTORICAL TEAM ARC (2014-2026)
   ========================================================================== */
[data-theme="light"] .historical-arc-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .historical-arc-box text {
  fill: #64748b;
}

[data-theme="light"] .historical-arc-box line {
  stroke: #e2e8f0;
}
