.desktop-contract .contract-page,
.pc-spot .spot-page {
    --workspace-gap: 12px;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding: var(--workspace-gap) var(--workspace-gap) 0;
}

:is(.desktop-contract, .pc-spot) .App {
    width: 100%;
    height: auto;
    overflow: visible;
}

:is(.desktop-contract, .pc-spot) .css-tq0shg > .customer-pc-footer {
    margin-block-start: auto;
}

.pc-trading-workspace {
    display: grid;
    grid-template-columns: minmax(0, 20fr) minmax(0, 55fr) minmax(0, 25fr);
    gap: var(--workspace-gap);
    align-items: stretch;
}

.spot-workspace {
    grid-template-areas: "markets chart trades" "order-form order-form order-form";
}

.spot-workspace .contract-markets { grid-area: markets; }
.spot-quote { grid-area: chart; }
.spot-workspace .spot-desktop-trades { grid-area: trades; }
.pc-spot .spot-workspace .spot-desktop-form { grid-area: order-form; min-width: 0; margin-top: 0; }

.contract-panel {
    min-width: 0;
    border: 1px solid var(--customer-border);
    border-radius: 6px;
    background: var(--customer-surface);
    overflow: hidden;
}

.pc-trading-workspace > :is(.contract-markets, .contract-ticket, .spot-desktop-trades) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.pc-trading-workspace .pc-trading-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #a7b7c6 transparent;
}

.pc-trading-scroll:focus-visible {
    outline: 2px solid var(--customer-accent);
    outline-offset: -2px;
}

@media (min-width: 961px) {
    /* Let the chart set the row height while the side panels scroll internally. */
    .pc-trading-workspace .pc-trading-scroll { contain: size; }
}

.contract-panel__heading,
.contract-quote__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    min-height: 70px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--customer-border);
}

.contract-panel__heading h2,
.contract-quote__heading h1 {
    margin: 0;
    color: var(--customer-ink);
    font-weight: 700;
}

.contract-panel__heading h2 { font-size: 15px; }
.contract-quote__heading h1 { font-size: 21px; line-height: 1.2; }
.contract-caption, .contract-currency { color: var(--customer-muted); font-size: 12px; }
.contract-currency { padding: 2px 6px; border: 1px solid var(--customer-border); border-radius: 4px; }

.contract-quote__heading { justify-content: flex-start; flex-wrap: wrap; }
.contract-quote__price { display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.contract-quote__price strong { font-size: 19px; line-height: 1.2; }
.contract-quote__price span { font-size: 12px; font-weight: 600; }
.contract-quote__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}
.contract-quote__stats dt { font-size: 11px; font-weight: 400; color: var(--customer-muted); }
.contract-quote__stats dd { margin: 2px 0 0; font-size: 12px; font-weight: 600; }
.contract-workspace__chart { display: block; width: 100%; height: 600px; border: 0; }

.pc-trading-workspace .contract-markets .symbol_list {
    height: auto;
    margin-top: 0;
}

:is(.desktop-contract, .pc-spot) .contract-markets .sy_list_box {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) minmax(0, .75fr);
    align-items: center;
    gap: 6px;
    height: auto;
    min-height: 36px;
    padding: 6px 10px;
    border: 0;
    border-bottom: 1px solid var(--customer-border);
}

