/* ============================================================
   智岗 AI Workbench · Design System
   深色高端科技风：玻璃拟态 + 渐变光效 + 微交互
   ============================================================ */

:root {
  --bg: #07080d;
  --bg-2: #0b0d15;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.055);
  --panel-solid: #10131d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f8;
  --text-2: #a6adc8;
  --text-3: #6b7390;
  --accent: #7c8bff;
  --accent-2: #4de3ff;
  --accent-grad: linear-gradient(135deg, #7c8bff 0%, #4de3ff 100%);
  --violet: #a78bfa;
  --blue: #60a5fa;
  --cyan: #4de3ff;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.65);
  --font: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* [hidden] 全局守卫：.btn 等工具类的显式 display 会覆盖 UA 默认的 [hidden]{display:none} */
[hidden] { display: none !important; }

svg { width: 1em; height: 1em; flex: none; vertical-align: -0.14em; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(124, 139, 255, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(77, 227, 255, 0.08), transparent 55%),
    var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(124, 139, 255, 0.35); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 布局骨架 ---------------- */
#app { display: grid; grid-template-columns: 250px 1fr; height: 100vh; }

#sidebar {
  display: flex; flex-direction: column;
  padding: 22px 16px 16px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(18px);
  z-index: 5;
}

.brand { display: flex; gap: 12px; align-items: center; padding: 4px 8px 22px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 19px; color: #0a0d18;
  background: var(--accent-grad);
  box-shadow: 0 6px 20px -4px rgba(124, 139, 255, 0.6);
}
.brand-text strong { display: block; font-family: var(--font-display); font-size: 16px; letter-spacing: 1.5px; }
.brand-text span { font-size: 11px; color: var(--text-3); }

#nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 12px;
  color: var(--text-2); cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  user-select: none;
}
.nav-item svg { width: 17px; height: 17px; flex: none; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.nav-item.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(124, 139, 255, 0.18), rgba(77, 227, 255, 0.07));
  border-color: rgba(124, 139, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.nav-item .nav-label { flex: 1; font-weight: 500; }
.nav-item .nav-badge {
  font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 99px;
  background: rgba(251, 113, 133, 0.16); color: var(--rose);
}
.nav-group-label { font-size: 10.5px; letter-spacing: 1.4px; color: var(--text-3); padding: 16px 12px 7px; text-transform: uppercase; }

.sidebar-foot { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.mode-pill {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--text-2);
  padding: 8px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
}
.mode-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.mode-pill.real .dot { background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.demo-note { font-size: 10.5px; color: var(--text-3); padding: 0 4px; }

#main { display: flex; flex-direction: column; overflow: hidden; }

#topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 30px 16px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
#topbar h1 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: 0.3px; }
#topbar p { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.brand-tag, .clock {
  font-size: 11.5px; color: var(--text-2);
  padding: 7px 13px; border-radius: 99px;
  background: var(--panel); border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

#view { flex: 1; overflow-y: auto; padding: 26px 30px 40px; }

/* ---------------- 通用组件 ---------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid var(--border);
}
.card-hd h3 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.card-hd .sub { font-size: 11px; color: var(--text-3); font-weight: 400; }
.card-bd { padding: 18px; }
.card-bd.flush { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.page-head h2 { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.page-head p { color: var(--text-3); font-size: 12px; margin-top: 3px; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: 11px;
  font-family: var(--font); font-size: 12.5px; font-weight: 600;
  color: var(--text); cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--border-strong);
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }
.btn.primary {
  background: var(--accent-grad); color: #080b16; border: none;
  box-shadow: 0 8px 24px -8px rgba(124, 139, 255, 0.7);
}
.btn.primary:hover { box-shadow: 0 12px 30px -8px rgba(124, 139, 255, 0.85); filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(251, 113, 133, 0.4); color: var(--rose); background: rgba(251, 113, 133, 0.08); }
.btn.sm { padding: 6px 11px; font-size: 11.5px; border-radius: 9px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.btn .spinner { width: 13px; height: 13px; border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: #080b16; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.ghost .spinner, .btn .spinner.light { border-color: rgba(255, 255, 255, 0.2); border-top-color: var(--text); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.2px;
  padding: 3px 9px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.07); color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge.violet { background: rgba(167, 139, 250, 0.14); color: var(--violet); border-color: rgba(167, 139, 250, 0.3); }
.badge.blue { background: rgba(96, 165, 250, 0.14); color: var(--blue); border-color: rgba(96, 165, 250, 0.3); }
.badge.cyan { background: rgba(77, 227, 255, 0.12); color: var(--cyan); border-color: rgba(77, 227, 255, 0.28); }
.badge.emerald { background: rgba(52, 211, 153, 0.13); color: var(--emerald); border-color: rgba(52, 211, 153, 0.3); }
.badge.amber { background: rgba(251, 191, 36, 0.13); color: var(--amber); border-color: rgba(251, 191, 36, 0.3); }
.badge.rose { background: rgba(251, 113, 133, 0.13); color: var(--rose); border-color: rgba(251, 113, 133, 0.3); }
.badge.gray { background: rgba(255, 255, 255, 0.05); color: var(--text-3); }

.risk-critical { color: var(--rose); font-weight: 700; }
.risk-high { color: #ff8fa3; font-weight: 600; }
.risk-medium { color: var(--amber); font-weight: 600; }
.risk-low { color: var(--emerald); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; color: var(--text-3); font-weight: 500; }
select, input, textarea {
  font-family: var(--font); font-size: 12.5px; color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
select option { background: var(--panel-solid); color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: rgba(124, 139, 255, 0.55); box-shadow: 0 0 0 3px rgba(124, 139, 255, 0.14); }
textarea { resize: vertical; line-height: 1.65; }

.switch { position: relative; width: 38px; height: 21px; flex: none; cursor: pointer; }
.switch input { display: none; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.12); transition: 0.2s; }
.switch i::after { content: ''; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: 0.2s; }
.switch input:checked + i { background: var(--accent-grad); }
.switch input:checked + i::after { transform: translateX(17px); }

.checkbox-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 10px; cursor: pointer;
  font-size: 12px; font-weight: 500; color: var(--text-2);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  transition: all 0.15s;
  user-select: none;
}
.checkbox-pill.on { color: var(--text); border-color: rgba(124, 139, 255, 0.5); background: rgba(124, 139, 255, 0.14); }

.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th {
  text-align: left; font-size: 10.5px; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-3); font-weight: 600; padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.table td { padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

.muted { color: var(--text-3); }
.mono { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.kw-chip {
  display: inline-block; font-size: 11px; padding: 3px 9px; margin: 0 6px 6px 0;
  border-radius: 8px; background: rgba(77, 227, 255, 0.09);
  border: 1px solid rgba(77, 227, 255, 0.2); color: var(--cyan);
}

/* ---------------- 总览看板 ---------------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 26px 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 220px at 90% 0%, rgba(124, 139, 255, 0.25), transparent 70%),
    linear-gradient(135deg, rgba(124, 139, 255, 0.12), rgba(77, 227, 255, 0.05));
  margin-bottom: 20px;
}
.hero h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 6px; }
.hero p { color: var(--text-2); max-width: 680px; font-size: 12.5px; }
.hero .orbit { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.18); animation: spin 26s linear infinite; }
.hero .orbit::before { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); top: 30px; left: 34px; box-shadow: 0 0 16px var(--accent-2); }

.stat-card { padding: 18px 19px; position: relative; overflow: hidden; }
.stat-card .label { font-size: 11.5px; color: var(--text-3); display: flex; justify-content: space-between; }
.stat-card .value { font-family: var(--font-display); font-size: 29px; font-weight: 700; margin: 7px 0 3px; letter-spacing: 0.5px; }
.stat-card .delta { font-size: 11px; color: var(--emerald); font-weight: 600; }
.stat-card .delta.down { color: var(--rose); }
.stat-card::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 139, 255, 0.22), transparent 70%); }

.agent-card { padding: 18px; cursor: pointer; transition: all 0.2s; position: relative; }
.agent-card:hover { transform: translateY(-3px); border-color: rgba(124, 139, 255, 0.4); }
.agent-card .agent-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 13px; background: rgba(124, 139, 255, 0.14); border: 1px solid rgba(124, 139, 255, 0.28); color: var(--accent); }
.agent-card .agent-icon svg { width: 19px; height: 19px; }
.agent-card h4 { font-size: 13.5px; margin-bottom: 5px; }
.agent-card p { font-size: 11.5px; color: var(--text-3); min-height: 36px; }
.agent-card .agent-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; font-size: 11px; color: var(--text-3); }
.agent-card .go { color: var(--accent-2); font-weight: 600; }

/* ---------------- 客服模块 ---------------- */
.chat-layout { display: grid; grid-template-columns: 280px 1fr 360px; gap: 16px; height: calc(100vh - 190px); min-height: 520px; }
.chat-col { display: flex; flex-direction: column; overflow: hidden; }
.conv-item { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); cursor: pointer; transition: background 0.15s; position: relative; }
.conv-item:hover { background: rgba(255, 255, 255, 0.03); }
.conv-item.active { background: linear-gradient(90deg, rgba(124, 139, 255, 0.16), transparent); }
.conv-item.active::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--accent-grad); }
.conv-item .ci-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.conv-item .ci-name { font-weight: 600; font-size: 12.5px; }
.conv-item .ci-preview { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--rose); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }

