/* N0-172 China wholesale market page — hero lock: do not restyle from other pages */

body[data-page-intelligence] .pageHero-compact {
  padding: 16px 0 14px;
}

body[data-page-intelligence] .pageHero-compact .marketHero {
  align-items: flex-end;
  gap: 12px 28px;
}

body[data-page-intelligence] .pageHero-compact h1 {
  font-family: var(--font);
  font-size: 24px;
  max-width: 22em;
  letter-spacing: -0.55px;
  line-height: 1.18;
  font-weight: 800;
}

body[data-page-intelligence] .pageHero-compact .small {
  max-width: 52em;
  font-size: 14px;
}

body[data-page-intelligence] .pageHero-compact .marketHero-kicker {
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

body[data-page-intelligence] .pageStage > .section {
  padding: 36px 0;
}

body[data-page-intelligence] .pageHero-compact + .section {
  padding-top: 28px;
}

.marketLive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 999px;
  background: #fff;
  color: var(--muted, #667085);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.marketLive::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green, #079455);
  box-shadow: 0 0 0 3px rgba(7, 148, 85, 0.16);
}

.pageBoard.marketBoard,
.pageBoard.marketBoard-sub {
  display: block;
  border: 1px solid #eaeaea;
  border-radius: 12px;
}

.pageBoard.marketBoard {
  padding: 22px 24px 24px;
}

.marketHotBrands {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line, #e4e7ec);
}

.marketHotBrands[hidden] {
  display: none;
}

.marketHotBrands-head {
  margin: 0 0 12px;
}

.marketHotBrands-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.marketHotBrands-head p {
  margin: 2px 0 0;
  font-size: 12px;
}

.marketHotBrandGrid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.marketHotBrand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px 10px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.marketHotBrand:hover {
  border-color: #b9d4ea;
  background: #f8fbfe;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.marketHotBrand-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
  box-sizing: border-box;
}

.marketHotBrand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.marketHotBrand-mark:not(:has(img)) {
  background: #f8fafc;
  border: 1px solid #eef2f6;
}

.marketHotBrand b {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketHotBrand span {
  font-size: 11px;
  color: var(--muted, #667085);
  margin-top: 2px;
}

.marketHotBrand.is-on {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
  background: rgba(var(--blue-rgb), 0.05);
}

@media (max-width: 1100px) {
  .marketHotBrandGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .marketHotBrandGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.marketFilters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--soft, #eef2f6);
  border: 1px solid #eef2f6;
  border-radius: 12px;
}

.marketFilters-drill {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(168px, 1.35fr) minmax(240px, 2.2fr);
  align-items: end;
  gap: 10px 12px;
  flex: 1 1 560px;
  min-width: 0;
}

.marketFilters-drill[hidden] {
  display: none;
}

.marketFilter {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #667085);
}

.marketFilter-brand {
  min-width: 0;
}

.marketFilter-brand .csPicker,
.marketFilter-brand .csPicker-bar {
  width: 100%;
  min-width: 0;
}

.marketFilter-brand .csPicker-trigger {
  height: 40px;
  background: #fff;
}

.marketFilter-brand .csPicker-value {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.marketFilter-brand .csPicker-value .marketLock {
  flex-shrink: 0;
  color: #98a2b3;
}

/* 车系/车型：去掉系统 chevron，箭头与品牌 csPicker-caret 一致 */
.marketFilter:has(> select) {
  position: relative;
}
.marketFilter select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 34px 0 12px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink, #101828);
  appearance: none;
  -webkit-appearance: none;
}
.marketFilter:has(> select)::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 17px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #98a2b3;
  pointer-events: none;
}

.marketFilter select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.15);
}

.marketDays,
.marketRankTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.marketDays {
  margin-left: auto;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 10px;
}

.marketDays .chip,
.marketRankTabs .chip {
  cursor: pointer;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 8px;
  min-height: 32px;
}

.marketDays .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  box-shadow: none;
}

