:root {
  --violet: #4a35e8;
  --violet-2: #735dff;
  --red: #ff4d2e;
  --ink: #181821;
  --ink-2: #232332;
  --muted: #777b8c;
  --line: #e7e8ef;
  --soft: #f3f4f8;
  --panel: #ffffff;
  --success: #4a35e8;
  --danger: #df3e32;
  --warning: #c98212;
  --shadow: 0 18px 50px rgba(24, 24, 33, 0.08);
}

/* Product/seller complaint modal restore 20260905 */
.product-moderation-dialog {
  position: fixed;
  z-index: 2600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.product-moderation-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(10, 13, 24, 0.52);
  cursor: pointer;
}

.product-moderation-modal {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 26px 28px 24px;
  border: 1px solid #dfe4ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(17, 21, 36, 0.22);
}

.product-moderation-modal header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.product-moderation-modal h2 {
  margin: 0;
  color: #101525;
  font-size: 26px;
  line-height: 1.15;
}

.product-moderation-modal header p {
  margin: 6px 0 0;
  color: #667087;
}

.product-moderation-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  background: #fff;
  color: #667087;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.product-moderation-form {
  display: grid;
  gap: 14px;
}

.product-moderation-form label {
  display: grid;
  gap: 7px;
  color: #667087;
  font-weight: 700;
}

.product-moderation-form select,
.product-moderation-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  background: #fff;
  color: #101525;
  font: inherit;
  font-weight: 500;
}

.product-moderation-form select {
  min-height: 52px;
  padding: 0 16px;
}

.product-moderation-form textarea {
  min-height: 132px;
  padding: 14px 16px;
  resize: vertical;
}

.product-moderation-limit {
  color: #667087;
  font-size: 13px;
  font-weight: 600;
}

.product-moderation-error {
  margin: 0;
  color: #ff3b30;
  font-weight: 700;
}

.product-moderation-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

.product-moderation-actions .ghost-btn,
.product-moderation-actions .product-admin-action {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.product-moderation-actions .ghost-btn {
  border: 1px solid #dfe4ee;
  background: #fff;
  color: #101525;
}

.product-moderation-actions .product-admin-action {
  border: 0;
  background: #4f35f2;
  color: #fff;
}

@media (max-width: 768px) {
  .product-moderation-dialog {
    align-items: end;
    padding: 12px;
  }

  .product-moderation-modal {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 20px 18px 18px;
    border-radius: 14px;
  }

  .product-moderation-modal h2 {
    font-size: 22px;
  }

  .product-moderation-form select {
    min-height: 46px;
  }

  .product-moderation-form textarea {
    min-height: 116px;
  }

  .product-moderation-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keep all desktop account actions on one baseline 20260907 */
.account-actions > .profile-shell {
  display: flex !important;
  align-items: center !important;
  height: 54px !important;
}

.account-actions > .nav-tile,
.account-actions > .profile-shell > .nav-tile {
  height: 54px !important;
  min-height: 54px !important;
}

.account-actions .nav-tile [data-current-user-avatar] {
  width: 25px !important;
  height: 25px !important;
  flex: 0 0 25px !important;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.primary-btn,
.ghost-btn,
.danger-btn,
.icon-btn {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  font-weight: 760;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
input:focus,
select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(74, 53, 232, 0.12);
}
.primary-btn {
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  box-shadow: none;
}
.ghost-btn {
  padding: 0 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}
.danger-btn {
  padding: 0 18px;
  color: #fff;
  background: var(--danger);
}
.icon-btn {
  width: 48px;
  min-width: 48px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}
.resend-code-btn {
  justify-self: start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--violet);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.resend-code-btn:hover,
.resend-code-btn:focus-visible {
  color: #2f20b8;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.resend-code-btn:disabled {
  color: #8b92a5;
  cursor: default;
  text-decoration: none;
}
.primary-btn:hover,
.ghost-btn:hover,
.catalog-button:hover,
.nav-tile:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}
/* restore: public market home layout */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 18px;
  align-items: stretch;
  min-height: 330px;
  padding: clamp(40px, 5vw, 70px) clamp(46px, 6vw, 84px);
  overflow: hidden;
  color: #fff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 36%, rgba(255, 77, 46, 0.95), transparent 17%),
    radial-gradient(circle at 66% 78%, rgba(74, 53, 232, 0.92), transparent 27%),
    linear-gradient(135deg, #11111c, #231b52 48%, #181821);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(238, 234, 254, 0.18) 42% 43%, transparent 43%),
    radial-gradient(circle at 86% 22%, rgba(238, 234, 254, 0.14), transparent 8%),
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(255, 255, 255, 0.035) 26px 28px);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  max-width: 620px;
}
.eyebrow {
  color: #ffc2ba;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}
.workspace-head h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}
.hero p,
.workspace-head p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 19px;
  line-height: 1.42;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-art {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: end;
}
.hero-cta,
.quick-find-btn {
  min-height: 58px;
  padding: 0 28px;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red), #ff6f57);
  box-shadow: 0 18px 38px rgba(255, 77, 46, 0.28);
  font-weight: 850;
}
.loot-crate {
  position: relative;
  width: min(420px, 82%);
  aspect-ratio: 1.35;
  border: 1px solid rgba(238, 234, 254, 0.22);
  border-radius: 30px;
  background:
    radial-gradient(circle at 72% 35%, rgba(255, 77, 46, 0.92), transparent 18%),
    linear-gradient(145deg, rgba(238, 234, 254, 0.18), rgba(74, 53, 232, 0.15)),
    rgba(24, 24, 33, 0.72);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
  transform: rotate(-4deg);
}
.loot-crate::before,
.loot-crate::after {
  content: "";
  position: absolute;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--violet), var(--red));
}
.loot-crate::before {
  width: 62%;
  height: 28%;
  left: 18%;
  top: 28%;
  transform: skew(-12deg);
}
.loot-crate::after {
  width: 72%;
  height: 20%;
  left: 13%;
  bottom: 22%;
}
.loot-crate span {
  position: absolute;
  right: 13%;
  top: 16%;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--red);
  font-size: 30px;
  font-weight: 950;
  box-shadow: 0 16px 30px rgba(255, 77, 46, 0.28);
}
.muted,
label span,
.section-head span,
.item-meta,
.metric span,
.list-item p {
  color: var(--muted);
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
input,
select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: var(--soft);
}
input:focus,
select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(74, 53, 232, 0.12);
}
.primary-btn {
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  box-shadow: 0 14px 28px rgba(74, 53, 232, 0.22);
}
.ghost-btn {
  padding: 0 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}
.danger-btn {
  padding: 0 18px;
  color: #fff;
  background: var(--danger);
}
.icon-btn {
  width: 48px;
  min-width: 48px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}
.primary-btn:hover,
.ghost-btn:hover,
.catalog-button:hover,
.nav-tile:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}
.popular-services {
  margin: 18px 0 28px;
}
.popular-services h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.1;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(104px, 1fr));
  gap: 14px;
}
.service-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-height: 126px;
  padding: 18px 10px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 24, 33, 0.035);
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 53, 232, 0.34);
  box-shadow: 0 20px 44px rgba(24, 24, 33, 0.08);
}
.service-card strong {
  font-size: 14px;
  text-align: center;
}
.service-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--violet), var(--red));
  font-size: 22px;
  font-weight: 950;
}
.service-icon.steam {
  background: linear-gradient(135deg, #181821, #4a35e8);
}
.service-icon.ps {
  background: linear-gradient(135deg, #2a63ff, #4a35e8);
}
.service-icon.xbox {
  background: linear-gradient(135deg, #4a35e8, #181821);
}
.service-icon.roblox,
.service-icon.all {
  color: var(--ink);
  background: #eef0f6;
}
.service-icon.tg,
.service-icon.appstore,
.service-icon.key {
  background: linear-gradient(135deg, #4a35e8, #7a67ff);
}
.service-icon.crown,
.service-icon.social {
  background: linear-gradient(135deg, var(--red), #ff8b76);
}
.service-icon.image {
  background: transparent;
}
.service-icon.image img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.promo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 34px;
}
.promo-card {
  display: grid;
  min-height: 150px;
  align-content: end;
  padding: 22px;
  overflow: hidden;
  color: #fff;
  border-radius: 24px;
  background: var(--ink);
}
.promo-card span {
  margin-bottom: 7px;
  opacity: 0.78;
}
.promo-card strong {
  font-size: 24px;
  line-height: 1.12;
}
.promo-card.purple {
  background: linear-gradient(135deg, #4a35e8, #8d7aff);
}
.promo-card.red {
  background: linear-gradient(135deg, #ff4d2e, #ff8c74);
}
.promo-card.dark {
  background: linear-gradient(135deg, #181821, #313144);
}
.market-section,
.deal-board,
.chat,
.seller-list,
.admin-list,
.metric {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.market-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.section-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0 0 4px;
  font-size: 25px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(150px, 1fr);
  gap: 10px;
  min-width: min(320px, 100%);
}

body[data-view="market"] #categoryFilter {
  display: none !important;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.support-mini {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.support-mini > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 24px;
}
.support-mini strong,
.support-mini small {
  display: block;
}
.support-mini small {
  color: var(--muted);
  font-size: 12px;
}
.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 24, 33, 0.045);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(74, 53, 232, 0.38);
  outline: none;
  box-shadow: 0 24px 60px rgba(24, 24, 33, 0.12);
}
.market-card-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.market-card-cover {
  position: relative;
  display: grid;
  min-height: 154px;
  aspect-ratio: 1 / 1;
  padding: 10px;
  background-color: #151827;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.market-card-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.market-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 18, 0.02), rgba(7, 9, 18, 0.22));
  pointer-events: none;
}
.market-card-cover strong {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 78%;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 650;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.product-favorite {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #596071;
  border: 1px solid rgba(222, 226, 239, 0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(17, 21, 36, 0.12);
  font-size: 24px;
  line-height: 1;
}
.product-favorite:hover {
  color: var(--red);
  border-color: rgba(255, 77, 46, 0.28);
}
.product-card-body {
  display: grid;
  gap: 9px;
  padding: 11px 12px 13px;
}
.product-title {
  margin: 0;
  min-height: 38px;
  font-size: 16px;
  line-height: 1.18;
  font-weight: 650;
}
.product-title a {
  color: inherit;
  text-decoration: none;
}
.product-title a:hover {
  color: var(--violet);
}
.product-category-line {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 16px;
  color: #6f7688;
  font-size: 12px;
}
.product-category-line span,
.product-category-line i {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}
.product-seller-row,
.product-stats-row {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: #596071;
  font-size: 12px;
}
.product-seller-row span:nth-child(2) {
  min-width: 0;
  max-width: 108px;
  overflow: hidden;
  color: #23283b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.product-seller-row b {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #18bd5b;
  font-size: 9px;
  font-weight: 700;
}
.product-seller-row em {
  margin-left: auto;
  color: #596071;
  font-style: normal;
}
.seller-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18bd5b;
}
.rating-star {
  color: #ff9d00;
  font-size: 15px;
  line-height: 1;
}
.tag-list,
.seller-badge-list,
.seller-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-list span {
  padding: 5px 7px;
  color: #687086;
  border: 1px solid #dfe3ee;
  border-radius: 6px;
  background: #fbfcff;
  font-size: 11px;
  font-weight: 500;
}
.seller-badge-list span,
.seller-badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  color: var(--violet);
  border: 1px solid rgba(74, 53, 232, 0.2);
  border-radius: 10px;
  background: #f4f2ff;
  font-size: 12px;
  font-weight: 820;
}
.seller-badge::before,
.seller-badge-list span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.seller-badge small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.price {
  margin-top: 1px;
  color: #151827;
  font-size: 22px;
  font-weight: 750;
}
.seller-side {
  display: grid;
  gap: 18px;
  align-content: start;
}
.badge-manager {
  display: grid;
  gap: 14px;
}
.badge-form {
  display: grid;
  gap: 10px;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.product-card .card-actions .primary-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
}
.product-page {
  display: grid;
  gap: 22px;
  margin-bottom: 72px;
}
.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.product-breadcrumb span + span::before {
  content: "/";
  margin-right: 10px;
  color: #b6bac7;
}
.back-link,
.guarantee-link {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 760;
}
.product-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}
.product-cover-card {
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: 24px;
  background: transparent;
}
.product-cover {
  display: grid;
  width: min(320px, 100%);
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(17, 21, 36, 0.08);
}
.product-cover.has-image {
  cursor: zoom-in;
}
.product-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-cover.empty {
  place-items: center;
  padding: 20px;
  border-style: dashed;
  background: #f7f8fc;
}
.product-cover span,
.product-cover small {
  color: var(--muted);
  font-weight: 650;
}
.product-cover strong {
  margin: 8px 0 4px;
  font-size: 34px;
  line-height: 0.95;
}
.product-copy {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.product-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
}
.product-copy p {
  max-width: 720px;
  margin: 0;
  color: #3d4050;
  font-size: 19px;
  line-height: 1.45;
}
.buy-panel {
  position: sticky;
  top: 130px;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(24, 24, 33, 0.1);
}
.buy-price {
  font-size: 40px;
  line-height: 1;
}
.seller-mini {
  display: grid;
  gap: 4px;
  color: var(--ink);
}
.seller-mini span {
  font-size: 18px;
  font-weight: 850;
}
.seller-mini small {
  color: var(--muted);
}
.product-buy-btn {
  width: 100%;
  min-height: 52px;
}
.guarantee-link {
  display: flex;
  justify-content: space-between;
  padding-top: 4px;
  color: #3d4050;
  font-size: 15px;
}
.guarantee-link:hover {
  color: var(--violet);
}
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}
.product-info-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.product-info-block h2 {
  margin: 0 0 18px;
  font-size: 26px;
}
.delivery-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-radius: 18px;
  background: #f5f6fa;
}
.delivery-card small {
  color: var(--muted);
  font-size: 13px;
}
.delivery-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}
.delivery-card span,
.seller-profile-row span {
  color: var(--muted);
}
.clean-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: #3d4050;
}
.seller-profile-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
}
.seller-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--violet), var(--red));
  font-size: 24px;
  font-weight: 900;
}
.seller-avatar.has-image {
  overflow: hidden;
  background: #f0edff;
}
.seller-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.seller-name-link {
  display: inline-flex;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
  text-align: left;
}
.seller-name-link:hover,
.seller-name-link:focus-visible {
  color: var(--violet);
  outline: none;
}
.seller-profile-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}
.section-head.compact {
  margin-bottom: 16px;
}
.review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.review-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: #f5f6fa;
}
.review-item strong {
  color: var(--violet);
  font-size: 22px;
}
.review-item span {
  color: #3d4050;
  line-height: 1.35;
}
.compact-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.compact-product {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
}
.compact-product:hover,
.compact-product:focus-visible {
  border-color: rgba(74, 53, 232, 0.38);
  outline: none;
}
.compact-cover {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  color: #fff;
  border-radius: 16px;
  background:
    radial-gradient(circle at 76% 22%, rgba(255, 77, 46, 0.72), transparent 18%),
    linear-gradient(135deg, var(--violet), var(--ink));
  font-size: 34px;
  font-weight: 950;
}
.compact-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compact-product span {
  min-height: 42px;
  font-weight: 760;
  line-height: 1.2;
}
.compact-product strong {
  font-size: 21px;
}
.compact-product .primary-btn {
  min-height: 40px;
  width: 100%;
  border-radius: 12px;
}
.workspace-head {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.workspace-head h1 {
  color: var(--ink);
}
.workspace-head p {
  color: var(--muted);
}
.catalog-page {
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: 52px 42px 72px;
}
.catalog-public-head {
  margin-bottom: 28px;
}
.catalog-public-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: #6e7487;
  font-size: 14px;
}
.catalog-public-crumbs a {
  color: #6e7487;
  text-decoration: none;
}
.catalog-public-crumbs a:hover {
  color: var(--violet);
}
.catalog-public-head h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}
.catalog-public-head p {
  margin: 0;
  max-width: 640px;
  color: #667085;
  font-size: 16px;
  line-height: 1.45;
}
.catalog-public-layout {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.catalog-public-layout-section-filter {
  grid-template-columns: minmax(0, 1fr);
}
.catalog-public-left {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}
.catalog-public-search {
  grid-column: 1 / -1;
  display: block;
}
.catalog-public-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  background: #fff;
  color: #252b3a;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}
.catalog-public-search input::placeholder {
  color: #8b93a3;
  font-weight: 500;
}
.catalog-public-search input:focus {
  border-color: #dfe4ef;
  box-shadow: none;
}
.catalog-public-groups {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  background: #fff;
}
.catalog-public-group-btn {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 8px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #252b3a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.catalog-public-group-btn:hover,
.catalog-public-group-btn.active {
  background: #eef0f5;
  color: var(--violet);
}
.catalog-public-group-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.catalog-public-group-btn svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  max-width: 20px;
}
.catalog-public-group-btn span {
  min-width: 0;
}
.catalog-public-group-btn i {
  justify-self: end;
  color: #8b93a3;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
}
.catalog-public-sidebar {
  display: grid;
  gap: 2px;
  max-height: min(640px, calc(100vh - 150px));
  overflow: auto;
  padding: 12px;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  background: #fff;
  scrollbar-width: thin;
}
.catalog-public-sidebar a,
.catalog-public-tile {
  color: var(--ink);
  text-decoration: none;
}
.catalog-public-sidebar a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #252b3a;
  font-size: 15px;
  font-weight: 700;
}
.catalog-public-sidebar a:hover,
.catalog-public-sidebar a.active {
  background: #f1edff;
  color: var(--violet);
}
.catalog-public-sidebar img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.catalog-public-content {
  min-width: 0;
}
.catalog-public-mobile-grid {
  display: none;
}
.catalog-public-mobile-platform-section {
  display: none;
}
.catalog-public-mobile-flow {
  display: none;
}
.catalog-public-section {
  margin-bottom: 30px;
}
.catalog-public-section-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.catalog-public-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}
.catalog-public-section-head a,
.catalog-public-section-head span {
  color: var(--violet);
  font-weight: 800;
  text-decoration: none;
}

.catalog-public-sort {
  appearance: none;
  -webkit-appearance: none;
  justify-self: end;
  margin-left: auto;
  width: 300px;
  max-width: 100%;
  min-height: 50px;
  padding: 0 46px 0 18px;
  border: 1px solid #dfe3ee;
  border-radius: 14px;
  background-color: #f5f6fb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23161a27' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
  background-size: 18px 18px;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  outline: none;
}

.catalog-public-sort:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(79, 53, 242, 0.12);
}

.catalog-public-mobile-sort-wrap {
  display: none;
}

@media (max-width: 700px) {
  .catalog-public-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px;
    align-items: start;
    gap: 14px;
  }

  .catalog-public-section-head h2 {
    min-width: 0;
  }

  .catalog-public-sort:not(.catalog-public-mobile-sort) {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    font-size: 16px;
  }

  .catalog-public-mobile-sort-wrap {
    position: relative;
    display: grid;
    justify-self: end;
    width: 74px;
  }

  .catalog-public-mobile-sort-button {
    appearance: none;
    display: grid;
    min-width: 74px;
    min-height: 56px;
    place-items: center;
    border: 1px solid #dfe3ee;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
  }

  .catalog-public-mobile-sort-button svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #4a22ff;
    stroke-width: 2.4;
    stroke-linecap: round;
  }

  .catalog-public-mobile-sort {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    display: none;
    width: 228px;
    max-width: calc(100vw - 32px);
    max-height: 224px;
    margin: 0;
    padding: 6px 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(16, 21, 43, 0.16);
  }

  .catalog-mobile-sort-open .catalog-public-mobile-sort {
    display: block;
  }

  .catalog-public-mobile-sort option {
    min-height: 42px;
    padding: 10px 16px;
  }
}
.catalog-public-platform-section {
  margin-bottom: 28px;
  padding: 14px 16px;
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  background: #fff;
}
.catalog-public-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.catalog-public-platforms button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #edf0f5;
  color: #252b3a;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}
.catalog-public-platforms button:hover,
.catalog-public-platforms button.active {
  border-color: rgba(74, 53, 232, 0.35);
  background: #f1edff;
  color: var(--violet);
}
.catalog-public-platforms img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.catalog-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  grid-auto-rows: minmax(74px, max-content);
  align-items: start;
  gap: 12px;
}
.catalog-public-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.catalog-public-tile {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  align-self: start;
  min-height: 74px;
  max-height: 92px;
  padding: 12px;
  border: 1px solid #dfe3ee;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.catalog-public-tile:hover {
  border-color: #b9adff;
  box-shadow: 0 14px 34px rgba(28, 32, 54, 0.08);
}
.catalog-public-tile.active {
  border-color: #8f7cff;
  background: #f0ecff;
  color: #4b32f4;
  box-shadow: 0 12px 30px rgba(79, 51, 255, 0.12);
}
.catalog-public-tile.active span {
  background: #fff;
}
.catalog-public-tile.active i {
  color: #4b32f4;
}
.catalog-public-tile span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #f1edff;
}
.catalog-public-tile img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.catalog-public-tile strong {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  line-height: 1.18;
}
.catalog-public-tile i {
  color: #667085;
  font-style: normal;
  font-size: 24px;
}
.catalog-public-popular-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 104px;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.catalog-public-collection {
  color: #252b3a;
  text-align: center;
  text-decoration: none;
}
.catalog-public-collection img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 8px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(28, 32, 54, 0.07);
}
.catalog-public-collection strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
}
.catalog-public-offers.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.catalog-public-empty {
  display: grid;
  place-items: center;
  min-height: 360px;
  gap: 8px;
  text-align: center;
}
.catalog-public-empty p {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
}
.catalog-public-empty span {
  color: #667085;
}
@media (max-width: 700px) {
body[data-view="catalog"] .site-header,
body[data-view="catalog"] .header-top,
body[data-view="catalog"] .category-strip {
    display: none;
  }
body[data-view="catalog"] .page {
    width: 100%;
    max-width: 100vw;
    padding: 0 18px calc(98px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }
body[data-view="catalog"] .market-mobile-icon-btn,
body[data-view="catalog"] .market-mobile-logo {
    display: grid;
    min-width: 48px;
    min-height: 48px;
    place-items: center;
    border: 0;
    background: transparent;
  }
body[data-view="catalog"] .market-mobile-logo img {
    width: 168px;
    height: 40px;
    object-fit: contain;
    object-position: center;
  }
body[data-view="catalog"] .market-mobile-icon-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }
body[data-view="catalog"] .market-mobile-burger,
body[data-view="catalog"] .market-mobile-burger::before,
body[data-view="catalog"] .market-mobile-burger::after {
    display: block;
    width: 30px;
    height: 2px;
    border-radius: 99px;
    background: #080d24;
    content: "";
  }
body[data-view="catalog"] .market-mobile-burger {
    position: relative;
  }
body[data-view="catalog"] .market-mobile-burger::before,
body[data-view="catalog"] .market-mobile-burger::after {
    position: absolute;
    left: 0;
  }
body[data-view="catalog"] .market-mobile-burger::before {
    top: -9px;
  }
body[data-view="catalog"] .market-mobile-burger::after {
    top: 9px;
  }
.catalog-page {
    padding: 18px 0 0;
  }
.catalog-public-desktop-flow {
    display: none;
  }
.catalog-public-mobile-flow {
    display: block;
    padding: 0 12px 28px;
  }
.catalog-public-head {
    display: none;
  }
.catalog-public-platform-section-desktop {
    display: none;
  }
.catalog-public-layout {
    display: block;
  }
.catalog-public-left {
    display: block;
    margin-bottom: 22px;
    padding: 12px;
    border: 1px solid #dfe3ee;
    border-radius: 14px;
    background: #fff;
  }
.catalog-public-mobile-card {
    padding: 12px;
    border: 1px solid #dfe3ee;
    border-radius: 14px;
    background: #fff;
  }
.catalog-public-mobile-step-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 2px 0 22px;
  }
.catalog-public-mobile-step-head-no-back {
    grid-template-columns: minmax(0, 1fr);
  }
.catalog-public-mobile-step-head h1 {
    margin: 0;
    min-width: 0;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: 0;
  }
.catalog-public-mobile-back {
    appearance: none;
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dfe3ee;
    border-radius: 12px;
    background: #fff;
    color: transparent;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
  }
.catalog-public-mobile-back::before {
    content: "";
    width: 6px;
    height: 6px;
    border-left: 4px solid #252b3a;
    border-bottom: 4px solid #252b3a;
    transform: translate(2px, 7px) rotate(45deg);
  }
.catalog-public-search {
    margin-bottom: 12px;
  }
.catalog-public-search input {
    min-height: 46px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
  }
.catalog-public-mobile-platform-section {
    display: block;
    margin-bottom: 12px;
  }
.catalog-public-platforms {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -12px 12px 0;
    padding: 0 12px 4px 0;
    scrollbar-width: thin;
  }
.catalog-public-platforms button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
  }
.catalog-public-platforms img {
    width: 20px;
    height: 20px;
  }
