:root {
  --red: #f21b1b;
  --ink: #181313;
  --soft-ink: #493f3d;
  --paper: #fffaf8;
  --white: #ffffff;
  --line: #eadfda;
  --sage: #dce8d8;
  --sage-ink: #26382b;
  --sky: #d9eef2;
  --gold: #d6a84f;
  --shadow: 0 16px 50px rgba(24, 19, 19, 0.12);
  --btn-font-size: 0.95rem;
  --btn-line-height: 1;
  --btn-radius: 8px;
  --btn-height-lg: 48px;
  --btn-height-md: 44px;
  --btn-height-sm: 36px;
  --btn-height-nav: 40px;
  --btn-pad-x-lg: 20px;
  --btn-pad-x-md: 16px;
  --btn-pad-x-sm: 11px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
.button-primary,
.button-secondary,
.inline-button,
.nav-button,
.row-actions a,
.row-actions button,
.compact-actions a,
.compact-actions button,
.segmented a,
.segmented button,
.admin-tabs a,
.admin-tabs button,
.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  line-height: var(--btn-line-height);
  font-size: var(--btn-font-size);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px 5vw;
  border-bottom: 1px solid rgba(234, 223, 218, 0.86);
  background: rgba(255, 250, 248, 0.94);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  width: 150px;
  min-width: 150px;
}

.brand-lockup img {
  width: auto;
  max-width: 150px;
  max-height: 84px;
  height: auto;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-nav a {
  min-height: var(--btn-height-nav);
  padding: 0 13px;
  border-radius: 999px;
  color: var(--soft-ink);
  font-weight: 700;
}

.primary-nav a:hover,
.nav-button:hover {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-button {
  min-height: var(--btn-height-nav);
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--soft-ink);
  font-weight: 700;
}

.content-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-pad {
  padding: 34px 0 72px;
}

.hero-shell {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, #fffaf8 0%, #fff3ef 52%, #ffffff 100%);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: auto;
  aspect-ratio: auto;
  border-radius: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 250, 248, 0.92) 0%, rgba(255, 250, 248, 0.76) 34%, rgba(255, 250, 248, 0.18) 64%, rgba(255, 250, 248, 0) 100%),
    image-set(
      url("/hero-savvy-resale.webp") type("image/webp"),
      url("/hero-savvy-resale.png") type("image/png")
    );
  background-color: var(--paper);
  background-position: left center, right center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  box-shadow: none;
}

.hero-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 64px;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  max-width: 780px;
  color: #171111;
  font-size: 3.05rem;
  line-height: 1.06;
  letter-spacing: 0;
  hyphens: none;
}

.hero-copy {
  max-width: 560px;
  margin: 16px 0 26px;
  color: var(--soft-ink);
  font-size: 1.08rem;
}

.hero-subcopy {
  max-width: 560px;
  margin: -12px 0 26px;
  color: #6f5f5a;
  font-weight: 700;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(680px, 100%);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(242, 27, 27, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(73, 63, 61, 0.12);
}

.hero-search input,
.hero-search button,
.filter-bar select,
.filter-bar button,
.form-grid input,
.form-grid select,
.form-grid textarea,
.receipt-form select,
.receipt-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-search input {
  min-width: 0;
  padding: 0 14px;
  border-color: transparent;
  color: var(--ink);
  background: transparent;
  outline: none;
}

.hero-search button,
.button-primary {
  min-height: var(--btn-height-lg);
  padding: 0 var(--btn-pad-x-lg);
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--red);
  color: var(--white);
  font-weight: 800;
}

.settings-strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.settings-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.setting-card {
  min-height: 94px;
  padding: 18px;
  background: var(--white);
}

