/* Seller navigation stays in place in the document; it never follows page scroll. */
.seller-sidebar {
  position: static !important;
  top: auto !important;
  align-self: start;
  min-height: 540px;
  padding: 16px !important;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.seller-sidebar-title {
  padding: 13px 12px 17px !important;
  font-size: 12px !important;
}

.seller-sidebar .seller-nav-item {
  min-height: 48px;
  padding: 12px 13px;
  border-radius: 10px;
}

/* Make the listing editor a clear, wide workspace and keep its preview static. */
.sell-page {
  max-width: 1420px !important;
  padding-top: 24px !important;
}

.sell-page .sell-heading {
  align-items: center;
  margin-bottom: 18px;
}

.sell-page .sell-heading h1 {
  margin: 4px 0 6px;
  font-size: clamp(27px, 3vw, 36px);
  letter-spacing: -.04em;
}

.sell-page .sell-heading .page-intro {
  max-width: 720px;
  margin: 0;
  font-size: 13px;
}

.sell-page .sell-layout {
  grid-template-columns: minmax(0, 1fr) 310px !important;
  align-items: start;
  gap: 18px !important;
}

.sell-page .sell-form-panel {
  min-width: 0;
  padding: clamp(18px, 2.2vw, 28px) !important;
  border-color: #353b40;
  border-radius: 16px !important;
  background: linear-gradient(155deg, #191c1f, #121517) !important;
}

.sell-page .sell-form {
  width: 100%;
  max-width: none;
  gap: 13px;
}

.sell-page .sell-form > label,
.sell-page .sell-form .form-two > label {
  min-width: 0;
  gap: 7px;
  color: #e5e8ea;
  font-size: 12px;
  font-weight: 700;
}

.sell-page .sell-form .field {
  min-width: 0;
  min-height: 44px;
  border-color: #3a4147;
  border-radius: 9px;
  background-color: #101316;
  color: #f1f3f4;
}

.sell-page .sell-form textarea.field {
  min-height: 128px;
  padding: 12px 13px;
  line-height: 1.55;
}

.sell-page .form-section-title {
  margin: 9px 0 2px;
  padding: 12px 0 10px;
  border-color: #30363b;
}

.sell-page .form-section-title:first-child {
  margin-top: 0;
}

.sell-page .form-section-title > span {
  width: 34px;
  height: 34px;
  border: 1px solid #484d50;
  border-radius: 10px;
  background: #24282b;
  color: #eeb05a;
}

.sell-page .form-section-title small,
.sell-page .sell-form .hint {
  color: #9ba3a8;
  font-size: 11px;
  line-height: 1.5;
}

.sell-page .sell-form label:has(.category-typeahead) {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 9px;
}

.sell-page .category-typeahead {
  grid-column: 1;
  grid-row: 2;
}

.sell-page .seller-category-open {
  grid-column: 2;
  grid-row: 2;
  min-height: 44px;
  align-self: stretch;
  white-space: nowrap;
}

.sell-page #tree-suggestions {
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  overflow: hidden;
  border-radius: 9px;
}

.sell-page .sell-form label:has(.category-typeahead) > .hint {
  grid-column: 1 / -1;
  grid-row: 4;
}

.sell-page .seller-category-create {
  margin: -5px 0 4px !important;
  padding: 12px 14px !important;
  border-color: #363d42 !important;
  border-radius: 11px !important;
  background: #141719 !important;
}

.sell-page .seller-category-create summary {
  color: #e3e6e8 !important;
  font-size: 12px !important;
}

.sell-page .seller-category-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.sell-page .seller-category-fields .field {
  width: 100%;
}

.sell-page .sell-submit {
  min-height: 49px;
  margin-top: 4px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.sell-page .sell-tips {
  position: static !important;
  align-self: start;
  gap: 11px;
}

.sell-page .sell-live-preview {
  position: static !important;
  top: auto !important;
}

.sell-page .sell-tips > .panel {
  padding: 16px !important;
  border-color: #343a3f;
  border-radius: 13px;
  background: linear-gradient(150deg, #191c1f, #131618) !important;
}

.sell-page .cover-preview-box {
  height: 150px;
  border-color: #454d53;
  border-radius: 10px;
  background: #101316;
}

@media (max-width: 900px) {
  .seller-sidebar {
    min-height: 0;
  }

  .sell-page .sell-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sell-page .sell-tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sell-page .sell-live-preview {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .seller-sidebar {
    min-height: 0;
  }

  .sell-page .sell-heading {
    align-items: flex-start;
  }

  .sell-page .sell-form-panel {
    padding: 15px !important;
  }

  .sell-page .sell-form label:has(.category-typeahead) {
    grid-template-columns: minmax(0, 1fr);
  }

  .sell-page .category-typeahead,
  .sell-page .seller-category-open,
  .sell-page #tree-suggestions,
  .sell-page .sell-form label:has(.category-typeahead) > .hint {
    grid-column: 1;
  }

  .sell-page .category-typeahead { grid-row: 2; }
  .sell-page .seller-category-open { grid-row: 3; }
  .sell-page #tree-suggestions { grid-row: 4; }
  .sell-page .sell-form label:has(.category-typeahead) > .hint { grid-row: 5; }

  .sell-page .seller-category-fields,
  .sell-page .sell-tips {
    grid-template-columns: minmax(0, 1fr);
  }

  .sell-page .form-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Seller dashboard layout based on the supplied control-panel reference. */
body:not([data-theme="dark"]):has(.seller-dashboard-reference),
body[data-theme="dark"]:has(.seller-dashboard-reference) {
  background: #080b0e !important;
  color: #e8eef3;
}
body:has(.seller-dashboard-reference) .header,
body:has(.seller-dashboard-reference) .footer { display: none !important; }
.seller-dashboard-reference {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: none !important;
  min-height: 100vh;
  margin: 0;
  padding: 0 !important;
  background: #080b0e;
  color: #e8eef3;
}
.seller-rail {
  min-height: 100vh;
  padding: 20px 17px;
  border-right: 1px solid #1a2025;
  background: #090c0f;
}
.seller-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
  margin: 0 12px 18px;
  color: #f5f7f8;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}
.seller-brand img { width: 42px; height: 42px; object-fit: contain; }
.seller-dashboard-reference .seller-sidebar {
  position: static !important;
  min-height: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.seller-dashboard-reference .seller-sidebar-title {
  margin: 12px 10px 24px;
  padding: 5px 9px 8px !important;
  color: #84939e !important;
  font-size: 15px !important;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.seller-dashboard-reference .seller-nav-item {
  display: flex;
  width: 100%;
  min-height: 76px;
  margin: 5px 0;
  padding: 15px 22px;
  gap: 23px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #b6c0c9 !important;
  font-size: 18px;
  font-weight: 550;
  text-align: left;
}
.seller-dashboard-reference .seller-nav-item .seller-nav-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #b6c0c9;
}
.seller-dashboard-reference .seller-nav-icon svg {
  display: block;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.seller-dashboard-reference .seller-nav-label { min-width: 0; }
.seller-dashboard-reference .seller-nav-item:hover .seller-nav-icon,
.seller-dashboard-reference .seller-nav-item.active .seller-nav-icon { color: #00df9a; }
.seller-dashboard-reference .seller-nav-item.active {
  border-left: 3px solid #00e6a0;
  padding-left: 20px;
  background: linear-gradient(100deg,#06251c 0%,#092018 100%) !important;
  color: #00e6a0 !important;
}
.seller-dashboard-reference .seller-nav-item:hover,
.seller-dashboard-reference .seller-nav-item.active {
  border-color: #12392c;
  background: #0d211a !important;
  color: #00df82 !important;
  box-shadow: none !important;
}
.seller-dashboard-reference .seller-nav-item.active > span { color: #00df82 !important; }
.seller-dashboard-reference .seller-nav-item.active {
  border-left: 3px solid #00e6a0;
  padding-left: 20px;
  background: linear-gradient(100deg,#06251c 0%,#092018 100%) !important;
}
.seller-workspace { min-width: 0; }
.seller-topbar {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 11px 28px 11px 32px;
  border-bottom: 1px solid #171d22;
  background: #090c0f;
}
.seller-topbar-balance,.seller-topbar-actions { display: flex; align-items: center; gap: 12px; }
.seller-balance-chip,.seller-topup,.seller-icon-action,.seller-profile-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #202a30;
  border-radius: 12px;
  background: #10161b;
  color: #e8eef3;
}
.seller-balance-chip { gap: 10px; padding: 0 16px; }
.seller-balance-chip > span { color: #00df82; font-size: 19px; }
.seller-balance-chip strong { font-size: 14px; }
.seller-topup {
  padding: 0 18px;
  border-color: #075837;
  background: #08251a;
  color: #00df82;
  font-size: 13px;
  font-weight: 750;
}
.seller-icon-action {
  position: relative;
  width: 46px;
  padding: 10px;
  color: #b5c0c8;
}
.seller-icon-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.seller-icon-action i { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #00df82; }
.seller-notifications-menu { position: relative; display: inline-flex; }
.seller-notification-card { position: absolute; z-index: 80; top: calc(100% + 12px); right: -8px; width: min(360px, calc(100vw - 28px)); overflow: hidden; border: 1px solid #27343c; border-radius: 14px; background: #10171c; box-shadow: 0 18px 48px #0009; color: #e8eef3; animation: seller-notification-in .16s ease-out; transform-origin: top right; }
.seller-notification-card > header { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 12px; border-bottom: 1px solid #202b31; }
.seller-notification-card > header div,.seller-notification-item > span:last-child { display: grid; gap: 4px; min-width: 0; }
.seller-notification-card > header strong { font-size: 14px; }
.seller-notification-card > header small,.seller-notification-item small,.seller-notification-item time { color: #8f9da6; font-size: 11px; }
.seller-notification-card > header button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: #9eabb3; font-size: 20px; cursor: pointer; }
.seller-notification-card > header button:hover { background: #1d282e; color: #fff; }
.seller-notification-list { max-height: 350px; overflow-y: auto; }
.seller-notification-item { display: flex; width: 100%; gap: 11px; padding: 12px 15px; border: 0; border-bottom: 1px solid #1c272d; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.seller-notification-item:hover { background: #172229; }
.seller-notification-item > span:last-child { flex: 1; }
.seller-notification-item strong { overflow: hidden; color: #e7edf1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.seller-notification-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-notification-mark { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 1px solid #194b36; border-radius: 10px; background: #0c281b; color: #00df82; }
.seller-notification-mark.message { border-color: #24475a; background: #11232d; color: #78c9ee; }
.seller-notifications-empty { display: grid; gap: 5px; padding: 25px 18px; color: #e7edf1; text-align: center; }
.seller-notifications-empty span { color: #8f9da6; font-size: 12px; }
.seller-notifications-all { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 12px 16px; border: 0; background: #0d1317; color: #00df82; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.seller-notifications-all:hover { background: #14221c; }
@keyframes seller-notification-in { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.seller-profile-trigger { gap: 10px; padding: 0 11px 0 4px; border-color: transparent; background: transparent; cursor: pointer; }
.seller-profile-trigger strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.seller-profile-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #132735; color: #d6e3eb; font-weight: 750; }
.seller-profile-trigger > span:last-child { color: #98a7b1; }
.seller-dashboard-reference .account-dropdown { top: calc(100% + 8px); right: 0; z-index: 20; }
.seller-dashboard-content { padding: 16px 28px 36px 32px; }
.seller-dashboard-reference .seller-panel { padding: 0; border: 0; border-radius: 0; background: transparent !important; box-shadow: none !important; }
.seller-dashboard-reference .seller-stats { display: grid; gap: 22px; }
.seller-dashboard-reference .seller-alert {
  min-height: 84px;
  margin: 0;
  padding: 17px 20px;
  border: 1px solid #14442f;
  border-radius: 17px;
  background: #0d1519;
  box-shadow: none;
}
.seller-dashboard-reference .seller-alert > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #073b27;
  color: #00df82;
  font-size: 23px;
}
.seller-dashboard-reference .seller-alert strong { color: #edf4f7; font-size: 15px; }
.seller-dashboard-reference .seller-alert small { color: #9aaab4; font-size: 12px; }
.seller-dashboard-reference .seller-announcement { display: none; }
.seller-dashboard-reference .seller-filter-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.seller-dashboard-reference .seller-periods {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 50px;
  padding: 5px;
  border: 1px solid #172127;
  border-radius: 14px;
  background: #0d1419;
}
.seller-dashboard-reference .seller-period {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #aab7c0;
  font-size: 12px;
}
.seller-dashboard-reference .seller-period.active {
  border-color: #00864c;
  background: #09271b;
  color: #00df82;
}
.seller-dashboard-reference .seller-filter-row select {
  min-height: 50px;
  border: 1px solid #202a30;
  border-radius: 13px;
  background: #0e151a;
  color: #e8eef3;
}
.seller-dashboard-reference .seller-reset {
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #202a30;
  border-radius: 13px;
  background: #0e151a;
  color: #c4ced5;
}
.seller-dashboard-reference .seller-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin: 0; }
.seller-dashboard-reference .seller-kpis article {
  position: relative;
  min-height: 118px;
  padding: 17px 18px 13px 82px;
  overflow: hidden;
  border: 1px solid #202a30;
  border-radius: 17px;
  background: #0d1318;
  box-shadow: none;
}
.seller-dashboard-reference .seller-kpis article:nth-child(2),
.seller-dashboard-reference .seller-kpis article:nth-child(3) { border-color: #17382c; background: #0b1514; }
.seller-dashboard-reference .seller-kpis article > i {
  position: absolute;
  top: 15px;
  left: 17px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #083a27;
  color: #00df82;
  font-size: 20px;
  font-style: normal;
  font-weight: 750;
}
.seller-dashboard-reference .seller-kpis article > span { display: block; color: #aab8c1; font-size: 13px; }
.seller-dashboard-reference .seller-kpis article > strong { display: inline-block; margin: 5px 7px 0 0; color: #f2f6f8; font-size: 26px; }
.seller-dashboard-reference .seller-kpis article > small { display: block; margin-top: 4px; color: #7f909a; font-size: 11px; }
.seller-dashboard-reference .seller-trend { padding: 4px 8px; border-radius: 9px; background: #1b2730; color: #aebbc4; font-size: 11px; font-style: normal; }
.seller-dashboard-reference .seller-chart-card {
  padding: 20px;
  border: 1px solid #202a30;
  border-radius: 18px;
  background: #0d1318;
  box-shadow: none;
}
.seller-dashboard-reference .seller-chart-heading h2 { color: #eef3f6; font-size: 18px; }
.seller-dashboard-reference .seller-chart-heading p { color: #82929c; }
.seller-dashboard-reference .seller-chart-heading > strong { color: #f2f6f8; font-size: 19px; }
.seller-dashboard-reference .seller-chart-scroll { overflow: hidden; }
.seller-dashboard-reference .seller-chart-plot {
  position: relative;
  display: block;
  height: 250px;
  border: 0;
  background: repeating-linear-gradient(to bottom,transparent 0,transparent 32px,#1e292e 33px,#1e292e 34px);
}
.seller-dashboard-reference .seller-chart-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.seller-dashboard-reference .seller-chart-area { fill: url(#sellerChartFill); }
.seller-dashboard-reference .seller-chart-line { fill: none; stroke: #00df82; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.seller-dashboard-reference .seller-chart-point { fill: #0b1512; stroke: #00df82; stroke-width: 2; vector-effect: non-scaling-stroke; }
.seller-dashboard-reference .seller-chart-axis { display: flex; justify-content: space-between; margin-top: 10px; color: #8999a3; font-size: 11px; }
.seller-dashboard-reference .seller-chart-legend { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 15px; border-top: 1px solid #172127; color: #a9b6bf; font-size: 12px; }
.seller-dashboard-reference .seller-chart-legend > span { display: inline-flex; align-items: center; gap: 11px; }
.seller-dashboard-reference .seller-chart-legend i { width: 9px; height: 9px; border-radius: 50%; background: #00df82; }
.seller-dashboard-reference .seller-chart-legend strong { color: #edf3f6; font-size: 16px; }
.seller-dashboard-reference .seller-latest { padding-top: 4px; }
.seller-dashboard-reference .seller-latest h2 { color: #edf3f6; }

@media (max-width: 1120px) {
  .seller-dashboard-reference { grid-template-columns: 260px minmax(0, 1fr); }
  .seller-dashboard-content { padding-right: 18px; padding-left: 18px; }
  .seller-dashboard-reference .seller-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .seller-dashboard-reference .seller-filter-row { grid-template-columns: minmax(0,1fr) auto; }
  .seller-dashboard-reference .seller-periods { grid-column: 1 / -1; justify-content: space-between; }
}
@media (max-width: 760px) {
  .seller-dashboard-reference { grid-template-columns: 1fr; }
  .seller-rail { min-height: 0; padding: 8px 12px; border-right: 0; border-bottom: 1px solid #1a2025; }
  .seller-brand { height: 48px; margin: 0 4px 8px; }
  .seller-dashboard-reference .seller-sidebar-title { display: none; }
  .seller-dashboard-reference .seller-sidebar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; }
  .seller-dashboard-reference .seller-nav-item { justify-content: flex-start; min-height: 46px; margin: 0; padding: 7px; gap: 7px; font-size: 11px; }
  .seller-dashboard-reference .seller-nav-item.active { padding-left: 5px; }
  .seller-dashboard-reference .seller-nav-item .seller-nav-icon { flex-basis: 20px; width: 20px; height: 20px; }
  .seller-dashboard-reference .seller-nav-icon svg { width: 19px; height: 19px; }
  .seller-dashboard-reference .seller-nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .seller-topbar { min-height: 62px; padding: 8px 12px; }
  .seller-topbar-balance,.seller-topbar-actions { gap: 6px; }
  .seller-balance-chip,.seller-topup,.seller-icon-action { min-height: 38px; }
  .seller-balance-chip { padding: 0 9px; }
  .seller-topup { padding: 0 10px; font-size: 11px; }
  .seller-profile-trigger strong { display: none; }
  .seller-dashboard-content { padding: 12px; }
  .seller-dashboard-reference .seller-filter-row { grid-template-columns: 1fr; }
  .seller-dashboard-reference .seller-periods { grid-column: auto; overflow-x: auto; justify-content: flex-start; }
  .seller-dashboard-reference .seller-period { padding: 0 10px; white-space: nowrap; }
  .seller-dashboard-reference .seller-kpis { grid-template-columns: 1fr 1fr; gap: 9px; }
  .seller-dashboard-reference .seller-kpis article { min-height: 116px; padding: 56px 11px 10px; }
  .seller-dashboard-reference .seller-kpis article > i { top: 9px; left: 11px; width: 38px; height: 38px; }
  .seller-dashboard-reference .seller-kpis article > strong { margin-top: 4px; font-size: 21px; }
  .seller-dashboard-reference .seller-kpis article > small { margin-top: 3px; }
  .seller-dashboard-reference .seller-chart-plot { height: 190px; }
}

/* Seller workspace and listing editor: stable, compact, and easy to scan. */
.seller-dashboard .seller-layout > .seller-sidebar {
  position: static !important;
  top: auto !important;
  align-self: start;
  min-height: 680px;
  height: max-content;
}

.seller-dashboard .seller-layout {
  grid-template-columns: 270px minmax(0, 1fr) !important;
  align-items: start;
  gap: 20px !important;
}

.seller-dashboard .seller-layout > .seller-sidebar {
  padding: 17px !important;
  gap: 8px;
}

.seller-dashboard .seller-sidebar-title {
  padding: 14px 13px 18px !important;
  font-size: 14px !important;
}

.seller-dashboard .seller-nav-item {
  min-height: 76px;
  padding: 15px 22px;
  gap: 23px;
  font-size: 18px;
}

.seller-dashboard .seller-nav-item > span {
  width: 34px;
  font-size: 18px;
}

.seller-dashboard-reference .seller-nav-item .seller-nav-label {
  width: auto;
  font-size: 18px;
}

.seller-dashboard-reference .seller-nav-item .seller-nav-icon {
  flex-basis: 34px;
  width: 34px;
}

.sell-page .sell-heading .page-intro,
.sell-page .form-section-title small,
.sell-page .sell-form label > small,
.sell-page .sell-form .hint,
.sell-page .seller-category-create small,
.sell-page .seller-category-request-status,
.sell-page .sell-tips > .panel:not(.sell-live-preview) {
  display: none !important;
}

.sell-page .sell-heading { margin-bottom: 14px; }
.sell-page .sell-layout { gap: 14px !important; }
.sell-page .sell-form-panel { padding: 20px !important; }
.sell-page .sell-form { gap: 10px; }
.sell-page .form-section-title {
  margin-top: 6px;
  padding: 8px 0;
  gap: 9px;
}
.sell-page .form-section-title > span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 11px;
}
.sell-page .sell-form label,
.sell-page .sell-form .form-two > label { gap: 6px; }
.sell-page .sell-form .field { min-height: 42px; }
.sell-page .sell-form textarea.field { min-height: 100px; }
.sell-page .seller-category-open {
  border: 1px solid #d89a3d;
  background: #282116;
  color: #ffc15c;
  font-weight: 750;
}
.sell-page .seller-category-create:not([open]) { display: none; }
.sell-page .seller-category-create[open] > summary { display: none; }
.sell-page .seller-category-create {
  margin: -2px 0 2px !important;
  padding: 12px !important;
}
.sell-page .seller-category-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.sell-page .seller-category-fields > label {
  display: grid;
  gap: 6px;
  margin: 0;
}
.sell-page .seller-category-fields > button { min-height: 42px; white-space: nowrap; }
.sell-page .cover-upload-label .field { padding: 8px; }
.sell-page .sell-tips { align-self: start; }
.sell-page .sell-live-preview { top: auto !important; }
.sell-page .lb-builder { gap: 8px; }
.sell-page .lb-group {
  padding: 12px 0;
  border: 0;
  border-top: 1px solid #30363b;
  border-radius: 0;
  background: transparent;
}
.sell-page .lb-group-head { margin-bottom: 8px; }
.sell-page .lb-group-head small { display: none; }
.sell-page .lb-row { padding: 10px; border-radius: 8px; }
.sell-page .lb-row-title { margin-bottom: 7px; }
.sell-page .lb-grid { gap: 8px; }

.admin-page .admin-heading .page-intro { display: none; }
.admin-page .admin-editor { padding: 18px !important; }
.admin-page .admin-editor > h2 { margin: 0 0 14px; }
.admin-page .admin-editor .form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-page .admin-editor .form > label { min-width: 0; gap: 6px; }
.admin-page .admin-editor .form > label:has([name="coverFile"]),
.admin-page .admin-editor .admin-cover-preview,
.admin-page .admin-editor .admin-form-actions { grid-column: 1 / -1; }
.admin-page .admin-editor .form .hint { display: none; }
.admin-page .admin-editor .admin-form-actions { display: flex; gap: 8px; }
.admin-page .admin-editor .admin-form-actions button { min-width: 120px; }

/* Keep the seller forms restrained: one control scale, plain section markers. */
.sell-page .sell-form-panel,
.sell-page .sell-tips > .panel,
.admin-page .admin-editor,
.sell-page .seller-category-create {
  box-shadow: none !important;
  background: #171a1d !important;
  border-color: #30363b !important;
}
.sell-page .form-section-title > span {
  display: block;
  width: 25px;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8e979e;
  font-size: 11px;
  font-weight: 600;
}
.sell-page .form-section-title { border-color: #30363b; }
.sell-page .sell-heading > button,
.sell-page .seller-category-open,
.sell-page .seller-category-fields > button,
.sell-page .lb-group-head > button,
.sell-page .lb-row-title > button,
.admin-page .admin-form-actions > button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: none;
}
.sell-page .sell-submit,
.admin-page .admin-form-actions > .primary {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: none;
}
.sell-page .seller-category-open {
  border-color: #41474c;
  background: #202428;
  color: #e4e7e9;
  font-weight: 650;
}
.sell-page .sell-form label:has(.category-typeahead) {
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch;
}
.sell-page .seller-category-open {
  grid-column: 1 / -1;
  grid-row: auto !important;
  justify-self: start;
  min-height: 32px !important;
  padding: 3px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #d7a35e !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none;
  box-shadow: none !important;
}
.sell-page .seller-category-open:hover {
  color: #f1bd79 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sell-page .seller-category-create[open] {
  display: block !important;
  grid-column: 1 / -1;
  margin: 0 !important;
}
.sell-page .seller-category-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}
@media (max-width: 760px) {
  .sell-page .seller-category-fields { grid-template-columns: minmax(0, 1fr); }
  .sell-page .seller-category-fields > button { justify-self: start; }
}
.sell-page .seller-category-create { padding: 12px !important; }
.sell-page .seller-category-fields { gap: 12px; }
.sell-page .seller-category-fields > label { font-size: 12px; font-weight: 650; }
.sell-page .lb-group { border-color: #30363b; }
.sell-page .lb-row { background: #141719; border-color: #30363b; }
.sell-page .lb-row-title { color: #c4a36f; }
.admin-page .admin-editor .form .field,
.sell-page .sell-form .field { box-shadow: none; }
.admin-page .admin-editor input[type="file"],
.sell-page .sell-form input[type="file"] {
  min-height: 42px;
  padding: 7px 9px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .seller-dashboard .seller-layout { grid-template-columns: 230px minmax(0, 1fr) !important; }
  .seller-dashboard .seller-layout > .seller-sidebar { min-height: 0; }
}
@media (max-width: 760px) {
  .seller-dashboard .seller-layout { grid-template-columns: 1fr !important; }
  .seller-dashboard .seller-layout > .seller-sidebar { min-height: 0; }
}
@media (max-width: 620px) {
  .sell-page .sell-form-panel { padding: 15px !important; }
  .sell-page .seller-category-fields,
  .admin-page .admin-editor .form { grid-template-columns: 1fr; }
  .sell-page .seller-category-fields > button,
  .admin-page .admin-editor .form > label:has([name="coverFile"]),
  .admin-page .admin-editor .admin-cover-preview,
  .admin-page .admin-editor .admin-form-actions { grid-column: 1; }
}

@media (max-width: 760px) {
  .seller-dashboard-reference .seller-nav-item {
    min-height: 46px;
    padding: 7px;
    gap: 7px;
    font-size: 11px;
  }
  .seller-dashboard-reference .seller-nav-item.active { padding-left: 5px; }
  .seller-dashboard-reference .seller-nav-item .seller-nav-icon {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
  }
  .seller-dashboard-reference .seller-nav-icon svg { width: 19px; height: 19px; }
  .seller-dashboard-reference .seller-nav-item .seller-nav-label {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Keep profile menus open while the pointer travels from the trigger to an item. */
.account-menu::after{content:"";position:absolute;right:0;top:100%;width:100%;height:12px;z-index:39}
.account-dropdown{top:calc(100% + 4px)!important}
.account-menu:hover .account-dropdown,.account-menu:focus-within .account-dropdown,.account-menu.open .account-dropdown{display:block}
.seller-dashboard-reference .account-dropdown{top:calc(100% + 4px)!important}
.seller-dashboard-reference .account-menu::after{height:12px}
