



    .brain-strategy-analysis {

        margin-top: 28px;

        padding-top: 26px;

        border-top: 1px solid rgba(255,255,255,0.10);

    }



    .brain-strategy-header {

        display: flex;

        align-items: flex-end;

        justify-content: space-between;

        gap: 18px;

        margin-bottom: 18px;

    }



    .brain-strategy-eyebrow {

        color: #7cfc00;

        font-size: 11px;

        font-weight: 800;

        letter-spacing: 0.12em;

        margin-bottom: 5px;

    }



    .brain-strategy-title {

        color: #ffffff;

        font-size: 22px;

        font-weight: 900;

        letter-spacing: -0.02em;

    }



    .brain-strategy-status {

        color: rgba(255,255,255,0.55);

        font-size: 12px;

        text-align: right;

    }



    .brain-strategy-table-wrap {

        width: 100%;

        overflow-x: auto;

        border: 1px solid rgba(255,255,255,0.09);

        border-radius: 12px;

        background: rgba(255,255,255,0.025);

    }



    .brain-strategy-table {

        width: 100%;

        border-collapse: collapse;

        min-width: 760px;

    }



    .brain-strategy-table th {

        padding: 11px 13px;

        color: rgba(255,255,255,0.50);

        font-size: 10px;

        font-weight: 800;

        letter-spacing: 0.08em;

        text-align: right;

        border-bottom: 1px solid rgba(255,255,255,0.08);

        white-space: nowrap;

    }



    .brain-strategy-table th:first-child {

        text-align: left;

    }



    .brain-strategy-table td {

        padding: 13px;

        color: #ffffff;

        font-size: 13px;

        text-align: right;

        border-bottom: 1px solid rgba(255,255,255,0.055);

        white-space: nowrap;

    }



    .brain-strategy-table td:first-child {

        text-align: left;

        font-weight: 800;

    }



    .brain-strategy-table tbody tr:last-child td {

        border-bottom: none;

    }



    .brain-strategy-table tbody tr:hover {

        background: rgba(255,255,255,0.025);

    }



    .brain-strategy-main-row td:first-child {

        color: #7cfc00;

    }



    .brain-strategy-profit-positive {

        color: #7cfc00 !important;

        font-weight: 800;

    }



    .brain-strategy-profit-negative {

        color: #ff6868 !important;

        font-weight: 800;

    }



    .brain-strategy-muted {

        color: rgba(255,255,255,0.42) !important;

    }



    .brain-strategy-breakdown-tabs {

        display: flex;

        flex-wrap: wrap;

        gap: 8px;

        margin-top: 22px;

        margin-bottom: 12px;

    }



    .brain-strategy-tab {

        appearance: none;

        border: 1px solid rgba(255,255,255,0.12);

        border-radius: 999px;

        padding: 8px 12px;

        background: transparent;

        color: rgba(255,255,255,0.60);

        font-size: 10px;

        font-weight: 800;

        letter-spacing: 0.06em;

        cursor: pointer;

    }



    .brain-strategy-tab:hover {

        border-color: rgba(124,252,0,0.45);

        color: #ffffff;

    }



    .brain-strategy-tab.active {

        background: #7cfc00;

        border-color: #7cfc00;

        color: #050505;

    }



    .brain-strategy-footnote {

        margin-top: 12px;

        color: rgba(255,255,255,0.40);

        font-size: 11px;

        line-height: 1.5;

    }



    .brain-strategy-empty {

        padding: 22px;

        border: 1px solid rgba(255,255,255,0.08);

        border-radius: 12px;

        color: rgba(255,255,255,0.50);

        font-size: 13px;

        text-align: center;

    }



    @media (max-width: 720px) {

        .brain-strategy-header {

            display: block;

        }



        .brain-strategy-status {

            margin-top: 8px;

            text-align: left;

        }



        .brain-strategy-title {

            font-size: 19px;

        }

    }








    /*

        Correct Brain Bets page structure.



        #brain-bets = old sidebar / "THE BRAIN TODAY"

        #brainBets  = full Brain Bets shortlist section



        The sidebar is no longer used.



        Homepage:

            full Brain Bets section hidden



        Brain Bets view:

            normal homepage sections hidden

            full #brainBets section shown

    */



    #brain-bets {

        display: none !important;

    }



    body:not(.brain-bets-page-view) #brainBets {

        display: none !important;

    }



    body.brain-bets-page-view main > .hero,

    body.brain-bets-page-view main > section:not(#brainBets) {

        display: none !important;

    }



    body.brain-bets-page-view #brainBets {

        display: block !important;

        min-height: calc(100vh - 140px);

        padding-top: 42px;

        padding-bottom: 80px;

    }








    .analyst-bets-wrap {

        margin-bottom: 34px;

    }



    .analyst-bets-head {

        display: flex;

        justify-content: space-between;

        align-items: center;

        gap: 16px;

        margin-bottom: 15px;

    }



    .analyst-bets-title {

        font-size: 1.25rem;

        font-weight: 950;

        letter-spacing: -0.03em;

    }



    .analyst-bets-subtitle {

        color: var(--muted);

        margin-top: 4px;

        font-size: 0.88rem;

    }



    .analyst-add-btn {

        border: 1px solid var(--accent);

        background: var(--accent);

        color: #071000;

        border-radius: 10px;

        padding: 10px 15px;

        font-weight: 950;

    }



    .analyst-bets-grid {

        display: grid;

        grid-template-columns:

            repeat(

                auto-fill,

                minmax(300px, 1fr)

            );

        gap: 14px;

    }



    .analyst-bet-card {

        border: 1px solid var(--border);

        border-left: 3px solid var(--accent);

        background: var(--panel);

        border-radius: 14px;

        padding: 18px;

    }



    .analyst-bet-top {

        display: flex;

        justify-content: space-between;

        align-items: start;

        gap: 12px;

    }



    .analyst-bet-race {

        color: var(--muted);

        font-size: 0.8rem;

        font-weight: 850;

        letter-spacing: 0.06em;

    }



    .analyst-bet-horse {

        margin-top: 4px;

        font-size: 1.2rem;

        font-weight: 950;

    }



    .analyst-bet-badge {

        color: var(--accent);

        border: 1px solid rgba(185,255,53,.28);

        background: rgba(185,255,53,.06);

        border-radius: 8px;

        padding: 6px 9px;

        font-size: 0.72rem;

        font-weight: 900;

    }



    .analyst-bet-price {

        margin-top: 18px;

        font-size: 1.7rem;

        font-weight: 950;

    }



    .analyst-bet-price-label {

        color: var(--muted);

        font-size: 0.72rem;

        font-weight: 850;

    }



    .analyst-bet-reason {

        margin-top: 16px;

        padding-top: 15px;

        border-top: 1px solid var(--border);

        color: #c6cec9;

        line-height: 1.55;

    }



    .analyst-bet-reason-label {

        color: var(--accent);

        font-size: 0.72rem;

        font-weight: 950;

        letter-spacing: 0.1em;

        margin-bottom: 6px;

    }



    .analyst-delete-btn {

        margin-top: 15px;

        border: 1px solid #493232;

        background: transparent;

        color: #ff8787;

        border-radius: 8px;

        padding: 8px 11px;

        font-weight: 850;

    }



    .analyst-form {

        display: none;

        margin-bottom: 20px;

        border: 1px solid var(--border);

        background: var(--panel);

        border-radius: 14px;

        padding: 18px;

    }



    .analyst-form.visible {

        display: block;

    }



    .analyst-form-grid {

        display: grid;

        grid-template-columns:

            repeat(

                3,

                minmax(0, 1fr)

            );

        gap: 12px;

    }



    .analyst-field label {

        display: block;

        color: var(--muted);

        font-size: 0.75rem;

        font-weight: 850;

        margin-bottom: 6px;

    }



    .analyst-field input,

    .analyst-field select,

    .analyst-field textarea {

        width: 100%;

        border: 1px solid var(--border);

        background: #0a0d0b;

        color: var(--text);

        border-radius: 9px;

        padding: 11px 12px;

    }



    .analyst-field textarea {

        min-height: 110px;

        resize: vertical;

    }



    .analyst-field.full {

        grid-column: 1 / -1;

    }



    .analyst-form-actions {

        display: flex;

        gap: 9px;

        margin-top: 15px;

    }



    .analyst-save-btn {

        border: 0;

        border-radius: 9px;

        background: var(--accent);

        color: #071000;

        padding: 11px 16px;

        font-weight: 950;

    }



    .analyst-cancel-btn {

        border: 1px solid var(--border);

        border-radius: 9px;

        background: transparent;

        color: var(--muted);

        padding: 11px 16px;

        font-weight: 850;

    }



    .analyst-message {

        margin-top: 10px;

        color: var(--muted);

        font-size: 0.84rem;

    }



    @media (max-width: 760px) {

        .analyst-form-grid {

            grid-template-columns: 1fr;

        }



        .analyst-field.full {

            grid-column: auto;

        }



        .analyst-bets-head {

            align-items: flex-start;

            flex-direction: column;

        }

    }








    /* ----------------------------------------------------------

       ANALYST BETS - PUBLIC / ADMIN POLISH

       ---------------------------------------------------------- */



    .analyst-bets-wrap {

        margin-top: 18px;

        margin-bottom: 42px;

    }



    .analyst-bets-head {

        display: flex;

        justify-content: space-between;

        align-items: flex-end;

        gap: 20px;

        margin-bottom: 20px;

    }



    .analyst-bets-title {

        margin-top: 7px;

        font-size: 1.65rem;

        line-height: 1;

        font-weight: 950;

        letter-spacing: -0.035em;

    }



    .analyst-bets-subtitle {

        max-width: 680px;

        margin-top: 8px;

        color: var(--muted);

        font-size: 0.92rem;

        line-height: 1.5;

    }



    .analyst-add-btn {

        flex: 0 0 auto;

        border: 1px solid var(--accent);

        background: var(--accent);

        color: #071000;

        border-radius: 12px;

        padding: 13px 18px;

        font-weight: 950;

        letter-spacing: -0.01em;

        cursor: pointer;

    }



    .analyst-bets-grid {

        display: grid;

        grid-template-columns:

            repeat(

                auto-fill,

                minmax(320px, 420px)

            );

        gap: 18px;

        align-items: start;

    }



    .analyst-bet-card {

        position: relative;

        overflow: hidden;

        border: 1px solid #26312b;

        border-left: 4px solid var(--accent);

        background:

            linear-gradient(

                180deg,

                rgba(185,255,53,.025),

                rgba(0,0,0,0)

            ),

            var(--panel);

        border-radius: 16px;

        padding: 20px;

        box-shadow:

            0 12px 30px rgba(0,0,0,.16);

    }



    .analyst-bet-top {

        display: flex;

        justify-content: space-between;

        align-items: flex-start;

        gap: 16px;

    }



    .analyst-bet-race {

        color: #9da8a2;

        font-size: 0.76rem;

        line-height: 1.2;

        font-weight: 900;

        letter-spacing: 0.08em;

        text-transform: uppercase;

    }



    .analyst-bet-horse {

        margin-top: 8px;

        color: #f7faf8;

        font-size: 1.48rem;

        line-height: 1.08;

        font-weight: 950;

        letter-spacing: -0.035em;

    }



    .analyst-bet-badge {

        flex: 0 0 auto;

        white-space: nowrap;

        color: var(--accent);

        border: 1px solid rgba(185,255,53,.34);

        background: rgba(185,255,53,.07);

        border-radius: 9px;

        padding: 7px 10px;

        font-size: 0.68rem;

        line-height: 1;

        font-weight: 950;

        letter-spacing: 0.055em;

        text-transform: uppercase;

    }



    .analyst-bet-price-box {

        display: inline-flex;

        flex-direction: column;

        gap: 4px;

        margin-top: 22px;

        padding: 12px 16px 13px;

        min-width: 130px;

        border: 1px solid #202923;

        background: rgba(0,0,0,.19);

        border-radius: 12px;

    }



    .analyst-bet-price-label {

        color: #87948d;

        font-size: 0.65rem;

        line-height: 1;

        font-weight: 900;

        letter-spacing: 0.09em;

        text-transform: uppercase;

    }



    .analyst-bet-price {

        margin: 0;

        color: #ffffff;

        font-size: 2rem;

        line-height: 1;

        font-weight: 950;

        letter-spacing: -0.045em;

    }



    .analyst-bet-reason {

        margin-top: 20px;

        padding-top: 18px;

        border-top: 1px solid #26312b;

        color: #d0d7d3;

        font-size: 0.97rem;

        line-height: 1.62;

    }



    .analyst-bet-reason-label {

        margin-bottom: 9px;

        color: var(--accent);

        font-size: 0.67rem;

        line-height: 1;

        font-weight: 950;

        letter-spacing: 0.105em;

        text-transform: uppercase;

    }



    .analyst-delete-btn {

        margin-top: 18px;

        border: 1px solid #4b3030;

        background: rgba(255,80,80,.025);

        color: #ff8d8d;

        border-radius: 9px;

        padding: 8px 12px;

        font-size: 0.74rem;

        font-weight: 900;

        cursor: pointer;

    }



    .analyst-delete-btn:hover {

        background: rgba(255,80,80,.08);

    }



    @media (max-width: 760px) {



        .analyst-bets-head {

            align-items: flex-start;

            flex-direction: column;

        }



        .analyst-bets-grid {

            grid-template-columns: 1fr;

        }



        .analyst-bet-card {

            width: 100%;

        }



        .analyst-bet-top {

            gap: 10px;

        }



        .analyst-bet-badge {

            font-size: 0.62rem;

        }

    }








    #analystHistorySection {

        display: none;

        margin-top: 36px;

        padding-top: 30px;

        border-top: 1px solid var(--border);

    }



    .analyst-history-heading {

        margin-bottom: 18px;

    }



    .analyst-history-heading .eyebrow {

        margin-bottom: 7px;

    }



    .analyst-history-title {

        font-size: 1.45rem;

        font-weight: 950;

        letter-spacing: -0.035em;

    }



    .analyst-history-copy {

        margin-top: 6px;

        color: var(--muted);

    }



    .analyst-history-summary {

        display: grid;

        grid-template-columns:

            repeat(

                5,

                minmax(120px, 1fr)

            );

        gap: 12px;

        margin-bottom: 18px;

    }



    .analyst-history-stat {

        border: 1px solid var(--border);

        border-radius: 12px;

        background: var(--panel);

        padding: 14px 15px;

    }



    .analyst-history-stat-label {

        color: var(--muted);

        font-size: 0.68rem;

        font-weight: 900;

        letter-spacing: .08em;

    }



    .analyst-history-stat-value {

        margin-top: 6px;

        font-size: 1.3rem;

        font-weight: 950;

    }



    .analyst-history-table-wrap {

        overflow-x: auto;

        border: 1px solid var(--border);

        border-radius: 14px;

    }



    .analyst-history-table {

        width: 100%;

        border-collapse: collapse;

        min-width: 950px;

    }



    .analyst-history-table th,

    .analyst-history-table td {

        padding: 14px;

        border-bottom: 1px solid var(--border);

        text-align: left;

    }



    .analyst-history-table th {

        color: var(--muted);

        font-size: .69rem;

        letter-spacing: .07em;

    }



    .analyst-history-table td {

        font-weight: 750;

    }



    .analyst-result-won {

        color: #7fff75;

    }



    .analyst-result-lost {

        color: #ff7a7a;

    }



    .analyst-result-pending {

        color: #ffbf59;

    }



    @media (max-width: 850px) {

        .analyst-history-summary {

            grid-template-columns:

                repeat(

                    2,

                    minmax(0, 1fr)

                );

        }

    }








    #brainAnalystComparison {

        display: none;

        margin-top: 26px;

        margin-bottom: 26px;

    }



    .brain-analyst-comparison-head {

        margin-bottom: 14px;

    }



    .brain-analyst-comparison-title {

        font-size: 1.25rem;

        font-weight: 950;

        letter-spacing: -0.03em;

    }



    .brain-analyst-comparison-copy {

        margin-top: 5px;

        color: var(--muted);

        font-size: 0.86rem;

    }



    .brain-analyst-comparison-table-wrap {

        overflow-x: auto;

        border: 1px solid var(--border);

        border-radius: 14px;

        background: var(--panel);

    }



    .brain-analyst-comparison-table {

        width: 100%;

        min-width: 760px;

        border-collapse: collapse;

    }



    .brain-analyst-comparison-table th,

    .brain-analyst-comparison-table td {

        padding: 15px 16px;

        border-bottom: 1px solid var(--border);

        text-align: left;

    }



    .brain-analyst-comparison-table th {

        color: var(--muted);

        font-size: 0.69rem;

        font-weight: 900;

        letter-spacing: 0.07em;

    }



    .brain-analyst-comparison-table td {

        font-weight: 850;

    }



    .brain-analyst-comparison-table tr:last-child td {

        border-bottom: 0;

    }



    .brain-analyst-comparison-table .comparison-name {

        font-weight: 950;

    }



    .brain-analyst-comparison-table .comparison-combined {

        background: rgba(185,255,53,.035);

    }



    .brain-analyst-comparison-table .comparison-combined

    .comparison-name {

        color: var(--accent);

    }



    .comparison-positive {

        color: #7fff75;

    }



    .comparison-negative {

        color: #ff7a7a;

    }



    .comparison-muted {

        color: var(--muted);

    }








    .daily-bets-launch {

        display: inline-flex;

        align-items: center;

        gap: 9px;

        border: 1px solid rgba(185,255,53,.55);

        background: rgba(185,255,53,.08);

        color: var(--accent);

        border-radius: 11px;

        padding: 11px 15px;

        font-weight: 950;

        cursor: pointer;

        letter-spacing: -0.01em;

    }



    .daily-bets-launch:hover {

        background: rgba(185,255,53,.13);

    }





    /* ==========================================================

       MODAL

       ========================================================== */



    .daily-bets-modal {

        position: fixed;

        inset: 0;

        z-index: 99999;

        display: none;

        align-items: center;

        justify-content: center;

        padding: 22px;

        background: rgba(0,0,0,.84);

        backdrop-filter: blur(7px);

    }



    .daily-bets-modal.visible {

        display: flex;

    }





    /* ==========================================================

       SCREENSHOT CARD

       ========================================================== */



    .daily-bets-card {

        position: relative;

        width: min(940px, 96vw);

        max-height: 92vh;

        overflow-y: auto;

        border: 1px solid #2c382f;

        border-radius: 20px;

        background:

            radial-gradient(

                circle at top right,

                rgba(185,255,53,.07),

                transparent 35%

            ),

            #080b09;

        box-shadow:

            0 30px 90px rgba(0,0,0,.6);

    }



    .daily-bets-shot {

        padding: 34px;

    }





    .daily-bets-top {

        display: flex;

        justify-content: space-between;

        align-items: flex-start;

        gap: 24px;

        padding-bottom: 25px;

        border-bottom: 1px solid #29332d;

    }



    .daily-bets-brand {

        color: var(--accent);

        font-size: .72rem;

        font-weight: 950;

        letter-spacing: .16em;

    }



    .daily-bets-heading {

        margin-top: 7px;

        color: white;

        font-size: 2.25rem;

        line-height: .95;

        font-weight: 950;

        letter-spacing: -.055em;

    }



    .daily-bets-date {

        margin-top: 9px;

        color: #929d97;

        font-size: .92rem;

        font-weight: 750;

    }



    .daily-bets-count {

        min-width: 115px;

        border: 1px solid #2c392f;

        border-radius: 13px;

        background: rgba(0,0,0,.28);

        padding: 13px 15px;

        text-align: center;

    }



    .daily-bets-count-number {

        font-size: 1.8rem;

        line-height: 1;

        font-weight: 950;

    }



    .daily-bets-count-label {

        margin-top: 5px;

        color: #89958e;

        font-size: .65rem;

        font-weight: 900;

        letter-spacing: .1em;

    }





    /* ==========================================================

       SECTIONS

       ========================================================== */



    .daily-bets-section {

        margin-top: 28px;

    }



    .daily-bets-section-title {

        display: flex;

        align-items: center;

        gap: 9px;

        margin-bottom: 13px;

        color: #aeb8b2;

        font-size: .7rem;

        font-weight: 950;

        letter-spacing: .13em;

    }



    .daily-bets-section-title::after {

        content: "";

        flex: 1;

        height: 1px;

        background: #252f29;

    }



    .daily-bets-list {

        display: grid;

        gap: 10px;

    }





    /* ==========================================================

       BET ROW

       ========================================================== */



    .daily-bets-row {

        display: grid;

        grid-template-columns:

            145px

            minmax(220px, 1fr)

            auto;

        gap: 18px;

        align-items: center;

        border: 1px solid #253029;

        border-radius: 13px;

        background: rgba(255,255,255,.018);

        padding: 15px 17px;

    }



    .daily-bets-row.analyst {

        border-left: 3px solid var(--accent);

    }



    .daily-bets-race {

        color: #939f98;

        font-size: .78rem;

        line-height: 1.3;

        font-weight: 900;

        text-transform: uppercase;

        letter-spacing: .055em;

    }



    .daily-bets-horse {

        color: #fff;

        font-size: 1.08rem;

        font-weight: 950;

        letter-spacing: -.025em;

    }



    .daily-bets-meta {

        margin-top: 5px;

        color: #87938c;

        font-size: .73rem;

        font-weight: 800;

    }



    .daily-bets-price {

        min-width: 90px;

        text-align: right;

        color: #fff;

        font-size: 1.38rem;

        font-weight: 950;

    }



    .daily-bets-price-label {

        display: block;

        margin-bottom: 4px;

        color: #748078;

        font-size: .58rem;

        font-weight: 900;

        letter-spacing: .08em;

    }



    .daily-bets-reason {

        grid-column: 2 / 4;

        margin-top: -5px;

        padding-top: 11px;

        border-top: 1px solid #202923;

        color: #c1cac5;

        font-size: .82rem;

        line-height: 1.45;

    }



    .daily-bets-reason strong {

        color: var(--accent);

        font-size: .63rem;

        letter-spacing: .08em;

    }





    .daily-bets-empty {

        padding: 28px;

        border: 1px dashed #303c34;

        border-radius: 13px;

        color: #839088;

        text-align: center;

    }





    /* ==========================================================

       FOOTER / CONTROLS

       ========================================================== */



    .daily-bets-footer {

        display: flex;

        justify-content: space-between;

        gap: 20px;

        margin-top: 28px;

        padding-top: 18px;

        border-top: 1px solid #28322c;

        color: #647168;

        font-size: .68rem;

        font-weight: 800;

    }



    .daily-bets-controls {

        position: sticky;

        bottom: 0;

        display: flex;

        justify-content: flex-end;

        gap: 9px;

        padding: 14px 18px;

        border-top: 1px solid #253029;

        background: rgba(8,11,9,.96);

    }



    .daily-bets-control {

        border: 1px solid #334039;

        background: #101512;

        color: #d3dbd6;

        border-radius: 9px;

        padding: 9px 13px;

        font-weight: 850;

        cursor: pointer;

    }



    .daily-bets-control.primary {

        border-color: var(--accent);

        color: #081000;

        background: var(--accent);

    }





    @media (max-width: 700px) {



        .daily-bets-shot {

            padding: 24px 18px;

        }



        .daily-bets-heading {

            font-size: 1.75rem;

        }



        .daily-bets-row {

            grid-template-columns:

                1fr

                auto;

        }



        .daily-bets-race {

            grid-column: 1 / -1;

        }



        .daily-bets-reason {

            grid-column: 1 / -1;

        }

    }








    .race-meeting-nav {

        margin: 0 0 24px 0;

        padding: 16px 18px;



        border: 1px solid var(--border);

        border-radius: 14px;



        background: var(--panel);

    }





    .race-meeting-nav-top {

        display: grid;

        grid-template-columns:

            minmax(220px, 360px)

            1fr;



        align-items: end;

        gap: 18px;



        margin-bottom: 14px;

    }





    .race-meeting-nav-control {

        min-width: 0;

    }





    .race-meeting-nav-label {

        display: block;



        margin-bottom: 7px;



        color: var(--muted);



        font-size: 0.68rem;

        font-weight: 900;

        letter-spacing: 0.09em;

        text-transform: uppercase;

    }





    .race-meeting-nav-select {

        width: 100%;

        min-height: 44px;



        padding: 0 40px 0 13px;



        border: 1px solid var(--border);

        border-radius: 10px;



        background: #0c110e;

        color: var(--text);



        font: inherit;

        font-size: 0.86rem;

        font-weight: 900;



        cursor: pointer;

        outline: none;

    }





    .race-meeting-nav-select:hover,

    .race-meeting-nav-select:focus {

        border-color: var(--accent);

    }





    .race-meeting-nav-current {

        min-width: 0;

        padding-bottom: 10px;

    }





    .race-meeting-nav-current-track {

        overflow: hidden;



        color: var(--text);



        font-size: 0.95rem;

        font-weight: 950;

        letter-spacing: 0.025em;



        text-overflow: ellipsis;

        white-space: nowrap;

    }





    .race-meeting-nav-current-meta {

        margin-top: 3px;



        color: var(--muted);



        font-size: 0.72rem;

        font-weight: 800;

    }





    .race-meeting-nav-race-label {

        margin-bottom: 8px;



        color: var(--muted);



        font-size: 0.68rem;

        font-weight: 900;

        letter-spacing: 0.09em;

        text-transform: uppercase;

    }





    .race-meeting-nav-scroll {

        width: 100%;



        overflow-x: auto;

        overflow-y: hidden;



        padding-bottom: 4px;



        scrollbar-width: thin;



        -webkit-overflow-scrolling: touch;

        overscroll-behavior-x: contain;

    }





    .race-meeting-nav-buttons {

        display: flex;



        width: max-content;

        min-width: 100%;



        gap: 8px;

    }





    .race-meeting-race-button {

        flex: 0 0 auto;



        min-width: 54px;

        height: 44px;



        border: 1px solid var(--border);

        border-radius: 10px;



        background: #0c110e;

        color: var(--text);



        font-size: 0.82rem;

        font-weight: 950;



        cursor: pointer;



        transition:

            border-color .15s ease,

            background .15s ease,

            color .15s ease;

    }





    .race-meeting-race-button:hover {

        border-color: var(--accent);

        color: var(--accent);

    }





    .race-meeting-race-button.active {

        border-color: var(--accent);

        background: var(--accent);

        color: #071000;

    }





    .race-meeting-race-button.current {

        box-shadow:

            0 0 0 1px rgba(185,255,53,.15),

            0 0 18px rgba(185,255,53,.08);

    }





    @media (max-width: 700px) {



        .race-meeting-nav {

            margin-left: -2px;

            margin-right: -2px;



            padding: 13px;



            border-radius: 12px;

        }





        .race-meeting-nav-top {

            display: block;



            margin-bottom: 14px;

        }





        .race-meeting-nav-control {

            width: 100%;

        }





        .race-meeting-nav-select {

            width: 100%;

            min-height: 48px;



            font-size: 16px;

        }





        .race-meeting-nav-current {

            margin-top: 12px;

            padding-bottom: 0;

        }





        .race-meeting-nav-current-track {

            font-size: 0.86rem;

        }





        .race-meeting-nav-current-meta {

            font-size: 0.68rem;

        }





        .race-meeting-nav-scroll {

            margin-right: -13px;



            width: calc(100% + 13px);



            padding-right: 13px;

            padding-bottom: 5px;

        }





        .race-meeting-nav-buttons {

            min-width: max-content;

        }





        .race-meeting-race-button {

            min-width: 50px;

            height: 44px;

        }

    }








    #horseSearchPage {

        display: none;

        min-height: calc(100vh - 120px);

        padding-top: 34px;

        padding-bottom: 70px;

    }





    body.horse-search-page-view main > .hero {

        display: none !important;

    }



    body.horse-search-page-view main > section:not(#horseSearchPage) {

        display: none !important;

    }



    body.horse-search-page-view #brainBets,

    body.horse-search-page-view #form,

    body.horse-search-page-view #racePage {

        display: none !important;

    }



    body.horse-search-page-view #horseSearchPage {

        display: block !important;

    }





    .horse-search-head {

        margin-bottom: 24px;

    }



    .horse-search-kicker {

        color: var(--accent);

        font-size: .7rem;

        font-weight: 950;

        letter-spacing: .15em;

    }



    .horse-search-title {

        margin-top: 7px;

        color: var(--text);

        font-size: 2.25rem;

        line-height: 1;

        font-weight: 950;

        letter-spacing: -.05em;

    }



    .horse-search-copy {

        margin-top: 10px;

        max-width: 720px;

        color: var(--muted);

        font-size: .95rem;

        line-height: 1.5;

    }





    .horse-search-box {

        max-width: 760px;

        margin-top: 28px;

    }



    .horse-search-input {

        width: 100%;

        height: 60px;

        padding: 0 19px;

        border: 1px solid var(--border);

        border-radius: 13px;

        background: var(--panel);

        color: var(--text);

        font-size: 1.04rem;

        font-weight: 750;

        outline: none;

    }



    .horse-search-input:focus {

        border-color: var(--accent);

        box-shadow:

            0 0 0 2px rgba(185,255,53,.07);

    }



    .horse-search-input::placeholder {

        color: var(--muted);

    }





    .horse-search-help {

        margin-top: 8px;

        color: var(--muted);

        font-size: .75rem;

        font-weight: 750;

    }





    .horse-search-results {

        width: min(760px, 100%);

        margin-top: 18px;

        display: grid;

        gap: 9px;

    }





    .horse-search-result {

        display: flex;

        justify-content: space-between;

        align-items: center;

        gap: 20px;



        width: 100%;

        padding: 16px 18px;



        border: 1px solid var(--border);

        border-radius: 12px;



        background: var(--panel);

        color: var(--text);



        text-align: left;

        cursor: pointer;



        transition:

            border-color .15s ease,

            background .15s ease;

    }



    .horse-search-result:hover {

        border-color: var(--accent);

        background: rgba(185,255,53,.025);

    }





    .horse-search-result-name {

        font-size: 1.02rem;

        font-weight: 950;

        letter-spacing: -.02em;

    }





    .horse-search-result-meta {

        margin-top: 4px;

        color: var(--muted);

        font-size: .72rem;

        font-weight: 750;

    }





    .horse-search-result-open {

        color: var(--accent);

        font-size: .7rem;

        font-weight: 950;

        letter-spacing: .07em;

        white-space: nowrap;

    }





    .horse-search-message {

        padding: 20px 0;

        color: var(--muted);

    }





    /* ==========================================================

       BASIC PROFILE PLACEHOLDER



       Used only when the existing profile dispatcher is not

       exposed globally. We can replace this with the full canonical

       profile once we see which handler is currently active.

       ========================================================== */



    #horseSearchProfile {

        display: none;

        max-width: 900px;

        margin-top: 30px;

        padding: 24px;

        border: 1px solid var(--border);

        border-radius: 14px;

        background: var(--panel);

    }



    .horse-profile-back {

        border: 0;

        background: transparent;

        color: var(--accent);

        padding: 0;

        cursor: pointer;

        font-weight: 900;

    }



    .horse-profile-name {

        margin-top: 18px;

        font-size: 2rem;

        font-weight: 950;

        letter-spacing: -.045em;

    }



    .horse-profile-id {

        margin-top: 6px;

        color: var(--muted);

        font-size: .78rem;

        font-weight: 750;

    }








/* ==========================================================

   BRAIN BETS SECONDARY CONTENT ALIGNMENT

   ========================================================== */



/*

   Original Brain Bets content already uses .shell.



   Some of the later Analyst / comparison blocks were injected

   outside that shell. Any direct extra block inside the dedicated

   Brain Bets section should use the same site grid.

*/



body.brain-bets-page-view

