/* Discovery header: brand and task navigation, followed by account and utilities. */
.explore .market-header .mall-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px 32px;
}
.explore .market-header .brand { min-width: 0; margin: 0; }
.explore .market-header .market-header-workflows {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 4px;
  min-width: 0;
  margin-left: 12px;
}
.explore .market-header .market-entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--secondary-foreground);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}
.explore .market-header .market-entry-button:hover { color: var(--foreground); background: var(--surface); }
.explore .market-header .market-entry-button > svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--muted-foreground); }
.explore .market-header .market-entry-button:hover > svg { color: var(--accent-text); }
.explore .market-header .market-header-account { display: flex; align-items: center; justify-self: end; min-width: 0; max-width: 100%; }
.explore .market-header #accountEntry { min-width: 96px; min-height: 44px; padding: 10px 17px; border-radius: 9px; font-size: 12px; letter-spacing: .015em; }
.explore .market-header #accountEntry.is-authenticated { justify-content: flex-start; gap: 8px; min-width: 0; max-width: 208px; padding: 7px 11px 7px 7px; border-color: var(--border); color: var(--foreground); background: var(--surface); letter-spacing: 0; }
.explore .market-header #accountEntry.is-authenticated:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.explore .market-header .account-entry-avatar { position: relative; display: inline-grid; flex: 0 0 28px; place-items: center; overflow: hidden; width: 28px; height: 28px; border-radius: 50%; color: var(--accent-text); background: var(--accent-soft); font-size: 12px; font-weight: 650; line-height: 1; }
.explore .market-header .account-entry-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.explore .market-header .account-entry-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 550; line-height: 1.5; }
.explore .market-header .market-header-utilities {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.explore .market-header .appearance-switch { margin: 0; }
.explore .market-header .header-community {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 9px;
  min-height: 44px;
  margin: 0;
  color: var(--muted-foreground);
}
.explore .market-header .header-community::before { display: none; }
.explore .market-header .market-community-icon { width: 19px; height: 19px; flex-shrink: 0; }
.explore .market-header .market-community-copy { display: grid; align-content: center; gap: 2px; }
.explore .market-header .qq-group-label { color: var(--muted-foreground); font-size: 10px; line-height: 1.4; }
.explore .market-header .qq-group-number { display: inline-flex; min-height: 18px; color: var(--secondary-foreground); font-size: 12px; font-weight: 550; line-height: 1.5; letter-spacing: .025em; text-decoration: none; }
.explore .market-header .qq-group-number:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.explore .market-header .qq-group-copy { display: grid; place-items: center; width: 30px; height: 34px; padding: 7px; border-color: transparent; border-radius: 7px; color: var(--muted-foreground); background: transparent; }
.explore .market-header .qq-group-copy:hover { border-color: var(--border); color: var(--foreground); background: var(--surface); }
.explore .market-header .qq-group-copy > svg { width: 15px; height: 15px; }

@media (min-width: 1001px) and (max-width: 1150px) {
  .explore .market-header .mall-header-inner { gap: 16px; padding-right: 24px; padding-left: 24px; }
  .explore .market-header .market-header-workflows { margin-left: 0; gap: 0; }
  .explore .market-header .market-entry-button { gap: 6px; padding-right: 9px; padding-left: 9px; }
  .explore .market-header .market-header-utilities { gap: 12px; padding-left: 16px; }
}
@media (min-width: 601px) and (max-width: 1000px) {
  .explore .market-header .mall-header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 12px 24px; }
  .explore .market-header .brand { grid-column: 1; grid-row: 1; }
  .explore .market-header .market-header-account { grid-column: 2; grid-row: 1; }
  .explore .market-header .market-header-workflows { grid-column: 1; grid-row: 2; margin-left: -10px; }
  .explore .market-header .market-header-utilities { grid-column: 2; grid-row: 2; padding-left: 0; border-left: 0; }
  .explore .filter-panel, .explore .supplier-aside { top: 145px; }
  .explore :is(.detail-panel, #reviewsHeading, .supplier-profile-products) { scroll-margin-top: 150px; }
}
@media (max-width: 600px) {
  /* The utility wrapper becomes layout-neutral; its controls keep their semantics. */
  .explore .market-header { position: static; }
  .explore .market-header .mall-header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; min-height: 0; padding: 10px 14px 8px; }
  .explore .market-header .brand { grid-column: 1; grid-row: 1; font-size: 18px; }
  .explore .market-header .market-header-account { grid-column: 2; grid-row: 1; }
  .explore .market-header #accountEntry { min-width: 88px; min-height: 40px; padding: 9px 12px; }
  .explore .market-header #accountEntry.is-authenticated { min-width: 0; max-width: min(40vw, 164px); padding: 5px 9px 5px 5px; }
  .explore .market-header .market-header-workflows { grid-column: 1; grid-row: 2; gap: 4px; margin: 0 0 0 -7px; }
  .explore .market-header .market-entry-button { gap: 6px; padding: 10px 7px; font-size: 12px; }
  .explore .market-header .market-entry-button > svg { width: 16px; height: 16px; }
  .explore .market-header .market-header-utilities { display: contents; }
  .explore .market-header .appearance-switch { grid-column: 2; grid-row: 2; justify-self: end; }
  .explore .market-header .header-community { grid-column: 1 / -1; grid-row: 3; gap: 8px; min-height: 36px; padding-top: 6px; border-top: 1px solid var(--border); }
  .explore .market-header .market-community-icon { width: 16px; height: 16px; }
  .explore .market-header .market-community-copy { display: flex; align-items: baseline; gap: 10px; }
  .explore .market-header .qq-group-label { font-size: 11px; }
  .explore .market-header .qq-group-number { min-height: 28px; align-items: center; font-size: 12px; }
  .explore .market-header .qq-group-copy { width: 34px; height: 34px; margin-left: auto; }
}
@media (max-width: 360px) {
  .explore .market-header .market-entry-button > svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .explore .market-header .market-entry-button { transition: none; }
}
