/* ============================================================
   专家培养工作台（expert-cultivation.js 配套样式）
   容器契约：<section id="cultivation-view" class="page-view hidden">
   全部规则均以 #cultivation-view 作用域隔离，无全局选择器；
   视觉基调与 opportunity.css 暖白页一致，弹层对齐
   consultation.css 的 .cm-mask/.cm-dialog，表单对齐
   expert-wizard.css 的 .ew-field 风格。
   ============================================================ */

/* ---------- 作用域内设计 token ---------- */
#cultivation-view {
  --oc-navy: #16365a;          /* 主色：深海军蓝（标题/当前态） */
  --oc-gold: #c4a46c;          /* 点缀色：哑光金（修订/候选/完成） */
  --oc-bg: #f5f4f0;            /* 暖白页面底 */
  --oc-card: #ffffff;          /* 卡片底 */
  --oc-line: #e6e1d5;          /* 暖调细边 */
  --oc-text: #23344c;          /* 主文本 */
  --oc-text-2: #5d6b7e;        /* 次文本 */
  --oc-text-3: #8a94a3;        /* 弱文本 */
  /* 淡色状态底/边（全部克制，非大红大绿） */
  --oc-gold-soft: #faf3e3;
  --oc-gold-line: #e5d3ac;
  --oc-blue-soft: #eef4fb;
  --oc-blue-line: #cfdeef;
  --oc-green-soft: #f2f9f4;
  --oc-green-line: #cfe6d6;
  --oc-red-soft: #fdf2f2;
  --oc-red-line: #f3d4d4;
  --oc-gray-soft: #f4f4f2;
  --oc-gray-line: #dddcd8;
  /* 圆角收敛在 7–12px 区间 */
  --oc-r-lg: 12px;
  --oc-r-md: 10px;
  --oc-r-sm: 8px;
  --oc-r-xs: 7px;
  background: var(--oc-bg);
  color: var(--oc-text);
  padding: 26px 32px 32px;
}

/* 弹层淡入（独立 keyframes 名，避免与 base.css 冲突） */
@keyframes cl-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 通用小标签（字段名前缀、栏目标签） */
#cultivation-view .cl-label {
  font-size: 11px;
  color: var(--oc-text-3);
  white-space: nowrap;
}
#cultivation-view .cl-empty {
  font-size: 12px;
  color: var(--oc-text-3);
  line-height: 1.7;
}

/* 基础控件（base.css .btn-primary/.btn-cancel 的作用域内微调，不改动全局） */
#cultivation-view .btn-primary:disabled,
#cultivation-view .btn-cancel:disabled {
  opacity: .55;
  cursor: not-allowed;
}
#cultivation-view .cl-btn-sm {
  padding: 5px 12px;
  font-size: 11.5px;
  border-radius: var(--oc-r-xs);
}
#cultivation-view .btn-primary:focus-visible,
#cultivation-view .btn-cancel:focus-visible,
#cultivation-view .cl-chip:focus-visible,
#cultivation-view .cl-link-danger:focus-visible,
#cultivation-view .cl-doc-ver:focus-within {
  outline: 2px solid #5687e8;
  outline-offset: 2px;
}

/* ================= 顶部：标题 + 培养对象选择 ================= */

#cultivation-view .cl-shell {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

#cultivation-view .cl-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--oc-line);
}

#cultivation-view .cl-eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: #a08c5f;
  margin-bottom: 6px;
}
#cultivation-view #cl-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--oc-navy);
  letter-spacing: .5px;
  margin: 0;
}
#cultivation-view #cl-subtitle {
  font-size: 12px;
  color: var(--oc-text-3);
  margin: 5px 0 0;
}

/* 右上角培养对象选择 */
#cultivation-view .cl-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}
#cultivation-view #cl-expert-select {
  min-width: 220px;
  padding: 8px 12px;
  border: 1px solid var(--oc-line);
  border-radius: var(--oc-r-sm);
  background: var(--oc-card);
  color: var(--oc-text);
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
#cultivation-view #cl-expert-select:focus {
  border-color: #6b96df;
  box-shadow: 0 0 0 3px rgba(57, 117, 216, .08);
}

