/* ============================================
   LineupIQ Views
   ============================================ */

/* Contests Workspace */
.contests-workspace {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    background: var(--liq-bg-primary);
}

.contests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--liq-border-color);
}

    .contests-header h5 {
        color: var(--liq-text-primary);
        margin: 0;
    }

        .contests-header h5 i {
            color: var(--liq-accent-blue);
        }

/* Field Lineups Status Badge */
.field-lineups-badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.3rem 0.55rem;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
}

.field-badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--liq-accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.field-badge-inactive {
    background: rgba(108, 117, 125, 0.1);
    color: var(--liq-text-secondary);
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.contests-content {
    flex: 1;
    overflow: auto;
}

.contests-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

    .contests-empty-state i {
        color: var(--liq-text-secondary);
    }

    .contests-empty-state h5 {
        color: var(--liq-text-primary);
    }

    .contests-empty-state p {
        color: var(--liq-text-secondary);
    }

.contests-table-container {
    overflow-x: auto;
}

.contests-table {
    margin-bottom: 0;
    background: var(--liq-bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

    .contests-table thead th {
        background: var(--liq-bg-tertiary);
        color: var(--liq-text-secondary);
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        border-bottom: 1px solid var(--liq-border-color);
        padding: 0.75rem 1rem;
    }

    .contests-table tbody td {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--liq-border-color);
        color: var(--liq-text-primary);
        vertical-align: middle;
    }

    .contests-table tbody tr:last-child td {
        border-bottom: none;
    }

.contest-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .contest-row:hover {
        background-color: var(--liq-bg-hover);
    }

.contest-name {
    font-weight: 500;
    color: var(--liq-text-primary);
}

.contest-row small {
    color: var(--liq-text-secondary);
}

.view-contest-btn {
    white-space: nowrap;
}

    .view-contest-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Contest Cards */
.contests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
}

.contest-card {
    background: var(--liq-bg-secondary);
    border: 1px solid var(--liq-border-color);
    border-radius: 10px;
    overflow: hidden;
    cursor: default;
    transition: all 0.2s ease;
}

.contest-card-header {
    padding: 0.875rem 1rem;
    background: var(--liq-bg-tertiary);
    border-bottom: 1px solid var(--liq-border-color);
}

.contest-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contest-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--liq-text-primary);
    line-height: 1.3;
}

.contest-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.contest-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

    .contest-badge.guaranteed {
        background: rgba(16, 185, 129, 0.15);
        color: var(--liq-accent-green);
    }

    .contest-badge.single-entry {
        background: rgba(59, 130, 246, 0.15);
        color: var(--liq-accent-blue);
    }

    .contest-badge.multi-entry {
        background: rgba(255, 193, 7, 0.15);
        color: #d69e00;
    }

    .contest-badge.game-type {
        background: var(--liq-bg-primary);
        color: var(--liq-text-secondary);
    }

.contest-card-body {
    padding: 1rem;
}

.contest-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.contest-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .contest-stat.primary .stat-value {
        color: var(--liq-accent-green);
        font-size: 1.1rem;
    }

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--liq-text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--liq-text-secondary);
    margin-top: 0.125rem;
}

.contest-fill-bar {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.fill-bar-track {
    height: 6px;
    background: var(--liq-bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.fill-bar-progress {
    height: 100%;
    background: var(--liq-accent-green);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.fill-bar-label {
    font-size: 0.7rem;
    color: var(--liq-text-secondary);
    text-align: right;
}

.contest-card-footer {
    padding: 0.625rem 0.75rem;
    border-top: 1px solid var(--liq-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .contest-card-footer .btn {
        transition: all 0.15s ease;
    }

    .contest-card-footer .btn-outline-success {
        border-color: var(--liq-accent-blue);
        color: var(--liq-accent-blue);
        background: transparent;
    }

        .contest-card-footer .btn-outline-success:hover {
            background: var(--liq-accent-blue);
            border-color: var(--liq-accent-blue);
            color: #fff;
        }

.contest-footer-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1;
}

.contest-footer-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Contest State Badges */
.contest-state-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.contest-state-live {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--liq-accent-green);
    animation: pulse-live 2s infinite;
}

.contest-state-upcoming {
    background-color: rgba(255, 193, 7, 0.15);
    color: #d69e00;
}

.contest-state-completed {
    background-color: rgba(107, 114, 128, 0.15);
    color: var(--liq-text-secondary);
}

.contest-state-postponed {
    background-color: rgba(249, 115, 22, 0.15);
    color: var(--liq-accent-orange);
}

.contest-state-cancelled {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--liq-accent-red);
}

.contest-state-unknown {
    background-color: rgba(107, 114, 128, 0.15);
    color: var(--liq-text-secondary);
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Contest Card States */
.contest-card.upcoming {
    opacity: 0.7;
}

    .contest-card.upcoming:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--liq-border-color);
        cursor: default;
    }

    .contest-card.upcoming .contest-card-footer .btn {
        cursor: not-allowed;
    }

.contest-badge.upcoming {
    background: rgba(255, 193, 7, 0.15);
    color: #d69e00;
}

.contest-card.no-entries {
    opacity: 0.6;
}

    .contest-card.no-entries:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--liq-border-color);
        cursor: default;
    }

    .contest-card.no-entries .contest-card-footer .btn {
        cursor: not-allowed;
    }

