:root {
  --ink: #2b2621;
  --paper: #f3ead9;
  --paper-light: #faf5ec;
  --stamp: #cc4619;
  --graphite: #6b5d4a;
  --line: rgba(43,38,33,0.14);
  /* Fixed dark neutral for solid dark buttons/chips - unlike --ink, this
     does NOT flip in dark mode, since --ink becomes a light text color
     there and these need to stay dark backgrounds with white text. */
  --ink-solid: #2b2621;
  --error-bg: rgba(181,80,47,0.1);
}
/* Light is always the default - dark only turns on when the account's
   dark-mode toggle explicitly stamps data-theme="dark" on <html>. We
   deliberately do NOT follow prefers-color-scheme here. */
:root[data-theme="dark"] {
  --ink: #efe6da;
  --paper: #1c1815;
  --paper-light: #262019;
  --stamp: #ea7d3e;
  --graphite: #a89686;
  --line: rgba(239,230,218,0.14);
  --error-bg: rgba(217,129,79,0.14);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
header {
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--stamp);
  text-decoration: none;
}
nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
nav a.cta {
  background: var(--stamp);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logout-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.logout-link:hover { border-color: var(--ink); }
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: white;
  background: var(--stamp);
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.cart-link:hover { opacity: 0.9; }
.cart-badge {
  background: white;
  color: var(--stamp);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
}
@media (max-width: 768px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-right { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  #site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding-top: 10px;
    order: 3;
  }
  #site-nav.is-open { display: flex; }
  #site-nav a { margin-left: 0; padding: 8px 4px; width: 100%; }
}
.layout {
  display: flex;
  justify-content: center;
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
main {
  flex: 1 1 960px;
  max-width: 960px;
  margin: 0;
  padding: 32px 0 60px;
}
.promo-rail {
  display: none;
  flex: 0 0 220px;
  flex-direction: column;
  gap: 18px;
  padding-top: 32px;
}
@media (min-width: 1300px) {
  .promo-rail { display: flex; }
}
footer {
  text-align: center;
  padding: 24px;
  color: var(--graphite);
  font-size: 13px;
}
.footer-social { display: flex; justify-content: center; gap: 16px; margin-top: 4px; }
h1 { font-size: 32px; margin-bottom: 8px; }
h2 { font-size: 22px; margin-top: 36px; }
.hero { text-align: center; padding: 30px 0 40px; }
.hero p { color: var(--graphite); max-width: 50ch; margin: 10px auto 24px; }
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
}
.search-form input, .search-form select {
  flex: 1;
  min-width: 100px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}
.price-range {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}
.price-range input {
  flex: 1;
  min-width: 0;
}
.price-range span { color: var(--graphite); font-size: 13px; }
.search-form button {
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: var(--ink-solid);
  color: white;
  font-weight: 600;
  cursor: pointer;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.card {
  display: block;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
}
.card:hover { border-color: var(--ink); }
.card h3 { margin: 8px 0 4px; font-size: 17px; }
.category-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stamp);
  font-weight: 700;
}
.tags-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.tag-pill {
  font-size: 12px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  color: var(--graphite);
}
.price, .price-big { font-weight: 700; color: var(--ink); }
.price-big { font-size: 24px; margin: 8px 0 20px; }
.muted { color: var(--graphite); font-size: 14px; }
.error {
  background: var(--error-bg);
  color: var(--stamp);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.form { display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
.form.narrow { max-width: 380px; }
.form label { font-weight: 600; font-size: 13px; margin-top: 10px; }
.form input, .form select, .form textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

/* --- modern dropdown styling for every <select> site-wide - this is the
   closed box, all plain CSS can restyle; the open options list stays
   native to the browser/OS regardless. --- */
.search-form select,
.form select,
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--paper-light);
  color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b5d4a' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px;
  padding-right: 36px;
  cursor: pointer;
  transition: border-color 0.12s;
}
.search-form select:hover, .form select:hover, select:hover { border-color: var(--ink); }
.search-form select:focus, .form select:focus, select:focus {
  outline: none;
  border-color: var(--stamp);
}
:root[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a89686' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 60px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}
.form .cta {
  margin-top: 16px;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: var(--stamp);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.hint { font-size: 12px; color: var(--graphite); margin: 2px 0 0; }
.radio-group { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.radio-option { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: normal; }
.radio-option input { width: auto; }
.fee-breakdown { font-size: 12.5px; }
.delivery-time-note { font-size: 13.5px; color: var(--graphite); margin: 4px 0; }
.non-refundable-note {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--stamp);
  background: var(--error-bg);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 4px 0;
}
.back-link { color: var(--graphite); text-decoration: none; font-size: 14px; }
.seller-box {
  margin-top: 30px;
  padding: 18px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.seller-tools { display: flex; flex-direction: column; gap: 10px; }
.seller-tools h3 { margin: 0 0 4px; }

.promoted-badge {
  display: inline-block;
  background: var(--stamp);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.promoted-section {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px 22px;
  margin-bottom: 32px;
}
.promoted-section h2 { margin-top: 0; }

.stars { color: var(--stamp); letter-spacing: 1px; }
.rating-line { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }

.reviews { margin-top: 36px; }
.review {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.review-name { font-weight: 600; margin-left: 8px; font-size: 13px; }
.review-comment { margin: 6px 0 0; font-size: 14px; }
.review-form { margin-top: 20px; }

.inline-form { display: inline-block; }
.secondary-btn {
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.secondary-btn:hover { border-color: var(--ink); }

.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stamp);
  color: white;
  font-weight: 700;
}
.card-seller {
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
.profile-header h1 { margin: 0; }
.avatar-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 28px;
  font-size: 13px;
}
.avatar-form label { font-weight: 600; }
.seller-box-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* --- general CTA, usable outside forms/nav (e.g. plain links styled as buttons) --- */
.cta {
  display: inline-block;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--stamp);
  color: white;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}
.cta:hover { opacity: 0.92; }
.cta-alt { background: var(--ink-solid); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

/* --- product photos, with variant sizing for each place they show up --- */
.product-image {
  display: block;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 10px;
}
.product-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper-light), var(--line));
  color: var(--graphite);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.product-image-card { height: 140px; }
.product-image-hero { height: 320px; margin-bottom: 16px; }
.product-image-rail { height: 90px; margin-bottom: 8px; }
.product-image-ticker {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  flex-shrink: 0;
  border-radius: 6px;
}
/* Too small to fit a category name legibly - just show the tinted swatch. */
.product-image-ticker.product-image-fallback span { display: none; }
.product-image-order {
  width: 64px;
  height: 64px;
  margin-bottom: 0;
  flex-shrink: 0;
  border-radius: 8px;
}

/* --- the top auto-scrolling product ticker --- */
.ticker {
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 10px 0;
}
.ticker-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: brindl-ticker-scroll 40s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
@keyframes brindl-ticker-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
/* --- left/right promo rails, shown alongside main content on wide screens --- */
.rail-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
}
.rail-card:hover { border-color: var(--ink); }
.rail-title { font-size: 12.5px; font-weight: 600; margin-bottom: 2px; }
.rail-price { font-size: 12.5px; font-weight: 700; color: var(--stamp); }

/* --- profile page: cover photo, customize box, Brindl Pro card --- */
.cover-photo {
  height: 160px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: -40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}
.cover-photo-text {
  color: white;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 0 14px rgba(0,0,0,0.35);
}
.profile-header {
  position: relative;
  z-index: 1;
}
.profile-header .avatar,
.profile-header .avatar-fallback {
  border: 3px solid var(--paper);
}
.customize-box, .pro-box { display: flex; flex-direction: column; gap: 14px; }
.customize-box h3, .pro-box h3 { margin: 0; }
.bio-form textarea { min-width: 280px; }
.pro-cta { align-self: flex-start; }

.hero-section-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

/* --- split hero (homepage): copy on the left, a photo collage on the
   right, matching the site's marketing look. Falls back to stacked and
   centered - same as the plain .hero - below 860px. --- */
.hero-split {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}
.hero-copy { flex: 1 1 380px; }
.hero-copy p { margin: 10px 0 24px; }
.hero-copy .hero-section-links { justify-content: flex-start; }
.hero-copy .search-form { margin: 0; }
.hero-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}
.hero-eyebrow-accent { color: var(--stamp); }
.hero-collage {
  flex: 0 0 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-collage-item:nth-child(1) { margin-top: 24px; }
.hero-collage-item:nth-child(4) { margin-top: -24px; }
.product-image-collage {
  height: 140px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(43,38,33,0.16);
  margin-bottom: 0;
}
@media (max-width: 860px) {
  .hero-split { flex-direction: column; text-align: center; }
  .hero-copy .hero-section-links { justify-content: center; }
  .hero-eyebrow { text-align: center; }
  .hero-collage { flex-basis: auto; width: 100%; max-width: 380px; }
  .hero-collage-item:nth-child(1), .hero-collage-item:nth-child(4) { margin-top: 0; }
}

/* --- /pro pricing page --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.pricing-card {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-card-featured {
  border-color: var(--stamp);
  box-shadow: 0 0 0 1px var(--stamp);
}
.pricing-price { font-size: 26px; font-weight: 700; margin: 0; }
.pricing-price .muted { font-size: 13px; font-weight: 500; }
.pro-note { margin-top: 24px; }

/* --- flash messages (login errors, review-gate messages, etc.) --- */
.flash-wrap {
  max-width: 960px;
  margin: 16px auto 0;
  padding: 0 24px;
}
.flash {
  background: var(--paper-light);
  border: 1px solid var(--stamp);
  color: var(--stamp);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
}

/* --- messaging: "message seller" link, inbox list, conversation thread --- */
.message-link {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
}
.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}
.conversation-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.conversation-row:hover { background: var(--paper-light); }
.conversation-row-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.conversation-row-name { font-weight: 700; font-size: 14px; }
.conversation-row-listing { font-size: 12px; }
.conversation-row-preview {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60ch;
}
.conversation-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.conversation-header h1 { font-size: 22px; margin: 0; }
.thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}
.bubble {
  max-width: 60ch;
  padding: 10px 14px;
  border-radius: 14px;
}
.bubble-body { margin: 0; font-size: 14px; }
.bubble-status {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  text-align: right;
  color: var(--graphite);
}
.bubble-theirs {
  background: var(--paper-light);
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble-mine {
  background: var(--stamp);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bubble-mine .bubble-status { color: rgba(255,255,255,0.75); }
.message-form { margin-top: 8px; }

/* --- seller tier badges --- */
.tier-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}
.tier-new-seller { background: var(--line); color: var(--graphite); }
.tier-rising-talent { background: #e8dcc4; color: #7a5b1e; }
.tier-top-rated { background: var(--stamp); color: white; }

/* --- favorites --- */
.price-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 20px;
}
.price-line .price-big { margin: 0; }
.favorite-btn.is-favorited { background: var(--stamp); color: white; border-color: var(--stamp); }

/* --- sort/search selects reuse .search-form select styling already in place --- */

/* --- support search autocomplete --- */
.search-input-wrap { flex: 1; position: relative; }
.search-input-wrap input { width: 100%; }
.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  z-index: 20;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.search-suggestions.is-open { display: block; }
.search-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--ink);
}
.search-suggestion:hover { background: var(--paper); }
.contact-rep-box { margin-top: 30px; }