.thread { flex: 1; min-height: 190px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 11px; max-width: 82%; }
.msg .avatar { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.msg.buyer .avatar { background: rgba(255, 255, 255, 0.09); color: var(--text-2); }
.msg.agent { align-self: flex-end; flex-direction: row-reverse; }
.msg.agent .avatar { background: var(--accent-grad); color: #080b16; }
.bubble { padding: 11px 14px; border-radius: 13px; font-size: 12.5px; white-space: pre-wrap; }
.msg.buyer .bubble { background: rgba(255, 255, 255, 0.055); border: 1px solid var(--border); border-top-left-radius: 4px; }
.msg.agent .bubble { background: linear-gradient(135deg, rgba(124, 139, 255, 0.22), rgba(77, 227, 255, 0.12)); border: 1px solid rgba(124, 139, 255, 0.3); border-top-right-radius: 4px; }
.msg .meta { font-size: 10.5px; color: var(--text-3); margin-top: 5px; }
.attach-tile { display: inline-flex; align-items: center; gap: 8px; margin-top: 9px; padding: 8px 11px; border-radius: 9px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); font-size: 11px; color: var(--amber); }
.attach-tile svg { width: 14px; height: 14px; }

/* 工作台封顶高度 + 内部滚动：买家会话线程永远不会被 AI 面板挤没 */
.reply-box {
  border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
  display: flex; flex-direction: column; flex: none;
  max-height: 47%; min-height: 0;
}
.rb-head {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 9px 14px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
}
.rb-head-title { flex: 1; font-size: 12px; font-weight: 700; color: var(--accent-2); display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-collapse {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04); color: var(--text-2);
  display: grid; place-items: center; cursor: pointer; transition: transform .2s, border-color .15s, color .15s; flex: none;
}
.rb-collapse:hover { border-color: var(--accent); color: var(--accent-2); }
.rb-collapse svg { width: 14px; height: 14px; transition: transform .22s ease; }
.reply-box.collapsed { max-height: 46px; }
.reply-box.collapsed .rb-body { display: none; }
.reply-box.collapsed .rb-collapse svg { transform: rotate(180deg); }
.rb-body { overflow-y: auto; padding: 14px 16px 16px; min-height: 0; }
.reply-box .rb-tag { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 11.5px; color: var(--accent-2); font-weight: 600; }
.reply-box textarea { min-height: 128px; font-size: 12px; }
.rb-actions { display: flex; gap: 9px; margin-top: 11px; align-items: center; flex-wrap: wrap; }
.rb-policy { font-size: 11px; color: var(--text-3); flex: 1; }

/* 入场动效：工作台内容淡入上滑，绝不生硬冒出来 */
@keyframes rbEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rb-enter { animation: rbEnter .38s cubic-bezier(.22, .8, .32, 1) both; }
.stagger > * { animation: fadeUp .4s cubic-bezier(.22, .8, .32, 1) both; }
.stagger > *:nth-child(1) { animation-delay: .03s; }
.stagger > *:nth-child(2) { animation-delay: .08s; }
.stagger > *:nth-child(3) { animation-delay: .13s; }
.stagger > *:nth-child(4) { animation-delay: .18s; }
.stagger > *:nth-child(5) { animation-delay: .23s; }
.stagger > *:nth-child(6) { animation-delay: .28s; }
.stagger > *:nth-child(n+7) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .rb-enter, .stagger > * { animation: none; }
}

/* ---------------- Trace 时间线 ---------------- */
.trace-panel { overflow: hidden; }
.trace-body { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.trace-step {
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  padding: 11px 12px;
  animation: fadeUp 0.35s ease both;
}
.trace-step.running { border-color: rgba(124, 139, 255, 0.5); box-shadow: 0 0 0 3px rgba(124, 139, 255, 0.1); }
.trace-step.done { opacity: 0.92; }
.ts-top { display: flex; align-items: center; gap: 9px; }
.ts-icon { width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.ts-icon svg { width: 13.5px; height: 13.5px; }
.ts-icon.thought { background: rgba(167, 139, 250, 0.16); color: var(--violet); }
.ts-icon.tool { background: rgba(96, 165, 250, 0.16); color: var(--blue); }
.ts-icon.node { background: rgba(77, 227, 255, 0.13); color: var(--cyan); }
.ts-title { font-size: 12px; font-weight: 600; flex: 1; }
.ts-status { font-size: 10px; color: var(--text-3); }
.running .ts-status { color: var(--accent); }
.ts-detail { font-size: 11.5px; color: var(--text-2); margin-top: 7px; white-space: pre-wrap; }
.ts-json { margin-top: 8px; font-size: 10.5px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: 8px; padding: 9px; max-height: 180px; overflow: auto; color: #9fd7ff; }
.ts-toggle { font-size: 10.5px; color: var(--accent-2); cursor: pointer; margin-top: 7px; display: inline-block; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.1s ease-in-out infinite; }

.trace-placeholder { display: grid; place-items: center; height: 100%; text-align: center; color: var(--text-3); padding: 30px; font-size: 12px; gap: 12px; }
.trace-placeholder .big-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border); color: var(--accent); }
.trace-placeholder .big-icon svg { width: 24px; height: 24px; }

/* ---------------- Listing ---------------- */
.draft-card { display: flex; flex-direction: column; }
.draft-card .plat-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.draft-section { margin-bottom: 15px; }
.draft-section > label { display: block; font-size: 11px; color: var(--accent-2); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 6px; }
.draft-section textarea { font-size: 11.5px; min-height: auto; }
.bullet-list { display: flex; flex-direction: column; gap: 7px; }
.bullet-item { display: flex; gap: 8px; font-size: 11.5px; color: var(--text-2); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; }
.bullet-item b { color: var(--accent); flex: none; }

/* ---------------- 评论分析 ---------------- */
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.summary-cell { background: var(--panel); border: 1px solid var(--border); border-radius: 13px; padding: 15px 17px; }
.summary-cell .k { font-size: 11px; color: var(--text-3); }
.summary-cell .v { font-family: var(--font-display); font-size: 23px; font-weight: 700; margin-top: 4px; }
.cluster-card { padding: 16px 18px; }
.cluster-card .cc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cluster-card h4 { font-size: 13.5px; flex: 1; }
.cc-quotes { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.cc-quotes blockquote { font-size: 11.5px; color: var(--text-2); border-left: 2px solid var(--border-strong); padding-left: 10px; font-style: italic; }
.cc-rc { font-size: 11.5px; padding: 9px 11px; border-radius: 9px; margin-top: 7px; }
.cc-rc.root { background: rgba(251, 113, 133, 0.07); border: 1px solid rgba(251, 113, 133, 0.2); }
.cc-rc.fix { background: rgba(52, 211, 153, 0.07); border: 1px solid rgba(52, 211, 153, 0.2); }
.cc-rc b { font-size: 10.5px; letter-spacing: 0.5px; }

/* ---------------- 品牌保护 ---------------- */
.sim-bar { width: 110px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 9px; }
.sim-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent-grad); }
.case-check { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.thumb { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff; flex: none; }
.letter-view { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border); border-radius: 12px; padding: 18px; max-height: 420px; overflow: auto; }
.letter-view pre { font-family: 'Georgia', serif; font-size: 12px; line-height: 1.75; white-space: pre-wrap; color: var(--text-2); }
.evidence-item { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.evidence-item svg { width: 15px; height: 15px; color: var(--emerald); flex: none; margin-top: 3px; }
.ticket-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; background: rgba(52, 211, 153, 0.06); border: 1px solid rgba(52, 211, 153, 0.22); margin-bottom: 9px; font-size: 12px; }
.ticket-row .mono { color: var(--emerald); font-weight: 600; }