.catalog-public-groups {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
.catalog-public-group-btn {
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 15px;
  }
.catalog-public-group-btn:not(.active) {
    color: #252b3a;
  }
.catalog-public-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: min(360px, 46vh);
    overflow-y: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
.catalog-public-sidebar a {
    grid-template-columns: 34px minmax(0, 1fr) 12px;
    gap: 8px;
    min-height: 62px;
    padding: 8px;
    border: 1px solid #dfe3ee;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.15;
  }
.catalog-public-sidebar img {
    width: 28px;
    height: 28px;
  }
.catalog-public-sidebar a i {
    font-size: 18px;
  }
.catalog-public-sidebar .catalog-public-empty {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 20px;
  }
.catalog-public-mobile-grid {
    display: none;
  }
.catalog-public-section {
    margin-bottom: 22px;
  }
.catalog-public-section-head h2 {
    font-size: 24px;
  }
.catalog-public-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
.catalog-public-mobile-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.catalog-public-tile {
    grid-template-columns: 48px minmax(0, 1fr) 16px;
    gap: 10px;
    min-height: 68px;
    max-height: none;
    padding: 10px;
    border-radius: 10px;
  }
.catalog-public-tile span {
    width: 48px;
    height: 48px;
  }
.catalog-public-tile img {
    width: 30px;
    height: 30px;
  }
.catalog-public-tile strong {
    font-size: 16px;
    line-height: 1.15;
  }
.catalog-public-mobile-service-grid .catalog-public-tile {
    grid-template-columns: 54px minmax(0, 1fr) 16px;
    min-height: 82px;
    padding: 10px;
  }
.catalog-public-mobile-service-grid .catalog-public-tile strong {
    font-size: 15px;
  }
.catalog-public-mobile-show-all {
    appearance: none;
    width: 100%;
    min-height: 52px;
    margin-top: 12px;
    border: 1px solid #dfe3ee;
    border-radius: 10px;
    background: #fff;
    color: var(--violet);
    font: inherit;
    font-size: 17px;
    font-weight: 850;
    cursor: pointer;
  }
.catalog-public-tile small {
    font-size: 13px;
  }
.catalog-public-popular-row {
    grid-auto-columns: 82px;
    gap: 16px;
    margin-right: -18px;
    padding-right: 18px;
  }
.catalog-public-collection img {
    border-radius: 12px;
  }
.catalog-public-collection strong {
    font-size: 12px;
  }
.catalog-public-offers.product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
.catalog-public-empty {
    min-height: 180px;
    padding: 28px 0;
  }
}
body.modal-open {
  overflow: hidden;
}
/* Buyer messages desktop layout final override. Keep this at EOF so older mobile/legacy rules cannot squeeze the desktop view. */
@media (min-width: 769px) {
  body[data-view="messages"] {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body[data-view="messages"] .page {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px 40px 40px !important;
    overflow: visible !important;
  }

  body[data-view="messages"] .buyer-messages-page {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: calc(100vh - 306px) !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body[data-view="messages"] .buyer-messages-crumbs {
    display: none !important;
  }

  body[data-view="messages"] .buyer-messages-head {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-view="messages"] .buyer-messages-head h1 {
    margin: 0 0 4px !important;
    font-size: 32px !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  body[data-view="messages"] .buyer-messages-head p {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  body[data-view="messages"] .buyer-messages-grid {
    display: grid !important;
    grid-template-columns: minmax(340px, 380px) minmax(560px, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    align-items: stretch !important;
  }

  body[data-view="messages"] .buyer-messages-grid.has-order {
    grid-template-columns: minmax(340px, 380px) minmax(560px, 1fr) minmax(300px, 340px) !important;
  }

  body[data-view="messages"] .buyer-messages-grid.empty-chat,
  body[data-view="messages"] .buyer-messages-grid.no-order {
    grid-template-columns: minmax(340px, 380px) minmax(560px, 1fr) !important;
  }

  body[data-view="messages"] .buyer-dialogs-panel,
  body[data-view="messages"] .buyer-chat-panel,
  body[data-view="messages"] .buyer-order-side,
  body[data-view="messages"] .buyer-order-side article {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    border: 1px solid #dde4f1 !important;
    border-radius: 12px !important;
    background: #fff !important;
  }

  body[data-view="messages"] .buyer-dialogs-panel {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  body[data-view="messages"] .buyer-message-search {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    align-items: center !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid #dde4f1 !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  body[data-view="messages"] .buyer-message-search span {
    font-size: 18px !important;
    color: #748096 !important;
  }

  body[data-view="messages"] .buyer-message-search input {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-message-filters {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body[data-view="messages"] .buyer-message-filters button {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  body[data-view="messages"] .buyer-dialog-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 2px 4px 0 !important;
  }

  body[data-view="messages"] .buyer-dialog-item {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 2px !important;
    align-items: center !important;
    min-height: 86px !important;
    padding: 12px 42px 12px 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    text-align: left !important;
  }

  body[data-view="messages"] .buyer-dialog-item.active {
    box-shadow: inset 3px 0 0 #4b2cff !important;
    background: #f4efff !important;
  }

  body[data-view="messages"] .buyer-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    font-size: 16px !important;
  }

  body[data-view="messages"] .buyer-avatar.support img {
    width: 52% !important;
    height: 52% !important;
  }

  body[data-view="messages"] .buyer-dialog-body {
    min-width: 0 !important;
  }

  body[data-view="messages"] .buyer-dialog-body b {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-dialog-body small,
  body[data-view="messages"] .buyer-dialog-body em {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  body[data-view="messages"] .buyer-dialog-item time {
    align-self: start !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    color: #5c6780 !important;
  }

  body[data-view="messages"] .buyer-dialog-pin {
    right: 14px !important;
    bottom: 14px !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
  }

  body[data-view="messages"] .buyer-chat-panel {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
  }

  body[data-view="messages"] .buyer-chat-placeholder {
    display: grid !important;
    place-items: center !important;
    height: 100% !important;
    color: #66708a !important;
    font-size: 16px !important;
  }

  body[data-view="messages"] .buyer-chat-top {
    display: grid !important;
    grid-template-columns: 48px minmax(0, auto) minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: center !important;
    min-height: 64px !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #dde4f1 !important;
  }

  body[data-view="messages"] .buyer-chat-top [data-buyer-chat-back] {
    display: none !important;
  }

  body[data-view="messages"] .buyer-chat-top .buyer-avatar {
    width: 42px !important;
    height: 42px !important;
  }

  body[data-view="messages"] .buyer-chat-title {
    min-width: 0 !important;
  }

  body[data-view="messages"] .buyer-chat-title strong {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-chat-title span {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    color: #5f6982 !important;
  }

  body[data-view="messages"] .buyer-chat-menu-wrap {
    position: relative !important;
    justify-self: end !important;
  }

  body[data-view="messages"] .buyer-chat-top [data-buyer-message-menu-toggle] {
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border: 1px solid #dde4f1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 18px !important;
  }

  body[data-view="messages"] .buyer-chat-menu {
    top: calc(100% + 8px) !important;
    right: 0 !important;
  }

  body[data-view="messages"] .buyer-order-drawer-toggle {
    display: none !important;
    align-self: flex-end !important;
    min-height: 38px !important;
    margin: 10px 16px 0 !important;
    padding: 0 14px !important;
    border: 1px solid #6a42ff !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #4b2cff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  body[data-view="messages"] .buyer-chat-order-strip {
    flex: 0 0 auto !important;
    margin: 14px 16px 0 !important;
    padding: 10px !important;
    min-height: 58px !important;
    border-radius: 10px !important;
  }

  body[data-view="messages"] .buyer-chat-order-strip img {
    width: 58px !important;
    height: 42px !important;
    border-radius: 6px !important;
  }

  body[data-view="messages"] .buyer-chat-order-strip b,
  body[data-view="messages"] .buyer-chat-order-strip strong {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-chat-order-strip small,
  body[data-view="messages"] .buyer-chat-order-strip em {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-chat-stream {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px 16px !important;
  }

  body[data-view="messages"] .buyer-chat-date {
    padding: 5px 14px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-bubble {
    max-width: min(68%, 430px) !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  body[data-view="messages"] .buyer-bubble time {
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-chat-order-actions {
    flex: 0 0 auto !important;
    padding: 0 16px 10px !important;
  }

  body[data-view="messages"] .buyer-chat-composer {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 50px !important;
    gap: 10px !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    min-height: 68px !important;
    margin-top: auto !important;
    padding: 10px 16px !important;
    border-top: 1px solid #dde4f1 !important;
    background: #fff !important;
  }

  body[data-view="messages"] .buyer-chat-composer button,
  body[data-view="messages"] .buyer-chat-composer input {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
  }

  body[data-view="messages"] .buyer-chat-composer .buyer-send {
    width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    border-radius: 50% !important;
    font-size: 18px !important;
  }

  body[data-view="messages"] .buyer-order-side {
    display: block !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body[data-view="messages"] .buyer-order-side article {
    height: auto !important;
    max-height: 100% !important;
    padding: 16px !important;
    overflow-y: auto !important;
  }

  body[data-view="messages"] .buyer-order-side h3 {
    margin: 0 0 12px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-order-drawer-backdrop,
  body[data-view="messages"] .buyer-order-drawer-close {
    display: none !important;
  }
}
@media (min-width: 769px) and (max-width: 1439px) {
body[data-view="messages"] .buyer-messages-grid.has-order {
    grid-template-columns: minmax(340px, 380px) minmax(560px, 1fr) !important;
  }
body[data-view="messages"] .buyer-order-drawer-toggle {
    display: inline-grid !important;
    place-items: center !important;
  }
body[data-view="messages"] .buyer-order-side {
    position: fixed !important;
    inset: 0 !important;
    z-index: 90 !important;
    display: none !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;
  }
body[data-view="messages"].buyer-order-drawer-open .buyer-order-side {
    display: block !important;
  }
body[data-view="messages"] .buyer-order-drawer-backdrop {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background: rgba(10, 14, 32, 0.42) !important;
  }
body[data-view="messages"] .buyer-order-side article {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: min(340px, calc(100vw - 40px)) !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 12px 0 0 12px !important;
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.16) !important;
  }
body[data-view="messages"] .buyer-order-drawer-close {
    display: grid !important;
    place-items: center !important;
    float: right !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid #dde4f1 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #081126 !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }
}
/* Keep the messages workspace compact,
but let the page reach the footer. */
@media (min-width: 769px) {
  body[data-view="messages"] {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

body[data-view="messages"] .page {
    overflow: visible !important;
  }
}
/* Admin orders and disputes */
.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.admin-filter-bar input,
.admin-filter-bar select,
.admin-note-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}
.admin-queue-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.admin-queue-tabs button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 8px;
  padding: 9px 12px;
  white-space: nowrap;
}
.admin-queue-tabs button.active {
  color: var(--ink);
  border-color: var(--violet);
}
.admin-queue-tabs b {
  margin-left: 6px;
  color: var(--violet);
}
.admin-data-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-data-row {
  display: grid;
  min-width: 1280px;
  grid-template-columns: 92px 126px 220px 130px 130px 100px 100px 100px 120px 126px 92px 126px 92px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.admin-disputes-table .admin-data-row {
  grid-template-columns: 92px 92px 150px 130px 130px 100px 120px 145px 126px 126px 126px 92px;
}
.admin-data-row.head {
  color: var(--muted);
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
}
.admin-data-row:last-child {
  border-bottom: 0;
}
.admin-product-cell {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.admin-product-cell img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}
.admin-product-cell em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}
.admin-pager,
.admin-detail-head,
.admin-note-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.admin-detail-head {
  margin: 0 0 14px;
}
.admin-detail-head h3 {
  margin: 0;
}
.admin-detail-head p {
  margin: 2px 0 0;
  color: var(--muted);
}
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.admin-timeline,
.admin-card .admin-message-row,
.admin-card .admin-note-row {
  display: grid;
  gap: 8px;
}
.admin-timeline-item,
.admin-message-row,
.admin-note-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
}
.admin-message-row.administrator {
  border-color: color-mix(in srgb, var(--violet), transparent 60%);
  background: color-mix(in srgb, var(--violet), transparent 90%);
}
.admin-message-row.administrator strong::before {
  content: "▣ ";
}
.admin-message-row.system {
  background: var(--soft);
  color: var(--muted);
}
.admin-timeline-item span,
.admin-message-row span,
.admin-note-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.admin-message-row p,
.admin-note-row p {
  margin: 8px 0 0;
}
.admin-warning {
  border: 1px solid color-mix(in srgb, var(--danger), transparent 60%);
  background: color-mix(in srgb, var(--danger), transparent 92%);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
.admin-filter-bar,
.admin-detail-grid {
    grid-template-columns: 1fr;
  }
}
.product-favorite.active {
  color: #4a22ff;
  border-color: rgba(74, 34, 255, 0.18);
  background: #fff;
}
.product-page-favorite {
  min-height: 46px;
  border: 1px solid #d9def0;
  border-radius: 10px;
  background: #fff;
  color: #4a22ff;
  font-weight: 800;
}
.product-page-favorite span {
  margin-right: 8px;
}
.buyer-messages-page {
  display: grid;
  gap: 18px;
  padding: 28px 0 0;
}
.buyer-messages-crumbs {
  display: flex;
  gap: 12px;
  color: #5d6680;
  font-weight: 700;
}
.buyer-messages-crumbs button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.buyer-messages-head h1 {
  margin: 28px 0 8px;
  color: #10152b;
  font-size: 34px;
  line-height: 1.1;
}
.buyer-messages-head p {
  margin: 0;
  color: #5d6680;
  font-size: 16px;
}
.buyer-messages-grid {
  display: grid;
  grid-template-columns: 450px minmax(520px, 1fr) 390px;
  gap: 18px;
  min-height: 620px;
}
.buyer-dialogs-panel,
.buyer-chat-panel,
.buyer-order-side article {
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  background: #fff;
}
.buyer-dialogs-panel {
  padding: 16px;
}
.buyer-message-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  color: #7b8399;
}
.buyer-message-search input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 16px;
}
.buyer-message-filters {
  display: flex;
  gap: 10px;
  margin: 14px 0;
  min-width: 0;
}
.buyer-message-filters button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #dfe3ee;
  border-radius: 8px;
  background: #fff;
  color: #4f5872;
  font-weight: 700;
  white-space: normal;
}
.buyer-message-filters .active {
  border-color: #4a22ff;
  background: #4a22ff;
  color: #fff;
}
.buyer-dialog-list {
  display: grid;
  overflow: auto;
}
.buyer-dialog-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #10152b;
  text-align: left;
}
.buyer-dialog-item.active {
  box-shadow: inset 3px 0 0 #4a22ff;
  background: #f5f1ff;
}
.buyer-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #efe8ff;
  color: #4a22ff;
  font-size: 22px;
  font-weight: 900;
}
.buyer-avatar img {
  width: 26px;
  height: 26px;
}
.buyer-dialog-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.buyer-dialog-body b,
.buyer-chat-top strong {
  font-size: 17px;
}
.buyer-dialog-body small,
.buyer-dialog-body em,
.buyer-chat-top span {
  overflow: hidden;
  color: #5d6680;
  font-size: 14px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.buyer-dialog-item time {
  align-self: start;
  color: #5d6680;
  font-size: 13px;
}
.buyer-dialog-item i {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #4a22ff;
  color: #fff;
  font-style: normal;
  font-weight: 800;
}
.buyer-chat-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.buyer-chat-placeholder,
.buyer-message-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: #69718a;
  text-align: center;
}
.buyer-chat-top {
  display: grid;
  grid-template-columns: 44px 48px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e8ebf3;
}
.buyer-chat-top button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-size: 30px;
}
.buyer-chat-order-strip {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto auto 24px;
  gap: 14px;
  align-items: center;
  margin: 14px 16px;
  padding: 12px;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  background: #fff;
  color: #10152b;
  text-align: left;
}
.buyer-chat-order-strip img {
  width: 78px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}
.buyer-chat-order-strip small,
.buyer-chat-order-strip em {
  display: block;
  color: #5d6680;
  font-style: normal;
}
.buyer-chat-order-strip em {
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff1df;
  color: #c35a00;
  font-weight: 700;
}
.buyer-chat-stream {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 10px 16px 16px;
}
.buyer-chat-date {
  align-self: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f0f1f5;
  color: #69718a;
}
.buyer-bubble {
  align-self: flex-start;
  max-width: 68%;
  padding: 12px 14px;
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  background: #f8f9fc;
}
.buyer-bubble.own {
  align-self: flex-end;
  border-color: #d8ccff;
  background: #f5f1ff;
}
.buyer-bubble time {
  display: block;
  width: max-content;
  min-width: max-content;
  margin-top: 6px;
  margin-left: auto;
  color: #69718a;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}
.buyer-chat-order-actions {
  display: grid;
  gap: 10px;
  padding: 0 16px 12px;
}
.buyer-chat-timer {
  padding: 12px;
  border: 1px solid #ffdcbf;
  border-radius: 10px;
  background: #fff4ea;
  color: #9a4300;
  font-weight: 700;
}
.buyer-chat-composer {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 52px minmax(0, 1fr) 58px;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid #e8ebf3;
}
.buyer-chat-composer button,
.buyer-chat-composer input {
  min-height: 52px;
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
}
.buyer-chat-composer input {
  padding: 0 16px;
}
.buyer-chat-composer .buyer-send {
  border: 0;
  border-radius: 50%;
  background: #4a22ff;
  color: #fff;
}
.buyer-order-side article {
  padding: 18px;
}
.buyer-order-side h3 {
  margin: 0 0 14px;
}
.buyer-order-side .buyer-chat-order-strip {
  grid-template-columns: 70px minmax(0, 1fr);
  margin: 0 0 14px;
}
.buyer-order-side .buyer-chat-order-strip strong,
.buyer-order-side .buyer-chat-order-strip em,
.buyer-order-side .buyer-chat-order-strip i {
  display: none;
}
/* Buyer messages final alignment pass. Keeps the shared header/nav intact while
   preventing the messages screen from creating horizontal overflow. */
@media (min-width: 769px) {
  body[data-view="messages"] .buyer-messages-grid {
    grid-template-columns: 450px minmax(560px, 1fr) 390px;
    align-items: stretch;
  }

  body[data-view="messages"] .buyer-dialogs-panel,
  body[data-view="messages"] .buyer-chat-panel,
  body[data-view="messages"] .buyer-order-side,
  body[data-view="messages"] .buyer-order-side article {
    min-width: 0;
  }

  body[data-view="messages"] .buyer-dialogs-panel {
    overflow: hidden;
  }

  body[data-view="messages"] .buyer-message-search {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
  }

  body[data-view="messages"] .buyer-message-search input {
    min-width: 0;
    background: transparent;
    font-size: 16px;
  }

  body[data-view="messages"] .buyer-message-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
  }

  body[data-view="messages"] .buyer-message-filters button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    font-size: 15px;
    line-height: 1.15;
  }

  body[data-view="messages"] .buyer-dialog-list {
    max-height: 486px;
  }
}
@media (max-width: 768px) {
body[data-view="messages"] {
    overflow-x: hidden;
  }
body[data-view="messages"] .page {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    padding-right: 18px !important;
    padding-left: 18px !important;
    overflow-x: hidden;
  }
body[data-view="messages"].buyer-message-chat-open .page {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
body[data-view="messages"] .buyer-messages-page,
body[data-view="messages"] .buyer-messages-grid,
body[data-view="messages"] .buyer-dialogs-panel,
body[data-view="messages"] .buyer-message-search,
body[data-view="messages"] .buyer-message-filters,
body[data-view="messages"] .buyer-dialog-list {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
body[data-view="messages"] .buyer-messages-page {
    padding-top: 34px;
    overflow-x: hidden;
  }
body[data-view="messages"] .buyer-messages-head {
    min-width: 0;
    overflow: hidden;
  }
body[data-view="messages"] .buyer-messages-head h1 {
    margin: 0 0 12px !important;
    font-size: 38px !important;
    line-height: 1.08 !important;
  }
body[data-view="messages"] .buyer-messages-head p {
    display: block;
    max-width: 100%;
    margin: 0;
    overflow: visible;
    color: #5d6680;
    font-size: 19px !important;
    line-height: 1.32;
    text-overflow: clip;
    white-space: normal;
  }
body[data-view="messages"] .buyer-message-search {
    min-height: 58px !important;
    margin: 28px 0 18px !important;
    padding: 0 16px !important;
    border-radius: 14px !important;
    overflow: hidden;
  }
body[data-view="messages"] .buyer-message-search span {
    flex: 0 0 auto;
    font-size: 28px;
    line-height: 1;
  }
body[data-view="messages"] .buyer-message-search input {
    min-width: 0;
    height: 100%;
    background: transparent !important;
    font-size: 22px !important;
  }
body[data-view="messages"] .buyer-message-filters {
    display: flex;
    gap: 14px !important;
    margin: 0 0 22px !important;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
body[data-view="messages"] .buyer-message-filters::-webkit-scrollbar {
    display: none;
  }
body[data-view="messages"] .buyer-message-filters button {
    flex: 0 0 auto !important;
    min-width: auto !important;
    min-height: 56px !important;
    padding: 0 24px !important;
    border-radius: 12px !important;
    font-size: 20px !important;
    line-height: 1.1;
    white-space: nowrap;
  }
body[data-view="messages"] .buyer-dialog-list {
    display: block;
    overflow: hidden;
    border: 1px solid #dfe3ee;
    border-radius: 20px !important;
    background: #fff;
  }
body[data-view="messages"] .buyer-dialog-item {
    width: 100%;
    grid-template-columns: 64px minmax(0, 1fr) auto !important;
    gap: 16px;
    min-height: 112px !important;
    padding: 18px 18px !important;
    border-radius: 0 !important;
  }
body[data-view="messages"] .buyer-avatar {
    width: 58px !important;
    height: 58px !important;
    font-size: 30px !important;
  }
body[data-view="messages"] .buyer-dialog-body b {
    font-size: 22px !important;
    line-height: 1.15;
  }
body[data-view="messages"] .buyer-dialog-body small,
body[data-view="messages"] .buyer-dialog-body em {
    max-width: 100%;
    font-size: 18px !important;
    line-height: 1.25;
  }
body[data-view="messages"] .buyer-dialog-item time {
    font-size: 17px !important;
  }
body[data-view="messages"] .buyer-dialog-item i {
    right: 22px !important;
    bottom: 28px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
  }
}
/* Buyer purchases */
.buyer-purchases-shell {
  width: 100%;
}
.buyer-purchases-page {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 18px 40px 56px;
}
.buyer-purchases-head h1 {
  margin: 0 0 8px;
  color: #10152b;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
}
.buyer-purchases-head p {
  margin: 0;
  color: #5d6680;
  font-size: 15px;
  line-height: 1.35;
}
.buyer-purchases-tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 260px 220px 48px;
  gap: 18px;
  align-items: center;
  max-width: 1420px;
}
.buyer-purchases-search,
.buyer-purchases-select {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #dfe3ee;
  border-radius: 8px;
  background: #fff;
  color: #69718a;
}
.buyer-purchases-search span::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 8px 8px 0 -6px currentColor;
}
.buyer-purchases-select span::before {
  content: "";
  display: block;
  width: 18px;
  height: 15px;
  background:
    linear-gradient(currentColor, currentColor) 0 1px / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 7px / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 13px / 18px 2px no-repeat;
}
.buyer-purchases-search input,
.buyer-purchases-select select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #10152b;
  font: inherit;
  font-size: 15px;
}
.buyer-purchases-filter {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #dfe3ee;
  border-radius: 8px;
  background: #fff;
  color: #10152b;
}
.buyer-purchases-filter span {
  position: relative;
  width: 20px;
  height: 18px;
}
.buyer-purchases-filter span::before,
.buyer-purchases-filter span::after {
  content: "";
  position: absolute;
  left: 2px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.buyer-purchases-filter span::before {
  top: 4px;
  box-shadow: 6px 5px 0 currentColor;
}
.buyer-purchases-filter span::after {
  bottom: 2px;
  width: 8px;
  left: 6px;
}
.buyer-purchases-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #dfe3ee;
  max-width: 1420px;
}
.buyer-purchases-tabs button {
  position: relative;
  min-height: 44px;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  color: #5d6680;
  font-size: 15px;
  font-weight: 800;
}
.buyer-purchases-tabs button.active {
  color: #4a22ff;
}
.buyer-purchases-tabs button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #4a22ff;
}
.buyer-purchases-tabs span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  place-items: center;
  border-radius: 999px;
  background: #f0eefc;
  color: inherit;
  font-size: 12px;
}
.buyer-purchases-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.buyer-purchases-list {
  min-width: 0;
}
.buyer-purchases-table {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  background: #fff;
}
.buyer-purchase-row {
  display: grid;
  grid-template-columns: 126px minmax(240px, 1.35fr) 138px 96px 190px 230px;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid #eef0f6;
  border-radius: 8px;
  color: #10152b;
}
.buyer-purchase-row > div,
.buyer-purchase-row span {
  min-width: 0;
}
.buyer-purchase-row strong,
.buyer-purchase-product b {
  display: block;
  color: #10152b;
  font-size: 15px;
  line-height: 1.25;
}
.buyer-purchase-row small,
.buyer-purchase-product small,
.buyer-purchase-seller small,
.buyer-purchase-card small,
.buyer-purchase-card p {
  display: block;
  margin-top: 4px;
  color: #5d6680;
  font-size: 13px;
  line-height: 1.35;
}
.buyer-purchase-product {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.buyer-purchase-product img,
.buyer-purchase-thumb,
.buyer-purchase-card-main img {
  width: 86px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef1f7;
}
.buyer-purchase-thumb {
  display: block;
}
.buyer-purchase-status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 8px;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.1;
}
.buyer-purchase-status.attention {
  background: #fff0dd;
  color: #e05b00;
}
.buyer-purchase-status.pending {
  background: #f0ebff;
  color: #4a22ff;
}
.buyer-purchase-status.done {
  background: #dcf8e6;
  color: #00a63c;
}
.buyer-purchase-status.danger {
  background: #ffe8e3;
  color: #e03421;
}
.buyer-purchase-row-actions,
.buyer-purchase-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.buyer-purchase-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4a22ff;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}
.buyer-purchase-action.primary {
  background: #ff3b22;
  color: #fff;
}
.buyer-purchase-action.outline {
  border: 1px solid #4a22ff;
  background: #fff;
}
.buyer-purchase-action.text {
  padding-right: 8px;
  padding-left: 8px;
}
.buyer-purchase-action.icon-only {
  width: 42px;
  padding: 0;
  border: 1px solid #dfe3ee;
  background: #fff;
}
.buyer-purchase-action img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.buyer-purchases-aside {
  display: grid;
  gap: 20px;
}
.buyer-purchases-aside article {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  background: #fff;
}
.buyer-purchases-attention {
  border-color: #ffd7bd !important;
  background: #fff8f1 !important;
}
.buyer-purchases-aside h2 {
  margin: 0;
  color: #10152b;
  font-size: 18px;
}
.buyer-purchases-aside p {
  margin: 0;
  color: #10152b;
  font-size: 15px;
}
.buyer-purchases-aside button {
  justify-self: start;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #4a22ff;
  font-weight: 900;
}
.buyer-purchases-cards {
  display: none;
}
.buyer-purchases-empty,
.buyer-purchases-loading,
.buyer-purchases-error {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 40px;
  border: 1px dashed #d9deea;
  border-radius: 12px;
  background: #fff;
  color: #5d6680;
  text-align: center;
}
.buyer-purchases-empty strong,
.buyer-purchases-error strong {
  color: #10152b;
  font-size: 18px;
}
.buyer-purchases-empty p,
.buyer-purchases-error p {
  margin: 8px 0 0;
}
.buyer-purchases-empty-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
  place-items: center;
  color: #4f35f2;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(90deg);
}
.buyer-purchases-more {
  display: block;
  min-height: 44px;
  margin: 18px auto 0;
  padding: 0 24px;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  background: #fff;
  color: #4a22ff;
  font-weight: 900;
}
.buyer-purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
}
.buyer-purchase-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 12, 28, 0.45);
}
.buyer-purchase-modal article {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(12, 18, 40, 0.22);
}
.buyer-purchase-modal h2,
.buyer-purchase-modal p {
  margin: 0;
}
.buyer-purchase-modal div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 1439px) and (min-width: 769px) {
.buyer-purchases-layout {
    grid-template-columns: minmax(0, 1fr);
  }
.buyer-purchases-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.buyer-purchase-row {
    grid-template-columns: 112px minmax(220px, 1fr) 126px 88px 170px 190px;
  }
}
@media (max-width: 768px) {
body[data-view="purchases"] {
    overflow-x: hidden;
    background: #fff;
  }
body[data-view="purchases"] .site-header {
    display: none;
  }
body[data-view="purchases"] .page {
    width: 100%;
    max-width: 100vw;
    padding: 0 !important;
    overflow-x: hidden;
  }
body[data-view="purchases"] .lootava-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
.buyer-purchases-page {
    gap: 18px;
    padding: 32px 18px calc(96px + env(safe-area-inset-bottom));
  }
.buyer-purchases-head h1 {
    margin-bottom: 10px;
    font-size: 34px;
    line-height: 1.08;
  }
.buyer-purchases-head p {
    font-size: 17px;
    line-height: 1.35;
  }
.buyer-purchases-tools {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 14px;
    max-width: none;
  }
.buyer-purchases-search {
    grid-column: 1 / -1;
    min-height: 58px;
    border-radius: 12px;
  }
.buyer-purchases-search input {
    font-size: 18px;
  }
.buyer-purchases-select {
    min-height: 54px;
    border-radius: 12px;
  }
.buyer-purchases-select.sort {
    display: none;
    grid-column: 1 / -1;
  }
.buyer-purchases-select.sort.open {
    display: grid;
  }
.buyer-purchases-filter {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }
.buyer-purchases-tabs {
    gap: 12px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
.buyer-purchases-tabs::-webkit-scrollbar {
    display: none;
  }
.buyer-purchases-tabs button {
    flex: 0 0 auto;
    min-height: 50px;
    padding: 0 18px 10px;
    border-radius: 12px 12px 0 0;
    font-size: 15px;
    white-space: nowrap;
  }
.buyer-purchases-tabs button.active {
    background: #f4efff;
  }
.buyer-purchases-layout {
    display: block;
  }
.buyer-purchases-aside,
.buyer-purchases-table {
    display: none;
  }
.buyer-purchases-cards {
    display: grid;
    gap: 14px;
  }
.buyer-purchase-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dfe3ee;
    border-radius: 12px;
    background: #fff;
    color: #10152b;
  }
.buyer-purchase-card-top,
.buyer-purchase-card-status {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
.buyer-purchase-card-top b {
    font-size: 20px;
    white-space: nowrap;
  }
.buyer-purchase-card-main {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }
.buyer-purchase-card-main img,
.buyer-purchase-card-main .buyer-purchase-thumb {
    width: 96px;
    height: 78px;
  }
.buyer-purchase-card h3 {
    margin: 0;
    color: #10152b;
    font-size: 17px;
    line-height: 1.25;
  }
.buyer-purchase-card p {
    margin: 5px 0 0;
  }
.buyer-purchase-seller-dot {
    display: block;
    margin-top: 10px;
    color: #10152b;
    font-size: 15px;
    font-weight: 800;
  }
.buyer-purchase-card-status {
    align-items: center;
  }
.buyer-purchase-card-status small {
    max-width: 52%;
    text-align: right;
  }
.buyer-purchase-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
.buyer-purchase-action.wide {
    grid-column: 1 / -1;
    min-height: 50px;
  }
.buyer-purchase-action.primary.wide {
    min-height: 52px;
  }
.buyer-purchases-empty,
.buyer-purchases-loading,
.buyer-purchases-error {
    min-height: 280px;
    padding: 32px 18px;
    border-radius: 14px;
  }
.buyer-purchase-modal article {
    padding: 22px;
  }
.buyer-purchase-modal div {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) {
body[data-view="messages"] .buyer-messages-page {
    height: auto !important;
    min-height: calc(100vh - 420px) !important;
    overflow: visible !important;
  }
body[data-view="messages"] .buyer-messages-grid {
    height: calc(100vh - 360px) !important;
    min-height: 520px !important;
  }
}
/* Buyer chat compact correction. This block is intentionally last so older
   oversized chat rules cannot stretch message bubbles or composer controls. */
body[data-view="messages"] .buyer-chat-composer [data-buyer-emoji] {
  display: none !important;
}
@media (min-width: 769px) {
body[data-view="messages"] .buyer-chat-panel {
    display: flex !important;
    flex-direction: column;
    min-height: 0;
  }
body[data-view="messages"] .buyer-chat-top {
    grid-template-columns: 42px 46px minmax(0, 1fr) 42px !important;
    gap: 10px !important;
    min-height: 72px !important;
    padding: 12px 16px !important;
  }
body[data-view="messages"] .buyer-chat-top button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    font-size: 24px !important;
  }
body[data-view="messages"] .buyer-chat-top .buyer-avatar {
    width: 46px !important;
    height: 46px !important;
    font-size: 20px !important;
  }
body[data-view="messages"] .buyer-chat-top .buyer-avatar img {
    width: 24px !important;
    height: 24px !important;
  }
body[data-view="messages"] .buyer-chat-top div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    min-width: 0;
  }
body[data-view="messages"] .buyer-chat-top strong {
    max-width: 260px;
    overflow: hidden;
    font-size: 18px !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
body[data-view="messages"] .buyer-chat-top span {
    overflow: hidden;
    font-size: 15px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
body[data-view="messages"] .buyer-chat-stream {
    min-height: 0;
    padding: 12px 16px !important;
  }
body[data-view="messages"] .buyer-chat-date {
    padding: 5px 12px !important;
    font-size: 13px !important;
  }
body[data-view="messages"] .buyer-bubble {
    max-width: 64% !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
body[data-view="messages"] .buyer-bubble time {
    width: max-content !important;
    min-width: max-content !important;
    margin-top: 4px !important;
    margin-left: auto !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
body[data-view="messages"] .buyer-chat-composer {
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) 58px !important;
    grid-auto-rows: 50px !important;
    gap: 10px !important;
    align-items: center !important;
    height: auto !important;
    min-height: 74px !important;
    max-height: 82px !important;
    padding: 12px 16px !important;
  }
body[data-view="messages"] .buyer-chat-composer button,
body[data-view="messages"] .buyer-chat-composer input {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }
body[data-view="messages"] .buyer-chat-composer .buyer-send {
    width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    border-radius: 50% !important;
    font-size: 22px !important;
  }

  body[data-view="messages"] .buyer-chat-loading {
    display: grid !important;
    flex: 1 1 auto !important;
    min-height: 220px !important;
    place-items: center !important;
    color: #5f6982 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }
body[data-view="messages"] .buyer-dialog-item {
    min-height: 74px !important;
    padding: 10px 12px !important;
  }
}

.buyer-chat-report-modal,
.buyer-chat-review-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.buyer-chat-report-backdrop,
.buyer-chat-review-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 13, 36, 0.36);
}

.buyer-chat-report-modal article,
.buyer-chat-review-modal article {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid #dfe4ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 64px rgba(29, 36, 64, 0.22);
}

.buyer-chat-report-modal h2,
.buyer-chat-review-modal h2 {
  margin: 0;
  color: #10152b;
  font-size: 24px;
  line-height: 1.15;
}

.buyer-chat-report-modal p,
.buyer-chat-review-modal p {
  margin: 0;
  color: #5f6982;
  font-size: 14px;
  line-height: 1.35;
}

.buyer-chat-report-modal form,
.buyer-chat-review-modal form {
  display: grid;
  gap: 12px;
}

.buyer-chat-report-modal textarea,
.buyer-chat-review-modal textarea {
  width: 100%;
  min-height: 128px;
  padding: 12px;
  border: 1px solid #dfe4ef;
  border-radius: 10px;
  color: #10152b;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  resize: vertical;
  outline: 0;
}

.buyer-chat-report-modal form > div,
.buyer-chat-review-modal form > div,
.buyer-chat-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.buyer-chat-report-modal .secondary-btn,
.buyer-chat-review-modal .secondary-btn,
.buyer-chat-confirm-modal .secondary-btn {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #dfe4ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  color: #10152b;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}
@media (max-width: 768px) {
body[data-view="messages"].buyer-message-chat-open .buyer-chat-mobile {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
  }
body[data-view="messages"].buyer-message-chat-open .buyer-chat-top {
    grid-template-columns: 44px 54px minmax(0, 1fr) 44px !important;
    gap: 10px !important;
    min-height: 76px !important;
    padding: 10px 16px !important;
  }
body[data-view="messages"].buyer-message-chat-open .buyer-chat-top button {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    font-size: 24px !important;
  }
body[data-view="messages"].buyer-message-chat-open .buyer-chat-top .buyer-avatar {
    width: 54px !important;
    height: 54px !important;
    font-size: 24px !important;
  }
body[data-view="messages"].buyer-message-chat-open .buyer-chat-top .buyer-avatar img {
    width: 26px !important;
    height: 26px !important;
  }
body[data-view="messages"].buyer-message-chat-open .buyer-chat-top strong {
    font-size: 21px !important;
    line-height: 1.1 !important;
  }
body[data-view="messages"].buyer-message-chat-open .buyer-chat-top span {
    margin-top: 2px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }
body[data-view="messages"].buyer-message-chat-open .buyer-chat-stream {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 16px !important;
  }
body[data-view="messages"].buyer-message-chat-open .buyer-chat-date {
    padding: 5px 13px !important;
    font-size: 14px !important;
  }
body[data-view="messages"].buyer-message-chat-open .buyer-bubble {
    max-width: 72% !important;
    padding: 11px 13px !important;
    border-radius: 12px !important;
    font-size: 17px !important;
    line-height: 1.32 !important;
  }
body[data-view="messages"].buyer-message-chat-open .buyer-bubble time {
    width: max-content !important;
    min-width: max-content !important;
    margin-top: 4px !important;
    margin-left: auto !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
body[data-view="messages"].buyer-message-chat-open .buyer-chat-composer {
    grid-template-columns: 52px minmax(0, 1fr) 60px !important;
    grid-auto-rows: 52px !important;
    gap: 10px !important;
    align-items: center !important;
    min-height: 76px !important;
    max-height: 88px !important;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom)) !important;
  }
body[data-view="messages"].buyer-message-chat-open .buyer-chat-composer button,
body[data-view="messages"].buyer-message-chat-open .buyer-chat-composer input {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
  }
body[data-view="messages"].buyer-message-chat-open .buyer-chat-composer .buyer-send {
    width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    border-radius: 50% !important;
    font-size: 22px !important;
  }
body[data-view="messages"] .buyer-dialog-item {
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    gap: 12px !important;
    min-height: 84px !important;
    padding: 12px 14px !important;
  }
body[data-view="messages"] .buyer-avatar {
    width: 52px !important;
    height: 48px !important;
    font-size: 24px !important;
  }
body[data-view="messages"] .buyer-dialog-body b {
    font-size: 18px !important;
  }
body[data-view="messages"] .buyer-dialog-body small,
body[data-view="messages"] .buyer-dialog-body em {
    font-size: 15px !important;
  }
body[data-view="messages"] .buyer-dialog-item time {
    font-size: 14px !important;
  }
}
/* Buyer message pins and menu parity with seller dialogs. */
body[data-view="messages"] .buyer-chat-menu-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
}
body[data-view="messages"] .buyer-chat-title {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2px !important;
  min-width: 0;
}
body[data-view="messages"] .buyer-chat-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(23, 33, 58, 0.14);
}
body[data-view="messages"] .buyer-chat-menu[hidden] {
  display: none !important;
}
body[data-view="messages"] .buyer-chat-menu button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #151827 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: left;
}
body[data-view="messages"] .buyer-chat-menu button:hover,
body[data-view="messages"] .buyer-chat-menu button:focus-visible {
  background: #f7f5ff !important;
  color: #4a22ff !important;
  outline: none;
}
body[data-view="messages"] .buyer-chat-menu button.danger {
  color: #ff402b !important;
}
body[data-view="messages"] .buyer-dialog-pinned {
  display: none !important;
  align-items: center;
  gap: 6px;
  color: #4a22ff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}
body[data-view="messages"] .buyer-dialog-pinned img {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: invert(34%) sepia(95%) saturate(2164%) hue-rotate(242deg) brightness(99%) contrast(94%) !important;
  opacity: 1 !important;
}
body[data-view="messages"] .buyer-dialog-pin {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: grid !important;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
body[data-view="messages"] .buyer-dialog-pin img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.72;
}
body[data-view="messages"] .buyer-dialog-pin:hover,
body[data-view="messages"] .buyer-dialog-pin:focus-visible {
  background: #f0edff;
  opacity: 1;
  outline: none;
  transform: translateY(-1px);
}
body[data-view="messages"] .buyer-dialog-pin.pinned img,
body[data-view="messages"] .buyer-dialog-pin:hover img,
body[data-view="messages"] .buyer-dialog-pin:focus-visible img {
  opacity: 1;
}
body[data-view="messages"] .buyer-dialog-pin.pinned img {
  filter: invert(34%) sepia(95%) saturate(2164%) hue-rotate(242deg) brightness(99%) contrast(94%);
}
body[data-view="messages"] .buyer-avatar.support {
  display: grid !important;
  place-items: center !important;
  overflow: hidden;
}
body[data-view="messages"] .buyer-avatar.support img {
  display: block !important;
  width: 54% !important;
  height: 54% !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
body[data-view="messages"] .buyer-chat-stream {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
body[data-view="messages"] .buyer-chat-composer {
  flex: 0 0 auto !important;
  margin-top: auto !important;
}
@media (min-width: 769px) {
body[data-view="messages"] .buyer-message-filters button {
    padding-right: 8px !important;
    padding-left: 8px !important;
    font-size: 14px !important;
  }
body[data-view="messages"] .buyer-dialog-item {
    padding-right: 48px !important;
  }
}
@media (max-width: 768px) {
body[data-view="messages"] .buyer-dialog-item {
    padding-right: 50px !important;
  }
body[data-view="messages"] .buyer-dialog-pinned {
    font-size: 14px !important;
    align-items: center !important;
  }
body[data-view="messages"] .buyer-dialog-pin {
    right: 14px !important;
    bottom: 14px !important;
    display: grid !important;
  }
}
/* Final desktop override for buyer messages. Must stay last. */
@media (min-width: 769px) {
  body[data-view="messages"] {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body[data-view="messages"] .page {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px 40px 40px !important;
    overflow: visible !important;
  }

  body[data-view="messages"] .buyer-messages-page {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: calc(100vh - 306px) !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body[data-view="messages"] .buyer-messages-crumbs {
    display: none !important;
  }

  body[data-view="messages"] .buyer-messages-head {
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-view="messages"] .buyer-messages-head h1 {
    margin: 0 0 4px !important;
    font-size: 32px !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  body[data-view="messages"] .buyer-messages-head p {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  body[data-view="messages"] .buyer-messages-grid {
    display: grid !important;
    grid-template-columns: minmax(340px, 380px) minmax(560px, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    align-items: stretch !important;
  }

  body[data-view="messages"] .buyer-messages-grid.has-order {
    grid-template-columns: minmax(340px, 380px) minmax(560px, 1fr) minmax(300px, 340px) !important;
  }

  body[data-view="messages"] .buyer-messages-grid.empty-chat,
  body[data-view="messages"] .buyer-messages-grid.no-order {
    grid-template-columns: minmax(340px, 380px) minmax(560px, 1fr) !important;
  }

  body[data-view="messages"] .buyer-dialogs-panel,
  body[data-view="messages"] .buyer-chat-panel,
  body[data-view="messages"] .buyer-order-side article {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    border: 1px solid #dde4f1 !important;
    border-radius: 12px !important;
    background: #fff !important;
  }

  body[data-view="messages"] .buyer-dialogs-panel {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  body[data-view="messages"] .buyer-message-search {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    align-items: center !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid #dde4f1 !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  body[data-view="messages"] .buyer-message-search input {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 15px !important;
  }

  body[data-view="messages"] .buyer-message-filters {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body[data-view="messages"] .buyer-message-filters button {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  body[data-view="messages"] .buyer-dialog-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 2px 4px 0 !important;
  }

  body[data-view="messages"] .buyer-dialog-item {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 2px !important;
    align-items: center !important;
    min-height: 86px !important;
    padding: 12px 42px 12px 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    text-align: left !important;
  }

  body[data-view="messages"] .buyer-dialog-item.active {
    background: #f4efff !important;
  }

  body[data-view="messages"] .buyer-dialog-item.active {
    box-shadow: inset 3px 0 0 #4b2cff !important;
  }

  body[data-view="messages"] .buyer-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    font-size: 16px !important;
  }

  body[data-view="messages"] .buyer-avatar.support img {
    width: 52% !important;
    height: 52% !important;
  }

  body[data-view="messages"] .buyer-dialog-body,
  body[data-view="messages"] .buyer-chat-title {
    min-width: 0 !important;
  }

  body[data-view="messages"] .buyer-dialog-body b {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-dialog-body small,
  body[data-view="messages"] .buyer-dialog-body em {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  body[data-view="messages"] .buyer-dialog-item time {
    align-self: start !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    color: #5c6780 !important;
  }

  body[data-view="messages"] .buyer-dialog-pin {
    right: 14px !important;
    bottom: 14px !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
  }

  body[data-view="messages"] .buyer-chat-panel {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
  }

  body[data-view="messages"] .buyer-chat-placeholder {
    display: grid !important;
    place-items: center !important;
    height: 100% !important;
    color: #66708a !important;
    font-size: 16px !important;
  }

  body[data-view="messages"] .buyer-chat-top {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: center !important;
    min-height: 64px !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #dde4f1 !important;
  }

  body[data-view="messages"] .buyer-chat-top [data-buyer-chat-back] {
    display: none !important;
  }

  body[data-view="messages"] .buyer-chat-top .buyer-avatar {
    width: 42px !important;
    height: 42px !important;
  }

  body[data-view="messages"] .buyer-chat-title strong {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-chat-title span {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    color: #5f6982 !important;
  }

  body[data-view="messages"] .buyer-chat-menu-wrap {
    position: relative !important;
    justify-self: end !important;
  }

  body[data-view="messages"] .buyer-chat-top [data-buyer-message-menu-toggle] {
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border: 1px solid #dde4f1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 18px !important;
  }

  body[data-view="messages"] .buyer-chat-menu {
    top: calc(100% + 8px) !important;
    right: 0 !important;
  }

  body[data-view="messages"] .buyer-order-drawer-toggle {
    display: none !important;
    align-self: flex-end !important;
    min-height: 38px !important;
    margin: 10px 16px 0 !important;
    padding: 0 14px !important;
    border: 1px solid #6a42ff !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #4b2cff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  body[data-view="messages"] .buyer-chat-order-strip {
    flex: 0 0 auto !important;
    margin: 14px 16px 0 !important;
    padding: 10px !important;
    min-height: 58px !important;
    border-radius: 10px !important;
  }

  body[data-view="messages"] .buyer-chat-order-strip img {
    width: 58px !important;
    height: 42px !important;
    border-radius: 6px !important;
  }

  body[data-view="messages"] .buyer-chat-order-strip b,
  body[data-view="messages"] .buyer-chat-order-strip strong {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-chat-order-strip small,
  body[data-view="messages"] .buyer-chat-order-strip em {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-chat-stream {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px 16px !important;
  }

  body[data-view="messages"] .buyer-chat-date {
    padding: 5px 14px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-bubble {
    max-width: min(68%, 430px) !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  body[data-view="messages"] .buyer-bubble time {
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-chat-order-actions {
    flex: 0 0 auto !important;
    padding: 0 16px 10px !important;
  }

  body[data-view="messages"] .buyer-chat-composer {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 50px !important;
    gap: 10px !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    min-height: 68px !important;
    margin-top: auto !important;
    padding: 10px 16px !important;
    border-top: 1px solid #dde4f1 !important;
    background: #fff !important;
  }

  body[data-view="messages"] .buyer-chat-composer button,
  body[data-view="messages"] .buyer-chat-composer input {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
  }

  body[data-view="messages"] .buyer-chat-composer .buyer-send {
    width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    border-radius: 50% !important;
    font-size: 18px !important;
  }

  body[data-view="messages"] .buyer-order-side {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body[data-view="messages"] .buyer-order-side article {
    height: auto !important;
    max-height: 100% !important;
    padding: 16px !important;
    overflow-y: auto !important;
  }

  body[data-view="messages"] .buyer-order-side h3 {
    margin: 0 0 12px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  body[data-view="messages"] .buyer-order-drawer-backdrop,
  body[data-view="messages"] .buyer-order-drawer-close {
    display: none !important;
  }
}
@media (min-width: 769px) and (max-width: 1439px) {
body[data-view="messages"] .buyer-messages-grid.has-order {
    grid-template-columns: minmax(340px, 380px) minmax(560px, 1fr) !important;
  }
body[data-view="messages"] .buyer-order-drawer-toggle {
    display: inline-grid !important;
    place-items: center !important;
  }
body[data-view="messages"] .buyer-order-side {
    position: fixed !important;
    inset: 0 !important;
    z-index: 90 !important;
    display: none !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;
  }
body[data-view="messages"].buyer-order-drawer-open .buyer-order-side {
    display: block !important;
  }
body[data-view="messages"] .buyer-order-drawer-backdrop {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background: rgba(10, 14, 32, 0.42) !important;
  }
body[data-view="messages"] .buyer-order-side article {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: min(340px, calc(100vw - 40px)) !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 12px 0 0 12px !important;
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.16) !important;
  }
body[data-view="messages"] .buyer-order-drawer-close {
    display: grid !important;
    place-items: center !important;
    float: right !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid #dde4f1 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #081126 !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }
}
/* Messages page footer reachability fix: keep page scroll available. */
@media (min-width: 769px) {
  body[data-view="messages"] {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body[data-view="messages"] .page {
    overflow: visible !important;
  }
}
/* restore: admin shell base layout */
.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  background: #f6f7fb;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 22px;
  height: 100vh;
  padding: 28px 12px;
  border-right: 1px solid #dfe4ee;
  background: #fff;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 16px;
  border-bottom: 1px solid #edf0f6;
}

.admin-brand span {
  color: #11131d;
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1px;
}

.admin-brand em {
  padding: 6px 8px;
  color: var(--violet);
  border-radius: 6px;
  background: #eeeafe;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.admin-menu {
  display: grid;
  align-content: start;
  gap: 6px;
}

.admin-menu button,
.admin-logout {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 16px;
  color: #2d3345;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.admin-menu button span {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #121827;
  font-size: 20px;
}

.admin-menu button span img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.74;
}

.admin-menu button b {
  margin-left: auto;
  min-width: 22px;
  padding: 3px 6px;
  color: #fff;
  border-radius: 999px;
  background: #ff4438;
  font-size: 12px;
  text-align: center;
}

.admin-menu button.active {
  color: #fff;
  background: linear-gradient(135deg, #5138f5, #643cff);
  box-shadow: 0 10px 24px rgba(81, 56, 245, 0.18);
}

.admin-menu button.active span {
  color: #fff;
}

.admin-menu button.active span img {
  opacity: 0.92;
  filter: brightness(0) invert(1);
}

.admin-profile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e0e5ef;
  border-radius: 8px;
}

.admin-avatar,
.admin-user-menu span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  border-radius: 50%;
  background: #222838;
  font-weight: 800;
}

.admin-profile strong,
.admin-profile small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-profile small {
  color: #687087;
  font-size: 12px;
}

.admin-page {
  min-width: 0;
  overflow-x: clip;
}

.admin-topbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 520px) auto auto auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 22px 28px;
  border-bottom: 1px solid #dfe4ee;
  background: #fff;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 24px;
}

.admin-topbar p {
  margin: 4px 0 0;
  color: #687087;
}

.admin-search {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: #fff;
}

.admin-search input {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
}

.admin-bell,
.admin-user-menu {
  position: relative;
  min-width: 48px;
  height: 48px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
}

.admin-bell b {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 20px;
  padding: 2px 5px;
  color: #fff;
  border-radius: 999px;
  background: #ff4438;
  font-size: 11px;
}

.admin-user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.admin-content {
  display: grid;
  gap: 18px;
  padding: 22px 28px 34px;
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: grid;
  gap: 18px;
}


/* Admin overview mobile polish. Keep near EOF after legacy admin blocks. */
@media (max-width: 768px) {
  body[data-view="admin"] .admin-shell {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  body[data-view="admin"] .admin-shell,
  body[data-view="admin"] .admin-page,
  body[data-view="admin"] .admin-content,
  body[data-view="admin"] .admin-tab,
  body[data-view="admin"] #adminOverviewRoot {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body[data-view="admin"] .admin-mobile-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 120 !important;
    grid-template-columns: 42px 122px 1px minmax(0, 1fr) 42px !important;
    min-height: 82px !important;
    background: #fff !important;
  }

  body[data-view="admin"] .admin-mobile-header strong {
    font-size: 18px !important;
    font-weight: 650 !important;
    text-overflow: clip !important;
  }

  body[data-view="admin"] .admin-drawer {
    width: min(88vw, 360px) !important;
    overflow-x: hidden !important;
  }

  body[data-view="admin"].admin-drawer-open .admin-mobile-header {
    display: none !important;
  }

  body[data-view="admin"] .admin-drawer-backdrop {
    z-index: 130 !important;
  }

  body[data-view="admin"] .admin-drawer {
    z-index: 140 !important;
    inset: 0 auto 0 0 !important;
  }

  body[data-view="admin"] .admin-drawer-head {
    grid-template-columns: minmax(0, 1fr) 42px !important;
    gap: 10px !important;
  }

  body[data-view="admin"] .admin-drawer-head img {
    width: 150px !important;
  }

  body[data-view="admin"] .admin-drawer-head strong {
    display: none !important;
  }

  body[data-view="admin"] #adminOverviewRoot {
    gap: 18px !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  body[data-view="admin"] #adminOverviewRoot *,
  body[data-view="admin"] #adminOverviewRoot *::before,
  body[data-view="admin"] #adminOverviewRoot *::after {
    box-sizing: border-box !important;
  }

  body[data-view="admin"] .admin-content:has([data-admin-panel="overview"].active #adminOverviewRoot) {
    padding: 32px 14px 42px !important;
    overflow-x: hidden !important;
  }

  body[data-view="admin"] .admin-dashboard-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    align-items: start !important;
  }

  body[data-view="admin"] .admin-dashboard-head h1 {
    margin: 0 0 10px !important;
    font-size: 32px !important;
    line-height: 1.05 !important;
  }

  body[data-view="admin"] .admin-dashboard-head p {
    max-width: 100% !important;
    overflow: visible !important;
    color: #667087 !important;
    font-size: 18px !important;
    line-height: 1.28 !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  body[data-view="admin"] .admin-dashboard-actions {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }

  body[data-view="admin"] .admin-dashboard-actions select {
    width: 190px !important;
    min-width: 190px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 42px 0 18px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
  }

  body[data-view="admin"] .admin-dashboard-actions .ghost-btn {
    display: none !important;
  }

  body[data-view="admin"] .admin-mobile-kpi-track {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body[data-view="admin"] .admin-kpi {
    display: grid !important;
    box-sizing: border-box !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 3px 8px !important;
    justify-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 78px !important;
    padding: 10px !important;
    text-align: left !important;
  }

  body[data-view="admin"] .admin-kpi > span {
    grid-row: span 3 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }

  body[data-view="admin"] .admin-kpi > span img {
    width: 26px !important;
    height: 26px !important;
  }

  body[data-view="admin"] .admin-kpi small,
  body[data-view="admin"] .admin-kpi em {
    overflow: hidden !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.12 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body[data-view="admin"] .admin-kpi strong {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  body[data-view="admin"] .admin-kpi-dots {
    display: none !important;
  }

  body[data-view="admin"] .admin-dashboard-grid,
  body[data-view="admin"] .admin-dashboard-lower {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body[data-view="admin"] .admin-card,
  body[data-view="admin"] .admin-attention-panel,
  body[data-view="admin"] .admin-mobile-disputes {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 16px !important;
    overflow: hidden !important;
  }

  body[data-view="admin"] .admin-dashboard-disputes {
    display: none !important;
  }

  body[data-view="admin"] .admin-attention-panel {
    display: grid !important;
    gap: 12px !important;
  }

  body[data-view="admin"] .admin-attention-panel h2,
  body[data-view="admin"] .admin-mobile-disputes .section-head h2,
  body[data-view="admin"] .admin-moderation-summary h2,
  body[data-view="admin"] .admin-team-summary h2,
  body[data-view="admin"] .admin-actions-summary h2 {
    display: block !important;
    margin: 0 !important;
    font-size: 26px !important;
    line-height: 1.12 !important;
  }

  body[data-view="admin"] .admin-attention-line {
    box-sizing: border-box !important;
    grid-template-columns: 42px 28px minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 62px !important;
    padding: 8px 10px !important;
    overflow: hidden !important;
    font-size: 14px !important;
  }

  body[data-view="admin"] .admin-attention-line span {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }

  body[data-view="admin"] .admin-attention-line b {
    font-size: 18px !important;
  }

  body[data-view="admin"] .admin-attention-line em {
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: 14px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body[data-view="admin"] .admin-attention-line i {
    display: none !important;
  }

  body[data-view="admin"] .admin-mobile-disputes {
    display: grid !important;
    gap: 14px !important;
  }

  body[data-view="admin"] .admin-mobile-disputes .section-head {
    display: grid !important;
    gap: 10px !important;
  }

  body[data-view="admin"] .admin-mobile-disputes .link-btn,
  body[data-view="admin"] .admin-actions-summary .link-btn {
    justify-self: start !important;
    color: #667087 !important;
    font-size: 18px !important;
  }

  body[data-view="admin"] .admin-moderation-summary {
    padding: 18px !important;
    border: 1px solid #dfe4ee !important;
    border-radius: 8px !important;
    background: #fff !important;
  }

  body[data-view="admin"] .admin-moderation-inline {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 14px !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body[data-view="admin"] .admin-moderation-stat {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    min-height: 64px !important;
    padding: 9px 12px !important;
  }

  body[data-view="admin"] .admin-moderation-inline .primary-btn {
    min-height: 48px !important;
    color: #5138f5 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-view="admin"] .admin-team-summary {
    grid-column: auto !important;
    grid-row: auto !important;
    gap: 10px !important;
  }

  body[data-view="admin"] .admin-team-line {
    grid-template-columns: 46px minmax(0, 1fr) auto 16px !important;
    min-height: 66px !important;
    padding: 10px 12px !important;
  }

  body[data-view="admin"] .admin-actions-summary {
    display: grid !important;
    gap: 12px !important;
  }
}
/* Admin listings behavior polish. Keep at EOF to beat legacy admin overrides. */
@media (max-width: 768px) {
  body[data-view="admin"] .admin-mobile-header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 120 !important;
  }

  body[data-view="admin"] .admin-page {
    padding-top: 82px !important;
  }

  body[data-view="admin"].admin-drawer-open .admin-mobile-header {
    display: none !important;
  }

  body[data-view="admin"] .admin-listings-mobile-actions .admin-listings-filter-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 14px !important;
    overflow: hidden !important;
    font-size: 17px !important;
    line-height: 1 !important;
    text-align: center !important;
  }
}
/* Admin moderation section. Isolated from overview moderation widgets. */
body[data-view="admin"] .admin-moderation-page {
  display: grid;
  gap: 16px;
  padding: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
body[data-view="admin"] .admin-mod-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}
body[data-view="admin"] .admin-mod-head h1 {
  margin: 0;
  color: #101525;
  font-size: 32px;
  line-height: 1.1;
}
body[data-view="admin"] .admin-mod-head p {
  margin: 8px 0 0;
  color: #667087;
  font-size: 16px;
  line-height: 1.3;
}
body[data-view="admin"] .admin-mod-rules {
  min-height: 44px;
  padding: 0 18px;
  flex: 0 0 auto;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-view="admin"] .admin-mod-more {
  display: none;
}
body[data-view="admin"] .admin-mod-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
body[data-view="admin"] .admin-mod-stat-row {
  display: contents;
}
body[data-view="admin"] .admin-mod-stat {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 5px 16px;
  align-items: center;
  min-width: 0;
  min-height: 96px;
  padding: 18px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  color: #101525;
  text-align: left;
  cursor: pointer;
}
body[data-view="admin"] .admin-mod-stat span {
  grid-row: span 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 16px;
  background: #eee8ff;
}
body[data-view="admin"] .admin-mod-stat.tone-in_work span {
  background: #eef4ff;
}
body[data-view="admin"] .admin-mod-stat.tone-revision span {
  background: #fff2e9;
}
body[data-view="admin"] .admin-mod-stat.tone-overdue span {
  background: #ffecef;
}
body[data-view="admin"] .admin-mod-stat img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
body[data-view="admin"] .admin-mod-stat small {
  overflow: hidden;
  color: #667087;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-view="admin"] .admin-mod-stat strong {
  color: #101525;
  font-size: 28px;
  line-height: 1;
}
body[data-view="admin"] .admin-mod-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(130px, 170px) minmax(150px, 185px) minmax(118px, 140px);
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
}
body[data-view="admin"] .admin-mod-search {
  position: relative;
  display: block;
  min-width: 0;
}
body[data-view="admin"] .admin-mod-search span {
  position: absolute;
  top: 50%;
  left: 18px;
  color: #707b91;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}
body[data-view="admin"] .admin-mod-search input,
body[data-view="admin"] .admin-mod-controls select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  color: #101525;
  font: inherit;
}
body[data-view="admin"] .admin-mod-search input {
  padding-left: 52px;
}
body[data-view="admin"] .admin-mod-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  color: #101525;
  font-weight: 750;
  white-space: nowrap;
}
body[data-view="admin"] .admin-mod-mobile-actions {
  display: none;
}
body[data-view="admin"] .admin-mod-tabs {
  display: flex;
  gap: 36px;
  overflow-x: auto;
  border-bottom: 1px solid #dfe4ee;
  scrollbar-width: none;
}
body[data-view="admin"] .admin-mod-tabs::-webkit-scrollbar {
  display: none;
}
body[data-view="admin"] .admin-mod-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #667087;
  font-weight: 700;
}
body[data-view="admin"] .admin-mod-tabs button.active {
  border-color: #4f32ff;
  color: #4f32ff;
}
body[data-view="admin"] .admin-mod-tabs span {
  margin-left: 8px;
}
body[data-view="admin"] .admin-mod-note {
  margin: -4px 0 0;
  color: #667087;
  font-size: 14px;
}
body[data-view="admin"] .admin-mod-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
}
body[data-view="admin"] .admin-mod-grid-head,
body[data-view="admin"] .admin-mod-grid-row {
  display: grid;
  grid-template-columns: 28px minmax(170px, 1.05fr) minmax(94px, 0.68fr) minmax(112px, 0.78fr) minmax(118px, 0.84fr) minmax(86px, 0.6fr) minmax(66px, 0.48fr) minmax(92px, 0.64fr) minmax(112px, 0.8fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
}
body[data-view="admin"] .admin-mod-grid-head {
  min-height: 64px;
  color: #667087;
  font-weight: 800;
}
body[data-view="admin"] .admin-mod-grid-row {
  min-height: 76px;
  border-top: 1px solid #edf0f5;
  color: #101525;
}
body[data-view="admin"] .admin-mod-check {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0;
}
body[data-view="admin"] .admin-mod-listing-cell,
body[data-view="admin"] .admin-mod-seller {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: hidden;
  min-width: 0;
}
body[data-view="admin"] .admin-mod-listing-cell > span {
  display: grid;
  min-width: 0;
  max-width: 100%;
}
body[data-view="admin"] .admin-mod-seller {
  border: 0;
  background: transparent;
  color: #101525;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
body[data-view="admin"] .admin-mod-seller:hover span {
  color: #4f32ff;
}
body[data-view="admin"] .admin-mod-seller img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
body[data-view="admin"] .admin-mod-cover {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f0f2f6;
  color: #768297;
  cursor: pointer;
}
body[data-view="admin"] .admin-mod-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body[data-view="admin"] .admin-mod-title,
body[data-view="admin"] .admin-mod-id {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
body[data-view="admin"] .admin-mod-title strong,
body[data-view="admin"] .admin-mod-id,
body[data-view="admin"] .admin-mod-clip {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-view="admin"] .admin-mod-title strong {
  font-weight: 820;
}
body[data-view="admin"] .admin-mod-id {
  color: #667087;
}
body[data-view="admin"] .admin-mod-title:hover strong,
body[data-view="admin"] .admin-mod-id:hover {
  color: #4f32ff;
}
body[data-view="admin"] .admin-mod-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
body[data-view="admin"] .admin-mod-badges b {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 7px;
  background: #f4f1ff;
  color: #4f32ff;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
body[data-view="admin"] .admin-mod-badges b.orange {
  background: #fff2e9;
  color: #ff6f1f;
}
body[data-view="admin"] .admin-mod-badges b.red {
  background: #ffecef;
  color: #ef3048;
}
body[data-view="admin"] .admin-mod-badges b.green {
  background: #eef8f2;
  color: #0e9f5b;
}
body[data-view="admin"] .admin-mod-badges b.blue {
  background: #eef4ff;
  color: #2d67ff;
}
body[data-view="admin"] .admin-mod-overdue {
  color: #ff3b2f !important;
}
body[data-view="admin"] .admin-mod-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
body[data-view="admin"] .admin-mod-actions .primary-btn,
body[data-view="admin"] .admin-mod-actions .ghost-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
body[data-view="admin"] .admin-mod-more-btn {
  display: inline-grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 !important;
  font-size: 18px;
}
body[data-view="admin"] .admin-mod-mobile-list {
  display: none;
}
body[data-view="admin"] .admin-mod-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 170;
  border: 0;
  background: transparent;
}
body[data-view="admin"] .admin-mod-menu-portal {
  position: fixed;
  z-index: 180;
  display: grid;
  width: min(260px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(18, 24, 38, 0.14);
}
body[data-view="admin"] .admin-mod-menu-portal button {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-weight: 650;
  text-align: left;
}
body[data-view="admin"] .admin-mod-menu-portal button:hover {
  background: #f5f3ff;
  color: #4f32ff;
}
body[data-view="admin"] .admin-mod-bulk {
  flex-wrap: wrap;
}
body[data-view="admin"] .admin-mod-bulk strong {
  margin-right: auto;
}
body[data-view="admin"] .admin-mod-empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: #667087;
}
body[data-view="admin"] .admin-mod-filter-sheet {
  position: fixed;
  inset: auto 18px 18px;
  z-index: 160;
  width: min(520px, calc(100vw - 36px));
  margin: auto;
  padding: 0;
  border: 1px solid #dfe4ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}
body[data-view="admin"] .admin-mod-filter-sheet form {
  display: grid;
  gap: 14px;
  padding: 18px;
}
body[data-view="admin"] .admin-mod-filter-sheet header,
body[data-view="admin"] .admin-mod-filter-sheet menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0;
}
body[data-view="admin"] .admin-mod-filter-sheet header button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 28px;
}
body[data-view="admin"] .admin-mod-filter-sheet label {
  display: grid;
  gap: 8px;
}
body[data-view="admin"] .admin-mod-filter-sheet select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
}
body[data-view="admin"] .admin-mod-rules-panel {
  padding: 18px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
}
@media (max-width: 900px) {
body[data-view="admin"] .admin-content:has([data-admin-panel="moderation"].active) {
    overflow-x: hidden;
    padding-right: 0;
    padding-left: 0;
  }
body[data-view="admin"] .admin-moderation-page {
    gap: 18px;
    padding: 0;
    overflow: hidden;
  }
body[data-view="admin"] .admin-mod-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    align-items: start;
  }
body[data-view="admin"] .admin-mod-head h1 {
    font-size: 34px;
  }
body[data-view="admin"] .admin-mod-head p {
    font-size: 20px;
    line-height: 1.25;
  }
body[data-view="admin"] .admin-mod-rules {
    display: none;
  }
body[data-view="admin"] .admin-mod-more {
    display: inline-grid;
    width: 52px;
    height: 52px;
    place-items: center;
    padding: 0;
    font-size: 26px;
  }
body[data-view="admin"] .admin-mod-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
body[data-view="admin"] .admin-mod-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
body[data-view="admin"] .admin-mod-stat {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 116px;
    padding: 12px 6px;
    text-align: center;
  }
body[data-view="admin"] .admin-mod-stat.primary {
    grid-template-columns: 82px minmax(0, 1fr);
    justify-items: start;
    min-height: 118px;
    padding: 20px 24px;
    text-align: left;
  }
body[data-view="admin"] .admin-mod-stat span {
    grid-row: auto;
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }
body[data-view="admin"] .admin-mod-stat.primary span {
    grid-row: span 2;
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
body[data-view="admin"] .admin-mod-stat img {
    width: 34px;
    height: 34px;
  }
body[data-view="admin"] .admin-mod-stat.primary img {
    width: 44px;
    height: 44px;
  }
body[data-view="admin"] .admin-mod-stat small {
    font-size: 15px;
    line-height: 1.15;
    white-space: normal;
  }
body[data-view="admin"] .admin-mod-stat strong {
    font-size: 28px;
  }
body[data-view="admin"] .admin-mod-controls {
    grid-template-columns: 1fr;
    padding: 0;
    border: 0;
    background: transparent;
  }
body[data-view="admin"] .admin-mod-controls > select,
body[data-view="admin"] .admin-mod-controls > .admin-mod-filter-btn {
    display: none;
  }
body[data-view="admin"] .admin-mod-search span {
    left: 20px;
    font-size: 34px;
  }
body[data-view="admin"] .admin-mod-search input {
    min-height: 64px;
    padding-left: 72px;
    font-size: 20px;
  }
body[data-view="admin"] .admin-mod-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
body[data-view="admin"] .admin-mod-mobile-actions .admin-mod-filter-btn,
body[data-view="admin"] .admin-mod-mobile-actions select {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }
body[data-view="admin"] .admin-mod-tabs {
    gap: 30px;
    margin-right: -14px;
    padding: 0 14px 0 0;
    overflow-x: auto;
    border-bottom: 1px solid #dfe4ee;
  }
body[data-view="admin"] .admin-mod-tabs button {
    min-height: 44px;
    padding: 0;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #667087;
    font-size: 17px;
    font-weight: 700;
  }
body[data-view="admin"] .admin-mod-tabs button.active {
    border-color: #5637f4;
    background: transparent;
    color: #5637f4;
  }
body[data-view="admin"] .admin-mod-note {
    font-size: 14px;
    line-height: 1.35;
  }
body[data-view="admin"] .admin-mod-table-wrap {
    display: none;
  }
body[data-view="admin"] .admin-mod-mobile-list {
    display: grid;
    gap: 14px;
  }
body[data-view="admin"] .admin-mod-card {
    display: grid;
    grid-template-columns: 28px 96px minmax(0, 1fr) 34px;
    grid-template-areas:
      "check image main menu"
      "action action action action";
    gap: 12px;
    padding: 14px;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    background: #fff;
  }
body[data-view="admin"] .admin-mod-card > .admin-mod-check {
    grid-area: check;
  }
body[data-view="admin"] .admin-mod-card > .admin-mod-cover {
    grid-area: image;
    width: 96px;
    height: 96px;
  }
body[data-view="admin"] .admin-mod-card-main {
    grid-area: main;
    display: grid;
    gap: 5px;
    min-width: 0;
  }
body[data-view="admin"] .admin-mod-card-main h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #101525;
    font-size: 20px;
    line-height: 1.15;
  }
body[data-view="admin"] .admin-mod-card .admin-mod-more-btn {
    grid-area: menu;
    justify-self: end;
  }
body[data-view="admin"] .admin-mod-seller.mobile {
    gap: 7px;
    overflow: hidden;
    color: #667087;
    font-size: 15px;
    line-height: 1.2;
  }
body[data-view="admin"] .admin-mod-seller.mobile img {
    width: 24px;
    height: 24px;
  }
body[data-view="admin"] .admin-mod-seller.mobile em {
    font-style: normal;
  }
body[data-view="admin"] .admin-mod-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    margin: 6px 0 0;
    color: #667087;
    font-size: 14px;
  }
body[data-view="admin"] .admin-mod-card dt,
body[data-view="admin"] .admin-mod-card dd {
    margin: 0;
  }
body[data-view="admin"] .admin-mod-card dd {
    color: #101525;
  }
body[data-view="admin"] .admin-mod-card-action {
    grid-area: action;
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    font-size: 18px;
  }
}
body[data-view="admin"] .admin-orders-page {
  display: grid;
  align-content: start;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
body[data-view="admin"] #adminOrdersPanel.admin-list-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body[data-view="admin"] .admin-orders-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
body[data-view="admin"] .admin-orders-head h1,
body[data-view="admin"] .admin-orders-detail-head h1 {
  margin: 0;
  color: #101525;
  font-size: 32px;
  line-height: 1.1;
}
body[data-view="admin"] .admin-orders-head p {
  margin: 8px 0 0;
  color: #667087;
  font-size: 18px;
}
body[data-view="admin"] .admin-orders-mobile-period {
  display: none;
}
body[data-view="admin"] .admin-orders-period select,
body[data-view="admin"] .admin-orders-filters select,
body[data-view="admin"] .admin-orders-search {
  min-height: 50px;
  border: 1px solid #dbe2ef;
  border-radius: 10px;
  background: #fff;
  color: #101525;
  font: inherit;
}
body[data-view="admin"] .admin-orders-period select,
body[data-view="admin"] .admin-orders-filters select {
  padding: 0 18px;
}
body[data-view="admin"] .admin-orders-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
body[data-view="admin"] .admin-orders-stat {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value";
  align-items: center;
  gap: 4px 16px;
  min-width: 0;
  min-height: 94px;
  padding: 18px;
  border: 1px solid #dbe2ef;
  border-radius: 10px;
  background: #fff;
}
body[data-view="admin"] .admin-orders-stat-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #f0eaff;
  color: #5a39ff;
  font-size: 28px;
  font-weight: 600;
}
body[data-view="admin"] .admin-orders-stat-icon.blue {
  background: #eaf3ff;
  color: #1772ff;
}
body[data-view="admin"] .admin-orders-stat-icon.orange {
  background: #fff1e7;
  color: #ff7417;
}
body[data-view="admin"] .admin-orders-stat-icon.green {
  background: #e9f8ef;
  color: #10a85a;
}
body[data-view="admin"] .admin-orders-stat-icon.red {
  background: #ffe9ee;
  color: #ff304f;
}
body[data-view="admin"] .admin-orders-stat span:not(.admin-orders-stat-icon) {
  overflow: hidden;
  color: #667087;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-view="admin"] .admin-orders-stat strong {
  color: #101525;
  font-size: 24px;
  line-height: 1;
}
body[data-view="admin"] .admin-orders-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) 150px minmax(160px, 1fr) minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe2ef;
  border-radius: 10px;
  background: #fff;
}
body[data-view="admin"] .admin-orders-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}
body[data-view="admin"] .admin-orders-search span {
  color: #667087;
  font-size: 24px;
}
body[data-view="admin"] .admin-orders-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #101525;
  font: inherit;
}
body[data-view="admin"] .admin-orders-filter-button {
  min-height: 50px;
  border: 1px solid #dbe2ef;
  border-radius: 10px;
  background: #fff;
  color: #101525;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
body[data-view="admin"] .admin-orders-extra-filters {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
}
body[data-view="admin"] .admin-orders-extra-filters[hidden] {
  display: none;
}
body[data-view="admin"] .admin-orders-tabs {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  border-bottom: 1px solid #dbe2ef;
}
body[data-view="admin"] .admin-orders-tabs button {
  flex: 0 0 auto;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: #667087;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
body[data-view="admin"] .admin-orders-tabs button.active {
  border-color: #5a39ff;
  color: #4d32ff;
}
body[data-view="admin"] .admin-orders-tabs span {
  margin-left: 6px;
}
body[data-view="admin"] .admin-orders-bulk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d6ccff;
  border-radius: 10px;
  background: #f6f2ff;
}
body[data-view="admin"] .admin-orders-bulk button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #bcaaff;
  border-radius: 8px;
  background: #fff;
  color: #4d32ff;
  cursor: pointer;
}
body[data-view="admin"] .admin-orders-table-card {
  overflow: visible;
  border: 1px solid #dbe2ef;
  border-radius: 10px;
  background: #fff;
}
body[data-view="admin"] .admin-orders-table-head,
body[data-view="admin"] .admin-orders-table-row {
  display: grid;
  grid-template-columns: 34px 88px minmax(135px, 1.35fr) minmax(84px, .72fr) minmax(84px, .72fr) 78px 128px 104px 132px;
  gap: 10px;
  align-items: center;
}
body[data-view="admin"] .admin-orders-table-head {
  min-height: 68px;
  padding: 0 16px;
  border-bottom: 1px solid #e8edf6;
  color: #667087;
  font-weight: 600;
}
body[data-view="admin"] .admin-orders-table-row {
  min-height: 66px;
  padding: 0 16px;
  border-bottom: 1px solid #e8edf6;
}
body[data-view="admin"] .admin-orders-table-row:last-child {
  border-bottom: 0;
}
body[data-view="admin"] .admin-orders-table-head input,
body[data-view="admin"] .admin-orders-table-row input {
  width: 20px;
  height: 20px;
  margin: 0;
}
body[data-view="admin"] .admin-orders-number,
body[data-view="admin"] .admin-orders-product-title,
body[data-view="admin"] .admin-orders-user-link {
  min-width: 0;
  overflow: hidden;
  color: #101525;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-view="admin"] .admin-orders-number {
  color: #4d32ff;
  font-weight: 600;
}
body[data-view="admin"] .admin-orders-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
body[data-view="admin"] .admin-orders-status.violet {
  background: #f0eaff;
  color: #4d32ff;
}
body[data-view="admin"] .admin-orders-status.blue {
  background: #eaf3ff;
  color: #0b6eff;
}
body[data-view="admin"] .admin-orders-status.orange {
  background: #fff1e7;
  color: #ff7417;
}
body[data-view="admin"] .admin-orders-status.green {
  background: #e9f8ef;
  color: #10a85a;
}
body[data-view="admin"] .admin-orders-status.red {
  background: #ffe9ee;
  color: #ff304f;
}
body[data-view="admin"] .admin-orders-status.gray {
  background: #f0f3f8;
  color: #667087;
}
body[data-view="admin"] .admin-orders-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
body[data-view="admin"] .admin-orders-main-action,
body[data-view="admin"] .admin-orders-row-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #bcaaff;
  border-radius: 8px;
  background: #fff;
  color: #4d32ff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
body[data-view="admin"] .admin-orders-main-action {
  min-width: 92px;
  padding: 0 10px;
}
body[data-view="admin"] .admin-orders-main-action.dispute {
  border-color: #ff6a5d;
  color: #ff304f;
}
body[data-view="admin"] .admin-orders-row-menu {
  width: 38px;
  cursor: pointer;
}
body[data-view="admin"] .admin-orders-menu {
  position: fixed;
  z-index: 10000;
  display: grid;
  width: 270px;
  padding: 8px;
  border: 1px solid #dbe2ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 21, 37, .16);
}
body[data-view="admin"] .admin-orders-menu a,
body[data-view="admin"] .admin-orders-menu button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #101525;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
body[data-view="admin"] .admin-orders-menu a:hover,
body[data-view="admin"] .admin-orders-menu button:hover,
body[data-view="admin"] .admin-orders-menu a:focus-visible,
body[data-view="admin"] .admin-orders-menu button:focus-visible {
  background: #f3f0ff;
  outline: none;
}
body[data-view="admin"] .admin-orders-empty,
body[data-view="admin"] .admin-orders-error {
  padding: 28px;
  color: #667087;
}
body[data-view="admin"] .admin-orders-error {
  display: grid;
  gap: 14px;
  border: 1px solid #dbe2ef;
  border-radius: 10px;
  background: #fff;
}
body[data-view="admin"] .admin-orders-mobile-list {
  display: none;
}
body[data-view="admin"] .admin-orders-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
body[data-view="admin"] .admin-orders-detail-head a,
body[data-view="admin"] .admin-orders-detail-card a {
  color: #4d32ff;
  text-decoration: none;
}
body[data-view="admin"] .admin-orders-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
body[data-view="admin"] .admin-orders-detail-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid #dbe2ef;
  border-radius: 10px;
  background: #fff;
}
body[data-view="admin"] .admin-orders-detail-card h2 {
  margin: 0;
  color: #101525;
}
body[data-view="admin"] .admin-orders-detail-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}
body[data-view="admin"] .admin-orders-detail-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
body[data-view="admin"] .admin-orders-detail-card dt {
  color: #667087;
}
body[data-view="admin"] .admin-orders-detail-card dd {
  margin: 0;
  color: #101525;
  text-align: right;
}
body[data-view="admin"] .admin-orders-timeline-item,
body[data-view="admin"] .admin-orders-message {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f7;
}
body[data-view="admin"] .admin-orders-message header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
body[data-view="admin"] .admin-orders-skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, #eef2f8, #fff, #eef2f8);
  background-size: 220% 100%;
  animation: adminOrdersSkeleton 1.2s infinite linear;
}
body[data-view="admin"] .admin-orders-skeleton.title {
  width: 280px;
  height: 68px;
}
body[data-view="admin"] .admin-orders-skeleton.cards {
  height: 100px;
}
body[data-view="admin"] .admin-orders-skeleton.block {
  height: 260px;
}

@keyframes adminOrdersSkeleton {
  to {
    background-position: -220% 0;
  }
}
@media (max-width: 1180px) {
body[data-view="admin"] .admin-orders-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
body[data-view="admin"] .admin-orders-filters {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(150px, 1fr));
  }
}
@media (max-width: 760px) {
body[data-view="admin"] .admin-orders-page {
    gap: 22px;
    overflow: hidden;
  }
body[data-view="admin"] .admin-orders-head {
    display: block;
  }
body[data-view="admin"] .admin-orders-head h1,
body[data-view="admin"] .admin-orders-detail-head h1 {
    font-size: 40px;
  }
body[data-view="admin"] .admin-orders-head p {
    max-width: 330px;
    font-size: 20px;
    line-height: 1.35;
  }
body[data-view="admin"] .admin-orders-head > .admin-orders-period {
    display: none;
  }
body[data-view="admin"] .admin-orders-mobile-period {
    display: block;
  }
body[data-view="admin"] .admin-orders-period,
body[data-view="admin"] .admin-orders-period select {
    width: 100%;
  }
body[data-view="admin"] .admin-orders-period select {
    min-height: 64px;
    font-size: 20px;
  }
body[data-view="admin"] .admin-orders-stats {
    display: flex;
    gap: 14px;
    margin-right: -24px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
body[data-view="admin"] .admin-orders-stat {
    flex: 0 0 260px;
    min-height: 120px;
    grid-template-columns: 76px minmax(0, 1fr);
  }
body[data-view="admin"] .admin-orders-stat-icon {
    width: 70px;
    height: 70px;
    font-size: 34px;
  }
body[data-view="admin"] .admin-orders-stat span:not(.admin-orders-stat-icon) {
    font-size: 18px;
  }
body[data-view="admin"] .admin-orders-stat strong {
    font-size: 34px;
  }
body[data-view="admin"] .admin-orders-filters {
    grid-template-columns: 1fr 1fr;
    padding: 0;
    border: 0;
    background: transparent;
  }
body[data-view="admin"] .admin-orders-search {
    grid-column: 1 / -1;
    min-height: 64px;
    border-radius: 12px;
    background: #fff;
    font-size: 20px;
  }
body[data-view="admin"] .admin-orders-filters select,
body[data-view="admin"] .admin-orders-filter-button {
    min-height: 58px;
    border-radius: 12px;
    font-size: 18px;
  }
body[data-view="admin"] .admin-orders-filters > select[data-orders-category],
body[data-view="admin"] .admin-orders-filters > select[data-orders-status] {
    display: none;
  }
body[data-view="admin"] .admin-orders-extra-filters {
    grid-template-columns: 1fr;
  }
body[data-view="admin"] .admin-orders-tabs {
    gap: 24px;
    margin-right: -24px;
  }
body[data-view="admin"] .admin-orders-tabs button {
    font-size: 18px;
  }
body[data-view="admin"] .admin-orders-mobile-list {
    display: grid;
    gap: 14px;
  }
body[data-view="admin"] .admin-orders-mobile-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dbe2ef;
    border-radius: 12px;
    background: #fff;
  }
body[data-view="admin"] .admin-orders-mobile-card header,
body[data-view="admin"] .admin-orders-mobile-card footer,
body[data-view="admin"] .admin-orders-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
body[data-view="admin"] .admin-orders-mobile-card header a,
body[data-view="admin"] .admin-orders-mobile-title {
    color: #4d32ff;
    font-weight: 700;
    text-decoration: none;
  }
body[data-view="admin"] .admin-orders-mobile-title {
    color: #101525;
    font-size: 22px;
  }
body[data-view="admin"] .admin-orders-mobile-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f7;
  }
body[data-view="admin"] .admin-orders-mobile-card dt {
    color: #667087;
    font-size: 14px;
  }
body[data-view="admin"] .admin-orders-mobile-card dd {
    margin: 4px 0 0;
    color: #101525;
    font-size: 18px;
  }
body[data-view="admin"] .admin-orders-mobile-card footer strong {
    font-size: 24px;
  }
body[data-view="admin"] .admin-orders-mobile-actions > a,
body[data-view="admin"] .admin-orders-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid #6b4cff;
    border-radius: 9px;
    background: #fff;
    color: #4d32ff;
    font-weight: 600;
    text-decoration: none;
  }
body[data-view="admin"] .admin-orders-mobile-actions > a {
    flex: 1;
  }
body[data-view="admin"] .admin-orders-mobile-actions .admin-orders-row-menu {
    width: 88px;
    min-height: 48px;
    color: #101525;
  }
body[data-view="admin"] .admin-orders-detail-head,
body[data-view="admin"] .admin-orders-detail-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
body[data-view="admin"] .admin-orders-detail-card dl div {
    display: grid;
  }
body[data-view="admin"] .admin-orders-detail-card dd {
    text-align: left;
  }
}
@media (max-width: 560px) {
body[data-view="admin"] .admin-mod-card {
    grid-template-columns: 28px 84px minmax(0, 1fr) 32px;
  }
body[data-view="admin"] .admin-mod-card > .admin-mod-cover {
    width: 84px;
    height: 84px;
  }
body[data-view="admin"] .admin-mod-stat-row {
    gap: 8px;
  }
body[data-view="admin"] .admin-mod-stat:not(.primary) small {
    font-size: 14px;
  }
body[data-view="admin"] .admin-mod-stat:not(.primary) strong {
    font-size: 26px;
  }
}
/* Admin disputes section. */
body[data-view="admin"] #adminDisputesPanel.admin-list-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body[data-view="admin"] .admin-disputes-page {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
}
body[data-view="admin"] .admin-disputes-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
body[data-view="admin"] .admin-disputes-head h1 {
  margin: 0;
  color: #101525;
  font-size: 32px;
  line-height: 1.1;
}
body[data-view="admin"] .admin-disputes-head p {
  margin: 8px 0 0;
  color: #667087;
  font-size: 17px;
}
body[data-view="admin"] .admin-disputes-period {
  display: grid;
  gap: 6px;
  color: #667087;
  font-weight: 600;
}
body[data-view="admin"] .admin-disputes-period select,
body[data-view="admin"] .admin-disputes-filters select,
body[data-view="admin"] .admin-disputes-search,
body[data-view="admin"] .admin-disputes-filter-button {
  min-height: 48px;
  border: 1px solid #dbe2ef;
  border-radius: 8px;
  background: #fff;
  color: #101525;
  font: inherit;
}
body[data-view="admin"] .admin-disputes-period select,
body[data-view="admin"] .admin-disputes-filters select {
  padding: 0 16px;
}
body[data-view="admin"] .admin-disputes-mobile-period {
  display: none;
}
body[data-view="admin"] .admin-disputes-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
body[data-view="admin"] .admin-disputes-stat {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value";
  align-items: center;
  gap: 4px 14px;
  min-height: 90px;
  padding: 16px;
  border: 1px solid #dbe2ef;
  border-radius: 8px;
  background: #fff;
}
body[data-view="admin"] .admin-disputes-stat-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #f0eaff;
  color: #5a39ff;
  font-size: 28px;
  font-weight: 700;
}
body[data-view="admin"] .admin-disputes-stat-icon.blue {
  background: #eaf3ff;
  color: #1772ff;
}
body[data-view="admin"] .admin-disputes-stat-icon.orange {
  background: #fff1e7;
  color: #ff7417;
}
body[data-view="admin"] .admin-disputes-stat-icon.red {
  background: #ffe9ee;
  color: #ff304f;
}
body[data-view="admin"] .admin-disputes-stat span:not(.admin-disputes-stat-icon) {
  overflow: hidden;
  color: #667087;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-view="admin"] .admin-disputes-stat strong {
  color: #101525;
  font-size: 25px;
  line-height: 1;
}
body[data-view="admin"] .admin-disputes-attention {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid #ffc7c7;
  border-radius: 8px;
  background: #fffafa;
  color: #ff2d2d;
}
body[data-view="admin"] .admin-disputes-attention div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #101525;
}
body[data-view="admin"] .admin-disputes-attention div span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #ff2d2d;
  border-radius: 50%;
  color: #ff2d2d;
  font-weight: 800;
}
body[data-view="admin"] .admin-disputes-attention p {
  margin: 0;
}
body[data-view="admin"] .admin-disputes-attention button {
  border: 0;
  background: transparent;
  color: #4d32ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
body[data-view="admin"] .admin-disputes-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) minmax(170px, .8fr) minmax(170px, .8fr);
  gap: 12px;
}
body[data-view="admin"] .admin-disputes-search {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  padding: 0 14px;
}
body[data-view="admin"] .admin-disputes-search span {
  color: #667087;
  font-size: 24px;
}
body[data-view="admin"] .admin-disputes-search input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #101525;
  font: inherit;
}
body[data-view="admin"] .admin-disputes-filter-button {
  display: none;
}
body[data-view="admin"] .admin-disputes-tabs {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  border-bottom: 1px solid #dbe2ef;
}
body[data-view="admin"] .admin-disputes-tabs button {
  flex: 0 0 auto;
  padding: 0 0 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #667087;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
body[data-view="admin"] .admin-disputes-tabs button.active {
  border-color: #5a39ff;
  color: #4d32ff;
}
body[data-view="admin"] .admin-disputes-tabs span {
  margin-left: 6px;
}
body[data-view="admin"] .admin-disputes-table {
  overflow: hidden;
  border: 1px solid #dbe2ef;
  border-radius: 8px;
  background: #fff;
}
body[data-view="admin"] .admin-disputes-row {
  display: grid;
  grid-template-columns: 30px 108px 96px minmax(176px, .98fr) minmax(132px, .74fr) minmax(124px, .68fr) 112px 112px 190px;
  gap: 8px;
  align-items: center;
  min-height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid #e8edf6;
}
body[data-view="admin"] .admin-disputes-row.head {
  color: #667087;
  font-weight: 700;
}
body[data-view="admin"] .admin-disputes-row:last-child {
  border-bottom: 0;
}
body[data-view="admin"] .admin-disputes-row a,
body[data-view="admin"] .admin-disputes-row > button,
body[data-view="admin"] .admin-disputes-card a,
body[data-view="admin"] .admin-disputes-card header button {
  border: 0;
  background: transparent;
  color: #4d32ff;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
body[data-view="admin"] .admin-disputes-row small {
  display: block;
  color: #667087;
  line-height: 1.4;
}
body[data-view="admin"] .admin-disputes-row b {
  font-weight: 600;
}
body[data-view="admin"] .admin-disputes-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
body[data-view="admin"] .admin-disputes-status.violet {
  background: #f0eaff;
  color: #4d32ff;
}
body[data-view="admin"] .admin-disputes-status.blue {
  background: #eaf3ff;
  color: #0b6eff;
}
body[data-view="admin"] .admin-disputes-status.orange {
  background: #fff1e7;
  color: #ff7417;
}
body[data-view="admin"] .admin-disputes-status.red {
  background: #ffe9ee;
  color: #ff304f;
}
body[data-view="admin"] .admin-disputes-status.green {
  background: #e9f8ef;
  color: #10a85a;
}
body[data-view="admin"] .admin-disputes-status.gray {
  background: #f0f3f8;
  color: #667087;
}
body[data-view="admin"] .admin-disputes-row .danger,
body[data-view="admin"] .admin-disputes-deadline.danger {
  color: #ff2d2d;
}
body[data-view="admin"] .admin-disputes-actions,
body[data-view="admin"] .admin-disputes-card footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
body[data-view="admin"] .admin-disputes-action,
body[data-view="admin"] .admin-disputes-actions > button:last-child,
body[data-view="admin"] .admin-disputes-card footer > button:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #bcaaff;
  border-radius: 8px;
  background: #fff;
  color: #4d32ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
body[data-view="admin"] .admin-disputes-action {
  min-width: 104px;
  padding: 0 10px;
}
body[data-view="admin"] .admin-disputes-action.primary {
  border-color: #4d32ff;
  background: #4d32ff;
  color: #fff;
}
body[data-view="admin"] .admin-disputes-actions > button:last-child,
body[data-view="admin"] .admin-disputes-card footer > button:last-child {
  width: 32px;
  min-width: 32px;
  color: #101525;
}
body[data-view="admin"] .admin-disputes-mobile-list {
  display: none;
}
body[data-view="admin"] .admin-disputes-empty,
body[data-view="admin"] .admin-disputes-error {
  padding: 24px;
  border: 1px solid #dbe2ef;
  border-radius: 8px;
  background: #fff;
  color: #667087;
}
body[data-view="admin"] .admin-disputes-skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f8, #fff, #eef2f8);
  background-size: 220% 100%;
  animation: adminOrdersSkeleton 1.2s infinite linear;
}
body[data-view="admin"] .admin-disputes-skeleton.title {
  width: 300px;
  height: 70px;
}
body[data-view="admin"] .admin-disputes-skeleton.cards {
  height: 92px;
}
body[data-view="admin"] .admin-disputes-skeleton.block {
  height: 280px;
}
@media (max-width: 1180px) {
body[data-view="admin"] .admin-disputes-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
body[data-view="admin"] .admin-disputes-filters {
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, .7fr));
  }
}
@media (max-width: 900px) {
body[data-view="admin"] .admin-content:has([data-admin-panel="disputes"].active) {
    padding-right: 0;
    padding-left: 0;
    overflow-x: hidden;
  }
body[data-view="admin"] .admin-disputes-page {
    gap: 18px;
    max-width: 100vw;
    padding: 26px 14px 42px;
    overflow: hidden;
  }
body[data-view="admin"] .admin-disputes-head {
    display: block;
  }
body[data-view="admin"] .admin-disputes-head h1 {
    font-size: 40px;
  }
body[data-view="admin"] .admin-disputes-head p {
    max-width: 360px;
    font-size: 20px;
    line-height: 1.28;
  }
body[data-view="admin"] .admin-disputes-head > .admin-disputes-period {
    display: none;
  }
body[data-view="admin"] .admin-disputes-mobile-period {
    display: block;
  }
body[data-view="admin"] .admin-disputes-mobile-period select {
    width: 100%;
    min-height: 60px;
    font-size: 18px;
  }
body[data-view="admin"] .admin-disputes-stats {
    display: flex;
    gap: 14px;
    margin-right: -14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
body[data-view="admin"] .admin-disputes-stats::-webkit-scrollbar,
body[data-view="admin"] .admin-disputes-tabs::-webkit-scrollbar {
    display: none;
  }
body[data-view="admin"] .admin-disputes-stat {
    flex: 0 0 210px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "label"
      "value";
    align-content: center;
    justify-items: start;
    min-height: 160px;
    padding: 20px;
  }
body[data-view="admin"] .admin-disputes-stat span:not(.admin-disputes-stat-icon) {
    max-width: 145px;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.15;
    white-space: normal;
  }
body[data-view="admin"] .admin-disputes-stat strong {
    font-size: 32px;
  }
body[data-view="admin"] .admin-disputes-attention {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 12px;
    padding: 18px;
  }
body[data-view="admin"] .admin-disputes-attention div {
    grid-column: 1 / 2;
  }
body[data-view="admin"] .admin-disputes-attention p {
    grid-column: 1 / -1;
    padding-left: 38px;
    font-size: 18px;
  }
body[data-view="admin"] .admin-disputes-attention button {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-size: 18px;
  }
body[data-view="admin"] .admin-disputes-filters {
    grid-template-columns: 1fr 1fr;
  }
body[data-view="admin"] .admin-disputes-search {
    grid-column: 1 / -1;
    min-height: 62px;
    font-size: 18px;
  }
body[data-view="admin"] .admin-disputes-filters select[data-dispute-reason] {
    display: none;
  }
body[data-view="admin"] .admin-disputes-filters select,
body[data-view="admin"] .admin-disputes-filter-button {
    min-width: 0;
    min-height: 58px;
    font-size: 18px;
  }
body[data-view="admin"] .admin-disputes-tabs {
    gap: 30px;
    margin-right: -14px;
    overflow-x: auto;
    scrollbar-width: none;
  }
body[data-view="admin"] .admin-disputes-tabs button {
    font-size: 18px;
  }
body[data-view="admin"] .admin-disputes-mobile-list {
    display: grid;
    gap: 14px;
  }
body[data-view="admin"] .admin-disputes-hint {
    margin: -4px 0 0;
    color: #667087;
    text-align: center;
  }
body[data-view="admin"] .admin-disputes-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #dbe2ef;
    border-radius: 8px;
    background: #fff;
  }
body[data-view="admin"] .admin-disputes-card header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
  }