/* --- login page --- */
.login-signup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

/* --- home hero secondary link --- */
.hero-post-link { margin-top: 14px; font-size: 14px; }
.hero-post-link a { color: var(--graphite); text-decoration: underline; }

/* --- report a listing --- */
.report-details { margin-top: 30px; }
.report-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--graphite);
}
.report-details .form { margin-top: 14px; }

/* --- notifications --- */
.nav-badge {
  display: inline-block;
  background: var(--stamp);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 2px;
}
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}
.notification-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}
.notification-row:hover { background: var(--paper-light); }
.notification-row.is-unread { font-weight: 700; }

/* --- my orders --- */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}
.order-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.order-row:hover { background: var(--paper-light); }
.order-row-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.order-row-title { font-weight: 700; font-size: 14px; }
.sale-row { align-items: flex-start; }
.shipping-address { font-size: 12.5px; }
.refunded-badge {
  display: inline-block;
  background: var(--error-bg);
  color: var(--stamp);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

/* --- cart --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.cart-row { gap: 12px; }
.cart-qty-form input {
  width: 56px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  text-align: center;
}
.cart-row .price { min-width: 76px; text-align: right; }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 12px;
  border-top: 1.5px solid var(--ink);
  margin-top: 4px;
  font-weight: 700;
}

/* --- support / FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.faq-item {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
}
.faq-item p {
  margin: 10px 0 2px;
  font-size: 14px;
  color: var(--graphite);
}

/* --- avatar cropper modal --- */
.cropper-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 14, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.cropper-overlay.is-open { display: flex; }
.cropper-card {
  background: var(--paper);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 90vw;
}
.cropper-card h3 { margin: 0; }
.cropper-viewport {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--ink-solid);
  touch-action: none;
  cursor: grab;
}
.cropper-viewport img {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
}
.cropper-zoom-label { font-size: 12px; font-weight: 600; align-self: flex-start; }
#cropper-zoom { width: 280px; }
.cropper-actions { display: flex; gap: 10px; margin-top: 4px; }