/* ---------------- 工作流画布 ---------------- */
.canvas-page { display: flex; flex-direction: column; height: calc(100vh - 150px); gap: 14px; }
.canvas-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wf-tabs { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.wf-tab { padding: 7px 14px; border-radius: 9px; font-size: 12px; cursor: pointer; color: var(--text-3); font-weight: 500; transition: all 0.15s; }
.wf-tab.active { color: var(--text); background: rgba(124, 139, 255, 0.2); border: 1px solid rgba(124, 139, 255, 0.35); }
.canvas-main { flex: 1; display: grid; grid-template-columns: 190px 1fr 280px; gap: 14px; min-height: 0; }

.palette, .inspector { padding: 14px; overflow-y: auto; }
.palette h5, .inspector h5 { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); margin-bottom: 11px; }
.palette-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; margin-bottom: 8px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
  cursor: grab; font-size: 12px; transition: all 0.15s;
}
.palette-item:hover { border-color: rgba(124, 139, 255, 0.45); background: rgba(124, 139, 255, 0.1); transform: translateX(2px); }
.palette-item .node-icon { width: 26px; height: 26px; }
.palette-hint { font-size: 10.5px; color: var(--text-3); margin-top: 14px; line-height: 1.7; }

.canvas-stage {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 40%, rgba(124, 139, 255, 0.06), transparent 65%),
    var(--bg-2);
  cursor: grab;
}
.canvas-stage.panning { cursor: grabbing; }
.canvas-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
}
.canvas-world { position: absolute; top: 0; left: 0; transform-origin: 0 0; width: 2400px; height: 1400px; }
.edge-svg { position: absolute; top: 0; left: 0; width: 2400px; height: 1400px; pointer-events: none; }
.edge-path { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.6; }
.edge-path.active { stroke: url(#edgeGrad); stroke-width: 2.2; stroke-dasharray: 7 7; animation: dashflow 0.7s linear infinite; }

.node-card {
  position: absolute; width: 218px;
  background: linear-gradient(180deg, rgba(22, 26, 40, 0.92), rgba(14, 17, 27, 0.94));
  border: 1px solid var(--border-strong); border-radius: 13px;
  padding: 11px 12px; cursor: grab;
  backdrop-filter: blur(10px);
  transition: border-color 0.18s, box-shadow 0.18s, opacity 0.2s;
  user-select: none;
}
.node-card:hover { border-color: rgba(124, 139, 255, 0.5); }
.node-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 139, 255, 0.18), 0 12px 30px -10px rgba(124, 139, 255, 0.4); }
.node-card.disabled { opacity: 0.42; }
.node-card .nc-top { display: flex; align-items: center; gap: 9px; }
.node-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.node-icon svg { width: 15px; height: 15px; }
.node-icon.type-trigger { background: rgba(77, 227, 255, 0.14); color: var(--cyan); }
.node-icon.type-llm { background: rgba(167, 139, 250, 0.16); color: var(--violet); }
.node-icon.type-tool { background: rgba(96, 165, 250, 0.15); color: var(--blue); }
.node-icon.type-condition { background: rgba(251, 191, 36, 0.14); color: var(--amber); }
.node-icon.type-review { background: rgba(251, 113, 133, 0.14); color: var(--rose); }
.node-icon.type-output { background: rgba(52, 211, 153, 0.14); color: var(--emerald); }
.node-card .nc-title { font-size: 12px; font-weight: 600; line-height: 1.35; flex: 1; }
.node-card .nc-detail { font-size: 10.5px; color: var(--text-3); margin-top: 8px; line-height: 1.5; }
.node-card .nc-tool { font-size: 10px; color: var(--blue); font-family: var(--font-display); margin-top: 6px; }
.node-status-led { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.node-card.running { border-color: var(--accent); box-shadow: 0 0 26px -4px rgba(124, 139, 255, 0.65); }
.node-card.running .node-status-led { background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 1s ease-in-out infinite; }
.node-card.done .node-status-led { background: var(--emerald); box-shadow: 0 0 9px rgba(52, 211, 153, 0.7); }
.node-card.skipped .node-status-led { background: var(--text-3); }

.zoom-ctl { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 4; }
.zoom-ctl button {
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  background: rgba(18, 21, 32, 0.9); border: 1px solid var(--border-strong); color: var(--text-2);
  font-size: 16px; display: grid; place-items: center; transition: all 0.15s;
}
.zoom-ctl button:hover { color: var(--text); border-color: var(--accent); }
.canvas-run-banner {
  position: absolute; left: 14px; top: 14px; z-index: 4;
  display: none; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
  background: rgba(124, 139, 255, 0.16); border: 1px solid rgba(124, 139, 255, 0.4);
  backdrop-filter: blur(8px);
}
.canvas-run-banner.on { display: flex; }
.canvas-run-banner .pulse-dot { width: 8px; height: 8px; }

.inspector .insp-empty { color: var(--text-3); font-size: 12px; text-align: center; padding: 40px 10px; line-height: 1.8; }
.insp-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 12px; }
.inspector label { font-size: 11px; color: var(--text-3); display: block; margin-bottom: 6px; }
.inspector .field { margin-bottom: 13px; }
.insp-danger { margin-top: 20px; width: 100%; justify-content: center; }

/* ---------------- Toast & 动效 ---------------- */
#toast-root { position: fixed; top: 88px; right: 22px; z-index: 99; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 17px; border-radius: 12px; font-size: 12.5px; font-weight: 500;
  background: rgba(18, 22, 34, 0.95); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
  animation: toastIn 0.3s ease both;
}
.toast.success { border-color: rgba(52, 211, 153, 0.45); }
.toast.error { border-color: rgba(251, 113, 133, 0.45); }
.toast svg { width: 16px; height: 16px; }
.toast.success svg { color: var(--emerald); } .toast.error svg { color: var(--rose); }