#brain-bets > :not(.shell) {

    width: min(

        1216px,

        calc(100% - 48px)

    ) !important;



    max-width: 1216px !important;



    margin-left: auto !important;

    margin-right: auto !important;



    box-sizing: border-box;

}





/*

   The JS below also identifies dynamically-added Analyst /

   comparison sections and gives them this class.

*/



body.brain-bets-page-view

.brain-secondary-aligned {

    width: min(

        1216px,

        calc(100% - 48px)

    ) !important;



    max-width: 1216px !important;



    margin-left: auto !important;

    margin-right: auto !important;



    box-sizing: border-box;

}





/* ==========================================================

   ASK THE BRAIN POPUP

   ========================================================== */



.rb-popup-overlay {

    position: fixed;

    inset: 0;



    z-index: 20000;



    display: none;



    align-items: center;

    justify-content: center;



    padding: 24px;



    background:

        rgba(0, 0, 0, .72);



    backdrop-filter:

        blur(5px);

}





.rb-popup-overlay.visible {

    display: flex;

}





.rb-popup-card {

    width: min(

        760px,

        calc(100vw - 48px)

    );



    height: min(

        720px,

        calc(100vh - 80px)

    );



    display: flex;

    flex-direction: column;



    overflow: hidden;



    border:

        1px solid

        rgba(169, 255, 26, .28);



    border-radius: 18px;



    background:

        #0b0f0c;



    box-shadow:

        0 30px 90px

        rgba(0, 0, 0, .58);

}





.rb-popup-header {

    display: flex;



    align-items: center;

    justify-content: space-between;



    gap: 20px;



    min-height: 76px;



    padding:

        0

        22px;



    border-bottom:

        1px solid

        rgba(255, 255, 255, .09);

}





.rb-popup-brand {

    display: flex;

    align-items: center;

    gap: 12px;

}





.rb-popup-icon {

    display: grid;

    place-items: center;



    width: 36px;

    height: 36px;



    border-radius: 9px;



    background:

        var(--accent, #a8ff1a);



    color:

        #050705;



    font-size: 19px;

}





.rb-popup-title {

    color:

        var(--text, #f4f6f4);



    font-size: .95rem;



    font-weight: 950;



    letter-spacing:

        .03em;

}





.rb-popup-subtitle {

    margin-top: 3px;



    color:

        var(--muted, #96a198);



    font-size: .7rem;



    font-weight: 700;

}





.rb-popup-close {

    width: 38px;

    height: 38px;



    border:

        1px solid

        rgba(255,255,255,.13);



    border-radius: 9px;



    background:

        #111612;



    color:

        #e7ece8;



    cursor: pointer;



    font-size: 18px;



    font-weight: 800;

}





.rb-popup-close:hover {

    border-color:

        var(--accent, #a8ff1a);

}





.rb-popup-chat {

    flex: 1;



    min-height: 0;



    overflow-y: auto;



    padding:

        22px;



    display: flex;

    flex-direction: column;



    gap: 13px;

}





.rb-popup-empty {

    margin: auto;



    max-width: 430px;



    color:

        var(--muted, #96a198);



    text-align: center;



    font-size: .88rem;



    line-height: 1.6;

}





.rb-popup-message {

    max-width: 86%;



    padding:

        13px

        15px;



    border-radius: 12px;



    line-height: 1.5;



    font-size: .9rem;



    white-space: normal;

}





.rb-popup-message.user {

    align-self: flex-end;



    background:

        var(--accent, #a8ff1a);



    color:

        #050705;



    font-weight: 750;

}





.rb-popup-message.brain {

    align-self: flex-start;



    border:

        1px solid

        rgba(255,255,255,.09);



    background:

        #111612;



    color:

        #edf1ed;

}





.rb-popup-message.brain strong {

    color:

        var(--accent, #a8ff1a);

}





.rb-popup-graphic {

    width: 100%;



    margin-top: 10px;



    overflow: hidden;



    border-radius: 10px;



    border:

        1px solid

        rgba(255,255,255,.10);

}





.rb-popup-graphic img {

    display: block;



    width: 100%;

    height: auto;

}





.rb-popup-composer {

    padding:

        16px;



    display: grid;



    grid-template-columns:

        1fr auto;



    gap: 10px;



    border-top:

        1px solid

        rgba(255,255,255,.09);



    background:

        #090d0a;

}





.rb-popup-input {

    min-width: 0;



    height: 52px;



    padding:

        0

        15px;



    border:

        1px solid

        rgba(255,255,255,.13);



    border-radius: 10px;



    outline: none;



    background:

        #101511;



    color:

        #f2f5f2;



    font-family:

        inherit;



    font-size: .9rem;

}





.rb-popup-input:focus {

    border-color:

        var(--accent, #a8ff1a);

}





.rb-popup-send {

    height: 52px;



    padding:

        0

        22px;



    border: 0;



    border-radius: 10px;



    background:

        var(--accent, #a8ff1a);



    color:

        #050705;



    font-family:

        inherit;



    font-size: .78rem;



    font-weight: 950;



    cursor: pointer;

}





.rb-popup-send:disabled {

    opacity: .48;

    cursor: wait;

}





/*

   Fix floating launcher text/icon as well.

*/



#globalBrainLauncher {

    gap: 8px;

}





@media (max-width: 720px) {



    body.brain-bets-page-view

    #brain-bets > :not(.shell),



    body.brain-bets-page-view

    .brain-secondary-aligned {

        width:

            calc(100% - 32px) !important;

    }





    .rb-popup-overlay {

        padding: 10px;

    }





    .rb-popup-card {

        width: 100%;



        height:

            calc(100vh - 20px);



        border-radius: 14px;

    }





    .rb-popup-header {

        padding:

            0

            15px;

    }





    .rb-popup-chat {

        padding: 15px;

    }





    .rb-popup-composer {

        grid-template-columns:

            1fr;

    }





    .rb-popup-send {

        width: 100%;

    }

}







.rb-popup-usage {

    padding:

        10px

        22px;



    border-bottom:

        1px solid

        rgba(255,255,255,.07);



    background:

        rgba(255,255,255,.018);



    color:

        rgba(255,255,255,.64);



    font-size:

        12px;



    font-weight:

        800;



    letter-spacing:

        .035em;

}





.rb-popup-usage strong {

    color:

        var(--accent, #a8ff1a);

}





.rb-popup-usage.limit-reached {

    color:

        #ffb85c;

}





.rb-popup-composer.limit-reached {

    opacity:

        .62;

}





.rb-popup-composer.limit-reached

.rb-popup-send {

    cursor:

        not-allowed;

}








.metric-help-button {

    appearance: none;

    -webkit-appearance: none;



    width: 17px;

    height: 17px;



    display: inline-flex;

    align-items: center;

    justify-content: center;



    margin-left: 5px;

    padding: 0;



    border: 1px solid rgba(168,255,26,.45);

    border-radius: 50%;



    background: rgba(168,255,26,.08);

    color: var(--accent);



    font-size: 10px;

    font-weight: 950;

    line-height: 1;



    cursor: pointer;



    vertical-align: 1px;



    transition:

        background .16s ease,

        color .16s ease,

        border-color .16s ease,

        transform .16s ease;

}



.metric-help-button:hover {

    background: var(--accent);

    color: #071000;

    border-color: var(--accent);

    transform: translateY(-1px);

}





.metric-help-popover {

    position: fixed;

    z-index: 20000;



    width: min(360px, calc(100vw - 28px));



    padding: 18px;



    border: 1px solid rgba(168,255,26,.32);

    border-radius: 14px;



    background: #111511;



    box-shadow:

        0 20px 60px rgba(0,0,0,.50);



    color: var(--text);



    display: none;

}



.metric-help-popover.visible {

    display: block;

}





.metric-help-popover-title {

    color: var(--accent);



    font-size: .73rem;

    font-weight: 950;

    letter-spacing: .09em;



    text-transform: uppercase;



    margin-bottom: 8px;

}





.metric-help-popover-heading {

    font-size: 1.05rem;

    font-weight: 900;



    margin-bottom: 8px;

}





.metric-help-popover-copy {

    color: var(--muted);



    font-size: .88rem;

    line-height: 1.58;

}





.metric-help-popover-example {

    margin-top: 11px;

    padding: 10px 12px;



    border-left: 3px solid var(--accent);



    background: rgba(168,255,26,.05);



    color: var(--text);



    font-size: .84rem;

    line-height: 1.5;

}





.metric-help-popover-footer {

    margin-top: 14px;



    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

}





.metric-help-learn {

    appearance: none;

    border: 0;

    background: transparent;



    padding: 0;



    color: var(--accent);



    font-size: .74rem;

    font-weight: 950;

    letter-spacing: .06em;



    cursor: pointer;

}





.metric-help-close {

    appearance: none;



    width: 28px;

    height: 28px;



    border: 1px solid var(--border);

    border-radius: 8px;



    background: transparent;

    color: var(--muted);



    cursor: pointer;



    font-size: 17px;

}





.metric-help-close:hover {

    color: var(--text);

    border-color: var(--accent);

}





@media (max-width: 620px) {



    .metric-help-popover {

        left: 14px !important;

        right: 14px !important;

        bottom: 18px !important;

        top: auto !important;



        width: auto;

    }



}








/* ==============================================================

   MEMBERSHIP VIEW

   ============================================================== */



#membershipPage {

    display: none;

    min-height: calc(100vh - 120px);

    padding: 56px 0 90px;

}





body.membership-page-view

main > .hero {

    display: none !important;

}





body.membership-page-view

main > section:not(#membershipPage) {

    display: none !important;

}





body.membership-page-view

#membershipPage {

    display: block !important;

}





/* ==============================================================

   HERO

   ============================================================== */



.membership-hero {

    max-width: 850px;

    margin-bottom: 44px;

}





.membership-kicker {

    color: var(--accent);

    font-size: .76rem;

    font-weight: 950;

    letter-spacing: .15em;

}





.membership-title {

    margin: 10px 0 18px;



    font-size: clamp(

        2.8rem,

        6vw,

        5.1rem

    );



    line-height: .96;

    letter-spacing: -.055em;

}





.membership-copy {

    max-width: 720px;



    color: var(--muted);



    font-size: 1.04rem;

    line-height: 1.7;

}





.membership-copy strong {

    color: var(--text);

}





/* ==============================================================

   PLANS

   ============================================================== */



.membership-grid {

    display: grid;



    grid-template-columns:

        repeat(

            3,

            minmax(0, 1fr)

        );



    gap: 18px;



    align-items: stretch;

}





.membership-card {

    position: relative;



    display: flex;

    flex-direction: column;



    min-width: 0;



    padding: 28px;



    border:

        1px solid

        var(--border);



    border-radius: 18px;



    background:

        linear-gradient(

            180deg,

            rgba(255,255,255,.018),

            rgba(255,255,255,0)

        ),

        var(--panel);

}





.membership-card.featured {

    border-color:

        rgba(185,255,53,.52);



    box-shadow:

        0 22px 70px

        rgba(0,0,0,.26),

        inset 0 0 0 1px

        rgba(185,255,53,.035);

}





.membership-card.pro {

    background:

        radial-gradient(

            circle at top right,

            rgba(185,255,53,.09),

            transparent 38%

        ),

        var(--panel);

}





.membership-most-popular {

    position: absolute;



    top: 15px;

    right: 15px;



    padding: 6px 9px;



    border-radius: 999px;



    background:

        rgba(185,255,53,.12);



    color: var(--accent);



    font-size: .61rem;

    font-weight: 950;

    letter-spacing: .08em;

}





.membership-plan-label {

    color: var(--accent);



    font-size: .72rem;

    font-weight: 950;

    letter-spacing: .11em;

}





.membership-plan-name {

    margin-top: 8px;



    font-size: 1.55rem;

    font-weight: 950;

    letter-spacing: -.035em;

}





.membership-plan-tagline {

    margin-top: 7px;



    min-height: 44px;



    color: var(--muted);



    font-size: .9rem;

    line-height: 1.45;

}





.membership-price {

    display: flex;

    align-items: flex-end;

    gap: 7px;



    margin-top: 27px;

}





.membership-price-value {

    font-size: 3rem;

    line-height: .95;



    font-weight: 950;

    letter-spacing: -.06em;

}





.membership-price-period {

    padding-bottom: 5px;



    color: var(--muted);



    font-size: .76rem;

    font-weight: 850;

}





.membership-price-note {

    min-height: 22px;



    margin-top: 7px;



    color: var(--muted);



    font-size: .72rem;

}





.membership-divider {

    height: 1px;



    margin: 23px 0;



    background: var(--border);

}





.membership-features {

    display: grid;

    gap: 12px;



    flex: 1;

}





.membership-feature {

    position: relative;



    padding-left: 22px;



    color: #d5ddd8;



    font-size: .86rem;

    line-height: 1.42;

}





.membership-feature::before {

    content: "\2713";



    position: absolute;



    left: 0;

    top: 0;



    color: var(--accent);



    font-weight: 950;

}





.membership-feature.dim {

    color: var(--muted);

}





.membership-feature.dim::before {

    color: #657069;

}





.membership-button {

    width: 100%;



    min-height: 48px;



    margin-top: 27px;



    border:

        1px solid

        var(--border);



    border-radius: 11px;



    background: transparent;



    color: var(--text);



    font-weight: 950;



    cursor: pointer;

}





.membership-button:hover {

    border-color: var(--accent);

}





.membership-button.primary {

    border-color: var(--accent);



    background: var(--accent);



    color: #071000;

}





.membership-button.primary:hover {

    background: var(--accent-dark);

}





/* ==============================================================

   COMPARISON

   ============================================================== */



.membership-section {

    margin-top: 66px;

}





.membership-section-head {

    margin-bottom: 22px;

}





.membership-section-title {

    margin-top: 7px;



    font-size: 2rem;

    font-weight: 950;

    letter-spacing: -.045em;

}





.membership-section-copy {

    max-width: 720px;



    margin-top: 9px;



    color: var(--muted);



    line-height: 1.6;

}





.membership-comparison-wrap {

    overflow-x: auto;



    border:

        1px solid

        var(--border);



    border-radius: 15px;

}





.membership-comparison {

    width: 100%;



    min-width: 760px;



    border-collapse: collapse;



    background: var(--panel);

}





.membership-comparison th,

.membership-comparison td {

    padding: 15px 17px;



    border-bottom:

        1px solid

        var(--border);



    text-align: center;

}





.membership-comparison th:first-child,

.membership-comparison td:first-child {

    text-align: left;

}





.membership-comparison th {

    color: var(--muted);



    font-size: .72rem;

    font-weight: 950;

    letter-spacing: .06em;

}





.membership-comparison td {

    font-size: .84rem;

    font-weight: 750;

}





.membership-comparison tr:last-child td {

    border-bottom: 0;

}





.membership-check {

    color: var(--accent);

    font-weight: 950;

}





.membership-dash {

    color: #59635d;

}





/* ==============================================================

   EXPLAINER

   ============================================================== */



.membership-two-col {

    display: grid;



    grid-template-columns:

        repeat(

            2,

            minmax(0, 1fr)

        );



    gap: 18px;

}





.membership-info-card {

    border:

        1px solid

        var(--border);



    border-radius: 15px;



    background: var(--panel);



    padding: 24px;

}





.membership-info-label {

    color: var(--accent);



    font-size: .68rem;

    font-weight: 950;

    letter-spacing: .1em;

}





.membership-info-card h3 {

    margin: 8px 0 9px;



    font-size: 1.18rem;

}





.membership-info-card p {

    margin: 0;



    color: var(--muted);



    font-size: .9rem;

    line-height: 1.65;

}





/* ==============================================================

   FAQ

   ============================================================== */



.membership-faq {

    display: grid;

    gap: 10px;

}





.membership-faq details {

    border:

        1px solid

        var(--border);



    border-radius: 13px;



    background: var(--panel);



    overflow: hidden;

}





.membership-faq summary {

    position: relative;



    list-style: none;



    padding: 18px 48px 18px 19px;



    cursor: pointer;



    font-weight: 900;

}





.membership-faq summary::-webkit-details-marker {

    display: none;

}





.membership-faq summary::after {

    content: "+";



    position: absolute;



    right: 20px;



    color: var(--accent);



    font-size: 1.25rem;

}





.membership-faq details[open]

summary::after {

    content: "-";

}





.membership-faq-copy {

    padding:

        0 19px 19px;



    color: var(--muted);



    font-size: .88rem;

    line-height: 1.65;

}





/* ==============================================================

   FOOTER CARD

   ============================================================== */



.membership-final {

    margin-top: 60px;



    padding: 30px;



    border:

        1px solid

        rgba(185,255,53,.30);



    border-radius: 17px;



    background:

        radial-gradient(

            circle at top right,

            rgba(185,255,53,.08),

            transparent 44%

        ),

        var(--panel);

}





.membership-final h2 {

    margin: 0 0 10px;



    font-size: 1.8rem;

    letter-spacing: -.04em;

}





.membership-final p {

    margin: 0;



    color: var(--muted);



    line-height: 1.6;

}





.membership-final-note {

    margin-top: 18px;



    color: #718078;



    font-size: .72rem;

    line-height: 1.55;

}







/* ==============================================================

   DAY PASS MOBILE QUICK BUY V2

   ============================================================== */



.day-pass-mobile-quick,

.day-pass-mobile-divider {

    display: none;

}





@media (max-width: 620px) {



    .day-pass-mobile-quick {

        position: relative;



        display: block;



        margin:

            22px 0

            16px;



        padding: 20px;



        border:

            1px solid

            rgba(174, 255, 35, .72);



        border-radius: 17px;



        background:

            radial-gradient(

                circle at 100% 0,

                rgba(174, 255, 35, .15),

                transparent 42%

            ),

            linear-gradient(

                145deg,

                rgba(174, 255, 35, .07),

                rgba(255, 255, 255, .02)

            );



        box-shadow:

            0 0 0 1px

            rgba(174, 255, 35, .05),

            0 14px 40px

            rgba(0, 0, 0, .24);



        overflow: hidden;

    }



    .day-pass-mobile-kicker {

        margin-bottom: 9px;



        color: var(--accent);



        font-size: 10px;

        line-height: 1.2;

        font-weight: 950;

        letter-spacing: .13em;

    }



    .day-pass-mobile-title {

        margin-bottom: 6px;



        color: #f4f7f5;



        font-size: 25px;

        line-height: 1.08;

        font-weight: 950;

        letter-spacing: -.035em;

    }



    .day-pass-mobile-title span {

        color: var(--accent);

    }



    .day-pass-mobile-copy {

        margin-bottom: 17px;



        color:

            rgba(244, 247, 245, .72);



        font-size: 13px;

        line-height: 1.45;

    }



    .day-pass-mobile-bottom {

        display: grid;

        grid-template-columns:

            auto

            minmax(0, 1fr);



        align-items: center;

        gap: 14px;

    }



    .day-pass-mobile-price {

        display: flex;

        flex-direction: column;



        min-width: 76px;

    }



    .day-pass-mobile-price strong {

        color: #f4f7f5;



        font-size: 28px;

        line-height: 1;

        font-weight: 950;

        letter-spacing: -.04em;

    }



    .day-pass-mobile-price span {

        margin-top: 4px;



        color:

            rgba(244, 247, 245, .52);



        font-size: 9px;

        line-height: 1;

        font-weight: 900;

        letter-spacing: .1em;

    }



    .day-pass-mobile-button {

        width: 100%;

        min-height: 48px;

        padding-left: 10px;

        padding-right: 10px;



        font-size: 11px;

        white-space: nowrap;

    }



    .day-pass-mobile-status {

        min-height: 0;

        margin-top: 8px;



        color:

            rgba(244, 247, 245, .66);



        font-size: 11px;

        line-height: 1.35;

    }



    .day-pass-mobile-divider {

        display: flex;

        align-items: center;

        gap: 10px;



        margin:

            0 0

            17px;



        color:

            rgba(244, 247, 245, .42);



        font-size: 9px;

        line-height: 1;

        font-weight: 900;

        letter-spacing: .1em;

        white-space: nowrap;

    }



    .day-pass-mobile-divider::before,

    .day-pass-mobile-divider::after {

        content: "";



        height: 1px;

        flex: 1 1 auto;



        background:

            rgba(255, 255, 255, .10);

    }



    /*

       Detailed Day Pass remains lower down on mobile,

       but becomes a strong full-width secondary offer.

    */



    .day-pass-wrap {

        margin:

            24px 0

            34px;



        padding: 22px;



        display: block;



        border-color:

            rgba(174, 255, 35, .48);



        background:

            linear-gradient(

                145deg,

                rgba(174, 255, 35, .055),

                rgba(255, 255, 255, .018)

            );

    }



    .day-pass-wrap::after {

        display: none;

    }



    .day-pass-title {

        font-size: 27px;

    }



    .day-pass-highlights {

        display: grid;

        grid-template-columns:

            1fr 1fr;



        gap:

            9px 12px;

    }



    .day-pass-highlight {

        font-size: 11px;

    }



    .day-pass-note {

        margin-top: 17px;



        font-size: 10px;

    }



    .day-pass-action {

        width: 100%;

        margin-top: 22px;

        padding-left: 0;

    }



    .day-pass-price {

        justify-content: flex-start;

    }



    .day-pass-dollar {

        font-size: 38px;

    }



    .day-pass-button {

        min-height: 52px;

    }

}





/* ==============================================================

   RESPONSIVE

   ============================================================== */



@media (max-width: 920px) {



    .membership-grid {

        grid-template-columns: 1fr;

    }





    .membership-card {

        max-width: 680px;

    }





    .membership-two-col {

        grid-template-columns: 1fr;

    }

}





@media (max-width: 620px) {



    #membershipPage {

        padding-top: 36px;

    }





    .membership-title {

        font-size: 3rem;

    }





    .membership-card {

        padding: 22px;

    }





    .membership-price-value {

        font-size: 2.6rem;

    }

}







        /* DAY_PASS_MEMBERSHIP_UI_V2

           ======================================================

           BRAIN PRO DAY PASS - FEATURED OFFER

           ====================================================== */



        .day-pass-wrap {

            position: relative;

            margin: 26px 0 40px;

            padding: 30px 32px;



            border:

                1px solid

                rgba(174, 255, 35, .68);



            border-radius: 20px;



            background:

                radial-gradient(

                    circle at 88% 10%,

                    rgba(174, 255, 35, .11),

                    transparent 34%

                ),

                linear-gradient(

                    135deg,

                    rgba(174, 255, 35, .055),

                    rgba(255, 255, 255, .025) 45%,

                    rgba(255, 255, 255, .012)

                );



            box-shadow:

                0 0 0 1px rgba(174, 255, 35, .06),

                0 18px 55px rgba(0, 0, 0, .24);



            display: flex;

            align-items: center;

            justify-content: space-between;

            gap: 42px;



            overflow: hidden;

        }



        .day-pass-wrap::after {

            content: "7D";

            position: absolute;

            right: 255px;

            top: 50%;



            transform:

                translateY(-50%);



            color:

                rgba(174, 255, 35, .035);



            font-size: 112px;

            line-height: 1;

            font-weight: 950;

            letter-spacing: -.08em;



            pointer-events: none;

        }



        .day-pass-content {

            position: relative;

            z-index: 1;



            min-width: 0;

            flex: 1 1 auto;

        }



        .day-pass-topline {

            display: flex;

            align-items: center;

            flex-wrap: wrap;

            gap: 10px;



            margin-bottom: 10px;

        }



        .day-pass-kicker {

            margin: 0;



            color: var(--accent);



            font-size: 11px;

            line-height: 1.2;

            font-weight: 900;

            letter-spacing: .14em;

        }



        .day-pass-pill {

            display: inline-flex;

            align-items: center;



            min-height: 25px;

            padding: 4px 10px;



            border:

                1px solid

                rgba(174, 255, 35, .28);



            border-radius: 999px;



            background:

                rgba(174, 255, 35, .09);



            color: var(--accent);



            font-size: 10px;

            line-height: 1;

            font-weight: 900;

            letter-spacing: .08em;

        }



        .day-pass-title {

            margin-bottom: 8px;



            font-size: 32px;

            line-height: 1.05;

            font-weight: 900;

            letter-spacing: -.035em;

        }



        .day-pass-title-accent {

            color: var(--accent);

        }



        .day-pass-copy {

            max-width: 720px;



            font-size: 14px;

            line-height: 1.55;



            opacity: .84;

        }



        .day-pass-highlights {

            display: flex;

            flex-wrap: wrap;

            gap: 8px 18px;



            margin-top: 16px;

        }



        .day-pass-highlight {

            position: relative;



            padding-left: 17px;



            color:

                rgba(244, 247, 245, .88);



            font-size: 12px;

            line-height: 1.35;

            font-weight: 700;

        }



        .day-pass-highlight::before {

            content: "\2713";



            position: absolute;

            left: 0;

            top: 0;



            color: var(--accent);



            font-weight: 950;

        }



        .day-pass-note {

            margin-top: 16px;



            display: flex;

            flex-wrap: wrap;

            gap: 7px;



            font-size: 12px;

            line-height: 1.35;

            font-weight: 700;



            opacity: .64;

        }



        .day-pass-action {

            position: relative;

            z-index: 1;



            flex: 0 0 270px;



            padding-left: 8px;



            text-align: center;

        }



        .day-pass-price {

            margin-bottom: 14px;



            display: flex;

            align-items: baseline;

            justify-content: center;

            gap: 7px;

        }



        .day-pass-dollar {

            color: #f4f7f5;



            font-size: 43px;

            line-height: 1;

            font-weight: 950;

            letter-spacing: -.045em;

        }



        .day-pass-period {

            font-size: 11px;

            line-height: 1;

            font-weight: 900;

            letter-spacing: .08em;



            opacity: .62;

        }



        .day-pass-button {

            width: 100%;

            min-width: 0;

            min-height: 54px;



            font-size: 13px;

            font-weight: 950;



            box-shadow:

                0 0 28px

                rgba(174, 255, 35, .10);

        }



        .day-pass-button:disabled {

            cursor: wait;

            opacity: .62;

        }



        .day-pass-status {

            min-height: 18px;

            margin-top: 8px;

            font-size: 12px;

            line-height: 1.4;

            opacity: .72;

        }



        .day-pass-status.err {

            opacity: 1;

        }



        @media (max-width: 760px) {



            .day-pass-wrap {

                padding: 21px 18px;

                flex-direction: column;

                align-items: stretch;

                gap: 20px;

            }



            .day-pass-title {

                font-size: 23px;

            }



            .day-pass-action {

                width: 100%;

                min-width: 0;

            }



            .day-pass-button {

                min-width: 0;

            }



        }








/*

   Membership feature lists are marketing copy,

   not metric labels.



   Hide any metric-help buttons accidentally

   injected by the global metric detector.

*/

#membershipPage .membership-feature .metric-help-button,

#membershipPage .membership-feature .metric-help,

#membershipPage .metric-help-button {

    display: none !important;

}




.acct-ov{position:fixed;inset:0;z-index:26000;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.78);padding:20px}.acct-ov.on{display:flex}.acct-card{width:min(500px,100%);background:#0c100d;border:1px solid rgba(185,255,53,.3);border-radius:16px;padding:22px}.acct-head{display:flex;justify-content:space-between;align-items:center}.acct-title{font-weight:950}.acct-close{background:transparent;border:1px solid var(--border);color:var(--text);border-radius:8px;width:34px;height:34px}.acct-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:18px 0}.acct-tab,.acct-action{min-height:42px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--text);font-weight:900}.acct-tab.on,.acct-action.primary{border-color:var(--accent);color:var(--accent)}.acct-form{display:none}.acct-form.on{display:block}.acct-field{margin-top:12px}.acct-field label{display:block;color:var(--muted);font-size:.7rem;font-weight:850;margin-bottom:5px}.acct-field input{width:100%;height:46px;background:#090d0a;border:1px solid var(--border);border-radius:9px;color:var(--text);padding:0 12px}.acct-submit{width:100%;min-height:46px;margin-top:16px;border:0;border-radius:9px;background:var(--accent);color:#071000;font-weight:950}.acct-msg{margin-top:10px;color:var(--muted);font-size:.8rem;line-height:1.5}.acct-msg.err{color:#ff8d8d}.acct-intent{display:none;padding:10px;border:1px solid rgba(185,255,53,.2);border-radius:9px;background:rgba(185,255,53,.04);font-size:.8rem}.acct-intent.on{display:block}.acct-me{display:none}.acct-me.on{display:block}.acct-name{font-size:1.4rem;font-weight:950}.acct-email{color:var(--muted);margin-top:4px}.acct-plan{margin:18px 0;padding:14px;border:1px solid rgba(185,255,53,.22);border-radius:10px}.acct-plan strong{color:var(--accent)}.acct-actions{display:grid;gap:7px}
/* RB_IPHONE_LOGIN_V1 */
@media (max-width: 767px) {
    #acctOv .acct-field input {
        font-size: 16px;
        line-height: normal;
        -webkit-appearance: none;
        appearance: none;
    }

    #acctOv .acct-field input:focus {
        outline: 2px solid var(--accent);
        outline-offset: 1px;
    }

    #acctOv .acct-card {
        max-height: 90dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}


        .historical-stewards {

            display: inline-flex;

            align-items: baseline;

            gap: 5px;

            max-width: 220px;

            min-width: 0;

            white-space: nowrap;

            cursor: help;

            vertical-align: baseline;

        }



        .historical-stewards-label {

            flex: 0 0 auto;

        }



        .historical-stewards-text {

            display: inline-block;

            max-width: 145px;

            min-width: 0;

            overflow: hidden;

            text-overflow: ellipsis;

            white-space: nowrap;

            vertical-align: bottom;

        }



        @media (max-width: 900px) {

            .historical-stewards {

                max-width: 170px;

            }



            .historical-stewards-text {

                max-width: 100px;

            }

        }

    




    .analyst-date-control {

        display: grid;

        grid-template-columns: 38px minmax(0, 1fr) 38px;

        gap: 7px;

        align-items: stretch;

    }



    .analyst-date-input-wrap {

        position: relative;

        min-width: 0;

    }



    .analyst-date-input-wrap #analystDate {

        width: 100%;

        height: 100%;

        min-height: 42px;

        padding-right: 46px;

        box-sizing: border-box;

        cursor: pointer;

    }



    .analyst-date-step,

    .analyst-date-open {

        appearance: none;

        border: 1px solid var(--border);

        background: rgba(255,255,255,0.025);

        color: var(--text);

        font: inherit;

        font-weight: 900;

        cursor: pointer;

    }



    .analyst-date-step {

        min-height: 42px;

        border-radius: 9px;

        font-size: 22px;

        line-height: 1;

    }



    .analyst-date-open {

        position: absolute;

        top: 4px;

        right: 4px;

        bottom: 4px;

        width: 36px;

        border-radius: 7px;

        font-size: 14px;

    }



    .analyst-date-step:hover,

    .analyst-date-open:hover {

        border-color: rgba(185,255,53,.45);

        color: var(--accent);

        background: rgba(185,255,53,.06);

    }








/* ==========================================================

   HORSE PROFILE - HISTORICAL RATING EMPHASIS

   ========================================================== */



.horse-history-rating-highlight {

    display: inline-flex !important;

    align-items: center;

    gap: 6px;



    padding: 4px 8px !important;



    border: 1px solid rgba(185,255,53,.32);

    border-radius: 7px;



    background: rgba(185,255,53,.075);



    color: #caff58 !important;



    font-size: .88rem;

    font-weight: 850;

    line-height: 1;



    white-space: nowrap;

}



.horse-history-rating-highlight strong {

    color: var(--lime) !important;



    font-size: 1.03rem !important;

    font-weight: 950 !important;



    font-variant-numeric: tabular-nums;

}



.horse-history-rating-highlight .rating-label {

    color: #aeb9b0;



    font-size: .72rem;

    font-weight: 850;



    letter-spacing: .045em;

    text-transform: uppercase;

}





/*

   Preserve the existing help icon.

*/

.horse-history-rating-highlight .help-dot,

.horse-history-rating-highlight .help-icon,

.horse-history-rating-highlight button {

    margin-left: 2px;

}





/*

   Keep each run compact.

*/

.horse-history-rating-highlight {

    vertical-align: middle;

}








/* ==========================================================

   HORSE RECENT RUNS

   LEFT = normal form information

   RIGHT = ESR | LSR | RATING | RACE RANK

   ========================================================== */





#horsePage .horse-run-line.horse-performance-layout {

    display: grid !important;



    grid-template-columns:

        minmax(0, 1fr)

        430px;



    gap: 20px;



    align-items: stretch;



    width: 100%;

}





/* ==========================================================

   LEFT SIDE

   ========================================================== */



#horsePage .horse-performance-main {

    display: flex;



    flex-wrap: wrap;



    align-items: center;

    align-content: center;



    gap: 5px 8px;



    min-width: 0;



    padding-right: 4px;

}