body[data-view="admin"] .admin-disputes-card header button {
    font-size: 22px;
  }
body[data-view="admin"] .admin-disputes-card p,
body[data-view="admin"] .admin-disputes-card h3 {
    margin: 0;
  }
body[data-view="admin"] .admin-disputes-card p {
    color: #667087;
  }
body[data-view="admin"] .admin-disputes-card h3 {
    color: #101525;
    font-size: 20px;
  }
body[data-view="admin"] .admin-disputes-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    margin: 4px 0;
    padding: 10px 12px;
    border: 1px solid #dbe2ef;
    border-radius: 8px;
  }
body[data-view="admin"] .admin-disputes-card dl div:last-child {
    grid-column: 1 / -1;
  }
body[data-view="admin"] .admin-disputes-card dt {
    color: #667087;
  }
body[data-view="admin"] .admin-disputes-card dd {
    margin: 4px 0 0;
    color: #101525;
  }
body[data-view="admin"] .admin-disputes-card footer .admin-disputes-action {
    flex: 1;
    min-height: 48px;
    font-size: 18px;
  }
body[data-view="admin"] .admin-disputes-card footer > button:last-child {
    width: 76px;
    min-height: 48px;
  }
body[data-view="admin"] .admin-disputes-more {
    min-height: 54px;
    border: 1px solid #6b4cff;
    border-radius: 8px;
    background: #fff;
    color: #4d32ff;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
  }
}
/* Admin orders mobile layout. */
@media (max-width: 900px) {
  body[data-view="admin"] .admin-content:has([data-admin-panel="orders"].active) {
    padding-right: 0;
    padding-left: 0;
    overflow-x: hidden;
  }

  body[data-view="admin"] .admin-orders-page {
    gap: 20px;
    width: 100%;
    max-width: 100vw;
    padding: 26px 14px 42px;
    overflow: hidden;
  }

  body[data-view="admin"] .admin-orders-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  body[data-view="admin"] .admin-orders-head h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.08;
  }

  body[data-view="admin"] .admin-orders-head p {
    max-width: 100%;
    margin: 0;
    overflow: visible;
    color: #667087;
    font-size: 20px;
    line-height: 1.25;
    white-space: normal;
  }

  body[data-view="admin"] .admin-orders-head > .admin-orders-period {
    display: none;
  }

  body[data-view="admin"] .admin-orders-mobile-period {
    display: block;
  }

  body[data-view="admin"] .admin-orders-mobile-period .admin-orders-period,
  body[data-view="admin"] .admin-orders-mobile-period select {
    width: 100%;
  }

  body[data-view="admin"] .admin-orders-mobile-period select {
    min-height: 64px;
    padding: 0 36px;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    background: #fff;
    font-size: 20px;
  }

  body[data-view="admin"] .admin-orders-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0;
    overflow: visible;
    padding: 0;
  }

  body[data-view="admin"] .admin-orders-stat {
    display: grid;
    grid-template-areas:
      "icon"
      "label"
      "value";
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 126px;
    padding: 12px 6px;
    border-radius: 8px;
    text-align: center;
  }

  body[data-view="admin"] .admin-orders-stats .admin-orders-stat:nth-child(-n + 2) {
    grid-column: span 3;
  }

  body[data-view="admin"] .admin-orders-stats .admin-orders-stat:nth-child(n + 3) {
    grid-column: span 2;
  }

  body[data-view="admin"] .admin-orders-stats .admin-orders-stat:first-child {
    grid-template-areas:
      "icon"
      "label"
      "value";
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: 126px;
    padding: 12px 6px;
    text-align: center;
  }

  body[data-view="admin"] .admin-orders-stat-icon {
    grid-area: icon;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 26px;
  }

  body[data-view="admin"] .admin-orders-stats .admin-orders-stat:first-child .admin-orders-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 26px;
  }

  body[data-view="admin"] .admin-orders-stat span:not(.admin-orders-stat-icon) {
    grid-area: label;
    display: block;
    width: 100%;
    min-width: 0;
    overflow: visible;
    color: #667087;
    font-size: 14px;
    font-weight: 740;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  body[data-view="admin"] .admin-orders-stats .admin-orders-stat:first-child span:not(.admin-orders-stat-icon) {
    align-self: auto;
    font-size: 14px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  body[data-view="admin"] .admin-orders-stat strong {
    grid-area: value;
    align-self: start;
    font-size: 27px;
    line-height: 1;
  }

  body[data-view="admin"] .admin-orders-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body[data-view="admin"] .admin-orders-filters > select[data-orders-category],
  body[data-view="admin"] .admin-orders-filters > select[data-orders-status] {
    display: none;
  }

  body[data-view="admin"] .admin-orders-search {
    grid-column: 1 / -1;
    order: 1;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 0;
    min-height: 64px;
    padding: 0 18px;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    background: #fff;
  }

  body[data-view="admin"] .admin-orders-search span {
    position: static;
    color: #7a8294;
    transform: none;
    font-size: 30px;
  }

  body[data-view="admin"] .admin-orders-search input {
    width: 100%;
    min-width: 0;
    font-size: 18px;
  }

  body[data-view="admin"] .admin-orders-filters > select[data-orders-sort] {
    display: block;
    order: 3;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    padding: 0 18px;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    background: #fff;
    font-size: 18px;
  }

  body[data-view="admin"] .admin-orders-filter-button {
    order: 2;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    border-radius: 8px;
    font-size: 18px;
  }

  body[data-view="admin"] .admin-orders-tabs {
    gap: 30px;
    margin-right: -14px;
    padding: 0 14px 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid #e2e6ef;
    scrollbar-width: none;
  }

  body[data-view="admin"] .admin-orders-tabs::-webkit-scrollbar {
    display: none;
  }

  body[data-view="admin"] .admin-orders-tabs button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 650;
  }

  body[data-view="admin"] .admin-orders-tabs button.active {
    color: var(--violet);
    border-color: var(--violet);
  }
}
.admin-audit-page {
  display: grid;
  gap: 24px;
  padding: 48px 48px 64px;
}
.admin-audit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.admin-audit-head h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 36px;
  line-height: 1.08;
}
.admin-audit-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.admin-audit-card {
  overflow: hidden;
}
.admin-audit-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 180px 150px;
  padding: 14px;
}
.admin-audit-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
}
.admin-audit-search span {
  color: var(--muted);
  font-size: 24px;
}
.admin-audit-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.admin-audit-range {
  padding: 0 16px 16px;
}
.admin-audit-range label {
  color: var(--muted);
  font-weight: 700;
}
.admin-audit-tabs {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  padding: 0 16px;
}
.admin-audit-tabs button {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  padding: 18px 0;
}
.admin-audit-tabs button.active {
  color: var(--primary);
}
.admin-audit-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--primary);
}
.admin-audit-tabs span {
  margin-left: 6px;
}
.admin-audit-note {
  min-height: 34px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 18px;
}
.admin-audit-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.admin-audit-table th,
.admin-audit-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 12px;
  text-align: left;
  vertical-align: middle;
  color: var(--text);
  overflow-wrap: anywhere;
}
.admin-audit-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-audit-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.admin-audit-table a,
.admin-audit-mobile-card a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}
.admin-audit-table th:nth-child(1),
.admin-audit-table td:nth-child(1) {
  width: 132px;
}
.admin-audit-table th:nth-child(2),
.admin-audit-table td:nth-child(2) {
  width: 120px;
}
.admin-audit-table th:nth-child(3),
.admin-audit-table td:nth-child(3) {
  width: 150px;
}
.admin-audit-table th:nth-child(4),
.admin-audit-table td:nth-child(4) {
  width: 170px;
}
.admin-audit-table th:nth-child(6),
.admin-audit-table td:nth-child(6) {
  width: 105px;
}
.admin-audit-table th:nth-child(7),
.admin-audit-table td:nth-child(7) {
  width: 120px;
}
.admin-audit-table th:nth-child(8),
.admin-audit-table td:nth-child(8) {
  width: 104px;
}
.admin-audit-table td:nth-child(8) .ghost-btn {
  width: 92px;
  min-height: 38px;
  padding: 0 10px;
  font-size: 13px;
}
.admin-audit-table td {
  height: 58px;
}
.admin-audit-table td:nth-child(1) {
  line-height: 1.25;
}
.admin-audit-role {
  min-height: 24px;
  white-space: nowrap;
  padding: 2px 7px;
  font-size: 12px;
}
.admin-audit-status {
  min-height: 24px;
  white-space: nowrap;
  padding: 2px 7px;
  font-size: 12px;
}
.admin-audit-table td:nth-child(8) .ghost-btn {
  overflow-wrap: normal;
  white-space: nowrap;
}
.admin-audit-role,
.admin-audit-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 800;
}
.admin-audit-role {
  background: #f5f7fb;
  color: var(--text);
  border: 1px solid var(--line);
}
.admin-audit-status.success {
  background: #ecfdf3;
  color: #0f9f5a;
  border: 1px solid #b7ebce;
}
.admin-audit-status.neutral {
  background: #f5f7fb;
  color: var(--text);
  border: 1px solid var(--line);
}
.admin-audit-status.warning {
  background: #fff4e8;
  color: #ff6a00;
  border: 1px solid #ffd7b5;
}
.admin-audit-status.danger {
  background: #fff0f0;
  color: #ff3838;
  border: 1px solid #ffc6c6;
}
.admin-audit-empty {
  padding: 28px;
  color: var(--muted);
}
.admin-audit-mobile-list {
  display: none;
}
.admin-audit-sheet,
.admin-audit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.admin-audit-sheet {
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.32);
}
.admin-audit-sheet form {
  width: min(440px, 100%);
  overflow: auto;
  background: #fff;
  padding: 20px;
  box-shadow: -20px 0 60px rgba(15, 23, 42, 0.16);
}
.admin-audit-sheet header,
.admin-audit-sheet menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-audit-sheet header button,
.admin-audit-drawer header button {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
}
.admin-audit-sheet label {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  color: var(--muted);
  font-weight: 800;
}
.admin-audit-sheet input,
.admin-audit-sheet select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}
.admin-audit-sheet .check-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  color: var(--text);
}
.admin-audit-drawer {
  position: fixed;
  z-index: 91;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  overflow: auto;
  background: #fff;
  padding: 24px;
  box-shadow: -20px 0 60px rgba(15, 23, 42, 0.18);
}
.admin-audit-backdrop {
  z-index: 90;
  border: 0;
  background: rgba(15, 23, 42, 0.28);
}
.admin-audit-drawer header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.admin-audit-drawer header span {
  color: var(--muted);
  font-weight: 800;
}
.admin-audit-drawer h2 {
  margin: 4px 0 0;
}
.admin-audit-drawer dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  margin: 22px 0;
}
.admin-audit-drawer dt {
  color: var(--muted);
  font-weight: 800;
}
.admin-audit-drawer dd {
  margin: 0;
}
.admin-audit-drawer pre {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  font-size: 13px;
}
@media (max-width: 900px) {
.admin-audit-page {
    gap: 18px;
    padding: 40px 24px 64px;
  }
.admin-audit-head {
    display: grid;
  }
.admin-audit-head h1 {
    font-size: 40px;
  }
.admin-audit-head-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
.admin-audit-controls {
    grid-template-columns: 1fr 1fr;
  }
.admin-audit-search {
    grid-column: 1 / -1;
  }
.admin-audit-controls > select:nth-of-type(1),
.admin-audit-controls > select:nth-of-type(2) {
    display: none;
  }
.admin-audit-tabs {
    gap: 26px;
  }
.admin-audit-table-wrap {
    display: none;
  }
.admin-audit-mobile-list {
    display: grid;
    gap: 12px;
  }
.admin-audit-mobile-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
  }