/* ================= 顶部五步 stepper =================
   细线 + 圆点；完成步金色小勾，当前步深蓝实点 + 枝干高亮，未来步灰。 */

#cultivation-view .cl-stepper {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  align-items: flex-start;
}
#cultivation-view .cl-stepper li {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding-top: 2px;
}
/* 枝干：贯穿各步的横向细线（段颜色由「到达该步」的状态决定） */
#cultivation-view .cl-stepper li::before {
  content: '';
  position: absolute;
  top: 12px;                 /* 与圆点垂直居中 */
  left: 0;
  right: 0;
  height: 1px;
  background: #dcd8ce;       /* 未来步：灰 */
  z-index: 0;
}
#cultivation-view .cl-stepper li:first-child::before { left: 50%; }
#cultivation-view .cl-stepper li:last-child::before { right: 50%; }
/* 已完成路径：淡金；当前步枝干：深蓝高亮 */
#cultivation-view .cl-stepper li.is-done::before { background: #dcc9a0; }
#cultivation-view .cl-stepper li.is-active::before { background: var(--oc-navy); }

#cultivation-view .cl-step-dot {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #c9c4b8;
  background: var(--oc-card);
  color: var(--oc-text-3);
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex: none;
}
/* 完成步：金色小勾（JS 已输出 ✓ 字符，此处仅上色，不用图标库） */
#cultivation-view .cl-stepper li.is-done .cl-step-dot {
  border-color: var(--oc-gold);
  color: var(--oc-gold);
  font-size: 12px;
  background: var(--oc-card);
}
/* 当前步：深蓝实点 */
#cultivation-view .cl-stepper li.is-active .cl-step-dot {
  background: var(--oc-navy);
  border-color: var(--oc-navy);
  color: #fff;
  font-weight: 600;
}
#cultivation-view .cl-step-label {
  font-size: 12px;
  color: var(--oc-text-3);
  white-space: nowrap;
}
#cultivation-view .cl-stepper li.is-done .cl-step-label {
  color: #7d6a45;
}
#cultivation-view .cl-stepper li.is-active .cl-step-label {
  color: var(--oc-navy);
  font-weight: 600;
}

/* ================= 三栏 Grid 与卡片 ================= */

#cultivation-view .cl-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) minmax(360px, 400px);
  gap: 16px;
  align-items: start;
}
#cultivation-view .cl-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#cultivation-view .cl-card {
  background: var(--oc-card);
  border: 1px solid var(--oc-line);
  border-radius: var(--oc-r-md);
  box-shadow: 0 1px 3px rgba(31, 45, 61, .05);
  padding: 16px 18px;
}
#cultivation-view .cl-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--oc-navy);
  margin: 0;
}
#cultivation-view .cl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
#cultivation-view .cl-card-head h3 { margin: 0; }
#cultivation-view .cl-card-head .cl-label { font-size: 10.5px; }

/* 胶囊 chips（历史会话 / 试炼题目切换共用） */
#cultivation-view .cl-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}
#cultivation-view .cl-chip {
  border: 1px solid var(--oc-line);
  background: var(--oc-card);
  color: var(--oc-text-2);
  border-radius: 999px;          /* 胶囊 */
  padding: 4px 12px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
#cultivation-view .cl-chip:hover {
  border-color: var(--oc-gold);
  color: var(--oc-navy);
}
#cultivation-view .cl-chip.is-active {
  background: var(--oc-navy);
  border-color: var(--oc-navy);
  color: #fff;
}

/* ================= 左栏：训练材料 ================= */

#cultivation-view .cl-materials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
#cultivation-view .cl-material {
  padding: 10px 2px;
  border-top: 1px solid var(--oc-line);
}
#cultivation-view .cl-material:first-child { border-top: 0; padding-top: 2px; }

#cultivation-view .cl-material-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#cultivation-view .cl-material-head strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--oc-navy);
  min-width: 0;
  overflow-wrap: anywhere;
}
/* 文档版本号小胶囊 */
#cultivation-view .cl-material-head em {
  font-style: normal;
  font-size: 10px;
  color: #8a6d2f;
  background: var(--oc-gold-soft);
  border: 1px solid var(--oc-gold-line);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
}
#cultivation-view .cl-material-excerpt {
  font-size: 11.5px;
  color: var(--oc-text-3);
  line-height: 1.7;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