/* ==========================================================

   RIGHT PERFORMANCE BLOCK

   ========================================================== */



#horsePage .horse-performance-panel {

    display: grid;



    grid-template-columns:

        repeat(

            4,

            minmax(0, 1fr)

        );



    width: 430px;



    min-width: 430px;



    align-self: stretch;



    border-left:

        1px solid var(--border);



    background:

        rgba(

            255,

            255,

            255,

            .018

        );

}





#horsePage .horse-performance-cell {

    display: flex;



    flex-direction: column;



    align-items: center;

    justify-content: center;



    min-width: 0;

    min-height: 64px;



    padding: 9px 7px;



    border-left:

        1px solid

        rgba(

            255,

            255,

            255,

            .055

        );



    text-align: center;

}





#horsePage .horse-performance-cell:first-child {

    border-left: 0;

}





/* ==========================================================

   LABEL

   ========================================================== */



#horsePage .horse-performance-label {

    margin-bottom: 6px;



    color: var(--muted);



    font-size: .66rem;

    font-weight: 900;



    line-height: 1;



    letter-spacing: .055em;



    text-transform: uppercase;



    white-space: nowrap;

}





/* ==========================================================

   VALUE

   ========================================================== */



#horsePage .horse-performance-value {

    color: var(--text);



    font-size: 1.02rem;

    font-weight: 950;



    line-height: 1;



    font-variant-numeric: tabular-nums;



    white-space: nowrap;

}





/* Rating is the primary historical performance number */



#horsePage

.horse-performance-cell-rating

.horse-performance-value {



    color: var(--lime);



    font-size: 1.14rem;

}





/* Race Rank slightly separated visually */



#horsePage .horse-performance-cell-rank {

    background:

        rgba(

            255,

            255,

            255,

            .012

        );

}





/* ==========================================================

   METRIC HELP BUTTON

   ========================================================== */



#horsePage .horse-performance-help {

    margin-left: 4px;



    vertical-align: middle;

}





/* ==========================================================

   HIDE OLD INLINE SEPARATORS THAT BECOME EMPTY

   ========================================================== */



#horsePage

.horse-performance-main

.horse-run-separator:last-child {



    display: none;

}





/* ==========================================================

   RESPONSIVE

   ========================================================== */



@media (max-width: 1200px) {



    #horsePage .horse-run-line.horse-performance-layout {

        grid-template-columns:

            minmax(0, 1fr);

    }



    #horsePage .horse-performance-panel {

        width: 100%;

        min-width: 0;



        margin-top: 9px;



        border-left: 0;

        border-top:

            1px solid var(--border);

    }

}





@media (max-width: 650px) {



    #horsePage .horse-performance-panel {

        grid-template-columns:

            repeat(

                2,

                minmax(0, 1fr)

            );

    }



    #horsePage .horse-performance-cell:nth-child(3) {

        border-top:

            1px solid

            rgba(

                255,

                255,

                255,

                .055

            );

    }



    #horsePage .horse-performance-cell:nth-child(4) {

        border-top:

            1px solid

            rgba(

                255,

                255,

                255,

                .055

            );

    }

}








/* ========================================================================

   HISTORICAL PERFORMANCE PANELS V3

   ======================================================================== */





/* ------------------------------------------------------------------------

   HORSE: remove only the EXTRA cloned help mark under the value.



   The existing metric help control beside the label remains.

   ------------------------------------------------------------------------ */



#horsePage

.horse-performance-panel

.horse-performance-help {

    display: none !important;

}





/* ------------------------------------------------------------------------

   JOCKEY + TRAINER ROW STRUCTURE



   Left:

       existing run / ride information

       IN-RUN

       STEWARDS

       VIEW FULL FIELD



   Right:

       ESR | LSR | RATING | RACE RANK

   ------------------------------------------------------------------------ */



#jockeyPage

.jockey-profile-recent-run.profile-performance-layout,



#trainerPage

.trainer-profile-recent-run.profile-performance-layout {



    display: grid !important;



    grid-template-columns:

        minmax(0, 1fr)

        430px;



    column-gap: 20px;



    align-items: stretch;



    width: 100%;

}





/* Left-hand existing content */



#jockeyPage .profile-performance-main,

#trainerPage .profile-performance-main {



    display: flex;



    flex-direction: column;



    justify-content: center;



    min-width: 0;



    padding-right: 4px;

}





/*

   Keep the original inline run information behaving exactly

   as it did before.

*/



#jockeyPage

.profile-performance-main

.jockey-recent-main,



#trainerPage

.profile-performance-main

.jockey-recent-main {



    display: flex;



    align-items: center;



    flex-wrap: wrap;



    gap: 5px 8px;



    min-width: 0;

}





/*

   Full-field / steward area remains below the normal form line.

*/



#jockeyPage

.profile-performance-main

.jockey-recent-stats,



#trainerPage

.profile-performance-main

.jockey-recent-stats {



    margin-top: 7px;

}





/* ------------------------------------------------------------------------

   RIGHT-SIDE PERFORMANCE PANEL

   ------------------------------------------------------------------------ */



#jockeyPage .profile-performance-panel,

#trainerPage .profile-performance-panel {



    display: grid;



    grid-template-columns:

        repeat(

            4,

            minmax(0, 1fr)

        );



    width: 430px;



    min-width: 430px;



    align-self: stretch;



    border-left:

        1px solid var(--border);



    background:

        rgba(

            255,

            255,

            255,

            .018

        );

}





#jockeyPage .profile-performance-cell,

#trainerPage .profile-performance-cell {



    display: flex;



    flex-direction: column;



    align-items: center;

    justify-content: center;



    min-width: 0;



    min-height: 68px;



    padding:

        9px

        7px;



    text-align: center;



    border-left:

        1px solid

        rgba(

            255,

            255,

            255,

            .055

        );

}





#jockeyPage .profile-performance-cell:first-child,

#trainerPage .profile-performance-cell:first-child {



    border-left: 0;

}





/* ------------------------------------------------------------------------

   LABEL

   ------------------------------------------------------------------------ */



#jockeyPage .profile-performance-label,

#trainerPage .profile-performance-label {



    margin-bottom: 7px;



    color: var(--muted);



    font-size: .66rem;



    font-weight: 900;



    line-height: 1;



    letter-spacing: .055em;



    text-transform: uppercase;



    white-space: nowrap;

}





/* ------------------------------------------------------------------------

   VALUE

   ------------------------------------------------------------------------ */



#jockeyPage .profile-performance-value,

#trainerPage .profile-performance-value {



    color: var(--text);



    font-size: 1.02rem;



    font-weight: 950;



    line-height: 1;



    white-space: nowrap;



    font-variant-numeric:

        tabular-nums;

}





/* Rating remains the main performance number */



#jockeyPage

.profile-performance-cell-rating

.profile-performance-value,



#trainerPage

.profile-performance-cell-rating

.profile-performance-value {



    color: var(--lime);



    font-size: 1.14rem;

}





/* Slight Race Rank separation */



#jockeyPage .profile-performance-cell-rank,

#trainerPage .profile-performance-cell-rank {



    background:

        rgba(

            255,

            255,

            255,

            .012

        );

}





/* ------------------------------------------------------------------------

   HELP ICON CLEANUP



   Do not allow multiple question marks inside these compact panels.

   If the site's normal metric-help script adds one beside the label,

   that is enough.



   Any cloned / secondary icon below the value is hidden.

   ------------------------------------------------------------------------ */



#jockeyPage

.profile-performance-cell

.profile-performance-extra-help,



#trainerPage

.profile-performance-cell

.profile-performance-extra-help {



    display: none !important;

}





/* ------------------------------------------------------------------------

   RESPONSIVE

   ------------------------------------------------------------------------ */



@media (max-width: 1200px) {



    #jockeyPage

    .jockey-profile-recent-run.profile-performance-layout,



    #trainerPage

    .trainer-profile-recent-run.profile-performance-layout {



        grid-template-columns:

            minmax(0, 1fr);

    }





    #jockeyPage .profile-performance-panel,

    #trainerPage .profile-performance-panel {



        width: 100%;



        min-width: 0;



        margin-top: 10px;



        border-left: 0;



        border-top:

            1px solid var(--border);

    }

}





@media (max-width: 650px) {



    #jockeyPage .profile-performance-panel,

    #trainerPage .profile-performance-panel {



        grid-template-columns:

            repeat(

                2,

                minmax(0, 1fr)

            );

    }





    #jockeyPage

    .profile-performance-cell:nth-child(3),



    #jockeyPage

    .profile-performance-cell:nth-child(4),



    #trainerPage

    .profile-performance-cell:nth-child(3),



    #trainerPage

    .profile-performance-cell:nth-child(4) {



        border-top:

            1px solid

            rgba(

                255,

                255,

                255,

                .055

            );

    }

}








/* Slightly softer than the main Racing Brain lime.

   Keeps Rating prominent without looking like an action/button colour. */



#horsePage

.horse-performance-cell-rating

.horse-performance-value,



#jockeyPage

.profile-performance-cell-rating

.profile-performance-value,



#trainerPage

.profile-performance-cell-rating

.profile-performance-value {



    color: #d7ff7a !important;

}








/*

 * FOUR_TIER_MEMBERSHIP_LAYOUT_V1

 *

 * Desktop:

 * FREE | ASK | BRAIN | PRO

 *

 * Tablet:

 * 2 x 2

 *

 * Mobile:

 * single column

 */



#membershipPage .membership-grid {

    display: grid !important;

    grid-template-columns:

        repeat(4, minmax(0, 1fr)) !important;

    gap: 16px !important;

    align-items: stretch !important;

}



#membershipPage .membership-card {

    min-width: 0 !important;

    width: auto !important;

    max-width: none !important;

    height: 100% !important;

}



#membershipPage .membership-card .membership-button {

    margin-top: auto;

}



/*

 * Give the membership page enough horizontal room

 * for four genuine product cards.

 */

#membershipPage > .shell {

    width: min(1420px, calc(100% - 48px)) !important;

    max-width: 1420px !important;

}





/* ----------------------------------------------------------

   TABLET

   ---------------------------------------------------------- */



@media (max-width: 1050px) {



    #membershipPage .membership-grid {

        grid-template-columns:

            repeat(2, minmax(0, 1fr)) !important;

    }



}





/* ----------------------------------------------------------

   MOBILE

   ---------------------------------------------------------- */



@media (max-width: 650px) {



    #membershipPage > .shell {

        width: min(100% - 28px, 1420px) !important;

    }



    #membershipPage .membership-grid {

        grid-template-columns:

            minmax(0, 1fr) !important;

    }



}








/* ==========================================================

   ASK THE BRAIN - TERMINAL V1

   ========================================================== */



#ask.ask-terminal-section {

    padding:

        42px 0

        68px;

}









/* ----------------------------------------------------------

   HERO

   ---------------------------------------------------------- */



#ask .ask-terminal-hero {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;



    gap: 32px;



    margin-bottom: 24px;

}



#ask .ask-terminal-heading {

    max-width: 760px;

}



#ask .ask-terminal-kicker,

#ask .ask-terminal-side-kicker,

#ask .ask-terminal-window-label,

#ask .ask-terminal-composer-label,

#ask .ask-terminal-empty-kicker,

#ask .ask-terminal-example-label {

    color:

        var(--accent, #a8ff1a);



    font-size:

        .68rem;



    font-weight:

        900;



    letter-spacing:

        .12em;

}



#ask .ask-terminal-heading h2 {

    margin:

        7px 0

        9px;



    font-size:

        clamp(

            2rem,

            4vw,

            3.45rem

        );



    line-height:

        .98;



    letter-spacing:

        -.045em;

}



#ask .ask-terminal-subtitle {

    max-width: 720px;



    color:

        var(--muted, #97a098);



    font-size:

        .96rem;



    line-height:

        1.65;

}



#ask .ask-terminal-status {

    flex: 0 0 auto;



    min-width: 230px;



    padding:

        13px

        15px;



    border:

        1px solid

        rgba(255,255,255,.10);



    border-radius:

        12px;



    background:

        rgba(255,255,255,.025);

}



#ask .ask-terminal-online {

    display: flex;

    align-items: center;



    gap: 8px;



    color:

        #e9eee9;



    font-size:

        .69rem;



    font-weight:

        900;



    letter-spacing:

        .10em;

}



#ask .ask-terminal-online-dot {

    width: 8px;

    height: 8px;



    border-radius:

        50%;



    background:

        var(--accent, #a8ff1a);



    box-shadow:

        0 0 14px

        rgba(168,255,26,.60);

}



#ask .ask-terminal-usage {

    margin-top: 7px;



    color:

        var(--muted, #97a098);



    font-size:

        .72rem;



    line-height:

        1.4;

}





/* ----------------------------------------------------------

   LAYOUT

   ---------------------------------------------------------- */



#ask .ask-terminal-layout {

    display: grid;



    grid-template-columns:

        minmax(0, 1fr)

        300px;



    gap: 18px;



    align-items:

        start;

}



#ask .ask-terminal-main {

    min-width: 0;

}



#ask .ask-terminal-window {

    min-height:

        660px;



    display: flex;

    flex-direction: column;



    overflow: hidden;



    border:

        1px solid

        rgba(168,255,26,.22);



    border-radius:

        17px;



    background:

        #0a0e0b;



    box-shadow:

        0 24px 80px

        rgba(0,0,0,.22);

}





/* ----------------------------------------------------------

   WINDOW HEADER

   ---------------------------------------------------------- */



#ask .ask-terminal-window-head {

    min-height: 68px;



    display: flex;

    align-items: center;

    justify-content: space-between;



    gap: 24px;



    padding:

        15px

        19px;



    border-bottom:

        1px solid

        rgba(255,255,255,.08);



    background:

        rgba(255,255,255,.018);

}



#ask .ask-terminal-window-copy {

    margin-top: 3px;



    color:

        var(--muted, #97a098);



    font-size:

        .72rem;

}



#ask .ask-terminal-context {

    flex: 0 0 auto;



    padding:

        7px

        9px;



    border:

        1px solid

        rgba(255,255,255,.09);



    border-radius:

        7px;



    color:

        #a7b0a8;



    font-size:

        .61rem;



    font-weight:

        850;



    letter-spacing:

        .08em;

}





/* ----------------------------------------------------------

   CHAT

   ---------------------------------------------------------- */



#ask #chatBox.ask-terminal-chat {

    flex: 1;



    min-height:

        430px;



    max-height:

        none;



    overflow-y:

        auto;



    padding:

        24px;



    gap:

        14px;

}



#ask .ask-terminal-empty {

    width: 100%;



    margin:

        auto;



    padding:

        20px 4px;



    text-align:

        left;

}



#ask .ask-terminal-empty-title {

    margin-top: 8px;



    color:

        #f1f4f1;



    font-size:

        clamp(

            1.35rem,

            2.5vw,

            2rem

        );



    font-weight:

        850;



    letter-spacing:

        -.025em;

}



#ask .ask-terminal-empty-copy {

    max-width: 700px;



    margin-top: 10px;



    color:

        var(--muted, #97a098);



    font-size:

        .86rem;



    line-height:

        1.65;

}





/* ----------------------------------------------------------

   STARTER CARDS

   ---------------------------------------------------------- */



#ask .ask-terminal-starters {

    display: grid;



    grid-template-columns:

        repeat(2, minmax(0, 1fr));



    gap: 10px;



    margin-top: 22px;

}



#ask .ask-terminal-starter {

    min-height: 88px;



    display: flex;

    flex-direction: column;

    align-items: flex-start;



    gap: 6px;



    padding:

        14px;



    border:

        1px solid

        rgba(255,255,255,.09);



    border-radius:

        11px;



    background:

        #101511;



    color:

        #e7ece8;



    text-align:

        left;



    cursor:

        pointer;



    transition:

        border-color .15s ease,

        background .15s ease,

        transform .15s ease;

}



#ask .ask-terminal-starter:hover {

    border-color:

        rgba(168,255,26,.40);



    background:

        #131a14;



    transform:

        translateY(-1px);

}



#ask .ask-terminal-starter-label {

    color:

        var(--accent, #a8ff1a);



    font-size:

        .66rem;



    font-weight:

        900;



    letter-spacing:

        .08em;

}



#ask .ask-terminal-starter-copy {

    color:

        #aab2ab;



    font-size:

        .75rem;



    line-height:

        1.45;

}





/* ----------------------------------------------------------

   EXAMPLES

   ---------------------------------------------------------- */



#ask .ask-terminal-examples {

    display: flex;

    flex-wrap: wrap;

    align-items: center;



    gap: 7px;



    margin-top: 20px;

}



#ask .ask-terminal-example-label {

    margin-right: 4px;

}



#ask .ask-terminal-example {

    padding:

        7px

        9px;



    border:

        1px solid

        rgba(255,255,255,.08);



    border-radius:

        999px;



    background:

        transparent;



    color:

        #9ca59e;



    cursor:

        pointer;



    font-size:

        .69rem;

}



#ask .ask-terminal-example:hover {

    border-color:

        rgba(168,255,26,.32);



    color:

        #dce4dd;

}





/* ----------------------------------------------------------

   EXISTING CHAT MESSAGES

   ---------------------------------------------------------- */



#ask #chatBox > .message,

#ask #chatBox > .chat-message {

    max-width:

        82%;

}



#ask #chatBox .user {

    align-self:

        flex-end;

}



#ask #chatBox .brain {

    align-self:

        flex-start;

}





/* ----------------------------------------------------------

   COMPOSER

   ---------------------------------------------------------- */



#ask .ask-terminal-composer {

    padding:

        15px

        17px

        14px;



    border-top:

        1px solid

        rgba(255,255,255,.08);



    background:

        #080c09;

}



#ask .ask-terminal-input-row {

    display: grid;



    grid-template-columns:

        minmax(0, 1fr)

        auto;



    gap: 9px;



    margin-top: 7px;

}



#ask #questionInput {

    min-width: 0;

    height: 50px;



    padding:

        0 15px;



    border:

        1px solid

        rgba(255,255,255,.12);



    border-radius:

        10px;



    outline:

        none;



    background:

        #111612;



    color:

        #edf2ed;



    font-size:

        .88rem;

}



#ask #questionInput:focus {

    border-color:

        rgba(168,255,26,.55);



    box-shadow:

        0 0 0 2px

        rgba(168,255,26,.06);

}



#ask #askButton {

    min-width:

        92px;



    padding:

        0 20px;



    border:

        0;



    border-radius:

        10px;



    background:

        var(--accent, #a8ff1a);



    color:

        #061006;



    cursor:

        pointer;



    font-weight:

        950;



    letter-spacing:

        .04em;

}



#ask #askButton:hover {

    filter:

        brightness(.94);

}



#ask .ask-terminal-composer-note {

    margin-top: 8px;



    color:

        #778078;



    font-size:

        .65rem;



    line-height:

        1.45;

}





/* ----------------------------------------------------------

   SIDE RAIL

   ---------------------------------------------------------- */



#ask .ask-terminal-side {

    display: flex;

    flex-direction: column;



    gap: 14px;

}



#ask .ask-terminal-side-card,

#ask .ask-terminal-today {

    padding:

        17px;



    border:

        1px solid

        rgba(255,255,255,.09);



    border-radius:

        13px;



    background:

        #0d120e;

}



#ask .ask-terminal-side-card h3 {

    margin:

        7px 0

        14px;



    font-size:

        1rem;



    letter-spacing:

        -.015em;

}



#ask .ask-terminal-quick-list {

    display: flex;

    flex-direction: column;



    gap: 7px;

}



#ask .ask-terminal-quick {

    width: 100%;



    padding:

        10px 11px;



    border:

        1px solid

        rgba(255,255,255,.08);



    border-radius:

        8px;



    background:

        #111612;



    color:

        #b9c1ba;



    text-align:

        left;



    cursor:

        pointer;



    font-size:

        .73rem;

}



#ask .ask-terminal-quick:hover {

    border-color:

        rgba(168,255,26,.35);



    color:

        #edf2ed;

}





/* Existing Brain Today block remains functional. */



#ask #brain-bets.ask-terminal-today {

    margin: 0;

}



#ask #brain-bets .brain-today-buckets {

    margin-top:

        15px;

}





/* ----------------------------------------------------------

   RESPONSIVE

   ---------------------------------------------------------- */



@media (max-width: 1050px) {



    #ask .ask-terminal-layout {

        grid-template-columns:

            minmax(0, 1fr);

    }



    #ask .ask-terminal-side {

        display: grid;



        grid-template-columns:

            repeat(2, minmax(0, 1fr));

    }



}





@media (max-width: 700px) {



    #ask.ask-terminal-section {

        padding-top:

            26px;

    }



    



    #ask .ask-terminal-hero {

        align-items:

            flex-start;



        flex-direction:

            column;

    }



    #ask .ask-terminal-status {

        width:

            100%;

    }



    #ask .ask-terminal-window {

        min-height:

            620px;

    }



    #ask .ask-terminal-window-head {

        align-items:

            flex-start;



        flex-direction:

            column;



        gap:

            8px;

    }



    #ask #chatBox.ask-terminal-chat {

        padding:

            16px;



        min-height:

            410px;

    }



    #ask .ask-terminal-starters {

        grid-template-columns:

            minmax(0, 1fr);

    }



    #ask .ask-terminal-side {

        grid-template-columns:

            minmax(0, 1fr);

    }



    #ask .ask-terminal-input-row {

        grid-template-columns:

            minmax(0, 1fr);

    }



    #ask #askButton {

        min-height:

            48px;

    }



}








/* ==========================================================

   ASK TERMINAL V2

   ALIGN TO MAIN SITE + MATCH POPUP VISUAL LANGUAGE

   ========================================================== */





/* ----------------------------------------------------------

   1. ALIGN ASK TERMINAL WITH REST OF SITE

   ---------------------------------------------------------- */









/*

   Keep the Ask title / status aligned cleanly with the

   conversation surface below.

*/



#ask .ask-terminal-hero {

    width:

        100%;

}





/* ----------------------------------------------------------

   2. POPUP - SAME PRODUCT LANGUAGE AS ASK TERMINAL

   ---------------------------------------------------------- */



#racingBrainPopup.rb-popup-overlay {

    padding:

        28px;



    background:

        rgba(0, 0, 0, .78);



    backdrop-filter:

        blur(8px);

}





#racingBrainPopup .rb-popup-card {

    position:

        relative;



    width:

        min(

            900px,

            calc(100vw - 56px)

        );



    height:

        min(

            760px,

            calc(100vh - 72px)

        );



    overflow:

        hidden;



    border:

        1px solid

        rgba(168, 255, 26, .24);



    border-radius:

        17px;



    background:

        #0a0e0b;



    box-shadow:

        0 34px 110px

        rgba(0, 0, 0, .68);

}





/*

   Subtle Brain accent line.

*/



#racingBrainPopup .rb-popup-card::before {

    content:

        "";



    position:

        absolute;



    top:

        0;



    left:

        0;



    right:

        0;



    height:

        2px;



    background:

        linear-gradient(

            90deg,

            transparent 0%,

            var(--accent, #a8ff1a) 18%,

            var(--accent, #a8ff1a) 82%,

            transparent 100%

        );



    opacity:

        .75;



    z-index:

        2;

}





/* ----------------------------------------------------------

   POPUP HEADER

   ---------------------------------------------------------- */



#racingBrainPopup .rb-popup-header {

    min-height:

        82px;



    padding:

        0 22px;



    border-bottom:

        1px solid

        rgba(255,255,255,.08);



    background:

        rgba(255,255,255,.018);

}





#racingBrainPopup .rb-popup-brand {

    display:

        flex;



    flex-direction:

        column;



    justify-content:

        center;

}





#racingBrainPopup .rb-popup-title {

    color:

        #f1f4f1;



    font-size:

        1.05rem;



    font-weight:

        950;



    letter-spacing:

        -.015em;

}





#racingBrainPopup .rb-popup-subtitle {

    margin-top:

        4px;



    color:

        var(--muted, #97a098);



    font-size:

        .69rem;



    font-weight:

        650;



    line-height:

        1.45;

}





#racingBrainPopup .rb-popup-close {

    width:

        38px;



    height:

        38px;



    border:

        1px solid

        rgba(255,255,255,.10);



    border-radius:

        9px;



    background:

        #111612;



    color:

        #dfe5df;

}





#racingBrainPopup .rb-popup-close:hover {

    border-color:

        rgba(168,255,26,.45);



    background:

        #141a15;



    color:

        var(--accent, #a8ff1a);

}





/* ----------------------------------------------------------

   ALLOWANCE / STATUS

   ---------------------------------------------------------- */



#racingBrainPopup .rb-popup-usage {

    min-height:

        34px;



    display:

        flex;



    align-items:

        center;



    padding:

        7px

        22px;



    border-bottom:

        1px solid

        rgba(255,255,255,.06);



    background:

        #090d0a;



    color:

        #8f9991;



    font-size:

        .66rem;



    font-weight:

        700;



    letter-spacing:

        .02em;

}





/* ----------------------------------------------------------

   CHAT AREA

   ---------------------------------------------------------- */



#racingBrainPopup .rb-popup-chat {

    flex:

        1;



    min-height:

        0;



    padding:

        24px;



    gap:

        14px;



    background:

        #0a0e0b;

}





#racingBrainPopup .rb-popup-empty {

    max-width:

        520px;



    padding:

        34px;



    border:

        1px solid

        rgba(255,255,255,.07);



    border-radius:

        13px;



    background:

        rgba(255,255,255,.018);



    color:

        #9ba49d;



    font-size:

        .82rem;



    line-height:

        1.7;

}





/* ----------------------------------------------------------

   CHAT BUBBLES

   ---------------------------------------------------------- */



#racingBrainPopup .rb-popup-message {

    max-width:

        82%;



    padding:

        14px

        16px;



    border-radius:

        12px;



    font-size:

        .86rem;



    line-height:

        1.58;

}





#racingBrainPopup .rb-popup-message.user {

    align-self:

        flex-end;



    border:

        1px solid

        rgba(168,255,26,.58);



    background:

        var(--accent, #a8ff1a);



    color:

        #071007;



    font-weight:

        800;

}





#racingBrainPopup .rb-popup-message.brain {

    align-self:

        flex-start;



    border:

        1px solid

        rgba(255,255,255,.09);



    background:

        #111612;



    color:

        #edf2ed;



    box-shadow:

        0 8px 28px

        rgba(0,0,0,.14);

}





#racingBrainPopup .rb-popup-message.brain strong {

    color:

        var(--accent, #a8ff1a);

}





/* ----------------------------------------------------------

   GENERATED GRAPHICS

   ---------------------------------------------------------- */



#racingBrainPopup .rb-popup-graphic {

    margin-top:

        12px;



    overflow:

        hidden;



    border:

        1px solid

        rgba(255,255,255,.09);



    border-radius:

        10px;



    background:

        #090d0a;

}





/* ----------------------------------------------------------

   COMPOSER

   ---------------------------------------------------------- */



#racingBrainPopup .rb-popup-composer {

    padding:

        16px

        18px;



    grid-template-columns:

        minmax(0, 1fr)

        auto;



    gap:

        9px;



    border-top:

        1px solid

        rgba(255,255,255,.08);



    background:

        #080c09;

}





#racingBrainPopup .rb-popup-input {

    height:

        50px;



    padding:

        0

        15px;



    border:

        1px solid

        rgba(255,255,255,.12);



    border-radius:

        10px;



    outline:

        none;



    background:

        #111612;



    color:

        #edf2ed;



    font-size:

        .86rem;

}





#racingBrainPopup .rb-popup-input::placeholder {

    color:

        #727d74;

}





#racingBrainPopup .rb-popup-input:focus {

    border-color:

        rgba(168,255,26,.55);



    box-shadow:

        0 0 0 2px

        rgba(168,255,26,.06);

}





#racingBrainPopup .rb-popup-send {

    min-width:

        94px;



    height:

        50px;



    padding:

        0 20px;



    border:

        0;



    border-radius:

        10px;



    background:

        var(--accent, #a8ff1a);



    color:

        #061006;



    font-weight:

        950;



    letter-spacing:

        .04em;

}





#racingBrainPopup .rb-popup-send:hover {

    filter:

        brightness(.94);

}





/* ----------------------------------------------------------

   TABLET

   ---------------------------------------------------------- */



@media (max-width: 1050px) {



    



}





/* ----------------------------------------------------------

   MOBILE

   ---------------------------------------------------------- */



@media (max-width: 700px) {



    





    #racingBrainPopup.rb-popup-overlay {

        padding:

            10px;

    }





    #racingBrainPopup .rb-popup-card {

        width:

            calc(100vw - 20px);



        height:

            calc(100vh - 20px);



        border-radius:

            13px;

    }





    #racingBrainPopup .rb-popup-header {

        min-height:

            70px;



        padding:

            0 15px;

    }





    #racingBrainPopup .rb-popup-usage {

        padding-left:

            15px;



        padding-right:

            15px;

    }





    #racingBrainPopup .rb-popup-chat {

        padding:

            15px;

    }





    #racingBrainPopup .rb-popup-message {

        max-width:

            92%;

    }





    #racingBrainPopup .rb-popup-composer {

        padding:

            12px;



        grid-template-columns:

            minmax(0, 1fr);

    }





    #racingBrainPopup .rb-popup-send {

        width:

            100%;

    }



}








/* ==========================================================

   ASK TERMINAL V3

   USE THE EXACT SAME SITE SHELL AS TODAY'S RACING

   ========================================================== */



/*

   IMPORTANT:



   #ask contains:



       <div class="shell ask-terminal-shell">



   Width, max-width and horizontal margins are intentionally

   NOT overridden here.



   The site's existing .shell class now controls those values,

   exactly as it does for TODAY'S RACING.

*/



#ask .ask-terminal-shell {

    box-sizing: border-box;

}





/*

   Keep all terminal content constrained to that shell.

*/



#ask .ask-terminal-hero,

#ask .ask-terminal-layout {

    width: 100%;

    max-width: 100%;

    box-sizing: border-box;

}





/*

   Prevent the right rail from creating accidental overflow.

*/



#ask .ask-terminal-layout {

    min-width: 0;

}



#ask .ask-terminal-main,

#ask .ask-terminal-side {

    min-width: 0;

}








/* ==========================================================

   ASK THE BRAIN POPUP - EMPTY STATE V3

   ========================================================== */





/*

   Override the old centred text card.

*/



#racingBrainPopup .rb-popup-empty.rb-popup-empty-v3 {

    width:

        min(

            560px,

            100%

        );



    max-width:

        560px;



    margin:

        auto;



    padding:

        0;



    border:

        0;



    border-radius:

        0;



    background:

        transparent;



    text-align:

        left;

}





