#acii-wechat-public[hidden],
#acii-wechat-admin [hidden] {
  display: none !important;
}
#acii-wechat-public {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line, #dce4e9);
}
.acii-wx-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.acii-wx-heading img {
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}
.acii-wx-heading h2 {
  margin: 3px 0 0;
  font-size: 23px;
  line-height: 1.4;
}
.acii-wx-kicker {
  color: var(--cyan, #087f8c);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.acii-wx-copy {
  min-width: 0;
}
.acii-wx-name {
  margin: 20px 0 10px;
  font-size: 21px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: text;
}
.acii-wx-description {
  color: var(--muted, #647b8f);
  white-space: pre-wrap;
  line-height: 1.8;
}
.acii-wx-id {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.acii-wx-hint,
.acii-wx-status {
  font-size: 13px;
  color: var(--muted, #647b8f);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.acii-wx-status:empty {
  display: none;
}
.acii-wx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
}
.acii-wx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--line, #dce4e9);
  border-radius: 10px;
  background: var(--panel-solid, #fff);
  color: var(--text, #142c40);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}
.acii-wx-button:hover {
  border-color: var(--cyan, #087f8c);
  color: var(--cyan, #087f8c);
}
.acii-wx-button:focus-visible {
  outline: 2px solid var(--cyan, #087f8c);
  outline-offset: 3px;
}
.acii-wx-button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.acii-wx-primary {
  background: var(--cyan, #087f8c);
  color: var(--bg, #fff);
}
.acii-wx-primary:hover {
  color: var(--bg, #fff);
  filter: brightness(1.05);
}
.acii-wx-qr {
  width: 206px;
  padding: 12px;
  text-align: center;
}
.acii-wx-qr > img {
  display: block;
  width: 180px;
  height: 180px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  object-fit: contain;
  -webkit-touch-callout: default;
}
.acii-wx-qr strong {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}
.acii-wx-qr .acii-wx-button {
  margin-top: 2px;
}
.acii-wx-copy-input {
  position: fixed;
  top: -9999px;
  left: -9999px;
}
#acii-wechat-admin {
  margin: 28px 0;
  padding: 24px;
}
#acii-wechat-admin h2 {
  font-size: 22px;
}
.acii-wx-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.acii-wx-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.acii-wx-field label,
.acii-wx-upload > label {
  font-size: 13px;
  font-weight: 600;
}
.acii-wx-field input,
.acii-wx-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line, #dce4e9);
  border-radius: 9px;
  background: var(--input-bg, #fff);
  color: var(--text, #142c40);
  font: inherit;
  font-size: 14px;
  min-width: 0;
}
.acii-wx-field textarea {
  min-height: 90px;
  resize: vertical;
}
.acii-wx-wide {
  grid-column: 1 / -1;
}
.acii-wx-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.acii-wx-upload {
  border: 1px dashed var(--line-strong, #76aebb);
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
}
.acii-wx-upload.dragging {
  outline: 2px solid var(--cyan, #087f8c);
  background: var(--hover-bg, #edf7f4);
}
.acii-wx-upload input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 12px 0;
  font-size: 13px;
}
.acii-wx-admin-preview {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  margin-top: 12px;
}
.acii-wx-error {
  color: var(--red, #cf3f57);
}
@media (max-width: 760px) {
  #acii-wechat-public {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .acii-wx-qr {
    justify-self: center;
  }
  .acii-wx-name {
    font-size: 19px;
  }
  .acii-wx-heading h2 {
    font-size: 21px;
  }
  .acii-wx-form {
    grid-template-columns: 1fr;
  }
  #acii-wechat-admin {
    padding: 20px;
  }
}
