/* Shared search, filters and tabs */

:root {
  --ui-control-border: #dfe4ef;
  --ui-control-text: #0b1026;
  --ui-control-muted: #687086;
  --ui-control-accent: #4a35e8;
  --ui-control-radius: 14px;
  --ui-control-height: 56px;
}

:where(
  .ui-search-control,
  .buyer-message-search,
  .seller-message-search,
  .buyer-purchases-search,
  .favorites-search,
  .catalog-public-search,
  .not-found-search,
  .seller-listing-search,
  .seller-order-search,
  .seller-search,
  .seller-profile-search,
  .promotion-search,
  .promotion-category-search,
  .admin-search,
  .admin-mod-search,
  .admin-users-search,
  .admin-listings-search,
  .admin-catalog-search,
  .admin-orders-search,
  .admin-disputes-search,
  .admin-finance-search,
  .admin-audit-search,
  .admin-support-queue-head label
) {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: var(--ui-control-height);
  padding: 0 16px;
  color: var(--ui-control-text);
  border: 1px solid var(--ui-control-border);
  border-radius: var(--ui-control-radius);
  background: #fff;
  box-shadow: none;
}

:where(
  .ui-search-control,
  .buyer-message-search,
  .seller-message-search,
  .buyer-purchases-search,
  .favorites-search,
  .catalog-public-search,
  .not-found-search,
  .seller-listing-search,
  .seller-order-search,
  .seller-search,
  .seller-profile-search,
  .promotion-search,
  .promotion-category-search,
  .admin-search,
  .admin-mod-search,
  .admin-users-search,
  .admin-listings-search,
  .admin-catalog-search,
  .admin-orders-search,
  .admin-disputes-search,
  .admin-finance-search,
  .admin-audit-search,
  .admin-support-queue-head label
):focus-within {
  border-color: var(--ui-control-border);
  box-shadow: none;
}

:where(
  .ui-search-control,
  .buyer-message-search,
  .seller-message-search,
  .buyer-purchases-search,
  .favorites-search,
  .catalog-public-search,
  .not-found-search,
  .seller-listing-search,
  .seller-order-search,
  .seller-search,
  .seller-profile-search,
  .promotion-search,
  .promotion-category-search,
  .admin-search,
  .admin-mod-search,
  .admin-users-search,
  .admin-listings-search,
  .admin-catalog-search,
  .admin-orders-search,
  .admin-disputes-search,
  .admin-finance-search,
  .admin-audit-search,
  .admin-support-queue-head label
) :where(input, select) {
  width: 100%;
  min-width: 0;
  height: calc(var(--ui-control-height) - 2px);
  min-height: 0;
  padding: 0;
  color: var(--ui-control-text);
  border: 0 !important;
  outline: 0;
  background: transparent;
  box-shadow: none !important;
  line-height: calc(var(--ui-control-height) - 2px);
}

:where(
  .ui-search-control,
  .buyer-message-search,
  .seller-message-search,
  .buyer-purchases-search,
  .favorites-search,
  .catalog-public-search,
  .not-found-search,
  .seller-listing-search,
  .seller-order-search,
  .seller-search,
  .seller-profile-search,
  .promotion-search,
  .promotion-category-search,
  .admin-search,
  .admin-mod-search,
  .admin-users-search,
  .admin-listings-search,
  .admin-catalog-search,
  .admin-orders-search,
  .admin-disputes-search,
  .admin-finance-search,
  .admin-audit-search,
  .admin-support-queue-head label
) :where(input)::placeholder {
  color: #8a8f9f;
}

:where(
  .ui-search-control,
  .buyer-message-search,
  .seller-message-search,
  .buyer-purchases-search,
  .favorites-search,
  .catalog-public-search,
  .not-found-search,
  .seller-listing-search,
  .seller-order-search,
  .seller-search,
  .seller-profile-search,
  .promotion-search,
  .promotion-category-search,
  .admin-search,
  .admin-mod-search,
  .admin-users-search,
  .admin-listings-search,
  .admin-catalog-search,
  .admin-orders-search,
  .admin-disputes-search,
  .admin-finance-search,
  .admin-audit-search,
  .admin-support-queue-head label
) > :where(span, .admin-search-icon, .ui-search-icon):first-child {
  display: inline-grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  place-items: center;
  color: var(--ui-control-muted);
  font-size: 24px;
  line-height: 1;
}

:where(.ui-search-icon) svg,
:where(.admin-search-icon) svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:where(
  .ui-search-control,
  .buyer-message-search,
  .seller-message-search,
  .buyer-purchases-search,
  .favorites-search,
  .catalog-public-search,
  .not-found-search,
  .seller-listing-search,
  .seller-order-search,
  .seller-search,
  .seller-profile-search,
  .promotion-search,
  .promotion-category-search,
  .admin-search,
  .admin-mod-search,
  .admin-users-search,
  .admin-listings-search,
  .admin-catalog-search,
  .admin-orders-search,
  .admin-disputes-search,
  .admin-finance-search,
  .admin-audit-search,
  .admin-support-queue-head label
) > :where(span, .admin-search-icon, .ui-search-icon):first-child img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.82;
}

:where(input[type="search"])::-webkit-search-decoration,
:where(input[type="search"])::-webkit-search-cancel-button,
:where(input[type="search"])::-webkit-search-results-button,
:where(input[type="search"])::-webkit-search-results-decoration {
  appearance: none;
}