#cultivation-view .cl-link-danger {
  border: 0;
  background: transparent;
  color: #b3564f;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0 0;
}
#cultivation-view .cl-link-danger:hover { text-decoration: underline; }
#cultivation-view .cl-lock-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  background: var(--oc-gold-soft);
  border: 1px solid var(--oc-gold-line);
  border-radius: var(--oc-r-sm);
  color: #7d6435;
  font-size: 11px;
  line-height: 1.6;
}

/* 引用编号 chips：等宽小号字体 */
#cultivation-view .cl-cite {
  font-family: Consolas, Menlo, monospace;
  font-size: 10px;
  color: #6b5a33;
  background: var(--oc-gold-soft);
  border: 1px solid var(--oc-gold-line);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

/* ================= 选择材料弹层（视觉对齐 .cm-mask/.cm-dialog） ================= */

#cultivation-view .cl-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 35, 60, .45);
  backdrop-filter: blur(7px);
  animation: cl-fade-in .15s ease;
}
#cultivation-view .cl-dialog {
  width: min(680px, 100%);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--oc-card);
  color: var(--oc-text);
  border: 1px solid #e3e8ef;
  border-radius: var(--oc-r-lg);          /* 12px 白底圆角 */
  box-shadow: 0 26px 90px rgba(13, 32, 59, .19);
  overflow: hidden;
  font-size: 13px;
}
#cultivation-view .cl-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 14px;
  background: linear-gradient(110deg, #f8f7f3, #fff);
  border-bottom: 1px solid #e9edf3;
}
#cultivation-view .cl-dialog-head h3 {
  font-size: 16px;
  font-weight: 650;
  color: var(--oc-navy);
  margin: 0;
}
#cultivation-view .cl-dialog-head p {
  font-size: 11.5px;
  color: var(--oc-text-3);
  margin: 5px 0 0;
  line-height: 1.6;
}
#cultivation-view .cl-dialog-close {
  border: 0;
  background: transparent;
  color: #8693a5;
  font-size: 24px;
  line-height: 1;
  padding: 0 3px;
  cursor: pointer;
  flex: none;
}
#cultivation-view .cl-dialog-close:hover { color: var(--oc-navy); }
#cultivation-view .cl-dialog-body {
  padding: 16px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#cultivation-view .cl-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  border-top: 1px solid #e9edf3;
  background: #fbfaf7;
}
#cultivation-view .cl-dialog-foot > div {
  display: flex;
  gap: 10px;
}
#cultivation-view .cl-picked {
  font-size: 11px;
  color: var(--oc-text-3);
}
#cultivation-view #cl-space-select {
  width: 100%;
  min-width: 200px;
  flex: 1;
  border: 1px solid #dce3ec;
  border-radius: var(--oc-r-xs);
  background: var(--oc-card);
  color: #31445f;
  padding: 9px 11px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#cultivation-view #cl-space-select:focus {
  border-color: #648de2;
  box-shadow: 0 0 0 3px rgba(36, 96, 214, .08);
}
#cultivation-view .cl-space-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
#cultivation-view .cl-doc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}
#cultivation-view .cl-doc {
  border: 1px solid var(--oc-line);
  border-radius: var(--oc-r-sm);
  background: #fffdfb;
  padding: 10px 12px;
}
#cultivation-view .cl-doc > strong {
  display: block;
  font-size: 12.5px;
  color: var(--oc-navy);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
#cultivation-view .cl-doc-vers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#cultivation-view .cl-doc-ver {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--oc-line);
  border-radius: 999px;
  background: var(--oc-card);
  padding: 4px 11px;
  font-size: 11.5px;
  color: var(--oc-text-2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
#cultivation-view .cl-doc-ver:hover { border-color: #b9c9e2; }
#cultivation-view .cl-doc-ver:has(input:checked) {
  background: var(--oc-blue-soft);
  border-color: var(--oc-blue-line);
  color: var(--oc-navy);
}
#cultivation-view .cl-doc-ver input { accent-color: #326bc9; margin: 0; }
#cultivation-view .cl-doc-ver span { font-weight: 600; font-variant-numeric: tabular-nums; }
#cultivation-view .cl-doc-ver small { font-size: 10px; color: var(--oc-text-3); }