.contest-badge.no-data {
    background: rgba(108, 117, 125, 0.15);
    color: var(--liq-text-secondary);
}

/* Contest Build Header */
.player-grid-header.contest-build-header {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid rgba(32, 201, 151, 0.2);
}

.contest-research-label {
    color: var(--liq-text-secondary);
    font-size: 0.9rem;
}

    .contest-research-label i {
        color: #20c997;
    }

.contest-header-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.contest-header-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
}

    .contest-header-stat .stat-label {
        color: var(--liq-text-secondary);
        font-weight: 400;
        font-size: inherit;
        text-transform: none;
        letter-spacing: normal;
        margin-top: 0;
    }

    .contest-header-stat .stat-value {
        color: var(--liq-text-primary);
        font-weight: 600;
        font-size: inherit;
        line-height: inherit;
    }

        .contest-header-stat .stat-value.text-success {
            color: #20c997 !important;
        }

/* Contest Entry Stats */
#contestEntryStats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    #contestEntryStats span {
        padding: 0.25rem 0.6rem;
        background: var(--liq-bg-secondary);
        border: 1px solid var(--liq-border-color);
        border-radius: 4px;
        font-size: 0.75rem;
    }

    #contestEntryStats strong {
        color: var(--liq-accent-green);
    }

/* Entry Name Cells */
.entry-name-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.entry-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Favorites Empty State */
.favorites-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

    .favorites-empty-state .empty-state-content {
        text-align: center;
        padding: 2rem;
    }

    .favorites-empty-state h5 {
        color: var(--liq-text-primary);
        font-weight: 600;
    }

    .favorites-empty-state p {
        font-size: 0.9rem;
        line-height: 1.6;
        color: var(--liq-text-secondary);
    }

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--liq-text-secondary);
    min-height: calc(100vh - 180px);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--liq-bg-tertiary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

    .empty-state-icon i {
        font-size: 2.25rem;
        color: var(--liq-accent-green);
        opacity: 0.8;
    }

.empty-state h3 {
    color: var(--liq-text-primary);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--liq-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.empty-state-btn {
    border-color: var(--liq-accent-green);
    color: var(--liq-accent-green);
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .empty-state-btn:hover {
        background: var(--liq-accent-green);
        border-color: var(--liq-accent-green);
        color: #fff;
    }

.lineup-pool-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--liq-text-secondary);
    text-align: center;
    padding: 2rem;
}

    .lineup-pool-empty i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

    .lineup-pool-empty h4 {
        color: var(--liq-text-primary);
        margin-bottom: 0.5rem;
    }

    .lineup-pool-empty p {
        font-size: 0.9rem;
    }

/* Generation Progress */
.generation-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    padding: 2rem;
    text-align: center;
    color: var(--liq-text-secondary);
}

    .generation-progress h4 {
        color: var(--liq-text-primary);
        margin-bottom: 1rem;
    }

    .generation-progress .progress-container {
        width: 100%;
        max-width: 400px;
        margin-bottom: 1rem;
    }

    .generation-progress .progress {
        background-color: var(--liq-bg-tertiary);
        border-radius: 12px;
        overflow: hidden;
    }

    .generation-progress .progress-bar {
        font-weight: 600;
        font-size: 0.85rem;
        transition: width 0.2s ease;
    }

    .generation-progress .progress-status {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

/* Lineup Builder Preview */
.lineup-builder-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 1.25rem;
    background: var(--liq-bg-primary);
    overflow-y: auto;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.lineup-card {
    position: relative;
    border: 1px solid var(--liq-accent-green);
    border-radius: 10px;
    overflow: hidden;
    background: var(--liq-bg-secondary);
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.08);
}

