/* 板块详情：对齐 OKX 分类页 — 固定深色，不跟工具浅色皮肤 */
.fee-tip-modal.mkt-sector-sheet {
  --bg: #000;
  --panel: #000;
  --panel-2: #121212;
  --ink: #fff;
  --muted: #848e9c;
  --line: rgba(255, 255, 255, 0.08);
  --up: #2ebd85;
  --down: #f6465d;
  --chip-bg: #1a1a1a;
  --chip-hover: #242424;
  background: rgba(0, 0, 0, 0.72) !important;
  color-scheme: dark;
}
.fee-tip-modal.mkt-sector-sheet.on {
  z-index: 12050 !important;
  padding: 0;
  align-items: stretch;
  justify-items: stretch;
}
.fee-tip-modal.mkt-sector-sheet .fee-sheet.mkt-sector-card {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  min-height: 100dvh;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
  color: #fff;
}
html:not([data-theme="dark"]) .fee-tip-modal.mkt-sector-sheet .fee-sheet.mkt-sector-card,
html:not([data-theme="dark"]) .fee-tip-modal.mkt-sector-sheet .mkt-sector-head,
html:not([data-theme="dark"]) .fee-tip-modal.mkt-sector-sheet .mkt-sector-body,
html:not([data-theme="dark"]) .fee-tip-modal.mkt-sector-sheet .mkt-sector-cols.is-okx {
  background: #000 !important;
  color: #fff !important;
}
.mkt-sector-head.is-okx {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: max(8px, env(safe-area-inset-top)) 8px 10px;
  flex-shrink: 0;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.mkt-sector-head-spacer {
  width: 44px;
  height: 1px;
}
.mkt-sector-back {
  appearance: none;
  border: 0;
  background: none;
  color: #fff;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.mkt-sector-top-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-align: center;
  justify-self: center;
  grid-column: 2;
}
.mkt-sector-top-sub {
  display: none !important;
}
.mkt-sector-body {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  padding: 0 0 max(16px, env(safe-area-inset-bottom));
  background: #000;
}
.mkt-sector-loading {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.mkt-sector-loading.is-inline {
  padding: 12px 16px 16px;
  font-size: 13px;
}
.mkt-sector-hero.is-okx {
  padding: 14px 16px 12px;
}
.mkt-sector-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mkt-sector-hero-main {
  min-width: 0;
  flex: 1 1 auto;
}
.mkt-sector-hero-chg {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.mkt-sector-hero-chg.is-up { color: var(--up); }
.mkt-sector-hero-chg.is-down { color: var(--down); }
.mkt-sector-hero-chg.is-flat { color: var(--muted); }
.mkt-sector-hero-mcap {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}
/* OKX 风：普涨/普跌/震荡 + 斜切涨跌家数条（尺寸/间距对齐 OKX 分类页） */
.mkt-sector-hero-ad {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  max-width: max-content;
  gap: 6px;
  min-height: 24px;
  font-variant-numeric: tabular-nums;
}
.mkt-sector-hero-ad.is-skel span {
  width: 30px;
  height: 24px;
  border-radius: 2px;
  background: #1a1a1a;
}
.mkt-sector-hero-ad.is-skel span:last-child {
  width: 68px;
}
.mkt-sector-ad-lab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 24px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  background: #5c6570;
  border-radius: 2px;
}
.mkt-sector-ad-lab.is-bullish {
  background: var(--up);
}
.mkt-sector-ad-lab.is-bearish {
  background: var(--down);
}
.mkt-sector-ad-lab.is-mixed {
  background: #5c6570;
}
.mkt-sector-ad-split {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  gap: 3px;
  background: transparent;
}
.mkt-sector-ad-up,
.mkt-sector-ad-down {
  display: block;
  height: 24px;
  min-width: 34px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.mkt-sector-ad-num {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 100%;
  min-width: 100%;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.mkt-sector-ad-up .mkt-sector-ad-num {
  background: var(--up);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  padding-right: 11px;
  padding-left: 7px;
}
.mkt-sector-ad-down .mkt-sector-ad-num {
  background: var(--down);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
  padding-left: 11px;
  padding-right: 7px;
}
.mkt-sector-about {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #121212;
  font-size: 13px;
  line-height: 1.5;
  color: #b7bdc6;
}
.mkt-sector-skeleton {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.mkt-sector-skeleton span {
  display: block;
  height: 36px;
  border-radius: 8px;
  background: #1a1a1a;
  animation: mkt-sector-pulse 1.1s ease-in-out infinite;
}
@keyframes mkt-sector-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.mkt-sector-listed-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 10px;
}
.mkt-sector-listed-toggle {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mkt-sector-listed-toggle.on {
  color: #fff;
}
.mkt-sector-count {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}
.mkt-sector-cols.is-okx,
.mkt-row-sector-coin.is-okx {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(72px, 0.72fr) minmax(72px, 0.68fr);
  align-items: center;
  column-gap: 8px;
  padding: 10px 16px;
}
.mkt-sector-cols.is-okx {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #000;
  border-bottom: 1px solid var(--line);
  padding-top: 6px;
  padding-bottom: 8px;
}
.mkt-sector-th {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  text-align: left;
}
.mkt-sector-th.is-end {
  justify-content: flex-end;
  text-align: right;
  width: 100%;
}
.mkt-sector-th.on {
  color: #fff;
}
.mkt-sector-th-sep {
  margin: 0 4px;
  opacity: 0.55;
}
.mkt-sector-carets {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  margin-left: 3px;
}
.mkt-sector-carets .mkt-caret {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  opacity: 0.35;
}
.mkt-sector-carets .mkt-caret.is-up {
  border-bottom: 4px solid currentColor;
}
.mkt-sector-carets .mkt-caret.is-dn {
  border-top: 4px solid currentColor;
}
.mkt-sector-carets .mkt-caret.is-on {
  opacity: 1;
}
.mkt-row-sector-coin.is-okx {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.mkt-row-sector-coin.is-okx:active {
  background: rgba(255, 255, 255, 0.04);
}
.mkt-sector-cell.is-proj {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mkt-sector-cell.is-proj .mkt-ico,
.mkt-sector-cell.is-proj img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mkt-sector-proj-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mkt-sector-proj-text b {
  font-size: 15px;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mkt-sector-proj-text em {
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.mkt-sector-cell.is-px {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}
.mkt-sector-cell.is-px b {
  font-size: 15px;
  font-weight: 650;
}
.mkt-sector-cell.is-px em {
  font-size: 11px;
  font-style: normal;
}
.mkt-sector-cell.is-px .is-up { color: var(--up); }
.mkt-sector-cell.is-px .is-down { color: var(--down); }
.mkt-sector-cell.is-px .is-flat { color: var(--muted); }
.mkt-sector-cell.is-vol {
  text-align: right;
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.mkt-sector-empty {
  margin: 20px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
body.mkt-sector-open {
  overflow: hidden;
}
body.mkt-sector-open .dock {
  visibility: hidden !important;
  pointer-events: none !important;
}