:is(.desktop-contract, .pc-spot) .contract-markets .sy_list_box > div {
    float: none;
    width: auto;
    height: auto;
    line-height: 1.35;
    overflow-wrap: anywhere;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.contract-markets .usdt-shadow:first-child {
    position: sticky;
    top: 0;
    background: #f2f7fb;
    z-index: 1;
}

.contract-markets .usdt-shadow a { display: block; }
.contract-markets .usdt-shadow a:hover { background: #edf5fb; }
.contract-ticket__fields { display: grid; gap: 16px; align-content: start; padding: 10px 20px; }
.contract-field { display: grid; gap: 8px; min-width: 0; }
.contract-field__label { margin: 0; font-size: 13px; font-weight: 600; }
.contract-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.desktop-contract .contract-options button {
    display: grid;
    place-content: center;
    gap: 1px;
    width: 100%;
    height: auto;
    min-height: 44px;
    margin: 0;
    padding: 5px 3px;
    float: none;
    border: 1px solid var(--customer-border);
    border-radius: 5px;
    background: #f6f9fc;
    color: var(--customer-ink);
    font: 600 12px/1.25 Inter, system-ui, sans-serif;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.desktop-contract .contract-options--amount button { min-height: 33px; font-size: 11px; }
.desktop-contract .contract-options button:disabled {
    background: #eef1f4;
    color: #65717d;
    cursor: not-allowed;
}
.contract-options small { color: var(--customer-muted); font-size: 11px; }
.desktop-contract .contract-options button[aria-pressed="true"] {
    border-color: var(--customer-accent);
    background: #e8f2fa;
    color: var(--customer-accent);
}
.contract-amount { display: flex; align-items: center; gap: 6px; border: 1px solid var(--customer-border); border-radius: 5px; padding-inline: 10px; }
.contract-amount:focus-within { border-color: var(--customer-accent); }
.contract-amount input { flex: 1; width: 100%; min-width: 0; height: 38px; border: 0; background: transparent; }
.contract-amount span, .contract-balance { color: var(--customer-muted); font-size: 12px; }
.contract-balance { display: flex; flex-wrap: wrap; gap: 5px 12px; justify-content: space-between; border-top: 1px solid var(--customer-border); padding-top: 12px; }
.contract-balance strong { color: var(--customer-ink); }
.contract-actions { display: flex; gap: 8px; }
.desktop-contract .contract-action {
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 39px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.contract-action--up { background: #147456; }
.contract-action--down { background: #b33043; }
.contract-action--login { background: var(--customer-accent); }

.contract-ticket__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 10px;
    margin: 2px 0 0;
    padding: 13px 14px;
    border: 1px solid #dce8f3;
    border-radius: 7px;
    background: #eef5fa;
}
.contract-ticket__summary > div {
    min-width: 0;
}
.contract-ticket__summary dt {
    color: #556b82;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}
.contract-ticket__summary dd {
    margin: 4px 0 0;
    color: #142b42;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.contract-ticket__summary [data-side="up"] {
    color: #09714c;
}
.contract-ticket__summary [data-side="down"] {
    color: #b82f46;
}

.desktop-contract .layui-layer.contract-confirmation {
    border: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    background: #fff !important;
    color: var(--customer-ink);
    box-shadow: 0 24px 60px rgba(9, 26, 44, 0.24), 0 0 0 1px rgba(15, 42, 70, 0.08) !important;
}
.desktop-contract .contract-confirmation .layui-layer-content {
    overflow: visible !important;
}
.desktop-contract .contract-confirmation .buy-box {
    padding: 0;
    background: #fff;
}
.contract-confirm {
    --confirm-tone: #147456;
    --confirm-tone-strong: #0f6248;
    --confirm-tone-soft: #eefaf4;
    --confirm-tone-border: rgba(20, 116, 86, 0.2);
    --confirm-tone-shadow: rgba(20, 116, 86, 0.24);
}
.contract-confirm[data-side="down"] {
    --confirm-tone: #c23348;
    --confirm-tone-strong: #9f2537;
    --confirm-tone-soft: #fdf2f4;
    --confirm-tone-border: rgba(194, 51, 72, 0.2);
    --confirm-tone-shadow: rgba(194, 51, 72, 0.24);
}
.contract-confirm__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--confirm-tone), var(--confirm-tone-strong));
}
.contract-confirm__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 14px;
}
.contract-confirm__title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.contract-confirm__title {
    margin: 0;
    color: #0f2236;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.contract-confirm__tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eaf3fb;
    color: var(--customer-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}
.contract-confirm__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #f2f6fa;
    color: #5b6e82;
    cursor: pointer;
    outline: none;
    transition: background-color 0.16s ease, color 0.16s ease;
}
.contract-confirm__close:hover {
    background: #e4edf5;
    color: #0f2236;
}
.contract-confirm__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 22px 12px;
    padding: 14px 16px;
    border: 1px solid var(--confirm-tone-border);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--confirm-tone-soft) 0%, #f8fbfe 100%);
}
.contract-confirm__pair-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.contract-confirm__pair {
    display: flex;
    align-items: center;
    gap: 8px;
}
.contract-confirm__pair .desktop-pair-icon {
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    object-fit: contain;
}
.contract-confirm__pair strong {
    color: #0f2236;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.contract-confirm__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.contract-confirm__side-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1;
}
.contract-confirm__period-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid rgba(15, 42, 70, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.88);
    color: #243b53;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}