.lineup-card-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    background: var(--liq-bg-secondary);
    border: 1px solid var(--liq-border-color);
    border-radius: 6px;
    padding: 1rem 1.5rem;
    z-index: 10;
    box-shadow: 0 2px 8px var(--liq-shadow);
}

.lineup-card-overlay-text {
    font-size: 0.85rem;
    color: var(--liq-text-secondary);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

.lineup-card-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1rem;
    background: rgba(16, 185, 129, 0.06);
    border-bottom: 1px solid rgba(16, 185, 129, 0.12);
    font-size: 0.85rem;
}

.lineup-card-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: none;
}

    .lineup-card-table thead th {
        padding: 0.5rem 0.5rem;
        text-align: left;
        font-weight: 600;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--liq-text-secondary);
        background: transparent;
        border: none;
        border-bottom: 1px solid var(--liq-border-color);
    }

    .lineup-card-table tbody tr {
        transition: background-color 0.15s ease;
        border: none;
    }

        .lineup-card-table tbody tr.filled {
            background: transparent;
        }

        .lineup-card-table tbody tr.empty {
            background: transparent;
        }

            .lineup-card-table tbody tr.empty td {
                opacity: 0.35;
            }

        .lineup-card-table tbody tr:hover {
            background: var(--liq-bg-hover);
        }

    .lineup-card-table td {
        padding: 0.6rem 0.5rem;
        vertical-align: middle;
        border: none;
    }

    .lineup-card-table .col-pos {
        width: 45px;
        white-space: nowrap;
        color: var(--liq-text-secondary);
        font-weight: 500;
    }

    .lineup-card-table .col-name {
        text-align: left;
    }

    .lineup-card-table .col-action {
        width: 32px;
        text-align: center;
    }

    .lineup-card-table .col-salary {
        width: 70px;
        text-align: right;
    }

    .lineup-card-table .col-fpts {
        width: 60px;
        text-align: right;
        padding-right: 0.75rem;
    }

    .lineup-card-table thead .col-salary,
    .lineup-card-table thead .col-fpts {
        text-align: right;
    }

    .lineup-card-table thead .col-fpts {
        padding-right: 0.75rem;
    }

    .lineup-card-table tfoot {
        background: var(--liq-bg-tertiary);
    }

        .lineup-card-table tfoot td {
            padding: 0.6rem 0.5rem;
            border: none;
            border-top: 1px solid var(--liq-border-color);
            font-weight: 600;
        }

.totals-row td {
    color: var(--liq-accent-green);
}

.lineup-builder-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
    flex-shrink: 0;
}

    .lineup-builder-footer .btn-save-favorites {
        background: var(--liq-accent-yellow);
        border-color: var(--liq-accent-yellow);
        color: #000;
        font-weight: 500;
        transition: all 0.15s ease;
    }

        .lineup-builder-footer .btn-save-favorites:hover:not(:disabled) {
            background: #e6ac00;
            border-color: #e6ac00;
            color: #000;
        }

        .lineup-builder-footer .btn-save-favorites:disabled {
            background: transparent;
            border: 1px solid rgba(255, 193, 7, 0.35);
            color: rgba(255, 193, 7, 0.5);
            opacity: 1;
        }

[data-bs-theme="dark"] .lineup-builder-footer .btn-save-favorites:disabled {
    border-color: rgba(255, 193, 7, 0.3);
    color: rgba(255, 193, 7, 0.45);
}

.lineup-builder-footer .btn-clear-locks {
    background: transparent;
    border: 1px solid var(--liq-accent-green);
    color: var(--liq-accent-green);
    font-weight: 500;
    transition: all 0.15s ease;
}

    .lineup-builder-footer .btn-clear-locks:hover:not(:disabled) {
        background: rgba(16, 185, 129, 0.1);
        border-color: var(--liq-accent-green);
        color: var(--liq-accent-green);
    }

    .lineup-builder-footer .btn-clear-locks:disabled {
        background: transparent;
        border: 1px solid var(--liq-border-color);
        color: var(--liq-text-secondary);
        opacity: 0.5;
    }