/* ================= 中栏：Revision 横幅与摘要 ================= */

#cultivation-view .cl-rev-banner {
  background: var(--oc-blue-soft);        /* ready/trialing 语义：淡蓝 */
  border: 1px solid var(--oc-blue-line);
  border-radius: var(--oc-r-sm);
  color: #2c4d77;
  font-size: 12px;
  padding: 8px 12px;
  line-height: 1.6;
}
#cultivation-view .cl-rev-banner strong { color: var(--oc-navy); }
#cultivation-view .cl-rev-banner.is-base {
  background: var(--oc-gray-soft);
  border-color: var(--oc-gray-line);
  color: #6b7280;
}
#cultivation-view .cl-rev-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 11.5px;
  color: var(--oc-text-2);
  margin: 10px 2px 14px;
}
#cultivation-view .cl-rev-summary strong { color: var(--oc-navy); }

/* ================= 中栏：能力树（细线树，金色「最近修订」chips） =================
   结构：.cl-tree > .cl-branch(.is-affected) > .cl-branch-name + .cl-cap(.is-affected)
   与专家档案页同一五枝干契约；金线为「本次培养受影响」标记。 */

#cultivation-view .cl-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#cultivation-view .cl-branch {
  position: relative;
  padding-left: 20px;
}
/* 枝干主竖线 */
#cultivation-view .cl-branch::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 8px;
  width: 1px;
  background: var(--oc-line);
}
#cultivation-view .cl-branch:last-child::before { bottom: auto; height: 14px; }
/* 受影响枝干：竖线转哑光金 */
#cultivation-view .cl-branch.is-affected::before { background: #d3bd8e; }

#cultivation-view .cl-branch-name {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  color: var(--oc-navy);
  padding: 4px 0 6px;
}
/* 枝干节点：金色空心环 */
#cultivation-view .cl-branch-name::before {
  content: '';
  position: absolute;
  left: -17px;               /* 主竖线(6px)上 */
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--oc-gold);
  background: var(--oc-card);
}
#cultivation-view .cl-branch.is-affected .cl-branch-name::before {
  background: var(--oc-gold);
}

#cultivation-view .cl-cap {
  position: relative;
  padding: 5px 0 7px;
}
/* 叶子节点：竖线上的小实点 */
#cultivation-view .cl-cap::before {
  content: '';
  position: absolute;
  left: -16px;               /* 圆点中心压主竖线 */
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9c3b5;
}
/* 受影响叶子：金色实点 + 淡金底带 */
#cultivation-view .cl-cap.is-affected::before { background: var(--oc-gold); }
#cultivation-view .cl-cap.is-affected {
  background: linear-gradient(90deg, var(--oc-gold-soft), rgba(250, 243, 227, 0));
  border-radius: var(--oc-r-xs);
  margin-left: -8px;
  padding-left: 8px;
}

#cultivation-view .cl-cap-head {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
#cultivation-view .cl-cap-label {
  font-size: 12px;
  font-weight: 600;
  color: #31435c;
}
#cultivation-view .cl-cap-value {
  font-size: 11.5px;
  color: var(--oc-text-2);
  line-height: 1.65;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
#cultivation-view .cl-cap-value.is-empty { color: #a8b0bd; }

/* 金色胶囊 chip：受影响标记（同专家档案「最近修订」chips 语义） */
#cultivation-view .cl-aff-chip {
  font-style: normal;
  font-size: 10px;
  color: #8a6d2f;
  background: var(--oc-gold-soft);
  border: 1px solid var(--oc-gold-line);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
  flex: none;
}

/* ================= 右栏：通用 ================= */

#cultivation-view .cl-suggest h3 {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#cultivation-view .cl-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--oc-text-3);
  font-variant-numeric: tabular-nums;
}
#cultivation-view .cl-stage-desc {
  font-size: 12px;
  color: var(--oc-text-2);
  line-height: 1.8;
  margin: 0 0 14px;
}
/* 弱提示条：淡金左边线，克制 */
#cultivation-view .cl-hint {
  font-size: 11px;
  color: var(--oc-text-3);
  line-height: 1.7;
  margin: 10px 0 0;
  padding-left: 9px;
  border-left: 2px solid var(--oc-gold-line);
}

