/* OHELP_SOURCE_DASHBOARD_PARITY_20261110 */

html body:has(.ohelp-source-parity) {
    background: linear-gradient(
        115deg,
        #e0f2e7 0%,
        #d1ede5 40%,
        #89c8df 100%
    ) !important;
}

html body #app .ohelp-source-parity {
    background: transparent !important;
    padding-bottom: 130px !important;
}

html body #app .ohelp-source-parity
.landing-account {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;

    background: linear-gradient(
        125deg,
        #ffffffa8,
        #ffffff65
    ) !important;

    border: 2px solid #ffffffd9 !important;
    border-radius: 30px !important;
    padding: 22px !important;

    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;

    box-shadow: 0 8px 24px #20534518 !important;
    margin-bottom: 22px !important;
}

html body #app .ohelp-source-parity
.ohelp-source-actions {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body #app .ohelp-source-parity
.ohelp-source-actions > * {
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
}

html body #app .ohelp-source-parity
.ohelp-source-actions button,
html body #app .ohelp-source-parity
.ohelp-source-actions summary {
    min-height: 74px !important;
    border-radius: 18px !important;
    padding: 9px 4px !important;
    text-align: center !important;
    font-weight: 700 !important;
    white-space: normal !important;
}

html body #app .ohelp-source-parity
.ohelp-source-autopilot {
    background: white !important;
    color: #075b39 !important;
}

html body #app .ohelp-source-parity
.landing-post-menu > summary {
    background: linear-gradient(
        #00a43b,
        #005527
    ) !important;
    color: white !important;
}

html body #app .ohelp-source-parity
.ohelp-marketplace-stories-host {
    margin-top: 8px !important;
}

html body #app .ohelp-source-parity
.landing-nav {
    z-index: 50 !important;
}

@media (min-width: 900px) {
    html body #app .shell.ohelp-landing-shell {
        width: min(100% - 48px,1100px) !important;
        max-width: 1100px !important;
        margin-inline: auto !important;
        padding-bottom: 150px !important;
    }
}

@media (max-width: 650px) {
    html body #app .ohelp-source-parity
    .landing-account {
        padding: 16px !important;
    }

    html body #app .ohelp-source-parity
    .ohelp-source-actions {
        gap: 6px !important;
    }

    html body #app .ohelp-source-parity
    .ohelp-source-actions button,
    html body #app .ohelp-source-parity
    .ohelp-source-actions summary {
        min-height: 66px !important;
        font-size: 12px !important;
        padding: 7px 3px !important;
    }
}

/* OHELP_BUTTON_FINAL_PARITY_V3 */