.contract-confirm__quote-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}
.contract-confirm__quote-label {
    color: #65778a;
    font-size: 11.5px;
    font-weight: 600;
}
.contract-confirm__live-price {
    color: #0f2236;
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.contract-confirm__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 22px 12px;
}
.contract-confirm__metric {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid #e3ecf4;
    border-radius: 10px;
    background: #f8fafd;
}
.contract-confirm__metric--profit {
    border-color: rgba(20, 116, 86, 0.2);
    background: #f1fbf6;
}
.contract-confirm__metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #64778b;
    font-size: 12px;
    font-weight: 600;
}
.contract-confirm__metric-head em {
    font-style: normal;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(20, 116, 86, 0.12);
    color: #137959;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.contract-confirm__metric-head em:empty {
    display: none;
}
.contract-confirm__metric-val {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #0f2236;
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.contract-confirm__metric-val small {
    color: #6b7d90;
    font-size: 11.5px;
    font-weight: 700;
}
.contract-confirm__profit {
    color: #12805c;
}
.contract-confirm__profit small {
    color: #157a59;
}
.contract-confirm__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 22px 18px;
    padding: 10px 14px;
    border: 1px dashed #d6e3ef;
    border-radius: 9px;
    background: #f9fbfd;
    font-size: 12.5px;
}
.contract-confirm__meta span {
    color: #64778b;
    font-weight: 500;
}
.contract-confirm__meta strong {
    color: #1c3148;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.contract-confirm__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px 20px;
}
.contract-confirm__cancel {
    flex: 0 0 108px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #d5e2ee;
    border-radius: 9px;
    background: #fff;
    color: #465a6f;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.contract-confirm__cancel:hover {
    border-color: #bccfe0;
    background: #f4f8fc;
    color: #0f2236;
}
.desktop-contract .contract-confirmation-action.contract-confirm__submit {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 8px 16px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--confirm-tone) 0%, var(--confirm-tone-strong) 100%);
    box-shadow: 0 8px 18px var(--confirm-tone-shadow);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    outline: none;
    transition: filter 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.desktop-contract .contract-confirmation-action.contract-confirm__submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #fff;
}
.contract-confirm :is(button, a):is(:focus, :focus-visible, :active) {
    outline: none;
}