/* ---------- proposed 首屏：培养目标 / 受影响清单 ---------- */

#cultivation-view .cl-goal-card {
  background: var(--oc-gold-soft);        /* 候选语义：淡金 */
  border: 1px solid var(--oc-gold-line);
  border-radius: var(--oc-r-sm);
  padding: 10px 12px;
  margin: 0 0 14px;
}
#cultivation-view .cl-goal-card .cl-label { display: block; margin-bottom: 4px; }
#cultivation-view .cl-goal-card p {
  font-size: 12.5px;
  color: var(--oc-navy);
  line-height: 1.75;
  margin: 0;
  overflow-wrap: anywhere;
}
#cultivation-view .cl-affected-list .cl-label,
#cultivation-view .cl-unaffected .cl-label,
#cultivation-view .cl-dims > .cl-label {
  display: block;
  margin-bottom: 6px;
}
#cultivation-view .cl-affected-list ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
#cultivation-view .cl-affected-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--oc-line);
  font-size: 12px;
  color: var(--oc-text-2);
}
#cultivation-view .cl-affected-list li:last-child { border-bottom: 0; }
#cultivation-view .cl-affected-list li em {
  font-style: normal;
  color: var(--oc-text-3);
  font-size: 11px;
  text-align: right;
  max-width: 55%;
  overflow-wrap: anywhere;
}
#cultivation-view .cl-unaffected {
  margin-bottom: 14px;
}
#cultivation-view .cl-unaffected p {
  font-size: 11px;
  color: var(--oc-text-3);
  line-height: 1.8;
  margin: 0;
}

/* ---------- 逐项审核工具条 ---------- */

#cultivation-view .cl-review-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 14px;
}
#cultivation-view .cl-review-note {
  font-size: 10.5px;
  color: var(--oc-text-3);
  line-height: 1.6;
  flex: 1;
  min-width: 180px;
}
#cultivation-view .cl-review-tools > div {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
#cultivation-view .cl-diffs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
#cultivation-view .cl-submit { width: 100%; }

/* ================= Diff 审核卡片 ================= */

#cultivation-view .cl-diff {
  background: var(--oc-card);
  border: 1px solid var(--oc-line);
  border-radius: var(--oc-r-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* 决定后的卡片态：接受=淡绿边 / 拒绝=淡灰 / 编辑=淡蓝 */
#cultivation-view .cl-diff.is-accept { border-color: var(--oc-green-line); }
#cultivation-view .cl-diff.is-reject {
  border-color: var(--oc-gray-line);
  background: #fbfaf8;
}
#cultivation-view .cl-diff.is-edit { border-color: var(--oc-blue-line); }

#cultivation-view .cl-diff-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#cultivation-view .cl-diff-cap {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--oc-navy);
  margin-right: auto;
  overflow-wrap: anywhere;
}

/* 决定状态 chips */
#cultivation-view .cl-dec-chip {
  font-style: normal;
  font-size: 10px;
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
  border: 1px solid transparent;
}
#cultivation-view .cl-dec-chip.is-pending {
  background: var(--oc-gold-soft);        /* 待处理：淡金 */
  border-color: var(--oc-gold-line);
  color: #8a6d2f;
}
#cultivation-view .cl-dec-chip.is-accept {
  background: var(--oc-green-soft);       /* 已接受：淡绿 */
  border-color: var(--oc-green-line);
  color: #3c6b4e;
}
#cultivation-view .cl-dec-chip.is-reject {
  background: var(--oc-gray-soft);        /* 已拒绝：淡灰 */
  border-color: var(--oc-gray-line);
  color: #6b7280;
}
#cultivation-view .cl-dec-chip.is-edit {
  background: var(--oc-blue-soft);        /* 已编辑：淡蓝 */
  border-color: var(--oc-blue-line);
  color: #2c5d9e;
}

/* 旧值：淡红底（克制，非大红） */
#cultivation-view .cl-diff-old {
  background: var(--oc-red-soft);
  border: 1px solid var(--oc-red-line);
  border-radius: var(--oc-r-sm);
  padding: 8px 10px;
}
#cultivation-view .cl-diff-old summary {
  font-size: 11px;
  color: #8f5b57;
  cursor: pointer;
  user-select: none;
}
#cultivation-view .cl-diff-old pre {
  margin: 8px 0 2px;
  font-family: Consolas, Menlo, monospace;
  font-size: 11px;
  line-height: 1.7;
  color: #6d4a48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 220px;
  overflow: auto;
}

