#geo-xhs-topic-template-extension-entry.xhs-topic-button {
  margin-right: 8px;
}

.xhs-topic-button {
  min-height: 32px;
  padding: 7px 15px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.xhs-topic-button:hover { border-color: #a0cfff; color: #409eff; }
.xhs-topic-button.is-primary { border-color: #409eff; background: #409eff; color: #fff; }
.xhs-topic-button.is-primary:hover { border-color: #66b1ff; background: #66b1ff; color: #fff; }
.xhs-topic-button.is-ghost { border-style: dashed; color: #409eff; width: 100%; }
.xhs-topic-button.is-danger { border: 0; background: transparent; color: #f56c6c; }
.xhs-topic-button.is-small { min-height: 26px; padding: 4px 8px; }
.xhs-topic-button.is-icon { border: 0; background: transparent; padding: 0; min-width: 34px; font-size: 28px; }
.xhs-topic-button:disabled { cursor: not-allowed; opacity: .5; }

.xhs-topic-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .48);
}

.xhs-topic-dialog {
  width: min(900px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
  color: #303133;
}

.xhs-topic-dialog__header,
.xhs-topic-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #ebeef5;
}

.xhs-topic-dialog__header h2 { margin: 0 0 4px; font-size: 18px; }
.xhs-topic-dialog__header p { margin: 0; color: #909399; font-size: 13px; }
.xhs-topic-dialog__footer { justify-content: flex-end; border-top: 1px solid #ebeef5; border-bottom: 0; }
.xhs-topic-dialog__body { overflow: auto; padding: 20px 22px 24px; }

.xhs-topic-account-row {
  display: grid;
  grid-template-columns: 100px minmax(260px, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.xhs-topic-account-row select,
.xhs-topic-card input[type="text"],
.xhs-topic-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dcdfe6;
  border-radius: 5px;
  padding: 9px 11px;
  background: #fff;
  color: #303133;
  font: inherit;
  outline: none;
}

.xhs-topic-account-row select:focus,
.xhs-topic-card input[type="text"]:focus,
.xhs-topic-card textarea:focus { border-color: #409eff; }

.xhs-topic-help {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #b3d8ff;
  border-radius: 5px;
  background: #ecf5ff;
  color: #409eff;
  font-size: 13px;
  line-height: 1.6;
}

.xhs-topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.xhs-topic-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid #e4e7ed; border-radius: 8px; background: #fafafa; }
.xhs-topic-card__heading { display: flex; justify-content: space-between; align-items: center; }
.xhs-topic-card__heading > div { display: flex; align-items: center; gap: 10px; }
.xhs-topic-card label { color: #606266; font-size: 13px; }
.xhs-topic-card textarea { resize: vertical; line-height: 1.5; }
.xhs-topic-switch { display: inline-flex; align-items: center; gap: 5px; }
.xhs-topic-revision { color: #909399; font-size: 12px; }

.xhs-topic-toast {
  position: fixed;
  left: 50%;
  top: 28px;
  z-index: 4000;
  transform: translate(-50%, -12px);
  opacity: 0;
  padding: 10px 18px;
  border-radius: 5px;
  background: #f0f9eb;
  color: #67c23a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
  transition: .2s ease;
}
.xhs-topic-toast.is-error { background: #fef0f0; color: #f56c6c; }
.xhs-topic-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 760px) {
  .xhs-topic-list { grid-template-columns: 1fr; }
  .xhs-topic-account-row { grid-template-columns: 1fr; }
}
