/* AID 厂家广场: the homepage's paper, graphite and small gold point. */
:root.market-brand[data-mall-theme] {
  --mt-bg: #f8f9fa;
  --mt-surface: #fff;
  --mt-soft: #f3f5f6;
  --mt-quiet: #f4f5f6;
  --mt-ink: #202226;
  --mt-muted: #687179;
  --mt-line: #e1e5e8;
  --mt-accent: #202226;
  --mt-hover: #3b4046;
  --mt-tint: #edf0f2;
  --mt-on-accent: #fff;
  --mt-focus: #0071e3;
  --mt-hero: #f8f9fa;
  --mt-hero-ink: #202226;
  --mt-hero-muted: #687179;
  --mt-shadow: #2022260a;
  --mt-photo: #fff;
  --market-gold: #c5a165;
  --market-gold-ink: #8e703d;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 24px;
}

:root.market-brand .mall-width {
  width: min(1360px, calc(100% - 80px));
}
:root.market-brand[data-mall-theme] .mall-utility {
  background: var(--mt-bg);
  border-bottom: 1px solid var(--mt-line);
}
:root.market-brand .mall-utility-inner {
  min-height: 34px;
  gap: 20px;
  font-size: 11px;
}
:root.market-brand .mall-utility-links {
  gap: 17px;
}
:root.market-brand .mall-utility-links button {
  font-size: 11px;
}
:root.market-brand[data-mall-theme] .mall-header,
:root.market-brand[data-mall-theme] .mall-navigation {
  background: var(--mt-bg);
}
:root.market-brand body[data-mall-page="market"] .mall-brand-row {
  display: grid;
  grid-template-columns: 255px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding-block: 22px;
}
:root.market-brand .mall-brand {
  gap: 18px;
}
:root.market-brand .mall-brand-logo {
  width: 80px;
}
:root.market-brand .mall-brand > span {
  padding-left: 18px;
  border-left: 1px solid #d8dde1;
}
:root.market-brand body[data-mall-page="market"] .mall-brand strong {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.6px;
}
:root.market-brand .mall-brand small {
  font-size: 10px;
  letter-spacing: 0;
  margin-top: 6px;
}
:root.market-brand body[data-mall-page="market"] .mall-search {
  height: var(--aid-ui-search-height);
  border: 1px solid var(--mt-line);
  border-radius: var(--aid-ui-control-radius);
  background: #fff;
}
:root.market-brand body[data-mall-page="market"] .mall-search svg {
  display: block;
  width: var(--aid-ui-control-icon);
  height: var(--aid-ui-control-icon);
  margin-inline:10px var(--aid-ui-control-gap);
}
:root.market-brand body[data-mall-page="market"] .mall-search input {
  font-size: var(--aid-ui-input-font);
  padding-inline: 10px;
}
:root.market-brand body[data-mall-page="market"] .mall-search button {
  font-size: var(--aid-ui-control-font);
  font-weight: 500;
  padding-inline: 10px;
}
:root.market-brand body[data-mall-page="market"] .mall-purchase-link {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 8px;
  font-size: 12px;
  gap: 9px;
  background: transparent;
}
:root.market-brand .mall-purchase-link svg {
  width: 17px;
  height: 17px;
}
:root.market-brand [data-mall-cart-count] {
  font-size: 10px;
  min-width: 17px;
  height: 17px;
}
:root.market-brand body[data-mall-page="market"] .mall-navigation > .mall-width {
  min-height: 43px;
  gap: 34px;
}
:root.market-brand body[data-mall-page="market"] .mall-navigation a,
:root.market-brand body[data-mall-page="market"] .mall-navigation a:first-child {
  width: auto;
  min-height: 43px;
  padding-inline: 0;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
}
:root.market-brand[data-mall-theme] body[data-mall-page="market"] .mall-navigation a[aria-current="page"] {
  background: transparent;
}
:root.market-brand[data-mall-theme] body[data-mall-page="market"] .mall-navigation a[aria-current="page"]::after {
  height: 2px;
  background: var(--market-gold);
}
:root.market-brand .mall-navigation span {
  font-size: 11px;
}
:root.market-brand body[data-mall-page="market"] .mall-main {
  padding-block: 0 48px;
}
:root.market-brand .sm-storefront {
  padding: 0;
  font-family: inherit;
}
:root.market-brand .sm-storefront button:hover {
  color: var(--mt-ink);
}
:root.market-brand .sm-storefront .button.primary:hover {
  color: #fff;
}

