.seller-store-main {
  min-height: 100vh;
  padding-bottom: 90px;
}

.seller-store-heading {
  padding: 34px 0 24px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background:
    linear-gradient(110deg, rgba(56,232,255,.1), transparent 36%),
    linear-gradient(292deg, rgba(255,78,219,.1), transparent 36%),
    rgba(7,9,27,.74);
}

.seller-store-heading-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.seller-store-heading h1 {
  margin: 3px 0 7px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: .92;
  letter-spacing: 0;
}

.seller-store-heading p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.seller-store-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.seller-store-heading-actions .btn {
  border-radius: 7px;
}

.seller-store-subnav {
  position: sticky;
  top: var(--site-header-height);
  z-index: 44;
  min-height: var(--subnav-row-height);
  background: rgba(7,9,27,.97);
  box-shadow: 0 13px 32px rgba(0,0,0,.33);
  backdrop-filter: blur(18px) saturate(135%);
}

.seller-store-subnav-inner {
  display: flex;
  min-height: var(--subnav-row-height);
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.seller-store-tab {
  flex: 0 0 auto;
  display: inline-grid;
  min-width: 122px;
  min-height: 42px;
  place-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.045);
  font: inherit;
  font-size: .78rem;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.seller-store-tab:hover,
.seller-store-tab:focus-visible {
  border-color: rgba(56,232,255,.64);
  outline: none;
  background: rgba(56,232,255,.1);
}

.seller-store-tab.is-active {
  border-color: rgba(248,255,70,.7);
  color: #071019;
  background: linear-gradient(115deg, var(--electric), var(--cyan));
}

.seller-store-content {
  padding-top: 22px;
}

.seller-store-access,
.seller-store-empty {
  padding: 28px;
  border: 1px dashed rgba(56,232,255,.32);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(8,11,31,.72);
}

.seller-store-access {
  max-width: 760px;
}

.seller-store-access h2 {
  margin: 5px 0 7px;
  color: #fff;
}

.seller-store-status:not(:empty),
.seller-listing-form-status:not(:empty) {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(56,232,255,.25);
  border-radius: 7px;
  color: var(--cyan);
  background: rgba(56,232,255,.06);
  font-size: .8rem;
  font-weight: 800;
}

.seller-store-status[data-kind="error"],
.seller-listing-form-status[data-kind="error"] {
  border-color: rgba(255,85,118,.48);
  color: #ffc4cf;
  background: rgba(255,85,118,.07);
}

.seller-store-status[data-kind="success"],
.seller-listing-form-status[data-kind="success"] {
  border-color: rgba(93,255,197,.4);
  color: var(--mint);
  background: rgba(93,255,197,.06);
}

.seller-store-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 24px;
}

.seller-store-metrics button {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 94px;
  padding: 13px 15px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  color: #fff;
  background: rgba(12,15,42,.9);
  text-align: left;
  cursor: pointer;
}

.seller-store-metrics button::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: var(--cyan);
}

.seller-store-metrics button:nth-child(2)::before { background: var(--magenta); }
.seller-store-metrics button:nth-child(3)::before { background: var(--electric); }
.seller-store-metrics button:nth-child(4)::before { background: var(--danger); }

.seller-store-metrics button:hover,
.seller-store-metrics button:focus-visible {
  border-color: rgba(56,232,255,.55);
  outline: none;
  background: rgba(56,232,255,.08);
}

.seller-store-metrics span,
.seller-store-metrics strong,
.seller-store-metrics small {
  display: block;
}