.admin-audit-mobile-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
.admin-audit-mobile-card p {
    color: var(--muted);
  }
.admin-audit-mobile-card dl {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px;
  }
.admin-audit-mobile-card dt {
    color: var(--muted);
    font-weight: 800;
  }
.admin-audit-mobile-card dd {
    margin: 0;
  }
}
@media (max-width: 560px) {
.admin-audit-page {
    padding: 34px 18px 56px;
  }
.admin-audit-head h1 {
    font-size: 36px;
  }
.admin-audit-head p {
    font-size: 18px;
  }
.admin-audit-controls {
    grid-template-columns: 1fr;
  }
.admin-audit-drawer dl,
.admin-audit-mobile-card dl {
    grid-template-columns: 1fr;
  }
}
body[data-view="sellerProfile"] .page {
  max-width: none;
  padding: 0;
}
.seller-profile-page {
  width: min(100%, 1840px);
  margin: 0 auto;
  padding: 22px 44px 72px;
}
.seller-profile-top {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-height: 44px;
  margin-bottom: 10px;
  color: #101525;
  font-size: 17px;
  font-weight: 650;
}
.seller-profile-back {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #101525;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.seller-profile-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0 28px;
  border: 0;
  border-bottom: 1px solid #e1e6ef;
  background: transparent;
}
.seller-profile-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  background: #efe9ff;
}
.seller-profile-main {
  min-width: 0;
}
.seller-profile-name-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.seller-profile-name-row h1 {
  margin: 0;
  color: #101525;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 900;
}
.seller-profile-verified {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #5a35ff;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}
.seller-profile-main > p {
  margin: 6px 0 8px;
  color: #101525;
  font-size: 17px;
}
.seller-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  align-items: center;
  color: #101525;
  font-size: 17px;
}
.seller-profile-meta a {
  color: #4f32ff;
  text-decoration: none;
}
.seller-profile-meta i {
  width: 1px;
  height: 18px;
  background: #c8ceda;
}
.seller-profile-star {
  color: #ff3b21;
}
.seller-profile-activity {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 9px;
  color: #667087;
  font-size: 16px;
}
.seller-profile-activity span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #12b85a;
}
.seller-profile-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.seller-profile-message,
.seller-profile-report {
  min-height: 58px;
  border-radius: 8px;
  font: inherit;
  font-size: 17px;
  font-weight: 850;
  cursor: pointer;
}
.seller-profile-message {
  min-width: 246px;
  border: 0;
  background: linear-gradient(135deg, #ff2f18, #ff4b25);
  color: #fff;
}
.seller-profile-report {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7a8295;
  font-weight: 750;
}
.seller-profile-report:hover,
.seller-profile-report:focus-visible {
  background: transparent;
  color: #4f35f2;
  text-decoration: underline;
}
.seller-profile-catalog {
  padding-top: 26px;
  border: 0;
  background: transparent;
}
.seller-profile-search {
  display: block;
  margin-bottom: 16px;
}
.seller-profile-search input,
.seller-profile-filters select,
.seller-profile-filters button {
  min-height: 48px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  color: #101525;
  font: inherit;
}
.seller-profile-search input {
  width: 100%;
  padding: 0 24px;
}
.seller-profile-section-head {
  display: none;
}
.seller-profile-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 260px);
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.seller-profile-filters button {
  width: 100%;
  gap: 7px;
  font-size: 16px;
  cursor: pointer;
}
.seller-profile-filters button,
.seller-profile-filters button span,
.seller-profile-filters button b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.seller-profile-filters button b {
  font-size: 14px;
  font-weight: 700;
}
.seller-profile-filters button.active {
  border-color: rgba(79, 53, 242, 0.45);
  background: #f4f1ff;
  color: #4f35f2;
}
.seller-profile-filters select {
  padding: 0 16px;
}
.seller-profile-sort {
  justify-self: end;
  width: 100%;
}
.seller-profile-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}
.seller-profile-grid .product-card {
  min-width: 0;
  height: 100%;
  min-height: 0;
}
.seller-profile-grid .market-card-cover {
  aspect-ratio: 1 / 1;
}
.seller-profile-grid .product-seller-row {
  display: none;
}
.seller-profile-grid .product-card-body {
  grid-template-rows: minmax(20px, auto) minmax(58px, auto) minmax(20px, auto) auto;
}
.seller-profile-grid .product-category-line,
.seller-profile-grid .product-stats-row {
  min-height: 20px;
}
.seller-profile-grid .product-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.product-seller-row button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.product-seller-row button:hover {
  color: #4f32ff;
}
.seller-profile-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  color: #667087;
  font-size: 18px;
}
.seller-profile-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}
.seller-profile-pagination button,
.seller-profile-pagination span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  color: #101525;
  font: inherit;
  font-weight: 850;
}
.seller-profile-pagination span {
  background: #efe9ff;
  color: #4f32ff;
}
.admin-list-panel#adminSupportPanel {
  overflow: visible;
  border: 0;
  background: transparent;
}
.admin-support-page {
  display: grid;
  gap: 0;
  color: #101525;
}
.admin-support-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.admin-support-title h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.05;
}
.admin-support-title p {
  margin: 8px 0 0;
  color: #667087;
  font-size: 18px;
}
.admin-support-actions,
.admin-support-filter-row,
.admin-support-quick,
.admin-support-assignee {
  display: flex;
  gap: 10px;
  align-items: center;
}
.admin-support-more {
  position: relative;
  flex: 0 0 auto;
}
.admin-support-more > button {
  min-width: 44px;
}
.admin-support-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(16,21,37,.14);
}
.admin-support-more-menu button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #101525;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}
.admin-support-assignee .admin-support-more-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}
.admin-support-more-menu button:hover,
.admin-support-more-menu button:focus-visible {
  background: #f4f1ff;
  color: #4f32ff;
}
.admin-support-transfer-list {
  display: grid;
  gap: 2px;
  margin: 4px 0;
  padding: 6px 0;
  border-top: 1px solid #edf0f6;
  border-bottom: 1px solid #edf0f6;
}
.admin-support-transfer-list small {
  padding: 0 10px 4px;
  color: #667087;
  font-size: 11px;
  font-weight: 400;
}
.admin-support-transfer-list button {
  color: #4f32ff;
}
.admin-support-actions button,
.admin-support-filter-row select,
.admin-support-assignee select,
.admin-support-assignee button,
.admin-support-quick button,
.admin-support-outline,
.admin-support-card-actions button,
.admin-support-note button {
  min-height: 44px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  color: #101525;
  font: inherit;
  font-weight: 500;
}
.admin-support-actions {
  flex: 0 0 auto;
}
.admin-support-actions button {
  white-space: nowrap;
}
.admin-support-online {
  padding: 0 18px;
}
.admin-support-online i,
.admin-support-avatar i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: #18b75f;
}
.admin-support-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 330px) minmax(0, 1fr) minmax(260px, 300px);
  gap: 12px;
  align-items: stretch;
  height: calc(100vh - 128px);
  min-height: 560px;
  overflow: hidden;
}
.admin-support-queue,
.admin-support-chat,
.admin-support-client,
.admin-support-client-card {
  min-height: 0;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
}
.admin-support-queue {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.admin-support-queue-head {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-bottom: 1px solid #e7ebf3;
}
.admin-support-queue-head h2 {
  margin: 0;
  font-size: 20px;
}
.admin-support-queue-head h2 span,
.admin-support-queue-head nav button span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #eef1f7;
  color: #667087;
  font-size: 11px;
  font-weight: 400;
}
.admin-support-queue-head label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
}
.admin-support-queue-head input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}
.admin-support-queue-head nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-support-queue-head nav button {
  flex: 0 0 auto;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #667087;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.admin-support-queue-head nav button.active {
  border-color: #5a35ff;
  color: #4f32ff;
}
.admin-support-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.admin-support-filter-row select {
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 650;
}
.admin-support-list {
  min-height: 0;
  overflow: auto;
}
.admin-support-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #edf0f6;
  cursor: pointer;
}
.admin-support-ticket.active {
  background: linear-gradient(90deg, rgba(90,53,255,.12), rgba(255,255,255,.9));
  box-shadow: inset 4px 0 #5a35ff;
}
.admin-support-ticket.unread b,
.admin-support-ticket.unread small {
  font-weight: 500;
}
.admin-support-ticket.muted {
  opacity: .62;
}
.admin-support-avatar {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #efe9ff;
  color: #4f32ff;
  font-weight: 500;
  overflow: hidden;
}
.admin-support-avatar.large {
  width: 76px;
  height: 76px;
}
.admin-support-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-support-avatar i {
  position: absolute;
  right: 0;
  bottom: 1px;
  margin: 0;
  border: 2px solid #fff;
}
.admin-support-ticket-body {
  min-width: 0;
}
.admin-support-ticket-body b,
.admin-support-ticket-body small,
.admin-support-ticket-body em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-support-ticket-body small {
  margin: 4px 0;
  color: #667087;
  font-size: 13px;
}
.admin-support-ticket-body em {
  color: #4f32ff;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}
.admin-support-ticket time {
  color: #667087;
  font-size: 13px;
  font-weight: 400;
}
.admin-support-ticket > strong {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #5a35ff;
  color: #fff;
  font-weight: 500;
}
.admin-support-chat {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}
.admin-support-chat-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid #e7ebf3;
}
.admin-support-person {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
}
.admin-support-person > span:last-child {
  min-width: 0;
}
.admin-support-person b,
.admin-support-person small,
.admin-support-person em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-support-person small {
  color: #667087;
}
.admin-support-person em {
  color: #18b75f;
  font-style: normal;
}
.admin-support-ticket-strip {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 18px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  color: #667087;
}
.admin-support-ticket-strip span,
.admin-support-ticket-strip em {
  min-width: 0;
  white-space: nowrap;
}
.admin-support-ticket-strip b {
  word-break: keep-all;
}
.admin-support-ticket-strip b,
.admin-support-ticket-strip em {
  color: #4f32ff;
  font-size: 14px;
  font-style: normal;
  font-weight: 650;
}
.admin-support-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  min-height: 0;
  overflow: auto;
}
.admin-support-bubble {
  max-width: 70%;
  align-self: flex-start;
  padding: 14px 16px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
}
.admin-support-bubble.admin {
  align-self: flex-end;
  background: #f2edff;
  border-color: #d6c9ff;
}
.admin-support-bubble.internal {
  background: #fff8e7;
  border-color: #ffe0a3;
}
.admin-support-bubble span,
.admin-support-bubble time {
  display: block;
}
.admin-support-bubble-body {
  display: grid;
  gap: 8px;
}
.admin-support-attachments {
  display: grid;
  gap: 8px;
}
.admin-support-attachment {
  display: block;
  max-width: 260px;
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  color: #4f32ff;
  font-weight: 800;
  text-decoration: none;
}
.admin-support-attachment img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}
.admin-support-file {
  padding: 10px 12px;
  background: #f8f9fc;
}
.admin-support-missing-file {
  color: #667087;
  font-style: italic;
}
.admin-support-bubble time {
  margin-top: 8px;
  color: #667087;
  font-size: 13px;
}
/* Admin support chat bubbles follow seller chat styling. */
.admin-support-messages {
  gap: 10px;
  padding: 20px 18px;
  background: #fff;
}
.admin-support-bubble {
  position: relative;
  width: fit-content;
  min-width: 46px;
  max-width: min(58%, 480px);
  margin-bottom: 18px;
  padding: 8px 11px;
  border: 0;
  border-radius: 16px 16px 16px 6px;
  background: #f4f5f8;
  color: #121624;
  box-shadow: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.34;
  white-space: normal;
}
.admin-support-bubble.admin {
  align-self: flex-end;
  border-color: transparent;
  border-radius: 16px 16px 6px 16px;
  background: #eeeafe;
  color: #121624;
}
.admin-support-bubble.internal {
  align-self: center;
  max-width: 80%;
  margin-bottom: 17px;
  border: 1px solid #ffe0a3;
  border-radius: 14px;
  background: #fff8e7;
  color: #5d667a;
}
.admin-support-bubble span,
.admin-support-bubble time {
  display: block;
}
.admin-support-bubble-body {
  display: grid;
  gap: 6px;
}
.admin-support-bubble-body > span {
  color: inherit;
  white-space: pre-wrap;
}
.admin-support-bubble .chat-message-title {
  display: block;
  color: inherit;
  font-weight: 800;
  margin-bottom: 4px;
}
.admin-support-bubble em {
  font-style: italic;
}
.admin-support-bubble time {
  position: absolute;
  top: calc(100% + 5px);
  left: 2px;
  display: inline-block;
  width: max-content;
  min-width: max-content;
  margin-top: 0;
  color: #9aa1ad;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.admin-support-bubble.admin time {
  right: 2px;
  left: auto;
}
.admin-support-bubble.internal time {
  position: static;
  margin-top: 4px;
  text-align: center;
}
.admin-support-quick {
  display: none;
}
.admin-support-quick button {
  flex: 0 0 auto;
  padding: 0 16px;
  color: #4f32ff;
}
.admin-support-composer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 56px;
  align-items: end;
  gap: 10px;
  padding: 12px 24px;
  border-top: 1px solid #e7ebf3;
}
.admin-support-composer textarea {
  height: 48px;
  min-height: 48px;
  max-height: 96px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
}
.admin-support-composer button {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.admin-support-composer .chat-attach-wrap {
  position: relative;
  display: block;
  width: 44px;
}
.admin-support-composer .chat-attach-toggle {
  width: 44px;
  height: 48px;
  min-height: 48px;
  border-radius: 8px;
}
.admin-support-composer .chat-attach-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 25;
  display: grid;
  gap: 6px;
  min-width: 190px;
  padding: 6px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(16,21,37,.14);
}
.admin-support-composer .chat-attach-menu[hidden] {
  display: none;
}
.admin-support-composer .chat-attach-menu button {
  justify-content: start;
  min-height: 38px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}
.admin-support-composer .chat-attach-menu button:hover,
.admin-support-composer .chat-attach-menu button:focus-visible {
  background: #f4f1ff;
  color: #4f32ff;
}
.admin-support-composer.has-attachments {
  grid-auto-rows: auto;
}
.admin-support-composer button[type="submit"],
.admin-support-note button {
  border-color: transparent;
  background: #5a35ff;
  color: #fff;
}
.admin-support-composer button[type="submit"] {
  display: grid;
  width: 56px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  place-items: center;
  background: linear-gradient(135deg, #5a35ff, #4b22f5);
  font-size: 18px;
}
.admin-support-composer button[type="submit"] span {
  transform: translateX(1px);
}
.admin-support-client {
  min-width: 0;
  max-height: 100%;
  overflow: auto;
}
.admin-support-client-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 0;
}
.admin-support-client-card h2,
.admin-support-client-card h3 {
  margin: 0;
  line-height: 1.15;
}
.admin-support-client-card h2 {
  font-size: 22px;
}
.admin-support-client-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.admin-support-client-head strong,
.admin-support-client-head small,
.admin-support-client-head em {
  display: block;
}
.admin-support-client-head small,
.admin-support-client-card dl dt {
  color: #667087;
}
.admin-support-client-head em {
  width: max-content;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #efe9ff;
  color: #4f32ff;
  font-style: normal;
  font-weight: 500;
}
.admin-support-outline {
  color: #4f32ff;
  font-weight: 500;
}
.admin-support-person b,
.admin-support-client-head strong {
  font-weight: 600;
}
.admin-support-person small,
.admin-support-person em,
.admin-support-client-head small,
.admin-support-client-head em {
  font-weight: 400;
}
.admin-support-client-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 0;
}
.admin-support-client-card dd {
  margin: 0;
  font-weight: 500;
}
.admin-support-order {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
}
.admin-support-order b,
.admin-support-order strong {
  color: #4f32ff;
}
.admin-support-order p {
  margin: 0;
  color: #667087;
}
.admin-support-order div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.admin-support-order button {
  min-height: 40px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  color: #4f32ff;
  font: inherit;
  font-weight: 500;
}
.support-order-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 10px;
}
.support-order-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #dfe3ee;
  border-radius: 8px;
  background: #fff;
  color: #4b2cff;
  font-size: 14px;
  font-weight: 700;
}
.admin-support-card-actions,
.admin-support-note {
  display: grid;
  gap: 10px;
}
.admin-support-history {
  display: grid;
  gap: 8px;
}
.admin-support-history h3 {
  margin: 0;
  font-size: 16px;
}
.admin-support-history button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: center;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid #e1e6f0;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.admin-support-history button.active {
  border-color: #6b4cff;
  background: #f3efff;
}
.admin-support-history b {
  color: #4f32ff;
}
.admin-support-history span {
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-support-history em {
  grid-column: 1 / -1;
  color: #667087;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
.admin-support-notes {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.admin-support-notes h3 {
  margin: 0;
  font-size: 16px;
}
.admin-support-notes article {
  position: relative;
  padding: 10px 12px;
  padding-right: 42px;
  border: 1px solid #e4e8f1;
  border-radius: 8px;
  background: #f8f9fc;
}
.admin-support-note-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #dfe4ee;
  border-radius: 7px;
  background: #fff;
  color: #667087;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.admin-support-note-delete:hover {
  border-color: #ffb5b5;
  color: #f02d2d;
}
.admin-support-notes p {
  margin: 0 0 6px;
}
.admin-support-notes small {
  color: #667087;
}
.admin-support-card-actions .danger {
  border-color: #ffb5b5;
  color: #f02d2d;
}
.admin-support-note textarea {
  width: 100%;
  min-height: 84px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}
.admin-support-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 24px;
  color: #667087;
  text-align: center;
}
.admin-support-mobile-back,
.admin-support-sheet-backdrop,
.admin-support-client-sheet {
  display: none;
}
body[data-view="admin"] .admin-tab[data-admin-panel="support"].active,
body[data-view="admin"] #adminSupportPanel,
body[data-view="admin"] .admin-support-page {
  min-height: 0;
}
body[data-view="admin"] .admin-content:has([data-admin-panel="support"].active) {
  overflow: hidden;
  padding-bottom: 18px;
}
body[data-view="admin"] .lootava-footer {
  display: none;
}
@media (min-width: 1281px) and (max-width: 1500px) {
.admin-support-workspace {
    grid-template-columns: minmax(280px, 310px) minmax(0, 1fr) minmax(240px, 270px);
    gap: 10px;
  }
.admin-support-chat-head {
    padding: 14px 16px;
  }
.admin-support-client-card {
    padding: 16px;
  }
.admin-support-client-card h2 {
    font-size: 19px;
  }
.admin-support-avatar.large {
    width: 58px;
    height: 58px;
  }
.admin-support-actions button,
.admin-support-filter-row select,
.admin-support-assignee select,
.admin-support-assignee button,
.admin-support-quick button,
.admin-support-outline,
.admin-support-card-actions button,
.admin-support-note button {
    min-height: 42px;
  }
.admin-support-assignee select {
    max-width: 240px;
  }
}
@media (max-width: 1280px) {
.admin-support-workspace {
    grid-template-columns: 320px minmax(0, 1fr);
  }
.admin-support-client {
    display: none;
  }
}
@media (max-width: 760px) {
body[data-view="admin"] .admin-content:has([data-admin-panel="support"].active) {
    overflow: visible;
    padding: 0;
  }
body[data-view="admin"] .admin-tab[data-admin-panel="support"].active {
    padding: 0;
  }
body[data-view="admin"] .admin-support-page {
    padding: 28px 24px 34px;
    background: #fff;
  }
.admin-support-title {
    padding: 0 30px;
    align-items: center;
  }
.admin-support-title h1 {
    font-size: 34px;
  }
.admin-support-title p,
.admin-support-settings {
    display: none;
  }
.admin-support-workspace {
    display: block;
    min-height: 0;
  }
.admin-support-queue,
.admin-support-chat {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
.admin-support-page.has-detail .admin-support-queue {
    display: none;
  }
.admin-support-page:not(.has-detail) .admin-support-chat {
    display: none;
  }
.admin-support-list {
    max-height: none;
  }
.admin-support-ticket {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    padding: 20px 0;
    border-radius: 0;
    border-bottom: 1px solid #edf0f6;
    background: transparent;
  }
.admin-support-avatar {
    width: 52px;
    height: 52px;
  }
.admin-support-chat-head {
    grid-template-columns: 42px minmax(0, 1fr) 54px;
    gap: 10px;
    padding: 18px 0;
    border-bottom: 1px solid #edf0f6;
  }
.admin-support-mobile-back {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    background: transparent;
    font-size: 34px;
  }
.admin-support-ticket-strip {
    grid-column: 1 / -1;
    overflow-x: auto;
  }
.admin-support-assignee select {
    display: none;
  }
.admin-support-messages {
    min-height: calc(100vh - 360px);
    padding: 22px 0;
  }
.admin-support-bubble {
    max-width: 82%;
    font-size: 16px;
  }
.admin-support-composer {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0 calc(18px + env(safe-area-inset-bottom));
  }
.admin-support-composer textarea {
    min-height: 54px;
    padding: 14px 16px;
    font-size: 16px;
  }
.admin-support-composer .chat-attach-toggle {
    width: 54px;
    min-height: 54px;
  }
.admin-support-composer button[type="submit"] {
    grid-column: 1 / -1;
    min-height: 54px;
    font-size: 18px;
  }
.admin-support-composer button[data-support-note-toggle] {
    display: none;
  }
.admin-support-client-sheet {
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    display: block;
    max-height: 82vh;
    overflow: auto;
    border-radius: 24px 24px 0 0;
    background: #fff;
    box-shadow: 0 -18px 50px rgba(16,21,37,.22);
  }
.admin-support-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 79;
    display: block;
    border: 0;
    background: rgba(16,21,37,.45);
  }
.admin-support-sheet-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 54px;
    height: 54px;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    background: #fff;
    font-size: 28px;
  }
}
@media (max-width: 1180px) {
.seller-profile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
body[data-view="sellerProfile"] .page {
    padding: 0 0 calc(96px + env(safe-area-inset-bottom));
  }
.seller-profile-page {
    width: 100%;
    padding: 18px 30px 28px;
  }
.seller-profile-top {
    margin-bottom: 12px;
    font-size: 21px;
  }
.seller-profile-back {
    margin-left: -8px;
  }
.seller-profile-hero {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 20px;
    padding: 8px 0 20px;
    border-bottom: 0;
  }
.seller-profile-avatar {
    width: 176px;
    height: 176px;
  }
.seller-profile-name-row h1 {
    font-size: 36px;
  }
.seller-profile-meta {
    gap: 7px 10px;
    font-size: 20px;
  }
.seller-profile-meta i {
    height: 22px;
  }
.seller-profile-activity {
    font-size: 19px;
  }
.seller-profile-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    margin-top: 10px;
  }
