:root,
:root[data-accent] {
  --bg: #111419;
  --surface: #171b21;
  --surface-2: #1c2128;
  --surface-3: #242a32;
  --surface-4: #2d343e;
  --line: rgba(244, 246, 248, 0.1);
  --line-2: rgba(244, 246, 248, 0.06);
  --line-3: rgba(244, 246, 248, 0.18);
  --text: #f4f6f8;
  --text-2: #a3abb7;
  --text-3: #707a89;
  --text-4: #4a525e;
  --accent: #fcd535;
  --accent-t: rgba(252, 213, 53, 0.16);
  --accent-2: #3a3208;
  --accent-hi: #ffe98a;
  --on-accent: #111419;
  --brand: #fcd535;
  --brand-t: rgba(252, 213, 53, 0.14);
  --brand-w: #f4f6f8;
  --mc1: #fcd535;
}

:root[data-accent="mint"] {
  --accent: #2ee6a6;
  --accent-t: rgba(46, 230, 166, 0.16);
  --accent-2: #0c2c22;
  --accent-hi: #8ff6cf;
  --on-accent: #06211c;
  --brand: #2ee6a6;
  --brand-t: rgba(46, 230, 166, 0.14);
  --mc1: #2ee6a6;
}

/* BNB theme: Binance yellow and black. Up, buy, and live use the bright yellow. Down and sell use a deeper shade of the same yellow. */
:root:not([data-accent="mint"]) {
  --green: #fcd535;
  --green-t: rgba(252, 213, 53, 0.16);
  --green-ink: #111419;
  --red: #d3aa03;
  --red-t: rgba(211, 170, 3, 0.16);
  --red-ink: #111419;
  --yellow: #fcd535;
  --yellow-t: rgba(252, 213, 53, 0.14);
  --dev: #fcd535;
  --dev-t: rgba(252, 213, 53, 0.14);
  --mc2: #d3aa03;
  --mc3: #fcd535;
}