.seller-store-metrics span {
  color: rgba(255,255,255,.68);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.seller-store-metrics strong {
  font-size: 1.55rem;
}

.seller-store-metrics small {
  color: var(--muted);
  font-size: .68rem;
}

.seller-stock-toolbar,
.seller-preview-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.seller-stock-toolbar h2,
.seller-preview-toolbar h2 {
  margin: 2px 0 0;
  font-size: 1.75rem;
}

.seller-preview-toolbar p:last-child {
  max-width: 700px;
  margin: 5px 0 0;
  color: var(--muted);
}

.seller-stock-toolbar .btn,
.seller-preview-toolbar .btn {
  border-radius: 7px;
}

.seller-stock-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(180px, 230px);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(10,13,36,.94);
}

.seller-stock-search input,
.seller-stock-sort select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  color: #fff;
  background: #080b24;
}

.seller-stock-search input:focus,
.seller-stock-sort select:focus {
  border-color: var(--cyan);
  outline: 2px solid rgba(56,232,255,.18);
  outline-offset: 1px;
}

.seller-stock-sort {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 850;
}

.seller-stock-channels {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.seller-stock-channels button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 7px;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.04);
  font: inherit;
  font-size: .72rem;
  font-weight: 900;
  cursor: pointer;
}

.seller-stock-channels button:hover,
.seller-stock-channels button:focus-visible,
.seller-stock-channels button.is-active {
  border-color: var(--electric);
  color: #071019;
  outline: none;
  background: var(--electric);
}

.seller-stock-table {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(8,11,31,.76);
}

.seller-stock-table-head,
.seller-stock-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(120px, .7fr) minmax(100px, .55fr) 70px minmax(210px, .9fr);
  gap: 12px;
  align-items: center;
}

.seller-stock-table-head {
  min-height: 42px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255,255,255,.11);
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seller-stock-row {
  min-height: 84px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.seller-stock-row:last-child {
  border-bottom: 0;
}

.seller-stock-row:hover {
  background: rgba(56,232,255,.035);
}

.seller-stock-product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.seller-stock-product img,
.seller-stock-image-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(56,232,255,.2), rgba(255,78,219,.2));
}

.seller-stock-image-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .66rem;
  font-weight: 950;
}

.seller-stock-product strong,
.seller-stock-product small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-stock-product small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .7rem;
}

.seller-stock-location {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  color: #061820;
  background: var(--cyan);
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.seller-stock-location.inventory { color: #fff; background: #6d4ad8; }
.seller-stock-location.shows { color: #071019; background: var(--electric); }
.seller-stock-location.sold { color: #fff; background: #a33150; }

.seller-stock-price {
  color: var(--mint);
  font-weight: 950;
}

.seller-stock-quantity {
  color: #fff;
  font-weight: 900;
}

.seller-stock-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.seller-stock-actions button,
.seller-stock-actions a {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  color: #fff;
  background: rgba(255,255,255,.045);
  font: inherit;
  font-size: .68rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.seller-stock-actions button:hover,
.seller-stock-actions button:focus-visible,
.seller-stock-actions a:hover,
.seller-stock-actions a:focus-visible {
  border-color: rgba(56,232,255,.58);
  outline: none;
  background: rgba(56,232,255,.1);
}

.seller-store-empty {
  margin-top: 12px;
  text-align: center;
}

.seller-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.seller-preview-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: #0c0f2b;
  content-visibility: auto;
  contain-intrinsic-size: 330px 470px;
}

.seller-preview-card img,
.seller-preview-card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(56,232,255,.2), rgba(255,78,219,.2));
}

.seller-preview-card-body {
  display: grid;
  gap: 7px;
  padding: 13px;
}

.seller-preview-card-body h3 {
  min-height: 2.6em;
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.seller-preview-card-body p {
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .76rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.seller-preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--mint);
  font-size: .75rem;
  font-weight: 900;
}

.seller-preview-card .btn {
  width: 100%;
  border-radius: 7px;
}

.seller-listing-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 20px;
}

.seller-listing-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3,4,14,.78);
  backdrop-filter: blur(10px);
}

.seller-listing-editor {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: calc(100vh - 40px);
  padding: 24px;
  overflow-y: auto;
  border: 1px solid rgba(56,232,255,.3);
  border-radius: 8px;
  background: #0a0d28;
  box-shadow: 0 30px 90px rgba(0,0,0,.56);
}

