/* Genesis App  -  Clean, modern, minimal */
/* Mobile-first. Find makers. Post reviews. Nothing else. */
html, body { overflow-x: clip; }

:root {
  --green: #1a6b3c;
  --green-dark: #145530;
  --green-light: #22884d;
  --green-pale: #e8f5ee;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --gold: #e8a838;
  --gold-strong: #a56a00;
  --gold-dim: #d4a843;
  --text: #1a1a1a;
  --text-primary: var(--text);
  --text-secondary: #555;
  --text-muted: #999;
  --border: #e8e8e5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --header-h: 56px;
  --search-h: 52px;
  --geo-bar-offset: 0px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

/* === HEADER === */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-top: var(--safe-top);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  max-width: 720px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--green);
  flex-shrink: 0;
}
.logo-icon { font-size: 20px; }
.logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* Search integrated in header */
.header-search {
  flex: 1;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 10px 16px 10px 36px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.header-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,0.1);
  background: var(--surface);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.geo-btn {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.geo-btn:hover { border-color: rgba(26, 107, 60, 0.28); background: var(--green-pale); }
.geo-btn:active { transform: scale(0.95); }
.header-add-btn {
  display: none;
  align-items: center;
  padding: 8px 16px;
  background: transparent;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.header-add-btn:hover {
  background: var(--green-pale);
  border-color: rgba(26, 107, 60, 0.28);
}
@media (min-width: 768px) {
  .header-add-btn { display: inline-flex; }
  .mobile-only { display: none; }
}

.view-toggle-fab {
  position: static;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 9px 16px;
  background: var(--text);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.view-toggle-fab:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}
.view-toggle-fab:active {
  transform: scale(0.97);
}
.view-toggle-fab[hidden] { display: none; }
body.print-route .view-toggle-fab { display: none !important; }
body.print-route #bottom-nav { display: none !important; }
.app-main.app-layout-form ~ #bottom-nav { display: none !important; }
.view-toggle-fab svg {
  flex-shrink: 0;
}

/* === BOTTOM NAV (mobile only) === */
.bottom-nav {
  display: none;
}
body.keyboard-open .bottom-nav {
  display: none !important;
}


@media (max-width: 767px) {
  .bottom-nav {
    position: fixed;
    bottom: var(--browser-bottom-obstruction, 0px);
    left: 0;
    right: 0;
    z-index: 1100;
    display: flex;
    height: calc(56px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  }

  .bottom-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.15s;
  }

  .bottom-nav-tab svg {
    width: 24px;
    height: 24px;
  }

  .bottom-nav-tab.is-active {
    color: var(--green);
  }

  .bottom-nav-tab:hover {
    color: var(--green-light);
  }

  /* Hide floating map toggle on mobile  -  bottom nav replaces it */
  .view-toggle-fab {
    display: none !important;
  }

  /* Extra bottom padding for content above the nav */
  .app-main {
    padding-bottom: calc(72px + var(--safe-bottom) + var(--browser-bottom-obstruction, 0px)) !important;
  }
}

/* === HOME HERO TAGLINE === */
.home-hero-tagline {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  padding: 8px 16px 20px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.4;
}
.home-hero-tagline strong,
.home-hero-tagline span {
  display: block;
}
.home-hero-tagline strong {
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 17px;
}
.home-hero-tagline span {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.network-contribution-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 18px 0 24px;
  padding: 20px 22px;
  border: 1px solid rgba(26, 107, 60, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(244, 239, 218, 0.9), rgba(255, 255, 255, 0.96));
}
.network-contribution-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 17px;
}
.network-contribution-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}
.network-contribution-kicker {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.network-contribution-card .cta-btn-inline {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .home-hero-tagline { padding-inline: 10px; }
  .home-hero-tagline strong { font-size: 15px; }
  .network-contribution-card {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin: 12px 0 18px;
    padding: 17px;
  }
  .network-contribution-card .cta-btn-inline {
    width: 100%;
    text-align: center;
  }
}

.home-filter-bar {
  position: sticky;
  top: calc(var(--header-h) + var(--safe-top) + var(--geo-bar-offset));
  z-index: 85;
  margin: 0 -16px 16px;
  padding: 8px 16px;
  background: rgba(247, 247, 245, 0.96);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
  overflow-x: hidden;
}

.home-filter-bar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(247, 247, 245, 0), rgba(247, 247, 245, 0.96));
}

.home-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-right: clamp(36px, 14vw, 72px);
}

.home-filter-row::-webkit-scrollbar {
  display: none;
}

.home-filter-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.home-filter-chip:hover {
  background: rgba(26, 107, 60, 0.06);
}

.home-filter-chip.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.home-filter-chip.is-active:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.home-filter-meta {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

/* === MAIN === */
.app-main {
  padding-top: calc(var(--header-h) + var(--safe-top) + 12px + var(--geo-bar-offset));
  padding-bottom: calc(112px + var(--safe-bottom));
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.app-main.app-layout-wide {
  max-width: 720px;
  padding-left: 16px;
  padding-right: 16px;
}

.app-main.app-layout-detail,
.app-main.app-layout-form {
  padding-left: 24px;
  padding-right: 24px;
}

.app-main.app-layout-detail {
  max-width: 1120px;
}

.app-main.app-layout-form {
  max-width: 720px;
}

/* === LOADING === */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.loading-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === MAKER CARD === */
.maker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 26px 20px;
}

.maker-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.maker-card:hover {
  text-decoration: none;
}
.maker-card:hover .maker-card-img,
.maker-card:hover .maker-card-placeholder {
  opacity: 0.92;
}
.maker-card-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-pale), #e8f0ea);
}
.maker-card-img,
.maker-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s;
}
.maker-card-img {
  object-fit: cover;
}
.maker-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(26, 107, 60, 0.55);
}
.maker-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.maker-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.maker-card .community-badge {
  background: rgba(255,255,255,0.88);
  color: var(--green-dark);
}
.maker-card .flagged-badge {
  margin-left: 0;
  background: rgba(255, 244, 220, 0.92);
  color: var(--gold-strong);
}
.maker-card .new-badge {
  background: rgba(34, 136, 77, 0.9);
  color: #fff;
}
.maker-card .demo-badge {
  background: rgba(232, 168, 56, 0.92);
  color: #1a1a1a;
  font-size: 9px;
}

/* Demo profile banner */
.demo-profile-banner {
  background: rgba(232, 168, 56, 0.12);
  border: 1px solid rgba(232, 168, 56, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gold-strong);
  text-align: center;
  line-height: 1.4;
}
.maker-card-heart {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 2;
  margin-left: 0;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  color: var(--text);
  padding: 0;
}
.maker-card-heart:hover:not(:disabled) {
  background: rgba(255,255,255,0.95);
}
.maker-card-heart .heart-count {
  display: none;
}
.maker-card-heart.is-active,
.maker-card-heart:disabled,
.maker-card-heart[aria-disabled="true"] {
  color: #e25555;
  cursor: default;
}
.maker-card-body {
  padding: 10px 2px 0;
  min-width: 0;
}
.maker-card-meta,
.maker-card-owner {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.maker-card-location {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-secondary);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.open-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #b8b8b3;
  flex-shrink: 0;
}
.open-status.is-open {
  color: var(--green);
}
.open-status.is-open .open-status-dot {
  background: var(--green-light);
}
.open-status.is-closed {
  color: var(--text-muted);
}
.maker-card .open-status {
  margin-top: 6px;
}
.maker-card-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.maker-card-rating {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.maker-card-rating-main {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.maker-card-rating .stars {
  color: var(--text);
  letter-spacing: 0;
  font-size: 13px;
}
.maker-card-rating .rating-value,
.maker-card-rating .review-count {
  font-size: 13px;
}
.maker-card-distance {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* === MARKET GROUP HEADER === */
.market-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.market-group:first-child { padding-top: 8px; }

.honeypot-field {
  display: none !important;
}

/* === SECTION LABEL === */
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 0 8px;
}
.section-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.section-label-row .section-label {
  padding-right: 0;
}
.section-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}
.section-link:hover {
  text-decoration: underline;
}

/* === MAKER PROFILE === */
.profile-title-block {
  padding: 18px 0 12px;
}
.profile-title-block-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.profile-title-block-subtitle {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}
.profile-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.profile-hero-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.profile-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.profile-hero.portrait {
  max-height: 500px;
  display: flex;
  justify-content: center;
  position: relative;
}
.profile-hero.portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--portrait-bg) center/cover no-repeat;
  filter: blur(20px) brightness(0.7);
  transform: scale(1.1);
  z-index: 0;
}
.profile-hero.portrait img {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  position: relative;
  z-index: 1;
}
.profile-hero.portrait .profile-hero-overlay {
  z-index: 2;
}
.photo-gallery-shell {
  margin-top: 4px;
}
.photo-mosaic {
  display: grid;
  gap: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-mosaic-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.photo-mosaic-many {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}
.photo-mosaic-primary,
.photo-mosaic-secondary {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 180px;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: #eef2ed;
  overflow: hidden;
  cursor: pointer;
}
.photo-mosaic-two .photo-mosaic-primary,
.photo-mosaic-two .photo-mosaic-secondary {
  aspect-ratio: 1 / 1;
}
.photo-mosaic-many .photo-mosaic-primary {
  min-height: 420px;
}
.photo-mosaic-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.photo-mosaic-secondary-grid .photo-mosaic-secondary {
  min-height: 204px;
}
.photo-mosaic-tile img,
.photo-carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.photo-mosaic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.38) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.photo-mosaic-tile:hover::after {
  opacity: 1;
}
.photo-mosaic-more {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.68);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.photo-carousel-wrap {
  display: none;
}
.photo-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.photo-carousel::-webkit-scrollbar {
  display: none;
}
.photo-carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef2ed;
  scroll-snap-align: start;
  cursor: pointer;
}
.photo-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.photo-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.photo-carousel-dot.is-active {
  background: var(--green);
  transform: scale(1.2);
}
@media (max-width: 640px) {
  .profile-hero {
    max-height: 360px;
  }
  .photo-mosaic {
    display: none;
  }
  .photo-carousel-wrap {
    display: block;
  }
  .profile-title-block-name {
    font-size: 24px;
  }
}
@media (min-width: 641px) {
  .photo-carousel-wrap {
    display: none;
  }
}
.profile-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: white;
}
.profile-hero-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.profile-hero-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 2px;
}
.market-photo-hero {
  margin-top: 12px;
  box-shadow: var(--shadow);
}
.market-photo-hero img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}
.market-photo-hero.portrait img {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.maker-profile-header {
  margin: 18px 0 12px;
  padding: 22px 0 6px;
}
.maker-profile-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.claim-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-dark);
  background: var(--green-pale);
  border: 1px solid rgba(76,175,80,0.18);
}
.claim-status-badge.is-unclaimed {
  color: #8a5a00;
  background: #fff4d7;
  border-color: rgba(210,148,0,0.2);
}
.maker-profile-header h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(32px, 6vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.maker-profile-summary {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: clamp(18px, 3.5vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.maker-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
}
.maker-profile-meta .stars { color: var(--gold); }
.maker-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.maker-trust-pill,
.maker-trust-strip .maker-freshness {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  background: #fff8e8;
  color: #8a5a00;
  border: 1px solid rgba(232, 168, 56, 0.3);
}
.maker-trust-pill.muted {
  color: var(--text-muted);
  background: var(--surface-alt);
  border-color: var(--border);
}
.maker-claimed-pill {
  background: var(--green-pale);
  color: var(--green-dark);
  border-color: rgba(76,175,80,0.22);
}
.maker-source-pill {
  background: #fff4d7;
  color: #8a5a00;
  border-color: rgba(210,148,0,0.22);
}
.maker-trust-strip .maker-freshness {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
  font-weight: 700;
}
.maker-primary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}
.maker-primary-actions .cta-btn,
.maker-primary-actions .cta-btn-secondary,
.maker-primary-actions .cta-btn-inline {
  width: auto;
  min-width: 142px;
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.maker-primary-actions .heart-btn {
  margin-left: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(76,175,80,0.14);
  background: var(--surface);
}
.maker-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px;
  align-items: start;
  margin: 20px 0 12px;
}
.maker-profile-main {
  min-width: 0;
}
.maker-profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 88px;
}
.maker-sidebar-card,
.maker-info-block.maker-products-block,
.maker-info-block.maker-practices-block,
.maker-empty-reviews {
  background: var(--surface);
  border: 1px solid rgba(76,175,80,0.12);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.maker-sidebar-card p {
  margin: 6px 0 14px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
}
.maker-sidebar-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  font-weight: 800;
  margin-bottom: 8px;
}
.profile-section.maker-story-card {
  background: rgba(76,175,80,0.04);
  border-left: 4px solid var(--green);
  border-radius: 14px;
  padding: 24px 28px 24px 44px;
  margin: 0 0 16px;
}
.maker-story-card .profile-story {
  font-size: 16px;
  line-height: 1.7;
  font-style: italic;
  color: var(--text-primary);
  margin: 0;
}
.maker-products-block,
.maker-practices-block {
  margin: 14px 0;
}
.maker-review-cta {
  margin-top: 18px;
}
.maker-empty-reviews {
  color: var(--text-muted);
  margin-top: 18px;
}
.maker-empty-reviews p {
  margin: 0;
}
.maker-profile-tools {
  justify-content: center;
  margin-top: 20px;
}

