/* ?? vue-element-admin / hzhu ?? */
:root {
  --side-width: 210px;
  --side-bg: #304156;
  --side-text: #bfcbd9;
  --side-active: #409eff;
  --header-h: 50px;
  --tags-h: 34px;
  --primary: #409eff;
  --success: #67c23a;
  --warning: #e6a23c;
  --danger: #f56c6c;
  --info: #909399;
  --bg: #f0f2f5;
  --panel: #fff;
  --border: #dcdfe6;
  --text: #303133;
  --muted: #909399;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}
.hidden { display: none !important; }
a { color: var(--primary); text-decoration: none; }

/* ----- ?? ----- */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2d3a4b 0%, #1f2d3d 45%, #0d1b2a 100%);
}
.login-card {
  width: min(400px, 92vw);
  background: #fff;
  border-radius: 6px;
  padding: 36px 32px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
}
.login-brand {
  text-align: center;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.login-card h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 22px;
}
.login-card p { text-align: center; color: var(--muted); font-size: 13px; }
.login-card input {
  width: 100%;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.login-card button {
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border: 0;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.err { color: var(--danger); text-align: center; }

/* ----- ?? ----- */
.app {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.sidebar {
  width: var(--side-width);
  flex-shrink: 0;
  background: var(--side-bg);
  color: var(--side-text);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: width .2s;
}
.sidebar.is-collapse { width: 64px; }
.logo {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2b3a4a;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
}
.logo-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #409eff 55%, #1d6fb8);
  flex-shrink: 0;
}
.sidebar-nav {
  flex: 1;
  overflow: auto;
  padding: 4px 0 12px;
}
.menu-item,
.menu-sub-title,
.menu-group-title {
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--side-text);
  height: 40px;
  padding: 0 16px 0 18px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  gap: 8px;
  line-height: 1;
}
.menu-sub-title {
  color: #8090a5;
  font-size: 12px;
  height: auto;
  padding: 10px 16px 4px;
  cursor: default;
  font-weight: 600;
}
.menu-group-title {
  justify-content: space-between;
  color: #bfcbd9;
  font-size: 14px;
  font-weight: 400;
}
.menu-group-title:hover { color: #fff; background: rgba(255,255,255,.04); }
.menu-caret {
  font-style: normal;
  font-size: 10px;
  transition: transform .15s;
  opacity: .7;
}
.menu-group:not(.open) .menu-caret { transform: rotate(-90deg); }
.menu-group:not(.open) .menu-group-body { display: none; }
.menu-group-body .menu-item {
  height: 36px;
  padding: 0 16px 0 36px;
  font-size: 13px;
}
.menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-item.active {
  background: var(--side-active) !important;
  color: #fff !important;
}
.menu-item .ico {
  width: 16px;
  text-align: center;
  opacity: .85;
  flex-shrink: 0;
}

/* ??????? + ?????? hzhu Element? */
.page-card-flush { padding: 10px 12px 8px; }
.hz-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 8px;
}
.hz-filter input,
.hz-filter select {
  height: 28px;
  min-width: 110px;
  width: auto;
  max-width: 160px;
  font-size: 12px;
  padding: 0 8px;
}
.hz-filter #accQ { min-width: 140px; max-width: 180px; }
.hz-filter button {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
}
.hz-filter .hz-lab { font-size: 12px; color: #606266; white-space: nowrap; }
.hz-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 8px;
}
.hz-actions-bar > button,
.hz-actions-bar > .dropdown > button {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.hz-actions-bar .btn-group {
  display: inline-flex;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hz-actions-bar .btn-group button {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid rgba(255,255,255,.25);
  margin: 0;
}
.hz-actions-bar .btn-group button:last-child { border-right: 0; }
.hz-actions-bar .btn-group .btn-warn { background: var(--warning); color: #fff; }
.hz-actions-bar .btn-group .btn-ok { background: var(--success); color: #fff; }
.hz-actions-bar .btn-group .btn-danger { background: var(--danger); color: #fff; }
.hz-actions-bar .btn-group button:not(.btn-warn):not(.btn-ok):not(.btn-danger) {
  background: var(--primary);
  color: #fff;
}
.hz-actions-bar select { height: 28px; font-size: 12px; min-width: 100px; }
.hz-actions-bar .ghost,
.hz-actions-bar .filebtn {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 28px;
}
.table-fill { min-height: 360px; }
.table-fill table { font-size: 12px; }
.table .op-btns { flex-wrap: nowrap; align-items: center; }
.table .op-btns .op-dd .tags-menu {
  right: 0;
  left: auto;
  min-width: 120px;
  z-index: 30;
}
.main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.navbar {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}
.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.hamburger {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #5a5e66;
  padding: 4px 8px;
}
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb b { color: var(--text); font-weight: 500; }
.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.nav-pill {
  background: #ecf5ff;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-user { color: var(--text); cursor: default; }
.nav-link-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}
.nav-link-btn:hover { color: var(--primary); }

.tags-view {
  height: var(--tags-h);
  background: #fff;
  border-bottom: 1px solid #d8dce5;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
  flex-shrink: 0;
  overflow-x: auto;
}
.tags-view .tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #d8dce5;
  border-radius: 3px;
  background: #fff;
  color: #495060;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  gap: 6px;
}
.tags-view .tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.tags-view .tag .x {
  font-size: 12px;
  opacity: .7;
}
.tags-view .tag .x:hover { opacity: 1; color: var(--danger); }
.tags-view .tag.active .x:hover { color: #fff; }
.tags-actions {
  margin-left: auto;
  position: relative;
  flex-shrink: 0;
}
.tags-actions > button {
  border: 1px solid #d8dce5;
  background: #fff;
  height: 26px;
  padding: 0 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  color: #495060;
}
.tags-menu {
  position: absolute;
  right: 0;
  top: 28px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  z-index: 50;
  min-width: 120px;
  padding: 4px 0;
}
.tags-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
}
.tags-menu button:hover { background: #f5f7fa; color: var(--primary); }

.app-main {
  flex: 1;
  padding: 12px 14px 24px;
  overflow: auto;
}
.tab { display: none; }
.tab.active { display: block; }

/* ----- ???? ----- */
.page-card {
  background: var(--panel);
  border-radius: 4px;
  padding: 14px 16px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  margin-bottom: 12px;
}
.page-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}
.page-desc { display: none; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.toolbar .spacer { flex: 1; }

button, .el-btn, .filebtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}
button:hover, .el-btn:hover, .filebtn:hover { filter: brightness(1.05); }
button.ghost, .el-btn.is-plain {
  background: #fff;
  border-color: var(--border);
  color: #606266;
}
button.ghost:hover, .el-btn.is-plain:hover {
  color: var(--primary);
  border-color: #c6e2ff;
  background: #ecf5ff;
}
button.danger { background: var(--danger); }
button.success { background: var(--success); }
button.warning { background: var(--warning); }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

input, textarea, select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
}
textarea { height: auto; padding: 8px 10px; width: 100%; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
}

.sub-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e4e7ed;
  margin-bottom: 14px;
}
.sub-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  color: #303133;
  height: 40px;
  padding: 0 18px;
  font-weight: 500;
}
.sub-tabs button:hover { color: var(--primary); filter: none; }
.wizard-tabs {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  margin: 4px 0 20px;
  padding: 4px 0 12px;
  border-bottom: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.wizard-tabs button {
  flex: 0 0 auto;
  height: auto;
  padding: 6px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #909399;
  font-weight: 500;
  font-size: 14px;
  border-bottom: none;
  position: relative;
}
.wizard-tabs button:hover { color: var(--primary); filter: none; }
.wizard-tabs button.active {
  color: #303133;
  font-weight: 650;
  border-bottom-color: transparent;
  background: transparent;
}
.wizard-tabs button:not(:last-child)::after {
  content: "›";
  position: static;
  display: inline-block;
  margin-left: 12px;
  margin-right: 8px;
  color: #c0c4cc;
  font-size: 16px;
  pointer-events: none;
  transform: none;
}
.wizard-tabs button[data-wiz="rule"]::before { content: "1. "; }
.wizard-tabs button[data-wiz="data"]::before { content: "2. "; }
.wizard-tabs button[data-wiz="submit"]::before { content: "3. "; }

/* ----- ?? hzhu Element ???label-width?70px ??? ----- */
.hz-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.hz-search .hz-fi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.hz-search .hz-lab {
  font-size: 13px;
  color: #606266;
  white-space: nowrap;
}
.hz-search input,
.hz-search select {
  width: 180px;
  height: 32px;
}
.hz-editor {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  padding: 0 16px 16px;
  margin-bottom: 14px;
}
.hz-editor.hidden { display: none !important; }

/* 列表模式：藏类型 Tab；编辑模式：藏搜索/表/常驻日志，整页只留向导 */
.page-card:not(.hz-editing) > .sub-tabs#joinModeTabs,
.page-card:not(.hz-editing) > .sub-tabs#adModeTabs,
.page-card:not(.hz-editing) > .sub-tabs#mkGroupTabs {
  display: none !important;
}
.page-card.hz-editing > *:not(.hz-editor):not(.sub-tabs) {
  display: none !important;
}
.page-card.hz-editing > .sub-tabs {
  margin-bottom: 10px;
}
.page-card.hz-editing > .hz-editor {
  display: block !important;
  border: none;
  padding: 8px 4px 16px;
  margin: 0;
}
.page-card.hz-editing .hz-editor-hd {
  display: none; /* 退出只留底栏，对齐 hzhu */
}
/* 常驻「任务日志」块隐藏；改由行操作弹窗查看 */
.page-card > h3 {
  display: none !important;
}
.page-card > [id$="JobLog"],
.page-card > [id$="Log"]:not(#jobLogBox) {
  display: none !important;
}

.hz-editor-hd {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0 0;
}
.hz-wiz-body {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.hz-wiz-body .hz-form {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
}
.hz-help {
  width: 260px;
  flex: 0 0 260px;
  font-size: 12px;
  color: #909399;
  line-height: 1.55;
  padding-left: 16px;
  border-left: 1px solid #ebeef5;
}
.hz-help-item {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f2f3f5;
}
.hz-help-item:last-child { border-bottom: 0; }
.hz-help h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: #606266;
  font-weight: 600;
}
.hz-help p { margin: 0; }
.hz-more {
  margin-left: 4px;
}
.hz-more summary {
  cursor: pointer;
  color: var(--primary);
  font-size: 13px;
  list-style: none;
}
.hz-more summary::-webkit-details-marker { display: none; }
.modal-panel.wide { width: min(520px, 94vw); }
.debug-only.hidden { display: none !important; }
@media (max-width: 900px) {
  .hz-wiz-body { flex-direction: column; }
  .hz-help {
    width: 100%;
    flex-basis: auto;
    border-left: 0;
    border-top: 1px solid #ebeef5;
    padding-left: 0;
    padding-top: 12px;
  }
}
.hz-form {
  max-width: 760px;
  padding-top: 8px;
}
.hz-wiz-body .hz-form { max-width: none; }
.hz-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin-bottom: 4px;
}
.hz-col {
  flex: 1 1 calc(50% - 12px);
  min-width: 240px;
}
.hz-col-full {
  flex: 1 1 100%;
  min-width: 100%;
}
.hz-fi {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
  min-height: 32px;
}
.hz-fi > label,
.hz-fi > .hz-lab {
  flex: 0 0 70px;
  width: 70px;
  line-height: 32px;
  font-size: 13px;
  color: #606266;
  text-align: right;
  padding-right: 8px;
  box-sizing: border-box;
}
.hz-fi > .hz-ctrl {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hz-fi .hz-ctrl input,
.hz-fi .hz-ctrl select,
.hz-fi .hz-ctrl textarea {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 32px;
}
.hz-fi .hz-ctrl textarea {
  height: auto;
  min-height: 88px;
  line-height: 1.5;
  padding: 8px 10px;
}
.hz-fi .hz-ctrl input[type="number"] {
  width: 110px;
  flex: 0 0 110px;
}
.hz-unit {
  flex: 0 0 auto;
  font-size: 13px;
  color: #909399;
  line-height: 32px;
}
.hz-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 14px;
  font-size: 13px;
  color: #606266;
  line-height: 32px;
  cursor: pointer;
}
.hz-check input { width: auto; height: auto; margin: 0; }
.hz-opt-title {
  font-size: 13px;
  font-weight: 600;
  color: #303133;
  margin: 6px 0 10px;
  padding-left: 70px;
}
.hz-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #ebeef5;
}
.hz-actions.hz-actions-center {
  justify-content: center;
}
.hz-actions .spacer { flex: 1; }
.hz-checks-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.ad-mode-pane {
  margin-top: 4px;
}
.job-st-paused {
  color: #e6a23c;
}
#leadGroupTable tr.row-active td {
  background: #f5f9ff;
}
.dm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.hz-actions button.danger-outline,
.hz-actions button[data-hz-exit] {
  background: #fff;
  border-color: #fbc4c4;
  color: #f56c6c;
}
.hz-tip {
  margin: 0 0 10px;
  padding-left: 70px;
  font-size: 12px;
  color: #909399;
  max-width: 720px;
}
.opts-panel, .opts-grid, .opts-title { /* ??????????? */
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  display: block;
}
.dropdown { position: relative; display: inline-flex; }
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(480px, 92vw);
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
}
.drawer-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.drawer-panel .table { flex: 1; overflow: auto; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal.hidden { display: none !important; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 4px;
  padding: 14px 16px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.modal-panel .hz-fi {
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-panel .hz-ctrl { flex: 1; }
.modal-panel select { width: 100%; height: 32px; }
.sub-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.table {
  width: 100%;
  overflow: auto;
  border: 1px solid #ebeef5;
  border-radius: 4px;
}
.table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  background: #f5f7fa;
  color: #909399;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid #ebeef5;
  text-align: left;
  white-space: nowrap;
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #ebeef5;
  color: #606266;
  vertical-align: middle;
}
.table tr:hover td { background: #f5f7fa; }
.table .op-btns { display: flex; flex-wrap: wrap; gap: 4px; }
.table .op-btns button {
  height: 26px;
  padding: 0 8px;
  font-size: 12px;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: #c0c4cc;
}
.status-dot.on { background: var(--success); }
.status-dot.off { background: #c0c4cc; }
.status-dot.err { background: var(--danger); }

a.acc-count-link {
  color: #409eff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
a.acc-count-link:hover {
  text-decoration: underline;
}

.acc-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  background: #ebeef5;
}
.acc-avatar-empty {
  background: #dcdfe6;
}
.img-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  background: #ebeef5;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.home-stat {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  padding: 16px;
  border-top: 3px solid var(--primary);
}
.home-stat:nth-child(2) { border-top-color: var(--success); }
.home-stat:nth-child(3) { border-top-color: var(--warning); }
.home-stat:nth-child(4) { border-top-color: var(--info); }
.home-stat .k { color: var(--muted); font-size: 13px; }
.home-stat .v { font-size: 26px; font-weight: 700; margin-top: 8px; }

.leads-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  align-items: stretch;
  min-height: 520px;
}
.dm-side {
  border: 1px solid #ebeef5;
  border-radius: 4px;
  padding: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.dm-main {
  border: 1px solid #ebeef5;
  border-radius: 4px;
  padding: 10px 12px;
  background: #fff;
  min-height: 480px;
}
.dm-empty {
  padding: 48px 12px;
  text-align: center;
}
.dm-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.dm-side .hz-filter { margin-bottom: 6px; }
.dm-side .hz-filter input,
.dm-side .hz-filter select {
  flex: 1;
  min-width: 0;
  max-width: none;
  width: auto;
}
.group-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; flex: 1; overflow: auto; max-height: none; }
.group-item {
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  height: auto;
}
.group-item:hover, .group-item.active {
  border-color: var(--primary);
  background: #ecf5ff;
  color: var(--primary);
  filter: none;
}
.group-item .g-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; font-weight: 400; }
.drop-zone {
  margin: 12px 0;
  padding: 28px 16px;
  border: 2px dashed #c0c4cc;
  border-radius: 6px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: #ecf5ff;
}
.drop-zone .drop-title { font-weight: 650; margin-bottom: 6px; color: #606266; }

/* 资料/话术：随机标签说明（可点击复制） */
.tpl-tag-help {
  margin: 8px 0 10px;
  padding: 10px 12px;
  background: #f5f7fa;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: #606266;
}
.tpl-tag-help .tpl-tag-title {
  font-weight: 650;
  color: #303133;
  margin-bottom: 4px;
}
.tpl-tag-help .tpl-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.tpl-tag-help .copy-chip,
code.copy-chip {
  display: inline-block;
  padding: 2px 8px;
  background: #fff;
  border: 1px solid #c0c4cc;
  border-radius: 4px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 12px;
  color: #409eff;
  cursor: pointer;
  user-select: all;
}
.tpl-tag-help .copy-chip:hover,
code.copy-chip:hover {
  border-color: #409eff;
  background: #ecf5ff;
}
.tpl-tag-help .copy-chip.copied,
code.copy-chip.copied {
  border-color: #67c23a;
  color: #67c23a;
  background: #f0f9eb;
}
.tpl-tag-help .tpl-tag-ex {
  margin-top: 4px;
  word-break: break-all;
}
.adv { margin: 12px 0; color: var(--muted); }
.adv summary { cursor: pointer; margin-bottom: 8px; }
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fafafa;
}
.check-grid label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.check-grid input { width: auto; height: auto; margin: 2px 0 0; }
.job-prog { min-width: 110px; }
.job-prog-bar {
  height: 8px;
  background: #ebeef5;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2px;
}
.job-prog-bar span {
  display: block;
  height: 100%;
  background: var(--primary, #409eff);
}
.job-prog em { font-style: normal; font-size: 11px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.panel { background: var(--panel); border: 1px solid #ebeef5; border-radius: 4px; padding: 14px; margin-bottom: 12px; }
.panel h3 { margin: 0 0 10px; font-size: 15px; }
.panel label { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.log-view {
  background: #1e1e1e;
  border-radius: 4px;
  height: calc(100vh - 160px);
  overflow: auto;
  padding: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #d4d4d4;
  margin: 0;
}
.dialog-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dialog {
  background: #fff;
  border-radius: 4px;
  width: min(560px, 96vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}
.dialog-hd {
  padding: 14px 16px;
  border-bottom: 1px solid #ebeef5;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-bd { padding: 16px; }
.dialog-ft {
  padding: 10px 16px;
  border-top: 1px solid #ebeef5;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.form-row { margin-bottom: 12px; }
.form-row > label { display: block; margin-bottom: 6px; color: #606266; font-size: 13px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; }

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; max-height: 40vh; position: static; }
  .leads-layout, .grid2 { grid-template-columns: 1fr; }
}

.job-st {
  display: inline-block;
  padding: 0 6px;
  height: 22px;
  line-height: 22px;
  border-radius: 2px;
  font-size: 12px;
  background: #f4f4f5;
  color: #909399;
}
.job-st-running { background: #fdf6ec; color: #e6a23c; }
.job-st-pending { background: #ecf5ff; color: #409eff; }
.job-st-error, .job-st-failed { background: #fef0f0; color: #f56c6c; }
.job-st-done, .job-st-finished { background: #f0f9eb; color: #67c23a; }
.job-st-stopped, .job-st-idle { background: #f4f4f5; color: #606266; }

#toastHost {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: min(520px, 92vw);
}
.toast {
  pointer-events: auto;
  min-width: 260px;
  padding: 10px 16px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #ebeef5;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  font-size: 13px;
  color: #303133;
  white-space: pre-wrap;
  line-height: 1.45;
  opacity: 1;
  transition: opacity .25s, transform .25s;
}
.toast.out { opacity: 0; transform: translateY(-6px); }
.toast.ok { border-color: #b3e19d; background: #f0f9eb; color: #529b2e; }
.toast.err { border-color: #fbc4c4; background: #fef0f0; color: #c45656; }
.toast.warn { border-color: #f5dab1; background: #fdf6ec; color: #b88230; }
.toast.info { border-color: #b3d8ff; background: #ecf5ff; color: #337ecc; }

.confirm-panel { max-width: 420px; }
.confirm-bd { padding: 8px 4px 4px; }
.confirm-msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #303133;
  white-space: pre-wrap;
}
.hz-editor.editing .hz-editor-hd::after {
  content: "????";
  margin-left: 10px;
  font-size: 13px;
  color: #e6a23c;
  font-weight: 600;
}

/* cron ??????????????? hzhu ??????????? */
.cron-picker-panel { width: min(720px, 96vw) !important; max-height: 92vh; overflow: auto; }
.cron-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cron-preset-btn { font-size: 12px !important; padding: 4px 10px !important; height: auto !important; }
.cron-tip { margin: 0 0 10px; font-size: 12px; line-height: 1.5; }
.cron-tabs { display: flex; gap: 0; border: 1px solid #dcdfe6; border-radius: 4px 4px 0 0; overflow: hidden; margin-bottom: 0; }
.cron-tabs button { flex: 1; height: 36px; border: 0; border-right: 1px solid #dcdfe6; background: #f5f7fa; cursor: pointer; }
.cron-tabs button:last-child { border-right: 0; }
.cron-tabs button.active { background: #fff; color: #409eff; font-weight: 600; }
.cron-pane { border: 1px solid #dcdfe6; border-top: 0; padding: 12px 14px; border-radius: 0 0 4px 4px; }
.cron-radio { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; font-size: 13px; cursor: pointer; }
.cron-checks { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 8px 0 4px 22px; max-height: 140px; overflow: auto; }
.cron-check { display: inline-flex; align-items: center; gap: 4px; min-width: 42px; font-size: 12px; }
.cron-result { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #ebeef5; }
.cron-result-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cron-result-table th, .cron-result-table td { border: 1px solid #ebeef5; padding: 4px 6px; text-align: center; }
.cron-next-list { margin: 4px 0 0; padding-left: 18px; font-size: 12px; color: #606266; }

/* ???????? */
.as-steps { margin: 8px 0 8px 0; display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.as-step { border: 1px solid #e4e7ed; border-radius: 6px; padding: 10px 12px; background: #fafbfc; }
.as-step-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.as-step-hd strong { font-size: 13px; }
.as-step .hz-fi { margin-bottom: 6px; }
.as-step textarea { min-height: 52px; }

/* ??????? */
.wu-step-board { display: flex; flex-direction: column; gap: 8px; max-width: 560px; margin: 4px 0 10px; }
.wu-step-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid #e4e7ed; border-radius: 6px;
  background: #fff; cursor: grab; user-select: none;
}
.wu-step-card.off { opacity: 0.55; background: #f5f7fa; }
.wu-step-card.dragging { opacity: 0.45; }
.wu-step-card.drag-over { border-color: #409eff; box-shadow: 0 0 0 2px rgba(64,158,255,.15); }
.wu-step-handle { color: #909399; font-size: 14px; letter-spacing: -2px; cursor: grab; }
.wu-step-check { margin: 0; }
.wu-step-check input { width: auto; height: auto; }
.wu-step-body { display: flex; flex-direction: column; gap: 2px; }
.wu-step-body strong { font-size: 13px; }
.wu-step-body span { font-size: 12px; color: #909399; }
