/* 同步与节流参数 · 主站内嵌面板（2026-11-16）
 * 全部类名以 sp- 前缀，避免与主站（antd/React）样式冲突。 */

#sp-root .sp-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  padding: 10px 14px;
  border: 1px solid #167a5c;
  border-radius: 20px;
  background: #167a5c;
  color: #fff;
  font: 13px/1.2 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
#sp-root .sp-launcher:hover { background: #12684e; }

#sp-root .sp-mask {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(15, 25, 30, .45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px;
  overflow: auto;
}

#sp-root .sp-card {
  width: min(760px, 100%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  padding: 18px 20px 16px;
  color: #202a33;
  font: 13px/1.55 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  text-align: left;
}

#sp-root .sp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
#sp-root .sp-title { font-size: 15px; }
#sp-root .sp-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #829096;
  cursor: pointer;
  padding: 0 4px;
}
#sp-root .sp-close:hover { color: #202a33; }

#sp-root .sp-hint {
  margin: 0 0 12px;
  color: #718087;
  font-size: 12px;
}

#sp-root .sp-status {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #edf4f1;
  color: #27624f;
  font-size: 12px;
  word-break: break-all;
}
#sp-root .sp-status.sp-err { background: #fbefef; color: #9b3838; }
#sp-root .sp-status.sp-ok { background: #edf4f1; color: #27624f; }

#sp-root .sp-list {
  max-height: 56vh;
  overflow: auto;
  border-top: 1px solid #e8edef;
  padding-top: 10px;
}

#sp-root .sp-item {
  display: block;
  padding: 9px 0;
  border-bottom: 1px dashed #eef2f3;
}
#sp-root .sp-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#sp-root .sp-item-label { color: #28383d; font-weight: 600; font-size: 13px; }
#sp-root .sp-item input {
  width: 130px;
  height: 32px;
  border: 1px solid #cbd5d9;
  border-radius: 4px;
  padding: 0 8px;
  font: inherit;
  text-align: right;
  color: #202a33;
  background: #fff;
}
#sp-root .sp-item input:focus { outline: 2px solid #b5ddd0; border-color: #32866b; }
#sp-root .sp-item-meta {
  display: block;
  margin-top: 4px;
  color: #829096;
  font-size: 11px;
}
#sp-root .sp-item-desc {
  display: block;
  margin-top: 2px;
  color: #718087;
  font-size: 11px;
}

#sp-root .sp-empty { color: #829096; text-align: center; padding: 16px 0; margin: 0; }

#sp-root .sp-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8edef;
}
#sp-root .sp-btn {
  border: 1px solid #cbd5d9;
  background: #fff;
  color: #28383d;
  border-radius: 5px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
#sp-root .sp-btn:hover { background: #f1f6f4; border-color: #88aa9d; }
#sp-root .sp-primary { border-color: #167a5c; background: #167a5c; color: #fff; }
#sp-root .sp-primary:hover { background: #12684e; }
#sp-root .sp-link { margin-left: auto; color: #167a5c; text-decoration: none; font-size: 12px; }
#sp-root .sp-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  #sp-root .sp-card { padding: 14px; }
  #sp-root .sp-item-head { flex-direction: column; align-items: stretch; gap: 6px; }
  #sp-root .sp-item input { width: 100%; }
}