.marketDays .chip:hover,
.marketRankTabs .chip:hover {
  color: var(--blue);
  background: rgba(var(--blue-rgb), 0.06);
}

.marketDays .chip.is-on,
.marketRankTabs .chip.is-on {
  border-color: transparent;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.marketDays .chip.is-on:hover,
.marketRankTabs .chip.is-on:hover {
  color: #fff;
  background: var(--blue-2);
}

.marketDays .chip.is-locked {
  opacity: 1;
  color: var(--muted, #667085);
  background: transparent;
}

.marketDays .chip.is-locked:hover {
  background: rgba(var(--blue-rgb), 0.06);
}

.marketRankTabs {
  gap: 8px;
}

.marketRankTabs .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #e4e7ec);
  background: #fff;
  padding: 0 14px;
  line-height: 1;
  box-sizing: border-box;
}

.marketRankTabs .chip.is-on {
  border-color: var(--blue);
}

.marketLock {
  flex: 0 0 auto;
  display: block;
}

.marketPreviewNote {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #d6e6f4;
  background: #f4f9fd;
  color: var(--blue-2);
  font-size: 13px;
  line-height: 1.45;
}

.marketPreviewNote[hidden] {
  display: none !important;
}

.marketHeroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.marketChartCard {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.marketChartHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.marketChartTitle {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.marketChartTools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.marketCcy {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 9px;
  background: #fff;
}

.marketCcy button {
  border: 0;
  background: transparent;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #667085);
  cursor: pointer;
}

.marketCcy button.is-on {
  background: var(--blue);
  color: #fff;
}

.marketChartHint {
  margin: 0;
  font-size: 12px;
  color: var(--muted, #667085);
  white-space: nowrap;
}

.marketChart {
  flex: 1 1 auto;
  min-height: 280px;
  height: 300px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(var(--blue-rgb), 0.06), transparent 48%),
    #fff;
  overflow: hidden;
}

.marketChart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.marketChart-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted, #667085);
  font-size: 14px;
}

.marketStats {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.marketStat-model {
  margin: 0;
  padding: 12px 16px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink, #101828);
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketStat {
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line, #e4e7ec);
  background: #fff;
}

.marketStat:last-of-type {
  border-bottom: 0;
}

.marketStat span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #667085);
}

.marketStat b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.marketStat-hero {
  padding: 16px 16px 14px;
  background: #f8fbfe;
}

.marketStat-heroRow {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.marketStat-heroRow .marketSpark {
  margin-left: auto;
  align-self: center;
}

.marketStat-hero b[data-market-price] {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.marketStat-chg {
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0 !important;
}

.marketStat-chg.is-down {
  color: var(--green, #079455) !important;
  background: rgba(7, 148, 85, 0.12);
}

.marketStat-chg.is-up {
  color: #d92d20 !important;
  background: rgba(217, 45, 32, 0.1);
}

.marketStat-chg[hidden] {
  display: none !important;
}

.marketStat-usd b[data-market-export] {
  font-size: 24px;
}

.marketStat-usdRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.marketSpark {
  flex: 0 0 88px;
  width: 88px;
  height: 28px;
}

.marketSpark[hidden] {
  display: none !important;
}

.marketSpark svg {
  display: block;
  width: 88px;
  height: 28px;
}

.marketStat b.is-up { color: #d92d20; }
.marketStat b.is-down { color: var(--green, #079455); }

.marketStat b.is-locked {
  color: var(--muted, #667085);
  font-weight: 600;
  cursor: pointer;
}

.marketStat-hint {
  margin: 2px 0 0;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted, #667085);
  line-height: 1.35;
}

.marketStat-hint[hidden] {
  display: none !important;
}

.marketStats .btn.block {
  width: auto;
  justify-content: center;
  margin: 12px 16px 16px;
  border-radius: 10px;
}

[data-market-stock][hidden] { display: none !important; }

.marketDealers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.marketDealer {
  position: relative;
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.marketDealer:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.marketDealer-body {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.marketDealer b { font-size: 14px; font-weight: 750; }
.marketDealer span { font-size: 12px; color: var(--muted, #667085); }

.marketDealer-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #f8fbfe;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.marketDealer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marketDealer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: inherit;
}

.marketDealer-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  min-height: 20px;
  border-radius: 999px;
  background: rgba(7, 148, 85, 0.1);
  color: #067647;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}

.marketDealer .marketDealer-tag {
  color: #067647;
  font-size: 11px;
}

.marketPanel-label.is-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.marketPanel-label.is-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green, #079455);
  box-shadow: 0 0 0 0 rgba(7, 148, 85, 0.45);
  animation: marketLivePulse 1.8s ease-out infinite;
}

@keyframes marketLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(7, 148, 85, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(7, 148, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(7, 148, 85, 0); }
}

.marketDealer-lock {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--muted, #667085);
}

.marketSecondary {
  margin-top: 0;
}

.marketSecondaryGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.marketPanel {
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.marketPanel-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #667085);
}

.marketPanel-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketPanel-list.is-timeline {
  position: relative;
  padding-left: 18px;
}

.marketPanel-list.is-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: #eaeaea;
}

.marketNote {
  display: block;
  position: relative;
  padding: 12px 0;
  border-top: 1px solid var(--line, #e4e7ec);
  text-decoration: none;
  color: inherit;
}

.marketPanel-list.is-timeline .marketNote {
  border-top: 0;
  padding: 10px 0 14px;
}

.marketPanel-list.is-timeline .marketNote::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #c5cdd6;
  box-sizing: border-box;
}

.marketNote-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.marketNote-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(7, 148, 85, 0.1);
  color: #067647;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.marketNote-badge.is-news {
  margin-top: 0;
  background: rgba(var(--blue-rgb), 0.1);
  color: var(--blue);
}

.marketNote:first-child {
  border-top: 0;
  padding-top: 2px;
}

.marketNote:last-child {
  padding-bottom: 2px;
}

a.marketNote:hover .marketNote-title {
  color: var(--blue);
}

.marketNote.has-cover {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.marketNote.has-cover .marketNote-head {
  flex: 1 1 auto;
  min-width: 0;
}

.marketNote-cover {
  flex: 0 0 96px;
  width: 96px;
  height: 68px;
  margin-top: 2px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f6;
  border: 1px solid #eaeaea;
}

.marketNote-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.marketNote-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--muted, #667085);
}

.marketNote-meta .tag {
  font-size: 10px;
  line-height: 1.2;
  padding: 2px 6px;
}

.marketNote-title {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink, #101828);
}

.marketNote-body {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #667085;
}

.marketNote-body p { margin: 0; }

.marketNote.is-pinned .marketNote-title {
  font-weight: 800;
}

.marketPanel .muted,
.marketPanel .emptyState,
.marketPanel > .small {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted, #667085);
}

.marketTrims {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #e4e7ec);
}

.marketTrims[hidden] {
  display: none !important;
}

.marketTrims .sectionHead {
  margin: 0 0 10px;
}

.marketTrims .sectionHead h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.marketBoard .tableWrap,
.marketBoard-sub .tableWrap {
  border: 1px solid var(--line, #e4e7ec);
  border-radius: 12px;
  overflow: hidden;
}

.marketBoard .table,
.marketBoard-sub .table {
  margin: 0;
}

/* Rank tabs: lock column widths so switching kind does not reflow the table. */
.marketRanksTable {
  table-layout: fixed;
  width: 100%;
}
.marketRanksTable th,
.marketRanksTable td {
  vertical-align: middle;
}
.marketRanksTable th:nth-child(1),
.marketRanksTable td:nth-child(1) {
  width: 48px;
  text-align: center;
}
.marketRanksTable th:nth-child(2),
.marketRanksTable td:nth-child(2) {
  width: auto;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.marketRanksTable th:nth-child(3),
.marketRanksTable td:nth-child(3) {
  width: 120px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.marketRanksTable th:nth-child(4),
.marketRanksTable td:nth-child(4) {
  width: 128px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.marketBoard .table thead th,
.marketBoard-sub .table thead th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted, #667085);
  background: #f8fafc;
  border-bottom: 1px solid var(--line, #e4e7ec);
}

.marketVsGuide {
  font-variant-numeric: tabular-nums;
}

.marketVsGuide.is-up { color: #d92d20; font-weight: 700; }
.marketVsGuide.is-down { color: var(--green, #079455); font-weight: 700; }

[data-market-ranks] tr,
[data-market-trims-body] tr { cursor: pointer; }
[data-market-ranks] tr:hover td,
[data-market-trims-body] tr:hover td { background: rgba(var(--blue-rgb), 0.04); }
[data-market-ranks] tr.is-on td,
[data-market-trims-body] tr.is-on td {
  background: rgba(var(--blue-rgb), 0.08);
}

[data-market-trims-body] tr.is-on td:first-child {
  box-shadow: inset 3px 0 0 var(--blue);
}

.marketTrimActs {
  white-space: nowrap;
  text-align: right;
  width: 1%;
}

.marketTrimAct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.marketTrimAct .icon,
.marketTrimAct svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.marketTrimAct-primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}

.marketTrimAct-primary:hover {
  background: var(--blue-2);
  color: #fff;
}

.marketTrimAct-ghost {
  background: #fff;
  color: var(--blue);
  border: 1px solid #d0d5dd;
}

.marketTrimAct-ghost:hover {
  border-color: var(--blue);
  background: rgba(var(--blue-rgb), 0.06);
}

.marketBoard.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.pageBoard.marketBoard-sub {
  padding: 18px 20px 16px;
}

.marketBoard-sub .sectionHead {
  margin-bottom: 12px;
}

.marketGate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(var(--navy-rgb), 0.48);
}

.marketGate[hidden] {
  display: none !important;
}

.marketGate-panel {
  position: relative;
  width: min(440px, 100%);
  margin-bottom: 12px;
  border-radius: 16px 16px 12px 12px;
  background: #fff;
  padding: 24px 22px 20px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.marketGate-panel h3 {
  margin: 0 28px 8px 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink, #101828);
}

.marketGate-panel .small {
  margin: 0 0 16px;
  color: var(--muted, #667085);
  line-height: 1.45;
}

.marketGate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketGate-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}

.marketGate-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #667085);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.marketGate-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink, #101828);
}

body.marketGate-open {
  overflow: hidden;
}

@media (min-width: 720px) {
  .marketGate {
    align-items: center;
  }
  .marketGate-panel {
    margin-bottom: 0;
    border-radius: 14px;
  }
}

@media (max-width: 960px) {
  .marketFilters-drill {
    grid-template-columns: 1fr;
  }
  .marketHeroGrid,
  .marketSecondaryGrid,
  .marketDealers {
    grid-template-columns: 1fr;
  }
  .marketDays {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .marketDays .chip {
    flex: 1 1 0;
    justify-content: center;
  }
  .marketChartHint {
    white-space: normal;
    text-align: right;
  }
  .marketStats .btn.block {
    margin: 12px;
  }
}

/* Marketplace activity page — reuse intel panel/timeline; no news column */
body[data-page-marketplace] .pageBoard.marketBoard-mp {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 22px 22px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
}

body[data-page-marketplace] .mpFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page-marketplace] .mpFilters .chip {
  border: 1px solid var(--line, #e4e7ec);
  background: #fff;
  padding: 0 14px;
  height: 32px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted, #667085);
  cursor: pointer;
}

body[data-page-marketplace] .mpFilters .chip.is-on {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

body[data-page-marketplace] .marketPanel-mp {
  min-height: 280px;
}

body[data-page-marketplace] .marketPanel-mp .marketPanel-list {
  max-height: none;
}
