/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700;800&display=swap');

/* ── CSS Variables ── */
:root, [data-theme="dark"] {
  --bg-primary:    #0a0b0e;
  --bg-secondary:  #12141a;
  --bg-tertiary:   #1a1d26;
  --bg-hover:      #232732;
  --border:        #262a35;
  --border-light:  #2f3442;
  --text-primary:  #ffffff;
  --text-secondary:#9ca3af;
  --text-tertiary: #6b7280;
  --accent-red:    #ef4444;
  --accent-red-dim:#dc2626;
  --accent-green:  #22c55e;
  --accent-gold:   #f59e0b;
  --accent-blue:   #3b82f6;
  --accent-purple: #a855f7;
}
html.light,
body.light,
.rt-app.light,
[data-theme="light"] {
  --bg-primary:    #f7f8fa;
  --bg-secondary:  #ffffff;
  --bg-tertiary:   #f0f2f6;
  --bg-hover:      #e6e9ef;
  --border:        #e2e5eb;
  --border-light:  #d1d5db;
  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-tertiary: #6b7280;
  --accent-red:    #dc2626;
  --accent-red-dim:#b91c1c;
  --accent-green:  #16a34a;
  --accent-gold:   #d97706;
  --accent-blue:   #2563eb;
  --accent-purple: #9333ea;
}
html { transition: background-color .2s, color .2s; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Override Bootstrap body defaults for this page */
body {
  font-family: 'Inter', sans-serif !important;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

/* Sidebar additions for draft-lobby counts and sport-specific accents */
.draft-lobby-layout .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;
}
.draft-lobby-layout .sidebar-toggle.rtfs-btn:hover,
.draft-lobby-layout .sidebar-toggle.rtfs-btn:focus {
  border-color: var(--border-light);
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.draft-lobby-layout .sidebar-toggle.rtfs-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.draft-lobby-layout .dl-sidebar-profile {
  display: block;
  padding: 14px 12px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.draft-lobby-layout .dl-sidebar-profile-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
}
.draft-lobby-layout .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;
}
.draft-lobby-layout .dl-profile-info {
  min-width: 0;
}
.draft-lobby-layout .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;
}
.draft-lobby-layout .team-sub.power-player-badge svg {
  flex-shrink: 0;
}
.draft-lobby-layout .team-sub.power-player-badge span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rt-app.light .draft-lobby-layout .team-sub.power-player-badge,
html.light .draft-lobby-layout .team-sub.power-player-badge,
body.light .draft-lobby-layout .team-sub.power-player-badge,
[data-theme="light"] .draft-lobby-layout .team-sub.power-player-badge {
  background: #fef9c3;
  border-color: #fde68a;
  color: #92400e;
}
.draft-lobby-layout .profile-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.draft-lobby-layout .profile-balance {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.draft-lobby-layout .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;
}
.draft-lobby-layout .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;
}
.draft-lobby-layout .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;
}
.draft-lobby-layout .deposit-btn.rtfs-btn:hover,
.draft-lobby-layout .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 {
    display: block;
    padding: 10px 8px 12px;
    margin-bottom: 0;
  }
  #sidebar.collapsed .dl-sidebar-profile-inner {
    justify-content: center;
    margin-bottom: 0;
  }
  #sidebar.collapsed .dl-profile-info,
  #sidebar.collapsed .profile-balance-row {
    display: none;
  }
}
.dl-sidebar-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-tertiary); }
.dl-sidebar-count {
  margin-left: auto; font-size: 10px; font-weight: 600;
  color: var(--text-tertiary); background: var(--bg-hover);
  border: 1px solid var(--border-light); padding: 1px 7px; border-radius: 10px;
}
#dl-sidebar-filling { color: #f97316; }
#dl-sidebar-filling .dl-sidebar-icon { color: #f97316; }
#dl-sidebar-filling .dl-sidebar-count { color: #f97316; background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.25); }
#dl-sidebar-filling.active { background: rgba(249,115,22,.12); color: #f97316; }
#dl-sidebar-filling.active .dl-sidebar-icon { color: #f97316; }
#dl-sidebar-upcoming.active { background: rgba(239,68,68,.1); color: var(--accent-red); }
#dl-sidebar-upcoming.active .dl-sidebar-icon { color: var(--accent-red); }
#dl-sidebar-featured.active { background: rgba(245,158,11,.1); color: var(--accent-gold); }
#dl-sidebar-featured.active .dl-sidebar-icon { color: var(--accent-gold); }
.dl-fmt-filter.active { background: linear-gradient(90deg,#C8102E14,transparent); color: var(--text-primary) !important; }
.dl-fmt-filter.active .dl-sidebar-count { color: var(--text-secondary); }
.draft-lobby-layout .nav-item.disabled,
.draft-lobby-layout .nav-item[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed;
}

/* ── MAIN ── */
.draft-lobby-layout {
  background: var(--bg);
  color: var(--text);
  align-items: stretch;
}
.draft-lobby-layout #sidebar {
  background: var(--surface);
}
.draft-lobby-main {
  overflow: auto;
  background: var(--bg);
}
.draft-lobby-layout .page-header {
  margin: 0 0 14px;
  padding: 0;
  border-bottom: 0;
}
.draft-lobby-layout .page-title {
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
}
.draft-lobby-layout .page-header-row {
  align-items: center;
  flex-wrap: nowrap;
}
.draft-lobby-layout .page-title-group {
  flex: 1 1 auto;
  min-width: 0;
}
.draft-lobby-layout .page-actions {
  align-self: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-width: max-content;
}
.draft-lobby-layout .page-actions .rtfs-btn {
  flex-shrink: 0;
}
.draft-lobby-layout .rtfs-btn-label-short,
.draft-lobby-layout .dl-action-label-short {
  display: none;
}
.quick-pill-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.quick-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.quick-pill-row-empty {
  display: none;
}
.quick-pill-overflow-hidden {
  display: none !important;
}
.quick-pill-row .featured-pill,
.quick-pill-row .dynasty-pill {
  flex: 1 1 520px;
  min-width: 0;
}
.quick-pill-row .drafts-pill {
  flex: 0 1 275px;
}
.quick-pill-row .entries-pill {
  flex: 0 0 auto;
}
.quick-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 8px 14px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
}
.quick-pill:hover,
.quick-pill:focus {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  text-decoration: none;
}
.quick-pill:focus-visible {
  outline: 2px solid rgba(239,68,68,.45);
  outline-offset: 2px;
}
.quick-pill.active {
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.4);
  color: var(--accent-red);
}
.quick-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}
.quick-pill-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 14px;
}
.quick-pill-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}
.quick-pill-label {
  color: var(--text-tertiary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
  line-height: 1.2;
  text-transform: uppercase;
}
.quick-pill-label-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.quick-pill-nav-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-tertiary);
  flex-shrink: 0;
  font-size: 8px;
  line-height: 1;
  cursor: pointer;
}
.quick-pill-nav-btn[hidden] {
  display: none;
}
.quick-pill-nav-btn:hover,
.quick-pill-nav-btn:focus {
  background: transparent;
  color: var(--text-primary);
}
.quick-pill-sublabel {
  color: var(--text-tertiary);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 1.2;
  text-transform: uppercase;
}
.quick-pill-bold {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
}
.quick-pill-count,
.quick-pill-total {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.quick-pill-subval {
  color: var(--text-primary);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.quick-pill-meta {
  color: var(--text-secondary);
  font-size: 11px;
}
.quick-pill-count-label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.quick-pill-count-label .quick-pill-total {
  line-height: 1;
}
.quick-pill-count-label .quick-pill-sublabel {
  white-space: nowrap;
}
.quick-pill-divider {
  width: 1px;
  height: 28px;
  flex-shrink: 0;
  background: var(--border-light);
}
.quick-pill-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quick-pill-arrow {
  flex-shrink: 0;
  margin-left: 2px;
  color: var(--text-tertiary);
}
.quick-pill:hover .quick-pill-arrow,
.quick-pill:focus .quick-pill-arrow {
  color: var(--text-primary);
}
.quick-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  margin-left: 2px;
  padding: 5px 12px;
  border: 0;
  border-radius: 7px;
  background: var(--accent-red);
  color: #fff;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
}
.quick-pill-btn:hover,
.quick-pill-btn:focus {
  color: #fff;
  opacity: .85;
  text-decoration: none;
}
.quick-pill-btn.disabled,
.quick-pill-btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.15);
}
.quick-pill-btn.disabled:hover,
.quick-pill-btn[aria-disabled="true"]:hover,
.quick-pill-btn.disabled:focus,
.quick-pill-btn[aria-disabled="true"]:focus {
  opacity: .55;
}
.quick-pill-btn.blue {
  background: #3b82f6;
}
.featured-pill {
  border-color: rgba(245,158,11,.3);
  cursor: default;
}
.featured-pill .quick-pill-label {
  color: #f59e0b;
}
.featured-pill .quick-pill-icon {
  color: #f59e0b;
}
.featured-pill .quick-pill-meta {
  margin-top: 1px;
  white-space: nowrap;
}
.quick-pill-prize {
  color: var(--accent-green);
}
.dynasty-pill {
  border-color: rgba(59,130,246,.3);
}
.dynasty-pill .quick-pill-label {
  color: #3b82f6;
}
.dynasty-pill .quick-pill-icon {
  color: #60a5fa;
}
.quick-pill-dynasty-accent {
  color: #60a5fa;
}
.entries-pill {
  border-color: rgba(34,197,94,.3);
}
.entries-pill .quick-pill-icon-box {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  color: #22c55e;
}
.drafts-pill .quick-pill-icon-box {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  color: #ef4444;
}
@media (max-width: 920px) {
  .draft-lobby-layout .page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .draft-lobby-layout .page-actions {
    gap: 6px;
    margin-top: 0;
  }
  .draft-lobby-layout .page-actions .rtfs-btn {
    min-height: 32px;
    padding: 6px 10px;
  }
  .draft-lobby-layout .rtfs-btn-label-full,
  .draft-lobby-layout .dl-action-label-full {
    display: none;
  }
  .draft-lobby-layout .rtfs-btn-label-short,
  .draft-lobby-layout .dl-action-label-short {
    display: inline;
  }
}
@media (max-width: 760px) {
  .draft-lobby-layout .page-header-row {
    gap: 8px;
  }
  .draft-lobby-layout .page-title {
    font-size: 25px;
  }
  .draft-lobby-layout .page-actions {
    gap: 5px;
  }
  .draft-lobby-layout .page-actions .rtfs-btn {
    padding: 6px 8px;
  }
  .quick-pill-bar {
    display: none;
  }
}
@media (max-height: 500px) and (max-width: 950px) {
  .quick-pill-bar {
    display: none;
  }
}
@media (max-width: 560px) {
  .draft-lobby-layout .draft-lobby-main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .draft-lobby-layout .page-header-row {
    gap: 6px;
  }
  .draft-lobby-layout .page-eyebrow {
    font-size: 10px;
    margin-bottom: 1px;
  }
  .draft-lobby-layout .page-title {
    font-size: 24px;
  }
  .draft-lobby-layout .page-actions {
    gap: 4px;
  }
  .draft-lobby-layout .page-actions .rtfs-btn {
    min-height: 30px;
    gap: 0;
    padding: 5px 7px;
    font-size: 11px;
  }
  .draft-lobby-layout .page-actions .rtfs-btn svg {
    display: none;
  }
}
@media (max-width: 360px) {
  .draft-lobby-layout .draft-lobby-main {
    padding-left: 10px;
    padding-right: 10px;
  }
  .draft-lobby-layout .page-title {
    font-size: 23px;
  }
  .draft-lobby-layout .page-actions .rtfs-btn {
    padding-left: 6px;
    padding-right: 6px;
  }
}
.draft-lobby-filter-row,
.draft-lobby-chip-row,
.draft-lobby-main .filter-row {
  border-bottom: 0 !important;
  padding: 0;
  margin-bottom: 10px;
}
.draft-lobby-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.dl-chip-primary,
.dl-chip-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.dl-chip-primary {
  flex: 1 1 520px;
  flex-wrap: nowrap;
}
.dl-chip-secondary {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  max-width: 100%;
  margin-left: 0;
}
.dl-chip-primary .dl-filter-chip {
  flex: 0 1 auto;
  min-width: 0;
}
.dl-chip-primary .dl-filter-chip > span:first-child,
#dl-chip-sort-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.draft-lobby-search { padding: 8px 10px; }
.draft-lobby-search svg { color: var(--text3); }
.dl-search-clear {
  background: var(--surface); border: none; color: var(--text3);
  border-radius: 50%; width: 20px; height: 20px; min-height: 0;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; font-size: 11px; line-height: 1; padding: 0; transition: all .15s;
}
.dl-search-clear:hover { background: var(--border2); color: var(--text); }
.dl-search-clear.visible { display: flex; }
/* Filter chips */
.dl-filter-chip {
  min-height: 0;
  padding: 8px 14px; background: var(--bg-secondary);
  border: 1px solid var(--border); color: var(--text-secondary);
  border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; white-space: nowrap; position: relative;
  font-family: inherit;
}
.dl-filter-chip:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.dl-filter-chip.active { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.4); color: var(--accent-red); }
.dl-filter-chip svg { flex-shrink: 0; transition: transform .15s; }
.dl-filter-chip.open svg.dl-chip-caret { transform: rotate(180deg); }
/* Chip dropdown panel */
.dl-chip-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 6px; min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 200; display: none; flex-direction: column; gap: 1px;
}
.dl-chip-dropdown.open { display: flex; }
.dl-chip-option {
  min-height: 0;
  padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; transition: all .1s;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: transparent; border: none; font-family: inherit; text-align: left;
  white-space: nowrap;
}
.dl-chip-option:hover { background: var(--bg-hover); color: var(--text-primary); }
.dl-chip-option.selected { color: var(--accent-red); background: rgba(239,68,68,.08); }
.dl-chip-option.selected::after {
  content: '✓'; font-size: 11px; font-weight: 700; color: var(--accent-red);
}
/* Spacer and view toggle */
.dl-filter-spacer { display: none; }
.dl-filter-select {
  padding: 9px 14px; background: var(--bg-secondary);
  border: 1px solid var(--border); color: var(--text-primary);
  border-radius: 8px; font-size: 13px; font-family: inherit;
  cursor: pointer; outline: none; transition: border-color .15s; display: none;
}
.dl-view-toggle {
  display: inline-flex; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px;
  flex-shrink: 0;
}
#dl-chip-sort {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 230px;
}
.dl-view-btn {
  width: 32px; height: 30px; min-height: 0; padding: 0; gap: 0; background: transparent; border: none;
  color: var(--text-tertiary); border-radius: 5px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.dl-view-btn:hover { color: var(--text-primary); }
.dl-view-btn.active { background: var(--bg-tertiary); color: var(--text-primary); }

@media (max-width: 1199px) {
  .dl-chip-secondary {
    width: 100%;
  }
  #dl-chip-sort {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .draft-lobby-chip-row,
  .dl-chip-primary,
  .dl-chip-secondary {
    gap: 5px;
  }
  .dl-chip-primary {
    flex-basis: 100%;
  }
  .dl-chip-primary .dl-filter-chip,
  .dl-chip-secondary .dl-filter-chip {
    padding: 7px 8px;
    gap: 4px;
    font-size: 12px;
  }
  .dl-chip-secondary {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .dl-chip-primary,
  .dl-chip-secondary {
    gap: 4px;
  }
  .dl-chip-primary .dl-filter-chip,
  .dl-chip-secondary .dl-filter-chip {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 11px;
  }
}

.dl-table-wrap { overflow-x: hidden; width: 100%; }
.dl-table {
  width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px;
  display: none; /* JS shows it */
}
.dl-table thead { background: var(--bg-tertiary); border-bottom: 1px solid var(--border); }
.dl-table th {
  text-align: left; padding: 12px 12px;
  font-size: 10px; font-weight: 700; color: var(--text-tertiary);
  letter-spacing: 1px; text-transform: uppercase; overflow: hidden; white-space: nowrap;
}
.dl-table tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
.dl-table tbody tr:last-child { border-bottom: none; }
.dl-table tbody tr:nth-child(even) { background: rgba(255,255,255,.018); }
.dl-table tbody tr:hover { background: var(--bg-tertiary) !important; }
.dl-table td { padding: 14px 12px; vertical-align: middle; overflow: hidden; white-space: nowrap; color: var(--text-primary); }
.dl-table td.desc { white-space: normal; color: var(--text-secondary); max-width: 280px; }
.dl-table .dl-col-money,
.dl-table .dl-col-status {
  display: none;
}
.dl-table .dl-col-league { width: 32%; min-width: 0; }
.dl-table .dl-col-entry { width: 60px; }
.dl-table .dl-col-draft { width: 112px; }
.dl-table .dl-col-open { width: 84px; }
.dl-table .dl-col-format { width: 108px; }
.dl-table .dl-col-prize { width: 96px; }
.dl-table .dl-col-pool { width: 42px; }
.dl-table .dl-col-action { width: 104px; }
[data-theme="light"] .dl-table tbody tr:nth-child(even) { background: rgba(0,0,0,.025); }

/* league col */
.dl-game-col { display: flex; align-items: center; gap: 10px; }
.dl-game-pill-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.dl-game-pill-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 100%; }
.dl-badge-row { display: flex; gap: 3px; align-items: center; }
.dl-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 5px;
  font-size: 10px; font-weight: 800; line-height: 1;
  flex-shrink: 0;
}
.dl-badge-auction { background: rgba(245,158,11,.15); color: var(--accent-gold); border: 1px solid rgba(245,158,11,.3); }
.dl-badge-novice  { background: rgba(168,85,247,.15);  color: var(--accent-purple); border: 1px solid rgba(168,85,247,.3); }
.dl-badge-trading { background: rgba(59,130,246,.15);  color: var(--accent-blue);   border: 1px solid rgba(59,130,246,.3); }
.dl-badge-al      { background: rgba(239,68,68,.15);   color: var(--accent-red);    border: 1px solid rgba(239,68,68,.3); }
.dl-badge-nl      { background: rgba(34,197,94,.15);   color: var(--accent-green);  border: 1px solid rgba(34,197,94,.3); }
.dl-sport-icon {
  width: 30px; height: 30px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  background: var(--bg-hover); border: 1px solid var(--border-light);
}
.sport-fa-icon {
  display: block; color: var(--text-secondary); line-height: 1;
}
.dl-game-pill {
  display: inline-flex; align-items: center;
  max-width: 100%;
  padding: 5px 11px; border-radius: 6px;
  font-weight: 700; font-size: 11px; letter-spacing: .3px;
}
.dl-game-pill a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pill-championship { background: rgba(245,158,11,.14); color: #fbbf24; border: 1px solid rgba(245,158,11,.25); }
.pill-dynasty     { background: rgba(100,100,120,.14); color: #9ca3af; border: 1px solid rgba(100,100,120,.25); }
.pill-bestball     { background: rgba(34,197,94,.14);   color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.pill-allamerican  { background: rgba(168,85,247,.14);  color: #c084fc; border: 1px solid rgba(168,85,247,.25); }
.pill-draftmasters { background: rgba(14,165,233,.14);  color: #38bdf8; border: 1px solid rgba(14,165,233,.25); }
.pill-highstakes   { background: rgba(239,68,68,.14);   color: #f87171; border: 1px solid rgba(239,68,68,.25); }
.pill-rtffc        { background: rgba(249,115,22,.14);  color: #fb923c; border: 1px solid rgba(249,115,22,.25); }
.pill-touchdown    { background: rgba(249,115,22,.14);  color: #fb923c; border: 1px solid rgba(249,115,22,.25); }
.pill-standard      { background: rgba(59,130,246,.14);  color: #60a5fa; border: 1px solid rgba(59,130,246,.25); }

.dl-league-type-icon {
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 18px rgba(0,0,0,.2);
}
.dl-sport-icon.dl-league-type-icon { width: 38px; height: 38px; border-radius: 8px; font-size: 18px; }
.card-sport-icon.dl-league-type-icon { width: 38px; height: 38px; border-radius: 8px; font-size: 18px; }
.li-modal-icon.dl-league-type-icon { border-radius: 10px; font-size: 21px; }
.dl-league-type-icon .sport-fa-icon { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.dl-league-type-icon.pill-championship { background: linear-gradient(135deg,#8f5f00,#d59000 56%,#f6c34a); border-color: rgba(245,158,11,.48); box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 8px 18px rgba(245,158,11,.22); }
.dl-league-type-icon.pill-dynasty { background: linear-gradient(135deg,#334155,#64748b); border-color: rgba(148,163,184,.35); }
.dl-league-type-icon.pill-bestball { background: linear-gradient(135deg,#126b33,#16a34a 58%,#4ade80); border-color: rgba(34,197,94,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px rgba(34,197,94,.2); }
.dl-league-type-icon.pill-allamerican { background: linear-gradient(135deg,#1d4ed8,#2563eb 58%,#60a5fa); border-color: rgba(96,165,250,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px rgba(59,130,246,.2); }
.dl-league-type-icon.pill-draftmasters { background: linear-gradient(135deg,#0369a1,#0ea5e9 58%,#38bdf8); border-color: rgba(56,189,248,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px rgba(14,165,233,.2); }
.dl-league-type-icon.pill-highstakes { background: linear-gradient(135deg,#991b1b,#dc2626 58%,#f87171); border-color: rgba(248,113,113,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px rgba(239,68,68,.2); }
.dl-league-type-icon.pill-rtffc,
.dl-league-type-icon.pill-touchdown { background: linear-gradient(135deg,#9a3f00,#c45a00 56%,#f97316); border-color: rgba(249,115,22,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px rgba(249,115,22,.2); }
.dl-league-type-icon.pill-standard { background: linear-gradient(135deg,#1d4ed8,#2563eb 58%,#60a5fa); border-color: rgba(96,165,250,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px rgba(59,130,246,.2); }

/* entry col */
.dl-entry-price { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; line-height: 1; }
.dl-entry-sub   { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; font-weight: 500; }
.dl-entry-format { display: none; }
.dl-entry-format .dl-fmt-line,
.dl-entry-format .dl-fmt-sub {
  display: inline;
  color: var(--text-tertiary) !important;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.05;
}
.dl-entry-format .dl-fmt-sub:before { content: " / "; }

/* draft time */
.dl-time-line   { color: var(--text-primary); font-weight: 600; font-size: 13px; }
.dl-time-sub    { color: var(--text-tertiary); font-size: 11px; margin-top: 3px; font-weight: 500; }
.dl-wf-line     { color: var(--text-primary); font-weight: 600; font-size: 13px; }
.dl-wf-sub      { color: var(--text-tertiary); font-size: 11px; margin-top: 3px; font-weight: 500; }
.dl-time-mobile { display: none; }

/* openings */
.dl-op-wrap   { min-width: 84px; }
.dl-op-value  { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.dl-op-link {
  display: block; appearance: none; min-height: 0 !important; padding: 0 !important;
  border: 0 !important; background: transparent !important; box-shadow: none !important;
  font-family: inherit; line-height: 1.1; text-align: left; cursor: pointer;
}
.dl-op-bar    { width: 72px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.dl-op-fill   { display: block; height: 100%; border-radius: 2px; }
.AlmostFull .dl-op-value { color: var(--accent-red); }
.dl-op-link:hover,
.dl-op-link:focus { color: var(--accent-blue) !important; text-decoration: underline; }
.dl-op-link.AlmostFull { color: var(--accent-red) !important; }
tr.low-openings { background: linear-gradient(90deg, rgba(239,68,68,.08) 0%, rgba(239,68,68,.03) 100%); }
tr.low-openings > td:first-child { box-shadow: inset 3px 0 0 0 var(--accent-red); }
tr.low-openings:hover { background: linear-gradient(90deg, rgba(239,68,68,.14) 0%, rgba(239,68,68,.06) 100%) !important; }
tr.full-row { opacity: .75; }
tr.full-row:hover { opacity: 1; }

/* ── Featured row — subtle gold tint in dark mode ── */
tr.dl-featured-row {
  background: linear-gradient(90deg, rgba(245,158,11,.07) 0%, rgba(245,158,11,.02) 100%);
}
tr.dl-featured-row > td:first-child {
  box-shadow: inset 3px 0 0 0 rgba(245,158,11,.5);
}
tr.dl-featured-row:hover {
  background: linear-gradient(90deg, rgba(245,158,11,.12) 0%, rgba(245,158,11,.05) 100%) !important;
}
/* Light mode — subtle blue tint, matches Bootstrap's bg-info intent but toned way down */
[data-theme="light"] tr.dl-featured-row {
  background: linear-gradient(90deg, rgba(59,130,246,.06) 0%, rgba(59,130,246,.02) 100%);
}
[data-theme="light"] tr.dl-featured-row > td:first-child {
  box-shadow: inset 3px 0 0 0 rgba(59,130,246,.35);
}
[data-theme="light"] tr.dl-featured-row:hover {
  background: linear-gradient(90deg, rgba(59,130,246,.1) 0%, rgba(59,130,246,.04) 100%) !important;
}

/* format col */
.dl-fmt-line { font-size: 13px; font-weight: 500; }
.dl-fmt-sub  { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }

/* prize col */
.dl-prize-value { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 17px; color: var(--accent-green); line-height: 1; }
.dl-prize-sub   { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; font-weight: 500; }
.dl-prize-col.full .dl-prize-value { color: var(--accent-red); }

/* responsive list-view replacement cells */
.dl-money-stack {
  display: grid;
  gap: 6px;
}
.dl-money-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: 1;
  margin-bottom: 2px;
}
.dl-money-value,
.dl-money-prize {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}
.dl-money-prize { color: var(--accent-green); }
.dl-status-stack {
  display: grid;
  gap: 8px;
  align-items: start;
}
.dl-status-open .dl-op-value { margin-bottom: 5px; }
.dl-league-responsive-details,
.dl-league-responsive-meta,
.dl-league-responsive-format {
  display: none;
}
.dl-league-responsive-meta {
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}
.dl-league-responsive-meta span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.dl-league-responsive-meta span + span:before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
  margin-right: 7px;
  flex-shrink: 0;
}
.dl-league-responsive-format {
  margin-top: 4px;
  color: var(--text-tertiary);
}
.dl-league-responsive-format .dl-fmt-line,
.dl-league-responsive-format .dl-fmt-sub {
  display: inline;
  font-size: 11px;
  font-weight: 600;
  color: inherit !important;
}
.dl-league-responsive-format .dl-fmt-sub:before {
  content: " / ";
}

/* league col */
.dl-league-name {
  appearance: none; min-height: 0; justify-content: flex-start; background: transparent; border: 0; padding: 0;
  color: var(--text-primary); font-family: inherit; font-weight: 600;
  font-size: 13px; line-height: inherit; margin-bottom: 3px; text-align: left;
}
.dl-league-name:hover { color: var(--accent-red); cursor: pointer; }
.dl-league-name:focus-visible { outline: 2px solid rgba(239,68,68,.45); outline-offset: 2px; border-radius: 3px; }
.dl-game-league-name {
  display: block;
  max-width: 260px;
  margin-bottom: 0;
  color: var(--text-tertiary) !important;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-game-league-name:hover {
  color: var(--text-secondary) !important;
}
.draft-lobby-layout .dl-league-name.dl-game-league-name,
.draft-lobby-layout .card-league-name.dl-game-league-name {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-tertiary) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}
.draft-lobby-layout .dl-league-name.dl-game-league-name:hover,
.draft-lobby-layout .card-league-name.dl-game-league-name:hover {
  color: var(--text-secondary) !important;
}
.dl-league-sub  { font-size: 11px; color: var(--text-tertiary); font-weight: 500; }

/* action col */
.dl-action-col  { display: flex; align-items: center; gap: 6px; }
.dl-disabled-join-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.dl-disabled-join-wrap .rtfs-btn[disabled] {
  pointer-events: none;
}
.dl-join-table-btn.disabled,
.dl-join-table-btn[aria-disabled="true"],
.dl-modal-join-btn.disabled,
.dl-modal-join-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.15);
}
.dl-join-table-btn.disabled:hover,
.dl-join-table-btn[aria-disabled="true"]:hover,
.dl-modal-join-btn.disabled:hover,
.dl-modal-join-btn:disabled:hover {
  transform: none;
}
.dl-act-icon-btn {
  width: 30px; height: 30px; min-height: 0; padding: 0; gap: 0; background: transparent;
  border: 1px solid var(--border); color: var(--text-tertiary);
  border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.dl-act-icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: #3a3f4e; }
.dl-act-icon-btn:disabled,
.dl-act-icon-btn[aria-disabled="true"] {
  opacity: .42; cursor: not-allowed; background: transparent; color: var(--text-tertiary); border-color: var(--border);
}
.dl-act-icon-btn:disabled:hover,
.dl-act-icon-btn[aria-disabled="true"]:hover {
  background: transparent; color: var(--text-tertiary); border-color: var(--border); transform: none;
}
/* sold out */
.dl-sold-out { color: var(--accent-red); font-weight: 700; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }

@media (min-width: 901px) and (max-width: 1199px) {
  .dl-table th,
  .dl-table td {
    padding: 14px 10px;
  }
  .dl-table .dl-col-entry,
  .dl-table .dl-col-format {
    display: table-cell;
  }
  .dl-table .dl-col-money,
  .dl-table .dl-col-status,
  .dl-table .dl-col-prize,
  .dl-table .dl-col-pool {
    display: none;
  }
  .dl-table .dl-col-league { width: 36%; }
  .dl-table .dl-col-entry { width: 60px; }
  .dl-table .dl-col-draft { width: 104px; }
  .dl-table th.dl-col-draft,
  .dl-table td.dl-col-draft {
    padding-left: 7px;
    padding-right: 5px;
  }
  .dl-table .dl-col-open { width: 80px; }
  .dl-table .dl-col-format { width: 88px; }
  .dl-table th.dl-col-format,
  .dl-table td.dl-col-format {
    padding-left: 8px;
    padding-right: 6px;
  }
  .dl-table .dl-col-action { width: 72px; }
  .dl-act-icon-btn {
    display: none;
  }
  .dl-league-responsive-details { display: none; }
  .dl-game-league-name {
    max-width: 220px;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .dl-table th,
  .dl-table td {
    padding: 13px 9px;
  }
  .dl-table .dl-col-entry,
  .dl-table .dl-col-draft,
  .dl-table .dl-col-open,
  .dl-table .dl-col-format,
  .dl-table .dl-col-pool {
    display: table-cell;
  }
  .dl-table .dl-col-money,
  .dl-table .dl-col-status,
  .dl-table .dl-col-prize {
    display: none;
  }
  .dl-table .dl-col-league { width: 32%; }
  .dl-table .dl-col-entry { width: 60px; }
  .dl-table .dl-col-draft { width: 96px; }
  .dl-table th.dl-col-draft,
  .dl-table td.dl-col-draft {
    padding-left: 6px;
    padding-right: 4px;
  }
  .dl-table .dl-col-open { width: 84px; }
  .dl-table .dl-col-format { width: 82px; }
  .dl-table th.dl-col-format,
  .dl-table td.dl-col-format {
    padding-left: 7px;
    padding-right: 4px;
  }
  .dl-table .dl-col-pool { width: 42px; }
  .dl-table .dl-col-action { width: 72px; }
  .dl-act-icon-btn {
    display: none;
  }
  .dl-league-responsive-details { display: none; }
  .dl-game-league-name {
    max-width: 190px;
  }
}

@media (min-width: 431px) and (max-width: 767px) {
  .draft-lobby-layout > main,
  .draft-lobby-layout > .main,
  .draft-lobby-layout .draft-lobby-main {
    padding-bottom: 96px !important;
  }
  body:has(.draft-lobby-layout #sidebar) .rt-footer {
    margin-bottom: 82px;
  }
  .draft-lobby-layout #sidebar,
  .draft-lobby-layout #sidebar.collapsed {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 320 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 82px !important;
    max-height: 82px !important;
    background: var(--surface) !important;
    border-right: 0 !important;
    border-top: 1px solid var(--border2) !important;
    overflow: hidden !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
  }
  .draft-lobby-layout #sidebar .sidebar-toggle-row,
  .draft-lobby-layout #sidebar.collapsed .sidebar-toggle-row,
  .draft-lobby-layout #sidebar .team-header,
  .draft-lobby-layout #sidebar.collapsed .team-header,
  .draft-lobby-layout #sidebar .search-wrap,
  .draft-lobby-layout #sidebar.collapsed .search-wrap,
  .draft-lobby-layout #sidebar .nav-section-label,
  .draft-lobby-layout #sidebar.collapsed .nav-section-label,
  .draft-lobby-layout #sidebar .nav-divider,
  .draft-lobby-layout #sidebar.collapsed .nav-divider {
    display: none !important;
  }
  .draft-lobby-layout #sidebar.rtfs-bottom-compact .sidebar-inner,
  .draft-lobby-layout #sidebar.rtfs-bottom-compact.collapsed .sidebar-inner {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
  }
  .draft-lobby-layout #sidebar.rtfs-bottom-compact .nav-section,
  .draft-lobby-layout #sidebar.rtfs-bottom-compact.collapsed .nav-section {
    display: contents !important;
  }
  .draft-lobby-layout #sidebar.rtfs-bottom-compact .nav-item,
  .draft-lobby-layout #sidebar.rtfs-bottom-compact.collapsed .nav-item {
    display: none !important;
  }
  .draft-lobby-layout #sidebar.rtfs-bottom-compact .nav-item.rtfs-bottom-primary,
  .draft-lobby-layout #sidebar.rtfs-bottom-compact.collapsed .nav-item.rtfs-bottom-primary,
  .draft-lobby-layout #sidebar.rtfs-bottom-compact .rtfs-bottom-more,
  .draft-lobby-layout #sidebar.rtfs-bottom-compact.collapsed .rtfs-bottom-more {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 82px !important;
    min-height: 82px !important;
    padding: 11px 4px 6px !important;
    gap: 4px !important;
    border-left: 0 !important;
    border-top: 2px solid transparent !important;
    border-radius: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    background: none;
    color: var(--text2);
  }
  .draft-lobby-layout #sidebar.rtfs-bottom-compact .nav-item.rtfs-bottom-primary.active,
  .draft-lobby-layout #sidebar.rtfs-bottom-compact .nav-item.rtfs-bottom-primary[aria-current="page"],
  .draft-lobby-layout #sidebar.rtfs-bottom-compact.collapsed .nav-item.rtfs-bottom-primary.active,
  .draft-lobby-layout #sidebar.rtfs-bottom-compact.collapsed .nav-item.rtfs-bottom-primary[aria-current="page"] {
    background: #C8102E12 !important;
    border-top-color: var(--red) !important;
    color: var(--text) !important;
  }
  .draft-lobby-layout #sidebar.rtfs-bottom-compact .rtfs-bottom-more[aria-expanded="true"] {
    background: var(--surface2) !important;
    color: var(--text) !important;
  }
  .draft-lobby-layout #sidebar.rtfs-bottom-compact .nav-item svg,
  .draft-lobby-layout #sidebar.rtfs-bottom-compact.collapsed .nav-item svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    opacity: .78 !important;
    flex-shrink: 0 !important;
  }
  .draft-lobby-layout #sidebar.rtfs-bottom-compact .nav-item span,
  .draft-lobby-layout #sidebar.rtfs-bottom-compact.collapsed .nav-item span {
    display: block !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rtfs-bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 390;
    background: rgba(0,0,0,.48);
    opacity: 0;
    transition: opacity .18s ease;
  }
  .rtfs-bottom-sheet-backdrop.open { opacity: 1; }
  .rtfs-bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    max-height: min(76vh, 620px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-top: 1px solid var(--border2);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -18px 48px rgba(0,0,0,.42);
    transform: translateY(100%);
    transition: transform .18s ease;
    color: var(--text);
  }
  .rtfs-bottom-sheet.open { transform: translateY(0); }
  .rtfs-bottom-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px 11px;
    border-bottom: 1px solid var(--border);
  }
  .rtfs-bottom-sheet-title {
    color: var(--text3);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
  }
  .rtfs-bottom-sheet-close {
    border: 1px solid var(--border2);
    background: transparent;
    color: var(--text2);
    border-radius: 7px;
    padding: 6px 10px;
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
  }
  .rtfs-bottom-sheet-close:hover,
  .rtfs-bottom-sheet-close:focus {
    background: var(--surface2);
    color: var(--text);
    outline: none;
  }
  .rtfs-bottom-sheet-body {
    overflow: auto;
    padding: 8px 10px 18px;
  }
  .rtfs-sheet-section { border-bottom: 1px solid var(--border); }
  .rtfs-sheet-section:last-child { border-bottom: 0; }
  .rtfs-sheet-section-label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: var(--text3);
    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .9px;
    text-transform: uppercase;
    text-align: left;
    padding: 8px 6px;
    cursor: pointer;
  }
  .rtfs-sheet-section-label:after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease;
    margin-right: 4px;
  }
  .rtfs-sheet-section.collapsed .rtfs-sheet-section-label:after { transform: rotate(-45deg); }
  .rtfs-sheet-section-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 0 0 10px;
  }
  .rtfs-sheet-section.collapsed .rtfs-sheet-section-links { display: none; }
  .rtfs-bottom-sheet .nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 38px !important;
    padding: 8px 9px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent;
    color: var(--text2);
    font-size: 12px !important;
    font-weight: 800;
    text-align: left !important;
    text-decoration: none;
  }
  .rtfs-bottom-sheet .nav-item:hover,
  .rtfs-bottom-sheet .nav-item:focus {
    background: var(--surface2) !important;
    color: var(--text) !important;
    text-decoration: none;
    outline: none;
  }
  .rtfs-bottom-sheet .nav-item.active,
  .rtfs-bottom-sheet .nav-item[aria-current="page"] {
    background: #C8102E14 !important;
    color: var(--text) !important;
  }
  .rtfs-bottom-sheet .nav-item svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    opacity: .72;
  }
  .rtfs-bottom-sheet .nav-item span {
    display: block !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .draft-lobby-layout .sidebar-overlay { display: none !important; }
  .dl-table th,
  .dl-table td {
    padding: 14px 12px;
  }
  .dl-table .dl-col-entry,
  .dl-table .dl-col-draft,
  .dl-table .dl-col-open,
  .dl-table .dl-col-format,
  .dl-table .dl-col-pool {
    display: table-cell;
  }
  .dl-table .dl-col-money,
  .dl-table .dl-col-status,
  .dl-table .dl-col-prize {
    display: none;
  }
  .dl-table .dl-col-league { width: 32%; }
  .dl-table .dl-col-entry { width: 60px; }
  .dl-table .dl-col-draft { width: 96px; }
  .dl-table th.dl-col-draft,
  .dl-table td.dl-col-draft {
    padding-left: 6px;
    padding-right: 4px;
  }
  .dl-table .dl-col-open { width: 84px; }
  .dl-table .dl-col-format { width: 82px; }
  .dl-table th.dl-col-format,
  .dl-table td.dl-col-format {
    padding-left: 7px;
    padding-right: 4px;
  }
  .dl-table .dl-col-pool { width: 42px; }
  .dl-table .dl-col-action { width: 72px; }
  .dl-league-responsive-details { display: none; }
  .dl-game-league-name {
    max-width: 260px;
  }
  .dl-act-icon-btn {
    display: none;
  }
  .dl-action-col {
    justify-content: flex-start;
  }
  .dl-join-table-btn {
    padding: 8px 13px;
  }
}

@media (min-width: 561px) and (max-width: 1199px) {
  .dl-table .dl-col-format .dl-fmt-line {
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.15;
  }
  .dl-table .dl-col-format .dl-fmt-sub {
    display: block;
    margin-top: 3px;
    color: var(--text-tertiary) !important;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
  }
  .dl-table .dl-col-format .dl-fmt-sub:before {
    content: "";
  }
}

@media (max-width: 560px) {
  .dl-table-wrap {
    overflow: visible;
  }
  .dl-table {
    border-collapse: separate;
    border-spacing: 0 4px;
    table-layout: auto;
  }
  .dl-table thead {
    display: block;
    padding: 0 8px 3px;
    border-bottom: 0;
    background: transparent;
  }
  .dl-table thead tr,
  .dl-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 64px 54px 48px;
    column-gap: 7px;
    align-items: center;
  }
  .dl-table th {
    display: none;
    width: auto !important;
    padding: 0;
    color: var(--text-tertiary);
    font-size: 8px;
    line-height: 1;
    letter-spacing: .7px;
    overflow: visible;
  }
  .dl-table thead .dl-col-league,
  .dl-table thead .dl-col-entry,
  .dl-table thead .dl-col-draft,
  .dl-table thead .dl-col-open,
  .dl-table thead .dl-col-action {
    display: block;
  }
  .dl-table thead .dl-col-draft {
    font-size: 0;
  }
  .dl-table thead .dl-col-draft::before {
    content: "Starts In";
    font-size: 8px;
  }
  .dl-table tbody {
    display: block;
  }
  .dl-table tbody tr {
    padding: 10px 8px;
    margin-bottom: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
  }
  .dl-table tbody tr:last-child { margin-bottom: 0; }
  .dl-table tbody tr:nth-child(even) {
    background: var(--bg-secondary);
  }
  .dl-table tbody tr:hover { background: var(--bg-tertiary) !important; }
  [data-theme="light"] .dl-table tbody tr:nth-child(even) {
    background: var(--bg-secondary);
  }
  .dl-table th,
  .dl-table td {
    padding: 0;
    overflow: visible;
    white-space: normal;
  }
  .dl-table .dl-col-league {
    display: block;
    width: auto;
    min-width: 0;
  }
  .dl-table .dl-col-entry,
  .dl-table .dl-col-draft,
  .dl-table .dl-col-open {
    display: block;
    width: auto;
    min-width: 0;
  }
  .dl-table .dl-col-action {
    display: flex;
    justify-self: end;
    align-self: center;
    width: auto;
    min-width: 0;
  }
  .dl-table .dl-col-money,
  .dl-table .dl-col-status,
  .dl-table .dl-col-format,
  .dl-table .dl-col-prize,
  .dl-table .dl-col-pool {
    display: none;
  }
  .dl-league-responsive-details {
    display: none;
  }
  .dl-league-responsive-meta {
    display: none;
  }
  .dl-league-responsive-format { display: none; }
  .dl-action-col {
    gap: 0;
    justify-content: flex-end;
  }
  .dl-act-icon-btn {
    display: none;
  }
  .dl-join-table-btn {
    min-height: 31px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 11px;
  }
  .dl-game-col {
    align-items: center;
    gap: 7px;
    min-width: 0;
  }
  .dl-sport-icon.dl-league-type-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    font-size: 14px;
  }
  .dl-game-pill-wrap {
    min-width: 0;
    gap: 3px;
  }
  .dl-game-pill-row {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .dl-game-pill {
    max-width: 82px;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 8px;
    letter-spacing: 0;
  }
  tr[featured="true"] .dl-game-pill-row::after {
    content: "Featured";
    display: inline-flex;
    padding: 3px 5px;
    border: 1px solid rgba(14,165,233,.28);
    border-radius: 5px;
    background: rgba(14,165,233,.14);
    color: #38bdf8;
    flex-shrink: 0;
    font-size: 7px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .2px;
    text-transform: uppercase;
  }
  .dl-game-pill a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dl-badge-row {
    display: none;
  }
  .dl-game-league-name {
    max-width: 100%;
    margin-top: 1px;
    color: var(--text-primary) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.18 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }
  .dl-league-responsive-format .dl-fmt-line,
  .dl-league-responsive-format .dl-fmt-sub {
    display: inline;
    color: var(--text-tertiary) !important;
    font-size: 9px;
    font-weight: 600;
  }
  .dl-league-responsive-format .dl-fmt-sub:before {
    content: " - ";
  }
  .dl-entry-price {
    font-size: 18px;
  }
  .dl-time-desktop {
    display: none;
  }
  .dl-time-mobile {
    display: inline;
  }
  .dl-table .dl-col-draft .dl-time-line,
  .dl-table .dl-col-draft .dl-wf-line {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }
  .dl-table .dl-col-draft .dl-time-sub,
  .dl-table .dl-col-draft .dl-wf-sub {
    margin-top: 3px;
    color: var(--text-tertiary);
    font-size: 9px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
  }
  .dl-starts-urgent { color: var(--accent-red); }
  .dl-starts-soon { color: var(--accent-gold); }
  .dl-op-wrap {
    min-width: 0;
  }
  .dl-op-value {
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
  }
  .dl-op-bar {
    width: 40px;
    height: 4px;
  }
  tr.low-openings > td:first-child,
  tr.dl-featured-row > td:first-child,
  [data-theme="light"] tr.dl-featured-row > td:first-child {
    box-shadow: none;
  }
  tr.low-openings,
  tr.dl-featured-row,
  [data-theme="light"] tr.dl-featured-row {
    background: var(--bg-secondary);
  }
  tr.low-openings {
    border-left-color: rgba(239,68,68,.55);
  }
  tr.dl-featured-row {
    border-left-color: rgba(245,158,11,.55);
  }
}

@media (max-width: 430px) {
  .dl-table thead {
    padding: 0 7px 3px;
  }
  .dl-table thead tr,
  .dl-table tbody tr {
    grid-template-columns: minmax(0, 1fr) 38px 54px 46px 42px;
    column-gap: 5px;
  }
  .dl-table tbody tr {
    padding: 9px 7px;
  }
  .dl-sport-icon.dl-league-type-icon {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .dl-game-col {
    gap: 6px;
  }
  .dl-game-pill {
    max-width: 68px;
    padding: 3px 5px;
  }
  .dl-entry-price {
    font-size: 16px;
  }
  .dl-table .dl-col-draft .dl-time-line,
  .dl-table .dl-col-draft .dl-wf-line {
    font-size: 13px;
  }
  .dl-table .dl-col-draft .dl-time-sub,
  .dl-table .dl-col-draft .dl-wf-sub {
    font-size: 8px;
  }
  .dl-op-value {
    font-size: 9px;
  }
  .dl-op-bar {
    width: 36px;
  }
  .dl-join-table-btn {
    min-height: 29px;
    padding: 6px 8px;
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .dl-table thead tr,
  .dl-table tbody tr {
    grid-template-columns: minmax(0, 1fr) 34px 48px 40px 38px;
    column-gap: 4px;
  }
  .dl-sport-icon.dl-league-type-icon {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .dl-game-pill {
    max-width: 58px;
  }
  tr[featured="true"] .dl-game-pill-row::after {
    display: none;
  }
  .dl-op-bar {
    width: 32px;
  }
  .dl-join-table-btn {
    padding-left: 7px;
    padding-right: 7px;
  }
}

/* table footer */
.dl-table-footer {
  padding: 14px 20px; display: flex; justify-content: space-between;
  align-items: center; border-top: 1px solid var(--border);
  background: var(--bg-secondary); font-size: 13px; color: var(--text-secondary);
}
.dl-pagination { display: flex; gap: 6px; }
.dl-footer-controls { display: flex; align-items: center; gap: 12px; }
.dl-page-size-control { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-tertiary); white-space: nowrap; }
.dl-page-size-control select {
  height: 30px; min-height: 0; padding: 0 24px 0 9px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-tertiary); color: var(--text-primary);
  font-size: 12px; font-weight: 700;
}
.dl-page-btn {
  width: 30px; height: 30px; min-height: 0; padding: 0; gap: 0; background: transparent;
  border: 1px solid var(--border); color: var(--text-secondary);
  border-radius: 6px; cursor: pointer; font-size: 12px; transition: all .15s;
}
.dl-page-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.dl-page-btn.active { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }
@media (max-width: 760px) {
  .dl-table-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .dl-footer-controls { width: 100%; justify-content: space-between; flex-wrap: wrap; }
}

/* ── GRID VIEW ── */
.grid-view { display: none; }
.grid-view.active { display: block; }
.league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; padding: 4px 2px;
}
.league-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: .2s;
  display: flex; flex-direction: column;
}
.league-card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.league-card.card-full { opacity: .72; }
.league-card.card-full:hover { opacity: 1; }
.card-top-bar { height: 3px; flex-shrink: 0; background: var(--border-light); }
.card-pill-championship .card-top-bar { background: linear-gradient(90deg,#f59e0b,#fbbf24); }
.card-pill-dynasty      .card-top-bar { background: linear-gradient(90deg,#3b82f6,#60a5fa); }
.card-pill-bestball     .card-top-bar { background: linear-gradient(90deg,#22c55e,#4ade80); }
.card-pill-allamerican  .card-top-bar { background: linear-gradient(90deg,#a855f7,#c084fc); }
.card-pill-draftmasters .card-top-bar { background: linear-gradient(90deg,#0ea5e9,#38bdf8); }
.card-pill-highstakes   .card-top-bar { background: linear-gradient(90deg,#ef4444,#f87171); }
.card-pill-rtffc        .card-top-bar { background: linear-gradient(90deg,#f97316,#fb923c); }
.card-pill-touchdown    .card-top-bar { background: linear-gradient(90deg,#c45a00,#f97316); }
.card-pill-standard     .card-top-bar { background: linear-gradient(90deg,#6b7280,#9ca3af); }
.league-card.card-low-openings .card-top-bar { background: var(--accent-red) !important; }
.card-body { padding: 16px 18px 14px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.card-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-icon-name { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.card-sport-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-hover); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.card-title-stack {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px; min-width: 0;
}
.card-title-stack .dl-game-pill { display: inline-flex; align-self: flex-start; }
.card-league-name {
  appearance: none; background: transparent; border: 0; padding: 0;
  color: var(--text-primary); cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: 14px; line-height: 1.2; margin-bottom: 3px;
  text-align: left;
}
.card-league-name:hover { color: var(--accent-red); }
.card-league-name:focus-visible { outline: 2px solid rgba(239,68,68,.45); outline-offset: 2px; border-radius: 3px; }
.card-league-name.dl-game-league-name {
  max-width: 260px;
  margin-bottom: 0;
  color: var(--text-tertiary) !important;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-league-name.dl-game-league-name:hover {
  color: var(--text-secondary) !important;
}
.card-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.card-stat { background: var(--bg-tertiary); border-radius: 8px; padding: 8px 10px; }
.card-stat-label { font-size: 9px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 3px; }
.card-stat-value { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.card-stat-value.green { color: var(--accent-green); }
.card-stat-value.red   { color: var(--accent-red); }
.card-format-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-format-tag {
  font-size: 11px; color: var(--text-secondary); background: var(--bg-tertiary);
  border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; font-weight: 500;
}
.card-openings { display: flex; flex-direction: column; gap: 5px; }
.card-openings-row { display: flex; justify-content: space-between; align-items: center; }
.card-openings-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.card-openings-count { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.card-openings-count.full { color: var(--accent-red); }
.card-progress { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.card-progress-fill { height: 100%; border-radius: 3px; background: var(--accent-green); }
.card-progress-fill.orange { background: #f97316; }
.card-progress-fill.green  { background: var(--accent-green); }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.card-draft-time {
  flex: 1; display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-tertiary); font-weight: 500;
}
.card-draft-time-icon {
  font-size: 11px; color: var(--text-tertiary); line-height: 1; flex-shrink: 0;
}
.card-draft-time strong { color: var(--text-secondary); font-weight: 600; }
.dl-badge-legend {
  padding: 10px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.dl-badge-legend-label {
  font-size: 10px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text-tertiary); flex-shrink: 0;
}
.dl-badge-legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: 11px; font-weight: 500;
}
/* Scale down the badge size in the legend to stay compact */
.dl-badge-legend .dl-badge { width: 18px; height: 18px; border-radius: 4px; }

/* loading spinner overlay */
.dl-loading {
  display: flex; justify-content: center; align-items: center;
  padding: 48px 20px; color: var(--text-tertiary); font-size: 14px; gap: 12px;
}
.dl-spinner {
  width: 22px; height: 22px; border: 2px solid var(--border-light);
  border-top-color: var(--accent-red); border-radius: 50%;
  animation: dl-spin .7s linear infinite;
}
@keyframes dl-spin { to { transform: rotate(360deg); } }

/* no results */
.dl-no-results { text-align: center; padding: 48px 20px; }
.dl-no-results-icon { font-size: 32px; margin-bottom: 10px; }
.dl-no-results-msg  { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.dl-no-results-sub  { font-size: 12px; color: var(--text-tertiary); }

/* more button */

/* ── MODALS (shared overlay) ── */
.dl-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  z-index: 9000; align-items: center; justify-content: center; padding: 20px;
}
.dl-modal-overlay.open { display: flex; }
.dl-modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 16px; width: 100%; max-width: 520px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); overflow: hidden;
  animation: dl-modal-in .18s ease;
}
@keyframes dl-modal-in { from { opacity:0; transform: translateY(10px) scale(.97); } to { opacity:1; transform: none; } }
.dl-modal-header {
  padding: 20px 22px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.dl-modal-header-left { display: flex; align-items: center; gap: 14px; }
.dl-modal-league-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.dl-modal-league-name { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.3px; line-height: 1.1; margin-bottom: 3px; }
.dl-modal-league-type { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--text-tertiary); }
.dl-modal-close {
  width: 30px; height: 30px; min-height: 0; padding: 0; gap: 0; background: transparent;
  border: 1px solid var(--border); color: var(--text-tertiary);
  border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.dl-modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.dl-modal-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.dl-modal-stat { padding: 14px 16px; border-right: 1px solid var(--border); }
.dl-modal-stat:last-child { border-right: none; }
.dl-modal-stat-label { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 4px; }
.dl-modal-stat-value { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; line-height: 1; }
.dl-modal-stat-value.green { color: var(--accent-green); }
.dl-modal-stat-value.red   { color: var(--accent-red); }
.dl-modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
/* ── CREATE LEAGUE MODAL ── */
.cl-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  z-index: 9100; align-items: center; justify-content: center; padding: 16px;
}
.cl-modal-overlay.open { display: flex; }
.cl-modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 16px; width: 100%; max-width: 600px; max-height: 92vh;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: dl-modal-in .18s ease;
}
.cl-modal-box > form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.cl-header {
  padding: 22px 26px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--bg-secondary); z-index: 2; flex-shrink: 0;
}
.cl-header-left { display: flex; align-items: center; gap: 14px; }
.cl-header-icon {
  width: 42px; height: 42px;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--accent-red); flex-shrink: 0;
}
.cl-title { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.3px; color: var(--text-primary); }
.cl-subtitle { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.cl-steps-bar { padding: 18px 26px 0; display: flex; align-items: center; flex-shrink: 0; }
.cl-step-item { display: flex; align-items: center; gap: 8px; flex: 1; }
.cl-step-item:last-child { flex: 0; }
.cl-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  border: 2px solid var(--border-light); color: var(--text-tertiary); transition: all .2s;
}
.cl-step-dot.active { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }
.cl-step-dot.done   { background: var(--accent-green); border-color: var(--accent-green); color: #fff; }
.cl-step-line { flex: 1; height: 2px; background: var(--border-light); margin: 0 4px; transition: background .3s; }
.cl-step-line.done { background: var(--accent-green); }
.cl-steps-labels { display: flex; padding: 6px 26px 0; flex-shrink: 0; }
.cl-steps-labels > div { flex: 1; text-align: center; }
.cl-steps-labels > div:last-child { flex: 0; min-width: 28px; }
.cl-step-label { font-size: 9px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-tertiary); margin-top: 4px; text-align: center; white-space: nowrap; }
.cl-step-label.active { color: var(--accent-red); }
.cl-step-label.done   { color: var(--accent-green); }
.cl-body { padding: 24px 26px; flex: 1; min-height: 0; overflow-y: auto; }
.cl-panel { display: none; }
.cl-panel.active { display: block; }
.cl-section-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 12px; }
.cl-type-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 0; }
.cl-type-card { border: 2px solid var(--border); border-radius: 10px; padding: 14px 12px; cursor: pointer; transition: all .15s; text-align: center; background: var(--bg-tertiary); }
.cl-type-card:hover  { border-color: var(--border-light); background: var(--bg-hover); }
.cl-type-card.selected { border-color: var(--accent-red); background: rgba(239,68,68,.06); }
.cl-type-icon { font-size: 24px; margin-bottom: 6px; line-height: 1; }
.cl-type-icon i { display: inline-block; }
.cl-type-name { font-weight: 700; font-size: 12px; color: var(--text-primary); margin-bottom: 3px; }
.cl-type-desc { font-size: 10px; color: var(--text-tertiary); line-height: 1.4; }
.cl-field { margin-bottom: 18px; }
.cl-field:last-child { margin-bottom: 0; }
.cl-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px; letter-spacing: .2px; }
.cl-label span { color: var(--accent-red); margin-left: 2px; }
.cl-input, .cl-select, .cl-textarea {
  width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border-light);
  color: var(--text-primary); border-radius: 8px; padding: 10px 14px;
  font-size: 13px; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.cl-input:focus, .cl-select:focus { border-color: var(--accent-red); box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.cl-input::placeholder { color: var(--text-tertiary); }
.cl-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.cl-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cl-fee-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.cl-fee-chip { border: 1.5px solid var(--border-light); border-radius: 8px; padding: 8px 4px; text-align: center; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--text-secondary); background: var(--bg-tertiary); transition: all .15s; }
.cl-fee-chip:hover  { color: var(--text-primary); }
.cl-fee-chip.selected { border-color: var(--accent-red); background: rgba(239,68,68,.08); color: var(--accent-red); }
.cl-fee-chip.readonly { cursor: default; }
.cl-fee-chip.readonly:hover { color: var(--accent-red); }
.cl-toggle-group { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-toggle-pill { padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--border-light); font-size: 12px; font-weight: 600; color: var(--text-secondary); background: var(--bg-tertiary); cursor: pointer; transition: all .15s; }
.cl-toggle-pill:hover   { color: var(--text-primary); }
.cl-toggle-pill.selected { border-color: var(--accent-red); background: rgba(239,68,68,.1); color: var(--accent-red); }
.cl-datetime-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cl-draft-option-row { display: flex; gap: 10px; margin-bottom: 14px; }
.cl-draft-option { flex: 1; border: 1.5px solid var(--border-light); border-radius: 8px; padding: 10px 14px; cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 10px; background: var(--bg-tertiary); }
.cl-draft-option.selected { border-color: var(--accent-red); background: rgba(239,68,68,.06); }
.cl-draft-option-icon { width: 20px; font-size: 18px; line-height: 1; flex-shrink: 0; text-align: center; }
.cl-draft-option-label { font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.cl-draft-option-desc  { font-size: 11px; color: var(--text-tertiary); }
.cl-scheduled-fields { display: none; }
.cl-scheduled-fields.visible { display: block; }
.cl-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.cl-review-item { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.cl-review-label { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 4px; }
.cl-review-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.cl-review-value.highlight { color: var(--accent-green); font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; }
.cl-preview-card { border: 1.5px dashed var(--border-light); border-radius: 10px; padding: 14px 16px; background: var(--bg-tertiary); margin-bottom: 0; }
.cl-preview-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 10px; }
.cl-preview-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; }
.cl-preview-game-col { min-width: 0; }
.cl-preview-league-name { max-width: 240px; }
.cl-preview-stats { display: flex; gap: 18px; font-size: 12px; white-space: nowrap; }
.cl-preview-stat-label { font-size: 9px; color: var(--text-tertiary); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 2px; }
.cl-preview-stat-value { font-weight: 700; color: var(--text-primary); }
.cl-preview-join { justify-self: end; pointer-events: none; opacity: .6; }
@media (max-width: 460px) {
  .cl-preview-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cl-preview-stats { grid-column: 1 / -1; justify-self: start; }
}
.cl-footer { padding: 16px 26px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: space-between; align-items: center; background: var(--bg-secondary); flex-shrink: 0; }
.cl-step-indicator { font-size: 12px; color: var(--text-tertiary); font-weight: 500; }
.cl-error-msg { font-size: 11px; color: var(--accent-red); margin-top: 5px; display: none; }
.cl-error-msg.visible { display: block; }
.cl-success { text-align: center; padding: 40px 26px; display: none; flex-direction: column; align-items: center; gap: 14px; }
.cl-success.visible { display: flex; }
.cl-success-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(34,197,94,.15); border: 2px solid rgba(34,197,94,.3); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--accent-green); }
.cl-success-title { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 800; }
.cl-success-sub { font-size: 13px; color: var(--text-secondary); max-width: 320px; line-height: 1.6; }

/* ── LEGACY helpers retained ── */
.blk { -webkit-user-select:none; -webkit-touch-callout:none; -moz-user-select:none; -ms-user-select:none; user-select:none; }
.Game900,.Game901,.Game902,.Game910 { color:#cc0000; }
.Game710 { color:#cc0000; font-weight:500; }
.Game4900 { color:#cc0000; }

/* ── FULL-WIDTH LAYOUT — kill Bootstrap's fixed container gutters ── */
/* The Bootstrap .container emitted by headless mode should not constrain width */
body > .container:first-of-type {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: var(--bg) !important;
  color: var(--text) !important;
}

/* ── LEAGUE INFO MODAL ── */
.li-modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 16px; width: 100%; max-width: 680px; max-height: 90vh;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: dl-modal-in .18s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
.li-modal-header {
  padding: 20px 22px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  flex-shrink: 0;
}
.li-modal-header-left { display: flex; align-items: center; gap: 14px; }
.li-modal-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; background: var(--bg-hover);
}
.li-modal-name {
  font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800;
  letter-spacing: -.3px; line-height: 1.1; margin-bottom: 3px;
  color: var(--text-primary) !important;
}
.li-modal-type {
  font-size: 11px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text-tertiary);
}
/* Stats bar */
.li-modal-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.li-modal-stat { padding: 14px 16px; border-right: 1px solid var(--border); }
.li-modal-stat:last-child { border-right: none; }
.li-modal-stat-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 4px;
}
.li-modal-stat-value {
  font-family: 'Barlow Condensed', sans-serif; font-size: 18px;
  font-weight: 800; color: var(--text-primary) !important; line-height: 1;
}
.li-modal-stat-value.green { color: var(--accent-green) !important; }
.li-modal-stat-value.red   { color: var(--accent-red)   !important; }
.li-modal-stat-value.blue  { color: var(--accent-blue)  !important; }
/* Tabs */
.li-modal-tabs {
  display: flex; border-bottom: 1px solid var(--border); padding: 0 22px; flex-shrink: 0;
}
.li-modal-tab {
  min-height: 0; padding: 11px 16px; font-size: 12px; font-weight: 600; color: var(--text-tertiary);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .15s; background: none; border-top: none; border-left: none; border-right: none;
  white-space: nowrap; font-family: inherit;
}
.li-modal-tab:hover { color: var(--text-primary); }
.li-modal-tab.active { color: var(--text-primary); background: none; border-bottom-color: var(--accent-red); }
.li-tab-label-short { display: none; }
@media (max-width: 560px) {
  .li-tab-label-full { display: none; }
  .li-tab-label-short { display: inline; }
}
/* Scrollable body */
.li-modal-body { overflow-y: auto; flex: 1; min-height: 0; }
.li-modal-tab-panel { display: none; }
.li-modal-tab-panel.active { display: block; }
/* Draft info band */
.li-draft-info {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 22px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border);
}
.li-draft-icon {
  width: 36px; height: 36px; background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-blue); flex-shrink: 0;
}
.li-draft-label { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 2px; }
.li-draft-value { font-size: 13px; font-weight: 700; color: var(--text-primary); }
/* Format grid */
.li-format-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.li-format-item { background: var(--bg-secondary); padding: 12px 22px; display: flex; flex-direction: column; gap: 3px; }
.li-format-label { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); }
.li-format-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.li-rules-action { padding: 16px 22px; border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.li-rules-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
/* Notes */
.li-section-body { padding: 14px 22px; }
.li-section-title { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); padding: 14px 22px 10px; border-bottom: 1px solid var(--border); }
/* Payout table */
.li-payout-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.li-payout-table th { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); padding: 10px 22px; text-align: left; border-bottom: 1px solid var(--border); background: var(--bg-tertiary); }
.li-payout-table td { padding: 10px 22px; border-bottom: 1px solid var(--border); color: var(--text-primary); font-weight: 500; }
.li-payout-table tr:last-child td { border-bottom: none; }
.li-payout-place { font-weight: 700; color: var(--text-secondary) !important; font-size: 12px; }
.li-payout-place-inner { display: flex; align-items: center; gap: 8px; }
.li-payout-amt { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 800; color: var(--accent-green) !important; }
.li-payout-type { font-size: 11px; color: var(--text-tertiary) !important; }
.li-payout-summary { font-size: 10px; color: var(--text-tertiary) !important; padding: 10px 22px; font-style: italic; }
.li-payout-message td { color: var(--text-secondary) !important; font-size: 12px; text-align: center; padding: 18px 22px; }
.li-medal { width: 16px; text-align: center; font-size: 14px; flex: 0 0 16px; }
.li-medal-gold { color: #f59e0b; }
.li-medal-silver { color: #cbd5e1; }
.li-medal-bronze { color: #b45309; }
.li-medal-placeholder { display: inline-block; }
.payout-1st .li-payout-place { color: #f59e0b !important; }
.payout-2nd .li-payout-place { color: #9ca3af !important; }
.payout-3rd .li-payout-place { color: #b45309 !important; }
/* Members */
.li-member-legend {
  padding: 10px 18px 8px; border-bottom: 1px solid var(--border);
  background: var(--bg-secondary); display: flex; flex-direction: column; gap: 6px;
  font-size: 11px; line-height: 1.25; color: var(--text-secondary);
}
.li-member-legend-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.li-member-legend-title { color: var(--accent-blue); font-weight: 700; }
.li-member-legend-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.li-modal-members {
  padding: 14px 18px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; max-height: 268px; overflow-y: auto;
  background: var(--bg-secondary);
}
.li-member {
  display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 48px;
  padding: 8px 10px; background: var(--bg-tertiary); border-radius: 7px; border: 1px solid var(--border);
}
.li-member-icons { display: flex; align-items: center; justify-content: center; gap: 5px; width: 30px; flex: 0 0 30px; }
.li-member-icon { width: 10px; height: 10px; display: inline-block; flex: 0 0 10px; box-sizing: border-box; }
.li-member-exp-high { background: #dc2626; border-radius: 2px; transform: rotate(45deg); }
.li-member-exp-low { border: 2px solid var(--accent-blue); border-radius: 50%; background: transparent; }
.li-member-rank-top100 { background: #22c55e; border-radius: 50%; }
.li-member-rank-top1000 { background: var(--accent-blue); border-radius: 50%; }
.li-member-rank-lower { background: #9ca3af; border-radius: 50%; }
.li-member-info { min-width: 0; flex: 1; }
.li-member-name-row { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.li-member-name { display: block; min-width: 0; font-size: 12px; font-weight: 800; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-member-rank-label { flex: 0 0 auto; font-size: 10px; font-weight: 600; color: var(--text-tertiary); }
.li-member-meta { margin-top: 2px; font-size: 10px; line-height: 1.25; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-member-badges { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
/* Experience badge */
.li-member-exp {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 2px 5px; border-radius: 3px;
}
.li-exp-yes { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid rgba(245,158,11,.3); }
.li-exp-no  { background: rgba(100,100,120,.12); color: var(--text-tertiary); border: 1px solid var(--border); }
/* Rank badge */
.li-member-rank {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 2px 5px; border-radius: 3px;
}
.li-rank-top100   { background: rgba(239,68,68,.12);   color: var(--accent-red);  border: 1px solid rgba(239,68,68,.3); }
.li-rank-top1000  { background: rgba(59,130,246,.12);  color: var(--accent-blue); border: 1px solid rgba(59,130,246,.3); }
.li-rank-unrated  { background: transparent; color: var(--text-tertiary); border: 1px solid var(--border); }
/* Loading / error states */
.li-members-loading {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 28px; color: var(--text-tertiary); font-size: 13px;
}
.li-members-spinner { animation: li-spin 1s linear infinite; }
@keyframes li-spin { to { transform: rotate(360deg); } }
.li-members-error {
  grid-column: 1 / -1; text-align: center; padding: 24px;
  color: var(--text-tertiary); font-size: 12px;
}
.li-slot-open { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px dashed var(--border-light); opacity: .55; }
.li-slot-circle { width: 36px; height: 36px; border-radius: 50%; border: 1.5px dashed var(--border-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.li-slot-open-text { font-size: 12px; color: var(--text-tertiary); font-style: italic; }
/* Footer */
.li-modal-footer {
  padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
  background: var(--bg-secondary); flex-shrink: 0;
}
.li-modal-join-wrap {
  display: inline-flex;
}
.dl-modal-view-btn { margin-right: auto; text-decoration: none; }
/* ── RULES MODAL ── */
.dl-rules-modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 16px; width: 100%; max-width: 680px; max-height: 90vh;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: dl-modal-in .18s ease;
  overflow: hidden; display: flex; flex-direction: column;
}
.dl-rules-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 22px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.dl-rules-modal-title-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dl-rules-modal-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25);
  color: var(--accent-blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dl-rules-modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800; letter-spacing: -.3px;
  color: var(--text-primary) !important;
}
.dl-rules-modal-body {
  overflow-y: auto; flex: 1; min-height: 0;
}
.dl-rules-modal-footer {
  padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
  background: var(--bg-secondary); flex-shrink: 0;
}

.dl-rules-content { display: flex; flex-direction: column; }
.dl-rules-summary {
  padding: 14px 22px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border);
}
.dl-rules-summary-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 4px;
}
.dl-rules-summary-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800;
  color: var(--text-primary); line-height: 1;
}
.dl-rules-summary-meta { margin-top: 5px; color: var(--text-tertiary); font-size: 12px; font-weight: 600; }
.dl-rules-note {
  padding: 14px 22px; color: var(--text-secondary); font-size: 13px; line-height: 1.6;
  border-bottom: 1px solid var(--border);
}
.dl-rules-note p { margin: 0 0 8px; }
.dl-rules-note p:last-child { margin-bottom: 0; }
.dl-rules-section { border-bottom: 1px solid var(--border); }
.dl-rules-section:last-child { border-bottom: none; }
.dl-rules-list { display: flex; flex-direction: column; }
.dl-rules-row {
  display: grid; grid-template-columns: minmax(150px, .85fr) 1.4fr;
  gap: 16px; padding: 10px 22px; border-bottom: 1px solid var(--border);
  align-items: start;
}
.dl-rules-row:last-child { border-bottom: none; }
.dl-rules-row:nth-child(even) { background: rgba(255,255,255,.03); }
[data-theme="light"] .dl-rules-row:nth-child(even) { background: rgba(0,0,0,.03); }
.dl-rules-label {
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text-tertiary);
}
.dl-rules-value { color: var(--text-primary); font-size: 13px; font-weight: 600; line-height: 1.45; }
.dl-rules-subhead {
  padding: 10px 22px; color: var(--text-secondary); background: var(--bg-tertiary);
  font-size: 12px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.dl-rules-empty { color: var(--text-secondary); }

@media (max-width: 560px) {
  .dl-rules-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ── HOW IT WORKS MODAL ── */
.hiw-modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 16px; width: 100%; max-width: 1180px;
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: dl-modal-in .18s ease;
}
.hiw-header {
  padding: 22px 26px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--bg-secondary); z-index: 2;
}
.hiw-header-left { display: flex; align-items: center; gap: 14px; }
.hiw-header-icon {
  width: 42px; height: 42px;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--accent-red); flex-shrink: 0;
}
.hiw-title { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.3px; color: var(--text-primary); }
.hiw-subtitle { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.hiw-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 28px; }
.hiw-steps { display: flex; flex-direction: column; gap: 0; }
.hiw-step { display: flex; gap: 16px; position: relative; }
.hiw-step:not(:last-child)::after {
  content: ''; position: absolute; left: 18px; top: 40px; bottom: -14px;
  width: 2px; background: var(--border);
}
.hiw-step + .hiw-step { margin-top: 14px; }
.hiw-step-num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent-red);
  color: white; font-family: 'Barlow Condensed', sans-serif; font-size: 17px;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1;
}
.hiw-step-content { padding-top: 6px; padding-bottom: 14px; }
.hiw-step-title { font-weight: 700; font-size: 14px; color: var(--text-primary); margin-bottom: 4px; }
.hiw-step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.hiw-section-title { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -.2px; margin-bottom: 12px; color: var(--text-primary); }
.hiw-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.hiw-format-card { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.hiw-format-name { font-weight: 700; font-size: 13px; color: var(--text-primary); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.hiw-format-icon { width: 15px; text-align: center; color: var(--accent-blue); flex: 0 0 15px; }
.hiw-format-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.hiw-format-money { color: var(--accent-green); font-weight: 800; }
.hiw-format-accent { color: var(--accent-blue); font-weight: 800; }
.hiw-payouts { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.hiw-payout-row { display: grid; grid-template-columns: 2fr 1fr 1fr; padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); align-items: center; }
.hiw-payout-row:last-child { border-bottom: none; }
.hiw-payout-row.header { background: var(--bg-tertiary); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-tertiary); }
.hiw-payout-row .place { font-weight: 600; color: var(--text-primary); display: inline-flex; align-items: center; gap: 8px; }
.hiw-payout-row .pct   { color: var(--text-secondary); font-size: 12px; }
.hiw-payout-row .amt   { color: var(--accent-green); font-weight: 700; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; }
.hiw-faq { display: flex; flex-direction: column; gap: 10px; }
.hiw-faq-item { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; }
.hiw-faq-q { font-weight: 700; font-size: 13px; color: var(--text-primary); margin-bottom: 5px; display: flex; align-items: flex-start; gap: 8px; }
.hiw-faq-q::before { content: 'Q'; background: var(--accent-blue); color: white; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 4px; letter-spacing: .5px; flex-shrink: 0; margin-top: 1px; }
.hiw-faq-a { font-size: 12px; color: var(--text-secondary); line-height: 1.6; padding-left: 22px; }
.hiw-footer { padding: 16px 26px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; background: var(--bg-secondary); position: sticky; bottom: 0; }

/* ── BOOTSTRAP HEADING COLOR OVERRIDE ─────────────────────────────
   Bootstrap's body { color: #333 } is inherited by headings/divs.
   Explicitly force var(--text-primary) on everything that should be
   white in dark mode. !important beats Bootstrap specificity.
   ──────────────────────────────────────────────────────────────── */
.dl-modal-league-name,
.dl-modal-stat-value,
.hiw-title,
.hiw-section-title,
.hiw-step-title,
.hiw-format-name,
.hiw-faq-q,
.cl-title,
.cl-type-name,
.cl-review-value,
.cl-success-title,
.dl-fmt-line,
.dl-time-line,
.dl-wf-line,
.dl-entry-price,
.dl-league-name,
.dl-op-value { color: var(--text-primary) !important; }
.dl-op-link:hover,
.dl-op-link:focus { color: var(--accent-blue) !important; }
.dl-op-link.AlmostFull { color: var(--accent-red) !important; }