.seller-profile-message,
.seller-profile-report {
    min-height: 66px;
    font-size: 24px;
  }
.seller-profile-search input {
    min-height: 62px;
    font-size: 22px;
  }
.seller-profile-section-head {
    display: block;
    margin: 22px 0 14px;
  }
.seller-profile-section-head h2 {
    margin: 0;
    font-size: 31px;
    line-height: 1.1;
  }
.seller-profile-section-head p {
    margin: 6px 0 0;
    color: #667087;
    font-size: 21px;
  }
.seller-profile-filters {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 24px;
  }
.seller-profile-filters button:nth-child(2),
.seller-profile-filters select:nth-of-type(2),
.seller-profile-filters select:nth-of-type(3),
.seller-profile-filters select:nth-of-type(4) {
    display: none;
  }
.seller-profile-filters select,
.seller-profile-filters button {
    min-height: 72px;
    font-size: 22px;
  }
.seller-profile-filters button:first-child {
    grid-column: 2;
    grid-row: 1;
    width: 92px;
    color: #5a35ff;
    font-size: 30px;
  }
.seller-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 28px;
  }
.seller-profile-grid .product-card {
    min-width: 0;
    border-radius: 12px;
  }
.seller-profile-grid .market-card-cover {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
  }
.seller-profile-grid .market-card-cover strong {
    display: none;
  }
.seller-profile-grid .product-title {
    min-height: 52px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
.seller-profile-grid .product-card-body {
    padding-top: 10px;
  }
.seller-profile-grid .tag-list {
    display: none;
  }
.seller-profile-grid .product-stats-row {
    display: flex;
    min-height: 18px;
    gap: 4px;
    overflow: hidden;
    color: #687086;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }
.seller-profile-grid .product-stats-row .rating-star {
    flex: 0 0 auto;
    font-size: 13px;
  }
.seller-profile-grid .product-card-body {
    display: grid;
    grid-template-rows: 18px 46px 18px auto;
  }
.seller-profile-grid .product-category-line {
    min-height: 18px;
    font-size: 12px;
  }
.seller-profile-grid .product-title {
    min-height: 46px;
  }
.seller-profile-grid .product-title a {
    -webkit-line-clamp: 2;
  }

  }
@media (max-width: 560px) {
.seller-profile-page {
    padding: 10px 16px 24px;
  }
.seller-profile-top {
    min-height: 34px;
    margin-bottom: 6px;
    font-size: 20px;
  }
.seller-profile-back {
    width: 34px;
    height: 34px;
    margin-left: -6px;
    font-size: 24px;
  }
.seller-profile-hero {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 4px 0 14px;
  }
.seller-profile-avatar {
    width: 76px;
    height: 76px;
  }
.seller-profile-name-row h1 {
    font-size: 28px;
    line-height: 1.02;
  }
.seller-profile-main > p,
.seller-profile-meta,
.seller-profile-activity {
    font-size: 15px;
  }
.seller-profile-main > p {
    margin: 3px 0 6px;
  }
.seller-profile-meta {
    gap: 5px 8px;
    line-height: 1.25;
  }
.seller-profile-meta i {
    height: 14px;
  }
.seller-profile-activity {
    gap: 7px;
    margin-top: 6px;
  }
.seller-profile-activity span {
    width: 10px;
    height: 10px;
  }
.seller-profile-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 4px;
  }
.seller-profile-message,
.seller-profile-report {
    min-height: 48px;
    font-size: 16px;
  }
.seller-profile-catalog {
    padding-top: 14px;
  }
.seller-profile-search input {
    min-height: 48px;
    padding: 0 18px;
    font-size: 16px;
  }
.seller-profile-search {
    margin-bottom: 12px;
  }
.seller-profile-section-head {
    margin: 16px 0 12px;
  }
.seller-profile-section-head h2 {
    font-size: 24px;
  }
.seller-profile-section-head p {
    font-size: 16px;
  }
.seller-profile-filters {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 10px;
    margin-bottom: 16px;
  }
.seller-profile-filters select,
.seller-profile-filters button {
    min-height: 48px;
    font-size: 16px;
  }
.seller-profile-filters button:first-child {
    width: 58px;
    font-size: 22px;
  }
.seller-profile-grid {
    gap: 14px 10px;
  }
}
body[data-view="notFound"] {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(115, 93, 255, 0.1), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}
body[data-view="notFound"] .page {
  max-width: none;
  padding: 0;
}
.not-found-page {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 82px 42px 72px;
}
.not-found-hero {
  display: grid;
  grid-template-columns: minmax(360px, 620px) minmax(420px, 640px);
  justify-content: center;
  align-items: center;
  gap: 90px;
  min-height: 520px;
}
.not-found-art-wrap {
  position: relative;
  min-width: 0;
}
.not-found-art-wrap::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 14%;
  bottom: 5%;
  height: 32px;
  border-radius: 50%;
  background: rgba(74, 53, 232, 0.12);
  filter: blur(17px);
}
.not-found-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}
.not-found-kicker {
  margin: 0 0 10px;
  color: #5b43ff;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.not-found-copy h1 {
  margin: 0 0 20px;
  color: #101425;
  font-size: clamp(48px, 4.4vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}
.not-found-lead {
  width: min(100%, 560px);
  margin: 0 0 30px;
  color: #596174;
  font-size: 22px;
  line-height: 1.45;
}
.not-found-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.not-found-primary,
.not-found-secondary {
  appearance: none;
  display: inline-flex;
  min-height: 74px;
  min-width: 286px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.not-found-primary {
  border: 0;
  background: linear-gradient(135deg, #ff2f18, #ff5a28);
  color: #fff;
  box-shadow: 0 16px 34px rgba(255, 70, 36, 0.2);
}
.not-found-secondary {
  border: 2px solid #5b43ff;
  background: rgba(255, 255, 255, 0.74);
  color: #4a35e8;
}
.not-found-search-block {
  width: min(100%, 760px);
  margin: 58px auto 0;
  text-align: center;
}
.not-found-search-block p {
  margin: 0 0 10px;
  color: #596174;
  font-size: 16px;
  font-weight: 650;
}
.not-found-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  min-height: 62px;
  overflow: hidden;
  border: 1px solid #e0e4ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(22, 26, 43, 0.04);
}
.not-found-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 30px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #101425;
  font: inherit;
  font-size: 17px;
}
.not-found-search button {
  width: 72px;
  height: 100%;
  border: 0;
  background: linear-gradient(135deg, #6f52ff, #3c20ef);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
@media (max-width: 920px) {
.not-found-page {
    padding: 48px 24px 48px;
  }
.not-found-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    text-align: center;
  }
.not-found-art-wrap {
    width: min(100%, 520px);
    margin: 0 auto;
  }
.not-found-lead,
.not-found-buttons {
    margin-left: auto;
    margin-right: auto;
  }
.not-found-buttons {
    justify-content: center;
  }
}
@media (max-width: 560px) {
.not-found-page {
    padding: 30px 18px 34px;
  }
.not-found-art-wrap {
    width: min(100%, 360px);
  }
.not-found-kicker {
    font-size: 12px;
  }
.not-found-copy h1 {
    font-size: 38px;
  }
.not-found-lead {
    margin-bottom: 24px;
    font-size: 17px;
  }
.not-found-buttons {
    display: grid;
    gap: 12px;
  }
.not-found-primary,
.not-found-secondary {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    font-size: 16px;
  }
.not-found-search-block {
    margin-top: 34px;
  }
.not-found-search {
    min-height: 56px;
    grid-template-columns: minmax(0, 1fr) 58px;
  }
.not-found-search input {
    padding: 0 16px;
    font-size: 15px;
  }
.not-found-search button {
    width: 58px;
  }
}
@media (max-width: 760px) {
body[data-view="admin"] .admin-mobile-bell img {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
  }
body[data-view="admin"] .admin-mobile-bell b {
    top: 7px !important;
    right: 7px !important;
    width: 10px !important;
    min-width: 10px !important;
    height: 10px !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #ff3347 !important;
  }
body[data-view="admin"] .admin-content:has([data-admin-panel="support"].active) {
    overflow: visible !important;
    padding: 0 !important;
  }
body[data-view="admin"] .admin-tab[data-admin-panel="support"].active {
    padding: 0 !important;
  }
body[data-view="admin"] .admin-support-page {
    min-height: calc(100vh - 92px) !important;
    padding: 28px 24px 34px !important;
    background: #fff !important;
  }
body[data-view="admin"] .admin-support-page.has-detail {
    display: flex !important;
    height: calc(100dvh - 92px) !important;
    min-height: 0 !important;
    padding: 16px 24px 14px !important;
  }
body[data-view="admin"] .admin-support-workspace {
    display: block !important;
    min-height: 0 !important;
  }
body[data-view="admin"] .admin-support-page.has-detail .admin-support-workspace {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 0 !important;
  }
body[data-view="admin"] .admin-support-page.has-detail .admin-support-queue {
    display: none !important;
  }
body[data-view="admin"] .admin-support-page:not(.has-detail) .admin-support-chat,
body[data-view="admin"] .admin-support-page:not(.has-detail) .admin-support-client {
    display: none !important;
  }
body[data-view="admin"] .admin-support-queue,
body[data-view="admin"] .admin-support-chat {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
body[data-view="admin"] .admin-support-page.has-detail .admin-support-chat {
    display: flex !important;
    height: 100% !important;
    min-height: 0 !important;
    flex-direction: column !important;
  }
body[data-view="admin"] .admin-support-queue-head {
    padding: 0 !important;
  }
body[data-view="admin"] .admin-support-queue-head h2 {
    font-size: 28px !important;
  }
body[data-view="admin"] .admin-support-queue-head label {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    min-height: 62px !important;
    padding: 0 16px !important;
    font-size: 17px !important;
  }
body[data-view="admin"] .admin-support-queue-head label > span {
    font-size: 18px !important;
  }
body[data-view="admin"] .admin-support-queue-head input {
    font-size: 17px !important;
  }
body[data-view="admin"] .admin-support-queue-head nav {
    gap: 18px !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
  }
body[data-view="admin"] .admin-support-queue-head nav button {
    flex: 0 0 auto !important;
    min-height: 36px !important;
    padding: 0 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
  }
body[data-view="admin"] .admin-support-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
body[data-view="admin"] .admin-support-filter-row select {
    min-height: 50px !important;
    padding: 0 14px !important;
    font-size: 16px !important;
    font-weight: 650 !important;
  }
body[data-view="admin"] .admin-support-ticket {
    grid-template-columns: 58px minmax(0, 1fr) auto !important;
    gap: 14px !important;
    padding: 18px 0 !important;
    align-items: center !important;
    border: 0 !important;
    border-bottom: 1px solid #edf0f6 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
body[data-view="admin"] .admin-support-ticket.active {
    background: transparent !important;
    border-left: 0 !important;
  }
body[data-view="admin"] .admin-support-avatar {
    width: 52px !important;
    height: 48px !important;
  }
body[data-view="admin"] .admin-support-ticket-body b,
body[data-view="admin"] .admin-support-ticket-body em {
    font-size: 15px !important;
    font-weight: 500 !important;
  }
body[data-view="admin"] .admin-support-ticket-body em {
    margin-top: 4px !important;
    color: #4f32ff !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
  }
body[data-view="admin"] .admin-support-ticket-body small,
body[data-view="admin"] .admin-support-ticket time {
    font-size: 14px !important;
    font-weight: 400 !important;
  }
body[data-view="admin"] .admin-support-ticket time {
    align-self: start !important;
    padding-top: 2px !important;
  }
body[data-view="admin"] .admin-support-chat-head {
    grid-template-columns: 42px minmax(0, 1fr) 54px !important;
    gap: 10px !important;
    flex: 0 0 auto !important;
    padding: 10px 0 14px !important;
    border-bottom: 1px solid #edf0f6 !important;
  }
body[data-view="admin"] .admin-support-person {
    min-width: 0 !important;
  }
body[data-view="admin"] .admin-support-person .admin-support-avatar {
    width: 58px !important;
    height: 58px !important;
  }
body[data-view="admin"] .admin-support-assignee {
    justify-content: end !important;
  }
body[data-view="admin"] .admin-support-more > button {
    width: 54px !important;
    height: 54px !important;
  }
body[data-view="admin"] .admin-support-ticket-strip {
    grid-column: 1 / -1 !important;
    margin-top: 8px !important;
    min-height: 48px !important;
  }
body[data-view="admin"] .admin-support-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: auto !important;
    padding: 18px 0 !important;
  }
body[data-view="admin"] .admin-support-bubble {
    width: fit-content !important;
    min-width: 46px !important;
    max-width: 76% !important;
    margin-bottom: 18px !important;
    padding: 8px 11px !important;
    border: 0 !important;
    border-radius: 16px 16px 16px 6px !important;
    background: #f4f5f8 !important;
    box-shadow: none !important;
    color: #121624 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.34 !important;
    white-space: normal !important;
  }
body[data-view="admin"] .admin-support-bubble-body > span {
    white-space: pre-wrap !important;
  }
body[data-view="admin"] .admin-support-bubble.admin {
    border-radius: 16px 16px 6px 16px !important;
    background: #eeeafe !important;
  }
body[data-view="admin"] .admin-support-bubble.internal {
    border: 1px solid #ffe0a3 !important;
    border-radius: 14px !important;
    background: #fff8e7 !important;
    color: #5d667a !important;
  }
body[data-view="admin"] .admin-support-bubble time {
    position: absolute !important;
    top: calc(100% + 5px) !important;
    left: 2px !important;
    display: inline-block !important;
    width: max-content !important;
    min-width: max-content !important;
    margin-top: 0 !important;
    color: #9aa1ad !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
body[data-view="admin"] .admin-support-bubble.admin time {
    right: 2px !important;
    left: auto !important;
  }
body[data-view="admin"] .admin-support-bubble.internal time {
    position: static !important;
    margin-top: 4px !important;
    text-align: center !important;
  }
body[data-view="admin"] .admin-support-composer {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 52px !important;
    flex: 0 0 auto !important;
    align-items: end !important;
    gap: 10px !important;
    padding: 10px 0 calc(4px + env(safe-area-inset-bottom)) !important;
  }
body[data-view="admin"] .admin-support-composer .chat-pending-preview {
    grid-column: 1 / -1 !important;
  }
body[data-view="admin"] .admin-support-composer textarea {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 13px 16px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
body[data-view="admin"] .admin-support-composer .chat-attach-toggle {
    width: 52px !important;
    height: 48px !important;
    min-height: 48px !important;
  }
body[data-view="admin"] .admin-support-composer button[type="submit"] {
    display: grid !important;
    grid-column: auto !important;
    position: relative !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    place-items: center !important;
    border-radius: 8px !important;
    font-size: 18px !important;
  }
body[data-view="admin"] .admin-support-composer button[type="submit"]::before {
    content: none !important;
  }
}
/* Dynamic message counters: keep unread badges away from pin/attach controls. */
body[data-view="messages"] .buyer-dialog-item i {
  top: auto !important;
  right: 52px !important;
  bottom: 14px !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}
body[data-view="messages"] .buyer-dialog-pin {
  right: 14px !important;
  bottom: 14px !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-body {
  padding-right: 86px !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item i,
#sellerMessagesView .seller-dialog-unread,
.nav-counter,
.seller-nav-counter,
.mobile-nav-counter,
.seller-drawer-count {
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 20px !important;
  max-width: 28px !important;
  height: 20px !important;
  min-height: 20px !important;
  padding: 0 5px !important;
  overflow: hidden !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item {
    grid-template-columns: 74px minmax(0, 1fr) 64px !important;
    gap: 14px !important;
    min-height: 104px !important;
    padding: 16px 18px 16px 14px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-avatar {
    width: 64px !important;
    height: 64px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .seller-dialog-row,
  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-row {
    grid-template-columns: minmax(0, 1fr) 52px !important;
    gap: 10px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-title-wrap {
    gap: 8px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-pin {
    flex-basis: 28px !important;
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item i {
    top: 56px !important;
    right: 24px !important;
  }
}

@media (max-width: 768px) {
  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item {
    grid-template-columns: 74px minmax(0, 1fr) 64px !important;
    gap: 14px !important;
    min-height: 104px !important;
    padding: 16px 18px 16px 14px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-avatar {
    width: 64px !important;
    height: 64px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .seller-dialog-row,
  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-row {
    grid-template-columns: minmax(0, 1fr) 52px !important;
    gap: 10px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-title-wrap {
    gap: 8px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-pin {
    flex-basis: 28px !important;
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item i {
    top: 56px !important;
    right: 24px !important;
  }
}

body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item i,
#sellerMessagesView .seller-dialog-unread {
  min-width: 24px !important;
  max-width: 30px !important;
  height: 24px !important;
  min-height: 24px !important;
  font-size: 12px !important;
}
input[type="search"]:focus,
input[id$="Search"]:focus,
input[data-support-search]:focus,
input[data-orders-search]:focus,
input[data-dispute-search]:focus,
input[data-purchase-search]:focus,
input[data-favorites-search]:focus,
input[data-seller-filter="q"]:focus {
  border-color: #dfe4ef;
  box-shadow: none;
}
:where(
  .buyer-message-search,
  .seller-message-search,
  .buyer-purchases-search,
  .favorites-search,
  .seller-listing-search,
  .seller-order-search,
  .seller-search,
  .seller-profile-search,
  .admin-search,
  .admin-mod-search,
  .admin-listings-search,
  .admin-catalog-search,
  .admin-orders-search,
  .admin-disputes-search,
  .admin-finance-search,
  .admin-audit-search,
  .admin-support-queue-head label,
  .not-found-search
):focus-within {
  border-color: #dfe4ef;
  box-shadow: none;
}
:where(
  .buyer-message-search,
  .seller-message-search,
  .buyer-purchases-search,
  .favorites-search,
  .seller-listing-search,
  .seller-order-search,
  .seller-search,
  .seller-profile-search,
  .admin-search,
  .admin-mod-search,
  .admin-listings-search,
  .admin-catalog-search,
  .admin-orders-search,
  .admin-disputes-search,
  .admin-finance-search,
  .admin-audit-search,
  .admin-support-queue-head label,
  .not-found-search
) input:focus {
  border-color: transparent;
  outline: 0;
  box-shadow: none;
}
.seller-message-search input#sellerMessagesSearch:focus,
.buyer-message-search input#buyerMessagesSearch:focus,
.admin-support-queue-head label input[data-support-search]:focus {
  border-color: transparent;
  outline: 0;
  box-shadow: none;
}
:where(
  .buyer-message-search,
  .seller-message-search,
  .buyer-purchases-search,
  .favorites-search,
  .global-search,
  .seller-listing-search,
  .seller-order-search,
  .seller-search,
  .seller-profile-search,
  .admin-mod-search,
  .admin-listings-search,
  .admin-catalog-search,
  .admin-orders-search,
  .admin-disputes-search,
  .admin-finance-search,
  .admin-audit-search,
  .admin-support-queue-head label
) > span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  color: #687086;
  font-size: 22px;
  line-height: 1;
}
.seller-message-search > span,
.buyer-message-search > span {
  font-size: 24px;
}
input[type="date"]:focus {
  border-color: transparent !important;
  outline: 0;
  box-shadow: none !important;
}
.admin-finance-date input[type="date"]:focus {
  border-color: transparent !important;
  outline: 0;
  box-shadow: none !important;
}
body[data-view="admin"] .admin-search-icon {
  width: 28px;
  height: 28px;
}
body[data-view="admin"] .admin-search-icon svg {
  width: 24px;
  height: 24px;
}
body[data-view="admin"] .admin-support-queue-head label {
  grid-template-columns: 28px minmax(0, 1fr);
}
body[data-view="admin"] .admin-support-queue-head label > span {
  font-size: 22px !important;
}
.not-found-search button[type="submit"] {
  font-size: 22px;
  line-height: 1;
}
#sellerMessagesView .seller-message-search span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  line-height: 1;
}
/* rollback: layout modules restored into styles.css */

/* Restored from css/site-header.css. */
/* Global site header,
catalog popover and profile menu. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}
.header-top,
.header-main,
.category-strip,
.page {
  width: min(1760px, calc(100vw - 56px));
  margin: 0 auto;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  color: #454858;
  font-size: 13px;
}
.header-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.text-btn {
  padding: 0;
  color: #454858;
  border: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}
.text-btn:hover {
  color: var(--violet);
}
.header-main {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
}
.logo-button {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}
.logo-wordmark {
  display: block;
  width: clamp(200px, 100vw, 200px);
  height: 47px;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
}
.catalog-button,
.nav-tile {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  font-weight: 760;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.catalog-button {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 20px;
  color: var(--ink);
  background: var(--soft);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.catalog-button[aria-expanded="true"] {
  color: var(--violet);
  background: #f1edff;
  box-shadow: inset 0 0 0 1px rgba(74, 53, 232, 0.35);
}
.catalog-popover[hidden] {
  display: none;
}
.catalog-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 216px;
  z-index: 90;
  width: min(1060px, calc(100vw - 56px));
}
.catalog-popover-shell {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(24, 24, 33, 0.16);
}
.catalog-popover-group-panel {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid #edf0f6;
  background: #fff;
}
.catalog-popover-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
}
.catalog-popover-search {
  display: block;
  padding: 14px 16px 10px;
  border: 0;
  background: #fff;
  box-shadow: none;
}
.catalog-popover-search input {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  background: #fff;
  color: #252b3a;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 44px;
  outline: none;
}
.catalog-popover-search input::placeholder {
  color: #8b93a3;
  font-weight: 500;
}
.catalog-popover-search input:focus {
  border-color: #dfe4ef;
  box-shadow: none;
}
.catalog-popover-body {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  align-items: start;
  min-width: 0;
}
.catalog-popover-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f6;
  background: #fff;
}
.catalog-popover-groups {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.catalog-popover-groups button {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #4b5568;
  font: inherit;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.catalog-popover-groups button::after {
  content: "›";
  justify-self: end;
  color: #8b93a3;
  font-size: 18px;
  line-height: 1;
}
.catalog-popover-groups button:hover,
.catalog-popover-groups button.active {
  border-color: rgba(74, 53, 232, 0.35);
  background: #f1edff;
  color: var(--violet);
}
.catalog-popover-groups button:disabled {
  opacity: 0.45;
  cursor: default;
}
.catalog-popover-groups svg {
  display: block;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  max-width: 18px;
}
.catalog-popover-services {
  display: grid;
  gap: 2px;
  max-height: 520px;
  overflow: auto;
  padding: 10px;
  border-right: 1px solid #edf0f6;
}
.catalog-popover-services a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #252b3a;
  font-weight: 740;
  text-decoration: none;
}
.catalog-popover-services a:hover,
.catalog-popover-services a.active {
  color: var(--violet);
  background: #f1edff;
}
.catalog-popover-services img,
.catalog-popover-popular img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.catalog-popover-panel {
  display: grid;
  gap: 16px;
  max-height: 520px;
  overflow: auto;
  padding: 18px;
}
.catalog-popover-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.catalog-popover-head strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}
.catalog-popover-head small {
  display: block;
  margin-top: 4px;
  color: #6b7284;
  font-size: 13px;
  line-height: 1.35;
}
.catalog-popover-head a {
  color: var(--violet);
  font-weight: 760;
  text-decoration: none;
}
.catalog-popover-platforms {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 0 2px 2px 0;
  scrollbar-width: thin;
}
.catalog-popover-platforms button {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #edf0f5;
  color: #4b5568;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}
.catalog-popover-platforms button:hover,
.catalog-popover-platforms button.active {
  border-color: rgba(74, 53, 232, 0.45);
  background: #f1edff;
  color: var(--violet);
}
.catalog-popover-platforms img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.catalog-popover-platforms small {
  color: #8b92a4;
  font-size: 11px;
  font-weight: 760;
}
.catalog-popover-platforms button.active small {
  color: var(--violet);
}
.catalog-popover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.catalog-popover-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 14px;
  gap: 12px;
  align-items: center;
  align-self: start;
  min-height: 74px;
  padding: 12px;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.catalog-popover-card:hover {
  border-color: rgba(74, 53, 232, 0.4);
  background: #faf8ff;
}
.catalog-popover-card > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f1edff;
}
.catalog-popover-card img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.catalog-popover-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}
.catalog-popover-card small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #6b7284;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-popover-popular {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.catalog-popover-popular b {
  color: var(--ink);
  font-size: 15px;
}
.catalog-popover-popular div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.catalog-popover-popular a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #e6e8f0;
  border-radius: 9px;
  color: #252b3a;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}
.catalog-popover-empty {
  padding: 18px;
  color: #6b7284;
  font-weight: 650;
}
@media (max-width: 980px) {
.catalog-popover {
    left: 0;
    width: min(720px, calc(100vw - 56px));
  }
}
@media (max-width: 700px) {
body.catalog-popover-open {
    overflow: hidden;
  }
.catalog-popover {
    position: fixed;
    inset: 0;
    z-index: 120;
    width: auto;
    padding: 14px;
    background: rgba(24, 24, 33, 0.28);
  }
.catalog-popover-shell {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    border-radius: 14px;
  }
.catalog-popover-group-panel {
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid #edf0f6;
  }
.catalog-popover-groups {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }
.catalog-popover-groups button {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 999px;
    white-space: nowrap;
  }
.catalog-popover-groups button::after {
    content: none;
  }
.catalog-popover-body {
    grid-template-columns: 1fr;
  }
.catalog-popover-filter-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }
.catalog-popover-search {
    padding: 10px 12px 0;
  }
.catalog-popover-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 312px;
    border-right: 0;
    border-bottom: 1px solid #edf0f6;
  }
.catalog-popover-services a {
    grid-template-columns: 34px minmax(0, 1fr) 12px;
    min-height: 58px;
    padding: 8px;
    font-size: 14px;
  }
.catalog-popover-services img {
    width: 28px;
    height: 28px;
  }
.catalog-popover-panel {
    max-height: none;
    padding: 14px;
  }
.catalog-popover-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }
.catalog-popover-head a {
    display: none;
  }
.catalog-popover-head strong {
    font-size: 20px;
  }
.catalog-popover-grid {
    grid-template-columns: 1fr;
  }
.catalog-popover-card {
    min-height: 64px;
  }
.catalog-popover-popular div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.button-icon {
  font-size: 20px;
}
.button-icon-img {
  width: 22px;
  pointer-events: none;
  height: 22px;
  object-fit: contain;
}
.global-search {
  position: relative;
  display: block;
}
.global-search span {
  position: absolute;
  left: 18px;
  top: 50%;
  color: #9aa0af;
  transform: translateY(-50%);
  font-size: 28px;
}
.global-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 54px 0 58px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--soft);
  font-size: 16px;
}
.account-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-tile {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 54px;
  padding: 6px 12px;
  color: #4e5363;
  background: transparent;
}
.nav-tile img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.nav-tile.has-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #eeeafe;
}
.nav-symbol {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.nav-icon-svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}
.nav-favorite-icon {
  fill: currentColor;
  stroke: none;
}
.nav-tile span {
  font-size: 13px;
  font-weight: 720;
}
.nav-tile .nav-symbol {
  font-size: 24px;
  font-weight: 500;
}
.nav-tile:hover {
  color: var(--ink);
  background: var(--soft);
}
.nav-counter {
  position: absolute;
  top: 4px;
  right: 8px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ff4338;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.profile-shell {
  position: relative;
}
.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  width: min(350px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(231, 232, 239, 0.72);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(24, 24, 33, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.profile-shell.is-open .profile-menu,
.profile-shell:focus-within .profile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.profile-menu-head {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 13px;
  align-items: center;
  margin-bottom: 10px;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #eeeafe;
}
.profile-avatar img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.profile-avatar.has-avatar {
  overflow: hidden;
}
.profile-avatar.has-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-current-user-avatar].has-avatar,
[data-mobile-profile-avatar].has-avatar {
  border-radius: 50%;
  object-fit: cover !important;
  background: #eeeafe;
}
.profile-menu-head strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}
.profile-menu-head span {
  display: block;
  margin-top: 4px;
  color: #343744;
  font-size: 14px;
}
.profile-menu-row {
  display: grid;
  grid-template-columns: 26px 1fr auto auto;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  width: 100%;
  padding: 0;
  color: #070b25;
  border: 0;
  background: transparent;
  text-align: left;
}
.profile-menu-row svg,
.profile-menu-row img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.profile-menu-row svg {
  fill: currentColor;
  stroke: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}
.profile-menu-row span {
  font-size: 17px;
  font-weight: 620;
}
.profile-menu-row b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  color: var(--violet);
  border-radius: 999px;
  background: #eeeafe;
  font-size: 15px;
}
.profile-menu-row i {
  color: #9aa0af;
  font-style: normal;
  font-size: 28px;
  line-height: 1;
}
.profile-menu-row:hover span,
.profile-menu-row:hover i {
  color: var(--violet);
}
.category-strip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  overflow-x: auto;
  padding: 14px 0 16px;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar {
  display: none;
}
.category-strip button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-width: max-content;
  padding: 8px 10px;
  color: #2d303d;
  border: 0;
  border-radius: 10px;
  background: #fff;
  font-weight: 680;
}
.category-strip button.active,
.category-strip button:hover {
  color: var(--violet);
  background: #f4f2ff;
}
.cat-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}
.cat-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
/* Restored from css/footer.css. */
/* Global Lootava footer. */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page {
  flex: 1 0 auto;
}
.lootava-footer {
  flex-shrink: 0;
  padding: 48px min(5.4vw, 96px) 38px;
  color: #102041;
  background: #f7f8ff;
}
.document-page {
  max-width: 980px;
  min-height: 48vh;
  margin: 0 auto;
  padding: 72px 0;
}
.document-page h1 {
  margin: 0 0 18px;
  color: #10152b;
  font-size: 42px;
  line-height: 1.1;
}
.document-page p {
  margin: 0;
  color: #66708a;
  font-size: 20px;
}
.lootava-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: min(7vw, 96px);
  max-width: 1760px;
  margin: 0 auto;
}
.lootava-footer-brand {
  display: grid;
  justify-items: start;
  gap: 18px;
}
.lootava-footer-brand img {
  display: block;
  width: 180px;
  height: auto;
}
.lootava-footer-brand p {
  margin: 0;
  color: #66708a;
  font-size: 16px;
  line-height: 1.35;
}
.lootava-footer-brand button {
  min-width: 180px;
  min-height: 44px;
  padding: 0 24px;
  color: #4a22ff;
  border: 2px solid #4a22ff;
  border-radius: 8px;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
}
.lootava-footer-brand button:hover,
.lootava-footer-brand button:focus-visible,
.lootava-footer a:hover,
.lootava-footer a:focus-visible {
  color: #3518d8;
  outline: none;
}
.lootava-footer-brand button:focus-visible,
.lootava-footer a:focus-visible,
.lootava-footer-group > button:focus-visible {
  box-shadow: 0 0 0 4px rgba(74, 34, 255, 0.18);
}
.lootava-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: min(5vw, 78px);
}
.lootava-footer-group > button {
  display: block;
  width: 100%;
  padding: 0;
  color: #102041;
  border: 0;
  background: transparent;
  font-size: 19px;
  font-weight: 800;
  text-align: left;
}
.lootava-footer-group > button span {
  display: none;
}
.lootava-footer-links {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}
.lootava-footer a {
  color: #46516a;
  font-size: 17px;
  line-height: 1.25;
  text-decoration: none;
}
.lootava-footer-bottom {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 32px;
  align-items: end;
  max-width: 1760px;
  margin: 46px auto 0;
  padding-top: 36px;
  border-top: 1px solid #dfe3ef;
}
.lootava-footer address,
.lootava-footer-bottom p {
  margin: 0;
  color: #46516a;
  font-style: normal;
  font-size: 16px;
  line-height: 1.6;
}
@media (max-width: 768px) {
.lootava-footer {
    padding: 24px 24px 32px;
    background: #f7f8ff;
  }
body[data-view^="seller"] .lootava-footer,
body[data-view="market"] .lootava-footer {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
.lootava-footer-grid,
.lootava-footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
.lootava-footer-brand {
    justify-items: center;
    gap: 10px;
    text-align: center;
  }
.lootava-footer-brand img {
    width: min(44vw, 190px);
  }
.lootava-footer-brand p {
    font-size: 14px;
  }
.lootava-footer-brand button {
    width: 100%;
    min-height: 42px;
    margin: 14px 0 22px;
    border-radius: 8px;
    font-size: 18px;
  }
.lootava-footer-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
.lootava-footer-group {
    border-bottom: 1px solid #d9deeb;
  }
.lootava-footer-group:first-child {
    border-top: 1px solid #d9deeb;
  }
.lootava-footer-group > button {
    display: grid;
    grid-template-columns: 1fr 32px;
    align-items: center;
    min-height: 50px;
    font-size: 18px;
  }
.lootava-footer-group > button span {
    display: block;
    width: 10px;
    height: 10px;
    justify-self: end;
    border-right: 3px solid #102041;
    border-bottom: 3px solid #102041;
    transform: rotate(45deg);
  }
.lootava-footer-group > button[aria-expanded="true"] span {
    transform: rotate(225deg);
  }
.lootava-footer-links {
    display: none;
    gap: 18px;
    margin: 8px 0 22px 10px;
  }
.lootava-footer-group > button[aria-expanded="true"] + .lootava-footer-links {
    display: grid;
  }
.lootava-footer a {
    font-size: 18px;
  }
.lootava-footer-bottom {
    margin-top: 28px;
    padding-top: 0;
    border-top: 0;
  }
.lootava-footer address {
    font-size: 14px;
    line-height: 1.45;
  }
.lootava-footer-bottom p {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
  }
}
/* Restored from css/seller-layout.css. */
/* Seller shared layout: shell,
sidebar,
topbar,
mobile header,
drawer and bottom nav. */

body[data-view="seller"],
body[data-view="sellerListings"],
body[data-view="sellerOrders"],
body[data-view="sellerMessages"],
body[data-view="sellerFinance"],
body[data-view="sellerPromotion"],
body[data-view="sellerReviews"],
body[data-view="sellerSettings"],
body[data-view="sellerCreate"],
body[data-view="admin"] {
  background: #f8f9fd;
}
body[data-view="seller"] .site-header,
body[data-view="sellerListings"] .site-header,
body[data-view="sellerOrders"] .site-header,
body[data-view="sellerMessages"] .site-header,
body[data-view="sellerFinance"] .site-header,
body[data-view="sellerPromotion"] .site-header,
body[data-view="sellerReviews"] .site-header,
body[data-view="sellerSettings"] .site-header,
body[data-view="sellerCreate"] .site-header,
body[data-view="admin"] .site-header {
  display: none;
}
body[data-view="seller"] .page,
body[data-view="sellerListings"] .page,
body[data-view="sellerOrders"] .page,
body[data-view="sellerMessages"] .page,
body[data-view="sellerFinance"] .page,
body[data-view="sellerPromotion"] .page,
body[data-view="sellerReviews"] .page,
body[data-view="sellerSettings"] .page,
body[data-view="sellerCreate"] .page,
body[data-view="admin"] .page {
  width: 100%;
  padding: 0;
}
.seller-console {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-width: 0;
  min-height: 100vh;
  color: #151827;
  background: #f8f9fd;
}
.seller-nav {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  width: 250px;
  padding: 24px 12px;
  border-right: 1px solid #e5e8f1;
  background: #fff;
}
.seller-logo {
  margin: 0 18px 48px;
}
.seller-nav .logo-wordmark {
  width: 148px;
  height: auto;
}
.seller-nav nav {
  display: grid;
  gap: 10px;
  align-content: start;
}
.seller-nav nav button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: calc(100% - 24px);
  min-height: 50px;
  padding: 0 20px;
  margin: 0 auto;
  color: #22263a;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 15px;
  font-weight: 760;
  text-align: left;
  white-space: nowrap;
}
.seller-nav nav button.active,
.seller-nav nav button:hover {
  color: var(--violet);
  background: #eeecff;
}
.seller-nav nav span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
}
.seller-nav nav span img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.74;
  transform: translateZ(0);
}
.seller-nav-promotion-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: currentColor;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.seller-nav nav button.active span img,
.seller-nav nav button:hover span img {
  opacity: 0.9;
  filter: invert(28%) sepia(90%) saturate(2657%) hue-rotate(246deg) brightness(96%) contrast(99%);
}
.seller-nav nav b {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: var(--violet);
  font-size: 13px;
}
.seller-nav nav b[hidden] {
  display: none;
}
.seller-nav nav .seller-nav-counter {
  display: grid;
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: #ff4338;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.seller-mobile-bottom-nav .seller-nav-counter {
  position: absolute;
  top: 6px;
  right: 18%;
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: #ff4338;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.seller-mobile-bottom-nav button.has-nav-counter {
  position: relative;
}

.seller-drawer-link {
  position: relative;
}
.seller-drawer-count,
.mobile-nav-counter {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: #ff4338;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.seller-drawer-count {
  margin-left: auto;
}
.market-mobile-drawer-link .mobile-nav-counter {
  margin-left: auto;
}
.seller-user-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.seller-user-card[data-seller-card-profile-url] {
  cursor: pointer;
}
.seller-user-avatar-link,
.seller-user-main-link {
  display: block;
  width: 50px;
  height: 50px;
  color: inherit;
  text-decoration: none;
}
.seller-user-avatar-link img,
.seller-user-main-link img,
.seller-user-card > img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.seller-user-info,
.seller-user-card > div {
  min-width: 0;
}
.seller-user-name-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.seller-user-name-link strong,
.seller-user-main-link strong,
.seller-user-reviews-link,
.seller-user-card > div strong,
.seller-user-card > div span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seller-user-name-link strong,
.seller-user-main-link strong,
.seller-user-card > div strong {
  white-space: nowrap;
}
.seller-user-reviews-link,
.seller-user-card > div span {
  margin-top: 4px;
  color: #5d6175;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.seller-user-name-link:hover,
.seller-user-reviews-link:hover {
  color: #573bff;
}
.seller-user-avatar-link:focus-visible,
.seller-user-name-link:focus-visible,
.seller-user-reviews-link:focus-visible,
.seller-user-main-link:focus-visible {
  outline: 2px solid #6b4cff;
  outline-offset: 3px;
  border-radius: 8px;
}
.seller-create-page {
  min-width: 0;
}
.seller-home-main {
  display: grid;
  gap: 24px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 42px 34px 34px;
}
.seller-home-head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
}
.seller-home-head h1 {
  margin: 0 0 8px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.98;
  text-align: center;
}
.seller-home-head p {
  margin: 0;
  color: #6b7082;
  font-size: 20px;
  text-align: center;
}
.seller-home-head .primary-btn,
.seller-home-head .ghost-btn {
  min-height: 52px;
  border-radius: 12px;
}
.seller-top-create {
  min-width: 176px;
  min-height: 44px;
  color: #fff;
  border: 0;
  background: var(--red);
  box-shadow: 0 16px 34px rgba(255, 77, 46, 0.22);
}
.seller-section-title h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.06;
}
.seller-section-title p {
  margin: 0;
  color: #5f6479;
  font-size: 15px;
}
.seller-mobile-topbar,
.seller-mobile-bottom-nav,
.seller-mobile-menu-backdrop,
.seller-orders-sheet-head,
.seller-order-mobile-filter,
.seller-order-menu,
.seller-order-mobile-menu {
  display: none;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
.seller-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.seller-pagination button {
  min-width: 34px;
  min-height: 34px;
  color: #151827;
  border: 1px solid #dfe3ee;
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
}
.seller-pagination button.active {
  color: #fff;
  border-color: transparent;
  background: var(--violet);
}
.seller-pagination button:disabled {
  color: #a2a8b8;
  cursor: not-allowed;
  background: #f5f6fa;
}
.seller-pagination span {
  color: #687086;
  font-weight: 500;
}
.seller-pagination select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #dfe3ee;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 500;
}
.seller-create-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 34px;
  border-bottom: 1px solid #e5e8f1;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}
.seller-breadcrumb,
.seller-top-actions,
.seller-support {
  color: #545972;
  font-size: 15px;
  font-weight: 760;
}
.seller-breadcrumb span {
  margin: 0 18px;
  color: #a4a9ba;
}
.seller-top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.seller-top-actions a.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.seller-support {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
}
.seller-support-mini {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
}
.seller-support-mini img {
  width: 25px;
  height: 25px;
  padding: -20px 1px 1px;
  object-fit: contain;
}
.seller-support img,
.seller-notification-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.seller-notification-btn {
  position: relative;
}
.seller-notification-btn,
.seller-mobile-shared-bell {
  display: none !important;
}
.seller-support img,
.support-mini img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}
.seller-mobile-layout-slot,
.seller-mobile-drawer {
  display: none;
}
.seller-mobile-bottom-nav b {
  display: none !important;
}
body.seller-drawer-open {
  overflow: hidden;
  touch-action: none;
}
@media (max-width: 1023px) {
.seller-mobile-layout-slot {
    display: block;
  }
#sellerView .seller-mobile-topbar,
#sellerListingsView .seller-mobile-topbar,
#sellerOrdersView .seller-mobile-topbar,
#sellerMessagesView .seller-mobile-topbar,
#sellerPromotionView .seller-mobile-topbar,
#sellerCreateView .seller-mobile-topbar,
#sellerView .seller-mobile-menu-backdrop,
#sellerListingsView .seller-mobile-menu-backdrop,
#sellerOrdersView .seller-mobile-menu-backdrop,
#sellerMessagesView .seller-mobile-menu-backdrop,
#sellerPromotionView .seller-mobile-menu-backdrop,
#sellerCreateView .seller-mobile-menu-backdrop {
    display: none !important;
  }
body[data-view^="seller"] .seller-mobile-layout-slot {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 80;
  }
.seller-mobile-shared-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 40;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    height: 64px;
    padding: 0 16px;
    border-bottom: 1px solid #e1e5ef;
    background: rgba(255, 255, 255, 0.98);
  }
body[data-view^="seller"] .seller-console {
    padding-top: 64px;
  }
.seller-mobile-shared-icon,
.seller-mobile-shared-logo {
    display: grid;
    place-items: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    color: #070b25;
    border: 0;
    background: transparent;
  }
.seller-mobile-shared-logo {
    justify-self: center;
    width: auto;
    min-width: 120px;
  }
.seller-mobile-shared-logo img {
    display: block;
    width: 116px;
    height: auto;
    object-fit: contain;
  }
.seller-mobile-shared-title {
    min-width: 0;
    color: #070b25;
    font-size: 20px;
    font-weight: 820;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }
.seller-mobile-shared-burger {
    position: relative;
    display: block;
    width: 20px;
    height: 16px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }
.seller-mobile-shared-burger::before {
    position: absolute;
    top: 5px;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    content: "";
  }
.seller-mobile-shared-back {
    display: block;
    width: 18px;
    height: 18px;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);
  }
.seller-mobile-shared-bell span {
    position: relative;
    display: block;
    width: 19px;
    height: 20px;
    border: 2px solid currentColor;
    border-bottom-color: transparent;
    border-radius: 12px 12px 8px 8px;
  }
.seller-mobile-shared-bell span::before {
    position: absolute;
    right: -7px;
    top: -7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff2d12;
    content: "";
  }
.seller-mobile-shared-bell span::after {
    position: absolute;
    right: 4px;
    bottom: -5px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
  }
.seller-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
  }
.seller-mobile-drawer[hidden] {
    display: none;
  }
.seller-mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    background: rgba(8, 12, 31, 0.62);
  }
.seller-mobile-drawer-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(82vw, 340px);
    padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    color: #070b25;
    border: 1px solid #dbe2f0;
    border-left: 0;
    border-radius: 0 18px 18px 0;
    background: #fff;
    box-shadow: 24px 0 46px rgba(7, 11, 37, 0.22);
    outline: none;
  }
.seller-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
.seller-mobile-drawer-head img {
    width: 136px;
    height: auto;
  }
.seller-mobile-drawer-close {
    position: relative;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
  }
.seller-mobile-drawer-close::before,
.seller-mobile-drawer-close::after {
    position: absolute;
    top: 23px;
    left: 12px;
    width: 25px;
    height: 2px;
    border-radius: 999px;
    background: #070b25;
    content: "";
  }
.seller-mobile-drawer-close::before {
    transform: rotate(45deg);
  }
.seller-mobile-drawer-close::after {
    transform: rotate(-45deg);
  }
.seller-mobile-drawer-subtitle {
    margin: 28px 0 22px;
    color: #68708f;
    font-size: 16px;
    line-height: 1.25;
  }
.seller-mobile-drawer-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
.seller-drawer-divider {
    height: 1px;
    margin: 14px 8px;
    background: #e1e5ef;
  }
.seller-mobile-drawer-list .seller-drawer-divider {
    margin: 12px 8px;
  }
.seller-drawer-link {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 58px;
    padding: 7px 12px;
    color: #070b25;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 17px;
    font-weight: 760;
    line-height: 1.2;
    text-align: left;
  }
.seller-drawer-link-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
  }
.seller-drawer-link-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
  }
.seller-drawer-link.active {
    color: #4a22ff;
    background: #f1edff;
  }
}
@media (max-width: 430px) {
.seller-mobile-shared-header {
    height: 58px;
    padding: 0 14px;
  }
.seller-mobile-shared-logo img {
    width: 104px;
  }
.seller-mobile-drawer-panel {
    width: min(86vw, 324px);
    padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  }
.seller-mobile-drawer-head img {
    width: 126px;
  }
}
.seller-mobile-shared-bell img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
@media (max-width: 768px) {
body[data-view="seller"] {
    overflow-x: hidden;
    background: #fff;
  }
#sellerView {
    overflow-x: hidden;
    background: #fff;
  }
