/* ==========================================================================
   NBA TEAM TRADE IMPACTOR & CBA SANDBOX STYLESHEET
   Design System: Restrained High-Density Slate & Tabular Financial Ledger
   ========================================================================== */

.trade-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header & Meta */
.trade-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.trade-title-block h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.02em;
}

.trade-title-block p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Multi-Team Trade Sandbox Grid */
.trade-sandbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.team-trade-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.team-trade-card.cba-legal {
  border-color: rgba(16, 185, 129, 0.35);
}

.team-trade-card.cba-illegal {
  border-color: rgba(244, 63, 94, 0.45);
}

.team-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.team-selector-dropdown {
  background: var(--bg-app);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: var(--tappa-orange, #ea580c) rgba(15, 23, 42, 0.8);
}

.team-selector-dropdown::-webkit-scrollbar {
  width: 6px;
}

.team-selector-dropdown::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 4px;
}

.team-selector-dropdown::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--tappa-orange-hover, #f97316), var(--tappa-orange, #ea580c));
  border-radius: 4px;
}

/* Custom Interactive Team Selection Dropdown */
.custom-team-picker {
  position: relative;
  display: inline-block;
}

.custom-team-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-app);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.custom-team-picker-trigger:hover,
.custom-team-picker.open .custom-team-picker-trigger {
  border-color: var(--tappa-orange, #ea580c);
  background: var(--bg-surface-elevated);
}

.custom-team-picker-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.custom-team-picker.open .custom-team-picker-arrow {
  transform: rotate(180deg);
  color: var(--tappa-orange, #ea580c);
}

.custom-team-picker-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 290px;
  background: var(--bg-surface, #0f172a);
  border: 1px solid var(--border-default, #334155);
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 15px rgba(234, 88, 12, 0.15);
  z-index: 150;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
}

.custom-team-picker.open .custom-team-picker-dropdown {
  display: flex;
}

.custom-team-picker-dropdown.align-right {
  left: auto;
  right: 0;
}

.custom-team-picker-search-wrap {
  position: relative;
}

.custom-team-picker-search {
  width: 100%;
  background: var(--bg-app, #090d16);
  border: 1px solid var(--border-subtle, #1e293b);
  border-radius: var(--radius-xs, 4px);
  color: var(--text-primary, #f8fafc);
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  outline: none;
}

.custom-team-picker-search:focus {
  border-color: var(--tappa-orange, #ea580c);
}

/* Custom Non-Vanilla Vertical Scrollbar for Team Selection List (Tappa Orange) */
.custom-team-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: var(--tappa-orange, #ea580c) rgba(15, 23, 42, 0.9);
}

.custom-team-picker-list::-webkit-scrollbar {
  width: 6px;
}

.custom-team-picker-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-team-picker-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--tappa-orange-hover, #f97316), var(--tappa-orange, #ea580c));
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(234, 88, 12, 0.35);
}

.custom-team-picker-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.7);
}

.custom-team-picker-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-xs, 4px);
  cursor: pointer;
  transition: all 0.12s ease;
  font-size: 0.78rem;
}

.custom-team-picker-item:hover {
  background: var(--tappa-orange-subtle);
}

.custom-team-picker-item.selected {
  background: var(--tappa-orange-subtle);
  border-left: 2px solid var(--tappa-orange, #ea580c);
}

.custom-team-item-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.team-financial-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.team-financial-pill.tier-2nd-apron {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--accent-rose);
  font-weight: 700;
}

.team-financial-pill.tier-1st-apron {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
  font-weight: 700;
}

/* Outgoing & Incoming Player Slots */
.trade-slots-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trade-slots-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trade-player-tray {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 90px;
  background: var(--bg-app);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.5rem;
}

.trade-player-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  transition: background var(--transition-fast);
}

.trade-player-item:hover {
  background: var(--bg-surface-elevated);
}

.trade-player-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trade-player-avatar {
  width: 26px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
}

.trade-player-salary {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.trade-remove-btn {
  color: var(--accent-rose);
  background: transparent;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* Quick Add Selector */
.trade-quick-add-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.trade-quick-add-btn:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

/* Team Complete Squad Roster List */
.team-squad-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

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

.squad-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.squad-filter-input {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  outline: none;
  font-family: var(--font-sans);
  max-width: 140px;
}

.squad-filter-input::placeholder {
  color: var(--text-muted);
}

.squad-player-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: var(--tappa-orange, #ea580c) rgba(15, 23, 42, 0.8);
}

.squad-player-list::-webkit-scrollbar {
  width: 6px;
}

.squad-player-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 4px;
}

.squad-player-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--tappa-orange-hover, #f97316), var(--tappa-orange, #ea580c));
  border-radius: 4px;
}

.squad-player-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.6);
}