/* --- admin --- */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.admin-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  padding: 26px 16px;
}
.admin-tile-count { font-size: 32px; font-weight: 700; color: var(--stamp); }
.admin-report-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.admin-report.is-resolved { opacity: 0.55; }
.admin-report p { margin: 0 0 6px; }

/* --- listing gallery + edit page --- */
.gallery { margin-bottom: 16px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.gallery-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
}
.gallery-thumb.is-active { border-color: var(--stamp); opacity: 1; }
.delete-listing-form { margin-top: 24px; }
.delete-btn { color: var(--stamp); border-color: var(--stamp); }
.delete-btn:hover { background: var(--stamp); color: white; }
.delete-account-box { margin-top: 30px; border-color: var(--stamp); }
.card-wrap { display: flex; flex-direction: column; gap: 8px; }
.card-wrap .card { flex: 1; }
.card-promote-btn, .card-buy-btn { width: 100%; text-align: center; }

/* --- profile portfolio (work samples) --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.portfolio-card h3 { margin: 4px 0 0; font-size: 16px; }
.portfolio-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}
.portfolio-audio { width: 100%; }
.portfolio-card .secondary-btn { align-self: flex-start; }

/* --- restyled "choose file" controls --- */
.file-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.file-input-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--stamp);
  border-radius: 999px;
  background: var(--paper-light);
  color: var(--stamp);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.file-input-label:hover { background: var(--stamp); color: white; }