.setting-card span,
.membership-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--soft-ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.setting-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.button-secondary,
.inline-button {
  min-height: var(--btn-height-md);
  padding: 0 var(--btn-pad-x-md);
  border: 1px solid var(--ink);
  border-radius: var(--btn-radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.browse-band {
  padding: 30px 0 48px;
  background: var(--white);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.section-heading.compact h2 {
  font-size: 1.45rem;
}

.text-link {
  color: var(--red);
  font-weight: 900;
}

.category-row {
  display: flex;
  gap: 10px;
  padding: 4px 0 18px;
  overflow-x: auto;
}

.chip {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--soft-ink);
  font-weight: 800;
}

.chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.filter-bar select {
  min-width: 0;
  width: 100%;
  padding: 0 12px;
  background: var(--white);
}

.filter-bar button {
  border: 0;
  background: var(--sage-ink);
  color: var(--white);
  font-weight: 800;
}

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

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.listing-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(24, 19, 19, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.listing-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sky);
}

.listing-image-wrap img,
.main-photo img,
.thumb-row img,
.listing-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  width: 100%;
  height: 100%;
  background: var(--sage);
}

.badge-stack {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.badge-red {
  background: var(--red);
}

.badge-ink {
  background: var(--ink);
}

.listing-card-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.listing-card h3,
.listing-row h3,
.payment-row h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.listing-card p,
.listing-card span,
.listing-row p,
.payment-row p,
.seller-panel p,
.muted {
  margin: 0;
  color: #6c625f;
  font-size: 0.92rem;
}

.listing-card strong {
  color: var(--red);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 46px 0;
}

.promo-band,
.membership-band {
  padding: 42px 0;
  background: var(--white);
}

.header-promo {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.header-promo .promo-grid {
  grid-template-columns: 1fr;
}

.promo-banner {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.header-promo .promo-banner {
  min-height: 100px;
  height: 100px;
}

.promo-banner-stack {
  position: absolute;
  inset: 0;
}

.promo-banner img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  opacity: 0.76;
}

.header-promo .promo-banner img {
  min-height: 100px;
}

.promo-banner-stack img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}

.promo-banner-stack img.is-active {
  opacity: 0.76;
}

.promo-banner span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.15;
}

.promo-banner-copy {
  position: absolute;
  left: 16px;
  right: 100px;
  bottom: 14px;
  display: grid;
  gap: 2px;
  color: var(--white);
}

.promo-banner-copy span,
.promo-banner-copy small {
  position: static;
  right: auto;
  left: auto;
  bottom: auto;
  margin: 0;
  color: inherit;
  line-height: 1.15;
}

.promo-banner-copy small {
  font-size: 0.76rem;
  font-weight: 700;
}

.promo-banner-sponsor {
  opacity: 0.88;
}

.promo-banner-cta {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
}

.promo-banner-rotating {
  isolation: isolate;
}

.membership-band {
  border-top: 1px solid var(--line);
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.membership-card {
  min-height: 176px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.membership-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 1.55rem;
  line-height: 1.1;
}

.membership-card p {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 800;
}

.membership-card small {
  color: var(--soft-ink);
  line-height: 1.35;
}

.empty-state,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(24, 19, 19, 0.06);
}

.empty-state {
  padding: 34px;
  text-align: center;
}

.empty-state h1,
.empty-state h3,
.panel h1,
.panel h2 {
  margin: 0 0 10px;
}

.how-page {
  color: #1c1c1e;
}

.how-heading {
  align-items: flex-start;
}

.how-heading .muted {
  max-width: 620px;
  margin: 10px 0 0;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.how-card {
  padding: 24px;
}

.how-card-buying {
  border-color: rgba(242, 27, 27, 0.22);
}

.how-card-selling {
  border-color: rgba(28, 28, 30, 0.18);
}

.how-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.how-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fcebeb;
  color: #1c1c1e;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.how-card-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how-step;
}

.how-card-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: how-step;
  min-width: 0;
}

.how-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.how-step-number::before {
  content: counter(how-step);
}

.how-card-steps-buying .how-step-number {
  background: #f21b1b;
}

.how-card-steps-selling .how-step-number {
  background: #1c1c1e;
}

.how-card-steps strong {
  display: block;
  color: #1c1c1e;
  font-size: 14px;
  line-height: 1.3;
}

.how-card-steps p {
  margin: 3px 0 0;
  color: #6c625f;
  font-size: 13px;
  line-height: 1.45;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 34px;
}

