/* Torque terminal and vault, laid out like Laurel: everything sits on a near-black frame, and one lighter rounded card
   holds the main thing (the chart with its market on the trade page, the vault on the vault page). The order panel is
   one continuous column like Variational's; the book sits right of the card. Pills, DM Sans, tabular figures. */
body.app { height: 100vh; overflow: hidden; display: flex; flex-direction: column; font-size: 13px; background: var(--bg); }

/* top bar on the frame */
.tnav { height: 60px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 22px; }
.tnav .brand { font-size: 16px; margin-right: 12px; }
.tnav .brand img { width: 24px; height: 24px; }
.tabs { display: flex; gap: 2px; }
.tabs a { display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border-radius: 999px; color: var(--dim); font-size: 14px; font-weight: 600; }
.tabs a:hover { color: #fff; }
.tabs a.on { background: #262626; color: #fff; }
.net { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; color: var(--dim); font-size: 13px; font-weight: 500; margin-right: 4px; }
.net i, .status .ok i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.tnav .btn.sm { height: 36px; font-size: 13.5px; padding: 0 18px; }

/* grid: the card | book | order panel; positions under the card and the book */
.term { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 272px 300px; grid-template-rows: minmax(0, 1fr) 232px; gap: 12px 14px; padding: 2px 14px 0; }
.ccard { grid-column: 1; grid-row: 1; position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--p); border: 1px solid var(--line); border-radius: 22px; }
.book { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-height: 0; }
.order { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 2px 2px 16px; scrollbar-width: thin; }
.bottom { grid-column: 1 / 3; grid-row: 2; display: flex; flex-direction: column; min-height: 0; min-width: 0; }

/* pill tabs */
.tabsb { display: flex; gap: 2px; flex: none; }
.tabsb button { height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: none; color: var(--dim); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabsb button:hover { color: #fff; }
.tabsb button.on { background: #262626; color: #fff; }
.bottom > .tabsb { margin-bottom: 6px; }

/* card: header with a full-width divider, toolbar row, tools + chart */
.mbar { display: flex; align-items: center; gap: 22px; flex: none; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.pick { position: relative; flex: none; z-index: 20; }
.pick > button { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 6px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.pick > button:hover, .pick.open > button { background: #202020; }
.pick > button img { width: 28px; height: 28px; border-radius: 50%; }
.pick > button .x { font-size: 11.5px; font-weight: 600; color: var(--ink); background: #262626; padding: 3px 8px; border-radius: 999px; letter-spacing: 0; }
.pick > button svg { width: 11px; height: 11px; color: var(--dim); }
.ms { display: flex; flex-wrap: nowrap; gap: 0 26px; height: 40px; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.ms::-webkit-scrollbar { display: none; }
.ms div { display: flex; flex-direction: column; justify-content: center; height: 40px; white-space: nowrap; }
.ms small { font-size: 12px; color: var(--faint); font-weight: 500; }
.ms b { font-weight: 500; font-size: 14px; margin-top: 1px; }
.ph { height: 46px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line2); border-radius: 999px; flex: none; }
.seg button { border: 0; background: none; color: var(--dim); font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: #fff; }
.seg button.on { color: #fff; background: #2e2e2e; }
.seg.sm button { font-size: 12px; padding: 3px 8px; }
#cInfo { margin-left: auto; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* wallet balance next to the network chip */
.nbal { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: #1c1c1c; color: var(--ink); font-size: 13px; font-weight: 600; margin-right: 2px; }
.nbal[hidden] { display: none; }

/* chart: KLineChart Pro (TradingView-style drawing bar, indicators, periods) painted in Laurel's colours */
.kwrap { position: relative; flex: 1; min-height: 0; border-radius: 0 0 22px 22px; overflow: hidden; }
#kpro { position: absolute; inset: 0; }
.klinecharts-pro[data-theme=dark] {
  --klinecharts-pro-primary-color: #f2f2f2; --klinecharts-pro-hover-background-color: rgba(255, 255, 255, .06);
  --klinecharts-pro-background-color: #171717; --klinecharts-pro-popover-background-color: #1c1c1c;
  --klinecharts-pro-text-color: #eeeeee; --klinecharts-pro-text-second-color: #8a8a8a; --klinecharts-pro-border-color: #2a2a2a;
  --klinecharts-pro-selected-color: rgba(255, 255, 255, .1);
  height: 100% !important; font-family: "DM Sans", system-ui, sans-serif;
}
.klinecharts-pro-period-bar .symbol { display: none !important; }
.klinecharts-pro-period-bar { height: 44px !important; }
.klinecharts-pro-period-bar .period { border-radius: 8px; font-size: 13px; font-weight: 600; }
.klinecharts-pro-modal .inner, .klinecharts-pro-select .drop-down-container { border-radius: 14px !important; border: 1px solid var(--line2); }
.klinecharts-pro-button.confirm { background: #f2f2f2 !important; color: #141414 !important; border-radius: 999px !important; }
.klinecharts-pro-button.cancel { border-radius: 999px !important; }

/* market menu, after Variational's */
.pick .menu { display: none; position: absolute; top: 50px; left: 0; width: min(880px, calc(100vw - 380px)); background: #181818; border: 1px solid var(--line2); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .65); padding: 12px; }
.pick.open .menu { display: block; }
.msearch { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: #121212; color: var(--dim); }
.msearch:focus-within { border-color: #555; }
.msearch svg { width: 17px; height: 17px; }
.msearch input { flex: 1; border: 0; outline: 0; background: none; font-size: 14px; color: var(--ink); }
.mtabs { display: flex; gap: 2px; margin: 12px 0 8px; }
.mtabs button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--dim); font-size: 13px; font-weight: 600; cursor: pointer; }
.mtabs button:hover { color: #fff; }
.mtabs button.on { background: #262626; color: #fff; }
.mt2 { max-height: 360px; overflow-y: auto; }
.mr { display: grid; grid-template-columns: 2.1fr 1fr 1fr 1fr 1.1fr .9fr; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.mr > :not(:first-child) { text-align: right; }
.mr:hover, .mr.hl { background: #222; }
.mr.cur { background: #242424; }
.mr.h { height: 34px; cursor: default; color: var(--faint); font-size: 12.5px; font-weight: 500; background: none; position: sticky; top: 0; background: #181818; z-index: 1; }
.mr.h span { cursor: pointer; user-select: none; }
.mr.h span:hover, .mr.h span.on { color: #fff; }
.mr .a { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mr .a img { width: 24px; height: 24px; border-radius: 50%; }
.mr .st { width: 18px; height: 18px; display: grid; place-items: center; color: #555; border: 0; background: none; cursor: pointer; padding: 0; }
.mr .st svg { width: 16px; height: 16px; }
.mr .st.on { color: #f2c94c; }
.bdg { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: #262626; color: var(--dim); }
.bdg.p { color: #cfd6ff; background: #23263a; }
.mempty { padding: 28px; text-align: center; color: var(--faint); }
.mfoot { display: flex; gap: 22px; margin-top: 10px; padding: 10px 6px 2px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.mfoot span { display: inline-flex; align-items: center; gap: 8px; }
kbd { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border: 1px solid var(--line2); border-radius: 6px; font: 500 11.5px "DM Sans", sans-serif; color: var(--dim); }

/* book on the frame */
.bhead { display: flex; align-items: center; justify-content: space-between; gap: 4px; flex: none; margin-bottom: 6px; }
.bhead .tabsb button { padding: 0 11px; }
.bbook { flex: 1; min-height: 0; display: flex; flex-direction: column; font-size: 12.5px; }
.brow { position: relative; display: grid; grid-template-columns: 1.1fr 1fr 1fr; align-items: center; height: 23px; padding: 0 8px; }
.brow > * { position: relative; z-index: 1; }
.brow > :not(:first-child) { text-align: right; }
.brow b { font-weight: 500; }
.brow i { position: absolute; top: 1px; bottom: 1px; right: 0; z-index: 0; border-radius: 3px; }
.brow.a b { color: var(--dn); } .brow.a i { background: rgba(242, 139, 139, .12); }
.brow.bd b { color: var(--up); } .brow.bd i { background: rgba(101, 223, 158, .11); }
.brow.h { color: var(--faint); font-size: 12px; height: 26px; }
.asks, .bids { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.asks { justify-content: flex-end; }
.spread { display: flex; justify-content: space-between; align-items: center; height: 32px; padding: 0 8px; margin: 3px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.spread b { font-size: 14px; font-weight: 600; }
.bnote { flex: none; padding: 8px 8px 0; color: var(--faint); font-size: 11.5px; line-height: 1.45; }
.trow { display: grid; grid-template-columns: 1fr 1fr .8fr; padding: 0 8px; height: 24px; align-items: center; font-size: 12.5px; }
.trow > :nth-child(2), .trow > :nth-child(3) { text-align: right; }
.trow.h { color: var(--faint); font-size: 12px; }
.empty2 { color: var(--faint); text-align: center; padding: 30px 12px; font-size: 13px; line-height: 1.6; }

/* order panel: one column, groups split by thin lines */
.chips2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: none; }
.chip { height: 34px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: default; }
button.chip { cursor: pointer; } button.chip:hover { background: #1f1f1f; }
.levbox { display: none; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; flex: none; }
.levbox.on { display: block; }
.levbox input { margin: 10px 0 4px; }
.ticks5 { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; }
.mkt { display: flex; gap: 2px; flex: none; }
.mkt span { height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--dim); }
.mkt span.on { background: #262626; color: #fff; }
.ls { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #1a1a1a; border: 1px solid var(--line); border-radius: 14px; padding: 3px; flex: none; }
.ls button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; background: none; height: 46px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--dim); cursor: pointer; }
.ls button small { font-size: 12px; font-weight: 500; opacity: .85; }
.ls button.on.l { background: rgba(101, 223, 158, .14); color: var(--up); box-shadow: inset 0 0 0 1px rgba(101, 223, 158, .45); }
.ls button.on.s { background: rgba(242, 139, 139, .13); color: var(--dn); box-shadow: inset 0 0 0 1px rgba(242, 139, 139, .45); }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; flex: none; }
.kv span { color: var(--dim); } .kv b { font-weight: 500; text-align: right; }
.inp { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: #161616; cursor: text; flex: none; }
.inp:focus-within { border-color: #555; }
.inp span { color: var(--dim); font-size: 13px; }
.inp input { flex: 1; min-width: 0; text-align: right; border: 0; outline: 0; background: none; font-size: 15px; font-weight: 600; }
.inp em { font-style: normal; color: var(--ink); font-size: 13px; font-weight: 600; }
.sl { display: grid; grid-template-columns: 1fr 70px; gap: 12px; align-items: center; flex: none; }
.rng { position: relative; height: 20px; display: flex; align-items: center; }
.rng input { position: relative; z-index: 2; }
.rng .dots { position: absolute; left: 7px; right: 7px; top: 50%; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.rng .dots i { width: 7px; height: 7px; border-radius: 50%; background: #444; }
input[type=range] { width: 100%; accent-color: #f2f2f2; height: 4px; }
.pctb { display: flex; align-items: center; height: 34px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; background: #161616; }
.pctb input { width: 100%; text-align: right; border: 0; outline: 0; background: none; font-size: 13px; }
.pctb em { font-style: normal; color: var(--dim); margin-left: 3px; }
.go2 { height: 46px; border-radius: 999px; border: 0; font-size: 15px; font-weight: 600; cursor: pointer; flex: none; }
.go2.l { background: var(--up); color: #0b2316; } .go2.s { background: var(--dn); color: #2a0b0e; }
.go2.c { background: #f2f2f2; color: #141414; } .go2.c:hover { background: #dedede; }
.go2:disabled { opacity: .45; cursor: default; }
.sep { height: 1px; background: var(--line); flex: none; margin: 4px 0; }
.grp { display: flex; flex-direction: column; gap: 10px; flex: none; }
.grp h4 { font-size: 13px; font-weight: 600; color: var(--ink); }
.grp a { color: var(--ink); text-decoration: underline; text-decoration-color: #555; text-underline-offset: 3px; }

/* positions under the card */
.bbody { flex: 1; overflow: auto; min-height: 0; }
.bt { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.bt th { text-align: left; font-weight: 500; color: var(--faint); font-size: 12px; padding: 6px 10px 8px; position: sticky; top: 0; background: var(--bg); }
.bt td { padding: 9px 10px; border-top: 1px solid var(--line); }
.bt .r { text-align: right; }
.bt tr:hover td { background: #131313; }
.bt .cl { height: 28px; padding: 0 14px; border: 1px solid var(--line2); background: none; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.bt .cl:hover { background: #f2f2f2; color: #141414; border-color: #f2f2f2; }
.sd { font-weight: 600; }

/* status line on the frame */
.status { height: 38px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 24px; font-size: 12.5px; color: var(--dim); }
.status .ok { display: inline-flex; align-items: center; gap: 6px; color: var(--up); }
.status a:hover { color: #fff; }

/* vault page: the card holds the vault */
.vt { flex: 1; min-height: 0; overflow-y: auto; margin: 2px 14px 0; padding: 34px 32px 48px; background: var(--p); border: 1px solid var(--line); border-radius: 22px; }
.vt .in { max-width: 1120px; margin: 0 auto; }
.vt h1 { font-weight: 600; font-size: 30px; letter-spacing: -.03em; }
.vt .lead2 { color: var(--dim); margin-top: 8px; max-width: 46em; font-size: 14.5px; line-height: 1.6; }
.vgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; margin-top: 28px; }
.vtiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-content: start; }
.vtiles .tile { background: #222222; border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px 22px; }
.vtiles .tile .v { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.vtiles .tile .k { color: var(--dim); font-size: 13px; margin-top: 4px; }
.pn { background: #222222; border: 1px solid var(--line); border-radius: 14px; min-width: 0; display: flex; flex-direction: column; }
.vbox { padding: 14px; gap: 12px; }
.vbox .ph { height: auto; padding: 0; border: 0; }
.vhist { grid-column: 1 / 3; padding: 14px; }
.vhist .ph { padding: 0; border: 0; height: auto; margin-bottom: 6px; }
.vhist .bt th { background: #222222; }

@media (max-width: 1180px) {
  .term { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr) 300px 232px; }
  .book { grid-column: 1; grid-row: 2; }
  .bottom { grid-column: 1; grid-row: 3; }
  .order { grid-row: 1 / 4; }
}
@media (max-width: 860px) {
  body.app { height: auto; overflow: auto; }
  .term { grid-template-columns: 1fr; grid-template-rows: auto; padding: 2px 10px 0; }
  .ccard { grid-column: 1; grid-row: auto; height: 540px; }
  .book, .order, .bottom { grid-column: 1; grid-row: auto; }
  .book { height: 420px; }
  .bottom { min-height: 240px; }
  .mbar { flex-wrap: wrap; gap: 8px 20px; }
  .ms { flex-wrap: wrap; gap: 6px 20px; height: auto; }
  .ph { overflow-x: auto; }
  #cInfo { display: none; }
  .tabs, .net { display: none; }
  .pick .menu { width: calc(100vw - 44px); }
  .mr { grid-template-columns: 2fr 1fr 1fr; }
  .mr > :nth-child(4), .mr > :nth-child(5), .mr > :nth-child(6) { display: none; }
  .mfoot { display: none; }
  .vt { margin: 2px 10px 0; padding: 24px 16px 40px; }
  .vgrid { grid-template-columns: 1fr; }
  .vtiles { grid-template-columns: 1fr 1fr; }
  .vhist { grid-column: 1; }
}

/* markets and leaderboard pages (after Variational's), inside the card */
.vt .in.wide { max-width: 1320px; }
.mstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.st4 { padding: 18px 20px 20px; }
.st4 small { color: var(--dim); font-size: 13px; }
.st4 b { display: block; margin-top: 6px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.mcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.mc { padding: 14px 14px 16px; }
.mch { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 13.5px; }
.mcr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 10px; border-radius: 12px; background: #1b1b1b; border: 1px solid var(--line); font-size: 12.5px; }
.mini:hover { border-color: var(--line2); }
.mini img { grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 50%; align-self: center; }
.mini b { font-weight: 600; }
.mini span, .mini em { font-style: normal; color: var(--dim); }
.mini .up { color: var(--up); } .mini .dn { color: var(--dn); }
.mtab { margin-top: 12px; padding: 12px 14px 6px; }
.mtbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.msearch.sm { height: 36px; width: 240px; border-radius: 999px; }
.mtw { overflow-x: auto; }
.mt3 th { background: #222222; }
.mt3 th.so { cursor: pointer; user-select: none; }
.mt3 th.so:hover, .mt3 th.on { color: #fff; }
.mt3 td { padding: 12px 10px; }
.mt3 tr.go { cursor: pointer; }
.mt3 tr.me td { background: #262626; }
.ast { display: inline-flex; align-items: center; gap: 9px; }
.ast img { width: 24px; height: 24px; border-radius: 50%; }
.ast .st, .mr .st { width: 18px; height: 18px; display: grid; place-items: center; color: #555; border: 0; background: none; cursor: pointer; padding: 0; }
.ast .st svg { width: 16px; height: 16px; }
.ast .st.on { color: #f2c94c; }
.spk { width: 140px; height: 34px; display: inline-block; vertical-align: middle; }
@media (max-width: 860px) { .mstats { grid-template-columns: 1fr 1fr; } .mcards { grid-template-columns: 1fr; } .msearch.sm { width: 100%; } }

/* KLineChart Pro dialogs: readable switches (white thumb on green when on), one-line buttons */
.klinecharts-pro-switch.turn-on { background-color: var(--up) !important; }
.klinecharts-pro-switch.turn-off { background-color: #3a3a3a !important; }
.klinecharts-pro-button { white-space: nowrap !important; width: auto !important; min-width: 96px; padding: 0 18px !important; height: 34px !important; font-weight: 600; }
.klinecharts-pro-modal .inner { box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }

/* chart top bar: periods and tools in one row without dividers (only the collapse button keeps its line, level with the drawing bar) */
.klinecharts-pro-period-bar .item.tools, .klinecharts-pro-period-bar .period + .tools { border-left: 0 !important; border-right: 0 !important; padding: 0 10px !important; }
.klinecharts-pro-period-bar .item.tools:first-of-type { margin-left: 10px; }
.klinecharts-pro-period-bar .period { margin-left: 2px !important; padding: 3px 8px !important; }
.klinecharts-pro-period-bar .item.tools ~ .item.tools span { display: none !important; }
.klinecharts-pro-period-bar .item.tools ~ .item.tools { padding: 0 9px !important; }
.klinecharts-pro-period-bar .item.tools span { white-space: nowrap; }

/* dark, thin scrollbars everywhere (dropdowns, book, tables, order panel) instead of the browser's grey ones */
* { scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #4a4a4a; background-clip: padding-box; }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
/* KLineChart Pro dropdowns in the site's style */
.klinecharts-pro-select .selector-container { border-radius: 10px !important; border-color: var(--line2) !important; background: #161616 !important; }
.klinecharts-pro-select .drop-down-container { max-height: 300px !important; padding: 4px !important; border-radius: 12px !important; border: 1px solid var(--line2) !important; background: #1c1c1c !important; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); overflow-y: auto !important; }
.klinecharts-pro-select .drop-down-container ul { margin: 0; padding: 0; }
.klinecharts-pro-select .drop-down-container ul li { border-radius: 8px; padding: 0 12px !important; height: 36px !important; line-height: 36px !important; color: var(--ink); }
.klinecharts-pro-select .drop-down-container ul li:hover { background: #262626 !important; }
.tq-reset svg { color: var(--klinecharts-pro-text-color); }
.tq-reset:hover svg { color: #fff; }

/* pair markets: two overlapping coin logos, the Pairs note, the two-pool book */
.dl { display: inline-flex; flex: none; }
.dl img + img { margin-left: -9px; box-shadow: 0 0 0 2px var(--p2); }
.pick > button .dl img { width: 24px; height: 24px; border-radius: 50%; }
.mr .a .dl img { width: 20px; height: 20px; border-radius: 50%; }
.lh .dl img, .lh > img { width: 20px; height: 20px; border-radius: 50%; }
.mnote { padding: 8px 12px; color: var(--faint); font-size: 12px; border-bottom: 1px solid var(--line); }
.legs { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.leg { background: var(--p3); border-radius: 10px; padding: 10px; }
.lh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.lh b { font-weight: 600; }
.lh .faint { margin-left: auto; }
.leg .kv { display: flex; justify-content: space-between; font-size: 12px; padding: 3px 0; color: var(--dim); }
.leg .kv b { color: var(--ink); font-weight: 500; }

/* pair builder in the Pairs tab: coin, swap, priced in, live ratio, trade */
.pb { display: flex; align-items: flex-end; gap: 10px; padding: 6px 12px 12px; }
.pbc { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pbc small, .pbi small { color: var(--faint); font-size: 12px; }
.pbs { display: flex; align-items: center; gap: 9px; height: 44px; min-width: 168px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--p3); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.pbs:hover, .pbs.open { border-color: #4a4a4a; background: #262626; }
.pbs img { width: 24px; height: 24px; border-radius: 50%; }
.pbs b { font-weight: 600; }
.pbs svg { width: 10px; height: 10px; margin-left: auto; color: var(--dim); }
.pbx { width: 40px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 12px; background: none; color: var(--dim); cursor: pointer; }
.pbx:hover { color: #fff; background: #262626; }
.pbx svg { width: 18px; height: 18px; }
.pbi { display: flex; flex-direction: column; gap: 6px; padding: 0 0 4px 14px; min-width: 110px; }
.pbi b { font-size: 15px; font-weight: 600; line-height: 26px; }
.pbgo { margin-left: auto; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pbgo:hover { background: #fff; }
.pbl { position: absolute; top: 72px; left: 0; z-index: 5; width: 300px; max-height: 280px; overflow-y: auto; padding: 6px; border: 1px solid var(--line2); border-radius: 12px; background: #1d1d1d; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.pbo { display: grid; grid-template-columns: 24px auto 1fr auto; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
.pbo:hover, .pbo.on { background: #2a2a2a; }
.pbo img { width: 24px; height: 24px; border-radius: 50%; }
.pbo b { font-weight: 600; }
.pbo .faint { font-size: 12.5px; }
.pbo em { font-style: normal; font-size: 12.5px; }
.mhead { padding: 14px 12px 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .pb { flex-wrap: wrap; } .pbgo { margin-left: 0; width: 100%; } }
.pbi small, .pbo .faint, .pbo b { white-space: nowrap; }
.pbl { width: 340px; }

/* price / market cap switch in the chart bar */
.tq-unit { display: inline-flex; align-items: center; gap: 2px; height: 30px; margin: 0 6px 0 10px; padding: 2px; border: 1px solid var(--line2); border-radius: 999px; flex: none; }
.tq-unit button { height: 24px; padding: 0 11px; border: 0; border-radius: 999px; background: none; color: var(--dim); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tq-unit button:hover { color: #fff; }
.tq-unit button.on { background: #2e2e2e; color: #fff; }
.tq-unit.off { opacity: .4; pointer-events: none; }
