/* Sticker Studio · public prompt wall */

.prompts-grid {
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
}

.prompt-card {
  padding: 16px 16px 13px;
  gap: 9px;
  justify-content: space-between;
}

.prompt-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.prompt-word {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-cat {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 10px;
  color: var(--muted);
}

.prompt-author {
  margin-left: auto;
  flex: none;
}

.prompt-official {
  margin-left: auto;
  flex: none;
  padding: 2px 9px;
  border: 1px solid rgba(200, 69, 45, 0.34);
  border-radius: 999px;
  background: rgba(200, 69, 45, 0.08);
  color: var(--accent);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.prompt-card.is-official {
  border-color: rgba(200, 69, 45, 0.26);
}

.prompt-card.is-official .prompt-date {
  color: var(--accent);
  opacity: 0.72;
}

.prompt-action {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.prompt-caption {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.prompt-date {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

.prompt-add {
  margin-left: auto;
  flex: none;
  padding: 5px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.prompt-add:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.prompt-publish-card { width: min(520px, 100%); }

.prompt-publish-card .edit-note { margin-bottom: 14px; }

/* Prompt sets: themed batches shared and imported as a whole */

.prompt-sets {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}

.prompt-sets-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.prompt-sets-head h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
}

.prompt-sets-head p {
  margin: 0;
  max-width: 640px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.prompt-sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.set-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 15px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.set-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.set-card-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.set-card-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.set-card-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
}

.set-count {
  flex: none;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 10px;
}

.set-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.set-card-foot .prompt-add { margin-left: auto; }

.prompt-sets-empty { grid-column: 1 / -1; }

.prompt-sets-more-wrap { margin-top: 12px; text-align: center; }

.prompt-set-card { width: min(560px, 100%); }

.set-detail-meta { margin-bottom: 10px; }

.set-detail-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(200, 69, 45, 0.05);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.set-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46vh;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 2px;
}

.set-detail-row {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.set-detail-num {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.set-detail-body { min-width: 0; }

.set-detail-body b { font-size: 13.5px; }

.set-detail-body p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.prompt-set-publish-card { width: min(620px, 100%); }

.set-pick-row {
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(200, 69, 45, 0.04);
}

.set-pick-row .field { margin: 0; }

.set-pick-hint { margin: 6px 0 0; }

.set-rows-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 2px;
  font-size: 12px;
  color: var(--muted);
}

.set-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 2px;
}

.set-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 11px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--card);
}

.set-row-top {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.set-row input,
.set-row textarea {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  font-size: 12.5px;
  color: var(--ink);
  font-family: inherit;
}

.set-row textarea {
  resize: vertical;
  min-height: 46px;
}

.set-row-remove {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.set-row-remove:hover {
  color: var(--accent);
  border-color: rgba(200, 69, 45, 0.4);
}

@media (max-width: 720px) {
  .prompt-sets-grid { grid-template-columns: 1fr; }
  .prompt-sets-head { flex-direction: column; }
  .set-row-top { grid-template-columns: 1fr 1fr; }
  .set-row-remove { grid-column: 1 / -1; width: 100%; height: 26px; }
}

@media (max-width: 720px) {
  .prompts-grid { grid-template-columns: 1fr; }
  .prompt-card { padding: 13px 13px 11px; }
  .prompt-word { font-size: 17px; }
}
