.market-container > :not(.okx-market-board) {
  display: none !important;
}
.market-container {
  background: transparent !important;
}

.okx-market-board {
  --okx-bg: #ffffff;
  --okx-text: #111111;
  --okx-muted: #8b8b8b;
  --okx-line: #f0f0f0;
  --okx-chip: #f4f4f4;
  --okx-up-bg: #e9f8ef;
  --okx-up: #0ea35b;
  --okx-down-bg: #fdecee;
  --okx-down: #e35555;
  background: var(--okx-bg);
  color: var(--okx-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  border-radius: 16px 16px 0 0;
  margin: 8px 0 88px;
  overflow: hidden;
}

.okx-market-board.is-market {
  border-radius: 0;
  margin: 0 0 88px;
}

.van-tabbar,
.van-tabbar--fixed {
  z-index: 2000 !important;
}

.marketcon {
  background: #fff !important;
}
.marketcon .market-container {
  background: #fff !important;
  margin-bottom: 0 !important;
}

.okx-top {
  padding: 14px 16px 6px;
}
.okx-top .ttl {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}
.okx-q {
  width: 100%;
  height: 36px;
  border: 0;
  background: #f4f4f4;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.okx-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.okx-chips::-webkit-scrollbar { display: none; }
.okx-chip {
  flex: 0 0 auto;
  border: 0;
  background: #f4f4f4;
  color: #555;
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 12px;
  white-space: nowrap;
}
.okx-chip.is-on {
  background: #111;
  color: #fff;
  font-weight: 600;
}

.okx-more {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--okx-line);
  background: transparent;
  color: #555;
  padding: 14px 16px 18px;
  font-size: 14px;
  cursor: pointer;
}

.okx-market-board * { box-sizing: border-box; }

.okx-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.okx-tabs::-webkit-scrollbar { display: none; }

.okx-tab {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 16px;
  line-height: 1;
  padding: 6px 2px;
}
.okx-tab.is-on {
  background: #f2f2f2;
  color: #111;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 10px;
}
.okx-tab .chev {
  display: inline-block;
  margin-left: 2px;
  font-size: 10px;
  transform: translateY(-1px);
}
.okx-tab .dot {
  position: absolute;
  top: 2px;
  right: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b30;
}

.okx-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr;
  padding: 6px 16px 10px;
  color: var(--okx-muted);
  font-size: 11px;
}
.okx-head button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.okx-head .c2 { justify-self: end; }
.okx-head .c3 { justify-self: end; }
.okx-head .sort { font-size: 9px; opacity: .7; }

.okx-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr;
  align-items: center;
  padding: 12px 16px;
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  position: relative;
  z-index: 6;
  pointer-events: auto;
}
.okx-row + .okx-row { border-top: 1px solid var(--okx-line); }

.okx-name {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}
.okx-name img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f6f6f6;
  object-fit: cover;
  flex: 0 0 32px;
}
.okx-name .t1 {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.okx-name .pair { font-size: 15px; font-weight: 700; color: #111; white-space: nowrap; }
.okx-name .quote { font-size: 13px; font-weight: 500; color: #9a9a9a; }
.okx-lev {
  font-size: 10px;
  color: #888;
  background: var(--okx-chip);
  border-radius: 4px;
  padding: 1px 5px;
}
.okx-sub {
  margin-top: 3px;
  font-size: 11px;
  color: var(--okx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.okx-price { text-align: right; }
.okx-price .p1 { font-size: 16px; font-weight: 700; color: #111; }
.okx-price .p2 { margin-top: 3px; font-size: 11px; color: var(--okx-muted); }

.okx-chg { display: flex; justify-content: flex-end; }
.okx-badge {
  min-width: 76px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.okx-badge.up { background: var(--okx-up-bg); color: var(--okx-up); }
.okx-badge.down { background: var(--okx-down-bg); color: var(--okx-down); }

.okx-empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--okx-muted);
  font-size: 13px;
}
.okx-skel {
  padding: 18px 16px;
  color: var(--okx-muted);
  font-size: 13px;
}

.okx-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--okx-line);
}
.okx-actions button {
  flex: 1;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 14px;
  padding: 6px 0;
}
.okx-actions .split {
  width: 1px;
  height: 16px;
  background: #e5e5e5;
}

.okx-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 4000;
  display: flex;
  align-items: flex-end;
}
.okx-sheet {
  width: 100%;
  max-height: 78vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 14px 16px 24px;
  overflow: auto;
}
.okx-sheet h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.okx-search {
  width: 100%;
  height: 36px;
  border: 0;
  background: #f4f4f4;
  border-radius: 8px;
  padding: 0 12px;
  margin-bottom: 10px;
}
.okx-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--okx-line);
}
.okx-pick button {
  border: 0;
  background: #111;
  color: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
}
.okx-pick button.is-on { background: #eee; color: #888; }
.okx-close {
  margin-top: 12px;
  width: 100%;
  height: 40px;
  border: 0;
  background: #f4f4f4;
  border-radius: 8px;
}

svg.fluentclose,
svg[data-icon="fluent:dismiss-24-regular"] {
  width: 28px;
  height: 28px;
  cursor: pointer;
  pointer-events: auto;
}
