.pricing-marketplace {
  min-width: 0;
  padding: 22px;
  border: 1px solid #dce8e3;
  border-radius: 20px;
  background:
    radial-gradient(circle at 38% 0%, rgba(20, 184, 166, .09), transparent 31%),
    linear-gradient(180deg, #f5fbf9 0, #f8fbfa 220px, #fff 520px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .045);
}

.pricing-marketplace [hidden] { display: none !important; }

.pricing-market-public-shell { padding: 30px var(--pad) 72px; }
.pricing-market-public-wrap { width: 100%; max-width: 1280px; margin: 0 auto; }

.market-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.market-page-head h1 {
  margin-top: 3px;
  color: #17231f;
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -.035em;
}

.market-page-head p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 7px;
  color: #60706a;
  font-size: 15px;
  line-height: 1.65;
}

.market-total {
  flex: none;
  padding: 8px 12px;
  border: 1px solid #d5e2dd;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #75817d;
  font-size: 13px;
  white-space: nowrap;
}

.market-total strong { color: #18382e; font-size: 15px; }

.market-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid #d9e5e0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 3px 10px rgba(15, 23, 42, .035);
}

.market-notice-icon {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #e3f7ef;
  color: #087653;
  font-size: 17px;
  font-weight: 800;
}

.market-notice > div { flex: 1 1 280px; min-width: 0; }
.market-notice > div strong { color: #26342f; font-size: 14.5px; }
.market-notice > div p { margin-top: 2px; color: #77827e; font-size: 13.5px; }
/* Flex-wrap rather than a fixed grid row: the discount is operator copy and
   may be a whole sentence. When it no longer fits beside the title it moves
   to its own row (with the →) instead of pushing the strip past the card. */
.market-deal {
  display: flex;
  flex-wrap: wrap;
  flex: 0 1 560px;
  max-width: 560px;
  align-items: center;
  gap: 6px 8px;
  margin-left: auto;
  padding: 7px 9px;
  border: 1px solid #f6dcc2;
  border-radius: 10px;
  background: #fff7ed;
  color: #934b0b;
  font-size: 12.5px;
}
.market-deal:hover { border-color: #efbd8c; background: #fff3e3; }
.market-deal-badge,
.market-deal-discount { padding: 3px 7px; border-radius: 999px; font-weight: 750; }
.market-deal-badge { flex: none; background: #f97316; color: #fff; font-size: 10.5px; letter-spacing: .035em; white-space: nowrap; }
.market-deal-copy { display: grid; flex: 1 1 10em; min-width: 0; gap: 1px; }
.market-deal-copy b,
.market-deal-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-deal-copy b { color: #80400b; font-size: 13px; }
.market-deal-copy small { color: #aa6b35; font-size: 11.5px; }
.market-deal-discount {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  border-radius: 10px;
  background: #ffead5;
  color: #a6530d;
  font-size: 11.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.market-deal i { flex: none; margin-left: auto; color: #c56516; font-style: normal; font-weight: 800; }

.market-filter-panel {
  margin-bottom: 16px;
  padding: 18px 20px 16px;
  border: 1px solid #e2e8e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 40, 30, .04), 0 6px 18px rgba(16, 40, 30, .04);
}

.market-filter-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.market-filter-row + .market-filter-row { margin-top: 12px; }
.market-filter-label { padding-top: 7px; color: #7b8782; font-size: 13px; line-height: 1.2; }
.market-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }

/* One chip shape for all three rows. Platform and group chips carry their own
   colour through --chip-*: bg/fg/bd for the resting tint, on for the solid fill
   they take when picked. 全部 stays neutral and uses the brand green when picked. */
.market-chip {
  --chip-bg: #fff;
  --chip-fg: #4f5d57;
  --chip-bd: #dbe3df;
  --chip-on: #12a77a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--chip-bd);
  border-radius: 8px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease, color .12s ease, box-shadow .12s ease, transform .12s ease;
}

.market-chip:hover:not(:disabled):not(.is-on) { border-color: var(--chip-on); transform: translateY(-1px); }
.market-chip:focus-visible { outline: 2px solid var(--chip-on); outline-offset: 2px; }
.market-chip.is-on {
  border-color: var(--chip-on);
  background: var(--chip-on);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--chip-on) 32%, transparent);
}
/* Nothing in the table matches this chip with the other filters applied: keep
   it readable but clearly out of play, the way the reference marketplace does. */
.market-chip:disabled {
  border-color: #eef1ef;
  background: #f6f8f7;
  color: #b3bcb8;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.market-chip-name { min-width: 0; }
.market-chip-mult { font-size: 12px; font-style: normal; font-weight: 700; opacity: .82; }
.market-chip.is-on .market-chip-mult { opacity: .92; }

.market-chip-icon {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
}
.market-chip.is-on .market-chip-icon { padding: 2px; box-sizing: content-box; margin: -2px 0 -2px -2px; background: #fff; }
.market-chip:disabled .market-chip-icon { opacity: .38; filter: grayscale(1); }

/* Platform chips: tint by vendor. The same palette is applied to the group
   chips of the picked platform (class is-vendor-<id>, set in pricing-market.js).
   Two classes beat the one-class .market-hue-* rules below, which come later. */
.market-chip-anthropic,
.market-chip-group.is-vendor-anthropic { --chip-bg: #fff6ec; --chip-fg: #9a5413; --chip-bd: #f0cfa9; --chip-on: #dd7a1f; }
.market-chip-openai,
.market-chip-group.is-vendor-openai { --chip-bg: #eefaf3; --chip-fg: #0a7248; --chip-bd: #bfe6d1; --chip-on: #12a06a; }
.market-chip-google,
.market-chip-group.is-vendor-google { --chip-bg: #eff6ff; --chip-fg: #245fa8; --chip-bd: #bfd8f6; --chip-on: #3b82d6; }
.market-chip-deepseek,
.market-chip-group.is-vendor-deepseek { --chip-bg: #eef2ff; --chip-fg: #3446b5; --chip-bd: #c9d2f7; --chip-on: #4a5fd6; }
.market-chip-zhipu,
.market-chip-group.is-vendor-zhipu { --chip-bg: #eef5ff; --chip-fg: #2a58a8; --chip-bd: #c3d7f5; --chip-on: #3a76d1; }
.market-chip-moonshot,
.market-chip-group.is-vendor-moonshot { --chip-bg: #f3f4f6; --chip-fg: #3f4854; --chip-bd: #d9dde3; --chip-on: #4b5563; }
.market-chip-xai,
.market-chip-group.is-vendor-xai { --chip-bg: #f4f5f6; --chip-fg: #444d55; --chip-bd: #d8dce0; --chip-on: #3f4a54; }
.market-chip-other,
.market-chip-group.is-vendor-other { --chip-bg: #f4f6f5; --chip-fg: #55625c; --chip-bd: #dce3df; --chip-on: #66736d; }

/* Group chips: the same 15-colour palette as the group tags below, keyed by
   tagHue so a group keeps its colour in the chip and in its table header. */
.market-hue-amber      { --chip-bg: #fff4e0; --chip-fg: #8f5100; --chip-bd: #f2d6a6; --chip-on: #d98a00; }
.market-hue-blue       { --chip-bg: #e9f3ff; --chip-fg: #0b4fbf; --chip-bd: #bcd8fb; --chip-on: #2f78e0; }
.market-hue-cyan       { --chip-bg: #e2f6f9; --chip-fg: #00707f; --chip-bd: #b3e3ea; --chip-on: #0a97ab; }
.market-hue-green      { --chip-bg: #e8f8ef; --chip-fg: #0a7a46; --chip-bd: #b6e5cb; --chip-on: #19a265; }
.market-hue-grey       { --chip-bg: #f2f3f5; --chip-fg: #575d66; --chip-bd: #d9dce1; --chip-on: #6b7480; }
.market-hue-indigo     { --chip-bg: #ecedfc; --chip-fg: #303ba8; --chip-bd: #c4c9f2; --chip-on: #4655d1; }
.market-hue-light-blue { --chip-bg: #e4f4fd; --chip-fg: #00648f; --chip-bd: #b2dcf3; --chip-on: #0d93cf; }
.market-hue-lime       { --chip-bg: #f0f8dd; --chip-fg: #4f7a00; --chip-bd: #d4e8a3; --chip-on: #7cb100; }
.market-hue-orange     { --chip-bg: #fff0e4; --chip-fg: #9c4a00; --chip-bd: #f8cfa8; --chip-on: #e86f10; }
.market-hue-pink       { --chip-bg: #fdebf4; --chip-fg: #a82269; --chip-bd: #f5bfd9; --chip-on: #d6408c; }
.market-hue-purple     { --chip-bg: #f4ecfd; --chip-fg: #6329b8; --chip-bd: #dac3f4; --chip-on: #8a4be0; }
.market-hue-red        { --chip-bg: #fdecec; --chip-fg: #b01b1b; --chip-bd: #f5bcbc; --chip-on: #dc3b3b; }
.market-hue-teal       { --chip-bg: #e1f5f2; --chip-fg: #007566; --chip-bd: #aee3dc; --chip-on: #0fa392; }
.market-hue-violet     { --chip-bg: #f0eafd; --chip-fg: #5227c4; --chip-bd: #d1c3f4; --chip-on: #7048e8; }
.market-hue-yellow     { --chip-bg: #fff8dd; --chip-fg: #7e6000; --chip-bd: #f1e0a0; --chip-on: #d4a500; }


.market-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e9e5;
}

.market-search {
  position: relative;
  display: flex;
  flex: 0 1 300px;
  align-items: center;
}

.market-search svg { position: absolute; left: 11px; width: 15px; height: 15px; fill: #96a19d; pointer-events: none; }
.market-search input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 34px;
  border: 1px solid #d7e1dd;
  border-radius: 9px;
  background: #fff;
  color: #26332e;
  font: inherit;
  font-size: 13.5px;
}
.market-search input:focus { outline: none; border-color: #18a97d; box-shadow: 0 0 0 3px rgba(18, 169, 125, .1); }
.market-search input::placeholder { color: #a0aaa6; }
.market-shown { margin-left: auto; color: #89938f; font-size: 13px; white-space: nowrap; }
.market-shown strong { color: #40504a; }
.market-reset { padding: 6px 9px; border: 0; background: transparent; color: #0a7b58; font: inherit; font-size: 13.5px; cursor: pointer; }

.market-groups { display: grid; gap: 16px; }
.market-group {
  overflow: hidden;
  border: 1px solid #bfe2d1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(18, 91, 68, .055);
}

/* Left: what the group is. Right: what it costs and how it bills. Every part
   is placed on its own grid line, so a group without a note or badges has no
   second row at all. The wash behind it takes the group tag's hue. */
.market-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 24px;
  padding: 15px 18px 14px;
  border-bottom: 1px solid #e3ebe8;
  background: linear-gradient(90deg, var(--mg-tint, #f6fcf9), #fff 60%);
}
.market-group-hue-amber { --mg-tint: #fff8ec; }
.market-group-hue-blue { --mg-tint: #f2f7ff; }
.market-group-hue-cyan { --mg-tint: #eff9fa; }
.market-group-hue-green { --mg-tint: #f1faf5; }
.market-group-hue-grey { --mg-tint: #f6f7f8; }
.market-group-hue-indigo { --mg-tint: #f4f5fd; }
.market-group-hue-light-blue { --mg-tint: #eff8fd; }
.market-group-hue-lime { --mg-tint: #f6fbeb; }
.market-group-hue-orange { --mg-tint: #fff5ec; }
.market-group-hue-pink { --mg-tint: #fdf3f8; }
.market-group-hue-purple { --mg-tint: #f8f3fd; }
.market-group-hue-red { --mg-tint: #fdf3f3; }
.market-group-hue-teal { --mg-tint: #eff9f7; }
.market-group-hue-violet { --mg-tint: #f6f3fd; }
.market-group-hue-yellow { --mg-tint: #fffaea; }

.market-group-id { grid-column: 1; grid-row: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.market-group-tag { padding: 3px 11px; font-size: 13.5px; font-weight: 750; }
.market-group-desc { color: #73807b; font-size: 13px; line-height: 1.5; }
.market-group-head > .market-group-cap { grid-column: 2; grid-row: 1; justify-self: end; }
.market-group-head > .market-group-alert { grid-column: 1; grid-row: 2; justify-self: start; }
.market-group-head > .market-group-feats { grid-column: 2; grid-row: 2; justify-self: end; }
/* Multiplier and discount are one capsule of two cells: green for the multiplier,
   orange for the discount, the figure in each set heavier than its label. */
.market-group-cap {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #d3e6dc;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}
.market-group-mult,
.market-group-discount { padding: 3px 10px; font-weight: 500; }
.market-group-mult b,
.market-group-discount b { font-weight: 800; font-variant-numeric: tabular-nums; }
.market-group-mult { background: #e8f7f0; color: #3d6e5b; }
.market-group-mult b { color: #065f46; }
.market-group-discount { background: #fff0e4; color: #9a5a1c; }
.market-group-discount b { color: #a14f0a; }
.market-group-mult + .market-group-discount { border-left: 1px solid #f1d9bf; }
/* The operator's heads-up for a group ("cache hits are unreliable here"), under
   the group's name. */
.market-group-alert {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #e9c565;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}
/* The dark 提示 tab says "this is a heads-up, not a price". It stretches with
   the text when the note wraps onto a second line. */
.market-group-alert i {
  display: flex;
  align-items: center;
  flex: none;
  padding: 3px 8px;
  background: #d99a1c;
  color: #fff;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .5px;
}
.market-group-alert span {
  min-width: 0;
  padding: 3px 10px;
  background: #fff8e1;
  color: #7a4f00;
  font-weight: 650;
}
/* Billing badges: one per rule the group's models follow beyond the table's
   three prices, in the same two-part shape as 提示. Each rule keeps its colour
   everywhere: orange long context, purple peak hours, blue cache writes, teal
   1-hour cache, pink per image. The dark half carries white text, so its
   colour stays dark enough to read at 12px. */
.market-group-feats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 560px; margin: 0; padding: 0; list-style: none; }
.market-feat { display: inline-flex; overflow: hidden; border: 1px solid var(--feat-soft); border-radius: 7px; font-size: 12.5px; line-height: 1.5; white-space: nowrap; }
.market-feat > i { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: var(--feat-dark); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; }
.market-feat-k { font-style: normal; }
.market-feat-ico { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.market-feat-v { padding: 3px 9px; background: var(--feat-soft); color: var(--feat-ink); font-weight: 650; }
.market-feat-long { --feat-dark: #c2560a; --feat-soft: #fff1e2; --feat-ink: #9a4508; }
.market-feat-peak { --feat-dark: #6d43d9; --feat-soft: #f2ecff; --feat-ink: #5a33bf; }
.market-feat-cache { --feat-dark: #2468c0; --feat-soft: #e8f1fd; --feat-ink: #1d5aa6; }
.market-feat-hour { --feat-dark: #0e7f74; --feat-soft: #e1f6f3; --feat-ink: #0b6a61; }
.market-feat-image { --feat-dark: #c42a7c; --feat-soft: #fdeaf4; --feat-ink: #a3226a; }
/* The icon sprite is a child of the groups grid; out of flow it takes no row. */
.market-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.market-table-wrap { width: 100%; overflow: visible; }
/* Cards turn on by the width of the price list itself, not the window: the
   console rail takes 250px, so the same window is roomy on the public page and
   tight in the console. */
.market-groups { container: market / inline-size; }

/* One line per model, one figure per cell. The selectors stop at the outer
   table's own cells so the details table nested inside does not inherit them. */
.market-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; }
.market-col-name { width: 27%; }
.market-col-num { width: 12.5%; }
.market-col-zhe { width: 10%; }
.market-col-mult { width: 8.5%; }
.market-col-more { width: 17%; }
.market-table > thead > tr > th {
  padding: 11px 18px 9px;
  border-bottom: 1px solid #edf0ef;
  color: #8a9490;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.market-table > thead > tr > th.market-model-col { text-align: left; }
.market-table > tbody > tr > td {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f2f1;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}
.market-table > tbody > tr:last-child > td { border-bottom: 0; }
.market-model-row { transition: background-color .12s ease; }
.market-model-row:hover > td,
.market-model-row.is-open > td { background: #fafcfb; }
.market-model-row.is-open > td { border-bottom-color: transparent; }
.market-model-row[hidden],
.market-group[hidden] { display: none; }
.market-table > tbody > tr > td.market-model-name { text-align: left; white-space: normal; overflow-wrap: anywhere; }
.market-model-name code { padding: 0; background: none; color: #1f1f1f; font-family: var(--mono); font-size: 13.5px; font-weight: 650; }
.market-zhe { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #e9f7ef; color: #0a7a46; font-size: 14px; font-weight: 750; }
.market-table > tbody > tr > td.market-mult-cell { color: #3c4743; font-size: 14px; font-weight: 500; }
.market-zhe-cell > span,
.market-mult-cell > span { color: #b2b9b6; }
.market-table > tbody > tr > td.market-image-prices { color: #8a9490; font-size: 12.5px; font-weight: 500; text-align: left; white-space: normal; }
.market-image-prices > span { margin-right: 10px; }
.market-image-prices b { display: inline-block; margin: 2px 14px 2px 0; color: #1f1f1f; font-size: 14px; font-weight: 600; }
.market-table > tbody > tr > td.market-unpriced { color: #9ba4a0; font-size: 13px; font-weight: 500; text-align: left; }

/* The 明细 button names a condition that raises the price ("超 272K 加价",
   "高峰×2") so it is seen without opening the row. Its two labels swap on
   aria-expanded, which keeps the text translatable server-side. */
.market-more,
.market-expand-all {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.market-more { color: #8a9490; font-size: 12.5px; font-weight: 500; }
.market-more:hover,
.market-more[aria-expanded="true"] { color: #0a7a46; }
.market-more svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.market-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.market-expand-all { color: #0a7a46; font-size: 12px; font-weight: 600; }
.market-when-open,
[aria-expanded="true"] > .market-when-closed { display: none; }
[aria-expanded="true"] > .market-when-open { display: inline; }

/* The details: our price and the official one, line by line, in one small
   table; a long-context line and peak hours each get one labelled section. */
.market-table > tbody > tr.market-detail-row > td { padding: 0 18px 16px; background: #fafcfb; text-align: left; white-space: normal; }
.market-detail { padding: 4px 18px 8px; border: 1px solid #e8eeeb; border-radius: 10px; background: #fff; }
.market-detail-line { padding: 10px 0 4px; color: #5f6368; font-size: 13px; }
.market-detail-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.market-detail-table th,
.market-detail-table td { padding: 7px 0 7px 10px; font-size: 13.5px; text-align: right; overflow-wrap: anywhere; }
.market-detail-table thead th { padding-top: 9px; padding-bottom: 7px; border-bottom: 1px solid #f0f2f1; color: #8a9490; font-size: 12px; font-weight: 500; }
.market-detail-table th:first-child { width: 24%; padding-left: 0; color: #5f6368; font-size: 12.5px; font-weight: 500; text-align: left; }
.market-detail-us td { color: #1f1f1f; font-weight: 650; }
.market-detail-official td { color: #8a9490; font-weight: 400; }
.market-detail-table .market-detail-sec th { padding: 11px 0 3px; border-top: 1px dashed #e6ebe9; color: #8a9490; font-size: 12px; font-weight: 500; text-align: left; }

/* Narrow lists: each model becomes a small block. Name and 折 on the first
   line, the three prices under their labels, then the 倍率 and the button. */
@container market (max-width: 719.98px) {
  /* The header becomes one column in reading order: name, price, note, badges. */
  .market-group-head { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 13px 14px; }
  .market-group-head > .market-group-id,
  .market-group-head > .market-group-cap,
  .market-group-head > .market-group-alert,
  .market-group-head > .market-group-feats { grid-column: 1; grid-row: auto; justify-self: start; }
  .market-group-feats { justify-content: flex-start; max-width: none; }
  .market-table,
  .market-table > tbody { display: block; width: 100%; }
  /* Every price carries its own label below, so the header row would only be
     read twice by a screen reader. */
  .market-table > thead,
  .market-table > colgroup { display: none; }
  .market-model-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 10px;
    padding: 13px 14px 11px;
    border-bottom: 1px solid #f0f2f1;
  }
  .market-model-row:hover > td,
  .market-model-row.is-open > td { background: none; }
  .market-model-row.is-open { background: #fafcfb; border-bottom-color: transparent; }
  .market-table > tbody > tr > td { padding: 0; border: 0; text-align: left; }
  .market-table > tbody > tr > td.market-model-name { grid-column: 1 / 3; grid-row: 1; align-self: center; }
  .market-table > tbody > tr > td.market-zhe-cell { grid-column: 3; grid-row: 1; text-align: right; }
  .market-table > tbody > tr > td.market-price { grid-row: 2; margin-top: 10px; }
  .market-table > tbody > tr > td.market-image-prices,
  .market-table > tbody > tr > td.market-unpriced { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; }
  .market-table > tbody > tr > td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 1px;
    color: #8a9490;
    font-size: 11.5px;
    font-weight: 500;
  }
  .market-table > tbody > tr > td.market-image-prices::before { display: none; }
  .market-table > tbody > tr > td.market-mult-cell::before { display: inline; margin-right: 4px; font-size: 12px; }
  .market-image-prices > span { display: none; }
  .market-table > tbody > tr > td.market-mult-cell { grid-column: 1; grid-row: 3; margin-top: 8px; color: #8a9490; font-size: 12px; }
  .market-table > tbody > tr > td.market-more-cell { grid-column: 2 / -1; grid-row: 3; margin-top: 8px; text-align: right; }
  .market-more { font-size: 12px; }
  .market-table > tbody > tr.market-detail-row { display: block; }
  .market-table > tbody > tr.market-detail-row > td { display: block; padding: 0 8px 12px; }
  .market-detail { padding: 2px 8px 6px; }
  /* Even columns, and a figure never breaks: "¥0.0125" split over two lines
     reads as two prices. Headings may wrap instead. */
  .market-detail-table td { padding-left: 4px; font-size: 11.5px; white-space: nowrap; overflow-wrap: normal; }
  .market-detail-table thead th { padding-left: 4px; font-size: 10.5px; line-height: 1.35; vertical-align: bottom; }
  .market-detail-table th:first-child { width: 2.6em; font-size: 11.5px; white-space: nowrap; }
}

.market-empty { padding: 64px 20px; border: 1px dashed #cad9d3; border-radius: 15px; background: rgba(255, 255, 255, .7); color: #87938e; font-size: 15px; text-align: center; }
.market-footnotes { display: grid; gap: 5px; margin-top: 16px; padding: 0 3px; color: #8a9590; font-size: 12.5px; line-height: 1.65; }
.market-footnotes a { color: #087653; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 899.98px) {
  .pricing-marketplace { padding: 18px; border-radius: 16px; }
  .market-page-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .market-total { align-self: flex-start; }
  .market-notice { align-items: flex-start; }
  .market-deal { flex-basis: 100%; max-width: none; margin: 4px 0 0 44px; }
}

@media (max-width: 640px) {
  .pricing-marketplace { margin: 0 calc(var(--pad) * -1); padding: 15px var(--pad) 20px; border-right: 0; border-left: 0; border-radius: 0; }
  .market-page-head h1 { font-size: 28px; }
  .market-notice { padding: 13px; }
  .market-notice > div { flex-basis: calc(100% - 44px); }
  /* The bleed margins above only reach both edges with an auto width; the
     desktop width: 100% kept the panel 2×pad short of the right edge. */
  .pricing-market-public-wrap { width: auto; }
  .market-deal { margin-left: 0; }
  /* On a phone the headline is the message: show all of it, wrapped, rather
     than an ellipsis after a dozen characters. The whole strip is the link,
     so the → goes rather than taking a row of its own. */
  .market-deal-copy b,
  .market-deal-copy small { white-space: normal; }
  .market-deal i { display: none; }
  .market-filter-panel { padding: 14px 12px; border-radius: 12px; }
  .market-filter-row { display: block; }
  .market-filter-label { display: block; margin-bottom: 7px; padding: 0; }
  .market-chips { flex-wrap: nowrap; overflow-x: auto; padding: 0 22px 3px 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
  .market-chips::-webkit-scrollbar { display: none; }
  .market-chip { flex: 0 0 auto; }
  .market-search-row { align-items: stretch; flex-wrap: wrap; }
  .market-search { flex: 1 1 100%; }
  .market-shown { margin-left: 0; }
  .market-reset { margin-left: auto; }
  .market-group-head { padding: 13px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .market-chip,
  .market-model-row,
  .market-more svg { transition: none; }
}
