.field-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-weight: 800;
  font-size: 14px;
}
.search select {
  max-width: 125px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 30px 0 12px;
  background: #e8f1ef;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-login { margin: 6px 0; color: var(--muted); }
.profile-login strong { color: var(--ink); }
.avatar-settings {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
}
.avatar-settings h2 { margin: 0 0 6px; }
.avatar-settings p { margin: 0; color: var(--muted); }
.avatar-actions { display: grid; gap: 10px; min-width: 310px; }
.avatar-actions form { display: flex; gap: 8px; }
.avatar-picker { position: relative; flex: 1; align-items: center; }
.avatar-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.member-card {
  padding: 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  transition: transform .15s ease, box-shadow .15s ease;
}
.member-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px #17332f12; }
.member-avatar { width: 88px; height: 88px; margin: 0 auto 15px; }
.member-card h3 { margin: 0 0 7px; }
.member-card p, .member-card small { display: block; margin: 4px 0; color: var(--muted); }
.public-profile { display: flex; gap: 26px; align-items: center; }
.public-profile h1 { margin: 5px 0; }
.public-profile .eyebrow { color: var(--green); }
.public-avatar { width: 130px; height: 130px; flex: none; font-size: 50px; }
.field-heading small { color: var(--muted); font-weight: 500; }
.image-uploader, .rich-field { min-width: 0; }
.image-picker {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 20px;
  border: 2px dashed #a9c9c2;
  border-radius: 14px;
  background: var(--pale);
  color: var(--green);
  cursor: pointer;
}
.image-picker > span { font-size: 25px; }
.image-picker input {
  position: absolute;
  width: 1px !important;
  height: 1px;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.image-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.image-preview {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 13px;
  overflow: hidden;
  background: var(--pale);
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.video-preview { aspect-ratio: 16 / 9; background: #102522; }
.video-preview video { width: 100%; height: 100%; object-fit: contain; }
.detail-videos { display: grid; gap: 14px; margin-top: 16px; }
.detail-videos video {
  display: block;
  width: 100%;
  max-height: 520px;
  border-radius: 16px;
  background: #102522;
}
.image-remove {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #b42318;
  font-size: 23px;
  line-height: 1;
  box-shadow: 0 2px 9px #0003;
  cursor: pointer;
}
.field-error { min-height: 18px; margin: 6px 0 0; color: #b42318; font-size: 13px; }
.listing-upload-progress {
  padding: 15px 16px;
  border: 1px solid #c9e3de;
  border-radius: 13px;
  background: #f4faf8;
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
}
.listing-upload-progress[hidden] { display: none; }
.brand-picker { display: grid; align-content: start; gap: 10px; min-width: 0; }
.brand-picker [hidden] { display: none; }
.brand-picker select { width: 100%; }
.brand-picker select option { padding: 6px 10px; }
.brand-picker small { color: var(--muted); }
.listing-upload-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.listing-upload-progress-copy strong { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.listing-upload-progress-track {
  height: 8px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8ebe7;
}
.listing-upload-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #087f73, #27b5a1);
  transition: width .18s ease;
}
.listing-upload-progress.is-error {
  border-color: #fecdca;
  background: #fff6f5;
  color: #b42318;
}
.listing-upload-progress.is-error .listing-upload-progress-track { background: #fee4e2; }
.listing-upload-progress.is-error .listing-upload-progress-track span { background: #d92d20; }
[data-sell-form].is-uploading .image-picker,
[data-sell-form].is-uploading .image-remove,
[data-sell-form].is-uploading [data-listing-submit] { pointer-events: none; opacity: .55; }
.rich-editor {
  margin-top: 8px;
  border: 1px solid #cbdad6;
  border-radius: 11px;
  background: white;
  overflow: hidden;
}
.rich-toolbar {
  display: flex;
  gap: 5px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
  flex-wrap: wrap;
}
.rich-toolbar button {
  min-width: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}
.rich-toolbar button:hover, .rich-toolbar button:focus { border-color: var(--green); color: var(--green); }
.rich-editor-area { min-height: 170px; padding: 13px; line-height: 1.65; outline: none; }
.rich-editor-area:empty::before { content: attr(data-placeholder); color: #94a3a0; pointer-events: none; }
.rich-editor-area:focus { box-shadow: inset 0 0 0 2px #087f7330; }
.rich-description { overflow-wrap: anywhere; }
.rich-description p { margin: .7em 0; }
.rich-description ul, .rich-description ol { padding-inline-start: 24px; }
.listings-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.listings-heading h1 { margin-bottom: 8px; }
.listings-heading .lead { margin-bottom: 0; }
.my-listings { display: grid; gap: 14px; }
.listing-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.listing-image {
  width: 130px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--pale);
}
.listing-image img { width: 100%; height: 100%; object-fit: cover; }
.listing-copy h2 { margin: 9px 0 5px; font-size: 21px; }
.listing-copy p { margin: 4px 0; color: var(--muted); }
.listing-status-line { display: flex; align-items: center; gap: 10px; }
.listing-status-line small { color: var(--muted); }
.listing-reason { padding: 8px 10px; border-radius: 8px; background: #fff1f0; color: #9f241c !important; }
.listing-actions { min-width: 138px; text-align: center; }
.listing-locked { display: block; max-width: 150px; color: var(--muted); font-size: 13px; }
.badge.status-active { background: #d1fadf; color: #067647; }
.badge.status-rejected { background: #fee4e2; color: #b42318; }
.badge.status-sold, .badge.status-archived { background: #eef2f1; color: #536662; }
.detail-gallery { min-width: 0; }
.detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.detail-thumbnails button {
  height: 82px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--pale);
  cursor: pointer;
}
.detail-thumbnails button.active { border-color: var(--green); }
.detail-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .image-previews { grid-template-columns: repeat(2, 1fr); }
  .field-heading { display: block; }
  .field-heading small { display: block; margin-top: 4px; }
  .detail-thumbnails { grid-template-columns: repeat(4, 1fr); }
  .listings-heading { display: block; }
  .listings-heading .button { margin-top: 14px; }
  .listing-card { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .listing-image { width: 88px; }
  .listing-actions { grid-column: 1 / -1; }
  .listing-actions .button { width: 100%; }
  .search select { max-width: 105px; }
  .avatar-settings { display: block; }
  .avatar-actions { min-width: 0; margin-top: 16px; }
  .avatar-actions form { display: grid; grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .member-card { padding: 16px 10px; }
  .public-profile { display: block; text-align: center; }
  .public-avatar { margin: 0 auto 18px; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
}