.squad-player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.squad-player-row:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-default);
}

.squad-player-row.is-in-trade {
  opacity: 0.6;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

.squad-player-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.squad-avatar {
  width: 28px;
  height: 22px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--bg-surface);
  flex-shrink: 0;
}

.squad-player-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.squad-player-name:hover {
  color: var(--tappa-orange);
  text-decoration: underline;
}

.squad-player-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.squad-salary-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tappa-orange);
  margin-right: 0.5rem;
  white-space: nowrap;
}

.btn-send-trade {
  background: var(--tappa-orange-subtle);
  border: 1px solid var(--tappa-orange-border);
  color: var(--tappa-orange);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-send-trade:hover {
  background: var(--tappa-orange);
  border-color: var(--tappa-orange);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.4);
}

.btn-send-trade.in-trade {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
  cursor: default;
}

/* Live CBA Status Banner */
.cba-status-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.cba-status-banner.legal {
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--bg-surface);
}

.cba-status-banner.historical-warning {
  border-color: rgba(245, 158, 11, 0.45);
  background: var(--bg-surface);
}

.cba-status-banner.illegal {
  border-color: rgba(244, 63, 94, 0.4);
  background: var(--bg-surface);
}

.trade-pick-item {
  border-left: 2px solid var(--accent-cyan, #00f0ff) !important;
  background: rgba(0, 240, 255, 0.04) !important;
}

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

.cba-verdict-title {
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cba-violations-list {
  font-size: 0.78rem;
  color: var(--accent-rose);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1.25rem;
}

/* Analysis Hub Sub-Tabs */
.trade-analysis-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.trade-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.trade-tab-btn.active {
  background: var(--tappa-orange-subtle);
  border-color: var(--tappa-orange-border);
  color: var(--tappa-orange);
  font-weight: 700;
}

/* Four Factors Shift Cards */
.four-factors-delta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.delta-stat-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.delta-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}

.delta-stat-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.delta-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
}

.delta-pill.pos {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.delta-pill.neg {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
}

/* Vacated Usage & Catalysts */
.catalyst-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.catalyst-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Depth Chart Visualizer */
.depth-chart-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.depth-pos-col {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.depth-pos-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-blue);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.35rem;
}

.depth-slot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.6rem;
  font-size: 0.76rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.depth-slot-card.starter {
  border-color: var(--accent-blue-border);
  background: var(--bg-surface-elevated);
}

/* Recommended Packages Grid in Team Drawer */
.team-trade-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.trade-package-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.trade-package-card:hover {
  border-color: var(--accent-blue-border);
  transform: translateY(-2px);
}

/* ==========================================================================
   OFFSEASON TRANSACTIONS & TACTICAL IMPACT ENGINE
   ========================================================================== */

/* Subpages Navigation Tabs (1. Moves Tracker, 2. Trade Machine) */
.trade-subpages-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.3rem;
  border-radius: var(--radius-sm);
}

.trade-subpage-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: 0.02em;
}