.skeleton { border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 37%, rgba(255,255,255,0.04) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -140% 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.82); } }
@keyframes dashflow { to { stroke-dashoffset: -14; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------------- 双语显示体系 ---------------- */
.seg {
  display: inline-flex; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 10px; padding: 3px; gap: 2px;
}
.seg button {
  border: none; background: transparent; color: var(--text-3);
  font-family: var(--font); font-size: 11px; font-weight: 600;
  padding: 5px 11px; border-radius: 8px; cursor: pointer; transition: all .15s;
}
.seg button:hover { color: var(--text); }
.seg button.on { color: var(--text); background: rgba(124,139,255,.22); box-shadow: inset 0 0 0 1px rgba(124,139,255,.35); }

[data-langmode="zh"] .lang-orig { display: none !important; }
[data-langmode="orig"] .lang-zh { display: none !important; }
.lang-orig.dimmed { opacity: .78; font-size: .92em; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.lang-tag {
  display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .6px;
  padding: 1px 6px; border-radius: 5px; margin-bottom: 5px;
  background: rgba(255,255,255,.08); color: var(--text-3);
}
.lang-tag.zh { background: rgba(124,139,255,.18); color: var(--accent); }
.zh-ref {
  font-size: 11.5px; color: var(--text-2); line-height: 1.65;
  background: rgba(124,139,255,.06); border: 1px solid rgba(124,139,255,.18);
  border-radius: 9px; padding: 9px 11px;
}
.zh-ref .lang-tag { margin-bottom: 6px; }

.compose-box {
  border: 1px dashed var(--border-strong); border-radius: 11px;
  padding: 11px; margin-top: 11px; background: rgba(255,255,255,.02);
}
.compose-box .cb-title { font-size: 11px; color: var(--accent-2); font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.compose-box textarea { min-height: 64px; font-size: 12px; }
.phrase-hint { font-size: 10.5px; color: var(--text-3); margin-top: 7px; line-height: 1.7; }
.phrase-hint .ph { color: var(--cyan); cursor: pointer; text-decoration: underline dotted; margin-right: 8px; white-space: nowrap; }
.letter-tabs { display: flex; gap: 8px; margin-bottom: 10px; }

/* ---------------- 增长投流 ---------------- */
.rec-hero {
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px;
  border: 1px solid rgba(52,211,153,.4);
  background: linear-gradient(135deg, rgba(52,211,153,.13), rgba(124,139,255,.08));
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.rec-hero .rh-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(52,211,153,.18); color: var(--emerald); border: 1px solid rgba(52,211,153,.35); }
.rec-hero .rh-icon svg { width: 24px; height: 24px; }
.rec-hero h3 { font-family: var(--font-display); font-size: 19px; }
.rec-hero .rh-meta { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.rec-hero .rh-side { margin-left: auto; display: flex; gap: 22px; }
.rec-hero .rh-num { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.rec-hero .rh-k { font-size: 10.5px; color: var(--text-3); }

.chart-wrap { width: 100%; overflow-x: auto; }
.chart-wrap svg { width: 100%; min-width: 560px; height: auto; display: block; }
.chart-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--text-2); margin-bottom: 10px; flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.channel-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 12px; }
.channel-row .cn { width: 96px; color: var(--text-2); flex: none; }
.channel-row .cb { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.channel-row .cb i { display: block; height: 100%; border-radius: 99px; background: var(--accent-grad); }
.channel-row .cp { width: 42px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-3); }

.plan-row { border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; margin-bottom: 10px; background: rgba(255,255,255,.025); }
.plan-row .pr-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.plan-row .pr-type { font-weight: 700; font-size: 13px; }
.plan-row .pr-budget { margin-left: auto; font-family: var(--font-display); color: var(--accent-2); font-weight: 700; }
.plan-row .pr-detail { font-size: 11.5px; color: var(--text-2); line-height: 1.7; }
.milestone { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--border-strong); margin-left: 8px; }
.milestone:last-child { border-left-color: transparent; padding-bottom: 0; }
.milestone::before { content: ''; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 10px rgba(124,139,255,.7); }
.milestone .ms-day { font-size: 11.5px; font-weight: 700; color: var(--accent); }
.milestone .ms-target { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.guard-item { display: flex; gap: 9px; font-size: 12px; color: var(--text-2); padding: 8px 0; border-bottom: 1px dashed var(--border); }
.guard-item svg { color: var(--amber); flex: none; margin-top: 3px; }
.launch-strip { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.launch-strip .ls-cell { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 10px; padding: 9px 14px; }
.launch-strip .ls-cell b { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 500; margin-bottom: 2px; }

/* ============== 客服：处理方案卡片 / 真人话术 / 手写思路 ============== */
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 12px; }
.opt-card {
  position: relative; text-align: left; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; background: rgba(255,255,255,.025); cursor: pointer; color: inherit; font: inherit;
  transition: border-color .16s, transform .16s, box-shadow .16s, background .16s;
}
.opt-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.opt-card.on { border-color: var(--accent); background: rgba(124,139,255,.1); box-shadow: 0 0 0 1px var(--accent), 0 10px 26px -14px rgba(124,139,255,.6); }
.oc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.oc-radio { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex: none; }
.opt-card.on .oc-radio { border-color: var(--accent); }
.opt-card.on .oc-radio::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.oc-name { font-size: 12.5px; font-weight: 700; line-height: 1.45; flex: 1; }
.oc-rec { font-size: 9.5px; font-weight: 700; color: #0b1020; background: var(--emerald); padding: 2px 7px; border-radius: 99px; white-space: nowrap; flex: none; }
.oc-rationale { font-size: 11px; color: var(--text-3); line-height: 1.6; margin-bottom: 8px; }
.oc-pc { font-size: 10.5px; line-height: 1.65; color: var(--text-2); display: flex; gap: 6px; margin-bottom: 4px; }
.oc-pc .tag { flex: none; font-weight: 700; }
.oc-pc .tag.pro { color: var(--emerald); }
.oc-pc .tag.con { color: var(--rose); }
.oc-compliance { margin-top: 8px; font-size: 10px; color: var(--amber); line-height: 1.55; border-top: 1px dashed var(--border); padding-top: 8px; }
.tone-title { font-size: 11px; font-weight: 700; color: var(--emerald); margin: 12px 0 0; display: flex; align-items: center; gap: 6px; }
.tone-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 2px; }
.tone-item { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--text-2); background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.22); border-radius: 99px; padding: 4px 10px; }
.tone-item svg { color: var(--emerald); width: 12px; height: 12px; }
.guide-box { border: 1px solid rgba(124,139,255,.35); border-radius: 12px; padding: 12px; margin-top: 12px; background: linear-gradient(135deg, rgba(124,139,255,.09), rgba(77,227,255,.04)); }
.guide-box .gb-title { font-size: 11.5px; color: var(--accent-2); font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.guide-box textarea { min-height: 74px; }
.guide-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.guide-chip { font-size: 10.5px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text-2); cursor: pointer; transition: .15s; }
.guide-chip:hover { border-color: var(--accent-2); color: var(--accent-2); }
.gb-flags { margin-top: 9px; font-size: 10.5px; color: var(--amber); line-height: 1.7; }
.gb-intents { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
@media (max-width: 1500px) { .opt-grid { grid-template-columns: 1fr; } }

/* ============== 品牌保护：统计条 / 团伙卡 / 预览弹窗 ============== */
.bp-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.bp-stat { background: var(--panel); border: 1px solid var(--border); border-radius: 13px; padding: 13px 15px; }
.bp-stat .k { font-size: 10.5px; color: var(--text-3); }
.bp-stat .v { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-top: 3px; }
.bp-stat .s { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.cluster-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.cluster-card { border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; background: rgba(255,255,255,.025); font-size: 11.5px; line-height: 1.7; }
.cluster-card b { font-size: 12.5px; display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.preview-btn { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 10.5px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--accent); color: var(--accent-2); background: rgba(124,139,255,.08); cursor: pointer; transition: .15s; }
.preview-btn:hover { background: rgba(124,139,255,.2); box-shadow: 0 0 14px -4px var(--accent); }
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(5,7,13,.72); backdrop-filter: blur(8px); display: grid; place-items: center; animation: fadeIn .18s ease; padding: 28px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(1120px, 94vw); height: min(88vh, 920px); background: #171b2c; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 36px 90px -20px rgba(0,0,0,.8); animation: modalIn .22s cubic-bezier(.2,.9,.3,1.15); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-hd { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.03); flex: none; }
.modal-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.modal-url { flex: 1; min-width: 0; font-family: var(--font-mono, monospace); font-size: 11px; color: var(--text-3); background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-close { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: var(--text-2); cursor: pointer; display: grid; place-items: center; flex: none; }
.modal-close:hover { color: var(--rose); border-color: var(--rose); }
.modal-frame { flex: 1; width: 100%; border: 0; background: #fff; min-height: 0; }
.modal-ft { flex: none; padding: 10px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-3); background: rgba(255,255,255,.03); }

/* ============== 画布：连接线流动动效升级 ============== */
/* .edge-svg 整体 pointer-events:none，需在连线元素上显式开启，否则连线永远点不中 */
.edge-path { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.6; transition: stroke .25s, stroke-width .25s; cursor: pointer; pointer-events: stroke; }
.edge-path:hover { stroke: rgba(255,255,255,.45); stroke-width: 2.3; }
.edge-hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
.edge-path.active { stroke: url(#edgeGrad); stroke-width: 2.2; stroke-dasharray: 8 6; animation: dashflow .55s linear infinite; filter: drop-shadow(0 0 5px rgba(77,227,255,.55)); }
.edge-path.passed { stroke: rgba(52,211,153,.55); stroke-width: 2; }
.edge-path.passed:hover { stroke: rgba(52,211,153,.85); }
.edge-dot { fill: #fff; filter: drop-shadow(0 0 5px #4de3ff) drop-shadow(0 0 2px #7c8bff); }

@media (max-width: 1280px) {
  .chat-layout { grid-template-columns: 250px 1fr 320px; }
  .canvas-main { grid-template-columns: 170px 1fr 250px; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .bp-stats { grid-template-columns: repeat(2, 1fr); }
  .cluster-strip { grid-template-columns: 1fr; }
}

/* ============== 客服：方案售后类型徽章 ============== */
.oc-plan-row { margin: -2px 0 8px; }
.oc-plan {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 99px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04);
}
.oc-plan svg { width: 12px; height: 12px; }
.oc-plan.cyan { color: var(--cyan); border-color: rgba(77, 227, 255, .32); background: rgba(77, 227, 255, .09); }
.oc-plan.emerald { color: var(--emerald); border-color: rgba(52, 211, 153, .32); background: rgba(52, 211, 153, .08); }
.oc-plan.violet { color: var(--violet); border-color: rgba(167, 139, 250, .32); background: rgba(167, 139, 250, .09); }
.oc-plan.amber { color: var(--amber); border-color: rgba(251, 191, 36, .32); background: rgba(251, 191, 36, .08); }
.oc-plan.none { color: var(--text-3); border-style: dashed; }
.link-btn {
  background: none; border: none; padding: 0; font: inherit; color: var(--accent-2);
  cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--accent); }
.rs-banner {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-2);
  border: 1px solid rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .07);
  border-radius: 11px; padding: 10px 13px; margin-bottom: 12px;
}
.rs-banner svg { color: var(--emerald); flex: none; }

/* ============== 客服：售后执行闸门（人工拍板）============== */
.rs-gate {
  border: 1px solid rgba(124, 139, 255, .38); border-radius: 13px;
  padding: 14px; margin-top: 10px;
  background: linear-gradient(135deg, rgba(124, 139, 255, .1), rgba(77, 227, 255, .045));
}
.rs-gate-hd { display: flex; align-items: center; gap: 9px; font-size: 12.5px; margin-bottom: 11px; flex-wrap: wrap; }
.rs-gate-hd svg { color: var(--accent-2); }
.rs-gate-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rs-gate-info > div {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 11px; font-size: 12px; min-width: 0;
}
.rs-gate-info span { font-size: 10px; color: var(--text-3); font-weight: 500; }
.rs-gate-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-gate-what { font-size: 11px; line-height: 1.7; margin: 10px 0 0; }
.gate-note { display: flex; gap: 6px; align-items: flex-start; font-size: 10.5px; color: var(--amber); line-height: 1.65; margin: 11px 0 0; }
.gate-note svg { flex: none; margin-top: 2px; }

/* ============== 客服：售后执行单一站式页面 ============== */
.rs-card {
  border: 1px solid var(--border); border-radius: 14px;
  background: rgba(255, 255, 255, .025); padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.rs-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .035); }
.rs-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); }
.rs-ic svg { width: 20px; height: 20px; }
.rs-tone-cyan .rs-ic { color: var(--cyan); border-color: rgba(77, 227, 255, .35); background: rgba(77, 227, 255, .1); }
.rs-tone-emerald .rs-ic { color: var(--emerald); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .1); }
.rs-tone-violet .rs-ic { color: var(--violet); border-color: rgba(167, 139, 250, .35); background: rgba(167, 139, 250, .1); }
.rs-tone-amber .rs-ic { color: var(--amber); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .1); }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.rs-cell {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 11px; font-size: 11.5px; min-width: 0;
}
.rs-cell span { font-size: 10px; color: var(--text-3); }
.rs-cell b { font-weight: 600; word-break: break-word; }
.rs-subcard { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: rgba(255, 255, 255, .02); }
.rs-sub-hd { font-size: 11.5px; font-weight: 700; color: var(--accent-2); display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.rs-sub-hd svg { width: 14px; height: 14px; }
.rs-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.rs-kv:last-of-type { border-bottom: none; }
.rs-kv span { color: var(--text-3); flex: none; }
.rs-kv b { font-weight: 600; text-align: right; word-break: break-all; }
.rs-addr { font-size: 11.5px; color: var(--text-2); line-height: 1.85; }
.rs-addr b { display: block; color: var(--text); margin-bottom: 2px; }
.rs-refund .rs-amount { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--emerald); margin-bottom: 8px; }
.rs-steps-title { font-size: 11.5px; font-weight: 700; color: var(--accent-2); display: flex; align-items: center; gap: 7px; }
.rs-steps-title svg { width: 14px; height: 14px; }
.rs-note { display: flex; gap: 7px; align-items: flex-start; font-size: 10.5px; color: var(--amber); line-height: 1.65; }
.rs-note svg { flex: none; margin-top: 2px; }