.lineup-builder-footer .btn-optimize {
    background: var(--liq-accent-green);
    border-color: var(--liq-accent-green);
    color: #fff;
    font-weight: 500;
    transition: all 0.15s ease;
}

    .lineup-builder-footer .btn-optimize:hover:not(:disabled) {
        background: #0ea472;
        border-color: #0ea472;
        color: #fff;
    }

    .lineup-builder-footer .btn-optimize:disabled {
        background: transparent;
        border: 1px solid rgba(16, 185, 129, 0.35);
        color: rgba(16, 185, 129, 0.5);
        opacity: 1;
    }

[data-bs-theme="dark"] .lineup-builder-footer .btn-optimize:disabled {
    border-color: rgba(16, 185, 129, 0.3);
    color: rgba(16, 185, 129, 0.45);
}

.builder-status-text {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Active state of view toggle button group */
.contests-header .btn-group .btn.active {
    background-color: #212529;
    border-color: #212529;
    color: white;
}

/* ============================================
   Contest List Cards (Horizontal Card Style)
   ============================================ */

.contests-list-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contest-list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--liq-bg-secondary);
    border: 1px solid var(--liq-border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: default;
    transition: all 0.2s ease;
}

    .contest-list-card.upcoming,
    .contest-list-card.cancelled,
    .contest-list-card.no-entries {
        opacity: 0.6;
        cursor: default;
    }

        .contest-list-card.upcoming:hover,
        .contest-list-card.cancelled:hover,
        .contest-list-card.no-entries:hover {
            border-color: var(--liq-border-color);
            box-shadow: none;
        }

.contest-list-card-main {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    min-width: 0;
}

.contest-list-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 200px;
    max-width: 350px;
}

.contest-list-card-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--liq-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contest-list-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.contest-list-badge {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    white-space: nowrap;
}

    .contest-list-badge.game-type {
        background: var(--liq-bg-tertiary);
        color: var(--liq-text-secondary);
    }

    .contest-list-badge.entry-type {
        background: rgba(59, 130, 246, 0.12);
        color: var(--liq-accent-blue);
    }

    .contest-list-badge.guaranteed {
        background: rgba(16, 185, 129, 0.12);
        color: var(--liq-accent-green);
    }

.contest-list-card-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contest-list-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 70px;
}

    .contest-list-stat .stat-value {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--liq-text-primary);
        line-height: 1.2;
    }

    .contest-list-stat.primary .stat-value {
        color: var(--liq-accent-green);
    }

    .contest-list-stat .stat-label {
        font-size: 0.6rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--liq-text-secondary);
        margin-top: 0.1rem;
    }

.contest-list-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

    .contest-list-card-actions .btn {
        white-space: nowrap;
    }

    .contest-list-card-actions .contest-state-badge {
        margin-right: 0.25rem;
    }

/* ============================================
   Persistent Filters Panel
   ============================================ */

