/* Site-owned sidebar styles shared by Daily DFS Pickem and Prediction Markets.
 * Original DFS profile/toggle rules extracted from site-2026.css unchanged.
 * Product callers supply their own balance and deposit destination.
 */
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .sidebar-toggle.rtfs-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--text-secondary);
  flex: 0 0 32px;
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .sidebar-toggle.rtfs-btn:hover,
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .sidebar-toggle.rtfs-btn:focus {
  border-color: var(--border-light);
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .sidebar-toggle.rtfs-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .dl-sidebar-profile {
  display: block;
  padding: 14px 12px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .dl-sidebar-profile-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .team-icon.avatar {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red, var(--accent-red)), var(--red-dark, var(--accent-red-dim)));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .dl-profile-info {
  min-width: 0;
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .team-sub.power-player-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: 3px;
  padding: 2px 7px;
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 4px;
  background: rgba(245,158,11,.15);
  color: var(--accent-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .team-sub.power-player-badge svg {
  flex-shrink: 0;
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .team-sub.power-player-badge span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rt-app.light :is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .team-sub.power-player-badge,
html.light :is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .team-sub.power-player-badge,
body.light :is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .team-sub.power-player-badge,
[data-theme="light"] :is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .team-sub.power-player-badge {
  background: #fef9c3;
  border-color: #fde68a;
  color: #92400e;
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .profile-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .profile-balance {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .profile-balance-label {
  margin-bottom: 1px;
  color: var(--text-tertiary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .profile-balance-value {
  color: var(--accent-green);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .deposit-btn.rtfs-btn {
  min-height: 0;
  padding: 7px 14px;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: var(--bg-tertiary);
  box-shadow: none;
  color: var(--text-primary);
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
}
html.light :is(.single-player-shell, .prediction-market-theme) .deposit-btn.rtfs-btn,
body.light :is(.single-player-shell, .prediction-market-theme) .deposit-btn.rtfs-btn,
[data-theme="light"] :is(.single-player-shell, .prediction-market-theme) .deposit-btn.rtfs-btn {
  color: #fff;
}
html.light :is(.single-player-shell, .prediction-market-theme) .deposit-btn.rtfs-btn,
body.light :is(.single-player-shell, .prediction-market-theme) .deposit-btn.rtfs-btn,
[data-theme="light"] :is(.single-player-shell, .prediction-market-theme) .deposit-btn.rtfs-btn {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
}
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .deposit-btn.rtfs-btn:hover,
:is(.draft-lobby-layout, .prediction-market-theme, .shootout-home-page) .deposit-btn.rtfs-btn:focus {
  border-color: var(--accent-green);
  background: var(--accent-green);
  color: #fff;
}
html.light :is(.single-player-shell, .prediction-market-theme) .deposit-btn.rtfs-btn:hover,
html.light :is(.single-player-shell, .prediction-market-theme) .deposit-btn.rtfs-btn:focus,
body.light :is(.single-player-shell, .prediction-market-theme) .deposit-btn.rtfs-btn:hover,
body.light :is(.single-player-shell, .prediction-market-theme) .deposit-btn.rtfs-btn:focus,
[data-theme="light"] :is(.single-player-shell, .prediction-market-theme) .deposit-btn.rtfs-btn:hover,
[data-theme="light"] :is(.single-player-shell, .prediction-market-theme) .deposit-btn.rtfs-btn:focus {
  border-color: var(--accent-green);
  background: var(--accent-green);
  color: #fff;
}
@media (min-width: 768px) {
  #sidebar.collapsed .dl-sidebar-profile,
  .pm-theme-sidebar.is-collapsed .dl-sidebar-profile {
    display: block;
    padding: 10px 8px 12px;
    margin-bottom: 0;
  }
  #sidebar.collapsed .dl-sidebar-profile-inner,
  .pm-theme-sidebar.is-collapsed .dl-sidebar-profile-inner {
    justify-content: center;
    margin-bottom: 0;
  }
  #sidebar.collapsed .dl-profile-info,
  #sidebar.collapsed .profile-balance-row,
  .pm-theme-sidebar.is-collapsed .dl-profile-info,
  .pm-theme-sidebar.is-collapsed .profile-balance-row {
    display: none;
  }
}

/* Core site primitives already supply these defaults on DFS. Define them here
 * for the Prediction Markets shell instead of importing unrelated site layouts. */
.prediction-market-theme .pm-theme-sidebar {
  --border:#262a35; --border-light:#2f3442; --text-primary:#fff;
  --text-secondary:#9ca3af; --text-tertiary:#6b7280; --bg-tertiary:#1a1d26;
  --accent-green:#22c55e; --accent-blue:#3b82f6; --accent-gold:#f59e0b;
  --red:#C8102E; --red-dark:#9B0C22;
  color:var(--sp-nav-text); font-family:Inter,sans-serif;
  padding-top:0; overflow:hidden;
}
html[data-theme="light"] .prediction-market-theme .pm-theme-sidebar,
html.light .prediction-market-theme .pm-theme-sidebar {
  --border:#e2e5eb; --border-light:#d1d5db; --text-primary:#0f172a;
  --text-secondary:#475569; --text-tertiary:#6b7280; --bg-tertiary:#f0f2f6;
  --accent-green:#16a34a; --accent-blue:#2563eb; --accent-gold:#d97706;
}
.prediction-market-theme .sidebar-toggle-row { display:flex; justify-content:flex-end; margin-bottom:12px; padding:0 2px; }
.prediction-market-theme .pm-theme-sidebar .sidebar-inner { flex:1; overflow-y:auto; overflow-x:hidden; width:240px; }
.prediction-market-theme .pm-theme-sidebar.is-collapsed .sidebar-inner { width:48px; }
.prediction-market-theme .sidebar-toggle { align-items:center; justify-content:center; cursor:pointer; font-family:Inter,Arial,sans-serif; font-size:12px; font-weight:800; }
.prediction-market-theme .sidebar-toggle svg { transition:transform .15s ease; }
.prediction-market-theme .dl-sidebar-profile .team-icon { display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.prediction-market-theme .dl-sidebar-profile .team-name { color:var(--sp-nav-text); font-family:'Barlow Condensed',sans-serif; font-size:16px; font-weight:700; letter-spacing:.5px; }
.prediction-market-theme .deposit-btn.rtfs-btn { display:inline-flex; align-items:center; justify-content:center; font-family:Inter,Arial,sans-serif; text-decoration:none; cursor:pointer; white-space:nowrap; }
.prediction-market-theme .pm-theme-sidebar.is-collapsed .sidebar-toggle-row { justify-content:center; }
.prediction-market-theme .dl-sidebar-profile > .pm-test-only { display:block; margin-top:10px; }
.prediction-market-theme .dl-sidebar-profile { color:var(--sp-nav-text); }
.prediction-market-theme .rtfs-customer-avatar { position:relative; overflow:hidden; isolation:isolate; flex-shrink:0; }
.prediction-market-theme .rtfs-customer-avatar > img { position:absolute; inset:0; display:block; width:100%; height:100%; max-width:none; border-radius:inherit; object-fit:cover; }
.prediction-market-theme .rtfs-customer-avatar > img[hidden] { display:none; }
.prediction-market-theme .rtfs-customer-avatar.has-image { background:var(--sp-nav-hover)!important; }
.prediction-market-theme .rtfs-customer-avatar.has-image > .rtfs-customer-avatar-initials { visibility:hidden; }
@media(min-width:1000px) {
  .prediction-market-theme .sidebar-toggle { display:flex; }
  .prediction-market-theme .pm-theme-sidebar.is-collapsed { padding-left:0; padding-right:0; }
}