#sellerView .seller-console {
    display: block;
    min-height: 100vh;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
    background: #fff;
  }
#sellerView .seller-nav,
#sellerView .seller-create-topbar {
    display: none;
  }
#sellerView .seller-create-page {
    width: 100%;
    min-width: 0;
  }
#sellerView .seller-mobile-layout-slot {
    display: block;
  }

}
:root {
  --seller-type-title: 34px;
  --seller-type-subtitle: 15px;
  --seller-type-section: 22px;
  --seller-type-body: 15px;
  --seller-type-small: 13px;
  --seller-type-control: 15px;
  --seller-type-tab: 16px;
  --seller-type-value: 23px;
  --seller-mobile-title: 32px;
  --seller-mobile-subtitle: 16px;
  --seller-mobile-section: 24px;
  --seller-mobile-body: 16px;
  --seller-mobile-small: 14px;
  --seller-mobile-control: 16px;
  --seller-mobile-tab: 16px;
  --seller-mobile-value: 30px;
}
body[data-view^="seller"] .seller-section-title h1 {
  font-size: var(--seller-type-title);
  line-height: 1.08;
}
body[data-view^="seller"] .seller-section-title p {
  font-size: var(--seller-type-subtitle);
  line-height: 1.35;
}
body[data-view^="seller"] h2 {
  font-size: var(--seller-type-section);
  line-height: 1.2;
}
body[data-view^="seller"] p,
body[data-view^="seller"] label,
body[data-view^="seller"] input,
body[data-view^="seller"] select,
body[data-view^="seller"] button,
body[data-view^="seller"] .seller-breadcrumb,
body[data-view^="seller"] .seller-top-actions {
  font-size: var(--seller-type-body);
}
.seller-listing-tabs button,
.seller-order-tabs button {
  font-size: var(--seller-type-tab);
}
.seller-listing-stats small,
.seller-order-stat small {
  font-size: var(--seller-type-small);
}
.seller-listing-stats strong,
.seller-order-stat strong {
  font-size: var(--seller-type-value);
}
@media (max-width: 768px) {
body[data-view^="seller"] .seller-section-title h1,
#sellerView .seller-section-title h1 {
    font-size: var(--seller-mobile-title);
    line-height: 1.08;
  }
body[data-view^="seller"] .seller-section-title p,
#sellerView .seller-section-title p {
    font-size: var(--seller-mobile-subtitle);
    line-height: 1.35;
  }
body[data-view^="seller"] h2,
#sellerView .seller-rules h2,
#sellerView .seller-instruction h2 {
    font-size: var(--seller-mobile-section);
    line-height: 1.15;
  }
body[data-view^="seller"] p,
body[data-view^="seller"] label,
body[data-view^="seller"] input,
body[data-view^="seller"] select,
body[data-view^="seller"] button,
#sellerView .seller-rules p,
#sellerView .seller-rules li,
#sellerView .seller-instruction .section-head span {
    font-size: var(--seller-mobile-body);
  }
.seller-listing-tabs button,
.seller-order-tabs button {
    font-size: var(--seller-mobile-tab);
  }
.seller-listing-stats small,
.seller-order-stat small {
    font-size: var(--seller-mobile-small);
  }
.seller-listing-stats strong,
.seller-order-stat strong {
    font-size: var(--seller-mobile-value);
  }
.seller-mobile-bottom-nav button,
#sellerView .seller-home-bottom-nav button {
    font-size: 13px;
  }
}
@media (max-width: 768px) {
body[data-view^="seller"] .seller-mobile-bottom-nav,
body[data-view^="seller"] .seller-home-bottom-nav {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 90 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;
    min-height: calc(78px + env(safe-area-inset-bottom)) !important;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #e1e5ef !important;
    background: #fff !important;
    box-shadow: none !important;
  }
body[data-view^="seller"] .seller-mobile-bottom-nav button,
body[data-view^="seller"] .seller-home-bottom-nav button {
    position: relative !important;
    display: grid !important;
    grid-template-rows: 28px 18px !important;
    gap: 5px !important;
    align-items: center !important;
    justify-items: center !important;
    min-width: 0 !important;
    min-height: 56px !important;
    padding: 0 2px !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #10152b !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
body[data-view^="seller"] .seller-mobile-bottom-nav img,
body[data-view^="seller"] .seller-home-bottom-nav img {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    opacity: 0.76 !important;
  }
body[data-view^="seller"] .seller-mobile-bottom-nav .active img,
body[data-view^="seller"] .seller-home-bottom-nav .active img {
    opacity: 0.92 !important;
  }
body[data-view^="seller"] .seller-mobile-bottom-nav span,
body[data-view^="seller"] .seller-home-bottom-nav span {
    display: none !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
body[data-view^="seller"] .seller-mobile-bottom-nav .active,
body[data-view^="seller"] .seller-home-bottom-nav .active {
    color: #4a22ff !important;
  }
}
@media (max-width: 768px) {
body[data-view^="seller"] .seller-mobile-bottom-nav button,
body[data-view^="seller"] .seller-home-bottom-nav button,
body[data-view^="seller"] .reviews-bottom-nav button,
body[data-view^="seller"] .finance-bottom-nav button {
    grid-template-rows: 32px !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"] .reviews-bottom-nav span,
body[data-view^="seller"] .finance-bottom-nav span {
    display: none !important;
  }
body[data-view^="seller"] .seller-mobile-bottom-nav,
body[data-view^="seller"] .seller-home-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;
  }
}
@media (max-width: 360px) {
body[data-view^="seller"] .seller-mobile-bottom-nav button,
body[data-view^="seller"] .seller-home-bottom-nav button {
    font-size: 13px !important;
  }
}
/* Restored from css/mobile-layout.css. */
/* Public mobile header,
drawer,
filter button and bottom navigation. */

.market-filter-btn,
.market-mobile-header,
.market-mobile-drawer,
.market-mobile-bottom-nav {
  display: none;
}
@media (max-width: 768px) {
body[data-view="market"] {
    overflow-x: hidden;
    background: #fff;
  }
body[data-view="messages"] {
    overflow-x: hidden;
    background: #fff;
  }
body[data-view="settings"] {
    overflow-x: hidden;
    background: #fff;
  }
body[data-view="sellerProfile"] {
    overflow-x: hidden;
    background: #fff;
  }
body[data-view="messages"] .site-header {
    display: none;
  }
body[data-view="settings"] .site-header {
    display: none;
  }
body[data-view="messages"] .lootava-footer {
    display: none;
  }
body[data-view="settings"] .lootava-footer,
body[data-view="sellerProfile"] .lootava-footer {
    display: none;
  }
body[data-view="market"] .site-header {
    position: static;
    border-bottom: 0;
    background: #fff;
  }
body[data-view="sellerProfile"] .site-header {
    position: static;
    display: none;
    border-bottom: 0;
    background: #fff;
  }
body[data-view="market"] .market-mobile-header {
    position: sticky;
    top: 0;
    z-index: 105;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    width: 100%;
    min-height: 78px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #e2e6f0;
    background: #fff;
  }
body.market-mobile-header-visible .market-mobile-header {
    position: sticky;
    top: 0;
    z-index: 105;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    width: 100%;
    min-height: 78px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #e2e6f0;
    background: #fff;
  }
body[data-view="market"] .market-mobile-icon-btn,
body[data-view="market"] .market-mobile-logo,
body[data-view="messages"] .market-mobile-icon-btn,
body[data-view="messages"] .market-mobile-logo,
body[data-view="settings"] .market-mobile-icon-btn,
body[data-view="settings"] .market-mobile-logo,
body[data-view="purchases"] .market-mobile-icon-btn,
body[data-view="purchases"] .market-mobile-logo,
body[data-view="sellerProfile"] .market-mobile-icon-btn,
body[data-view="sellerProfile"] .market-mobile-logo {
    display: grid;
    min-width: 48px;
    min-height: 48px;
    place-items: center;
    border: 0;
    background: transparent;
  }
body[data-view="market"] .market-mobile-logo img {
    width: 168px;
    height: 40px;
    object-fit: contain;
    object-position: center;
  }
body[data-view="messages"] .market-mobile-logo img,
body[data-view="settings"] .market-mobile-logo img,
body[data-view="purchases"] .market-mobile-logo img,
body[data-view="sellerProfile"] .market-mobile-logo img {
    width: 168px;
    height: 40px;
    object-fit: contain;
    object-position: center;
  }
body[data-view="market"] .market-mobile-icon-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }
body[data-view="messages"] .market-mobile-icon-btn img,
body[data-view="settings"] .market-mobile-icon-btn img,
body[data-view="purchases"] .market-mobile-icon-btn img,
body[data-view="sellerProfile"] .market-mobile-icon-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }
body[data-view="market"] .market-mobile-burger,
body[data-view="market"] .market-mobile-burger::before,
body[data-view="market"] .market-mobile-burger::after,
body[data-view="messages"] .market-mobile-burger,
body[data-view="messages"] .market-mobile-burger::before,
body[data-view="messages"] .market-mobile-burger::after,
body[data-view="settings"] .market-mobile-burger,
body[data-view="settings"] .market-mobile-burger::before,
body[data-view="settings"] .market-mobile-burger::after,
body[data-view="purchases"] .market-mobile-burger,
body[data-view="purchases"] .market-mobile-burger::before,
body[data-view="purchases"] .market-mobile-burger::after,
body[data-view="sellerProfile"] .market-mobile-burger,
body[data-view="sellerProfile"] .market-mobile-burger::before,
body[data-view="sellerProfile"] .market-mobile-burger::after {
    display: block;
    width: 30px;
    height: 2px;
    border-radius: 99px;
    background: #080d24;
    content: "";
  }
body[data-view="market"] .market-mobile-burger {
    position: relative;
  }
body[data-view="messages"] .market-mobile-burger,
body[data-view="settings"] .market-mobile-burger,
body[data-view="purchases"] .market-mobile-burger,
body[data-view="sellerProfile"] .market-mobile-burger {
    position: relative;
  }
body[data-view="market"] .market-mobile-burger::before,
body[data-view="market"] .market-mobile-burger::after,
body[data-view="messages"] .market-mobile-burger::before,
body[data-view="messages"] .market-mobile-burger::after,
body[data-view="settings"] .market-mobile-burger::before,
body[data-view="settings"] .market-mobile-burger::after,
body[data-view="purchases"] .market-mobile-burger::before,
body[data-view="purchases"] .market-mobile-burger::after,
body[data-view="sellerProfile"] .market-mobile-burger::before,
body[data-view="sellerProfile"] .market-mobile-burger::after {
    position: absolute;
    left: 0;
  }
body[data-view="market"] .market-mobile-burger::before {
    top: -9px;
  }
body[data-view="messages"] .market-mobile-burger::before,
body[data-view="settings"] .market-mobile-burger::before,
body[data-view="purchases"] .market-mobile-burger::before,
body[data-view="sellerProfile"] .market-mobile-burger::before {
    top: -9px;
  }
body[data-view="market"] .market-mobile-burger::after {
    top: 9px;
  }
body[data-view="messages"] .market-mobile-burger::after,
body[data-view="settings"] .market-mobile-burger::after,
body[data-view="purchases"] .market-mobile-burger::after,
body[data-view="sellerProfile"] .market-mobile-burger::after {
    top: 9px;
  }
body[data-view="market"] .header-top {
    display: none;
  }
body[data-view="sellerProfile"] .header-top {
    display: none;
  }
body[data-view="market"] .header-main {
    display: block;
    width: 100%;
    padding: 14px 16px 10px;
  }
body[data-view="sellerProfile"] .header-main {
    display: block;
    width: 100%;
    padding: 14px 16px 10px;
  }
body[data-view="market"] .header-main > .logo-button,
body[data-view="market"] .header-main > .catalog-button,
body[data-view="market"] .header-main > .account-actions,
body[data-view="sellerProfile"] .header-main > .logo-button,
body[data-view="sellerProfile"] .header-main > .catalog-button,
body[data-view="sellerProfile"] .header-main > .account-actions {
    display: none;
  }
body[data-view="market"] .global-search {
    min-height: 58px;
    margin: 0;
    border: 1px solid #dfe3ee;
    border-radius: 14px;
    background: #f7f8fc;
  }
body[data-view="sellerProfile"] .global-search {
    min-height: 58px;
    margin: 0;
    border: 1px solid #dfe3ee;
    border-radius: 14px;
    background: #f7f8fc;
  }
body[data-view="market"] .global-search span,
body[data-view="sellerProfile"] .global-search span {
    font-size: 24px;
  }
body[data-view="market"] .global-search input,
body[data-view="sellerProfile"] .global-search input {
    min-height: 56px;
    font-size: 16px;
  }
body[data-view="market"] .category-strip {
    width: 100%;
    padding: 10px 16px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 0;
  }
body[data-view="sellerProfile"] .category-strip {
    width: 100%;
    padding: 10px 16px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 0;
  }
body[data-view="market"] .category-strip::-webkit-scrollbar,
body[data-view="market"] .service-grid::-webkit-scrollbar,
body[data-view="sellerProfile"] .category-strip::-webkit-scrollbar {
    display: none;
  }
body[data-view="market"] .category-strip button,
body[data-view="sellerProfile"] .category-strip button {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid #dfe3ee;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
  }
body[data-view="market"] .page {
    width: 100%;
    padding: 0 16px calc(98px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }
body[data-view="messages"] .page {
    width: 100%;
    max-width: 100vw;
    padding: 0 18px calc(98px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }
body[data-view="settings"] .page {
    width: 100%;
    max-width: 100vw;
    padding: 0 18px calc(98px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }
body[data-view="settings"] .settings-main {
    padding-bottom: 112px;
  }
body[data-view="settings"] .settings-delete-zone {
    margin-bottom: 96px;
  }
body[data-view="messages"].buyer-message-chat-open .page {
    padding: 0;
  }
body[data-view="messages"].buyer-message-chat-open .lootava-footer,
body[data-view="messages"].buyer-message-chat-open .market-mobile-header,
body[data-view="messages"].buyer-message-chat-open .market-mobile-bottom-nav {
    display: none !important;
  }
body[data-view="messages"] .buyer-messages-page {
    width: 100%;
    max-width: 100%;
    padding: 34px 0 0;
    overflow-x: hidden;
  }
body[data-view="messages"] .buyer-messages-crumbs {
    display: none;
  }
body[data-view="messages"] .buyer-messages-head h1 {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.1;
  }
body[data-view="messages"] .buyer-messages-head p {
    max-width: 100%;
    font-size: 19px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
body[data-view="messages"] .buyer-messages-grid {
    display: block;
    min-height: auto;
  }
body[data-view="messages"] .buyer-dialogs-panel {
    padding: 0;
    border: 0;
    background: transparent;
  }
body[data-view="messages"] .buyer-message-search {
    min-height: 58px;
    margin: 26px 0 20px;
    border-radius: 14px;
    font-size: 22px;
  }
body[data-view="messages"] .buyer-message-search input {
    font-size: 18px;
  }
body[data-view="messages"] .buyer-message-filters {
    gap: 12px;
    margin: 0 0 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }
body[data-view="messages"] .buyer-message-filters::-webkit-scrollbar {
    display: none;
  }
body[data-view="messages"] .buyer-message-filters button {
    flex: 0 0 auto;
    min-width: 118px;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 17px;
    white-space: nowrap;
  }
body[data-view="messages"] .buyer-dialog-list {
    overflow: visible;
    border: 1px solid #dfe3ee;
    border-radius: 20px;
    background: #fff;
  }
body[data-view="messages"] .buyer-dialog-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    min-height: 116px;
    padding: 18px 16px;
    border-radius: 0;
    border-bottom: 1px solid #e8ebf3;
  }
body[data-view="messages"] .buyer-dialog-item:last-child {
    border-bottom: 0;
  }
body[data-view="messages"] .buyer-avatar {
    width: 58px;
    height: 58px;
    font-size: 30px;
  }
body[data-view="messages"] .buyer-avatar img {
    width: 30px;
    height: 30px;
  }
body[data-view="messages"] .buyer-dialog-body b {
    font-size: 22px;
  }
body[data-view="messages"] .buyer-dialog-body small,
body[data-view="messages"] .buyer-dialog-body em {
    font-size: 18px;
  }
body[data-view="messages"] .buyer-dialog-item time {
    font-size: 17px;
  }
body[data-view="messages"] .buyer-dialog-item i {
    right: 22px;
    bottom: 28px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
body[data-view="messages"] .buyer-chat-panel,
body[data-view="messages"] .buyer-order-side {
    display: none;
  }
body[data-view="messages"] .buyer-chat-mobile {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    height: 100dvh;
    background: #fff;
  }
body[data-view="messages"] .buyer-chat-top {
    grid-template-columns: 54px 82px minmax(0, 1fr) 54px;
    min-height: 118px;
    padding: 18px 20px;
  }
body[data-view="messages"] .buyer-chat-top .buyer-avatar {
    width: 82px;
    height: 82px;
  }
body[data-view="messages"] .buyer-chat-top strong {
    font-size: 30px;
  }
body[data-view="messages"] .buyer-chat-top span {
    font-size: 22px;
  }
body[data-view="messages"] .buyer-chat-order-strip {
    grid-template-columns: 100px minmax(0, 1fr) auto 32px;
    margin: 24px 20px;
    padding: 20px;
    border-radius: 16px;
  }
body[data-view="messages"] .buyer-chat-order-strip img {
    width: 100px;
    height: 74px;
  }
body[data-view="messages"] .buyer-chat-order-strip b {
    font-size: 24px;
  }
body[data-view="messages"] .buyer-chat-order-strip strong {
    font-size: 24px;
  }
body[data-view="messages"] .buyer-chat-order-strip em {
    display: none;
  }
body[data-view="messages"] .buyer-chat-stream {
    padding: 10px 20px 18px;
  }
body[data-view="messages"] .buyer-bubble {
    max-width: 78%;
    padding: 22px 24px;
    border-radius: 16px;
    font-size: 24px;
  }
body[data-view="messages"] .buyer-chat-order-actions {
    padding: 0 20px 18px;
  }
body[data-view="messages"] .buyer-chat-order-actions .primary-btn {
    min-height: 76px;
    font-size: 24px;
  }
body[data-view="messages"] .buyer-chat-composer {
    grid-template-columns: 76px minmax(0, 1fr) 56px 76px;
    padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
  }
body[data-view="messages"] .buyer-chat-composer button,
body[data-view="messages"] .buyer-chat-composer input {
    min-height: 76px;
    border-radius: 16px;
    font-size: 24px;
  }
body[data-view="messages"] .market-mobile-drawer[hidden] {
    display: none;
  }
body[data-view="messages"] .market-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: block;
  }
body[data-view="messages"] .market-mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(8, 13, 36, 0.58);
  }
body[data-view="messages"] .market-mobile-drawer-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(86vw, 360px);
    min-height: 100%;
    padding: 36px 22px 28px;
    border: 0;
    border-radius: 0 18px 18px 0;
    background: #fff;
    box-shadow: 18px 0 54px rgba(8, 13, 36, 0.18);
    outline: none;
  }
body[data-view="messages"] .market-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
  }
body[data-view="messages"] .market-mobile-drawer-head img {
    width: 164px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
  }
body[data-view="messages"] .market-mobile-drawer-close {
    position: relative;
    width: 48px;
    min-width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
  }
body[data-view="messages"] .market-mobile-drawer-close::before,
body[data-view="messages"] .market-mobile-drawer-close::after {
    position: absolute;
    top: 23px;
    left: 10px;
    width: 28px;
    height: 2px;
    border-radius: 99px;
    background: #080d24;
    content: "";
  }
body[data-view="messages"] .market-mobile-drawer-close::before {
    transform: rotate(45deg);
  }
body[data-view="messages"] .market-mobile-drawer-close::after {
    transform: rotate(-45deg);
  }
body[data-view="messages"] .market-mobile-drawer-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
body[data-view="messages"] .market-mobile-drawer nav {
    flex: 1 1 auto;
  }
body[data-view="messages"] .market-mobile-drawer-link,
body[data-view="messages"] .market-mobile-drawer-support {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 58px;
    padding: 8px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #10152b;
    font-size: 19px;
    font-weight: 800;
    text-align: left;
  }
body[data-view="messages"] .market-mobile-drawer-link:hover,
body[data-view="messages"] .market-mobile-drawer-link:focus-visible,
body[data-view="messages"] .market-mobile-drawer-support:hover,
body[data-view="messages"] .market-mobile-drawer-support:focus-visible {
    background: #f2edff;
    color: #4a22ff;
    outline: none;
  }
body[data-view="messages"] .market-mobile-drawer-support {
    margin-top: auto;
    padding: 12px 14px;
    border: 1px solid #dfe3ee;
    background: #fff;
  }
body[data-view="messages"] .market-mobile-drawer-link-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
  }
body[data-view="messages"] .market-mobile-drawer-link img,
body[data-view="messages"] .market-mobile-drawer-link svg,
body[data-view="messages"] .market-mobile-drawer-support img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }
body[data-view="messages"] .market-mobile-drawer-link img[src*="/assets/lootava-icons/"],
body[data-view="messages"] .market-mobile-drawer-support img[src*="/assets/lootava-icons/"] {
    opacity: 0.76;
  }
body[data-view="messages"] .market-mobile-drawer-link svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
  }
body[data-view="market"] .hero {
    grid-template-columns: minmax(0, 1fr) 42%;
    min-height: 260px;
    margin-top: 12px;
    padding: 28px 22px;
    border-radius: 22px;
  }
body[data-view="market"] .hero-art {
    display: grid;
  }
body[data-view="market"] .hero h1 {
    font-size: 30px;
    line-height: 1.12;
  }
body[data-view="market"] .hero p {
    font-size: 17px;
    line-height: 1.45;
  }
body[data-view="market"] .hero-cta {
    min-height: 48px;
    padding: 0 18px;
    font-size: 16px;
  }
body[data-view="market"] .loot-crate {
    width: 155px;
    align-self: center;
    justify-self: end;
  }
body[data-view="market"] .loot-crate span {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
body[data-view="market"] .popular-services {
    margin: 26px 0 32px;
  }
body[data-view="market"] .popular-services h2,
body[data-view="market"] .market-section .section-head h2 {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.12;
  }
body[data-view="market"] .service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
body[data-view="market"] .service-card {
    min-width: 0;
    min-height: 128px;
  }
body[data-view="market"] .market-section {
    padding: 0;
    border: 0;
    background: transparent;
  }
body[data-view="market"] .market-section .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px;
    align-items: start;
    gap: 14px;
  }
body[data-view="market"] .section-head span {
    font-size: 16px;
  }
body[data-view="market"] .filters {
    position: relative;
    display: grid;
    grid-template-columns: 74px;
    justify-content: end;
    justify-self: end;
    gap: 12px;
    min-width: 0;
  }
body[data-view="market"] #sortFilter {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    display: none;
    width: 228px;
    max-width: calc(100vw - 32px);
    max-height: 224px;
    padding: 6px 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(16, 21, 43, 0.16);
  }
body[data-view="market"].market-filter-open #sortFilter {
    display: block;
  }
body[data-view="market"] #sortFilter option {
    min-height: 42px;
    padding: 10px 16px;
  }
body[data-view="market"] .market-filter-btn {
    display: grid;
    min-width: 74px;
    min-height: 56px;
    place-items: center;
    border: 1px solid #dfe3ee;
    border-radius: 14px;
    background: #fff;
  }
body[data-view="market"] .market-filter-btn svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #4a22ff;
    stroke-width: 2.4;
    stroke-linecap: round;
  }
body[data-view="market"] .market-layout {
    display: block;
  }
body[data-view="market"] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
  }
body[data-view="market"] .product-card {
    min-width: 0;
    border-radius: 12px;
  }
body[data-view="market"] .market-card-cover {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
  }
body[data-view="market"] .market-card-cover strong,
body[data-view="market"] .tag-list {
    display: none;
  }
body[data-view="market"] .product-card-body {
    gap: 5px;
    padding: 10px;
  }
body[data-view="market"] .product-category-line,
body[data-view="market"] .product-seller-row,
body[data-view="market"] .product-stats-row {
    font-size: 12px;
  }
body[data-view="market"] .product-title {
    min-height: 36px;
    font-size: 14px;
    line-height: 1.25;
  }
body[data-view="market"] .product-card .price {
    font-size: 18px;
  }
body[data-view="market"] .product-favorite {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
body[data-view="market"] .empty-state {
    min-height: 230px;
    display: grid;
    place-items: center;
    padding: 28px;
    border: 1px dashed #dfe3ee;
    border-radius: 22px;
    background: #fff;
    color: #10152b;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
  }
body.market-drawer-open {
    overflow: hidden;
  }
body.market-mobile-header-visible .market-mobile-drawer[hidden] {
    display: none;
  }
body.market-mobile-header-visible .market-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: block;
  }
body.market-mobile-header-visible .market-mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(8, 13, 36, 0.58);
  }
body.market-mobile-header-visible .market-mobile-drawer-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(86vw, 360px);
    min-height: 100%;
    padding: 36px 22px 28px;
    border: 0;
    border-radius: 0 18px 18px 0;
    background: #fff;
    box-shadow: 18px 0 54px rgba(8, 13, 36, 0.18);
    outline: none;
  }
body.market-mobile-header-visible .market-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
  }
body.market-mobile-header-visible .market-mobile-drawer-head img {
    width: 164px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
  }
body.market-mobile-header-visible .market-mobile-drawer-close {
    position: relative;
    width: 48px;
    min-width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
  }
body.market-mobile-header-visible .market-mobile-drawer-close::before,
body.market-mobile-header-visible .market-mobile-drawer-close::after {
    position: absolute;
    top: 23px;
    left: 10px;
    width: 28px;
    height: 2px;
    border-radius: 99px;
    background: #080d24;
    content: "";
  }
body.market-mobile-header-visible .market-mobile-drawer-close::before {
    transform: rotate(45deg);
  }
body.market-mobile-header-visible .market-mobile-drawer-close::after {
    transform: rotate(-45deg);
  }
body.market-mobile-header-visible .market-mobile-drawer-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
body.market-mobile-header-visible .market-mobile-drawer nav {
    flex: 1 1 auto;
  }
body.market-mobile-header-visible .market-mobile-drawer-link,
body.market-mobile-header-visible .market-mobile-drawer-support {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 58px;
    padding: 8px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #10152b;
    font-size: 19px;
    font-weight: 800;
    text-align: left;
  }
body.market-mobile-header-visible .market-mobile-drawer-link:hover,
body.market-mobile-header-visible .market-mobile-drawer-link:focus-visible,
body.market-mobile-header-visible .market-mobile-drawer-support:hover,
body.market-mobile-header-visible .market-mobile-drawer-support:focus-visible {
    background: #f2edff;
    color: #4a22ff;
    outline: none;
  }
body.market-mobile-header-visible .market-mobile-drawer-support {
    margin-top: auto;
    padding: 12px 14px;
    border: 1px solid #dfe3ee;
    background: #fff;
  }
body.market-mobile-header-visible .market-mobile-drawer-link-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
  }
body.market-mobile-header-visible .market-mobile-drawer-link img,
body.market-mobile-header-visible .market-mobile-drawer-link svg,
body.market-mobile-header-visible .market-mobile-drawer-support img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }
body.market-mobile-header-visible .market-mobile-drawer-link img[src*="/assets/lootava-icons/"],
body.market-mobile-header-visible .market-mobile-drawer-support img[src*="/assets/lootava-icons/"] {
    opacity: 0.76;
  }
body.market-mobile-header-visible .market-mobile-drawer-link svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
  }
.market-mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 110;
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(76px + env(safe-area-inset-bottom));
    padding: 8px 4px env(safe-area-inset-bottom);
    border-top: 1px solid #e1e5ef;
    background: #fff;
  }
body.market-mobile-nav-visible .market-mobile-bottom-nav {
    display: grid;
  }
.market-mobile-bottom-nav button {
    position: relative;
    display: grid;
    gap: 1px;
    place-items: center;
    min-width: 0;
    min-height: 56px;
    padding: 0 2px;
    color: #4f5872;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    overflow: hidden;
    text-align: center;
  }
.market-mobile-bottom-nav button span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
.market-mobile-bottom-nav img,
.market-mobile-bottom-nav svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
  }
.market-mobile-bottom-nav button::before {
    display: none;
    width: 24px;
    height: 24px;
    background: #4f35f2;
    transform-origin: center;
    transition: transform 0.16s ease;
    content: "";
  }
.market-mobile-bottom-nav .active:is([data-mobile-action="home"], [data-mobile-action="chats"], [data-mobile-action="orders"])::before {
    display: block;
    transform: scale(1.14);
  }