.contests-filters {
    background: var(--liq-bg-secondary);
    border: 1px solid var(--liq-border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.contests-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--liq-bg-tertiary);
    border-bottom: 1px solid var(--liq-border-color);
}

    .contests-filters-header h6 {
        margin: 0;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--liq-text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

.contests-filters-close {
    background: transparent;
    border: none;
    color: var(--liq-text-secondary);
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

    .contests-filters-close:hover {
        color: var(--liq-text-primary);
        background: var(--liq-bg-hover);
    }

.filters-container {
    padding: 1rem;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

    .filter-group label {
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--liq-text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .filter-group .filter-inputs {
        display: flex;
        gap: 0.35rem;
    }

    .filter-group input,
    .filter-group select {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
        width: 80px;
    }

    .filter-group select {
        width: auto;
        min-width: 120px;
    }

.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

    .filter-actions .btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }

/* Active filter indicator on the toggle button */
#contestFiltersBtn.has-filters {
    background: var(--liq-accent-blue-hover);
    border-color: var(--liq-accent-blue);
    color: var(--liq-accent-blue);
}

/* ============================================
   Mobile Adjustments for List Cards
   ============================================ */

@media (max-width: 992px) {
    .contest-list-card-info {
        min-width: 150px;
        max-width: 250px;
    }

    .contest-list-card-stats {
        gap: 1rem;
    }

    .contest-list-stat {
        min-width: 60px;
    }
}

@media (max-width: 768px) {
    .contest-list-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .contest-list-card-main {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .contest-list-card-info {
        min-width: 0;
        max-width: none;
    }

    .contest-list-card-stats {
        justify-content: space-around;
    }

    .contest-list-card-actions {
        justify-content: space-between;
        padding-top: 0.5rem;
        border-top: 1px solid var(--liq-border-color);
    }

    /* Filters mobile */
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

        .filter-group .filter-inputs {
            flex: 1;
        }

        .filter-group input {
            flex: 1;
            width: auto;
        }

        .filter-group select {
            width: 100%;
        }

    .filter-actions {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Contest view toggle buttons */
.contests-header .btn-group .btn-outline-secondary {
    border-color: var(--liq-accent-blue);
    color: var(--liq-accent-blue);
}

    .contests-header .btn-group .btn-outline-secondary:hover {
        background: var(--liq-accent-blue-hover);
        border-color: var(--liq-accent-blue);
        color: var(--liq-accent-blue);
    }

    .contests-header .btn-group .btn-outline-secondary.active {
        background: var(--liq-accent-blue);
        border-color: var(--liq-accent-blue);
        color: #fff;
    }

/* Apply button filled style */
.contests-workspace .btn-contest-primary-filled {
    background: var(--liq-accent-blue);
    border: 1px solid var(--liq-accent-blue);
    color: #fff;
    transition: all 0.15s ease;
}

    .contests-workspace .btn-contest-primary-filled:hover:not(:disabled) {
        background: #2563eb;
        border-color: #2563eb;
    }

/* ============================================
   Contest Entries Summary Bar (Two-State Cards)
   ============================================ */

.contest-entries-summary-bar {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: var(--liq-bg-secondary);
    border: 1px solid var(--liq-border-color);
    border-radius: 8px;
}

/* Empty state: full-width CTA */
.entries-summary-cta {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--liq-bg-tertiary);
    border: 1px dashed var(--liq-border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

    .entries-summary-cta:hover,
    .entries-summary-cta:focus-visible {
        border-color: var(--liq-accent-green);
        background: var(--liq-bg-secondary);
        outline: none;
    }

    .entries-summary-cta:active {
        transform: scale(0.998);
    }

    .entries-summary-cta .cta-icon {
        flex: 0 0 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--liq-accent-green-hover);
        color: var(--liq-accent-green);
        border-radius: 8px;
        font-size: 1.25rem;
    }

    .entries-summary-cta .cta-body {
        flex: 1;
        min-width: 0;
    }

    .entries-summary-cta .cta-title {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--liq-text-primary);
        margin-bottom: 0.125rem;
    }

    .entries-summary-cta .cta-subtitle {
        font-size: 0.825rem;
        color: var(--liq-text-secondary);
    }

    .entries-summary-cta .cta-arrow {
        color: var(--liq-text-secondary);
        transition: transform 0.15s, color 0.15s;
    }

    .entries-summary-cta:hover .cta-arrow {
        color: var(--liq-accent-green);
        transform: translateX(2px);
    }

/* Active state: card grid */
.entries-summary-cards {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(140px, 0.8fr) repeat(3, 1fr);
    gap: 0.75rem;
}

.stat-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--liq-bg-secondary);
    border: 1px solid var(--liq-border-color);
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.stat-card-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
    background: var(--liq-bg-tertiary);
    color: var(--liq-text-secondary);
}

.stat-icon-target {
    background: var(--liq-accent-blue-hover);
    color: var(--liq-accent-blue);
}

.stat-icon-contests {
    background: rgba(255, 193, 7, 0.15);
    color: var(--liq-accent-yellow);
}

.stat-icon-fees {
    background: var(--liq-accent-green-hover);
    color: var(--liq-accent-green);
}

.stat-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.stat-card .stat-card-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--liq-text-primary);
    font-variant-numeric: tabular-nums;
}

.stat-card .stat-card-label {
    font-size: 0.7rem;
    color: var(--liq-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-top: 0;
}

.stat-card-sub {
    font-size: 0.7rem;
    color: var(--liq-text-secondary);
    opacity: 0.75;
    margin-top: 0.125rem;
}

/* Action card variant (Import) - stays centered/stacked */
.stat-card-action {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.25rem;
    cursor: pointer;
    border-style: dashed;
}

    .stat-card-action:hover,
    .stat-card-action:focus-visible {
        border-color: var(--liq-accent-green);
        border-style: solid;
        background: var(--liq-accent-green-hover);
        outline: none;
    }

    .stat-card-action .stat-card-icon {
        background: var(--liq-accent-green-hover);
        color: var(--liq-accent-green);
    }

    .stat-card-action .stat-card-label {
        color: var(--liq-text-primary);
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        font-size: 0.825rem;
        margin-top: 0;
    }

/* Actions area */
.entries-summary-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Responsive: stack on narrow */
@media (max-width: 900px) {
    .entries-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contest-entries-summary-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .entries-summary-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 500px) {
    .entries-summary-cards {
        grid-template-columns: 1fr;
    }
}

/* Active card (imported entries or enabled for building): the state has to
   read from across the room — full green border + glow, tinted header,
   and an explicit "Entered / Active" pill in the header row. Inactive
   cards keep the neutral look so the contrast does the work. */
.contest-card.has-user-entries,
.contest-list-card.has-user-entries {
    border-color: rgba(16, 185, 129, 0.55);
    border-left: 3px solid var(--liq-accent-green);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.22), 0 6px 20px rgba(16, 185, 129, 0.10);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0) 45%), var(--liq-bg-secondary);
}