/* 新值：淡绿底（克制，非大绿） */
#cultivation-view .cl-diff-new {
  background: var(--oc-green-soft);
  border: 1px solid var(--oc-green-line);
  border-radius: var(--oc-r-sm);
  padding: 8px 10px;
}
#cultivation-view .cl-diff-new .cl-label { display: block; margin-bottom: 4px; }
#cultivation-view .cl-diff-new p {
  font-size: 12px;
  color: #2f4a3a;
  line-height: 1.75;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/* 编辑态：对齐 .ew-field/.cm-dialog 表单风格 */
#cultivation-view .cl-diff-edit textarea {
  width: 100%;
  border: 1px solid #dce3ec;
  border-radius: var(--oc-r-xs);
  color: #31445f;
  background: var(--oc-card);
  padding: 9px 11px;
  outline: none;
  font-size: 12px;
  line-height: 1.65;
  font-family: inherit;
  resize: vertical;
  min-height: 90px;
  transition: border-color .15s, box-shadow .15s;
}
#cultivation-view .cl-diff-edit textarea:focus {
  border-color: #648de2;
  box-shadow: 0 0 0 3px rgba(36, 96, 214, .08);
}
#cultivation-view .cl-diff-edit > div {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

#cultivation-view .cl-diff-reason {
  font-size: 11.5px;
  color: var(--oc-text-2);
  line-height: 1.7;
  margin: 0;
  overflow-wrap: anywhere;
}
#cultivation-view .cl-diff-reason .cl-label { margin-right: 6px; }
#cultivation-view .cl-diff-refs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
#cultivation-view .cl-diff-refs .cl-empty { font-size: 11px; }

/* 操作按钮组：接受=淡绿边 / 拒绝=淡灰边 / 编辑后接受=淡蓝边 */
#cultivation-view .cl-diff-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}
#cultivation-view .cl-diff-actions [data-act="accept"] {
  background: #f4faf5;
  border: 1px solid var(--oc-green-line);
  color: #3c6b4e;
}
#cultivation-view .cl-diff-actions [data-act="accept"]:hover:not(:disabled) {
  background: #e8f3ec;
}
#cultivation-view .cl-diff-actions [data-act="reject"] {
  background: #f7f6f3;
  border: 1px solid #d8d5cd;
  color: #77716a;
}
#cultivation-view .cl-diff-actions [data-act="reject"]:hover:not(:disabled) {
  background: #efeeea;
}
#cultivation-view .cl-diff-actions [data-act="edit"] {
  background: #f3f8fd;
  border: 1px solid var(--oc-blue-line);
  color: #2c5d9e;
}
#cultivation-view .cl-diff-actions [data-act="edit"]:hover:not(:disabled) {
  background: #e8f1fa;
}

/* ================= ready：候选版本就绪 ================= */

#cultivation-view .cl-stage-ok {
  background: var(--oc-blue-soft);        /* ready：淡蓝 */
  border: 1px solid var(--oc-blue-line);
  border-radius: var(--oc-r-sm);
  padding: 10px 12px;
  margin: 0 0 14px;
}
#cultivation-view .cl-stage-ok strong {
  font-size: 12.5px;
  color: var(--oc-navy);
}
#cultivation-view .cl-stage-ok p {
  font-size: 11.5px;
  color: var(--oc-text-2);
  line-height: 1.7;
  margin: 4px 0 0;
}

/* ================= trialing：试炼对比 ================= */

#cultivation-view .cl-trial-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
#cultivation-view .cl-trial-q { margin-bottom: 12px; }
#cultivation-view .cl-trial-q .cl-label { display: block; margin-bottom: 6px; }
#cultivation-view .cl-trial-q p {
  font-size: 13px;
  font-weight: 600;
  color: var(--oc-navy);
  line-height: 1.7;
  background: var(--oc-card);
  border: 1px solid var(--oc-line);
  border-radius: var(--oc-r-sm);
  padding: 10px 12px;
  margin: 0;
  overflow-wrap: anywhere;
}

