/* EO Broker mobile — header + footer only */
.dash-mobi-btn,
.dash-mobi-only,
.dash-mobile-backdrop {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --dash-sidebar-width: 0px;
        --dash-safe-bottom: 14px;
        --dash-time-axis-height: 18px;
        --dash-dock-bottom: calc(var(--dash-safe-bottom) + var(--dash-time-axis-height));
        --dash-mobi-controls-height: calc(56px + 8px + 58px);
        /* Plot ends above footer; time labels sit below the trade controls */
        --dash-axis-bottom: calc(
            var(--dash-safe-bottom)
            + var(--dash-time-axis-height)
            + var(--dash-mobi-controls-height)
        );
        --dash-chart-left-inset: 52px;
        --dash-y-axis-width: 58px;
        --dash-chart-top: 20px;
        --dash-mobi-footer: 200px;
        --dash-mobi-header: 118px;
        --dash-mobi-chart-rail-clearance: 12px;
        --dash-mobi-chart-rail-bottom: calc(
            var(--dash-safe-bottom) + var(--dash-time-axis-height) + var(--dash-mobi-controls-height) + var(--dash-mobi-chart-rail-clearance)
        );
        --dash-mobi-chart-rail-gap: 8px;
        --dash-mobi-chart-rail-offset: 0px;
    }

    .dash-dt-only {
        display: none !important;
    }

    .dash-mobi-btn,
    .dash-mobi-only {
        display: flex;
    }

    /* Keep header block at top — fixed dock was pulling asset row to bottom */
    .dash-main {
        justify-content: flex-start !important;
        width: 100%;
        pointer-events: none;
    }

    /* Left nav drawer */
    .dash-sidebar-slot {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(300px, 88vw);
        padding: 0;
        z-index: 200;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        pointer-events: none;
        visibility: hidden;
    }

    .dash-shell.is-mobile-nav-open .dash-sidebar-slot {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
    }

    .dash-sidebar-slot .dash-sidebar-float {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        box-shadow: 4px 0 28px rgba(0, 0, 0, 0.42);
        background: #1c1c2e;
        padding: 0;
        align-items: stretch;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dash-sidebar-slot .dash-sidebar-float::before {
        display: none;
    }

    .dash-sidebar-left.dash-sidebar-float {
        display: flex;
        flex-direction: column;
    }

    /* ─── MOBILE LEFT MENU (EO reference) ─── */
    .dash-mobi-nav-profile {
        position: relative;
        flex-direction: column;
        align-items: stretch;
        padding: 20px 16px 18px;
        background: #25253d;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        flex-shrink: 0;
    }

    .dash-mobi-nav-bell {
        position: absolute;
        top: 16px;
        right: 14px;
        width: 34px;
        height: 34px;
        border: none;
        border-radius: 8px;
        background: transparent;
        color: rgba(255, 255, 255, 0.72);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        font-family: inherit;
    }

    .dash-mobi-nav-bell svg {
        width: 20px;
        height: 20px;
    }

    .dash-mobi-nav-profile-main {
        display: flex;
        align-items: center;
        gap: 14px;
        padding-right: 28px;
    }

    .dash-mobi-nav-avatar-wrap {
        position: relative;
        width: 56px;
        height: 56px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dash-mobi-nav-avatar-ring {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .dash-mobi-nav-avatar {
        position: relative;
        z-index: 1;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        border: 2px solid #ec4899;
        background: linear-gradient(145deg, #f472b6 0%, #db2777 100%);
        color: #fff;
        font-size: 20px;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
    }

    .dash-mobi-nav-profile-meta {
        min-width: 0;
        flex: 1;
    }

    .dash-mobi-nav-balance {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.02em;
        font-variant-numeric: tabular-nums;
    }

    .dash-mobi-nav-balance.is-real {
        color: #00c853;
    }

    .dash-mobi-nav-balance.is-demo {
        color: #00d68f;
    }

    .dash-mobi-nav-name {
        margin-top: 4px;
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dash-mobi-nav-badges {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
    }

    .dash-mobi-nav-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 3px 8px;
        border-radius: 4px;
        line-height: 1;
    }

    .dash-mobi-nav-badge--newbie {
        background: #fff;
        color: #12121e;
    }

    .dash-mobi-nav-badge--rank {
        background: rgba(255, 255, 255, 0.08);
        color: #9494a3;
        padding: 3px 7px;
    }

    .dash-sidebar-left .dash-nav {
        flex: 1;
        min-height: 0;
        padding: 6px 0;
        display: flex;
        flex-direction: column;
    }

    .dash-sidebar-left .dash-nav-item {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 14px;
        width: 100%;
        min-height: 46px;
        padding: 10px 16px 10px 18px;
        border: none;
        border-bottom: none;
        border-radius: 0;
        background: transparent;
        color: rgba(255, 255, 255, 0.92);
        font-size: 14px;
        font-weight: 500;
        text-align: left;
        line-height: 1.25;
    }

    .dash-sidebar-left .dash-nav-item svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        stroke-width: 1.65;
        opacity: 0.88;
    }

    .dash-sidebar-left .dash-nav-item:hover {
        background: rgba(255, 255, 255, 0.04);
        color: #fff;
    }

    .dash-sidebar-left .dash-nav-item.active {
        background: #25253d;
        color: #fff;
        font-weight: 700;
    }

    .dash-sidebar-left .dash-nav-item.active::before {
        top: 0;
        bottom: 0;
        left: 0;
        width: 3px;
        border-radius: 0;
        background: #007bff;
        box-shadow: none;
    }

    .dash-sidebar-left .dash-nav-item-wrap .dash-nav-label-long {
        display: block;
        max-width: none;
        line-height: 1.35;
        white-space: normal;
    }

    .dash-mobi-nav-foot {
        flex-shrink: 0;
        flex-direction: row;
        align-items: stretch;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: #1c1c2e;
        padding: 0;
        margin-top: auto;
    }

    .dash-mobi-nav-foot-form {
        flex: 1;
        display: flex;
        min-width: 0;
        margin: 0;
    }

    .dash-mobi-nav-foot-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 72px;
        padding: 10px 8px;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.78);
        font-size: 12px;
        font-weight: 500;
        font-family: inherit;
        cursor: pointer;
        text-align: center;
    }

    .dash-mobi-nav-foot-btn svg {
        width: 22px;
        height: 22px;
        stroke-width: 1.5;
        opacity: 0.85;
    }

    .dash-mobi-nav-foot-btn:first-child {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .dash-mobi-nav-foot-btn:active {
        background: rgba(255, 255, 255, 0.04);
        color: #fff;
    }

    .dash-sidebar-collapse {
        display: none;
    }

    /* Right tools drawer — icon rail + embedded deals/trends/social */
    .dash-sidebar-slot-right {
        display: none !important;
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        width: min(calc(100vw - 48px), 348px);
        padding: 0;
        z-index: 200;
        transform: translateX(105%);
        transition: transform 0.28s ease;
        pointer-events: none;
        visibility: hidden;
    }

    .dash-shell.is-mobile-tools-open .dash-sidebar-slot-right {
        display: flex !important;
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
    }

    .dash-sidebar-slot-right .dash-sidebar-float {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.42);
        background: #131321;
        padding: 0;
        align-items: stretch;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dash-sidebar-slot-right .dash-sidebar-float::before {
        display: none;
    }

    .dash-sidebar-right.dash-sidebar-float {
        display: flex;
        flex-direction: column;
    }

    .dash-mobi-tools-shell {
        flex: 1;
        min-height: 0;
        width: 100%;
        flex-direction: row;
        align-items: stretch;
        background: #131321;
    }

    .dash-mobi-tools-rail {
        width: 52px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 14px 0 16px;
        background: #0f1019;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dash-mobi-tools-rail-spacer {
        flex: 1;
        min-height: 12px;
    }

    .dash-mobi-tools-rail-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.025);
        color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        padding: 0;
        font-family: inherit;
        transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .dash-mobi-tools-rail-btn svg {
        width: 19px;
        height: 19px;
        stroke-width: 1.65;
    }

    .dash-mobi-tools-rail-btn.is-active {
        color: #fff;
        border-color: rgba(91, 156, 255, 0.4);
        background:
            radial-gradient(ellipse 100% 80% at 28% 0%, rgba(77, 141, 255, 0.42) 0%, transparent 58%),
            linear-gradient(180deg, rgba(38, 50, 82, 0.95) 0%, rgba(24, 30, 52, 0.88) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 12px rgba(77, 141, 255, 0.22);
    }

    .dash-mobi-tools-rail-btn--close {
        color: rgba(255, 255, 255, 0.72);
    }

    .dash-mobi-tools-panel {
        flex: 1;
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: #131321;
        --deals-bg: #131321;
        --deals-tab-bg: #181825;
        --deals-muted: #9ca3af;
        --deals-line: rgba(255, 255, 255, 0.06);
        font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        -webkit-font-smoothing: antialiased;
    }

    .dash-sidebar-right .dash-nav-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 10px 14px;
        min-height: 44px;
    }

    .dash-mobile-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 180;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.25s ease;
    }

    /* Left menu — no dimmed backdrop (solid drawer only) */
    .dash-shell.is-mobile-nav-open .dash-mobile-backdrop,
    .dash-shell.is-mobile-tools-open .dash-mobile-backdrop {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }

    /* ─── HEADER ROW 1 + ASSET ROW (EO reference — polished) ─── */
    .dash-topbar {
        --mobi-bar-h: 54px;
        --mobi-bar-r: 12px;
        --mobi-divider: rgba(255, 255, 255, 0.06);
        --mobi-green: #00d68f;
        --mobi-blue: #3483ff;
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) minmax(118px, 40%) 46px;
        grid-template-areas:
            "menu balance finances tools"
            "asset asset asset asset";
        align-items: start;
        column-gap: 0;
        row-gap: 0;
        padding: 8px 8px 0;
        pointer-events: none;
        background: transparent;
        position: relative;
        isolation: isolate;
    }

    /* Single rounded header shell — glass dark bar */
    .dash-topbar::before {
        content: '';
        position: absolute;
        left: 8px;
        right: 8px;
        top: 8px;
        height: var(--mobi-bar-h);
        border-radius: var(--mobi-bar-r);
        background: linear-gradient(
            180deg,
            rgba(26, 29, 38, 0.94) 0%,
            rgba(16, 19, 28, 0.97) 100%
        );
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.38),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
        backdrop-filter: blur(18px) saturate(140%);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        z-index: 0;
        pointer-events: none;
    }

    .dash-topbar-center {
        display: contents;
    }

    .dash-topbar-row {
        display: contents;
    }

    .dash-mobi-btn {
        align-items: center;
        justify-content: center;
        width: 46px;
        height: var(--mobi-bar-h);
        border: none;
        border-radius: 0;
        background: transparent;
        color: rgba(255, 255, 255, 0.88);
        cursor: pointer;
        pointer-events: auto;
        padding: 0;
        font-family: inherit;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .dash-mobi-btn svg {
        width: 19px;
        height: 19px;
        stroke-width: 2;
    }

    .dash-mobi-btn--menu {
        grid-area: menu;
        border-right: 1px solid var(--mobi-divider);
        border-radius: var(--mobi-bar-r) 0 0 var(--mobi-bar-r);
    }

    .dash-mobi-btn--tools {
        grid-area: tools;
        border-radius: 0 var(--mobi-bar-r) var(--mobi-bar-r) 0;
    }

    .dash-finance-hub {
        display: contents;
    }

    .dash-balance-block {
        grid-area: balance;
        justify-self: stretch;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: var(--mobi-bar-h);
        padding: 0 4px;
        border: none;
        border-right: 1px solid var(--mobi-divider);
        background: transparent;
        min-width: 0;
        pointer-events: auto;
        position: relative;
        z-index: 1;
    }

    .dash-balance {
        font-size: 15px;
        font-weight: 700;
        text-align: center;
        line-height: 1.05;
        white-space: nowrap;
        letter-spacing: -0.03em;
        font-variant-numeric: tabular-nums;
    }

    .dash-balance-block.mode-real .dash-balance {
        color: #6eb4ff;
    }

    .dash-balance-block.mode-demo .dash-balance {
        color: var(--mobi-green);
    }

    .dash-mode-toggle {
        width: 100%;
        max-width: 108px;
        margin: 3px auto 0;
        min-height: 18px;
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.5);
        padding: 2px;
        gap: 0;
    }

    .dash-mode {
        font-size: 8px;
        padding: 2px 5px;
        letter-spacing: 0.06em;
        color: rgba(255, 255, 255, 0.42);
    }

    .dash-mode.active {
        color: #fff;
    }

    .dash-mode.active[data-mode="real"] {
        background: linear-gradient(180deg, #5b9aff 0%, var(--mobi-blue) 55%, #2450e0 100%);
    }

    .dash-mode.active[data-mode="demo"] {
        background: linear-gradient(180deg, #00e676 0%, #00a676 100%);
    }

    .dash-finances-btn {
        grid-area: finances;
        align-self: stretch;
        height: var(--mobi-bar-h);
        min-width: 0;
        width: 100%;
        padding: 0 8px;
        border: none;
        border-right: 1px solid var(--mobi-divider);
        border-radius: 0;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.015em;
        white-space: nowrap;
        pointer-events: auto;
        position: relative;
        z-index: 1;
        color: #fff;
        background: linear-gradient(180deg, #4590ff 0%, var(--mobi-blue) 48%, #2563eb 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    /* ─── ASSET ROW (pair centered, trophy far right) ─── */
    .dash-asset-row {
        grid-area: asset;
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        align-items: center;
        padding: 8px 8px 4px;
        pointer-events: none;
        position: relative;
        z-index: 1;
    }

    .dash-pair-chip {
        grid-column: 2;
        justify-self: center;
        width: auto;
        max-width: calc(100vw - 108px);
        min-width: 0;
        flex: none;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        justify-content: center;
        padding: 7px 12px 7px 8px;
        border-radius: 10px;
        pointer-events: auto;
        background: linear-gradient(
            180deg,
            rgba(24, 28, 38, 0.9) 0%,
            rgba(14, 17, 26, 0.95) 100%
        );
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .dash-pair-chip .dash-pair-icon {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        overflow: hidden;
        flex-shrink: 0;
    }

    .dash-pair-chip .dash-pair-icon-img {
        width: 24px;
        height: 24px;
        border-radius: 50%;
    }

    .dash-pair-chip .dash-pair-icon-flags {
        width: 24px;
        height: 24px;
        border-radius: 50%;
    }

    .dash-pair-label {
        font-size: 13px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.95);
        letter-spacing: 0.03em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 132px;
    }

    .dash-pair-chip .dash-chevron {
        width: 13px;
        height: 13px;
        color: rgba(255, 255, 255, 0.38);
        stroke-width: 2.25;
        flex-shrink: 0;
        opacity: 1;
    }

    .dash-asset-row .dash-mobi-only {
        grid-column: 3;
        justify-self: end;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        pointer-events: auto;
        border-radius: 10px;
        background: linear-gradient(145deg, #121a2a 0%, #182842 55%, #1e3558 100%);
        color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(59, 130, 246, 0.32);
        box-shadow:
            0 0 10px rgba(59, 130, 246, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .dash-asset-row .dash-mobi-only svg {
        width: 19px;
        height: 19px;
        stroke-width: 1.65;
    }

    /* ─── FOOTER (EO reference) ─── */
    .dash-bottom-dock .dash-chart-toolbar {
        display: none;
    }

    .dash-bottom-dock {
        position: fixed;
        left: 0;
        right: 0;
        bottom: var(--dash-dock-bottom);
        padding: 0 8px;
        gap: 0;
        z-index: 30;
        pointer-events: none;
    }

    .dash-footer {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        pointer-events: auto;
    }

    .dash-footer .dash-control-box {
        width: calc(50% - 4px);
        height: 56px;
        min-width: 0;
        flex: 1 1 calc(50% - 4px);
        display: flex;
        flex-direction: row;
        align-items: stretch;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: linear-gradient(
            180deg,
            rgba(28, 32, 46, 0.92) 0%,
            rgba(16, 18, 30, 0.96) 100%
        );
        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
        overflow: hidden;
    }

    .dash-invest {
        order: 1;
    }

    .dash-duration {
        order: 2;
    }

    .dash-step-side {
        width: 34px;
        flex: none;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-bottom: none !important;
        background: transparent;
        color: rgba(255, 255, 255, 0.42);
        font-size: 18px;
        font-weight: 300;
        line-height: 1;
        font-family: inherit;
        cursor: pointer;
        padding: 0;
    }

    .dash-invest .dash-step-side:first-child {
        border-radius: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.07);
    }

    .dash-invest .dash-step-side:last-child {
        border-radius: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.07);
    }

    .dash-duration .dash-step-side:first-child {
        border-radius: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.07);
    }

    .dash-duration .dash-step-side:last-child {
        border-radius: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.07);
    }

    .dash-duration .dash-step-side svg {
        width: 12px;
        height: 12px;
        stroke-width: 2.5;
        opacity: 0.55;
    }

    .dash-control-body {
        flex: 1;
        min-width: 0;
        padding: 0 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .dash-control-value {
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        line-height: 1.05;
        letter-spacing: -0.02em;
        font-variant-numeric: tabular-nums;
    }

    .dash-control-value--timer {
        font-size: 15px;
        letter-spacing: 0.02em;
    }

    .dash-control-label {
        font-size: 10px;
        font-weight: 400;
        margin-top: 2px;
        color: rgba(255, 255, 255, 0.4);
        line-height: 1;
        text-transform: lowercase;
    }

    /* SELL / BUY row */
    .dash-trade-combo {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        height: 58px;
        min-width: 0;
        max-width: none;
        border-radius: 12px;
        overflow: hidden;
        border: none;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dash-btn-sell,
    .dash-btn-buy {
        flex: 1;
        min-width: 0;
    }

    .dash-btn-sell {
        background: #c62828 !important;
        border-right: 1px solid rgba(0, 0, 0, 0.18) !important;
    }

    .dash-btn-buy {
        background: #00a676 !important;
    }

    .dash-btn-pattern {
        width: 44%;
    }

    .dash-btn-pattern--sell {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='58' viewBox='0 0 40 58'%3E%3Cpath d='M2 12 L20 24 L38 12' fill='none' stroke='rgba(0,0,0,0.22)' stroke-width='2.5'/%3E%3Cpath d='M2 28 L20 40 L38 28' fill='none' stroke='rgba(0,0,0,0.16)' stroke-width='2.5'/%3E%3Cpath d='M2 44 L20 56 L38 44' fill='none' stroke='rgba(0,0,0,0.1)' stroke-width='2.5'/%3E%3C/svg%3E");
    }

    .dash-btn-pattern--buy {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='58' viewBox='0 0 40 58'%3E%3Cpath d='M2 24 L20 12 L38 24' fill='none' stroke='rgba(0,0,0,0.22)' stroke-width='2.5'/%3E%3Cpath d='M2 40 L20 28 L38 40' fill='none' stroke='rgba(0,0,0,0.16)' stroke-width='2.5'/%3E%3Cpath d='M2 56 L20 44 L38 56' fill='none' stroke='rgba(0,0,0,0.1)' stroke-width='2.5'/%3E%3C/svg%3E");
    }

    .dash-btn-text {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
    }

    .dash-btn-title {
        font-size: 17px;
        font-weight: 800;
        letter-spacing: 0.12em;
        line-height: 1;
        color: #fff;
    }

    .dash-btn-payout {
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        color: rgba(255, 255, 255, 0.95);
        opacity: 1;
    }

    .dash-slide-panel[data-side="left"] {
        left: 0;
        transform: translateX(-100%);
    }

    .dash-slide-panel[data-side="right"] {
        right: 0;
        transform: translateX(100%);
    }

    .dash-slide-panel.is-open[data-side="left"],
    .dash-slide-panel.is-open[data-side="right"] {
        transform: translateX(0);
    }

    /* ─── FULL-SCREEN SLIDES (mobile — except deals in tools drawer) ─── */
    .dash-slide-panel:not(.is-deals-mode):not(.is-trends-mode):not(.is-social-mode) {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        height: 100dvh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: #1a1b26;
        z-index: 220;
    }

    .dash-slide-panel.is-open:not(.is-deals-mode):not(.is-trends-mode):not(.is-social-mode) {
        transform: translateX(0) !important;
    }

    .dash-slide-panel.is-assets-mode,
    .dash-slide-panel.is-profile-mode,
    .dash-slide-panel.is-finances-mode,
    .dash-slide-panel.is-plans-mode,
    .dash-slide-panel.is-help-mode,
    .dash-slide-panel.is-settings-mode,
    .dash-slide-panel.is-invite-mode,
    .dash-slide-panel.is-battles-mode {
        width: 100% !important;
        max-width: 100% !important;
    }

    .dash-slide-panel.is-assets-mode .dash-slide-header,
    .dash-slide-panel.is-profile-mode .dash-slide-header,
    .dash-slide-panel.is-finances-mode .dash-slide-header,
    .dash-slide-panel.is-plans-mode .dash-slide-header,
    .dash-slide-panel.is-help-mode .dash-slide-header,
    .dash-slide-panel.is-settings-mode .dash-slide-header,
    .dash-slide-panel.is-invite-mode .dash-slide-header,
    .dash-slide-panel.is-battles-mode .dash-slide-header {
        display: none !important;
    }

    .dash-slide-panel.is-open:not(.is-profile-mode):not(.is-help-mode):not(.is-settings-mode):not(.is-invite-mode):not(.is-battles-mode):not(.is-assets-mode):not(.is-finances-mode):not(.is-plans-mode) .dash-slide-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: #1a1b26;
    }

    .dash-slide-panel.is-open:not(.is-profile-mode):not(.is-help-mode):not(.is-settings-mode):not(.is-invite-mode):not(.is-battles-mode):not(.is-assets-mode):not(.is-finances-mode):not(.is-plans-mode) .dash-slide-header h2 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: -0.025em;
    }

    .dash-slide-panel.is-open:not(.is-profile-mode):not(.is-help-mode):not(.is-settings-mode):not(.is-invite-mode):not(.is-battles-mode):not(.is-assets-mode):not(.is-finances-mode):not(.is-plans-mode) .dash-slide-close {
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.55);
        font-size: 24px;
        line-height: 1;
    }

    .dash-slide-panel.is-open .dash-slide-body {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    /* ─── ASSETS (full-screen mobile) ─── */
    .dash-slide-panel.is-assets-mode .dash-slide-body {
        padding: 0;
        background: #1a1b26;
    }

    .dash-slide-panel.is-assets-mode .assets-panel {
        height: 100%;
        min-height: 0;
        background: #1a1b26;
        color: #fff;
        font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        -webkit-font-smoothing: antialiased;
    }

    .dash-slide-panel.is-assets-mode .assets-header {
        display: grid;
        grid-template-columns: 40px 1fr 40px;
        align-items: center;
        padding: 16px 12px 10px;
        flex-shrink: 0;
        background: #1a1b26;
    }

    .dash-slide-panel.is-assets-mode .assets-header-title {
        margin: 0;
        grid-column: 2;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: -0.025em;
        color: #fff;
    }

    .dash-slide-panel.is-assets-mode .assets-header-close {
        grid-column: 3;
        justify-self: end;
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.55);
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        padding: 0;
    }

    .dash-slide-panel.is-assets-mode .assets-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: #181825;
        overflow: visible;
    }

    .dash-slide-panel.is-assets-mode .assets-tab {
        position: relative;
        padding: 12px 8px;
        border: none;
        background: transparent;
        color: #9ca3af;
        font-size: 13px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
    }

    .dash-slide-panel.is-assets-mode .assets-tab.active {
        color: #fff;
        background:
            radial-gradient(ellipse 85% 120% at 22% 0%, rgba(77, 141, 255, 0.32) 0%, transparent 58%),
            linear-gradient(180deg, rgba(42, 54, 88, 0.95) 0%, rgba(30, 38, 62, 0.75) 45%, rgba(26, 27, 38, 0) 100%);
    }

    .dash-slide-panel.is-assets-mode .assets-tab.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 12%;
        right: 12%;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, #5b9cff 20%, #c5dcff 50%, #5b9cff 80%, transparent);
    }

    .dash-slide-panel.is-assets-mode .assets-search-wrap {
        margin: 10px 14px;
    }

    .dash-slide-panel.is-assets-mode .assets-search {
        padding: 11px 36px 11px 14px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: #12151f;
        font-size: 13px;
    }

    .dash-slide-panel.is-assets-mode .assets-search::placeholder {
        color: #6b7280;
    }

    .dash-slide-panel.is-assets-mode .assets-filters-wrap {
        margin: 0 0 8px;
    }

    .dash-slide-panel.is-assets-mode .assets-filters-wrap::before {
        background: linear-gradient(90deg, rgba(24, 24, 37, 0.98) 0%, rgba(24, 24, 37, 0) 100%);
    }

    .dash-slide-panel.is-assets-mode .assets-filters-wrap::after {
        background: linear-gradient(270deg, rgba(24, 24, 37, 0.98) 0%, rgba(24, 24, 37, 0) 100%);
    }

    .dash-slide-panel.is-assets-mode .assets-filters {
        margin: 0 14px;
        padding: 0 0 2px;
        gap: 6px;
    }

    .dash-slide-panel.is-assets-mode .assets-filter {
        padding: 7px 12px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: #12151f;
        color: #9ca3af;
        font-size: 12px;
        font-weight: 500;
    }

    .dash-slide-panel.is-assets-mode .assets-filter.active {
        color: #fff;
        border-color: rgba(91, 156, 255, 0.35);
        background: rgba(59, 102, 255, 0.12);
    }

    .dash-slide-panel.is-assets-mode .assets-list-head {
        padding: 8px 14px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        color: #9ca3af;
        font-size: 11px;
    }

    .dash-slide-panel.is-assets-mode .assets-list {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .dash-slide-panel.is-assets-mode .assets-row {
        padding: 10px 14px;
        gap: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dash-slide-panel.is-assets-mode .assets-row.is-selected {
        background: rgba(59, 102, 255, 0.08);
    }

    .dash-slide-panel.is-assets-mode .assets-row.is-selected::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: #3b66ff;
    }

    .dash-slide-panel.is-assets-mode .assets-row-name {
        font-size: 13px;
        font-weight: 500;
    }

    .dash-slide-panel.is-assets-mode .assets-row-payout {
        font-size: 13px;
        font-weight: 600;
        color: #5b9cff;
    }

    .dash-slide-panel.is-assets-mode .assets-footer {
        padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        background: #1a1b26;
        flex-shrink: 0;
    }

    .dash-slide-panel.is-assets-mode .assets-btn {
        padding: 14px 12px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
    }

    .dash-slide-panel.is-assets-mode .assets-btn-secondary {
        background: #2c3144;
    }

    .dash-slide-panel.is-assets-mode .assets-btn-primary {
        background: #3b66ff;
    }

    /* Simple panels (Education, Battles, etc.) */
    .dash-slide-panel.is-open .dash-panel-section {
        flex: 1;
        overflow-y: auto;
        padding: 16px 14px calc(20px + env(safe-area-inset-bottom, 0px));
        -webkit-overflow-scrolling: touch;
    }

    .dash-slide-panel.is-deals-mode,
    .dash-slide-panel.is-trends-mode,
    .dash-slide-panel.is-social-mode {
        display: none !important;
    }

    /* ─── RECENT DEALS (mobile right tools — EO reference) ─── */
    .dash-mobi-tools-panel .deals-panel,
    .dash-mobi-tools-panel .trends-panel,
    .dash-mobi-tools-panel .social-panel {
        height: 100%;
        min-height: 0;
        background: var(--deals-bg);
        color: #fff;
    }

    .dash-mobi-tools-panel .deals-header {
        display: block;
        padding: 18px 14px 6px;
        background: var(--deals-bg);
        flex-shrink: 0;
    }

    .dash-mobi-tools-panel .deals-header-spacer,
    .dash-mobi-tools-panel .deals-header-close {
        display: none !important;
    }

    .dash-mobi-tools-panel .deals-header-title {
        margin: 0;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: -0.025em;
        line-height: 1.2;
        color: #fff;
    }

    .dash-mobi-tools-panel .deals-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        padding: 0 12px;
        background: var(--deals-tab-bg);
        flex-shrink: 0;
        border-bottom: 1px solid var(--deals-line);
    }

    .dash-mobi-tools-panel .deals-tab {
        position: relative;
        border: none;
        border-radius: 0;
        padding: 11px 4px 12px;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.15;
        color: var(--deals-muted);
        background: transparent;
        cursor: pointer;
        font-family: inherit;
    }

    .dash-mobi-tools-panel .deals-tab.is-active {
        color: #fff;
        font-weight: 600;
        border-radius: 10px 10px 0 0;
        background:
            radial-gradient(ellipse 85% 130% at 22% 0%, rgba(77, 141, 255, 0.36) 0%, transparent 58%),
            linear-gradient(180deg, rgba(42, 54, 88, 0.98) 0%, rgba(30, 38, 62, 0.82) 38%, rgba(19, 19, 33, 0) 100%);
    }

    .dash-mobi-tools-panel .deals-tab.is-active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 10%;
        right: 10%;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, #5b9cff 18%, #c5dcff 50%, #5b9cff 82%, transparent);
        box-shadow: 0 0 10px rgba(91, 156, 255, 0.5);
    }

    .dash-mobi-tools-panel .deals-scroll,
    .dash-mobi-tools-panel .trends-scroll,
    .dash-mobi-tools-panel .social-scroll {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0;
        background: var(--deals-bg);
        -webkit-overflow-scrolling: touch;
    }

    .dash-mobi-tools-panel .deals-scroll::-webkit-scrollbar,
    .dash-mobi-tools-panel .trends-scroll::-webkit-scrollbar {
        width: 3px;
    }

    .dash-mobi-tools-panel .deals-scroll::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .dash-mobi-tools-panel .deals-section {
        border-top: none;
        padding-bottom: 0;
    }

    .dash-mobi-tools-panel .deals-section:first-child {
        padding-top: 6px;
    }

    .dash-mobi-tools-panel .deals-section + .deals-section {
        margin-top: 4px;
        padding-top: 0;
    }

    .dash-mobi-tools-panel .deals-date {
        margin: 0;
        padding: 16px 14px 8px;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.3;
        color: var(--deals-muted);
        border-bottom: none;
    }

    .dash-mobi-tools-panel .deals-section .deals-row:first-of-type {
        padding-top: 4px;
    }

    .dash-mobi-tools-panel .deals-section .deals-row:last-of-type {
        padding-bottom: 8px;
        border-bottom: none;
    }

    .dash-mobi-tools-panel .deals-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--deals-line);
    }

    .dash-mobi-tools-panel .deals-row-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
    }

    .dash-mobi-tools-panel .deals-arrow {
        width: 10px;
        height: 10px;
        flex-shrink: 0;
    }

    .dash-mobi-tools-panel .deals-arrow svg {
        width: 10px;
        height: 10px;
    }

    .dash-mobi-tools-panel .deals-arrow--up {
        color: #00c853;
    }

    .dash-mobi-tools-panel .deals-arrow--down {
        color: #ff4d6d;
    }

    .dash-mobi-tools-panel .deals-row-main {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .dash-mobi-tools-panel .deals-name {
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        line-height: 1.2;
        letter-spacing: -0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dash-mobi-tools-panel .deals-time {
        font-size: 11px;
        font-weight: 400;
        line-height: 1.2;
        color: var(--deals-muted);
        font-variant-numeric: tabular-nums;
    }

    .dash-mobi-tools-panel .deals-row-side {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
        flex-shrink: 0;
        min-width: 76px;
        text-align: right;
    }

    .dash-mobi-tools-panel .deals-profit {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        color: #fff;
        min-height: 17px;
        font-variant-numeric: tabular-nums;
        letter-spacing: -0.01em;
    }

    .dash-mobi-tools-panel .deals-profit--pending {
        opacity: 0;
    }

    .dash-mobi-tools-panel .deals-stake {
        font-size: 11px;
        font-weight: 400;
        line-height: 1.2;
        color: var(--deals-muted);
        font-variant-numeric: tabular-nums;
    }

    .dash-mobi-tools-panel .deals-empty,
    .dash-mobi-tools-panel .deals-loading,
    .dash-mobi-tools-panel .trends-loading {
        padding: 28px 16px;
        font-size: 13px;
        line-height: 1.45;
        color: var(--deals-muted);
        text-align: center;
    }

    .dash-mobi-tools-panel .trends-intervals {
        padding: 8px 12px;
        background: var(--deals-tab-bg);
        border-bottom: 1px solid var(--deals-line);
    }

    .dash-mobi-tools-panel .social-global-stats {
        background: var(--deals-tab-bg);
        border-bottom: 1px solid var(--deals-line);
    }

    .dash-invest-modal {
        left: 0;
        right: 0;
        padding-bottom: calc(var(--dash-mobi-footer) + env(safe-area-inset-bottom, 0px));
    }

    /* ─── LEFT CHART RAIL (auto-scale + settings) ─── */
    .dash-mobi-chart-rail {
        position: absolute;
        left: 4px;
        bottom: calc(var(--dash-mobi-chart-rail-bottom) + var(--dash-mobi-chart-rail-offset));
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: var(--dash-mobi-chart-rail-gap);
        width: 44px;
        height: auto;
        padding: 0;
        z-index: 32;
        pointer-events: none;
    }

    .dash-mobi-chart-btn {
        pointer-events: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 11px;
        background: rgba(10, 12, 20, 0.62);
        color: rgba(255, 255, 255, 0.88);
        cursor: pointer;
        padding: 0;
        font-family: inherit;
        box-shadow:
            0 2px 10px rgba(0, 0, 0, 0.42),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
    }

    .dash-mobi-chart-btn svg {
        width: 24px;
        height: 24px;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
    }

    .dash-mobi-chart-btn:active {
        transform: scale(0.94);
    }

    .dash-mobi-chart-btn:active,
    .dash-mobi-chart-btn.is-active {
        color: #fff;
        background: rgba(18, 22, 34, 0.88);
        border-color: rgba(255, 255, 255, 0.22);
    }

    .dash-mobi-chart-menu {
        position: absolute;
        left: 6px;
        bottom: calc(
            var(--dash-mobi-chart-rail-bottom)
            + var(--dash-mobi-chart-rail-offset)
            + 44px
            + var(--dash-mobi-chart-rail-gap)
            + 44px
            + 10px
        );
        display: flex;
        flex-direction: column;
        min-width: 196px;
        padding: 6px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: linear-gradient(180deg, rgba(24, 28, 40, 0.96) 0%, rgba(12, 14, 22, 0.98) 100%);
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: 34;
        pointer-events: auto;
    }

    .dash-mobi-chart-menu[hidden] {
        display: none !important;
    }

    .dash-mobi-chart-menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 40px;
        padding: 8px 10px;
        border: none;
        border-radius: 8px;
        background: transparent;
        color: rgba(255, 255, 255, 0.92);
        font-size: 13px;
        font-weight: 500;
        font-family: inherit;
        text-align: left;
        cursor: pointer;
    }

    .dash-mobi-chart-menu-item svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        color: rgba(255, 255, 255, 0.55);
    }

    .dash-mobi-chart-menu-item:active,
    .dash-mobi-chart-menu-item:hover {
        background: rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 380px) {
    .dash-topbar {
        grid-template-columns: 42px minmax(0, 1fr) minmax(100px, 38%) 42px;
    }

    .dash-topbar::before {
        left: 6px;
        right: 6px;
    }

    .dash-mobi-btn {
        width: 42px;
    }

    .dash-finances-btn {
        font-size: 13px;
        padding: 0 6px;
    }

    .dash-balance {
        font-size: 14px;
    }

    .dash-mode-toggle {
        max-width: 100px;
    }

    .dash-asset-row {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        padding: 8px 6px 4px;
    }

    .dash-asset-row .dash-mobi-only {
        width: 40px;
        height: 40px;
    }

    .dash-pair-label {
        max-width: 108px;
        font-size: 12px;
    }

    .dash-footer .dash-control-box {
        height: 52px;
    }

    .dash-trade-combo {
        height: 54px;
    }

    :root {
        --dash-mobi-controls-height: calc(52px + 8px + 54px);
    }

    .dash-control-value {
        font-size: 15px;
    }

    .dash-control-value--timer {
        font-size: 14px;
    }

    .dash-btn-title {
        font-size: 16px;
    }

    .dash-btn-payout {
        font-size: 12px;
    }

    /* Finances header modal — centered over chart */
    #tp-finances-modal.dash-chart-modal {
        z-index: 320;
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .dash-chart-modal-dialog--finances {
        max-width: min(392px, calc(100vw - 32px));
        border-radius: 18px;
    }

    .dash-chart-modal-dialog--finances .dash-chart-modal-header {
        padding: 22px 44px 18px;
    }

    .dash-finances-actions {
        gap: 12px;
        padding: 0 20px 20px;
    }

    .dash-finances-card {
        min-height: 148px;
        padding: 22px 12px 20px;
        gap: 14px;
    }

    .dash-finances-desc {
        margin: 0 24px 16px;
        font-size: 12px;
    }

    .dash-finances-history {
        padding: 0 20px 24px;
        font-size: 13px;
    }

    /* Trade monitor — minimal, faded, under trophy icon */
    .tp-trade-monitors.tp-trade-monitors--mobile {
        gap: 3px;
        opacity: 0.52;
        pointer-events: none;
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor {
        text-align: right;
        transform-origin: top right;
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor > * {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor__compact-top {
        display: flex;
        align-items: baseline;
        justify-content: flex-end;
        gap: 5px;
        margin-bottom: 1px;
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor__timer {
        font-size: 10px;
        min-width: 0;
        color: rgba(255, 255, 255, 0.72);
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor__timer.is-urgent {
        color: rgba(255, 154, 154, 0.85);
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor__timer.is-settling {
        color: rgba(255, 217, 102, 0.8);
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor__outcome-value {
        font-size: 10px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.58);
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor.is-winning .tp-trade-monitor__outcome-value {
        color: rgba(94, 236, 196, 0.72);
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor.is-losing .tp-trade-monitor__outcome-value {
        color: rgba(255, 138, 138, 0.72);
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor__prices {
        justify-content: flex-end;
        margin-bottom: 2px;
        gap: 3px;
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor__live {
        font-size: 10px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.68);
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor__prices-sep {
        font-size: 8px;
        color: rgba(255, 255, 255, 0.28);
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor__strike {
        font-size: 8px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.38);
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor__progress {
        height: 1px;
        max-width: 68px;
        margin-left: auto;
        opacity: 0.4;
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor__progress-bar {
        opacity: 0.65;
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor--buy .tp-trade-monitor__live.is-above-strike,
    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor--sell .tp-trade-monitor__live.is-below-strike {
        color: rgba(94, 236, 196, 0.78);
    }

    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor--buy .tp-trade-monitor__live.is-below-strike,
    .tp-trade-monitors.tp-trade-monitors--mobile .tp-trade-monitor--sell .tp-trade-monitor__live.is-above-strike {
        color: rgba(255, 138, 138, 0.78);
    }
}
