@media (max-width: 760px) {
    body.fxp-trading-journal-page #fxpossibleGlobalHeader {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 8000 !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 56px 52px;
        align-items: center;
        gap: 0 12px;
        width: 100%;
        min-width: 0;
        padding: 34px 14px 0;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content .fxp-dashboard-title {
        display: flex;
        grid-column: 1;
        grid-row: 1;
        align-items: center;
        gap: 11px;
        width: min(100%, 190px);
        min-width: 0;
        margin: 0;
        font-size: 25px;
        font-weight: 750;
        line-height: 1.05;
        letter-spacing: -0.5px;
        white-space: normal;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content .fxp-dashboard-title::before {
        content: "";
        flex: 0 0 43px;
        width: 43px;
        height: 43px;
        background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%232878ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 27h24M7 23v-5h5v5M15 23V9h5v14M23 23v-9h5v9M5 11l7-5 5 4 9-7'/%3E%3Cpath d='m22 3 4 0 0 4'/%3E%3C/svg%3E");
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content .fxp-dashboard-description {
        display: none !important;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content .fxp-journal-header-actions {
        display: contents;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content .fxp-journal-share-button {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        min-width: 112px;
        min-height: 49px;
        padding: 0 15px;
        border-radius: 15px;
        font-size: 14px;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content .fxp-journal-share-icon {
        font-size: 19px;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content .fxp-journal-add-trade-button {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        transform: translateY(6px);
        min-width: 152px;
        min-height: 53px;
        padding: 0 17px;
        border-radius: 15px;
        font-size: 14px;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content .fxp-journal-header-plus {
        font-size: 24px;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content #accountFilterWrap {
        grid-column: 2;
        grid-row: 2;
        transform: translateY(6px);
        position: relative;
        z-index: 1 !important;
        width: 178px;
        min-width: 0;
        margin: 0;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content #accountFilter {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 53px !important;
        min-height: 53px;
        padding: 0 15px;
        border: 1px solid #1d2b42 !important;
        border-radius: 15px;
        background: linear-gradient(145deg, #0d1627, #080f1c) !important;
        color: #eef3ff !important;
        font-size: 14px;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content #accountFilterMenu {
        top: calc(100% + 7px);
        right: 0;
        left: auto;
        width: min(300px, calc(100vw - 24px));
        min-width: min(220px, calc(100vw - 24px));
        max-height: min(52dvh, 360px);
        z-index: 2 !important;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.fxp-trading-journal-page #accountFilterMenu .journal-filter-option {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 13px;
    }

    body.fxp-trading-journal-page #accountFilterMenu .journal-filter-option input {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    body.fxp-trading-journal-page .fx-account-control {
        z-index: 2 !important;
    }

    body.fxp-trading-journal-page .fx-account-dropdown {
        right: 0;
        left: auto;
        width: min(320px, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
        max-height: min(55dvh, 380px);
        z-index: 3 !important;
    }

    body.fxp-trading-journal-page .fx-account-dropdown-header {
        min-height: 44px;
        padding: 10px 12px;
    }

    body.fxp-trading-journal-page .fx-account-dropdown-header strong {
        font-size: 12px;
    }

    body.fxp-trading-journal-page .fx-account-dropdown-header span {
        font-size: 10px;
    }

    body.fxp-trading-journal-page .fx-account-options {
        max-height: min(45dvh, 300px);
        padding: 6px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.fxp-trading-journal-page .fx-account-option {
        min-height: 48px;
        padding: 9px 10px;
        gap: 10px;
    }

    body.fxp-trading-journal-page .fx-account-option-main strong {
        font-size: 12px;
    }

    body.fxp-trading-journal-page .fx-account-option-main span {
        font-size: 10px;
    }

    body.fxp-trading-journal-page .fx-account-option-size {
        font-size: 10px;
    }

    body.fxp-trading-journal-page #fxpAddTradeV2 #fxpInstrumentField:has(#fxpInstrumentOptions:not(.fxp-hidden)) {
        z-index: 300 !important;
    }

    body.fxp-trading-journal-page #fxpAddTradeV2 .fxp-instrument-picker:has(#fxpInstrumentOptions:not(.fxp-hidden)) {
        z-index: 301;
    }

    body.fxp-trading-journal-page #fxpAddTradeV2 #fxpInstrumentOptions {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.fxp-trading-journal-page #fxpAddTradeV2 #fxpInstrumentOptionList {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.fxp-trading-journal-page .journal-main {
        width: 100%;
        min-width: 0;
        padding: 20px 18px calc(78px + env(safe-area-inset-bottom));
    }

    body.fxp-trading-journal-page .journal-global-filters,
    body.fxp-trading-journal-page .bottom-feature-grid,
    body.fxp-trading-journal-page .fxp-ai-dashboard,
    body.fxp-trading-journal-page .fxp-ai-panel {
        z-index: auto !important;
    }

    body.fxp-trading-journal-page .fxp-ai-panel {
        position: relative;
        z-index: 0 !important;
        isolation: isolate;
    }

    body.fxp-trading-journal-page .journal-tool-overlay {
        z-index: 10000 !important;
    }

    body.fxp-trading-journal-page .journal-global-filters {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center !important;
        gap: 5px !important;
        width: 100%;
        margin: 18px 0 24px;
        padding: 0;
        overflow: visible;
    }

    body.fxp-trading-journal-page .journal-global-filters > .journal-filter-dropdown {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
    }

    body.fxp-trading-journal-page .journal-global-filters .journal-filter-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: auto;
        min-width: 0;
        height: 38px !important;
        min-height: 38px;
        padding: 0 10px;
        border: 1px solid #1d2b42 !important;
        border-radius: 999px;
        background: #080f1c !important;
        color: #e8effc !important;
        font-size: 12px;
        font-weight: 550;
        white-space: nowrap;
    }

    body.fxp-trading-journal-page #pairFilter {
        border-color: #3184ff !important;
        background: linear-gradient(135deg, #237dff, #1261e8) !important;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(36, 107, 255, 0.25);
    }

    body.fxp-trading-journal-page .journal-date-filter {
        display: none;
    }

    body.fxp-trading-journal-page .journal-mobile-date-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        margin: 0 0 30px;
        min-height: 64px;
    }

    body.fxp-trading-journal-page .journal-mobile-date-row .journal-date-filter {
        display: flex;
        gap: 4px;
        min-width: 0;
        min-height: 64px;
        padding: 8px 14px 7px;
        border: 1px solid #1d2b42;
        border-radius: 15px;
        background: linear-gradient(145deg, #0b1321, #080e19);
    }

    body.fxp-trading-journal-page .journal-mobile-date-row .journal-date-filter > span {
        color: #a7b5ca;
        font-size: 12px;
        font-weight: 500;
        text-transform: none;
        letter-spacing: 0;
    }

    body.fxp-trading-journal-page .journal-mobile-date-row .date-control {
        width: 100%;
        min-width: 0;
        height: 25px !important;
        min-height: 25px;
        padding: 0;
        border: 0 !important;
        background: transparent !important;
        color: #f3f6fc !important;
        font-size: 15px;
        color-scheme: dark;
    }

    body.fxp-trading-journal-page .kpi-grid {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        margin: 0 0 24px;
        overflow: visible;
    }

    body.fxp-trading-journal-page .kpi-grid > .kpi-card {
        grid-column: span 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        height: 156px;
        min-width: 0;
        padding: 11px 5px 8px;
        border-color: #1b2940;
        border-radius: 15px;
        background: linear-gradient(155deg, #0b1423, #070d18);
        text-align: center;
    }

    body.fxp-trading-journal-page .kpi-grid > .kpi-card:nth-child(n+5):nth-child(-n+6),
    body.fxp-trading-journal-page .kpi-grid > .kpi-card:nth-child(7) {
        grid-column: span 4;
        height: 112px;
    }

    body.fxp-trading-journal-page .kpi-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 9px;
        width: 100%;
        min-height: 63px;
    }

    body.fxp-trading-journal-page .kpi-top > span {
        order: 2;
        display: block;
        width: 100%;
        min-height: 22px;
        overflow: visible;
        color: #b6c1d3;
        font-size: 10px;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body.fxp-trading-journal-page .kpi-grid > .kpi-card:first-child .kpi-top > span {
        font-size: 0;
    }

    body.fxp-trading-journal-page .kpi-grid > .kpi-card:first-child .kpi-top > span::after {
        content: "Total P/L";
        font-size: 10px;
    }

    body.fxp-trading-journal-page .kpi-top .animated-icon {
        order: 1;
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    body.fxp-trading-journal-page .kpi-grid > .kpi-card > strong {
        margin-top: 3px;
        font-size: 19px;
        line-height: 1.1;
        white-space: nowrap;
    }

    body.fxp-trading-journal-page .kpi-grid > .kpi-card > small {
        width: 100%;
        margin-top: 7px;
        color: #aab5c7;
        font-size: 9px;
        line-height: 1.2;
        white-space: normal;
    }

    body.fxp-trading-journal-page .journal-dashboard-grid {
        display: block;
        width: 100%;
        margin-top: 0;
    }

    body.fxp-trading-journal-page .journal-dashboard-left {
        display: block;
        width: 100%;
    }

    body.fxp-trading-journal-page .analytics-row {
        display: block;
        width: 100%;
        margin: 0 0 24px;
    }

    body.fxp-trading-journal-page .journal-dashboard-grid > .pair-calendar-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100%;
        margin: 16px 0 22px !important;
    }

    body.fxp-trading-journal-page .pair-calendar-row > .journal-performance-two-column {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px;
        width: 100%;
        min-width: 0;
    }

    body.fxp-trading-journal-page .pair-calendar-row > .journal-performance-two-column > .journal-card {
        height: auto !important;
        min-height: 94px;
        padding: 0 0 6px;
        border-radius: 12px;
    }

    body.fxp-trading-journal-page .journal-performance-two-column .card-header {
        min-height: 0;
        padding: 9px 12px;
    }

    body.fxp-trading-journal-page .journal-performance-two-column .pair-list,
    body.fxp-trading-journal-page .journal-performance-two-column #recentProfitableTrades {
        padding: 0 10px 6px;
    }

    body.fxp-trading-journal-page .journal-performance-two-column .pair-list:has(> .empty-small),
    body.fxp-trading-journal-page .journal-performance-two-column #recentProfitableTrades:has(> .empty-small) {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.fxp-trading-journal-page .pair-calendar-row > .calendar-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    /* =========================================================
    EQUITY CURVE — RESTORED ON MOBILE
    ========================================================= */

    body.fxp-trading-journal-page .equity-card {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 14px !important;
        padding: 0 0 10px !important;
        overflow: hidden;
        border-radius: 16px;
    }

    body.fxp-trading-journal-page .equity-card .card-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        min-height: 65px;
        padding: 0 15px !important;
    }

    body.fxp-trading-journal-page .equity-card .card-header h3 {
        font-size: 15px !important;
    }

    body.fxp-trading-journal-page .equity-card .card-header span {
        font-size: 11px !important;
    }

    body.fxp-trading-journal-page .equity-card .equity-chart {
        position: relative;
        display: block !important;
        width: 100%;
        height: 185px !important;
        min-height: 185px;
        padding: 8px 10px !important;
        box-sizing: border-box;
    }

    body.fxp-trading-journal-page .equity-card .equity-plot-container {
        position: relative;
        display: block !important;
        width: 100%;
        height: 100% !important;
        min-height: 0;
        overflow: hidden;
    }

    body.fxp-trading-journal-page .equity-card .equity-svg {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    body.fxp-trading-journal-page .equity-card .equity-empty {
        font-size: 11px !important;
        text-align: center;
    }

    body.fxp-trading-journal-page .equity-card .equity-footer {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px 7px;
        min-height: 43px;
        padding: 8px 13px !important;
        font-size: 10px !important;
    }

    body.fxp-trading-journal-page .equity-card .equity-footer strong {
        font-size: 11px !important;
        margin-right: 10px;
    }

    body.fxp-trading-journal-page .r-card {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: 332px;
        margin: 0;
        padding: 0 0 10px;
        border: 1px solid #1d2b42;
        border-radius: 17px;
        background: linear-gradient(155deg, #0b1423, #070d18);
    }

    body.fxp-trading-journal-page .r-card .card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 76px;
        padding: 0 17px;
        border-bottom: 0;
    }

    body.fxp-trading-journal-page .r-card .card-header > div {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    body.fxp-trading-journal-page .r-card .card-header > div::before {
        content: "";
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        margin-right: 12px;
        background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232d82ff' d='M11 2a10 10 0 1 0 10 10H11z'/%3E%3Cpath fill='%234b91ff' d='M13 2v8h8A10 10 0 0 0 13 2z'/%3E%3C/svg%3E");
    }

    body.fxp-trading-journal-page .r-card .card-header h3 {
        margin: 0;
        font-size: 0;
    }

    body.fxp-trading-journal-page .r-card .card-header h3::before {
        content: "Performance Overview";
        color: #f3f6fc;
        font-size: 17px;
        font-weight: 700;
    }

    body.fxp-trading-journal-page .r-card .card-header > div > span {
        display: none;
    }

    body.fxp-trading-journal-page .r-card .card-header::after {
        content: "";
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #0c1a32 no-repeat center / 24px 24px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233783ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19h16M6 16v-5h3v5M11 16V6h3v10M16 16v-8h3v8'/%3E%3C/svg%3E");
    }

    body.fxp-trading-journal-page .r-card .r-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        align-items: center;
        gap: 0;
        height: 245px;
        padding: 8px 22px 24px;
    }

    body.fxp-trading-journal-page .r-card .r-donut {
        width: min(206px, 38vw);
        height: min(206px, 38vw);
        justify-self: center;
    }

    body.fxp-trading-journal-page .r-card .r-donut-ring::after {
        inset: 42px;
    }

    body.fxp-trading-journal-page .r-card .r-center strong {
        font-size: 38px;
    }

    body.fxp-trading-journal-page .r-card .r-center span {
        margin-top: 7px;
        font-size: 14px;
    }

    body.fxp-trading-journal-page .r-card .r-legend {
        min-width: 0;
        gap: 15px;
        padding-left: 22px;
        border-left: 1px solid #172338;
    }

    body.fxp-trading-journal-page .r-card .r-item {
        grid-template-columns: 14px minmax(0, 1fr) auto;
        gap: 8px;
        font-size: 14px;
        white-space: nowrap;
    }

    body.fxp-trading-journal-page .r-card .r-item strong {
        font-size: 15px;
    }

    body.fxp-trading-journal-page .r-card .legend-dot {
        width: 14px;
        height: 14px;
    }

    body.fxp-trading-journal-page .history-card:has(.trade-table .empty-table) {
        min-height: 185px;
        margin: 0 0 24px;
        overflow: hidden;
        border: 1px solid #1b2940;
        border-radius: 17px;
        background: linear-gradient(155deg, #0b1423, #070d18);
    }

    body.fxp-trading-journal-page .history-card:has(.trade-table .empty-table) .trade-history-header,
    body.fxp-trading-journal-page .history-card:has(.trade-table .empty-table) .trade-table thead {
        display: none;
    }

    body.fxp-trading-journal-page .history-card:has(.trade-table .empty-table) .trade-table-wrap,
    body.fxp-trading-journal-page .history-card:has(.trade-table .empty-table) .trade-table,
    body.fxp-trading-journal-page .history-card:has(.trade-table .empty-table) .trade-table tbody,
    body.fxp-trading-journal-page .history-card:has(.trade-table .empty-table) .trade-table tr {
        display: block;
        width: 100%;
        min-width: 0;
        overflow: visible;
        border: 0;
    }

    body.fxp-trading-journal-page .history-card:has(.trade-table .empty-table) .empty-table {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        width: 100%;
        height: 183px;
        padding: 20px;
        border: 0;
        color: #9daac0 !important;
        font-size: 0;
        text-align: center;
        white-space: normal;
    }

    body.fxp-trading-journal-page .history-card:has(.trade-table .empty-table) .empty-table::before {
        content: "";
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
        background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%232b4368' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 6h28l12 12v23H13z'/%3E%3Cpath d='M41 6v13h12M21 27h21M21 35h15M21 43h10'/%3E%3Ccircle cx='47' cy='48' r='11' fill='%23080f1c'/%3E%3Cpath d='M47 42v7l4 2'/%3E%3C/svg%3E");
    }

    body.fxp-trading-journal-page .history-card:has(.trade-table .empty-table) .empty-table::after {
        content: "No trades found for the selected filters";
        font-size: 14px;
    }
}

@media (max-width: 430px) {
    body.fxp-trading-journal-page .fxp-mobile-header-content {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0 8px;
        padding-right: 12px;
        padding-left: 12px;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content .fxp-dashboard-title {
        gap: 7px;
        width: min(100%, 165px);
        font-size: 21px;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content .fxp-dashboard-title::before {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content .fxp-journal-share-button {
        min-width: 94px;
        min-height: 44px;
        padding: 0 10px;
        font-size: 12px;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content .fxp-journal-add-trade-button {
        min-width: 138px;
        min-height: 47px;
        padding: 0 12px;
        font-size: 12px;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content #accountFilterWrap {
        width: 150px;
    }

    body.fxp-trading-journal-page .fxp-mobile-header-content #accountFilter {
        height: 47px !important;
        min-height: 47px;
        padding: 0 11px;
        font-size: 12px;
    }

    body.fxp-trading-journal-page .journal-main {
        padding-right: 14px;
        padding-left: 14px;
    }

    body.fxp-trading-journal-page .journal-global-filters {
        margin-bottom: 20px;
    }

    body.fxp-trading-journal-page .journal-global-filters .journal-filter-button {
        height: 36px !important;
        min-height: 36px;
        padding: 0 10px;
        font-size: 11px;
    }

    body.fxp-trading-journal-page .kpi-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 22px;
    }

    body.fxp-trading-journal-page .kpi-grid > .kpi-card {
        height: 145px;
        padding: 9px 5px 7px;
        border-radius: 12px;
    }

    body.fxp-trading-journal-page .kpi-grid > .kpi-card:nth-child(n+5):nth-child(-n+6),
    body.fxp-trading-journal-page .kpi-grid > .kpi-card:nth-child(7) {
        height: 108px;
    }

    body.fxp-trading-journal-page .kpi-top {
        min-height: 59px;
        gap: 7px;
    }

    body.fxp-trading-journal-page .kpi-top > span {
        font-size: 9px;
    }

    body.fxp-trading-journal-page .kpi-top .animated-icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    body.fxp-trading-journal-page .kpi-grid > .kpi-card > strong {
        font-size: 16px;
    }

    body.fxp-trading-journal-page .kpi-grid > .kpi-card > small {
        font-size: 8px;
    }

    body.fxp-trading-journal-page .journal-mobile-date-row {
        gap: 8px;
        margin-bottom: 22px;
    }

    body.fxp-trading-journal-page .journal-mobile-date-row .journal-date-filter {
        padding-right: 9px;
        padding-left: 9px;
        border-radius: 12px;
    }

    body.fxp-trading-journal-page .journal-mobile-date-row .journal-date-filter > span {
        font-size: 10px;
    }

    body.fxp-trading-journal-page .journal-mobile-date-row .date-control {
        font-size: 12px;
    }

    body.fxp-trading-journal-page .r-card {
        min-height: 300px;
    }

    body.fxp-trading-journal-page .r-card .card-header {
        min-height: 62px;
        padding: 0 12px;
    }

    body.fxp-trading-journal-page .r-card .card-header > div::before {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
        margin-right: 8px;
    }

    body.fxp-trading-journal-page .r-card .card-header h3::before {
        font-size: 14px;
    }

    body.fxp-trading-journal-page .r-card .card-header::after {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        background-size: 20px 20px;
    }

    body.fxp-trading-journal-page .r-card .r-content {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        height: 224px;
        padding: 8px 10px 18px;
    }

    body.fxp-trading-journal-page .r-card .r-donut {
        width: min(150px, 36vw);
        height: min(150px, 36vw);
    }

    body.fxp-trading-journal-page .r-card .r-donut-ring::after {
        inset: 31px;
    }

    body.fxp-trading-journal-page .r-card .r-center strong {
        font-size: 30px;
    }

    body.fxp-trading-journal-page .r-card .r-center span {
        font-size: 11px;
    }

    body.fxp-trading-journal-page .r-card .r-legend {
        gap: 12px;
        padding-left: 12px;
    }

    body.fxp-trading-journal-page .r-card .r-item {
        grid-template-columns: 10px minmax(0, 1fr) auto;
        gap: 5px;
        font-size: 10px;
    }

    body.fxp-trading-journal-page .r-card .r-item strong {
        font-size: 11px;
    }

    body.fxp-trading-journal-page .r-card .legend-dot {
        width: 10px;
        height: 10px;
    }
}


/* =========================================================
   FXPOSSIBLE — TRADING JOURNAL MOBILE ACCOUNT FILTER
   Theme-aware button, dropdown and hover states.
   Desktop remains untouched.
========================================================= */

@media (max-width: 760px) {

    /* DARK THEME */
    html[data-theme="dark"] body.fxp-trading-journal-page
    .fxp-mobile-header-content #accountFilter,
    html:not([data-theme="light"]) body.fxp-trading-journal-page
    .fxp-mobile-header-content #accountFilter {

        background: #101b2d !important;
        background-image: none !important;
        color: #edf3ff !important;
        border: 1px solid #293b55 !important;
        box-shadow: none !important;
    }

    html[data-theme="dark"] body.fxp-trading-journal-page
    .fxp-mobile-header-content #accountFilter:hover,
    html:not([data-theme="light"]) body.fxp-trading-journal-page
    .fxp-mobile-header-content #accountFilter:hover {

        background: #192941 !important;
        background-image: none !important;
        border-color: #3b659b !important;
        color: #ffffff !important;
    }

    html[data-theme="dark"] body.fxp-trading-journal-page
    #accountFilterMenu,
    html:not([data-theme="light"]) body.fxp-trading-journal-page
    #accountFilterMenu {

        background: #101b2d !important;
        color: #edf3ff !important;
        border: 1px solid #293b55 !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .4) !important;
    }

    html[data-theme="dark"] body.fxp-trading-journal-page
    #accountFilterMenu .journal-filter-option,
    html:not([data-theme="light"]) body.fxp-trading-journal-page
    #accountFilterMenu .journal-filter-option {

        background: transparent !important;
        color: #e5edfa !important;
    }

    html[data-theme="dark"] body.fxp-trading-journal-page
    #accountFilterMenu .journal-filter-option:hover,
    html:not([data-theme="light"]) body.fxp-trading-journal-page
    #accountFilterMenu .journal-filter-option:hover {

        background: #1c2d46 !important;
        color: #ffffff !important;
    }

    /* LIGHT THEME */
    html[data-theme="light"] body.fxp-trading-journal-page
    .fxp-mobile-header-content #accountFilter,
    html[data-theme="light"] body.fxp-trading-journal-page
    .fxp-mobile-header-content #accountFilter:hover,
    html[data-theme="light"] body.fxp-trading-journal-page
    .fxp-mobile-header-content #accountFilter:focus,
    html[data-theme="light"] body.fxp-trading-journal-page
    .fxp-mobile-header-content #accountFilter:active {

        background: #ffffff !important;
        background-image: none !important;
        color: #17243a !important;
        border: 1px solid #cbd7e6 !important;
        box-shadow: 0 2px 7px rgba(20, 40, 70, .06) !important;
    }

    html[data-theme="light"] body.fxp-trading-journal-page
    .fxp-mobile-header-content #accountFilter:hover {

        background: #edf4ff !important;
        border-color: #8aaddd !important;
        color: #123d78 !important;
    }

    html[data-theme="light"] body.fxp-trading-journal-page
    .fxp-mobile-header-content #accountFilter :is(
        .journal-filter-label,
        .journal-filter-chevron
    ) {

        color: #17243a !important;
    }

    /* LIGHT THEME DROPDOWN */
    html[data-theme="light"] body.fxp-trading-journal-page
    #accountFilterMenu {

        background: #ffffff !important;
        background-image: none !important;
        color: #17243a !important;
        border: 1px solid #d5dfeb !important;
        box-shadow: 0 12px 30px rgba(20, 40, 70, .14) !important;
    }

    html[data-theme="light"] body.fxp-trading-journal-page
    #accountFilterMenu .journal-filter-option {

        background: transparent !important;
        color: #26364d !important;
    }

    html[data-theme="light"] body.fxp-trading-journal-page
    #accountFilterMenu .journal-filter-option:hover {

        background: #edf4ff !important;
        color: #164b91 !important;
    }

    html[data-theme="light"] body.fxp-trading-journal-page
    #accountFilterMenu .journal-filter-option.selected {

        background: #e5efff !important;
        color: #174d91 !important;
    }

    html[data-theme="light"] body.fxp-trading-journal-page
    #accountFilterMenu .journal-filter-option-text {

        color: inherit !important;
    }

    html[data-theme="light"] body.fxp-trading-journal-page
    #accountFilterMenu .journal-filter-option input {

        accent-color: #2878e8 !important;
    }
}

/* ============================================================
   FXPOSSIBLE — MOBILE PERFORMANCE OVERVIEW TITLE
   Theme-aware title contrast
   Desktop remains untouched
============================================================ */

@media (max-width: 760px) {

    /* DARK THEME */
    html[data-theme="dark"]
    body.fxp-trading-journal-page
    .r-card .card-header h3::before {

        color: #f3f6fc !important;
    }

    /* LIGHT THEME */
    html[data-theme="light"]
    body.fxp-trading-journal-page
    .r-card .card-header h3::before {

        color: #17243a !important;
    }

    /* Ensure the title remains readable during interaction */
    html[data-theme="light"]
    body.fxp-trading-journal-page
    .r-card .card-header h3 {

        color: #17243a !important;
    }

    html[data-theme="dark"]
    body.fxp-trading-journal-page
    .r-card .card-header h3 {

        color: #f3f6fc !important;
    }
}
