/* 公众号文章工作台专属皮肤 v2
   作用域限定在 #wa-root，不影响后台其它页面。
   与 style.css 共用 --primary / --surface / --border 等变量，但把工作台
   原先散落在 JS 里的内联样式收敛成一套有层级、有留白的设计语言。 */
#wa-root {
  --wa-ink: #101828;
  --wa-muted: #667085;
  --wa-faint: #98a2b3;
  --wa-line: #e6eaf2;
  --wa-soft: #f6f8fc;
  --wa-brand-soft: #eef4ff;
  --wa-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
  color: var(--wa-ink);
  font-size: 13px;
  padding-bottom: 28px;
}
#wa-root * { box-sizing: border-box; }

/* ── 表单控件：原先裸 select/input/textarea 走浏览器默认样式，是"CSS 没加载"观感的主因 ── */
#wa-root input,
#wa-root select,
#wa-root textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--wa-line);
  border-radius: 8px;
  background: #fff;
  color: var(--wa-ink);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.5;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
#wa-root input,
#wa-root select { height: 34px; }
#wa-root select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
#wa-root input:focus,
#wa-root select:focus,
#wa-root textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
#wa-root textarea { resize: vertical; line-height: 1.75; }
#wa-root input[type="number"] { width: 64px; text-align: center; }
#wa-root input::placeholder { color: var(--wa-faint); }

#wa-root .btn {
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
#wa-root .btn-sm { padding: 6px 12px; font-size: 12px; }
#wa-root .btn-primary { box-shadow: 0 2px 8px rgba(37, 99, 235, .18); }
#wa-root .btn-primary:hover:not(:disabled) { box-shadow: 0 4px 14px rgba(37, 99, 235, .28); }
#wa-root .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ── 页头 ── */
.wa-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--wa-line);
  border-radius: 14px;
  background: linear-gradient(112deg, #fff 0%, #f9fbff 58%, #eef4ff 100%);
  box-shadow: var(--wa-shadow);
  overflow: hidden;
}
.wa-head::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #2563eb, #7c3aed);
}
.wa-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.wa-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.4px; line-height: 1.3; }
.wa-head-sub { font-size: 12px; color: var(--wa-muted); margin-top: 4px; }
.wa-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--wa-line);
  font-size: 11.5px; font-weight: 600; color: var(--wa-muted);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  white-space: nowrap;
}
.wa-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); display: block; }

/* ── 自检条 ── */
.wa-health {
  margin-top: 14px;
  padding: 11px 15px;
  background: var(--surface);
  border: 1px solid var(--wa-line);
  border-radius: 10px;
  font-size: 12px;
}
.wa-health-sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wa-health-title { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.wa-health-title.is-ok { color: var(--green); }
.wa-health-title.is-bad { color: var(--red); }
.wa-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: block; }
.wa-health-count { color: var(--wa-muted); }
.wa-link { color: var(--primary); cursor: pointer; font-weight: 600; }
.wa-link:hover { text-decoration: underline; }
.wa-health-detail {
  margin-top: 11px; padding: 12px 14px;
  background: var(--wa-soft); border-radius: 9px;
  line-height: 1.9; color: var(--wa-muted);
}
.wa-health-detail .wa-check-row-item { display: flex; gap: 8px; }
.wa-health-detail .wa-check-row-item b { color: var(--wa-ink); font-weight: 600; }
.wa-health-detail .is-ok { color: var(--green); font-weight: 700; }
.wa-health-detail .is-bad { color: var(--red); font-weight: 700; }
.wa-health-detail .is-opt { color: var(--yellow); font-weight: 700; }
.wa-req-box {
  margin-top: 9px; padding: 11px 13px;
  background: var(--yellow-bg); border-radius: 8px;
  color: #77590a; font-size: 12px; line-height: 1.8;
}

/* ── 步骤条 ── */
.wa-steps {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 18px 0 12px; padding: 6px;
  background: var(--surface); border: 1px solid var(--wa-line); border-radius: 12px;
}
.wa-step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border: 0; border-radius: 8px;
  background: transparent; color: var(--wa-muted);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.wa-step:hover:not(:disabled) { background: var(--wa-soft); color: var(--wa-ink); }
