/* Seamless: One black surface: no cards, panels split by hairlines only. */
html:not([data-theme="light"]) body.cx-mode { background: #060607 !important; }
html:not([data-theme="light"]) body.cx-mode::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #060607; opacity: 1; }
html:not([data-theme="light"]) body.cx-mode #run-bg { opacity: 0 !important; display: none !important; }
html:not([data-theme="light"]) body.cx-mode .app.side > .main, html:not([data-theme="light"]) body.cx-mode #view { background: transparent !important; }
html:not([data-theme="light"]) body.cx-mode .cx { --fz: #0e0f11; --fz-top: linear-gradient(transparent, transparent); --cx-fz: linear-gradient(transparent, transparent), #0e0f11; --cx-edge: inset 0 0 0 1px rgba(255,255,255,.055); --fz-sh: 0 0 0 transparent; --cx-r: 6px; --cx-g: 5px; --cx-blur: none; --fz-blur: none; --cx-fill: rgba(255,255,255,.04); --cx-fill2: rgba(255,255,255,.07); }
html:not([data-theme="light"]) body.cx-mode .cx :is(.cx-z, .cx-strip, .cx-seq, .cx-drawer) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* Seamless: every button flat like Market / Limit, no glass */
html:not([data-theme="light"]) body.cx-mode .cx :is(button, a.btn, a.tp-q, .btn):not(.cx-sw) { background-image: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; filter: none !important; text-shadow: none !important; }
html:not([data-theme="light"]) body.cx-mode .cx :is(button, a.btn, .btn):not(.cx-sw)::before, html:not([data-theme="light"]) body.cx-mode .cx :is(.btn, .tp-tabs button)::after { background-image: none !important; box-shadow: none !important; }
/* filled state = Market */
html:not([data-theme="light"]) body.cx-mode .cx :is(button.on, .btn.pri, .btn.pri:hover, [aria-pressed="true"], [aria-selected="true"]):not(.cx-sw) { background-color: rgba(255,255,255,.07) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important; border-color: transparent !important; color: var(--tx) !important; border-radius: 7px; }
/* resting buttons with an outline = the box around Market / Limit */
html:not([data-theme="light"]) body.cx-mode .cx :is(td button, .btn:not(.pri), .tp-q, .tp-ib, .tp-wc):not(.on) { background-color: rgba(255,255,255,.04) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.055) !important; border-color: transparent !important; border-radius: 7px; }
html:not([data-theme="light"]) body.cx-mode .cx :is(td button, .btn, .tp-q, .tp-ib, .tp-wc):not(.on):hover { background-color: rgba(255,255,255,.07) !important; }
/* money actions stay readable by their text colour only */
html:not([data-theme="light"]) body.cx-mode .cx :is(.btn.buyb, button.on.buy) { color: var(--up) !important; }
html:not([data-theme="light"]) body.cx-mode .cx :is(.btn.sellb, button.on.sell) { color: var(--dn) !important; }
html:not([data-theme="light"]) body.cx-mode .cx .tp-nuke { color: var(--dn) !important; }

/* Seamless: the main trade button keeps a small tint of its side; the top stat bubbles fade into the bar */
html:not([data-theme="light"]) body.cx-mode .cx .rp-trade .btn.pri.wide.buyb, html:not([data-theme="light"]) body.cx-mode .cx .btn.pri.wide.buyb:hover { background-color: color-mix(in srgb, var(--up) 13%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 22%, transparent) !important; color: var(--up) !important; }
html:not([data-theme="light"]) body.cx-mode .cx .btn.pri.wide:not(.buyb)[class*="sell"], html:not([data-theme="light"]) body.cx-mode .cx .btn.pri.wide:not(.buyb)[class*="sell"]:hover { background-color: color-mix(in srgb, var(--dn) 13%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dn) 22%, transparent) !important; color: var(--dn) !important; }
html:not([data-theme="light"]) body.cx-mode .cx .cx-pill { background: rgba(255,255,255,.016) !important; box-shadow: none !important; }
html:not([data-theme="light"]) body.cx-mode .cx .cx-chg { background: rgba(255,255,255,.016) !important; box-shadow: none !important; }
html:not([data-theme="light"]) body.cx-mode .cx .btn.pri.wide.buyb.dn, html:not([data-theme="light"]) body.cx-mode .cx .rp-trade .btn.pri.wide.buyb.dn, html:not([data-theme="light"]) body.cx-mode .cx .btn.pri.wide.buyb.dn:hover { background-color: color-mix(in srgb, var(--dn) 13%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dn) 22%, transparent) !important; color: var(--dn) !important; }
html:not([data-theme="light"]) body.cx-mode .cx .tp-bs.bs.bs button.on.buy, html:not([data-theme="light"]) body.cx-mode .cx .tp-bs.bs.bs button.on.buy:hover { background-color: color-mix(in srgb, var(--up) 13%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 22%, transparent) !important; color: var(--up) !important; }
html:not([data-theme="light"]) body.cx-mode .cx .tp-bs.bs.bs button.on.sell, html:not([data-theme="light"]) body.cx-mode .cx .tp-bs.bs.bs button.on.sell:hover { background-color: color-mix(in srgb, var(--dn) 13%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dn) 22%, transparent) !important; color: var(--dn) !important; }
html:not([data-theme="light"]) body.cx-mode .cx .tp-bs.bs.bs button.buy:not(.on):hover { background-color: color-mix(in srgb, var(--up) 9%, transparent) !important; color: var(--up) !important; }
html:not([data-theme="light"]) body.cx-mode .cx .tp-bs.bs.bs button.sell:not(.on):hover { background-color: color-mix(in srgb, var(--dn) 9%, transparent) !important; color: var(--dn) !important; }