.seller-listing-editor h2 {
  margin: 2px 0 0;
  font-size: 1.65rem;
}

.seller-listing-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.055);
  font-size: 1.35rem;
  cursor: pointer;
}

.seller-listing-editor form {
  margin-top: 18px;
}

.seller-listing-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.seller-listing-fields label {
  display: grid;
  gap: 6px;
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  font-weight: 850;
}

.seller-listing-fields .field-wide {
  grid-column: 1 / -1;
}

.seller-listing-fields input,
.seller-listing-fields select,
.seller-listing-fields textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  color: #fff;
  background: #070a21;
  font: inherit;
  color-scheme: dark;
}

.seller-listing-fields textarea {
  resize: vertical;
}

.seller-listing-fields input:focus,
.seller-listing-fields select:focus,
.seller-listing-fields textarea:focus {
  border-color: var(--cyan);
  outline: 2px solid rgba(56,232,255,.16);
  outline-offset: 1px;
}

.seller-listing-form-status {
  margin-top: 14px;
}

.seller-listing-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.seller-listing-form-actions .btn {
  border-radius: 7px;
}

@media (max-width: 1020px) {
  .seller-store-metrics,
  .seller-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-stock-controls {
    grid-template-columns: 1fr 1fr;
  }

  .seller-stock-channels {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .seller-stock-table {
    overflow-x: auto;
  }

  .seller-stock-table-head,
  .seller-stock-row {
    min-width: 880px;
  }
}

@media (max-width: 700px) {
  .seller-store-heading-inner,
  .seller-stock-toolbar,
  .seller-preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .seller-store-heading-actions {
    justify-content: flex-start;
  }

  .seller-store-heading-actions .btn {
    flex: 1 1 135px;
  }

  .seller-stock-controls {
    grid-template-columns: 1fr;
  }

  .seller-stock-channels {
    grid-column: auto;
    grid-row: auto;
  }

  .seller-stock-sort {
    grid-template-columns: 1fr;
  }

  .seller-listing-fields {
    grid-template-columns: 1fr;
  }

  .seller-listing-fields .field-wide {
    grid-column: auto;
  }
}

@media (max-width: 500px) {
  .seller-store-metrics,
  .seller-preview-grid {
    grid-template-columns: 1fr;
  }

  .seller-listing-modal {
    padding: 8px;
  }

  .seller-listing-editor {
    max-height: calc(100vh - 16px);
    padding: 18px;
  }

  .seller-listing-form-actions {
    flex-direction: column-reverse;
  }

  .seller-listing-form-actions .btn {
    width: 100%;
  }
}
.seller-tips-toggle{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 11px;border:1px solid rgba(56,232,255,.28);border-radius:7px;color:var(--muted);background:rgba(56,232,255,.06);font-size:.75rem;font-weight:850}.seller-tips-toggle input{accent-color:var(--electric)}
.seller-stock-toolbar>div+button+.context-info{margin-left:-10px}.seller-green-floor{color:var(--mint)!important}
.seller-preview-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:7px}.seller-preview-images img{width:100%;height:auto;aspect-ratio:5/7;object-fit:contain;border-radius:6px;background:#050716}.seller-preview-images img:only-child{grid-column:1/-1;aspect-ratio:4/3;object-fit:cover}
.seller-cost-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid rgba(248,255,70,.24);border-radius:7px}.seller-cost-fields legend{padding:0 7px;color:var(--electric);font-weight:900}.seller-cost-fields output{grid-column:1/-1;padding:10px;border-left:3px solid var(--mint);color:#fff;background:rgba(93,255,197,.07);font-size:.8rem;font-weight:850}
.context-info{display:inline-grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid var(--cyan);border-radius:50%;color:var(--cyan);background:rgba(56,232,255,.08);font:900 .8rem/1 inherit;cursor:pointer}.seller-tip-popover{position:fixed;z-index:260;right:18px;bottom:18px;width:min(390px,calc(100vw - 36px));padding:18px 44px 18px 18px;border:1px solid rgba(56,232,255,.5);border-radius:8px;color:#fff;background:#0b0e2b;box-shadow:0 20px 60px rgba(0,0,0,.55)}.seller-tip-popover>button{position:absolute;top:8px;right:8px;width:30px;height:30px;border:0;color:#fff;background:transparent;font-size:1.4rem;cursor:pointer}.seller-tip-popover strong{color:var(--electric)}.seller-tip-popover p{margin:7px 0 0;color:var(--muted);line-height:1.6}
.seller-sold-list{display:grid;gap:9px}.seller-sold-list article{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(420px,1fr);gap:18px;align-items:center;padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:rgba(8,11,31,.8)}.seller-sold-list article>div{display:grid;gap:4px}.seller-sold-list small{color:var(--muted)}.seller-sold-list dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}.seller-sold-list dl div{display:grid;gap:3px}.seller-sold-list dt{color:var(--muted);font-size:.68rem;text-transform:uppercase}.seller-sold-list dd{margin:0;color:#fff;font-weight:900}.seller-sold-list .is-green{color:var(--mint)}.seller-sold-list .is-red{color:#ff8099}
@media(max-width:860px){.seller-cost-fields{grid-template-columns:1fr}.seller-sold-list article{grid-template-columns:1fr}.seller-sold-list dl{grid-template-columns:repeat(2,minmax(0,1fr))}}

.seller-break-unit {
  align-self: end;
  min-height: 46px;
  border-color: rgba(248,255,70,.52);
  color: var(--electric);
}

.seller-breakdown-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
}

.seller-breakdown-help {
  margin: 0;
  color: var(--muted);
}

.seller-breakdown-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  grid-column: 1 / -1;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
  background: rgba(4,7,24,.66);
}