.contest-card.has-user-entries:hover,
.contest-list-card.has-user-entries:hover {
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35), 0 8px 24px rgba(16, 185, 129, 0.16);
}

.contest-card.has-user-entries .contest-card-header {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.16), var(--liq-bg-tertiary) 75%);
    border-bottom-color: rgba(16, 185, 129, 0.35);
}

/* "Entered" / "Active" pill — filled so it isn't mistaken for the other
   outline badges (GPP, Single Entry…) */
.contest-active-pill {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--liq-accent-green);
    color: #04150d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.contest-list-badge.user-entries.contest-active-pill {
    margin-left: 0;
    background: var(--liq-accent-green);
    color: #04150d;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.72rem;
}

/* Keep the pill on the name line; the name itself wraps if it's long */
.contest-card.has-user-entries .contest-name,
.contest-card.entries-skipped .contest-name {
    flex: 1 1 auto;
    min-width: 0;
}

/* Entered but switched off: neutral card, muted outline pill */
.contest-active-pill.is-off,
.contest-list-badge.user-entries.contest-active-pill.is-off {
    background: transparent;
    color: var(--liq-text-secondary);
    box-shadow: inset 0 0 0 1px var(--liq-border-color);
}

/* Include / skip switch on imported-entry contests */
.entry-include-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 0;
    margin: 0;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--liq-text-secondary);
    white-space: nowrap;
}

.entry-include-switch .form-check-input {
    float: none;
    margin: 0;
    width: 2rem;
    height: 1.1rem;
    cursor: pointer;
    background-color: var(--liq-bg-secondary);
    border-color: var(--liq-border-color);
}

.entry-include-switch .form-check-input:checked {
    background-color: var(--liq-accent-green);
    border-color: var(--liq-accent-green);
}

.entry-include-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(16, 185, 129, 0.25);
    border-color: var(--liq-accent-green);
}

.entry-include-switch .form-check-label {
    font-weight: 500;
    cursor: pointer;
}

/* User entry badge */
.user-entry-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-entry-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--liq-accent-green);
    font-size: 0.75rem;
    font-weight: 600;
}

/* List view entry badge */
.contest-list-badge.user-entries {
    background: rgba(16, 185, 129, 0.15);
    color: var(--liq-accent-green);
    font-weight: 600;
}

/* ============================================
   Target Lineups Stepper
   ============================================ */

.target-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.target-stepper-label {
    color: var(--liq-text-secondary);
    margin: 0 0.35rem 0 0;
    font-weight: 500;
}

.target-stepper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--liq-border-color);
    background: var(--liq-bg-secondary);
    color: var(--liq-text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.7rem;
    line-height: 1;
}

    .target-stepper-btn:hover:not(:disabled) {
        border-color: var(--liq-accent-green);
        color: var(--liq-accent-green);
        background: var(--liq-accent-green-hover);
    }

    .target-stepper-btn:active:not(:disabled) {
        transform: scale(0.92);
    }

    .target-stepper-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .target-stepper-btn i {
        font-size: 0.7rem;
    }

.target-count-input {
    /* !important needed to override Bootstrap's .form-control-sm sizing,
       which is also applied to the input via the form-control-sm class */
    height: 22px !important;
    width: 40px !important;
    padding: 0 0.2rem !important;
    font-size: 0.75rem !important;
    text-align: center;
    border: 1px solid var(--liq-border-color);
    background: var(--liq-bg-secondary);
    color: var(--liq-text-primary);
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}

    .target-count-input:focus {
        outline: none !important;
        box-shadow: none !important;
        border-color: var(--liq-accent-green) !important;
    }

    /* Hide native spinners � stepper buttons replace them */
    .target-count-input::-webkit-outer-spin-button,
    .target-count-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .target-count-input[type="number"] {
        -moz-appearance: textfield;
    }