.detail-gallery {
  min-width: 0;
}

.main-photo {
  position: sticky;
  top: 98px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sky);
}

.detail-badge {
  position: absolute;
  top: 14px;
  left: 14px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.thumb-row img {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.detail-info {
  min-width: 0;
}

.detail-title {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-title h1 {
  margin: 0 0 12px;
  font-size: 2.45rem;
  line-height: 1.05;
}

.detail-title strong {
  color: var(--red);
  font-size: 1.35rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.spec-grid span {
  min-height: 66px;
  padding: 10px;
  border-radius: 8px;
  background: var(--white);
  color: #6c625f;
  border: 1px solid var(--line);
}

.spec-grid b {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

.detail-description {
  color: var(--soft-ink);
}

.seller-panel {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sage);
}

.seller-panel img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.seller-panel h2 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.contact-panel {
  margin-top: 20px;
}

.contact-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.contact-heading h2 {
  margin-bottom: 4px;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.related-block {
  grid-column: 1 / -1;
  padding-top: 20px;
}

.panel {
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--soft-ink);
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.receipt-form select,
.receipt-form input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
}

.form-grid textarea {
  resize: vertical;
}

.span-all {
  grid-column: 1 / -1;
}

.form-status {
  margin: 10px 0 0;
  color: var(--sage-ink);
  font-weight: 800;
}

.form-status-error {
  padding: 12px 14px;
  border: 1px solid rgba(242, 27, 27, 0.24);
  border-radius: 8px;
  background: #fff5f5;
  color: var(--red);
}

.auth-panel {
  width: min(620px, 100%);
  margin: 0 auto;
}

.auth-actions,
.security-stack {
  display: grid;
  gap: 10px;
}

.auth-actions {
  align-items: center;
}

.auth-wide-action {
  width: fit-content;
  margin-top: 14px;
}

.security-stack label {
  display: grid;
  gap: 6px;
  color: var(--soft-ink);
  font-weight: 800;
}

.security-stack input {
  width: 100%;
  min-height: 48px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--paper);
}

.segmented button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--btn-radius);
  background: transparent;
  font-weight: 900;
}

.segmented a {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--btn-radius);
  background: transparent;
  font-weight: 900;
}

.segmented button.active {
  background: var(--ink);
  color: var(--white);
}

.segmented a.active {
  background: var(--ink);
  color: var(--white);
}

.seller-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.listing-create-layout {
  align-items: start;
}

.seller-aside {
  align-self: start;
}

.create-preview-stack {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 98px;
}

.form-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-section-title h2 {
  margin: 0;
}

.form-section-title span {
  color: #6c625f;
  font-weight: 900;
}

.field-error {
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 800;
}

.form-field {
  position: relative;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--line);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-field.field-invalid input,
.form-field.field-invalid select,
.form-field.field-invalid textarea,
.upload-dropzone.field-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(242, 27, 27, 0.1);
}

.form-field.field-valid input,
.form-field.field-valid select,
.form-field.field-valid textarea,
.upload-dropzone.field-valid {
  border-color: #1f8f5f;
  box-shadow: 0 0 0 3px rgba(31, 143, 95, 0.1);
}

.form-field.field-valid::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 34px;
  display: grid;
  place-items: center;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #1f8f5f;
}

.form-field.field-valid select,
.form-field.field-valid input {
  padding-right: 38px;
}

.form-field.field-valid textarea + .character-counter::after,
.upload-dropzone.field-valid::after {
  display: none;
}

.character-counter {
  display: grid;
  gap: 6px;
  color: #6c625f;
  font-size: 0.82rem;
  font-weight: 800;
}

.character-counter > span {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfdb;
}

.character-counter > span > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 160ms ease, background-color 160ms ease;
}

.character-counter.is-complete {
  color: #1f8f5f;
}

.character-counter.is-complete > span > span {
  background: #1f8f5f;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 8px;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: var(--ink);
  font-weight: 700;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}

.inline-note {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--soft-ink);
}