.pc-trading-orders {
    display: flex;
    flex: none;
    flex-direction: column;
    min-height: 270px;
    max-height: 420px;
    margin: var(--workspace-gap) 0;
}
.pc-trading-orders .order-top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 45px;
    height: auto;
    padding: 0 12px;
    background: var(--customer-surface);
    border-top: 0;
    border-bottom: 1px solid var(--customer-border);
}
.pc-trading-orders .order-top-span,
.pc-trading-orders .refresh-icon {
    width: auto;
    height: auto;
    min-height: 42px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--customer-muted);
    line-height: 1.25;
    cursor: pointer;
}
.customer-home .pc-trading-orders .order-top-select {
    box-shadow: inset 0 -2px var(--customer-accent);
    color: var(--customer-accent);
    font-weight: 700;
}
.pc-trading-orders .refresh-icon {
    display: grid;
    place-items: center;
    width: 42px;
    margin-inline-start: auto;
    color: var(--customer-accent);
    font-size: 18px;
}
.pc-trading-orders .refresh-icon path { stroke: currentColor; }
.pc-trading-orders .order-main {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    background: #fff;
    scrollbar-width: thin;
}
.pc-trading-orders .pc-trading-empty {
    position: absolute;
    inset-inline: 12px;
    top: 50%;
    margin: 0;
    padding: 0;
    color: var(--customer-muted);
    text-align: center;
    transform: translateY(-50%);
}
.desktop-contract .contract-orders .table-box { overflow-x: auto; }
.desktop-contract .contract-orders .order-main-table { margin: 0; color: var(--customer-ink); }
.desktop-contract .contract-orders .table :is(td, th) {
    padding: 9px 10px;
    border-color: var(--customer-border);
    white-space: nowrap;
}
.desktop-contract .contract-orders thead td { color: var(--customer-muted) !important; background: #f2f7fb; }
.contract-orders [hidden] { display: none !important; }
.contract-empty { margin: 0; padding: 20px 12px; color: var(--customer-muted); text-align: center; }
.contract-orders .table-history-more { height: auto; padding: 0; }
.contract-orders #more-box,
.contract-orders .contract-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 10px 12px;
    color: var(--customer-accent);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.contract-orders .contract-more-link:hover { background: #f2f7fb; }

@media (max-width: 960px) {
    .contract-workspace { grid-template-columns: minmax(0, 1fr) 265px; }
    .contract-markets { grid-column: 1 / -1; }
    .spot-workspace {
        grid-template-columns: minmax(0, 1fr) minmax(0, 265px);
        grid-template-areas: "markets markets" "chart trades" "order-form order-form";
    }
    .spot-workspace .contract-markets { grid-column: auto; }
    .pc-trading-workspace .contract-markets .symbol_list { max-height: 165px; }
    .pc-trading-workspace :is(.contract-ticket, .spot-desktop-trades) .pc-trading-scroll { max-height: 550px; }
}

@media (max-width: 760px) {
    .contract-workspace { grid-template-columns: minmax(0, 1fr); }
    .spot-workspace {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "markets" "chart" "order-form" "trades";
    }
}

.mobile-spot .content_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-color: var(--customer-border);
    padding-inline: 14px;
}

.mobile-spot .content_title_l {
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
}

.mobile-spot .content_title_r { width: auto; }
.mobile-spot #marketbox { color: var(--customer-ink); }
.mobile-spot .content_title img { width: 20px; height: 20px; object-fit: contain; }
.mobile-spot .contentbox { padding: 10px 10px 0; }
.mobile-spot .tradebox {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(100px, 1fr);
    gap: 8px;
    height: auto;
    align-items: start;
}

.mobile-spot :is(.tradebox_l, .tradebox_r) {
    width: auto;
    height: auto;
    min-width: 0;
    float: none;
    background: #fff;
    border: 1px solid var(--customer-border);
    border-radius: 7px;
    padding: 7px;
}

.mobile-spot .tradebox_l_btn { margin-bottom: 4px; }
.mobile-spot .inputbox { border: 1px solid var(--customer-border); border-radius: 5px; }
.mobile-spot .inputbox .borderright { border-color: var(--customer-border); }
.mobile-spot .inputbox input { min-width: 0; }
.mobile-spot .tradebox_r :is(.trade_listbox, .trade_listpricebox) { padding-inline: 0; }
.mobile-spot .trade_listbox { font-variant-numeric: tabular-nums; }
.mobile-spot .tradebox_r .green { color: #176344; }
.mobile-spot .tradebox_r .red { color: #aa302a; }
.mobile-spot .trade_listpricebox { font-weight: 700; border-block: 1px solid var(--customer-border); }
.mobile-spot .wtlistbox { display: flow-root; width: auto; margin: 10px 10px 74px; padding: 0 10px; border: 1px solid var(--customer-border); border-radius: 7px; background: #fff; }
.mobile-spot .wtlistbox .fe6 { color: var(--customer-ink); }
.mobile-spot .o_title_box { border-color: var(--customer-border); }
.mobile-spot .spot-empty { clear: both; margin: 0; padding: 18px 8px; text-align: center; color: var(--customer-muted); }

@media (max-width: 365px) {
    .mobile-spot .tradebox { grid-template-columns: minmax(0, 1.65fr) minmax(95px, 1fr); }
    .mobile-spot :is(.tradebox_l, .tradebox_r) { padding: 5px; }
    .mobile-spot .trade_listbox .fzm { font-size: 10px; }
}

.desktop-contract .contract-orders :is(.table-box, .order-main-table, .contract-empty) { background: #fff; }
.desktop-contract .contract-orders .table-history-more { display: block; width: auto; min-height: 0; }
.desktop-contract .contract-orders .order-top-select { color: var(--customer-accent) !important; }
:is(.desktop-contract, .pc-spot) .contract-markets .usdt-shadow { margin-top: 0; border-color: var(--customer-border); border-bottom: 0; }
:is(.desktop-contract, .pc-spot) .contract-markets .sy_list_boxl:first-child { white-space: nowrap; }
.mobile-spot .dong_con .sy_list_boxl span { color: var(--customer-ink) !important; }

.spot-chart-toggle { display: grid; place-items: center; flex: none; width: 42px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--customer-accent); font-size: 20px; }
.spot-chart-toggle[aria-expanded="true"] { color: var(--customer-accent); background: #e8f2fa; border-radius: 5px; }
.spot-chart-panel { margin-bottom: 8px; overflow: hidden; border: 1px solid var(--customer-border); border-radius: 7px; background: #fff; }
.spot-chart-panel[hidden] { display: block; height: 0; margin: 0; border: 0; visibility: hidden; }
.spot-chart-frame { display: block; width: 100%; height: 374px; border: 0; }

.spot-allocation {
    position: relative;
    --allocation: 0%;
    margin: 4px 6px 0;
    padding-block: 1px;
}

.spot-allocation__marks {
    position: absolute;
    inset: 0 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.spot-allocation__marks::before {
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(to right, var(--customer-accent) var(--allocation), #879eb3 var(--allocation));
    content: "";
}

.spot-allocation__marks span {
    z-index: 1;
    width: 5px;
    height: 5px;
    box-sizing: border-box;
    border: 1px solid #7892a9;
    background: var(--customer-surface);
    transform: rotate(45deg);
}

.customer-ui .spot-allocation input[type="range"] {
    position: relative;
    z-index: 2;
    display: block;
    appearance: none;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.spot-allocation input::-webkit-slider-runnable-track { background: transparent; }
.spot-allocation input::-moz-range-track { background: transparent; }
.spot-allocation input::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid var(--customer-accent);
    border-radius: 2px;
    background: var(--customer-surface);
    transform: rotate(45deg) scale(.8);
}
.spot-allocation input::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border: 2px solid var(--customer-accent);
    border-radius: 2px;
    background: var(--customer-surface);
    transform: rotate(45deg) scale(.8);
}
.spot-allocation:focus-within { background: #e7f2fb; border-radius: 5px; }

.mobile-spot .spot-order-unavailable {
    width: 100%;
    min-height: 36px;
    margin-top: 16px;
    border: 1px solid var(--customer-border);
    border-radius: 5px;
    background: #eef3f7;
    color: var(--customer-muted);
}

.mobile-spot .spot-market-trigger,
.mobile-spot .spot-market-close {
    display: inline-grid;
    place-items: center;
    min-width: 33px;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--customer-accent);
    vertical-align: middle;
    cursor: pointer;
}
.mobile-spot .spot-market-trigger img { width: 18px; height: 18px; object-fit: contain; }
.mobile-spot .spot-market-close { font-size: 22px; }
.mobile-spot :is(.spot-market-close, .spot-market-trigger):is(:focus, :focus-visible) { outline: none; }
.mobile-spot .spot-market-overlay { inset: 0; height: 100%; background: #142b4260; }
.spot-market-drawer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    box-sizing: border-box;
    width: min(86%, 420px);
    height: 100%;
    padding: 0 10px;
    background: var(--customer-surface);
    color: var(--customer-ink);
}
.spot-market-backdrop { position: absolute; inset: 0; }
.spot-market-drawer__header { display: flex; align-items: center; justify-content: space-between; min-height: 50px; }
.spot-market-drawer__header h2 { margin: 0; font-size: 16px; font-weight: 700; }
.spot-market-results { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.spot-market-results::-webkit-scrollbar { display: none; }
.spot-market-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .8fr);
    gap: 6px;
    align-items: center;
    min-height: 43px;
    padding: 5px 7px;
    border-bottom: 1px solid var(--customer-border);
    color: var(--customer-ink);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    text-decoration: none;
}
.spot-market-row > :not(:first-child) { text-align: end; }
.spot-market-row--labels { min-height: 34px; background: #edf4fa; color: var(--customer-muted); font-size: 11px; }
.spot-market-row:is(:hover, [aria-current]) { background: #f2f8fc; }
.spot-market-row [data-direction="up"] { color: #08734e; font-weight: 700; }
.spot-market-row [data-direction="down"] { color: #ae2940; font-weight: 700; }
.spot-market-empty { padding: 18px 6px; text-align: center; color: var(--customer-muted); }

.spot-maintenance-page,
.spot-maintenance-page body { overflow: hidden; }
.spot-maintenance-content { isolation: isolate; }
.spot-maintenance-overlay {
    position: fixed;
    z-index: 19;
    inset: 0 0 calc(63px + env(safe-area-inset-bottom, 0px));
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgb(15 35 55 / 52%);
    touch-action: none;
}
.spot-maintenance-notice {
    box-sizing: border-box;
    width: min(100%, 310px);
    padding: 24px 18px;
    border: 1px solid var(--customer-border);
    border-radius: 10px;
    background: var(--customer-surface);
    color: var(--customer-ink);
    text-align: center;
}
.spot-maintenance-notice__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    border-radius: 9px;
    background: #e7f2fa;
    color: var(--customer-accent);
    font-size: 22px;
}
.spot-maintenance-notice h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; }

.desktop-pair,
:is(.desktop-contract, .pc-spot) .contract-markets .sy_list_box > .desktop-pair {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.desktop-pair > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-pair-icon { flex: none; object-fit: contain; }
.desktop-pair-icon--silver { filter: grayscale(1); }

.contract-market-kind { color: var(--customer-accent); font-size: 12px; font-weight: 600; text-align: end; }