.target-stepper-max {
    color: var(--liq-text-secondary);
    font-size: 0.7rem;
    margin-left: 0.15rem;
    opacity: 0.75;
    font-variant-numeric: tabular-nums;
}

/* Import preview styles */
.contest-entries-preview-stats {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--liq-bg-tertiary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.preview-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--liq-accent-green);
}

.preview-stat-label {
    font-size: 0.7rem;
    color: var(--liq-text-muted);
    text-transform: uppercase;
}

/* Under the stats: "what will import to this slate" vs whole-file totals,
   shown only when some contests in the file don't belong to this slate */
.preview-stats-note {
    margin: -0.5rem 0 1rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--liq-text-secondary);
}

.contest-entries-preview-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

.preview-contest-row {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--liq-border-color);
}

    .preview-contest-row:last-child {
        border-bottom: none;
    }

.preview-contest-name {
    font-weight: 500;
    font-size: 0.85rem;
    display: block;
}

.preview-contest-meta {
    font-size: 0.75rem;
    color: var(--liq-text-muted);
}

/* Site detection notice */
.contest-import-site-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--liq-accent-green);
}

/* Contest Enable Toggle */
.btn-contest-enable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--liq-border-color);
    border-radius: 50%;
    background: transparent;
    color: var(--liq-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 1rem;
}

    .btn-contest-enable:hover {
        border-color: var(--liq-accent-green);
        color: var(--liq-accent-green);
        background: rgba(16, 185, 129, 0.1);
    }

    .btn-contest-enable.active {
        border-color: var(--liq-accent-green);
        color: var(--liq-accent-green);
        background: rgba(16, 185, 129, 0.15);
    }

        .btn-contest-enable.active:hover {
            border-color: var(--liq-accent-red);
            color: var(--liq-accent-red);
            background: rgba(239, 68, 68, 0.1);
        }

/* ============================================
   Contest Assignment UI
   ============================================ */

.contest-assignment-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Summary header */
.contest-assignment-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;               /* narrow panel: stats row, then actions row */
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    flex-shrink: 0;
    container-type: inline-size;   /* the panel can be narrow on a wide screen */
    /* Pinned: the container is the scroller and this is its first child, so
       Save to entries / Download stay in view while the accordion scrolls.
       The gradient is translucent — give it an opaque base so rows don't
       show through. */
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: var(--liq-bg-primary, #151922);
    background-image: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.6);
}

.assignment-summary-stat {
    white-space: nowrap;           /* a stat never breaks mid-phrase */
}