.compact-form {
  gap: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.button-row form {
  margin: 0;
}

.security-note {
  margin-bottom: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 8px 0;
  background: var(--paper);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #6c625f;
}

.footer-primary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #6c625f;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-contact a {
  color: inherit;
  border: 0;
}

.footer-contact a:hover {
  color: #ee2d24;
}

.footer-social-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.footer-social-links a {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #ee2d24;
  background: transparent;
}

.footer-social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
}

.footer-credit {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: #6c625f;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.2;
}

.footer-credit span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 16px;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
}

.footer-credit img {
  width: auto;
  height: 40px;
  max-width: 100px;
  object-fit: contain;
}

.footer-credit small {
  color: #6c625f;
  font-size: 0.68rem;
  font-weight: 650;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.upload-dropzone {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed #cdbdb6;
  border-radius: 8px;
  background: var(--paper);
}

.upload-dropzone > span,
.file-hint {
  color: #6c625f;
  font-size: 0.9rem;
  font-weight: 700;
}

.file-control {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.file-control label,
.file-control span {
  min-width: 0;
}

.file-control input[type="file"] {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.file-control input[type="file"]::file-selector-button {
  height: 34px;
  margin: 0;
  margin-right: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3ebe7;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.file-control input[type="file"]::-webkit-file-upload-button {
  height: 34px;
  margin: 0;
  margin-right: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3ebe7;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.file-control input[type="file"]:focus-visible {
  outline: 2px solid rgba(202, 132, 90, 0.26);
  outline-offset: 2px;
}

.file-control input[type="file"]:hover::file-selector-button,
.file-control input[type="file"]:hover::-webkit-file-upload-button {
  background: #ece1dc;
}

.file-control input[type="file"]:disabled::file-selector-button,
.file-control input[type="file"]:disabled::-webkit-file-upload-button {
  cursor: not-allowed;
  opacity: 0.7;
}

.file-status {
  min-height: 1.2em;
  color: #6c625f;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.file-control-compact {
  gap: 6px;
}

.file-control-compact input[type="file"] {
  min-height: 44px;
  padding: 5px;
}

.file-control-compact input[type="file"]::file-selector-button,
.file-control-compact input[type="file"]::-webkit-file-upload-button {
  height: 32px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.file-control-compact .file-status {
  font-size: 0.84rem;
}

.image-manager {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.image-chip {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.image-chip img,
.preview-photo {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sky);
}

.image-chip img,
.preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-photo img.preview-photo-logo {
  object-fit: contain;
  padding: 20px;
  background: var(--white);
}

.image-chip button {
  min-height: 32px;
  border: 1px solid var(--ink);
  border-radius: var(--btn-radius);
  background: var(--white);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.listing-preview-card {
  padding: 12px;
  overflow: hidden;
}

.listing-preview-card h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.18;
}

.listing-preview-card strong {
  color: var(--red);
}

.seller-aside-panel {
  align-self: start;
}

.seller-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.metric-tile {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.metric-tile span {
  color: #6c625f;
  font-weight: 800;
}

.metric-tile strong {
  color: var(--red);
  font-size: 2.1rem;
  line-height: 1;
}

.table-list {
  display: grid;
  gap: 12px;
}

.listing-row,
.payment-row,
.inquiry-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.listing-row img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  background: var(--sky);
}

.inquiry-row {
  align-items: start;
}

.inquiry-row img,
.inquiry-row .image-fallback {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--sky);
}

.inquiry-row h3 {
  margin: 0;
  font-size: 1rem;
}

.inquiry-row p {
  margin: 2px 0 0;
  color: #6c625f;
  font-size: 0.92rem;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inquiry-actions {
  align-items: stretch;
  justify-content: flex-end;
  min-width: 170px;
}

.inquiry-actions form,
.inquiry-actions button,
.inquiry-actions .status-pill {
  width: 100%;
}

.inquiry-actions button,
.inquiry-actions .status-pill {
  justify-content: center;
  text-align: center;
}

.row-actions form,
.compact-actions form,
.stack-actions form,
.primary-nav form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.row-actions a,
.row-actions button {
  min-height: var(--btn-height-sm);
  padding: 0 var(--btn-pad-x-sm);
  border: 1px solid var(--ink);
  border-radius: var(--btn-radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  flex: 0 0 auto;
}

.compact-actions {
  justify-content: flex-start;
  margin-top: 8px;
  align-items: center;
}

.compact-actions a,
.compact-actions button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.86rem;
}

.receipt-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.receipt-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--soft-ink);
  font-weight: 800;
}

.receipt-field select,
.receipt-field input:not([type="file"]) {
  width: 100%;
  min-width: 0;
}

.receipt-form .file-control {
  align-self: stretch;
  min-width: 0;
}

.receipt-form .file-control,
.settings-grid .file-control {
  width: 100%;
}

.receipt-form .file-status {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.receipt-action {
  display: grid;
  gap: 7px;
  align-self: end;
}

.receipt-action > span {
  color: var(--soft-ink);
  font-weight: 800;
}

.receipt-action .button-primary {
  white-space: nowrap;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.settings-grid label {
  display: grid;
  gap: 7px;
  color: var(--soft-ink);
  font-weight: 800;
}

.secret-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.secret-field input {
  min-width: 0;
}

.icon-button {
  width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.phone-verification-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.phone-verification-card p {
  grid-column: 1 / -1;
  margin: 0;
}

.settings-grid input,
.settings-grid select,
.settings-grid textarea,
.section-heading select {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.settings-grid .settings-span-2 {
  grid-column: span 2;
}

.settings-grid .setting-toggle {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.settings-grid .setting-toggle input {
  width: 22px;
  min-height: 22px;
}

.upload-preview {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.upload-preview img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.admin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.password-form {
  align-items: start;
}

.password-form label {
  gap: 5px;
}

.password-form input {
  min-height: 42px;
  padding: 8px 10px;
}

.password-form .button-primary {
  min-height: var(--btn-height-md);
  padding: 0 var(--btn-pad-x-md);
  justify-self: start;
}

.banner-admin-list {
  gap: 14px;
}

.banner-admin-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.banner-admin-card-active {
  background: var(--white);
}

.banner-admin-preview {
  position: relative;
  min-height: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.banner-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.banner-admin-overlay {
  position: absolute;
  inset: auto 14px 12px 14px;
  display: grid;
  gap: 2px;
  color: var(--white);
}

.banner-admin-overlay strong,
.banner-admin-overlay span,
.banner-admin-overlay em {
  display: block;
  font-style: normal;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.banner-admin-overlay strong {
  font-size: 1rem;
}

.banner-admin-overlay span,
.banner-admin-overlay em {
  font-size: 0.8rem;
}

.banner-admin-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-hero h1 {
  margin: 0 0 6px;
}

.admin-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-tabs button {
  gap: 8px;
  min-height: 42px;
  min-width: max-content;
  padding: 0 14px;
  border: 0;
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--soft-ink);
  font-weight: 900;
  cursor: pointer;
}

.admin-tabs a {
  gap: 8px;
  min-height: 42px;
  min-width: max-content;
  padding: 0 14px;
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--soft-ink);
  font-weight: 900;
}

.button-primary:hover,
.button-secondary:hover,
.inline-button:hover,
.row-actions a:hover,
.row-actions button:hover,
.compact-actions a:hover,
.compact-actions button:hover,
.segmented a:hover,
.segmented button:hover,
.admin-tabs a:hover,
.admin-tabs button:hover {
  text-decoration: none;
}

.admin-tabs button.active {
  background: var(--ink);
  color: var(--white);
}

.admin-tabs a.active {
  background: var(--ink);
  color: var(--white);
}

.admin-tabs strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-ink);
  font-size: 0.82rem;
}

.admin-tabs button.active strong {
  background: var(--white);
  color: var(--ink);
}

.admin-tabs a.active strong {
  background: var(--white);
  color: var(--ink);
}

.admin-workspace {
  margin-bottom: 22px;
}

.how-band {
  padding: 48px 0 12px;
  background: var(--white);
}

.how-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.how-tabs button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--soft-ink);
  font-weight: 900;
}

.how-tabs button.active {
  background: var(--ink);
  color: var(--white);
}

.how-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.how-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px 12px;
  align-items: center;
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.how-step .step-icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--sky);
  font-size: 1.25rem;
}

.how-step strong {
  color: var(--red);
  line-height: 1;
}

.how-step p {
  margin: 0;
  color: var(--soft-ink);
  font-weight: 800;
}

.how-band {
  padding: 56px 0 18px;
  background: var(--white);
}

.how-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: start;
}

.how-intro {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.how-intro .eyebrow,
.how-intro p {
  color: rgba(255, 255, 255, 0.78);
}

.how-intro h2 {
  max-width: 10ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 0.92;
}

.how-intro > p {
  margin: 0;
  font-weight: 750;
}

.how-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.how-tabs button,
.how-tab-label {
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 900;
}

.how-tabs button.active,
#how-buy-new:checked ~ .how-tabs label[for="how-buy-new"],
#how-sell-new:checked ~ .how-tabs label[for="how-sell-new"] {
  background: var(--white);
  color: var(--ink);
}

.tab-mark {
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  border: 2px solid currentColor;
}

.tab-mark-buy {
  border-radius: 7px 7px 9px 9px;
}

.tab-mark-buy::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: -7px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.tab-mark-sell {
  border-radius: 999px;
}

.tab-mark-sell::before {
  content: "";
  width: 8px;
  height: 2px;
  position: absolute;
  left: 5px;
  top: 8px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.how-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
}

.how-panel[hidden] {
  display: none;
}

.how-panel-copy {
  display: grid;
  align-content: space-between;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sage);
  color: var(--sage-ink);
}

.how-panel-copy span {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.how-panel-copy h3 {
  margin: 34px 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
}

.how-panel-copy p {
  margin: 0;
  font-weight: 800;
}

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

.how-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px 12px;
  align-items: center;
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.step-icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.step-icon::before,
.step-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.step-icon-search::before { width: 16px; height: 16px; border: 3px solid currentColor; border-radius: 999px; left: 11px; top: 10px; }
.step-icon-search::after { width: 12px; height: 3px; background: currentColor; transform: rotate(45deg); right: 9px; bottom: 12px; }
.step-icon-photo::before,
.step-icon-camera::before { width: 24px; height: 18px; border: 3px solid currentColor; border-radius: 5px; }
.step-icon-photo::after,
.step-icon-camera::after { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.step-icon-account::before { width: 11px; height: 11px; top: 9px; border-radius: 999px; background: currentColor; }
.step-icon-account::after { width: 22px; height: 12px; bottom: 9px; border-radius: 999px 999px 7px 7px; background: currentColor; }
.step-icon-chat::before { width: 24px; height: 18px; border: 3px solid currentColor; border-radius: 8px; }
.step-icon-chat::after { width: 9px; height: 9px; left: 14px; bottom: 10px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-25deg); }
.step-icon-deal::before,
.step-icon-price::before { width: 24px; height: 16px; border: 3px solid currentColor; border-radius: 5px; }
.step-icon-deal::after,
.step-icon-price::after { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.step-icon-receive::before { width: 24px; height: 20px; border: 3px solid currentColor; border-radius: 5px; }
.step-icon-receive::after { width: 3px; height: 24px; background: currentColor; box-shadow: 10px 0 0 currentColor; transform: rotate(90deg); }
.step-icon-publish::before { width: 4px; height: 24px; background: currentColor; }
.step-icon-publish::after { width: 15px; height: 15px; border-left: 4px solid currentColor; border-top: 4px solid currentColor; transform: rotate(45deg); top: 9px; }
.step-icon-review::before { width: 24px; height: 24px; border: 3px solid currentColor; border-radius: 999px; }
.step-icon-review::after { width: 16px; height: 8px; border-left: 4px solid currentColor; border-bottom: 4px solid currentColor; transform: rotate(-45deg); top: 15px; }
.step-icon-feature::before { width: 24px; height: 24px; background: currentColor; clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 55%, 79% 90%, 50% 68%, 21% 90%, 32% 55%, 2% 34%, 39% 34%); }

.how-step strong {
  color: var(--red);
  line-height: 1;
}

.how-step p {
  margin: 0;
  color: var(--soft-ink);
  font-weight: 850;
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-toolbar h2 {
  margin: 0 0 4px;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, auto) minmax(140px, auto);
  gap: 10px;
  min-width: min(100%, 620px);
}

.admin-filter-grid input,
.admin-filter-grid select,
.review-card textarea,
.payment-review-card textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.inline-setting-toggle {
  display: inline-grid;
  grid-template-columns: minmax(180px, auto) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--soft-ink);
  font-size: 0.88rem;
  font-weight: 850;
}

.inline-setting-toggle input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--brand-red);
}

.inline-setting-toggle button {
  min-height: 34px;
  padding: 0 12px;
}

.admin-filter-bar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.admin-filter-bar label {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--soft-ink);
  font-weight: 800;
}