/* One compact category entry beside the manufacturer's own artwork. */
:root.market-brand .market-promotion {
  --market-category-width: calc((100% - 16px) / 4);
  position: relative;
  display: grid;
  grid-template-columns: var(--market-category-width) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--mt-line);
}
:root.market-brand .market-promotion[hidden] { display: none; }
:root.market-brand .market-category-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--mt-line);
  border-radius: var(--aid-ui-panel-radius);
  background: #fff;
}
:root.market-brand .market-category-nav > header,
:root.market-brand .market-category-detail > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 12px;
}
:root.market-brand .market-category-nav h1 {
  margin: 0;
  color: var(--mt-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
:root.market-brand .market-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--aid-ui-control-gap);
  min-width: 0;
}
:root.market-brand .market-category-nav [data-sm-category-group],
:root.market-brand .market-category-detail [data-sm-category-close] {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--aid-ui-control-gap);
  box-sizing: border-box;
  min-width: 0;
  min-height: var(--aid-ui-chip-height);
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--aid-ui-control-radius);
  background: transparent;
  color: var(--mt-muted);
  font-family: var(--aid-ui-font-family);
  font-size: var(--aid-ui-control-font);
  font-weight: 400;
  line-height: var(--aid-ui-line);
  text-align: left;
}
:root.market-brand .market-category-grid [data-sm-category-group] {
  width: 100%;
  background: var(--mt-bg, #f7f8fa);
  color: var(--mt-ink);
}
:root.market-brand .market-category-nav [data-sm-category-group] > span { min-width: 0; overflow-wrap: anywhere; }
:root.market-brand .market-category-nav [data-sm-category-group] > svg { flex: none; color: var(--mt-muted); }
:root.market-brand .market-category-nav [data-sm-category-group]:is(:hover, .is-active, [aria-pressed="true"]):not(:disabled) {
  border-color: #b9cce1;
  background: #edf4fb;
  color: var(--mt-focus);
}
:root.market-brand .market-category-nav [data-sm-category-group]:disabled { color: #9ba2aa; cursor: default; }
:root.market-brand .market-category-detail {
  position: absolute;
  z-index: 36;
  top: 20px;
  right: 0;
  bottom: 20px;
  left: calc(var(--market-category-width) + 16px);
  box-sizing: border-box;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--mt-line);
  border-radius: var(--aid-ui-panel-radius);
  background: #fff;
  box-shadow: 0 8px 26px #20222614;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
:root.market-brand .market-category-detail[hidden] { display: none; }
:root.market-brand .market-category-detail :is(h2, h3) { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
:root.market-brand .market-category-detail [data-sm-category-close] { flex: none; justify-content: center; padding: 6px; }
:root.market-brand .market-category-detail [data-sm-category-close]:hover { background: var(--mt-bg, #f7f8fa); }
:root.market-brand .market-category-detail .sm-browse-subcategory-list { align-items: flex-start; }
:root.market-brand .market-category-detail .sm-browse-subcategory-list [data-sm-category-filter] { background: var(--mt-bg, #f7f8fa); }
:root.market-brand .market-category-detail .sm-browse-subcategory-list [data-sm-category-filter].is-active { background: #edf4fb; border-color: #b9cce1; color: var(--mt-focus); }
:root.market-brand .market-promotion.is-searching { grid-template-columns: minmax(0, 1fr); padding-block: 16px; }
:root.market-brand .market-promotion.is-searching .market-category-nav { flex-direction: row; align-items: center; gap: 20px; padding: 0; border: 0; background: transparent; }
:root.market-brand .market-promotion.is-searching .market-category-nav > header { flex: none; gap: 12px; margin: 0; }
:root.market-brand .market-promotion.is-searching .market-category-grid { flex: 1; grid-template-columns: repeat(8, minmax(0, 1fr)); }
:root.market-brand .market-promotion.is-searching .market-category-grid [data-sm-category-group] { justify-content: center; padding-inline: 6px; }
:root.market-brand .market-promotion.is-searching .market-category-grid [data-sm-category-group] > svg { display: none; }
:root.market-brand .market-promotion.is-searching .market-category-detail { top: calc(100% - 8px); bottom: auto; left: 0; max-height: var(--aid-ui-filter-max-height); }
:root.market-brand .market-promo-copy { min-width: 0; }
:root.market-brand .market-promo-copy h1 {
  margin: 0; font-size: clamp(28px, 2.6vw, 36px); font-weight: 600; line-height: 1.25; letter-spacing: -.025em;
}
:root.market-brand .market-promo-description {
  margin: 12px 0 20px; color: var(--mt-muted); font-size: 14px; line-height: 1.65;
}
:root.market-brand .market-main-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: var(--aid-ui-search-height); box-sizing: border-box; padding: 8px 16px;
  border: 1px solid var(--mt-ink); border-radius: var(--aid-ui-control-radius);
  background: var(--mt-ink); color: #fff;
  font-size: var(--aid-ui-control-font); line-height: var(--aid-ui-line);
}
:root.market-brand .sm-storefront .market-main-action:hover { color: #fff; background: var(--mt-hover); }
:root.market-brand .market-promotion svg {
  width: var(--aid-ui-control-icon); height: var(--aid-ui-control-icon);
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
:root.market-brand .market-ad-carousel,
:root.market-brand .market-ad-empty {
  position: relative; min-width: 0; overflow: hidden; height: clamp(230px, 20vw, 290px);
  border-radius: var(--aid-ui-panel-radius); background: #edf0f3;
}
:root.market-brand :is(.market-ad-carousel, .market-ad-empty)[hidden] { display: none; }
:root.market-brand .market-promo-slides { position: absolute; inset: 0; }
:root.market-brand .market-promo-slide {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0;
  background: transparent; cursor: pointer;
}
:root.market-brand .market-promo-slide[hidden] { display: none; }
:root.market-brand .market-promo-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; animation: market-promo-reveal .45s ease both; }
:root.market-brand .market-promo-selectors {
  position: absolute; z-index: 1; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; padding: 0 4px; background: #10131a45; border-radius: 20px;
}
:root.market-brand .market-promo-selectors button {
  display: grid; place-items: center; flex: none;
  width: 28px; height: var(--aid-ui-chip-height); padding: 0; border: 0; background: transparent;
}
:root.market-brand .market-promo-selectors button::after { content: ''; width: 6px; height: 6px; border-radius: 4px; background: #ffffff80; transition: background .2s; }
:root.market-brand .market-promo-selectors button[aria-pressed="true"]::after { width: 16px; background: #fff; }
:root.market-brand .market-promo-pause {
  position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center;
  width: var(--aid-ui-chip-height); height: var(--aid-ui-chip-height); padding: 0;
  border: 0; border-radius: var(--aid-ui-control-radius); background: #10131a65; color: #fff;
  opacity: 0; transition: opacity .2s;
}
:root.market-brand .market-promo-pause[hidden] { display: none; }
:root.market-brand .market-ad-carousel:is(:hover, :focus-within) .market-promo-pause { opacity: 1; }
:root.market-brand .sm-storefront .market-promo-pause:hover { color: #fff; background: #10131a90; }
:root.market-brand .market-promotion button:focus-visible { outline: 2px solid var(--mt-focus); outline-offset: -3px; }
@keyframes market-promo-reveal { from { opacity: .6; } to { opacity: 1; } }
@media (max-width: 1100px) {
  :root.market-brand .market-promotion { --market-category-width: 236px; }
  :root.market-brand .market-promotion.is-searching .market-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root.market-brand .market-promotion { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 14px; }
  :root.market-brand .market-category-nav { position: relative; padding: 12px; }
  :root.market-brand .market-category-nav > header { margin-bottom: 8px; }
  :root.market-brand .market-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  :root.market-brand .market-category-grid [data-sm-category-group] { justify-content: center; padding-inline: 5px; }
  :root.market-brand .market-category-grid [data-sm-category-group] > svg { display: none; }
  :root.market-brand .market-category-detail { top: calc(100% + 6px); right: 0; bottom: auto; left: 0; max-height: var(--aid-ui-filter-max-height); padding: 12px; }
  :root.market-brand :is(.market-ad-carousel, .market-ad-empty) { height: auto; aspect-ratio: 8 / 3; }
  :root.market-brand .market-promotion.is-searching .market-category-nav { flex-direction: column; align-items: stretch; gap: 8px; }
  :root.market-brand .market-promotion.is-searching .market-category-detail { top: calc(100% + 6px); }
}
@media (max-width: 600px) {
  :root.market-brand .market-promo-pause { opacity: 1; }
}
@media (max-width: 380px) {
  :root.market-brand .market-category-grid,
  :root.market-brand .market-promotion.is-searching .market-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root.market-brand .market-category-grid [data-sm-category-group] > span { white-space: nowrap; overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) {
  :root.market-brand .market-promo-slide img { animation: none; }
}

/* Each brand is a shop. Only explicit shop actions change the view. */
:root.market-brand .market-brand-section {
  padding-block: 24px 22px;
}
:root.market-brand .market-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  margin-bottom: 17px;
}
:root.market-brand .market-section-heading h2 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -.55px;
  margin: 0;
}
:root.market-brand .market-section-heading p {
  color: var(--mt-muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}
:root.market-brand .market-section-heading > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
}
:root.market-brand .market-section-heading > div > p {
  margin: 0;
}
:root.market-brand .market-section-heading > button {
  margin-left: auto;
  font-size: 11px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--mt-muted);
}
:root.market-brand .market-section-heading > button:hover {
  color: var(--market-gold-ink);
}
:root.market-brand .market-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
:root.market-brand .market-brand-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(115px, .95fr);
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
  padding: 18px 19px 14px;
  border: 1px solid var(--mt-line);
  border-radius: 10px;
  background: #fff;
}
:root.market-brand .market-brand-title {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--mt-ink);
  text-align: left;
}
:root.market-brand .market-brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e7ebee;
  border-radius: 8px;
  background: #f8f9fa;
  color: #4c565d;
  font-size: 12px;
  font-weight: 500;
}
:root.market-brand .market-brand-title > span:last-child,
:root.market-brand .market-brand-title > div {
  min-width: 0;
}
:root.market-brand .market-brand-title strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
:root.market-brand .market-brand-title small {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 3px;
  color: var(--mt-muted);
  overflow-wrap: anywhere;
}
:root.market-brand .market-brand-images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 60px;
  padding: 0;
  margin-top: 0;
  border: 0;
  background: transparent;
}
:root.market-brand .market-brand-images > img {
  width: calc((100% - 32px) / 3);
  max-width: 92px;
  height: 55px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
:root.market-brand .market-brand-images > span {
  font-size: 11px;
  color: var(--mt-muted);
}
:root.market-brand .market-brand-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid #edf0f2;
}
:root.market-brand .market-brand-meta > span {
  margin-right: auto;
  color: var(--mt-muted);
  font-size: 10px;
  line-height: 1.5;
}
:root.market-brand .market-brand-meta > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
:root.market-brand .market-brand-meta button {
  padding: 6px 8px;
  border: 1px solid var(--mt-line);
  border-radius: 5px;
  font-size: 11px !important;
  line-height: 1.4;
  background: #fff;
  color: var(--mt-ink);
}
:root.market-brand .market-brand-meta button[data-sm-shop-filter] {
  padding-inline: 10px;
  background: var(--mt-ink);
  border-color: var(--mt-ink);
  color: #fff;
}
:root.market-brand .market-brand-meta button[data-sm-shop-filter]:hover {
  background: var(--mt-hover);
  color: #fff;
}
:root.market-brand .market-supplier-invite {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding-top: 14px;
  font-size: 11px;
}
:root.market-brand .market-supplier-invite p {
  color: var(--mt-muted);
  margin: 0;
  line-height: 1.7;
}
:root.market-brand .market-supplier-invite a {
  color: var(--mt-ink);
  white-space: nowrap;
}
:root.market-brand .market-supplier-invite a:hover {
  color: var(--market-gold-ink);
}

/* A single, stable filtering area sits above one continuous product grid. */
:root.market-brand .sm-market-catalog {
  padding-top: 23px;
  border-top: 1px solid var(--mt-line);
  scroll-margin-top: 24px;
}
:root.market-brand .sm-market-catalog .sm-mall-filters {
  display: block;
  margin: 0;
  border: 1px solid var(--mt-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
:root.market-brand .sm-market-catalog .sm-filter-line {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  min-width: 0;
}
:root.market-brand .sm-market-catalog .sm-filter-line + .sm-filter-line {
  border-top: 1px solid #edf0f2;
  border-left: 0;
}
:root.market-brand .sm-market-catalog .sm-filter-line > strong {
  display: flex;
  align-items: flex-start;
  padding: 13px 15px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--mt-muted);
  background: #fafbfc;
}
:root.market-brand .sm-market-catalog .sm-filter-line > div {
  display: flex;
  flex-wrap: wrap;
  gap:var(--aid-ui-control-gap);
  padding: 7px 12px;
  min-width: 0;
}
:root.market-brand .sm-market-catalog .sm-filter-line button {
  min-height: var(--aid-ui-chip-height);
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--aid-ui-control-radius);
  font-size: var(--aid-ui-control-font);
  line-height: var(--aid-ui-line);
  color: #555f67;
  background: transparent;
}
:root.market-brand .sm-market-catalog .sm-filter-line button.is-active {
  color: var(--mt-ink);
  background: #edf0f2;
  border-color: #dfe4e8;
}
:root.market-brand .sm-market-catalog .sm-filter-line button:hover {
  background: #f2f4f5;
}
:root.market-brand .sm-market-catalog .sm-mall-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  min-height: 52px;
  padding: 8px 0;
  margin: 6px 0 14px;
  border: 0;
  background: transparent;
  font-size: 11px;
}
:root.market-brand .sm-market-catalog .sm-sort-options {
  display: flex;
  flex-wrap: wrap;
  gap:var(--aid-ui-control-gap);
  margin-right: auto;
}
:root.market-brand .sm-market-catalog .sm-sort-options button {
  padding: 6px 10px;
  min-height: var(--aid-ui-chip-height);
  font-size: var(--aid-ui-control-font);
  line-height: var(--aid-ui-line);
  border: 1px solid transparent;
  border-radius: var(--aid-ui-control-radius);
  background: transparent;
  color: var(--mt-muted);
}
:root.market-brand .sm-market-catalog .sm-sort-options button.is-active {
  border-color: #dfe4e8;
  background: #fff;
  color: var(--mt-ink);
}
:root.market-brand .sm-market-catalog .sm-check {
  font-size: 11px;
}
:root.market-brand .sm-market-catalog .sm-results-summary {
  padding: 11px 14px;
  border: 1px solid var(--mt-line);
  border-radius: 6px;
  background: #fff;
  margin-bottom: 16px;
  font-size: 12px;
}
:root.market-brand .sm-market-catalog .sm-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 17px;
  align-items: stretch;
}
:root.market-brand .sm-market-catalog .sm-product-card {
  min-width: 0;
  border: 1px solid var(--mt-line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
:root.market-brand .sm-market-catalog .sm-product-cover {
  border-radius: 0;
  height: 170px;
  aspect-ratio: auto;
  box-sizing: border-box;
  padding: 14px 16px 8px;
  background: #fff;
}
:root.market-brand .sm-market-catalog .sm-product-cover img {
  object-fit: contain;
}
:root.market-brand .sm-market-catalog :is(.sm-catalog-tag, .sm-supply-tag) {
  left: 11px;
  top: 10px;
  font-size: 9px;
  line-height: 1.4;
  padding: 3px 5px;
  border-radius: 3px;
}
:root.market-brand .sm-market-catalog .sm-product-copy {
  padding: 10px 13px 12px;
}
:root.market-brand .sm-market-catalog .sm-product-brand {
  font-size: 11px;
  margin-bottom: 4px;
}
:root.market-brand .sm-market-catalog .sm-product-name {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.45;
  min-height: 40px;
}
:root.market-brand .sm-market-catalog .sm-product-copy > p {
  font-size: 11px;
  margin: 4px 0 0;
  line-height: 1.5;
}
:root.market-brand .sm-market-catalog .sm-card-price {
  margin: 7px 0 4px;
  min-height: 25px;
}
:root.market-brand .sm-market-catalog .sm-card-price strong {
  font-size: 21px;
  color: var(--mt-ink);
}
:root.market-brand .sm-market-catalog .sm-card-price .sm-price-hidden {
  font-size: 12px !important;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--mt-muted);
}
/* 首页精选：名称单行，品牌在主图左上，价格靠右；详情仍保留完整规格。 */
:root.market-brand .sm-market-catalog .sm-home-product-card .sm-product-cover {
  position: relative;
}
:root.market-brand .sm-market-catalog .sm-home-product-card .sm-home-brand-logo {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 64px;
  max-width: 76px;
  min-height: 28px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .92);
  pointer-events: none;
}
:root.market-brand .sm-market-catalog .sm-home-product-card .sm-home-brand-logo > .catalog-brand-mark {
  transform: scale(1.25);
}
:root.market-brand .sm-market-catalog .sm-home-product-card .sm-home-brand-fallback {
  overflow: hidden;
  color: var(--mt-muted);
  font-size: 10px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root.market-brand .sm-market-catalog .sm-home-product-card .sm-product-brand,
:root.market-brand .sm-market-catalog .sm-home-product-card .sm-product-copy > p {
  display: none;
}
:root.market-brand .sm-market-catalog .sm-home-product-card .sm-product-name {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root.market-brand .sm-market-catalog .sm-home-product-card .sm-market-prices {
  margin: 8px 0 0;
  padding: 0 0 0 34px;
  text-align: right;
}
:root.market-brand .sm-market-catalog .sm-home-product-card :is(.sm-retail-price, .sm-dealer-price) {
  justify-content: flex-end;
}
:root.market-brand .sm-market-catalog .sm-home-product-card .sm-retail-price > .sm-price-label {
  flex-basis: auto;
}
:root.market-brand .sm-market-catalog .sm-home-product-card .sm-card-price strong {
  font-size: 18px;
}
:root.market-brand .sm-market-catalog .sm-home-product-card .sm-aqara-favorite {
  top: auto;
  right: auto;
  bottom: 0;
  left: -3px;
}
:root.market-brand .sm-market-catalog .sm-infinite-controls [hidden] {
  display: none;
}
:root.market-brand .sm-market-catalog .sm-stock-copy {
  font-size: 10px;
  min-height: 32px;
  line-height: 1.6;
}
:root.market-brand .sm-market-catalog .sm-shop-name {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid #edf0f2;
  font-size: 10px !important;
  line-height: 1.6;
}
:root.market-brand .sm-market-catalog .sm-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
:root.market-brand .sm-market-catalog .sm-card-actions .button {
  min-height: 33px;
  font-size: 11px;
  padding: 7px 9px;
  border-radius: 5px;
}
:root.market-brand .sm-market-catalog .sm-card-actions .sm-favorite {
  min-height: 33px;
  border-radius: 5px;
  font-size: 10px !important;
}
:root.market-brand .sm-market-catalog .sm-pagination {
  border-top: 0;
  padding: 18px 0 0;
  background: transparent;
}

/* Keep the directory and transactional views in the same visual family. */
:root.market-brand .sm-directory-heading {
  padding: 22px 0 0;
  margin-bottom: 18px;
}
:root.market-brand .sm-directory-heading h1 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.8px;
}
:root.market-brand .sm-directory-heading p {
  font-size: 13px;
  line-height: 1.8;
}
:root.market-brand .sm-directory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
:root.market-brand .sm-directory-shop {
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
:root.market-brand .sm-directory-shop-head { min-height: 48px; gap: 12px; }
:root.market-brand .sm-directory-shop-head > .catalog-brand-mark,
:root.market-brand .sm-directory-shop-head > .sm-directory-aid-logo,
:root.market-brand .sm-directory-shop-head > .sm-store-avatar { width: 80px; height: 42px; flex: 0 0 80px; }
:root.market-brand .sm-directory-shop-head > .sm-directory-aid-logo { object-fit: contain; }
:root.market-brand .sm-directory-shop-head > div { min-width: 0; }
:root.market-brand .sm-directory-shop-head h2 {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root.market-brand .sm-directory-shop-head p { margin: 0; font-size: 11px; }
:root.market-brand .sm-directory-photos {
  border-radius: 6px;
  height: 104px;
  background: #f6f7f8;
  cursor: pointer;
}
:root.market-brand .sm-directory-shop-foot { margin: auto 0 0; padding-top: 1px; gap: 8px; }
:root.market-brand .sm-directory-shop-foot > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root.market-brand .sm-directory-shop-foot .button { flex: none; min-height: 32px; padding: 6px 10px; font-size: 12px; }
@media (max-width: 1100px) { :root.market-brand .sm-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { :root.market-brand .sm-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 430px) { :root.market-brand .sm-directory-grid { grid-template-columns: 1fr; } }
:root.market-brand .sm-storefront > .sm-panel-toolbar,
:root.market-brand .sm-storefront > .sm-order-management,
:root.market-brand .sm-storefront > .sm-shop-list {
  margin-top: 24px;
}
:root.market-brand .sm-dialog {
  font-family: inherit;
}
:root.market-brand .mall-promises {
  padding-block: 26px;
}
:root.market-brand .mall-promises > .mall-width {
  gap: 28px;
}
:root.market-brand .mall-promises b {
  width: 34px;
  height: 34px;
  font-size: 14px;
  font-weight: 400;
  border-width: 1px;
  flex: none;
}
:root.market-brand .mall-promises span {
  font-size: 13px;
  font-weight: 500;
}
:root.market-brand .mall-promises small {
  font-size: 10px;
  line-height: 1.6;
}
:root.market-brand .mall-footer > .mall-width {
  gap: 24px;
  padding-block: 23px;
  font-size: 11px;
}
:root.market-brand .mall-footer-logo {
  width: 83px;
}

@media (max-width: 1150px) {

  :root.market-brand .mall-width { width: calc(100% - 56px); }
  :root.market-brand body[data-mall-page="market"] .mall-brand-row {
    grid-template-columns: 225px minmax(220px, 1fr) auto;
    gap: 23px;
  }
  :root.market-brand .mall-brand-logo { width: 70px; }
  :root.market-brand .mall-brand { gap: 13px; }
  :root.market-brand .mall-brand > span { padding-left: 13px; }
  :root.market-brand body[data-mall-page="market"] .mall-brand strong { font-size: 19px; }
  :root.market-brand .market-brand-grid { gap: 12px; }
  :root.market-brand .market-brand-card { padding: 15px 14px 12px; }
  :root.market-brand .market-brand-meta { gap: 6px; }
  :root.market-brand .market-brand-meta > div { justify-content: space-between; }
  :root.market-brand .sm-market-catalog .sm-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 900px) {

  :root.market-brand .mall-utility-inner { align-items: flex-start; padding-block: 5px; }
  :root.market-brand .mall-utility-inner > span { padding-top: 8px; max-width: 130px; line-height: 1.6; }
  :root.market-brand .mall-utility-links { justify-content: flex-end; gap: 7px 14px; line-height: 1.8; }
  :root.market-brand body[data-mall-page="market"] .mall-brand-row { grid-template-columns: 1fr auto; gap: 19px 24px; }
  :root.market-brand .mall-search-area { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  :root.market-brand body[data-mall-page="market"] .mall-navigation > .mall-width { gap: 27px; overflow-x: auto; }
  :root.market-brand .market-brand-grid { grid-template-columns: 1fr; gap: 12px; }
  :root.market-brand .market-brand-card { grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr); }
  :root.market-brand .market-brand-title { gap: 8px; }
  :root.market-brand .market-brand-mark { width: 30px; height: 30px; font-size: 10px; }
  :root.market-brand .market-brand-title strong { font-size: 14px; }
  :root.market-brand .market-brand-title small { font-size: 9px; }
  :root.market-brand .market-brand-images { gap: 9px; padding-inline: 0; }
  :root.market-brand .market-brand-images > img { width: calc((100% - 18px) / 3); height: 55px; }
  :root.market-brand .sm-market-catalog .sm-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root.market-brand .mall-promises > .mall-width { gap: 20px; }
  :root.market-brand .mall-promises > .mall-width > div { gap: 9px; }
  :root.market-brand .mall-promises small { font-size: 9px; }
}

@media (max-width: 600px) {
  :root.market-brand .market-main-action { padding-inline: 12px; gap: 10px; }

  :root.market-brand .mall-width { width: calc(100% - 36px); }
  :root.market-brand .mall-utility-inner { display: block; padding-block: 7px; font-size: 10px; }
  :root.market-brand .mall-utility-inner > span { display: block; max-width: none; padding: 0 0 3px; }
  :root.market-brand .mall-utility-links { justify-content: flex-start; gap: 0 12px; }
  :root.market-brand .mall-utility-links button { font-size: 10px; min-height: 28px; }
  :root.market-brand #mall-identity { max-width: 100%; }
  :root.market-brand body[data-mall-page="market"] .mall-brand-row { padding-block: 17px 14px; gap: 15px 10px; }
  :root.market-brand .mall-brand { gap: 11px; }
  :root.market-brand .mall-brand-logo { width: 60px; }
  :root.market-brand .mall-brand > span { padding-left: 11px; }
  :root.market-brand body[data-mall-page="market"] .mall-brand strong { font-size: 17px; letter-spacing: -.3px; }
  :root.market-brand .mall-brand small { font-size: 8px; margin-top: 5px; }
  :root.market-brand body[data-mall-page="market"] .mall-purchase-link { font-size: 10px; padding: 9px; min-height: 38px; gap: 5px; }
  :root.market-brand .mall-purchase-link svg { width: 15px; height: 15px; }
  :root.market-brand body[data-mall-page="market"] .mall-search { height: var(--aid-ui-search-height); }
  :root.market-brand body[data-mall-page="market"] .mall-search input { font-size: var(--aid-ui-input-font); padding-left: 8px; }
  :root.market-brand body[data-mall-page="market"] .mall-search button { padding-inline: 10px; font-size: var(--aid-ui-control-font); }
  :root.market-brand body[data-mall-page="market"] .mall-search svg { width: var(--aid-ui-control-icon); height: var(--aid-ui-control-icon); margin-left:10px; }
  :root.market-brand body[data-mall-page="market"] .mall-navigation > .mall-width { gap: 24px; min-height: 42px; }
  :root.market-brand body[data-mall-page="market"] .mall-navigation a,
  :root.market-brand body[data-mall-page="market"] .mall-navigation a:first-child { min-height: 42px; font-size: 12px; }
  :root.market-brand .market-brand-section { padding-block: 24px 23px; }
  :root.market-brand .market-section-heading { gap: 5px 12px; margin-bottom: 15px; }
  :root.market-brand .market-section-heading h2 { font-size: 21px; }
  :root.market-brand .market-section-heading p { font-size: 10px; order: 3; width: 100%; }
  :root.market-brand .market-section-heading > div { display: block; }
  :root.market-brand .market-section-heading > div > p { margin-top: 5px; }
  :root.market-brand .market-section-heading > button { font-size: 10px; }
  :root.market-brand .market-brand-grid { grid-template-columns: 1fr; gap: 11px; }
  :root.market-brand .market-brand-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(100px, .9fr);
    align-items: center;
    gap: 4px 12px;
    padding: 16px;
  }
  :root.market-brand .market-brand-title { gap: 9px; }
  :root.market-brand .market-brand-mark { width: 32px; height: 32px; font-size: 11px; }
  :root.market-brand .market-brand-title strong { font-size: 14px; }
  :root.market-brand .market-brand-title small { font-size: 9px; }
  :root.market-brand .market-brand-images { height: 50px; padding: 0; margin-top: 0; gap: 5px; }
  :root.market-brand .market-brand-images > img { width: calc((100% - 10px) / 3); height: 45px; }
  :root.market-brand .market-brand-meta { grid-column: 1 / -1; flex-wrap: nowrap; gap: 7px; margin-top: 8px; padding-top: 11px; }
  :root.market-brand .market-brand-meta > span { width: auto; min-width: 0; font-size: 9px; }
  :root.market-brand .market-brand-meta > div { width: auto; flex: none; gap: 6px; }
  :root.market-brand .market-brand-meta button { font-size: 10px !important; flex: none; min-height: 32px; }
  :root.market-brand .market-supplier-invite { gap: 14px; align-items: flex-start; font-size: 10px; }
  :root.market-brand .market-supplier-invite p { max-width: 200px; }
  :root.market-brand .market-supplier-invite a { line-height: 1.7; }
  :root.market-brand .sm-market-catalog { padding-top: 23px; scroll-margin-top: 15px; }
  :root.market-brand .sm-market-catalog .sm-filter-line { grid-template-columns: 46px minmax(0, 1fr); }
  :root.market-brand .sm-market-catalog .sm-filter-line > strong { padding: 13px 10px; font-size: 10px; }
  :root.market-brand .sm-market-catalog .sm-filter-line > div { gap:var(--aid-ui-control-gap); padding: 7px 6px; }
  :root.market-brand .sm-market-catalog .sm-filter-line button { padding: 6px 10px; font-size: var(--aid-ui-control-font); min-height: var(--aid-ui-chip-height); }
  :root.market-brand .sm-market-catalog .sm-mall-sort { gap: 9px 13px; margin-bottom: 14px; padding-block: 9px 3px; }
  :root.market-brand .sm-market-catalog .sm-sort-options { width: 100%; gap:var(--aid-ui-control-gap); }
  :root.market-brand .sm-market-catalog .sm-sort-options button { padding: 6px 10px; font-size: var(--aid-ui-control-font); min-height: var(--aid-ui-chip-height); }
  :root.market-brand .sm-market-catalog .sm-mall-sort > span { margin-left: auto; font-size: 10px; }
  :root.market-brand .sm-market-catalog .sm-check { font-size: 10px; }
  :root.market-brand .sm-market-catalog .sm-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  :root.market-brand .sm-market-catalog .sm-product-cover { height: clamp(132px, 40vw, 160px); padding: 13px 12px 8px; }
  :root.market-brand .sm-market-catalog .sm-product-copy { padding: 11px 11px 13px; }
  :root.market-brand .sm-market-catalog .sm-product-brand { font-size: 9px; margin-bottom: 5px; }
  :root.market-brand .sm-market-catalog .sm-product-name { font-size: 12px !important; min-height: 37px; line-height: 1.55; }
  :root.market-brand .sm-market-catalog .sm-product-copy > p { font-size: 10px; }
  :root.market-brand .sm-market-catalog .sm-card-price strong { font-size: 19px; }
  :root.market-brand .sm-market-catalog .sm-card-price .sm-price-hidden { font-size: 11px !important; line-height: 1.5; }
  :root.market-brand .sm-market-catalog .sm-stock-copy { font-size: 9px; min-height: 29px; }
  :root.market-brand .sm-market-catalog .sm-shop-name { font-size: 9px !important; gap: 4px; padding-top: 9px; }
  :root.market-brand .sm-market-catalog .sm-card-actions { gap: 5px; margin-top: 10px; }
  :root.market-brand .sm-market-catalog .sm-card-actions .button { font-size: 10px; padding: 7px; min-height: 34px; }
  :root.market-brand .sm-market-catalog .sm-card-actions .sm-favorite { min-height: 34px; padding-inline: 6px; font-size: 9px !important; }
  :root.market-brand .sm-market-catalog .sm-results-summary { flex-wrap: wrap; gap: 10px; padding: 10px 11px; font-size: 11px; }
  :root.market-brand .sm-directory-heading { padding-top: 24px; margin-bottom: 20px; }
  :root.market-brand .sm-directory-heading h1 { font-size: 27px; }
  :root.market-brand .sm-directory-heading p { font-size: 12px; }
  :root.market-brand .sm-directory-shop { padding: 18px; }
  :root.market-brand .mall-promises { padding-block: 24px; }
  :root.market-brand .mall-promises > .mall-width { grid-template-columns: 1fr 1fr; gap: 22px 13px; }
  :root.market-brand .mall-promises b { width: 28px; height: 28px; font-size: 12px; }
  :root.market-brand .mall-promises span { font-size: 12px; }
  :root.market-brand .mall-promises small { font-size: 9px; }
  :root.market-brand .mall-footer > .mall-width { gap: 16px; font-size: 10px; }
  :root.market-brand .mall-footer-logo { width: 75px; }
}

@media (max-width: 360px) {
  :root.market-brand .mall-width { width: calc(100% - 28px); }
  :root.market-brand .mall-brand-logo { width: 52px; }
  :root.market-brand body[data-mall-page="market"] .mall-brand strong { font-size: 16px; }
  :root.market-brand body[data-mall-page="market"] .mall-purchase-link { padding-inline: 7px; gap: 4px; }
  :root.market-brand .market-brand-card { padding: 13px; gap: 4px 8px; }
  :root.market-brand .market-brand-title strong { font-size: 13px; }
  :root.market-brand .market-brand-mark { width: 28px; height: 28px; font-size: 10px; }
  :root.market-brand .sm-market-catalog .sm-product-copy { padding-inline: 9px; }
  :root.market-brand .sm-market-catalog .sm-product-grid { gap: 9px; }
}


/* Brand interiors retain the plaza shell, including the former Aqara pilot. */
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-width {
  width: min(1360px, calc(100% - 80px));
  max-width: 1360px;
}
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-utility {
  background: var(--mt-bg);
  border-bottom: 1px solid var(--mt-line);
  font-size: 11px;
}
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-utility-inner { min-height: 34px; }
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-utility-inner > span { visibility: visible; }
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-utility-links { gap: 17px; }
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-utility-links button { font-size: 11px; min-height: 32px; }
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-brand-row { padding-block: 22px; gap: 36px; }
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-brand { gap: 18px; flex: none; }
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-brand strong {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.6px;
}
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-brand small { display: block; }
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-search-area { flex: 1; order: 0; }
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-search {
  height: var(--aid-ui-search-height);
  border: 1px solid var(--mt-line);
  border-radius: var(--aid-ui-control-radius);
  background: #fff;
  overflow: hidden;
}
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-search svg {
  width: var(--aid-ui-control-icon);
  height: var(--aid-ui-control-icon);
  margin-inline:10px var(--aid-ui-control-gap);
  stroke: var(--mt-muted);
}
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-search input { padding-inline: 10px; font-size: var(--aid-ui-input-font); }
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-search button {
  padding-inline: 10px;
  background: var(--mt-ink);
  color: #fff;
  font-size: var(--aid-ui-control-font);
  font-weight: 500;
}
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-search button:hover { background: var(--mt-hover); }
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-purchase-link {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--mt-line);
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  margin-left: auto;
}
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-navigation > .mall-width { min-height: 43px; gap: 34px; }
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-navigation a {
  min-height: 43px;
  padding-inline: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--mt-ink);
  border: 0;
}
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-navigation a[aria-current="page"] { border: 0; }
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-navigation span { display: block; }
:root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .sm-storefront { padding-top: 0; }

/* The shop introduction, relationship and service details share one hierarchy. */
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page {
  min-width: 0;
  color: var(--mt-ink);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 13px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mt-muted);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-breadcrumb button {
  padding: 0;
  font-size: 12px;
  color: var(--mt-muted);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-breadcrumb button:hover { color: var(--market-gold-ink); }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-masthead, .sm-aqara-masthead) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 320px);
  align-items: center;
  gap: 30px;
  min-height: 139px;
  padding: 22px 24px;
  margin: 0 0 10px;
  border: 1px solid var(--mt-line);
  border-radius: 10px;
  background: #fff;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-identity {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-monogram {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border: 1px solid #e4e8eb;
  border-radius: 10px;
  background: #f8f9fa;
  color: #4d575f;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.5px;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-brand-label {
  display: block;
  margin: 0 0 5px;
  color: var(--mt-muted);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-brand-label::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--market-gold);
  vertical-align: 2px;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-masthead, .sm-aqara-brand) h1 {
  font-family: inherit;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.04em;
  margin: 0;
  overflow-wrap: anywhere;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-brand h1::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 11px;
  border-radius: 50%;
  background: var(--market-gold);
  vertical-align: 6px;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-identity, .sm-aqara-brand) p {
  max-width: 720px;
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mt-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-identity small {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 6px;
  color: var(--mt-muted);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-relationship, .sm-aqara-relationship) {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding-left: 26px;
  border-left: 1px solid var(--mt-line);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-main-actions, .sm-aqara-store-actions) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-main-actions, .sm-aqara-store-actions) :is(.button, .sm-favorite) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--mt-line);
  border-radius: 6px;
  background: #fff;
  color: var(--mt-ink);
  font-size: 12px !important;
  line-height: 1.5;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-main-actions, .sm-aqara-store-actions) .button.primary {
  color: #fff;
  background: var(--mt-ink);
  border-color: var(--mt-ink);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-main-actions, .sm-aqara-store-actions) .sm-favorite[aria-pressed="true"] {
  background: #f2f4f5;
  border-color: #bfc7cd;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-main-actions, .sm-aqara-store-actions) .sm-badge {
  padding: 7px 10px;
  border: 1px solid #e5e9ec;
  border-radius: 5px;
  background: #f6f8f9;
  color: #58636b;
  font-size: 12px;
  line-height: 1.5;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-relationship, .sm-aqara-relationship) > p {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  max-width: none;
  text-align: right;
  color: var(--mt-muted);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-cart-link {
  font-size: 12px;
  line-height: 1.7;
  color: var(--mt-ink);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-cart-link:hover { color: var(--market-gold-ink); }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-information {
  margin: 0 0 18px;
  border: 1px solid var(--mt-line);
  border-radius: 7px;
  background: #fff;
  color: var(--mt-muted);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-information > summary {
  width: auto;
  min-height: 42px;
  padding: 11px 15px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mt-ink);
  cursor: pointer;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-policies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  padding: 0;
  margin: 0 0 18px;
  border: 0;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-policies details {
  padding: 11px 15px;
  border: 1px solid var(--mt-line);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  line-height: 1.6;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-policies summary {
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-information .sm-shop-policies {
  margin: 0;
  padding: 7px 16px 19px;
  gap: 25px;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-policies h2 {
  margin: 0 0 8px;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.6;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-policies p {
  font-size: 12px;
  line-height: 1.8;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-notice {
  gap: 13px;
  padding: 11px 15px;
  border: 1px solid #e8e5df;
  border-radius: 7px;
  background: #faf9f6;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 12px;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-notice strong {
  color: var(--market-gold-ink);
  font-weight: 500;
}

/* A shop has the same clear filtering vocabulary as the product plaza. */
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-goods-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
  margin: 17px 0 13px;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-goods-heading h2 { font-size: 20px; font-weight: 500; margin: 0; }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-goods-heading p { font-size: 12px; line-height: 1.6; margin: 0; }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-market-catalog, .sm-aqara-catalog) {
  padding-top: 0;
  border-top: 0;
  scroll-margin-top: 20px;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-mall-filters {
  display: block;
  border: 1px solid var(--mt-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin: 0;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-filter-line {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  border: 0;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-filter-line + .sm-filter-line { border-top: 1px solid #edf0f2; }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-filter-line > strong {
  display: block;
  padding: 13px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  background: #fafbfc;
  color: var(--mt-muted);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-filter-line > div {
  display: flex;
  flex-wrap: wrap;
  gap:var(--aid-ui-control-gap);
  padding: 6px 9px;
  min-width: 0;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-filter-line button {
  min-height: var(--aid-ui-chip-height);
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--aid-ui-control-radius);
  font-size: var(--aid-ui-control-font);
  line-height: var(--aid-ui-line);
  color: var(--mt-muted);
  background: transparent;
  white-space: normal;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-filter-line button.is-active {
  background: #edf0f2;
  color: var(--mt-ink);
  border-color: #dfe4e8;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-filter-line button:hover { background: #f2f4f5; color: var(--mt-ink); }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-mall-sort, .sm-aqara-toolbar) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  min-height: 51px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  margin: 4px 0 11px;
  font-size: 12px;
  color: var(--mt-muted);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-sort-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap:var(--aid-ui-control-gap);
  order: 0;
  min-height: 0;
  margin: 0 auto 0 0;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-sort-options button {
  min-height: var(--aid-ui-chip-height);
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--aid-ui-control-radius);
  font-size: var(--aid-ui-control-font);
  line-height: var(--aid-ui-line);
  background: transparent;
  color: var(--mt-muted);
  text-decoration: none;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-sort-options button.is-active {
  background: #fff;
  border-color: var(--mt-line);
  color: var(--mt-ink);
  text-decoration: none;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-toolbar > span {
  order: 3;
  margin: 0;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-check { font-size: 12px; }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-sort-note { margin: 0 0 12px; font-size: 12px; line-height: 1.7; }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-results-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--mt-line);
  border-radius: 6px;
  background: #fff;
  margin: 0 0 13px;
  font-size: 12px;
  line-height: 1.6;
}

/* Consistent-sized product shelves retain each shop's original imagery and actions. */
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 17px;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--mt-line);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-image {
  position: relative;
  background: #fff;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 189px;
  aspect-ratio: auto;
  padding: 22px 20px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-cover img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  border: 1px solid #e8ecef;
  border-radius: 50%;
  background: #fffe;
  color: #515b63;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-favorite:hover { background: #edf0f2; color: var(--mt-ink); }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-favorite[aria-pressed="true"] { color: var(--market-gold-ink); background: #faf8f3; }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-favorite svg { width: 18px; height: 18px; }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  padding: 12px 15px 15px;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-brand { font-size: 11px; margin-bottom: 5px; }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-name {
  min-height: 43px;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--mt-ink);
  overflow-wrap: anywhere;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-copy > p {
  min-height: 19px;
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mt-muted);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-card-price {
  min-height: 24px;
  margin: 10px 0 5px;
  line-height: 1.6;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-card-price strong {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.3px;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-card-price .sm-price-hidden {
  font-size: 12px !important;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--mt-muted);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-stock-copy { min-height: 0; font-size: 11px; line-height: 1.6; }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-name {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #edf0f2;
  padding-top: 8px;
  margin-top: 8px;
  font-size: 11px !important;
  line-height: 1.6;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-card-actions :is(.button, .sm-favorite) {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 5px;
  font-size: 12px !important;
  line-height: 1.5;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-card-detail {
  min-height: 32px;
  padding: 5px 0;
  font-size: 12px !important;
  line-height: 1.6;
  color: var(--mt-ink);
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-card-detail:hover { color: var(--market-gold-ink); }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-purchase {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 12px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid #edf0f2;
}
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-purchase .sm-card-price,
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-purchase .sm-card-actions { width: auto; margin: 0; }
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-pagination {
  border-top: 0;
  background: transparent;
  padding: 18px 0 0;
  margin-top: 18px;
}

@media (min-width: 1280px) {
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 601px) {
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-card:not(.sm-aqara-product) .sm-product-cover { height: 175px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-card:not(.sm-aqara-product) .sm-product-copy { padding-top: 10px; padding-bottom: 13px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-card:not(.sm-aqara-product) .sm-product-name { min-height: 0; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-card:not(.sm-aqara-product) .sm-product-copy > p { margin-top: 4px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-card:not(.sm-aqara-product) .sm-card-price { margin-top: 7px; margin-bottom: 4px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-card:not(.sm-aqara-product) .sm-shop-name { margin-top: 6px; padding-top: 6px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-card:not(.sm-aqara-product) .sm-card-actions { margin-top: 8px; }
}
@media (max-width: 1150px) {
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-width { width: calc(100% - 56px); }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-brand-row { gap: 23px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-brand { gap: 13px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-brand strong { font-size: 19px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-masthead, .sm-aqara-masthead) { gap: 22px; padding-inline: 21px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-masthead, .sm-aqara-brand) h1 { font-size: 30px; }
}
@media (max-width: 1100px) {
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-navigation span { display: none; }
}
@media (max-width: 900px) {
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-utility-links { gap: 7px 14px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-brand-row { gap: 19px 24px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-navigation > .mall-width { gap: 27px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-masthead, .sm-aqara-masthead) { grid-template-columns: minmax(0, 1fr) minmax(210px, 260px); gap: 19px; padding: 19px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-masthead, .sm-aqara-brand) h1 { font-size: 28px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-identity { gap: 13px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-monogram { width: 49px; height: 49px; flex-basis: 49px; font-size: 19px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-relationship, .sm-aqara-relationship) { padding-left: 18px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-grid { gap: 13px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-cover { height: 165px; padding: 22px 15px 10px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-copy { padding-inline: 12px; }
}
@media (max-width: 600px) {
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-width { width: calc(100% - 36px); }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-utility-inner { min-height: 34px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-utility-links { gap: 0 12px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-utility-links button { font-size: 10px; min-height: 28px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-brand-row { padding-block: 17px 14px; gap: 15px 10px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-brand { gap: 11px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-brand strong { font-size: 17px; letter-spacing: -.3px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-search { height: var(--aid-ui-search-height); }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-search input { font-size: var(--aid-ui-input-font); padding-left: 8px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-search button { font-size: var(--aid-ui-control-font); padding-inline: 10px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-search svg { width: var(--aid-ui-control-icon); height: var(--aid-ui-control-icon); margin-left:10px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-purchase-link { padding: 9px; min-height: 38px; font-size: 10px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-navigation > .mall-width { gap: 24px; min-height: 42px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-navigation a { min-height: 42px; font-size: 12px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-breadcrumb { font-size: 11px; padding-block: 12px; min-height: 42px; gap: 8px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-breadcrumb button { font-size: 11px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-masthead, .sm-aqara-masthead) { grid-template-columns: 1fr; gap: 16px; padding: 18px; min-height: 0; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-masthead, .sm-aqara-brand) h1 { font-size: 29px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-identity, .sm-aqara-brand) p { font-size: 12px; margin-top: 7px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-identity { align-items: flex-start; gap: 12px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-monogram { width: 44px; height: 44px; flex-basis: 44px; border-radius: 8px; font-size: 17px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-brand-label { font-size: 10px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-identity small { font-size: 11px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-relationship, .sm-aqara-relationship) { align-items: flex-start; border-left: 0; border-top: 1px solid #edf0f2; padding: 12px 0 0; gap: 8px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-main-actions, .sm-aqara-store-actions) { width: 100%; justify-content: space-between; gap: 8px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-relationship, .sm-aqara-relationship) > p { text-align: left; font-size: 11px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-cart-link { font-size: 12px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-information { margin-bottom: 15px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-policies { gap: 7px; margin-bottom: 16px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-policies details { padding: 10px 9px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-policies details[open] { grid-column: 1 / -1; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-policies summary { font-size: 11px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-information .sm-shop-policies { grid-template-columns: 1fr; padding: 5px 15px 17px; gap: 17px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-notice { align-items: flex-start; font-size: 12px; gap: 9px; padding: 10px 12px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-goods-heading { gap: 5px; margin-block: 15px 12px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-goods-heading h2 { font-size: 19px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-goods-heading p { width: 100%; font-size: 11px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-filter-line { grid-template-columns: 47px minmax(0, 1fr); }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-filter-line > strong { padding: 12px 10px; font-size: 11px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-filter-line > div { padding: 6px; gap:var(--aid-ui-control-gap); }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-filter-line button { padding: 6px 10px; font-size: var(--aid-ui-control-font); min-height: var(--aid-ui-chip-height); }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-mall-sort, .sm-aqara-toolbar) { gap: 9px 12px; margin-bottom: 12px; padding-block: 8px; font-size: 11px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-sort-options { width: 100%; gap:var(--aid-ui-control-gap); }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-sort-options button { font-size: var(--aid-ui-control-font); padding: 6px 10px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-check { font-size: 11px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-mall-sort, .sm-aqara-toolbar) > span { margin-left: auto; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-cover { height: 145px; padding: 26px 12px 10px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-favorite { right: 7px; top: 7px; width: 30px; height: 30px; padding: 6px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-copy { padding: 10px 11px 12px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-name { font-size: 13px !important; line-height: 1.55; min-height: 41px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-brand { font-size: 11px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-copy > p { font-size: 11px; min-height: 18px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-card-price strong { font-size: 19px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-card-price .sm-price-hidden { font-size: 12px !important; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-stock-copy { font-size: 11px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-shop-name { font-size: 11px !important; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-card-actions { gap: 6px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-card-actions :is(.button, .sm-favorite) { font-size: 11px !important; padding: 7px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-card-detail { font-size: 12px !important; min-height: 32px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-purchase { gap: 3px 8px; margin-top: 9px; padding-top: 7px; }
}
@media (max-width: 360px) {
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-width { width: calc(100% - 28px); }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-brand strong { font-size: 16px; }
  :root.market-brand body[data-mall-page="market"]:has(.sm-brand-shop-page) .mall-purchase-link { padding-inline: 7px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-cover { height: 133px; padding-inline: 10px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-copy { padding-inline: 9px; }
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-product-grid { gap: 9px; }
}

/* Product details: one image stage, precise variant choices, then full specifications. */
:root.market-brand[data-mall-theme] .sm-merchandise-dialog {
  width: min(1080px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 48px);
  border: 1px solid var(--mt-line);
  border-radius: 14px;
  padding: 0;
  background: #fff;
  color: var(--mt-ink);
  box-shadow: 0 22px 90px #151b2433;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  font-family: inherit;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog::backdrop {
  background: #20262d66;
  backdrop-filter: blur(5px);
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-dialog-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 57px;
  gap: 18px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--mt-line);
  background: #fff;
  backdrop-filter: none;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-dialog-head h2 {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-close {
  width: 32px;
  height: 32px;
  border: 1px solid #e8ecef;
  border-radius: 50%;
  background: #f7f8f9;
  color: #616b73;
  font-size: 22px !important;
  flex: none;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-close:hover { background: #eceff2; color: var(--mt-ink); }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-dialog-body { padding: 24px; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-top {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 30px;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-media { min-width: 0; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  margin: 0;
  padding: 0;
  border: 1px solid #ebedef;
  border-radius: 10px;
  background: #f5f6f7;
  overflow: hidden;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  padding: 25px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-photo-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 11px 0 0;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-photo-thumbs > button {
  width: 48px;
  height: 48px;
  padding: 4px;
  border: 1px solid var(--mt-line);
  border-radius: 6px;
  background: #fff;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-photo-thumbs > button.is-active {
  border-color: var(--mt-ink);
  box-shadow: 0 0 0 1px var(--mt-ink);
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-photo-thumbs img { width: 100%; height: 100%; object-fit: contain; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-information { min-width: 0; margin: 0; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-information > .sm-muted {
  font-size: 12px;
  line-height: 1.6;
  color: var(--mt-muted);
  margin: 0 0 7px;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-information h3 {
  margin: 0 0 10px;
  color: var(--mt-ink);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-tagline {
  margin: 0 0 13px;
  color: var(--mt-muted);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* Platform names describe the configured compatibility, never certification. */
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-platforms {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 12px 0;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-platform-caption {
  color: var(--mt-muted);
  font-size: 11px;
  line-height: 1.6;
  padding-top: 8px;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-platform-list {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-platform-list > li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #e7ebee;
  border-radius: 6px;
  background: #fbfcfc;
  color: #454f57;
  font-size: 11px;
  line-height: 1.5;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-platform-logo {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
  object-fit: contain;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-platform-list > li > span { min-width: 0; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-platform-notes {
  grid-column: 2;
  color: var(--mt-muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
  overflow-wrap: anywhere;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-platform-pending {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--mt-muted);
  font-size: 12px;
  line-height: 1.6;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #e8ebee;
  border-left: 2px solid var(--market-gold);
  border-radius: 6px;
  background: #f6f7f8;
  margin: 14px 0 0;
  line-height: 1.5;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-price strong {
  color: var(--mt-ink);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.6px;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-price > span { color: var(--mt-muted); font-size: 12px; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-price .sm-price-hidden { font-size: 13px !important; line-height: 1.65; }

:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-variant-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  border: 0;
  padding: 0;
  margin: 16px 0 0;
  min-width: 0;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-variant-options legend {
  margin-bottom: 9px;
  padding: 0;
  color: var(--mt-ink);
  font-size: 12px;
  line-height: 1.6;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-variant-options legend span {
  margin-left: 10px;
  color: var(--mt-muted);
  font-size: 11px;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-variant-options button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--mt-line);
  border-radius: 6px;
  background: #fff;
  color: #515a62;
  font-size: 12px !important;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-variant-options button.is-active {
  border-color: var(--mt-ink);
  background: #f6f4ef;
  color: var(--mt-ink);
  box-shadow: inset 0 0 0 .5px var(--mt-ink);
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-variant-options button small {
  display: block;
  margin-top: 4px;
  color: var(--mt-muted);
  font-size: 11px;
  line-height: 1.5;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-information > .sm-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 0;
  margin: 14px 0 0;
  padding-top: 4px;
  font-size: 12px;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-information > .sm-details > div {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #edf0f2;
  line-height: 1.65;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-details dt { color: var(--mt-muted); }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-details dd { margin: 0; color: #424b53; overflow-wrap: anywhere; white-space: pre-wrap; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-actions {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
  padding-top: 0;
  border: 0;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .button,
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-actions .sm-favorite {
  min-height: 37px;
  padding: 8px 13px;
  border: 1px solid var(--mt-line);
  border-radius: 6px;
  background: #fff;
  color: var(--mt-ink);
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.5;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .button.primary { color: #fff; border-color: var(--mt-ink); background: var(--mt-ink); }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .button.primary:hover { color: #fff; border-color: var(--mt-hover); background: var(--mt-hover); }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-actions .sm-favorite[aria-pressed="true"] { background: #f6f4ef; border-color: #d8c7a6; color: var(--market-gold-ink); }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-catalog-notice {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: #f8f9fa;
  color: var(--mt-muted);
  font-size: 12px;
  line-height: 1.75;
}

:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-store {
  display: flex;
  align-items: baseline;
  gap: 13px 22px;
  margin: 23px 0 19px;
  padding: 14px 16px;
  border: 1px solid var(--mt-line);
  border-radius: 7px;
  background: #f8f9fa;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-store strong { font-size: 13px; line-height: 1.6; font-weight: 500; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-store span { font-size: 12px; line-height: 1.8; color: var(--mt-muted); overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-description { margin: 18px 0; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog :is(.sm-detail-description, .sm-public-details) h4 { font-size: 14px; font-weight: 500; margin: 0 0 11px; color: var(--mt-ink); line-height: 1.6; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog :is(.sm-detail-description, .sm-public-details) p { font-size: 13px; line-height: 1.85; color: var(--mt-muted); margin: 9px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 32px;
  margin: 16px 0 20px;
  padding-left: 18px;
  color: #5d6870;
  font-size: 12px;
  line-height: 1.8;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-feature-list li { padding-left: 2px; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-feature-list li::marker { color: var(--market-gold-ink); }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-public-details {
  margin-top: 21px;
  padding-top: 18px;
  border-top: 1px solid var(--mt-line);
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-public-details .sm-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 25px;
  row-gap: 0;
  margin: 12px 0 0;
  padding: 6px 15px;
  border: 1px solid #e7ebee;
  border-radius: 7px;
  background: #fafbfc;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-public-details .sm-details > div {
  display: grid;
  grid-template-columns: minmax(75px, .55fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  font-size: 12px;
  line-height: 1.7;
  border-bottom: 1px solid #edf0f2;
  min-width: 0;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-public-details > div + div { margin-top: 20px; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-public-details img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  margin: 0;
  border-radius: 0;
}
/* Image-only detail slices form one continuous page; text blocks keep their spacing. */
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-public-details > div:has(> img:only-child) + div:has(> img:only-child) { margin-top: 0; }
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-dialog-body > .sm-form-actions {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--mt-line);
}

@media (max-width: 900px) {
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog { width: calc(100vw - 32px); max-width: calc(100vw - 32px); }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-dialog-body { padding: 21px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-top { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 23px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-image { height: 260px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-image img { padding: 22px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-information h3 { font-size: 25px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-variant-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-information > .sm-details { grid-template-columns: 1fr; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-information > .sm-details > div { grid-template-columns: 65px minmax(0, 1fr); padding-block: 6px; }
}
@media (min-width: 1000px) {
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-variant-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 18px);
    border-radius: 11px;
  }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-dialog-head { min-height: 52px; padding: 10px 16px; gap: 13px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-dialog-head h2 { font-size: 13px; line-height: 1.55; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-dialog-body { padding: 16px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-top { grid-template-columns: 1fr; gap: 21px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-image { height: 185px; border-radius: 8px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-image img { padding: 15px 25px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-photo-thumbs { gap: 7px; margin: 9px 0 0; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-photo-thumbs > button { width: 46px; height: 46px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-information { margin: 0; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-information > .sm-muted { font-size: 11px; margin-bottom: 6px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-information h3 { font-size: 24px; line-height: 1.35; margin-bottom: 9px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-tagline { font-size: 12px; margin-bottom: 11px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-platforms { grid-template-columns: 53px minmax(0, 1fr); gap: 7px; margin-block: 11px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-platform-list { gap: 6px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-platform-list > li { padding: 6px 8px; gap: 6px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-platform-logo { width: 21px; height: 21px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-price { margin-top: 12px; padding: 11px 12px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-price strong { font-size: 26px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-variant-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 15px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-variant-options button { min-height: 40px; padding: 9px; font-size: 12px !important; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-information > .sm-details { margin-top: 13px; padding-top: 0; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-information > .sm-details > div { padding-block: 6px; grid-template-columns: 66px minmax(0, 1fr); }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-actions { gap: 8px; margin-top: 14px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .button,
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-actions .sm-favorite { min-height: 40px; padding: 9px 12px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-catalog-notice { font-size: 12px; padding: 10px 11px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-store { display: block; padding: 12px 13px; margin: 19px 0 17px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-store span { display: block; margin-top: 7px; font-size: 12px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-description { margin-block: 17px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog :is(.sm-detail-description, .sm-public-details) p { font-size: 12px; line-height: 1.85; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-feature-list { grid-template-columns: 1fr; gap: 6px; margin-block: 15px 18px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-public-details { margin-top: 18px; padding-top: 16px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-public-details .sm-details { grid-template-columns: 1fr; padding: 4px 12px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-public-details .sm-details > div { grid-template-columns: minmax(74px, .5fr) minmax(0, 1fr); gap: 12px; padding-block: 9px; }
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-dialog-body > .sm-form-actions { margin-top: 19px; padding-top: 15px; }
}

/* Procurement follows the same restrained, compact product language. */
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-platform-list > li {
  width: 36px;
  height: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  justify-content: center;
  padding: 6px;
  gap: 0;
  border-radius: 7px;
}
:root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-platform-logo { width: 22px; height: 22px; }
:root.market-brand[data-mall-theme] :is(.sc-cart,.sc-empty,.sc-success) { --sc-accent: #202226; color: var(--mt-ink); font-family: inherit; }
:root.market-brand .sc-cart { padding-block: 24px 0; }
:root.market-brand .sc-cart .sc-heading { align-items: center; gap: 20px; margin: 0 0 17px; }
:root.market-brand .sc-cart .sc-heading h1 { font-size: 28px; font-weight: 500; line-height: 1.3; letter-spacing: -.7px; margin: 0 0 7px; }
:root.market-brand .sc-cart .sc-heading small { display: inline-block; margin-left: 12px; font-size: 12px; letter-spacing: 0; color: var(--mt-muted); }
:root.market-brand .sc-cart .sc-heading p { font-size: 12px; line-height: 1.7; color: var(--mt-muted); margin: 0; }
:root.market-brand .sc-cart .sc-steps { gap: 18px; padding: 12px 0; margin: 0 0 20px; border-block: 1px solid var(--mt-line); font-size: 12px; line-height: 1.6; }
:root.market-brand .sc-cart .sc-steps [aria-current="step"] { font-weight: 500; color: var(--mt-ink); }
:root.market-brand .sc-cart .sc-steps [aria-current="step"]::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--market-gold); border-radius: 50%; margin: 0 7px 2px 0; }
:root.market-brand .sc-cart .sc-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 22px; align-items: start; }
:root.market-brand .sc-cart :is(.sc-products,.sc-checkout-main) { min-width: 0; }
:root.market-brand .sc-cart :is(.sc-toolbar,.sc-row) { display: grid; grid-template-columns: 24px minmax(180px,1fr) 91px 88px 100px 38px; gap: 12px; align-items: center; }
:root.market-brand .sc-cart .sc-toolbar { min-height: 43px; padding: 9px 15px; border: 1px solid var(--mt-line); border-radius: 7px; background: #f1f3f5; color: var(--mt-muted); font-size: 11px; }
:root.market-brand .sc-cart .sc-toolbar label { display: flex; align-items: center; gap: 8px; grid-column: span 2; font-size: 12px; color: #424c54; }
:root.market-brand .sc-cart input[type="checkbox"] { accent-color: var(--mt-ink); width: 16px; height: 16px; margin: 0; flex: none; }
:root.market-brand .sc-cart .sc-shop { margin: 13px 0; border: 1px solid var(--mt-line); border-radius: 9px; background: #fff; overflow: hidden; }
:root.market-brand .sc-cart .sc-shop > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 18px; padding: 12px 16px; border-bottom: 1px solid #e9edef; background: #fff; font-size: 13px; line-height: 1.6; }
:root.market-brand .sc-cart .sc-shop > header strong { font-weight: 500; overflow-wrap: anywhere; }
:root.market-brand .sc-cart .sc-shop > header span { margin-left: auto; font-size: 11px; color: var(--mt-muted); }
:root.market-brand .sc-cart .sc-row { padding: 15px; border-bottom: 1px solid #edf0f2; }
:root.market-brand .sc-cart .sc-row:last-child { border-bottom: 0; }
:root.market-brand .sc-cart .sc-row.is-unavailable { background: #f7f8f9; }
:root.market-brand .sc-cart .sc-product { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
:root.market-brand .sc-cart .sc-product img { width: 62px; height: 62px; padding: 5px; object-fit: contain; background: #f8f9fa; border: 1px solid #edf0f2; border-radius: 7px; flex: none; }
:root.market-brand .sc-cart .sc-product strong { font-size: 13px; line-height: 1.6; font-weight: 500; color: var(--mt-ink); overflow-wrap: anywhere; }
:root.market-brand .sc-cart .sc-product span { font-size: 12px; line-height: 1.6; margin: 4px 0; color: var(--mt-muted); overflow-wrap: anywhere; }
:root.market-brand .sc-cart .sc-product small { font-size: 11px; line-height: 1.65; }
:root.market-brand .sc-cart .sc-source { color: var(--mt-muted); }
:root.market-brand .sc-cart .sc-warning { color: #a4422f; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
:root.market-brand .sc-cart .sc-product .sc-warning { margin-top: 5px; font-size: 11px; }
:root.market-brand .sc-cart :is(.sc-price,.sc-subtotal) { font-size: 13px; line-height: 1.6; font-variant-numeric: tabular-nums; color: #414b53; overflow-wrap: anywhere; }
:root.market-brand .sc-cart .sc-subtotal { font-weight: 500; color: var(--mt-ink); }
:root.market-brand .sc-cart .sc-quantity input { width: 70px; height: 35px; max-width: 100%; border: 1px solid #dce2e6; border-radius: 6px; background: #fff; color: var(--mt-ink); font-size: 13px; line-height: 1.5; }
:root.market-brand .sc-cart .sc-quantity small { margin-top: 5px; color: var(--mt-muted); font-size: 10px; line-height: 1.6; }
:root.market-brand .sc-cart .sc-text { padding: 5px 0; color: #58636b; font-size: 12px; line-height: 1.6; }
:root.market-brand .sc-cart .sc-text:hover { color: var(--market-gold-ink); }
:root.market-brand .sc-cart .sc-product .sc-text { text-underline-offset: 3px; color: #3d4850; font-size: 11px; }
:root.market-brand[data-mall-theme] .sc-cart .sc-review { position: sticky; top: 20px; min-width: 0; border: 1px solid var(--mt-line); border-top: 2px solid var(--market-gold); border-radius: 9px; padding: 19px; background: #fff; margin-top: 0; }
:root.market-brand .sc-cart .sc-review h2 { font-size: 18px; font-weight: 500; line-height: 1.4; margin: 0 0 17px; letter-spacing: -.3px; }
:root.market-brand .sc-cart .sc-summary { padding-bottom: 13px; border-bottom: 1px solid var(--mt-line); margin-bottom: 14px; }
:root.market-brand .sc-cart .sc-summary > p { color: var(--mt-muted); font-size: 11px; line-height: 1.7; margin: 0 0 12px; }
:root.market-brand .sc-cart .sc-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12px; line-height: 1.6; margin: 9px 0; }
:root.market-brand .sc-cart .sc-summary > div > span { min-width: 0; overflow-wrap: anywhere; }
:root.market-brand .sc-cart .sc-summary > div > strong { flex: none; font-weight: 500; font-variant-numeric: tabular-nums; }
:root.market-brand .sc-cart .sc-summary .sc-total { margin-top: 18px; }
:root.market-brand .sc-cart .sc-total strong { color: var(--mt-ink); font-size: 27px; font-weight: 500; line-height: 1.3; letter-spacing: -.6px; }
:root.market-brand .sc-cart .sc-review .sc-freight { padding-top: 12px; border-top: 1px solid #edf0f2; font-size: 12px; }
:root.market-brand .sc-cart .sc-summary .sc-amount-note { margin: 12px 0 0; font-size: 11px; line-height: 1.8; }
:root.market-brand .sc-cart .sc-footnote { color: var(--mt-muted); font-size: 11px; line-height: 1.8; margin: 12px 0 0; }
:root.market-brand .sc-cart .sc-review .sc-footnote + .sc-footnote { margin-top: 6px; }
:root.market-brand[data-mall-theme] :is(.sc-cart,.sc-empty,.sc-success) .button { border: 1px solid var(--mt-line); border-radius: 6px; background: #fff; color: var(--mt-ink); min-height: 37px; padding: 8px 13px; font-size: 12px; font-weight: 500; line-height: 1.5; }
:root.market-brand[data-mall-theme] :is(.sc-cart,.sc-empty,.sc-success) .button.primary { border-color: var(--mt-ink); background: var(--mt-ink); color: #fff; }
:root.market-brand[data-mall-theme] :is(.sc-cart,.sc-empty,.sc-success) .button.primary:hover { background: var(--mt-hover); border-color: var(--mt-hover); color: #fff; }
:root.market-brand .sc-cart .sc-review .sc-checkout { width: 100%; min-height: 42px; padding: 10px 8px; border-radius: 6px; margin-top: 12px; font-size: 13px; line-height: 1.5; }
:root.market-brand .sc-cart [data-cart-recovery] { padding: 12px; margin-block: 12px; border: 1px solid #e8d8ba; border-radius: 7px; background: #faf6ed; color: #705a35; font-size: 12px; line-height: 1.7; }
:root.market-brand .sc-cart [data-cart-recovery] p { margin: 0 0 7px; }
:root.market-brand .sc-cart [data-cart-recovery] .button { margin: 3px 4px 0 0; padding-inline: 9px; font-size: 11px; }
:root.market-brand .sc-cart [data-cart-error] { margin: 10px 0; }

/* Checkout keeps all address, delivery and invoice fields in ordinary flow. */
:root.market-brand .sc-cart .sc-checkout-form { margin: 0; }
:root.market-brand .sc-cart .sc-checkout-section { min-width: 0; margin: 0 0 15px; padding: 19px 20px; border: 1px solid var(--mt-line); border-radius: 9px; background: #fff; }
:root.market-brand .sc-cart fieldset.sc-checkout-section { padding-top: 14px; }
:root.market-brand .sc-cart .sc-checkout-section legend { width: 100%; float: left; padding: 0; margin: 3px 0 12px; font-size: 17px; line-height: 1.5; font-weight: 500; }
:root.market-brand .sc-cart .sc-checkout-section legend + * { clear: both; }
:root.market-brand .sc-cart .sc-checkout-section h2 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.5; }
:root.market-brand .sc-cart .sc-checkout-section h3 { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.6; }
:root.market-brand .sc-cart .sc-checkout-section > .sc-footnote { margin: 0 0 13px; }
:root.market-brand .sc-cart .sc-checkout-form label { color: #606b73; font-size: 12px; line-height: 1.6; margin-bottom: 13px; }
:root.market-brand .sc-cart .sc-checkout-form input:not([type="checkbox"]),
:root.market-brand .sc-cart .sc-checkout-form select,
:root.market-brand .sc-cart .sc-checkout-form textarea { min-width: 0; width: 100%; display: block; border: 1px solid #dce2e6; border-radius: 6px; background: #fff; color: var(--mt-ink); padding: 9px 11px; font-size: 13px; line-height: 1.55; margin-top: 6px; }
:root.market-brand .sc-cart .sc-checkout-form input:not([type="checkbox"]),
:root.market-brand .sc-cart .sc-checkout-form select { min-height: 40px; }
:root.market-brand .sc-cart .sc-checkout-form textarea { resize: vertical; min-height: 67px; }
:root.market-brand .sc-cart .sc-recipient { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
:root.market-brand .sc-cart :is(.sc-section-heading,.sc-address-edit-heading) { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 16px; margin: 0 0 13px; }
:root.market-brand .sc-cart .sc-checkout-section .sc-shop { margin: 12px 0 0; }
:root.market-brand .sc-cart .sc-checkout-section .sc-shop > header { background: #f8f9fa; }
:root.market-brand .sc-cart .sc-checkout-row { grid-template-columns: minmax(180px,1fr) 91px 76px 100px; gap: 12px; padding: 13px; }
:root.market-brand .sc-cart .sc-checkout-quantity { color: var(--mt-muted); font-size: 12px; line-height: 1.6; }
:root.market-brand .sc-cart .sc-delivery-preview { padding-bottom: 13px; border-bottom: 1px solid var(--mt-line); }
:root.market-brand .sc-cart .sc-delivery-preview h3 { font-size: 12px; font-weight: 500; margin: 0 0 7px; }
:root.market-brand .sc-cart .sc-delivery-preview p { font-size: 12px; line-height: 1.8; color: var(--mt-muted); margin: 0; overflow-wrap: anywhere; }
:root.market-brand .sc-cart .sc-address-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin: 14px 0 16px; }
:root.market-brand .sc-cart .sc-address-card { min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 13px 14px; border: 1px solid var(--mt-line); border-radius: 7px; background: #fff; }
:root.market-brand .sc-cart .sc-address-card.is-selected { border-color: #6b7177; box-shadow: inset 0 0 0 .5px #6b7177; background: #faf8f3; }
:root.market-brand .sc-cart .sc-address-choice { color: var(--mt-ink); }
:root.market-brand .sc-cart .sc-address-choice strong { font-size: 13px; font-weight: 500; line-height: 1.6; margin-bottom: 6px; }
:root.market-brand .sc-cart .sc-address-choice span { font-size: 12px; line-height: 1.75; color: var(--mt-muted); }
:root.market-brand .sc-cart .sc-address-choice small { font-size: 10px; color: var(--market-gold-ink); }
:root.market-brand .sc-cart .sc-address-card > .sc-text { align-self: flex-end; font-size: 11px; padding-block: 3px; }
:root.market-brand .sc-cart .sc-address-suggestions { padding: 12px 13px; border: 1px solid #e6e9ec; border-radius: 7px; background: #f7f8f9; margin-bottom: 16px; }
:root.market-brand .sc-cart .sc-address-suggestions p { font-size: 12px; line-height: 1.7; margin: 0 0 7px; color: var(--mt-muted); }
:root.market-brand .sc-cart .sc-address-suggestions .button { font-size: 12px; padding: 7px 10px; margin: 4px 5px 3px 0; }
:root.market-brand .sc-cart .sc-address-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; }
:root.market-brand .sc-cart .sc-address-save { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 15px; padding-top: 2px; }
:root.market-brand .sc-cart .sc-address-save > label:first-child { flex: 1; min-width: 160px; margin: 0; }
:root.market-brand .sc-cart .sc-checkout-form .sc-inline-check { display: flex; align-items: center; gap: 8px; white-space: nowrap; margin: 0 0 12px; font-size: 12px; }
:root.market-brand .sc-cart .sc-address-save > .button { min-height: 40px; font-size: 12px; }

/* Empty and completed states keep the same actions with less ceremonial space. */
:root.market-brand[data-mall-theme] :is(.sc-empty,.sc-success) { max-width: 800px; margin: 28px auto; padding: 37px 28px; border: 1px solid var(--mt-line); border-radius: 11px; background: #fff; text-align: center; }
:root.market-brand :is(.sc-empty,.sc-success) h1 { color: var(--mt-ink); font-size: 26px; font-weight: 500; line-height: 1.4; letter-spacing: -.6px; margin: 12px 0; }
:root.market-brand :is(.sc-empty,.sc-success) p { color: var(--mt-muted); font-size: 13px; line-height: 1.8; margin: 10px auto; max-width: 560px; }
:root.market-brand .sc-empty .sc-empty-icon { display: inline-block; font-size: 40px; line-height: 1.2; color: #879099; }
:root.market-brand .sc-empty .sc-text { display: block; margin: 9px auto 0; color: var(--mt-muted); font-size: 12px; }
:root.market-brand .sc-success > span { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid #d8c7a5; border-radius: 50%; background: #faf7ef; color: var(--market-gold-ink); font-size: 23px; }
:root.market-brand .sc-success > div { max-width: 620px; margin: 22px auto; }
:root.market-brand .sc-success a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: space-between; padding: 13px 15px; border: 1px solid var(--mt-line); border-radius: 7px; background: #f8f9fa; margin: 8px 0; color: var(--mt-ink); font-size: 13px; line-height: 1.6; }
:root.market-brand .sc-success a strong { font-weight: 500; overflow-wrap: anywhere; }
:root.market-brand .sc-success a span { font-size: 11px; color: var(--mt-muted); }
:root.market-brand .sc-success a small { color: var(--mt-ink); font-size: 12px; }
:root.market-brand .sc-success .sc-warning { color: #a4422f; }

@media (max-width: 1150px) {
  :root.market-brand .sc-cart .sc-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 17px; }
  :root.market-brand .sc-cart :is(.sc-toolbar,.sc-row) { grid-template-columns: 21px minmax(135px,1fr) 74px 73px 83px 32px; gap: 8px; }
  :root.market-brand .sc-cart .sc-product { gap: 9px; }
  :root.market-brand .sc-cart .sc-product img { width: 52px; height: 52px; }
  :root.market-brand .sc-cart .sc-quantity input { width: 64px; }
  :root.market-brand .sc-cart .sc-review { padding: 17px; }
  :root.market-brand .sc-cart .sc-checkout-section { padding-inline: 17px; }
  :root.market-brand .sc-cart .sc-checkout-row { grid-template-columns: minmax(130px,1fr) 73px 62px 83px; gap: 8px; padding: 12px; }
  :root.market-brand .sc-cart .sc-recipient { gap: 11px; }
}
@media (max-width: 950px) {
  :root.market-brand .sc-cart .sc-layout { display: block; }
  :root.market-brand[data-mall-theme] .sc-cart .sc-review { position: static; max-width: none; margin-top: 18px; }
  :root.market-brand .sc-cart .sc-address-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  :root.market-brand .sc-cart .sc-review .sc-checkout { max-width: 360px; }
}
@media (max-width: 800px) {
  :root.market-brand .sc-cart { padding-top: 20px; }
  :root.market-brand .sc-cart .sc-heading { gap: 12px; align-items: flex-start; margin-bottom: 15px; }
  :root.market-brand .sc-cart .sc-heading h1 { font-size: 25px; line-height: 1.4; margin-bottom: 6px; }
  :root.market-brand .sc-cart .sc-heading small { font-size: 11px; margin-left: 8px; }
  :root.market-brand .sc-cart .sc-heading p { font-size: 12px; }
  :root.market-brand .sc-cart .sc-heading > .button { flex: none; padding: 7px 10px; font-size: 11px; min-height: 35px; }
  :root.market-brand .sc-cart .sc-steps { gap: 11px; padding-block: 11px; margin-bottom: 15px; font-size: 11px; }
  :root.market-brand .sc-cart .sc-toolbar { display: flex; justify-content: space-between; min-height: 42px; padding: 8px 12px; }
  :root.market-brand .sc-cart .sc-toolbar > span { display: none; }
  :root.market-brand .sc-cart .sc-shop { margin-block: 11px; }
  :root.market-brand .sc-cart .sc-shop > header { gap: 6px 12px; padding: 11px 13px; font-size: 13px; }
  :root.market-brand .sc-cart .sc-shop > header span { font-size: 10px; }
  :root.market-brand .sc-cart .sc-row { grid-template-columns: 20px minmax(0,1fr) 77px; gap: 9px 10px; padding: 13px 12px; position: relative; }
  :root.market-brand .sc-cart .sc-check { align-self: start; margin-top: 19px; }
  :root.market-brand .sc-cart .sc-product { grid-column: 2 / 4; gap: 10px; }
  :root.market-brand .sc-cart .sc-product img { width: 57px; height: 57px; }
  :root.market-brand .sc-cart .sc-product strong { font-size: 13px; line-height: 1.6; }
  :root.market-brand .sc-cart .sc-product span { font-size: 11px; margin-block: 3px; }
  :root.market-brand .sc-cart .sc-product small { font-size: 11px; }
  :root.market-brand .sc-cart .sc-price { grid-column: 2; grid-row: 2; font-size: 12px; color: var(--mt-muted); }
  :root.market-brand .sc-cart .sc-price::before { content: '单价 '; color: var(--mt-muted); }
  :root.market-brand .sc-cart .sc-quantity { grid-column: 3; grid-row: 2 / 4; }
  :root.market-brand .sc-cart .sc-quantity input { width: 70px; height: 36px; font-size: 16px; }
  :root.market-brand .sc-cart .sc-quantity small { font-size: 10px; }
  :root.market-brand .sc-cart .sc-subtotal { grid-column: 2; grid-row: 3; font-size: 16px; line-height: 1.5; }
  :root.market-brand .sc-cart .sc-remove { grid-column: 3; grid-row: 4; text-align: left; padding-block: 2px; }
  :root.market-brand .sc-cart .sc-review { padding: 17px; }
  :root.market-brand .sc-cart .sc-review h2 { font-size: 17px; margin-bottom: 15px; }
  :root.market-brand .sc-cart .sc-review .sc-checkout { max-width: none; min-height: 44px; }
  :root.market-brand .sc-cart .sc-summary .sc-total { margin-top: 16px; }
  :root.market-brand .sc-cart .sc-checkout-section { padding: 16px; margin-bottom: 13px; }
  :root.market-brand .sc-cart fieldset.sc-checkout-section { padding-top: 13px; }
  :root.market-brand .sc-cart .sc-checkout-section legend,
  :root.market-brand .sc-cart .sc-checkout-section h2 { font-size: 16px; }
  :root.market-brand .sc-cart .sc-checkout-form input:not([type="checkbox"]),
  :root.market-brand .sc-cart .sc-checkout-form select,
  :root.market-brand .sc-cart .sc-checkout-form textarea { font-size: 16px; padding: 9px 10px; }
  :root.market-brand .sc-cart .sc-checkout-form label { font-size: 12px; }
  :root.market-brand .sc-cart .sc-address-list { grid-template-columns: 1fr; gap: 9px; margin-block: 12px 14px; }
  :root.market-brand .sc-cart .sc-address-card { padding: 12px; }
  :root.market-brand .sc-cart .sc-address-save { gap: 12px; }
  :root.market-brand .sc-cart .sc-address-save > label:first-child { flex-basis: 100%; min-width: 0; }
  :root.market-brand .sc-cart .sc-address-save > .button { width: auto; margin-left: auto; min-height: 40px; }
  :root.market-brand .sc-cart .sc-checkout-form .sc-inline-check { margin-bottom: 11px; }
  :root.market-brand .sc-cart .sc-checkout-row { grid-template-columns: minmax(0,1fr) 77px; gap: 8px 12px; padding: 12px; }
  :root.market-brand .sc-cart .sc-checkout-row .sc-product { grid-column: 1 / 3; grid-row: 1; }
  :root.market-brand .sc-cart .sc-checkout-row .sc-price { grid-column: 1; grid-row: 2; }
  :root.market-brand .sc-cart .sc-checkout-row .sc-checkout-quantity { grid-column: 2; grid-row: 2; text-align: right; font-size: 12px; }
  :root.market-brand .sc-cart .sc-checkout-row .sc-subtotal { grid-column: 1 / 3; grid-row: 3; text-align: right; font-size: 16px; }
  :root.market-brand .sc-cart .sc-checkout-section .sc-shop > header { align-items: flex-start; }
  :root.market-brand .sc-cart .sc-checkout-section .sc-shop > header span { max-width: 45%; line-height: 1.6; text-align: right; }
  :root.market-brand[data-mall-theme] :is(.sc-empty,.sc-success) { margin-block: 22px; padding: 29px 18px; }
  :root.market-brand :is(.sc-empty,.sc-success) h1 { font-size: 23px; }
  :root.market-brand :is(.sc-empty,.sc-success) p { font-size: 12px; }
  :root.market-brand .sc-success a { gap: 6px 12px; padding: 12px; }
  :root.market-brand .sc-success a span { font-size: 11px; }
}
@media (max-width: 420px) {
  :root.market-brand .sc-cart .sc-heading small { display: block; margin: 5px 0 0; }
  :root.market-brand .sc-cart .sc-recipient { grid-template-columns: 1fr; gap: 0; }
  :root.market-brand .sc-cart .sc-checkout-section { padding-inline: 13px; }
  :root.market-brand .sc-cart .sc-address-save > .button { width: 100%; margin-left: 0; }
  :root.market-brand .sc-cart .sc-checkout-form .sc-inline-check { margin: 0; }
  :root.market-brand .sc-cart .sc-checkout-row { padding-inline: 10px; }
  :root.market-brand .sc-cart .sc-product img { width: 51px; height: 51px; }
}

/* Buyer procurement orders: compact records and deliberate confirmation states. */
:root.market-brand[data-mall-theme] .sm-purchase-orders { margin-top: 24px; color: var(--mt-ink); }
:root.market-brand[data-mall-theme] .sm-purchase-orders > .sm-section-heading { align-items: baseline; justify-content: flex-start; gap: 14px 22px; margin-bottom: 19px; }
:root.market-brand[data-mall-theme] .sm-purchase-orders > .sm-section-heading h2 { font-size: 28px; line-height: 1.4; font-weight: 500; letter-spacing: -.7px; }
:root.market-brand[data-mall-theme] .sm-purchase-orders > .sm-section-heading p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--mt-muted); }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-controls { padding: 16px 18px 0; border: 1px solid var(--mt-line); border-radius: 9px 9px 0 0; background: #fff; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-controls > label { display: flex; align-items: center; gap: 15px; color: var(--mt-muted); font-size: 12px; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-controls input { width: min(400px,80%); min-height: var(--aid-ui-search-height); padding: 0 10px; border: 1px solid #dce2e6; border-radius: var(--aid-ui-control-radius); background: #fafbfc; font-size: var(--aid-ui-input-font); color: var(--mt-ink); }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-controls input:focus { border-color: #687179; outline: 2px solid #e6e9ec; outline-offset: 1px; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-statuses { gap: 23px; margin-top: 9px; overflow: auto; scrollbar-width: thin; scrollbar-color: #d3d9de transparent; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-statuses button { min-height: var(--aid-ui-chip-height); padding: 6px 10px; color: var(--mt-muted); font-size: var(--aid-ui-control-font); line-height: var(--aid-ui-line); border-bottom-width: 2px; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-statuses button.is-active { border-bottom-color: var(--market-gold); color: var(--mt-ink); font-weight: 500; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-statuses span { display: inline-block; min-width: 17px; margin-left: 6px; color: var(--mt-muted); font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-list { padding: 0 18px; background: #fff; border: 1px solid var(--mt-line); border-top: 0; border-radius: 0 0 9px 9px; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row { grid-template-columns: minmax(200px,1fr) 155px 190px 105px 14px; gap: 19px; min-width: 0; padding: 17px 0; color: var(--mt-ink); font-size: 13px !important; border-bottom-color: #e9edef; background: transparent; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row:last-child { border-bottom: 0; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row:hover { background: #fafbfc; color: var(--mt-ink); }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row > span { min-width: 0; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row strong { font-size: 14px; line-height: 1.6; font-weight: 500; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row small { margin-top: 5px; color: var(--mt-muted); font-size: 11px; font-weight: 400; line-height: 1.65; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row .sm-order-amount { font-size: 18px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; letter-spacing: -.25px; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row .sm-order-amount small { letter-spacing: 0; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row > span:last-child { color: #879099; font-size: 21px; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-badge { justify-self: start; padding: 5px 8px; border: 1px solid #e7dfd0; border-radius: 5px; background: #faf8f3; color: #75633f; font-size: 11px; font-weight: 400; line-height: 1.5; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-badge.is-muted { color: var(--mt-muted); background: #f3f5f6; border-color: #e3e7ea; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-pagination { margin: 15px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 12px; color: var(--mt-muted); }
:root.market-brand[data-mall-theme] .sm-purchase-orders .button { min-height: 35px; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--mt-line); background: #fff; color: var(--mt-ink); font-size: 12px; line-height: 1.5; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .button.primary { background: var(--mt-ink); border-color: var(--mt-ink); color: #fff; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-empty { border: 1px solid var(--mt-line); border-top: 0; border-radius: 0 0 9px 9px; padding: 33px 20px; background: #fff; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-empty h2 { font-size: 20px; font-weight: 500; line-height: 1.5; margin: 0 0 9px; }
:root.market-brand[data-mall-theme] .sm-purchase-orders .sm-empty p { font-size: 13px; line-height: 1.8; }
:root.market-brand[data-mall-theme] .sm-purchase-orders > .sm-note { padding: 11px 14px; border: 1px solid var(--mt-line); border-radius: 7px; background: #f3f5f6; font-size: 12px; line-height: 1.7; }
:root.market-brand[data-mall-theme] .sm-purchase-orders > .sm-note button { margin-left: 9px; color: var(--mt-ink); border-radius: 5px; }

/* These dialog classes are assigned only to the buyer's order flow. */
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) { width: min(920px,calc(100vw - 48px)); max-height: calc(100dvh - 36px); border: 1px solid var(--mt-line); border-radius: 12px; color: var(--mt-ink); background: #fff; box-shadow: 0 20px 70px #20222626; font-family: inherit; }
:root.market-brand[data-mall-theme] .sm-purchase-order-action { width: min(710px,calc(100vw - 48px)); }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action)::backdrop { background: #20222666; backdrop-filter: blur(4px); }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-dialog-head { padding: 14px 23px; min-height: 58px; gap: 18px; background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--mt-line); }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-dialog-head h2 { font-size: 16px; font-weight: 500; letter-spacing: -.2px; line-height: 1.5; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-close { width: 31px; height: 31px; flex: none; border-radius: 6px; background: #f3f5f6; color: #687179; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-dialog-body { padding: 21px 23px 22px; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) :is(.sm-intro,.sm-note,.sm-loading) { color: var(--mt-muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-intro { margin: 0 0 17px; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-note { margin: 15px 0; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-error { font-size: 12px; line-height: 1.8; color: #a4422f; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-badge { flex: none; padding: 5px 8px; border: 1px solid #e7dfd0; border-radius: 5px; background: #faf8f3; color: #75633f; font-size: 11px; font-weight: 400; line-height: 1.5; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-heading { align-items: flex-start; gap: 15px; margin: 0 0 18px; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-heading > div { min-width: 0; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-heading .sm-muted { color: var(--mt-muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-heading h3 { margin: 6px 0 7px; color: var(--mt-ink); font-size: 24px; font-weight: 500; line-height: 1.4; letter-spacing: -.45px; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-heading p { margin: 4px 0 0; color: var(--mt-muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-heading > .sm-badge { margin-top: 3px; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-terms { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 23px; padding: 16px 18px; margin: 17px 0; border: 1px solid #e7ebee; border-radius: 8px; background: #f6f7f8; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-terms > div { min-width: 0; gap: 7px; flex-direction: column; font-size: 11px; line-height: 1.6; color: var(--mt-muted); }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-terms strong { font-size: 21px; font-weight: 500; line-height: 1.4; color: var(--mt-ink); letter-spacing: -.35px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-terms > div:last-of-type { border-left: 1px solid #d9dfe3; padding-left: 20px; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-terms p { color: var(--mt-muted); font-size: 12px; line-height: 1.7; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-items { padding: 0 15px; border: 1px solid var(--mt-line); border-radius: 8px; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-line { grid-template-columns: minmax(0,1fr) 116px 148px; gap: 18px; align-items: baseline; padding: 13px 0; border-top: 1px solid #e9edef; color: #424b53; font-size: 13px; line-height: 1.6; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-line:first-child { border-top: 0; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-line > span { min-width: 0; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-line strong { color: var(--mt-ink); font-size: 13px; font-weight: 500; line-height: 1.6; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-line small { margin-top: 4px; color: var(--mt-muted); font-size: 11px; line-height: 1.65; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-line > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-total { justify-content: flex-end; gap: 22px; padding: 14px 0 4px; border: 0; color: var(--mt-muted); font-size: 12px; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-total strong { color: var(--mt-ink); font-size: 23px; font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-details { margin: 16px 0; font-size: 12px; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-details > div { grid-template-columns: 82px minmax(0,1fr); gap: 14px; padding: 7px 0; line-height: 1.8; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-details dt { color: var(--mt-muted); }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-details dd { min-width: 0; color: #424b53; margin: 0; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-dialog-body > .sm-details { padding: 8px 15px; border: 1px solid var(--mt-line); border-radius: 8px; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-section { border-top: 1px solid var(--mt-line); padding-top: 15px; margin-top: 19px; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-section h4 { font-size: 14px; font-weight: 500; line-height: 1.6; margin: 0 0 8px; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-history-row { padding: 10px 0; border-bottom: 1px solid #edf0f2; font-size: 12px; line-height: 1.7; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-history-row strong { color: #424b53; font-weight: 500; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-history-row p { margin: 4px 0; color: var(--mt-muted); }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-history-row small { color: var(--mt-muted); font-size: 11px; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-service-record { padding: 12px 0; font-size: 12px; border-top: 1px solid #edf0f2; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-service-record:first-of-type { border-top: 0; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-service-title { gap: 12px; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-service-title strong { font-size: 13px; font-weight: 500; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-service-record p { margin: 8px 0; color: #566169; line-height: 1.8; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-service-record small { margin: 8px 0 0; font-size: 11px; color: var(--mt-muted); }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-history { margin-top: 18px; border-top: 1px solid var(--mt-line); padding-top: 15px; font-size: 12px; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-history summary { color: #535e66; padding: 3px 0; line-height: 1.6; }
:root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-history[open] summary { margin-bottom: 8px; }

/* Changed quantities, price, freight and delivery remain visible before acceptance. */
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal { padding: 16px 18px; border: 1px solid #dccbaa; border-left: 3px solid var(--market-gold); border-radius: 8px; background: #fcfaf6; margin: 16px 0; }
:root.market-brand[data-mall-theme] .sm-purchase-order-action form > .sm-proposal:first-child { margin-top: 0; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal > header { gap: 12px; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal h4 { font-size: 16px; font-weight: 500; line-height: 1.5; margin: 0; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal p { margin: 7px 0; color: #756f64; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal-lines > div { grid-template-columns: minmax(0,1fr) auto auto; gap: 9px 17px; padding: 11px 0; border-bottom: 1px solid #e9e1d4; font-size: 12px; line-height: 1.7; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal-lines > div > strong { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal-lines > div > span { min-width: 0; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal-lines span > span,
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal dd > span { color: #7c776f; margin-right: 5px; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal-lines small { color: #756f64; line-height: 1.7; font-size: 11px; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal .sm-details { margin: 10px 0 0; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal .sm-details > div { padding-block: 5px; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-form-actions { gap: 9px; padding-top: 15px; margin-top: 19px; border-top: 1px solid var(--mt-line); }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .button { min-height: 37px; padding: 8px 12px; border: 1px solid var(--mt-line); border-radius: 6px; background: #fff; color: var(--mt-ink); font-size: 12px; font-weight: 500; line-height: 1.5; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .button.primary { border-color: var(--mt-ink); background: var(--mt-ink); color: #fff; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .button.primary:hover { border-color: var(--mt-hover); background: var(--mt-hover); color: #fff; }
:root.market-brand[data-mall-theme] .sm-purchase-order-action .sm-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0 0 17px; }
:root.market-brand[data-mall-theme] .sm-purchase-order-action :is(.sm-form-grid > label,.sm-field) { min-width: 0; gap: 7px; color: var(--mt-muted); font-size: 12px; line-height: 1.6; }
:root.market-brand[data-mall-theme] .sm-purchase-order-action :is(.sm-form-grid input:not([type=checkbox]),.sm-form-grid select,.sm-form-grid textarea,.sm-field input,.sm-field textarea,.sm-quantity-row input) { min-height: 40px; padding: 9px 11px; border: 1px solid #dce2e6; border-radius: 6px; color: var(--mt-ink); background: #fff; font-size: 13px; line-height: 1.55; }
:root.market-brand[data-mall-theme] .sm-purchase-order-action :is(.sm-form-grid textarea,.sm-field textarea) { min-height: 84px; }
:root.market-brand[data-mall-theme] .sm-purchase-order-action .sm-quantity-row { grid-template-columns: minmax(0,1fr) 88px; gap: 17px; padding: 12px 0; font-size: 13px; line-height: 1.6; border-bottom: 1px solid #e9edef; }
:root.market-brand[data-mall-theme] .sm-purchase-order-action .sm-quantity-row strong { font-weight: 500; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-purchase-order-action .sm-quantity-row small { margin-top: 5px; font-size: 11px; color: var(--mt-muted); line-height: 1.65; }
:root.market-brand[data-mall-theme] .sm-purchase-order-action .sm-quantity-row input { text-align: center; }
:root.market-brand[data-mall-theme] .sm-purchase-order-action .sm-confirm-summary { padding: 14px 16px; border: 1px solid var(--mt-line); border-radius: 7px; background: #f6f7f8; font-size: 13px; line-height: 1.6; }
:root.market-brand[data-mall-theme] :is(.sm-purchase-orders,.sm-purchase-order-dialog,.sm-purchase-order-action) :focus-visible { outline: 2px solid #59656f; outline-offset: 3px; }

@media (max-width: 1000px) {
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row { grid-template-columns: minmax(140px,1fr) 125px 155px 98px 10px; gap: 14px; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-statuses { gap: 20px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-line { grid-template-columns: minmax(0,1fr) 105px 135px; gap: 14px; }
}
@media (max-width: 700px) {
  :root.market-brand[data-mall-theme] .sm-purchase-orders { margin-top: 20px; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders > .sm-section-heading { display: block; margin-bottom: 16px; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders > .sm-section-heading h2 { margin: 0 0 7px; font-size: 25px; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders > .sm-section-heading p { font-size: 12px; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-controls { padding: 13px 13px 0; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-controls > label { display: block; font-size: 12px; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-controls input { width: 100%; display: block; margin-top: 7px; min-height: var(--aid-ui-search-height); font-size: var(--aid-ui-input-font); }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-statuses { gap: 18px; margin-top: 6px; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-statuses button { min-height: var(--aid-ui-chip-height); font-size: var(--aid-ui-control-font); }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-list { padding-inline: 13px; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row { grid-template-columns: minmax(0,1fr) minmax(100px,.65fr); gap: 12px 14px; padding-block: 16px; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row > span:first-child { grid-column: 1; grid-row: 1; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row > span:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 12px; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row .sm-badge { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row .sm-order-amount { grid-column: 2; grid-row: 2; font-size: 18px; text-align: right; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row > span:last-child { display: none; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row strong { font-size: 13px; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-row small { font-size: 11px; line-height: 1.65; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-pagination { align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-empty { padding: 28px 16px; }
  :root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 10px; }
  :root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-dialog-head { padding: 12px 16px; min-height: 54px; }
  :root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-dialog-head h2 { font-size: 15px; }
  :root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-dialog-body { padding: 17px 16px 18px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-heading { gap: 12px; margin-bottom: 16px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-heading h3 { font-size: 22px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-terms { grid-template-columns: 1fr; padding: 13px 14px; gap: 9px; margin-block: 15px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-terms > div { flex-direction: row; justify-content: space-between; gap: 16px; align-items: baseline; font-size: 12px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-terms strong { font-size: 17px; letter-spacing: -.2px; text-align: right; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-terms > div:last-of-type { border-left: 0; border-top: 1px solid #dce2e6; padding: 9px 0 0; margin-top: 2px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-terms p { font-size: 12px; padding-top: 3px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-items { padding-inline: 12px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-line { grid-template-columns: minmax(0,1fr) 88px; gap: 9px 12px; padding-block: 12px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-line > span:last-child { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: left; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-line > span:last-child small { margin-top: 0; text-align: right; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-line > span:nth-child(2) { text-align: right; font-size: 12px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-line > span:nth-child(2) small { font-size: 10px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-total { padding-top: 12px; gap: 16px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-order-total strong { font-size: 22px; }
  :root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-details > div { grid-template-columns: 71px minmax(0,1fr); gap: 11px; padding-block: 6px; font-size: 12px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-dialog .sm-dialog-body > .sm-details { padding: 7px 12px; }
  :root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal { padding: 14px 12px; margin-block: 15px; }
  :root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal h4 { font-size: 15px; }
  :root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal > header { gap: 10px; }
  :root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal-lines > div { grid-template-columns: minmax(0,1fr); gap: 6px; padding-block: 10px; }
  :root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal-lines > div > span { line-height: 1.8; }
  :root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-proposal .sm-details > div { grid-template-columns: 69px minmax(0,1fr); }
  :root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .sm-form-actions { gap: 8px; margin-top: 17px; padding-top: 14px; }
  :root.market-brand[data-mall-theme] :is(.sm-purchase-order-dialog,.sm-purchase-order-action) .button { min-height: 40px; padding: 9px 11px; font-size: 12px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-action .sm-form-grid { grid-template-columns: 1fr; gap: 14px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-action :is(.sm-form-grid input:not([type=checkbox]),.sm-form-grid select,.sm-form-grid textarea,.sm-field input,.sm-field textarea,.sm-quantity-row input) { font-size: 16px; }
  :root.market-brand[data-mall-theme] .sm-purchase-order-action .sm-quantity-row { grid-template-columns: minmax(0,1fr) 76px; gap: 13px; }
}

/* Personal supply relationships: readable states, saved shops, and saved products. */
:root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) { color: var(--mt-ink); }
:root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) .sm-personal-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 22px; margin: 24px 0 20px; }
:root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) .sm-personal-heading h1 { color: var(--mt-ink); font-size: 28px; font-weight: 500; line-height: 1.4; letter-spacing: -.7px; margin: 0; }
:root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) .sm-personal-heading p { margin: 0; color: var(--mt-muted); font-size: 13px; line-height: 1.75; }
:root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-list { margin-top: 0; padding: 0 20px; border: 1px solid var(--mt-line); border-radius: 9px; background: #fff; }
:root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-row { grid-template-columns: minmax(0,1fr) 124px 196px; gap: 22px; padding: 19px 0; border-bottom: 1px solid #e9edef; }
:root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-row:last-child { border-bottom: 0; }
:root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-row > div:first-child { min-width: 0; }
:root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-row h2 { margin: 0 0 7px; color: var(--mt-ink); font-size: 16px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-row p { color: var(--mt-muted); font-size: 13px; line-height: 1.75; max-width: 680px; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-row small { margin-top: 7px; color: #7a838b; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-authorizations-page .sm-row-actions { justify-content: flex-end; gap: 8px; }
:root.market-brand[data-mall-theme] .sm-authorizations-page [data-sm-authorization-status] { justify-self: start; padding: 6px 9px; border: 1px solid #e1e5e8; border-radius: 5px; background: #f3f5f6; color: #687179; font-size: 12px; font-weight: 400; line-height: 1.5; }
:root.market-brand[data-mall-theme] .sm-authorizations-page [data-sm-authorization-status="approved"] { border-color: #d9e0e4; background: #f0f4f6; color: #42545e; }
:root.market-brand[data-mall-theme] .sm-authorizations-page [data-sm-authorization-status="pending"] { border-color: #e5d9c1; background: #faf7f0; color: #886e3e; }
:root.market-brand[data-mall-theme] .sm-authorizations-page [data-sm-authorization-status="rejected"] { border-color: #e8dcd7; background: #faf5f3; color: #8c594b; }
:root.market-brand[data-mall-theme] .sm-authorizations-page [data-sm-authorization-status="revoked"] { border-color: #e1e5e8; background: #f3f4f5; color: #727980; }
:root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) .sm-empty { max-width: none; padding: 32px 20px; border: 1px solid var(--mt-line); border-radius: 9px; background: #fff; }
:root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) .sm-empty h2 { margin: 0 0 9px; font-size: 21px; font-weight: 500; line-height: 1.5; letter-spacing: -.35px; }
:root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) .sm-empty p { margin: 0; color: var(--mt-muted); font-size: 13px; line-height: 1.8; }
:root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) .sm-empty .sm-row-actions { justify-content: center; margin-top: 17px; }
:root.market-brand[data-mall-theme] .sm-authorizations-page .button,
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorites-intro .button { min-height: 37px; padding: 8px 12px; border: 1px solid var(--mt-line); border-radius: 6px; background: #fff; color: var(--mt-ink); font-size: 12px; font-weight: 500; line-height: 1.5; }
:root.market-brand[data-mall-theme] .sm-authorizations-page .button.primary,
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorites-intro .button.primary { background: var(--mt-ink); border-color: var(--mt-ink); color: #fff; }
:root.market-brand[data-mall-theme] .sm-authorizations-page .button.primary:hover,
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorites-intro .button.primary:hover { background: var(--mt-hover); border-color: var(--mt-hover); }
:root.market-brand[data-mall-theme] .sm-authorizations-page .sm-personal-empty-action { display: flex; justify-content: center; margin: 16px 0 0; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorites-intro { margin-bottom: 25px; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shops { margin: 0; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shops .sm-section-heading { align-items: baseline; gap: 12px; margin-bottom: 12px; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shops .sm-section-heading h2 { margin: 0; color: var(--mt-ink); font-size: 19px; font-weight: 500; line-height: 1.5; letter-spacing: -.25px; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid > article { display: flex; flex-direction: column; min-width: 0; padding: 17px 18px; border: 1px solid var(--mt-line); border-radius: 8px; background: #fff; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid > article > strong { display: block; color: var(--mt-ink); font-size: 15px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid p { margin: 8px 0 15px; color: var(--mt-muted); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid .sm-row-actions { margin-top: auto; gap: 8px; align-items: center; justify-content: flex-start; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid .sm-favorite { min-height: 37px; padding: 8px 11px; border: 1px solid #ded7c9; border-radius: 6px; background: #faf8f3; color: #786746; font-size: 12px !important; font-weight: 400; line-height: 1.5; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid .sm-favorite:hover { border-color: #b4a17f; background: #f6f1e7; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-console-empty { padding: 16px 18px; margin: 0; border: 1px solid var(--mt-line); border-radius: 8px; background: #fff; color: var(--mt-muted); font-size: 13px; line-height: 1.8; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-market-catalog { margin-top: 0; border-top: 0; padding-top: 0; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-market-catalog > .market-section-heading { padding-top: 20px; margin-bottom: 14px; border-top: 1px solid var(--mt-line); }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-market-catalog > .market-section-heading h2 { font-size: 19px; font-weight: 500; line-height: 1.5; letter-spacing: -.25px; }
:root.market-brand[data-mall-theme] .sm-favorites-page .sm-market-catalog > .market-section-heading p { font-size: 12px; line-height: 1.7; }

/* Only the buyer's application form adopts this compact dialog treatment. */
:root.market-brand[data-mall-theme] .sm-authorization-dialog { width: min(620px,calc(100vw - 48px)); max-height: calc(100dvh - 36px); border: 1px solid var(--mt-line); border-radius: 12px; background: #fff; color: var(--mt-ink); box-shadow: 0 20px 70px #20222626; font-family: inherit; }
:root.market-brand[data-mall-theme] .sm-authorization-dialog::backdrop { background: #20222666; backdrop-filter: blur(4px); }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-dialog-head { min-height: 58px; padding: 14px 23px; gap: 18px; background: #fff; border-bottom: 1px solid var(--mt-line); backdrop-filter: none; }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-dialog-head h2 { font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: -.2px; }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-close { width: 31px; height: 31px; flex: none; border-radius: 6px; background: #f3f5f6; color: var(--mt-muted); }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-dialog-body { padding: 21px 23px 23px; }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-shop-summary { margin: 0 0 19px; }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-shop-summary h3 { margin: 0 0 9px; color: var(--mt-ink); font-size: 23px; font-weight: 500; line-height: 1.45; letter-spacing: -.45px; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-shop-summary p { margin: 0; color: var(--mt-muted); font-size: 13px; line-height: 1.8; }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-field { gap: 8px; color: var(--mt-muted); font-size: 12px; line-height: 1.6; }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-field textarea { min-height: 112px; padding: 11px 12px; border: 1px solid #dce2e6; border-radius: 6px; background: #fff; color: var(--mt-ink); font-size: 13px; line-height: 1.65; }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-form-actions { gap: 9px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--mt-line); }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .button { min-height: 37px; padding: 8px 12px; border: 1px solid var(--mt-line); border-radius: 6px; background: #fff; color: var(--mt-ink); font-size: 12px; font-weight: 500; line-height: 1.5; }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .button.primary { background: var(--mt-ink); border-color: var(--mt-ink); color: #fff; }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .button.primary:hover { background: var(--mt-hover); border-color: var(--mt-hover); }
:root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-error { color: #a4422f; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
:root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page,.sm-authorization-dialog) :focus-visible { outline: 2px solid #59656f; outline-offset: 3px; }

@media (max-width: 1000px) {
  :root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-row { grid-template-columns: minmax(0,1fr) 108px 196px; gap: 17px; }
  :root.market-brand[data-mall-theme] .sm-authorizations-page .sm-row-actions { max-width: 210px; }
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  :root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) .sm-personal-heading { display: block; margin: 20px 0 17px; }
  :root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) .sm-personal-heading h1 { font-size: 25px; margin-bottom: 7px; }
  :root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) .sm-personal-heading p { font-size: 12px; }
  :root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-list { padding-inline: 14px; }
  :root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; align-items: start; padding-block: 17px; }
  :root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-row > div:first-child { display: contents; }
  :root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-row h2 { grid-column: 1; grid-row: 1; font-size: 15px; margin: 0; }
  :root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-row p { grid-column: 1/-1; font-size: 12px; line-height: 1.8; }
  :root.market-brand[data-mall-theme] .sm-authorizations-page .sm-shop-row small { grid-column: 1/-1; margin-top: 0; font-size: 11px; }
  :root.market-brand[data-mall-theme] .sm-authorizations-page [data-sm-authorization-status] { grid-column: 2; grid-row: 1; padding: 5px 7px; font-size: 11px; margin-top: 1px; }
  :root.market-brand[data-mall-theme] .sm-authorizations-page .sm-row-actions { grid-column: 1/-1; max-width: none; justify-content: flex-start; gap: 8px; }
  :root.market-brand[data-mall-theme] .sm-authorizations-page .button,
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorites-intro .button { min-height: 40px; padding: 9px 12px; }
  :root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) .sm-empty { padding: 28px 17px; }
  :root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) .sm-empty h2 { font-size: 20px; }
  :root.market-brand[data-mall-theme] :is(.sm-authorizations-page,.sm-favorites-page) .sm-empty p { font-size: 12px; }
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorites-intro { margin-bottom: 21px; }
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shops .sm-section-heading { margin-bottom: 11px; }
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shops .sm-section-heading h2,
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-market-catalog > .market-section-heading h2 { font-size: 18px; }
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid { gap: 11px; }
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid > article { padding: 15px; }
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid p { font-size: 12px; margin-block: 7px 13px; }
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid .sm-favorite { min-height: 40px; padding: 9px 11px; }
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-console-empty { padding: 14px 15px; font-size: 12px; }
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-market-catalog > .market-section-heading { padding-top: 18px; margin-bottom: 12px; }
  :root.market-brand[data-mall-theme] .sm-authorization-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 10px; }
  :root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-dialog-head { min-height: 54px; padding: 12px 16px; }
  :root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-dialog-head h2 { font-size: 15px; }
  :root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-dialog-body { padding: 17px 16px 18px; }
  :root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-shop-summary { margin-bottom: 17px; }
  :root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-shop-summary h3 { font-size: 22px; }
  :root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-shop-summary p { font-size: 12px; }
  :root.market-brand[data-mall-theme] .sm-authorization-dialog .sm-field textarea { font-size: 16px; min-height: 120px; padding: 10px 11px; }
  :root.market-brand[data-mall-theme] .sm-authorization-dialog .button { min-height: 40px; padding: 9px 12px; }
}
@media (max-width: 520px) {
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid { grid-template-columns: minmax(0,1fr); }
}

/* The same action has the same dimensions across shopping and procurement. */
:root.market-brand {
  --sm-control-compact: 32px;
  --sm-control-regular: 36px;
}
:root.market-brand[data-mall-theme] :is(.sm-merchandise-dialog, .sm-purchase-order-dialog, .sm-purchase-order-action, .sm-authorization-dialog) .sm-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  flex: none;
  font-size: 20px !important;
  line-height: 1;
}
:root.market-brand .sm-pagination { flex-wrap: wrap; }
@media (min-width: 761px) {
  :root.market-brand body[data-mall-page="market"] :is(.sm-market-catalog, .sm-brand-shop-page, .sm-favorites-page) .sm-card-actions :is(.button, .sm-favorite),
  :root.market-brand body[data-mall-page="market"] .sm-brand-shop-page :is(.sm-shop-main-actions, .sm-aqara-store-actions) :is(.button, .sm-favorite),
  :root.market-brand[data-mall-theme] :is(.sm-authorizations-page, .sm-favorites-intro, .sm-purchase-orders, .sm-pagination, .sm-head-actions) .button,
  :root.market-brand[data-mall-theme] .sc-heading > .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: var(--sm-control-compact);
    padding: 6px 10px;
    font-size: 12px !important;
    line-height: 18px;
    border-radius: 6px;
  }
  :root.market-brand[data-mall-theme] :is(.sm-merchandise-dialog, .sm-purchase-order-dialog, .sm-purchase-order-action, .sm-authorization-dialog) .button,
  :root.market-brand[data-mall-theme] .sm-merchandise-dialog .sm-detail-actions .sm-favorite,
  :root.market-brand[data-mall-theme] .sc-cart :is(.sc-review, .sc-checkout-form, [data-cart-recovery]) .button:not(.sc-checkout),
  :root.market-brand[data-mall-theme] :is(.sc-empty, .sc-success) > .button {
    box-sizing: border-box;
    min-height: var(--sm-control-regular);
    padding: 8px 12px;
    font-size: 12px !important;
    line-height: 18px;
  }
  :root.market-brand[data-mall-theme] :is(.sm-merchandise-dialog, .sm-purchase-order-dialog, .sm-purchase-order-action, .sm-authorization-dialog) .sm-dialog-head {
    padding: 12px 20px;
    min-height: 57px;
  }
  :root.market-brand[data-mall-theme] :is(.sm-merchandise-dialog, .sm-purchase-order-dialog, .sm-purchase-order-action, .sm-authorization-dialog) .sm-dialog-head h2 { font-size: 16px; line-height: 1.5; }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-controls input {
    box-sizing: border-box;
    height: var(--aid-ui-search-height);
    min-height: var(--aid-ui-search-height);
    padding: 0 10px;
    font-size: var(--aid-ui-input-font);
    line-height: var(--aid-ui-line);
  }
  :root.market-brand .sc-cart .sc-checkout-form :is(input:not([type="checkbox"]):not([type="radio"]), select),
  :root.market-brand[data-mall-theme] .sm-purchase-order-action :is(.sm-form-grid input:not([type="checkbox"]):not([type="radio"]), .sm-form-grid select:not([size]):not([multiple]), .sm-field input:not([type="checkbox"]):not([type="radio"]), .sm-quantity-row input) {
    box-sizing: border-box;
    height: var(--sm-control-regular);
    min-height: var(--sm-control-regular);
    padding: 8px 10px;
    font-size: 13px;
    line-height: 18px;
  }
  :root.market-brand .sc-cart .sc-quantity input { height: var(--sm-control-compact); }
  :root.market-brand .sc-cart .sc-address-save > .button { min-height: var(--sm-control-regular); }
  :root.market-brand body[data-mall-page="market"] :is(.sm-market-catalog, .sm-brand-shop-page) :is(.sm-filter-line, .sm-sort-options) button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--aid-ui-chip-height);
    padding: 6px 10px;
    font-size: var(--aid-ui-control-font) !important;
    line-height: var(--aid-ui-line);
  }
  :root.market-brand[data-mall-theme] .market-brand-meta button,
  :root.market-brand[data-mall-theme] .sm-favorites-page .sm-favorite-shop-grid :is(.button, .sm-favorite) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--sm-control-compact);
    padding: 6px 10px;
    font-size: 12px !important;
    line-height: 18px;
  }
  :root.market-brand[data-mall-theme] .sm-purchase-orders .sm-order-statuses button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    height: auto;
    min-height: var(--aid-ui-chip-height);
    padding-block: 6px;
    font-size: var(--aid-ui-control-font);
    line-height: var(--aid-ui-line);
  }
}

/* A real brand wordmark replaces the former text heading and decorative dot. */
:root.market-brand body[data-mall-page="market"] .sm-brand-shop-page .sm-aqara-brand h1:has(.catalog-brand-mark)::before{display:none}

/* All brands share one continuous leftward shelf, with equal mirrored groups. */
:root.market-brand .sm-storefront .sm-brand-train-section {
  padding-block: 12px;
}
:root.market-brand .sm-storefront .sm-brand-train-section .market-section-heading {
  column-gap: 14px;
  margin-bottom: 8px;
}
:root.market-brand .sm-storefront .sm-brand-train-section .market-section-heading > div:first-child {
  margin-right: auto;
}
:root.market-brand .sm-storefront .sm-brand-train-section .market-section-heading > button {
  margin-left: 0;
}
:root.market-brand .sm-storefront .sm-brand-train-section [data-sm-brand-train-toggle] {
  flex: none;
  min-height: 30px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--mt-muted, #687179);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
:root.market-brand .sm-storefront .sm-brand-train-section [data-sm-brand-train-toggle]:is(:hover, [aria-pressed="true"]) {
  color: var(--mt-ink, #202226);
}
:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-block: 2px;
  overflow: hidden;
}
:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train-track {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  align-items: stretch;
  box-sizing: content-box;
  width: max-content;
  min-width: 0;
  max-width: none;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  animation: aid-brand-train-left var(--sm-brand-train-duration, 120s) linear infinite;
  will-change: transform;
}
html:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train .sm-brand-train-group {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: stretch;
  box-sizing: content-box;
  grid-template-columns: none;
  grid-template-rows: none;
  width: max-content;
  min-width: 0;
  max-width: none;
  gap: 16px;
  margin: 0;
  padding: 0 16px 0 0;
  border: 0;
}
html:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train .sm-brand-train-group > .sm-brand-tile {
  display: grid;
  flex: 0 0 200px;
  box-sizing: border-box;
  width: 200px;
  min-width: 0;
  max-width: none;
  margin: 0;
  height: 100px;
  padding: 8px 10px;
  gap: 4px;
  grid-template-rows: minmax(0, 1fr) 40px;
}
html:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-tile-product { padding: 2px 5px; }
html:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-tile-product > img { height: 36px; }
html:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train .sm-brand-train-group > .sm-brand-tile:focus-visible {
  outline: 2px solid var(--mt-focus, #0071e3);
  outline-offset: -3px;
}
:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train:hover .sm-brand-train-track,
:root.market-brand .sm-storefront .sm-brand-train-section.is-paused .sm-brand-train-track {
  animation-play-state: paused;
}
:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train:has(:focus-visible) {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train:has(:focus-visible) .sm-brand-train-track {
  animation: none;
  transform: none;
  will-change: auto;
}
html:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train:has(:focus-visible) [data-sm-brand-train-copy],
html:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train:has(:focus-visible) [data-sm-brand-train-fill] {
  display: none;
}
@keyframes aid-brand-train-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 599px) {
  html:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train .sm-brand-train-group > .sm-brand-tile {
    flex-basis: 170px;
    width: 170px;
  }
  :root.market-brand .sm-storefront .sm-brand-train-section .market-section-heading {
    column-gap: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  :root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train-track {
    animation: none;
    transform: none;
    will-change: auto;
  }
  html:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train [data-sm-brand-train-copy],
  html:root.market-brand .sm-storefront .sm-brand-train-section .sm-brand-train [data-sm-brand-train-fill],
  :root.market-brand .sm-storefront .sm-brand-train-section [data-sm-brand-train-toggle] {
    display: none;
  }
}