/* ----------------------------------------------------------

   INTRO

   ---------------------------------------------------------- */



#racingBrainPopup .rb-popup-empty-kicker {

    color:

        var(--accent, #a8ff1a);



    font-size:

        .64rem;



    font-weight:

        900;



    letter-spacing:

        .11em;

}





#racingBrainPopup .rb-popup-empty-title {

    margin-top:

        8px;



    color:

        #f1f4f1;



    font-size:

        1.45rem;



    font-weight:

        900;



    letter-spacing:

        -.025em;

}





#racingBrainPopup .rb-popup-empty-copy {

    max-width:

        500px;



    margin-top:

        8px;



    color:

        #929c94;



    font-size:

        .78rem;



    line-height:

        1.62;

}





/* ----------------------------------------------------------

   STARTERS

   ---------------------------------------------------------- */



#racingBrainPopup .rb-popup-starters {

    display:

        grid;



    grid-template-columns:

        repeat(2, minmax(0, 1fr));



    gap:

        9px;



    margin-top:

        20px;

}





#racingBrainPopup .rb-popup-starter {

    min-height:

        78px;



    display:

        flex;



    flex-direction:

        column;



    align-items:

        flex-start;



    justify-content:

        center;



    gap:

        5px;



    padding:

        12px

        13px;



    border:

        1px solid

        rgba(255,255,255,.09);



    border-radius:

        10px;



    background:

        #101511;



    color:

        #e8ede8;



    text-align:

        left;



    cursor:

        pointer;



    transition:

        border-color .15s ease,

        background .15s ease,

        transform .15s ease;

}





#racingBrainPopup .rb-popup-starter:hover {

    border-color:

        rgba(168,255,26,.42);



    background:

        #131a14;



    transform:

        translateY(-1px);

}





#racingBrainPopup .rb-popup-starter-label {

    color:

        var(--accent, #a8ff1a);



    font-size:

        .62rem;



    font-weight:

        900;



    letter-spacing:

        .075em;

}





#racingBrainPopup .rb-popup-starter-copy {

    color:

        #9ca59e;



    font-size:

        .69rem;



    line-height:

        1.4;

}





/* ----------------------------------------------------------

   EXAMPLE

   ---------------------------------------------------------- */



#racingBrainPopup .rb-popup-empty-example {

    margin-top:

        17px;



    padding-top:

        13px;



    border-top:

        1px solid

        rgba(255,255,255,.06);



    color:

        #768078;



    font-size:

        .68rem;



    line-height:

        1.5;

}





#racingBrainPopup .rb-popup-empty-example strong {

    color:

        #a5afa7;



    font-weight:

        800;

}





/* ----------------------------------------------------------

   MOBILE

   ---------------------------------------------------------- */



@media (max-width: 620px) {



    #racingBrainPopup .rb-popup-starters {

        grid-template-columns:

            minmax(0, 1fr);

    }



    #racingBrainPopup .rb-popup-empty-title {

        font-size:

            1.2rem;

    }



    #racingBrainPopup .rb-popup-starter {

        min-height:

            68px;

    }



}








/* ================================================================

   BRAIN BETS — CONSISTENT DESKTOP CONTENT GRID

   Alignment only. No JS/data/character changes.

   ================================================================ */



body.brain-bets-page-view #brain-bets {

    width: 100%;

}



/* Main Brain Bets content */

body.brain-bets-page-view #brain-bets > .shell {

    width: min(1216px, calc(100% - 48px)) !important;

    max-width: 1216px !important;

    margin-left: auto !important;

    margin-right: auto !important;

    box-sizing: border-box !important;

}



/* Brain vs Analyst */

body.brain-bets-page-view .brain-bets-secondary-content {

    width: min(1216px, calc(100% - 48px)) !important;

    max-width: 1216px !important;

    margin-left: auto !important;

    margin-right: auto !important;

    box-sizing: border-box !important;

}



/* Analyst Bet History */

body.brain-bets-page-view #analystHistorySection {

    width: min(1216px, calc(100% - 48px)) !important;

    max-width: 1216px !important;

    margin-left: auto !important;

    margin-right: auto !important;

    box-sizing: border-box !important;

}



/* Keep tables inside their section boundary */

body.brain-bets-page-view .brain-bets-secondary-content table,

body.brain-bets-page-view #analystHistorySection table {

    width: 100% !important;

    max-width: 100% !important;

}



/* Analyst summary cards follow same grid */

body.brain-bets-page-view

#analystHistorySection

.analyst-history-summary {

    width: 100% !important;

    max-width: 100% !important;

    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;

}



/* Never allow history table to expand the whole page */

body.brain-bets-page-view

#analystHistorySection

.analyst-history-table-wrap {

    width: 100% !important;

    max-width: 100% !important;

    overflow-x: auto !important;

}



/* Give the lower sections deliberate vertical separation */

body.brain-bets-page-view .brain-bets-secondary-content {

    margin-top: 34px !important;

}



body.brain-bets-page-view #analystHistorySection {

    margin-top: 34px !important;

    padding-top: 28px !important;

}



/* Mobile */

@media (max-width: 760px) {



    body.brain-bets-page-view #brain-bets > .shell,

    body.brain-bets-page-view .brain-bets-secondary-content,

    body.brain-bets-page-view #analystHistorySection {

        width: calc(100% - 24px) !important;

    }



    body.brain-bets-page-view

    #analystHistorySection

    .analyst-history-summary {

        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    }

}








/* ================================================================

   BRAIN VS ANALYST — MATCH BRAIN BETS / ANALYST HISTORY GRID

   ================================================================ */



body.brain-bets-page-view #brainVsAnalystFinal {

    width: min(1216px, calc(100% - 48px)) !important;

    max-width: 1216px !important;



    margin-left: auto !important;

    margin-right: auto !important;

    margin-top: 34px !important;



    box-sizing: border-box !important;

}



body.brain-bets-page-view

#brainVsAnalystFinal

.brain-vs-analyst-wrap {

    width: 100% !important;

    max-width: 100% !important;

    box-sizing: border-box !important;

    overflow-x: auto !important;

}



body.brain-bets-page-view

#brainVsAnalystFinal

table {

    width: 100% !important;

    max-width: 100% !important;

}



@media (max-width: 760px) {



    body.brain-bets-page-view #brainVsAnalystFinal {

        width: calc(100% - 24px) !important;

    }



}








/* ================================================================

   BRAIN BETS ADMIN CANDIDATE DISPLAY V2

   Presentation only.

   ================================================================ */



body.brain-bets-page-view .brain-bets-group {

    width: 100%;

}



body.brain-bets-page-view .brain-bets-group-head {

    align-items: end;

    gap: 24px;

}



body.brain-bets-page-view .brain-bets-group-copy {

    max-width: 620px;

    line-height: 1.45;

}





/* Use available desktop width instead of squeezing admin cards. */

body.brain-bets-page-view .brain-bets-grid {

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;

}





/* ------------------------------------------------

   CARD

   ------------------------------------------------ */



body.brain-bets-page-view .brain-bet-card.strategy-candidate {

    min-width: 0;

    padding: 18px;

    border-radius: 14px;

}



body.brain-bets-page-view

.brain-bet-card.strategy-candidate

.brain-bet-card-top {

    align-items: flex-start;

    gap: 16px;

}



body.brain-bets-page-view

.brain-bet-card.strategy-candidate

.brain-bet-meeting {

    font-size: 12px;

    line-height: 1.25;

}



body.brain-bets-page-view

.brain-bet-card.strategy-candidate

.brain-bet-horse {

    margin-top: 4px;

    font-size: 20px;

    line-height: 1.05;

}



body.brain-bets-page-view .strategy-candidate-tag {

    white-space: nowrap;

}





/* ------------------------------------------------

   PRICE STRIP

   Brain | Open | Qualified | Now

   ------------------------------------------------ */



body.brain-bets-page-view .strategy-price-strip {

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 9px;

    margin-top: 16px;

}



body.brain-bets-page-view .strategy-price-cell {

    min-width: 0;

    min-height: 70px;

    padding: 10px 11px;

    display: flex;

    flex-direction: column;

    justify-content: center;

}



body.brain-bets-page-view .strategy-price-cell.brain {

    border-color: rgba(185,255,53,0.35);

    background: rgba(185,255,53,0.055);

}



body.brain-bets-page-view .strategy-price-label {

    min-height: 22px;

    font-size: 9px;

    line-height: 1.15;

    letter-spacing: 0.055em;

}



body.brain-bets-page-view .strategy-price-value {

    margin-top: 5px;

    font-size: 18px;

    line-height: 1;

    white-space: nowrap;

}





/* ------------------------------------------------

   CURRENT PRICE RELATIONSHIP

   ------------------------------------------------ */



body.brain-bets-page-view .strategy-relationship {

    margin-top: 10px;

    min-height: 0;

    padding: 8px 10px;

    line-height: 1.35;

}





/* ------------------------------------------------

   SECONDARY MODEL DETAILS

   ------------------------------------------------ */



body.brain-bets-page-view .strategy-details-grid {

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 8px;

    margin-top: 9px;

}



body.brain-bets-page-view .strategy-detail {

    min-width: 0;

    padding: 9px 10px;

}



body.brain-bets-page-view .strategy-detail-label {

    font-size: 8px;

    line-height: 1.15;

}



body.brain-bets-page-view .strategy-detail-value {

    margin-top: 4px;

    font-size: 12px;

    line-height: 1.25;

    overflow-wrap: anywhere;

}





/* ------------------------------------------------

   REVIEW CONTROLS

   ------------------------------------------------ */



body.brain-bets-page-view .brain-bet-review-actions {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 8px;

    margin-top: 12px;

}



body.brain-bets-page-view .brain-bet-review-button {

    width: 100%;

    min-width: 0;

    min-height: 34px;

    padding: 7px 8px;

    white-space: normal;

    line-height: 1.1;

}



body.brain-bets-page-view .brain-bet-review-button.post-x {

    grid-column: 1 / -1;

}





/* ------------------------------------------------

   VIEW RACE FOOTER

   ------------------------------------------------ */



body.brain-bets-page-view

.brain-bet-card.strategy-candidate

.brain-bet-race-link {

    width: 100%;

    margin-top: 14px;

    min-height: 36px;

}





/* ------------------------------------------------

   RESPONSIVE

   ------------------------------------------------ */



@media (max-width: 1050px) {



    body.brain-bets-page-view .brain-bets-grid {

        grid-template-columns: 1fr;

    }



}



@media (max-width: 700px) {



    body.brain-bets-page-view .strategy-price-strip {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }



    body.brain-bets-page-view .strategy-details-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }



}



@media (max-width: 460px) {



    body.brain-bets-page-view .brain-bet-card.strategy-candidate {

        padding: 14px;

    }



    body.brain-bets-page-view .strategy-price-strip {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }



    body.brain-bets-page-view .brain-bet-review-actions {

        grid-template-columns: 1fr;

    }



    body.brain-bets-page-view .brain-bet-review-button.post-x {

        grid-column: auto;

    }



}








/*

    RACE MARKET ALIGNMENT V2

    ------------------------

    Give HORSE / JOCKEY / TRAINER enough room to read naturally.

    Keep BAR / WGT / prices compact.

    Scoped only to THE BRAIN MARKET table.

*/



#racePage .market-wrap .market-table {

    width: 100%;

    table-layout: fixed;

}





/* RUNNER NUMBER */

#racePage .market-wrap .market-table th:nth-child(1),

#racePage .market-wrap .market-table td:nth-child(1) {

    width: 3.5%;

}





/* HORSE */

#racePage .market-wrap .market-table th:nth-child(2),

#racePage .market-wrap .market-table td:nth-child(2) {

    width: 16%;

    text-align: left;

}





/* BAR */

#racePage .market-wrap .market-table th:nth-child(3),

#racePage .market-wrap .market-table td:nth-child(3) {

    width: 4.5%;

    text-align: center;

}





/* WGT */

#racePage .market-wrap .market-table th:nth-child(4),

#racePage .market-wrap .market-table td:nth-child(4) {

    width: 5%;

    text-align: center;

}





/* JOCKEY */

#racePage .market-wrap .market-table th:nth-child(5),

#racePage .market-wrap .market-table td:nth-child(5) {

    width: 14%;

    text-align: left;

    padding-left: 12px;

    padding-right: 14px;

}





/* TRAINER */

#racePage .market-wrap .market-table th:nth-child(6),

#racePage .market-wrap .market-table td:nth-child(6) {

    width: 15%;

    text-align: left;

    padding-left: 14px;

    padding-right: 14px;

}





/*

    Don't split individual words.

    Long participant names can still wrap at spaces.

*/

#racePage .market-wrap .market-table td:nth-child(2),

#racePage .market-wrap .market-table td:nth-child(5),

#racePage .market-wrap .market-table td:nth-child(6) {

    overflow-wrap: normal;

    word-break: normal;

    line-height: 1.32;

}





/* OPEN */

#racePage .market-wrap .market-table th:nth-child(7),

#racePage .market-wrap .market-table td:nth-child(7) {

    width: 9%;

    white-space: nowrap;

}





/* NOW */

#racePage .market-wrap .market-table th:nth-child(8),

#racePage .market-wrap .market-table td:nth-child(8) {

    width: 7.5%;

    white-space: nowrap;

}





/* BRAIN */

#racePage .market-wrap .market-table th:nth-child(9),

#racePage .market-wrap .market-table td:nth-child(9) {

    width: 10.5%;

}





/* EDGE */

#racePage .market-wrap .market-table th:nth-child(10),

#racePage .market-wrap .market-table td:nth-child(10) {

    width: 7%;

    white-space: nowrap;

    text-align: right;

}



/* Give EDGE values a little breathing room from the right border. */

#racePage .market-wrap .market-table td:nth-child(10) {

    padding-right: 10px;

}





/*

    Make participant links behave like table text rather than

    centred button-like elements.

*/

#racePage .market-wrap .market-table td:nth-child(5) .participant-link,

#racePage .market-wrap .market-table td:nth-child(6) .participant-link {

    display: inline;

    width: auto;

    max-width: 100%;

    text-align: left;

    line-height: inherit;

}





/*

    Keep header alignment consistent with the data beneath it.

*/

#racePage .market-wrap .market-table th:nth-child(2),

#racePage .market-wrap .market-table th:nth-child(5),

#racePage .market-wrap .market-table th:nth-child(6) {

    text-align: left;

}





/*

    On narrower screens don't crush the names.

    Let the existing horizontal market wrapper do its job.

*/

@media (max-width: 1100px) {



    #racePage .market-wrap .market-table {

        min-width: 1050px;

    }



}








.membership-billing-disclosure {

    margin-top: 9px;

    max-width: 100%;

    font-size: 10px;

    line-height: 1.45;

    letter-spacing: 0.01em;

    opacity: 0.62;

}



.rb-legal-footer {

    padding: 34px 0 38px;

}



.rb-legal-footer .shell {

    text-align: center;

}



.rb-footer-brand {

    font-weight: 900;

    letter-spacing: 0.08em;

    margin-bottom: 5px;

}



.rb-footer-description {

    opacity: 0.72;

    font-size: 13px;

    margin-bottom: 14px;

}



.rb-footer-legal-links {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    align-items: center;

    gap: 7px;

    margin: 14px auto;

    font-size: 12px;

}



.rb-footer-legal-links button {

    appearance: none;

    border: 0;

    padding: 0;

    background: transparent;

    color: inherit;

    font: inherit;

    cursor: pointer;

    text-decoration: underline;

    text-underline-offset: 3px;

}



.rb-footer-disclaimer {

    max-width: 820px;

    margin: 15px auto 0;

    font-size: 11px;

    line-height: 1.6;

    opacity: 0.66;

}



.rb-footer-responsible {

    margin-top: 12px;

    font-size: 12px;

    line-height: 1.5;

}



.rb-footer-responsible a {

    color: inherit;

    font-weight: 800;

}



.rb-footer-copyright {

    margin-top: 12px;

    font-size: 11px;

    opacity: 0.55;

}



.rb-legal-overlay {

    position: fixed;

    inset: 0;

    z-index: 100000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 24px;

    background: rgba(0, 0, 0, 0.72);

}



.rb-legal-overlay.on {

    display: flex;

}



.rb-legal-dialog,

.rb-plan-confirm-dialog {

    width: min(900px, 100%);

    max-height: min(86vh, 900px);

    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.16);

    border-radius: 18px;

    background: #111;

    color: #f4f4f4;

    box-shadow: 0 24px 80px rgba(0,0,0,0.45);

}



.rb-plan-confirm-dialog {

    width: min(620px, 100%);

}



.rb-legal-dialog-head {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    align-items: flex-start;

    padding: 22px 24px 18px;

    border-bottom: 1px solid rgba(255,255,255,0.10);

}



.rb-legal-dialog-head h2 {

    margin: 3px 0 0;

    font-size: 25px;

}



.rb-legal-kicker {

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 0.15em;

    opacity: 0.55;

}



.rb-legal-close {

    appearance: none;

    border: 0;

    background: transparent;

    color: inherit;

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

}



.rb-legal-body {

    padding: 24px;

    max-height: calc(86vh - 90px);

    overflow-y: auto;

    line-height: 1.65;

    font-size: 14px;

}



.rb-legal-body h3 {

    margin: 27px 0 8px;

    font-size: 17px;

}



.rb-legal-body h3:first-child {

    margin-top: 0;

}



.rb-legal-body p,

.rb-legal-body li {

    opacity: 0.88;

}



.rb-legal-body ul {

    padding-left: 22px;

}



.rb-legal-body a {

    color: inherit;

    font-weight: 800;

}



.rb-legal-updated {

    margin-bottom: 20px;

    opacity: 0.55 !important;

    font-size: 12px;

}



.rb-legal-callout {

    margin: 20px 0;

    padding: 15px 17px;

    border: 1px solid rgba(255,255,255,0.13);

    border-radius: 12px;

    background: rgba(255,255,255,0.04);

}



.rb-plan-confirm-body {

    padding: 24px;

    line-height: 1.65;

    font-size: 14px;

}



.rb-plan-confirm-actions {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    padding: 0 24px 24px;

}



.rb-plan-confirm-primary,

.rb-plan-confirm-secondary {

    min-height: 42px;

    padding: 0 18px;

    border-radius: 9px;

    cursor: pointer;

    font-weight: 900;

}



.rb-plan-confirm-primary {

    border: 1px solid #fff;

    background: #fff;

    color: #111;

}



.rb-plan-confirm-secondary {

    border: 1px solid rgba(255,255,255,0.22);

    background: transparent;

    color: #fff;

}



@media (max-width: 640px) {



    .rb-legal-overlay {

        padding: 10px;

    }



    .rb-legal-dialog,

    .rb-plan-confirm-dialog {

        max-height: 92vh;

        border-radius: 14px;

    }



    .rb-legal-body {

        max-height: calc(92vh - 85px);

        padding: 19px;

    }



    .rb-plan-confirm-actions {

        flex-direction: column-reverse;

    }



    .rb-plan-confirm-primary,

    .rb-plan-confirm-secondary {

        width: 100%;

    }

}








.rb-site-brand {

    display: flex;

    align-items: center;

    flex: 0 0 auto;

    width: 255px;

    max-width: 255px;

    height: 58px;

    text-decoration: none;

    overflow: visible;

}



.rb-site-brand-logo {

    display: block;

    width: 100%;

    height: auto;

    max-height: 58px;

    object-fit: contain;

    object-position: left center;

    filter:

        drop-shadow(

            0 0 10px

            rgba(174, 255, 37, 0.08)

        );

}



@media (max-width: 1100px) {



    .rb-site-brand {

        width: 205px;

        max-width: 205px;

    }



}



@media (max-width: 760px) {



    .rb-site-brand {

        width: 170px;

        max-width: 170px;

        height: 50px;

    }



    .rb-site-brand-logo {

        max-height: 50px;

    }



}







.rb-site-brand {

    position: relative;

}







.rb-site-brand-logo {

    position: relative;

    z-index: 2;

    background: transparent;

}








/*

 * Homepage brand artwork.

 *

 * Intentionally decorative and restrained:

 * the headline remains the dominant visual element.

 */



.hero {

    position: relative;

    overflow: hidden;

}



.hero > .shell {

    position: relative;

    z-index: 2;

}



.rb-hero-brand-art {

    position: absolute;

    z-index: 1;



    top: 50%;

    right: 12vw;



    width: min(46vw, 800px);



    transform:

        translateY(-52%)

        translateX(0);



    pointer-events: none;

    user-select: none;



    opacity: 0.28;



    /*

     * Fade the artwork toward the headline side and edges.

     */

    -webkit-mask-image:

        linear-gradient(

            90deg,

            transparent 0%,

            rgba(0,0,0,0.18) 15%,

            rgba(0,0,0,0.88) 43%,

            #000 68%,

            rgba(0,0,0,0.72) 88%,

            transparent 100%

        );



    mask-image:

        linear-gradient(

            90deg,

            transparent 0%,

            rgba(0,0,0,0.18) 15%,

            rgba(0,0,0,0.88) 43%,

            #000 68%,

            rgba(0,0,0,0.72) 88%,

            transparent 100%

        );

}



.rb-hero-brand-art::after {

    content: "";

    position: absolute;

    inset: 0;



    background:

        linear-gradient(

            90deg,

            rgba(3,8,5,0.95) 0%,

            rgba(3,8,5,0.42) 28%,

            transparent 60%

        );



    pointer-events: none;

}



.rb-hero-brand-art img {

    display: block;

    width: 100%;

    height: auto;



    object-fit: contain;



    filter:

        saturate(0.92)

        contrast(1.08)

        drop-shadow(

            0 0 34px

            rgba(171,255,31,0.09)

        );

}





/*

 * Slightly reduce the art before the mobile breakpoint.

 */



@media (max-width: 1250px) {



    .rb-hero-brand-art {

        right: -5%;

        width: 48vw;

        opacity: 0.14;

    }



}





/*

 * On tablets/mobile the headline needs the full canvas.

 */



@media (max-width: 900px) {



    .rb-hero-brand-art {

        display: none;

    }



}








/* ==========================================================================

   THE RACING BRAIN - MOBILE V1

   Desktop behaviour is unchanged.

   ========================================================================== */





/* --------------------------------------------------------------------------

   MOBILE MENU - hidden on desktop

   -------------------------------------------------------------------------- */



.mobile-menu-button,

.mobile-navigation {

    display: none;

}





/* --------------------------------------------------------------------------

   PHONE / TABLET NAVIGATION

   -------------------------------------------------------------------------- */



@media (max-width: 850px) {



    .topbar {

        z-index: 10000;

    }



    .topbar-inner {

        min-height: 72px;

        gap: 12px;

    }



    /*

        Existing desktop nav is intentionally hidden at this breakpoint.

        Mobile navigation replaces it.

    */

    .topbar .nav {

        display: none !important;

    }



    .topbar .brand {

        flex: 1 1 auto;

        min-width: 0;

    }



    .rb-site-brand {

        width: 180px;

        max-width: 180px;

        height: 52px;

    }



    .rb-site-brand-logo {

        max-height: 52px;

    }





    /* ACCOUNT ------------------------------------------------------------- */



    .topbar .sign-in {

        flex: 0 0 auto;

        min-height: 44px;

        padding: 9px 13px;

        border-radius: 12px;

        font-size: 0.84rem;

        white-space: nowrap;

    }





    /* HAMBURGER ----------------------------------------------------------- */



    .mobile-menu-button {

        flex: 0 0 44px;



        width: 44px;

        height: 44px;



        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;



        gap: 5px;



        border: 1px solid var(--border);

        border-radius: 12px;



        background: rgba(12, 16, 13, 0.92);



        cursor: pointer;

    }



    .mobile-menu-button span {

        display: block;



        width: 20px;

        height: 2px;



        border-radius: 10px;



        background: var(--text);



        transition:

            transform 0.2s ease,

            opacity 0.2s ease;

    }



    .mobile-menu-button.open span:nth-child(1) {

        transform:

            translateY(7px)

            rotate(45deg);

    }



    .mobile-menu-button.open span:nth-child(2) {

        opacity: 0;

    }



    .mobile-menu-button.open span:nth-child(3) {

        transform:

            translateY(-7px)

            rotate(-45deg);

    }





    /* DRAWER -------------------------------------------------------------- */



    .mobile-navigation {

        position: fixed;



        top: 72px;

        left: 0;

        right: 0;



        z-index: 9999;



        display: block;



        max-height: 0;

        overflow: hidden;



        opacity: 0;

        visibility: hidden;



        background:

            linear-gradient(

                180deg,

                rgba(8, 12, 9, 0.99),

                rgba(5, 8, 6, 0.99)

            );



        border-bottom:

            1px solid rgba(255,255,255,0.09);



        box-shadow:

            0 22px 45px rgba(0,0,0,0.5);



        transition:

            max-height 0.28s ease,

            opacity 0.2s ease,

            visibility 0.2s ease;

    }



    .mobile-navigation.open {

        max-height: calc(100vh - 72px);

        overflow-y: auto;



        opacity: 1;

        visibility: visible;

    }



    .mobile-navigation-inner {

        width: min(100% - 32px, 720px);



        margin: 0 auto;

        padding: 12px 0 20px;

    }



    .mobile-navigation a {

        display: flex;

        align-items: center;



        min-height: 54px;



        padding: 0 6px;



        border-bottom:

            1px solid rgba(255,255,255,0.07);



        color: var(--text);

        text-decoration: none;



        font-size: 0.95rem;

        font-weight: 850;

        letter-spacing: 0.015em;

    }



    .mobile-navigation a::after {

        content: "\2192";



        margin-left: auto;



        color: var(--accent);



        font-size: 1.15rem;

        font-weight: 700;

        line-height: 1;



        opacity: 0.78;



        transform: translateX(0);



        transition:

            transform 0.18s ease,

            opacity 0.18s ease;

    }



    .mobile-navigation a:hover::after,

    .mobile-navigation a:active::after {

        transform: translateX(3px);

        opacity: 1;

    }



    .mobile-navigation a:hover,

    .mobile-navigation a:active {

        color: var(--accent);

    }



}





/* --------------------------------------------------------------------------

   SMALL PHONE HEADER

   -------------------------------------------------------------------------- */



@media (max-width: 480px) {



    .topbar-inner {

        min-height: 68px;

        gap: 8px;

    }



    .rb-site-brand {

        width: 155px;

        max-width: 155px;

        height: 48px;

    }



    .rb-site-brand-logo {

        max-height: 48px;

    }



    .topbar .sign-in {

        min-height: 42px;

        padding: 8px 11px;

        font-size: 0.78rem;

    }



    .mobile-menu-button {

        flex-basis: 42px;

        width: 42px;

        height: 42px;

    }



    .mobile-navigation {

        top: 68px;

    }



}





/* ==========================================================================

   MOBILE RACE FIELD V2

   Desktop remains unchanged.

   ========================================================================== */



@media (max-width: 720px) {



    .market-wrap {

        width: 100%;

        overflow: visible !important;

    }



    .market-wrap .market-table {

        display: block;

        width: 100% !important;

        min-width: 0 !important;

        table-layout: auto;

    }



    .market-wrap .market-table thead {

        display: none;

    }



    .market-wrap .market-table tbody {

        display: grid;

        grid-template-columns: minmax(0, 1fr);

        gap: 12px;

        width: 100%;

    }





    /* RUNNER CARD -------------------------------------------------------- */



    .market-wrap .market-table tr {

        position: relative;



        display: grid;



        /*

            Four useful mobile columns:



            runner number | main content | brain | barrier



            OPEN/NOW/BRAIN/EDGE reuse all four columns on the price row.

        */

        grid-template-columns:

            42px

            minmax(0, 1fr)

            minmax(74px, auto)

            46px;



        width: 100%;

        min-width: 0;



        padding: 15px 14px 14px;



        border: 1px solid rgba(255,255,255,0.09);

        border-radius: 14px;



        background:

            linear-gradient(

                180deg,

                rgba(15,20,16,0.98),

                rgba(10,14,11,0.98)

            );



        overflow: hidden;

        box-sizing: border-box;

    }



    .market-wrap .market-table tr.brain-top-pick {

        border-color: rgba(174,255,35,0.48);

        box-shadow: inset 4px 0 0 var(--accent);

    }



    .market-wrap .market-table td {

        display: block;



        width: auto !important;

        min-width: 0;



        padding: 0 !important;

        border: 0 !important;



        box-sizing: border-box;



        /*

            Crucial difference from V1:

            don't allow arbitrary character breaking.

        */

        white-space: normal !important;

        overflow-wrap: normal !important;

        word-break: normal !important;

    }





    /* NUMBER ------------------------------------------------------------- */



    .market-wrap .market-table td:nth-child(1) {

        grid-column: 1;

        grid-row: 1;



        align-self: start;



        padding-top: 3px !important;



        color: var(--muted);



        font-size: 0.92rem;

        font-weight: 900;

        line-height: 1.15;



        white-space: nowrap !important;

    }





    /* HORSE -------------------------------------------------------------- */



    .market-wrap .market-table td:nth-child(2) {

        grid-column: 2 / 4;

        grid-row: 1;



        align-self: start;



        padding-right: 12px !important;

    }



    .market-wrap .market-table .horse-link {

        display: inline-block;



        max-width: 100%;



        font-size: 1.12rem;

        font-weight: 900;

        line-height: 1.15;



        white-space: normal !important;

        overflow-wrap: break-word !important;

        word-break: normal !important;



        text-align: left;

    }





    /* BARRIER ------------------------------------------------------------ */



    .market-wrap .market-table td:nth-child(3) {

        grid-column: 4;

        grid-row: 1;



        align-self: start;



        min-width: 42px;



        padding: 5px 7px !important;



        border: 1px solid rgba(255,255,255,0.11) !important;

        border-radius: 8px !important;



        color: var(--muted);



        font-size: 0.78rem;

        font-weight: 850;

        line-height: 1.1;



        text-align: center;



        white-space: nowrap !important;

    }



    .market-wrap .market-table td:nth-child(3)::before {

        content: "B";



        margin-right: 3px;



        color: rgba(255,255,255,0.42);



        font-size: 0.64rem;

    }





    /* WEIGHT / JOCKEY / TRAINER ----------------------------------------- */



    .market-wrap .market-table td:nth-child(4) {

        grid-column: 2 / 5;

        grid-row: 2;

    }



    .market-wrap .market-table td:nth-child(5) {

        grid-column: 2 / 5;

        grid-row: 3;

    }



    .market-wrap .market-table td:nth-child(6) {

        grid-column: 2 / 5;

        grid-row: 4;

    }



    .market-wrap .market-table td:nth-child(4),

    .market-wrap .market-table td:nth-child(5),

    .market-wrap .market-table td:nth-child(6) {

        margin-top: 7px;



        color: var(--muted);



        font-size: 0.80rem;

        line-height: 1.28;

    }



    .market-wrap .market-table td:nth-child(4)::before,

    .market-wrap .market-table td:nth-child(5)::before,

    .market-wrap .market-table td:nth-child(6)::before {

        display: inline-block;



        width: 58px;



        margin-right: 7px;



        color: rgba(255,255,255,0.45);



        font-size: 0.62rem;

        font-weight: 850;

        letter-spacing: 0.055em;



        vertical-align: baseline;

    }



    .market-wrap .market-table td:nth-child(4)::before {

        content: "WEIGHT";

    }



    .market-wrap .market-table td:nth-child(5)::before {

        content: "JOCKEY";

    }



    .market-wrap .market-table td:nth-child(6)::before {

        content: "TRAINER";

    }



    .market-wrap .market-table .participant-link,

    .market-wrap .market-table .jockey-trainer-link {

        white-space: normal !important;

        overflow-wrap: break-word !important;

        word-break: normal !important;



        text-align: left;

    }





    /* PRICE STRIP -------------------------------------------------------- */



    .market-wrap .market-table td:nth-child(7),

    .market-wrap .market-table td:nth-child(8),

    .market-wrap .market-table td:nth-child(9),

    .market-wrap .market-table td:nth-child(10) {

        grid-row: 5;



        margin-top: 14px;



        padding-top: 11px !important;



        border-top: 1px solid rgba(255,255,255,0.075) !important;



        white-space: nowrap !important;

        overflow-wrap: normal !important;

        word-break: normal !important;



        line-height: 1.15;

    }



    /* OPEN */

    .market-wrap .market-table td:nth-child(7) {

        grid-column: 1;

        text-align: left;

    }



    /* NOW */

    .market-wrap .market-table td:nth-child(8) {

        grid-column: 2;



        padding-left: 10px !important;



        text-align: left;

    }



    /* BRAIN */

    .market-wrap .market-table td:nth-child(9) {

        grid-column: 3;



        padding-left: 8px !important;



        text-align: center;

    }



    /* EDGE */

    .market-wrap .market-table td:nth-child(10) {

        grid-column: 4;



        padding-left: 6px !important;



        text-align: right;

    }





    /* PRICE LABELS ------------------------------------------------------- */



    .market-wrap .market-table td:nth-child(7)::before,

    .market-wrap .market-table td:nth-child(8)::before,

    .market-wrap .market-table td:nth-child(9)::before,

    .market-wrap .market-table td:nth-child(10)::before {

        display: block;



        margin-bottom: 5px;



        color: rgba(255,255,255,0.42);



        font-size: 0.56rem;

        font-weight: 850;

        letter-spacing: 0.055em;

        line-height: 1;

    }



    .market-wrap .market-table td:nth-child(7)::before {

        content: "OPEN";

    }



    .market-wrap .market-table td:nth-child(8)::before {

        content: "NOW";

    }



    .market-wrap .market-table td:nth-child(9)::before {

        content: "BRAIN";

    }



    .market-wrap .market-table td:nth-child(10)::before {

        content: "EDGE";

    }





    /* PRICE VALUES ------------------------------------------------------- */



    .market-wrap .market-table td:nth-child(7),

    .market-wrap .market-table td:nth-child(8),

    .market-wrap .market-table td:nth-child(9) {

        font-size: 0.91rem;

        font-weight: 850;

    }



    .market-wrap .market-table td:nth-child(10) {

        font-size: 0.90rem;

        font-weight: 900;

    }





    /* BRAIN RANK --------------------------------------------------------- */



    .market-wrap .market-table .brain-rank {

        display: inline-flex;



        align-items: center;

        justify-content: center;



        margin-bottom: 4px;



        white-space: nowrap !important;

    }





    /* FIRST STARTER ------------------------------------------------------ */



    .market-wrap .market-table .first-starter-note {

        display: block;



        margin-top: 4px;



        max-width: 100px;



        color: var(--muted);



        font-size: 0.61rem;

        line-height: 1.15;



        white-space: normal !important;

    }





    /* RACE PAGE ---------------------------------------------------------- */



    .race-page {

        padding-top: 20px;

    }



    .race-header {

        margin-bottom: 18px;

    }



    .race-title {

        font-size: clamp(1.65rem, 8vw, 2.25rem);

        line-height: 1.05;

    }



    .race-meta-row {

        gap: 7px;

    }



    .race-meta-pill {

        font-size: 0.72rem;

    }





    /* SMALL PHONES ------------------------------------------------------- */



    @media (max-width: 390px) {



        .market-wrap .market-table tr {

            grid-template-columns:

                38px

                minmax(0, 1fr)

                minmax(68px, auto)

                42px;



            padding-left: 11px;

            padding-right: 11px;

        }



        .market-wrap .market-table td:nth-child(7),

        .market-wrap .market-table td:nth-child(8),

        .market-wrap .market-table td:nth-child(9),

        .market-wrap .market-table td:nth-child(10) {

            font-size: 0.82rem;

        }

    }

}