.seller-breakdown-row > small {
  grid-column: 1 / -1;
  color: var(--mint);
  font-weight: 800;
}

.seller-breakdown-check {
  align-self: center;
  grid-template-columns: auto 1fr !important;
  align-items: center;
}

.seller-breakdown-check input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--electric);
}

.seller-breakdown-available {
  align-self: center;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 900;
  white-space: nowrap;
}

.seller-cog-button {
  width: 34px;
  padding: 0 !important;
  font-size: 1.05rem !important;
}

.seller-profit-toolbox {
  display: grid;
  grid-template-columns: repeat(4,minmax(120px,1fr)) auto;
  grid-column: 1 / -1;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(248,255,70,.32);
  border-radius: 7px;
  background: rgba(14,15,43,.96);
}

.seller-profit-toolbox > div,
.seller-profit-toolbox label {
  display: grid;
  gap: 4px;
}

.seller-profit-toolbox span,
.seller-profit-toolbox label,
.seller-profit-toolbox small {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}

.seller-profit-toolbox strong {
  color: var(--mint);
}

.seller-profit-toolbox input {
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  color: #fff;
  background: #070a21;
}

.seller-profit-toolbox button {
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--electric);
  border-radius: 7px;
  color: #071019;
  background: var(--electric);
  font: inherit;
  font-size: .72rem;
  font-weight: 950;
  cursor: pointer;
}

.seller-profit-toolbox small {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .seller-breakdown-row {
    grid-template-columns: repeat(4,minmax(130px,1fr));
  }
  .seller-profit-toolbox {
    grid-template-columns: repeat(2,minmax(160px,1fr));
  }
}

@media (max-width: 700px) {
  .seller-breakdown-row,
  .seller-profit-toolbox {
    grid-template-columns: 1fr;
  }
  .seller-profit-toolbox small {
    grid-column: auto;
  }
}