.market-mobile-bottom-nav .active[data-mobile-action="home"]::before {
    -webkit-mask: url("/assets/lootava-icons/home.webp") center / contain no-repeat;
    mask: url("/assets/lootava-icons/home.webp") center / contain no-repeat;
  }
.market-mobile-bottom-nav .active[data-mobile-action="chats"]::before {
    -webkit-mask: url("/assets/chat.webp") center / contain no-repeat;
    mask: url("/assets/chat.webp") center / contain no-repeat;
  }
.market-mobile-bottom-nav .active[data-mobile-action="orders"]::before {
    -webkit-mask: url("/assets/orders-icon.webp") center / contain no-repeat;
    mask: url("/assets/orders-icon.webp") center / contain no-repeat;
  }
.market-mobile-bottom-nav .active:is([data-mobile-action="home"], [data-mobile-action="chats"], [data-mobile-action="orders"]) > img {
    display: none;
  }
.market-mobile-bottom-nav img[src*="/assets/lootava-icons/"] {
    opacity: 0.76;
  }
.market-mobile-bottom-nav .active img[src*="/assets/lootava-icons/"] {
    opacity: 0.92;
  }
.market-mobile-bottom-nav .active img:not([data-mobile-profile-avatar]) {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(23%) sepia(98%) saturate(4958%) hue-rotate(249deg) brightness(105%) contrast(102%);
    transform: scale(1.14);
  }
.market-mobile-bottom-nav .active [data-mobile-profile-avatar] {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(79, 53, 242, 0.12), 0 0 0 1px rgba(79, 53, 242, 0.28);
  }
.market-mobile-bottom-nav svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }
.market-mobile-bottom-nav .active {
    color: #4f35f2;
  }
.market-mobile-bottom-nav .mobile-nav-counter {
    position: absolute;
    top: 4px;
    right: calc(50% - 24px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    font-size: 10px;
  }
}
/* repair: market cards promotion state */
body[data-view="market"] .market-card-cover strong,
body[data-view="market"] .tag-list {
  display: none;
}
body[data-view="market"] .promotion-highlighted-card {
  border-color: rgba(74, 53, 232, 0.55);
  background: #fff;
  box-shadow: none;
}
body[data-view="market"] .promotion-highlighted-card .product-title a {
  color: var(--violet);
}
body[data-view="market"] .promotion-highlighted-card .product-card-body {
  border-top: 1px solid rgba(74, 53, 232, 0.18);
}
body[data-view="market"] .promotion-highlighted-card .market-card-cover {
  background-color: #101322;
}
body[data-view="market"] .promotion-price-highlight {
  color: var(--violet);
}
/* repair: listing cards shared layout */
.market-card-cover strong {
  display: none;
}
.market-card-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}
.compact-cover.has-image {
  overflow: hidden;
  padding: 0;
  background: #eef0f6;
}
.compact-product-grid .compact-product {
  min-width: 0;
}
.compact-product span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (max-width: 768px) {
.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
.product-card {
    min-width: 0;
    border-radius: 12px;
  }
.market-card-cover {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 10px 10px 0 0;
  }
.product-card-body {
    gap: 6px;
    padding: 10px;
  }
.product-category-line,
.product-seller-row,
.product-stats-row {
    min-width: 0;
    font-size: 12px;
    line-height: 1.2;
  }
.product-category-line span,
.product-seller-row button,
.product-stats-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
.product-title {
    min-height: 40px;
    font-size: 14px;
    line-height: 1.22;
  }
.product-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
.tag-list {
    display: none;
  }
.product-card .price {
    font-size: 20px;
    line-height: 1.1;
  }
.product-favorite {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 21px;
  }
.catalog-public-offers.product-grid,
.seller-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.compact-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
.compact-product {
    padding: 10px;
    border-radius: 14px;
  }
.compact-cover {
    border-radius: 12px;
  }
.compact-product span {
    min-height: 38px;
    font-size: 14px;
  }
.compact-product strong {
    font-size: 18px;
  }
.compact-product .primary-btn {
    min-height: 40px;
    font-size: 14px;
  }
}
@media (max-width: 430px) {
.product-stats-row {
    display: flex;
  }
.product-card .price {
    font-size: 18px;
  }
}
body[data-view="market"] .market-section {
  margin-bottom: 82px;
}
@media (min-width: 769px) {
body[data-view="market"] .product-grid,
.catalog-public-offers.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
@media (max-width: 768px) {
body[data-view="market"] .market-section {
    margin-bottom: calc(104px + env(safe-area-inset-bottom));
  }
}
/* repair: product page related cards and mobile layout */
body[data-view="product"] {
  overflow-x: hidden;
}
body[data-view="product"] .page,
body[data-view="product"] .product-page,
body[data-view="product"] .product-info-block {
  max-width: 100%;
  min-width: 0;
}
body[data-view="product"] .product-hero {
  grid-template-columns: 320px minmax(0, 1fr) 340px;
  align-items: center;
}
body[data-view="product"] .product-cover {
  width: 320px;
  max-width: 100%;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}
body[data-view="product"] .product-cover img {
  object-fit: contain;
  background: transparent;
}
body[data-view="product"] .delivery-card {
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  background: #f5f6fa;
}
body[data-view="product"] .delivery-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
}
body[data-view="product"] .delivery-card small {
  display: block;
}
body[data-view="product"] .delivery-card p {
  color: #3d4050;
  font-size: 18px;
}
.related-product-grid.product-grid .product-card-body .tag-list,
.related-product-grid.product-grid .product-card .card-actions {
  display: none;
}
.related-products-block {
  position: relative;
  overflow: hidden;
}
.related-product-head-actions {
  display: contents;
}
.related-product-arrow {
  position: absolute;
  top: 54%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0 0 3px;
  border: 1px solid #dfe3ee;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  font-weight: 850;
  line-height: 0;
  box-shadow: 0 10px 24px rgba(16, 21, 43, 0.08);
  transform: translateY(-50%);
}
.related-product-arrow[data-related-scroll="-1"] {
  left: 18px;
}
.related-product-arrow[data-related-scroll="1"] {
  right: 18px;
}
.related-product-arrow:hover,
.related-product-arrow:focus-visible {
  border-color: rgba(74, 53, 232, 0.4);
  color: var(--violet);
  outline: none;
}
.related-product-grid.product-grid {
  display: flex;
  gap: 18px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-behavior: smooth;
  scroll-padding: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.related-product-grid.product-grid::-webkit-scrollbar {
  display: none;
}
.related-product-grid .product-card {
  flex: 0 0 188px;
  max-width: 188px;
  min-width: 0;
  border-radius: 12px;
  scroll-snap-align: start;
}
.related-product-grid .market-card-cover {
  min-height: 0;
  padding: 0;
  border-radius: 12px 12px 0 0;
}
.related-product-grid .product-card-body {
  gap: 7px;
  padding: 9px 10px 10px;
}
.related-product-grid .product-category-line,
.related-product-grid .product-seller-row,
.related-product-grid .product-stats-row {
  font-size: 11px;
}
.related-product-grid .product-title {
  min-height: 36px;
  font-size: 14px;
  line-height: 1.18;
}
.related-product-grid .product-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.related-product-grid .product-card .price {
  font-size: 18px;
  line-height: 1.1;
}
.related-product-grid .product-favorite {
  top: 8px;
  right: 8px;
  width: 31px;
  height: 31px;
  font-size: 20px;
}
@media (max-width: 1180px) {
.related-product-grid .product-card {
    flex-basis: 180px;
    max-width: 180px;
  }
}
@media (max-width: 768px) {
body[data-view="product"] {
    overflow-x: hidden;
    background: #f7f8fc;
  }
body[data-view="product"] .site-header,
body[data-view="product"] .lootava-footer {
    display: none;
  }
body[data-view="product"] .market-mobile-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 120;
  }
body[data-view="product"] .market-mobile-icon-btn,
body[data-view="product"] .market-mobile-logo {
    display: grid;
    min-width: 48px;
    min-height: 48px;
    place-items: center;
    border: 0;
    background: transparent;
  }
body[data-view="product"] .market-mobile-logo img {
    width: 168px;
    height: 40px;
    object-fit: contain;
    object-position: center;
  }
body[data-view="product"] .market-mobile-icon-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }
body[data-view="product"] .market-mobile-burger,
body[data-view="product"] .market-mobile-burger::before,
body[data-view="product"] .market-mobile-burger::after {
    display: block;
    width: 30px;
    height: 2px;
    border-radius: 99px;
    background: #080d24;
    content: "";
  }
body[data-view="product"] .market-mobile-burger {
    position: relative;
  }
body[data-view="product"] .market-mobile-burger::before,
body[data-view="product"] .market-mobile-burger::after {
    position: absolute;
    left: 0;
  }
body[data-view="product"] .market-mobile-burger::before {
    top: -9px;
  }
body[data-view="product"] .market-mobile-burger::after {
    top: 9px;
  }
body[data-view="product"] .page {
    width: 100%;
    max-width: 100vw;
    padding: 78px 14px calc(98px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }
body[data-view="product"] .product-page {
    width: 100%;
    max-width: 100%;
    gap: 16px;
    padding: 16px 0 0;
    overflow-x: hidden;
  }
body[data-view="product"] .product-breadcrumb {
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
    scrollbar-width: none;
  }
body[data-view="product"] .product-breadcrumb::-webkit-scrollbar {
    display: none;
  }
body[data-view="product"] .product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: 100%;
    max-width: 100%;
    padding: 18px;
    border-radius: 22px;
    overflow: hidden;
  }
body[data-view="product"] .product-cover-card {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
  }
body[data-view="product"] .product-cover {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
  }
body[data-view="product"] .product-copy {
    width: 100%;
    max-width: 100%;
  }
body[data-view="product"] .product-copy h1 {
    font-size: 30px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
body[data-view="product"] .product-copy p {
    max-width: 100%;
    font-size: 16px;
  }
body[data-view="product"] .buy-panel {
    position: static;
    width: 100%;
    max-width: 100%;
    padding: 18px;
    border-radius: 20px;
  }
body[data-view="product"] .buy-price {
    font-size: 32px;
  }
body[data-view="product"] .product-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
body[data-view="product"] .product-info-block {
    width: 100%;
    max-width: 100%;
    padding: 18px;
    border-radius: 20px;
    overflow: hidden;
  }
body[data-view="product"] .product-info-block h2 {
    font-size: 26px;
    line-height: 1.12;
  }
body[data-view="product"] .delivery-card,
body[data-view="product"] .seller-profile-row {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }
body[data-view="product"] .delivery-card {
    gap: 10px;
    padding: 18px;
  }
body[data-view="product"] .delivery-card p {
    font-size: 16px;
  }
body[data-view="product"] .delivery-card strong,
body[data-view="product"] .delivery-card span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
body[data-view="product"] .seller-profile-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }
body[data-view="product"] .seller-name-link {
    display: flex;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
body[data-view="product"] .section-head.compact {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
  }
body[data-view="product"] .section-head.compact h2 {
    margin: 0;
  }
body[data-view="product"] .section-head.compact span {
    font-size: 14px;
    white-space: nowrap;
  }
body[data-view="product"] .related-product-grid.product-grid {
    display: flex;
    gap: 12px;
    margin-right: -18px;
    padding-right: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
body[data-view="product"] .related-product-grid .product-card {
    flex: 0 0 calc((100vw - 56px) / 2);
    max-width: calc((100vw - 56px) / 2);
  }
body[data-view="product"] .related-product-arrow {
    display: none;
  }
body[data-view="product"] .related-product-head-actions {
    gap: 0;
  }
}
@media (max-width: 430px) {
body[data-view="product"] .page {
    padding-right: 10px;
    padding-left: 10px;
  }
body[data-view="product"] .product-hero,
body[data-view="product"] .product-info-block {
    padding: 16px;
  }
body[data-view="product"] .product-copy h1 {
    font-size: 26px;
  }
}
/* Buyer public UI polish */
body[data-view="messages"] .buyer-message-filters,
body[data-view="purchases"] .buyer-purchases-tabs {
  display: flex !important;
  align-items: flex-end !important;
  gap: 28px !important;
  width: 100% !important;
  margin: 14px 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #dfe4ef !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}
body[data-view="messages"] .buyer-message-filters::-webkit-scrollbar,
body[data-view="purchases"] .buyer-purchases-tabs::-webkit-scrollbar {
  display: none !important;
}
body[data-view="messages"] .buyer-message-filters button,
body[data-view="purchases"] .buyer-purchases-tabs button {
  position: relative !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 44px !important;
  padding: 0 0 10px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  color: #596174 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
body[data-view="messages"] .buyer-message-filters button.active,
body[data-view="purchases"] .buyer-purchases-tabs button.active {
  color: #4a35e8 !important;
  border-bottom-color: #4a35e8 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body[data-view="purchases"] .buyer-purchases-tabs button.active::after {
  content: none !important;
}
@media (max-width: 768px) {
body[data-view="messages"] .buyer-message-filters,
body[data-view="purchases"] .buyer-purchases-tabs {
    gap: 24px !important;
    margin: 12px 0 22px !important;
  }
body[data-view="messages"] .buyer-message-filters button,
body[data-view="purchases"] .buyer-purchases-tabs button {
    min-height: 42px !important;
    padding: 0 0 10px !important;
    font-size: 18px !important;
  }
.market-mobile-bottom-nav {
    min-height: calc(64px + env(safe-area-inset-bottom)) !important;
    padding-top: 8px !important;
  }
.market-mobile-bottom-nav button {
    min-height: 48px !important;
    gap: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }
.market-mobile-bottom-nav button span {
    display: none !important;
  }
.market-mobile-bottom-nav img,
.market-mobile-bottom-nav svg {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
  }
.market-mobile-bottom-nav img[src*="/assets/lootava-icons/"] {
    opacity: 0.76 !important;
  }
.market-mobile-bottom-nav .active img[src*="/assets/lootava-icons/"] {
    opacity: 0.92 !important;
  }
.market-mobile-bottom-nav .active img:not([data-mobile-profile-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.16) !important;
  }
.market-mobile-bottom-nav .active:is([data-mobile-action="home"], [data-mobile-action="chats"], [data-mobile-action="orders"])::before {
    width: 22px !important;
    height: 22px !important;
    transform: scale(1.16) !important;
  }
.market-mobile-bottom-nav .active [data-mobile-profile-avatar] {
    opacity: 1 !important;
    transform: scale(1.08) !important;
    box-shadow: 0 0 0 4px rgba(79, 53, 242, 0.12), 0 0 0 1px rgba(79, 53, 242, 0.28) !important;
  }
}
/* Admin shell recovery */
body[data-view="admin"] {
  min-width: 0;
  overflow-x: hidden;
  background: #f6f7fb;
}
body[data-view="admin"] .site-header,
body[data-view="admin"] .market-mobile-header,
body[data-view="admin"] .market-mobile-bottom-nav,
body[data-view="admin"] .lootava-footer {
  display: none !important;
}
body[data-view="admin"] .page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body[data-view="admin"] #adminView.view.active {
  display: block;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  background: #f6f7fb;
}
body[data-view="admin"] #adminLayoutRoot {
  width: 100%;
  min-height: 100vh;
}
body[data-view="admin"] .admin-shell {
  display: grid !important;
  grid-template-columns: 252px minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  background: #f6f7fb;
}
body[data-view="admin"] .admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  height: 100vh;
  min-width: 0;
  padding: 24px 14px;
  border-right: 1px solid #dfe4ee;
  background: #fff;
  overflow: hidden;
}
body[data-view="admin"] .admin-brand {
  display: grid;
  gap: 8px;
  padding: 0 8px 16px;
  border-bottom: 1px solid #edf0f6;
}
body[data-view="admin"] .admin-brand img,
body[data-view="admin"] .admin-drawer-head img {
  display: block;
  width: 168px;
  max-width: 100%;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}
body[data-view="admin"] .admin-brand em {
  width: fit-content;
  padding: 6px 8px;
  color: #4a35e8;
  border-radius: 6px;
  background: #eeeafe;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
body[data-view="admin"] .admin-menu {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
body[data-view="admin"] .admin-menu::-webkit-scrollbar {
  display: none;
}
body[data-view="admin"] .admin-menu button,
body[data-view="admin"] .admin-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #2d3345;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
body[data-view="admin"] .admin-menu button span {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  color: currentColor;
  font-size: 18px;
}
body[data-view="admin"] .admin-menu button span img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.74;
  transform: translateZ(0);
}
body[data-view="admin"] .admin-menu button b {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
  background: #ff4438;
  font-size: 12px;
  text-align: center;
}
body[data-view="admin"] .admin-menu button.active {
  color: #fff;
  background: linear-gradient(135deg, #5138f5, #6d4dff);
  box-shadow: 0 10px 24px rgba(81, 56, 245, 0.18);
}
body[data-view="admin"] .admin-menu button.active span img {
  opacity: 0.92;
  filter: brightness(0) invert(1);
}
body[data-view="admin"] .admin-profile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e0e5ef;
  border-radius: 8px;
  background: #fff;
}
body[data-view="admin"] .admin-avatar,
body[data-view="admin"] .admin-user-menu span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: #222838;
  font-weight: 800;
}
body[data-view="admin"] .admin-avatar img,
body[data-view="admin"] .admin-user-menu span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body[data-view="admin"] .admin-profile strong,
body[data-view="admin"] .admin-profile small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-view="admin"] .admin-profile small {
  color: #687087;
  font-size: 12px;
}
body[data-view="admin"] .admin-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow-x: clip;
}
body[data-view="admin"] .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid !important;
  grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 520px) 48px minmax(180px, auto);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 18px 28px;
  border-bottom: 1px solid #dfe4ee;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}
body[data-view="admin"] .admin-breadcrumbs p {
  margin: 0;
  color: #687087;
  font-weight: 750;
}
body[data-view="admin"] .admin-breadcrumbs span {
  margin: 0 10px;
  color: #a2a9bb;
}
body[data-view="admin"] .admin-search {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  height: 46px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: #fff;
}
body[data-view="admin"] .admin-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
}
body[data-view="admin"] .admin-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #7a8295;
  stroke-width: 2;
}
body[data-view="admin"] .admin-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 21, 43, 0.14);
}
body[data-view="admin"] .admin-search-results[hidden] {
  display: none !important;
}
body[data-view="admin"] .admin-search-results button {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font: inherit;
}
/* Admin inner pages recovery */
body[data-view="admin"] .admin-content h1,
body[data-view="admin"] .admin-content h2,
body[data-view="admin"] .admin-content h3,
body[data-view="admin"] .admin-content p {
  margin-top: 0;
}
body[data-view="admin"] .admin-dashboard-head,
body[data-view="admin"] .admin-listings-head,
body[data-view="admin"] .admin-mod-head,
body[data-view="admin"] .admin-audit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}
body[data-view="admin"] .admin-dashboard-head h1,
body[data-view="admin"] .admin-listings-head h1,
body[data-view="admin"] .admin-mod-head h1,
body[data-view="admin"] .admin-audit-head h1 {
  margin: 0 0 8px;
  color: #080d24;
  font-size: 36px;
  line-height: 1.05;
}
body[data-view="admin"] .admin-dashboard-head p,
body[data-view="admin"] .admin-listings-head p,
body[data-view="admin"] .admin-mod-head p,
body[data-view="admin"] .admin-audit-head p {
  margin: 0;
  color: #687087;
  font-size: 18px;
  font-weight: 600;
}
body[data-view="admin"] .admin-dashboard-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
body[data-view="admin"] .admin-mobile-kpi-track,
body[data-view="admin"] .admin-listings-stats,
body[data-view="admin"] .admin-mod-stats {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(0, 4fr);
  gap: 16px;
  min-width: 0;
}
body[data-view="admin"] .admin-listings-stat-row,
body[data-view="admin"] .admin-mod-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
  min-width: 0;
}
body[data-view="admin"] .admin-kpi,
body[data-view="admin"] .admin-listing-stat,
body[data-view="admin"] .admin-mod-stat,
body[data-view="admin"] .admin-finance-metric {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  min-height: 104px;
  padding: 16px;
  border: 1px solid #dfe4ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 21, 43, 0.05);
  text-align: left;
  font: inherit;
}
body[data-view="admin"] .admin-kpi > span,
body[data-view="admin"] .admin-listing-stat > span,
body[data-view="admin"] .admin-mod-stat > span,
body[data-view="admin"] .admin-finance-dot {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f0edff;
  color: #5136f2;
}
body[data-view="admin"] .admin-kpi img,
body[data-view="admin"] .admin-listing-stat img,
body[data-view="admin"] .admin-mod-stat img,
body[data-view="admin"] .admin-attention-line img {
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  object-fit: contain;
}
body[data-view="admin"] .admin-kpi small,
body[data-view="admin"] .admin-listing-stat small,
body[data-view="admin"] .admin-mod-stat small,
body[data-view="admin"] .admin-finance-metric span {
  display: block;
  color: #687087;
  font-size: 14px;
  font-weight: 750;
}
body[data-view="admin"] .admin-kpi strong,
body[data-view="admin"] .admin-listing-stat strong,
body[data-view="admin"] .admin-mod-stat strong,
body[data-view="admin"] .admin-finance-metric strong {
  display: block;
  margin-top: 4px;
  color: #080d24;
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
}
body[data-view="admin"] .admin-kpi em,
body[data-view="admin"] .admin-finance-metric small {
  display: block;
  margin-top: 5px;
  color: #7a8295;
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
}
body[data-view="admin"] .admin-kpi-dots {
  display: none;
}
body[data-view="admin"] .admin-dashboard-grid,
body[data-view="admin"] .admin-dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 18px;
  min-width: 0;
}
body[data-view="admin"] .admin-dashboard-lower {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr) minmax(280px, 0.75fr);
}
body[data-view="admin"] .admin-attention-panel,
body[data-view="admin"] .admin-moderation-summary,
body[data-view="admin"] .admin-team-summary,
body[data-view="admin"] .admin-actions-summary {
  display: grid;
  gap: 12px;
}
body[data-view="admin"] .admin-attention-line,
body[data-view="admin"] .admin-team-line,
body[data-view="admin"] .admin-actions-summary p {
  display: grid;
  grid-template-columns: 44px auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #e4e8f1;
  border-radius: 10px;
  background: #fff;
  color: #080d24;
  text-decoration: none;
  font: inherit;
}
body[data-view="admin"] .admin-attention-line > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  background: #f0edff;
}
body[data-view="admin"] .admin-mini-tabs,
body[data-view="admin"] .admin-listings-tabs,
body[data-view="admin"] .admin-mod-tabs,
body[data-view="admin"] .admin-finance-tabs,
body[data-view="admin"] .admin-catalog-tabs {
  display: flex;
  gap: 26px;
  min-width: 0;
  overflow-x: auto;
  border-bottom: 1px solid #dfe4ee;
}
body[data-view="admin"] .admin-mini-tabs button,
body[data-view="admin"] .admin-listings-tabs button,
body[data-view="admin"] .admin-mod-tabs button,
body[data-view="admin"] .admin-finance-tabs button,
body[data-view="admin"] .admin-catalog-tabs button {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #5f687d;
  white-space: nowrap;
  font: inherit;
  font-weight: 800;
}
body[data-view="admin"] .admin-mini-tabs button.active,
body[data-view="admin"] .admin-listings-tabs button.active,
body[data-view="admin"] .admin-mod-tabs button.active,
body[data-view="admin"] .admin-finance-tabs button.active,
body[data-view="admin"] .admin-catalog-tabs button.active {
  color: #5136f2;
  border-bottom-color: #5136f2;
}
body[data-view="admin"] .admin-listings-page,
body[data-view="admin"] .admin-audit-page {
  display: grid;
  gap: 18px;
  min-width: 0;
}
body[data-view="admin"] .admin-listings-controls,
body[data-view="admin"] .admin-mod-controls,
body[data-view="admin"] .admin-finance-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(170px, 0.28fr));
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dfe4ee;
  border-radius: 12px;
  background: #fff;
}
body[data-view="admin"] .admin-listings-search,
body[data-view="admin"] .admin-mod-search,
body[data-view="admin"] .admin-catalog-search,
body[data-view="admin"] .admin-finance-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #fff;
}
body[data-view="admin"] .admin-listings-search input,
body[data-view="admin"] .admin-mod-search input,
body[data-view="admin"] .admin-catalog-search input,
body[data-view="admin"] .admin-finance-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}
body[data-view="admin"] .admin-listings-controls select,
body[data-view="admin"] .admin-mod-controls select,
body[data-view="admin"] .admin-finance-filters select,
body[data-view="admin"] .admin-finance-date input,
body[data-view="admin"] .admin-catalog-tree-editor input,
body[data-view="admin"] .admin-catalog-tree-editor select,
body[data-view="admin"] .admin-catalog-tree-editor textarea {
  min-width: 0;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #fff;
  color: #080d24;
  font: inherit;
}
body[data-view="admin"] .admin-finance-page {
  display: grid;
  gap: 18px;
  min-width: 0;
}
body[data-view="admin"] .admin-finance-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  min-width: 0;
}
body[data-view="admin"] .admin-finance-metric {
  grid-template-columns: minmax(0, 1fr);
  min-height: 112px;
}
body[data-view="admin"] .admin-finance-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}
body[data-view="admin"] .admin-finance-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
body[data-view="admin"] .admin-finance-date {
  display: grid;
  gap: 6px;
  color: #687087;
  font-weight: 750;
}
body[data-view="admin"] .admin-finance-table,
body[data-view="admin"] .admin-listings-table-wrap,
body[data-view="admin"] .admin-mod-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #dfe4ee;
  border-radius: 12px;
  background: #fff;
}
body[data-view="admin"] .admin-finance-tr {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(180px, 1fr) minmax(190px, 1fr) 150px 120px 120px 120px 120px;
  gap: 14px;
  align-items: center;
  min-width: 1120px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f6;
}
body[data-view="admin"] .admin-finance-th {
  color: #687087;
  background: #f6f7fb;
  font-weight: 850;
}
body[data-view="admin"] .admin-finance-operation {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}
body[data-view="admin"] .admin-finance-dot {
  width: 40px;
  height: 40px;
  font-weight: 900;
}
body[data-view="admin"] .admin-finance-tr p {
  margin: 3px 0 0;
  color: #687087;
}
body[data-view="admin"] .admin-finance-status {
  display: inline-flex;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0edff;
  color: #5136f2;
}
body[data-view="admin"] .admin-finance-status.ok {
  background: #e9f9ef;
  color: #159947;
}
body[data-view="admin"] .admin-finance-status.bad {
  background: #ffe8e6;
  color: #e3342a;
}
body[data-view="admin"] .admin-finance-status.warn,
body[data-view="admin"] .admin-finance-status.hold {
  background: #fff3e4;
  color: #d26a00;
}
body[data-view="admin"] .positive {
  color: #159947;
}
body[data-view="admin"] .negative {
  color: #e3342a;
}
body[data-view="admin"] .admin-listings-grid {
  min-width: 1180px;
}
body[data-view="admin"] .admin-listings-grid-head,
body[data-view="admin"] .admin-listings-grid-row {
  display: grid;
  grid-template-columns: minmax(360px, 1.7fr) 180px 120px 130px 100px 140px 100px;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f6;
}
body[data-view="admin"] .admin-listings-grid-head {
  color: #687087;
  background: #f6f7fb;
  font-weight: 850;
}
body[data-view="admin"] .admin-listing-cell,
body[data-view="admin"] .admin-listing-seller {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}
body[data-view="admin"] .admin-listing-seller {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  max-width: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #080d24;
  text-align: left;
  font: inherit;
}
body[data-view="admin"] .admin-listing-seller.desktop {
  margin-top: 3px;
  color: #687087;
  font-size: 13px;
  font-weight: 650;
}
body[data-view="admin"] .admin-listing-seller.mobile {
  grid-template-columns: 32px minmax(0, 1fr) !important;
}
body[data-view="admin"] .admin-listing-seller img {
  display: block !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  border-radius: 50%;
  object-fit: cover !important;
}
body[data-view="admin"] .admin-listing-seller span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-view="admin"] .admin-listings-grid-listing-head,
body[data-view="admin"] .admin-listings-grid-listing-cell {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}
body[data-view="admin"] .admin-listings-grid-listing-head > input,
body[data-view="admin"] .admin-listings-grid-listing-cell > input {
  flex: 0 0 18px !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #5136f2;
}
body[data-view="admin"] .admin-listings-grid-row > span {
  align-self: center;
  height: auto !important;
  min-height: 0 !important;
  min-width: 0;
}
body[data-view="admin"] .admin-listings-grid :is(input, button, img, span) {
  box-sizing: border-box;
}
body[data-view="admin"] .admin-listing-image-btn,
body[data-view="admin"] .admin-mod-cover {
  display: grid !important;
  place-items: center;
  width: 48px;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #eef1f6;
}
body[data-view="admin"] .admin-listing-image-btn img,
body[data-view="admin"] .admin-mod-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
body[data-view="admin"] .admin-listing-image-btn > span {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  place-items: center;
  color: #687087;
  font-size: 18px;
  line-height: 1;
}
body[data-view="admin"] .admin-listing-title-btn,
body[data-view="admin"] .admin-listing-id-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
}
body[data-view="admin"] .admin-listing-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0edff;
  color: #5136f2;
  font-weight: 800;
}


body[data-view="admin"] .admin-listings-empty,
body[data-view="admin"] .admin-mod-empty,
body[data-view="admin"] .empty-state {
  display: grid;
  gap: 10px;
  min-height: 160px;
  place-items: center;
  padding: 28px;
  color: #687087;
  text-align: center;
}


@keyframes adminSkeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
body[data-view="admin"] .admin-catalog-tree {
  min-width: 0;
}
body[data-view="admin"] .admin-catalog-tree-editor {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.4fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}
body[data-view="admin"] .admin-catalog-tree-panel,
body[data-view="admin"] .admin-catalog-editor,
body[data-view="admin"] .admin-catalog-manager {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #dfe4ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 21, 43, 0.05);
}
body[data-view="admin"] .admin-catalog-tree-toolbar,
body[data-view="admin"] .admin-catalog-actions,
body[data-view="admin"] .admin-catalog-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body[data-view="admin"] .admin-catalog-tree-list {
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 300px);
  min-height: 420px;
  overflow: auto;
  padding-right: 4px;
}
body[data-view="admin"] .admin-catalog-tree-list button,
body[data-view="admin"] .admin-catalog-list-row,
body[data-view="admin"] .admin-catalog-entity-list > * {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #e2e7f0;
  border-radius: 9px;
  background: #fff;
  color: #080d24;
  text-align: left;
  font: inherit;
}
body[data-view="admin"] .admin-tree-node {
  margin-left: calc(var(--level, 0) * 16px);
  min-width: 0;
}
body[data-view="admin"] .admin-tree-node button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}
body[data-view="admin"] .admin-tree-node strong,
body[data-view="admin"] .admin-tree-node small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-view="admin"] .admin-tree-node small {
  color: #687087;
  font-size: 13px;
  font-weight: 650;
}
body[data-view="admin"] .admin-tree-node em {
  color: #a2a9bb;
  font-size: 12px;
  font-style: normal;
}
body[data-view="admin"] .admin-catalog-tree-list button.active,
body[data-view="admin"] .admin-catalog-tree-list button.is-active {
  border-color: #5136f2;
  background: #f0edff;
  color: #5136f2;
  font-weight: 850;
}
body[data-view="admin"] .admin-catalog-node-form,
body[data-view="admin"] .admin-catalog-config-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}
body[data-view="admin"] .admin-catalog-parent-row,
body[data-view="admin"] .admin-catalog-meta-row,
body[data-view="admin"] .admin-catalog-method-grid,
body[data-view="admin"] .admin-catalog-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body[data-view="admin"] .admin-catalog-icon-upload,
body[data-view="admin"] .admin-catalog-child-list,
body[data-view="admin"] .admin-catalog-entity-list,
body[data-view="admin"] .admin-catalog-list,
body[data-view="admin"] .admin-catalog-bulk-list {
  display: grid;
  gap: 10px;
}
body[data-view="admin"] .admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f6;
}
body[data-view="admin"] .admin-row:last-child {
  border-bottom: 0;
}
body[data-view="admin"] .admin-row strong,
body[data-view="admin"] .admin-row span,
body[data-view="admin"] .admin-row small {
  display: block;
}
body[data-view="admin"] .admin-row span,
body[data-view="admin"] .admin-row small {
  margin-top: 4px;
  color: #687087;
}
body[data-view="admin"] .admin-row-actions {
  display: flex;
  gap: 10px;
}
@media (max-width: 1200px) {
body[data-view="admin"] .admin-mobile-kpi-track,
body[data-view="admin"] .admin-listings-stats,
body[data-view="admin"] .admin-mod-stats,
body[data-view="admin"] .admin-dashboard-grid,
body[data-view="admin"] .admin-dashboard-lower,
body[data-view="admin"] .admin-catalog-tree-editor {
    grid-template-columns: 1fr;
  }
body[data-view="admin"] .admin-listings-stat-row,
body[data-view="admin"] .admin-mod-stat-row,
body[data-view="admin"] .admin-finance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
body[data-view="admin"] .admin-listings-controls,
body[data-view="admin"] .admin-mod-controls,
body[data-view="admin"] .admin-finance-filters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
body[data-view="admin"] .admin-dashboard-head,
body[data-view="admin"] .admin-listings-head,
body[data-view="admin"] .admin-mod-head,
body[data-view="admin"] .admin-audit-head {
    display: grid;
  }
body[data-view="admin"] .admin-dashboard-head h1,
body[data-view="admin"] .admin-listings-head h1,
body[data-view="admin"] .admin-mod-head h1,
body[data-view="admin"] .admin-audit-head h1 {
    font-size: 32px;
  }
body[data-view="admin"] .admin-listings-stat-row,
body[data-view="admin"] .admin-mod-stat-row,
body[data-view="admin"] .admin-finance-summary,
body[data-view="admin"] .admin-listings-controls,
body[data-view="admin"] .admin-mod-controls,
body[data-view="admin"] .admin-finance-filters,
body[data-view="admin"] .admin-catalog-parent-row,
body[data-view="admin"] .admin-catalog-meta-row,
body[data-view="admin"] .admin-catalog-method-grid,
body[data-view="admin"] .admin-catalog-check-grid {
    grid-template-columns: 1fr;
  }
body[data-view="admin"] .admin-kpi,
body[data-view="admin"] .admin-listing-stat,
body[data-view="admin"] .admin-mod-stat,
body[data-view="admin"] .admin-finance-metric {
    min-height: 92px;
  }
}
body[data-view="admin"] .admin-bell,
body[data-view="admin"] .admin-user-menu {
  position: relative;
  min-width: 48px;
  height: 48px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
}
body[data-view="admin"] .admin-bell {
  display: grid;
  place-items: center;
}
body[data-view="admin"] .admin-bell img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
body[data-view="admin"] .admin-bell b {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #fff;
  background: #ff4438;
  font-size: 11px;
}
body[data-view="admin"] .admin-user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 6px;
  font: inherit;
  font-weight: 750;
}
body[data-view="admin"] .admin-user-menu small {
  display: grid;
  min-width: 0;
  text-align: left;
}
body[data-view="admin"] .admin-user-menu em {
  color: #687087;
  font-size: 12px;
  font-style: normal;
}
body[data-view="admin"] .admin-profile-menu {
  position: fixed;
  top: 74px;
  right: 28px;
  z-index: 50;
  display: grid;
  gap: 6px;
  min-width: 220px;
  padding: 12px;
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 21, 43, 0.14);
}
body[data-view="admin"] .admin-profile-menu[hidden] {
  display: none !important;
}
body[data-view="admin"] .admin-profile-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font: inherit;
}
body[data-view="admin"] .admin-content {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 24px 28px 44px;
}
body[data-view="admin"] .admin-tab {
  display: none !important;
  min-width: 0;
}
body[data-view="admin"] .admin-tab.active {
  display: grid !important;
  gap: 18px;
}
body[data-view="admin"] .admin-list-panel,
body[data-view="admin"] .admin-card,
body[data-view="admin"] .admin-stack-form {
  min-width: 0;
  border: 1px solid #dfe4ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 21, 43, 0.05);
}
body[data-view="admin"] .admin-list-panel {
  padding: 18px;
}
body[data-view="admin"] .admin-card,
body[data-view="admin"] .admin-stack-form {
  padding: 20px;
}
body[data-view="admin"] .section-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}
body[data-view="admin"] .section-head h2 {
  margin: 0;
  color: #080d24;
}
body[data-view="admin"] .section-head span {
  color: #687087;
  font-weight: 700;
}
body[data-view="admin"] .admin-mobile-header,
body[data-view="admin"] .admin-drawer-backdrop,
body[data-view="admin"] .admin-drawer {
  display: none;
}
@media (max-width: 1023px) {
body[data-view="admin"] .admin-shell {
    display: block !important;
  }
body[data-view="admin"] .admin-sidebar,
body[data-view="admin"] .admin-topbar {
    display: none !important;
  }
body[data-view="admin"] .admin-mobile-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    gap: 12px;
    align-items: center;
    min-height: 78px;
    padding: 0 16px;
    border-bottom: 1px solid #dfe4ee;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
  }
body[data-view="admin"] .admin-mobile-header img {
    width: 150px;
    max-width: 100%;
    height: 38px;
    justify-self: center;
    object-fit: contain;
  }
body[data-view="admin"] .admin-mobile-header > .admin-mobile-bell {
    justify-self: end;
  }
body[data-view="admin"] .admin-mobile-header strong {
    display: none;
  }
body[data-view="admin"] .admin-mobile-header > span {
    display: none;
  }
body[data-view="admin"] .admin-mobile-icon {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #080d24;
    font-size: 28px;
    -webkit-tap-highlight-color: transparent;
  }
body[data-view="admin"] .admin-mobile-icon:focus {
    outline: none;
  }
body[data-view="admin"] .admin-mobile-icon:focus-visible {
    outline: 2px solid rgba(83, 56, 255, 0.28);
    outline-offset: 2px;
  }
body[data-view="admin"] .admin-mobile-bell img {
    width: 24px;
    height: 24px;
  }
body[data-view="admin"] .admin-mobile-bell b {
    position: absolute;
    top: 8px;
    right: 8px;
    display: block;
    width: 9px;
    height: 9px;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    color: transparent;
    background: #ff3b30;
  }
body[data-view="admin"] .admin-mobile-bell b[hidden] {
    display: none !important;
  }
body[data-view="admin"] .admin-content {
    padding: 22px 16px 36px;
  }