/* 左右并排对比 */
#cultivation-view .cl-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#cultivation-view .cl-answer {
  background: var(--oc-card);
  border: 1px solid var(--oc-line);
  border-radius: var(--oc-r-md);
  padding: 14px;
  min-width: 0;
}
/* 候选版本卡：金色细边呼应「候选=淡金」 */
#cultivation-view .cl-answer.is-candidate { border-color: var(--oc-gold-line); }
#cultivation-view .cl-answer-tag {
  display: inline-block;
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--oc-blue-line);
  background: var(--oc-blue-soft);
  color: #4a6a92;                        /* 当前版本：灰蓝 */
  margin-bottom: 10px;
}
#cultivation-view .cl-answer.is-candidate .cl-answer-tag {
  border-color: var(--oc-gold);          /* 候选版本：金色细边 */
  background: var(--oc-gold-soft);
  color: #8a6d2f;
}

/* 答案区 markdown 排版：间距舒适 */
#cultivation-view .cl-md {
  font-size: 12.5px;
  line-height: 1.85;
  color: #37485e;
  overflow-wrap: anywhere;
}
#cultivation-view .cl-md p { margin: 8px 0; }
#cultivation-view .cl-md h1,
#cultivation-view .cl-md h2,
#cultivation-view .cl-md h3,
#cultivation-view .cl-md h4 {
  color: var(--oc-navy);
  line-height: 1.6;
  margin: 16px 0 8px;
}
#cultivation-view .cl-md h1 { font-size: 16px; }
#cultivation-view .cl-md h2 { font-size: 14.5px; }
#cultivation-view .cl-md h3 { font-size: 13.5px; }
#cultivation-view .cl-md h4 { font-size: 12.5px; }
#cultivation-view .cl-md ul,
#cultivation-view .cl-md ol {
  padding-left: 20px;
  margin: 8px 0;
}
#cultivation-view .cl-md li { margin: 4px 0; }
#cultivation-view .cl-md strong { color: var(--oc-navy); }
#cultivation-view .cl-md a { color: #2c5d9e; }
#cultivation-view .cl-md code {
  background: #f4f2ec;
  border: 1px solid var(--oc-line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11.5px;
  font-family: Consolas, Menlo, monospace;
}
#cultivation-view .cl-md pre {
  background: #f8f7f3;
  border: 1px solid var(--oc-line);
  border-radius: var(--oc-r-xs);
  padding: 10px 12px;
  margin: 10px 0;
  overflow: auto;
  font-size: 11.5px;
  line-height: 1.7;
}
#cultivation-view .cl-md pre code {
  background: transparent;
  border: 0;
  padding: 0;
}
#cultivation-view .cl-md blockquote {
  margin: 10px 0;
  padding: 4px 12px;
  border-left: 3px solid var(--oc-gold-line);
  background: #fbfaf7;
  color: var(--oc-text-2);
}
#cultivation-view .cl-md blockquote p { margin: 3px 0; }
#cultivation-view .cl-md hr {
  border: 0;
  border-top: 1px solid var(--oc-line);
  margin: 12px 0;
}
#cultivation-view .cl-md table.md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  margin: 10px 0;
  display: block;
  overflow-x: auto;
}
#cultivation-view .cl-md table.md-table th,
#cultivation-view .cl-md table.md-table td {
  border: 1px solid var(--oc-line);
  padding: 5px 9px;
  text-align: left;
}
#cultivation-view .cl-md table.md-table th {
  background: #f4f2ec;
  color: var(--oc-text-2);
  font-weight: 600;
}

/* 六维度结构化核查清单 */
#cultivation-view .cl-dims {
  margin-top: 14px;
}
#cultivation-view .cl-dims ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#cultivation-view .cl-dims li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--oc-line);
  font-size: 12px;
  color: var(--oc-text-2);
}
#cultivation-view .cl-dims li:last-child { border-bottom: 0; }
#cultivation-view .cl-dim-chip {
  font-style: normal;
  font-size: 10.5px;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
  border: 1px solid transparent;
}
#cultivation-view .cl-dim-chip.is-pass {
  background: var(--oc-green-soft);       /* 通过：淡绿 */
  border-color: var(--oc-green-line);
  color: #3c6b4e;
}
#cultivation-view .cl-dim-chip.is-review {
  background: var(--oc-gold-soft);        /* 待人工确认：淡金 */
  border-color: var(--oc-gold-line);
  color: #8a6d2f;
}
/* 汇总行：细分隔线收底 */
#cultivation-view .cl-dim-sum {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--oc-line);
  font-size: 11px;
  color: var(--oc-text-3);
}

