/* v15 shared architecture layer: active marketplace, merchant actions and store consultation. */
.marketplace-main .filter-row { align-items: center; }
.market-filter { min-height: 34px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 0; background: color-mix(in srgb, var(--surface-2) 88%, transparent); color: var(--muted); font-size: 10px; letter-spacing: .08em; transition: transform .35s ease, color .35s ease, border-color .35s ease, background .35s ease; }
.market-filter:hover, .market-filter[aria-pressed="true"] { transform: translateY(-2px); border-color: var(--gold-hi); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--gold-hi); }
.market-card[hidden] { display: none !important; }
.market-card.is-selected { border-color: color-mix(in srgb, var(--gold-hi) 74%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold-hi) 18%, transparent), 0 24px 52px rgba(0,0,0,.24); }
.catalog-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 29px; padding: 6px 8px; border: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--gold-hi); font-size: 9px; letter-spacing: .06em; white-space: nowrap; transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.catalog-action:hover, .catalog-action:focus-visible { transform: translateY(-2px); border-color: var(--gold-hi); background: color-mix(in srgb, var(--accent) 22%, transparent); outline: none; }
.catalog-meta { gap: 10px; flex-wrap: wrap; }
.catalog-meta > div { min-width: 0; }
#market-result-count { margin: 0 0 15px; color: var(--gold-hi); font-size: 10px; letter-spacing: .08em; }
.dashboard-anchor { scroll-margin-top: 95px; }
.dashboard-main .dash-panel { scroll-margin-top: 96px; }
.toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.import-toolbar { display: grid; grid-template-columns: minmax(0,1fr) 180px; gap: 9px; margin-bottom: 13px; }
.import-toolbar input, .import-toolbar select { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0; background: color-mix(in srgb, var(--surface-3) 86%, transparent); color: var(--ink); font-size: 11px; outline: none; }
.import-toolbar input:focus, .import-toolbar select:focus { border-color: var(--gold-hi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-hi) 12%, transparent); }
.import-result-count { margin: 0 0 10px; color: var(--muted); font-size: 10px; }
.modal-list { max-height: min(52vh, 470px); overflow: auto; }
.modal-product { align-items: center; }
.modal-product > div { min-width: 0; }
.modal-product b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-settings { margin-top: 15px; padding: 23px; border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--surface-1) 94%, transparent), color-mix(in srgb, var(--surface-2) 90%, transparent)); }
.dashboard-settings-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.dashboard-settings h2 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 25px; font-weight: 400; }
.dashboard-settings p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.dashboard-settings-form { display: grid; grid-template-columns: 1fr 1.35fr auto; gap: 10px; align-items: end; }
.dashboard-settings-form .field { margin-top: 0; }
.dashboard-settings-form .field input { min-height: 38px; border-radius: 0; }
.partner-action { margin-top: 15px; width: 100%; justify-content: center; }
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.activity-card { padding: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-3) 72%, transparent); }
.activity-card b { display: block; color: var(--ink); font-size: 11px; }
.activity-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.store-contact-action { width: auto; cursor: pointer; font: inherit; }
.store-contact-modal-copy { margin: -3px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.store-contact-modal-copy strong { color: var(--gold-hi); font-weight: 500; }
.store-focus-note { margin: 0 0 14px; padding: 10px 12px; border-left: 1px solid var(--gold-hi); background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--gold-hi); font-size: 10px; }
.store-focus-note.hidden { display: none; }
html[data-theme="light"] .market-filter, html[data-theme="light"] .catalog-action { background: var(--surface-1); color: var(--gold-hi); }
html[data-theme="light"] .dashboard-settings, html[data-theme="light"] .activity-card { background: linear-gradient(135deg, var(--surface-1), var(--surface-2)); }
html[data-theme="light"] .import-toolbar input, html[data-theme="light"] .import-toolbar select { background: var(--surface-1); color: var(--ink); }
@media (max-width: 860px) {
  .dashboard-settings-form { grid-template-columns: 1fr 1fr; }
  .dashboard-settings-form .tiny-button { grid-column: 1 / -1; justify-self: start; }
  .activity-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .import-toolbar, .dashboard-settings-form { grid-template-columns: 1fr; }
  .dashboard-settings-form .tiny-button { grid-column: auto; justify-self: stretch; }
  .dashboard-settings-head { display: block; }
  .toolbar-actions { justify-content: flex-start; margin-top: 12px; }
  .catalog-action { width: 100%; }
}

/* v17 product detail: make the introduction label unmistakable. */
.product-detail-intro-label {
  margin-top: 22px;
  color: var(--gold-hi, #d6ad73);
  font-size: 10px;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
#product-detail-summary {
  margin-top: 8px;
}

/* v19 shared account entry across every site surface. */
.site-login-link {
  color: var(--gold-hi, #d6ad73) !important;
  white-space: nowrap;
}
.site-login-link:hover {
  color: var(--ink, #f4eadb) !important;
}
body[data-merchant-auth-state="pending"] .dashboard-shell{opacity:.42;pointer-events:none;filter:saturate(.7)}
body[data-merchant-auth-state="pending"]::before{content:"正在验证商户身份并同步经营数据…";position:fixed;z-index:1200;inset:50% auto auto 50%;transform:translate(-50%,-50%);padding:14px 20px;border:1px solid rgba(216,178,111,.42);border-radius:999px;color:var(--gold-hi);background:rgba(16,12,10,.92);box-shadow:0 18px 70px rgba(0,0,0,.45);font-size:12px;letter-spacing:.08em}
body[data-merchant-auth-state="ready"] .dashboard-shell,body[data-merchant-auth-state="error"] .dashboard-shell{opacity:1;transition:opacity .28s ease}