/* --------------------------------------------------------------------------

   VERY SMALL PHONES

   -------------------------------------------------------------------------- */



@media (max-width: 390px) {



    .market-wrap .market-table tr {

        grid-template-columns:

            36px

            minmax(0, 1fr)

            auto;



        padding:

            14px 11px;

    }



    .market-wrap .market-table .horse-link {

        font-size: 1.02rem;

    }



    .market-wrap .market-table td:nth-child(7),

    .market-wrap .market-table td:nth-child(8),

    .market-wrap .market-table td:nth-child(9) {

        font-size: 0.88rem;

    }



}







/* ==========================================================================

   THE RACING BRAIN - MOBILE V1.1 POLISH

   Presentation only.

   ========================================================================== */





/* --------------------------------------------------------------------------

   TABLET / PHONE HEADER

   -------------------------------------------------------------------------- */



@media (max-width: 850px) {



    .topbar-inner {

        width: calc(100% - 24px);

        max-width: none;



        padding-left: 0;

        padding-right: 0;

    }



    .topbar .brand {

        display: flex;

        align-items: center;

    }



    .rb-site-brand {

        flex: 0 1 auto;

    }



    .mobile-menu-button {

        position: relative;



        border-color: rgba(255,255,255,0.11);



        box-shadow:

            inset 0 1px 0 rgba(255,255,255,0.035);



        transition:

            border-color 0.18s ease,

            background 0.18s ease;

    }



    .mobile-menu-button:hover,

    .mobile-menu-button.open {

        border-color: rgba(174,255,35,0.42);

        background: rgba(174,255,35,0.055);

    }



    .mobile-navigation-inner {

        padding-top: 8px;

        padding-bottom: 18px;

    }



    .mobile-navigation a {

        gap: 14px;



        min-height: 56px;



        padding-left: 8px;

        padding-right: 8px;

    }



}





/* --------------------------------------------------------------------------

   PHONE HEADER

   -------------------------------------------------------------------------- */



@media (max-width: 600px) {



    .topbar-inner {

        width: calc(100% - 20px);

    }



    .rb-site-brand {

        width: 145px;

        max-width: 145px;

        height: 46px;

    }



    .rb-site-brand-logo {

        width: 100%;

        max-height: 46px;

        object-fit: contain;

        object-position: left center;

    }



    .topbar .sign-in {

        min-height: 40px;



        padding:

            7px

            10px;



        font-size: 0.72rem;

        letter-spacing: 0.015em;

    }



    .mobile-menu-button {

        flex-basis: 40px;



        width: 40px;

        height: 40px;



        border-radius: 10px;

    }



    .mobile-menu-button span {

        width: 18px;

    }



    .mobile-navigation-inner {

        width: calc(100% - 24px);

    }



}





/* --------------------------------------------------------------------------

   VERY SMALL PHONE HEADER

   -------------------------------------------------------------------------- */



@media (max-width: 390px) {



    .topbar-inner {

        gap: 6px;

    }



    .rb-site-brand {

        width: 128px;

        max-width: 128px;

    }



    .topbar .sign-in {

        padding-left: 8px;

        padding-right: 8px;



        font-size: 0.68rem;

    }



}





/* --------------------------------------------------------------------------

   MOBILE PAGE SPACING

   -------------------------------------------------------------------------- */



@media (max-width: 720px) {



    main {

        overflow-x: hidden;

    }



    .shell {

        width: calc(100% - 24px);

    }



    .hero {

        padding-left: 0;

        padding-right: 0;

    }



    .section-heading {

        gap: 12px;

    }



    .section-heading h2 {

        line-height: 1.05;

    }





    /* ----------------------------------------------------------------------

       RACE FIELD CARDS

       ---------------------------------------------------------------------- */



    .market-wrap .market-table tbody {

        gap: 10px;

    }



    .market-wrap .market-table tr {

        padding:

            14px

            12px;



        border-radius: 13px;



        box-shadow:

            0 5px 16px rgba(0,0,0,0.16);

    }



    .market-wrap .market-table tr.brain-top-pick {

        box-shadow:

            inset 4px 0 0 var(--accent),

            0 6px 18px rgba(0,0,0,0.19);

    }



    .market-wrap .market-table td {

        min-width: 0;

    }



    .market-wrap .market-table .horse-link {

        overflow-wrap: anywhere;

    }



    .market-wrap .market-table .participant-link,

    .market-wrap .market-table .jockey-trainer-link {

        overflow-wrap: anywhere;

    }



    .market-wrap .market-table td:nth-child(7),

    .market-wrap .market-table td:nth-child(8),

    .market-wrap .market-table td:nth-child(9) {

        font-variant-numeric: tabular-nums;

    }



}





/* --------------------------------------------------------------------------

   SMALL RACE CARDS

   -------------------------------------------------------------------------- */



@media (max-width: 480px) {



    .shell {

        width: calc(100% - 20px);

    }



    .market-wrap .market-table tr {

        grid-template-columns:

            38px

            minmax(0, 1fr)

            auto;



        column-gap: 9px;



        padding:

            13px

            11px;

    }



    .market-wrap .market-table .horse-link {

        font-size: 1rem;

        line-height: 1.12;

    }



}





/* --------------------------------------------------------------------------

   TOUCH TARGETS

   -------------------------------------------------------------------------- */



@media (hover: none) and (pointer: coarse) {



    .mobile-navigation a,

    .mobile-menu-button,

    .topbar .sign-in,

    button,

    .btn {

        -webkit-tap-highlight-color:

            rgba(174,255,35,0.10);

    }



}








/* ==========================================================================

   THE RACING BRAIN

   MOBILE BRAIN MARKET V3



   DESKTOP:

       untouched



   MOBILE:

       # / HORSE / BRAIN PRICE

       trainer under horse

       jockey + weight + barrier

       OPEN / NOW / EDGE

   ========================================================================== */



@media (max-width: 720px) {





    /* ----------------------------------------------------------------------

       MARKET CONTAINER

       ---------------------------------------------------------------------- */



    #racePage .market-wrap {

        width: 100% !important;



        overflow-x: hidden !important;

    }



    #racePage .market-wrap .market-table {

        display: block !important;



        width: 100% !important;

        max-width: 100% !important;

        min-width: 0 !important;



        table-layout: auto !important;

    }



    #racePage .market-wrap .market-table thead {

        display: none !important;

    }



    #racePage .market-wrap .market-table tbody {

        display: grid !important;



        grid-template-columns:

            minmax(0, 1fr) !important;



        gap: 11px !important;



        width: 100% !important;

    }





    /* ----------------------------------------------------------------------

       SORT CONTROLS

       ---------------------------------------------------------------------- */



    #mobileBrainMarketSort {

        display: flex;



        align-items: center;



        gap: 8px;



        margin:

            0

            16px

            16px;



        padding-top: 2px;

    }



    #mobileBrainMarketSort .mobile-sort-label {

        flex: 0 0 auto;



        margin-right: 2px;



        color: rgba(205,213,208,.66);



        font-size: .66rem;

        font-weight: 900;



        letter-spacing: .08em;

    }



    #mobileBrainMarketSort .mobile-sort-button {

        appearance: none;



        flex: 1 1 0;



        min-width: 0;



        padding:

            9px

            10px;



        border:

            1px solid

            rgba(125,145,132,.26);



        border-radius: 10px;



        background:

            rgba(8,13,10,.76);



        color:

            rgba(218,224,220,.72);



        font-family: inherit;



        font-size: .72rem;

        font-weight: 900;



        letter-spacing: .035em;



        cursor: pointer;



        transition:

            border-color .15s ease,

            color .15s ease,

            background .15s ease;

    }



    #mobileBrainMarketSort .mobile-sort-button.active {

        border-color:

            rgba(174,255,35,.82);



        background:

            rgba(174,255,35,.055);



        color:

            var(--accent);



        box-shadow:

            inset 0 0 0 1px

            rgba(174,255,35,.10);

    }





    /* ----------------------------------------------------------------------

       RUNNER CARD

       ---------------------------------------------------------------------- */



    #racePage .market-wrap .market-table tr {

        position: relative !important;



        display: grid !important;



        /*

            1 = runner number

            2 = main horse information

            3 = Brain Price

        */



        grid-template-columns:

            46px

            minmax(0, 1fr)

            minmax(118px, auto)

            !important;



        grid-template-rows:

            auto

            auto

            auto

            auto

            !important;



        column-gap: 12px !important;



        width: 100% !important;

        max-width: 100% !important;

        min-width: 0 !important;



        margin: 0 !important;



        padding:

            17px

            16px

            15px

            !important;



        box-sizing:

            border-box !important;



        border:

            1px solid

            rgba(120,140,128,.22)

            !important;



        border-radius:

            15px !important;



        background:

            rgba(10,16,12,.72)

            !important;



        overflow:

            hidden !important;

    }



    #racePage .market-wrap .market-table tr.brain-top-pick {

        border-color:

            rgba(174,255,35,.48)

            !important;



        box-shadow:

            inset 4px 0 0 var(--accent),

            0 6px 18px rgba(0,0,0,.19)

            !important;

    }





    /* ----------------------------------------------------------------------

       RESET DESKTOP TD BEHAVIOUR

       ---------------------------------------------------------------------- */



    #racePage .market-wrap .market-table td {

        display: block !important;



        width: auto !important;

        max-width: none !important;

        min-width: 0 !important;



        height: auto !important;



        margin: 0 !important;

        padding: 0 !important;



        border: 0 !important;



        box-sizing:

            border-box !important;



        white-space:

            normal !important;



        overflow:

            visible !important;



        overflow-wrap:

            normal !important;



        word-break:

            normal !important;



        text-align:

            left !important;

    }





    /* ----------------------------------------------------------------------

       TAB NUMBER

       ---------------------------------------------------------------------- */



    #racePage .market-wrap .market-table td:nth-child(1) {

        grid-column:

            1 !important;



        grid-row:

            1 !important;



        align-self:

            start !important;



        padding-top:

            3px !important;



        color:

            var(--muted) !important;



        font-size:

            1rem !important;



        font-weight:

            900 !important;



        line-height:

            1.15 !important;



        white-space:

            nowrap !important;

    }





    /* ----------------------------------------------------------------------

       HORSE NAME

       ---------------------------------------------------------------------- */



    #racePage .market-wrap .market-table td:nth-child(2) {

        grid-column:

            2 !important;



        grid-row:

            1 !important;



        align-self:

            start !important;



        padding-right:

            6px !important;

    }



    #racePage .market-wrap .market-table .horse-link {

        display:

            block !important;



        width:

            100% !important;



        max-width:

            100% !important;



        min-width:

            0 !important;



        padding:

            0 !important;



        font-size:

            1.16rem !important;



        font-weight:

            900 !important;



        line-height:

            1.16 !important;



        white-space:

            normal !important;



        overflow-wrap:

            normal !important;



        word-break:

            normal !important;



        text-align:

            left !important;

    }

    /* ======================================================================

       MOBILE RUNNER DETAILS V10



       CONFIRMED LIVE TABLE ORDER:



       TD1  runner number

       TD2  horse

       TD3  trainer

       TD4  jockey

       TD5  weight

       TD6  barrier

       TD7  open

       TD8  now

       TD9  Brain Price

       TD10 edge



       MOBILE DISPLAY:



       HORSE                         BRAIN PRICE

       TRAINER



       JOCKEY             WEIGHT     BARRIER

       jockey             weight     barrier

       ====================================================================== */





    /* ----------------------------------------------------------------------

       TRAINER - TD3

       Directly underneath horse.

       ---------------------------------------------------------------------- */



    #racePage .market-wrap .market-table td:nth-child(3) {

        grid-column:

            2 !important;



        grid-row:

            2 !important;



        justify-self:

            stretch !important;



        align-self:

            start !important;



        width:

            auto !important;



        min-width:

            0 !important;



        max-width:

            100% !important;



        margin:

            7px 0 0 !important;



        padding:

            0 8px 0 0 !important;



        border:

            0 !important;



        color:

            var(--muted) !important;



        font-size:

            .84rem !important;



        font-weight:

            600 !important;



        line-height:

            1.25 !important;



        white-space:

            normal !important;



        transform:

            none !important;



        text-align:

            left !important;

    }



    #racePage .market-wrap .market-table td:nth-child(3)::before {

        content:

            none !important;



        display:

            none !important;

    }





    /* ----------------------------------------------------------------------

       JOCKEY - TD4

       ---------------------------------------------------------------------- */



    #racePage .market-wrap .market-table td:nth-child(4) {

        grid-column:

            2 !important;



        grid-row:

            3 !important;



        justify-self:

            stretch !important;



        align-self:

            start !important;



        width:

            auto !important;



        min-width:

            0 !important;



        max-width:

            100% !important;



        margin:

            17px 0 0 !important;



        padding:

            0 14px 0 0 !important;



        border:

            0 !important;



        color:

            var(--muted) !important;



        font-size:

            .82rem !important;



        line-height:

            1.25 !important;



        white-space:

            normal !important;



        overflow-wrap:

            normal !important;



        word-break:

            normal !important;



        transform:

            none !important;



        text-align:

            left !important;

    }



    #racePage .market-wrap .market-table td:nth-child(4)::before {

        content:

            "JOCKEY";



        display:

            block !important;



        margin:

            0 0 5px !important;



        color:

            rgba(190,198,193,.62);



        font-size:

            .62rem;



        font-weight:

            900;



        letter-spacing:

            .09em;



        line-height:

            1;

    }





    /* ----------------------------------------------------------------------

       WEIGHT - TD5

       ---------------------------------------------------------------------- */



    #racePage .market-wrap .market-table td:nth-child(5) {

        grid-column:

            3 !important;



        grid-row:

            3 !important;



        justify-self:

            start !important;



        align-self:

            start !important;



        width:

            74px !important;



        min-width:

            74px !important;



        max-width:

            74px !important;



        margin:

            17px 0 0 !important;



        padding:

            0 !important;



        border:

            0 !important;



        color:

            var(--muted) !important;



        font-size:

            .82rem !important;



        line-height:

            1.25 !important;



        white-space:

            nowrap !important;



        transform:

            translateX(-10px) !important;



        text-align:

            left !important;

    }



    #racePage .market-wrap .market-table td:nth-child(5)::before {

        content:

            "WGT";



        display:

            block !important;



        margin:

            0 0 5px !important;



        color:

            rgba(190,198,193,.62);



        font-size:

            .62rem;



        font-weight:

            900;



        letter-spacing:

            .09em;



        line-height:

            1;

    }





    /* ----------------------------------------------------------------------

       BARRIER - TD6

       ---------------------------------------------------------------------- */



    #racePage .market-wrap .market-table td:nth-child(6) {

        grid-column:

            3 !important;



        grid-row:

            3 !important;



        justify-self:

            end !important;



        align-self:

            start !important;



        width:

            68px !important;



        min-width:

            68px !important;



        max-width:

            68px !important;



        margin:

            17px 0 0 !important;



        padding:

            0 !important;



        border:

            0 !important;



        color:

            var(--muted) !important;



        font-size:

            .82rem !important;



        font-weight:

            700 !important;



        line-height:

            1.25 !important;



        white-space:

            nowrap !important;



        transform: translateX(12px) !important;



        text-align:

            left !important;

    }



    #racePage .market-wrap .market-table td:nth-child(6)::before {

        content:

            "BAR";



        display:

            block !important;



        margin:

            0 0 5px !important;



        color:

            rgba(190,198,193,.62);



        font-size:

            .62rem;



        font-weight:

            900;



        letter-spacing:

            .09em;



        line-height:

            1;

    }













    #racePage .market-wrap .market-table .participant-link,

    #racePage .market-wrap .market-table .jockey-trainer-link {

        display:

            inline !important;



        width:

            auto !important;



        max-width:

            none !important;



        padding:

            0 !important;



        white-space:

            normal !important;



        overflow-wrap:

            normal !important;



        word-break:

            normal !important;



        text-align:

            left !important;

    }





    /* ----------------------------------------------------------------------

       BRAIN PRICE



       Existing TD9 contains Brain rank + Brain price.



       Move it beside the horse name and explicitly label it.

       ---------------------------------------------------------------------- */



    #racePage .market-wrap .market-table td:nth-child(9) {

        grid-column:

            3 !important;



        grid-row:

            1 / 3 !important;



        justify-self:

            end !important;



        align-self:

            start !important;



        min-width:

            112px !important;



        margin:

            0 !important;



        padding:

            0 !important;



        border:

            0 !important;



        text-align:

            right !important;



        white-space:

            nowrap !important;



        font-size:

            1rem !important;



        font-weight:

            900 !important;



        line-height:

            1.15 !important;

    }



    #racePage .market-wrap .market-table td:nth-child(9)::before {

        content:

            "BRAIN PRICE";



        display:

            block;



        margin-bottom:

            6px;



        color:

            rgba(190,198,193,.62);



        font-size:

            .58rem;



        font-weight:

            900;



        letter-spacing:

            .08em;



        line-height:

            1;

    }



    #racePage .market-wrap .market-table .brain-rank {

        display:

            inline-flex !important;



        align-items:

            center !important;



        justify-content:

            center !important;



        min-width:

            34px;



        margin-right:

            7px !important;



        margin-bottom:

            0 !important;



        padding:

            5px

            7px;



        border:

            1px solid

            rgba(120,140,128,.28);



        border-radius:

            8px;



        color:

            var(--muted);



        font-size:

            .75rem;



        font-weight:

            900;



        vertical-align:

            middle;



        white-space:

            nowrap !important;

    }



    #racePage .market-wrap .market-table tr.brain-top-pick td:nth-child(9) {

        color:

            var(--accent) !important;

    }



    #racePage .market-wrap .market-table tr.brain-top-pick .brain-rank {

        border-color:

            rgba(174,255,35,.48);



        color:

            var(--accent);

    }





    /* ----------------------------------------------------------------------

       OPEN / NOW / EDGE



       BRAIN has moved to the header.



       Bottom strip becomes three equal areas.

       ---------------------------------------------------------------------- */



    #racePage .market-wrap .market-table td:nth-child(7),

    #racePage .market-wrap .market-table td:nth-child(8),

    #racePage .market-wrap .market-table td:nth-child(10) {

        grid-row:

            4 !important;



        align-self:

            end !important;



        margin-top:

            17px !important;



        padding-top:

            11px !important;



        border-top:

            1px solid

            rgba(255,255,255,.075)

            !important;



        white-space:

            nowrap !important;



        overflow:

            visible !important;



        overflow-wrap:

            normal !important;



        word-break:

            normal !important;

    }



    #racePage .market-wrap .market-table td:nth-child(7) {

        grid-column:

            1 !important;



        text-align:

            left !important;

    }



    #racePage .market-wrap .market-table td:nth-child(8) {

        grid-column:

            2 !important;



        text-align:

            left !important;

    }



    #racePage .market-wrap .market-table td:nth-child(10) {

        grid-column:

            3 !important;



        text-align:

            right !important;

    }





    #racePage .market-wrap .market-table td:nth-child(7)::before,

    #racePage .market-wrap .market-table td:nth-child(8)::before,

    #racePage .market-wrap .market-table td:nth-child(10)::before {

        display:

            block;



        margin-bottom:

            5px;



        color:

            rgba(190,198,193,.62);



        font-size:

            .61rem;



        font-weight:

            900;



        letter-spacing:

            .08em;



        line-height:

            1;

    }



    #racePage .market-wrap .market-table td:nth-child(7)::before {

        content:

            "OPEN";

    }



    #racePage .market-wrap .market-table td:nth-child(8)::before {

        content:

            "NOW";

    }



    #racePage .market-wrap .market-table td:nth-child(10)::before {

        content:

            "EDGE";

    }



    #racePage .market-wrap .market-table td:nth-child(7),

    #racePage .market-wrap .market-table td:nth-child(8) {

        font-size:

            .98rem !important;



        font-weight:

            900 !important;

    }



    #racePage .market-wrap .market-table td:nth-child(10) {

        font-size:

            .94rem !important;



        font-weight:

            900 !important;

    }



    #racePage .market-wrap .market-table .market-edge-value {

        white-space:

            nowrap !important;

    }





    /* ----------------------------------------------------------------------

       FIRST STARTER SAFETY



       Preserve market-derived wording.

       ---------------------------------------------------------------------- */



    #racePage .market-wrap .market-table .first-starter-note {

        display:

            block !important;



        margin-top:

            5px !important;



        max-width:

            112px !important;



        color:

            var(--muted) !important;



        font-size:

            .58rem !important;



        font-weight:

            650 !important;



        line-height:

            1.18 !important;



        white-space:

            normal !important;

    }





    /* ----------------------------------------------------------------------

       FLOATING ASK BUTTON



       Smaller and less intrusive on phones.

       ---------------------------------------------------------------------- */



    #racePage .ask-fab,

    #racePage .floating-ask-button,

    #racePage .ask-the-brain-fab,

    body .ask-fab,

    body .floating-ask-button,

    body .ask-the-brain-fab {

        max-width:

            230px !important;



        min-height:

            48px !important;



        padding:

            11px

            16px

            !important;



        font-size:

            .76rem !important;

    }





    /* ----------------------------------------------------------------------

       SMALL PHONES

       ---------------------------------------------------------------------- */



    @media (max-width: 390px) {



        #racePage .market-wrap .market-table tr {

            grid-template-columns:

                40px

                minmax(0,1fr)

                minmax(105px,auto)

                !important;



            column-gap:

                9px !important;



            padding:

                15px

                12px

                14px

                !important;

        }



        #racePage .market-wrap .market-table .horse-link {

            font-size:

                1.08rem !important;

        }



        #racePage .market-wrap .market-table td:nth-child(9) {

            min-width:

                102px !important;



            font-size:

                .92rem !important;

        }



        #racePage .market-wrap .market-table td:nth-child(5),

        #racePage .market-wrap .market-table td:nth-child(6) {

            font-size:

                .77rem !important;

        }



        #racePage .market-wrap .market-table td:nth-child(6) {

            padding-left:

                10px !important;

        }

    }

}








/* ==========================================================================

   MOBILE BRAIN MARKET V4



   Final authority for:

       - OPEN / NOW / EDGE market strip

       - mobile sorter

       - floating Ask button



   Existing V3 card structure remains in place.

   Desktop untouched.

   ========================================================================== */



@media (max-width: 720px) {





    /* ----------------------------------------------------------------------

       SORTER

       ---------------------------------------------------------------------- */



    #mobileBrainMarketSort {

        display: grid !important;



        grid-template-columns:

            auto

            minmax(0, 1fr)

            minmax(0, 1fr)

            !important;



        align-items: center !important;



        gap: 8px !important;



        margin:

            0

            16px

            16px

            !important;

    }



    #mobileBrainMarketSort .mobile-sort-label {

        color:

            rgba(205,213,208,.66) !important;



        font-size:

            .66rem !important;



        font-weight:

            900 !important;



        letter-spacing:

            .09em !important;



        white-space:

            nowrap !important;

    }



    #mobileBrainMarketSort .mobile-sort-button {

        appearance:

            none !important;



        width:

            100% !important;



        min-width:

            0 !important;



        padding:

            10px

            9px

            !important;



        border:

            1px solid

            rgba(125,145,132,.26)

            !important;



        border-radius:

            10px !important;



        background:

            rgba(8,13,10,.76)

            !important;



        color:

            rgba(218,224,220,.72)

            !important;



        font-family:

            inherit !important;



        font-size:

            .72rem !important;



        font-weight:

            900 !important;



        letter-spacing:

            .035em !important;



        cursor:

            pointer !important;



        touch-action:

            manipulation !important;

    }



    #mobileBrainMarketSort .mobile-sort-button.active {

        border-color:

            rgba(174,255,35,.82)

            !important;



        background:

            rgba(174,255,35,.055)

            !important;



        color:

            var(--accent) !important;

    }





    /* ----------------------------------------------------------------------

       PRICE CELLS



       JS puts OPEN/NOW/EDGE into a dedicated wrapper.

       Therefore they must stop participating in the parent runner grid.

       ---------------------------------------------------------------------- */



    #racePage .market-wrap .market-table tr > td[data-mobile-market-cell="1"] {

        display:

            none !important;

    }





    /* ----------------------------------------------------------------------

       REAL THREE-COLUMN MARKET STRIP

       ---------------------------------------------------------------------- */



    #racePage .mobile-market-strip-v4 {

        grid-column:

            1 / -1 !important;



        grid-row:

            4 !important;



        display:

            grid !important;



        grid-template-columns:

            repeat(3, minmax(0, 1fr))

            !important;



        align-items:

            end !important;



        width:

            100% !important;



        min-width:

            0 !important;



        margin-top:

            17px !important;



        padding-top:

            11px !important;



        border-top:

            1px solid

            rgba(255,255,255,.075)

            !important;



        box-sizing:

            border-box !important;

    }



    #racePage .mobile-market-strip-v4 .mobile-market-item {

        display:

            flex !important;



        flex-direction:

            column !important;



        justify-content:

            flex-end !important;



        min-width:

            0 !important;



        margin:

            0 !important;



        padding:

            0 !important;



        box-sizing:

            border-box !important;

    }



    #racePage .mobile-market-strip-v4 .mobile-market-item:nth-child(1) {

        align-items:

            flex-start !important;



        text-align:

            left !important;

    }



    #racePage .mobile-market-strip-v4 .mobile-market-item:nth-child(2) {

        align-items:

            center !important;



        text-align:

            center !important;

    }



    #racePage .mobile-market-strip-v4 .mobile-market-item:nth-child(3) {

        align-items:

            flex-end !important;



        text-align:

            right !important;

    }





    /* Labels */



    #racePage .mobile-market-strip-v4 .mobile-market-label {

        display:

            block !important;



        margin:

            0 0 6px !important;



        padding:

            0 !important;



        color:

            rgba(190,198,193,.62)

            !important;



        font-size:

            .61rem !important;



        font-weight:

            900 !important;



        letter-spacing:

            .08em !important;



        line-height:

            1 !important;



        white-space:

            nowrap !important;

    }





    /* Values */



    #racePage .mobile-market-strip-v4 .mobile-market-value {

        display:

            block !important;



        margin:

            0 !important;



        padding:

            0 !important;



        font-size:

            .98rem !important;



        font-weight:

            900 !important;



        line-height:

            1.08 !important;



        white-space:

            nowrap !important;



        overflow-wrap:

            normal !important;



        word-break:

            normal !important;

    }



    #racePage .mobile-market-strip-v4 .mobile-market-edge {

        font-size:

            .94rem !important;

    }





    /* ----------------------------------------------------------------------

       ASK BUTTON



       Keep it away from the middle of the runner information.

       ---------------------------------------------------------------------- */



    @media (max-width: 720px) {



        .ask-fab,

        .floating-ask-button,

        .ask-the-brain-fab {

            max-width:

                205px !important;



            min-height:

                46px !important;



            padding:

                10px

                14px

                !important;



            font-size:

                .73rem !important;

        }

    }





    /* ----------------------------------------------------------------------

       SMALL PHONES

       ---------------------------------------------------------------------- */



    @media (max-width: 390px) {



        #racePage .mobile-market-strip-v4 .mobile-market-value {

            font-size:

                .91rem !important;

        }



        #racePage .mobile-market-strip-v4 .mobile-market-edge {

            font-size:

                .87rem !important;

        }



        #mobileBrainMarketSort {

            margin-left:

                12px !important;



            margin-right:

                12px !important;



            gap:

                6px !important;

        }



        #mobileBrainMarketSort .mobile-sort-button {

            font-size:

                .67rem !important;



            padding-left:

                6px !important;



            padding-right:

                6px !important;

        }

    }

}








/*

 * Race-page quick navigation.

 * Keeps TODAY'S RACING and NEXT TO JUMP visually attached

 * to the meeting/race navigator below.

 */



