/* 泊信人工智能科技 · AI 工作台
   视觉：深空底 + 冷光青蓝 + 玻璃面板
   -------------------------------------------------- */
:root {
  --bg: #04060c;
  --panel: rgba(11, 18, 31, 0.72);
  --panel-solid: #0b1220;
  --panel-hi: rgba(20, 32, 54, 0.85);
  --line: rgba(86, 148, 255, 0.16);
  --line-hi: rgba(86, 196, 255, 0.42);
  --text: #e8f0ff;
  --dim: #8ea2c4;
  --dim2: #5f7192;
  --cyan: #34d8ff;
  --blue: #4a7dff;
  --violet: #8b5cf6;
  --ok: #2ee6a8;
  --warn: #ffb84d;
  --danger: #ff5d7a;
  --r: 14px;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1100px 620px at 8% -14%, rgba(52, 216, 255, 0.16), transparent 62%),
    radial-gradient(900px 520px at 102% -6%, rgba(74, 125, 255, 0.16), transparent 58%),
    radial-gradient(700px 700px at 50% 120%, rgba(139, 92, 246, 0.10), transparent 65%),
    var(--bg);
  position: relative;
}

/* 网格层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(86, 148, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 148, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 34%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 0%, #000 34%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

::selection { background: rgba(52, 216, 255, 0.28); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(86, 148, 255, 0.22);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(86, 196, 255, 0.4); background-clip: padding-box; }

a { color: var(--cyan); text-decoration: none; }
.muted { color: var(--dim); }
.small { font-size: 13px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 8px 0 0; }

/* ---------- 通用控件 ---------- */
.btn {
  border: 1px solid var(--line);
  background: rgba(17, 27, 45, 0.85);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .06s;
}
.btn:hover { border-color: var(--line-hi); background: rgba(24, 38, 62, 0.95); box-shadow: 0 0 18px rgba(52, 216, 255, 0.14); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-color: transparent;
  color: #04121e;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(52, 152, 255, 0.32);
}
.btn.primary:hover { box-shadow: 0 10px 30px rgba(52, 200, 255, 0.45); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.warn { border-color: rgba(255, 184, 77, .5); background: rgba(255, 184, 77, .12); color: var(--warn); }

/* 三个脚本按钮（真人/ AI / 图片）：图标跟左侧工具栏同一套线框，别用表情符号（2026-11-13 老板要的） */
.btn.has-ico, .mini-btn.has-ico { display: inline-flex; align-items: center; gap: 5px; }
.btn .bi { width: 14px; height: 14px; flex: none; }
.mini-btn .bi { width: 12px; height: 12px; flex: none; }

input, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: rgba(6, 12, 22, 0.8);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  outline: none;
  resize: none;
  transition: border-color .18s, box-shadow .18s;
}
input::placeholder, textarea::placeholder { color: var(--dim2); }

select {
  background: rgba(6, 12, 22, 0.8);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
select:focus { border-color: var(--line-hi); }
input:focus, textarea:focus {
  border-color: var(--line-hi);
  box-shadow: 0 0 0 3px rgba(52, 216, 255, 0.14), 0 0 22px rgba(52, 216, 255, 0.12);
}

/* ---------- 登录 ---------- */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 372px;
  padding: 34px 30px 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 28, 48, 0.92), rgba(8, 14, 26, 0.92));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.login-card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 120%;
  background: radial-gradient(circle at 30% 20%, rgba(52, 216, 255, 0.16), transparent 55%);
  pointer-events: none;
}
.login-card > * { position: relative; z-index: 1; }

.login-logo {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 800;
  color: #03121c;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(52, 200, 255, 0.5);
  position: relative;
}
.login-logo::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 20px;
  border: 1px solid rgba(52, 216, 255, 0.28);
  animation: ringPulse 3.4s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.05); }
}

.login-card h1 { font-size: 19px; margin: 6px 0 0; letter-spacing: .5px; }
.login-card p { margin: 0; }
.login-card input { margin-top: 6px; }
.login-foot { font-size: 11.5px; color: var(--dim2); margin-top: 10px; letter-spacing: .4px; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(6, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: .4px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: #fff; padding: 3px; object-fit: contain;
  box-shadow: 0 0 16px rgba(52, 216, 255, .22);
  flex-shrink: 0;
}
.login-brand {
  display: block;
  height: 178px; width: auto;
  margin: 0 auto 2px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 0 38px rgba(52, 216, 255, .16);
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 26px rgba(52, 216, 255, .5);
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
.tag {
  font-size: 11px; color: var(--dim);
  border: 1px solid var(--line); border-radius: 20px; padding: 2px 9px;
  letter-spacing: .5px;
}
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: 7px 15px; border-radius: 9px; color: var(--dim); font-size: 14px;
  border: 1px solid transparent; transition: .18s;
}
.nav a:hover { color: var(--text); border-color: var(--line); }
.nav a.active {
  color: var(--cyan); background: rgba(52, 216, 255, .1);
  border-color: rgba(52, 216, 255, .3);
  box-shadow: 0 0 18px rgba(52, 216, 255, .12) inset;
}

/* ---------- 对话页 ---------- */
.chat-body { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.chat-shell { flex: 1; display: flex; min-height: 0; }

.tool-rail {
  width: 232px;
  padding: 12px 10px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(5, 10, 19, 0.55);
  flex-shrink: 0;
}
.rail-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 11px;
  padding: 10px 12px 10px 34px;
  cursor: pointer;
  display: block;
  position: relative;
  margin-bottom: 3px;
  font-family: inherit;
  transition: .18s;
}
.rail-item:hover { background: rgba(24, 38, 62, 0.55); border-color: var(--line); }
.rail-item.on {
  background: linear-gradient(90deg, rgba(52, 216, 255, .14), rgba(74, 125, 255, .08));
  border-color: rgba(52, 216, 255, .34);
  box-shadow: inset 0 0 22px rgba(52, 216, 255, .08);
}
.rail-idx {
  position: absolute; left: 10px; top: 11px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px; color: var(--dim2); letter-spacing: .5px;
}
.rail-item.on .rail-idx { color: var(--cyan); }
.rail-name { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.rail-item.on .rail-name { color: var(--cyan); }
.rail-desc { display: block; font-size: 11.5px; color: var(--dim2); margin-top: 3px; line-height: 1.4; }
.rail-dot {
  position: absolute; right: 10px; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--warn);
  box-shadow: 0 0 8px var(--warn);
}

.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 11, 20, 0.45);
}
.chat-title { font-weight: 650; font-size: 16px; letter-spacing: .4px; }
.chat-sub { font-size: 12.5px; margin-top: 3px; color: var(--dim); }

.chat-scroll { flex: 1; overflow-y: auto; padding: 24px 22px 10px; min-height: 0; }
/* 空页面靠上排，不再垂直居中——省得一屏放不下 */
.empty-hint { max-width: 900px; margin: 6px auto 18px; text-align: center; color: var(--dim); font-size: 14px; }
.empty-hint p { margin: 6px 0; }
.empty-hint::before {
  content: "";
  display: block;
  width: 38px; height: 38px; margin: 0 auto 10px;
  border-radius: 16px;
  border: 1px solid var(--line-hi);
  background: radial-gradient(circle at 50% 40%, rgba(52, 216, 255, .3), transparent 70%);
  box-shadow: 0 0 34px rgba(52, 216, 255, .22);
}

