/* Extracted from ecosystem/prop-firms/prop-firm-challenges.php. Keep page-specific rules scoped to the prop cluster. */
    .challenge-page {
        --challenge-ink: #071313;
        --challenge-green: #0F766E;
        --challenge-lime: #C7F45D;
        --challenge-line: rgba(7, 19, 19, 0.10);
        background:
            radial-gradient(circle at 12% 8%, rgba(199, 244, 93, 0.22), transparent 28%),
            radial-gradient(circle at 86% 2%, rgba(15, 118, 110, 0.15), transparent 34%),
            linear-gradient(180deg, #FCFBF8 0%, #FFFFFF 52%, #F8FAF8 100%);
    }

    .challenge-console {
        padding: 22px;
        border: 1px solid rgba(7, 19, 19, 0.12);
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.74);
        box-shadow: 0 24px 70px rgba(7, 19, 19, 0.08);
    }

    .challenge-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .challenge-stat {
        min-height: 110px;
        padding: 16px;
        border: 1px solid rgba(7, 19, 19, 0.10);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.78);
    }

    .challenge-stat strong {
        display: block;
        color: var(--challenge-ink);
        font-size: 34px;
        line-height: 1;
        letter-spacing: -0.06em;
    }

    .challenge-stat span {
        display: block;
        margin-top: 8px;
        color: rgba(7, 19, 19, 0.62);
        font-size: 12px;
        font-weight: 750;
        line-height: 1.38;
    }

    .challenge-warning {
        margin-top: 14px;
        padding: 16px;
        border-radius: 18px;
        background: #071313;
        color: rgba(255, 255, 255, 0.78);
        font-size: 14px;
        line-height: 1.65;
    }

    .challenge-warning strong {
        display: block;
        margin-bottom: 4px;
        color: #FFFFFF;
    }

    .challenge-controls {
        display: grid;
        grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
        gap: 18px;
        margin-top: 28px;
        padding: 18px;
        border: 1px solid var(--challenge-line);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.64);
    }

    .challenge-search {
        width: 100%;
        min-height: 50px;
        padding: 0 16px;
        border: 1px solid rgba(7, 19, 19, 0.14);
        border-radius: 16px;
        background: #FFFFFF;
        color: var(--challenge-ink);
        font: inherit;
        font-weight: 650;
        outline: none;
    }

    .challenge-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-end;
    }

    .challenge-filter {
        min-height: 38px;
        padding: 0 13px;
        border: 1px solid rgba(7, 19, 19, 0.12);
        border-radius: 999px;
        background: #FFFFFF;
        color: rgba(7, 19, 19, 0.70);
        font: inherit;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
    }

    .challenge-filter.is-active,
    .challenge-filter:hover {
        border-color: rgba(7, 19, 19, 0.88);
        background: #071313;
        color: #FFFFFF;
    }

    .challenge-table-wrap {
        margin-top: 24px;
        overflow-x: auto;
        border: 1px solid rgba(7, 19, 19, 0.10);
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.76);
        box-shadow: 0 20px 60px rgba(7, 19, 19, 0.06);
    }

    .challenge-table {
        width: 100%;
        min-width: 1320px;
        border-collapse: collapse;
    }

    .challenge-table th,
    .challenge-table td {
        padding: 16px;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid rgba(7, 19, 19, 0.08);
    }

    .challenge-table th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: rgba(255, 255, 255, 0.96);
        color: rgba(7, 19, 19, 0.62);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .challenge-table td {
        color: rgba(7, 19, 19, 0.72);
        font-size: 13px;
        line-height: 1.55;
    }

    .challenge-table tr:last-child td {
        border-bottom: 0;
    }

    .challenge-firm {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 4px;
        align-items: center;
        min-width: 170px;
    }

    .challenge-logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        grid-row: span 2;
        border: 1px solid rgba(7, 19, 19, 0.16);
        border-radius: 12px;
        background: #071313;
        color: var(--challenge-lime);
        font-size: 11px;
        font-weight: 900;
        overflow: hidden;
    }

    .challenge-logo img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

    .challenge-firm strong {
        color: var(--challenge-ink);
        font-size: 15px;
        line-height: 1.2;
    }

    .challenge-firm span {
        color: rgba(7, 19, 19, 0.52);
        font-size: 12px;
        font-weight: 750;
    }

    .challenge-pill {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 0 10px;
        border-radius: 999px;
        background: rgba(15, 118, 110, 0.08);
        color: rgba(7, 19, 19, 0.72);
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }

    .challenge-pill--warn {
        background: rgba(245, 158, 11, 0.12);
        color: #92400E;
    }

    .challenge-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        background: #071313;
        color: #FFFFFF;
        font-size: 12px;
        font-weight: 850;
        white-space: nowrap;
    }

    .challenge-page .rankings-decision-links {
        min-width: 180px;
    }

    .challenge-page .rankings-decision-links a {
        border-color: rgba(7, 19, 19, 0.16);
        background: rgba(15, 118, 110, 0.08);
        color: #0A3B36;
    }

    .challenge-page .rankings-decision-links a:hover {
        border-color: rgba(7, 19, 19, 0.32);
        color: #071313;
    }

    .challenge-row.is-hidden {
        display: none;
    }

    .challenge-no-results {
        display: none;
        margin-top: 18px;
        padding: 18px;
        border: 1px dashed rgba(7, 19, 19, 0.18);
        border-radius: 18px;
        color: rgba(7, 19, 19, 0.64);
        font-size: 14px;
        font-weight: 650;
    }

    .challenge-no-results.is-visible {
        display: block;
    }

    @media (max-width: 980px) {
        .challenge-stats,
        .challenge-controls {
            grid-template-columns: 1fr;
        }

        .challenge-filters {
            justify-content: flex-start;
        }
    }