/* 垂直时间线：已完成 / 进行中 / 待处理三态 */
.stepper { display: flex; flex-direction: column; }
.step { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.step:not(:last-child)::before {
  content: ''; position: absolute; left: 11px; top: 26px; bottom: 0;
  width: 2px; background: var(--border-strong);
}
.step.done:not(:last-child)::before { background: rgba(52, 211, 153, .45); }
.step:last-child { padding-bottom: 0; }
.step .dot {
  width: 24px; height: 24px; border-radius: 50%; flex: none; z-index: 1;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border-strong); color: var(--text-3);
}
.step .dot svg { width: 13px; height: 13px; }
.step.done .dot { background: rgba(52, 211, 153, .16); border-color: rgba(52, 211, 153, .55); color: var(--emerald); }
.step.current .dot { background: rgba(124, 139, 255, .16); border-color: rgba(124, 139, 255, .6); color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 139, 255, .08); }
.step.pending { opacity: .55; }
.step-body { font-size: 12px; padding-top: 2px; }
.step-body b { font-weight: 600; }
.step-at { font-size: 10.5px; color: var(--text-3); margin-left: 8px; font-variant-numeric: tabular-nums; }
.step-body .muted { font-size: 10.5px; margin-top: 2px; }

@media (max-width: 1280px) {
  .rs-gate-info { grid-template-columns: 1fr; }
}

/* ============== 管理层四岗位：选品 / 晨报 / 损益 / 战略 ============== */

/* 看板员工卡片：执行层/管理层/编排 层级角标 */
.agent-icon { position: relative; }
.agent-layer {
  position: absolute; right: -10px; top: -8px;
  font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 99px;
  border: 1px solid var(--border); white-space: nowrap; line-height: 1.4;
}
.agent-layer.layer-exec { color: var(--cyan); background: rgba(77, 227, 255, .12); border-color: rgba(77, 227, 255, .32); }
.agent-layer.layer-mgr { color: var(--violet); background: rgba(167, 139, 250, .13); border-color: rgba(167, 139, 250, .34); }
.agent-layer.layer-flow { color: var(--amber); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .32); }

/* ---- 选品助手：机会评分卡 ---- */
.opp-card { transition: border-color .2s, transform .2s, box-shadow .2s; }
.opp-card:hover { transform: translateY(-2px); }
.opp-card.picked { border-color: rgba(124, 139, 255, .6); box-shadow: 0 0 0 1px rgba(124, 139, 255, .35), 0 14px 32px -20px rgba(124, 139, 255, .55); }
.opp-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.opp-title { font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.opp-score { flex: none; text-align: center; width: 78px; padding: 10px 0; border-radius: 12px; background: rgba(124, 139, 255, .1); border: 1px solid rgba(124, 139, 255, .32); }
.opp-score b { font-family: var(--font-display); font-size: 24px; display: block; color: var(--accent-2); line-height: 1.1; }
.opp-score span { font-size: 10px; color: var(--text-3); }
.score-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 16px 0 4px; }
.score-k { font-size: 10.5px; color: var(--text-2); display: flex; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.score-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent-grad); animation: scoreGrow .8s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes scoreGrow { from { width: 0 !important; } }
.opp-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.opp-col h5 { font-size: 11.5px; color: var(--accent-2); display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-weight: 700; }
.opp-col h5 svg { width: 13px; height: 13px; }
.opp-col .guard-item:last-child { border-bottom: none; }

/* ---- 经营参谋：异常归因行 ---- */
.anomaly-row { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px dashed var(--border); }
.anomaly-row:last-child { border-bottom: none; padding-bottom: 0; }
.anomaly-row:first-child { padding-top: 0; }
.anomaly-row > .badge { flex: none; height: fit-content; margin-top: 2px; padding: 4px 9px; }
.anomaly-body { font-size: 12.5px; min-width: 0; }
.anomaly-body svg { width: 13px; height: 13px; vertical-align: -2px; }

/* ---- 损益专家：瀑布图 ---- */
.waterfall { display: flex; flex-direction: column; gap: 10px; }
.wf-row { display: grid; grid-template-columns: 158px 1fr 104px; align-items: center; gap: 12px; font-size: 12px; }
.wf-label { color: var(--text-2); }
.wf-track { height: 16px; background: rgba(255, 255, 255, .04); border-radius: 6px; overflow: hidden; }
.wf-track i { display: block; height: 100%; border-radius: 6px; transition: width .5s cubic-bezier(.22, 1, .36, 1); }
.wf-track i.pos { background: linear-gradient(90deg, rgba(52, 211, 153, .5), rgba(52, 211, 153, .9)); }
.wf-track i.neg { background: linear-gradient(90deg, rgba(251, 113, 133, .45), rgba(251, 113, 133, .85)); }
.wf-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pos-text { color: var(--emerald); }
.neg-text { color: var(--rose); }
.wf-total { padding-top: 11px; border-top: 1px solid var(--border); }
.wf-total .wf-label, .wf-total .wf-amt { font-size: 13px; }