:where(
  .ui-tabs,
  .seller-message-filters,
  .buyer-message-filters,
  .buyer-purchases-tabs,
  .favorites-tabs,
  .seller-listing-tabs,
  .seller-order-tabs,
  .promotion-tabs,
  .promotion-filters,
  .promotion-history-filters,
  .admin-mod-tabs,
  .admin-mini-tabs,
  .admin-users-tabs,
  .admin-listings-tabs,
  .admin-catalog-tabs,
  .admin-orders-tabs,
  .admin-disputes-tabs,
  .admin-finance-tabs,
  .admin-audit-tabs,
  .finance-periods,
  .finance-tabs,
  .reviews-tabs
) {
  display: flex;
  gap: 28px;
  align-items: stretch;
  min-width: 0;
  border-bottom: 1px solid var(--ui-control-border);
  overflow-x: auto;
  scrollbar-width: none;
}

:where(
  .ui-tabs,
  .seller-message-filters,
  .buyer-message-filters,
  .buyer-purchases-tabs,
  .favorites-tabs,
  .seller-listing-tabs,
  .seller-order-tabs,
  .promotion-tabs,
  .promotion-filters,
  .promotion-history-filters,
  .admin-mod-tabs,
  .admin-mini-tabs,
  .admin-users-tabs,
  .admin-listings-tabs,
  .admin-catalog-tabs,
  .admin-orders-tabs,
  .admin-disputes-tabs,
  .admin-finance-tabs,
  .admin-audit-tabs,
  .finance-periods,
  .finance-tabs,
  .reviews-tabs
)::-webkit-scrollbar {
  display: none;
}

:where(
  .ui-tabs,
  .seller-message-filters,
  .buyer-message-filters,
  .buyer-purchases-tabs,
  .favorites-tabs,
  .seller-listing-tabs,
  .seller-order-tabs,
  .promotion-tabs,
  .promotion-filters,
  .promotion-history-filters,
  .admin-mod-tabs,
  .admin-mini-tabs,
  .admin-users-tabs,
  .admin-listings-tabs,
  .admin-catalog-tabs,
  .admin-orders-tabs,
  .admin-disputes-tabs,
  .admin-finance-tabs,
  .admin-audit-tabs,
  .finance-periods,
  .finance-tabs,
  .reviews-tabs
) > button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 0 10px;
  color: #596174;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-weight: 400;
  white-space: nowrap;
}

:where(
  .ui-tabs,
  .seller-message-filters,
  .buyer-message-filters,
  .buyer-purchases-tabs,
  .favorites-tabs,
  .seller-listing-tabs,
  .seller-order-tabs,
  .promotion-tabs,
  .promotion-filters,
  .promotion-history-filters,
  .admin-mod-tabs,
  .admin-mini-tabs,
  .admin-users-tabs,
  .admin-listings-tabs,
  .admin-catalog-tabs,
  .admin-orders-tabs,
  .admin-disputes-tabs,
  .admin-finance-tabs,
  .admin-audit-tabs,
  .finance-periods,
  .finance-tabs,
  .reviews-tabs
) > button.active {
  color: var(--ui-control-accent);
  border-color: transparent;
  border-bottom-color: var(--ui-control-accent);
  background: transparent;
  box-shadow: none;
}

:where(.ui-filter-button) {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  min-height: var(--ui-control-height);
  border: 1px solid var(--ui-control-border);
  border-radius: var(--ui-control-radius);
  background: #fff;
}

@media (max-width: 768px) {
  :root {
    --ui-control-height: 58px;
    --ui-control-radius: 14px;
  }

  :where(
    .ui-search-control,
    .buyer-message-search,
    .seller-message-search,
    .buyer-purchases-search,
    .favorites-search,
    .catalog-public-search,
    .not-found-search,
    .seller-listing-search,
    .seller-order-search,
    .seller-search,
    .seller-profile-search,
    .promotion-search,
    .promotion-category-search,
    .admin-search,
    .admin-mod-search,
    .admin-users-search,
    .admin-listings-search,
    .admin-catalog-search,
    .admin-orders-search,
    .admin-disputes-search,
    .admin-finance-search,
    .admin-audit-search,
    .admin-support-queue-head label
  ) {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 0 14px;
  }

  body[data-view^="seller"] .seller-mobile-bottom-nav,
  body[data-view^="seller"] .seller-home-bottom-nav,
  body[data-view^="seller"] .settings-bottom-nav,
  body[data-view^="seller"] .reviews-bottom-nav,
  body[data-view^="seller"] .finance-bottom-nav {
    min-height: calc(62px + env(safe-area-inset-bottom)) !important;
    padding-top: 8px !important;
  }

  body[data-view^="seller"] .seller-mobile-bottom-nav button,
  body[data-view^="seller"] .seller-home-bottom-nav button,
  body[data-view^="seller"] .settings-bottom-nav button,
  body[data-view^="seller"] .reviews-bottom-nav button,
  body[data-view^="seller"] .finance-bottom-nav button {
    grid-template-rows: 32px !important;
    gap: 0 !important;
    min-height: 48px !important;
    font-size: 0 !important;
  }

  body[data-view^="seller"] .seller-mobile-bottom-nav span,
  body[data-view^="seller"] .seller-home-bottom-nav span,
  body[data-view^="seller"] .settings-bottom-nav span,
  body[data-view^="seller"] .reviews-bottom-nav span,
  body[data-view^="seller"] .finance-bottom-nav span {
    display: none !important;
  }

  body[data-view^="seller"] .seller-mobile-bottom-nav img,
  body[data-view^="seller"] .seller-home-bottom-nav img,
  body[data-view^="seller"] .settings-bottom-nav img,
  body[data-view^="seller"] .reviews-bottom-nav img,
  body[data-view^="seller"] .finance-bottom-nav img {
    width: 30px !important;
    height: 30px !important;
  }
}

body[data-view="sellerListings"] .seller-listing-search,
body[data-view="sellerOrders"] .seller-order-search {
  box-sizing: border-box;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  overflow: hidden;
  border-radius: 8px !important;
  background: #fff;
}

