.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-bracelet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(74%, 280px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.community-bracelet::before {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(106, 95, 75, 0.28);
  border-radius: 50%;
}

.community-bead {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--bead-size, 12%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(var(--bead-angle)) translateY(var(--bead-radius)) rotate(calc(-1 * var(--bead-angle)));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: #d7d4ce;
  box-shadow: 0 2px 5px rgba(31, 31, 26, 0.24);
}

.community-bead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.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;
}

.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: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .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%;
  }
}