#cultivation-view .cl-trial-summary {
  background: #f8f7f3;
  border: 1px solid var(--oc-line);
  border-radius: var(--oc-r-sm);
  padding: 10px 12px;
  margin-top: 14px;
}
#cultivation-view .cl-trial-summary .cl-label { display: block; margin-bottom: 4px; }
#cultivation-view .cl-trial-summary p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--oc-text-2);
  margin: 0;
  overflow-wrap: anywhere;
}
#cultivation-view .cl-trial-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ================= published：发布摘要卡 ================= */

#cultivation-view .cl-published-card {
  background: var(--oc-green-soft);       /* published：淡绿 */
  border: 1px solid var(--oc-green-line);
  border-radius: var(--oc-r-md);
  padding: 14px 16px;
  margin: 0 0 14px;
}
#cultivation-view .cl-published-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #3c6b4e;
  background: var(--oc-card);
  border: 1px solid var(--oc-green-line);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 8px;
}
#cultivation-view .cl-published-card p {
  font-size: 12px;
  color: #33503f;
  line-height: 1.75;
  margin: 0;
}
#cultivation-view .cl-published-card p + p { margin-top: 5px; }

/* ================= rejected：全部拒绝 ================= */

#cultivation-view .cl-stage-rejected {
  background: var(--oc-gray-soft);        /* rejected：淡灰 */
  border: 1px solid var(--oc-gray-line);
  border-radius: var(--oc-r-sm);
  padding: 10px 12px;
  margin: 0 0 14px;
}
#cultivation-view .cl-stage-rejected strong {
  font-size: 12.5px;
  color: #4a5568;
}
#cultivation-view .cl-stage-rejected p {
  font-size: 11.5px;
  color: #6b7280;
  line-height: 1.7;
  margin: 4px 0 0;
}

/* ================= 底部红线提示条 ================= */

#cultivation-view .cl-redline {
  margin-top: 18px;
  padding: 10px 14px;
  background: var(--oc-red-soft);
  border: 1px solid var(--oc-red-line);
  border-radius: var(--oc-r-sm);
  color: #a4574f;
  font-size: 11.5px;
  line-height: 1.7;
  text-align: center;
}

/* ================= 响应式 =================
   ≤1250px：三栏收为单栏纵向（与 opportunity.css 断点一致） */
@media (max-width: 1250px) {
  #cultivation-view { padding: 20px 18px 26px; }
  #cultivation-view .cl-grid { grid-template-columns: 1fr; }
  #cultivation-view .cl-step-label { font-size: 11px; }
}

/* ≤760px：对比卡纵向、顶部堆叠、弹层贴边 */
@media (max-width: 760px) {
  #cultivation-view .cl-top { align-items: stretch; flex-direction: column; gap: 12px; }
  #cultivation-view .cl-picker { align-items: flex-start; flex-direction: column; }
  #cultivation-view #cl-expert-select { width: 100%; }
  #cultivation-view .cl-compare { grid-template-columns: 1fr; }
  #cultivation-view .cl-step-label { display: none; }  /* 窄屏仅保留圆点链 */
  #cultivation-view .cl-mask { padding: 0; }
  #cultivation-view .cl-dialog {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  #cultivation-view .cl-dialog-foot { flex-wrap: wrap; }
  #cultivation-view .cl-review-tools > div { margin-left: 0; }
}

/* 动效克制：系统减少动态时关闭过渡 */
@media (prefers-reduced-motion: reduce) {
  #cultivation-view .cl-chip,
  #cultivation-view .cl-doc-ver,
  #cultivation-view #cl-expert-select,
  #cultivation-view .cl-diff-edit textarea {
    transition: none;
  }
  #cultivation-view .cl-mask { animation: none; }
}