.trade-subpage-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.trade-subpage-tab.active {
  background: var(--bg-surface-elevated);
  color: var(--tappa-orange);
  border-color: var(--tappa-orange-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.subpage-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trade-subpage-tab.active .subpage-badge {
  background: var(--tappa-orange-subtle);
  color: var(--tappa-orange);
  border-color: var(--tappa-orange-border);
}

.trade-mode-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 0.2rem;
  border-radius: var(--radius-xs);
  width: fit-content;
}

.trade-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.trade-mode-btn:hover {
  color: var(--text-primary);
}

.trade-mode-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--accent-blue);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Offseason Layout */
.offseason-tracker-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.offseason-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-xs);
}

.offseason-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-app);
  border: 1px solid var(--border-default);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  flex: 1;
  max-width: 360px;
}

.offseason-search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.78rem;
  outline: none;
  width: 100%;
  font-family: var(--font-sans);
}

.offseason-search-box input::placeholder {
  color: var(--text-muted);
}

.offseason-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* Horizontal Master Trades Feed Rail */
.offseason-master-list {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.offseason-master-header {
  padding: 0.55rem 0.85rem;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}

#offseason-trade-cards-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}

#offseason-trade-cards-container::-webkit-scrollbar {
  height: 6px;
}

#offseason-trade-cards-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

#offseason-trade-cards-container::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 3px;
}

#offseason-trade-cards-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.offseason-trade-card {
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  height: 104px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 2px solid transparent;
  user-select: none;
}

.offseason-trade-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-default);
}

.offseason-trade-card.selected {
  background: var(--tappa-orange-subtle);
  border: 1px solid var(--tappa-orange);
  border-top: 2px solid var(--tappa-orange);
}

.trade-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trade-date-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.trade-headline-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.trade-teams-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.trade-team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  transition: transform var(--transition-fast);
}

.trade-team-logo:hover {
  transform: scale(1.15);
}

.trade-teams-sep {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1;
  user-select: none;
  margin: 0 0.05rem;
}