body[data-view="sellerListings"] .seller-listing-search input,
body[data-view="sellerOrders"] .seller-order-search input {
  box-sizing: border-box;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 0 0 32px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  line-height: 40px !important;
}

body[data-view="sellerListings"] .seller-listing-search > span,
body[data-view="sellerOrders"] .seller-order-search > span {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

@media (max-width: 768px) {
  body[data-view^="seller"] {
    --ui-control-height: 44px;
    --ui-control-radius: 10px;
    --seller-mobile-title: 26px;
    --seller-mobile-subtitle: 16px;
    --seller-mobile-section: 20px;
    --seller-mobile-body: 15px;
    --seller-mobile-tab: 15px;
    --seller-mobile-small: 13px;
    --seller-mobile-value: 22px;
  }

  body[data-view^="seller"] .seller-section-title {
    display: none !important;
  }

  body[data-view^="seller"] :is(
    .seller-home-main,
    .seller-listings-main,
    .seller-orders-main,
    .seller-messages-main,
    .finance-mobile-main,
    .reviews-mobile-main
  ) {
    padding-top: 12px !important;
    gap: 12px !important;
  }

  body[data-view^="seller"] .seller-nav {
    width: min(82vw, 300px) !important;
    padding: 22px 18px 84px !important;
  }

  body[data-view^="seller"] .seller-nav nav {
    gap: 4px !important;
  }

  body[data-view^="seller"] .seller-nav nav button {
    grid-template-columns: 24px minmax(0, 1fr) auto !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  body[data-view^="seller"] .seller-nav nav span {
    width: 24px !important;
    height: 24px !important;
  }

  body[data-view^="seller"] .seller-nav nav span img {
    width: 20px !important;
    height: 20px !important;
  }

  body[data-view^="seller"] .seller-nav-promotion-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 18px !important;
  }

  body[data-view^="seller"] .seller-nav nav .seller-nav-counter {
    position: static !important;
    align-self: center !important;
    min-width: 20px !important;
    height: 20px !important;
    margin-left: auto !important;
    padding: 0 6px !important;
    transform: none !important;
    font-size: 11px !important;
  }

  body[data-view^="seller"] .seller-mobile-bottom-nav,
  body[data-view^="seller"] .seller-home-bottom-nav,
  body[data-view^="seller"] .settings-bottom-nav,
  body[data-view^="seller"] .reviews-bottom-nav,
  body[data-view^="seller"] .finance-bottom-nav {
    min-height: calc(54px + env(safe-area-inset-bottom)) !important;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom)) !important;
  }

  body[data-view^="seller"] .seller-mobile-bottom-nav button,
  body[data-view^="seller"] .seller-home-bottom-nav button,
  body[data-view^="seller"] .settings-bottom-nav button,
  body[data-view^="seller"] .reviews-bottom-nav button,
  body[data-view^="seller"] .finance-bottom-nav button {
    grid-template-rows: 24px !important;
    min-height: 40px !important;
    padding: 0 !important;
  }

  body[data-view^="seller"] .seller-mobile-bottom-nav img,
  body[data-view^="seller"] .seller-home-bottom-nav img,
  body[data-view^="seller"] .settings-bottom-nav img,
  body[data-view^="seller"] .reviews-bottom-nav img,
  body[data-view^="seller"] .finance-bottom-nav img {
    width: 22px !important;
    height: 22px !important;
  }

  body[data-view^="seller"] .seller-mobile-bottom-nav .seller-nav-counter {
    top: 2px !important;
    right: 22% !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
  }

  body[data-view^="seller"] :is(
    .seller-listing-search,
    .seller-order-search,
    .seller-message-search,
    .reviews-controls input,
    .reviews-mobile-filter-row input
  ) {
    box-sizing: border-box !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
  }

  #sellerMessagesView .seller-message-search {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 8px !important;
    margin: 10px 0 12px !important;
    padding: 0 12px !important;
  }

  #sellerMessagesView .seller-message-search span {
    width: 24px !important;
    height: 24px !important;
    font-size: 18px !important;
  }

  #sellerMessagesView .seller-message-search input {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 17px !important;
    line-height: 42px !important;
  }

  #sellerMessagesView .seller-message-filters,
  #sellerOrdersView .seller-order-tabs,
  .reviews-mobile-main .reviews-tabs {
    gap: 18px !important;
    min-height: 38px !important;
    margin-bottom: 10px !important;
  }

  #sellerMessagesView .seller-dialog-item {
    grid-template-columns: 42px minmax(0, 1fr) auto auto !important;
    gap: 10px !important;
    min-height: 68px !important;
    padding: 9px 10px !important;
  }

  #sellerMessagesView .seller-dialog-avatar {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
  }

  #sellerMessagesView .seller-dialog-row strong {
    font-size: 16px !important;
  }

  #sellerMessagesView .seller-dialog-row time,
  #sellerMessagesView .seller-dialog-preview,
  #sellerMessagesView .seller-dialog-meta {
    font-size: 13px !important;
  }

  #sellerMessagesView .seller-dialog-unread {
    min-width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }

  #sellerOrdersView .seller-orders-attention {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  #sellerOrdersView .seller-orders-attention-head {
    gap: 8px !important;
  }

  #sellerOrdersView .seller-orders-attention-head strong {
    font-size: 18px !important;
  }

  #sellerOrdersView .seller-orders-attention-head span {
    min-height: 24px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }

  #sellerOrdersView .seller-orders-attention button {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 34px !important;
    font-size: 16px !important;
  }

  #sellerOrdersView .seller-orders-attention button i {
    width: 28px !important;
    height: 28px !important;
    font-size: 15px !important;
  }

  #sellerOrdersView .seller-orders-attention .seller-orders-attention-link {
    justify-self: start !important;
    margin-top: 0 !important;
    font-size: 16px !important;
  }

  #sellerOrdersView .seller-orders-tools,
  #sellerListingsView .seller-listing-tools {
    gap: 10px !important;
  }

  #sellerOrdersView .seller-filter-btn,
  #sellerListingsView .seller-filter-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
  }

  #sellerOrdersView .seller-order-row {
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }

  #sellerOrdersView .seller-order-number strong {
    font-size: 17px !important;
  }

  #sellerOrdersView .seller-order-number small,
  #sellerOrdersView .seller-order-product small,
  #sellerOrdersView .seller-order-deadline {
    font-size: 13px !important;
  }

  #sellerOrdersView .seller-order-product {
    gap: 10px !important;
  }

  #sellerOrdersView .seller-order-product-image {
    width: 56px !important;
    height: 56px !important;
    flex-basis: 56px !important;
  }

  #sellerOrdersView .seller-order-product strong {
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  #sellerOrdersView .seller-order-status {
    min-height: 28px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }

  #sellerOrdersView .seller-order-amount {
    font-size: 20px !important;
  }

  #sellerOrdersView .seller-order-actions .primary-btn,
  #sellerOrdersView .seller-order-actions .outline-btn,
  #sellerOrdersView .seller-order-actions .danger-outline-btn {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 15px !important;
  }

  .finance-mobile-section-head h2 {
    font-size: 22px !important;
  }

  .finance-mobile-section-head button {
    font-size: 16px !important;
  }

  .finance-mobile-operations {
    gap: 8px !important;
  }

  .finance-operation-card {
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    min-height: 58px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
  }

  .finance-operation-card .operation-dot {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
  }

  .finance-operation-card strong,
  .finance-operation-card b {
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  .finance-operation-card p,
  .finance-operation-card span {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .reviews-mobile-main h1,
  .finance-mobile-main > h1 {
    display: none !important;
  }

  .reviews-mobile-main > p,
  .finance-mobile-main > p {
    display: none !important;
  }

  .reviews-mobile-main .reviews-list {
    gap: 10px !important;
  }

  .reviews-mobile-main .review-card {
    gap: 9px !important;
    padding: 12px 48px 12px 12px !important;
    border-radius: 10px !important;
  }

  .reviews-mobile-main .review-card header {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .reviews-mobile-main .review-avatar,
  .reviews-mobile-main .review-reply-avatar {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
  }

  .reviews-mobile-main .seller-review-stars {
    font-size: 22px !important;
  }

  .reviews-mobile-main .review-card strong,
  .reviews-mobile-main .review-card h3 {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

  .reviews-mobile-main .review-card small,
  .reviews-mobile-main .review-card p,
  .reviews-mobile-main .review-card mark,
  .reviews-mobile-main .review-appeal-state {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  .reviews-mobile-main .review-actions {
    top: 10px !important;
    right: 10px !important;
  }

  .reviews-mobile-main .review-more {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
  }

  .reviews-mobile-main .review-reply {
    gap: 8px !important;
    padding: 10px !important;
  }
}

/* Final mobile seller layout overrides. Kept here so they win over page modules. */
.seller-nav-promotion-icon {
  width: 26px !important;
  height: 26px !important;
  font-size: 23px !important;
  line-height: 1 !important;
}

body:is([data-view^="seller"], [data-view="settings"]) .seller-brand {
  display: grid !important;
  gap: 8px !important;
  margin: 0 18px 26px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid #edf0f6 !important;
}

body:is([data-view^="seller"], [data-view="settings"]) .seller-logo {
  margin: 0 !important;
}

body:is([data-view^="seller"], [data-view="settings"]) .seller-nav .logo-wordmark {
  width: 148px !important;
}

body:is([data-view^="seller"], [data-view="settings"]) .seller-nav-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: flex-start !important;
  justify-self: flex-start !important;
  box-sizing: border-box !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: 24px !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  border-radius: 6px !important;
  background: #eeeafe !important;
  color: #4b35ff !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

@media (max-width: 768px) {
  body:is([data-view^="seller"], [data-view="settings"]) :is(
    .finance-mobile-main,
    .reviews-mobile-main,
    .settings-mobile-main,
    .seller-settings-main,
    .settings-main
  ) {
    padding-top: calc(64px + env(safe-area-inset-top)) !important;
  }

  body:is([data-view="sellerFinance"], [data-view="sellerReviews"], [data-view="sellerSettings"], [data-view="settings"]) :is(
    .finance-mobile-screen,
    .reviews-mobile-screen,
    .settings-mobile-screen
  ) {
    padding-top: 0 !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) :is(
    .seller-mobile-bottom-nav,
    .seller-home-bottom-nav,
    .finance-bottom-nav,
    .reviews-bottom-nav,
    .settings-bottom-nav
  ) {
    display: grid !important;
    align-items: center !important;
    min-height: calc(54px + env(safe-area-inset-bottom)) !important;
    padding: 4px 10px calc(4px + env(safe-area-inset-bottom)) !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) :is(
    .seller-mobile-bottom-nav,
    .seller-home-bottom-nav,
    .finance-bottom-nav,
    .reviews-bottom-nav,
    .settings-bottom-nav
  ) button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) :is(
    .seller-mobile-bottom-nav,
    .seller-home-bottom-nav,
    .finance-bottom-nav,
    .reviews-bottom-nav,
    .settings-bottom-nav
  ) button img {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) :is(
    .seller-mobile-bottom-nav,
    .seller-home-bottom-nav,
    .finance-bottom-nav,
    .reviews-bottom-nav,
    .settings-bottom-nav
  ) span {
    display: none !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) :is(
    .seller-mobile-bottom-nav,
    .seller-home-bottom-nav,
    .finance-bottom-nav,
    .reviews-bottom-nav,
    .settings-bottom-nav
  ) .seller-nav-counter {
    position: absolute !important;
    top: 4px !important;
    right: calc(50% - 20px) !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
    line-height: 18px !important;
    transform: translateY(36px) !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-nav nav {
    gap: 2px !important;
    padding: 0 !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-nav nav button {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-nav nav button > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-nav nav button > span img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-nav-promotion-icon {
    flex-basis: 24px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 23px !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-nav nav .seller-nav-counter {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    height: 20px !important;
    margin: 0 0 0 auto !important;
    padding: 0 6px !important;
    transform: none !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-nav nav :is(hr, .seller-nav-divider, .divider),
  body:is([data-view^="seller"], [data-view="settings"]) .seller-nav nav::before,
  body:is([data-view^="seller"], [data-view="settings"]) .seller-nav nav::after {
    display: none !important;
    border: 0 !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-mobile-drawer-panel {
    display: flex !important;
    flex-direction: column !important;
    width: min(78vw, 300px) !important;
    padding: 24px 18px calc(20px + env(safe-area-inset-bottom)) !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-mobile-drawer-subtitle {
    margin: 22px 0 16px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-mobile-drawer-list {
    gap: 8px !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-drawer-divider {
    display: none !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-drawer-divider + li {
    margin-top: 8px !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-drawer-link {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 52px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-drawer-link-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-drawer-link-icon img {
    width: 21px !important;
    height: 21px !important;
    object-fit: contain !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-drawer-link-icon .seller-nav-promotion-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 27px !important;
    line-height: 1 !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-drawer-count {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-mobile-drawer-profile {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: auto 0 0 !important;
    padding: 16px 10px 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #070b25 !important;
    text-align: left !important;
    cursor: pointer !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-mobile-drawer-profile-avatar {
    display: block !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-mobile-drawer-profile-copy {
    display: grid !important;
    gap: 4px !important;
    min-width: 0 !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-mobile-drawer-profile-copy strong {
    overflow: hidden !important;
    color: #070b25 !important;
    font-size: 16px !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body:is([data-view^="seller"], [data-view="settings"]) .seller-mobile-drawer-profile-copy span {
    overflow: hidden !important;
    color: #5f6680 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.market-mobile-header-visible .market-mobile-drawer-panel {
    display: flex !important;
    flex-direction: column !important;
    width: min(78vw, 300px) !important;
    padding: 24px 18px calc(20px + env(safe-area-inset-bottom)) !important;
    border-radius: 0 18px 18px 0 !important;
  }

  body.market-mobile-header-visible .market-mobile-drawer-head {
    gap: 14px !important;
    margin-bottom: 34px !important;
  }

  body.market-mobile-header-visible .market-mobile-drawer-head img {
    width: 148px !important;
    height: 38px !important;
  }

  body.market-mobile-header-visible .market-mobile-drawer-close {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
  }

  body.market-mobile-header-visible .market-mobile-drawer-close::before,
  body.market-mobile-header-visible .market-mobile-drawer-close::after {
    top: 20px !important;
    left: 8px !important;
    width: 26px !important;
  }

  body.market-mobile-header-visible .market-mobile-drawer-list {
    gap: 8px !important;
  }

  body.market-mobile-header-visible .market-mobile-drawer nav {
    flex: 1 1 auto !important;
  }

  body.market-mobile-header-visible :is(.market-mobile-drawer-link, .market-mobile-drawer-support) {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 52px !important;
    padding: 6px 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #070b25 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
  }

  body.market-mobile-header-visible .market-mobile-drawer-support {
    width: 100% !important;
    margin: auto 0 0 !important;
  }

  body.market-mobile-header-visible :is(.market-mobile-drawer-link-icon, .market-mobile-drawer-support .market-mobile-drawer-link-icon) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
  }

  body.market-mobile-header-visible :is(.market-mobile-drawer-link, .market-mobile-drawer-support) :is(img, svg) {
    width: 21px !important;
    height: 21px !important;
    object-fit: contain !important;
  }

  body.market-mobile-header-visible :is(.market-mobile-drawer-link, .market-mobile-drawer-support) .mobile-nav-counter {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    transform: none !important;
  }

  body.market-mobile-header-visible .market-mobile-header,
  body[data-view="market"] .market-mobile-header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 105 !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    align-items: center !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 16px !important;
    border-bottom: 1px solid #e1e5ef !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }

  body.market-mobile-header-visible .page {
    padding-top: 64px !important;
  }

  body[data-view="sellerProfile"] .site-header {
    display: none !important;
  }

  body[data-view="settings"].market-mobile-header-visible .page,
  body[data-view="sellerProfile"].market-mobile-header-visible .page {
    padding-top: 64px !important;
  }

  body[data-view="settings"] .settings-mobile-screen,
  body[data-view="settings"] .settings-mobile-main {
    margin-top: 0 !important;
  }

  body[data-view="settings"] .settings-mobile-main {
    padding-top: 8px !important;
  }

  body[data-view="settings"] .settings-mobile-screen {
    padding-top: 0 !important;
  }

  body:is(
    [data-view="seller"],
    [data-view="sellerListings"],
    [data-view="sellerOrders"],
    [data-view="sellerMessages"],
    [data-view="sellerFinance"],
    [data-view="sellerReviews"],
    [data-view="sellerSettings"],
    [data-view="sellerPromotion"],
    [data-view="sellerCreate"]
  ) :is(.seller-mobile-shared-header, .seller-mobile-topbar, .finance-mobile-topbar) {
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 16px !important;
  }

  body:is(
    [data-view="seller"],
    [data-view="sellerListings"],
    [data-view="sellerOrders"],
    [data-view="sellerMessages"],
    [data-view="sellerFinance"],
    [data-view="sellerReviews"],
    [data-view="sellerSettings"],
    [data-view="sellerPromotion"],
    [data-view="sellerCreate"]
  ) :is(.seller-mobile-shared-header, .seller-mobile-topbar, .finance-mobile-topbar) :is(.seller-mobile-shared-logo, .seller-mobile-logo) {
    justify-self: center !important;
    width: auto !important;
    min-width: 120px !important;
  }

  body:is(
    [data-view="seller"],
    [data-view="sellerListings"],
    [data-view="sellerOrders"],
    [data-view="sellerMessages"],
    [data-view="sellerFinance"],
    [data-view="sellerReviews"],
    [data-view="sellerSettings"],
    [data-view="sellerPromotion"],
    [data-view="sellerCreate"]
  ) :is(.seller-mobile-shared-header, .seller-mobile-topbar, .finance-mobile-topbar) :is(.seller-mobile-shared-logo, .seller-mobile-logo) img {
    display: block !important;
    width: 116px !important;
    height: auto !important;
    max-width: 40vw !important;
    object-fit: contain !important;
  }

  body:is(
    [data-view="seller"],
    [data-view="sellerListings"],
    [data-view="sellerOrders"],
    [data-view="sellerMessages"],
    [data-view="sellerFinance"],
    [data-view="sellerReviews"],
    [data-view="sellerSettings"],
    [data-view="sellerPromotion"],
    [data-view="sellerCreate"]
  ) :is(.seller-mobile-shared-header, .seller-mobile-topbar, .finance-mobile-topbar) :is(.seller-mobile-shared-icon, .seller-mobile-icon) {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
  }

  body.market-mobile-header-visible :is(.market-mobile-icon-btn, .market-mobile-logo, .market-mobile-header-spacer),
  body[data-view="market"] :is(.market-mobile-icon-btn, .market-mobile-logo, .market-mobile-header-spacer) {
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.market-mobile-header-visible .market-mobile-logo,
  body[data-view="market"] .market-mobile-logo {
    justify-self: center !important;
    width: auto !important;
    min-width: 120px !important;
  }

  body.market-mobile-header-visible .market-mobile-logo img,
  body[data-view="market"] .market-mobile-logo img {
    display: block !important;
    width: 116px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  body.market-mobile-header-visible :is(.market-mobile-burger, .market-mobile-burger::before, .market-mobile-burger::after),
  body[data-view="market"] :is(.market-mobile-burger, .market-mobile-burger::before, .market-mobile-burger::after) {
    width: 24px !important;
    height: 2px !important;
  }

  body.market-mobile-header-visible :is(.market-mobile-drawer-link, .market-mobile-bottom-nav button)[data-mobile-action="favorites"] svg,
  body.market-mobile-header-visible :is(.market-mobile-drawer-link, .market-mobile-bottom-nav button)[data-mobile-action="favorites"] svg path,
  body[data-view="market"] :is(.market-mobile-drawer-link, .market-mobile-bottom-nav button)[data-mobile-action="favorites"] svg,
  body[data-view="market"] :is(.market-mobile-drawer-link, .market-mobile-bottom-nav button)[data-mobile-action="favorites"] svg path,
  .nav-favorite-icon,
  .nav-favorite-icon path,
  .profile-menu-row[data-profile-action="favorites"] svg,
  .profile-menu-row[data-profile-action="favorites"] svg path {
    color: #070b25 !important;
    fill: #070b25 !important;
    stroke: #070b25 !important;
  }
}

@media (max-width: 768px) {
  body:is(
    [data-view="seller"],
    [data-view="sellerListings"],
    [data-view="sellerOrders"],
    [data-view="sellerMessages"],
    [data-view="sellerFinance"],
    [data-view="sellerReviews"],
    [data-view="sellerSettings"],
    [data-view="sellerPromotion"],
    [data-view="sellerCreate"],
    [data-view="settings"]
  ) .seller-mobile-drawer-panel {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }

  body:is(
    [data-view="seller"],
    [data-view="sellerListings"],
    [data-view="sellerOrders"],
    [data-view="sellerMessages"],
    [data-view="sellerFinance"],
    [data-view="sellerReviews"],
    [data-view="sellerSettings"],
    [data-view="sellerPromotion"],
    [data-view="sellerCreate"],
    [data-view="settings"]
  ) .seller-mobile-drawer-panel > nav {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }

  body:is(
    [data-view="seller"],
    [data-view="sellerListings"],
    [data-view="sellerOrders"],
    [data-view="sellerMessages"],
    [data-view="sellerFinance"],
    [data-view="sellerReviews"],
    [data-view="sellerSettings"],
    [data-view="sellerPromotion"],
    [data-view="sellerCreate"],
    [data-view="settings"]
  ) .seller-mobile-drawer-list {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding-bottom: 10px !important;
  }

  body:is(
    [data-view="seller"],
    [data-view="sellerListings"],
    [data-view="sellerOrders"],
    [data-view="sellerMessages"],
    [data-view="sellerFinance"],
    [data-view="sellerReviews"],
    [data-view="sellerSettings"],
    [data-view="sellerPromotion"],
    [data-view="sellerCreate"],
    [data-view="settings"]
  ) .seller-mobile-drawer-profile {
    flex: 0 0 auto !important;
    margin: 14px 0 0 !important;
    padding: 10px 8px 0 !important;
  }
}
/* lootava final mobile overrides 20260831 */
@media (max-width: 768px) {
  body[data-view="market"].market-mobile-header-visible .site-header,
  body[data-view="market"] .site-header {
    display: block !important;
    position: static !important;
    margin-top: 64px !important;
    border-bottom: 0 !important;
    background: #fff !important;
  }

  body[data-view="market"].market-mobile-header-visible .page,
  body[data-view="market"] .page {
    padding-top: 0 !important;
  }

  body[data-view="market"] .header-main {
    display: block !important;
    padding: 10px 14px 8px !important;
  }

  body[data-view="market"] .global-search {
    display: flex !important;
    min-height: 46px !important;
    border-radius: 12px !important;
  }

  body[data-view="market"] .global-search span {
    font-size: 18px !important;
  }

  body[data-view="market"] .global-search input {
    min-height: 44px !important;
    font-size: 14px !important;
  }

  body[data-view="market"] .category-strip {
    gap: 10px !important;
    padding: 8px 14px 12px !important;
  }

  body[data-view="market"] .category-strip button {
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
  }

  body[data-view="market"] .category-strip .cat-icon img {
    width: 18px !important;
    height: 18px !important;
  }

  body[data-view="market"] .hero {
    margin: 18px 0 20px !important;
    padding: 22px 22px 20px !important;
  }

  body[data-view="market"] .hero-copy h1 {
    font-size: 28px !important;
  }

  body[data-view="market"] .hero-copy p {
    font-size: 15px !important;
  }

  body[data-view="market"] .service-card {
    min-height: 94px !important;
    padding: 12px 10px !important;
  }

  body[data-view="market"] .service-icon.image img {
    width: 34px !important;
    height: 34px !important;
  }

  body[data-view="market"] .service-card strong {
    font-size: 14px !important;
  }

  .market-mobile-bottom-nav button {
    color: #050713 !important;
  }

  .market-mobile-bottom-nav img:not([data-mobile-profile-avatar]) {
    opacity: 1 !important;
    filter: brightness(0) saturate(100%) !important;
  }

  .market-mobile-bottom-nav .active[data-mobile-action="favorites"],
  .market-mobile-bottom-nav .active[data-mobile-action="favorites"] svg,
  .market-mobile-bottom-nav .active[data-mobile-action="favorites"] svg path,
  body.market-mobile-header-visible .market-mobile-bottom-nav .active[data-mobile-action="favorites"] svg,
  body.market-mobile-header-visible .market-mobile-bottom-nav .active[data-mobile-action="favorites"] svg path,
  body[data-view="favorites"] .market-mobile-bottom-nav .active[data-mobile-action="favorites"] svg,
  body[data-view="favorites"] .market-mobile-bottom-nav .active[data-mobile-action="favorites"] svg path {
    color: #4f35f2 !important;
    fill: #4f35f2 !important;
    stroke: #4f35f2 !important;
  }

  body[data-view="sellerProfile"] .seller-profile-page {
    width: 100% !important;
    max-width: none !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  body[data-view^="seller"] .seller-mobile-bottom-nav button,
  body[data-view^="seller"] .seller-home-bottom-nav button {
    color: #050713 !important;
  }

  body[data-view^="seller"] .seller-mobile-bottom-nav img:not([data-current-user-avatar]),
  body[data-view^="seller"] .seller-home-bottom-nav img:not([data-current-user-avatar]) {
    opacity: 1 !important;
    filter: brightness(0) saturate(100%) !important;
  }

  body[data-view^="seller"] .seller-mobile-bottom-nav .active,
  body[data-view^="seller"] .seller-home-bottom-nav .active {
    color: #4f35f2 !important;
  }

  body[data-view^="seller"] .seller-mobile-bottom-nav .active img:not([data-current-user-avatar]),
  body[data-view^="seller"] .seller-home-bottom-nav .active img:not([data-current-user-avatar]) {
    opacity: 1 !important;
    filter: brightness(0) saturate(100%) invert(23%) sepia(98%) saturate(4958%) hue-rotate(249deg) brightness(105%) contrast(102%) !important;
    transform: scale(1.12) !important;
  }

  #sellerView .seller-rules a::after {
    margin-left: 5px !important;
    font-size: 20px !important;
  }

  #sellerView .seller-forbidden {
    padding: 18px 16px !important;
  }

  #sellerView .seller-forbidden h3 {
    font-size: 22px !important;
  }

  #sellerView .seller-forbidden li {
    padding: 10px 0 10px 24px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
}

@media (min-width: 769px) {
  body[data-view="sellerProfile"] .seller-profile-page {
    width: 100% !important;
    max-width: none !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
  }
}
/* lootava compact mobile pass 20260831 */
@media (max-width: 768px) {
  body[data-view="settings"] .settings-mobile-title,
  body[data-view="sellerSettings"] .settings-mobile-title {
    display: none !important;
  }

  body[data-view="sellerProfile"] .page {
    width: 100vw !important;
    max-width: 100vw !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    overflow-x: hidden !important;
  }

  body[data-view="sellerProfile"] .seller-profile-page {
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-right: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    padding: 12px 8px 24px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-hero,
  body[data-view="sellerProfile"] .seller-profile-catalog,
  body[data-view="sellerProfile"] .seller-profile-actions,
  body[data-view="sellerProfile"] .seller-profile-search,
  body[data-view="sellerProfile"] .seller-profile-section-head,
  body[data-view="sellerProfile"] .seller-profile-filters,
  body[data-view="sellerProfile"] .seller-profile-grid {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
  }

  body[data-view="sellerProfile"] .seller-profile-hero {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-avatar {
    width: 72px !important;
    height: 72px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-name-row h1 {
    font-size: 25px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-main > p,
  body[data-view="sellerProfile"] .seller-profile-meta,
  body[data-view="sellerProfile"] .seller-profile-activity {
    font-size: 14px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-grid {
    gap: 10px 6px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-grid .product-card {
    border-radius: 10px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-grid .market-card-cover {
    border-radius: 8px !important;
  }

  body[data-view="market"] .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-view="market"] .service-card {
    min-height: 82px !important;
    gap: 6px !important;
    padding: 10px 6px 8px !important;
    border-radius: 10px !important;
  }

  body[data-view="market"] .service-icon,
  body[data-view="market"] .service-icon.image {
    width: 28px !important;
    height: 28px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-view="market"] .service-icon.image img,
  body[data-view="market"] .service-icon img {
    width: 26px !important;
    height: 26px !important;
  }

  body[data-view="market"] .service-card strong {
    font-size: 12px !important;
    line-height: 1.12 !important;
  }

  #sellerView .instruction-grid article {
    grid-template-columns: 38px minmax(0, 1fr) 14px !important;
    min-height: 66px !important;
    gap: 10px !important;
    padding: 10px 10px !important;
  }

  #sellerView .instruction-grid article::before {
    width: 34px !important;
    height: 34px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    background-size: 28px 28px !important;
  }

  #sellerView .instruction-grid article::after {
    width: 10px !important;
    height: 10px !important;
    border-right-width: 3px !important;
    border-bottom-width: 3px !important;
  }

  #sellerView .instruction-grid strong {
    font-size: 15px !important;
  }

  #sellerView .instruction-grid p {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  #sellerView .seller-rules a::after {
    margin-left: 4px !important;
    font-size: 16px !important;
    vertical-align: -1px !important;
  }
}
/* lootava search and compact grids 20260831 */
body[data-view="market"].market-search-active #marketView > .hero,
body[data-view="market"].market-search-active #marketView > .popular-services,
body[data-view="market"].market-search-active #marketView .market-section > .section-head {
  display: none !important;
}

body[data-view="market"].market-search-active #marketView .market-layout {
  display: block !important;
}

body[data-view="market"].market-search-active #marketView .market-section {
  margin-top: 24px !important;
}

@media (max-width: 768px) {
  body[data-view="market"].market-search-active #marketView > .hero,
  body[data-view="market"].market-search-active #marketView > .popular-services,
  body[data-view="market"].market-search-active #marketView .section-head .filters {
    display: none !important;
  }

  body[data-view="market"].market-search-active #marketView .market-section {
    margin-top: 16px !important;
  }

  body[data-view="market"].market-search-active #marketView .section-head {
    margin-bottom: 12px !important;
  }

  body[data-view="market"] #marketPopularServices .service-card:nth-child(10) {
    display: none !important;
  }

  body[data-view="market"] .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-view="market"] .service-card {
    min-height: 78px !important;
    gap: 4px !important;
    align-content: center !important;
    padding: 8px 5px 6px !important;
  }

  body[data-view="market"] .service-icon,
  body[data-view="market"] .service-icon.image {
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    background: transparent !important;
  }

  body[data-view="market"] .service-icon.image img,
  body[data-view="market"] .service-icon img {
    width: 32px !important;
    height: 32px !important;
  }

  body[data-view="market"] .service-card strong {
    font-size: 11px !important;
    line-height: 1.08 !important;
  }

  #sellerView .instruction-grid {
    gap: 8px !important;
  }

  #sellerView .instruction-grid article {
    grid-template-columns: 32px minmax(0, 1fr) 12px !important;
    min-height: 56px !important;
    gap: 8px !important;
    padding: 8px 10px !important;
  }

  #sellerView .instruction-grid article::before {
    width: 28px !important;
    height: 28px !important;
    background-size: 24px 24px !important;
  }

  #sellerView .instruction-grid article::after {
    width: 8px !important;
    height: 8px !important;
    border-right-width: 2px !important;
    border-bottom-width: 2px !important;
  }

  #sellerView .instruction-grid strong {
    font-size: 14px !important;
  }

  #sellerView .instruction-grid p {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  #sellerView .seller-instruction {
    padding-bottom: 12px !important;
  }
}
/* lootava search results only 20260831 */
@media (max-width: 768px) {
  body[data-view="market"].market-search-active #marketView > .hero,
  body[data-view="market"].market-search-active #marketView > .popular-services,
  body[data-view="market"].market-search-active #marketView .market-section > .section-head {
    display: none !important;
  }

  body[data-view="market"].market-search-active #marketView .market-layout {
    display: block !important;
  }
}

/* Public mobile footer visibility 20260906 */
@media (max-width: 768px) {
  body:is([data-view="messages"], [data-view="purchases"], [data-view="favorites"], [data-view="settings"]):not(.buyer-message-chat-open) .lootava-footer {
    display: block !important;
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }
}

/* Public bottom nav aligned with seller mobile nav 20260906 */
@media (max-width: 768px) {
  .market-mobile-bottom-nav {
    min-height: calc(54px + env(safe-area-inset-bottom)) !important;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom)) !important;
  }

  .market-mobile-bottom-nav button {
    display: grid !important;
    grid-template-rows: 30px !important;
    place-items: center !important;
    min-height: 40px !important;
    padding: 0 !important;
    gap: 0 !important;
    color: #050713 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: visible !important;
  }

  .market-mobile-bottom-nav button::before {
    display: none !important;
  }

  .market-mobile-bottom-nav .active:is([data-mobile-action="home"], [data-mobile-action="favorites"], [data-mobile-action="chats"], [data-mobile-action="orders"]) > img {
    display: block !important;
  }

  .market-mobile-bottom-nav span {
    display: none !important;
  }

  .market-mobile-bottom-nav img,
  .market-mobile-bottom-nav svg {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    opacity: 1 !important;
    filter: brightness(0) saturate(100%) !important;
    transform: translateY(5px) !important;
  }

  .market-mobile-bottom-nav .market-mobile-favorite-icon {
    width: 26px !important;
    height: 26px !important;
  }

  .market-mobile-bottom-nav .active :is(img, svg) {
    opacity: 1 !important;
    filter: brightness(0) saturate(100%) invert(23%) sepia(98%) saturate(4958%) hue-rotate(249deg) brightness(105%) contrast(102%) !important;
    transform: translateY(5px) scale(1.12) !important;
  }
}