/* ---- 损益专家：What-if 试算 ---- */
.sim-row { margin-bottom: 16px; }
.sim-row:last-of-type { margin-bottom: 4px; }
.sim-row label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.sim-row label b { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.sim-row input[type='range'] { width: 100%; accent-color: var(--accent); cursor: pointer; }

/* ---- 战略顾问：情景卡 ---- */
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scenario-card { position: relative; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.scenario-card:hover { transform: translateY(-2px); }
.scenario-card.recommended { border-color: rgba(167, 139, 250, .65); box-shadow: 0 0 0 1px rgba(167, 139, 250, .4), 0 16px 36px -20px rgba(167, 139, 250, .6); }
.sc-ribbon {
  position: absolute; top: -10px; right: 14px;
  font-size: 10px; font-weight: 700; padding: 3px 11px; border-radius: 99px;
  color: #fff; background: linear-gradient(90deg, var(--violet), var(--accent));
  box-shadow: 0 6px 16px -6px rgba(167, 139, 250, .7);
}
.scenario-card h4 { font-family: var(--font-display); font-size: 15px; margin-bottom: 10px; }
.sc-metric { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.sc-metric span { color: var(--text-3); flex: none; }
.sc-metric b { text-align: right; }

@media (max-width: 1280px) {
  .score-grid { grid-template-columns: repeat(3, 1fr); }
  .scenario-grid { grid-template-columns: 1fr; }
  .opp-detail { grid-template-columns: 1fr; }
  .wf-row { grid-template-columns: 120px 1fr 92px; }
}

/* ============== 首页：数字员工办公室（实时办公模拟）============== */
.office-card { overflow: hidden; }
.office-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--emerald);
  padding: 3px 10px; border-radius: 99px; background: rgba(52, 211, 153, .1);
  border: 1px solid rgba(52, 211, 153, .28);
}
.office-body { display: grid; grid-template-columns: 1fr 370px; gap: 16px; align-items: stretch; }
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.station {
  position: relative; border: 1px solid var(--border); border-radius: 14px;
  background: rgba(255, 255, 255, .025); padding: 14px;
  cursor: pointer; transition: border-color .2s, transform .2s, background .2s;
  display: flex; flex-direction: column; gap: 11px;
}
.station:hover { border-color: rgba(124, 139, 255, .5); transform: translateY(-2px); background: rgba(124, 139, 255, .05); }
.st-head { display: flex; align-items: center; gap: 10px; }
.st-ic {
  position: relative; width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: var(--accent-2);
}
.st-ic svg { width: 19px; height: 19px; }
.st-led {
  position: absolute; right: -3px; top: -3px; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid var(--bg, #0b0e1a);
}
.st-led.led-working { background: var(--emerald); animation: ledPulse 1.8s ease-in-out infinite; }
.st-led.led-patrol { background: var(--cyan); animation: ledPulse 1.1s ease-in-out infinite; }
.st-led.led-gate { background: var(--rose); animation: ledBlink .9s ease-in-out infinite; box-shadow: 0 0 8px rgba(251, 113, 133, .8); }
.st-led.led-idle { background: var(--text-3); }
@keyframes ledPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .45); } 50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); } }
@keyframes ledBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.st-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-id b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-layer { font-size: 9.5px; color: var(--text-3); }
.st-status {
  flex: none; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 99px;
  background: rgba(52, 211, 153, .1); color: var(--emerald); border: 1px solid rgba(52, 211, 153, .25);
}
.station[data-state='patrol'] .st-status { background: rgba(77, 227, 255, .1); color: var(--cyan); border-color: rgba(77, 227, 255, .28); }
.station[data-state='gate'] .st-status { background: rgba(251, 113, 133, .12); color: var(--rose); border-color: rgba(251, 113, 133, .35); }
.station[data-state='idle'] .st-status { background: rgba(255, 255, 255, .05); color: var(--text-3); border-color: var(--border); }
.st-task {
  font-size: 11.5px; color: var(--text-2); line-height: 1.55; min-height: 36px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: opacity .22s;
}

/* 工作群反馈流 */
.office-feed {
  display: flex; flex-direction: column; min-height: 100%;
  border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .02);
}
.feed-hd {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  padding: 13px 15px; border-bottom: 1px solid var(--border);
}
.feed-hd svg { width: 15px; height: 15px; color: var(--accent-2); }
.feed-count { margin-left: auto; font-size: 10.5px; font-weight: 400; color: var(--text-3); }
.feed-list { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; max-height: 470px; min-height: 320px; }
.office-msg {
  display: flex; gap: 10px; padding: 11px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border);
  animation: fadeUp .45s cubic-bezier(.22, 1, .36, 1) both;
}
.office-msg.is-gate {
  background: rgba(251, 113, 133, .06); border-color: rgba(251, 113, 133, .3);
}
.om-ic {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: rgba(124, 139, 255, .12); color: var(--accent-2); border: 1px solid rgba(124, 139, 255, .25);
}
.om-ic svg { width: 15px; height: 15px; }
.om-body { min-width: 0; flex: 1; }
.om-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.om-meta b { font-size: 11.5px; }
.om-meta time { margin-left: auto; font-size: 10px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.om-gate {
  font-size: 9.5px; font-weight: 700; color: var(--rose);
  padding: 1px 7px; border-radius: 99px; background: rgba(251, 113, 133, .12); border: 1px solid rgba(251, 113, 133, .3);
}
.om-text { font-size: 11.5px; line-height: 1.65; color: var(--text-2); }
.om-cta {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--accent-2);
  background: rgba(124, 139, 255, .12); border: 1px solid rgba(124, 139, 255, .35);
  padding: 4px 11px; border-radius: 99px; cursor: pointer; transition: background .2s;
}
.om-cta:hover { background: rgba(124, 139, 255, .22); }
.om-cta svg { width: 12px; height: 12px; }

@media (max-width: 1280px) {
  .office-body { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: repeat(2, 1fr); }
  .feed-list { max-height: 320px; }
}

/* ============== 全托管：看板横幅 + 顶栏店铺芯片 ============== */
.rose-text { color: var(--rose); }
.ap-stats .delta.emerald { color: var(--emerald); }
.autopilot-banner {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0; padding: 15px 18px; border-radius: 16px;
  border: 1px solid rgba(124, 139, 255, .35);
  background: linear-gradient(100deg, rgba(124, 139, 255, .14), rgba(77, 227, 255, .07) 60%, rgba(255, 255, 255, .02));
  cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: fadeUp .5s cubic-bezier(.22,1,.36,1) both;
}
.autopilot-banner:hover { transform: translateY(-2px); border-color: rgba(124, 139, 255, .65); box-shadow: 0 16px 40px -18px rgba(124, 139, 255, .7); }
.ab-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--accent-grad); color: #0b0e1a;
}
.ab-icon svg { width: 21px; height: 21px; }
.ab-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--text-2); }
.ab-body b { font-size: 14px; color: var(--text); }
.ab-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent-2); }
.ab-cta svg { width: 14px; height: 14px; }

.store-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 99px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--border);
  color: var(--text-2); font-size: 12px; cursor: pointer; transition: border-color .2s, background .2s;
}
.store-chip:hover { border-color: rgba(124, 139, 255, .55); background: rgba(124, 139, 255, .08); color: var(--text); }
.store-chip b { color: var(--text); font-weight: 600; }
.store-chip svg { width: 13px; height: 13px; }
.store-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px rgba(52, 211, 153, .8); flex: none; }

.office-auto {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  padding: 6px 12px; border-radius: 99px; font-size: 11.5px;
  color: var(--accent-2); background: rgba(124, 139, 255, .1); border: 1px solid rgba(124, 139, 255, .3);
  cursor: pointer; transition: background .2s;
}
.office-auto:hover { background: rgba(124, 139, 255, .2); }
.office-auto svg { width: 13px; height: 13px; }
.office-auto b { color: var(--rose); }