.wa-step.is-active {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 9px rgba(37, 99, 235, .24);
}
.wa-step.is-locked { opacity: .4; cursor: not-allowed; }
.wa-step-num { font-size: 11px; font-weight: 700; opacity: .65; font-variant-numeric: tabular-nums; }
.wa-batch { margin-left: auto; padding-right: 10px; font-size: 11.5px; color: var(--wa-faint); }
.wa-batch b { color: var(--primary); font-weight: 700; }

.wa-msg { min-height: 18px; margin: 2px 2px 10px; font-size: 12px; color: var(--wa-muted); }
.wa-msg.is-bad { color: var(--red); }
.wa-count { color: var(--wa-faint); font-size: 11px; }

/* ── 通用容器 ── */
.wa-surface {
  background: var(--surface); border: 1px solid var(--wa-line);
  border-radius: 12px; box-shadow: var(--wa-shadow);
}
.wa-notice {
  position: relative; padding: 12px 15px 12px 17px; margin-bottom: 15px;
  border-radius: 9px; font-size: 12px; line-height: 1.7;
  background: var(--wa-brand-soft); color: #24417a;
  border: 1px solid #d9e5ff;
}
.wa-notice::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--primary);
}
.wa-notice.is-warn { background: var(--yellow-bg); border-color: #f3e6a8; color: #77590a; }
.wa-notice.is-warn::before { background: var(--yellow); }
.wa-hint { margin-top: 12px; font-size: 11.5px; color: var(--wa-faint); line-height: 1.8; }
.wa-empty { padding: 52px 20px; text-align: center; color: var(--wa-faint); font-size: 12.5px; }
.wa-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

/* ── 筛选栏 ── */
.wa-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
  padding: 14px 16px; margin-bottom: 15px;
  background: var(--surface); border: 1px solid var(--wa-line);
  border-radius: 12px; box-shadow: var(--wa-shadow);
}
.wa-field { display: flex; flex-direction: column; gap: 5px; min-width: 118px; }
.wa-field.wa-grow { flex: 1 1 180px; }
.wa-field > label { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--wa-faint); }
.wa-toolbar-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }

/* ── 选稿列表 ── */
.wa-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.wa-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wa-col-head h3 { font-size: 13px; font-weight: 700; color: var(--wa-ink); }
.wa-count { font-size: 11px; color: var(--wa-faint); }
.wa-card {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 15px; margin-bottom: 9px;
  background: var(--surface); border: 1px solid var(--wa-line);
  border-radius: 10px; cursor: pointer;
  transition: border-color .16s, box-shadow .16s, transform .16s, background-color .16s;
}
.wa-card:hover { border-color: #c3d5f7; box-shadow: 0 5px 16px rgba(20, 40, 90, .07); transform: translateY(-1px); }
.wa-card.is-selected {
  border-color: var(--primary);
  background: linear-gradient(100deg, #f7faff, #fff 70%);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .12);
}
.wa-card.is-selected::before {
  content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--primary);
}
/* 已生成过的研报卡片：绿色左缘 + 淡绿底，与"可选新稿"明显区分 */
.wa-card.is-gen { border-color: #c7ecd2; background: #f4fbf6; }
.wa-card.is-gen.is-selected { border-color: var(--primary); }
.wa-card.is-gen::before {
  content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--green);
}
.wa-check.done { background: var(--green); border-color: var(--green); }
.wa-check.done::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.wa-check {
  flex: none; width: 16px; height: 16px; margin-top: 3px;
  border: 1.5px solid #cbd5e6; border-radius: 5px; background: #fff;
  position: relative; transition: all .15s;
}
.wa-card.is-selected .wa-check { background: var(--primary); border-color: var(--primary); }
.wa-card.is-selected .wa-check::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.wa-card-main { flex: 1; min-width: 0; }
.wa-card-title { font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--wa-ink); }
.wa-card-meta {
  display: flex; flex-wrap: wrap; gap: 4px 8px;
  font-size: 11.5px; color: var(--wa-faint); margin-top: 6px;
}
.wa-card-meta span + span::before { content: "·"; margin-right: 8px; color: #d0d7e5; }
.wa-card-reason { font-size: 11.5px; color: var(--wa-muted); margin-top: 7px; line-height: 1.6; }
.wa-score {
  flex: none; align-self: flex-start; padding: 3px 9px; border-radius: 999px;
  background: var(--wa-brand-soft); color: var(--primary);
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* 底部粘性操作条 */
.wa-selbar {
  position: sticky; bottom: 12px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding: 12px 16px;
  border: 1px solid #dde5f2; border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(20, 40, 90, .13);
}
.wa-selinfo { font-size: 12.5px; color: var(--wa-muted); }
.wa-selinfo b { color: var(--primary); font-weight: 700; font-size: 15px; }
.wa-selactions { display: flex; align-items: center; gap: 10px; }
.wa-selactions label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--wa-muted); }