.admin-filter-bar select {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.review-card textarea,
.payment-review-card textarea {
  resize: vertical;
}

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

.review-card {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.review-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sky);
  color: var(--soft-ink);
  font-weight: 900;
  text-decoration: none;
}

.review-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.review-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.review-title-line h3 {
  margin: 0;
}

.review-title-line p,
.review-description {
  margin: 4px 0 0;
  color: #6c625f;
}

.review-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.review-meta,
.receipt-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-meta span,
.receipt-strip span,
.receipt-strip a {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--white);
  color: var(--soft-ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.receipt-strip a {
  color: var(--red);
  text-decoration: none;
}

.payment-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payment-review-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.payment-review-card h3,
.payment-review-card p {
  margin: 0;
}

.payment-review-card > strong {
  color: var(--red);
  font-size: 1.35rem;
}

.audit-list,
.admin-stack {
  display: grid;
  gap: 12px;
}

.audit-row {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.audit-row p {
  margin: 4px 0 0;
  color: #6c625f;
}

.audit-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--red);
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: #6c625f;
  background: var(--paper);
}

.status-active,
.status-paid {
  background: var(--sage);
  color: var(--sage-ink);
}

.status-pending {
  background: var(--sky);
  color: var(--ink);
}

.status-rejected,
.status-suspended {
  background: #ffe6e1;
  color: var(--red);
}