.race-page-quick-nav {

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 12px;

    width: 100%;

    margin: 0 0 12px 0;

}



.race-page-quick-nav .race-back {

    margin: 0;

}



.race-page-next-jump-btn {

    appearance: none;



    display: inline-flex;

    align-items: center;

    justify-content: center;



    min-height: 38px;

    padding: 0 14px;



    border: 1px solid rgba(167, 255, 30, .55);

    border-radius: 10px;



    background: rgba(167, 255, 30, .08);

    color: #a7ff1e;



    font: inherit;

    font-size: 13px;

    font-weight: 900;

    line-height: 1;

    letter-spacing: .035em;



    white-space: nowrap;

    cursor: pointer;



    transition:

        background .15s ease,

        border-color .15s ease,

        color .15s ease;

}



@media (hover: hover) and (pointer: fine) {



    .race-page-next-jump-btn:hover {

        background: #a7ff1e;

        border-color: #a7ff1e;

        color: #071006;

    }

}



.race-page-next-jump-btn::after {

    content: "\2192";

    margin-left: 7px;

    font-weight: 900;

}



.race-page-next-jump-btn:focus-visible {

    outline: 2px solid #a7ff1e;

    outline-offset: 3px;

}



.race-page-next-jump-btn:disabled {

    opacity: .38;

    cursor: default;

}





/* Mobile */



@media (max-width: 600px) {



    .race-page-quick-nav {

        justify-content: space-between;

        gap: 10px;

        margin-bottom: 10px;

    }



    .race-page-next-jump-btn {

        min-height: 40px;

        padding: 0 12px;

        font-size: 12px;

    }

}








    .form-worksheet-launch {

        display: flex;

        justify-content: flex-end;

        align-items: center;

        gap: 10px;

        margin: 14px 0 18px;

    }



    .form-worksheet-button,

    .form-worksheet-back {

        appearance: none;

        border: 1px solid rgba(183, 255, 0, 0.55);

        border-radius: 10px;

        background: rgba(183, 255, 0, 0.08);

        color: #b7ff00;

        font: inherit;

        font-size: 12px;

        font-weight: 900;

        letter-spacing: 0.07em;

        padding: 10px 15px;

        cursor: pointer;

        transition:

            background 0.15s ease,

            border-color 0.15s ease,

            transform 0.15s ease;

    }



    .form-worksheet-button:hover,

    .form-worksheet-back:hover {

        background: rgba(183, 255, 0, 0.14);

        border-color: #b7ff00;

    }



    .form-worksheet-button:active,

    .form-worksheet-back:active {

        transform: translateY(1px);

    }



    .form-worksheet-shell {

        margin-top: 8px;

        border: 1px solid rgba(255, 255, 255, 0.10);

        border-radius: 16px;

        background: #0e1310;

        overflow: hidden;

    }



    .form-worksheet-header {

        display: flex;

        justify-content: space-between;

        align-items: center;

        gap: 16px;

        padding: 18px 20px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.09);

    }



    .form-worksheet-title {

        margin: 0;

        color: #f4f6f3;

        font-size: 18px;

        font-weight: 900;

        letter-spacing: -0.02em;

    }



    .form-worksheet-subtitle {

        margin-top: 4px;

        color: #8e9790;

        font-size: 12px;

    }



    .form-worksheet-scroll {

        width: 100%;

        overflow-x: auto;

        overscroll-behavior-x: contain;

        -webkit-overflow-scrolling: touch;

    }



    .form-worksheet-table {

        width: 100%;

        min-width: 1120px;

        border-collapse: separate;

        border-spacing: 0;

        font-size: 13px;

        font-variant-numeric: tabular-nums;

    }



    .form-worksheet-table th,

    .form-worksheet-table td {

        padding: 11px 10px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.07);

        text-align: center;

        white-space: nowrap;

    }



    .form-worksheet-table thead th {

        color: #909990;

        background: #0d120f;

        font-size: 11px;

        font-weight: 900;

        letter-spacing: 0.05em;

        text-transform: uppercase;

    }



    .form-worksheet-table thead tr:first-child th {

        color: #b7ff00;

        border-bottom:

            1px solid rgba(183, 255, 0, 0.18);

    }



    .form-worksheet-table tbody td {

        color: #d7ddd8;

        font-weight: 700;

    }



    .form-worksheet-table tbody tr:hover td {

        background: rgba(255, 255, 255, 0.025);

    }



    .form-worksheet-runner-no {

        width: 48px;

        color: #aab2ac !important;

        font-weight: 900 !important;

    }



    .form-worksheet-horse {

        min-width: 180px;

        text-align: left !important;

        color: #f4f6f3 !important;

        font-weight: 900 !important;

    }



    .form-worksheet-brain-rank {

        color: #b7ff00 !important;

        font-weight: 950 !important;

    }



    .form-worksheet-price {

        color: #f4f6f3 !important;

        font-weight: 900 !important;

    }



    .form-worksheet-muted {

        color: #626a64 !important;

    }



    .form-worksheet-loading,

    .form-worksheet-error,

    .form-worksheet-empty {

        padding: 36px 20px;

        color: #9aa39c;

        text-align: center;

        font-weight: 700;

    }



    .form-worksheet-error {

        color: #ff8c8c;

    }



    @media (max-width: 760px) {



        .form-worksheet-launch {

            justify-content: stretch;

            margin: 12px 0 16px;

        }



        .form-worksheet-button {

            width: 100%;

        }



        .form-worksheet-header {

            padding: 15px 14px;

        }



        .form-worksheet-title {

            font-size: 16px;

        }



        .form-worksheet-table {

            min-width: 1030px;

        }



        .form-worksheet-table th,

        .form-worksheet-table td {

            padding: 10px 8px;

        }



        .form-worksheet-table th:first-child,

        .form-worksheet-table td:first-child {

            position: sticky;

            left: 0;

            z-index: 4;

            background: #0e1310;

        }



        .form-worksheet-table th:nth-child(2),

        .form-worksheet-table td:nth-child(2) {

            position: sticky;

            left: 48px;

            z-index: 4;

            background: #0e1310;

            box-shadow:

                8px 0 12px rgba(0, 0, 0, 0.28);

        }



        .form-worksheet-table thead th:first-child,

        .form-worksheet-table thead th:nth-child(2) {

            background: #0d120f;

            z-index: 6;

        }

    }






/* ============================================================

   DESKTOP BRAIN MARKET FINAL COLUMN LAYOUT V3



   DESKTOP ONLY.



   Mobile Brain Market cards are intentionally untouched.



   Order:

   # | HORSE | TRAINER | JOCKEY | WGT | BAR |

   OPEN | NOW | BRAIN RANK / PRICE | EDGE

   ============================================================ */



@media (min-width: 901px) {



    #brainMarketPanel .market-wrap {

        width: 100%;

        max-width: 100%;

        overflow-x: hidden;

    }



    #brainMarketPanel .market-table {

        width: 100%;

        max-width: 100%;

        table-layout: fixed;

    }



    #brainMarketPanel .market-table th,

    #brainMarketPanel .market-table td {

        box-sizing: border-box;

        padding-left: 8px;

        padding-right: 8px;

        vertical-align: middle;

    }



    /* # */

    #brainMarketPanel .market-table th:nth-child(1),

    #brainMarketPanel .market-table td:nth-child(1) {

        width: 5%;

        white-space: nowrap;

    }



    /* HORSE */

    #brainMarketPanel .market-table th:nth-child(2),

    #brainMarketPanel .market-table td:nth-child(2) {

        width: 17%;

    }



    /* TRAINER */

    #brainMarketPanel .market-table th:nth-child(3),

    #brainMarketPanel .market-table td:nth-child(3) {

        width: 15%;

        white-space: normal;

        overflow-wrap: break-word;

        word-break: normal;

    }



    /* JOCKEY */

    #brainMarketPanel .market-table th:nth-child(4),

    #brainMarketPanel .market-table td:nth-child(4) {

        width: 14%;

        white-space: normal;

        overflow-wrap: break-word;

        word-break: normal;

    }



    /* WGT */

    #brainMarketPanel .market-table th:nth-child(5),

    #brainMarketPanel .market-table td:nth-child(5) {

        width: 7%;

        white-space: nowrap;

    }



    /* BAR */

    #brainMarketPanel .market-table th:nth-child(6),

    #brainMarketPanel .market-table td:nth-child(6) {

        width: 5%;

        white-space: nowrap;

        text-align: center;

    }



    /* OPEN */

    #brainMarketPanel .market-table th:nth-child(7),

    #brainMarketPanel .market-table td:nth-child(7) {

        width: 10%;

        white-space: nowrap;

    }



    /* NOW */

    #brainMarketPanel .market-table th:nth-child(8),

    #brainMarketPanel .market-table td:nth-child(8) {

        width: 8%;

        white-space: nowrap;

    }



    /* BRAIN RANK / PRICE */

    #brainMarketPanel .market-table th:nth-child(9),

    #brainMarketPanel .market-table td:nth-child(9) {

        width: 12%;

    }



    /* EDGE */

    #brainMarketPanel .market-table th:nth-child(10),

    #brainMarketPanel .market-table td:nth-child(10) {

        width: 7%;

        white-space: nowrap;

        text-align: right;

    }



    /*

       Prevent participant names from visually spilling into

       the neighbouring column.

    */

    #brainMarketPanel .trainer-link,

    #brainMarketPanel .trainer-jockey-link,

    #brainMarketPanel .participant-link {

        display: inline-block;

        max-width: 100%;

        white-space: normal;

        overflow-wrap: break-word;

        word-break: normal;

        line-height: 1.3;

    }

}








/* ============================================================

   DESKTOP BRAIN MARKET WIDTH BALANCE V4



   DESKTOP ONLY.



   #       5%

   Horse  18%

   Trainer 16%

   Jockey  15%

   Wgt     7%

   Bar     5%

   Open   10%

   Now     8%

   Brain  10%

   Edge    6%



   Total = 100%

   ============================================================ */



@media (min-width: 901px) {



    #brainMarketPanel .market-table {

        width: 100% !important;

        table-layout: fixed !important;

    }



    /* # */

    #brainMarketPanel .market-table th:nth-child(1),

    #brainMarketPanel .market-table td:nth-child(1) {

        width: 5% !important;

    }



    /* HORSE */

    #brainMarketPanel .market-table th:nth-child(2),

    #brainMarketPanel .market-table td:nth-child(2) {

        width: 18% !important;

    }



    /* TRAINER */

    #brainMarketPanel .market-table th:nth-child(3),

    #brainMarketPanel .market-table td:nth-child(3) {

        width: 16% !important;

    }



    /* JOCKEY */

    #brainMarketPanel .market-table th:nth-child(4),

    #brainMarketPanel .market-table td:nth-child(4) {

        width: 15% !important;

    }



    /* WGT */

    #brainMarketPanel .market-table th:nth-child(5),

    #brainMarketPanel .market-table td:nth-child(5) {

        width: 7% !important;

        white-space: nowrap !important;

    }



    /* BAR */

    #brainMarketPanel .market-table th:nth-child(6),

    #brainMarketPanel .market-table td:nth-child(6) {

        width: 5% !important;

        white-space: nowrap !important;

        text-align: center;

    }



    /* OPEN */

    #brainMarketPanel .market-table th:nth-child(7),

    #brainMarketPanel .market-table td:nth-child(7) {

        width: 10% !important;

        white-space: nowrap !important;

    }



    /* NOW */

    #brainMarketPanel .market-table th:nth-child(8),

    #brainMarketPanel .market-table td:nth-child(8) {

        width: 8% !important;

        white-space: nowrap !important;

    }



    /* BRAIN RANK / PRICE */

    #brainMarketPanel .market-table th:nth-child(9),

    #brainMarketPanel .market-table td:nth-child(9) {

        width: 10% !important;

    }



    /* EDGE */

    #brainMarketPanel .market-table th:nth-child(10),

    #brainMarketPanel .market-table td:nth-child(10) {

        width: 6% !important;

        white-space: nowrap !important;

        text-align: right;

    }



    /*

       Horse / Trainer / Jockey:

       wrap at spaces, but NEVER split normal words into fragments.

    */

    #brainMarketPanel .market-table td:nth-child(2),

    #brainMarketPanel .market-table td:nth-child(3),

    #brainMarketPanel .market-table td:nth-child(4),



    #brainMarketPanel .market-table td:nth-child(2) button,

    #brainMarketPanel .market-table td:nth-child(3) button,

    #brainMarketPanel .market-table td:nth-child(4) button {



        white-space: normal !important;



        word-break: normal !important;



        overflow-wrap: normal !important;



        hyphens: none !important;



        max-width: 100% !important;



        line-height: 1.3 !important;

    }



    /*

       Slightly reduce cell padding so useful width goes to names.

    */

    #brainMarketPanel .market-table th,

    #brainMarketPanel .market-table td {

        padding-left: 7px !important;

        padding-right: 7px !important;

    }

}








/* ==========================================================

   HOME DAY PASS V1B

   ========================================================== */



.home-day-pass-section {

    padding:

        26px 0

        8px;



    background:

        #071006;

}



.home-day-pass-card {

    position:

        relative;



    display:

        flex;



    align-items:

        center;



    justify-content:

        space-between;



    gap:

        42px;



    padding:

        26px 30px;



    border:

        1px solid

        rgba(174, 255, 36, .58);



    border-radius:

        18px;



    background:

        radial-gradient(

            circle at 88% 0%,

            rgba(174, 255, 36, .13),

            transparent 38%

        ),

        linear-gradient(

            135deg,

            rgba(174, 255, 36, .055),

            rgba(255, 255, 255, .018)

        );



    box-shadow:

        0 16px 46px

        rgba(0, 0, 0, .20);



    overflow:

        hidden;

}



.home-day-pass-card::after {

    content:

        "7D";



    position:

        absolute;



    right:

        280px;



    top:

        50%;



    transform:

        translateY(-50%);



    color:

        rgba(174, 255, 36, .035);



    font-size:

        108px;



    line-height:

        1;



    font-weight:

        950;



    letter-spacing:

        -.08em;



    pointer-events:

        none;

}



.home-day-pass-content {

    position:

        relative;



    z-index:

        1;



    flex:

        1 1 auto;



    min-width:

        0;

}



.home-day-pass-topline {

    display:

        flex;



    align-items:

        center;



    flex-wrap:

        wrap;



    gap:

        9px;



    margin-bottom:

        8px;

}



.home-day-pass-kicker {

    color:

        #aeff24;



    font-size:

        10px;



    line-height:

        1;



    font-weight:

        950;



    letter-spacing:

        .14em;

}



.home-day-pass-pill {

    padding:

        5px 9px;



    border:

        1px solid

        rgba(174, 255, 36, .28);



    border-radius:

        999px;



    background:

        rgba(174, 255, 36, .09);



    color:

        #aeff24;



    font-size:

        9px;



    line-height:

        1;



    font-weight:

        950;



    letter-spacing:

        .08em;

}



.home-day-pass-title {

    color:

        #f4f7f5;



    font-size:

        29px;



    line-height:

        1.08;



    font-weight:

        950;



    letter-spacing:

        -.035em;

}



.home-day-pass-title span {

    color:

        #aeff24;

}



.home-day-pass-copy {

    max-width:

        700px;



    margin-top:

        7px;



    color:

        rgba(244, 247, 245, .72);



    font-size:

        13px;



    line-height:

        1.5;

}



.home-day-pass-note {

    display:

        flex;



    flex-wrap:

        wrap;



    gap:

        7px;



    margin-top:

        11px;



    color:

        rgba(244, 247, 245, .48);



    font-size:

        10px;



    line-height:

        1.35;



    font-weight:

        800;

}



.home-day-pass-action {

    position:

        relative;



    z-index:

        1;



    flex:

        0 0

        265px;

}



.home-day-pass-price {

    display:

        flex;



    align-items:

        baseline;



    justify-content:

        center;



    gap:

        7px;



    margin-bottom:

        10px;

}



.home-day-pass-price strong {

    color:

        #f4f7f5;



    font-size:

        34px;



    line-height:

        1;



    font-weight:

        950;



    letter-spacing:

        -.04em;

}



.home-day-pass-price span {

    color:

        rgba(244, 247, 245, .52);



    font-size:

        9px;



    line-height:

        1;



    font-weight:

        950;



    letter-spacing:

        .08em;

}



.home-day-pass-button {

    width:

        100%;



    min-height:

        49px;



    font-size:

        12px;



    font-weight:

        950;

}



.home-day-pass-status {

    min-height:

        0;



    margin-top:

        7px;



    color:

        rgba(244, 247, 245, .62);



    font-size:

        10px;



    line-height:

        1.3;



    text-align:

        center;

}





@media (max-width: 620px) {



    .home-day-pass-section {

        padding:

            20px 0

            2px;

    }



    .home-day-pass-card {

        display:

            block;



        padding:

            20px;



        border-radius:

            17px;



        background:

            radial-gradient(

                circle at 100% 0%,

                rgba(174, 255, 36, .15),

                transparent 43%

            ),

            linear-gradient(

                145deg,

                rgba(174, 255, 36, .065),

                rgba(255, 255, 255, .018)

            );

    }



    .home-day-pass-card::after {

        display:

            none;

    }



    .home-day-pass-pill {

        display:

            none;

    }



    .home-day-pass-title {

        font-size:

            25px;

    }



    .home-day-pass-copy {

        margin-top:

            7px;



        font-size:

            12px;



        line-height:

            1.45;

    }



    .home-day-pass-note {

        margin-top:

            9px;



        font-size:

            9px;

    }



    .home-day-pass-action {

        display:

            grid;



        grid-template-columns:

            auto

            minmax(0, 1fr);



        align-items:

            center;



        gap:

            14px;



        width:

            100%;



        margin-top:

            18px;

    }



    .home-day-pass-price {

        display:

            flex;



        flex-direction:

            column;



        align-items:

            flex-start;



        justify-content:

            center;



        gap:

            3px;



        min-width:

            77px;



        margin:

            0;

    }



    .home-day-pass-price strong {

        font-size:

            29px;

    }



    .home-day-pass-price span {

        font-size:

            8px;

    }



    .home-day-pass-button {

        min-height:

            48px;



        padding-left:

            9px;



        padding-right:

            9px;



        font-size:

            11px;



        white-space:

            nowrap;

    }



    .home-day-pass-status {

        grid-column:

            1 / -1;



        margin-top:

            0;



        text-align:

            left;

    }

}








/* ==========================================================

   HOMEPAGE DENSITY V1B



   CSS ONLY.

   No racing logic.

   No Day Pass logic.

   No checkout changes.

   ========================================================== */





/* ----------------------------------------------------------

   DESKTOP

   ---------------------------------------------------------- */



.hero {

    padding-top: 40px !important;

    padding-bottom: 20px !important;

}



.hero .eyebrow {

    margin-bottom: 9px !important;

}



.hero h1 {

    font-size:

        clamp(

            2.75rem,

            5vw,

            4.65rem

        ) !important;



    line-height: .98 !important;

}



.hero-copy {

    margin-top: 14px !important;

    line-height: 1.48 !important;

}



.ask-hero {

    margin-top: 20px !important;

}





/*

 * Runtime row:

 *

 * [ input ] [ ASK ] [ TODAY'S BETS ]

 */



.daily-bets-ask-row {

    gap: 9px !important;

}



.daily-bets-ask-row > input,

.daily-bets-ask-row > textarea {

    min-height: 50px !important;

}



.daily-bets-ask-row > button {

    height: 50px !important;

    min-height: 50px !important;

}



#dailyBetsLaunch {

    height: 50px !important;

    min-width: 145px !important;

    padding-left: 16px !important;

    padding-right: 16px !important;

}





/*

 * Next Bet

 */



#homeNextBet {

    margin-top: 14px !important;

    margin-bottom: 18px !important;

}



.home-next-bet-card {

    padding:

        13px 17px !important;

}



.home-next-bet-top {

    margin-bottom: 7px !important;

}



.home-next-bet-view {

    margin-top: 7px !important;

}





/*

 * Day Pass

 */



.home-day-pass-section {

    padding-top: 12px !important;

    padding-bottom: 2px !important;

}



.home-day-pass-card {

    padding:

        18px 25px !important;

}



.home-day-pass-topline {

    margin-bottom: 6px !important;

}



.home-day-pass-title {

    font-size: 26px !important;

}



.home-day-pass-copy {

    margin-top: 4px !important;

    line-height: 1.4 !important;

}



.home-day-pass-note {

    margin-top: 6px !important;

}



.home-day-pass-price {

    margin-bottom: 7px !important;

}



.home-day-pass-button {

    min-height: 45px !important;

}





/*

 * Bring Today's Racing upward.

 */



#today.section {

    padding-top: 20px !important;

}





/* ----------------------------------------------------------

   TABLET

   ---------------------------------------------------------- */



@media (max-width: 850px) {



    .hero {

        padding-top: 30px !important;

        padding-bottom: 16px !important;

    }



}





/* ----------------------------------------------------------

   MOBILE

   ---------------------------------------------------------- */



@media (max-width: 620px) {



    /*

     * Hero

     */



    .hero {

        padding-top: 24px !important;

        padding-bottom: 12px !important;

    }



    .hero .eyebrow {

        margin-bottom: 8px !important;



        font-size: .69rem !important;



        letter-spacing: .14em !important;

    }



    .hero h1 {

        font-size:

            clamp(

                2.35rem,

                10.8vw,

                2.85rem

            ) !important;



        line-height: .96 !important;

    }



    .hero-copy {

        margin-top: 14px !important;



        font-size: .96rem !important;

        line-height: 1.43 !important;

    }





    /*

     * Ask area.

     *

     * Runtime JS adds daily-bets-ask-row.

     *

     * Mobile layout:

     *

     * [       Ask input       ]

     * [    ASK   ][TODAY BETS ]

     */



    .ask-hero {

        margin-top: 17px !important;

    }



    .daily-bets-ask-row {

        display: grid !important;



        grid-template-columns:

            minmax(0, 1fr)

            minmax(0, 1fr) !important;



        gap: 8px !important;



        width: 100% !important;

    }



    .daily-bets-ask-row > input,

    .daily-bets-ask-row > textarea {

        grid-column:

            1 / -1 !important;



        width: 100% !important;



        min-height: 48px !important;



        padding:

            11px 13px !important;

    }



    .daily-bets-ask-row > button {

        width: 100% !important;



        min-width: 0 !important;



        height: 44px !important;

        min-height: 44px !important;



        margin: 0 !important;



        padding:

            0 8px !important;



        font-size: .82rem !important;



        white-space: nowrap !important;

    }



    #dailyBetsLaunch {

        width: 100% !important;



        min-width: 0 !important;



        height: 44px !important;



        padding:

            0 8px !important;

    }





    /*

     * Next Bet

     */



    #homeNextBet {

        margin-top: 12px !important;

        margin-bottom: 14px !important;

    }



    .home-next-bet-card {

        padding:

            12px 13px !important;

    }



    .home-next-bet-top {

        margin-bottom: 5px !important;

    }



    .home-next-bet-main {

        gap:

            7px 10px !important;

    }



    .home-next-bet-horse {

        font-size: 17px !important;

    }



    .home-next-bet-view {

        margin-top: 5px !important;

    }





    /*

     * Day Pass

     */



    .home-day-pass-section {

        padding-top: 8px !important;

        padding-bottom: 0 !important;

    }



    .home-day-pass-card {

        padding:

            15px 16px !important;



        border-radius:

            15px !important;

    }



    .home-day-pass-topline {

        margin-bottom: 5px !important;

    }



    .home-day-pass-title {

        font-size: 22px !important;



        line-height: 1.04 !important;

    }



    .home-day-pass-copy {

        margin-top: 5px !important;



        font-size: 10.5px !important;

        line-height: 1.36 !important;

    }



    .home-day-pass-note {

        margin-top: 6px !important;



        gap: 4px !important;



        font-size: 7.8px !important;

    }



    .home-day-pass-action {

        gap: 9px !important;



        margin-top: 12px !important;

    }



    .home-day-pass-price {

        min-width: 69px !important;



        margin-bottom: 0 !important;

    }



    .home-day-pass-price strong {

        font-size: 25px !important;

    }



    .home-day-pass-price span {

        font-size: 7px !important;

    }



    .home-day-pass-button {

        min-height: 42px !important;



        font-size: 9.5px !important;

    }





    /*

     * Today's Racing

     */



    #today.section {

        padding-top: 20px !important;

    }



    #today .section-heading {

        margin-bottom: 10px !important;

    }



    #today .date-strip {

        margin-bottom: 12px !important;

    }



}








.hero-promise {

    display: block;

    color: #35e887;

    font-size: clamp(1.05rem, 1.8vw, 1.35rem);

    line-height: 1.25;

    font-weight: 900;

    letter-spacing: -0.01em;

}



.hero-support {

    display: block;

    margin-top: 7px;

}



@media (max-width: 620px) {



    .hero-promise {

        font-size: 1.05rem;

        line-height: 1.25;

    }



    .hero-support {

        margin-top: 6px;

    }

}








/* ==========================================================

   HOMEPAGE VALUE STRIP V1

   Desktop + tablet + mobile

   ========================================================== */



.rb-home-value-strip {

    padding: 2px 0 24px;

}



.rb-home-value-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;



    margin-bottom: 12px;

}



.rb-home-value-kicker {

    color: #abff1f;



    font-size: 11px;

    font-weight: 900;



    letter-spacing: 0.12em;

    line-height: 1.2;

}



.rb-home-value-subtitle {

    color: var(--muted);



    font-size: 11px;

    line-height: 1.35;



    text-align: right;

}



.rb-home-value-grid {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));



    gap: 8px;

}



.rb-home-value-card {

    position: relative;



    min-width: 0;

    min-height: 106px;



    padding: 13px 14px 14px;



    overflow: hidden;



    border:

        1px solid

        rgba(255, 255, 255, 0.09);



    border-radius: 10px;



    background:

        linear-gradient(

            145deg,

            rgba(18, 26, 21, 0.96),

            rgba(10, 16, 13, 0.96)

        );

}



.rb-home-value-card::before {

    content: "";



    position: absolute;



    left: 0;

    top: 0;

    bottom: 0;



    width: 2px;



    background:

        linear-gradient(

            180deg,

            #abff1f,

            rgba(0, 255, 157, 0.30)

        );

}



.rb-home-value-number {

    margin-bottom: 8px;



    color: rgba(171, 255, 31, 0.55);



    font-size: 9px;

    font-weight: 900;



    letter-spacing: 0.10em;

}



.rb-home-value-title {

    margin-bottom: 5px;



    color: #ffffff;



    font-size: 12px;

    font-weight: 900;



    line-height: 1.15;



    letter-spacing: 0.015em;

}



.rb-home-value-copy {

    max-width: 220px;



    color: var(--muted);



    font-size: 10px;

    line-height: 1.45;



    overflow-wrap: anywhere;

}





/* ----------------------------------------------------------

   TABLET

   ---------------------------------------------------------- */



@media (max-width: 850px) {



    .rb-home-value-strip {

        padding:

            2px 0 20px;

    }



    .rb-home-value-heading {

        align-items: flex-start;

        flex-direction: column;



        gap: 4px;



        margin-bottom: 10px;

    }



    .rb-home-value-subtitle {

        text-align: left;

    }



    .rb-home-value-grid {

        grid-template-columns:

            repeat(2, minmax(0, 1fr));



        gap: 8px;

    }



    .rb-home-value-card {

        min-height: 100px;



        padding:

            12px 12px 13px;

    }



}





/* ----------------------------------------------------------

   PHONE

   Keep 2 x 2 where there is enough room.

   ---------------------------------------------------------- */



@media (max-width: 600px) {



    .rb-home-value-kicker {

        font-size: 10px;

    }



    .rb-home-value-subtitle {

        font-size: 10px;

    }



    .rb-home-value-card {

        min-height: 104px;

    }



    .rb-home-value-title {

        font-size: 11px;

    }



    .rb-home-value-copy {

        font-size: 9.5px;



        line-height: 1.4;

    }



}





/* ----------------------------------------------------------

   VERY SMALL PHONE

   ---------------------------------------------------------- */



@media (max-width: 380px) {



    .rb-home-value-grid {

        grid-template-columns: 1fr;

    }



    .rb-home-value-card {

        min-height: 0;

    }



}








/* ==========================================================

   HOMEPAGE VALUE STRIP - MOBILE COMPACT V2



   MOBILE ONLY.

   Desktop is intentionally untouched.

   ========================================================== */



@media (max-width: 600px) {



    /*

     * Pull Today's Racing a little closer to the feature strip.

     */

    .rb-home-value-strip {

        padding-bottom: 12px;

    }





    /*

     * Keep the existing 2 x 2 layout.

     */

    .rb-home-value-grid {

        gap: 7px;

    }





    /*

     * Shorter, tighter cards.

     */

    .rb-home-value-card {

        min-height: 88px;



        padding:

            10px 10px 11px;



        border-radius: 9px;

    }





    /*

     * Tighten the number above each heading.

     */

    .rb-home-value-number {

        margin-bottom: 5px;



        font-size: 8px;

    }





    /*

     * Preserve strong readable feature headings.

     */

    .rb-home-value-title {

        margin-bottom: 4px;



        font-size: 10.5px;

        line-height: 1.15;

    }





    /*

     * Supporting copy remains readable but compact.

     */

    .rb-home-value-copy {

        font-size: 9px;

        line-height: 1.32;

    }



}








/* ==========================================================

   GLOBAL ASK THE BRAIN

   MOBILE COMPACT LAUNCHER V1



   Mobile only.

   Desktop intentionally untouched.

   ========================================================== */



@media (max-width: 600px) {



    #globalBrainLauncher {



        width: 56px !important;

        height: 56px !important;



        min-width: 56px !important;

        min-height: 56px !important;



        max-width: 56px !important;



        padding: 0 !important;



        right: 16px !important;

        bottom: 18px !important;



        display: flex !important;

        align-items: center !important;

        justify-content: center !important;



        gap: 0 !important;



        border-radius: 50% !important;



        box-sizing: border-box !important;

    }





    /*

     * Keep the brain icon.

     */

    #globalBrainLauncher > span:first-child {



        display: block !important;



        margin: 0 !important;

        padding: 0 !important;



        font-size: 25px !important;

        line-height: 1 !important;

    }





    /*

     * Hide only the ASK THE BRAIN text.

     */

    #globalBrainLauncher > span:last-child {



        display: none !important;

    }



}






/* ============================================================

   BRAIN_MARKET_V5_RANK_PRICE_SPLIT



   Desktop only.

   Mobile cards intentionally unchanged.



   # | HORSE | TRAINER | JOCKEY | WGT | BAR |

   OPEN | NOW | BRAIN RANK | BRAIN PRICE | EDGE

   ============================================================ */