.wa-history { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--wa-line); }
.wa-history h3 { font-size: 13px; font-weight: 700; margin-bottom: 11px; }
.wa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-chip {
  padding: 7px 12px; border: 1px solid var(--wa-line); border-radius: 8px;
  background: #fff; color: var(--wa-muted); font-size: 12px; cursor: pointer;
  transition: all .15s;
}
.wa-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--wa-brand-soft); }
.wa-chip b { color: var(--wa-ink); }

/* ── 生成进度 ── */
.wa-progress { padding: 18px 20px; margin-bottom: 15px; }
.wa-progress-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 12px; }
.wa-progress-head b { font-weight: 700; }
.wa-progress-head span { color: var(--wa-muted); font-size: 12px; }
.wa-bar { height: 9px; background: #edf1f8; border-radius: 999px; overflow: hidden; }
.wa-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transition: width .45s ease;
}
.wa-job {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 15px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--wa-line); border-radius: 10px;
}
.wa-job-main { flex: 1; min-width: 220px; }
.wa-job-title { font-size: 13px; font-weight: 600; line-height: 1.45; }
.wa-job-sub { font-size: 11.5px; color: var(--wa-faint); margin-top: 4px; }
.wa-job-sub .wa-err { color: var(--red); }
.wa-badge {
  display: inline-block; min-width: 58px; text-align: center;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  background: #f1f4f9; color: var(--wa-muted);
}
.wa-badge.is-running { background: var(--blue-bg); color: var(--primary); }
.wa-badge.is-done { background: var(--green-bg); color: var(--green); }
.wa-badge.is-failed { background: var(--red-bg); color: var(--red); }