/* ============== 店铺接入弹窗 ============== */
.ap-modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 7, 13, .72);
  backdrop-filter: blur(8px); display: grid; place-items: center; padding: 28px;
  animation: fadeIn .18s ease;
}
.ap-modal {
  width: min(720px, 94vw); max-height: 86vh; overflow-y: auto;
  background: #171b2c; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 36px 90px -20px rgba(0, 0, 0, .8);
  animation: modalIn .22s cubic-bezier(.2, .9, .3, 1.15);
}
.ap-modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .03); position: sticky; top: 0; z-index: 2; }
.ap-modal-hd h3 { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.ap-modal-hd h3 svg { width: 17px; height: 17px; color: var(--accent-2); }
.modal-x { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: rgba(255, 255, 255, .05); color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.modal-x:hover { color: var(--rose); border-color: var(--rose); }
.modal-x svg { width: 15px; height: 15px; }
.ap-modal-bd { padding: 18px; }
.store-hero { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .03); margin-bottom: 16px; }
.store-hero-ic { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: rgba(124, 139, 255, .14); color: var(--accent-2); border: 1px solid rgba(124, 139, 255, .3); }
.store-hero-ic svg { width: 22px; height: 22px; }
.store-hero h4 { display: flex; align-items: center; gap: 9px; font-size: 15px; margin-bottom: 5px; }
.auth-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--emerald); font-size: 11.5px; white-space: nowrap; }
.auth-ok svg { width: 13px; height: 13px; }
.ap-modal-bd h5 { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin: 16px 0 9px; color: var(--text-2); }
.ap-modal-bd h5 svg { width: 14px; height: 14px; color: var(--accent-2); }
.store-wizard-ft { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.wizard-steps { display: flex; gap: 10px; list-style: none; margin: 12px 0 16px; padding: 0; }
.wizard-steps li { flex: 1; font-size: 11.5px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); color: var(--text-3); background: rgba(255, 255, 255, .02); }
.wizard-steps li.ws-done { color: var(--emerald); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .07); }
.wizard-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wp-item { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; font-size: 12.5px; transition: border-color .2s, background .2s; }
.wp-item:hover { border-color: rgba(124, 139, 255, .45); }
.wp-item.wp-pick { border-color: rgba(124, 139, 255, .7); background: rgba(124, 139, 255, .09); }
.wizard-done { margin-top: 16px; padding: 14px; border-radius: 12px; border: 1px solid rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .07); font-size: 12.5px; color: var(--text-2); animation: fadeUp .35s ease both; }
.wizard-done b { color: var(--emerald); display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.wizard-done svg { width: 16px; height: 16px; }
.wizard-done p { margin: 0; line-height: 1.7; }

/* ============== 托管决策中心 ============== */
.input { width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; color: var(--text); font-size: 12.5px; font-family: inherit; }
.ap-policy { margin-bottom: 16px; }
.ap-mode-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ap-mode {
  text-align: left; padding: 13px 15px; border-radius: 13px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .025);
  display: flex; flex-direction: column; gap: 5px; transition: border-color .2s, background .2s, transform .2s;
}
.ap-mode:hover { transform: translateY(-1px); border-color: rgba(124, 139, 255, .45); }
.ap-mode.active { border-color: rgba(124, 139, 255, .75); background: rgba(124, 139, 255, .1); box-shadow: 0 10px 28px -14px rgba(124, 139, 255, .8); }
.ap-mode b { font-size: 13px; color: var(--text); }
.ap-mode span { font-size: 11px; color: var(--text-3); line-height: 1.5; }
.ap-emp-list { display: flex; flex-direction: column; gap: 8px; }
.ap-emp-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .02); flex-wrap: wrap; }
.ap-emp-name { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; flex: 1; }
.ap-emp-name svg { width: 15px; height: 15px; color: var(--accent-2); flex: none; }
.ap-emp-name em { font-style: normal; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-level-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 99px; overflow: hidden; flex: none; }
.ap-lv { padding: 6px 13px; font-size: 11px; background: rgba(255, 255, 255, .03); color: var(--text-3); cursor: pointer; border: 0; border-right: 1px solid var(--border); transition: background .2s, color .2s; }
.ap-lv:last-child { border-right: 0; }
.ap-lv.lv-auto.active { background: rgba(52, 211, 153, .18); color: var(--emerald); }
.ap-lv.lv-approval.active { background: rgba(251, 191, 36, .16); color: var(--amber); }
.ap-lv.lv-manual.active { background: rgba(251, 113, 133, .15); color: var(--rose); }
.ap-policy-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }

.ap-stats { margin-bottom: 14px; }
.ap-sim { margin-bottom: 16px; }
.ap-sim-title { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ap-sim-title svg { width: 15px; height: 15px; color: var(--amber); }
.ap-sim select.input { width: auto; min-width: 320px; }

.ap-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.ap-tab {
  padding: 9px 17px; border-radius: 99px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .03); color: var(--text-2);
  transition: border-color .2s, background .2s;
}
.ap-tab b { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.ap-tab.active { border-color: rgba(124, 139, 255, .65); background: rgba(124, 139, 255, .12); color: var(--text); }

.inbox-grid { display: grid; grid-template-columns: 310px 1fr; gap: 14px; align-items: start; }
.inbox-list { padding: 0; overflow: hidden; }
.inbox-list .card-bd { padding: 0; max-height: 760px; overflow-y: auto; }
.dec-row {
  width: 100%; display: flex; align-items: flex-start; gap: 10px; text-align: left;
  padding: 13px 14px; border: 0; border-bottom: 1px solid var(--border);
  background: transparent; cursor: pointer; transition: background .2s;
}
.dec-row:last-child { border-bottom: 0; }
.dec-row:hover { background: rgba(124, 139, 255, .06); }
.dec-row.active { background: rgba(124, 139, 255, .12); box-shadow: inset 3px 0 0 var(--accent); }
.dec-row-main { flex: 1; min-width: 0; }
.dec-row-t { font-size: 12.5px; font-weight: 600; line-height: 1.5; margin-bottom: 5px; }
.dec-row-m { font-size: 10.5px; color: var(--text-3); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.dec-row-m svg { width: 12px; height: 12px; }
.sev-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
.sev-dot.sev-high { background: var(--rose); box-shadow: 0 0 8px rgba(251, 113, 133, .7); }
.sev-dot.sev-medium { background: var(--amber); }
.sev-dot.sev-low { background: var(--cyan); }

.dec-detail .card-hd { align-items: flex-start; }
.story-line { display: flex; flex-direction: column; gap: 0; margin: 8px 0 14px; }
.story-item { position: relative; display: flex; gap: 11px; padding: 0 0 16px 0; }
.story-item::before { content: ''; position: absolute; left: 13px; top: 26px; bottom: 0; width: 1px; background: var(--border); }
.story-item:last-child::before { display: none; }
.story-ic { width: 27px; height: 27px; border-radius: 9px; flex: none; display: grid; place-items: center; z-index: 1; }
.story-ic svg { width: 14px; height: 14px; }
.st-auto .story-ic { background: rgba(52, 211, 153, .12); color: var(--emerald); border: 1px solid rgba(52, 211, 153, .3); }
.st-signal .story-ic { background: rgba(251, 191, 36, .13); color: var(--amber); border: 1px solid rgba(251, 191, 36, .32); }
.st-escalate .story-ic { background: rgba(251, 113, 133, .12); color: var(--rose); border: 1px solid rgba(251, 113, 133, .32); }
.story-item time { font-size: 10px; color: var(--text-3); font-variant-numeric: tabular-nums; margin-right: 8px; }
.story-item b { font-size: 12.5px; }
.story-item p { margin: 3px 0 0; font-size: 11.5px; color: var(--text-2); line-height: 1.65; }
.escalate-box {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(251, 113, 133, .07); border: 1px solid rgba(251, 113, 133, .3);
  font-size: 12px; line-height: 1.65; margin-bottom: 12px;
}
.escalate-box svg { width: 16px; height: 16px; color: var(--rose); flex: none; margin-top: 2px; }
.advise-box {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(124, 139, 255, .07); border: 1px solid rgba(124, 139, 255, .28);
  font-size: 12px; line-height: 1.65;
}
.advise-box svg { width: 16px; height: 16px; color: var(--accent-2); flex: none; margin-top: 2px; }
.dec-detail h5 { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin: 16px 0 10px; color: var(--text-2); }
.dec-detail h5 svg { width: 14px; height: 14px; color: var(--accent-2); }
.opt-list { display: flex; flex-direction: column; gap: 9px; }
.opt-card {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  padding: 13px 15px; border-radius: 13px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .025); cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.opt-card:hover { transform: translateY(-1px); border-color: rgba(124, 139, 255, .45); }
.opt-card.opt-pick { border-color: rgba(124, 139, 255, .8); background: rgba(124, 139, 255, .1); box-shadow: 0 10px 28px -16px rgba(124, 139, 255, .9); }
.opt-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; margin-top: 2px; position: relative; }
.opt-card.opt-pick .opt-radio { border-color: var(--accent); }
.opt-card.opt-pick .opt-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.opt-label { font-size: 12.5px; font-weight: 600; line-height: 1.6; }
.opt-ribbon {
  display: inline-block; font-size: 9.5px; font-weight: 700; color: #fff;
  padding: 2px 8px; border-radius: 99px; margin-right: 7px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.opt-impact { display: flex; align-items: center; gap: 5px; font-size: 11px; margin-top: 5px; line-height: 1.55; }
.opt-impact svg { width: 12px; height: 12px; flex: none; }
.custom-box { margin-top: 14px; }
.custom-box label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); margin-bottom: 7px; }
.custom-box label svg { width: 13px; height: 13px; }
.decide-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.exec-ticket {
  margin-top: 16px; padding: 14px 16px; border-radius: 13px;
  background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .35);
  animation: fadeUp .4s cubic-bezier(.22, 1, .36, 1) both;
}
.et-hd { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--emerald); margin-bottom: 8px; }
.et-hd svg { width: 16px; height: 16px; }
.et-line { font-size: 11.5px; line-height: 1.7; color: var(--text-2); }
.et-line.muted { color: var(--text-3); }