.file-input-filename { font-size: 13px; color: var(--graphite); }

.file-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.file-preview-item {
  position: relative;
  width: 88px;
  height: 88px;
}
.file-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.file-preview-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--ink-solid);
  color: white;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-preview-item:hover .file-preview-remove,
.file-preview-remove:focus {
  opacity: 1;
}
@media (hover: none) {
  .file-preview-remove { opacity: 1; }
}

/* --- listing variants (options) --- */
.variant-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 10px;
  padding: 14px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-wrap: wrap;
}
.variant-field { display: flex; flex-direction: column; gap: 5px; flex: 2; min-width: 140px; }
.variant-field-price { flex: 1; min-width: 100px; }
.variant-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--graphite);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.variant-field input {
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--paper);
}
.variant-field .file-input-wrap { gap: 8px; }
.variant-field .file-input-label { padding: 9px 14px; font-size: 12.5px; }

.existing-variant-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.existing-variant-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}
.existing-variant-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}
.existing-variant-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.existing-variant-info .price { font-size: 13px; }
.existing-variant-row form { margin: 0; }
.existing-variant-photo-form { display: flex; align-items: center; gap: 6px; }
.existing-variant-photo-form .file-input-label { padding: 7px 12px; font-size: 12px; }

/* --- variant picker on the listing page: selectable chips, not a dropdown --- */
.variant-picker { margin: 4px 0 20px; }
.variant-picker > label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--graphite);
  margin-bottom: 8px;
}
.variant-options { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper-light);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.variant-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.variant-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.variant-chip-name { font-size: 13.5px; font-weight: 600; }
.variant-chip-price { font-size: 13px; color: var(--graphite); }
.variant-chip.is-selected {
  border-color: var(--stamp);
  background: var(--paper);
}
.variant-chip.is-selected .variant-chip-price { color: var(--stamp); }

.quantity-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.quantity-field input {
  width: 70px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.color-swatch-input {
  -webkit-appearance: none;
  appearance: none;
  width: 52px;
  height: 40px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: none;
  vertical-align: middle;
}
.color-swatch-input::-webkit-color-swatch-wrapper { padding: 4px; }
.color-swatch-input::-webkit-color-swatch { border: none; border-radius: 5px; }
.color-swatch-input::-moz-color-swatch { border: none; border-radius: 5px; }

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.toggle-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.toggle-track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--line);
  border: 1.5px solid var(--line);
  position: relative;
  transition: background 0.15s;
  flex-shrink: 0;
}
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: transform 0.15s;
}
.toggle-switch input:checked + .toggle-track {
  background: var(--stamp);
  border-color: var(--stamp);
}
.toggle-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(18px);
  background: white;
}
.toggle-switch input:focus-visible + .toggle-track {
  outline: 2px solid var(--stamp);
  outline-offset: 2px;
}

.totp-qr {
  width: 200px;
  height: 200px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 16px 0;
  background: white;
  padding: 10px;
}