/* Buy and sell stay the original green and red. Gold is for buttons and brand chrome. */
:root:not([data-accent="mint"]) .ea-g .up,
:root:not([data-accent="mint"]) .ea-g .up + small,
:root:not([data-accent="mint"]) .side.buy,
:root:not([data-accent="mint"]) .tk-tr tr.buy td.amt { color: #21c95e; }
:root:not([data-accent="mint"]) .ea-g .down,
:root:not([data-accent="mint"]) .ea-g .down + small,
:root:not([data-accent="mint"]) .side.sell,
:root:not([data-accent="mint"]) .tk-tr tr.sell td.amt { color: #ff622e; }
:root:not([data-accent="mint"]) .wbar { background: #ff622e; }
:root:not([data-accent="mint"]) .wbar i { background: #21c95e; }
:root:not([data-accent="mint"]) .live { background: rgba(33, 201, 94, 0.16); color: #21c95e; }
:root:not([data-accent="mint"]) .conn { color: #21c95e; }
:root:not([data-accent="mint"]) .tk-tr tr.big.buy td { background: rgba(33, 201, 94, 0.08); }
:root:not([data-accent="mint"]) .tk-tr tr.big.sell td { background: rgba(255, 98, 46, 0.08); }
:root:not([data-accent="mint"]) .cd.g1 { background: rgba(252, 213, 53, 0.12); }
:root:not([data-accent="mint"]) .cd.g2 { background: rgba(252, 213, 53, 0.24); }
:root:not([data-accent="mint"]) .cd.g3 { background: rgba(252, 213, 53, 0.4); }
:root:not([data-accent="mint"]) .cd.r1 { background: rgba(211, 170, 3, 0.12); }
:root:not([data-accent="mint"]) .cd.r2 { background: rgba(211, 170, 3, 0.24); }
:root:not([data-accent="mint"]) .cd.r3 { background: rgba(211, 170, 3, 0.4); }

@keyframes moGlow {
  0%, to { box-shadow: 0 0 0 0 rgba(252, 213, 53, 0); }
  50% { box-shadow: 0 0 0 6px rgba(252, 213, 53, 0.12); }
}

.scrim.tset-scrim { z-index: 80; }
.modal.tset { width: min(900px, 100%); background: #14161c; }
.tset .m-h { padding: 18px 16px 12px 20px; }
.tset-x { width: 32px; height: 32px; display: grid; place-items: center; color: var(--text-2); border-radius: 8px; }
.tset-x:hover { color: var(--text); background: var(--surface-3); }
.tset .m-h h2 { font-size: 16px; }
.tset-body { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 14px; padding: 0 16px 16px; min-height: 480px; }
.tset-nav { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.tset-nav button { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font: 500 14px var(--font); text-align: left; }
.tset-nav button:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.tset-nav button.on { background: var(--surface-3); color: var(--text); }
.tset-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tset-card { background: #101217; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 8px; }
.tset-card h3 { margin: 12px 0 8px; font: 700 15px/1.2 var(--font); }
.tset-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; border-top: 1px solid var(--line-2); }
.tset-card h3 + .tset-row, .tset-row.first { border-top: 0; }
.tset-row b { display: block; font: 650 14px/1.3 var(--font); font-weight: 650; }
.tset-row em { display: block; color: var(--text-3); font: 500 12px/1.35 var(--font); font-style: normal; margin-top: 2px; }
.tset-row-r { display: flex; align-items: center; gap: 8px; flex: none; }
.tset-sw { width: 38px; height: 22px; border-radius: 99px; background: #3a4150; padding: 2px; display: flex; align-items: center; flex: none; }
.tset-sw i { width: 18px; height: 18px; border-radius: 99px; background: #fff; display: block; transition: transform 0.15s ease; }
.tset-sw.on { background: var(--accent); }
.tset-sw.on i { transform: translateX(16px); }
.tset-seg { height: 32px; padding: 0 12px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); font: 600 13px var(--font); border: 1px solid transparent; }
.tset-seg.on { border-color: var(--accent); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.tset-sizes { display: flex; gap: 10px; padding: 2px 0 12px; }
.tset-qb { width: 96px; height: 68px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; }
.tset-qb .face { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font: 700 13px var(--font); }
.tset-qb.grey .face { background: var(--surface-4); color: var(--text-2); }
.tset-qb.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tset-qb small { font: 500 12px var(--font); color: var(--text-2); }
.tset-hk { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; border-top: 1px solid var(--line-2); font: 500 14px var(--font); }
.tset-hk:first-of-type { border-top: 0; }
.tset-keys { display: flex; gap: 4px; }
.tset-field, .tset-select { height: 34px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line); color: var(--text); }
.tset-field { width: 108px; padding: 0 10px; }
.tset-field.wide { width: 132px; }
.tset-field::placeholder { color: var(--text-3); }
.tset-select { padding: 0 8px; min-width: 64px; }
.tset-unit { height: 34px; min-width: 46px; padding: 0 8px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--text-2); font: 700 12px var(--font); }
.tset-add { display: flex; gap: 8px; align-items: center; padding: 10px 0 4px; }
.tset-add input { flex: 1; height: 38px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); padding: 0 12px; color: var(--text); }
.tset-add input::placeholder { color: var(--text-3); }
.tset-help { margin: 4px 0 2px; color: var(--text-3); font: 500 12.5px/1.45 var(--font); }
.tset-meta { color: var(--text-3); font: 500 13px var(--font); }
.tset-filters { display: flex; align-items: center; gap: 6px; padding: 10px 0 6px; flex-wrap: wrap; }
.tset-filters .sp { flex: 1; }
.tset-ico { width: 28px; height: 28px; display: grid; place-items: center; color: var(--text-3); border-radius: 8px; }
.tset-ico:hover { color: var(--text); background: var(--surface-3); }
.tset-empty { text-align: center; padding: 42px 20px 32px; }
.tset-empty b { display: block; margin-bottom: 6px; font: 650 14px var(--font); }
.tset-empty p { margin: 0 auto; max-width: 360px; color: var(--text-3); font: 500 13px/1.45 var(--font); }
.tset-item { display: flex; align-items: center; gap: 10px; min-height: 38px; border-top: 1px solid var(--line-2); font: 500 13px var(--font); }
.tset-kind { font: 700 10px var(--font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); min-width: 68px; }
.tset-item .v { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tset-color { width: 36px; height: 28px; padding: 0; border: 0; background: none; border-radius: 8px; }
.tset-color::-webkit-color-swatch-wrapper { padding: 0; }
.tset-color::-webkit-color-swatch { border: 0; border-radius: 8px; }
.qmin { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); color: var(--text-3); font: 600 12px var(--font); }
.qmin input { width: 48px; background: transparent; border: 0; color: var(--text); outline: none; }
.tk-more { position: relative; }
.tk-more-menu { position: absolute; right: 0; top: 40px; z-index: 8; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55); min-width: 210px; }
.pline .tabs { margin-left: auto; }
.ek-chart .tch { position: relative; height: clamp(420px, 48vh, 520px); }
.ek-chart .tch .bz-chart { position: absolute; inset: 0; }
.motor-lab-tv { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.motor-lab-tv-area { position: relative; flex: 1; min-height: 0; }
.bz-tvd-box { position: absolute; inset: 0 0 18px 0; }
.bz-tvd-attr { position: absolute; right: 8px; bottom: 0; z-index: 2; font: 500 11px/18px var(--font); color: var(--text-3); opacity: 0.85; }
.bz-tvd-attr:hover { color: var(--text); opacity: 1; }
.ek-chart .tch-hud { z-index: 2; }
.bs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tk-tr .dev { margin-left: 6px; color: var(--yellow); font: 700 11px var(--font); }
.tset-amt { position: relative; }
.tset-amt .mark { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; pointer-events: none; }