.dec-done-hd { display: flex; align-items: center; gap: 9px; font-size: 13px; flex-wrap: wrap; }
.dec-done-hd svg { width: 15px; height: 15px; color: var(--accent-2); }
.dec-by { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--emerald); white-space: nowrap; }
.dec-by svg { width: 13px; height: 13px; }
.dec-done-body { font-size: 12px; color: var(--text-2); margin: 10px 0 8px; line-height: 1.6; }
.exec-line { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.exec-line svg { width: 13px; height: 13px; color: var(--accent-2); }

.log-intro { display: flex; align-items: center; gap: 8px; padding: 13px 16px; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--border); background: rgba(52, 211, 153, .05); }
.log-intro svg { width: 15px; height: 15px; color: var(--emerald); }

/* ============================================================
   响应式外壳（智岗真实建设版）：≤860px 固定侧栏转顶部横条，
   避免窄屏主内容被 250px 侧栏挤压成竖排单字
   ============================================================ */
@media (max-width: 860px) {
  /* minmax(0,1fr) + 子项 min-width:0：防止横滑导航的固有宽度把网格轨道撑出视口 */
  #app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  #sidebar, #main { min-width: 0; }
  #sidebar {
    flex-direction: row; align-items: center; flex-wrap: wrap;
    gap: 8px 12px; padding: 10px 14px;
    border-right: 0; border-bottom: 1px solid var(--border);
  }
  .brand { padding: 0; gap: 9px; flex: none; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: none; }
  .brand-text span { display: none; }
  .brand-text strong { font-size: 14.5px; letter-spacing: .8px; }
  #nav {
    flex: 1 1 200px; min-width: 0; flex-direction: row; gap: 6px; overflow-x: auto; padding-bottom: 3px;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent;
  }
  #nav::-webkit-scrollbar { height: 3px; }
  #nav::-webkit-scrollbar-track { background: transparent; }
  #nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 99px; }
  .nav-group-label { display: none; }
  .nav-item { padding: 8px 13px; white-space: nowrap; border-radius: 999px; }
  .sidebar-foot { flex: none; flex-direction: row; align-items: center; border-top: 0; padding-top: 0; gap: 8px; }
  .demo-note { display: none; }
  .mode-pill { padding: 6px 10px; white-space: nowrap; }
  /* 窄屏 toast 锚定底部，避开折行后的顶部外壳 */
  #toast-root { top: auto; bottom: 16px; right: 14px; left: 14px; }
  #toast-root .toast { width: 100%; justify-content: center; }

  #topbar { padding: 12px 16px 10px; gap: 8px 12px; flex-wrap: wrap; }
  #topbar h1 { font-size: 17px; }
  #topbar p { font-size: 11px; line-height: 1.5; }
  .topbar-right { gap: 8px; margin-left: auto; }
  .store-chip { padding: 6px 11px; max-width: 48vw; }
  .store-chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .store-chip-label b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #view { padding: 16px 14px 28px; }
}

@media (max-width: 480px) {
  .clock { display: none; }
  .store-chip { max-width: 44vw; }
  #topbar p { display: none; }
  #topbar { padding-bottom: 12px; }
  /* 品牌只留 Logo，导航独占一整行，两个入口完整可见不被裁切 */
  .brand-text { display: none; }
  .brand { order: 1; }
  .sidebar-foot { order: 2; }
  #nav { order: 3; flex: 1 1 100%; }
  .mode-pill { font-size: 11px; padding: 5px 9px; }
}
.log-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.log-row:last-child { border-bottom: 0; }
.log-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .045); border: 1px solid var(--border); color: var(--accent-2); }
.log-ic svg { width: 16px; height: 16px; }
.log-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.log-body b { font-size: 12.5px; }
.log-body span { font-size: 11px; color: var(--text-3); line-height: 1.5; }
.log-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.log-meta time { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

@media (max-width: 1280px) {
  .inbox-grid { grid-template-columns: 1fr; }
  .ap-mode-seg { grid-template-columns: 1fr; }
  .wizard-platforms { grid-template-columns: 1fr; }
  .ap-emp-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   买家对话推演（客服页 · 全托管拟人化对话 + 情绪监测 + 升级闸门）
   ============================================================ */
.sim-block { padding: 12px 14px 14px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(124, 139, 255, .06), transparent); }
.sim-block-hd { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; }
.sim-block-hd svg { width: 14px; height: 14px; color: var(--accent-2); }
.sim-card {
  display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 8px;
  border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .025);
  cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.sim-card:last-child { margin-bottom: 0; }
.sim-card:hover { border-color: rgba(124, 139, 255, .5); background: rgba(124, 139, 255, .08); transform: translateY(-1px); }
.sim-card b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); }
.sim-card b svg { width: 14px; height: 14px; color: var(--accent-2); }
.sim-card > span { display: block; font-size: 11px; color: var(--text-3); line-height: 1.6; margin: 5px 0 7px; }
.sim-card em { font-style: normal; }

.sim-meter {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  border-bottom: 1px solid var(--border); background: rgba(7, 8, 13, .8); backdrop-filter: blur(8px);
}
.sm-title { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.sm-title svg { width: 14px; height: 14px; color: var(--accent-2); }
.sm-track { flex: 1; height: 8px; min-width: 60px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.sm-track i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .55s cubic-bezier(.22, 1, .36, 1), background .3s; }
.sm-track i.cool { background: linear-gradient(90deg, #34d399, #10b981); }
.sm-track i.warm { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.sm-track i.hot { background: linear-gradient(90deg, #fb7185, #e11d48); }
.sm-pct { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 42px; color: var(--text-2); }
.sm-state { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.sim-meter .btn { margin-left: auto; flex: none; }

.sim-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 99px; margin-bottom: 6px; }
.sim-flag svg { width: 11px; height: 11px; }
.sim-flag.auto { color: var(--emerald); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); }
.sim-flag.warm { color: var(--amber); background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .32); }
.sim-flag.hot { color: var(--rose); background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .35); }
.sim-auto-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; max-width: 520px; font-size: 10.5px; color: var(--text-3); line-height: 1.6; }
.sim-auto-note svg { width: 12px; height: 12px; flex: none; margin-top: 2px; color: var(--emerald); }
.sim-intro { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 12px; }
.sim-intro svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.sim-gate-tip {
  margin: 10px 0 4px; padding: 11px 14px; border-radius: 12px; font-size: 11.5px; line-height: 1.7;
  color: #fecdd3; background: rgba(251, 113, 133, .09); border: 1px solid rgba(251, 113, 133, .35);
}
.sim-gate-tip svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.sim-gate-tip .mono { color: var(--rose); font-weight: 700; }

/* 升级盒 / 参谋盒标题与纵向布局（决策中心与对话推演共用） */
.escalate-box { flex-direction: column; gap: 8px; }
.escalate-box p { margin: 0; }
.eb-hd { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #fecdd3; font-size: 12.5px; white-space: nowrap; }
.eb-hd svg { width: 15px; height: 15px; }
.advise-box { flex-direction: column; gap: 4px; }
.advise-box p { margin: 0; }
.ab-hd { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); font-size: 12.5px; }
.ab-hd svg { width: 14px; height: 14px; }
.opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opt-main b { font-size: 12.5px; line-height: 1.55; }

/* AI 自主决策卡片（低风险会话自动闭环，呈现 AI 自己拍板了什么） */
.auto-decision-card { padding: 4px 0; }
.adc-hd { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--emerald); margin-bottom: 12px; }
.adc-hd svg { width: 16px; height: 16px; }
.adc-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.adc-row:last-of-type { border-bottom: 0; }
.adc-step {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--emerald);
  background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35);
}
.adc-row b { font-size: 12.5px; color: var(--text); }
.adc-row p { margin: 4px 0 6px; font-size: 11.5px; color: var(--text-2); line-height: 1.65; }
.adc-basis { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--text-3); }
.adc-basis svg { width: 12px; height: 12px; color: var(--emerald); }
