/* "Set up from your website" and the first posts on Home (community-import.js). Every color comes from the
   community's theme (community-theme.js), so this reads right in each theme and in dark. */
.cm-app .cm-siteup { gap: 14px; border-color: var(--cm-accent-line); background: var(--cm-accent-soft); }
.cm-siteup > h3 { font-size: 1.2rem; }
/* The card sits right under the post box for every community (community.html; live check, 2026-11-29). */
.cm-siteup-ask { gap: 8px; }
.cm-siteup-go { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-siteup-go input { flex: 1 1 220px; min-width: 0; }
.cm-siteup-go .cm-primary { flex: 0 0 auto; }
.cm-siteup-links { display: flex; flex-wrap: wrap; gap: 0 14px; }
.cm-siteup-wait { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.cm-siteup-step { font-weight: 650; }
.cm-siteup-spin { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--cm-accent-line); border-top-color: var(--cm-accent); animation: cm-siteup-turn 0.9s linear infinite; }
@keyframes cm-siteup-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cm-siteup-spin { animation-duration: 3s; } }

.cm-siteup-found { gap: 12px; }
.cm-siteup-part { display: grid; gap: 8px; padding: 14px 16px; background: var(--cm-card); border: 1px solid var(--cm-line); border-radius: 12px; min-width: 0; }
.cm-siteup-part h4 { margin: 0; font-size: 1.02rem; }
.cm-siteup-part .cm-points { font-size: 0.98rem; }
.cm-siteup-tick { min-height: 44px; font-weight: 600; }
.cm-siteup-logo { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.cm-siteup-logo .cm-plate { --cm-plate-size: 76px; border-color: var(--cm-line); }
.cm-siteup-colors { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cm-siteup-color { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; cursor: pointer; }
.cm-siteup-color input { width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; accent-color: var(--cm-accent); }
.cm-siteup-swatch { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--cm-line); }
.cm-siteup-list { margin: 0; display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); gap: 6px 14px; }
.cm-siteup-list dt { color: var(--cm-soft); font-size: 0.94rem; font-weight: 600; }
.cm-siteup-list dd { margin: 0; overflow-wrap: anywhere; }
.cm-siteup-publish { display: grid; gap: 2px; }
@media (max-width: 560px) {
  .cm-siteup-list { grid-template-columns: 1fr; gap: 2px; }
  .cm-siteup-list dd { margin-bottom: 8px; }
  .cm-siteup-go .cm-primary { flex: 1 1 100%; }
}

/* First posts, ready for the owner. A dashed edge sets them apart from what members can already see. */
.cm-first-posts { display: grid; gap: 12px; }
.cm-draft-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.cm-draft-top h3 { margin: 0; }
.cm-app .cm-draft { border-style: dashed; border-color: var(--cm-accent-line-strong, var(--cm-accent-line)); gap: 10px; }
.cm-draft-head { display: flex; align-items: center; gap: 10px; }
.cm-draft-event { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--cm-accent-soft); }

/* A first post's picture: shown as it will look in the feed, with what the owner can do with it under it. */
.cm-draft-photo { max-width: 440px; }
.cm-draft-photo .cm-photo { display: block; width: 100%; height: auto; border-radius: 12px; }
.cm-draft-making { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 14px; border-radius: 12px; background: var(--cm-accent-soft); font-weight: 600; }
.cm-draft-pic-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.cm-draft-pic-actions .cm-draft-own { display: inline-flex; align-items: center; font-weight: 600; }
.cm-draft-ask { gap: 10px; padding: 14px; border: 1px solid var(--cm-line); border-radius: 12px; background: var(--cm-paper); }
.cm-draft-ask label { font-weight: 600; }

/* A first post whose words are in the post box ("Edit first"): a line where its card was, with a way to put it back. */
.cm-app .cm-draft-held { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; border-style: dashed; border-color: var(--cm-accent-line-strong, var(--cm-accent-line)); margin: 0; }
.cm-app .cm-draft-held .cm-link { min-height: 44px; }