/* ── 审校双栏 ── */
.wa-review { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.wa-review-list {
  position: sticky; top: 16px;
  max-height: calc(100vh - 120px); overflow: auto;
  padding: 14px; background: var(--surface);
  border: 1px solid var(--wa-line); border-radius: 12px; box-shadow: var(--wa-shadow);
}
.wa-list-caption { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--wa-faint); margin-bottom: 10px; }
.wa-review-item {
  padding: 10px 11px; margin-bottom: 7px; border-radius: 9px;
  border: 1px solid var(--wa-line); background: #fff; cursor: pointer;
  transition: all .15s;
}
.wa-review-item:hover { border-color: #c3d5f7; background: var(--wa-soft); }
.wa-review-item.is-active { border-color: var(--primary); background: var(--wa-brand-soft); }
.wa-review-item .t { font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--wa-ink); }
.wa-review-item .s { font-size: 11px; color: var(--wa-faint); margin-top: 4px; }
.wa-review-item .s .ok { color: var(--green); font-weight: 600; }
.wa-editor {
  min-height: 420px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--wa-line);
  border-radius: 12px; box-shadow: var(--wa-shadow);
}
.wa-editor-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; padding-bottom: 15px; margin-bottom: 4px;
  border-bottom: 1px solid var(--wa-line);
}
.wa-editor-meta { font-size: 12px; color: var(--wa-muted); line-height: 1.6; }
.wa-editor-meta b { color: var(--wa-ink); }
.wa-editor-actions { display: flex; gap: 7px; }
.wa-sec { margin-top: 20px; }
.wa-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--wa-ink); margin-bottom: 9px;
}
.wa-label::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--primary); }
.wa-label.is-danger { color: var(--red); }
.wa-label.is-danger::before { background: var(--red); }
.wa-label em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--wa-faint); }
.wa-title-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 12px; margin-bottom: 6px;
  border: 1px solid var(--wa-line); border-radius: 9px;
  background: #fff; font-size: 13px; line-height: 1.5; cursor: pointer;
  transition: all .15s;
}
.wa-title-opt:hover { border-color: #bcd0f7; background: var(--wa-soft); }
.wa-title-opt.is-active {
  border-color: var(--primary); background: var(--wa-brand-soft);
  color: #1d4ed8; font-weight: 600;
}
.wa-title-opt .n { color: var(--wa-faint); font-size: 11.5px; margin-right: 8px; }
.wa-title-opt .len { flex: none; font-size: 11px; color: var(--wa-faint); font-weight: 400; }
.wa-count-tip { font-size: 11px; color: var(--wa-faint); margin-top: 5px; }
.wa-body-area textarea {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.8;
}
.wa-prompt {
  padding: 12px 14px; margin-bottom: 8px;
  background: var(--wa-soft); border: 1px solid var(--wa-line); border-radius: 10px;
}
.wa-prompt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.wa-prompt-text { font-size: 12px; color: var(--wa-muted); line-height: 1.8; }
.wa-alert {
  padding: 12px 14px; border-radius: 9px;
  background: #fff7f7; border: 1px solid #f6d5d5; border-left: 3px solid var(--red);
}
.wa-list-row {
  font-size: 12px; line-height: 1.7; color: var(--wa-muted);
  padding: 6px 0; border-bottom: 1px dashed var(--wa-line);
}
.wa-list-row:last-child { border-bottom: 0; }
.wa-fold { margin-top: 10px; padding: 0 13px; border: 1px solid var(--wa-line); border-radius: 9px; background: #fff; }
.wa-fold > summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; font-size: 12px; font-weight: 600; cursor: pointer; list-style: none;
}
.wa-fold > summary::-webkit-details-marker { display: none; }
.wa-fold > summary::after { content: "+"; font-size: 15px; font-weight: 400; color: var(--wa-faint); }
.wa-fold[open] > summary::after { content: "\2212"; }
.wa-fold-body { padding-bottom: 12px; }
.wa-versions { margin-top: 18px; font-size: 11px; color: var(--wa-faint); }

/* ── 推送预检 ── */
.wa-check-row {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 15px; margin-bottom: 7px;
  background: var(--surface); border: 1px solid var(--wa-line); border-radius: 10px;
  font-size: 13px;
}
.wa-check-row .mark { font-weight: 700; color: var(--green); }
.wa-check-row .mark.is-bad { color: var(--red); }
.wa-check-row .d { font-size: 11.5px; color: var(--wa-faint); margin-left: auto; text-align: right; }
.wa-push-note { margin-left: 10px; font-size: 12px; color: var(--wa-muted); }
.wa-push-result { margin-top: 18px; }
.wa-push-list {
  margin-top: 10px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--wa-line); border-radius: 10px;
  font-size: 13px; line-height: 2; color: var(--wa-ink);
}

/* ── 生成记录：最近批次条（四个步骤都常驻，随时能回到成稿） ── */
.wa-recent {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 12px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--wa-line);
  border-radius: 12px; box-shadow: var(--wa-shadow);
}
.wa-recent-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wa-recent-tag {
  padding: 4px 9px; border-radius: 6px;
  background: var(--wa-brand-soft); color: var(--primary);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
}
.wa-recent-main > b { font-size: 13px; font-weight: 700; color: var(--wa-ink); }
.wa-recent-stat { font-size: 12px; color: var(--wa-muted); }
.wa-recent-actions { display: flex; gap: 8px; margin-left: auto; }
.wa-recent-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.wa-recent-chip {
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--wa-line); background: var(--wa-soft);
  color: var(--wa-muted); font-family: inherit; font-size: 11px; cursor: pointer;
  transition: all .15s;
}
.wa-recent-chip:hover, .wa-recent-chip.is-active {
  border-color: var(--primary); background: var(--wa-brand-soft); color: var(--primary);
}