/* Narrow panel: drop the · separators, actions take their own full row */
@container (max-width: 560px) {
    .assignment-summary-separator { display: none; }
    .assignment-summary-right {
        flex: 1 0 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    .assignment-saved-state {
        margin-right: auto;        /* "saved 3h ago" hugs the left, buttons the right */
    }
}

/* Bookmark (favorite) button in the contest-assignment grids */
.portfolio-bookmark-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}
.portfolio-bookmark-btn:hover { transform: scale(1.15); }
.portfolio-bookmark-btn.text-warning { color: var(--liq-accent-yellow, #ffc107) !important; }
.portfolio-bookmark-btn.text-muted { color: var(--liq-text-secondary) !important; }
.portfolio-bookmark-btn.text-muted:hover { color: var(--liq-accent-yellow, #ffc107) !important; }

/* Scoring-basis notice (sim ran without a field → no contest ROI) */
.contest-assignment-notice {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    color: var(--bs-secondary-color, #9ca3af);
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 6px;
    flex-shrink: 0;
}
.contest-assignment-notice strong { color: var(--bs-body-color); }

/* Saved-to-entries state next to the Save button in the assignment summary */
.assignment-saved-state {
    font-size: 0.75rem;
    color: var(--liq-text-secondary, #9ca3af);
    margin-right: 0.5rem;
    white-space: nowrap;
}

.assignment-summary-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--liq-text-secondary);
}

    .assignment-summary-left strong {
        color: var(--liq-accent-green);
    }

.assignment-summary-separator {
    color: var(--liq-text-muted);
}

.assignment-summary-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

/* Contest group sections */
.contest-group-section {
    border: 1px solid var(--liq-border-color);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

    .contest-group-section.expanded {
        border-color: rgba(16, 185, 129, 0.3);
    }

/* Contest group header */
.contest-group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.6rem 0.75rem;
    background: var(--liq-bg-secondary);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .contest-group-header:hover {
        background: var(--liq-bg-tertiary);
    }

    /* Tier-based left border accent */
    .contest-group-header.tier-high {
        border-left: 3px solid #f59e0b;
    }

    .contest-group-header.tier-mid {
        border-left: 3px solid var(--liq-accent-blue);
    }

    .contest-group-header.tier-low {
        border-left: 3px solid var(--liq-accent-green);
    }

    /* Ad-hoc lineup group (picked from the pool, no contest) */
    .contest-group-header.tier-group {
        border-left: 3px solid var(--liq-text-secondary, #9ca3af);
    }

    .contest-group-header.pool-header {
        border-left: 3px solid var(--liq-text-muted);
    }

.contest-group-header-left {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.contest-group-chevron {
    font-size: 0.75rem;
    color: var(--liq-text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
    margin-top: 3px;
}

.contest-group-title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.contest-group-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--liq-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.contest-group-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--liq-text-secondary);
    flex-wrap: wrap;
}

.contest-group-fee-badge {
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.65rem;
}

    .contest-group-fee-badge.tier-high {
        background: rgba(245, 158, 11, 0.15);
        color: #f59e0b;
    }

    .contest-group-fee-badge.tier-mid {
        background: rgba(59, 130, 246, 0.15);
        color: var(--liq-accent-blue);
    }

    .contest-group-fee-badge.tier-low {
        background: rgba(16, 185, 129, 0.12);
        color: var(--liq-accent-green);
    }

    .contest-group-fee-badge.tier-group {
        background: rgba(156, 163, 175, 0.15);
        color: var(--liq-text-secondary, #9ca3af);
        letter-spacing: 0.02em;
    }

.contest-group-remove-btn {
    margin-left: 0.25rem;
}

.contest-group-count {
    color: var(--liq-text-muted);
}

.contest-group-total-fee {
    color: var(--liq-text-muted);
}

.contest-group-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Stats in header */
.contest-group-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contest-group-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 40px;
}

    .contest-group-stat .stat-label {
        font-size: 0.55rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--liq-text-muted);
        margin-top: 0;
    }

    .contest-group-stat .stat-value {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--liq-text-primary);
        line-height: 1.2;
    }

/* Grid containers */
.contest-group-content {
    border-top: 1px solid var(--liq-border-color);
}

.contest-group-grid {
    width: 100%;
}

.contest-pool-grid {
    width: 100%;
    height: 400px;
}

/* Dense metric grids: tighter cell padding so ~20 narrow numeric columns
   stay legible (columns are auto-sized to content — see fitAssignmentGrid) */
.contest-group-grid,
.contest-pool-grid {
    --ag-cell-horizontal-padding: 10px;
}

/* Pool section styling */
.pool-section .contest-group-name {
    color: var(--liq-text-secondary);
}

/* Pool contest badge */
.pool-contest-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--liq-accent-green);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Export button hover */
.contest-group-export-btn {
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.contest-group-header:hover .contest-group-export-btn {
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .contest-group-header {
        flex-direction: column;
        gap: 0.4rem;
    }

    .contest-group-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .contest-group-name {
        max-width: 200px;
    }

    /* Hide secondary stats, keep ROI and EV */
    .contest-group-stat[title="Average Win%"],
    .contest-group-stat[title="Avg Pairwise Correlation"],
    .contest-group-stat[title="Avg Projected Points"],
    .contest-group-stat.stat-secondary {
        display: none;
    }
}

@media (max-width: 600px) {
    .contest-group-stats {
        display: none;
    }

    .contest-group-name {
        max-width: 150px;
        font-size: 0.75rem;
    }

    .contest-group-header {
        padding: 0.5rem;
    }

    .contest-group-meta {
        flex-wrap: wrap;
    }

    .assignment-summary-left {
        font-size: 0.75rem;
    }
}

/* Remove lineup button */
.contest-remove-lineup-btn {
    opacity: 0.4;
    transition: all 0.15s ease;
    font-size: 0.85rem;
}

    .contest-remove-lineup-btn:hover {
        opacity: 1;
        color: var(--liq-accent-red) !important;
        transform: scale(1.1);
    }

.contests-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--liq-accent-green);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 4px;
    line-height: 1;
}