.profile-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.profile-stats .stars { color: var(--gold); }
.profile-stats .open-status {
  gap: 8px;
}
.profile-action-buttons {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.profile-action-buttons .heart-btn {
  margin-left: 0;
}
.heart-btn {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s, color 0.2s;
}
.heart-btn:hover:not(:disabled) {
  background: rgba(76,175,80,0.08);
  color: var(--text);
}
.heart-btn.is-active,
.heart-btn:disabled {
  color: #e25555;
  cursor: default;
}
.share-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.share-btn:hover {
  background: rgba(76,175,80,0.08);
  color: var(--text);
}
.share-btn:active {
  transform: scale(0.96);
}
.share-btn svg {
  width: 18px;
  height: 18px;
}
.share-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  transform: translate(-50%, 12px);
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(18,18,18,0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.share-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.home-participation-banner {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 950;
  width: min(680px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(26, 107, 60, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 38, 22, 0.14);
  backdrop-filter: blur(16px);
}

.home-participation-banner-copy {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.home-participation-banner-link {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-participation-banner-link:hover {
  color: var(--green-dark);
}

.home-inline-cta {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}

.home-search-sections {
  display: grid;
  gap: 20px;
}

.home-search-group .section-label {
  padding-top: 0;
}

.profile-section {
  padding: 16px 0;
}
.profile-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.page-header {
  padding: 16px 0 8px;
}
.page-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-subtitle {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.form-success-state {
  text-align: center;
  padding: 48px 20px;
}
.inline-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.inline-link:hover {
  text-decoration: underline;
}

.profile-story {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.profile-story-card {
  background: rgba(76,175,80,0.04);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 16px 0;
}
.profile-story-title {
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.profile-story-emphasis {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.94);
}
.photo-lightbox[hidden] {
  display: none;
}
.photo-lightbox-stage {
  width: min(100%, 1100px);
  height: min(82vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
}
.photo-lightbox-counter {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.photo-lightbox-close,
.photo-lightbox-nav {
  position: absolute;
  border: 0;
  cursor: pointer;
  color: #fff;
}
.photo-lightbox-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 28px;
  line-height: 1;
}
.photo-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 34px;
  line-height: 1;
}
.photo-lightbox-prev {
  left: 18px;
}
.photo-lightbox-next {
  right: 18px;
}
@media (max-width: 640px) {
  .photo-lightbox {
    padding: 16px;
  }
  .photo-lightbox-stage {
    width: 100%;
    height: 72vh;
  }
  .photo-lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
    bottom: 20px;
    top: auto;
    transform: none;
  }
  .photo-lightbox-prev {
    left: 16px;
  }
  .photo-lightbox-next {
    right: 16px;
  }
}

.maker-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  background: var(--bg-secondary, rgba(0,0,0,0.02));
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.maker-info-grid.is-single-column {
  grid-template-columns: 1fr;
}
.maker-info-col {
  min-width: 0;
}
.maker-info-block + .maker-info-block {
  margin-top: 14px;
}
.maker-info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.maker-info-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}
.maker-info-lines a {
  color: var(--green);
  text-decoration: none;
}
.maker-info-lines a:hover {
  text-decoration: underline;
}

.practice-tags, .product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.practice-tag, .product-tag {
  font-size: 13px;
  padding: 6px 12px;
  background: var(--green-pale);
  border-radius: 20px;
  color: var(--green-dark);
  font-weight: 500;
}

/* === CTA BUTTON (Review) === */
.cta-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--green);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  letter-spacing: -0.2px;
}
.cta-btn:hover {
  background: var(--green-light);
  box-shadow: var(--shadow);
}
.cta-btn:active { transform: scale(0.98); }

.cta-btn-secondary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: transparent;
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}
.cta-btn-secondary:hover {
  background: var(--green-pale);
  border-color: rgba(26, 107, 60, 0.28);
}
.cta-btn-inline {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
}

.maker-participation-cta {
  margin: 22px 0 18px;
  padding: 22px;
  border: 1px solid rgba(26, 107, 60, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(26, 107, 60, 0.06), rgba(232, 245, 238, 0.85));
}

.maker-participation-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.maker-participation-copy h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.maker-participation-copy p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.maker-participation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.maker-share-cta {
  background: rgba(255, 255, 255, 0.9);
}

.maker-participation-market-link {
  box-shadow: var(--shadow-sm);
}

.home-discovery-actions,
.directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.home-add-maker-btn {
  display: inline-block;
  width: auto;
  padding: 12px 28px;
}

.map-entry-btn {
  display: inline-block;
  width: auto;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* === REVIEW CARD === */
.review-card {
  padding: 14px 0;
}
.review-card + .review-card {
  margin-top: 4px;
}
.review-owner-cta {
  margin-top: 16px;
  padding-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.review-owner-cta a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.review-owner-cta a:hover {
  text-decoration: underline;
}
.review-card-flagged {
  margin: 10px 0;
  padding: 14px 14px 14px 16px;
  background: var(--bg);
  border-bottom: 0;
  border-left: 3px solid #e8a838;
  border-radius: 10px;
  transition: opacity 0.2s ease;
}
.review-card-flagged.is-collapsed {
  opacity: 0.7;
}
.review-card-flagged.is-expanded {
  opacity: 1;
}
.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.review-card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-card-author { font-weight: 600; font-size: 14px; }
.review-card-date { font-size: 12px; color: var(--text-muted); }
.review-card-stars { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.review-card-text { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin-top: 4px; }
.review-card-product { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.review-owner-response {
  margin-top: 12px;
  margin-left: 10px;
  padding: 10px 12px;
  background: rgba(76, 175, 80, 0.08);
  border-left: 3px solid rgba(76, 175, 80, 0.55);
  border-radius: 10px;
}
.review-owner-response-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4px;
}
.review-owner-response-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.review-response-actions {
  margin-top: 10px;
}
.review-response-form {
  margin-top: 10px;
}
.review-response-form textarea {
  min-height: 88px;
}
.review-response-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.review-response-error {
  font-size: 12px;
  color: #b42318;
}
.flagged-review-notice {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.flagged-review-message {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.flagged-review-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}
.flagged-review-toggle:hover {
  color: var(--text-secondary);
}
.flagged-review-body {
  margin-top: 10px;
}

/* === REVIEW FORM === */
.review-form { padding: 0; }
.add-maker-wizard {
  --wizard-progress: 0%;
  scroll-margin-top: calc(var(--header-h) + var(--safe-top) + 16px);
}
.form-group { margin-bottom: 20px; }
.wizard-progress {
  position: sticky;
  top: 0;
  z-index: 15;
  margin-bottom: 24px;
  padding: 14px 0 18px;
  background: linear-gradient(180deg, rgba(251, 249, 244, 0.98) 0%, rgba(251, 249, 244, 0.94) 82%, rgba(251, 249, 244, 0) 100%);
  backdrop-filter: blur(10px);
}
.wizard-progress-track {
  position: absolute;
  top: 30px;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 999px;
  background: #dbe5dc;
  overflow: hidden;
}
.wizard-progress-fill {
  width: var(--wizard-progress);
  height: 100%;
  background: linear-gradient(90deg, #3d925b 0%, var(--green) 100%);
  border-radius: inherit;
  transition: width 0.22s ease;
}
.wizard-progress-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.wizard-progress-step {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font: inherit;
}
.wizard-progress-step:disabled {
  cursor: default;
}
.wizard-progress-step.is-complete {
  cursor: pointer;
}
.wizard-progress-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #cdd8cf;
  background: #fffdf8;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.wizard-progress-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.wizard-progress-step.is-current .wizard-progress-dot,
.wizard-progress-step.is-complete .wizard-progress-dot {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.wizard-progress-step.is-current .wizard-progress-label,
.wizard-progress-step.is-complete .wizard-progress-label {
  color: var(--green-dark);
}
.wizard-progress-step.is-complete:hover .wizard-progress-dot {
  transform: translateY(-1px);
}
.wizard-step {
  display: none;
  padding-bottom: 8px;
  scroll-margin-top: 104px;
}
.wizard-step[hidden] {
  display: none !important;
}
.wizard-step.is-active {
  display: block;
}
.wizard-step.is-entering-forward {
  animation: wizardStepForward 0.2s ease both;
}
.wizard-step.is-entering-backward {
  animation: wizardStepBackward 0.2s ease both;
}
.wizard-step-header {
  margin-bottom: 20px;
}
.wizard-step-kicker {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.wizard-step-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}
.wizard-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.wizard-back-link:hover {
  color: var(--green-dark);
}
.wizard-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}
.wizard-nav .cta-btn {
  width: auto;
  min-width: 164px;
}
.wizard-nav-submit {
  margin-top: 24px;
}
.additional-photo-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.additional-photo-grid {
  display: grid;
  gap: 14px;
}
.additional-photo-slot {
  position: relative;
}
.additional-photo-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.72);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.additional-photo-add {
  width: auto;
  align-self: flex-start;
}
@media (min-width: 720px) {
  .wizard-progress {
    padding-bottom: 22px;
  }
  .wizard-progress-track {
    left: 36px;
    right: 36px;
  }
  .wizard-step-title {
    font-size: 32px;
  }
  .additional-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 719px) {
  .wizard-progress {
    margin-bottom: 18px;
    padding-bottom: 12px;
  }
  .wizard-progress-step {
    gap: 0;
  }
  .wizard-progress-label {
    display: none;
  }
  .wizard-progress-track {
    top: 14px;
  }
  .wizard-progress-dot {
    width: 18px;
    height: 18px;
    font-size: 0;
  }
  .wizard-progress-step.is-complete .wizard-progress-dot {
    font-size: 11px;
  }
  .wizard-step-title {
    font-size: 24px;
  }
  .wizard-nav .cta-btn {
    width: 100%;
  }
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-helper {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.market-search-wrap {
  position: relative;
}
.market-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.market-selected-chip {
  border: 1px solid #c9ddce;
  background: var(--green-pale);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}
.market-selected-chip:hover {
  border-color: var(--green);
  background: #dcefe2;
}
.market-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 120;
  background: var(--surface);
  border: 1px solid #dce6df;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
}
.address-autocomplete-group {
  position: relative;
}
.address-autocomplete-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 120;
  background: var(--surface);
  border: 1px solid #dce6df;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}
.address-autocomplete-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.16s ease, color 0.16s ease;
}
.address-autocomplete-item:last-child {
  border-bottom: 0;
}
.address-autocomplete-item:hover {
  background: var(--green-pale);
}
.address-autocomplete-secondary {
  font-size: 13px;
  color: var(--text-secondary);
}
.address-autocomplete-status {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
}
.market-result-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: baseline;
  gap: 8px;
  transition: background 0.16s ease, color 0.16s ease;
}
.market-result-item:last-child {
  border-bottom: 0;
}
.market-result-item:hover {
  background: var(--green-pale);
}
.market-result-item.is-selected {
  background: #e1efe6;
  color: var(--green-dark);
}
.market-result-name {
  font-size: 14px;
  font-weight: 600;
}
.market-result-location {
  font-size: 13px;
  color: var(--text-secondary);
}
.market-result-other {
  border-top: 1px solid #dce6df;
  font-weight: 600;
  color: var(--green);
}
.market-result-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.market-other-link {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.market-other-link:hover {
  color: var(--green-dark);
}
.market-add-helper {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.market-add-helper a {
  color: var(--green);
  font-weight: 600;
}
.market-add-helper a:hover { text-decoration: underline; }
.checkbox-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.checkbox-chip:hover {
  border-color: #cfd8d1;
  background: #fbfbfa;
}
.checkbox-chip input[type="checkbox"] {
  margin: 0;
  accent-color: var(--green);
}
.checkbox-chip:has(input[type="checkbox"]:checked) {
  border-color: var(--green);
  background: var(--green-pale);
  color: var(--green-dark);
}
.practice-tags-group {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.practice-tags-group.is-swapping {
  opacity: 0;
  transform: translateY(4px);
}
.practice-chip {
  animation: practiceTagIn 0.24s ease both;
}
@keyframes practiceTagIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.story-group {
  background: #f4f8f4;
  border: 1px solid #e2ebdf;
  border-radius: var(--radius-sm);
  padding: 14px;
}
.story-group .form-textarea {
  min-height: 140px;
  background: #fff;
}
.terms-group { margin-top: -4px; }
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
  cursor: pointer;
}
.terms-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--green);
  flex-shrink: 0;
  cursor: pointer;
}
.terms-check a {
  color: var(--green);
  font-weight: 600;
}
.terms-check a:hover { text-decoration: underline; }

@keyframes wizardStepForward {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wizardStepBackward {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.star-picker {
  display: flex;
  gap: 8px;
  font-size: 36px;
  justify-content: center;
  padding: 8px 0;
}
.rating-star {
  border: 0;
  background: transparent;
  color: var(--border);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 2px;
  transition: color 0.15s, transform 0.15s;
  user-select: none;
}
.rating-star.active { color: var(--gold); }
.rating-star:active { transform: scale(1.15); }
.rating-star:focus-visible { outline: 3px solid rgba(26, 107, 60, 0.28); outline-offset: 4px; border-radius: 8px; }

.product-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-select-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  color: var(--text-secondary);
}
.product-select-btn.selected {
  border-color: var(--green);
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 600;
}

/* === BACK LINK === */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  margin-bottom: 8px;
}
.back-link:hover { text-decoration: underline; }

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}
.empty-state .emoji {
  font-size: 40px;
  margin-bottom: 14px;
  line-height: 1;
}
.empty-state h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 700;
}
.empty-state p {
  font-size: 14px;
  line-height: 1.55;
  max-width: 34ch;
  margin: 0 auto;
}

.route-not-found {
  display: grid;
  gap: 24px;
  padding: 8px 0 24px;
}
.route-not-found-panel {
  display: grid;
  gap: 14px;
  padding: 28px 20px;
  border: 1px solid rgba(26, 107, 60, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(232, 168, 56, 0.12), transparent 38%),
    linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.route-not-found-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.route-not-found-title {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.route-not-found-subtitle {
  max-width: 42ch;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.route-not-found-search {
  display: grid;
  gap: 12px;
  max-width: 560px;
  width: 100%;
  margin: 6px auto 0;
}
.route-not-found-search-input {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.94);
}
.route-not-found-search-btn {
  justify-self: center;
}
.route-not-found-browse {
  margin: 2px auto 0;
  box-shadow: var(--shadow);
}
.route-not-found-suggestions {
  display: grid;
  gap: 10px;
}
.route-not-found-heading {
  padding: 0;
  text-align: center;
}
.route-not-found-copy {
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: center;
}
.route-not-found-grid {
  width: 100%;
}
.route-not-found-grid .maker-card,
.route-not-found-grid .market-card {
  box-shadow: var(--shadow-sm);
}

@media (min-width: 720px) {
  .route-not-found-panel {
    padding: 40px 36px;
  }

  .route-not-found-search {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .route-not-found-search-btn {
    justify-self: auto;
  }
}

/* === INFO LINK (replaces About page) === */
.info-link {
  display: block;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.info-link a { color: var(--green); text-decoration: none; font-weight: 500; }
.info-link a:hover { text-decoration: underline; }

/* === OFFLINE BANNER === */
.offline-banner {
  background: var(--gold);
  color: white;
  text-align: center;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

/* === INSTALL PROMPT === */

/* === COMMUNITY ADDED === */
.community-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  background: var(--green-pale);
  color: var(--green-dark);
  border-radius: 8px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.community-notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  align-items: flex-start;
}
.community-notice-icon { font-size: 24px; flex-shrink: 0; }
.community-notice > div > strong { font-size: 14px; display: block; margin-bottom: 2px; }
.community-notice p { font-size: 13px; color: var(--text-secondary); line-height: 1.4; margin: 0; }
.community-notice.warning {
  background: rgba(232, 168, 56, 0.08);
  border-color: rgba(232, 168, 56, 0.28);
}

.add-maker-cta {
  text-align: center;
  padding: 24px 0 8px;
}
.add-maker-cta-compact {
  margin-bottom: 16px;
  padding-top: 0;
}
.inline-success {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d9e7dd;
  border-radius: var(--radius-sm);
  background: var(--green-pale);
}
.inline-success h3 {
  font-size: 17px;
  color: var(--green-dark);
}
.inline-success p {
  margin-top: 6px;
  font-size: 14px;
}
.inline-success a {
  color: var(--green);
  font-weight: 600;
}
.inline-flash {
  margin-bottom: 16px;
}

.inline-manage {
  margin: 16px 0 8px;
}
.inline-manage-link {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.inline-manage-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}
.inline-manage-panel {
  padding: 16px 0;
}
.inline-manage-form {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.inline-manage-form .cta-btn {
  margin-top: 4px;
}
.inline-manage-success {
  margin-top: 10px;
  font-size: 14px;
  color: var(--green-dark);
}

.message-maker-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.message-maker-btn:hover {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--green-dark);
}
.message-maker-btn:active {
  transform: scale(0.97);
}

.message-maker-form {
  margin-top: 0;
}
.message-maker-form .form-label {
  margin-top: 6px;
}
.message-maker-form .form-label:first-child {
  margin-top: 0;
}
.message-maker-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.community-flag {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.community-flag-compact {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.community-flag-toggle {
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  box-shadow: none;
}
.community-flag-toggle:hover {
  color: var(--text);
  text-decoration: underline;
}
.community-flag-toggle.compact {
  font-size: 12px;
  line-height: 1.2;
  color: var(--text-muted);
  border: none;
  outline: none;
}
.community-flag-panel {
  margin-top: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(128, 128, 128, 0.2);
  background: rgba(128, 128, 128, 0.06);
}
.community-flag-panel.compact {
  margin-top: 6px;
  padding: 10px;
  min-width: 210px;
}
.community-flag-select {
  margin-bottom: 10px;
  background: transparent;
  color: inherit;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  -webkit-appearance: none;
  appearance: none;
}
.community-flag-details {
  min-height: 90px;
  margin-bottom: 10px;
}
.community-flag-submit {
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.community-flag-success {
  margin-top: 10px;
  font-size: 14px;
  color: var(--green-dark);
  font-weight: 600;
}
.community-flag-success.compact {
  font-size: 12px;
}

.listing-removal {
  margin-top: 28px;
  padding: 8px 0 4px;
}
.listing-removal-toggle {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.listing-removal-toggle:hover {
  color: var(--text-secondary);
}
.listing-removal-panel {
  margin-top: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #e7e1cf;
  background: #fcfaf4;
}
.listing-removal-email {
  margin-bottom: 10px;
}
.listing-removal-details {
  min-height: 90px;
}
.listing-removal-success {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.community-notes-section {
  border-top: 1px solid var(--border);
}
.community-notes-section.community-tips-section {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(232, 168, 56, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf6 0%, rgba(255,248,232,0.72) 100%);
  box-shadow: var(--shadow-sm);
}
.community-notes-section.community-tips-section .profile-section-title {
  color: var(--text-primary);
  font-size: 14px;
}
.community-notes-section.community-tips-section .community-note-card {
  background: var(--surface);
  border-color: rgba(232, 168, 56, 0.24);
}
.community-notes-inline {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(232, 168, 56, 0.28);
}
.community-notes-inline .community-notes-header {
  margin-bottom: 10px;
}
.flagged-review-notes {
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-sm);
}
.community-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.community-notes-count {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.community-note-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--green);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.community-note-toggle:hover {
  background: var(--green-pale);
  border-color: rgba(26, 107, 60, 0.24);
}
.community-note-form {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #d7e7dc;
  background: linear-gradient(180deg, #f8fbf6 0%, var(--green-pale) 100%);
}
.community-note-form .form-textarea {
  min-height: 110px;
  margin-bottom: 12px;
}
.community-note-form .form-input {
  margin-bottom: 12px;
}
.community-note-success {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--green-dark);
  font-weight: 600;
}
.community-notes-empty {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.community-note-list {
  display: grid;
  gap: 12px;
}
.community-note-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #d7e7dc;
  background: linear-gradient(180deg, rgba(232,245,238,0.9) 0%, #f8fbf7 100%);
  box-shadow: var(--shadow-sm);
}
.community-note-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.community-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.community-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.community-note-vote {
  border: 1px solid #cfe1d5;
  background: rgba(255,255,255,0.9);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.community-note-vote:hover {
  border-color: var(--green);
}
.community-note-vote:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* === MARKETS DIRECTORY === */
.markets-directory-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 16px;
}
.markets-directory-tools .section-label { margin: 0; }
.markets-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.markets-filter-row[hidden] {
  display: none;
}
.markets-filter-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}
.markets-filter-chip:hover,
.markets-filter-chip.is-active {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-dark);
}
.markets-filter-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.markets-filter-chip:disabled:hover {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-secondary);
}
.markets-location-prompt {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  padding: clamp(24px, 5vw, 48px) 20px;
}
.markets-location-prompt .emoji { font-size: 34px; margin-bottom: 10px; }
.markets-location-prompt h2 { margin: 0 0 8px; }
.markets-location-prompt p {
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto 18px;
}
.markets-location-proof {
  font-size: 14px;
}
.markets-location-proof .brand-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.markets-location-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.markets-location-actions .cta-btn,
.markets-location-actions .cta-btn-secondary {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}
.market-source-checked {
  color: var(--green-dark);
  font-weight: 700;
}
@media (max-width: 600px) {
  .markets-directory-tools {
    align-items: flex-start;
    flex-direction: column;
  }
  .markets-filter-row { width: 100%; }
  .markets-filter-chip { flex: 1; }
}
.markets-header {
  padding: 8px 0 18px;
  max-width: 720px;
}
.markets-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.markets-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.markets-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 10px;
  max-width: 58ch;
}
.add-market-cta {
  margin-bottom: 18px;
}
.markets-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
}
.markets-search-input-lg {
  font-size: 18px;
  padding: 16px 18px;
}
.markets-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,0.1);
}
.markets-search-input::placeholder { color: var(--text-muted); }

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* Market card  -  Airbnb-style with photo hero */
.market-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  transition: transform 0.15s;
}
.market-card:hover {
  text-decoration: none;
}
.market-card:hover .market-card-photo {
  opacity: 0.92;
}
.market-card:active { transform: scale(0.98); }
.market-card::after {
  display: none;
}
.market-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-pale), #e8f0ea);
}
.market-card-badge {
  display: none;
}
.market-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
  border-radius: 14px;
}
.market-card-badge-ring {
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
}
.market-card-badge-initial {
  position: relative;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.market-card-info {
  padding: 8px 2px 4px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.market-card-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.market-card-region {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.market-card-snippet {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.market-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.market-card-detail {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(26, 107, 60, 0.1);
  background: rgba(255,255,255,0.9);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}
.market-card-detail-strong {
  background: rgba(26, 107, 60, 0.08);
  color: var(--green-dark);
}
.market-card .open-status {
  margin-top: 8px;
}
.market-card-description {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.market-card-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.market-card-stats .stars {
  color: var(--gold-strong);
  letter-spacing: 1px;
  font-size: 14px;
}
.market-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.market-card-rating .rating-value {
  font-size: 13px;
}
.market-card-arrow {
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-weight: 300;
  align-self: center;
  position: relative;
  z-index: 1;
}

body.markets-route .header-markets-btn { display: none; }
body.markets-route #header-add-maker { margin-left: auto; }

.map-hero-compact {
  position: absolute;
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2.5vw, 26px);
  z-index: 460;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  max-width: min(480px, calc(100% - 24px));
  border-radius: 14px;
  background: rgba(15, 20, 14, 0.38);
  color: #f6f9f4;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}
.map-hero-compact .map-hero-title {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  opacity: 0.88;
}
.map-hero-compact .map-community-count {
  font-size: 12px;
  font-weight: 500;
  color: inherit;
  line-height: 1.3;
  opacity: 0.97;
}

body.map-route .app-main {
  max-width: none;
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + var(--safe-top) + var(--geo-bar-offset));
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.map-view-shell {
  position: relative;
  width: 100vw;
  height: calc(100dvh - (var(--header-h) + var(--safe-top) + var(--geo-bar-offset)));
  min-height: calc(100svh - (var(--header-h) + var(--safe-top) + var(--geo-bar-offset)));
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

.map-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid rgba(45, 80, 22, 0.12);
  background:
    radial-gradient(circle at top right, rgba(74, 124, 46, 0.16), transparent 34%),
    linear-gradient(135deg, #edf4e8 0%, #fffdf9 52%, #eef3ea 100%);
  box-shadow: 0 14px 36px rgba(32, 54, 21, 0.08);
}

.map-hero-copy {
  max-width: 700px;
}

.map-hero-eyebrow {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.map-hero-title {
  max-width: 520px;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #203615;
}

.map-hero-subtitle {
  margin-top: 12px;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.map-hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  min-width: 280px;
}



.map-hero-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.map-hero-cta {
  padding-left: 20px;
  padding-right: 20px;
  box-shadow: 0 12px 28px rgba(45, 80, 22, 0.2);
}

.map-controls {
  position: absolute;
  top: clamp(12px, 2.5vw, 20px);
  left: 50%;
  z-index: 470;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: calc(100% - 24px);
  transform: translateX(-50%);
  pointer-events: none;
}

.map-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 26px rgba(8, 14, 8, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

.map-tabs-label {
  font-size: 11px;
  color: rgba(32, 54, 21, 0.78);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 4px 0 8px;
}

.map-location-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  padding: 9px 14px;
  background: rgba(14, 20, 13, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(8, 14, 8, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  max-width: min(45vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-tab {
  border: 1px solid rgba(45, 80, 22, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: rgba(25, 38, 17, 0.92);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  border-radius: 999px;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.map-tab:hover {
  color: #203615;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(45, 80, 22, 0.28);
}
.map-tab.is-active {
  color: #fff;
  font-weight: 600;
  border-color: rgba(35, 57, 23, 0.9);
  background: rgba(33, 56, 20, 0.9);
  box-shadow: none;
}

.map-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.map-location-prompt {
  position: absolute;
  inset: 0;
  z-index: 480;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(238, 243, 234, 0.76);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.map-location-prompt-card {
  width: min(520px, 100%);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(45, 80, 22, 0.16);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 24px 64px rgba(26, 45, 17, 0.2);
  text-align: center;
}

.map-location-prompt-eyebrow {
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-location-prompt-card h2 {
  margin: 0;
  color: #203615;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.map-location-prompt-card p {
  max-width: 44ch;
  margin: 14px auto 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.map-location-prompt-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.discovery-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: linear-gradient(180deg, #f1f5ed, #dae7d5);
}

.map-loading {
  position: absolute;
  inset: 0;
  min-height: 0;
  border-radius: 0;
  background: rgba(247, 247, 245, 0.9);
  backdrop-filter: blur(6px);
}

.leaflet-container {
  font: inherit;
  background: #e1ead9;
}

.leaflet-bar {
  border: none;
  box-shadow: var(--shadow);
}

.leaflet-control-zoom a {
  color: #203615;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(45, 80, 22, 0.12);
}

.leaflet-control-zoom a:hover {
  color: var(--green-dark);
  background: #edf4e8;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
}

.leaflet-popup-content {
  margin: 14px 16px;
}

.genesis-map-cluster {
  background: transparent;
}

.genesis-map-cluster div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: radial-gradient(circle at 30% 30%, #6a9a4b 0%, #4a7c2e 45%, #2d5016 100%);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 12px 30px rgba(45, 80, 22, 0.28),
    0 0 0 8px rgba(74, 124, 46, 0.16);
}

.genesis-map-cluster-small div {
  font-size: 14px;
}

.genesis-map-cluster-medium div {
  font-size: 15px;
}

.genesis-map-cluster-large div {
  font-size: 16px;
  box-shadow:
    0 14px 34px rgba(45, 80, 22, 0.32),
    0 0 0 10px rgba(74, 124, 46, 0.2);
}

.map-popup-card {
  min-width: 210px;
}

.map-popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-popup-thumb {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--green-pale);
}

.map-popup-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-pale), #dcebe3);
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.map-popup-header-copy {
  min-width: 0;
}

.map-popup-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.map-popup-subtitle,
.map-popup-meta {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.map-popup-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.map-popup-stats .stars {
  color: var(--gold-strong);
  letter-spacing: 1px;
}

.map-popup-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

.map-popup-link:hover {
  text-decoration: underline;
}

/* Market detail view */
.market-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 28px 24px;
  margin-top: 12px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 30%),
    linear-gradient(135deg, #1e6f68 0%, #277f78 36%, #4eaa92 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.market-hero::before {
  content: "";
  position: absolute;
  inset: auto 14% -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 28px rgba(255,255,255,0.05);
}
.market-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, transparent 0 64%, rgba(255,255,255,0.08) 64% 66%, transparent 66%),
    linear-gradient(35deg, transparent 0 20%, rgba(255,255,255,0.06) 20% 21%, transparent 21% 100%);
  opacity: 0.65;
  pointer-events: none;
}
.market-hero-content {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 112px);
}
.market-hero-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.84;
  font-weight: 700;
}
.market-hero-name {
  margin-top: 10px;
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.market-hero-subtitle {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.92;
}
.market-hero-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  z-index: 1;
}
.market-profile-stats {
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid rgba(76,175,80,0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.market-profile-stats .stars {
  color: var(--gold-strong);
}
.market-info-grid {
  background: linear-gradient(180deg, rgba(248,251,249,0.98), rgba(243,248,245,0.98));
  border: 1px solid rgba(76,175,80,0.1);
  box-shadow: var(--shadow-sm);
}
.market-makers-section {
  padding-bottom: 0;
}

@media (max-width: 760px) {
  .maker-profile-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .maker-profile-sidebar {
    position: static;
  }
  .maker-primary-actions {
    align-items: stretch;
  }
  .maker-primary-actions .cta-btn,
  .maker-primary-actions .cta-btn-secondary {
    flex: 1 1 160px;
    justify-content: center;
  }
  .maker-profile-header h1 {
    font-size: clamp(30px, 10vw, 42px);
  }
  .maker-profile-summary {
    font-size: 18px;
  }
  .maker-info-grid {
    grid-template-columns: 1fr;
  }
  .profile-action-buttons {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
  .market-hero {
    padding: 24px 20px;
  }
  .market-hero-content {
    max-width: 100%;
    padding-right: 72px;
  }
  .market-hero-badge {
    width: 58px;
    height: 58px;
    top: 18px;
    right: 18px;
    font-size: 24px;
  }
  .market-card {
    min-height: 0;
  }
  .market-card-badge {
    display: none;
  }
  .home-participation-banner {
    bottom: calc(72px + var(--safe-bottom));
    flex-direction: column;
    align-items: flex-start;
  }
  .home-participation-banner-link {
    white-space: normal;
  }
  .maker-participation-cta {
    padding: 18px;
  }
  .maker-participation-copy h3 {
    font-size: 18px;
  }
  .maker-participation-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .maker-participation-actions .cta-btn-inline {
    width: 100%;
  }
}

.browse-markets-link {
  text-align: center;
  padding: 16px 0 0;
}
.browse-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 24px 0 0;
  width: 100%;
  text-align: center;
  grid-column: 1 / -1;
  clear: both;
}
.browse-links .cta-btn-secondary {
  display: inline-block;
  width: auto;
  padding: 12px 28px;
}
.see-all-link {
  grid-column: 1 / -1;
  text-align: center;
  padding: 12px 0 8px;
}
.see-all-link .see-all-toggle {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  padding: 0;
  cursor: pointer;
}
.see-all-link .see-all-toggle:hover {
  text-decoration: underline;
}
.maker-distance {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
  white-space: nowrap;
}
.inline-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.inline-location::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  flex-shrink: 0;
}
.profile-action-row {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.text-action {
  border: 0;
  background: transparent;
  color: var(--green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.text-action:hover {
  text-decoration: underline;
}
.text-action-muted {
  color: var(--text-muted);
}
.text-action-muted:hover {
  color: var(--text-secondary);
}
.geo-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.geo-btn:hover { border-color: var(--green); background: var(--green-pale); }
.geo-btn-active {
  color: var(--text);
}
.geo-input-wrap {
  position: fixed;
  top: calc(var(--header-h) + var(--safe-top));
  left: 0;
  right: 0;
  z-index: 95;
  padding: 8px 16px;
  background: var(--green-pale);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(26,107,60,0.12);
}
.geo-input-wrap[hidden] {
  display: none !important;
  box-shadow: var(--shadow-sm);
}
.geo-input {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
}
.geo-input-go {
  padding: 8px 16px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.geo-input-go:hover { background: var(--green-dark); }
.geo-input-go:disabled {
  opacity: 0.65;
  cursor: wait;
}
.geo-use-location,
.geo-clear {
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.geo-use-location {
  color: var(--green);
  font-weight: 600;
}
.geo-clear {
  color: #9a4d4d;
}
.geo-use-location[aria-disabled="true"],
.geo-clear[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.5;
}
.geo-close {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.geo-close:disabled {
  opacity: 0.5;
  cursor: wait;
}

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

.directory-maker-card {
  display: block;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.15s;
}
.directory-maker-card:hover { box-shadow: var(--shadow); }
.directory-maker-card:active { transform: scale(0.98); }
.directory-maker-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.directory-maker-products {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.directory-maker-market {
  margin-top: 8px;
  font-size: 12px;
  color: var(--green-dark);
  font-weight: 600;
}
.directory-maker-rating {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.directory-maker-rating .stars {
  color: var(--gold-strong);
  letter-spacing: 1px;
  font-size: 14px;
}
.market-report-wrap {
  margin-top: 22px;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
}
.market-report-link {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.market-report-form {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #dce6df;
  background: #f7fbf8;
}
.market-report-form .form-group,
.market-report-form .form-label {
  margin-bottom: 8px;
}
.market-report-form .form-textarea {
  min-height: 96px;
  margin-bottom: 10px;
}
.market-report-success {
  margin-top: 10px;
  font-size: 14px;
  color: var(--green-dark);
  font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root {
    --header-h: 112px;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 8px;
  }

  .header-search {
    width: 100%;
    order: 3;
    flex: 0 0 100%;
    padding-top: 4px;
  }
}

@media (min-width: 768px) {
  .app-main.app-layout-wide {
    max-width: 960px;
    padding-left: 32px;
    padding-right: 32px;
  }
  .header-inner { max-width: 960px; }
  #home-results .market-group,
  #home-results .section-label,
  #home-results .section-label-row,
  #home-results .empty-state,
  #home-results .loading,
  #home-results .info-link,
  #home-results .browse-markets-link,
  #home-results .add-maker-cta,
  #maker-list .market-group {
    grid-column: 1 / -1;
  }

  .markets-grid,
  .makers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
  }
  .markets-grid .empty-state,
  .makers-grid .empty-state { grid-column: 1 / -1; }

  .home-filter-bar {
    margin-left: 0;
    margin-right: 0;
    border-radius: 18px;
  }

  .home-filter-bar::after {
    content: none;
  }

  .home-filter-row {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    padding-right: 0;
  }
}

@media (min-width: 1200px) {
  .app-main.app-layout-wide { max-width: 1440px; }
  .header-inner { max-width: 1440px; }
  .markets-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .makers-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

@media (max-width: 1280px) {
  .maker-grid,
  .makers-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .maker-grid,
  .makers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .maker-grid,
  .makers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 479px) {
  .maker-grid,
  .makers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===== DATA EXPORT SECTION ===== */
.export-section {
  margin-top: 24px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.export-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.export-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.export-btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-pale);
  border-radius: var(--radius-sm, 10px);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.export-btn:hover {
  background: var(--green);
  color: #fff;
}

.print-card-link-wrap {
  margin-top: 24px;
  text-align: center;
}

.print-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.print-card-link:hover {
  text-decoration: underline;
}

body.print-route {
  background: #fff;
}

body.print-route .app-main {
  max-width: none;
  padding-top: 24px;
  padding-bottom: 32px;
}

body.print-route .app-header,
body.print-route #offline-banner {
  display: none;
}

.maker-print-page {
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.print-card-actions {
  width: min(100%, 720px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.print-card-btn {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}

.maker-print-card {
  width: min(100%, 540px);
  min-height: min(7in, calc(100vh - 96px));
  background: #fff;
  border: 3px solid var(--green);
  border-radius: 24px;
  padding: 28px 30px 26px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.maker-print-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(95, 140, 78, 0.07), rgba(95, 140, 78, 0) 150px),
    linear-gradient(135deg, rgba(237, 244, 238, 0.9), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

.maker-print-header,
.maker-print-name,
.maker-print-owner,
.maker-print-meta,
.maker-print-practices,
.maker-print-products-section,
.maker-print-tagline,
.maker-print-qr-wrap,
.maker-print-url,
.maker-print-footer {
  position: relative;
  z-index: 1;
}

.maker-print-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.maker-print-brand {
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maker-print-leaf {
  font-size: 24px;
}

.maker-print-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.maker-print-name {
  margin-top: 16px;
  font-size: clamp(24px, 4.5vw, 38px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
}

.maker-print-owner {
  margin-top: 10px;
  font-size: 17px;
  color: var(--text-secondary);
}

.maker-print-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.maker-print-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #d4e4d8;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

.maker-print-meta-label {
  font-size: 15px;
  font-weight: 800;
}

.maker-print-meta-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.maker-print-practices {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 620px;
}

.maker-print-practice-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf4ee;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.maker-print-products-section {
  margin-top: 20px;
  width: 100%;
  max-width: 620px;
  padding: 18px 18px 16px;
  border: 2px solid #dce9df;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbf8 0%, #eef5ef 100%);
}

.maker-print-section-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.maker-print-product-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.maker-print-product-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #cfe0d3;
  color: #111;
  font-size: 16px;
  font-weight: 700;
}

.maker-print-tagline {
  margin-top: 20px;
  color: var(--green);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  max-width: 520px;
  text-align: center;
}

.maker-print-photo-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.maker-print-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #d6e5db;
  display: block;
}

.maker-print-photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #f0f7f1;
  border: 3px solid #d6e5db;
  display: grid;
  place-items: center;
  font-size: 48px;
}

.maker-print-qr-copy {
  text-align: center;
}

.maker-print-qr-note {
  margin-top: 10px;
  font-size: 16px;
  color: #666;
  text-align: center;
}

.maker-print-qr-wrap {
  margin-top: 22px;
  padding: 16px;
  border: 2px solid #d6e5db;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.maker-print-qr {
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maker-print-qr img,
.maker-print-qr svg {
  width: 250px;
  height: 250px;
  display: block;
}

.maker-print-qr-fallback {
  width: 250px;
  height: 250px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--border);
}

.maker-print-url {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 600;
  word-break: break-word;
}

.maker-print-url a {
  color: #111;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.maker-print-footer {
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

@media (max-width: 767px) {
  .print-card-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .maker-print-card {
    width: 100%;
    min-height: auto;
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  .maker-print-meta {
    flex-direction: column;
    align-items: center;
  }

  .maker-print-qr,
  .maker-print-qr img,
  .maker-print-qr svg,
  .maker-print-qr-fallback {
    width: 210px;
    height: 210px;
    margin: 0 auto;
  }

  .maker-print-url {
    font-size: 16px;
  }
}

@page {
  size: letter;
  margin: 0.5in;
}

@media print {
  body,
  body.print-route {
    background: #fff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .app-header,
  #offline-banner,
  .nav-item,
  nav,
  footer,
  .print-card-actions,
  .back-link,
  .info-link {
    display: none !important;
  }

  .app-main,
  body.print-route .app-main {
    max-width: none !important;
    min-height: auto;
    padding: 0 !important;
    margin: 0 !important;
  }

  .maker-print-page {
    min-height: auto;
    display: block;
    width: 100%;
    padding: 0 0 0.08in;
    overflow: visible !important;
  }

  .maker-print-card {
    width: 5.1in;
    min-height: auto;
    max-height: 9.1in;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: none;
    border: 2px solid var(--green);
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 12px 16px 10px;
    overflow: visible !important;
  }

  @page {
    size: letter;
    margin: 0.4in;
  }

  .maker-print-header {
    gap: 4px !important;
  }

  .maker-print-brand {
    font-size: 17px !important;
  }

  .maker-print-kicker {
    font-size: 9px !important;
    letter-spacing: 0.1em !important;
  }

  .maker-print-name {
    font-size: 20px !important;
    margin-top: 4px !important;
    line-height: 1.06 !important;
  }

  .maker-print-owner {
    margin-top: 4px !important;
    font-size: 13px !important;
  }

  .maker-print-meta {
    margin-top: 8px !important;
    gap: 6px !important;
  }

  .maker-print-meta-row,
  .maker-print-meta-label,
  .maker-print-meta-sub,
  .maker-print-location {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .maker-print-contact {
    margin-top: 8px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  .maker-print-products-section {
    margin-top: 10px !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
  }

  .maker-print-section-label {
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
  }

  .maker-print-products-text {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  .maker-print-practices {
    margin-top: 8px !important;
    gap: 5px !important;
  }

  .maker-print-practice-tag {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  .maker-print-qr {
    width: 104px !important;
    height: 104px !important;
  }

  .maker-print-qr img,
  .maker-print-qr svg {
    width: 104px !important;
    height: 104px !important;
  }

  .maker-print-qr-wrap {
    margin-top: 8px !important;
    padding: 8px 10px !important;
  }

  .maker-print-photo-wrap {
    display: flex !important;
    justify-content: center !important;
    margin-top: 4px !important;
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .maker-print-photo {
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border-width: 2px !important;
    display: block !important;
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .maker-print-photo-placeholder {
    width: 88px !important;
    height: 88px !important;
    font-size: 32px !important;
    visibility: visible !important;
  }

  .maker-print-tagline {
    font-size: 14px !important;
    margin-top: 0 !important;
    line-height: 1.2 !important;
  }

  .maker-print-qr-note {
    margin-top: 4px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .maker-print-footer {
    margin-top: 8px !important;
    padding-top: 8px !important;
    font-size: 12px !important;
  }

  .maker-print-footer-url {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 720px) {
  .home-discovery-actions,
  .directory-actions {
    align-items: stretch;
  }

  .home-discovery-actions > a,
  .directory-actions > a {
    flex: 1 1 100%;
    width: 100%;
  }

  body.map-route .app-main {
    padding-top: calc(var(--header-h) + var(--safe-top) + var(--geo-bar-offset));
    padding-bottom: 0 !important;
  }

  .map-view-shell {
    width: 100vw;
    height: calc(100dvh - (var(--header-h) + var(--safe-top) + var(--geo-bar-offset)));
    min-height: calc(100svh - (var(--header-h) + var(--safe-top) + var(--geo-bar-offset)));
    margin: 0;
  }

  .map-location-prompt {
    padding: 14px 14px calc(76px + var(--safe-bottom));
  }

  .map-location-prompt-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .map-location-prompt-actions {
    flex-direction: column;
  }

  .map-location-prompt-actions .cta-btn,
  .map-location-prompt-actions .cta-btn-secondary {
    width: 100%;
  }

  .map-hero {
    padding: 18px 16px;
    border-radius: 24px;
  }

  .map-hero-title {
    max-width: none;
    font-size: clamp(22px, 6vw, 30px);
  }

  .map-hero-actions { align-items: stretch; }

  .map-hero-actions {
    align-items: stretch;
    min-width: 0;
  }

  .map-community-count {
    max-width: none;
    text-align: left;
  }

  .map-hero-action-row { justify-content: flex-start; }

  .map-hero-cta {
    width: 100%;
  }

  .map-controls {
    top: auto;
    bottom: calc(14px + 56px + var(--safe-bottom));
    width: calc(100% - 16px);
    gap: 8px;
  }

  .map-tabs {
    width: 100%;
    justify-content: center;
    gap: 6px;
    padding: 6px;
  }

  .map-tabs-label {
    display: none;
  }

  .map-tab {
    flex: 1 1 auto;
    min-height: 44px;
    font-size: 13px;
    padding: 10px 12px;
  }

  .map-location-indicator {
    display: none;
  }

  .map-hero-compact {
    left: 10px;
    right: 10px;
    bottom: calc(74px + 56px + var(--safe-bottom));
    max-width: none;
    padding: 8px 10px;
  }

  .map-hero-compact .map-hero-title {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .map-hero-compact .map-community-count {
    font-size: 11px;
  }

  .discovery-map {
    height: 100%;
    min-height: 0;
    border-radius: 0;
  }

  .map-loading {
    min-height: 0;
    border-radius: 0;
  }
}

/* Market card badges overlay */
.market-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.market-card-badges .open-status {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.88);
}
/* Hide arrow on new card style */
.market-card-arrow { display: none; }

/* Market card tags */
.market-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.market-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green-dark);
  letter-spacing: 0.02em;
}
.snap-tag {
  background: rgba(26, 107, 60, 0.15);
  color: var(--green);
}
.markets-footer-cta {
  text-align: center;
  padding: 32px 0 16px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}
.markets-footer-copy {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  max-width: 34ch;
  margin: 0 auto 14px;
}

.inventory-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 246, 239, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 28px rgba(34, 34, 34, 0.05);
}

.inventory-card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.inventory-card-copy,
.inventory-card-meta,
.inventory-card-feedback {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.inventory-card-feedback {
  margin-top: 10px;
  color: var(--green-dark);
  font-weight: 600;
}

.inventory-button-grid {
  display: grid;
  gap: 10px;
}

.inventory-button-grid-maker {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.inventory-button-grid-buyer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-choice-btn {
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(45, 110, 48, 0.14);
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.inventory-choice-btn:hover,
.inventory-choice-btn:focus-visible {
  border-color: rgba(45, 110, 48, 0.45);
  box-shadow: 0 8px 18px rgba(45, 110, 48, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.inventory-choice-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.inventory-choice-btn.is-active {
  background: rgba(45, 110, 48, 0.08);
  border-color: var(--green);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(45, 110, 48, 0.12);
}

.inventory-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.inventory-status-chip[hidden] {
  display: none !important;
}

.inventory-tone-available,
.inventory-tone-plenty {
  background: rgba(45, 110, 48, 0.12);
  color: var(--green-dark);
}

.inventory-tone-low,
.inventory-tone-limited,
.inventory-tone-going_fast {
  background: rgba(195, 132, 18, 0.14);
  color: #8a5b00;
}

.inventory-tone-plan {
  background: rgba(52, 84, 138, 0.12);
  color: #2f4d80;
}

.inventory-tone-last_few,
.inventory-tone-sold_out {
  background: rgba(165, 52, 39, 0.12);
  color: #8f2f22;
}

.inventory-tone-unknown {
  background: rgba(64, 71, 74, 0.1);
  color: var(--text-secondary);
}

.inventory-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.inventory-summary-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(45, 110, 48, 0.08);
}

@media (min-width: 720px) {
  .inventory-card-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .inventory-button-grid-buyer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .inventory-summary-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .inventory-button-grid-maker {
    grid-template-columns: 1fr;
  }
}
/* === MAKER PROFILE LAYOUT REVISION: calmer hierarchy === */
.profile-hero-quiet {
  max-height: 320px;
  background: #eef2ed;
  box-shadow: var(--shadow-sm);
}
.profile-hero-quiet img {
  width: 100%;
  height: min(320px, 36vw);
  object-fit: cover;
}
.profile-hero-quiet.portrait,
.profile-hero-quiet.portrait img {
  max-height: 320px;
}
.profile-hero-quiet.portrait img {
  object-fit: contain;
}

.maker-profile-header {
  margin: 14px 0 8px;
  padding: 20px 22px 18px;
  background: linear-gradient(160deg, #fdfaf2 0%, #f4f7ef 100%);
  border: 1px solid rgba(45, 110, 48, 0.12);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.maker-profile-header h1 {
  max-width: 880px;
  color: var(--green-dark);
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.maker-profile-summary {
  max-width: 820px;
  color: var(--text-secondary);
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.35;
}
.maker-profile-meta {
  margin-top: 12px;
}
.maker-profile-header .maker-primary-actions {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(45, 110, 48, 0.22);
}
.maker-primary-actions .cta-btn,
.maker-primary-actions .cta-btn-secondary,
.maker-primary-actions .cta-btn-inline {
  min-width: 0;
  min-height: 42px;
  padding: 0 18px;
}
.maker-primary-actions .heart-btn,
.maker-primary-actions .share-btn,
.maker-primary-actions button[aria-label*="Share"] {
  min-width: 42px;
}

.maker-profile-layout {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 32px;
  margin-top: 24px;
}
.maker-profile-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.maker-profile-mobile-sidebar,
.maker-profile-sidebar .maker-profile-mobile-sidebar {
  display: none;
}
.profile-section.maker-story-card {
  margin: 0;
  padding: 18px 20px;
  background: #fbf7ee;
  box-shadow: none;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
}
.maker-story-card .profile-section-title {
  color: var(--gold-strong);
}
.maker-story-card .profile-story {
  font-style: normal;
}
.maker-profile-facts {
  display: grid;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(45, 110, 48, 0.1);
  border-bottom: 1px solid rgba(45, 110, 48, 0.1);
}
.maker-fact-group {
  display: grid;
  gap: 8px;
}
.maker-sidebar-card,
.maker-empty-reviews {
  box-shadow: none;
  border-color: rgba(45, 110, 48, 0.1);
}
.maker-market-card {
  background: #f3f8f1;
  border-color: rgba(45, 110, 48, 0.18);
  border-top: 4px solid var(--green);
}
.maker-sidebar-card:not(.maker-market-card):not(.maker-owner-card) {
  background: #fffaf0;
  border-color: rgba(232, 168, 56, 0.2);
  border-top: 4px solid var(--gold);
}
.maker-owner-card {
  background: #fbf6ef;
  border-color: rgba(169, 128, 90, 0.26);
  border-top: 4px solid #a9805a;
}
.maker-owner-card strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
}
.maker-owner-card .cta-btn {
  width: 100%;
}
.maker-empty-reviews {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
}
.maker-empty-review-link {
  flex-shrink: 0;
}

.inventory-card.inventory-card-public {
  margin: 0;
  padding: 16px;
  background: rgba(248, 246, 239, 0.66);
  box-shadow: none;
  border-color: rgba(45, 110, 48, 0.1);
}
.inventory-card-public .inventory-card-header {
  margin-bottom: 10px;
}
.inventory-card-public .profile-section-title {
  font-size: 15px;
}
.inventory-card-public .inventory-card-copy {
  font-size: 13px;
}
.inventory-card-public .inventory-button-grid-buyer {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.inventory-card-public .inventory-choice-btn {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
}
.inventory-card-public .inventory-summary-list {
  margin-top: 10px;
}

.maker-freshness {
  color: var(--text-secondary);
  font-size: 13px;
  opacity: 0.85;
}

.maker-owner-card .maker-sidebar-label {
  color: var(--text-secondary);
}
.maker-owner-card .cta-btn-secondary {
  width: 100%;
}

.maker-sticky-spacer,
.maker-sticky-actions {
  display: none;
}

@media (max-width: 760px) {
  .profile-hero-quiet,
  .profile-hero-quiet.portrait,
  .profile-hero-quiet.portrait img {
    max-height: 260px;
  }
  .profile-hero-quiet img {
    height: min(260px, 60vw);
  }
  .maker-profile-header {
    padding-top: 14px;
  }
  .maker-sticky-spacer {
    display: block;
    height: calc(64px + env(safe-area-inset-bottom));
  }
  .maker-sticky-actions {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(45, 110, 48, 0.14);
  }
  .maker-sticky-actions .cta-btn,
  .maker-sticky-actions .cta-btn-secondary {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding: 0 10px;
    font-size: 14px;
    white-space: nowrap;
  }
  .maker-profile-header .maker-primary-actions {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .maker-profile-header .maker-primary-actions::-webkit-scrollbar {
    display: none;
  }
  .maker-profile-sidebar {
    display: none;
  }
  .maker-profile-main .maker-profile-mobile-sidebar {
    display: block;
  }
  .maker-profile-mobile-sidebar {
    margin: -2px 0 0;
    border-top-color: rgba(45, 84, 66, 0.22);
  }
  .maker-primary-actions .cta-btn,
  .maker-primary-actions .cta-btn-secondary {
    flex: 0 0 auto;
    min-width: 132px;
  }
  .maker-empty-reviews {
    align-items: flex-start;
    flex-direction: column;
  }
  .inventory-card-public .inventory-button-grid-buyer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === Airbnb-style maker profile dev refresh === */
.maker-profile-header.airbnb-maker-header {
  margin: 24px 0 22px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.maker-profile-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}
.maker-profile-header.airbnb-maker-header h1 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1.18;
  font-weight: 720;
  letter-spacing: -0.015em;
}
.maker-profile-header.airbnb-maker-header .maker-profile-summary {
  max-width: 760px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
}
.maker-profile-header.airbnb-maker-header .maker-profile-meta {
  margin-top: 10px;
  font-size: 14px;
}
.maker-profile-header.airbnb-maker-header .maker-primary-actions {
  justify-content: flex-end;
  margin: 0;
}
.maker-primary-actions.save-share {
  gap: 16px;
}
.maker-primary-actions.save-share .heart-btn,
.maker-primary-actions.save-share .share-btn {
  width: auto;
  min-width: 0;
  min-height: 0;
  height: 32px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}
.photo-gallery-shell,
.profile-hero-quiet {
  margin: 22px 0 0;
}
.photo-gallery-shell {
  border-radius: 14px;
  overflow: hidden;
}
.profile-hero.profile-hero-quiet {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
}
.maker-profile-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 72px;
  margin: 0 0 12px;
}
.maker-profile-main .profile-section,
.maker-profile-main .maker-profile-facts,
.maker-profile-main .inventory-card-public,
.maker-profile-main .community-notes-section {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 30px 0;
  margin: 0;
}
.profile-section.maker-story-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 30px 0;
  margin: 0;
}
.maker-story-card .profile-story {
  font-size: 16px;
  line-height: 1.55;
  font-style: normal;
  color: var(--text-primary);
  margin: 0;
}
.maker-profile-main .profile-section-title,
.maker-profile-main h2,
.community-notes-header .profile-section-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 720;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-transform: none;
  margin: 0 0 16px;
}
.maker-profile-main .maker-profile-facts {
  display: block;
}
.maker-fact-group + .maker-fact-group {
  margin-top: 22px;
}
.maker-info-label {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 800;
  margin-bottom: 12px;
}
.product-tags,
.practice-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.product-tag,
.practice-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}
.product-tag::before,
.practice-tag::before {
  content: '•';
  color: var(--green);
  font-size: 18px;
  margin-right: 10px;
}
.maker-info-list {
  display: grid;
  gap: 16px;
}
.maker-info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  font-size: 15px;
  line-height: 1.45;
}
.maker-where-section .small-link-btn,
.community-notes-section.community-tips-section .community-note-toggle {
  display: inline-flex;
  margin-top: 18px;
  border: 1px solid var(--text-primary);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text-primary);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
}
.community-notes-section.community-tips-section .community-note-toggle {
  margin-top: 0;
}
.inventory-card-public .inventory-card-header {
  align-items: flex-start;
}
.inventory-card-public .inventory-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}
.inventory-card-public .inventory-choice-btn {
  flex: 0 0 auto;
  min-height: 0;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
}
.review-card {
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.review-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.review-card-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.review-card-text {
  font-size: 15px;
  color: var(--text-primary);
}
.review-card-product,
.review-helpful {
  font-size: 13px !important;
}
.community-notes-section.community-tips-section .community-notes-header {
  align-items: baseline;
  margin-bottom: 12px;
}
.maker-profile-sidebar {
  top: 96px;
  gap: 16px;
}
.maker-sidebar-card {
  border: 1px solid #ddd;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  padding: 24px;
}
.maker-cta-card h2 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 720;
}
.maker-cta-fields {
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 4px 14px;
  margin-bottom: 12px;
}
.maker-cta-field {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 13.5px;
  line-height: 1.4;
}
.maker-cta-field:last-child {
  border-bottom: 0;
}
.maker-cta-field .maker-sidebar-label {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.maker-cta-actions {
  display: grid;
  gap: 8px;
}
.maker-social-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.maker-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
}
.maker-social-link {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.maker-social-link:hover {
  text-decoration: underline;
}
.maker-cta-actions .cta-btn,
.maker-cta-actions .cta-btn-secondary {
  width: 100%;
  min-height: 42px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 780;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.cta-btn-dark {
  background: #222;
  color: #fff;
}
.maker-private-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 10px 0 0;
}
.report-profile-link {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin: 8px 0;
}
.maker-owner-card {
  box-shadow: none;
  border-color: rgba(0,0,0,0.08);
}
@media (max-width: 900px) {
  .maker-profile-topline,
  .maker-profile-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .maker-profile-header.airbnb-maker-header .maker-primary-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }
  .maker-profile-sidebar {
    position: static;
    margin-top: 18px;
  }
  .product-tags,
  .practice-tags,
  .maker-info-row {
    grid-template-columns: 1fr;
  }
  .maker-info-row {
    gap: 4px;
  }
  .maker-sidebar-card {
    box-shadow: none;
  }
}
/* v13 comparison fixes */
.maker-profile-header.airbnb-maker-header {
  margin-bottom: 20px;
}
.maker-profile-header.airbnb-maker-header .maker-trust-strip {
  margin-top: 12px;
}
.maker-profile-meta {
  color: var(--text-muted);
}
.maker-cta-card .truststrip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.maker-cta-card .pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}
.maker-owner-tools-section p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.maker-owner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.maker-owner-actions .small-link-btn {
  margin-top: 0;
  background: transparent;
}
.maker-owner-card {
  display: none;
}
.maker-profile-tools {
  display: none;
}
@media (min-width: 901px) {
  .maker-profile-main .profile-section,
  .maker-profile-main .maker-profile-facts,
  .maker-profile-main .inventory-card-public,
  .maker-profile-main .community-notes-section {
    padding: 28px 0;
  }
}
/* closer to v13 mock: right rail is the only card, duplicate directions removed */
.maker-sidebar-card {
  background: #fff;
}
.maker-where-section .small-link-btn {
  display: none;
}
.maker-owner-tools-section {
  color: var(--text-secondary);
}
.maker-owner-tools-section .maker-owner-actions {
  opacity: 0.78;
}
.maker-owner-tools-section .maker-owner-actions .small-link-btn,
.maker-owner-tools-section .maker-owner-actions .text-action {
  font-size: 14px;
}
/* CTA rail corrections from review */
@media (min-width: 901px) {
  .maker-profile-sidebar {
    position: sticky !important;
    top: 76px !important;
    align-self: start;
    max-height: calc(100vh - 88px);
    overflow: visible;
  }
  .maker-cta-card {
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 104px);
    overflow: auto;
  }
}
.maker-cta-fields {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 14px;
}
.maker-cta-field {
  padding: 11px 0;
}
.maker-cta-card .truststrip,
.maker-cta-card .pill {
  display: none !important;
}
.maker-cta-card .report-profile-link {
  display: block;
  text-align: center;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
/* Airbnb-like CTA card: white, subtle, no colored alert stripe */
.maker-sidebar-card.maker-cta-card {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.14) !important;
  border-top: 1px solid rgba(0,0,0,0.14) !important;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08) !important;
}
/* Single-photo gallery: preserve full image, do not crop */
.profile-hero.profile-hero-quiet.profile-hero-single {
  height: clamp(320px, 42vw, 460px);
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ed;
  position: relative;
}
.profile-hero.profile-hero-quiet.profile-hero-single.has-photo-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--portrait-bg) center/cover no-repeat;
  filter: blur(12px) brightness(0.96) saturate(0.7);
  opacity: 0.28;
  transform: scale(1.04);
  z-index: 0;
}
.profile-hero.profile-hero-quiet.profile-hero-single img,
.profile-hero.profile-hero-quiet.profile-hero-single.portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 760px) {
  .profile-hero.profile-hero-quiet.profile-hero-single {
    height: clamp(240px, 68vw, 320px);
    max-height: none;
  }
}
/* Profile section typography/spacing cleanup */
.maker-profile-main .profile-section,
.maker-profile-main .maker-profile-facts,
.maker-profile-main .inventory-card-public,
.maker-profile-main .community-notes-section {
  padding: 26px 0;
}
.maker-products-section > .maker-info-label,
.maker-practices-section > .maker-info-label,
.maker-profile-main .profile-section-title,
.maker-profile-main h2,
.community-notes-section.community-tips-section .profile-section-title,
.inventory-card-public .profile-section-title {
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 720 !important;
  letter-spacing: -0.01em !important;
  color: var(--text-primary) !important;
  text-transform: none !important;
  margin: 0 0 16px !important;
}
.maker-fact-group + .maker-fact-group {
  margin-top: 30px;
}
.product-tags,
.practice-tags {
  gap: 10px 32px;
}
.product-tag,
.practice-tag {
  min-height: 24px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 450;
}
.product-tag::before,
.practice-tag::before {
  font-size: 15px;
  margin-right: 9px;
  line-height: 1;
}
.maker-where-section .maker-info-list {
  gap: 10px;
}
.maker-where-section .maker-info-row {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  font-size: 16px;
  line-height: 1.5;
}
.maker-where-section .maker-info-label,
.maker-cta-field .maker-sidebar-label {
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.community-notes-section.community-tips-section .community-notes-header {
  margin-bottom: 10px;
}
.community-notes-section.community-tips-section .community-note-toggle {
  padding: 8px 14px;
  font-size: 14px;
}
.community-notes-section.community-tips-section .community-empty,
.community-notes-section.community-tips-section > p,
.community-notes-section.community-tips-section .community-notes-empty,
.community-notes-section.community-tips-section .empty-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}
.maker-empty-reviews {
  display: block;
  padding: 24px 0 !important;
  color: var(--text-secondary);
}
.maker-empty-reviews p {
  max-width: 520px;
  margin: 0 0 12px !important;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.maker-empty-review-link {
  min-height: 38px;
  padding: 0 16px;
}
.inventory-card-public .inventory-card-copy,
.inventory-card-public .inventory-card-feedback,
.inventory-card-public .inventory-card-meta {
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: var(--text-secondary);
}
.inventory-card-public .inventory-button-grid {
  gap: 8px;
  margin: 12px 0 10px;
}
@media (max-width: 900px) {
  .maker-where-section .maker-info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
/* Component-level polish: action alignment, owner controls, feature icons */
.maker-section-header,
.community-notes-section.community-tips-section .community-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}
.maker-section-header .profile-section-title,
.community-notes-section.community-tips-section .community-notes-header .profile-section-title {
  margin: 0 !important;
}
.maker-section-action,
.community-notes-section.community-tips-section .community-note-toggle,
.maker-owner-actions .small-link-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1;
  font-weight: 650;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}
.maker-section-action:hover,
.community-notes-section.community-tips-section .community-note-toggle:hover,
.maker-owner-actions .small-link-btn:hover {
  border-color: rgba(0,0,0,0.32);
  background: #f7f7f5;
}
.maker-owner-actions .text-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.maker-empty-reviews p {
  margin-top: -2px !important;
}
.product-tag,
.practice-tag {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  column-gap: 11px;
}
.product-tag::before,
.practice-tag::before {
  content: none;
}
.maker-tag-icon {
  width: 22px;
  height: 22px;
  color: #3f3f3f;
  opacity: 0.82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.maker-tag-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.maker-where-section .maker-info-row {
  align-items: baseline;
  grid-template-columns: 112px minmax(0, 1fr);
}
.maker-where-section .maker-info-label {
  padding-top: 0;
  margin: 0;
  line-height: 1;
  align-self: baseline;
}
@media (max-width: 640px) {
  .maker-section-header,
  .community-notes-section.community-tips-section .community-notes-header {
    align-items: flex-start;
  }
  .maker-section-action,
  .community-notes-section.community-tips-section .community-note-toggle {
    flex-shrink: 0;
  }
}
/* Component polish follow-up: align info rows, modern owner button, cohesive icons */
.maker-where-section .maker-info-row {
  display: block;
  max-width: 540px;
}
.maker-where-section .maker-info-label {
  display: block;
  width: auto;
  margin: 0 0 6px;
  color: var(--text-muted);
}
.maker-where-section .maker-info-row > div:last-child {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
}
.maker-owner-actions .small-link-btn {
  border-color: rgba(0,0,0,0.42);
  color: #1f1f1f;
  font-weight: 700;
  border-radius: 9px;
  min-height: 40px;
  padding: 0 18px;
}
.maker-owner-actions .small-link-btn:hover {
  background: #f1f1ef;
  border-color: rgba(0,0,0,0.68);
}
.product-tag,
.practice-tag {
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 12px;
}
.maker-tag-icon {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: #fafafa;
  color: #444;
  opacity: 1;
}
.maker-tag-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}
/* Product/practice icon variants for visual review */
.product-tag[data-icon-variant],
.practice-tag[data-icon-variant] {
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 12px;
}
.product-tag[data-icon-variant="line"] .maker-tag-icon,
.practice-tag[data-icon-variant="line"] .maker-tag-icon {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2f2f2f;
}
.product-tag[data-icon-variant="line"] .maker-tag-icon svg,
.practice-tag[data-icon-variant="line"] .maker-tag-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.65;
}
.product-tag[data-icon-variant="emoji"],
.practice-tag[data-icon-variant="emoji"] {
  grid-template-columns: 30px minmax(0, 1fr);
}
.product-tag[data-icon-variant="emoji"] .maker-tag-icon,
.practice-tag[data-icon-variant="emoji"] .maker-tag-icon {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 999px;
  background: #f7f7f5;
  color: inherit;
  font-size: 16px;
  line-height: 1;
  filter: grayscale(0.12) saturate(0.88);
}
.product-tag[data-icon-variant="mark"],
.practice-tag[data-icon-variant="mark"] {
  grid-template-columns: 30px minmax(0, 1fr);
}
.product-tag[data-icon-variant="mark"] .maker-tag-icon,
.practice-tag[data-icon-variant="mark"] .maker-tag-icon {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.02em;
}
/* Product/practice lists: text-only, no unreliable icons or bullets */
.product-tags,
.practice-tags {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
}
.product-tag,
.practice-tag,
.product-tag[data-icon-variant],
.practice-tag[data-icon-variant] {
  display: block;
  min-height: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 450;
  color: var(--text-primary);
}
.product-tag::before,
.practice-tag::before,
.product-tag .maker-tag-icon,
.practice-tag .maker-tag-icon {
  display: none !important;
  content: none !important;
}
/* Product/practice lists: soft pill tags, no unreliable icons or bullets */
.product-tags,
.practice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.product-tag,
.practice-tag,
.product-tag[data-icon-variant],
.practice-tag[data-icon-variant] {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 999px;
  background: #f7f7f5;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 520;
  white-space: nowrap;
}
.product-tag::before,
.practice-tag::before,
.product-tag .maker-tag-icon,
.practice-tag .maker-tag-icon {
  display: none !important;
  content: none !important;
}
/* Profile palette preview variants */
body[data-profile-palette] {
  transition: background-color 0.18s ease;
}
body[data-profile-palette] .app-main {
  transition: background-color 0.18s ease;
}
body[data-profile-palette] .maker-profile-main .profile-section,
body[data-profile-palette] .maker-profile-main .maker-profile-facts,
body[data-profile-palette] .maker-profile-main .inventory-card-public,
body[data-profile-palette] .maker-profile-main .community-notes-section,
body[data-profile-palette] .maker-profile-main .maker-owner-tools-section {
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
body[data-profile-palette="clean"] {
  background: #ffffff;
}
body[data-profile-palette="clean"] .app-main {
  background: #ffffff;
}
body[data-profile-palette="clean"] .product-tag,
body[data-profile-palette="clean"] .practice-tag {
  background: #f7f7f7;
  border-color: rgba(0,0,0,0.11);
}
body[data-profile-palette="clean"] .maker-profile-main .profile-section,
body[data-profile-palette="clean"] .maker-profile-main .maker-profile-facts,
body[data-profile-palette="clean"] .maker-profile-main .inventory-card-public,
body[data-profile-palette="clean"] .maker-profile-main .community-notes-section,
body[data-profile-palette="clean"] .maker-profile-main .maker-owner-tools-section {
  border-bottom-color: #ebebeb;
}
body[data-profile-palette="cream"] {
  background: #fbf7ef;
}
body[data-profile-palette="cream"] .app-main {
  background: #fbf7ef;
}
body[data-profile-palette="cream"] .maker-sidebar-card.maker-cta-card,
body[data-profile-palette="cream"] .profile-hero.profile-hero-quiet.profile-hero-single {
  background: #fffdf8 !important;
}
body[data-profile-palette="cream"] .product-tag,
body[data-profile-palette="cream"] .practice-tag {
  background: #fffdf8;
  border-color: rgba(127, 92, 45, 0.16);
}
body[data-profile-palette="cream"] .maker-profile-main .profile-section,
body[data-profile-palette="cream"] .maker-profile-main .maker-profile-facts,
body[data-profile-palette="cream"] .maker-profile-main .inventory-card-public,
body[data-profile-palette="cream"] .maker-profile-main .community-notes-section,
body[data-profile-palette="cream"] .maker-profile-main .maker-owner-tools-section {
  border-bottom-color: rgba(127, 92, 45, 0.15);
}
body[data-profile-palette="sage"] {
  background: #f6f8f3;
}
body[data-profile-palette="sage"] .app-main {
  background: #f6f8f3;
}
body[data-profile-palette="sage"] .maker-sidebar-card.maker-cta-card {
  background: #ffffff !important;
  border-color: rgba(45, 96, 67, 0.14) !important;
}
body[data-profile-palette="sage"] .product-tag,
body[data-profile-palette="sage"] .practice-tag {
  background: #ffffff;
  border-color: rgba(45, 96, 67, 0.16);
}
body[data-profile-palette="sage"] .maker-profile-main .profile-section,
body[data-profile-palette="sage"] .maker-profile-main .maker-profile-facts,
body[data-profile-palette="sage"] .maker-profile-main .inventory-card-public,
body[data-profile-palette="sage"] .maker-profile-main .community-notes-section,
body[data-profile-palette="sage"] .maker-profile-main .maker-owner-tools-section {
  border-bottom-color: rgba(45, 96, 67, 0.14);
}
body[data-profile-palette="warm"] {
  background: #ffffff;
}
body[data-profile-palette="warm"] .app-main {
  background: #ffffff;
}
body[data-profile-palette="warm"] .product-tag,
body[data-profile-palette="warm"] .practice-tag,
body[data-profile-palette="warm"] .maker-empty-reviews,
body[data-profile-palette="warm"] .inventory-card-public .inventory-choice-btn {
  background: #fbfaf7;
  border-color: rgba(80, 67, 48, 0.12);
}
body[data-profile-palette="warm"] .maker-profile-main .profile-section,
body[data-profile-palette="warm"] .maker-profile-main .maker-profile-facts,
body[data-profile-palette="warm"] .maker-profile-main .inventory-card-public,
body[data-profile-palette="warm"] .maker-profile-main .community-notes-section,
body[data-profile-palette="warm"] .maker-profile-main .maker-owner-tools-section {
  border-bottom-color: #eee8df;
}
/* Consistent profile palette component system */
body[data-profile-palette] {
  --profile-page-bg: #fff;
  --profile-card-bg: #fff;
  --profile-section-line: #ebebeb;
  --profile-button-bg: #245b38;
  --profile-button-text: #fff;
  --profile-button-border: #245b38;
  --profile-button-hover-bg: #1d4b2e;
  --profile-outline-bg: #fff;
  --profile-outline-text: #245b38;
  --profile-outline-border: rgba(36, 91, 56, 0.35);
  --profile-pill-bg: #f6f6f4;
  --profile-pill-border: rgba(0,0,0,0.08);
  --profile-pill-text: #2f2f2f;
  background: var(--profile-page-bg);
}
body[data-profile-palette] .app-main {
  background: var(--profile-page-bg);
}
body[data-profile-palette="clean"] {
  --profile-page-bg: #ffffff;
  --profile-card-bg: #ffffff;
  --profile-section-line: #ededed;
  --profile-button-bg: #222222;
  --profile-button-text: #ffffff;
  --profile-button-border: #222222;
  --profile-button-hover-bg: #111111;
  --profile-outline-bg: #ffffff;
  --profile-outline-text: #222222;
  --profile-outline-border: rgba(0,0,0,0.26);
  --profile-pill-bg: #f7f7f7;
  --profile-pill-border: rgba(0,0,0,0.08);
  --profile-pill-text: #333333;
}
body[data-profile-palette="cream"] {
  --profile-page-bg: #fbf7ef;
  --profile-card-bg: #fffdf8;
  --profile-section-line: rgba(127, 92, 45, 0.16);
  --profile-button-bg: #315a36;
  --profile-button-text: #ffffff;
  --profile-button-border: #315a36;
  --profile-button-hover-bg: #26482b;
  --profile-outline-bg: #fffdf8;
  --profile-outline-text: #315a36;
  --profile-outline-border: rgba(49, 90, 54, 0.34);
  --profile-pill-bg: #fffaf1;
  --profile-pill-border: rgba(127, 92, 45, 0.16);
  --profile-pill-text: #3a3329;
}
body[data-profile-palette="sage"] {
  --profile-page-bg: #f6f8f3;
  --profile-card-bg: #ffffff;
  --profile-section-line: rgba(45, 96, 67, 0.14);
  --profile-button-bg: #28573b;
  --profile-button-text: #ffffff;
  --profile-button-border: #28573b;
  --profile-button-hover-bg: #20472f;
  --profile-outline-bg: #ffffff;
  --profile-outline-text: #28573b;
  --profile-outline-border: rgba(40, 87, 59, 0.33);
  --profile-pill-bg: #eef3ea;
  --profile-pill-border: rgba(45, 96, 67, 0.13);
  --profile-pill-text: #29372c;
}
body[data-profile-palette="warm"] {
  --profile-page-bg: #ffffff;
  --profile-card-bg: #ffffff;
  --profile-section-line: #eee7dc;
  --profile-button-bg: #245b38;
  --profile-button-text: #ffffff;
  --profile-button-border: #245b38;
  --profile-button-hover-bg: #1d4b2e;
  --profile-outline-bg: #ffffff;
  --profile-outline-text: #245b38;
  --profile-outline-border: rgba(36, 91, 56, 0.3);
  --profile-pill-bg: #fbf8f1;
  --profile-pill-border: rgba(107, 81, 45, 0.12);
  --profile-pill-text: #333026;
}
body[data-profile-palette] .maker-sidebar-card.maker-cta-card,
body[data-profile-palette] .profile-hero.profile-hero-quiet.profile-hero-single {
  background: var(--profile-card-bg) !important;
}
body[data-profile-palette] .maker-profile-main .profile-section,
body[data-profile-palette] .maker-profile-main .maker-profile-facts,
body[data-profile-palette] .maker-profile-main .inventory-card-public,
body[data-profile-palette] .maker-profile-main .community-notes-section,
body[data-profile-palette] .maker-profile-main .maker-owner-tools-section {
  border-bottom-color: var(--profile-section-line) !important;
}
body[data-profile-palette] .product-tag,
body[data-profile-palette] .practice-tag,
body[data-profile-palette] .product-tag[data-icon-variant],
body[data-profile-palette] .practice-tag[data-icon-variant] {
  background: var(--profile-pill-bg) !important;
  border-color: var(--profile-pill-border) !important;
  color: var(--profile-pill-text) !important;
  box-shadow: none !important;
  cursor: default;
}
body[data-profile-palette] .maker-section-action,
body[data-profile-palette] .community-notes-section.community-tips-section .community-note-toggle,
body[data-profile-palette] .maker-owner-actions .small-link-btn,
body[data-profile-palette] .maker-empty-review-link,
body[data-profile-palette] .inventory-card-public .inventory-choice-btn {
  background: var(--profile-outline-bg) !important;
  color: var(--profile-outline-text) !important;
  border-color: var(--profile-outline-border) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}
body[data-profile-palette] .maker-cta-actions .cta-btn,
body[data-profile-palette] .maker-cta-actions .cta-btn.cta-btn-dark {
  background: var(--profile-button-bg) !important;
  color: var(--profile-button-text) !important;
  border: 1px solid var(--profile-button-border) !important;
  border-radius: 9px !important;
}
body[data-profile-palette] .maker-cta-actions .cta-btn:hover,
body[data-profile-palette] .maker-cta-actions .cta-btn.cta-btn-dark:hover {
  background: var(--profile-button-hover-bg) !important;
}
body[data-profile-palette] .maker-cta-actions .cta-btn-secondary {
  background: var(--profile-outline-bg) !important;
  color: var(--profile-outline-text) !important;
  border: 1px solid var(--profile-outline-border) !important;
  border-radius: 9px !important;
}
/* Community/vouch action placement cleanup */
.community-notes-section.community-tips-section .community-notes-header,
.maker-empty-reviews .maker-section-header,
.maker-vouches-section .maker-section-header {
  margin-bottom: 10px !important;
}
.community-note-action-row,
.maker-section-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.community-note-action-row .community-note-toggle,
.maker-section-actions .maker-section-action,
body[data-profile-palette] .community-note-action-row .community-note-toggle,
body[data-profile-palette] .maker-section-actions .maker-section-action {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 9px !important;
  font-size: 14px;
  line-height: 1;
  font-weight: 650;
  text-decoration: none;
  background: var(--profile-outline-bg, #fff) !important;
  color: var(--profile-outline-text, var(--text-primary)) !important;
  border: 1px solid var(--profile-outline-border, rgba(0,0,0,0.18)) !important;
  box-shadow: none !important;
}
.maker-empty-reviews,
body[data-profile-palette] .maker-empty-reviews {
  display: block !important;
  margin-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--profile-section-line, #ebebeb) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
}
.maker-empty-reviews p,
body[data-profile-palette] .maker-empty-reviews p {
  margin: 0 !important;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .community-note-action-row,
  .maker-section-actions {
    margin-top: 12px;
  }
}
/* Alternative profile palette options */
body[data-profile-palette="meadow"] {
  --profile-page-bg: #f2f7ee;
  --profile-card-bg: #ffffff;
  --profile-section-line: rgba(52, 95, 54, 0.16);
  --profile-button-bg: #2f6b3f;
  --profile-button-text: #ffffff;
  --profile-button-border: #2f6b3f;
  --profile-button-hover-bg: #255732;
  --profile-outline-bg: #ffffff;
  --profile-outline-text: #2f6b3f;
  --profile-outline-border: rgba(47, 107, 63, 0.34);
  --profile-pill-bg: #eaf3e4;
  --profile-pill-border: rgba(47, 107, 63, 0.12);
  --profile-pill-text: #263729;
}
body[data-profile-palette="honey"] {
  --profile-page-bg: #fff7e6;
  --profile-card-bg: #fffdf8;
  --profile-section-line: rgba(124, 92, 30, 0.18);
  --profile-button-bg: #4f5f2e;
  --profile-button-text: #ffffff;
  --profile-button-border: #4f5f2e;
  --profile-button-hover-bg: #424f26;
  --profile-outline-bg: #fffdf8;
  --profile-outline-text: #4f5f2e;
  --profile-outline-border: rgba(79, 95, 46, 0.34);
  --profile-pill-bg: #fff0c9;
  --profile-pill-border: rgba(124, 92, 30, 0.15);
  --profile-pill-text: #3a321e;
}
body[data-profile-palette="clay"] {
  --profile-page-bg: #faf1eb;
  --profile-card-bg: #fffaf6;
  --profile-section-line: rgba(133, 75, 51, 0.16);
  --profile-button-bg: #7a4635;
  --profile-button-text: #ffffff;
  --profile-button-border: #7a4635;
  --profile-button-hover-bg: #63382a;
  --profile-outline-bg: #fffaf6;
  --profile-outline-text: #7a4635;
  --profile-outline-border: rgba(122, 70, 53, 0.32);
  --profile-pill-bg: #f7e6dc;
  --profile-pill-border: rgba(122, 70, 53, 0.13);
  --profile-pill-text: #3d2f2a;
}
body[data-profile-palette="slate"] {
  --profile-page-bg: #f5f7f7;
  --profile-card-bg: #ffffff;
  --profile-section-line: rgba(45, 58, 60, 0.14);
  --profile-button-bg: #2f3f42;
  --profile-button-text: #ffffff;
  --profile-button-border: #2f3f42;
  --profile-button-hover-bg: #253234;
  --profile-outline-bg: #ffffff;
  --profile-outline-text: #2f3f42;
  --profile-outline-border: rgba(47, 63, 66, 0.30);
  --profile-pill-bg: #edf1f1;
  --profile-pill-border: rgba(47, 63, 66, 0.10);
  --profile-pill-text: #293234;
}
/* Slate+ Opus 4.8 engagement pass */
body[data-profile-palette="slateplus"] {
  --profile-page-bg: #eef1f1;
  --profile-card-bg: #ffffff;
  --profile-section-line: rgba(45, 58, 60, 0.16);
  --profile-button-bg: #2f3f42;
  --profile-button-text: #ffffff;
  --profile-button-border: #2f3f42;
  --profile-button-hover-bg: #253234;
  --profile-outline-bg: #ffffff;
  --profile-outline-text: #2f3f42;
  --profile-outline-border: rgba(47, 63, 66, 0.28);
  --profile-pill-bg: #e3e9e8;
  --profile-pill-border: transparent;
  --profile-pill-text: #2d3a3c;
  --profile-accent: #1f6a5a;
  --profile-accent-tint: rgba(31, 106, 90, 0.08);
  --profile-warm-ink: #1f2421;
}
body[data-profile-palette="slateplus"] .maker-sidebar-card.maker-cta-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(45, 58, 60, 0.10) !important;
  box-shadow: 0 1px 2px rgba(16, 24, 24, 0.05), 0 10px 28px rgba(16, 24, 24, 0.10) !important;
}
body[data-profile-palette="slateplus"] .maker-sidebar-card.maker-cta-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--profile-accent);
}
body[data-profile-palette="slateplus"] .maker-profile-header h1,
body[data-profile-palette="slateplus"] .profile-section-title,
body[data-profile-palette="slateplus"] .maker-sidebar-card h2,
body[data-profile-palette="slateplus"] .maker-where-section h2 {
  color: var(--profile-warm-ink) !important;
}
body[data-profile-palette="slateplus"] .maker-info-label,
body[data-profile-palette="slateplus"] .maker-sidebar-label,
body[data-profile-palette="slateplus"] .maker-cta-label {
  color: var(--profile-accent) !important;
}
body[data-profile-palette="slateplus"] .text-action,
body[data-profile-palette="slateplus"] .report-profile-link,
body[data-profile-palette="slateplus"] .maker-private-note a {
  color: var(--profile-accent) !important;
}
body[data-profile-palette="slateplus"] .product-tag,
body[data-profile-palette="slateplus"] .practice-tag,
body[data-profile-palette="slateplus"] .inventory-card-public .inventory-choice-btn {
  border-color: transparent !important;
  box-shadow: none !important;
}
body[data-profile-palette="slateplus"] .inventory-card-public .inventory-choice-btn {
  background: var(--profile-accent-tint) !important;
  color: var(--profile-accent) !important;
}
body[data-profile-palette="slateplus"] .maker-profile-meta,
body[data-profile-palette="slateplus"] .maker-profile-summary {
  color: rgba(45, 58, 60, 0.72) !important;
}
body[data-profile-palette="slateplus"] .maker-cta-actions .cta-btn:focus-visible,
body[data-profile-palette="slateplus"] .maker-section-action:focus-visible,
body[data-profile-palette="slateplus"] .community-note-toggle:focus-visible {
  outline: 3px solid var(--profile-accent-tint);
  outline-offset: 2px;
}
/* Slate++ Opus 4.8 depth pass */
body[data-profile-palette="slateplusplus"] {
  --profile-page-bg: #f4f2ee;
  --profile-card-bg: #ffffff;
  --profile-section-line: #e2ddd4;
  --profile-button-bg: #2f3f42;
  --profile-button-text: #ffffff;
  --profile-button-border: #2f3f42;
  --profile-button-hover-bg: #253234;
  --profile-outline-bg: #ffffff;
  --profile-outline-text: #2f3f42;
  --profile-outline-border: rgba(47, 63, 66, 0.30);
  --profile-pill-bg: #ece9e3;
  --profile-pill-border: #e2ddd4;
  --profile-pill-text: #1c1917;
  --profile-accent: #2f5d57;
  --profile-accent-tint: rgba(47, 93, 87, 0.10);
  --profile-warm-ink: #1c1917;
  --profile-body-ink: #44403c;
  --profile-muted-ink: #78716c;
  --profile-shadow-sm: 0 1px 2px rgba(28,25,23,0.04), 0 1px 3px rgba(28,25,23,0.06);
  --profile-shadow-md: 0 4px 12px rgba(28,25,23,0.06), 0 2px 4px rgba(28,25,23,0.05);
  --profile-shadow-cta: 0 12px 32px rgba(28,25,23,0.10), 0 4px 8px rgba(28,25,23,0.06);
}
@media (min-width: 901px) {
  body[data-profile-palette="slateplusplus"] .maker-profile-layout {
    margin-top: -26px;
    position: relative;
    z-index: 2;
  }
}
body[data-profile-palette="slateplusplus"] .profile-hero.profile-hero-quiet,
body[data-profile-palette="slateplusplus"] .photo-mosaic {
  box-shadow: var(--profile-shadow-md), inset 0 0 0 1px rgba(28,25,23,0.06) !important;
}
body[data-profile-palette="slateplusplus"] .maker-profile-main .profile-section,
body[data-profile-palette="slateplusplus"] .maker-profile-main .maker-profile-facts,
body[data-profile-palette="slateplusplus"] .maker-profile-main .inventory-card-public,
body[data-profile-palette="slateplusplus"] .maker-profile-main .community-notes-section,
body[data-profile-palette="slateplusplus"] .maker-profile-main .maker-owner-tools-section {
  position: relative;
  background: var(--profile-card-bg) !important;
  border: 1px solid var(--profile-section-line) !important;
  border-radius: 14px !important;
  padding: 24px 28px !important;
  margin-bottom: 18px !important;
  box-shadow: var(--profile-shadow-sm) !important;
}
body[data-profile-palette="slateplusplus"] .maker-profile-main .profile-section::before,
body[data-profile-palette="slateplusplus"] .maker-profile-main .maker-profile-facts::before,
body[data-profile-palette="slateplusplus"] .maker-profile-main .inventory-card-public::before,
body[data-profile-palette="slateplusplus"] .maker-profile-main .community-notes-section::before,
body[data-profile-palette="slateplusplus"] .maker-profile-main .maker-owner-tools-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: var(--profile-accent);
  opacity: 0.8;
}
body[data-profile-palette="slateplusplus"] .profile-section-title,
body[data-profile-palette="slateplusplus"] .maker-where-section h2,
body[data-profile-palette="slateplusplus"] .maker-sidebar-card h2 {
  color: var(--profile-warm-ink) !important;
  font-weight: 680 !important;
  letter-spacing: -0.01em;
}
body[data-profile-palette="slateplusplus"] .profile-story,
body[data-profile-palette="slateplusplus"] .maker-info-row,
body[data-profile-palette="slateplusplus"] .community-notes-section p,
body[data-profile-palette="slateplusplus"] .maker-empty-reviews p,
body[data-profile-palette="slateplusplus"] .inventory-card-copy {
  color: var(--profile-body-ink) !important;
}
body[data-profile-palette="slateplusplus"] .maker-info-label,
body[data-profile-palette="slateplusplus"] .maker-sidebar-label,
body[data-profile-palette="slateplusplus"] .maker-cta-label {
  color: var(--profile-muted-ink) !important;
  letter-spacing: 0.07em;
}
body[data-profile-palette="slateplusplus"] .maker-sidebar-card.maker-cta-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(28,25,23,0.10) !important;
  box-shadow: var(--profile-shadow-cta) !important;
}
body[data-profile-palette="slateplusplus"] .maker-sidebar-card.maker-cta-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--profile-accent);
}
body[data-profile-palette="slateplusplus"] .product-tag,
body[data-profile-palette="slateplusplus"] .practice-tag {
  border: 1px solid var(--profile-pill-border) !important;
  border-radius: 8px !important;
  padding: 6px 11px !important;
  font-weight: 550 !important;
  box-shadow: none !important;
  cursor: default !important;
}
body[data-profile-palette="slateplusplus"] .text-action,
body[data-profile-palette="slateplusplus"] .report-profile-link,
body[data-profile-palette="slateplusplus"] .maker-private-note a {
  color: var(--profile-accent) !important;
}
body[data-profile-palette="slateplusplus"] .inventory-card-public .inventory-choice-btn {
  background: var(--profile-pill-bg) !important;
  color: var(--profile-pill-text) !important;
  border-color: var(--profile-pill-border) !important;
}
/* Slate bubble layout experiment */
.maker-bubble-title {
  display: none;
}
body[data-profile-palette="slatebubbles"] {
  --profile-page-bg: #f2f4f3;
  --profile-card-bg: #ffffff;
  --profile-section-line: rgba(47, 63, 66, 0.14);
  --profile-button-bg: #2f3f42;
  --profile-button-text: #ffffff;
  --profile-button-border: #2f3f42;
  --profile-button-hover-bg: #253234;
  --profile-outline-bg: #ffffff;
  --profile-outline-text: #2f3f42;
  --profile-outline-border: rgba(47, 63, 66, 0.28);
  --profile-pill-bg: #eef1f0;
  --profile-pill-border: rgba(47, 63, 66, 0.10);
  --profile-pill-text: #263133;
  --profile-warm-ink: #202729;
  --profile-body-ink: #3f494b;
  --profile-muted-ink: #717b7d;
  --profile-bubble-border: rgba(47, 63, 66, 0.13);
  --profile-bubble-shadow: 0 8px 24px rgba(24, 32, 34, 0.07), 0 1px 2px rgba(24, 32, 34, 0.04);
}
body[data-profile-palette="slatebubbles"] .maker-profile-layout {
  margin-top: 0 !important;
  align-items: start;
}
body[data-profile-palette="slatebubbles"] .maker-profile-main {
  gap: 18px !important;
}
body[data-profile-palette="slatebubbles"] .maker-profile-bubble {
  background: var(--profile-card-bg);
  border: 1px solid var(--profile-bubble-border);
  border-radius: 22px;
  box-shadow: var(--profile-bubble-shadow);
  padding: 24px 26px;
}
body[data-profile-palette="slatebubbles"] .maker-profile-bubble > .profile-section,
body[data-profile-palette="slatebubbles"] .maker-profile-bubble > .maker-profile-facts,
body[data-profile-palette="slatebubbles"] .maker-profile-bubble > .maker-where-section,
body[data-profile-palette="slatebubbles"] .maker-profile-bubble > .inventory-card-public,
body[data-profile-palette="slatebubbles"] .maker-profile-bubble > .community-notes-section,
body[data-profile-palette="slatebubbles"] .maker-profile-bubble > .maker-owner-tools-section {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--profile-section-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 0 20px !important;
  padding: 0 0 20px !important;
}
body[data-profile-palette="slatebubbles"] .maker-profile-bubble > *:last-child,
body[data-profile-palette="slatebubbles"] .maker-profile-bubble > .maker-owner-tools-section:last-child {
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body[data-profile-palette="slatebubbles"] .maker-profile-bubble > .profile-section::before,
body[data-profile-palette="slatebubbles"] .maker-profile-bubble > .maker-profile-facts::before,
body[data-profile-palette="slatebubbles"] .maker-profile-bubble > .inventory-card-public::before,
body[data-profile-palette="slatebubbles"] .maker-profile-bubble > .community-notes-section::before,
body[data-profile-palette="slatebubbles"] .maker-profile-bubble > .maker-owner-tools-section::before {
  content: none !important;
}
body[data-profile-palette="slatebubbles"] .maker-bubble-title {
  display: block;
  margin-bottom: 10px;
}
body[data-profile-palette="slatebubbles"] .profile-section-title,
body[data-profile-palette="slatebubbles"] .maker-where-section h2,
body[data-profile-palette="slatebubbles"] .maker-sidebar-card h2 {
  color: var(--profile-warm-ink) !important;
  font-weight: 680 !important;
  letter-spacing: -0.01em;
}
body[data-profile-palette="slatebubbles"] .profile-story,
body[data-profile-palette="slatebubbles"] .maker-info-row,
body[data-profile-palette="slatebubbles"] .community-notes-section p,
body[data-profile-palette="slatebubbles"] .maker-empty-reviews p,
body[data-profile-palette="slatebubbles"] .inventory-card-copy {
  color: var(--profile-body-ink) !important;
}
body[data-profile-palette="slatebubbles"] .maker-info-label,
body[data-profile-palette="slatebubbles"] .maker-sidebar-label,
body[data-profile-palette="slatebubbles"] .maker-cta-label {
  color: var(--profile-muted-ink) !important;
  letter-spacing: 0.07em;
}
body[data-profile-palette="slatebubbles"] .product-tag,
body[data-profile-palette="slatebubbles"] .practice-tag {
  border-color: var(--profile-pill-border) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  cursor: default !important;
}
body[data-profile-palette="slatebubbles"] .maker-sidebar-card.maker-cta-card {
  border-color: var(--profile-bubble-border) !important;
  box-shadow: 0 10px 28px rgba(24, 32, 34, 0.09), 0 1px 2px rgba(24, 32, 34, 0.05) !important;
}
body[data-profile-palette="slatebubbles"] .maker-sidebar-card.maker-cta-card::before {
  content: none !important;
}
body[data-profile-palette="slatebubbles"] .text-action,
body[data-profile-palette="slatebubbles"] .report-profile-link,
body[data-profile-palette="slatebubbles"] .maker-private-note a {
  color: #425b5f !important;
}
@media (max-width: 900px) {
  body[data-profile-palette="slatebubbles"] .maker-profile-bubble {
    border-radius: 18px;
    padding: 20px;
  }
}
/* Slate bubble spacing polish */
body[data-profile-palette="slatebubbles"] .maker-profile-layout {
  margin-top: 18px !important;
}

/* Market bubble profile layout */
body[data-market-profile-style="slatebubbles"] .app-main {
  background: #f2f4f3;
}
body[data-market-profile-style="slatebubbles"] .market-photo-hero,
body[data-market-profile-style="slatebubbles"] .market-hero-slate {
  margin-top: 22px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(24, 32, 34, 0.07), 0 1px 2px rgba(24, 32, 34, 0.04);
}
body[data-market-profile-style="slatebubbles"] .market-hero-slate {
  background: #2f3f42;
  color: #fff;
}
body[data-market-profile-style="slatebubbles"] .market-hero-slate::before,
body[data-market-profile-style="slatebubbles"] .market-hero-slate::after {
  content: none;
}
body[data-market-profile-style="slatebubbles"] .market-profile-stats {
  margin-top: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: #647073;
}
.market-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}
.market-profile-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.market-profile-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}
.market-profile-bubble,
.market-cta-card {
  background: #fff;
  border: 1px solid rgba(47, 63, 66, 0.13);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(24, 32, 34, 0.07), 0 1px 2px rgba(24, 32, 34, 0.04);
}
.market-profile-bubble {
  padding: 24px 26px;
}
.market-profile-bubble > .profile-section,
.market-profile-bubble > .market-visit-details,
.market-profile-bubble > .community-flag,
.market-profile-bubble > .inline-manage {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(47, 63, 66, 0.14) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 0 20px !important;
  padding: 0 0 20px !important;
}
.market-profile-bubble > *:last-child {
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.market-bubble-title {
  display: block;
  margin-bottom: 10px;
  color: #202729 !important;
  font-weight: 680 !important;
  letter-spacing: -0.01em;
}
.market-profile-bubble .market-info-grid {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.market-profile-bubble .maker-info-label,
.market-cta-card .maker-cta-label,
.market-cta-details strong {
  color: #717b7d !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 11px;
}
.market-inline-action {
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid rgba(47, 63, 66, 0.28);
  border-radius: 9px;
  padding: 8px 12px;
  color: #2f3f42;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 720;
}
.market-bubble-actions {
  margin-top: 18px;
}
.market-empty-makers.empty-state {
  margin: 0;
  padding: 18px 0 0;
  background: transparent;
  box-shadow: none;
}
.market-cta-card {
  padding: 24px;
}
.market-cta-card .maker-cta-title {
  color: #202729;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 760;
  letter-spacing: -0.02em;
}
.market-cta-details {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid rgba(47, 63, 66, 0.12);
  border-bottom: 1px solid rgba(47, 63, 66, 0.12);
}
.market-cta-details div {
  display: grid;
  gap: 3px;
  font-size: 14px;
  line-height: 1.45;
  color: #3f494b;
}
.market-cta-secondary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.market-edit-jump {
  display: block;
  margin: 14px auto 0;
}
.market-profile-footer-links {
  padding-top: 18px;
  text-align: center;
}
body[data-market-profile-style="slatebubbles"] .market-profile-bubble .community-notes-section p,
body[data-market-profile-style="slatebubbles"] .market-profile-bubble .profile-story {
  color: #3f494b !important;
}
@media (max-width: 900px) {
  .market-profile-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .market-profile-sidebar {
    position: static;
  }
  .market-profile-bubble,
  .market-cta-card {
    border-radius: 18px;
    padding: 20px;
  }
}

body[data-market-profile-style="slatebubbles"] .maker-sidebar-card.market-cta-card {
  background: #fff !important;
  border: 1px solid rgba(47, 63, 66, 0.13) !important;
  border-top: 1px solid rgba(47, 63, 66, 0.13) !important;
  box-shadow: 0 8px 24px rgba(24, 32, 34, 0.07), 0 1px 2px rgba(24, 32, 34, 0.04) !important;
}

body[data-market-profile-style="slatebubbles"] .market-cta-actions .cta-btn {
  background: #2f3f42 !important;
  border: 1px solid #2f3f42 !important;
  color: #fff !important;
}
body[data-market-profile-style="slatebubbles"] .market-cta-actions .cta-btn-secondary {
  background: #fff !important;
  border: 1px solid rgba(47, 63, 66, 0.28) !important;
  color: #2f3f42 !important;
}

/* === STAND & AVAILABILITY MODULE === */
.stand-signal-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(47, 63, 66, 0.05);
}
.stand-signal-value {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}
.stand-signal-hero .stand-source-line {
  margin: 0;
  color: inherit;
  opacity: 0.85;
}
.stand-report-prompt {
  margin: 14px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-secondary, #5a6668);
}
.inventory-hint-group {
  margin-top: 12px;
}
.inventory-hint-group-label {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}
.inventory-hint-group-label span {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-secondary, #5a6668);
}
.stand-source-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stand-source-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stand-source-producer {
  background: rgba(64, 121, 80, 0.14);
  color: #2f5a3c;
}
.stand-source-neighbors {
  background: rgba(47, 63, 66, 0.1);
  color: #2f3f42;
}
.stand-open-context {
  margin: 4px 0 2px;
}
.producer-availability-pitch {
  border-left: 3px solid rgba(64, 121, 80, 0.4);
  padding-left: 10px;
  color: var(--text-secondary, #5a6668);
}

/* === OWNER PHOTO CONTROLS === */
.owner-photo-actions {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 18px;
  align-items: start;
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.owner-photo-current {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f4ef;
}
.owner-photo-current img,
.owner-photo-empty {
  width: 100%;
  height: 100%;
}
.owner-photo-current img {
  display: block;
  object-fit: cover;
}
.owner-photo-empty {
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--text-muted);
  text-align: center;
}
.owner-photo-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.owner-photo-attestation {
  align-items: flex-start;
  margin: 0;
}
.owner-photo-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.owner-photo-button-grid button {
  min-height: 44px;
}
#owner-photo-feedback {
  margin: 0;
  color: var(--text-secondary, #5a6668);
}
@media (max-width: 680px) {
  .owner-photo-actions,
  .owner-photo-button-grid {
    grid-template-columns: 1fr;
  }
}

/* Market community corrections */
.market-corrections-panel {
  display: grid;
  gap: 16px;
}
.market-corrections-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.market-corrections-header p,
.market-corrections-rule,
.market-correction-consensus,
.community-report-scope,
.form-help,
.market-correction-current-help {
  margin: 6px 0 0;
  color: #4d5d53;
  font-size: 0.94rem;
  line-height: 1.45;
}
.market-corrections-toggle,
.market-correction-small-btn,
.market-correction-submit {
  min-height: 44px;
}
.market-corrections-toggle,
.market-correction-small-btn {
  border: 1px solid rgba(26, 107, 60, 0.22);
  background: #fff;
  color: #174c2d;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.market-correction-small-btn.secondary {
  background: #f4f7f2;
}
.market-corrections-toggle[aria-expanded="true"] {
  background: #174c2d;
  color: #fff;
}
.market-corrections-body,
.market-correction-form,
.market-correction-open-rounds,
.market-correction-history {
  display: grid;
  gap: 14px;
}
.market-corrections-status {
  border-radius: 8px;
  background: #edf6ef;
  color: #174c2d;
  padding: 12px 14px;
  font-weight: 700;
}
.market-corrections-status.error {
  background: #fff2f0;
  color: #8a2d1c;
}
.market-corrections-status.success {
  background: #eef8f0;
  color: #176032;
}
.market-corrections-current-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.market-correction-current,
.market-correction-round {
  border: 1px solid rgba(26, 107, 60, 0.14);
  border-radius: 8px;
  background: #fff;
}
.market-correction-current {
  padding: 10px 12px;
  min-width: 0;
}
.market-correction-current-label {
  display: block;
  color: #637166;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}
.market-correction-current-value {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 3px;
  color: #1f2d24;
}
.market-correction-form,
.market-correction-open-rounds,
.market-correction-history {
  border-top: 1px solid rgba(26, 107, 60, 0.12);
  padding-top: 14px;
}
.market-correction-form .form-input,
.market-correction-form .form-textarea {
  width: 100%;
  min-height: 44px;
}
.market-correction-form .form-textarea {
  min-height: 96px;
}
.market-correction-open-rounds h3,
.market-correction-history h3,
.market-correction-round h4,
.market-correction-round p,
.market-correction-candidate p {
  margin: 0;
}
.market-correction-round {
  display: grid;
  gap: 12px;
  padding: 12px;
}
.market-correction-round-head,
.market-correction-candidate,
.market-correction-vote,
.market-correction-current-vote {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.market-correction-round-head,
.market-correction-candidate {
  justify-content: space-between;
}
.market-correction-candidates,
.market-correction-history-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.market-correction-candidate-main {
  min-width: 0;
}
.market-correction-candidate-main strong,
.market-correction-history-list strong {
  overflow-wrap: anywhere;
}
.market-correction-evidence-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
}
.market-correction-vote,
.market-correction-current-vote {
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 132px;
}
.market-correction-vote span,
.market-correction-current-vote span {
  width: 100%;
  color: #53645a;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}
.market-correction-history-list li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid rgba(26, 107, 60, 0.1);
  padding-bottom: 10px;
}
.market-correction-history-list span,
.market-correction-history-list small,
.market-correction-empty {
  color: #637166;
}
.market-correction-empty {
  font-weight: 700;
}
@media (max-width: 640px) {
  .market-corrections-header,
  .market-correction-round-head,
  .market-correction-candidate {
    display: grid;
  }
  .market-corrections-current-grid {
    grid-template-columns: 1fr;
  }
  .market-correction-vote,
  .market-correction-current-vote {
    justify-content: stretch;
    min-width: 0;
  }
  .market-correction-vote span,
  .market-correction-current-vote span {
    text-align: left;
  }
}
