.leader-section-header {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
      flex-wrap: wrap;
    }

    .leader-header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .leader-mode-toggle {
      display: inline-flex;
      gap: 6px;
      padding: 4px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: #f7f9fc;
    }

    .leader-mode-btn {
      border: 0;
      background: transparent;
      color: var(--accent-dark);
      border-radius: 999px;
      padding: 7px 12px;
      font-size: 0.78rem;
      font-weight: 900;
      cursor: pointer;
      white-space: nowrap;
    }

    .leader-mode-btn.active {
      background: var(--accent);
      color: #ffffff;
      box-shadow: 0 8px 18px rgba(11, 94, 215, 0.20);
    }

    .leader-week-select {
      border: 1px solid var(--border);
      border-radius: 999px;
      background: #ffffff;
      color: var(--accent-dark);
      padding: 8px 12px;
      font-size: 0.78rem;
      font-weight: 900;
      cursor: pointer;
      max-width: 250px;
    }

    .leader-owner-line {
      width: 100%;
      margin-top: 8px;
    }

    .fantasy-owner-badge,
    .available-badge {
      width: 100%;
      max-width: 100%;
    }

    .fantasy-owner-badge-with-thumb {
      display: flex;
      align-items: center;
      gap: 6px;
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }

    .fantasy-owner-badge-with-thumb span {
      flex: 1;
      min-width: 0;
      overflow-wrap: anywhere;
    }

    .fantasy-owner-badge-with-thumb .owner-thumb {
      width: 22px;
      height: 22px;
      min-width: 22px;
      max-width: 22px;
      min-height: 22px;
      max-height: 22px;
      border-radius: 50%;
      object-fit: cover;
      object-position: center;
      flex: 0 0 22px;
      border: 1px solid rgba(11, 94, 215, 0.25);
      background: #ffffff;
    }

    .available-badge {
      display: inline-flex;
      justify-content: center;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(25, 135, 84, 0.12);
      color: #146c43;
      border: 1px solid rgba(25, 135, 84, 0.25);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }


    .compact-pickup-toggle {
      width: auto;
      padding: 3px;
      gap: 4px;
    }

    .compact-pickup-toggle .leader-mode-btn {
      flex: 0 0 auto;
      padding: 4px 7px;
      font-size: 0.58rem;
    }

    @media (max-width: 520px) {
      #top-pickups .leader-header-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
      }

      #top-pickups .compact-pickup-toggle {
        width: auto;
      }

      #availableStudsModeTag {
        width: auto;
        font-size: 0.58rem;
        padding: 4px 7px;
      }
    }

    .available-studs-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 8px;
      margin-top: 10px;
    }

    .available-stud-card {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 4px;
      min-height: 96px;
      padding: 9px 10px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #ffffff;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.045);
    }

    .available-stud-top,
    .available-stud-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
    }

    .available-stud-category {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2px 6px;
      border-radius: 999px;
      background: rgba(11, 94, 215, 0.10);
      color: var(--accent-dark);
      font-size: 0.58rem;
      font-weight: 900;
      white-space: nowrap;
    }

    .available-stud-rank {
      color: var(--muted);
      font-size: 0.58rem;
      font-weight: 900;
      white-space: nowrap;
    }

    .available-stud-name {
      color: var(--ink);
      font-size: 0.78rem;
      font-weight: 950;
      line-height: 1.05;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .available-stud-team {
      color: var(--muted);
      font-size: 0.62rem;
      font-weight: 800;
      line-height: 1.05;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .available-stud-value {
      color: var(--accent-dark);
      font-size: 0.86rem;
      font-weight: 950;
      line-height: 1;
    }

    .available-stud-label {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2px 6px;
      border-radius: 999px;
      background: rgba(25, 135, 84, 0.12);
      color: #146c43;
      border: 1px solid rgba(25, 135, 84, 0.25);
      font-size: 0.54rem;
      font-weight: 950;
      text-transform: uppercase;
      white-space: nowrap;
    }

    @media (max-width: 520px) {
      #top-pickups .section-subtitle {
        font-size: 0.78rem;
        line-height: 1.25;
      }

      #top-pickups .leader-section-header {
        gap: 6px;
      }

      .available-studs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 8px;
      }

      .available-stud-card {
        min-height: 82px;
        padding: 7px 8px;
        border-radius: 10px;
        gap: 3px;
      }

      .available-stud-category,
      .available-stud-rank {
        font-size: 0.52rem;
      }

      .available-stud-name {
        font-size: 0.70rem;
      }

      .available-stud-team {
        font-size: 0.56rem;
      }

      .available-stud-value {
        font-size: 0.78rem;
      }

      .available-stud-label {
        font-size: 0.48rem;
        padding: 2px 5px;
      }
    }

    @media (max-width: 360px) {
      .available-studs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
      }

      .available-stud-card {
        min-height: 76px;
        padding: 6px 7px;
      }

      .available-stud-label {
        display: none;
      }
    }





    @media (max-width: 520px) {

      .leader-section-header,
      .leader-header-actions,
      .leader-mode-toggle,
      .leader-week-select {
        width: 100%;
      }

      .leader-header-actions {
        justify-content: stretch;
      }

      .leader-mode-btn {
        flex: 1;
      }

      #weeklyLeaderRange {
        text-align: center;
        width: 100%;
      }

      .leader-week-select {
        max-width: none;
        text-align: center;
      }
    }