.status-hidden,
.status-deleted {
  background: #eee9e5;
  color: #5c5551;
}

.payment-row {
  grid-template-columns: 1fr auto;
}

.payment-row a {
  color: var(--red);
  font-weight: 900;
}

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

.user-grid.admin-user-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.user-tile {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.user-tile span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #6c625f;
  font-size: 0.9rem;
}

.floating-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100% - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

  .how-card {
    padding: 20px;
  }

  .how-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .how-card-header .button-primary,
  .how-card-header .button-secondary {
    width: 100%;
  }

  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-bar,
  .dashboard-grid,
  .admin-columns,
  .payment-review-grid,
  .seller-grid,
  .detail-layout,
  .split-section,
  .how-shell,
  .how-panel {
    grid-template-columns: 1fr;
  }

  .how-intro {
    position: static;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-toolbar,
  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filter-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .user-grid.admin-user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-photo {
    position: relative;
    top: 0;
  }

  .seller-aside {
    order: -1;
  }

  .create-preview-stack {
    position: static;
    top: auto;
    order: 0;
  }

  .listing-form {
    order: 1;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    min-height: 102px;
    padding: 10px 16px;
    flex-direction: column;
    gap: 4px;
  }

  .primary-nav {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  .primary-nav a {
    padding: 8px 8px;
    font-size: 0.9rem;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .footer-primary {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-contact {
    flex-wrap: wrap;
    white-space: normal;
  }

  .footer-social-links {
    gap: 8px;
  }

  .footer-credit {
    justify-items: start;
    text-align: left;
  }

  .how-tabs,
  .phone-verification-card {
    width: 100%;
  }

  .how-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .phone-verification-card {
    grid-template-columns: 1fr;
  }

  .content-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero-shell {
    display: block;
    min-height: auto;
    background: var(--paper);
  }

  .hero-photo {
    position: relative;
    z-index: 0;
    height: 276px;
    background-image:
      image-set(
        url("/hero-savvy-resale.webp") type("image/webp"),
        url("/hero-savvy-resale.png") type("image/png")
      );
    background-position: 72% center;
    background-size: cover;
  }

  .hero-content {
    padding: 24px 0 32px;
  }

  .hero-content h1 {
    max-width: min(100%, 342px);
    font-size: 2.18rem;
    line-height: 1.08;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .hero-copy,
  .hero-subcopy {
    max-width: min(100%, 342px);
  }

  .hero-search {
    max-width: 100%;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-heading h1,
  .section-heading h2,
  .detail-title h1 {
    font-size: 1.75rem;
  }

  .listing-grid,
  .mini-grid,
  .user-grid,
  .image-manager,
  .form-grid,
  .spec-grid,
  .settings-grid,
  .settings-strip-inner,
  .promo-grid,
  .membership-grid,
  .receipt-form {
    grid-template-columns: 1fr;
  }

  .receipt-action .button-primary {
    width: 100%;
  }

  .listing-row,
  .payment-row,
  .inquiry-row,
  .review-card {
    grid-template-columns: 64px 1fr;
  }

  .listing-row img,
  .inquiry-row img,
  .inquiry-row .image-fallback {
    width: 64px;
    height: 64px;
  }

  .review-image {
    width: 64px;
    height: 64px;
    aspect-ratio: auto;
  }

  .review-body {
    grid-column: 1 / -1;
  }

  .review-title-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-metrics,
  .user-grid.admin-user-grid {
    grid-template-columns: 1fr;
  }

  .row-actions,
  .inquiry-row .row-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .inquiry-actions {
    min-width: 0;
  }

  .row-actions button,
  .row-actions a {
    flex: 1 1 120px;
  }

  .banner-admin-meta {
    flex-direction: column;
  }

  .settings-grid .settings-span-2 {
    grid-column: auto;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-actions .button-primary,
  .contact-actions .button-secondary {
    width: 100%;
  }

  .submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-row .button-primary {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .listing-card-body {
    padding: 10px;
  }

  .listing-card h3 {
    font-size: 0.92rem;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: 2.18rem;
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .hero-copy,
  .hero-subcopy,
  .hero-search {
    max-width: 100%;
  }

  .hero-shell {
    display: block;
    min-height: auto;
    background: var(--paper);
  }

  .hero-photo {
    position: relative;
    z-index: 0;
    height: 276px;
    background-image:
      image-set(
        url("/hero-savvy-resale.webp") type("image/webp"),
        url("/hero-savvy-resale.png") type("image/png")
      );
    background-position: 72% center;
    background-size: cover;
  }

  .hero-content {
    padding: 24px 0 32px;
  }
}

.homepage-banner {
  position: relative;
  overflow: hidden;
  min-height: 100px;
  margin: 18px 0 24px;
  border-radius: 8px;
  background: var(--ink);
}

.homepage-banner-slide {
  position: relative;
  min-height: 100px;
}

.homepage-banner-slide img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  opacity: 0.92;
}

.homepage-banner-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 18px;
  color: var(--white);
  background: linear-gradient(90deg, rgba(24, 19, 19, 0.72), rgba(24, 19, 19, 0.18));
}

.homepage-banner-copy h2,
.homepage-banner-copy p {
  margin: 0;
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}

.error-panel {
  border-color: rgba(242, 27, 27, 0.24);
  color: #8f1818;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.data-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--soft-ink);
}

.inline-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

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

.metric-grid .panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-grid strong {
  font-size: 2rem;
}

.stack-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sponsor-banner-shell {
  margin-top: -24px;
}

@media (max-width: 860px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .inline-form {
    align-items: flex-start;
    flex-direction: column;
  }
}
