/* 能力画像（REQ-036）专属样式。通用件（badge/drawer/btn）沿用 base.css 与 chat.css。 */

/* ---- 页内二级 tab（复盘中心内） ---- */
.ab-sub-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.ab-sub-tabs .ab-sub-tab {
  padding: 8px 18px; border-radius: 10px; border: 2px solid #e5e7eb; background: #fff;
  font-size: 14px; font-weight: 700; color: #4b5563; cursor: pointer; transition: all .15s;
}
.ab-sub-tabs .ab-sub-tab:hover { border-color: #c4b5fd; }
.ab-sub-tabs .ab-sub-tab.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }

/* ---- 顶部条：视图切换 + 汇总 ---- */
.ab-topbar { display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
#abViewTabs { display: flex; gap: 6px; }
.ab-vtab { padding: 6px 14px; border-radius: 8px; border: 1.5px solid #e5e7eb;
  background: #fff; font-size: 13px; font-weight: 600; color: #6b7280; cursor: pointer; }
.ab-vtab:hover { border-color: #c4b5fd; color: #7c3aed; }
.ab-vtab.active { background: #ede9fe; border-color: #7c3aed; color: #7c3aed; }
#abSummary { font-size: 13px; color: #6b7280; }
#abSummary b { color: #374151; font-size: 15px; }

/* ---- 时间带 ---- */
.ab-timeband { background: #fff; border-radius: 14px; padding: 18px 22px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06); margin-bottom: 16px; position: relative; }
.ab-tb-months { display: flex; justify-content: space-between; font-size: 12px;
  color: #9ca3af; font-weight: 600; }
.ab-tb-line { height: 3px; background: #e5e7eb; border-radius: 2px; margin: 30px 4px 12px; }
.ab-tb-dots { display: flex; justify-content: space-around; margin-top: -46px; }
.ab-dot { width: 24px; height: 24px; border-radius: 50%; background: #7c3aed; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  box-shadow: 0 0 0 5px #ede9fe; cursor: pointer; position: relative; }
.ab-dot:hover::after { content: attr(data-tip); position: absolute; bottom: 130%;
  left: 50%; transform: translateX(-50%); background: #1f2937; color: #fff;
  font-size: 11px; line-height: 1.5; padding: 6px 10px; border-radius: 6px;
  white-space: nowrap; z-index: 30; }

/* ---- 域卡网格 ---- */
.ab-domains-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ab-domain-card { background: #fff; border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06); border: 2px solid transparent; }
.ab-domain-card.doing { border-left: 4px solid #22c55e; }
.ab-domain-card.quiet { border-left: 4px solid #e5e7eb; }
.ab-dc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ab-dc-name { font-size: 16px; font-weight: 700; }
.ab-dc-cnt { font-size: 12px; color: #9ca3af; font-weight: 600; }
.ab-dc-level { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; }
.ab-dc-meta { display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: #9ca3af; border-top: 1px solid #f3f4f6; padding-top: 8px; }

/* ---- 层级四格刻度 ---- */
.ab-blocks { display: inline-flex; gap: 3px; }
.ab-blocks i { width: 15px; height: 9px; border-radius: 2px; background: #e5e7eb; }
.ab-blocks i.on1 { background: #7c3aed; } .ab-blocks i.on2 { background: #8b5cf6; }
.ab-blocks i.on3 { background: #a78bfa; } .ab-blocks i.on4 { background: #c4b5fd; }
.ab-lv-word { font-size: 12px; font-weight: 700; color: #7c3aed; }

/* ---- 域卡内能力项行 / 待确认行（共用行样式） ---- */
.ab-item-row { display: flex; align-items: center; gap: 8px; padding: 8px 6px;
  border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.ab-item-row:hover { background: #f9fafb; }
.ab-item-name { flex: 1; font-weight: 600; color: #374151; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.ab-item-ev { font-size: 12px; color: #7c3aed; white-space: nowrap; }

.ab-pending { border-left: 4px solid #f59e0b; }
.ab-pending h3 { font-size: 15px; margin-bottom: 4px; }
.ab-ev-li { display: flex; align-items: center; gap: 10px; padding: 9px 8px;
  border-radius: 10px; font-size: 13px; flex-wrap: wrap; }
.ab-ev-li:hover { background: #f9fafb; }
.ab-ev-li .t { color: #9ca3af; font-size: 12px; min-width: 150px; }
.ab-ev-li .txt { flex: 1; color: #374151; min-width: 200px; }
.ab-ev-act { color: #7c3aed; font-weight: 700; cursor: pointer; padding: 3px 10px;
  border-radius: 6px; background: #ede9fe; font-size: 12px; white-space: nowrap; }
.ab-ev-act.ab-rej { color: #6b7280; background: #f3f4f6; font-weight: 600; }
.ab-hint { font-size: 12px; color: #9ca3af; font-weight: 400; margin-left: 8px; }

/* ---- 停下的路 ---- */
.ab-stopped h3 { font-size: 15px; margin-bottom: 10px; }
.ab-stop-row { display: flex; align-items: center; gap: 8px; padding: 7px 4px;
  font-size: 13px; flex-wrap: wrap; }
.ab-stop-row b { color: #374151; }
.ab-stop-meta { color: #9ca3af; font-size: 12px; }

/* ---- SVG 舞台（成长树 / 路线图） ---- */
.ab-svg-wrap { background: #fff; border-radius: 14px; padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06); overflow-x: auto; }
.ab-svg { width: 100%; min-width: 640px; display: block; }
/* 成长树自己管理尺寸与缩放（世界坐标 × 缩放），不受最小宽度约束，否则窄屏会出横向滚动 */
.abtree-wrap .ab-svg { min-width: 0; }

/* ---------- 数据源模式（真实 / 演示）+ 版本 + 融合 ---------- */
#abStage { position: relative; }   /* 演示数据角标的定位基准 */
.ab-demo-badge { position: absolute; right: 12px; bottom: 10px; z-index: 6;
  font-size: 11px; color: #9ca3af; background: rgba(243,244,246,.88); border: 1px solid #e5e7eb;
  border-radius: 999px; padding: 2px 10px; pointer-events: none; }
.ab-mode-switch { display: inline-flex; border: 1px solid #e5e7eb; border-radius: 9px; overflow: hidden; }
.ab-mode-btn { border: 0; background: #fff; padding: 6px 12px; font-size: 12.5px; color: #6b7280;
  cursor: pointer; font-family: inherit; }
.ab-mode-btn + .ab-mode-btn { border-left: 1px solid #e5e7eb; }
.ab-mode-btn.active { background: #ede9fe; color: #7c3aed; font-weight: 700; }
.ab-mode-btn.ab-fuse { border: 1px solid #e5e7eb; border-radius: 9px; margin-left: 8px; }
.ab-mode-btn.ab-fuse:hover { border-color: #c4b5fd; color: #7c3aed; }
.ab-ver-chip { display: inline-block; margin-left: 10px; padding: 4px 10px; border-radius: 99px;
  background: #f5f3ff; color: #7c3aed; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.ab-ver-chip:hover { background: #ede9fe; }
#abModeBar { display: flex; align-items: center; }

/* ---------- 节点：描述 / 类型 / 备注 ---------- */
.ab-pan-sec { margin: 14px 0 6px; font-size: 12px; font-weight: 700; color: #6b7280; }
.ab-meta-box { border: 1px dashed #ddd8ec; background: #fbfaff; border-radius: 10px; padding: 10px 12px; }
.ab-mb-lab { font-size: 11px; color: #8b8b9a; margin: 8px 0 5px; }
.ab-mb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-mb-chip { font-size: 11.5px; padding: 3px 9px; border: 1px solid #e5e7eb; border-radius: 99px;
  color: #6b7280; cursor: pointer; background: #fff; user-select: none; }
.ab-mb-chip:hover { border-color: #c4b5fd; }
.ab-mb-chip.on { background: #ede9fe; border-color: #c4b5fd; color: #7c3aed; font-weight: 700; }
.ab-mb-ta { width: 100%; min-height: 50px; resize: vertical; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 7px 9px; font: inherit; font-size: 12.5px; color: #374151; background: #fff; line-height: 1.7; }
.ab-mb-ta:focus { outline: none; border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(124, 58, 237, .1); }
.ab-mb-hint { font-size: 11px; color: #a3a3ae; margin-top: 8px; line-height: 1.75; }
.ab-ev-list { display: flex; flex-direction: column; gap: 2px; }
.ab-ev-li.ab-skip { background: #fffbeb; }
.ab-ev-li.ab-gray { background: #f3f4f6; }
.ab-fruit, .ab-station { cursor: pointer; }
.ab-fruit:hover circle, .ab-station:hover circle { filter: brightness(1.15); }
.ab-tree-legend { display: flex; gap: 16px; font-size: 12px; color: #6b7280;
  padding: 2px 4px 10px; flex-wrap: wrap; }

/* ---- 冷启动域勾选 ---- */
.ab-seed h3 { font-size: 16px; margin-bottom: 6px; }
.ab-seed-row { display: flex; align-items: baseline; gap: 10px; padding: 10px 10px;
  border-radius: 10px; font-size: 14px; cursor: pointer; flex-wrap: wrap; }
.ab-seed-row:hover { background: #f9fafb; }
.ab-seed-row input { transform: translateY(2px); }
.ab-seed-row b { color: #374151; }
.ab-seed-items { color: #9ca3af; font-size: 12.5px; flex: 1; min-width: 160px; }
.ab-seed-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ab-seed-input { flex: 1; min-width: 220px; padding: 9px 12px; border: 1.5px solid #e5e7eb;
  border-radius: 8px; font-size: 13px; }
.ab-seed-input:focus { border-color: #7c3aed; outline: none; }

/* ---- 证据抽屉（复用 chat.css .drawer/.drawer-head/.drawer-body 等） ---- */
#abDrawer .ab-drawer-lv { font-size: 12px; color: #7c3aed; font-weight: 600; }
#abDrawer .ab-judge { margin: 12px 14px; padding: 12px 14px; background: #ede9fe;
  border-radius: 10px; font-size: 13px; color: #4c1d95; line-height: 1.7; }
#abDrawer .ab-judge-gray { background: #f3f4f6; color: #6b7280; }
.ab-empty-tip { padding: 18px 6px; font-size: 13.5px; color: #9ca3af; line-height: 2; text-align: center; }

/* ---- 首进提示卡（首页顶部） ---- */
.ab-first-hint { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border-left: 4px solid #7c3aed; animation: abHintIn .3s ease; }
@keyframes abHintIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; } }
.ab-fh-txt { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.ab-fh-txt b { font-size: 15px; color: #374151; }
.ab-fh-txt span { font-size: 13px; color: #6b7280; line-height: 1.6; }
.ab-fh-actions { display: flex; gap: 10px; }