.trade-team-logo-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.trade-team-logo-md {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.trade-team-logo-xs {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: -2px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.player-team-transfer {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.trade-team-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

.trade-win-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.trade-win-badge.pos {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.trade-win-badge.neg {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

/* Detail Dossier Panel */
.offseason-detail-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dossier-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.dossier-headline h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.dossier-headline p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* Stylistic Thesis Pill */
.thesis-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Collective Team Impact Card */
.team-impact-block {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.team-badge-lg {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.four-factors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.four-factors-table th {
  background: var(--bg-surface-elevated);
  padding: 0.4rem 0.6rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.four-factors-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Individual Traded Player Card */
.player-shift-card {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.player-shift-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.player-meta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-headshot-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.player-role-trajectory {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.role-pill-before {
  background: var(--bg-surface-elevated);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  color: var(--text-muted);
  font-weight: 600;
}

.role-pill-after {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  color: var(--accent-blue);
  font-weight: 700;
}

.scheme-diagnosis-box {
  background: var(--bg-surface);
  border-left: 2px solid var(--accent-blue);
  padding: 0.5rem 0.75rem;
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.45;
  border-radius: 0 2px 2px 0;
}

/* ==========================================================================
   TRADE ID BADGES & EXPLORATION HISTORY NAVIGATION
   ========================================================================== */

.trade-id-badge,
.dossier-trade-id-badge,
.trade-sandbox-id-badge {
  display: none !important;
}

/* History Bar */
.trade-history-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.trade-history-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.trade-history-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.trade-nav-step-btn {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.trade-nav-step-btn:hover:not(:disabled) {
  background: var(--bg-surface-elevated);
  border-color: var(--tappa-orange);
  color: var(--text-primary);
}

.trade-nav-step-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--border-subtle);
}

.trade-nav-target-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--tappa-orange);
  font-weight: 700;
}

.trade-history-divider {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
}

.trade-history-trail-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.trade-history-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  max-width: 620px;
  padding: 0.1rem 0;
  scrollbar-width: thin;
}

.trade-history-chips-scroll::-webkit-scrollbar {
  height: 4px;
}

.trade-history-chips-scroll::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 2px;
}

.trade-history-chip {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.trade-history-chip:hover {
  border-color: var(--border-default);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.trade-history-chip.active {
  background: var(--tappa-orange-subtle);
  border-color: var(--tappa-orange);
  color: var(--tappa-orange);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.2);
}

.trade-history-chip .chip-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.66rem;
}

.trade-history-chip .chip-title {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-history-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  text-decoration: underline;
  transition: color var(--transition-fast);
  margin-left: auto;
}

.trade-history-clear-btn:hover {
  color: var(--accent-rose);
}

/* Dossier Quick Back Breadcrumb - Hidden */
.dossier-history-breadcrumb,
.dossier-back-link {
  display: none !important;
}

/* Trade Machine Return Banner */
.trade-machine-return-banner {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   CBA Governance & Season Phase Telemetry Styles
   ========================================================================== */

.cba-status-banner.live-deal {
  border-color: rgba(16, 185, 129, 0.45);
  background: var(--bg-surface);
}

.cba-status-banner.current-cba-deal {
  border-color: rgba(56, 189, 248, 0.4);
  background: var(--bg-surface);
}

.cba-era-chip,
.phase-chip {
  font-size: 0.72rem;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-sm, 4px);
  border: 1px solid var(--border-default);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cba-era-chip:hover,
.phase-chip:hover {
  border-color: var(--border-hover, #64748b);
  color: var(--text-primary);
}

.cba-era-chip.active,
.phase-chip.active {
  background: var(--tappa-orange-subtle);
  color: var(--tappa-orange);
  border-color: var(--tappa-orange);
}

.cba-era-chip[data-era="cba_2017"].active {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border-color: #a855f7;
}

.cba-era-chip[data-era="cba_2011"].active {
  background: rgba(245, 158, 11, 0.16);
  color: var(--accent-amber);
  border-color: var(--accent-amber);
}

.phase-chip[data-phase="Offseason"].active {
  background: rgba(245, 158, 11, 0.16);
  color: var(--accent-amber);
  border-color: var(--accent-amber);
}

.phase-chip[data-phase="Regular Season"].active {
  background: var(--tappa-orange-subtle);
  color: var(--tappa-orange);
  border-color: var(--tappa-orange);
}

/* Trade Card Pills */
.trade-cba-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.trade-cba-pill.live {
  background: rgba(16, 185, 129, 0.16);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.trade-cba-pill.cba2023 {
  background: var(--tappa-orange-subtle);
  color: var(--tappa-orange);
  border: 1px solid var(--tappa-orange-border);
}

.trade-cba-pill.cba2017 {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.trade-cba-pill.cba2011 {
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.trade-phase-pill {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.12rem 0.42rem;
  border-radius: 3px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.trade-phase-pill.offseason {
  color: #f59e0b;
}

.trade-phase-pill.regular {
  color: #38bdf8;
}

/* Dossier CBA Governance Banner */
.dossier-cba-governance-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.5rem;
}

.dossier-cba-governance-banner.live {
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--bg-surface);
}

.dossier-cba-governance-banner.current-cba {
  border-color: rgba(56, 189, 248, 0.35);
  background: var(--bg-surface);
}

.dossier-cba-governance-banner.historical-cba {
  border-color: rgba(245, 158, 11, 0.35);
  background: var(--bg-surface);
}

.cba-gov-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.6rem;
}

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

.cba-gov-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

.cba-gov-badge.live {
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.cba-gov-badge.current {
  background: var(--tappa-orange-subtle);
  color: var(--tappa-orange);
  border: 1px solid var(--tappa-orange-border);
}

.cba-gov-badge.historical {
  background: rgba(245, 158, 11, 0.16);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.cba-gov-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.cba-gov-dates {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cba-gov-phase-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm, 4px);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.cba-gov-phase-badge.offseason {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.cba-gov-phase-badge.regular {
  color: var(--tappa-orange);
  border-color: var(--tappa-orange-border);
}

.cba-gov-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cba-gov-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.cba-gov-mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm, 4px);
  padding: 0.65rem 0.85rem;
}

.cba-mech-heading {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.cba-mech-val {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.cba-mech-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}



/* Compact Single-Line Transaction Log Item */
.offseason-trade-card.compact-tx-log {
  padding: 0.55rem 0.85rem;
  gap: 0.25rem;
}

.trade-tx-type-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-xs);
}

.trade-tx-type-pill.waive {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.trade-tx-type-pill.awardonwaivers {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.trade-tx-type-pill.contractconverted {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.trade-tx-type-pill.signing {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.trade-cba-exception-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-xs);
}

/* Tab 1: CBA Exceptions & Cap Space Ledger Card */
.cba-exceptions-ledger-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cba-exceptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.team-exception-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exception-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.exception-item-row:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Transaction Type Filter Bar & Compact Administrative Rows (Non-AI-Slop)
   ========================================================================== */

.transaction-type-filter-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  flex-shrink: 0;
  min-height: auto;
}

.tx-filter-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tx-filter-chip:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.tx-filter-chip.active {
  background: var(--tappa-orange-subtle);
  border-color: var(--tappa-orange);
  color: var(--tappa-orange);
  font-weight: 700;
}

.tx-filter-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
}

/* Compact Transaction Log (Waivers, Claims, Conversions) in Horizontal Rail */
.compact-tx-log {
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  height: 104px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 2px solid transparent;
  user-select: none;
}

.compact-tx-log:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-default);
}

.compact-tx-log.selected {
  background: var(--tappa-orange-subtle);
  border: 1px solid var(--tappa-orange);
  border-top: 2px solid var(--tappa-orange);
}

.compact-tx-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.compact-tx-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 72px;
}

.compact-tx-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.12rem 0.38rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.compact-tx-badge.waive {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.compact-tx-badge.claim {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.compact-tx-badge.conversion {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.compact-tx-badge.signing {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.compact-tx-team {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.compact-tx-title {
  font-size: 0.78rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-tx-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.trade-cba-exception-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-xs);
  background: var(--accent-emerald-dim);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
}

/* ==========================================================================
   Trade Machine: Incoming Assets (Acquiring) Tray
   ========================================================================== */

.trade-incoming-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trade-incoming-tray {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 60px;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.5rem;
}

.trade-incoming-item {
  background: var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trade-incoming-from-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   TEAMMATE (OTHER PLAYERS) USAGE & TACTICAL DIMENSIONS MATRIX
   Strict Anti-Slop, High-Density Athletic Analytics Design
   ========================================================================== */

.teammate-usage-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.teammate-usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.teammate-usage-table-wrap {
  overflow-x: auto;
  margin: 0 -0.25rem;
}

.teammate-usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.73rem;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-sans);
}

.teammate-usage-table th {
  text-align: left;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-app);
}

.teammate-usage-table th.num-col,
.teammate-usage-table td.num-col {
  text-align: right;
  font-family: var(--font-mono);
}

.teammate-usage-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.teammate-usage-table tr:hover td {
  background: var(--bg-surface-elevated);
}

.trajectory-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.4rem;
  border-radius: 2px;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-mono);
}

.trajectory-chip.expansion {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.trajectory-chip.compression {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Starting 5 Lineup Matrix */
.starting-five-matrix-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 900px) {
  .starting-five-matrix-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

.s5-slot-card {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.s5-slot-card.new-addition {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.03);
}

.s5-pos-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--accent-blue);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  display: inline-block;
  width: fit-content;
}

.spacing-tier-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.12rem 0.35rem;
  border-radius: 2px;
  display: inline-block;
  width: fit-content;
}

.spacing-tier-badge.tier-elite {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.spacing-tier-badge.tier-capable {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.spacing-tier-badge.tier-low {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.spacing-tier-badge.tier-none {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

/* Tactical Dimensions Accordion & Bento Layout */
.tactical-dim-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tactical-dim-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tactical-dim-tab {
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tactical-dim-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-default);
}

.tactical-dim-tab.active {
  color: var(--tappa-orange);
  background: var(--tappa-orange-subtle);
  border-color: var(--tappa-orange-border);
}

.tactical-dim-panel {
  display: none;
  animation: fadeIn 0.15s ease-out;
}

.tactical-dim-panel.active {
  display: block;
}

.tactical-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.tactical-bento-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bento-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.35rem;
}

.bento-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bento-score-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.bento-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.bento-diag-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.35;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 0.4rem 0.55rem;
  margin-top: 0.2rem;
}

/* Injury Simulator Module Styles */
.injury-simulator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.injury-selector-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.65rem 0.85rem;
}

.injury-select-dropdown {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  outline: none;
  cursor: pointer;
  min-width: 240px;
}

.injury-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}

@media (max-width: 860px) {
  .injury-hero-grid {
    grid-template-columns: 1fr;
  }
}

.injury-beneficiary-card {
  background: var(--bg-app);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-xs);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.injury-loss-card {
  background: var(--bg-app);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-xs);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.surge-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.5rem;
}

.surge-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.surge-metric-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.surge-metric-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

.surge-delta-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.model-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-xs);
  padding: 0.1rem 0.4rem;
  cursor: help;
}