/* 气泡 */
.msg { display: flex; flex-direction: column; margin-bottom: 16px; animation: fadeUp .26s ease-out both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg .who { font-size: 11px; color: var(--dim2); margin-bottom: 5px; padding: 0 4px; letter-spacing: .6px; }
.msg .bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.75;
  max-width: min(720px, 84%);
  white-space: normal;
  word-break: break-word;
}
.msg.me { align-items: flex-end; }
.msg.me .bubble {
  background: linear-gradient(135deg, #2b6bff, #7a4dff);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 8px 26px rgba(74, 100, 255, .28);
}
.msg.ai { align-items: flex-start; }
.msg.ai .bubble {
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
}
.msg.op { align-items: flex-start; }
.msg.op .bubble {
  background: rgba(16, 44, 38, 0.8);
  border: 1px solid rgba(46, 230, 168, .34);
  border-bottom-left-radius: 5px;
  box-shadow: 0 0 20px rgba(46, 230, 168, .1);
}
.msg.sys { align-items: center; margin: 12px 0; }
.msg.sys span {
  font-size: 12px; color: var(--dim);
  background: rgba(20, 32, 54, .8);
  border: 1px solid var(--line);
  padding: 4px 14px; border-radius: 20px;
}
.msg.thinking .bubble { color: var(--dim); }
.msg.thinking .bubble::after,
.msg.streaming .bubble::after {
  content: "";
  display: inline-block;
  width: 8px; height: 16px;
  margin-left: 3px;
  vertical-align: -3px;
  background: var(--cyan);
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 0%, 50% { opacity: 1; } 50.1%, 100% { opacity: 0; } }

.route-btn { margin-top: 2px; }
.route-hint { margin-top: 6px; padding-left: 2px; }

/* 输入区 */
.composer {
  display: flex; gap: 12px; align-items: flex-end;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  background: rgba(6, 11, 20, 0.72);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.composer textarea { flex: 1; max-height: 168px; padding: 12px 15px; border-radius: 12px; }
.composer .btn { height: 44px; padding: 0 24px; }

/* ---------- 管理台 ---------- */
.wrap { max-width: 1000px; margin: 0 auto; padding: 20px 18px 90px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.card h3 { font-size: 14.5px; margin: 0 0 12px; font-weight: 650; letter-spacing: .4px; }

.cmdbar { display: flex; gap: 12px; align-items: center; padding: 12px; }
.cmdbar input { flex: 1; }
.cmd-result { font-size: 13.5px; padding: 0 4px 10px; min-height: 0; }
.cmd-result.ok { color: var(--ok); }
.cmd-result.err { color: var(--danger); }

.tabs { display: flex; gap: 8px; margin: 6px 0 16px; overflow-x: auto; padding-bottom: 2px; }
.tab-btn {
  border: 1px solid var(--line);
  background: rgba(17, 27, 45, 0.6);
  border-radius: 22px;
  padding: 7px 18px;
  font-size: 14px; cursor: pointer; white-space: nowrap;
  color: var(--dim); font-family: inherit; transition: .18s;
}
.tab-btn:hover { color: var(--text); border-color: var(--line-hi); }
.tab-btn.on {
  color: #04121e;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(52, 180, 255, .3);
}
.pill { font-size: 11px; opacity: .85; }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fadeUp .22s ease-out both; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.stat::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: .55;
}
.stat b {
  font-size: 26px; font-weight: 700;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.15;
}
.stat b.ok { background-image: linear-gradient(135deg, #b8ffe6, var(--ok)); }
.stat b.hot { background-image: linear-gradient(135deg, #ffd0d8, var(--danger)); }
.stat b.gold { background-image: linear-gradient(135deg, #ffe6bd, var(--warn)); }
.stat b.grey { background-image: linear-gradient(135deg, #cfd8e8, #7f8ea8); }
.stat span { font-size: 12px; color: var(--dim); letter-spacing: .4px; }

/* 管理台概览：AI 外呼余额卡 */
.bal-card { margin-bottom: 16px; }
.bal-line { display: flex; align-items: center; gap: 12px; margin: 8px 0 6px; flex-wrap: wrap; }
.bal-num {
  font-size: 30px; font-weight: 700;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}
.bal-num.warn { background: none; color: var(--warn); }
.bal-num.low { background: none; color: var(--danger); }
.bal-tag {
  font-size: 12px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--dim);
}
.bal-tag.ok { color: var(--ok); border-color: rgba(46, 230, 168, .32); background: rgba(46, 230, 168, .07); }
.bal-tag.warn { color: var(--warn); border-color: rgba(255, 197, 87, .34); background: rgba(255, 197, 87, .08); }
.bal-tag.low { color: var(--danger); border-color: rgba(255, 102, 102, .38); background: rgba(255, 102, 102, .09); }

.list { display: flex; flex-direction: column; }
.lead {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(86, 148, 255, 0.1);
  transition: background .16s;
}
.lead:hover { background: rgba(24, 38, 62, 0.35); }
.lead:last-child { border-bottom: none; }
.lead-main { min-width: 0; flex: 1; }
.lead-ck {
  flex: 0 0 auto; width: 16px; height: 16px; margin: 0 2px 0 2px;
  accent-color: #34d8ff; cursor: pointer;
}
.lead-title {
  font-size: 14.5px; font-weight: 650;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.lead-meta { font-size: 13px; color: #b9c6dd; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-sub { font-size: 12px; margin-top: 4px; color: var(--dim2); }
.acts { display: flex; gap: 7px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.badge {
  font-size: 11px; padding: 2px 9px; border-radius: 20px; font-weight: 600;
  border: 1px solid var(--line); color: var(--dim);
  background: rgba(20, 32, 54, 0.7);
  letter-spacing: .3px;
}
.badge.ok { color: var(--ok); border-color: rgba(46, 230, 168, .38); background: rgba(46, 230, 168, .1); }
.badge.hot { color: #ff8ea0; border-color: rgba(255, 93, 122, .42); background: rgba(255, 93, 122, .1); }
.badge.gold { color: var(--warn); border-color: rgba(255, 184, 77, .4); background: rgba(255, 184, 77, .1); }
.badge.grey { color: var(--dim2); border-color: var(--line); background: rgba(20, 32, 54, .6); }

.filters { display: flex; gap: 8px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: rgba(17, 27, 45, 0.6);
  border-radius: 20px; padding: 6px 15px; font-size: 13px;
  cursor: pointer; color: var(--dim); font-family: inherit; transition: .18s;
}
.chip:hover { color: var(--text); border-color: var(--line-hi); }
.chip.on {
  color: var(--cyan); border-color: rgba(52, 216, 255, .45);
  background: rgba(52, 216, 255, .1);
  box-shadow: 0 0 16px rgba(52, 216, 255, .12);
}
.filters input { flex: 1; min-width: 170px; }

.split { display: grid; grid-template-columns: 300px 1fr; gap: 16px; min-height: 60vh; }
.sess-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow-y: auto;
  max-height: 72vh;
  backdrop-filter: blur(10px);
}
.sess { padding: 12px 14px; border-bottom: 1px solid rgba(86, 148, 255, .1); cursor: pointer; transition: .16s; }
.sess:hover { background: rgba(24, 38, 62, 0.4); }
.sess.on { background: linear-gradient(90deg, rgba(52, 216, 255, .13), transparent); border-left: 2px solid var(--cyan); }
.sess-t { font-size: 13.5px; font-weight: 650; display: flex; gap: 7px; align-items: center; }
.sess-p { font-size: 12.5px; color: #a9b8d0; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sess-m { font-size: 11.5px; margin-top: 3px; color: var(--dim2); }

.sess-detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex; flex-direction: column;
  min-height: 60vh; max-height: 72vh; overflow: hidden;
  backdrop-filter: blur(10px);
}
.sess-head {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 14px; display: flex; gap: 9px; align-items: center;
}
.sess-msgs { flex: 1; overflow-y: auto; padding: 16px; background: rgba(4, 8, 15, 0.5); }
.sess-detail .composer { border-top: 1px solid var(--line); padding: 12px; flex-direction: column; align-items: stretch; }
.row { display: flex; gap: 9px; align-items: center; }

.toast {
  position: fixed; left: 50%; bottom: 38px; transform: translateX(-50%);
  background: rgba(12, 22, 38, .96);
  border: 1px solid var(--line-hi);
  color: var(--text);
  padding: 10px 20px; border-radius: 11px; font-size: 13.5px; z-index: 99;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .55), 0 0 22px rgba(52, 216, 255, .16);
}

/* ---------- 历史对话抽屉 ---------- */
.chat-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.drawer-mask {
  position: fixed; inset: 0; background: rgba(2, 5, 10, 0.62);
  backdrop-filter: blur(3px); opacity: 0; pointer-events: none;
  transition: opacity .22s; z-index: 40;
}
.drawer-mask.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 372px; max-width: 92vw;
  background: linear-gradient(180deg, rgba(13, 21, 36, .98), rgba(7, 12, 21, .98));
  border-left: 1px solid var(--line-hi);
  box-shadow: -22px 0 60px rgba(0, 0, 0, .6);
  transform: translateX(102%);
  transition: transform .26s cubic-bezier(.22, .8, .3, 1);
  z-index: 41;
  display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px 30px; }
.drawer-body input { margin-bottom: 12px; }

.hist-list { display: flex; flex-direction: column; gap: 6px; }
.hist-item {
  padding: 11px 13px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: .16s;
  display: flex; align-items: center; gap: 8px;
}
.hist-item:hover { background: rgba(24, 38, 62, .55); border-color: var(--line); }
.hist-item.on { background: rgba(52, 216, 255, .1); border-color: rgba(52, 216, 255, .32); }
.hist-main { min-width: 0; flex: 1; }
.hist-t { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-m { font-size: 11.5px; color: var(--dim2); margin-top: 4px; }
.hist-group {
  font-size: 11.5px; color: var(--dim2); letter-spacing: .5px;
  margin: 10px 0 2px 4px;
}
.hist-group:first-child { margin-top: 2px; }
.hist-clear { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.resume-last { margin-top: 8px; }
.resume-btn {
  border: 1px dashed rgba(52, 216, 255, .35); background: rgba(52, 216, 255, .06);
  color: #bff3ff; font-size: 12.5px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.resume-btn:hover { background: rgba(52, 216, 255, .14); }
.hist-lead {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
  color: #2ee6a8; border: 1px solid rgba(46, 230, 168, .32);
  background: rgba(46, 230, 168, .08); cursor: pointer; vertical-align: 1px;
}
.hist-lead:hover { background: rgba(46, 230, 168, .16); }
.hist-del {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid transparent; background: transparent;
  color: var(--dim2); font-size: 13px; cursor: pointer; line-height: 1;
  opacity: 0; transition: .16s;
}
.hist-item:hover .hist-del { opacity: 1; }
.hist-del:hover { color: #ff8a8a; border-color: rgba(255, 102, 102, .35); background: rgba(255, 102, 102, .08); }
@media (max-width: 760px) { .hist-del { opacity: 1; } }

/* 批量操作：选中后从底部浮出来（Gmail / Notion 那套） */
.sel-bar {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 70; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(13, 21, 35, .97); border: 1px solid var(--line-hi);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  font-size: 13px;
}
.sel-bar b { color: var(--cyan); font-size: 15px; }
.sel-bar .sp { width: 8px; }

/* ---------- 成员 ---------- */
.member {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 4px; border-bottom: 1px solid rgba(86, 148, 255, .1);
}
.member:last-child { border-bottom: none; }
.member-main { min-width: 0; flex: 1; }
.member-name { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member-sub { font-size: 12px; color: var(--dim2); margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }

/* ---------- 我的设置 ---------- */
.qr-box { display: flex; justify-content: center; margin: 14px 0 6px; }
.qr-box img {
  width: 190px; height: 190px; object-fit: contain;
  background: #fff; padding: 9px; border-radius: 14px;
  box-shadow: 0 0 26px rgba(52, 216, 255, .14);
}
.steps { color: var(--dim); font-size: 13.5px; padding-left: 20px; margin: 10px 0 14px; line-height: 1.9; }
.steps li::marker { color: var(--cyan); }

/* ============================================================
   指挥中心布局 v2
   ============================================================ */
.app-body { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

.topbar { height: 64px; padding: 0 20px; gap: 20px; justify-content: flex-start; }

.brand { gap: 11px; flex-shrink: 0; }
.brand-icon {
  width: 38px; height: 38px; border-radius: 11px;
  box-shadow: 0 0 24px rgba(56, 160, 255, .45);
  flex-shrink: 0;
}
.brand-text b { font-size: 17px; font-weight: 700; letter-spacing: .6px; }
.brand-text b span { color: var(--cyan); }
.brand-text small {
  display: block; font-size: 9px; letter-spacing: 2.6px;
  color: var(--dim2); margin-top: 1px; font-weight: 400;
}

.tabs-main { display: flex; gap: 8px; margin-left: 26px; }
.tab-main {
  border: 1px solid var(--line);
  background: rgba(17, 27, 45, .6);
  color: var(--dim);
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: .18s;
}
.tab-main:hover { color: var(--text); border-color: var(--line-hi); }
.tab-main.on {
  color: #eaf6ff;
  border-color: rgba(52, 216, 255, .45);
  background: linear-gradient(180deg, rgba(52, 216, 255, .16), rgba(74, 125, 255, .07));
  box-shadow: 0 0 22px rgba(52, 216, 255, .14);
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.status-pill {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #a9c4e6;
  border: 1px solid var(--line); border-radius: 20px;
  padding: 6px 14px; background: rgba(10, 17, 30, .7);
}
.dot-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2ee6a8; box-shadow: 0 0 10px #2ee6a8;
  animation: breathe 2.2s ease-in-out infinite;
}
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 2px; background: var(--cyan); border-radius: 2px; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 5px; }
.eq i:nth-child(2) { height: 10px; animation-delay: .15s; }
.eq i:nth-child(3) { height: 7px; animation-delay: .3s; }
@keyframes eq { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.portal { font-size: 10.5px; letter-spacing: 3px; color: var(--dim2); }

.shell { flex: 1; display: flex; min-height: 0; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.main[hidden], [hidden] { display: none !important; }

/* 左侧 */
.side {
  width: 254px; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(5, 10, 19, .55);
  padding: 14px 10px 10px;
  overflow-y: auto;
}
.side-group { margin-bottom: 14px; }
.side-title {
  font-size: 10.5px; letter-spacing: 1.8px; color: var(--dim2);
  padding: 0 11px 8px;
}
.side-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px; margin-bottom: 2px;
  border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--text);
  font-family: inherit; font-size: 13.5px; cursor: pointer;
  text-align: left; transition: .16s;
}
.side-item:hover { background: rgba(24, 38, 62, .6); border-color: var(--line); }
.side-item.on {
  background: linear-gradient(90deg, rgba(52, 216, 255, .16), rgba(74, 125, 255, .05));
  border-color: rgba(52, 216, 255, .34);
  box-shadow: inset 0 0 22px rgba(52, 216, 255, .08);
}
.side-item.on .si-name { color: var(--cyan); font-weight: 600; }
.side-item.soon { opacity: .5; cursor: not-allowed; }
.si-icon { width: 22px; text-align: center; font-size: 15px; filter: drop-shadow(0 0 6px rgba(52, 216, 255, .22)); }
.si-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soon-tag { font-size: 9.5px; color: var(--dim2); border: 1px solid var(--line); border-radius: 20px; padding: 1px 6px; }

.live-card {
  margin-top: auto;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 11px; background: rgba(10, 17, 30, .8);
}
.live-head {
  display: flex; justify-content: space-between;
  font-size: 10.5px; letter-spacing: 1.2px; color: var(--dim);
  margin-bottom: 9px;
}
.live-tag { color: #2ee6a8; font-size: 9.5px; letter-spacing: .5px; }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.live-grid > div {
  background: rgba(6, 12, 22, .75);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 10px;
}
.live-grid b {
  display: block; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 19px; line-height: 1.2;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.live-grid span { font-size: 10px; color: var(--dim2); }
.live-foot { margin-top: 9px; font-size: 9px; letter-spacing: 1.6px; color: var(--dim2); }

.side-foot { display: flex; gap: 8px; justify-content: center; padding: 12px 0 4px; font-size: 12px; color: var(--dim2); }
.side-foot a { color: var(--dim); }
.side-foot a:hover { color: var(--cyan); }
.side-foot i { font-style: normal; opacity: .5; }

/* 对话头 */
.chat-head-left { display: flex; align-items: center; gap: 12px; }
.head-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }

/* 登录页品牌 */
.login-brand2 { display: flex; align-items: center; gap: 14px; margin: 2px 0 4px; }
.login-brand2 img {
  width: 62px; height: 62px; border-radius: 18px;
  box-shadow: 0 0 36px rgba(56, 160, 255, .5);
  flex-shrink: 0;
}
.lb-text b { font-size: 22px; letter-spacing: 1.5px; font-weight: 700; }
.lb-text b span { color: var(--cyan); }
.lb-text small { display: block; font-size: 8.5px; letter-spacing: 2.6px; color: var(--dim2); margin-top: 4px; }

/* 占位视图 */
.placeholder-view {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 6px; padding: 24px;
}
.ph-icon { font-size: 40px; filter: drop-shadow(0 0 20px rgba(52, 216, 255, .4)); }
.placeholder-view h2 { margin: 8px 0 0; font-size: 21px; letter-spacing: 1px; }
.ph-list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 14px 0 6px; }
.ph-list span {
  font-size: 12.5px; color: var(--dim);
  border: 1px dashed var(--line); border-radius: 20px; padding: 5px 15px;
}

/* 开场动画 */
.splash {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(circle at 50% 34%, rgba(24, 64, 140, .5), #04060c 62%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .55s ease;
  animation: splashAuto .6s ease 2.8s forwards;
}
@keyframes splashAuto { to { opacity: 0; visibility: hidden; } }
.splash.out { opacity: 0; pointer-events: none; }
.splash-inner { text-align: center; }
.splash-icon img {
  width: 96px; height: 96px; border-radius: 26px;
  box-shadow: 0 0 64px rgba(56, 160, 255, .55);
  animation: pop .85s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes pop { from { transform: scale(.82); opacity: 0; } to { transform: none; opacity: 1; } }
.splash-name { margin-top: 24px; font-size: 27px; font-weight: 700; letter-spacing: 4px; }
.splash-name span { color: var(--cyan); }
.splash-sub { margin-top: 10px; font-size: 10px; letter-spacing: 5.5px; color: var(--dim); }
.splash-bar {
  width: 340px; max-width: 68vw; height: 3px; margin: 28px auto 0;
  background: rgba(86, 148, 255, .18); border-radius: 3px; overflow: hidden;
}
.splash-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 12px rgba(52, 216, 255, .7);
  animation: fill 1.45s ease-out forwards;
}
@keyframes fill { to { width: 100%; } }
.splash-tip { margin-top: 15px; font-size: 11.5px; color: var(--dim2); letter-spacing: 1.2px; }

@media (max-width: 860px) {
  .topbar { gap: 10px; padding: 0 12px; height: 58px; }
  .brand-text small, .topbar-right { display: none; }
  .tabs-main { margin-left: 6px; gap: 6px; }
  .tab-main { padding: 6px 12px; font-size: 13px; }
  .shell { flex-direction: column; }
  .side {
    width: 100%; flex-direction: row; align-items: center;
    overflow-x: auto; overflow-y: hidden;
    border-right: none; border-bottom: 1px solid var(--line);
    padding: 9px 10px; gap: 6px;
  }
  .side-group { display: contents; }
  .side-title, .live-card, .side-foot, .side-item.soon { display: none; }
  .rail { display: flex; gap: 6px; }
  .side-item { flex: 0 0 auto; width: auto; margin: 0; padding: 7px 14px; border: 1px solid var(--line); border-radius: 20px; }
  .si-icon { width: auto; font-size: 13px; }
  .splash-icon img { width: 78px; height: 78px; }
  .splash-name { font-size: 22px; }
  .splash-sub { font-size: 8.5px; letter-spacing: 3.5px; }
}

/* ============================================================
   视觉打磨 v3：底色质感、整体比例、顶栏放大
   ============================================================ */
body {
  background:
    radial-gradient(1250px 720px at 8% -14%, rgba(40, 120, 220, .16), transparent 62%),
    radial-gradient(1050px 640px at 104% -8%, rgba(60, 100, 220, .14), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(110, 80, 220, .09), transparent 64%),
    #04060c;
}
body::before {
  background-image:
    linear-gradient(rgba(86, 148, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 148, 255, .026) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 62% at 50% 0%, #000 18%, transparent 76%);
  mask-image: radial-gradient(ellipse 85% 62% at 50% 0%, #000 18%, transparent 76%);
}
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 32%, transparent 42%, rgba(0, 0, 0, .5) 100%);
}

.topbar { height: 78px; padding: 0 26px; gap: 28px; }
.brand-logo-img {
  width: 50px; height: 50px; object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(52, 216, 255, .55));
  flex-shrink: 0;
}
.brand-text b { font-size: 20px; letter-spacing: .8px; }
.brand-text small { font-size: 9.5px; letter-spacing: 3px; margin-top: 2px; }
.tabs-main { gap: 10px; margin-left: 30px; }
.tab-main { padding: 11px 24px; font-size: 15px; border-radius: 12px; }
.status-pill { padding: 8px 17px; font-size: 13.5px; }
.portal { font-size: 11px; letter-spacing: 3.4px; }

.side { width: 272px; padding: 16px 12px 12px; }
.side-title { font-size: 11px; padding: 0 12px 9px; }
.side-item { padding: 10px 13px; font-size: 14px; gap: 11px; }
.si-icon { font-size: 16px; width: 24px; }
.live-card { padding: 13px; }
.live-grid > div { padding: 9px 11px; }
.live-grid b { font-size: 21px; }

.chat-head { padding: 16px 24px; }
.chat-title { font-size: 17px; }
.chat-scroll { padding: 26px 24px 10px; }
.msg .bubble { font-size: 15px; padding: 13px 17px; }
.composer { padding: 15px 24px calc(15px + env(safe-area-inset-bottom)); }
.wrap { max-width: 1040px; }
.card { padding: 18px 20px; }

.login-brand2 img {
  width: 78px; height: 78px; border-radius: 0;
  background: transparent; box-shadow: none;
  filter: drop-shadow(0 0 26px rgba(52, 216, 255, .5));
  object-fit: contain;
}
.lb-text b { font-size: 23px; }

.splash-icon img {
  width: 124px; height: 124px; border-radius: 0;
  background: transparent; box-shadow: none;
  filter: drop-shadow(0 0 48px rgba(52, 216, 255, .55));
  object-fit: contain;
}

@media (max-width: 860px) {
  .topbar { height: 62px; padding: 0 14px; gap: 10px; }
  .brand-logo-img { width: 38px; height: 38px; }
  .brand-text b { font-size: 17px; }
  .tab-main { padding: 8px 15px; font-size: 14px; }
  .side { width: 100%; }
  .splash-icon img { width: 92px; height: 92px; }
  .chat-head { padding: 12px 15px; }
  .chat-scroll { padding: 16px 13px 6px; }
}

/* 顶栏导航更醒目 */
.nav a {
  padding: 9px 18px; font-size: 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(17, 27, 45, .55);
  color: var(--dim); transition: .16s;
}
.nav a:hover { border-color: var(--line-hi); color: var(--text); }
.nav a.active {
  color: #eaf6ff; border-color: rgba(52, 216, 255, .45);
  background: linear-gradient(180deg, rgba(52, 216, 255, .18), rgba(74, 125, 255, .08));
  box-shadow: 0 0 20px rgba(52, 216, 255, .16);
}

/* 侧栏底部入口 */
.side-foot { gap: 8px; padding: 12px 2px 2px; }
.side-link {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 8px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 12.5px; color: var(--dim); background: rgba(12, 20, 34, .6);
  transition: .16s;
}
.side-link:hover {
  color: var(--cyan); border-color: rgba(52, 216, 255, .4);
  background: rgba(52, 216, 255, .08);
}
.side-link span { font-size: 12px; }

/* 我的设置 */
.settings-wrap { max-width: 1000px; }
.profile-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; }
.profile-logo {
  width: 58px; height: 58px; object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(52, 216, 255, .5));
  flex-shrink: 0;
}
.profile-main { flex: 1; min-width: 0; }
.profile-name { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.profile-meta { font-size: 12.5px; color: var(--dim); margin-top: 4px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.qr-box { display: flex; justify-content: center; margin: 14px 0 6px; }
.qr-ph {
  width: 152px; height: 152px; border-radius: 14px;
  border: 1px dashed rgba(86, 148, 255, .3);
  background: rgba(8, 14, 26, .6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--dim2); font-size: 11px; text-align: center; line-height: 1.65;
}
.qr-ph-icon { font-size: 24px; opacity: .55; }
.me-tip {
  margin-top: 16px; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(12, 20, 34, .6);
  font-size: 12px; color: var(--dim2); line-height: 1.7;
}
@media (max-width: 860px) {
  .settings-grid { grid-template-columns: 1fr; }
  .profile-card { padding: 16px; gap: 14px; }
  .profile-logo { width: 46px; height: 46px; }
}

/* 列表卡片化 */
.list { gap: 10px; }
.lead {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 20, 34, .55);
  padding: 14px 16px;
  border-bottom: none;
  transition: .16s;
}
.lead:hover { background: rgba(20, 32, 54, .7); border-color: rgba(52, 216, 255, .28); }
.member {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 20, 34, .55);
  padding: 12px 14px;
  margin-bottom: 10px;
  border-bottom: none;
  transition: .16s;
}
.member:hover { border-color: rgba(52, 216, 255, .28); }

/* 设置页字段 */
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12px; color: var(--dim);
  letter-spacing: .4px; margin-bottom: 7px;
}
.field .row input { flex: 1; }

/* ============================================================
   智能外呼
   ============================================================ */
.ob-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ob-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
  background: rgba(6, 11, 20, .45);
}
.ob-scroll { flex: 1; overflow-y: auto; padding: 20px 24px 40px; }
.ob-empty { text-align: center; padding: 80px 20px; color: var(--dim); }

.ob-bar {
  height: 4px; border-radius: 4px; margin: 9px 0 6px;
  background: rgba(86, 148, 255, .14); overflow: hidden;
}
.ob-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 10px rgba(52, 216, 255, .6);
  transition: width .4s;
}

/* 弹层 */
.modal-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(2, 5, 10, .68); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-mask.on { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; z-index: 61;
  left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.97);
  width: min(760px, 92vw); max-height: 84vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(14, 23, 39, .99), rgba(8, 13, 23, .99));
  border: 1px solid var(--line-hi); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 40px rgba(52, 216, 255, .1);
  opacity: 0; pointer-events: none; transition: .22s;
}
.modal.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal-body { padding: 18px 20px 22px; overflow-y: auto; }

/* 外呼通话弹窗：客户号码放最上面，方便直接拨 */
/* 行内「更多」菜单：主操作只留一个，其余收进来 */
.lead { position: relative; }
.lead-more {
  position: absolute; right: 14px; top: calc(100% - 4px); z-index: 6;
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
  max-width: 340px; padding: 8px;
  background: #0d1523; border: 1px solid var(--line-hi); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.lead-more[hidden] { display: none; }

/* 通用小弹窗（确认 / 表单） */
.ui-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(2, 5, 10, .68); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ui-box {
  width: min(430px, 100%);
  background: linear-gradient(180deg, rgba(14, 23, 39, .99), rgba(8, 13, 23, .99));
  border: 1px solid var(--line-hi); border-radius: 14px;
  padding: 18px 20px 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.ui-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.ui-body { font-size: 14px; line-height: 1.7; }
.ui-body input {
  width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px;
  background: #0a1220; border: 1px solid #223350; border-radius: 8px;
  color: #e8f0fb; font-size: 14px;
}
.ui-error { color: #ff8a8a; font-size: 12px; min-height: 16px; margin-top: 6px; }
.ui-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

.call-phone { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.call-phone .call-num {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 24px; font-weight: 700; letter-spacing: .5px;
  color: #dff2ff; text-decoration: none;
}
.call-phone .call-num:hover { color: var(--cyan); }
.call-phone .btn { height: 28px; padding: 0 10px; font-size: 12px; }

.ob-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ob-sum > div {
  background: rgba(6, 12, 22, .7); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column;
}
.ob-sum b {
  font-family: ui-monospace, Menlo, monospace; font-size: 20px;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ob-sum span { font-size: 11px; color: var(--dim2); }

.ob-calls { display: flex; flex-direction: column; gap: 6px; }
.ob-call {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(10, 17, 30, .6);
}
.ob-c-main { flex: 1; min-width: 0; }
.ob-c-phone { font-size: 13.5px; font-family: ui-monospace, Menlo, monospace; }
.ob-c-dur { font-size: 12px; color: var(--dim); width: 46px; text-align: right; }
.ob-transcript {
  margin: -2px 0 6px; padding: 10px 12px;
  border-left: 2px solid rgba(52, 216, 255, .4);
  background: rgba(6, 12, 22, .6); border-radius: 0 8px 8px 0;
  font-size: 12.5px; color: var(--dim); white-space: pre-wrap; line-height: 1.7;
}

@media (max-width: 860px) {
  .ob-head { padding: 12px 14px; }
  .ob-scroll { padding: 14px; }
  .ob-sum { grid-template-columns: repeat(2, 1fr); }
  .modal { width: 94vw; max-height: 88vh; }
}

.ob-frame-wrap { flex: 1; position: relative; min-height: 0; background: #04060c; }
.ob-frame { width: 100%; height: 100%; border: none; display: none; background: #0a0f18; }
.ob-cover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(24, 64, 140, .22), transparent 65%);
}
.ob-cover-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ob-cover-inner p { margin: 0; color: var(--dim); font-size: 14px; max-width: 460px; line-height: 1.7; }

.check-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--dim); margin: 6px 0 0;
}
.check-row input { width: auto; margin: 0; }

.ob-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.ob-stat {
  background: rgba(12, 20, 34, .6);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 3px;
  position: relative; overflow: hidden;
}
.ob-stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent); opacity: .5;
}
.ob-stat b {
  font-family: ui-monospace, Menlo, monospace; font-size: 24px;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ob-stat span { font-size: 11.5px; color: var(--dim2); }
@media (max-width: 860px) { .ob-stats { grid-template-columns: repeat(2, 1fr); } }

/* 外呼余额（面板顶部一条） */
.ob-bal {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(12, 20, 34, .6);
}
.ob-bal b {
  font-family: ui-monospace, Menlo, monospace; font-size: 18px;
  color: #d9f1ff; letter-spacing: .3px;
}
.ob-bal-l { font-size: 11.5px; color: var(--dim2); letter-spacing: .5px; }
.ob-bal-h { font-size: 11.5px; color: var(--dim2); }
.ob-bal .btn { margin-left: auto; }
.ob-bal.warn { border-color: rgba(255, 197, 87, .3); }
.ob-bal.warn b { color: #ffd479; }
.ob-bal.low { border-color: rgba(255, 102, 102, .34); background: rgba(255, 102, 102, .06); }
.ob-bal.low b { color: #ff8f8f; }
.ob-bal.bad b { color: #ff8f8f; font-size: 14px; }

.ob-live { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; min-height: 24px; }
.ob-live-idle { font-size: 12px; color: var(--dim2); }
.ob-live-tag {
  font-size: 12px; color: #2ee6a8; letter-spacing: .5px;
  text-shadow: 0 0 12px rgba(46, 230, 168, .5);
}
.ob-live-chip {
  font-size: 12px; color: var(--dim);
  border: 1px solid rgba(46, 230, 168, .28);
  background: rgba(46, 230, 168, .07);
  border-radius: 20px; padding: 3px 11px;
}

/* ---------- 外呼：工具条 / 空状态 / 详情 ---------- */
.ob-tools {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 4px 0 14px; flex-wrap: wrap;
}
.ob-tabs {
  display: flex; gap: 4px; padding: 3px;
  background: rgba(10, 17, 30, .6);
  border: 1px solid var(--line); border-radius: 10px;
}
.ob-tab {
  border: none; background: transparent; color: var(--dim);
  font-size: 12.5px; padding: 6px 13px; border-radius: 8px;
  cursor: pointer; transition: .18s;
}
.ob-tab:hover { color: var(--text); }
.ob-tab.on {
  background: rgba(52, 216, 255, .13); color: #bff3ff;
  box-shadow: inset 0 0 0 1px rgba(52, 216, 255, .28);
}
.ob-search { width: 200px; height: 32px; font-size: 12.5px; }

.ob-stat-l { font-size: 11.5px; color: var(--dim); letter-spacing: .5px; }
.ob-stat-h { font-size: 10.5px; color: var(--dim2); opacity: .75; }
.ob-stat b { margin: 2px 0 1px; }

.ob-task { transition: .18s; }
.ob-task:hover {
  border-color: rgba(52, 216, 255, .3);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.ob-sub { display: flex; gap: 14px; align-items: center; }
.ob-sub b { color: #cfe9ff; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

.ob-empty-icon { font-size: 38px; opacity: .45; margin-bottom: 10px; }
.ob-empty-t { font-size: 15px; color: var(--text); margin: 0 0 6px; }
.ob-empty .btn { margin-top: 16px; }

.ob-actions { display: flex; gap: 8px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.ob-spacer { flex: 1; }
.ob-blank { width: 52px; display: inline-block; }
.btn.danger:hover { color: #ff8a8a; border-color: rgba(255, 90, 90, .45); }

.ob-live-tag i {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #2ee6a8; margin-right: 6px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(46, 230, 168, .6);
  animation: obPulse 1.8s infinite;
}
@keyframes obPulse {
  70% { box-shadow: 0 0 0 8px rgba(46, 230, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0); }
}

@media (max-width: 860px) {
  .ob-search { width: 100%; }
  .ob-tools { flex-direction: column; align-items: stretch; }
  .ob-tabs { justify-content: space-between; }
}

.sess-tip { padding: 10px 14px; border-top: 1px solid var(--line); text-align: center; }

.sess-who {
  font-size: 11px; font-weight: 400; color: var(--dim);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
}
.sess-lead { color: #9fc7ff; }

/* ---------- 人工接管 ---------- */
.tab-badge {
  display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 4px; margin-left: 6px; text-align: center;
  font-size: 10.5px; border-radius: 8px; background: #ff5a5a; color: #fff;
  vertical-align: middle;
}
.hm-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
  background: rgba(6, 11, 20, .45);
}
.hm-body { flex: 1; display: flex; min-height: 0; }
.hm-list {
  width: 290px; flex: 0 0 290px; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  border-right: 1px solid var(--line); background: rgba(8, 14, 24, .4);
}
.hm-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  cursor: pointer; transition: .18s; background: rgba(12, 20, 34, .6);
}
.hm-item:hover { border-color: var(--line-hi); }
.hm-item.on {
  border-color: rgba(52, 216, 255, .45);
  background: rgba(20, 40, 68, .7);
  box-shadow: 0 0 0 1px rgba(52, 216, 255, .18);
}
.hm-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.hm-item-last { font-size: 12.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-item-meta { margin-top: 5px; }
.hm-empty { padding: 44px 16px; text-align: center; color: var(--dim); font-size: 13px; }
.hm-empty p:first-child { color: var(--text); font-size: 14px; margin-bottom: 6px; }

.hm-chat { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hm-chat-head {
  padding: 12px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; font-size: 13.5px;
}
.hm-msgs { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.hm-msg { display: flex; flex-direction: column; gap: 4px; max-width: 78%; }
.hm-msg.me, .hm-msg.op { align-self: flex-end; align-items: flex-end; }
.hm-msg.sys { max-width: 100%; align-self: center; align-items: center; }
.hm-who { font-size: 11px; color: var(--dim2); }
.hm-bubble {
  padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
  background: rgba(16, 26, 44, .9); border: 1px solid var(--line);
}
.hm-msg.me .hm-bubble {
  background: linear-gradient(135deg, rgba(52, 216, 255, .16), rgba(86, 148, 255, .14));
  border-color: rgba(52, 216, 255, .32);
}
.hm-msg.op .hm-bubble {
  background: linear-gradient(135deg, rgba(46, 230, 168, .16), rgba(52, 216, 255, .1));
  border-color: rgba(46, 230, 168, .34);
}
.hm-msg.sys .hm-bubble {
  background: transparent; border: 1px dashed var(--line);
  color: var(--dim2); font-size: 12px;
}
.hm-input {
  border-top: 1px solid var(--line); padding: 12px 16px 16px;
  display: flex; gap: 10px; align-items: flex-end;
}
.hm-input textarea { flex: 1; resize: none; }
.hm-btns { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 860px) {
  .hm-head { padding: 12px 14px; }
  .hm-hint { display: none; }
  .hm-body { flex-direction: column; }
  .hm-list { width: auto; flex: 0 0 auto; max-height: 32vh; border-right: none; border-bottom: 1px solid var(--line); }
  .hm-msg { max-width: 92%; }
}

/* ---------- 外呼：紧凑模式 ---------- */
.ob-head { padding: 12px 20px; }
.ob-scroll { padding: 14px 20px 28px; }
.ob-inner { max-width: 1080px; margin: 0 auto; width: 100%; }

.ob-stats { gap: 8px; margin-bottom: 12px; }
.ob-stat { padding: 9px 12px; border-radius: 10px; gap: 1px; }
.ob-stat b { font-size: 19px; }
.ob-stat-l { font-size: 11px; }
.ob-stat-h { font-size: 10px; }

.ob-live { margin-bottom: 10px; min-height: 20px; }
.ob-tools { margin: 2px 0 10px; }
.ob-tab { padding: 5px 11px; font-size: 12px; }
.ob-search { height: 29px; }

.ob-task { padding: 12px 14px; border-radius: 12px; }
.ob-task .lead-title { font-size: 14px; }
.ob-task .lead-meta { font-size: 12px; margin-top: 3px; }
.ob-bar { margin: 7px 0 5px; height: 3px; }
.ob-sub { font-size: 11.5px; }

/* ---------- 顶部导航动作组 ---------- */
.nav-actions {
  display: flex; align-items: center; gap: 3px; padding: 3px;
  border: 1px solid var(--line); border-radius: 11px;
  background: rgba(10, 17, 30, .55);
}
.nav-action {
  display: inline-flex; align-items: center; gap: 6px;
  height: 29px; padding: 0 12px; border: none; border-radius: 8px;
  font-size: 12.5px; color: var(--dim); background: transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: .18s;
}
.nav-action span { font-size: 13px; opacity: .9; }
.nav-action:hover { color: var(--text); background: rgba(90, 140, 220, .13); }
.nav-action:active { transform: translateY(1px); }
@media (max-width: 760px) {
  .nav-action { padding: 0 9px; font-size: 12px; }
  .nav-action span { display: none; }
}

/* 顶栏：外呼余额药丸 */
.nav-bal {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(10, 17, 30, .55);
  color: var(--dim); font-size: 12.5px; white-space: nowrap;
  cursor: pointer; transition: .18s;
}
.nav-bal b { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: #d9f1ff; }
.nav-bal:hover { color: var(--text); border-color: rgba(52, 216, 255, .32); }
.nav-bal.warn { border-color: rgba(255, 197, 87, .4); background: rgba(255, 197, 87, .08); }
.nav-bal.warn b { color: #ffd479; }
.nav-bal.low { border-color: rgba(255, 102, 102, .45); background: rgba(255, 102, 102, .1); }
.nav-bal.low b { color: #ff8f8f; }
@media (max-width: 760px) {
  .nav-bal { padding: 0 9px; font-size: 11.5px; }
  .nav-bal span { display: none; }
}

/* ---------- 外呼：覆盖式面板 ---------- */
.nav-btn { height: 30px; padding: 0 12px; font-size: 12.5px; }
.ob-overlay {
  position: fixed; inset: 0; z-index: 70;
  background:
    radial-gradient(circle at 50% -10%, rgba(24, 70, 150, .28), transparent 58%),
    #05080f;
  animation: obFade .18s ease;
}
@keyframes obFade { from { opacity: 0; } to { opacity: 1; } }
body.no-scroll { overflow: hidden; }

/* ---------- 外呼：右侧常驻面板 ---------- */
.call-panel {
  width: 390px; flex: 0 0 390px;
  display: flex; flex-direction: column; min-height: 0;
  border-left: 1px solid var(--line);
  background: rgba(6, 10, 18, .5);
}
.call-panel.collapsed { display: none; }

.call-panel .ob-head { padding: 12px 14px; }
.call-panel .ob-scroll { padding: 12px 14px 24px; }
.call-panel .ob-inner { max-width: none; }
.call-panel .ob-stats { grid-template-columns: repeat(2, 1fr); gap: 7px; }
.call-panel .ob-stat { padding: 8px 10px; }
.call-panel .ob-stat b { font-size: 17px; }
.call-panel .ob-tools { flex-direction: column; align-items: stretch; gap: 8px; }
.call-panel .ob-tabs { justify-content: space-between; }
.call-panel .ob-tab { padding: 5px 8px; font-size: 11.5px; flex: 1; }
.call-panel .ob-search { width: 100%; height: 28px; }
.call-panel .lead { flex-direction: column; align-items: stretch; gap: 8px; }
.call-panel .lead .acts { justify-content: flex-end; }
.call-panel .ob-task { padding: 10px 12px; }
.call-panel .ob-head .chat-title { font-size: 14px; }
.call-panel .ob-head .chat-actions { gap: 6px; }
.call-panel .ob-head .btn { padding: 5px 9px; font-size: 12px; }

@media (max-width: 1400px) { .call-panel { width: 340px; flex-basis: 340px; } }
@media (max-width: 1100px) { .call-panel:not(.collapsed) {
  position: fixed; right: 0; top: 58px; bottom: 0; z-index: 45;
  width: 360px; box-shadow: -24px 0 60px rgba(0, 0, 0, .6);
  background: rgba(7, 12, 20, .98);
} }
@media (max-width: 720px) { .call-panel:not(.collapsed) { width: 100%; top: 58px; } }

/* ---------- 团队客户 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.team-card { padding: 0; overflow: hidden; }
.team-row {
  display: grid;
  grid-template-columns: 1.7fr .6fr .7fr .7fr .7fr .7fr .7fr 1fr .6fr;
  align-items: center; gap: 8px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.team-row:last-child { border-bottom: none; }
.team-head {
  color: var(--dim2); font-size: 11.5px; letter-spacing: .4px;
  background: rgba(10, 17, 30, .55);
}
.team-row:hover:not(.team-head) { background: rgba(30, 50, 90, .22); }
.team-name { font-weight: 600; color: var(--text); }
.team-row b { font-family: ui-monospace, Menlo, monospace; }
.t-hot { color: #ff9a6b; }
.t-cold { color: var(--dim); }
@media (max-width: 1080px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .team-row { grid-template-columns: 1.5fr .6fr .7fr .7fr .7fr .7fr; }
  .team-row > span:nth-child(6), .team-row > span:nth-child(8) { display: none; }
}

/* ---------- 客户详情 ---------- */
.lead-detail-info {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(10, 17, 30, .55);
}
.lead-detail-info > div { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.lead-detail-info span { font-size: 11px; color: var(--dim2); }
.lead-detail-needs { margin: 14px 0; font-size: 13px; line-height: 1.8; color: var(--dim); }
.lead-detail-needs b { color: var(--text); }
.tl-h { font-size: 13px; margin: 6px 0 12px; color: var(--dim); font-weight: 500; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl::before {
  content: ""; position: absolute; left: 4px; top: 14px; bottom: 0;
  width: 1px; background: var(--line);
}
.tl:last-child::before { display: none; }
.tl-dot {
  width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; flex: 0 0 9px;
  background: var(--cyan); box-shadow: 0 0 10px rgba(52, 216, 255, .6);
}
.tl-body { min-width: 0; }
.tl-text { font-size: 13px; line-height: 1.7; color: var(--text); margin-top: 2px; }
@media (max-width: 860px) { .lead-detail-info { grid-template-columns: repeat(2, 1fr); } }

.ob-close { display: none; }
@media (max-width: 900px) { .ob-close { display: inline-block; } }

.bubble b { color: #fff; font-weight: 600; }
.bubble hr {
  border: none; border-top: 1px solid var(--line);
  margin: 10px 0; opacity: .8;
}

/* ---------- 在线接待 ---------- */
.rp-badge {
  margin-left: auto; min-width: 17px; height: 17px; line-height: 17px; padding: 0 5px;
  border-radius: 9px; background: #ff5a5a; color: #fff; font-size: 10.5px; text-align: center;
}
.rp { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column;
  background: radial-gradient(circle at 50% -10%, rgba(24,70,150,.25), transparent 58%), #05080f; }
.rp-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-bottom: 1px solid var(--line); background: rgba(6,11,20,.6); }
.rp-body { flex: 1; display: flex; min-height: 0; }
.rp-list { width: 296px; flex: 0 0 296px; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  border-right: 1px solid var(--line); background: rgba(8,14,24,.4); }
.rp-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  cursor: pointer; transition: .18s; background: rgba(12,20,34,.6); }
.rp-item:hover { border-color: var(--line-hi); }
.rp-item.on { border-color: rgba(52,216,255,.45); background: rgba(20,40,68,.7); }
.rp-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.rp-item-last { font-size: 12.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-item-meta { margin-top: 5px; }
.rp-empty { padding: 44px 16px; text-align: center; color: var(--dim); font-size: 13px; }

.rp-chat { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rp-info { padding: 11px 20px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-msgs { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.rp-msg { display: flex; flex-direction: column; gap: 3px; max-width: 74%; }
.rp-msg.me, .rp-msg.op { align-self: flex-end; align-items: flex-end; }
.rp-msg.sys { align-self: center; align-items: center; max-width: 100%; }
.rp-who { font-size: 10.5px; color: var(--dim2); }
.rp-bubble { padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
  background: rgba(16,26,44,.9); border: 1px solid var(--line); }
.rp-msg.me .rp-bubble { background: rgba(24,38,62,.95); border-color: rgba(120,170,230,.22); }
.rp-msg.op .rp-bubble { background: linear-gradient(135deg, rgba(46,230,168,.15), rgba(52,216,255,.1));
  border-color: rgba(46,230,168,.34); }
.rp-msg.sys .rp-bubble { background: transparent; border: 1px dashed var(--line);
  color: var(--dim2); font-size: 11.5px; }
.rp-input { border-top: 1px solid var(--line); padding: 12px 16px 16px;
  display: flex; gap: 10px; align-items: flex-end; }
.rp-input textarea { flex: 1; resize: none; }
.rp-btns { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 820px) {
  .rp-head { padding: 12px 14px; }
  .rp-body { flex-direction: column; }
  .rp-list { width: auto; flex: 0 0 auto; max-height: 30vh;
    border-right: none; border-bottom: 1px solid var(--line); }
  .rp-msg { max-width: 92%; }
  .rp-btns { flex-direction: row; }
}

/* 语音输入按钮（按住说话） */
/* 选择器带 .composer，是为了压过后面那条 .composer .btn{padding:0 18px}（不加的话按钮被内边距挤没，图标看不见） */
.composer .btn.mic-btn {
  width: 42px; height: 42px; min-width: 42px; padding: 0; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; color: #cfe0ff;
  background: linear-gradient(180deg, rgba(86, 148, 255, .20), rgba(86, 148, 255, .07));
  border: 1px solid rgba(86, 148, 255, .45);
  transition: .15s;
}
.composer .btn.mic-btn svg { width: 20px; height: 20px; flex: none; display: block; }
.composer .btn.mic-btn:hover { color: #fff; border-color: rgba(120, 170, 255, .85);
  background: linear-gradient(180deg, rgba(86, 148, 255, .34), rgba(86, 148, 255, .14)); }
.composer .btn.mic-btn:active { transform: scale(.96); }
.composer .btn.mic-btn.rec {
  color: #fff; border-color: rgba(255, 107, 107, .85);
  background: linear-gradient(180deg, rgba(255, 84, 84, .55), rgba(255, 84, 84, .28));
  animation: micPulse 1.1s infinite;
}
@keyframes micPulse { 50% { box-shadow: 0 0 0 6px rgba(255, 107, 107, .12); } }
.rp-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.rp-tag {
  font-size: 10.5px; color: var(--dim); border: 1px solid var(--line);
  border-radius: 4px; padding: 0 5px;
}
.rp-addtag {
  margin-left: auto; font-size: 12px; color: var(--dim);
  border: 1px dashed var(--line-hi); border-radius: 6px;
  padding: 2px 9px; cursor: pointer; transition: .18s; white-space: nowrap;
}
.rp-addtag:hover { color: var(--cyan); border-color: rgba(52, 216, 255, .45); }
.rp-tagpick {
  padding: 10px 20px; border-bottom: 1px solid var(--line);
  display: flex; gap: 6px; flex-wrap: wrap; background: rgba(10, 17, 30, .5);
}
.rp-pick {
  font-size: 12px; color: var(--dim); border: 1px solid var(--line);
  border-radius: 20px; padding: 3px 11px; cursor: pointer; transition: .18s;
  user-select: none;
}
.rp-pick:hover { color: var(--text); border-color: var(--line-hi); }
.rp-pick.on {
  color: #bff3ff; border-color: rgba(52, 216, 255, .45);
  background: rgba(52, 216, 255, .12);
}

/* ---------- 手机 ---------- */
@media (max-width: 760px) {
  .topbar { padding: 0 14px; height: 54px; }
  .brand { font-size: 14px; }
  .tag { display: none; }
  .chat-shell { flex-direction: column; }
  .tool-rail {
    width: 100%; display: flex; gap: 8px;
    overflow-x: auto; overflow-y: hidden;
    border-right: none; border-bottom: 1px solid var(--line);
    padding: 10px 12px; background: rgba(5, 10, 19, .7);
  }
  .rail-item {
    width: auto; flex: 0 0 auto;
    border: 1px solid var(--line); border-radius: 20px;
    padding: 7px 15px; margin: 0;
  }
  .rail-idx, .rail-desc, .rail-dot { display: none; }
  .rail-item.on { border-color: rgba(52, 216, 255, .5); }
  .chat-head { padding: 11px 15px; }
  .chat-scroll { padding: 16px 13px 6px; }
  .msg .bubble { max-width: 90%; font-size: 14px; }
  .composer { padding: 11px 13px calc(11px + env(safe-area-inset-bottom)); gap: 9px; }
  .composer .btn { padding: 0 18px; }

  .wrap { padding: 14px 13px 70px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat b { font-size: 22px; }
  .lead { flex-direction: column; align-items: flex-start; gap: 9px; }
  .acts { justify-content: flex-start; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .sess-list { max-height: 32vh; }
  .sess-detail { max-height: none; }
  .card { padding: 14px; border-radius: 12px; }
}

/* ---------- 手机 / 平板：竖排布局 ---------- */
@media (max-width: 900px) {
  .status-pill { display: none; }
  .shell { flex-direction: column; }

  .side {
    width: 100%; flex: 0 0 auto;
    display: flex; flex-direction: row; align-items: center; gap: 8px;
    overflow-x: auto; overflow-y: hidden;
    border-right: none; border-bottom: 1px solid var(--line);
    padding: 9px 12px;
  }
  .side-group { display: contents; }
  .side-title { display: none; }
  .rail { display: flex; gap: 8px; }
  .side-item {
    width: auto; flex: 0 0 auto; margin: 0;
    border: 1px solid var(--line); border-radius: 20px;
    padding: 8px 14px;
  }
  .si-name { font-size: 13px; }
  .soon-tag { display: none; }
  .live-card { display: none; }

  .call-panel:not(.collapsed) {
    position: fixed; inset: 54px 0 0 0; width: 100%;
    z-index: 60; background: #060a12;
    box-shadow: none;
  }
  .call-panel .ob-head { padding: 12px 14px; }
  .nav-action { padding: 0 9px; }
  .nav-action span { display: none; }
}

/* 外呼：已导入号码列表 */
#obNums { margin: 10px 0 4px; }
.ob-nums-head { font-size: 12px; color: var(--dim); margin: 8px 0 6px; }
.ob-num {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px;
  background: rgba(12,20,34,.5); margin-bottom: 5px; font-size: 13px;
}
.ob-num-p { font-family: ui-monospace, Consolas, monospace; color: var(--cyan, #35d0ff); }
.ob-num-t { margin-left: auto; }

/* 回答下面的小工具条 */
.bubble-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mini-btn {
  font-size: 12px; padding: 3px 10px; border-radius: 14px;
  border: 1px solid var(--line); background: transparent;
  color: var(--dim); cursor: pointer; transition: .15s;
}
.mini-btn:hover { color: var(--cyan, #35d0ff); border-color: rgba(53,208,255,.45); }

/* ---------- 2026-11-05：空状态推荐问题 / 八把工具地图 / 手机键盘 ---------- */
html, body { height: 100%; }
.app-body { height: 100vh; height: 100dvh; }
.chat-scroll { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.empty-hint .hint-chips { display: flex; flex-direction: column; gap: 8px; margin: 10px auto 8px; max-width: 460px; }
.hint-chip {
  text-align: left; padding: 10px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(17, 27, 45, .55);
  color: var(--text); font-size: 14px; line-height: 1.5; transition: .16s;
}
.hint-chip:hover { border-color: rgba(52, 216, 255, .45); background: rgba(52, 216, 255, .08); }
.hint-chip:active { transform: translateY(1px); }
.hint-chip span { color: var(--cyan); margin-right: 8px; }

.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .map-grid { grid-template-columns: 1fr; } }
.map-card { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: rgba(12, 20, 34, .55); }
.map-card h4 { margin: 0 0 4px; font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.map-card h4 svg { width: 22px; height: 22px; flex: none; }   /* 图标别撑满整张卡（2026-11-13） */
.map-card p { margin: 0 0 8px; font-size: 12.5px; color: var(--dim); }
.map-card .map-eg { font-size: 12.5px; color: var(--dim2); margin: 3px 0; cursor: pointer; }
.map-card .map-eg:hover { color: var(--cyan); }

.usage-list { display: flex; flex-direction: column; gap: 6px; }
.usage-row { display: grid; grid-template-columns: 1fr 70px 120px; gap: 8px; font-size: 13.5px; padding: 3px 0; border-bottom: 1px dashed rgba(120, 150, 200, .12); }
.usage-row b { font-weight: 500; }
.usage-row span { color: var(--cyan); text-align: right; }
.usage-row i { color: var(--dim2); font-style: normal; text-align: right; font-size: 12.5px; }

@media (max-width: 860px) {
  .app-body { height: var(--vvh, 100dvh); }
  .composer textarea { font-size: 16px; }
  .chat-scroll { padding-bottom: 14px; }
  .msg .bubble { max-width: 92%; }
}

/* 外呼通话弹窗里的录音条 */
.call-audio { margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px;
  background: rgba(47,134,255,.08); border: 1px solid rgba(47,134,255,.22); }
.call-audio audio { width: 100%; margin: 6px 0 4px; height: 34px; }
.call-audio a { text-decoration: underline; }

/* 首屏：老板脑子里的活儿（找客户/嫌贵/催尾款…） */
.scene-title { margin: 0 0 10px; font-size: 13px; color: #9fb0c6; }
.scene-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.scene-btn { padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: rgba(47,134,255,.12); border: 1px solid rgba(47,134,255,.35);
  color: #cfe0f7; font-size: 14px; }
.scene-btn:hover { background: rgba(47,134,255,.22); border-color: rgba(47,134,255,.6); }

/* 首屏「今天先干哪件」：三列，5 块排成 3+2，不落单 */
.scene-card { text-align: left; width: 100%; max-width: 900px; margin: 0 auto 18px;
  padding: 22px 24px 20px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(47,134,255,.10), rgba(47,134,255,.03));
  border: 1px solid rgba(47,134,255,.28); }
.scene-head { margin-bottom: 16px; }
.scene-head b { font-size: 18px; color: #eaf2ff; display: block; margin-bottom: 4px; }
.scene-head span { font-size: 13px; color: #8fa3bd; }
.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scene-tile { display: flex; align-items: flex-start; gap: 11px; text-align: left; cursor: pointer;
  padding: 14px 15px; min-height: 78px; border-radius: 12px; background: rgba(12,22,38,.75);
  border: 1px solid rgba(120,170,255,.22); transition: .16s; overflow: visible; }
.scene-tile:hover { border-color: rgba(90,160,255,.75); background: rgba(24,44,74,.92); }
.scene-ico { font-size: 22px; line-height: 1.1; flex: 0 0 auto; margin-top: 1px; }
.scene-ico svg { width: 22px; height: 22px; display: block; }   /* 脚本中心三张卡片的线框图标 */
.pad-back { display: block; margin: 4px auto 0; }
.now-card { max-width: 760px; margin: 0 auto 16px; padding: 18px 20px 14px;
  border: 1px solid rgba(90,160,255,.55); border-radius: 14px; background: rgba(18,34,58,.92); }
.now-top { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.now-idx { font-size: 12px; color: #04121e; background: linear-gradient(135deg, #34d8ff, #2f6df6);
  padding: 3px 8px; border-radius: 999px; font-weight: 700; }
.now-meta { margin: 6px 0 10px; color: var(--dim2, #8fa3b8); font-size: 13px; }
.now-tel { display: flex; gap: 8px; margin-bottom: 12px; }
.now-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.now-btn { padding: 14px 10px; font-size: 16px; font-weight: 600; width: 100%; }
@media (max-width: 480px) { .now-btn { padding: 12px 8px; font-size: 15px; } }
@media (max-width: 640px) {
  .chip-sub { margin-left: 8px; }
  .chip-input { flex: 1 1 100%; min-width: 0; max-width: none; }
  .pad-dur { flex-wrap: wrap; }
  .pad-dur .mini-btn { flex: 1 1 45%; }
  .scene-txt b { font-size: 13.5px; }
}
.pad-dur { display: flex; gap: 8px; margin: 4px 0 12px; }
.pad-sell { flex-wrap: wrap; }
.dur-btn.on { color: #04121e; background: linear-gradient(135deg, #34d8ff, #2f6df6); border-color: transparent; font-weight: 700; }
.scene-txt { display: block; min-width: 0; flex: 1 1 auto; }
.scene-txt b { display: block; font-size: 15px; color: #eaf2ff; font-weight: 600; margin-bottom: 4px; }
.scene-txt em { display: block; font-style: normal; font-size: 12px; line-height: 1.5; color: #8fa3bd;
  white-space: normal; overflow: visible; }
@media (max-width: 900px) { .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .scene-grid { grid-template-columns: 1fr; }
  .scene-card { padding: 18px 16px 16px; }
}
.scene-or { margin: 6px 0 12px; font-size: 13px; color: #8fa3bd; }
.scene-or b { color: #cfe0f7; font-weight: 600; }

/* 业务员自己的成绩 + 已发按钮 */
.scene-my { margin: 4px 0 12px; font-size: 12.5px; color: #7f93ad; text-align: center; }
.sent-btn { border-color: rgba(70,200,140,.45) !important; color: #9fe3c0 !important; }
@media (max-width: 720px) {
  .chat-scroll { padding: 14px 12px 8px; }
  .mini-btn { min-height: 34px; padding: 6px 12px; font-size: 13px; }
  .scene-title { font-size: 14px; }
  .scene-tile { min-height: 64px; padding: 12px 13px; }
  .scene-txt b { font-size: 14.5px; }
  .scene-txt em { font-size: 11.5px; }
}

/* 发送中：按钮变灰、不可点 */
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.busy { background: rgba(47,134,255,.35) !important; }

/* 手机端：按钮够大、字够看 */
@media (max-width: 720px) {
  .btn, .mini-btn { min-height: 40px; font-size: 14px; }
  .nav-action { min-height: 40px; }
  .live-grid b { font-size: 18px; }
  .msg .bubble { font-size: 15px; line-height: 1.8; }
}

/* 选镇街的三级下拉：深色底、亮字，别让选项看不清 */
.area-pick { display: inline-flex; gap: 4px; align-items: center; }
.area-sel {
  background: rgba(8, 16, 28, 0.92);
  color: #dff0ff;
  border: 1px solid rgba(90, 150, 200, 0.35);
  border-radius: 8px;
  padding: 4px 6px;
  font: inherit;
  font-size: 12px;
  max-width: 96px;
  outline: none;
}
.area-sel:hover { border-color: rgba(52, 216, 255, 0.55); }
.area-sel option { background: #0b1520; color: #dff0ff; }
.area-sel option:checked { background: #15324a; color: #fff; }

/* 顶栏按钮多的时候换行，别挤成一团 */
.chat-actions { flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* 「跑哪 + 怎么找客户」是一组：定方向的，别跟新对话/历史混在一起 */
.area-group {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 6px 3px 8px;
  border: 1px solid rgba(90, 150, 200, 0.28);
  border-radius: 10px;
  background: rgba(10, 22, 36, 0.55);
}
.area-group:empty, .area-group[hidden] { display: none; }

.area-hint {
  margin: 10px auto 4px; max-width: 560px;
  font-size: 13px; line-height: 1.7; color: #8fd0ff;
  background: rgba(30, 90, 140, 0.16);
  border: 1px solid rgba(90, 170, 220, 0.3);
  border-radius: 10px; padding: 8px 12px; text-align: center;
}

/* 市场情报：全公司共享，业务员能查，老板能改 */
.mi-box { margin: 18px 0 6px; border-top: 1px solid rgba(90,150,200,.18); padding-top: 14px; }
.mi-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mi-tag { font-size: 11px; color: #7fd7a8; border: 1px solid rgba(80,200,140,.35);
          border-radius: 6px; padding: 1px 6px; }
.mi-edit { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.mi-in { background: rgba(8,16,28,.9); border: 1px solid rgba(90,150,200,.3); color: #dff0ff;
         border-radius: 7px; padding: 4px 8px; font-size: 12px; width: 130px; }
.mi-list { display: flex; flex-direction: column; gap: 6px; }
.mi-row { display: flex; gap: 8px; align-items: center; font-size: 13px;
          background: rgba(12,22,34,.6); border: 1px solid rgba(90,150,200,.16);
          border-radius: 8px; padding: 6px 10px; }
.mi-row b { color: #cfeaff; font-weight: 600; }
.mi-row span { color: #8fa8bd; font-size: 12px; }
.mi-row .mi-del { margin-left: auto; }

/* 跑街是竖着看的：上面四个数、中间名单、下面情报，别左右分栏 */
#viewStreet .rp-body { display: block; overflow-y: auto; padding: 16px 22px 40px; }
#viewStreet .rp-body > * { max-width: 920px; }
#viewStreet .ob-stats { margin-bottom: 14px; }
#viewStreet .ob-stats > div { background: rgba(12,22,34,.55); border: 1px solid rgba(90,150,200,.16);
  border-radius: 10px; padding: 10px 12px; text-align: center; }
#viewStreet .ob-stats b { display: block; font-size: 20px; color: #cfeaff; }
#viewStreet .ob-stats span { font-size: 12px; color: #8fa8bd; }
#viewStreet .list { display: flex; flex-direction: column; gap: 8px; }

.st-verdict { margin: 4px 0 14px; }
.stv-line { font-size: 13px; color: #9fc0d8; margin-bottom: 6px; }
.stv-line b { color: #cfeaff; font-size: 15px; margin-right: 4px; }
.stv-verdict { font-size: 14px; color: #8fe3b0; background: rgba(30,90,60,.16);
  border: 1px solid rgba(80,200,140,.28); border-radius: 10px; padding: 8px 12px; }

/* 侧栏线性图标：跟整体风格一致 */
.si-icon svg { width: 18px; height: 18px; display: block; }
.side-item.on .si-icon svg { color: #34d8ff; }
.side-item .si-icon { color: #7d93a8; }

/* 跑街点完，卡片滑走 */
.lead.gone { opacity: 0; transform: translateX(18px); transition: all .22s ease; }

/* 客户账套：一行一个客户 */
.ct-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px;
          border-bottom: 1px solid rgba(90,150,200,.12); flex-wrap: wrap; }
.ct-main { flex: 1 1 220px; min-width: 200px; }
.ct-main b { color: #e8f1ff; }
.ct-use { flex: 0 0 190px; font-size: 12px; }
.ct-use b { font-size: 15px; }
.ct-bar { height: 3px; background: rgba(90,150,200,.18); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.ct-bar i { display: block; height: 100%; }
.ct-set { display: flex; gap: 6px; align-items: center; }
.ct-in { width: 110px; }

.st-toast { display: flex; align-items: center; gap: 10px; margin: 8px 0;
  background: rgba(30,90,140,.18); border: 1px solid rgba(90,170,220,.4);
  border-radius: 10px; padding: 8px 12px; font-size: 13px; color: #cfeaff; }
.st-toast button { margin-left: auto; }
.st-why { font-size: 11px; color: #ffb020; border: 1px solid rgba(255,176,32,.35);
  border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.st-why.grey { color: #8fa8bd; border-color: rgba(90,150,200,.3); }

.st-addbar { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; flex-wrap: wrap; }
.st-addbar input { width: 240px; }
.st-addbar #stNewPhone { width: 150px; }

/* 跑街：地区下拉要看得清（跟聊天页那套一致） */
.st-area-sel {
  background: rgba(8, 16, 28, 0.95); color: #dff0ff;
  border: 1px solid rgba(90, 150, 200, 0.35); border-radius: 8px;
  padding: 5px 8px; font-size: 13px; outline: none; max-width: 180px;
}
.st-area-sel option { background: #0b1520; color: #dff0ff; }
.st-today-title { font-size: 12px; color: #8fa8bd; margin-bottom: 6px; }

.st-hint { margin: 10px 0 4px; font-size: 13px; line-height: 1.7; color: #bcd9ee;
  background: rgba(30, 90, 140, .14); border: 1px solid rgba(90, 170, 220, .28);
  border-radius: 10px; padding: 8px 12px; }
.st-hint b { color: #7fe0ff; }
.lead-idx { display: inline-block; min-width: 22px; height: 22px; line-height: 22px;
  text-align: center; border-radius: 50%; background: rgba(52,216,255,.14);
  color: #7fe0ff; font-size: 12px; margin-right: 8px; }
.lead.hl { border-color: #34d8ff; box-shadow: 0 0 0 2px rgba(52,216,255,.25); }

/* 我的：今天要跟 / 这个月 */
.me-today, .me-month { max-width: 760px; margin: 0 auto 16px; }
.me-due { display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid rgba(90,150,200,.12); }
.me-due:last-child { border-bottom: 0; }
.me-due-main { flex: 1; min-width: 0; }
.me-due-main b { color: #e8f1ff; font-size: 15px; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.me-stats > div { background: rgba(12,22,34,.6); border: 1px solid rgba(90,150,200,.16);
  border-radius: 10px; padding: 12px; text-align: center; }
.me-stats b { display: block; font-size: 22px; color: #cfeaff; }
.me-stats span { font-size: 12px; color: #8fa8bd; }
@media (max-width: 640px) { .me-stats { grid-template-columns: repeat(2, 1fr); } }

.rp-assign { display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-bottom: 1px solid rgba(90,150,200,.16); flex-wrap: wrap; }
.rp-assign select { background: rgba(8,16,28,.95); color: #dff0ff;
  border: 1px solid rgba(90,150,200,.35); border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.rp-assign select option { background: #0b1520; color: #dff0ff; }

/* 手机窄屏顶栏收口：新对话/历史进「⋯」（2026-11-12） */
.btn-more { display: none; }
.more-menu {
  position: fixed; right: 12px; top: 58px; z-index: 80; display: none;
  background: #0f1822; border: 1px solid #24384d; border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5); padding: 6px; min-width: 148px;
}
.more-menu.on { display: block; }
.more-menu button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  color: #dfe9f3; padding: 10px 12px; font-size: 14px; border-radius: 8px; cursor: pointer;
}
.more-menu button:hover { background: #16222f; }
@media (max-width: 640px) {
  #btnNew, #btnHistory { display: none; }
  .btn-more { display: inline-flex; align-items: center; }
}

/* 获客：场景选项挂在「第一句话怎么说」下面（2026-11-13） */
.chip-sub {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: -2px 0 8px 16px; padding-left: 8px; border-left: 2px solid rgba(90,150,200,.25);
}
.chip-sub > span { font-size: 12px; color: #6f88a1; }
.chip-input {
  height: 30px; min-width: 190px; flex: 1 1 190px; max-width: 260px;
  background: rgba(6,14,24,.9); color: #dfe9f3; border: 1px solid rgba(90,150,200,.35);
  border-radius: 8px; padding: 0 10px; font-size: 12.5px; outline: none;
}

/* 空页面那一栏「写一句实情，直接出文案/脚本」（2026-11-12） */
.brief-box {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin: 14px 0 6px; padding: 10px; border-radius: 12px;
  background: rgba(47,134,255,.06); border: 1px solid rgba(47,134,255,.22);
}
.brief-input {
  flex: 1 1 260px; min-width: 200px; background: rgba(6,14,24,.9); color: #dfe9f3;
  border: 1px solid rgba(90,150,200,.35); border-radius: 9px; padding: 10px 12px;
  font-size: 14px; outline: none;
}
.brief-input::placeholder { color: #6f88a1; }
.brief-btns { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .brief-box { padding: 8px; }
  .brief-btns { width: 100%; }
  .brief-btns .mini-btn { flex: 1; }
}



/* ---------- 跑街 · 地点任务（2026-11-13 二版） ---------- */
#viewStreet .rp-body { display: block; overflow-y: auto; padding: 14px 22px 40px; }
#viewStreet .rp-body > * { max-width: 1280px; margin-left: auto; margin-right: auto; }

.st-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 12px;
  background: rgba(12, 22, 34, .55); border: 1px solid var(--line); border-radius: 10px; }
.st-bar > b { color: #cfe3f5; font-size: 13px; }
.st-bar-hint { margin-left: auto; color: #7fe0ff; font-size: 12px; }
.st-sel { background: rgba(8, 16, 28, .95); color: #dff0ff;
  border: 1px solid rgba(90, 150, 200, .35); border-radius: 8px;
  padding: 5px 8px; font-size: 13px; outline: none; max-width: 200px; }
.st-sel option { background: #0b1520; color: #dff0ff; }

.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .st-grid { grid-template-columns: 1fr; } }

.st-town { padding: 12px 14px; margin-bottom: 10px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(10, 24, 40, .9), rgba(8, 14, 24, .9));
  border: 1px solid rgba(90, 196, 255, .28); }
.st-town b { display: block; font-size: 22px; color: #eaf6ff; }
.st-town span { display: block; margin-top: 2px; font-size: 12px; color: #9fc4dd; }

.st-list { display: flex; flex-direction: column; gap: 6px; }
.st-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(12, 22, 34, .45); }
.st-row:hover { border-color: rgba(90, 196, 255, .38); }
.st-no { display: inline-block; min-width: 24px; height: 24px; line-height: 24px;
  text-align: center; border-radius: 50%; background: rgba(52, 216, 255, .14);
  color: #7fe0ff; font-size: 12px; flex: none; }
.st-row-main { flex: 1 1 auto; min-width: 0; }
.st-row-main b { display: block; color: #eaf6ff; font-size: 14px; line-height: 1.4; }
.st-row-main em { display: block; font-style: normal; color: #8fa8bd; font-size: 12px; }
.st-row .st-go { flex: none; }
.st-more { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; }

.st-side { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(10, 18, 30, .55); }
.st-side-title { font-size: 13px; color: #cfe3f5; margin: 2px 0 8px; }
.st-side-title span { color: #8fa8bd; font-size: 12px; margin-left: 6px; }
.st-hist { display: flex; flex-direction: column; gap: 6px; max-height: 42vh; overflow-y: auto; }
.st-hrow { display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 9px; background: rgba(12, 22, 34, .4); }
.st-hrow-main { flex: 1 1 auto; min-width: 0; }
.st-hrow-main b { display: block; color: #eaf6ff; font-size: 13px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.st-hrow-main span { display: block; color: #8fa8bd; font-size: 12px; }
.st-hrow .btn { flex: none; }
.st-rel { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.st-rel-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.st-rel-row .st-sel { flex: 1 1 90px; min-width: 88px; max-width: none; }

.st-card { padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line);
  border-radius: 11px; background: rgba(12, 22, 34, .5); }
.st-card:hover { border-color: rgba(90, 196, 255, .38); }
.st-card-h { display: flex; align-items: center; gap: 8px; }
.st-card-h b { color: #eaf6ff; font-size: 15px; }
.st-kind { font-size: 11px; color: #7fe0ff; border: 1px solid rgba(52, 216, 255, .32);
  border-radius: 6px; padding: 1px 6px; flex: none; }
.st-card-btns { margin-left: auto; display: flex; gap: 6px; align-items: center; flex: none; }
.st-card-meta { margin: 6px 0 0 34px; font-size: 12px; color: #8fa8bd; }
.st-cnt b { color: #7fe0ff; font-size: 14px; }
.st-how { margin: 4px 0 0 34px; font-size: 12px; color: #b7cfe4; line-height: 1.6; }
.st-how i { font-style: normal; color: #ffb84d; margin-right: 6px; }
.st-town-leads { margin-top: 8px; font-size: 12px; color: #9fc4dd; }
.st-leads-t { color: #8fa8bd; margin-right: 6px; }
.st-lead { display: inline-block; margin-right: 10px; color: #dff0ff; }

.st-line { margin: 4px 0 0 34px; font-size: 12px; color: #b7cfe4; line-height: 1.6; }
.st-line i { font-style: normal; color: #ffb84d; margin-right: 6px; }
.st-card-f { margin: 6px 0 0 34px; }
.st-card-f .btn { height: 24px; padding: 0 8px; font-size: 12px; opacity: .75; }
.st-card-f .btn:hover { opacity: 1; }
.st-review { font-size: 12px; color: #b7cfe4; line-height: 1.7; padding: 8px 10px; margin-bottom: 12px;
  background: rgba(30, 90, 140, .14); border: 1px solid rgba(90, 170, 220, .28); border-radius: 9px; }
.st-review b { color: #7fe0ff; font-size: 14px; }
.st-rev-next { display: block; color: #ffb84d; margin-top: 2px; }
.st-m-name { font-size: 16px; font-weight: 700; color: #eaf6ff; margin-bottom: 2px; }
#stMask .ui-body input { margin-top: 8px; }

.st-prog { margin-top: 6px; font-size: 12px; color: #7fe0ff; }
.st-tag-sys { font-size: 11px; color: #2ee6a8; border: 1px solid rgba(46, 230, 168, .4);
  border-radius: 6px; padding: 1px 6px; text-decoration: none; flex: none; }
.st-tag-sys:hover { background: rgba(46, 230, 168, .12); }
.st-mini { background: none; border: none; color: #8fa8bd; font-size: 12px;
  padding: 0; cursor: pointer; text-decoration: none; }
.st-mini:hover { color: #7fe0ff; }
.st-card-f { display: flex; align-items: center; gap: 12px; }
@media (max-width: 720px) {
  .st-card-h { flex-wrap: wrap; }
  .st-card-btns { width: 100%; margin-left: 34px; justify-content: flex-end; }
  .st-card-btns .btn { height: 34px; }
}

.st-seg { display: inline-flex; border: 1px solid rgba(90, 150, 200, .35); border-radius: 9px; overflow: hidden; }
.st-seg button { background: transparent; border: none; color: #8fa8bd; font-size: 13px;
  padding: 6px 14px; cursor: pointer; }
.st-seg button.on { background: rgba(52, 216, 255, .16); color: #cfeaff; }
.st-seg button + button { border-left: 1px solid rgba(90, 150, 200, .35); }

.st-town-sel { min-width: 130px; font-size: 14px; padding: 6px 10px; }
.st-inds { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.st-inds-label { color: #8fa8bd; font-size: 12px; margin-right: 2px; }
.st-chip { background: rgba(12, 22, 34, .6); border: 1px solid rgba(90, 150, 200, .3);
  color: #b7cfe4; border-radius: 14px; font-size: 12px; padding: 3px 10px; cursor: pointer; }
.st-chip.on { border-color: rgba(52, 216, 255, .6); color: #cfeaff; background: rgba(52, 216, 255, .14); }
.st-inds-tip { color: #5f7192; font-size: 11px; }

.st-hist-toggle { width: 100%; display: flex; align-items: center; gap: 6px; background: none;
  border: none; color: #cfe3f5; font-size: 13px; padding: 4px 0 8px; cursor: pointer; text-align: left; }
.st-hist-toggle i { margin-left: auto; font-style: normal; color: #8fa8bd; transition: transform .2s; }
.st-hist-toggle.on i { transform: rotate(180deg); }
.st-guide { font-size: 13px; color: #bcd9ee; background: rgba(46, 230, 168, .08);
  border: 1px solid rgba(46, 230, 168, .3); border-radius: 9px; padding: 8px 12px; margin: 0 0 12px; }
.st-guide b { color: #7fe0ff; }
.st-guide .st-mini { margin-left: 10px; color: #2ee6a8; }
@media (max-width: 720px) {
  .st-more { position: sticky; bottom: 0; z-index: 3; padding: 10px 0;
    background: linear-gradient(180deg, rgba(4, 6, 12, .2), rgba(4, 6, 12, .95) 40%); }
  .st-more .btn { flex: 1; height: 42px; }
}

.st-bar { padding: 12px 14px; gap: 10px; }
.st-bar > b { font-size: 14px; }
.st-bar .st-sel { height: 38px; font-size: 14px; padding: 6px 12px; border-radius: 9px; }
.st-town-sel { min-width: 160px; }
.st-seg button { padding: 9px 16px; font-size: 13px; }
.st-chip { padding: 5px 12px; font-size: 13px; }
.st-more-ind { border-style: dashed; color: #7fe0ff; }

.st-pager { display: flex; align-items: center; gap: 6px; margin: 10px 0 8px; flex-wrap: wrap; }
.st-pg { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px;
  background: rgba(12, 22, 34, .6); border: 1px solid rgba(90, 150, 200, .3);
  color: #b7cfe4; font-size: 13px; cursor: pointer; }
.st-pg.on { background: rgba(52, 216, 255, .18); border-color: rgba(52, 216, 255, .55); color: #eaf6ff; }
.st-pg:disabled { opacity: .35; cursor: default; }
.st-pg-dot { color: #5f7192; }
.st-pg-info { margin-left: 8px; color: #8fa8bd; font-size: 12px; }

.st-inds { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.st-inds::-webkit-scrollbar { height: 4px; }
.st-inds::-webkit-scrollbar-thumb { background: rgba(90,150,200,.3); border-radius: 2px; }
.st-chip { white-space: nowrap; flex: none; }
.st-search { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.st-q { flex: 1 1 280px; height: 36px; padding: 0 12px; border-radius: 9px;
  background: rgba(8, 16, 28, .95); border: 1px solid rgba(90, 150, 200, .35);
  color: #dff0ff; font-size: 13px; outline: none; }
.st-center { padding: 12px 14px; margin-bottom: 10px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(10, 24, 40, .9), rgba(8, 14, 24, .9));
  border: 1px solid rgba(90, 196, 255, .3); }
.st-center b { display: block; font-size: 18px; color: #eaf6ff; }
.st-center-act { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.st-center-n { font-size: 12px; color: #8fa8bd; }
.st-center-n b { display: inline; font-size: 14px; color: #7fe0ff; }

/* 行业：一条可左右延伸的卡片带（不露原生滚动条） */
.st-inds { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
  overflow: visible; margin: -2px 0 10px; padding: 0; }
.st-inds-label { white-space: nowrap; flex: none; }
.st-ind-track { display: flex; gap: 6px; align-items: center; flex: 1 1 auto;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth; padding: 2px 2px; }
.st-ind-track::-webkit-scrollbar { display: none; }
.st-ind-arrow { flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(12, 22, 34, .7); border: 1px solid rgba(90, 150, 200, .3);
  color: #9fc4dd; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.st-ind-arrow:hover { color: #7fe0ff; border-color: rgba(52, 216, 255, .5); }
.st-inds-tip { white-space: nowrap; flex: none; }
.st-chip { flex: none; }

/* 行业分类卡片（工具栏同款线框图标） */
.st-ind-track { gap: 8px; padding: 2px 2px 4px; }
.st-cat { flex: none; width: 92px; height: 64px; border-radius: 10px;
  background: rgba(12, 22, 34, .55); border: 1px solid rgba(90, 150, 200, .28);
  color: #b7cfe4; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; cursor: pointer; padding: 0; }
.st-cat:hover { border-color: rgba(90, 196, 255, .45); color: #dff0ff; }
.st-cat.on { border-color: rgba(52, 216, 255, .65); background: rgba(52, 216, 255, .12); color: #eaf6ff; }
.st-cat-ico svg { width: 22px; height: 22px; display: block; }
.st-cat-t { font-size: 12px; white-space: nowrap; }

.st-ver { margin-top: 18px; font-size: 11px; color: #3f5773; text-align: right; }

/* 行业：母列表（分类卡片）+ 子列表（具体行业） */
.st-inds { display: block; margin: -2px 0 10px; }
.st-ind-row { display: flex; align-items: center; gap: 6px; }
.st-kid-track { display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  margin: 8px 0 0 40px; }
.st-kid-track .st-chip { font-size: 12px; padding: 4px 10px; }

.st-kid-track { align-items: center; }
.st-apply { margin-left: 6px; flex: none; height: 28px; padding: 0 12px; font-size: 12px; }

.st-list-wrap { position: relative; min-height: 140px; }
.st-loading { position: absolute; inset: 0; z-index: 3; display: flex;
  align-items: center; justify-content: center; border-radius: 10px;
  background: rgba(4, 6, 12, .62); color: #7fe0ff; font-size: 13px; letter-spacing: 1px;
  backdrop-filter: blur(1.5px); }
.st-loading span { animation: stpulse 1.2s ease-in-out infinite; }
@keyframes stpulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* 去过的地方：整宽的池 */
.st-pool-box { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: rgba(10, 18, 30, .55); }
.st-pool-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.st-pool-head b { font-size: 14px; color: #cfe3f5; }
.st-pool-head .st-mini { margin-left: auto; color: #7fe0ff; }
.st-hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px; max-height: 320px; overflow-y: auto; }
.st-pool-box .st-rel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }

.st-queue { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 10px; padding: 8px 12px; border-radius: 10px;
  background: rgba(46, 230, 168, .08); border: 1px solid rgba(46, 230, 168, .3); font-size: 13px; }
.st-queue b { color: #7fe0ff; }
.st-qchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px;
  border-radius: 12px; background: rgba(12, 22, 34, .7); color: #cfe3f5; font-size: 12px; }
.st-qchip button { background: none; border: none; color: #8fa8bd; cursor: pointer; padding: 0 2px; }
.st-phone { color: #7fe0ff; font-size: 15px; font-weight: 600; text-decoration: none; }
.st-phone:hover { text-decoration: underline; }
.st-peer-box { width: min(560px, 94vw); max-height: 80vh; display: flex; flex-direction: column; }
.st-peer-list { overflow-y: auto; margin: 6px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.st-peer-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.st-peer-row b { color: #eaf6ff; } .st-peer-row span { color: #8fa8bd; font-size: 12px; flex: 1; }

.st-card-f { margin-top: 8px; margin-left: 34px; display: flex; align-items: center; gap: 12px; }
.st-card-f .st-peer { height: 32px; padding: 0 14px; font-size: 13px; }

.st-go-box { width: min(520px, 94vw); max-height: 82vh; display: flex; flex-direction: column; }
.st-go-list { overflow-y: auto; margin: 6px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.st-go-row { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(12,22,34,.45); }
.st-go-row b { display: block; color: #eaf6ff; font-size: 14px; }
.st-go-row span { display: block; color: #8fa8bd; font-size: 12px; margin-top: 2px; }

.st-qmore { font-size: 12px; color: #7fe0ff; }
.st-go-d { display: inline-block; margin-left: 8px; color: #ffb84d; font-size: 12px; }
.st-go-nav { margin-top: 4px; }

.go-street { border-color: rgba(63,123,255,.85) !important; color: #a9c8ff !important; font-weight: 600; }

