/*
 * Marketplace frame for the home, directory, and profile views.
 * Spacing rules stay in mobile-layout.css and resources/css/mobile.css.
 */
.marketplace-frame {
  color: #0a0a0a;
  background: #ffffff;
  border-radius: 16px;
}

.marketplace-frame .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.marketplace-frame .chip,
.agent-open {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #f2f0ef;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 500;
}

.marketplace-frame .chip.on {
  background: #0a0a0a;
  color: #ffffff;
}

.marketplace-frame .filters {
  margin: 0 0 8px;
}

.marketplace-frame .searchbox {
  width: 100%;
  min-height: 44px;
  border: 1px solid #eceae6;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  background: #ffffff;
  color: #0a0a0a;
}

.marketplace-frame .section-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 28px 0 12px;
}

.marketplace-frame .section-h h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.marketplace-frame .section-h a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #5c5c5c;
  font-size: 14px;
  font-weight: 500;
}

.marketplace-frame .featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.marketplace-frame .tile {
  border: 1px solid #eceae6;
  border-radius: 16px;
  padding: 16px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #0a0a0a;
}

.marketplace-frame .mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f4f2ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.marketplace-frame .muted,
.marketplace-frame .copy p {
  margin: 2px 0 0;
  color: #5c5c5c;
  font-size: 14px;
}

.marketplace-frame .cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.marketplace-frame .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  min-height: 44px;
  color: #0a0a0a;
}

.marketplace-frame .copy {
  flex: 1;
  min-width: 0;
}

.marketplace-frame .pill {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f2f0ef;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .marketplace-frame .featured,
  .marketplace-frame .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .marketplace-frame .featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