body[data-view="admin"] .admin-drawer-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    background: rgba(8, 13, 36, 0.38);
  }
body[data-view="admin"] .admin-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 16px;
    width: min(320px, 86vw);
    padding: 18px;
    background: #fff;
    box-shadow: 18px 0 42px rgba(16, 21, 43, 0.18);
    transform: translateX(-105%);
    transition: transform 0.18s ease;
  }
body[data-view="admin"] .admin-drawer.open {
    transform: translateX(0);
  }
body[data-view="admin"] .admin-drawer-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 12px;
    align-items: center;
  }
body[data-view="admin"] .admin-drawer-head strong {
    grid-column: 1 / -1;
    color: #687087;
  }
body[data-view="admin"] .admin-drawer-profile {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e5ef;
    border-radius: 10px;
  }
body[data-view="admin"] .admin-drawer-profile .admin-avatar.has-avatar {
    background: #f2efff;
  }
body[data-view="admin"] .admin-drawer-profile-text {
    display: grid;
    gap: 3px;
    min-width: 0;
  }
body[data-view="admin"] .admin-drawer-profile-text strong,
body[data-view="admin"] .admin-drawer-profile-text span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
body[data-view="admin"] .admin-drawer-profile-text strong {
    color: #080d24;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
  }
body[data-view="admin"] .admin-drawer-profile-text span {
    color: #687087;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
    white-space: normal;
  }
}
/* Admin shared filters final override */
body[data-view="admin"] :where(
  .admin-mini-tabs,
  .admin-mod-tabs,
  .admin-listings-tabs,
  .admin-catalog-tabs,
  .admin-orders-tabs,
  .admin-disputes-tabs,
  .admin-finance-tabs,
  .admin-audit-tabs
) {
  display: flex !important;
  gap: 28px;
  align-items: stretch;
  min-width: 0;
  border-bottom: 1px solid #dfe4ef;
  overflow-x: auto;
  scrollbar-width: none;
}
body[data-view="admin"] :where(
  .admin-mini-tabs,
  .admin-mod-tabs,
  .admin-listings-tabs,
  .admin-catalog-tabs,
  .admin-orders-tabs,
  .admin-disputes-tabs,
  .admin-finance-tabs,
  .admin-audit-tabs
)::-webkit-scrollbar {
  display: none;
}
body[data-view="admin"] :where(
  .admin-mini-tabs,
  .admin-mod-tabs,
  .admin-listings-tabs,
  .admin-catalog-tabs,
  .admin-orders-tabs,
  .admin-disputes-tabs,
  .admin-finance-tabs,
  .admin-audit-tabs
) > button {
  flex: 0 0 auto;
  min-height: 44px !important;
  padding: 0 0 10px !important;
  color: #596174 !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 850 !important;
  white-space: nowrap;
}
body[data-view="admin"] :where(
  .admin-mini-tabs,
  .admin-mod-tabs,
  .admin-listings-tabs,
  .admin-catalog-tabs,
  .admin-orders-tabs,
  .admin-disputes-tabs,
  .admin-finance-tabs,
  .admin-audit-tabs
) > button.active {
  color: #4f35f2 !important;
  border-bottom-color: #4f35f2 !important;
}


body[data-view="admin"] :where(
  .admin-mod-filter-btn,
  .admin-listings-filter-btn,
  .admin-orders-filter-button,
  .admin-disputes-filter-button,
  .admin-audit-filter-btn
) {
  display: inline-grid !important;
  min-width: 56px;
  min-height: 56px;
  place-items: center;
  padding: 0 18px;
  border: 1px solid #dfe4ef !important;
  border-radius: 14px !important;
  color: #080d24 !important;
  background: #fff !important;
  box-shadow: none !important;
  font-weight: 850;
}
@media (max-width: 1180px) {
body[data-view="admin"] #adminOverviewRoot #adminKpis,
body[data-view="admin"] #adminOverviewRoot .admin-dashboard-grid,
body[data-view="admin"] #adminOverviewRoot .admin-dashboard-lower {
    grid-template-columns: 1fr 1fr;
  }
body[data-view="admin"] #adminOverviewRoot .admin-attention-panel,
body[data-view="admin"] #adminOverviewRoot .admin-actions-summary {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
body[data-view="admin"] #adminOverviewRoot {
    gap: 16px;
  }
body[data-view="admin"] #adminOverviewRoot .admin-dashboard-head,
body[data-view="admin"] #adminOverviewRoot .admin-dashboard-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
body[data-view="admin"] #adminOverviewRoot #adminKpis,
body[data-view="admin"] #adminOverviewRoot .admin-dashboard-grid,
body[data-view="admin"] #adminOverviewRoot .admin-dashboard-lower,
body[data-view="admin"] #adminOverviewRoot .admin-moderation-inline {
    grid-template-columns: 1fr;
  }
body[data-view="admin"] #adminOverviewRoot .admin-kpi {
    min-height: 104px;
    padding: 16px;
  }
body[data-view="admin"] #adminOverviewRoot .admin-dashboard-disputes {
    display: none;
  }
body[data-view="admin"] #adminOverviewRoot .admin-mobile-disputes {
    display: grid !important;
    gap: 12px;
  }
body[data-view="admin"] #adminOverviewRoot .admin-card {
    padding: 18px;
  }
}

/* Admin moderation mobile fallback: keep this at the end so legacy bundled rules cannot win. */
body[data-view="admin"] #moderationList .admin-mod-search {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 12px !important;
  cursor: text !important;
  pointer-events: auto !important;
}

body[data-view="admin"] #moderationList .admin-mod-search input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  position: relative !important;
  z-index: 2 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #080d24 !important;
  caret-color: #4f35f2 !important;
  font: inherit !important;
  font-size: 14px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  -webkit-text-fill-color: #080d24 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

body[data-view="admin"] #moderationList .admin-mod-search input::placeholder {
  color: #8b94a8 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #8b94a8 !important;
}
@media (max-width: 900px) {
  body[data-view="admin"] #moderationList .admin-mod-controls {
    grid-template-columns: minmax(0, 1fr) 56px !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  body[data-view="admin"] #moderationList .admin-mod-controls > select {
    display: none !important;
  }

  body[data-view="admin"] #moderationList .admin-mod-controls > .admin-mod-filter-btn {
    display: inline-grid !important;
    width: 56px !important;
    min-width: 56px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  body[data-view="admin"] #moderationList .admin-mod-mobile-actions {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  body[data-view="admin"] #moderationList .admin-mod-mobile-actions .admin-mod-filter-btn {
    display: none !important;
  }

  body[data-view="admin"] #moderationList .admin-mod-mobile-actions select {
    width: 100% !important;
    max-width: none !important;
  }

  body[data-view="admin"] #moderationList .admin-mod-card {
    grid-template-columns: 18px 40px minmax(0, 1fr) 28px !important;
    gap: 6px !important;
    padding: 8px !important;
  }

  body[data-view="admin"] #moderationList .admin-mod-card > .admin-mod-cover {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  body[data-view="admin"] #moderationList .admin-mod-card-main {
    gap: 2px !important;
  }

  body[data-view="admin"] #moderationList .admin-mod-card dl {
    gap: 4px !important;
    margin: 3px 0 0 !important;
  }

  body[data-view="admin"] #moderationList .admin-mod-card > .admin-mod-more-btn {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
  }

  body[data-view="admin"] #moderationList .admin-mod-card-action {
    min-height: 38px !important;
    margin-top: 2px !important;
  }
}

/* Optical balance for the new filled 96px icon set. Keep product images untouched. */
body[data-view="admin"] .admin-menu button span img,
.admin-menu button span img {
  width: 17px !important;
  height: 17px !important;
  object-fit: contain !important;
  opacity: 0.82 !important;
}

body[data-view="admin"] .admin-menu button.active span img,
.admin-menu button.active span img {
  opacity: 1 !important;
  filter: brightness(0) invert(1) !important;
}

.seller-nav nav span img {
  width: 17px !important;
  height: 17px !important;
  object-fit: contain !important;
  opacity: 0.82 !important;
}

.seller-nav nav button.active span img,
.seller-nav nav button:hover span img {
  opacity: 1 !important;
}

.nav-tile img:not([data-mobile-profile-avatar]),
.catalog-button .button-icon-img,
.category-strip .cat-icon img {
  width: 19px !important;
  height: 19px !important;
  object-fit: contain !important;
  opacity: 0.86 !important;
}

.category-strip .cat-icon img {
  width: 17px !important;
  height: 17px !important;
  opacity: 1 !important;
  filter: brightness(0) saturate(100%) !important;
}

.nav-tile:hover img:not([data-mobile-profile-avatar]),
.nav-tile.active img:not([data-mobile-profile-avatar]),
.catalog-button[aria-expanded="true"] .button-icon-img,
.category-strip button:hover .cat-icon img,
.category-strip button.active .cat-icon img {
  opacity: 1 !important;
}

.category-strip button:hover .cat-icon img,
.category-strip button.active .cat-icon img {
  opacity: 0.9 !important;
}

.nav-tile.has-avatar img,
.market-mobile-logo img,
.logo-wordmark,
.brand-logo {
  opacity: 1 !important;
}

.market-mobile-drawer-link img,
.market-mobile-drawer-support img,
.market-mobile-bottom-nav img,
body[data-view^="seller"] .seller-mobile-bottom-nav img,
body[data-view^="seller"] .seller-home-bottom-nav img {
  object-fit: contain !important;
  opacity: 0.86 !important;
}

.market-mobile-drawer-link img,
.market-mobile-drawer-support img {
  width: 18px !important;
  height: 18px !important;
}

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

.market-mobile-bottom-nav .active img,
body[data-view^="seller"] .seller-mobile-bottom-nav .active img,
body[data-view^="seller"] .seller-home-bottom-nav .active img {
  opacity: 1 !important;
}

.market-mobile-bottom-nav .active img:not([data-mobile-profile-avatar]) {
  filter: brightness(0) saturate(100%) invert(23%) sepia(98%) saturate(4958%) hue-rotate(249deg) brightness(105%) contrast(102%) !important;
  transform: scale(1.16) !important;
}

.market-mobile-bottom-nav .active:is([data-mobile-action="home"], [data-mobile-action="chats"], [data-mobile-action="orders"])::before {
  width: 22px !important;
  height: 22px !important;
  transform: scale(1.16) !important;
}

.market-mobile-bottom-nav .active [data-mobile-profile-avatar] {
  transform: scale(1.08) !important;
  box-shadow: 0 0 0 4px rgba(79, 53, 242, 0.12), 0 0 0 1px rgba(79, 53, 242, 0.28) !important;
}

.market-mobile-bottom-nav .active svg {
  transform: scale(1.16) !important;
}

.service-icon.image img {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
  opacity: 1 !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10000;
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: #171923;
  color: #fff;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.22);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body[data-view="sellerListings"] .seller-listing-search,
body[data-view="sellerOrders"] .seller-order-search {
  height: 42px !important;
  min-height: 42px !important;
  padding-block: 0 !important;
  border-radius: 8px !important;
}

body[data-view="sellerListings"] .seller-listing-search input,
body[data-view="sellerOrders"] .seller-order-search input,
body[data-view="sellerListings"] .seller-listings-tools select,
body[data-view="sellerOrders"] .seller-orders-tools select {
  height: 42px !important;
  min-height: 42px !important;
  padding-block: 0 !important;
  line-height: 42px !important;
  border-radius: 8px !important;
}

body[data-view="sellerListings"] .seller-filter-btn,
body[data-view="sellerOrders"] .seller-filter-btn {
  width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 8px !important;
}
/* lootava seller/mobile polish 20260831 */
@media (max-width: 768px) {
  body[data-view="market"].market-mobile-header-visible .site-header {
    display: none !important;
  }

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

  body[data-view="market"] .hero {
    min-height: 0 !important;
    margin: 132px 0 26px !important;
    padding: 28px 28px 24px !important;
    border-radius: 20px !important;
  }

  body[data-view="market"].market-mobile-header-visible .hero {
    margin-top: 22px !important;
  }

  body[data-view="market"] .hero-copy h1 {
    max-width: 260px !important;
    font-size: 32px !important;
    line-height: 1.12 !important;
  }

  body[data-view="market"] .hero-copy p {
    max-width: 290px !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
  }

  body[data-view="market"] .hero-cta {
    min-height: 48px !important;
    padding: 0 22px !important;
    border-radius: 12px !important;
    font-size: 17px !important;
  }

  body[data-view="market"] .hero-art {
    right: -28px !important;
    bottom: 88px !important;
    width: 180px !important;
    height: 130px !important;
  }

  body[data-view="market"] .popular-services h2,
  body[data-view="market"] .section-title h2 {
    font-size: 27px !important;
    line-height: 1.16 !important;
  }

  body[data-view="market"] .service-card {
    min-height: 112px !important;
    padding: 16px 12px !important;
    border-radius: 12px !important;
  }

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

  body[data-view="market"] .service-card strong {
    font-size: 17px !important;
    line-height: 1.15 !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 svg,
  .market-mobile-bottom-nav svg path,
  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 {
    fill: currentColor !important;
    stroke: none !important;
  }

  .market-mobile-bottom-nav .active {
    color: #4f35f2 !important;
  }

  .market-mobile-bottom-nav .active[data-mobile-action="favorites"] svg {
    color: #4f35f2 !important;
    transform: scale(1.16) !important;
  }

  body[data-view="sellerProfile"] .page {
    padding: 0 0 calc(82px + env(safe-area-inset-bottom)) !important;
  }

  body[data-view="sellerProfile"] .seller-profile-page {
    padding: 14px 12px 24px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-top {
    display: none !important;
  }

  body[data-view="sellerProfile"] .seller-profile-hero {
    padding-top: 2px !important;
  }
}

@media (min-width: 769px) {
  body[data-view="sellerProfile"] .seller-profile-page {
    width: min(100%, 1280px) !important;
    padding: 24px 24px 72px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-top {
    display: none !important;
  }
}

@media (max-width: 430px) {
  body[data-view="market"] .hero-copy h1 {
    font-size: 30px !important;
  }

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

  body[data-view="market"] .service-card strong {
    font-size: 16px !important;
  }
}
/* lootava seller/mobile polish 20260831-2 */
@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;
    margin: 0 !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 {
    display: flex !important;
    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 {
    max-width: 240px !important;
    font-size: 28px !important;
  }

  body[data-view="market"] .hero-copy p {
    max-width: 260px !important;
    margin-bottom: 18px !important;
    font-size: 15px !important;
  }

  body[data-view="market"] .hero-cta {
    min-height: 42px !important;
    padding: 0 18px !important;
    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 .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="sellerProfile"] .seller-profile-search,
  body[data-view="sellerProfile"] .seller-profile-filters,
  body[data-view="sellerProfile"] .seller-profile-grid,
  body[data-view="sellerProfile"] .seller-profile-section-head,
  body[data-view="sellerProfile"] .seller-profile-hero,
  body[data-view="sellerProfile"] .seller-profile-actions {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

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

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

  body[data-view="sellerProfile"] .seller-profile-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 5px 8px;
    align-items: center;
    color: #070b25 !important;
    font-size: 13px !important;
    line-height: 1.25;
  }

  body[data-view="sellerProfile"] .seller-profile-meta a,
  body[data-view="sellerProfile"] .seller-profile-meta span {
    color: inherit !important;
  }

  body[data-view="sellerProfile"] .seller-profile-meta .seller-profile-star {
    color: #ff3b30 !important;
  }

  body[data-view="sellerProfile"] .seller-profile-meta i {
    display: block !important;
    width: 1px;
    height: 14px;
    background: #dfe4ef;
  }

  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 {
    gap: 12px !important;
    padding: 14px !important;
  }

  #sellerView .seller-rules h2 {
    font-size: 20px !important;
  }

  #sellerView .seller-rules p,
  #sellerView .seller-rules li,
  #sellerView .seller-rules a,
  #sellerView .seller-rules-note {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

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

  #sellerView .seller-forbidden {
    margin-top: 12px !important;
    padding: 18px 16px !important;
    border-radius: 18px !important;
  }

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

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

  #sellerView .seller-forbidden li::before {
    top: 18px !important;
    width: 8px !important;
    height: 8px !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;
  }

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

@media (max-width: 1320px) and (min-width: 769px) {
  body[data-view="sellerProfile"] .seller-profile-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* Active navigation color pass. Keeps all selected section icons on the brand blue. */
.nav-tile.active,
.nav-tile.active .nav-icon-svg,
.market-mobile-bottom-nav .active,
.market-mobile-bottom-nav .active svg,
.market-mobile-bottom-nav .active svg path,
body[data-view^="seller"] .seller-mobile-bottom-nav .active,
body[data-view^="seller"] .seller-home-bottom-nav .active {
  color: #4f35f2 !important;
  fill: #4f35f2 !important;
  stroke: #4f35f2 !important;
}

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

/* Account action nav colors 20260902 */
.account-actions .nav-tile,
.account-actions .nav-tile span,
.account-actions .nav-tile .nav-icon-svg,
.account-actions .nav-tile .nav-icon-svg path {
  color: #05070f !important;
  fill: #05070f !important;
  stroke: #05070f !important;
}

.account-actions .nav-tile img:not([data-current-user-avatar]):not([data-mobile-profile-avatar]) {
  opacity: 1 !important;
  filter: brightness(0) saturate(100%) !important;
}

.account-actions .nav-tile.active,
.account-actions .nav-tile.active span,
.account-actions .nav-tile.active .nav-icon-svg,
.account-actions .nav-tile.active .nav-icon-svg path {
  color: #4f35f2 !important;
  fill: #4f35f2 !important;
  stroke: #4f35f2 !important;
}

.account-actions .nav-tile.active img:not([data-current-user-avatar]):not([data-mobile-profile-avatar]) {
  opacity: 1 !important;
  filter: brightness(0) saturate(100%) invert(23%) sepia(98%) saturate(4958%) hue-rotate(249deg) brightness(105%) contrast(102%) !important;
}

/* Account nav vector icon sizing 20260902 */
.account-actions .nav-chat-icon,
.account-actions .nav-orders-icon,
.account-actions .nav-favorite-icon {
  width: 25px !important;
  height: 25px !important;
  flex: 0 0 25px !important;
  display: block !important;
  fill: currentColor !important;
  stroke: none !important;
}



/* Fixed active nav icon scale 20260902 */
.account-actions .nav-tile,
.account-actions .nav-tile.active {
  min-width: 68px !important;
  min-height: 54px !important;
  padding: 6px 12px !important;
  transform: none !important;
}

.account-actions .nav-tile img:not([data-current-user-avatar]):not([data-mobile-profile-avatar]),
.account-actions .nav-tile .nav-icon-svg,
.account-actions .nav-tile.active img:not([data-current-user-avatar]):not([data-mobile-profile-avatar]),
.account-actions .nav-tile.active .nav-icon-svg {
  width: 25px !important;
  height: 25px !important;
  flex: 0 0 25px !important;
  transform: none !important;
}

.market-mobile-bottom-nav img,
.market-mobile-bottom-nav svg,
.market-mobile-bottom-nav button::before,
.market-mobile-bottom-nav .active img:not([data-mobile-profile-avatar]),
.market-mobile-bottom-nav .active svg,
.market-mobile-bottom-nav .active[data-mobile-action="favorites"] svg,
.market-mobile-bottom-nav .active:is([data-mobile-action="home"], [data-mobile-action="chats"], [data-mobile-action="orders"])::before {
  transform: none !important;
}

.market-mobile-bottom-nav button::before,
.market-mobile-bottom-nav .active:is([data-mobile-action="home"], [data-mobile-action="chats"], [data-mobile-action="orders"])::before {
  width: 24px !important;
  height: 24px !important;
}


/* Seller cabinet label badge 20260902 */
.seller-nav-label,
.seller-mobile-drawer-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 22px !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  background: #eee8ff !important;
  color: #4f35f2 !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.seller-mobile-drawer-label {
  margin: 28px 0 14px !important;
}


/* Seller drawer label spacing 20260902 */
.seller-mobile-drawer-label {
  margin-bottom: 14px !important;
}


/* Seller drawer badge real spacing 20260902 */
.seller-mobile-drawer-label {
  display: flex !important;
  margin: 28px 0 0 !important;
}

.seller-mobile-drawer-label + nav {
  margin-top: 16px !important;
}

/* Chat send buttons rectangular override 20260903 */
body[data-view="messages"] .buyer-chat-composer .buyer-send,
body[data-view="messages"].buyer-message-chat-open .buyer-chat-composer .buyer-send,
#buyerMessagesRoot .buyer-chat-mobile .seller-chat-send.buyer-send,
#sellerMessagesView .seller-chat-composer .seller-chat-send,
#sellerMessagesView.seller-messages-chat-open .seller-chat-composer .seller-chat-send {
  width: 64px !important;
  min-width: 64px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  line-height: 1 !important;
}


/* Keep chat send buttons aligned with the unchanged input height. */
body[data-view="messages"] #buyerMessagesRoot .buyer-chat-composer .buyer-send,
body[data-view="messages"].buyer-message-chat-open #buyerMessagesRoot .buyer-chat-composer .buyer-send,
#buyerMessagesRoot .buyer-chat-mobile .seller-chat-send.buyer-send,
#sellerMessagesView .seller-chat-composer .seller-chat-send,
#sellerMessagesView.seller-messages-chat-open .seller-chat-composer .seller-chat-send {
  align-self: center !important;
  width: 64px !important;
  min-width: 64px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  border-radius: 12px !important;
}

/* Final buyer/seller chat send alignment 20260903-3 */
body[data-view="messages"] #buyerMessagesRoot .buyer-chat-composer,
body[data-view="messages"].buyer-message-chat-open #buyerMessagesRoot .buyer-chat-composer,
#sellerMessagesView .seller-chat-composer {
  align-items: center !important;
  grid-template-columns: 52px minmax(0, 1fr) 64px !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-chat-composer .buyer-send,
body[data-view="messages"] #buyerMessagesRoot .buyer-chat-composer button.seller-chat-send.buyer-send,
body[data-view="messages"].buyer-message-chat-open #buyerMessagesRoot .buyer-chat-composer .buyer-send,
body[data-view="messages"].buyer-message-chat-open #buyerMessagesRoot .buyer-chat-composer button.seller-chat-send.buyer-send,
#sellerMessagesView .seller-chat-composer .seller-chat-send,
#sellerMessagesView.seller-messages-chat-open .seller-chat-composer .seller-chat-send {
  align-self: center !important;
  place-self: center !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-chat-composer input,
body[data-view="messages"].buyer-message-chat-open #buyerMessagesRoot .buyer-chat-composer input,
#sellerMessagesView .seller-chat-composer input,
#sellerMessagesView.seller-messages-chat-open .seller-chat-composer input {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
}

.primary-btn,
.catalog-button,
.buyer-chat-report-modal .primary-btn,
.buyer-chat-review-modal .primary-btn,
.seller-report-modal-actions .primary-btn,
.seller-deliver-modal-actions .primary-btn,
.seller-chat-actions .primary-btn,
.catalog-public-empty .primary-btn,
.seller-message-info-card .primary-btn {
  box-shadow: none !important;
}

.market-listings-sentinel,
.market-listings-loading {
  grid-column: 1 / -1;
}

/* Seller order delivery dialog */
.seller-deliver-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 21, 31, 0.42);
  backdrop-filter: blur(3px);
}

.seller-deliver-modal {
  position: relative;
  display: grid;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  gap: 18px;
  padding: 34px;
  border: 1px solid #dfe3ee;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 21, 31, 0.22);
}

.seller-deliver-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: #151823;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.seller-deliver-modal-close:hover {
  background: #f3f5f9;
}

.seller-deliver-modal h2 {
  max-width: calc(100% - 52px);
  margin: 0;
  color: #151823;
  font-size: 30px;
  line-height: 1.12;
}

.seller-deliver-modal-lead {
  margin: 0;
  color: #3f4555;
  font-size: 17px;
  line-height: 1.45;
}

.seller-deliver-form {
  display: grid;
  gap: 8px;
  color: #747b8e;
  font-size: 15px;
  font-weight: 800;
}

.seller-deliver-form textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid #b9becb;
  border-radius: 6px;
  color: #151823;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  outline: none;
}

.seller-deliver-form textarea:focus {
  border-color: #5a43ff;
  box-shadow: 0 0 0 4px rgba(90, 67, 255, 0.12);
}

.seller-deliver-error {
  padding: 12px 14px;
  border: 1px solid #ffc9c9;
  border-radius: 12px;
  background: #fff6f6;
  color: #b91c1c;
  font-weight: 700;
}

.seller-deliver-modal-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.seller-deliver-modal-actions .primary-btn,
.seller-deliver-modal-actions .secondary-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
}

.seller-deliver-modal-actions .secondary-btn {
  border: 1px solid #dfe3ee;
  background: #fff;
  box-shadow: none;
  color: #151823;
}

#sellerMessagesView .seller-chat-message.system,
#buyerMessagesRoot .seller-chat-message.system,
body[data-view="messages"] .buyer-bubble.system {
  align-self: center !important;
  width: fit-content !important;
  max-width: min(72%, 640px) !important;
  margin: 6px auto 14px !important;
  padding: 8px 12px !important;
  border: 1px solid #e2e6ef !important;
  border-radius: 10px !important;
  background: #f7f8fb !important;
  box-shadow: none !important;
  color: #566074 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.32 !important;
  text-align: left !important;
}

#sellerMessagesView .seller-chat-message.system > span,
#buyerMessagesRoot .seller-chat-message.system > span,
body[data-view="messages"] .buyer-bubble.system > span {
  color: inherit !important;
}

#sellerMessagesView .seller-chat-message.system time,
#buyerMessagesRoot .seller-chat-message.system time,
body[data-view="messages"] .buyer-bubble.system time {
  position: static !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 3px 0 0 !important;
  color: #9aa1ad !important;
  font-size: 11px !important;
  text-align: right !important;
}

@media (max-width: 640px) {
  .seller-deliver-modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .seller-deliver-modal {
    max-height: calc(100vh - 24px);
    padding: 28px 22px 22px;
    border-radius: 20px;
  }

  .seller-deliver-modal h2 {
    font-size: 24px;
  }

  .seller-deliver-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Final market infinite scroll/card fixes 20260904-3 */
.product-grid {
  align-items: start;
}

body[data-view="market"] .product-grid {
  align-items: start;
}

.product-grid > .product-card,
body[data-view="market"] .product-card,
.catalog-public-offers.product-grid .product-card,
.favorites-grid .product-card,
.seller-profile-grid .product-card {
  align-self: start;
  grid-template-rows: auto 1fr;
}

.product-grid .market-card-cover,
body[data-view="market"] .market-card-cover,
.catalog-public-offers.product-grid .market-card-cover,
.favorites-grid .market-card-cover,
.seller-profile-grid .market-card-cover {
  position: relative !important;
  display: block !important;
  box-sizing: border-box;
  width: 100%;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  border-radius: 12px 12px 0 0;
  overflow: hidden !important;
}

.product-grid .market-card-cover::before,
body[data-view="market"] .market-card-cover::before,
.catalog-public-offers.product-grid .market-card-cover::before,
.favorites-grid .market-card-cover::before,
.seller-profile-grid .market-card-cover::before {
  display: block;
  width: 100%;
  padding-top: 100%;
  content: "";
}

.product-grid .market-card-cover-image,
body[data-view="market"] .market-card-cover-image,
.catalog-public-offers.product-grid .market-card-cover-image,
.favorites-grid .market-card-cover-image,
.seller-profile-grid .market-card-cover-image {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
}

.product-grid .market-card-cover-link,
body[data-view="market"] .market-card-cover-link,
.catalog-public-offers.product-grid .market-card-cover-link,
.favorites-grid .market-card-cover-link,
.seller-profile-grid .market-card-cover-link {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2;
  display: block !important;
}

.product-grid .product-favorite,
body[data-view="market"] .product-favorite,
.catalog-public-offers.product-grid .product-favorite,
.favorites-grid .product-favorite,
.seller-profile-grid .product-favorite {
  position: absolute !important;
  z-index: 3 !important;
  top: 10px !important;
  right: 10px !important;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50%;
  font-size: 0 !important;
  line-height: 1 !important;
  transform: none !important;
}

.product-grid .product-favorite span,
body[data-view="market"] .product-favorite span,
.catalog-public-offers.product-grid .product-favorite span,
.favorites-grid .product-favorite span,
.seller-profile-grid .product-favorite span {
  display: block;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-1px);
}

body[data-view="market"] .market-listings-sentinel {
  grid-column: 1 / -1;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 18px 0 22px;
  color: #4f35f2;
  font-size: 17px;
  font-weight: 800;
}

body[data-view="market"] .market-listings-loading {
  grid-column: 1 / -1;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 18px 0 8px;
  color: #4f35f2;
  font-size: 17px;
  font-weight: 800;
}

body[data-view="market"] .market-listings-loading.empty-state {
  display: grid;
  gap: 12px;
}

.lootava-loader {
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 4px solid rgba(79, 53, 242, 0.16);
  border-top-color: #4f35f2;
  border-radius: 50%;
  animation: lootava-loader-spin 0.78s linear infinite;
}

@keyframes lootava-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.chat-media-preview {
  display: inline-flex;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: zoom-in;
}

.chat-media-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(8 13 24 / 72%);
  backdrop-filter: blur(10px);
}

.chat-media-preview-dialog {
  position: relative;
  display: grid;
  gap: 10px;
  max-width: min(92vw, 980px);
  max-height: min(88dvh, 820px);
  color: #fff;
}

.chat-media-preview-stage {
  display: grid;
  place-items: center;
  min-width: min(72vw, 360px);
  overflow: hidden;
  border-radius: 16px;
  background: #080d18;
  box-shadow: 0 24px 80px rgb(0 0 0 / 32%);
}

.chat-media-preview-stage img,
.chat-media-preview-stage video {
  display: block;
  max-width: min(92vw, 980px);
  max-height: min(78dvh, 760px);
  object-fit: contain;
}

.chat-media-preview-dialog > span {
  justify-self: center;
  max-width: min(86vw, 760px);
  overflow: hidden;
  color: rgb(255 255 255 / 78%);
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-media-preview-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  display: grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  background: rgb(8 13 24 / 82%);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  body[data-view="market"] .product-favorite,
  .catalog-public-offers.product-grid .product-favorite,
  .favorites-grid .product-favorite,
  .seller-profile-grid .product-favorite {
    top: 8px !important;
    right: 8px !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
  }

  body[data-view="market"] .product-favorite span,
  .catalog-public-offers.product-grid .product-favorite span,
  .favorites-grid .product-favorite span,
  .seller-profile-grid .product-favorite span {
    font-size: 22px;
  }
}

/* Seller profile listing grid polish 20260905 */
body[data-view="sellerProfile"] .seller-profile-grid {
  align-items: stretch !important;
}

body[data-view="sellerProfile"] .seller-profile-grid .product-card {
  align-self: stretch !important;
  height: 100% !important;
  grid-template-rows: auto 1fr !important;
}

body[data-view="sellerProfile"] .seller-profile-grid .product-card-body {
  display: grid !important;
  grid-template-rows: 22px 64px 22px auto !important;
  gap: 8px !important;
  min-height: 168px;
}

body[data-view="sellerProfile"] .seller-profile-grid .product-category-line,
body[data-view="sellerProfile"] .seller-profile-grid .product-stats-row {
  min-height: 22px !important;
  overflow: hidden;
  white-space: nowrap;
}

body[data-view="sellerProfile"] .seller-profile-grid .product-title {
  min-height: 64px !important;
}

body[data-view="sellerProfile"] .seller-profile-grid .product-title a {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

body[data-view="sellerProfile"] .seller-profile-grid .price {
  align-self: end;
}

body[data-view="sellerProfile"] .seller-profile-filters {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 260px) !important;
}

body[data-view="sellerProfile"] .seller-profile-catalog {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 0.9fr);
  gap: 14px 12px;
  align-items: start;
}

body[data-view="sellerProfile"] .seller-profile-search,
body[data-view="sellerProfile"] .seller-profile-filters {
  align-self: stretch;
  margin-bottom: 0 !important;
}

body[data-view="sellerProfile"] .seller-profile-search input,
body[data-view="sellerProfile"] .seller-profile-filters select {
  display: block !important;
  box-sizing: border-box;
  height: 56px !important;
  min-height: 56px !important;
  min-width: 0;
  width: 100%;
  padding-right: 34px !important;
  font-weight: 500;
}

body[data-view="sellerProfile"] .seller-profile-search input {
  background-image: none !important;
}

body[data-view="sellerProfile"] .seller-profile-filters select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23101525' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-position: right 22px center !important;
  background-repeat: no-repeat !important;
  background-size: 14px 8px !important;
}

body[data-view="sellerProfile"] .seller-profile-filters {
  align-items: stretch !important;
}

body[data-view="sellerProfile"] .seller-profile-grid,
body[data-view="sellerProfile"] .seller-profile-empty,
body[data-view="sellerProfile"] .seller-profile-pagination {
  grid-column: 1 / -1;
}

@media (min-width: 769px) {
  body[data-view="sellerProfile"] .seller-profile-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1320px) and (min-width: 769px) {
  body[data-view="sellerProfile"] .seller-profile-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  body[data-view="sellerProfile"] .seller-profile-catalog {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px !important;
    padding-top: 12px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-actions {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-top: 6px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-report {
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
  }

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

  body[data-view="sellerProfile"] .seller-profile-search input {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-filters select {
    display: block !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 32px 0 12px !important;
    background-position: right 14px center !important;
    background-size: 12px 7px !important;
    font-size: 14px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-grid .product-card-body {
    grid-template-rows: 18px 46px 18px auto !important;
    gap: 7px !important;
    min-height: 132px;
  }

  body[data-view="sellerProfile"] .seller-profile-grid .product-category-line,
  body[data-view="sellerProfile"] .seller-profile-grid .product-stats-row {
    min-height: 18px !important;
    font-size: 11px !important;
    line-height: 1.2;
  }

  body[data-view="sellerProfile"] .seller-profile-grid .product-stats-row {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 4px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-grid .product-title {
    min-height: 46px !important;
  }

  body[data-view="sellerProfile"] .seller-profile-grid .product-title a {
    -webkit-line-clamp: 2;
  }

  body[data-view="sellerProfile"] .seller-profile-filters button {
    width: 58px !important;
    gap: 0 !important;
  }

  body[data-view="sellerProfile"] .seller-profile-filters button b {
    display: none !important;
  }
}

/* Unread counter cap 20260907 */
body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-body {
  padding-right: 0 !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  min-height: 84px !important;
  padding: 12px 64px 12px 10px !important;
}

body[data-view="messages"] #buyerMessagesRoot .seller-dialog-row,
body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-row {
  display: block !important;
  min-width: 0 !important;
  padding-right: 0 !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-title-wrap {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
  gap: 10px !important;
}

body[data-view="messages"] #buyerMessagesRoot .seller-dialog-row strong,
body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-row strong {
  display: block !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-avatar {
  width: 52px !important;
  height: 52px !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item time {
  position: absolute !important;
  top: 16px !important;
  right: 14px !important;
  width: 50px !important;
  text-align: right !important;
  line-height: 1.1 !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-pin {
  position: static !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-pin-indicator {
  display: grid !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  place-items: center !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-pin-indicator img {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item i {
  position: absolute !important;
  top: 45px !important;
  right: 27px !important;
  bottom: auto !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item::after {
  left: 78px !important;
  right: 64px !important;
  bottom: 8px !important;
}

body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item i,
#sellerMessagesView .seller-dialog-unread {
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 24px !important;
  max-width: 30px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 5px !important;
  overflow: hidden !important;
  font-size: 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.nav-counter,
.seller-nav-counter,
.mobile-nav-counter,
.seller-drawer-count {
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 20px !important;
  max-width: 28px !important;
  height: 20px !important;
  min-height: 20px !important;
  padding: 0 5px !important;
  overflow: hidden !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 9px !important;
    min-height: 78px !important;
    padding: 10px 58px 10px 9px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-avatar {
    width: 48px !important;
    height: 48px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .seller-dialog-row,
  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-row {
    display: block !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-title-wrap {
    gap: 8px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-pin {
    flex-basis: 20px !important;
    width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-pin-indicator {
    flex-basis: 20px !important;
    width: 20px !important;
    height: 20px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-pin-indicator img {
    width: 16px !important;
    height: 16px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item time {
    top: 13px !important;
    right: 10px !important;
    width: 42px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item i {
    top: 40px !important;
    right: 19px !important;
  }

  body[data-view="messages"] #buyerMessagesRoot .buyer-dialog-item::after {
    left: 72px !important;
    right: 58px !important;
    bottom: 6px !important;
  }
}

/* Seller dialog list parity with buyer messages 20260907 */
body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-item {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  min-height: 84px !important;
  padding: 12px 64px 12px 10px !important;
}

body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-row {
  display: block !important;
  min-width: 0 !important;
}

body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-title-wrap {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
  gap: 10px !important;
}

body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-title-wrap strong {
  display: block !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding-right: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-avatar {
  width: 52px !important;
  height: 52px !important;
}

body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-row time {
  position: absolute !important;
  top: 16px !important;
  right: 14px !important;
  width: 50px !important;
  text-align: right !important;
  line-height: 1.1 !important;
}

body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-unread {
  position: absolute !important;
  top: 45px !important;
  right: 27px !important;
  width: auto !important;
  min-width: 24px !important;
  max-width: 30px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 5px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-pin-indicator {
  display: grid !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  place-items: center !important;
}

body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-pin-indicator img {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
  filter: invert(34%) sepia(95%) saturate(2164%) hue-rotate(242deg) brightness(99%) contrast(94%) !important;
}

body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-item::after {
  left: 78px !important;
  right: 64px !important;
  bottom: 8px !important;
}

@media (max-width: 768px) {
  body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-item {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 9px !important;
    min-height: 78px !important;
    padding: 10px 58px 10px 9px !important;
  }

  body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-avatar {
    width: 48px !important;
    height: 48px !important;
  }

  body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-title-wrap {
    gap: 8px !important;
  }

  body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-row time {
    top: 13px !important;
    right: 10px !important;
    width: 42px !important;
  }

  body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-unread {
    top: 40px !important;
    right: 19px !important;
  }

  body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-pin-indicator {
    flex-basis: 20px !important;
    width: 20px !important;
    height: 20px !important;
  }

  body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-pin-indicator img {
    width: 16px !important;
    height: 16px !important;
  }

  body[data-view="sellerMessages"] #sellerMessagesView .seller-dialog-item::after {
    left: 72px !important;
    right: 58px !important;
    bottom: 6px !important;
  }
}
