/*
 * ============================================================
 * NOYTRIX PROFILE — REAL SOURCE FIX V82
 *
 * These classes are inserted directly into profile-v56.js.
 *
 * No runtime wrapper guessing.
 * No coordinate calculations.
 * No timers.
 * ============================================================
 */

@media (min-width: 1200px) {


    /* ========================================================
       THE TWO REAL OVERVIEW CARDS
       ======================================================== */

    body.nx-profile-v78-open
    #screen-profile-v56
    .p56-overview-main {

        align-items:
            stretch !important;
    }


    body.nx-profile-v78-open
    #screen-profile-v56
    .p56-overview-main
    .p82-action-card {

        position:
            relative !important;

        display:
            flex !important;

        flex-direction:
            column !important;

        align-self:
            stretch !important;

        height:
            100% !important;

        min-height:
            0 !important;

        /*
         * Kill V80's artificial 70px bottom padding.
         */
        padding-bottom:
            14px !important;

        box-sizing:
            border-box !important;
    }



    /* ========================================================
       REMOVE OLD V80/V81 POSITIONING
       ======================================================== */

    body.nx-profile-v78-open
    #screen-profile-v56
    .p82-action-card.nx-p80-action-card,

    body.nx-profile-v78-open
    #screen-profile-v56
    .p82-action-card.nx-p81-action-card {

        position:
            relative !important;

        padding-bottom:
            14px !important;
    }



    /* ========================================================
       REAL BUTTON WRAPPER
       This is what was wrong before.
       ======================================================== */

    body.nx-profile-v78-open
    #screen-profile-v56
    .p82-action-card
    .p82-action-slot {

        position:
            static !important;

        inset:
            auto !important;

        width:
            100% !important;

        height:
            auto !important;

        min-height:
            0 !important;

        margin:
            auto 0 0
            !important;

        padding:
            10px 0 0
            !important;

        transform:
            none !important;

        box-sizing:
            border-box !important;
    }


    /*
     * V80 may keep adding its runtime class.
     * V82 always wins.
     */

    body.nx-profile-v78-open
    #screen-profile-v56
    .p82-action-slot.nx-p80-action-wrap,

    body.nx-profile-v78-open
    #screen-profile-v56
    .p82-action-slot.nx-p81-neutral-wrap {

        position:
            static !important;

        top:
            auto !important;

        right:
            auto !important;

        bottom:
            auto !important;

        left:
            auto !important;

        width:
            100% !important;

        height:
            auto !important;

        margin:
            auto 0 0
            !important;

        padding:
            10px 0 0
            !important;

        transform:
            none !important;
    }



    /* ========================================================
       BUTTON DIRECTLY INSIDE CARD FALLBACK
       ======================================================== */

    body.nx-profile-v78-open
    #screen-profile-v56
    .p82-action-card
    > .p82-action-direct {

        margin-top:
            auto !important;
    }



    /* ========================================================
       BOTH REAL BUTTONS
       ======================================================== */

    body.nx-profile-v78-open
    #screen-profile-v56
    .p82-action-card
    .p82-action-button {

        position:
            static !important;

        top:
            auto !important;

        right:
            auto !important;

        bottom:
            auto !important;

        left:
            auto !important;

        width:
            100% !important;

        height:
            44px !important;

        min-height:
            44px !important;

        max-height:
            44px !important;

        margin:
            0 !important;

        padding:
            0 14px !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            center !important;

        flex:
            0 0 44px
            !important;

        transform:
            none !important;

        font-size:
            14px !important;

        font-weight:
            800 !important;

        line-height:
            1 !important;

        box-sizing:
            border-box !important;
    }



    /* ========================================================
       HARD OVERRIDE V80 ABSOLUTE ACTION BUTTON
       ======================================================== */

    body.nx-profile-v78-open
    #screen-profile-v56
    .p82-action-button.nx-p80-action-button,

    body.nx-profile-v78-open
    #screen-profile-v56
    .p82-action-button.nx-p81-action-button {

        position:
            static !important;

        inset:
            auto !important;

        width:
            100% !important;

        height:
            44px !important;

        margin:
            0 !important;

        transform:
            none !important;
    }

}