@media (max-width: 899px) {

    /* Four equal compact action buttons. */
    html body #app .ohelp-source-parity
    .ohelp-source-actions {
        display: grid !important;
        grid-template-columns:
            repeat(4,minmax(0,1fr)) !important;
        gap: 7px !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: none !important;
        margin: 5px 0 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    html body #app .ohelp-source-parity
    .ohelp-source-actions > * {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        margin: 0 !important;
        border-radius: 13px !important;
    }

    html body #app .ohelp-source-parity
    .ohelp-source-actions > button,
    html body #app .ohelp-source-parity
    .ohelp-source-actions > a,
    html body #app .ohelp-source-parity
    .ohelp-source-actions > details > summary {
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        width: 100% !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        padding: 5px 3px !important;
        border-radius: 13px !important;
        font-size: clamp(9px,2.5vw,12px) !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        text-align: center !important;
        color: #075c3b !important;
        background: #ffffff !important;
        border: 1px solid #e1ebe5 !important;
        box-shadow: 0 2px 8px #154a3412 !important;
    }

    /* Correct Post green. */
    html body #app .ohelp-source-parity
    .ohelp-source-actions
    .landing-post-menu > summary {
        background:
            linear-gradient(#008b42,#00602f)
            !important;
        color: #ffffff !important;
    }

    /* Profile remains white. */
    html body #app .ohelp-source-parity
    .ohelp-source-actions
    > details:not(.landing-post-menu) > summary {
        background: #ffffff !important;
        color: #075c3b !important;
    }

    /* Compact payment buttons.
       Preserve existing wallet event handlers. */
    html body #app .ohelp-source-parity
    .landing-account
    button {
        touch-action: manipulation;
    }

    html body #app .ohelp-source-parity
    .landing-account
    .landing-wallet-actions,
    html body #app .ohelp-source-parity
    .landing-account
    .wallet-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 9px !important;
        margin: 5px 0 0 !important;
    }

    html body #app .ohelp-source-parity
    .landing-account
    .landing-wallet-actions > button,
    html body #app .ohelp-source-parity
    .landing-account
    .wallet-actions > button {
        box-sizing: border-box !important;
        width: auto !important;
        min-width: 90px !important;
        max-width: 140px !important;
        height: 43px !important;
        min-height: 43px !important;
        padding: 8px 16px !important;
        border-radius: 22px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    html body #app .ohelp-source-parity
    .landing-account
    .landing-wallet-actions > button:first-child,
    html body #app .ohelp-source-parity
    .landing-account
    .wallet-actions > button:first-child {
        background: #007c42 !important;
        color: #ffffff !important;
    }

    html body #app .ohelp-source-parity
    .landing-account
    .landing-wallet-actions > button:nth-child(2),
    html body #app .ohelp-source-parity
    .landing-account
    .wallet-actions > button:nth-child(2) {
        background: #ffffff !important;
        color: #075c3b !important;
    }

    /* Compact wallet, without changing payment logic. */
    html body #app .ohelp-source-parity
    .landing-account {
        gap: 8px !important;
        padding: 15px 13px !important;
        min-height: 0 !important;
    }
}

/* END_OHELP_BUTTON_FINAL_PARITY_V3 */

/* OHELP_BUTTON_CLEANUP_V4 */

@media (max-width: 899px) {

    /* Four compact buttons in one row. */
    html body #app .ohelp-source-parity
    .ohelp-source-actions {
        display: grid !important;
        grid-template-columns: repeat(4,minmax(0,1fr)) !important;
        gap: 7px !important;
        align-items: stretch !important;
    }

    /* Remove duplicate outer card appearance. */
    html body #app .ohelp-source-parity
    .ohelp-source-actions > details,
    html body #app .ohelp-source-parity
    .ohelp-source-actions > div {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        min-width: 0 !important;
    }

    /* Compact inner action surfaces. */
    html body #app .ohelp-source-parity
    .ohelp-source-actions > button,
    html body #app .ohelp-source-parity
    .ohelp-source-actions > a,
    html body #app .ohelp-source-parity
    .ohelp-source-actions > details > summary {
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        margin: 0 !important;
        padding: 4px 2px !important;
        border-radius: 12px !important;
        font-size: clamp(9px,2.3vw,11px) !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        text-align: center !important;
        white-space: nowrap !important;
        background: #ffffff !important;
        color: #075c3b !important;
        border: 1px solid #e5ede8 !important;
        box-shadow: 0 2px 6px rgba(10,60,40,.07) !important;
    }

    /* Remove any extra frame around the Post menu. */
    html body #app .ohelp-source-parity
    .ohelp-source-actions .landing-post-menu {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    html body #app .ohelp-source-parity
    .ohelp-source-actions .landing-post-menu > summary {
        background: linear-gradient(180deg,#008b42,#00602f) !important;
        color: white !important;
        border: 0 !important;
    }

    /* Profile is one white card, not a card inside a card. */
    html body #app .ohelp-source-parity
    .ohelp-source-actions > details:not(.landing-post-menu) > summary {
        background: #ffffff !important;
        color: #075c3b !important;
    }

    /* Keep dropdown menus usable. */
    html body #app .ohelp-source-parity
    .ohelp-source-actions details[open] {
        position: relative !important;
        z-index: 120 !important;
    }

    /* Smaller wallet payment controls. */
    html body #app .ohelp-source-parity
    .landing-account .landing-wallet-actions,
    html body #app .ohelp-source-parity
    .landing-account .wallet-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 8px !important;
        width: auto !important;
    }

    html body #app .ohelp-source-parity
    .landing-account .landing-wallet-actions > button,
    html body #app .ohelp-source-parity
    .landing-account .wallet-actions > button {
        box-sizing: border-box !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 85px !important;
        max-width: 120px !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 6px 13px !important;
        margin: 0 !important;
        border-radius: 20px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }

    /* Top Up green. */
    html body #app .ohelp-source-parity
    .landing-account .landing-wallet-actions > button:first-child,
    html body #app .ohelp-source-parity
    .landing-account .wallet-actions > button:first-child {
        background: #007c42 !important;
        color: #ffffff !important;
    }

    /* Withdraw white. */
    html body #app .ohelp-source-parity
    .landing-account .landing-wallet-actions > button:nth-child(2),
    html body #app .ohelp-source-parity
    .landing-account .wallet-actions > button:nth-child(2) {
        background: #ffffff !important;
        color: #075c3b !important;
    }

    /* Reduce wallet vertical spacing. */
    html body #app .ohelp-source-parity .landing-account {
        gap: 7px !important;
        padding: 14px 12px !important;
        min-height: 0 !important;
    }
}

/* END_OHELP_BUTTON_CLEANUP_V4 */
