/* Sticker Studio · WeChat sticker plaza (listed packs submitted by authors) */

#wxResult { color: var(--ink-2); }
#wxResult b { color: var(--accent); font-family: var(--serif); font-size: 15px; }
#wxNote { text-align: right; }

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

.wx-card {
  background: var(--card);
}

.wx-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
  display: grid;
  place-items: center;
}

.wx-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.wx-card:hover .wx-card-cover img { transform: scale(1.02); }

.wx-card-cover .wx-cover-empty-note {
  padding: 20px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

.wx-card-body { gap: 9px; }

.wx-card .plaza-card-top { align-items: center; }

.wx-card .plaza-card-top b {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.wx-open {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line-strong);
  background: var(--paper-soft);
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.wx-open:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wx-card-foot { gap: 8px; }
.wx-card-foot .plaza-date { margin-left: auto; }

/* ------------------------------------------------------------ my submissions */

.wx-mine {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-soft);
  padding: 18px 20px 20px;
  margin-bottom: 18px;
}

.wx-mine-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.wx-mine-head h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 4px;
}

.wx-mine-head p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.wx-mine-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.wx-mine-item {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.wx-mine-cover {
  flex: none;
  width: 108px;
  height: 81px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.wx-mine-cover.is-empty { display: block; }

.wx-mine-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.wx-mine-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wx-mine-title b {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
}

.wx-mine-note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--red);
}

.wx-mine-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}

.wx-mine-actions .wx-open { padding: 3px 9px; }

.wx-mine-actions > span { color: var(--muted); }

.wx-badge {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.wx-badge.is-pending {
  background: rgba(200, 150, 45, 0.14);
  color: #a6771f;
}

.wx-badge.is-ok {
  background: rgba(61, 143, 96, 0.14);
  color: #2f7a50;
}

.wx-badge.is-no {
  background: rgba(200, 69, 45, 0.13);
  color: var(--red);
}

.wx-mine-empty {
  padding: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}

/* ------------------------------------------------------------- submit modal */

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

.wx-submit-card .edit-note { margin-bottom: 6px; }

.wx-cover-pick {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 168px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--paper-soft);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wx-cover-pick:hover {
  border-color: var(--accent);
  background: #fff;
}

.wx-cover-pick img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
}

.wx-cover-empty {
  padding: 26px 18px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
}

.wx-cover-empty small { font-size: 11px; color: var(--muted); }

.wx-cover-pick.has-image { border-style: solid; }

/* ------------------------------------------------------------------ mobile */

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

  #wxNote { display: none; }

  .wx-mine { padding: 14px 14px 16px; border-radius: 16px; }

  .wx-mine-head { flex-direction: column; gap: 8px; }

  .wx-mine-item { gap: 10px; padding: 8px; }

  .wx-mine-cover { width: 76px; height: 57px; border-radius: 8px; }

  .wx-mine-title b { font-size: 14px; }

  .wx-cover-pick { min-height: 130px; }
}