@media (min-width: 901px) {



    #brainMarketPanel .market-wrap {

        width: 100% !important;

        max-width: 100% !important;

        overflow-x: hidden !important;

    }



    #brainMarketPanel .market-table {

        width: 100% !important;

        max-width: 100% !important;

        table-layout: fixed !important;

    }



    #brainMarketPanel .market-table th,

    #brainMarketPanel .market-table td {

        box-sizing: border-box !important;

        padding-left: 5px !important;

        padding-right: 5px !important;

        vertical-align: middle !important;

    }



    /* # */

    #brainMarketPanel .market-table th:nth-child(1),

    #brainMarketPanel .market-table td:nth-child(1) {

        width: 4% !important;

    }



    /* HORSE */

    #brainMarketPanel .market-table th:nth-child(2),

    #brainMarketPanel .market-table td:nth-child(2) {

        width: 16% !important;

    }



    /* TRAINER */

    #brainMarketPanel .market-table th:nth-child(3),

    #brainMarketPanel .market-table td:nth-child(3) {

        width: 12% !important;

    }



    /* JOCKEY */

    #brainMarketPanel .market-table th:nth-child(4),

    #brainMarketPanel .market-table td:nth-child(4) {

        width: 11% !important;

    }



    /* WGT */

    #brainMarketPanel .market-table th:nth-child(5),

    #brainMarketPanel .market-table td:nth-child(5) {

        width: 6% !important;

        white-space: nowrap !important;

    }



    /* BAR */

    #brainMarketPanel .market-table th:nth-child(6),

    #brainMarketPanel .market-table td:nth-child(6) {

        width: 5% !important;

        text-align: center !important;

        white-space: nowrap !important;

    }



    /* OPEN */

    #brainMarketPanel .market-table th:nth-child(7),

    #brainMarketPanel .market-table td:nth-child(7) {

        width: 9% !important;

        white-space: nowrap !important;

    }



    /* NOW */

    #brainMarketPanel .market-table th:nth-child(8),

    #brainMarketPanel .market-table td:nth-child(8) {

        width: 8% !important;

        white-space: nowrap !important;

    }



    /* BRAIN RANK */

    #brainMarketPanel .market-table th:nth-child(9),

    #brainMarketPanel .market-table td:nth-child(9) {

        width: 8% !important;

        text-align: center !important;

        white-space: nowrap !important;

    }



    /* BRAIN PRICE */

    #brainMarketPanel .market-table th:nth-child(10),

    #brainMarketPanel .market-table td:nth-child(10) {

        width: 11% !important;

        text-align: center !important;

        white-space: nowrap !important;

    }



    /* EDGE */

    #brainMarketPanel .market-table th:nth-child(11),

    #brainMarketPanel .market-table td:nth-child(11) {

        width: 10% !important;

        text-align: right !important;

        white-space: nowrap !important;

    }



    #brainMarketPanel .brain-price-value {

        display: inline-block;

        color: rgba(188, 255, 67, .84) !important;

        font-size: .96rem !important;

        font-weight: 900 !important;

        line-height: 1.15 !important;

        letter-spacing: -.01em !important;

        font-variant-numeric: tabular-nums;

        white-space: nowrap !important;

    }



    #brainMarketPanel .brain-rank-cell {

        text-align: center !important;

    }



    #brainMarketPanel .brain-rank-cell .brain-rank-badge {

        margin: 0 !important;

    }



    #brainMarketPanel .brain-rank-heading,

    #brainMarketPanel .brain-price-heading {

        text-align: center !important;

    }



    #brainMarketPanel .market-edge-value {

        font-size: .86rem !important;

        white-space: nowrap !important;

    }



    #brainMarketPanel .market-table th {

        font-size: .66rem !important;

        line-height: 1.15 !important;

    }



    #brainMarketPanel .market-table td {

        font-size: .84rem !important;

    }



    #brainMarketPanel .market-table td:nth-child(2),

    #brainMarketPanel .market-table td:nth-child(3),

    #brainMarketPanel .market-table td:nth-child(4),

    #brainMarketPanel .market-table td:nth-child(2) button,

    #brainMarketPanel .market-table td:nth-child(3) button,

    #brainMarketPanel .market-table td:nth-child(4) button {

        white-space: normal !important;

        word-break: normal !important;

        overflow-wrap: normal !important;

    }

}



@media (min-width: 901px) and (max-width: 1250px) {



    #brainMarketPanel .market-table th,

    #brainMarketPanel .market-table td {

        padding-left: 3px !important;

        padding-right: 3px !important;

    }



    #brainMarketPanel .market-table th {

        font-size: .61rem !important;

    }



    #brainMarketPanel .market-table td {

        font-size: .79rem !important;

    }



    #brainMarketPanel .brain-price-value {

        font-size: .90rem !important;

    }



    #brainMarketPanel .market-edge-value {

        font-size: .79rem !important;

    }

}






/* ============================================================

   BRAIN_MARKET_V6_FINAL_ALIGNMENT



   DESKTOP ONLY



   Final alignment pass after V5 rank/price split.



   Changes:

   - WGT centred to match BAR

   - BAR remains centred

   - Brain Rank moved to upper/right position

   - Brain Price remains centred

   - Edge remains right aligned

   - No table structure changes

   - No sorting changes

   - Mobile cards untouched

   ============================================================ */



@media (min-width: 901px) {



    /* --------------------------------------------------------

       WGT

       Match BAR alignment.

       -------------------------------------------------------- */



    #brainMarketPanel .market-table th:nth-child(5),

    #brainMarketPanel .market-table td:nth-child(5) {

        text-align: center !important;

        vertical-align: middle !important;

        white-space: nowrap !important;

    }





    /* --------------------------------------------------------

       BAR

       Explicitly keep centred.

       -------------------------------------------------------- */



    #brainMarketPanel .market-table th:nth-child(6),

    #brainMarketPanel .market-table td:nth-child(6) {

        text-align: center !important;

        vertical-align: middle !important;

        white-space: nowrap !important;

    }





    /* --------------------------------------------------------

       BRAIN RANK HEADER

       Right align within its dedicated column.

       -------------------------------------------------------- */



    #brainMarketPanel .market-table th:nth-child(9),

    #brainMarketPanel .brain-rank-heading {

        text-align: right !important;

        vertical-align: middle !important;

        padding-left: 2px !important;

        padding-right: 6px !important;

    }





    /* --------------------------------------------------------

       BRAIN RANK BODY

       Push rank toward upper/right of its own cell.



       We keep it inside column 9. Nothing overlaps Brain Price.

       -------------------------------------------------------- */



    #brainMarketPanel .market-table td:nth-child(9),

    #brainMarketPanel .brain-rank-cell {

        text-align: right !important;

        vertical-align: top !important;

        padding-left: 2px !important;

        padding-right: 7px !important;

        padding-top: 6px !important;

        white-space: nowrap !important;

    }





    #brainMarketPanel .brain-rank-cell .brain-rank-badge {

        display: inline-flex !important;

        align-items: center !important;

        justify-content: center !important;



        margin: 0 !important;



        position: relative !important;

        top: 0 !important;

        right: 0 !important;



        white-space: nowrap !important;

    }





    /* --------------------------------------------------------

       BRAIN PRICE

       Protect dedicated column and keep centred.

       -------------------------------------------------------- */



    #brainMarketPanel .market-table th:nth-child(10),

    #brainMarketPanel .market-table td:nth-child(10),

    #brainMarketPanel .brain-price-heading,

    #brainMarketPanel .brain-price-cell {

        text-align: center !important;

        vertical-align: middle !important;

        white-space: nowrap !important;

    }





    #brainMarketPanel .brain-price-value {

        display: inline-block !important;

        margin: 0 !important;

        white-space: nowrap !important;

    }





    /* --------------------------------------------------------

       EDGE

       Protect the existing right alignment.

       -------------------------------------------------------- */



    #brainMarketPanel .market-table th:nth-child(11),

    #brainMarketPanel .market-table td:nth-child(11) {

        text-align: right !important;

        vertical-align: middle !important;

        white-space: nowrap !important;

    }





    #brainMarketPanel .market-edge-value {

        white-space: nowrap !important;

    }

}








/* ============================================================

   THE RACING BRAIN

   BRAIN MARKET MOBILE V9



   CORRECT STRUCTURE:



   TD 1  = TAB #

   TD 2  = HORSE

   TD 3  = TRAINER

   TD 4  = JOCKEY

   TD 5  = WGT

   TD 6  = BAR

   TD 7  = OPEN

   TD 8  = NOW

   TD 9  = BRAIN RANK

   TD 10 = BRAIN PRICE

   TD 11 = EDGE



   IMPORTANT:

   TD11 itself is the grid item.

   .market-edge-value is only a child of TD11.

   ============================================================ */





@media (max-width: 900px) {





    /* ========================================================

       TABLE -> CARDS

       ======================================================== */



    #brainMarketPanel .market-wrap {

        overflow: visible !important;

    }



    #brainMarketPanel .market-table,

    #brainMarketPanel .market-table tbody {

        display: block !important;

        width: 100% !important;

    }



    #brainMarketPanel .market-table thead {

        display: none !important;

    }



    #brainMarketPanel .market-table tbody tr {

        display: grid !important;



        grid-template-columns:

            42px

            minmax(0, 1fr)

            82px

            98px !important;



        grid-template-rows:

            auto

            auto

            auto

            auto

            auto

            auto !important;



        column-gap: 10px !important;

        row-gap: 0 !important;



        width: 100% !important;



        margin: 0 0 12px 0 !important;

        padding: 16px 14px !important;



        box-sizing: border-box !important;



        border:

            1px solid rgba(255,255,255,.11) !important;



        border-radius: 16px !important;



        background:

            rgba(4,10,7,.72) !important;

    }





    #brainMarketPanel .market-table tbody td {

        display: block !important;



        width: auto !important;

        min-width: 0 !important;

        max-width: none !important;



        padding: 0 !important;



        border: 0 !important;



        box-sizing: border-box !important;



        position: static !important;

    }





    /* ========================================================

       TAB NUMBER

       ======================================================== */



    #brainMarketPanel .market-table tbody td:nth-child(1) {

        grid-column: 1 !important;

        grid-row: 1 !important;



        align-self: start !important;



        padding-top: 2px !important;



        color: rgba(255,255,255,.72) !important;



        font-size: .94rem !important;

        font-weight: 900 !important;



        text-align: left !important;

    }





    /* ========================================================

       HORSE

       ======================================================== */



    #brainMarketPanel .market-table tbody td:nth-child(2) {

        grid-column: 2 / 4 !important;

        grid-row: 1 !important;



        min-width: 0 !important;



        text-align: left !important;

    }



    #brainMarketPanel .market-table tbody td:nth-child(2) button,

    #brainMarketPanel .market-table .horse-link {

        font-size: 1rem !important;

        font-weight: 900 !important;



        line-height: 1.15 !important;



        text-align: left !important;



        white-space: normal !important;

    }





    /* ========================================================

       BRAIN RANK - TD9

       ======================================================== */



    #brainMarketPanel .market-table tbody td:nth-child(9),

    #brainMarketPanel .brain-rank-cell {

        grid-column: 4 !important;

        grid-row: 1 !important;



        justify-self: end !important;

        align-self: start !important;



        width: 98px !important;



        text-align: right !important;

    }



    #brainMarketPanel .market-table tbody td:nth-child(9)::before,

    #brainMarketPanel .brain-rank-cell::before {

        content: "RANK" !important;



        display: block !important;



        margin: 0 0 5px 0 !important;



        color: rgba(255,255,255,.42) !important;



        font-size: .51rem !important;

        font-weight: 900 !important;



        letter-spacing: .055em !important;

        line-height: 1 !important;



        text-align: right !important;



        white-space: nowrap !important;

    }



    #brainMarketPanel .brain-rank-cell .brain-rank-badge {

        display: inline-grid !important;



        place-items: center !important;



        min-width: 29px !important;

        height: 23px !important;



        padding: 0 6px !important;

        margin: 0 !important;



        position: static !important;



        font-size: .63rem !important;

        line-height: 1 !important;



        white-space: nowrap !important;

    }





    /* ========================================================

       TRAINER

       ======================================================== */



    #brainMarketPanel .market-table tbody td:nth-child(3) {

        grid-column: 2 / 5 !important;

        grid-row: 2 !important;



        margin-top: 6px !important;



        color: rgba(255,255,255,.68) !important;



        font-size: .82rem !important;

        font-weight: 700 !important;



        line-height: 1.2 !important;



        text-align: left !important;

    }





    /* ========================================================

       JOCKEY

       ======================================================== */



    #brainMarketPanel .market-table tbody td:nth-child(4) {

        grid-column: 2 !important;

        grid-row: 3 !important;



        margin-top: 18px !important;



        text-align: left !important;

    }



    #brainMarketPanel .market-table tbody td:nth-child(4)::before {

        content: "JOCKEY" !important;



        display: block !important;



        margin-bottom: 5px !important;



        color: rgba(255,255,255,.40) !important;



        font-size: .50rem !important;

        font-weight: 900 !important;



        letter-spacing: .055em !important;

    }





    /* ========================================================

       WGT - TD5

       ======================================================== */



    #brainMarketPanel .market-table tbody td:nth-child(5) {

        grid-column: 3 !important;

        grid-row: 3 !important;



        margin-top: 18px !important;



        text-align: center !important;

    }



    #brainMarketPanel .market-table tbody td:nth-child(5)::before {

        content: "WGT" !important;



        display: block !important;



        margin-bottom: 5px !important;



        color: rgba(255,255,255,.40) !important;



        font-size: .50rem !important;

        font-weight: 900 !important;



        letter-spacing: .055em !important;



        text-align: center !important;

    }





    /* ========================================================

       BAR - TD6

       ======================================================== */



    #brainMarketPanel .market-table tbody td:nth-child(6) {

        grid-column: 4 !important;

        grid-row: 3 !important;



        margin-top: 18px !important;



        text-align: center !important;

    }



    #brainMarketPanel .market-table tbody td:nth-child(6)::before {

        content: "BAR" !important;



        display: block !important;



        margin-bottom: 5px !important;



        color: rgba(255,255,255,.40) !important;



        font-size: .50rem !important;

        font-weight: 900 !important;



        letter-spacing: .055em !important;



        text-align: center !important;

    }





    /* ========================================================

       PRICE ROW DIVIDER



       IMPORTANT:

       TD10 = Brain Price.

       TD11 = Edge.

       ======================================================== */



    #brainMarketPanel .market-table tbody td:nth-child(7),

    #brainMarketPanel .market-table tbody td:nth-child(8),

    #brainMarketPanel .market-table tbody td:nth-child(10) {

        margin-top: 18px !important;



        padding-top: 12px !important;



        border-top:

            1px solid rgba(255,255,255,.075) !important;



        white-space: nowrap !important;

    }





    /* ========================================================

       OPEN - TD7

       ======================================================== */



    #brainMarketPanel .market-table tbody td:nth-child(7) {

        grid-column: 1 / 3 !important;

        grid-row: 5 !important;



        text-align: left !important;

    }



    #brainMarketPanel .market-table tbody td:nth-child(7)::before {

        content: "OPEN" !important;



        display: block !important;



        margin-bottom: 4px !important;



        color: rgba(255,255,255,.42) !important;



        font-size: .52rem !important;

        font-weight: 900 !important;



        letter-spacing: .055em !important;



        text-align: left !important;

    }





    /* ========================================================

       NOW - TD8

       ======================================================== */



    #brainMarketPanel .market-table tbody td:nth-child(8) {

        grid-column: 3 !important;

        grid-row: 5 !important;



        text-align: center !important;

    }



    #brainMarketPanel .market-table tbody td:nth-child(8)::before {

        content: "NOW" !important;



        display: block !important;



        margin-bottom: 4px !important;



        color: rgba(255,255,255,.42) !important;



        font-size: .52rem !important;

        font-weight: 900 !important;



        letter-spacing: .055em !important;



        text-align: center !important;

    }





    /* ========================================================

       BRAIN PRICE - TD10



       THIS OVERRIDES THE OLD RULE WHICH CALLED TD10 "EDGE".

       ======================================================== */



    #brainMarketPanel .market-table tbody td:nth-child(10),

    #brainMarketPanel .brain-price-cell {

        grid-column: 4 !important;

        grid-row: 5 !important;



        justify-self: stretch !important;



        width: 98px !important;



        margin-top: 18px !important;



        padding-top: 12px !important;



        border-top:

            1px solid rgba(255,255,255,.075) !important;



        text-align: right !important;



        color: #baff32 !important;



        white-space: nowrap !important;

    }





    /*

       CRITICAL FIX.



       Old CSS says:

           td:nth-child(10)::before { content: "EDGE"; }



       TD10 is now Brain Price, so explicitly overwrite it.

    */



    #brainMarketPanel .market-table tbody td:nth-child(10)::before,

    #brainMarketPanel .brain-price-cell::before {

        content: "BRAIN PRICE" !important;



        display: block !important;



        margin: 0 0 5px 0 !important;



        color: rgba(255,255,255,.52) !important;



        font-size: .48rem !important;

        font-weight: 950 !important;



        letter-spacing: .025em !important;

        line-height: 1 !important;



        text-align: right !important;



        white-space: nowrap !important;

    }





    #brainMarketPanel .brain-price-value {

        display: inline-block !important;



        margin: 0 !important;



        color: #baff32 !important;



        font-size: .94rem !important;

        font-weight: 950 !important;



        line-height: 1.05 !important;



        white-space: nowrap !important;

    }





    #brainMarketPanel .market-table tbody td:nth-child(10)::after,

    #brainMarketPanel .brain-price-cell::after {

        content: none !important;

        display: none !important;

    }





    /* ========================================================

       EDGE - TD11



       CRITICAL V9 FIX:



       POSITION TD11 ITSELF.



       V8 incorrectly positioned .market-edge-value, which is

       merely a DIV inside TD11 and therefore is NOT a grid item.

       ======================================================== */



    #brainMarketPanel .market-table tbody td:nth-child(11) {

        grid-column: 4 !important;

        grid-row: 6 !important;



        justify-self: end !important;

        align-self: start !important;



        width: 98px !important;



        margin-top: 7px !important;



        padding: 0 !important;



        text-align: right !important;



        white-space: nowrap !important;

    }





    /*

       Do not generate another heading above Edge.

       Edge is shown as:

           -7.9% EDGE

    */



    #brainMarketPanel .market-table tbody td:nth-child(11)::before,

    #brainMarketPanel .market-table tbody td:nth-child(11)::after {

        content: none !important;

        display: none !important;

    }





    #brainMarketPanel .market-table tbody td:nth-child(11)

    .market-edge-value {



        display: block !important;



        position: static !important;



        width: auto !important;



        margin: 0 !important;

        padding: 0 !important;



        font-size: .82rem !important;

        font-weight: 950 !important;



        line-height: 1 !important;



        text-align: right !important;



        white-space: nowrap !important;

    }





    #brainMarketPanel .market-table tbody td:nth-child(11)

    .market-edge-value::before {



        content: none !important;

        display: none !important;

    }





    #brainMarketPanel .market-table tbody td:nth-child(11)

    .market-edge-value::after {



        content: " EDGE" !important;



        color: rgba(255,255,255,.42) !important;



        font-size: .50rem !important;

        font-weight: 900 !important;



        letter-spacing: .055em !important;

    }



}





/* ============================================================

   VERY SMALL PHONES

   ============================================================ */



@media (max-width: 390px) {



    #brainMarketPanel .market-table tbody tr {

        grid-template-columns:

            30px

            minmax(0, 1fr)

            70px

            88px !important;



        column-gap: 6px !important;



        padding: 13px 9px !important;

    }





    #brainMarketPanel .brain-rank-cell,

    #brainMarketPanel .brain-price-cell,

    #brainMarketPanel .market-table tbody td:nth-child(11) {

        width: 88px !important;

    }





    #brainMarketPanel .brain-price-value {

        font-size: .88rem !important;

    }





    #brainMarketPanel .brain-price-cell::before {

        font-size: .45rem !important;

    }





    #brainMarketPanel .market-table tbody td:nth-child(11)

    .market-edge-value {

        font-size: .78rem !important;

    }



}








/* ==========================================================

   BRAIN MARKET MOBILE V10

   Final alignment + Brain Price heading fix

   ========================================================== */



@media (max-width: 760px) {



    /* ------------------------------------------------------

       CARD

       ------------------------------------------------------ */



    #raceTable tbody tr {

        position: relative !important;

    }





    /* ------------------------------------------------------

       HORSE / TRAINER AREA



       Reserve the right side for Brain Rank so a long horse

       name can never run underneath the rank box.

       ------------------------------------------------------ */



    #raceTable tbody td:nth-child(2) {

        position: relative !important;

        padding-right: 118px !important;

        min-width: 0 !important;

    }



    #raceTable tbody td:nth-child(2) .horse-name,

    #raceTable tbody td:nth-child(2) a,

    #raceTable tbody td:nth-child(2) strong {

        max-width: 100% !important;

        overflow-wrap: anywhere !important;

        word-break: normal !important;

    }





    /* ------------------------------------------------------

       BRAIN RANK



       Lock rank to the upper-right of the card.

       ------------------------------------------------------ */



    #raceTable tbody td.brain-rank-cell,

    #raceTable tbody td:nth-child(9) {

        position: absolute !important;



        top: 30px !important;

        right: 24px !important;

        left: auto !important;



        width: 72px !important;

        min-width: 72px !important;

        max-width: 72px !important;



        margin: 0 !important;

        padding: 0 !important;



        display: flex !important;

        flex-direction: column !important;

        align-items: flex-start !important;



        text-align: left !important;

        z-index: 5 !important;

    }



    #raceTable tbody td.brain-rank-cell::before,

    #raceTable tbody td:nth-child(9)::before {

        content: "RANK" !important;



        display: block !important;

        position: static !important;



        margin: 0 0 6px 0 !important;

        padding: 0 !important;



        font-size: 11px !important;

        line-height: 1 !important;

        letter-spacing: 1.5px !important;

        font-weight: 800 !important;

    }





    /* ------------------------------------------------------

       JOCKEY / WEIGHT / BARRIER



       Restore these as three clean columns.

       ------------------------------------------------------ */



    #raceTable tbody td:nth-child(4),

    #raceTable tbody td:nth-child(5),

    #raceTable tbody td:nth-child(6) {

        position: static !important;

        float: none !important;

        transform: none !important;

        margin: 0 !important;

    }



    #raceTable tbody td:nth-child(4) {

        width: 38% !important;

    }



    #raceTable tbody td:nth-child(5) {

        width: 28% !important;

    }



    #raceTable tbody td:nth-child(6) {

        width: 24% !important;

    }





    /* ------------------------------------------------------

       MARKET ROW



       OPEN | NOW | BRAIN PRICE

       ------------------------------------------------------ */



    #raceTable tbody td:nth-child(7),

    #raceTable tbody td:nth-child(8),

    #raceTable tbody td.brain-price-cell,

    #raceTable tbody td:nth-child(10) {

        position: static !important;

        float: none !important;

        transform: none !important;



        margin: 0 !important;

        padding-top: 0 !important;



        text-align: left !important;

        vertical-align: top !important;

    }



    #raceTable tbody td:nth-child(7) {

        width: 28% !important;

    }



    #raceTable tbody td:nth-child(8) {

        width: 28% !important;

    }



    #raceTable tbody td.brain-price-cell,

    #raceTable tbody td:nth-child(10) {

        width: 34% !important;

    }





    /* ------------------------------------------------------

       KILL ALL LEGACY GENERATED LABELS ON PRICE CELL



       V10 deliberately owns this heading.

       ------------------------------------------------------ */



    #raceTable tbody td.brain-price-cell::before,

    #raceTable tbody td:nth-child(10)::before {

        content: "BRAIN PRICE" !important;



        display: block !important;

        position: static !important;



        width: auto !important;

        height: auto !important;



        top: auto !important;

        right: auto !important;

        bottom: auto !important;

        left: auto !important;



        margin: 0 0 7px 0 !important;

        padding: 0 !important;



        font-size: 11px !important;

        line-height: 1 !important;

        letter-spacing: 1.4px !important;

        font-weight: 800 !important;



        white-space: nowrap !important;

        transform: none !important;

    }





    /* Brain Price number */



    #raceTable tbody td.brain-price-cell .brain-price-value,

    #raceTable tbody td:nth-child(10) .brain-price-value {

        display: block !important;

        position: static !important;



        margin: 0 !important;

        padding: 0 !important;



        line-height: 1.1 !important;

        white-space: nowrap !important;

    }





    /* ------------------------------------------------------

       EDGE %



       This is a separate cell/value. It must NOT create the

       heading over Brain Price.

       ------------------------------------------------------ */



    #raceTable tbody td:nth-child(11) {

        position: absolute !important;



        right: 22px !important;

        bottom: 22px !important;

        left: auto !important;

        top: auto !important;



        width: auto !important;

        min-width: 0 !important;



        margin: 0 !important;

        padding: 0 !important;



        text-align: right !important;

        z-index: 4 !important;

    }



    #raceTable tbody td:nth-child(11)::before {

        content: none !important;

        display: none !important;

    }



    #raceTable tbody td:nth-child(11) .market-edge-value {

        position: static !important;

        display: inline !important;



        margin: 0 !important;

        padding: 0 !important;



        white-space: nowrap !important;

    }





    /* ------------------------------------------------------

       Prevent old V8/V9 positioning from leaking through

       ------------------------------------------------------ */



    #raceTable tbody .brain-rank-cell,

    #raceTable tbody .brain-price-cell,

    #raceTable tbody .brain-price-value,

    #raceTable tbody .market-edge-value {

        transform: none !important;

    }

}








@media (max-width: 900px) {



    /*

       The JavaScript-generated mobile strip is now authoritative.



       OPEN | NOW | BRAIN PRICE

                    EDGE underneath

    */



    .mobile-market-strip-v4 {

        position: relative !important;



        display: grid !important;

        grid-template-columns:

            minmax(0, 1fr)

            minmax(0, 1fr)

            minmax(0, 1fr) !important;



        column-gap: 16px !important;



        width: 100% !important;



        padding-bottom: 42px !important;

        box-sizing: border-box !important;

    }





    .mobile-market-strip-v4

    .mobile-market-item {

        min-width: 0 !important;

    }





    .mobile-market-strip-v4

    .mobile-market-label {

        display: block !important;



        margin: 0 0 8px 0 !important;



        font-size: 11px !important;

        line-height: 1 !important;

        letter-spacing: 1.4px !important;

        font-weight: 800 !important;



        white-space: nowrap !important;

    }





    .mobile-market-strip-v4

    .mobile-market-value {

        display: block !important;



        margin: 0 !important;



        font-size: 20px !important;

        line-height: 1.05 !important;

        font-weight: 800 !important;



        white-space: nowrap !important;

    }





    /*

       Brain Price:

       label + number both Racing Brain green.

    */



    .mobile-market-strip-v4

    .mobile-market-item:nth-child(3)

    .mobile-market-label,



    .mobile-market-strip-v4

    .mobile-market-brain-price {

        color: #baff32 !important;

    }





    /*

       Edge sits underneath the Brain Price column.

    */



    .mobile-market-strip-v4

    .mobile-market-edge-line {

        position: absolute !important;



        right: 0 !important;

        bottom: 0 !important;



        margin: 0 !important;

        padding: 0 !important;



        text-align: right !important;



        font-size: 18px !important;

        line-height: 1 !important;

        font-weight: 800 !important;



        white-space: nowrap !important;

    }





    /*

       The source TDs have been cloned into the mobile strip.

    */



    #raceTable tbody

    td[data-mobile-market-cell="1"] {

        display: none !important;

    }

}








/* ==========================================================

   BRAIN MARKET MOBILE V11

   FINAL VISUAL ALIGNMENT



   Purpose:

   - Jockey remains left

   - WGT and BAR become clean aligned columns

   - OPEN / NOW / BRAIN PRICE become a true 3-column row

   - Brain Price is right aligned

   - EDGE sits directly underneath Brain Price

   - Existing source cells / sorting / desktop untouched

   ========================================================== */



@media (max-width: 900px) {





    /* ======================================================

       JOCKEY / WGT / BAR

       ====================================================== */



    #raceTable tbody td:nth-child(4),

    #raceTable tbody td:nth-child(5),

    #raceTable tbody td:nth-child(6) {

        box-sizing: border-box !important;

        transform: none !important;

        float: none !important;

    }





    /* JOCKEY */



    #raceTable tbody td:nth-child(4) {

        width: 58% !important;



        padding-left: 0 !important;

        padding-right: 10px !important;



        text-align: left !important;

    }



    #raceTable tbody td:nth-child(4)::before {

        text-align: left !important;

    }





    /* WGT */



    #raceTable tbody td:nth-child(5) {

        width: 22% !important;



        padding-left: 0 !important;

        padding-right: 0 !important;



        text-align: center !important;

    }



    #raceTable tbody td:nth-child(5)::before {

        text-align: center !important;

    }





    /* BAR */



    #raceTable tbody td:nth-child(6) {

        width: 20% !important;



        padding-left: 0 !important;

        padding-right: 0 !important;



        text-align: center !important;

    }



    #raceTable tbody td:nth-child(6)::before {

        text-align: center !important;

    }







    /* ======================================================

       MARKET STRIP



       OPEN            NOW          BRAIN PRICE

       $8.00          $7.50             $8.09

                                      -7.9% EDGE

       ====================================================== */



    #racePage .mobile-market-strip-v4,

    #brainMarketPanel .mobile-market-strip-v4,

    .mobile-market-strip-v4 {

        display: grid !important;



        grid-template-columns:

            minmax(0, 1fr)

            minmax(0, 1fr)

            minmax(0, 1fr)

            !important;



        column-gap: 12px !important;



        align-items: start !important;



        width: 100% !important;

        min-width: 0 !important;



        box-sizing: border-box !important;



        position: relative !important;

    }





    /* ------------------------------------------------------

       ALL THREE MARKET ITEMS

       ------------------------------------------------------ */



    .mobile-market-strip-v4

    .mobile-market-item {

        min-width: 0 !important;



        margin: 0 !important;

        padding: 0 !important;



        display: flex !important;

        flex-direction: column !important;



        justify-content: flex-start !important;

    }





    /* OPEN */



    .mobile-market-strip-v4

    .mobile-market-item:nth-child(1) {

        align-items: flex-start !important;

        text-align: left !important;

    }





    /* NOW */



    .mobile-market-strip-v4

    .mobile-market-item:nth-child(2) {

        align-items: center !important;

        text-align: center !important;

    }





    /* BRAIN PRICE */



    .mobile-market-strip-v4

    .mobile-market-item:nth-child(3) {

        align-items: flex-end !important;

        text-align: right !important;

    }







    /* ======================================================

       LABEL ALIGNMENT

       ====================================================== */



    .mobile-market-strip-v4

    .mobile-market-item:nth-child(1)

    .mobile-market-label {

        width: 100% !important;

        text-align: left !important;

    }



    .mobile-market-strip-v4

    .mobile-market-item:nth-child(2)

    .mobile-market-label {

        width: 100% !important;

        text-align: center !important;

    }



    .mobile-market-strip-v4

    .mobile-market-item:nth-child(3)

    .mobile-market-label {

        width: 100% !important;

        text-align: right !important;

    }







    /* ======================================================

       VALUE ALIGNMENT

       ====================================================== */



    .mobile-market-strip-v4

    .mobile-market-item:nth-child(1)

    .mobile-market-value {

        width: 100% !important;

        text-align: left !important;

    }



    .mobile-market-strip-v4

    .mobile-market-item:nth-child(2)

    .mobile-market-value {

        width: 100% !important;

        text-align: center !important;

    }



    .mobile-market-strip-v4

    .mobile-market-item:nth-child(3)

    .mobile-market-value {

        width: 100% !important;

        text-align: right !important;

    }







    /* ======================================================

       BRAIN PRICE

       ====================================================== */



    .mobile-market-strip-v4

    .mobile-market-brain-price {

        color: #baff32 !important;



        text-align: right !important;



        font-weight: 900 !important;



        white-space: nowrap !important;

    }







    /* ======================================================

       EDGE



       Dedicated fourth grid child.

       Put it beneath Brain Price in column 3.

       ====================================================== */



    .mobile-market-strip-v4

    .mobile-market-edge-line {

        grid-column: 3 !important;

        grid-row: 2 !important;



        justify-self: end !important;

        align-self: start !important;



        width: auto !important;



        margin:

            13px

            0

            0

            0

            !important;



        padding: 0 !important;



        text-align: right !important;



        font-size: 17px !important;

        font-weight: 900 !important;

        line-height: 1 !important;



        letter-spacing: 0 !important;



        white-space: nowrap !important;

    }







    /* ======================================================

       SOURCE TDs



       The generated mobile strip is authoritative.

       ====================================================== */



    #raceTable tbody

    td[data-mobile-market-cell="1"] {

        display: none !important;

    }



}