/* ==========================================================================
   Draft Pick Builder & Asset Trading Styles
   ========================================================================== */

.btn-add-pick {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs, 3px);
  border: 1px dashed var(--tappa-orange-border);
  background: var(--tappa-orange-subtle);
  color: var(--tappa-orange);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.btn-add-pick:hover {
  background: var(--tappa-orange);
  border-color: var(--tappa-orange);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.4);
}

.pick-builder-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pick-builder-modal {
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border-default, #334155);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pick-builder-header {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle, #334155);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface-elevated, #0f172a);
}

.pick-builder-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pick-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pick-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pick-select-input,
.pick-text-input {
  background: var(--bg-surface-elevated, #0f172a);
  border: 1px solid var(--border-default, #334155);
  color: var(--text-primary, #f8fafc);
  font-size: 0.8rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-xs, 4px);
  outline: none;
}

.pick-select-input:focus,
.pick-text-input:focus {
  border-color: var(--accent-blue, #38bdf8);
}

/* Pick Badges & Protection Tags */
.pick-badge-prot {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber, #f59e0b);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pick-badge-swap {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.pick-badge-unprot {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pick-badge-cash {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue, #38bdf8);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Contract Incentives Badges */
.incentive-badge-likely {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--accent-blue, #38bdf8);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 2px;
  padding: 0.08rem 0.28rem;
  font-weight: 600;
}

.incentive-badge-unlikely {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--accent-amber, #f59e0b);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 2px;
  padding: 0.08rem 0.28rem;
  font-weight: 600;
}

.trade-kicker-badge {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 2px;
  padding: 0.08rem 0.28rem;
  font-weight: 700;
}

/* Moves Tracker Draft Capital Block */
.moves-tracker-picks-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--bg-surface-elevated, #0f172a);
  border: 1px solid var(--border-subtle, #334155);
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.moves-tracker-pick-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  flex-wrap: wrap;
}

/* Executive Brief Mode */
.trade-mode-segmented-control {
  display: inline-flex;
  background: var(--bg-surface-elevated, #0f172a);
  border: 1px solid var(--border-default, #334155);
  border-radius: var(--radius-sm, 4px);
  padding: 2px;
}

.trade-mode-segmented-btn {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  transition: all 0.15s ease;
}

.trade-mode-segmented-btn.active {
  background: var(--tappa-orange);
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   TEAM DOSSIER TABBED NAVIGATION (Section 1: Multi-Team Impact)
   ========================================================================== */
.team-dossier-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.team-dossier-tab-bar {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.team-dossier-tab-bar::-webkit-scrollbar {
  display: none;
}

.team-dossier-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  user-select: none;
  text-align: left;
  min-width: 200px;
}

.team-dossier-tab-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.team-dossier-tab-btn.active {
  background: var(--bg-surface-elevated);
  border-color: var(--border-default);
  border-bottom: 2px solid var(--accent-blue);
  color: var(--text-primary);
}

.team-dossier-tab-btn.active::after {
  display: none;
}

.team-dossier-tab-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-dossier-tab-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.team-dossier-tab-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.2;
}

.team-dossier-tab-code {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
}

.team-dossier-tab-fullname {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.team-dossier-tab-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.team-dossier-panels {
  width: 100%;
}

.team-dossier-panel {
  display: none;
  width: 100%;
}

.team-dossier-panel.active {
  display: block;
  animation: fadeInTab 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   TRADE BRIEF 13-SECTION REDESIGN STYLES
   ========================================================================== */

.trade-brief-redesign {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.trade-brief-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.brief-card-section {
  display: flex;
  flex-direction: column;
}

.brief-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.brief-section-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-emerald, #10b981);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-xs, 3px);
  line-height: 1.2;
}

.brief-section-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.brief-section-subtitle {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.trade-verdict-card {
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.trade-verdict-card:hover {
  border-color: var(--border-focus);
}

.tradeoff-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .tradeoff-matrix-grid {
    grid-template-columns: 1fr;
  }
}

.tradeoff-column {
  transition: border-color 0.15s ease;
}

.lineup-toggle-btn.active {
  background: var(--bg-surface-elevated) !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   OFFSEASON TRANSACTION SEQUENCE STRIP (Context Timeline)
   ========================================================================== */
.offseason-seq-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.offseason-seq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

.offseason-seq-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.offseason-seq-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.offseason-seq-subtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.offseason-seq-team-selector {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}

.seq-team-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.seq-team-tab-btn:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.seq-team-tab-btn.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  border-color: rgba(59, 130, 246, 0.4);
}

.offseason-seq-track {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 6px 4px 10px 4px;
  scroll-behavior: smooth;
}

.offseason-seq-track::-webkit-scrollbar {
  height: 4px;
}
.offseason-seq-track::-webkit-scrollbar-track {
  background: var(--bg-app);
  border-radius: 2px;
}
.offseason-seq-track::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 2px;
}

.offseason-seq-card {
  width: 290px;
  min-width: 290px;
  max-width: 290px;
  min-height: 200px;
  flex: 0 0 290px;
  box-sizing: border-box;
  background: var(--bg-app);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  position: relative;
}

.offseason-seq-card:hover {
  border-color: var(--border-focus);
  background: var(--bg-surface-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.offseason-seq-card.is-current {
  border: 1px solid var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
}

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

.seq-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  line-height: 1.2;
}

.seq-badge.prior {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.seq-badge.current {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.5);
  font-weight: 900;
}

.seq-badge.subsequent {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.seq-date-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.seq-deal-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seq-roster-ledger {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.55rem;
  min-height: 52px;
  justify-content: center;
}

.seq-roster-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.71rem;
  line-height: 1.3;
}

.seq-roster-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.08rem 0.32rem;
  border-radius: 2px;
  min-width: 24px;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.seq-roster-tag.in {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.seq-roster-tag.out {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.28);
}

.seq-roster-names {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.seq-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border-subtle);
}

.seq-view-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-blue);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

.seq-view-link:hover {
  text-decoration: underline;
  color: var(--accent-emerald);
}

.seq-arrow-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 1.1rem;
  flex: 0 0 auto;
  user-select: none;
}



