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

.community-loading,
.community-empty,
.community-error {
  grid-column: 1 / -1;
  min-height: 120px;
  margin: 0;
  display: grid;
  place-items: center;
  color: #5d665f;
  background: #f4f6f4;
}

.community-design-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e5e1;
  border-radius: 8px;
  background: #fff;
}

.community-design-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ede8df url("../generated/jewdiy-editor-silk-tray-bg-20260609.jpg") center / cover no-repeat;
}

.community-finished-product-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.community-bracelet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(74%, 280px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.community-bracelet::before {
  content: "";
  position: absolute;
  left: 16%;
  top: 19.4%;
  width: 68%;
  height: 61.2%;
  border: 1px solid rgba(76, 66, 49, 0.34);
  border-radius: 50%;
}

.community-bead {
  position: absolute;
  left: var(--bead-x, 50%);
  top: var(--bead-y, 50%);
  width: var(--bead-size, 12%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.community-bead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(var(--bead-photo-scale, 1.12));
}

.community-design-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  color: #fff;
  background: rgba(15, 47, 31, 0.86);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.community-design-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.community-design-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #6e756f;
  font-size: 12px;
}

.community-design-body h3 {
  margin: 0;
  color: #1e2922;
  font-family: var(--font-heading, Georgia, serif);
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.community-design-body p {
  min-height: 44px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #5b665e;
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.community-design-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.community-design-actions a,
.community-design-actions button {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #214d37;
  border-radius: 4px;
  color: #fff;
  background: #214d37;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.community-design-actions button {
  color: #214d37;
  background: #fff;
}

.community-design-actions button[hidden] {
  display: none;
}

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

@media (max-width: 560px) {
  .community-design-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .community-design-body {
    padding: 12px;
  }

  .community-design-body h3 {
    font-size: 16px;
  }

  .community-design-body p {
    min-height: 38px;
    font-size: 12px;
  }

  .community-design-meta {
    display: grid;
    gap: 2px;
  }

  .community-design-actions {
    grid-template-columns: 1fr;
  }

  .community-design-actions button {
    width: 100%;
  }
}