/* ── 选稿卡片上的生成状态标签 ── */
.wa-card-gen { margin-top: 7px; }
.wa-gen-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--wa-line); background: #f1f4f9; color: var(--wa-muted);
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: filter .15s, box-shadow .15s;
}
.wa-gen-badge:hover { filter: brightness(.97); box-shadow: 0 0 0 2px rgba(37, 99, 235, .1); }
.wa-gen-badge.is-done { background: var(--green-bg); border-color: #bbf0ca; color: var(--green); }
.wa-gen-badge.is-running { background: var(--blue-bg); border-color: #c7dbff; color: var(--primary); }
.wa-gen-badge.is-pending { background: var(--yellow-bg); border-color: #f2e3a1; color: #92690a; }
.wa-gen-badge.is-failed { background: var(--red-bg); border-color: #f6cccc; color: var(--red); }

.wa-attention { background: var(--yellow-bg); border-color: #f0d99a; color: #77590a; }
.wa-placeholder-title { font-size: 15px; font-weight: 700; color: var(--wa-ink); margin-bottom: 8px; }

/* ── 生成：分段总进度条（每格 = 1 篇，格内按该篇 6 阶段推进） ── */
.wa-segbar { display: flex; gap: 5px; height: 30px; margin: 4px 0 10px; }
.wa-seg {
  position: relative; flex: 1 1 0; min-width: 0;
  background: #edf1f8; border: 1px solid var(--wa-line);
  border-radius: 6px; overflow: hidden;
}
.wa-seg-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--primary);
  transition: width .8s cubic-bezier(.4, 0, .2, 1);
}
.wa-seg.is-done .wa-seg-fill { background: var(--green); }
.wa-seg.is-failed .wa-seg-fill { background: var(--red); }
.wa-seg.is-active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37, 99, 235, .12); }
.wa-seg-fill.is-live {
  background-image: linear-gradient(100deg, #2563eb 0%, #60a5fa 45%, #2563eb 90%);
  background-size: 36px 100%;
  animation: waFlow 1.15s linear infinite;
}
@keyframes waFlow { from { background-position: 0 0; } to { background-position: 36px 0; } }
.wa-seg-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--wa-muted); pointer-events: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .75);
}
.wa-seg.is-done .wa-seg-num { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .28); }
/* 进行中这一格只有部分被填充，数字要同时能在蓝色与浅灰底色上看清 */
.wa-seg.is-active .wa-seg-num { color: var(--primary); text-shadow: 0 1px 2px #fff, 0 0 3px #fff; }
.wa-seg-legend {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 11px; color: var(--wa-faint);
}
.wa-seg-now { color: var(--primary); font-weight: 700; }

/* ── 生成：当前篇独立进度条 + 6 阶段步骤 ── */
.wa-now {
  padding: 16px 18px; margin-bottom: 15px;
  background: var(--surface); border: 1px solid #c7dbff;
  border-radius: 12px; box-shadow: var(--wa-shadow);
}
.wa-now-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.wa-now-kicker {
  flex: none; padding: 3px 9px; border-radius: 6px;
  background: var(--blue-bg); color: var(--primary); font-size: 10.5px; font-weight: 700;
}
.wa-now-head b {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wa-now-pct { flex: none; font-size: 15px; font-weight: 700; color: var(--primary); }
.wa-now-bar { height: 10px; background: #edf1f8; border-radius: 999px; overflow: hidden; }
.wa-now-fill {
  height: 100%;
  background-image: linear-gradient(100deg, #2563eb 0%, #60a5fa 45%, #2563eb 90%);
  background-size: 36px 100%;
  animation: waFlow 1.15s linear infinite;
  transition: width .8s cubic-bezier(.4, 0, .2, 1);
}
.wa-stages { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 13px; }
.wa-stage {
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--wa-line); background: var(--wa-soft);
  font-size: 11px; color: var(--wa-faint);
}
.wa-stage.is-done { background: var(--green-bg); border-color: #bbf0ca; color: var(--green); }
.wa-stage.is-current {
  background: var(--blue-bg); border-color: #c7dbff;
  color: var(--primary); font-weight: 700;
}
.wa-now-sub { margin-top: 10px; font-size: 11.5px; color: var(--wa-muted); }

/* ── 生成：篇目列表的小进度条 ── */
.wa-joblist { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.wa-job-idx {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  background: var(--wa-soft); color: var(--wa-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.wa-job.is-active { border-color: #c7dbff; background: var(--wa-brand-soft); }
.wa-job-pct {
  flex: none; width: 40px; text-align: right;
  font-size: 11.5px; font-weight: 700; color: var(--wa-muted);
}
.wa-mini-bar {
  height: 4px; background: #edf1f8; border-radius: 999px;
  overflow: hidden; margin: 7px 0 5px;
}
.wa-mini-fill { height: 100%; background: var(--primary); transition: width .8s; }
.wa-mini-fill.is-done { background: var(--green); }
.wa-mini-fill.is-failed { background: var(--red); }
.wa-date-tag { color: var(--primary); font-weight: 600; }
.wa-notice.is-ok { background: var(--green-bg); border-color: #bbf0ca; color: #14663a; }
.wa-notice.is-ok::before { background: var(--green); }

/* ── 审校：确认进度 ── */
.wa-review-progress { padding: 16px 18px; margin-bottom: 14px; }
.wa-rp-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; margin-bottom: 10px;
}
.wa-rp-head b { font-weight: 700; }
.wa-rp-head span { color: var(--wa-muted); font-size: 12px; }
.wa-rp-bar { height: 8px; background: #edf1f8; border-radius: 999px; overflow: hidden; }
.wa-rp-fill { height: 100%; background: var(--green); transition: width .6s; }
.wa-rp-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px;
}
.wa-rp-hint { font-size: 11.5px; color: var(--wa-faint); }
.wa-review-item.is-confirmed { border-left: 3px solid var(--green); }

/* ── 推送：文章勾选列表（合并成一条多图文草稿） ── */
.wa-checklist { margin: 12px 0 16px; }
.wa-push-arts { padding: 16px 18px; }
.wa-pa-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  align-items: center; margin-bottom: 12px; font-size: 13px;
}
.wa-pa-head b { font-weight: 700; }
.wa-pa-head span { font-size: 12px; color: var(--wa-muted); }
.wa-pa-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; margin-bottom: 7px;
  border: 1px solid var(--wa-line); border-radius: 9px;
  background: var(--surface); cursor: pointer; transition: all .15s;
}
.wa-pa-item:hover { border-color: #c3d5f7; }
.wa-pa-item.is-on { border-color: var(--primary); background: var(--wa-brand-soft); }
.wa-pa-item.is-locked { opacity: .55; cursor: not-allowed; }
#wa-root .wa-pa-item input[type="checkbox"] {
  width: 15px; height: 15px; flex: none; padding: 0; accent-color: var(--primary);
}
.wa-pa-t {
  flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wa-pa-s { flex: none; font-size: 11px; color: var(--wa-muted); }
.wa-pa-item.is-on .wa-pa-s { color: var(--green); font-weight: 700; }
.wa-pa-foot { margin-top: 11px; font-size: 11.5px; color: var(--wa-faint); line-height: 1.6; }

@media (max-width: 1040px) {
  .wa-cols, .wa-review { grid-template-columns: 1fr; }
  .wa-review-list { position: static; max-height: none; }
  .wa-toolbar-actions, .wa-recent-actions { margin-left: 0; }
  .wa-stages { gap: 4px; }
}
