@media (max-width: 1900px) {
    .main {
        grid-template-columns: 52px 1.18fr 1fr;
        gap: 10px;
        padding: 12px;
    }
}

@media (max-width: 1600px) {
    .main {
        grid-template-columns: 52px 1.05fr 1fr;
        gap: 10px;
        padding: 10px;
    }

    .main>.panel .panel-head {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 8px;
    }

    .main>.panel .filters {
        flex: 1 1 100%;
    }

    .main>.panel .panel-tools {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
        align-items: center;
    }

    .main>.panel .market-search {
        width: 100%;
    }

    .main>.panel .market-search__input {
        width: 100%;
        max-width: none;
    }

    .right-split {
        grid-template-columns: 1fr .92fr;
        row-gap: 12px;
    }

    .right-left {
        padding-right: 10px;
    }

    .right-trade {
        border-left: 1px solid var(--border);
        border-top: 0;
        padding-left: 10px;
        padding-top: 0;
    }

    .right-trade .trade-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .right-trade .trade-row .price-row {
        width: 100%;
    }

    .right-trade .trade-row .price-row .price {
        flex: 1 1 0;
        min-width: 0;
    }

    .right-trade .trade-row .toggle {
        width: 100%;
        justify-content: stretch;
    }

    .right-trade .trade-row .toggle .pill {
        flex: 1 1 0;
        text-align: center;
    }

    .right-trade .trade-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1280px) {
    .main {
        grid-template-columns: 52px 1.1fr .95fr;
        gap: 10px;
        padding: 12px;
    }

    .market-search__input {
        width: 180px;
        max-width: 34vw;
    }

    .right-split {
        grid-template-columns: 1fr .92fr;
    }

    .m95p-tableWrap {
        height: 560px;
        max-height: 560px;
    }

    .m95p-main {
        grid-template-columns: 64% 34%;
        column-gap: 14px;
        padding: 12px;
    }

    .m95p-main.m95p-main--new {
        grid-template-columns: 52px minmax(0, 1fr);
        column-gap: 10px;
    }

    .m95p-main--new .m95p-overviewRow {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

        .m95p-mini__heroRow {
            flex-wrap: wrap;
        }
}

@media (max-width: 1100px) {
    .main {
        grid-template-columns: 52px 1fr;
    }
.m95p-providerSidebar {
    position: sticky;
    top: 14px;
    align-self: stretch;
    height: unset;
}
    .right {
        grid-column: 1 / -1;
    }

    .right-split {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .right-left {
        padding-right: 0;
    }

    .right-trade {
        border-left: 0;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 12px;
    }

    .panel {
        min-height: auto;
    }

    .panel-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .market-search__input {
        width: 220px;
        max-width: 48vw;
    }

    .m95p-tableWrap {
        height: 520px;
        max-height: 520px;
    }

    .m95p-main {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .m95p-main.m95p-main--new {
        grid-template-columns: 1fr;
    }

    .m95p-main--new .m95p-providerSidebar {
        position: static;
        top: auto;
    }

    .m95p-main--new .m95p-providerSidebar .m95p-providerSelect .m95p-card__head {
        display: flex;
    }

    .m95p-main--new .m95p-providerSidebar .m95p-providerStrip {
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .m95p-main--new .m95p-overviewRow {
        grid-template-columns: 1fr;
    }

    .m95p-mini__hero {
        grid-template-columns: 1fr;
    }

    .m95p-mini__heroStats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .m95p-right {
        position: static;
        top: auto;
    }

    .m95p-right.right-graff>.m95p-card {
        height: auto;
    }
}

@media (max-width: 900px) {
    .header {
        height: auto;
        min-height: var(--header-h);
        padding: 10px 12px;
        flex-wrap: nowrap;
        gap: 10px;
        position: relative;
    }

    .brand {
        min-width: 0;
    }

    .header>.nav,
    .header-right {
        display: none;
    }

    .m95h-burger {
        display: inline-flex;
        margin-left: auto;
    }

    .m95h-mobile {
        display: block;
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        width: min(380px, calc(100vw - 24px));
        padding: 14px;
        border-radius: 14px;
        border: 1px solid var(--border);
        background: rgba(12, 17, 26, .96);
        box-shadow: var(--shadow);
        z-index: 50;
    }

    .main {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .sidebar {
        order: -1;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        padding: 8px;
        height: 54px;
    }

    .panel.left,
    .panel.right {
        grid-column: 1;
    }

    .right-body {
        grid-template-columns: 1fr;
    }

    .market-search {
        width: 100%;
    }

    .market-search__input {
        width: 100%;
        max-width: none;
    }

    .m95p-tabs {
        flex-wrap: wrap;
        align-items: center;
    }

    .m95p-tabs__left {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .m95p-tabs__right {
        margin-left: 0;
    }

    .m95p-table {
        min-width: 840px;
    }

    .m95p-market {
        min-width: 300px;
    }

    .m95p-tableWrap {
        height: 56vh;
        max-height: 56vh;
    }

    .m95p-card__head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .m95p-mini__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .m95p-mini__identity {
        grid-template-columns: 56px minmax(0, 1fr);
        align-items: start;
    }

    .m95p-mini__identityMain {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .m95p-mini__heroActions {
        justify-content: stretch;
    }

    .m95p-mini__heroActions .btn {
        flex: 1 1 0;
        min-width: 0;
    }

    .m95p-mini__name {
        font-size: 26px;
    }

    .m95p-mini__heroStats {
        grid-template-columns: 1fr;
    }

    .m95p-mini__balance {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .m95p-provider {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .m95p-provider__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .m95p-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1400px) {

    .m95p-mini__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .m95p-mini__actions .btn {
        width: 100%;
    }
}

@media screen and (max-width: 782px) {
    body.home.admin-bar {
        --adminbar-h: 46px;
    }
}

@media (max-width: 1100px) {
    .main {
        padding: 8px;
        gap: 8px;
    }

    .panel-head,
    .right-split,
    .right-left-content,
    .right-trade-content,
    .main>.panel.right .tabs,
    .trade-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .trade-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trade-top,
    .trade-actions {
        gap: 8px;
    }

    .trade-actions .btn {
        width: 100%;
    }

    .market-card {
        grid-template-columns: 40px 1fr;
        gap: 10px;
    }

    .m-cta {
        grid-column: 1 / -1;
        align-items: stretch;
    }

    .price-row {
        width: 100%;
    }

    .price {
        flex: 1 1 0;
        min-width: 0;
    }

    .m95p-tools {
        flex-wrap: wrap;
    }

    .m95p-search {
        min-width: 100%;
    }

    .m95p-table {
        min-width: 0;
    }

    .m95p-market {
        min-width: 0;
    }

    .m95p-tableWrap {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .m95p-tools {
        padding: 10px;
        gap: 8px;
    }

    .m95p-select {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        justify-content: center;
    }

    .m95p-tabs {
        padding: 10px;
        gap: 8px;
    }

    .m95p-tab {
        flex: 1 1 calc(50% - 4px);
        justify-content: space-between;
        min-width: 0;
    }

    .m95p-tabs__right {
        width: 100%;
        justify-content: flex-end;
    }

    .m95p-mini__stats {
        grid-template-columns: 1fr;
    }

    .m95p-metrics {
        grid-template-columns: 1fr;
    }

    .m95p-table thead {
        display: none;
    }

    .m95p-table,
    .m95p-table tbody,
    .m95p-table tr,
    .m95p-table td {
        display: block;
        width: 100%;
    }

    .m95p-table tbody tr {
        border: 1px solid var(--border);
        border-radius: 14px;
        margin: 10px 0;
        background: rgba(12, 17, 26, .30);
        overflow: hidden;
        box-shadow: none;
    }

    .m95p-table tbody tr.m95p-emptyRow,
    .m95p-table tbody tr.m95p-loaderRow {
        border: 0;
        border-radius: 0;
        margin: 0;
        background: transparent;
    }

    .m95p-table tbody tr.m95p-emptyRow td,
    .m95p-table tbody tr.m95p-loaderRow td {
        padding: 12px 0;
    }

    .m95p-table td {
        min-height: 42px;
        padding: 8px 12px;
        border: 0;
        display: grid;
        grid-template-columns: 98px 1fr;
        gap: 10px;
        align-items: center;
        box-shadow: inset 0 -1px rgba(255, 255, 255, .06);
    }

    .m95p-table td:last-child {
        box-shadow: none;
    }

    .m95p-table td::before {
        content: '';
        color: var(--muted);
        font-size: 11px;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(1)::before {
        content: 'Market';
    }

    [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(2)::before {
        content: 'Outcome';
    }

    [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(3)::before {
        content: 'Shares';
    }

    [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(4)::before {
        content: 'Avg';
    }

    [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(5)::before {
        content: 'Current';
    }

    [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(6)::before {
        content: 'Initial';
    }

    [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(7)::before {
        content: 'To Win';
    }

    [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(8)::before {
        content: 'Value';
    }

    [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(9)::before {
        content: 'Actions';
    }

    [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(1)::before {
        content: 'Market';
    }

    [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(2)::before {
        content: 'Side';
    }

    [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(3)::before {
        content: 'Price';
    }

    [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(4)::before {
        content: 'Size';
    }

    [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(5)::before {
        content: 'Status';
    }

    [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(6)::before {
        content: 'Created';
    }

    [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(7)::before {
        content: 'Actions';
    }

    [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(1)::before {
        content: 'Type';
    }

    [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(2)::before {
        content: 'Market';
    }

    [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(3)::before {
        content: 'Outcome';
    }

    [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(4)::before {
        content: 'Size';
    }

    [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(5)::before {
        content: 'Price';
    }

    [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(6)::before {
        content: 'P&L';
    }

    [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(7)::before {
        content: 'Time';
    }

    .m95p-actionsCol,
    .m95p-actionsCol .m95p-trade,
    .m95p-actionsCol .m95p-orderCancel {
        width: 100%;
    }

    .m95p-market {
        align-items: flex-start;
    }

    .m95p-market__title {
        line-height: 1.25;
    }

    .m95p-providerStrip {
        padding: 10px;
    }
}

@media (max-width: 720px) {
    .main>.panel.right {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        min-height: 0;
        height: 70vh;
        max-height: 70vh;
        background: var(--panel2);
        border-radius: 16px 16px 0 0;
        border-bottom: 0;
        transform: translateY(calc(100% + 12px));
        opacity: 0;
        pointer-events: none;
        transition: transform .22s ease, opacity .2s ease;
        overflow: auto;
    }

    body.m95-mobile-right-open .main>.panel.right {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .m95-mobile-sheet-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9998;
        border: 0;
        margin: 0;
        padding: 0;
        background: rgba(5, 9, 15, .55);
        cursor: pointer;
    }

    .m95-mobile-sheet-backdrop[hidden] {
        display: none !important;
    }

    .main>.panel.right .right-split {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .main>.panel.right .right-trade {
        border-top: 1px solid var(--border);
        border-left: 0;
        padding-top: 10px;
        padding-left: 0;
    }

    body.m95-mobile-right-open {
        overflow: hidden;
    }
}

@media (max-width: 1100px) {
    .m95-sheet-close {
        display: inline-grid;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .main>.panel.right .tabs {
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }

    .main>.panel.right .tabs .tab {
        flex: 0 1 auto;
    }

    .main>.panel.right {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main>.panel.right .right-split {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        row-gap: 8px;
        padding: 10px;
    }

    body.home .panel.right .right-split {
        grid-template-rows: none;
    }

    .main>.panel.right .right-left {
        padding-right: 0;
        overflow: visible;
        min-height: auto;
    }

    .main>.panel.right .right-left-content {
        padding-top: 8px;
        overflow: visible;
    }

    .main>.panel.right .right-trade {
        padding-top: 8px;
        overflow: visible;
        min-height: auto;
    }

    .main>.panel.right .right-trade-content {
        padding-top: 8px;
        overflow: visible;
    }

    .main>.panel.right .right-rules.rules,
    .main>.panel.right .rules.rules--split,
    .main>.panel.right .rules.rules--split .rules__body {
        max-height: none;
        min-height: auto;
        overflow: visible;
    }
}

@media (max-width: 700px) {

    button.btn.btn-icon.m95-sheet-close {
        display: inline-grid;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .market-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 8px;
        align-items: start;
    }

    .market-card>div:nth-child(2) {
        min-width: 0;
    }

    .market-card .m-ico {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .market-card .m-title {
        min-width: 0;
        overflow-wrap: anywhere;
        line-height: 1.25;
    }

    .market-card .m-sub {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 8px;
    }

    .market-card .m-sub .badge {
        width: 100%;
        min-width: 0;
        justify-content: space-between;
        padding: 6px 8px;
    }

    .market-card .m-sub .m-sub__time {
        display: inline-flex;
    }

    .market-card .m-cta {
        grid-column: 1 / -1;
    }

    .market-card:has(.m-sub .m-sub__time) .m-cta .badge {
        display: none;
    }
}

@media (max-width: 560px) {

    .header-right .m95p-user__sub {
        max-width: 190px;
    }

    .main>.panel.right .tabs {
        flex-wrap: wrap;
    }

    .main>.panel.right .tab,
    .main>.panel.right .trade-tab {
        flex: 1 1 auto;
        justify-content: center;
    }

    .m95p-tab {
        padding: 8px;
        gap: 6px;
    }

    .m95p-pill {
        font-size: 11px;
        padding: 2px 6px;
    }

    .m95p-main {
        padding: 8px;
    }

    .m95p-select,
    .m95p-tab {
        flex: 1 1 100%;
    }

    .m95p-table td {
        grid-template-columns: 86px 1fr;
        padding: 8px 10px;
    }

    .m95p-provider__actions {
        flex-wrap: wrap;
    }

    .m95p-provider__actions .btn {
        flex: 1 1 calc(50% - 4px);
    }

    .m95p-mini__actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .panel-head {
        align-items: stretch;
        gap: 10px;
    }

    .filters {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .chip {
        padding: 8px 9px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .panel-tools {
        width: 100%;
        grid-template-columns: 1fr auto auto;
        gap: 8px;
        align-items: center;
    }

    .panel-tools .market-search {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    .panel-tools .market-search__input {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .panel-tools .badge.all_markets {
        justify-self: start;
    }

    .panel-tools #btnRefreshMarkets {
        justify-self: end;
    }
}

@media (max-width: 500px) {
    .filters-toggle {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .panel-head .filters,
    .panel-head .panel-tools {
        display: none;
    }

    .panel-head.is-open .filters {
        display: grid;
    }

    .panel-head.is-open .panel-tools {
        display: grid;
    }
}

@media (max-width: 1200px) {
    .container.m95-profile .m95p-tableWrap {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .container.m95-profile .m95p-table {
        min-width: 0;
    }

    .container.m95-profile .m95p-table thead {
        display: none;
    }

    .container.m95-profile .m95p-table,
    .container.m95-profile .m95p-table tbody,
    .container.m95-profile .m95p-table tr,
    .container.m95-profile .m95p-table td {
        display: block;
        width: 100%;
    }

    .container.m95-profile .m95p-table tbody {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-content: start;
        padding: 10px;
    }

    .container.m95-profile .m95p-table tbody tr {
        border: 1px solid var(--border);
        border-radius: 14px;
        margin: 0;
        background: rgba(12, 17, 26, .30);
        overflow: hidden;
        box-shadow: none;
        height: auto;
    }

    .container.m95-profile .m95p-table tbody tr.m95p-emptyRow,
    .container.m95-profile .m95p-table tbody tr.m95p-loaderRow {
        grid-column: 1 / -1;
        border: 0;
        border-radius: 0;
        margin: 0;
        background: transparent;
    }

    .container.m95-profile .m95p-table tbody tr.m95p-emptyRow td,
    .container.m95-profile .m95p-table tbody tr.m95p-loaderRow td {
        padding: 12px 0;
    }

    .container.m95-profile .m95p-table td {
        min-height: 42px;
        height: auto;
        padding: 8px 12px;
        border: 0;
        display: grid;
        grid-template-columns: 98px 1fr;
        gap: 10px;
        align-items: center;
        box-shadow: inset 0 -1px rgba(255, 255, 255, .06);
    }

    .container.m95-profile .m95p-table td.m95p-market {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .container.m95-profile .m95p-table td.m95p-market::before {
        flex: 0 0 98px;
    }

    .container.m95-profile .m95p-table td.m95p-market .m95p-market__text {
        min-width: 0;
    }

    .container.m95-profile .m95p-table td.m95p-market .m95p-market__title {
        overflow-wrap: anywhere;
    }

    .container.m95-profile .m95p-table td:last-child {
        box-shadow: none;
    }

    .container.m95-profile .m95p-table td::before {
        content: '';
        color: var(--muted);
        font-size: 11px;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .container.m95-profile [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(1)::before {
        content: 'Market';
    }

    .container.m95-profile [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(2)::before {
        content: 'Outcome';
    }

    .container.m95-profile [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(3)::before {
        content: 'Shares';
    }

    .container.m95-profile [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(4)::before {
        content: 'Avg';
    }

    .container.m95-profile [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(5)::before {
        content: 'Current';
    }

    .container.m95-profile [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(6)::before {
        content: 'Initial';
    }

    .container.m95-profile [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(7)::before {
        content: 'To Win';
    }

    .container.m95-profile [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(8)::before {
        content: 'Value';
    }

    .container.m95-profile [data-tab-panel="positions"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(9)::before {
        content: 'Actions';
    }

    .container.m95-profile [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(1)::before {
        content: 'Market';
    }

    .container.m95-profile [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(2)::before {
        content: 'Side';
    }

    .container.m95-profile [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(3)::before {
        content: 'Price';
    }

    .container.m95-profile [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(4)::before {
        content: 'Size';
    }

    .container.m95-profile [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(5)::before {
        content: 'Status';
    }

    .container.m95-profile [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(6)::before {
        content: 'Created';
    }

    .container.m95-profile [data-tab-panel="orders"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(7)::before {
        content: 'Actions';
    }

    .container.m95-profile [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(1)::before {
        content: 'Type';
    }

    .container.m95-profile [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(2)::before {
        content: 'Market';
    }

    .container.m95-profile [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(3)::before {
        content: 'Outcome';
    }

    .container.m95-profile [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(4)::before {
        content: 'Size';
    }

    .container.m95-profile [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(5)::before {
        content: 'Price';
    }

    .container.m95-profile [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(6)::before {
        content: 'P&L';
    }

    .container.m95-profile [data-tab-panel="activity"] .m95p-table tbody tr:not(.m95p-emptyRow):not(.m95p-loaderRow) td:nth-child(7)::before {
        content: 'Time';
    }

    .container.m95-profile .m95p-actionsCol,
    .container.m95-profile .m95p-actionsCol .m95p-trade,
    .container.m95-profile .m95p-actionsCol .m95p-orderCancel {
        width: 100%;
    }

    .container.m95-profile .m95p-market {
        align-items: flex-start;
        min-width: 0;
    }

    .container.m95-profile .m95p-market__title {
        line-height: 1.25;
    }
}

@media (max-width: 900px) {
    .container.m95-profile .m95p-table tbody {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 801px) and (max-width: 1100px) {
    .container.m95-profile .m95p-tabs {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 8px;
    }

    .container.m95-profile .m95p-tabs__left {
        width: auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        min-width: 0;
    }

    .container.m95-profile .m95p-tab {
        flex: 0 0 auto;
        min-width: 0;
        justify-content: center;
        gap: 6px;
        padding: 8px 10px;
    }

    .container.m95-profile .m95p-tab > span:first-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .container.m95-profile .m95p-tabs__right {
        width: auto;
        margin-left: 0;
        justify-content: flex-end;
        align-self: center;
    }
}

@media (min-width: 501px) and (max-width: 800px) {
    .container.m95-profile .m95p-tabs {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 8px;
        align-items: end;
    }

    .container.m95-profile .m95p-tabs__left {
        width: auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        min-width: 0;
    }

    .container.m95-profile .m95p-tab {
        flex: 0 0 auto;
        min-width: 0;
        justify-content: center;
        gap: 6px;
        padding: 8px 10px;
    }

    .container.m95-profile .m95p-tab > span:first-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .container.m95-profile .m95p-tabs__right {
        width: auto;
        margin-left: 0;
        justify-content: flex-end;
        justify-self: end;
        align-self: end;
    }
}

@media (min-width: 601px) and (max-width: 1100px) {
    .container.m95-profile .m95p-mini__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .container.m95-profile .m95p-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 401px) and (max-width: 600px) {
    .container.m95-profile .m95p-mini__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .container.m95-profile .m95p-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 561px) and (max-width: 900px) {
    .container.m95-profile .m95p-provider {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .container.m95-profile .m95p-provider__left {
        min-width: 0;
        flex: 1 1 auto;
    }

    .container.m95-profile .m95p-provider__actions {
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    .container.m95-profile .m95p-provider__actions .btn {
        width: auto;
        white-space: nowrap;
    }
}

@media (max-width: 1100px) {

    .m95p-actions.m95p-mini__actions>* {
            flex-basis: 30% !important;
        }
    .container.m95-profile .m95p-mini__actions {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
    }

    .container.m95-profile .m95p-mini__balance {
        flex: 1 1 auto;
        min-width: 0;
        grid-column: auto;
    }

    .container.m95-profile .m95p-mini__actions .btn {
        flex: 0 0 auto;
        min-width: 108px;
        white-space: nowrap;
    }

    .container.m95-profile .m95p-left {
        order: 2;
    }

    .container.m95-profile .m95p-right {
        order: 1;
    }

}

@media (max-width: 500px) {
    .container.m95-profile .m95p-mini__stats {
        grid-template-columns: 1fr;
    }

    .container.m95-profile .m95p-mini__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .container.m95-profile .m95p-actions.m95p-mini__actions>* {
        flex-basis: 100% !important;
    }

    .container.m95-profile .m95p-mini__balance,
    .container.m95-profile .m95p-mini__actions .btn {
        width: 100%;
        min-width: 0;
    }
}

.container.m95-profile .m95p-mobile-dock {
    display: none;
}

@media (max-width: 1100px) {
    .container.m95-profile .m95p-mobile-hidden {
        display: none !important;
    }

    .container.m95-profile .m95p-main {
        padding-bottom: 76px;
    }

    .container.m95-profile .m95p-mobile-dock {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 60px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        padding: 0;
        margin: 0;
        border-top: 1px solid var(--border);
        background: rgba(12, 17, 26, .98);
        z-index: 10020;
    }

    .container.m95-profile .m95p-mobile-dock__btn {
        border: 0;
        border-right: 1px solid rgba(255, 255, 255, .06);
        background: transparent;
        color: var(--muted);
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: 10px;
        line-height: 1;
        cursor: pointer;
        padding: 4px 6px;
    }

    .container.m95-profile .m95p-mobile-dock__btn:last-child {
        border-right: 0;
    }

    .container.m95-profile .m95p-mobile-dock__btn i {
        font-size: 15px;
        line-height: 1;
    }

    .container.m95-profile .m95p-mobile-dock__btn.is-active {
        color: var(--text);
        background: rgba(185, 147, 255, .12);
    }
}