.seller-page { padding-block: 18px 40px; }
.seller-page [hidden] { display: none; }

.seller-back {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 8px;
  margin-bottom: 11px;
  font-weight: 700;
}

.seller-back svg { transform: rotate(180deg); width: 17px; height: 17px; }
.seller-back:hover { text-decoration: underline; text-underline-offset: 3px; }

.seller-overview {
  --seller-inset: clamp(18px, 2.25vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  background: var(--masthead);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seller-identity {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: var(--seller-inset);
  background: #eaeada;
  border-inline-end: 1px solid var(--line);
  border-start-start-radius: calc(var(--radius) - 1px);
  border-end-start-radius: calc(var(--radius) - 1px);
}

.seller-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(12px, 1.65vw, 24px);
}

.profile-initials {
  display: grid;
  place-items: center;
  width: clamp(58px, 8.6vw, 125px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #cdd4bd;
  background: #dce2ce;
  color: var(--accent);
  font: 700 clamp(25px, 3.4vw, 48px)/1 var(--display);
}

.seller-person h1 {
  margin: 0 0 4px;
  font: 700 clamp(28px, 2.55vw, 40px)/1.08 var(--display);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.seller-person p { margin: 3px 0; color: var(--muted); }
.seller-rating, .seller-people { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; }
.seller-rating { margin-top: 10px; }
.seller-rating svg { width: 18px; height: 18px; fill: currentColor; }
.seller-people { margin-top: 3px; }
.seller-text-link {
  padding: 0;
  min-height: 26px;
  color: var(--accent);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seller-text-link:hover { text-decoration-thickness: 2px; }
.seller-actions { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; }
.seller-actions button { padding-inline: 8px; }
.seller-actions #follow-seller[aria-pressed='true'] {
  color: var(--accent);
  background: var(--masthead);
  box-shadow: inset 0 0 0 1px var(--line);
}

.report-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  color: #72463c;
  background: #f8f1e8;
  border: 1px solid #cdbcb2;
  border-radius: var(--radius);
  font-weight: 700;
}

.report-profile svg { width: 17px; height: 17px; }
.report-profile:hover { background: #f0e2d7; }
.seller-details { padding: var(--seller-inset); }
.seller-details h2 { margin: 0 0 8px; font: 700 clamp(22px, 2vw, 30px)/1.15 var(--display); letter-spacing: -.024em; }
.seller-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 16px 26px; }
.seller-fact-list { margin: 0; padding: 0; list-style: none; }
.seller-fact-list li { display: flex; align-items: flex-start; gap: 10px; margin-top: 7px; }
.seller-fact-list svg { width: 18px; height: 18px; margin-top: 2px; }
.seller-verified { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(14px, 2vw, 32px); }
.seller-verified [data-icon] { color: var(--accent); }
.seller-about { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); }
.seller-about p { margin: 0; max-width: 70ch; }

.seller-tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--line); margin: 8px 0 16px; }
.seller-tabs button {
  min-height: 50px;
  padding: 8px 13px 5px;
  background: transparent;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 700;
}

.seller-tabs button[aria-selected='true'] { border-color: var(--accent); color: var(--accent); }
.seller-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 15px; }
.seller-toolbar h2 { margin: 0; font: 700 clamp(23px, 2vw, 30px)/1.15 var(--display); letter-spacing: -.025em; }
.seller-toolbar p { margin: 0; color: var(--muted); }
.seller-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.seller-filters select {
  max-width: 100%;
  min-width: min(100%, 165px);
  min-height: 42px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--search-bg);
  color: var(--ink);
}

.seller-listings { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.seller-listings .listing { padding: 8px; border-color: var(--line); background: var(--masthead); }
.seller-listings .listing-photo { aspect-ratio: 1.7; border-radius: 5px; }
.seller-listings [data-ad='oak-bedside-table'] img { object-position: center 66%; }
.seller-listings [data-ad='brass-reading-lamp'] img { object-position: center 25%; }
.seller-listings .save { top: auto; bottom: 45px; right: 12px; width: 44px; height: 44px; border-color: var(--line); }
.seller-listing-copy { display: grid; gap: 1px; padding: 8px 51px 4px 4px; }
.seller-listing-copy h3 { min-height: auto; font: 700 clamp(19px, 1.8vw, 25px)/1.2 var(--display); letter-spacing: -.02em; }
.seller-listing-copy .price { font-size: clamp(21px, 2vw, 28px); }
.profile-ad-condition { color: var(--muted); }

.profile-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.profile-review { padding: 15px 0; border-top: 1px solid var(--line); }
.profile-review h3, .profile-review p, .profile-dialog-copy { margin: 0; }
.profile-review h3 { font-size: 1rem; }
.profile-review-rating { display: block; color: var(--accent); margin-block: 3px 6px; }
.profile-dialog-copy { color: var(--muted); }

@media (max-width: 850px) {
  .seller-overview { grid-template-columns: minmax(0, 1fr); }
  .seller-identity {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    border-end-start-radius: 0;
    border-start-end-radius: calc(var(--radius) - 1px);
  }
  .seller-actions { max-width: 440px; }
  .seller-listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .seller-facts, .seller-listings, .profile-reviews { grid-template-columns: minmax(0, 1fr); }
  .seller-verified { border: 0; padding-inline: 0; }
  .seller-people { row-gap: 0; }
  .seller-filters { width: 100%; }
  .seller-filters label { flex: 1; min-width: 0; }
  .seller-filters select { width: 100%; min-width: 0; }
}