/* ==========================================================

   SMALL PHONES

   ========================================================== */



@media (max-width: 390px) {



    .mobile-market-strip-v4 {

        column-gap: 8px !important;

    }



    .mobile-market-strip-v4

    .mobile-market-edge-line {

        margin-top: 11px !important;



        font-size: 15px !important;

    }



}








/* ==========================================================

   MOBILE V12

   JOCKEY / WGT / BAR - GRID GEOMETRY FIX



   The runner card itself is a CSS grid.



   Existing mobile runner columns:

       1 = TAB #

       2 = flexible content

       3 = compact

       4 = compact/right



   Therefore TD4/TD5/TD6 must be positioned as GRID ITEMS.

   Width/flex percentages do not control their placement.

   ========================================================== */



@media (max-width: 900px) {



    /*

       Rebalance the actual runner-card grid.



       TAB | MAIN/JOCKEY        | WGT | BAR



       This is the geometry that controls the row.

    */



    #brainMarketPanel .market-table tbody tr,

    #raceTable tbody tr {

        grid-template-columns:

            42px

            minmax(0, 1fr)

            72px

            54px

            !important;

    }





    /* ======================================================

       JOCKEY

       ====================================================== */



    #raceTable tbody td:nth-child(4) {

        grid-column: 2 !important;

        grid-row: 3 !important;



        width: auto !important;

        min-width: 0 !important;

        max-width: none !important;



        justify-self: stretch !important;

        align-self: start !important;



        padding-left: 0 !important;

        padding-right: 12px !important;



        text-align: left !important;

    }



    #raceTable tbody td:nth-child(4)::before {

        width: 100% !important;



        text-align: left !important;



        left: auto !important;

        right: auto !important;



        transform: none !important;

    }





    /* ======================================================

       WGT

       ====================================================== */



    #raceTable tbody td:nth-child(5) {

        grid-column: 3 !important;

        grid-row: 3 !important;



        width: auto !important;

        min-width: 0 !important;

        max-width: none !important;



        justify-self: stretch !important;

        align-self: start !important;



        padding-left: 0 !important;

        padding-right: 0 !important;



        text-align: center !important;

    }



    #raceTable tbody td:nth-child(5)::before {

        width: 100% !important;



        text-align: center !important;



        left: auto !important;

        right: auto !important;



        transform: none !important;

    }





    /* ======================================================

       BAR

       ====================================================== */



    #raceTable tbody td:nth-child(6) {

        grid-column: 4 !important;

        grid-row: 3 !important;



        width: auto !important;

        min-width: 0 !important;

        max-width: none !important;



        justify-self: stretch !important;

        align-self: start !important;



        padding-left: 0 !important;

        padding-right: 0 !important;



        text-align: center !important;

    }



    #raceTable tbody td:nth-child(6)::before {

        width: 100% !important;



        text-align: center !important;



        left: auto !important;

        right: auto !important;



        transform: none !important;

    }



}





/* ==========================================================

   SMALL PHONES

   ========================================================== */



@media (max-width: 390px) {



    #brainMarketPanel .market-table tbody tr,

    #raceTable tbody tr {

        grid-template-columns:

            38px

            minmax(0, 1fr)

            66px

            48px

            !important;

    }



    #raceTable tbody td:nth-child(4) {

        padding-right: 8px !important;

    }



}








@media (max-width: 900px) {



    /*

       FINAL BAR AXIS



       Keep V12 grid geometry.



       Only force BAR heading + value onto the same

       horizontal centre line.

    */



    #brainMarketPanel #raceTable tbody td:nth-child(6),

    #raceTable tbody td:nth-child(6) {



        grid-column: 4 !important;

        grid-row: 3 !important;



        width: 100% !important;

        min-width: 0 !important;



        display: flex !important;

        flex-direction: column !important;



        align-items: center !important;

        justify-content: flex-start !important;



        justify-self: stretch !important;



        padding-left: 0 !important;

        padding-right: 0 !important;



        margin: 0 !important;



        text-align: center !important;



        transform: none !important;

    }





    #brainMarketPanel #raceTable tbody td:nth-child(6)::before,

    #raceTable tbody td:nth-child(6)::before {



        display: block !important;



        position: static !important;



        width: auto !important;



        left: auto !important;

        right: auto !important;

        top: auto !important;

        bottom: auto !important;



        margin-left: auto !important;

        margin-right: auto !important;



        padding-left: 0 !important;

        padding-right: 0 !important;



        text-align: center !important;



        transform: none !important;

    }

}








@media (max-width: 900px) {



    #raceTable tbody td:nth-child(6) {

        transform: translateX(6px) !important;

    }



}






/* ==========================================================
   DAILY BETS - VISUAL POLISH V1
   ========================================================== */

.daily-bets-row {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.daily-bets-connections {
    margin-top: 3px !important;
    font-size: 12px !important;
    opacity: .68 !important;
}

.daily-bets-category-badge {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-top: 7px;
    padding: 3px 8px;

    border: 1px solid rgba(174, 255, 47, .34);
    border-radius: 999px;

    color: #b7ff32;

    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: .08em;
    text-transform: uppercase;

    background:
        rgba(174, 255, 47, .045);
}

.daily-bets-market-prices {
    margin-top: 8px !important;

    gap: 7px 17px !important;

    font-size: 13px !important;
    line-height: 1.35 !important;
}

.daily-bets-market-prices span {
    white-space: nowrap;
}

.daily-bets-market-prices strong {
    margin-right: 3px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .035em;
}

.daily-bets-brain-price {
    color: #b7ff32;
    font-weight: 700;
}

.daily-bets-brain-price strong {
    color: #b7ff32;
}

.daily-bets-bet-price,
.daily-bets-now-price {
    color: #ffffff;
}

.daily-bets-horse {
    line-height: 1.2;
}


/* MOBILE */

@media (max-width: 900px) {

    .daily-bets-row {
        padding-top: 17px !important;
        padding-bottom: 17px !important;
    }

    .daily-bets-market-prices {
        gap: 6px 12px !important;
        font-size: 12px !important;
    }

    .daily-bets-category-badge {
        margin-top: 6px;
    }

}




/* ==========================================================
   THE RACING BRAIN
   HOMEPAGE REDESIGN - STAGE 1 V2

   Presentation layer only.
   Existing betting logic remains untouched.
   ========================================================== */


/* ---------- HERO ---------- */

.home-redesign-hero {
    position: relative;
    overflow: hidden;
    margin: 0 auto 20px;
    padding: 34px 34px 30px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(168,255,35,0.10),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            rgba(168,255,35,0.045),
            rgba(168,255,35,0) 45%
        ),
        var(--panel);
}

.home-redesign-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(168,255,35,0.08);
    pointer-events: none;
}

.home-redesign-eyebrow {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-redesign-title {
    max-width: 820px;
    margin: 0;
    color: var(--text);
    font-size: clamp(32px, 5vw, 58px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.home-redesign-title span {
    color: var(--accent);
}

.home-redesign-copy {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.home-redesign-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.home-redesign-primary,
.home-redesign-secondary {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    cursor: pointer;
}

.home-redesign-primary {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #071005;
}

.home-redesign-secondary {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.025);
    color: var(--text);
}

.home-redesign-primary:hover,
.home-redesign-secondary:hover {
    transform: translateY(-1px);
}


/* ---------- SECTION INTRO ---------- */

.home-redesign-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0 12px;
}

.home-redesign-section-kicker {
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-redesign-section-title {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.025em;
}

.home-redesign-section-copy {
    max-width: 500px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}


/* ---------- TODAY'S BETS PROMO ---------- */

.home-redesign-today-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    margin: 14px 0 26px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background:
        linear-gradient(
            90deg,
            rgba(168,255,35,0.05),
            rgba(168,255,35,0)
        ),
        var(--panel);
}

.home-redesign-today-label {
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-redesign-today-title {
    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 950;
}

.home-redesign-today-copy {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.home-redesign-today-button {
    min-width: 150px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    cursor: pointer;
}


/* ---------- NEXT BET ---------- */

#homeNextBet {
    margin-top: 12px !important;
    margin-bottom: 24px !important;
}

#homeNextBet .home-next-bet-card {
    border-radius: 18px !important;
    border-left-width: 4px !important;
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}

#homeNextBet .home-next-bet-label {
    letter-spacing: 0.10em !important;
}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

    .home-redesign-hero {
        margin-bottom: 14px;
        padding: 22px 18px 20px;
        border-radius: 17px;
    }

    .home-redesign-eyebrow {
        margin-bottom: 8px;
        font-size: 9px;
    }

    .home-redesign-title {
        max-width: 340px;
        font-size: 34px;
        line-height: 0.99;
    }

    .home-redesign-copy {
        margin-top: 13px;
        font-size: 13px;
        line-height: 1.5;
    }

    .home-redesign-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 17px;
    }

    .home-redesign-primary,
    .home-redesign-secondary {
        min-height: 43px;
        padding: 0 8px;
        font-size: 10px;
    }

    .home-redesign-section-head {
        margin-top: 20px;
        margin-bottom: 9px;
    }

    .home-redesign-section-title {
        font-size: 19px;
    }

    .home-redesign-section-copy {
        font-size: 11px;
    }

    .home-redesign-today-card {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 10px;
        margin-bottom: 18px;
        padding: 15px;
        border-radius: 14px;
    }

    .home-redesign-today-title {
        font-size: 16px;
    }

    .home-redesign-today-button {
        width: 100%;
        min-height: 42px;
    }

    #homeNextBet {
        margin-top: 9px !important;
        margin-bottom: 18px !important;
    }

    #homeNextBet .home-next-bet-card {
        padding: 13px !important;
        border-radius: 14px !important;
    }

}




.home-strategy-products {
    margin: 32px 0 38px;
}

.home-strategy-products-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
}

.home-strategy-products-kicker {
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-strategy-products-title {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.025em;
}

.home-strategy-products-intro {
    max-width: 520px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.home-strategy-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.home-strategy-product {
    position: relative;
    min-width: 0;
    min-height: 178px;
    padding: 17px 16px 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-left: 2px solid rgba(168,255,35,0.65);
    border-radius: 12px;
    background:
        linear-gradient(
            145deg,
            rgba(168,255,35,0.045),
            rgba(168,255,35,0) 48%
        ),
        var(--panel);
    cursor: pointer;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.home-strategy-product:hover {
    transform: translateY(-2px);
    border-color: rgba(168,255,35,0.50);
    background:
        linear-gradient(
            145deg,
            rgba(168,255,35,0.075),
            rgba(168,255,35,0) 52%
        ),
        var(--panel);
}

.home-strategy-product-number {
    margin-bottom: 11px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.home-strategy-product-name {
    color: var(--text);
    font-size: 17px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.015em;
}

.home-strategy-product-tagline {
    margin-top: 5px;
    color: var(--accent);
    font-size: 10px;
    line-height: 1.25;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.home-strategy-product-copy {
    margin-top: 11px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.home-strategy-product-stat {
    margin-top: 14px;
    padding-top: 11px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.home-strategy-product-stat-value {
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.home-strategy-product-stat-label {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.home-strategy-product-brain .home-strategy-product-stat-value {
    font-size: 13px;
    letter-spacing: 0.01em;
}

.home-strategy-products-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px;
}

.home-strategy-products-note {
    max-width: 650px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

.home-strategy-products-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--accent);
    border-radius: 9px;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    cursor: pointer;
}

.home-strategy-products-button:hover {
    background: rgba(168,255,35,0.08);
}


/* Tablet */

@media (max-width: 950px) {

    .home-strategy-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* Mobile */

@media (max-width: 700px) {

    .home-strategy-products {
        margin: 22px 0 26px;
    }

    .home-strategy-products-head {
        display: block;
        margin-bottom: 10px;
    }

    .home-strategy-products-title {
        font-size: 20px;
    }

    .home-strategy-products-intro {
        margin-top: 5px;
        font-size: 11px;
    }

    .home-strategy-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .home-strategy-product {
        min-height: 174px;
        padding: 13px 12px;
        border-radius: 10px;
    }

    .home-strategy-product-number {
        margin-bottom: 8px;
        font-size: 8px;
    }

    .home-strategy-product-name {
        font-size: 15px;
    }

    .home-strategy-product-tagline {
        font-size: 8px;
    }

    .home-strategy-product-copy {
        margin-top: 8px;
        font-size: 9px;
        line-height: 1.4;
    }

    .home-strategy-product-stat {
        margin-top: 10px;
        padding-top: 9px;
    }

    .home-strategy-product-stat-value {
        font-size: 17px;
    }

    .home-strategy-product-stat-label {
        font-size: 7px;
    }

    .home-strategy-products-footer {
        display: block;
        margin-top: 10px;
    }

    .home-strategy-products-note {
        font-size: 8px;
    }

    .home-strategy-products-button {
        width: 100%;
        margin-top: 10px;
        min-height: 42px;
    }

}

@media (max-width: 390px) {

    .home-strategy-product {
        min-height: 184px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .home-strategy-product-name {
        font-size: 14px;
    }

}




/* ==========================================================
   HOME_STRATEGY_LAYOUT_FIX_V1

   Presentation only.

   - constrains strategy products to homepage width
   - keeps four compact cards on desktop
   - 2 x 2 tablet
   - stacked mobile
   - removes redundant Today's Bets promo card
   ========================================================== */


/* ----------------------------------------------------------
   REMOVE REDUNDANT PROMO CARD
   ---------------------------------------------------------- */

#homeRedesignTodayCard {
    display: none !important;
}


/* ----------------------------------------------------------
   STRATEGY SECTION OUTER WIDTH
   ---------------------------------------------------------- */

#homeStrategyProducts {
    width: 100% !important;
    max-width: 1100px !important;

    margin:
        30px auto
        38px !important;

    padding:
        0 !important;

    box-sizing:
        border-box !important;
}


/* ----------------------------------------------------------
   HEADER
   ---------------------------------------------------------- */

#homeStrategyProducts .home-strategy-products-head {
    display: block !important;

    margin:
        0 0 14px !important;

    padding:
        0 !important;
}


#homeStrategyProducts .home-strategy-products-kicker {
    margin:
        0 0 5px !important;

    color:
        var(--accent, #abff1f) !important;

    font-size:
        10px !important;

    font-weight:
        950 !important;

    letter-spacing:
        .11em !important;

    line-height:
        1.2 !important;

    text-transform:
        uppercase !important;
}


#homeStrategyProducts .home-strategy-products-title {
    margin:
        0 !important;

    font-size:
        22px !important;

    line-height:
        1.08 !important;

    font-weight:
        950 !important;

    letter-spacing:
        -.025em !important;
}


#homeStrategyProducts .home-strategy-products-intro {
    max-width:
        620px !important;

    margin:
        6px 0 0 !important;

    font-size:
        11px !important;

    line-height:
        1.45 !important;

    color:
        var(--muted, #969c98) !important;
}


/* ----------------------------------------------------------
   FOUR CARDS
   ---------------------------------------------------------- */

#homeStrategyProducts .home-strategy-products-grid {
    display:
        grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap:
        8px !important;

    width:
        100% !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


#homeStrategyProducts .home-strategy-product-card {
    min-width:
        0 !important;

    min-height:
        156px !important;

    padding:
        14px 14px 13px !important;

    box-sizing:
        border-box !important;

    border-radius:
        10px !important;
}


/* number */

#homeStrategyProducts .home-strategy-product-number {
    margin-bottom:
        8px !important;

    font-size:
        9px !important;

    line-height:
        1 !important;
}


/* strategy name */

#homeStrategyProducts .home-strategy-product-name {
    margin:
        0 0 4px !important;

    font-size:
        15px !important;

    line-height:
        1.1 !important;

    font-weight:
        950 !important;
}


/* tagline */

#homeStrategyProducts .home-strategy-product-tagline {
    margin:
        0 0 9px !important;

    font-size:
        9px !important;

    line-height:
        1.25 !important;

    font-weight:
        950 !important;
}


/* description */

#homeStrategyProducts .home-strategy-product-copy {
    margin:
        0 !important;

    font-size:
        9px !important;

    line-height:
        1.42 !important;
}


/* performance area */

#homeStrategyProducts .home-strategy-product-performance {
    margin-top:
        11px !important;

    padding-top:
        10px !important;
}


/* POT / LIVE figure */

#homeStrategyProducts .home-strategy-product-stat {
    font-size:
        20px !important;

    line-height:
        1 !important;

    font-weight:
        950 !important;
}


#homeStrategyProducts .home-strategy-product-stat-label {
    margin-top:
        4px !important;

    font-size:
        7px !important;

    line-height:
        1.2 !important;

    letter-spacing:
        .08em !important;
}


/* ----------------------------------------------------------
   FOOTER / DISCLAIMER / BUTTON
   ---------------------------------------------------------- */

#homeStrategyProducts .home-strategy-products-footer {
    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        space-between !important;

    gap:
        20px !important;

    width:
        100% !important;

    margin:
        10px 0 0 !important;

    padding:
        0 !important;
}


#homeStrategyProducts .home-strategy-products-note {
    max-width:
        720px !important;

    margin:
        0 !important;

    font-size:
        8px !important;

    line-height:
        1.4 !important;

    color:
        var(--muted, #8f9691) !important;
}


#homeStrategyProducts .home-strategy-products-button {
    flex:
        0 0 auto !important;

    min-height:
        38px !important;

    padding:
        0 16px !important;

    border-radius:
        9px !important;

    font-size:
        9px !important;

    font-weight:
        950 !important;

    white-space:
        nowrap !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    #homeStrategyProducts {
        max-width:
            none !important;

        margin:
            26px auto
            32px !important;
    }


    #homeStrategyProducts .home-strategy-products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }


    #homeStrategyProducts .home-strategy-product-card {
        min-height:
            150px !important;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    #homeStrategyProducts {
        margin:
            22px auto
            28px !important;
    }


    #homeStrategyProducts .home-strategy-products-title {
        font-size:
            20px !important;
    }


    #homeStrategyProducts .home-strategy-products-grid {
        grid-template-columns:
            1fr !important;

        gap:
            7px !important;
    }


    #homeStrategyProducts .home-strategy-product-card {
        min-height:
            0 !important;

        padding:
            13px !important;
    }


    #homeStrategyProducts .home-strategy-products-footer {
        align-items:
            stretch !important;

        flex-direction:
            column !important;

        gap:
            10px !important;
    }


    #homeStrategyProducts .home-strategy-products-button {
        width:
            100% !important;
    }

}




/* Match the existing homepage strategy card typography. */

.rb-five-strategies-grid .rb-rank1-card
.home-strategy-product-description {
    font-size: 12px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
    color: #9da9a6 !important;
    margin-top: 10px !important;
    margin-bottom: 12px !important;
}

/* Match the bottom performance sections. */

.rb-five-strategies-grid .rb-rank1-card
.home-strategy-product-performance {
    border-top: 1px solid rgba(255,255,255,.09) !important;
    padding-top: 12px !important;
    margin-top: 12px !important;
}

.rb-five-strategies-grid .rb-rank1-card
.home-strategy-product-performance-value {
    font-size: 19px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    color: #b7ff2b !important;
    text-transform: uppercase !important;
}

.rb-five-strategies-grid .rb-rank1-card
.home-strategy-product-performance-label {
    font-size: 9px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
    letter-spacing: .035em !important;
    color: #9da9a6 !important;
    text-transform: uppercase !important;
    margin-top: 3px !important;
}

/* Keep the five cards visually consistent. */

.rb-five-strategies-grid .home-strategy-product {
    box-sizing: border-box !important;
}

.rb-five-strategies-grid .rb-rank1-card
.home-strategy-product-name {
    font-weight: 900 !important;
}

.rb-five-strategies-grid .rb-rank1-card
.home-strategy-product-tagline {
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}




/* RACE_CARD_PRO_STRATEGIES_V1 */
.race-verdict-strip {grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);align-items:stretch;gap:10px}
.race-verdict-strip .race-verdict-card.top-pick {padding:12px 14px;min-height:0}
.race-pro-strategies {border:1px solid rgba(185,255,53,.24);border-radius:12px;background:rgba(185,255,53,.035);padding:11px 13px;min-width:0}
.race-pro-heading {font-size:11px;font-weight:900;letter-spacing:.07em;color:var(--text);margin-bottom:8px}
.race-pro-heading span {color:var(--lime);font-size:10px;margin-left:7px}
.race-pro-content {font-size:12px;color:var(--muted)}
.race-pro-row {display:flex;justify-content:space-between;gap:10px;align-items:center;padding:7px 0;border-top:1px solid rgba(255,255,255,.09)}
.race-pro-row:first-child {border-top:0;padding-top:0}
.race-pro-horse {font-weight:850;color:var(--text)}
.race-pro-strategy {font-size:11px;color:var(--lime);margin-top:2px}
.race-pro-price {white-space:nowrap;font-weight:850;color:var(--text)}
.race-pro-upsell {line-height:1.5}
.race-pro-upsell a {display:inline-block;margin-top:8px;border:1px solid var(--lime);border-radius:7px;padding:6px 10px;color:var(--lime);font-weight:850;text-decoration:none}
@media(max-width:900px){.race-verdict-strip{grid-template-columns:1fr}}



/* Fit the complete Speed Map image within the browser viewport. */

.speed-map-modal-overlay {
    box-sizing: border-box;
    padding: 12px;
    overflow: hidden;
}

.speed-map-modal-card {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    width: min(1500px, calc(100vw - 24px));
    height: min(94vh, calc(100vh - 24px));
    height: min(94dvh, calc(100dvh - 24px));
    max-height: none;
    min-height: 0;
    overflow: hidden;
    padding: 12px;
}

.speed-map-modal-header {
    min-height: 38px;
    margin-bottom: 0;
}

.speed-map-modal-image {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

@media (max-width: 800px) {
    .speed-map-modal-overlay {
        padding: 6px;
    }

    .speed-map-modal-card {
        width: calc(100vw - 12px);
        height: calc(100vh - 12px);
        height: calc(100dvh - 12px);
        padding: 8px;
        gap: 6px;
    }
}


/* Mobile-only Speed Map shortcut */

.rb-mobile-speedmap-shortcut {
    display: none;
}

@media (max-width: 800px) {
    .rb-mobile-speedmap-shortcut {
        display: block;
        margin: 0 0 12px;
    }

    .rb-mobile-speedmap-button {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 58px;
        padding: 12px 14px;
        border: 1px solid rgba(185,255,53,.45);
        border-radius: 11px;
        background: rgba(185,255,53,.065);
        color: #f3f5f2;
        font: inherit;
        text-align: left;
        cursor: pointer;
    }

    .rb-mobile-speedmap-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    .rb-mobile-speedmap-text strong {
        color: #b9ff35;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: .04em;
    }

    .rb-mobile-speedmap-text small {
        color: #a3aaa5;
        font-size: 11px;
        line-height: 1.3;
    }

    .rb-mobile-speedmap-action {
        flex-shrink: 0;
        color: #b9ff35;
        font-size: 11px;
        font-weight: 900;
        white-space: nowrap;
    }

    .rb-mobile-speedmap-button:active {
        background: rgba(185,255,53,.14);
    }
}


body:has(#racePage.visible) #homeTopLayoutV4,
body:has(#horsePage.visible) #homeTopLayoutV4,
body:has(#jockeyPage.visible) #homeTopLayoutV4,
body:has(#trainerPage.visible) #homeTopLayoutV4,
body:has(#racePage.visible) #rbHomepageNext5,
body:has(#horsePage.visible) #rbHomepageNext5,
body:has(#jockeyPage.visible) #rbHomepageNext5,
body:has(#trainerPage.visible) #rbHomepageNext5,
body:has(#racePage.visible) #homeStrategyProducts,
body:has(#horsePage.visible) #homeStrategyProducts,
body:has(#jockeyPage.visible) #homeStrategyProducts,
body:has(#trainerPage.visible) #homeStrategyProducts { display:none!important; }
/* Keep the current race/profile immediately below the sticky navigation. */
#racePage.visible, #horsePage.visible, #jockeyPage.visible, #trainerPage.visible { scroll-margin-top: 76px; }
/* Next to Jump is now part of the homepage top stack. */
#homeTopLayoutV4 #rbHomepageNext5 { width:100%; max-width:100%; margin:18px 0; box-sizing:border-box; }
#homeTopLayoutV4 #homeStrategyProducts { width:100%; max-width:100%; margin:22px 0; box-sizing:border-box; }


/* Homepage-only top stack: do not show it above secondary-page content. */
body.membership-page-view #homeTopLayoutV4,
body.about-page-view #homeTopLayoutV4,
body.brain-bets-page-view #homeTopLayoutV4,
body.trainer-jockey-page-view #homeTopLayoutV4,
body.horse-search-page-view #homeTopLayoutV4,
body.jockey-profile-view #homeTopLayoutV4,
body.trainer-profile-view #homeTopLayoutV4,
body.membership-page-view #rbHomepageNext5,
body.about-page-view #rbHomepageNext5,
body.brain-bets-page-view #rbHomepageNext5,
body.trainer-jockey-page-view #rbHomepageNext5,
body.horse-search-page-view #rbHomepageNext5,
body.jockey-profile-view #rbHomepageNext5,
body.trainer-profile-view #rbHomepageNext5,
body.membership-page-view #homeStrategyProducts,
body.about-page-view #homeStrategyProducts,
body.brain-bets-page-view #homeStrategyProducts,
body.trainer-jockey-page-view #homeStrategyProducts,
body.horse-search-page-view #homeStrategyProducts,
body.jockey-profile-view #homeStrategyProducts,
body.trainer-profile-view #homeStrategyProducts { display: none !important; }
/* Also cover race and individual profile pages via their visible section. */
body:has(#racePage.visible) #homeTopLayoutV4,
body:has(#horsePage.visible) #homeTopLayoutV4,
body:has(#jockeyPage.visible) #homeTopLayoutV4,
body:has(#trainerPage.visible) #homeTopLayoutV4 { display: none !important; }


/* Hide obsolete home-only content from the first paint, before delayed JS moves it. */
#homeRedesignHero,
#homeRedesignNextBetHeading,
#homeStrategyProducts,
#rbHomeValueStrip { display: none !important; }
/* Keep Next Bet hidden until its canonical home stack exists: avoids showing its old location. */
#homeNextBet:not(#homeTopLayoutV4 #homeNextBet) { display: none !important; }
/* The new home stack remains visible on Today; existing secondary-page guards still apply. */
#homeTopLayoutV4 { margin-top: 12px; }
#homeTopLayoutV4 #homeTopV4Ask { margin-top: 0; }


/* Compact layout only: preserve existing race button elements and click handlers. */
#rbHomepageNext5 .rb-n5-list {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;
}
#rbHomepageNext5 .rb-n5-list > .rb-n5-item {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 74px !important;
  height: auto !important;
  padding: 10px 12px !important;
  gap: 4px !important;
  text-align: left !important;
  position: relative !important;
}
#rbHomepageNext5 .rb-n5-item .rb-n5-time { font-size: 12px !important; white-space: nowrap !important; }
#rbHomepageNext5 .rb-n5-item .rb-n5-track { font-size: 13px !important; line-height: 1.2 !important; overflow-wrap: anywhere !important; }
#rbHomepageNext5 .rb-n5-item .rb-n5-meta { font-size: 10px !important; line-height: 1.2 !important; }
#rbHomepageNext5 .rb-n5-item .rb-n5-arrow { display: none !important; }
@media (max-width: 700px) {
  #rbHomepageNext5 .rb-n5-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #rbHomepageNext5 .rb-n5-list > .rb-n5-item { min-height: 68px !important; padding: 9px 11px !important; }
}


/* Enlarge the existing navigation logo without increasing header height. */
.topbar .rb-site-brand,
.topbar .brand { overflow: visible !important; }
.topbar .rb-site-brand-logo {
  transform: scale(1.35) !important;
  transform-origin: left center !important;
}
/* Reserve horizontal space so the larger logo cannot collide with nav links. */
@media (min-width: 900px) {
  .topbar .brand { margin-right: 38px !important; }
}
@media (max-width: 899px) {
  .topbar .rb-site-brand-logo { transform: scale(1.18) !important; }
}


/* Keep controls independent of any hero section replaced/hidden by the homepage layout. */
#rbCompactHomeTools { width:min(100% - 32px,960px); max-width:960px; margin:12px auto 16px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#rbCompactHomeTools button { cursor:pointer; background:#111b14; color:#f2f8ed; border:1px solid rgba(184,255,53,.3); border-radius:9px; padding:11px 14px; text-align:left; font:inherit; }
#rbCompactHomeTools button strong { display:block; font-size:14px; }
#rbCompactHomeTools button small { display:block; margin-top:4px; font-size:12px; color:#b8c8b3; }
#rbCompactHomeTools button:focus-visible, #rbCompactHomeTools button:hover { border-color:#b8ff35; }
body[class*="page-view"] #rbCompactHomeTools { display:none !important; }
@media(max-width:650px) { #rbCompactHomeTools { grid-template-columns:1fr; } }



/* RB_HOME_STAGE3C_V1 */

#homeTopLayoutV4 > #rbCompactHomeTools {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px auto 10px !important;
    box-sizing: border-box;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#homeTopLayoutV4 > #rbCompactHomeTools button {
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 650px) {

    #homeTopLayoutV4 > #rbCompactHomeTools {
        grid-template-columns: 1fr;
        gap: 7px;
    }

}




#rbCompactHeroV1 {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 10px 4px 14px;
    margin: 0;
}

#rbCompactHeroV1 h1 {
    font-family: inherit;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.7px;
    color: #f4f6f4;
    margin: 0 0 7px;
    padding: 0;
}

#rbCompactHeroV1 h1 span {
    color: #b5ff35;
}

#rbCompactHeroV1 p {
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #a1ada4;
    margin: 0 auto;
    padding: 0;
    max-width: 850px;
}

/* Compact responsive presentation */

@media (max-width: 650px) {

    #rbCompactHeroV1 {
        padding: 8px 4px 12px;
    }

    #rbCompactHeroV1 h1 {
        font-size: 23px;
        letter-spacing: -0.4px;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    #rbCompactHeroV1 p {
        font-size: 12px;
        line-height: 1.45;
        max-width: 440px;
    }

}

@media (max-width: 360px) {

    #rbCompactHeroV1 h1 {
        font-size: 21px;
    }

}




/* RB_DESKTOP_HEADER_WIDTH_V1 */

@media (min-width: 851px) {

    .topbar .topbar-inner {
        width: calc(100% - 32px) !important;
        max-width: 1440px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        gap: 20px !important;
    }

    .topbar .brand {
        flex: 0 0 auto !important;
        margin-right: 0 !important;
    }

    .topbar .nav {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        justify-content: center !important;
        gap: clamp(10px, 1.1vw, 20px) !important;
        align-items: center !important;
    }

    .topbar .nav a {
        flex: 0 0 auto !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        text-align: center !important;
        line-height: 1.25 !important;
        font-size: 0.82rem !important;
        max-width: 120px !important;
    }

    .topbar .sign-in {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}

@media (min-width: 851px) and (max-width: 1150px) {

    .topbar .topbar-inner {
        gap: 10px !important;
    }

    .topbar .brand img {
        max-width: 150px !important;
        height: auto !important;
    }

    .topbar .nav {
        gap: 9px !important;
        flex-wrap: wrap !important;
    }

    .topbar .nav a {
        font-size: 0.72rem !important;
        max-width: 100px !important;
    }
}

