:root {
  /* 南方新华品牌体系 v2 —— 主红 #CD281F / 亮红 #EC3A14 / 暖金点缀 #C89B3C / 深墨侧栏
     设计原则：高端（深墨+红金对比）、大气（留白与层级）、简约（单强调色）、时尚（微交互） */
  --bg: #f7f8fa; --surface: #ffffff; --surface2: #f2f3f6; --border: #e5e7ec; --border2: #d4d7de;
  --text: #1a1d24; --muted: #71767f; --faint: #a3a8b2;
  --accent: #cd281f; --accent2: #ec3a14; --accent-soft: #fdf0ee; --accent-line: rgba(205,40,31,.22);
  --gold: #c89b3c; --gold-soft: #faf5e9;
  --ink: #17191f; --ink2: #1f2229; --ink-line: rgba(255,255,255,.07);
  --green: #0f9d58; --amber: #b45309; --red: #dc2626; --mono-bg: #f8f9fb;
  --shadow-xs: 0 1px 2px rgba(16,18,24,.04);
  --shadow-sm: 0 1px 3px rgba(16,18,24,.05), 0 1px 2px rgba(16,18,24,.03);
  --shadow-md: 0 4px 14px rgba(16,18,24,.07), 0 1px 4px rgba(16,18,24,.04);
  --shadow-lg: 0 12px 34px rgba(16,18,24,.12), 0 4px 10px rgba(16,18,24,.06);
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --side-w: 180px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.6; }

/* ---------- 登录 ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 36px 32px; width: min(380px, 100%); text-align: center; }
.logo { width: 44px; height: 44px; border-radius: 12px; background: var(--accent);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; margin: 0 auto 12px; }
.logo.sm { width: 32px; height: 32px; font-size: 15px; margin: 0; }
.login h1 { margin: 0 0 4px; font-size: 18px; }
.login input { width: 100%; margin-bottom: 10px; }
.muted { color: var(--muted); font-size: 13px; }
.err { color: var(--red); font-size: 13px; min-height: 18px; margin: 8px 0 0; }

/* ---------- 注册弹窗（申请试用）v2 ---------- */
.reg-mask { position: fixed; inset: 0; z-index: 100; background: rgba(31,35,41,.5);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; }
.reg-card { background: var(--surface); border-radius: 18px; padding: 26px 28px;
  width: min(410px, 100%); border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(31,35,41,.08), 0 24px 64px rgba(31,35,41,.26);
  animation: modalin .2s cubic-bezier(.2,.9,.3,1.15); }
@keyframes modalin { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.reg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.reg-head b { font-size: 16.5px; }
.reg-card input { width: 100%; margin-bottom: 11px; transition: border-color .12s, box-shadow .12s; }
.reg-card input:focus { box-shadow: 0 0 0 3px rgba(205,40,31,.1); }
.reg-cap-row { display: flex; gap: 10px; align-items: center; margin-bottom: 13px; }
.reg-cap-row input { flex: 1; margin-bottom: 0; text-transform: uppercase; letter-spacing: 2px; }
#regCapImg { border: 1px solid var(--border); transition: transform .12s; }
#regCapImg:hover { transform: scale(1.04); }

/* ---------- 壳：侧边栏 + 主区（高度锁死 100vh，应用式布局） ---------- */
.shell { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: var(--side-w); flex: 0 0 var(--side-w);
  background: linear-gradient(180deg, #17191f 0%, #1c1f27 100%);
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; }
/* 操作导航台（左侧导航总标题） */
.nav-cap { font-size: 10.5px; color: rgba(255,255,255,.34); letter-spacing: 3px;
  padding: 6px 14px 2px; font-weight: 600; }
.side-brand { display: flex; flex-direction: column; gap: 5px; align-items: center; padding: 18px 10px 15px; text-align: center;
  border-bottom: 1px solid var(--ink-line); }
.side-title b { display: block; font-size: 14.5px; }
.side-title span { font-size: 12px; color: rgba(255,255,255,.45); }
.side-nav { flex: 1; padding: 10px 10px; overflow-y: auto; }
.nav-group { font-size: 11px; color: rgba(255,255,255,.34); padding: 12px 8px 4px; letter-spacing: .05em; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px;
  border: none; background: none; color: rgba(255,255,255,.78); border-radius: 9px; cursor: pointer;
  font-size: 13.5px; font-family: inherit; text-align: left;
  transition: background .15s ease, color .15s ease; position: relative; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(205,40,31,.92), rgba(236,58,20,.86));
  color: #fff; font-weight: 500; box-shadow: 0 2px 10px rgba(205,40,31,.35); }
.ni-ico { width: 18px; text-align: center; color: rgba(255,255,255,.42); font-size: 13px; }
.nav-item.active .ni-ico { color: #fff; }
.side-foot { border-top: 1px solid var(--ink-line); padding: 12px 14px; display: flex;
  align-items: center; justify-content: space-between; gap: 8px; }
.side-user { font-size: 12.5px; color: rgba(255,255,255,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-btn { padding: 5px 10px; font-size: 12px; }

.main { flex: 1; margin-left: var(--side-w); display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(12px) saturate(1.4);
  padding: 13px 26px; border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs); }
.topbar h2 { margin: 0; font-size: 16px; font-weight: 500; }
.tb-title { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.tb-func { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
/* 业务操作台（右侧主区总标题，面包屑） */
.top-cap { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: 1px;
  white-space: nowrap; padding: 3px 10px; background: var(--surface2);
  border-radius: 8px; border: 1px solid var(--border); }
.top-sep { color: var(--border); font-size: 13px; }
.hamburger { display: none; border: none; background: none; font-size: 18px; cursor: pointer; color: var(--text); }
/* 业务操作台：宽度全自适应（跟随浏览器窗口，无固定上限）；高度自适应、自身可滚 */
.content { padding: 20px 28px 24px; width: 100%; margin: 0 auto; max-width: none;
  flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
/* ---------- 板块切换（点导航换业务操作台内容） ---------- */
.panel { display: none; }
.panel.active { display: block; }
#tab-tasks-gen { display: none; flex-direction: column; flex: 1; min-height: 0; }
#tab-tasks-gen.active { display: flex; }
/* 我的AI员工板块：暂时下线（隐藏，代码保留） */
#tab-my-emps { display: none !important; }

/* ---------- 通用组件 ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.card h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.card h4 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.card-head { display: flex; justify-content: space-between; align-items: center; }
.card-head h3 { margin: 0; }

textarea, input, select {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 9px 12px; font-size: 14px; font-family: inherit; width: 100%;
}
textarea { resize: vertical; margin-top: 12px; }
.row-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.row-inline label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.row-inline label select, .row-inline label input { width: auto; min-width: 150px; }

.btn { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2);
  color: var(--text); cursor: pointer; font-size: 14px; font-family: inherit; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: none; }
.btn.full { width: 100%; margin-top: 4px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.stream { background: #fafbfc; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px;
  white-space: pre-wrap; word-break: break-all; max-height: 420px; overflow: auto; min-height: 60px; margin: 0; }
.stream .evt-type { color: var(--accent2); }
.stream .evt-tool { color: var(--amber); }
.stream .evt-result { color: var(--green); }
.stream .evt-error { color: var(--red); }
.stream .evt-sys { color: var(--muted); }

.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; background: var(--surface2);
  color: var(--muted); border: 1px solid var(--border); }
.tag.done { color: var(--green); border-color: var(--green); }
.tag.running { color: var(--accent2); border-color: var(--accent); }
.tag.failed, .tag.timeout { color: var(--red); border-color: var(--red); }
.tag.queued { color: var(--amber); border-color: var(--amber); }

.table-wrap { overflow-x: auto; }
/* 对话内表格头兜底（流式半渲染时也保持深底白字可读） */
.msg .bubble th, .stream th { background: var(--ink); color: #fff; }
.msg .bubble td { color: var(--text); }
.msg .bubble table { color: var(--text); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
tr:hover td { background: var(--surface2); }
.clickable { cursor: pointer; color: var(--accent2); }

.artifacts { display: flex; flex-direction: column; gap: 6px; }
.artifact { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px;
  background: var(--surface2); border-radius: 8px; font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; word-break: break-all; }

/* ---------- 对话式输入框（参考图样式 v3） ---------- */
.chat-box { position: relative; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 22px; padding: 14px 16px 10px; box-shadow: 0 1px 4px rgba(31,35,41,.04);
  transition: border-color .15s, box-shadow .15s; }
.chat-box:focus-within { border-color: var(--accent); box-shadow: 0 2px 12px rgba(205,40,31,.08); }
.chat-box textarea { border: none; background: none; padding: 4px 6px; margin: 0; font-size: 15px;
  line-height: 1.65; resize: vertical; min-height: 84px; }
.chat-box textarea:focus { outline: none; }
.chat-toolbar { display: flex; align-items: center; gap: 6px; margin-top: 8px;
  border-top: none; padding: 4px 2px 2px; }
.ct-btn { display: inline-flex; align-items: center; gap: 5px; width: 32px; height: 32px;
  justify-content: center; border: none; background: var(--surface2); border-radius: 9px;
  color: var(--muted); cursor: pointer; transition: background .12s, color .12s; }
.ct-btn:hover { background: #e8eaee; color: var(--text); }
.ct-btn:active { transform: scale(.94); }
.ct-engine { font-size: 12px; font-weight: 500; }
/* 带文字的工具栏按钮（引擎/AI员工）统一自适应宽度，不被 32px 定宽挤压 */
#engineMenuBtn, #empMenuBtn { width: auto; padding: 0 10px; gap: 6px; color: var(--text); }
/* AI员工选中态：主色标识 */
#empMenuBtn.armed { color: var(--accent); background: var(--accent-soft); }
#empMenuBtn.armed .ct-engine { color: var(--accent); font-weight: 600; }
.ct-tokens { margin-left: auto; font-size: 11.5px; }
.send-btn { width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center; margin-left: 8px;
  transition: transform .12s, box-shadow .15s, background .12s; }
.send-btn:hover { transform: scale(1.06); box-shadow: 0 2px 10px rgba(205,40,31,.35); }
.send-btn:active { transform: scale(.95); }
.send-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
/* ---------- 弹层体系 v2（统一设计语言：分层阴影/缩放入场/内部滚动/精致 hover） ---------- */
.ct-popover { display: none; position: fixed; z-index: 90;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 4px 12px rgba(31,35,41,.06), 0 12px 36px rgba(31,35,41,.16);
  padding: 14px; min-width: 330px; max-width: 92vw; max-height: 60vh; overflow-y: auto; }
.ct-popover.open { display: block; animation: popin .16s cubic-bezier(.2,.9,.3,1.2); }
@keyframes popin { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.ct-pop-title { font-size: 12px; color: var(--muted); margin-bottom: 10px; letter-spacing: .5px; }
.ct-pop-sec { font-size: 11px; color: var(--accent); font-weight: 600; margin: 10px 0 5px;
  letter-spacing: 1.5px; display: flex; align-items: center; gap: 6px; }
.ct-pop-sec::after { content: ''; flex: 1; height: 1px; background: var(--border); opacity: .6; }
.ct-pop-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px;
  cursor: pointer; font-size: 13.5px; transition: background .1s; }
.ct-pop-item:hover { background: var(--surface2); }
.ct-pop-item.sel { background: var(--accent-soft); }
.ct-pop-item.sel:hover { background: #fbe3e0; }
.ct-pop-item .sc-box { width: 16px; height: 16px; border: 1.5px solid var(--border); border-radius: 5px;
  display: inline-grid; place-items: center; font-size: 11px; color: #fff; flex: none;
  transition: all .12s; }
.ct-pop-item:hover .sc-box { border-color: var(--accent); }
.ct-pop-item.sel .sc-box { background: var(--accent); border-color: var(--accent); }
.ct-pop-item.sel .sc-box::before { content: '✓'; }
.ct-pop-item input { display: none; }
.ct-pop-item .muted { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 150px; flex: 1; text-align: right; }
.ct-pop-item.sel > span:nth-child(2) { color: var(--accent); font-weight: 500; }
.ct-pop-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* ---------- 上传区（v2：精致工具条） ---------- */
.tool-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--text); cursor: pointer; font-size: 13px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s; }
.tool-btn:hover { border-color: var(--accent); box-shadow: 0 1px 6px rgba(205,40,31,.15); }
.tool-btn:active { transform: scale(.97); }
.tb-ico { font-size: 14px; }
body.drag-file::after { content: '📎 松开以上传文件'; position: fixed; inset: 0; z-index: 99;
  display: grid; place-items: center; background: rgba(245,246,248,.92);
  font-size: 18px; color: var(--accent); border: 2px dashed var(--accent); border-radius: 14px; pointer-events: none; }
.attach-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.attach-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  background: var(--surface2); border-radius: 8px; font-size: 13px;
  animation: fadein .18s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; } }
.attach-item .sz { color: var(--muted); font-size: 12px; }
.attach-item .rm { margin-left: auto; border: none; background: none; color: var(--red); cursor: pointer; font-size: 15px; }
.attach-item .rm:hover { transform: scale(1.2); }
/* 语音转文字进度条（识别中） */
.attach-item.asr { position: relative; overflow: hidden; border: 1px solid var(--accent-line); }
.attach-item.asr .sz { margin-left: auto; color: var(--accent); font-variant-numeric: tabular-nums; }
.attach-item.asr .asr-bar { position: absolute; left: 0; bottom: 0; height: 2px;
  background: var(--accent); transition: width .35s ease; }

/* ---------- 任务表单（v2 精致版） ---------- */
.h-ico { margin-right: 6px; }
.chip-hint { font-size: 12px; color: var(--muted); }
.field-label { font-size: 13px; font-weight: 600; margin: 16px 0 8px; }
.engine-row { display: flex; gap: 10px; flex-wrap: wrap; }
.engine-card { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; min-width: 140px;
  border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface);
  cursor: pointer; position: relative; transition: border-color .15s, box-shadow .15s; }
.engine-card:hover { border-color: var(--accent2); }
.engine-card.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(205,40,31,.12); }
.engine-card input { position: absolute; opacity: 0; }
.engine-card .ec-ico { font-size: 18px; }
.engine-card .ec-name { font-size: 13px; font-weight: 600; }
.engine-card .ec-desc { font-size: 11.5px; color: var(--muted); }
.engine-card.sel::after { content: '✓'; position: absolute; top: 6px; right: 8px;
  color: #fff; background: var(--accent); border-radius: 50%; width: 16px; height: 16px;
  display: grid; place-items: center; font-size: 10px; }
.submit-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.submit-row .btn.primary { margin-left: auto; padding: 10px 26px; font-size: 15px; }

/* ---------- 技能多选（v2 精致卡片） ---------- */
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 13px; cursor: pointer; transition: border-color .15s, box-shadow .15s; user-select: none; }
.skill-chip:hover { border-color: var(--accent2); }
.skill-chip input { display: none; }
.skill-chip .sc-box { width: 16px; height: 16px; border: 1.5px solid var(--border); border-radius: 5px;
  display: inline-grid; place-items: center; font-size: 11px; color: transparent; background: var(--surface);
  transition: background .12s; flex: none; }
.skill-chip.checked { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(205,40,31,.10); }
.skill-chip.checked .sc-box { background: var(--accent); border-color: var(--accent); }
.skill-chip.checked .sc-box::before { content: '✓'; }
.skill-chip .sc-name { font-weight: 500; }
.skill-chip .muted { font-size: 11.5px; }

/* ---------- 业务系统 ---------- */
.system-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.system-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.system-card .sys-icon { font-size: 26px; }
.system-card h4 { margin: 0; font-size: 15px; font-weight: 500; }
.system-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.system-card .sys-status { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.online { background: var(--green); }
.dot.offline { background: var(--red); }
.dot.degraded { background: var(--amber); }

/* ---------- 技能 ---------- */
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; cursor: pointer; }
.skill-chip input { width: auto; }
.skill-chip .muted { font-size: 11px; }

/* ---------- 移动端 ---------- */
.sidebar-mask { display: none; }
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 30px rgba(0,0,0,.15); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-mask.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 25; }
  .main { margin-left: 0; }
  .hamburger { display: block; }
  .content { padding: 14px 14px 40px; }
  .row-inline label select, .row-inline label input { width: 100%; }
  .row-inline { align-items: stretch; }
  /* v121 基线增强：顶栏收紧、子应用满幅、表格可横滚 */
  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar h2 { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-func .btn.ghost:not(.theme-toggle-option) { padding: 5px 8px; font-size: 12px; }
  #poolFrame, #tab-reports iframe { height: calc(100vh - 55px) !important; width: 100%; margin: 0; }
  #tab-resumes.panel, #tab-reports.panel { overflow: hidden; }
  .dw-wrap input { min-width: 0; }
  table { font-size: 12px; }
  .chat-box { border-radius: 16px; padding: 10px 12px 8px; }
  .ct-tokens { display: none; }   /* 手机上字数统计让位 */
}
@media (max-width: 560px) {
  .theme-toggle { display: none; }          /* 极窄屏隐藏主题切换（用系统跟随） */
  .empty-tips { display: none; }
  .panel-box { padding: 12px; }
  .dw-head h3 { font-size: 15px; }
}

/* ---------- 订单管理分段页签 ---------- */
.seg-tabs { display: flex; gap: 6px; }
.seg { padding: 7px 16px; border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; cursor: pointer; font-size: 13px; font-family: inherit; color: var(--muted); }
.seg:hover { border-color: var(--accent2); color: var(--text); }
.seg.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 结果区（自适应撑满剩余）+ 思考过程实时呈现 ---------- */
#tab-tasks-gen .result-area { flex: 1 1 0; min-height: 0; max-height: none; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 14px 20px; margin-bottom: 10px; }
/* 输入区（随内容自适应高度，不占滚动空间） */
#tab-tasks-gen .chat-box { flex: 0 0 auto; max-height: 34vh; overflow-y: auto; }
.chat-empty { text-align: center; padding: 20px 0 14px; }
.chat-empty b { font-size: 16px; }
.empty-tips { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.empty-tips span { font-size: 12.5px; color: var(--muted); background: var(--surface2);
  border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; }
.chat-history { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; }
.msg .avatar { width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-size: 14px; background: var(--surface2); }
.msg.user { flex-direction: row-reverse; }
.msg.user .avatar { background: #cd281f; color: #fff; font-size: 12px; }
.msg .bubble { max-width: 86%; background: var(--surface2); border-radius: 14px;
  padding: 10px 14px; word-break: break-word; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.7; }
/* v88 加固：用户气泡强制贴文字宽度——即使 flex 布局因缓存/bfcache 恢复异常退化为块级，
   红底气泡也不会横向撑满（此前"切页返回后气泡变得非常宽"即此回退形态） */
.msg.user .bubble { width: fit-content; }
.msg.user .bubble { background: var(--accent); color: #fff; white-space: pre-wrap; }
.msg.ai .bubble { background: var(--surface); border: 1px solid var(--border);
  white-space: normal; box-shadow: var(--shadow-xs); }
.thinking { border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 8px 12px; margin: 0 0 8px;
  color: #8b93a3; font-size: 12px; background: #1d2027; border-radius: 0 10px 10px 0; overflow: hidden; }
.thinking .th-label { font-weight: 600; color: #d3a35c; display: flex; gap: 6px; align-items: center; cursor: pointer; user-select: none; }
.thinking .th-label::before { content: ''; }
.thinking .th-toggle { margin-left: auto; color: #6b7280; font-size: 11px; transition: transform .15s; }
.thinking.open .th-toggle { transform: rotate(180deg); }
.thinking .th-body { margin-top: 6px; white-space: pre-wrap; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px; line-height: 1.65; max-height: 220px; overflow-y: auto; color: #9aa3b2; }
.thinking:not(.open) .th-body { display: none; }
.thinking:not(.open) { padding-bottom: 8px; }
/* 流式阶段（有typing-dots时）强制展开 */
.thinking:has(.typing-dots) .th-body { display: block; }
.thinking:has(.typing-dots) { background: #1d2027; animation: thinkpulse 2s ease infinite; }
@keyframes thinkpulse { 0%,100% { border-left-color: var(--accent); } 50% { border-left-color: var(--gold); } }
.typing-dots::after { content: '…'; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* ---------- 任务列表（侧边栏） ---------- */
.task-group-head { font-size: 11px; color: rgba(255,255,255,.42); padding: 12px 12px 4px; letter-spacing: .05em; display:flex; justify-content:space-between; }
.task-list { max-height: 260px; overflow-y: auto; padding: 0 8px; }
.task-item { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 8px;
  cursor: pointer; font-size: 13px; position: relative; color: rgba(255,255,255,.75);
  transition: background .15s ease, color .15s ease; }
.task-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.task-item.active { background: linear-gradient(90deg, rgba(205,40,31,.92), rgba(236,58,20,.86));
  color: #fff; font-weight: 500; box-shadow: 0 2px 10px rgba(205,40,31,.35); }
.task-item .t-pin { font-size: 10px; }
.task-item .t-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-item .t-more { border: none; background: none; color: rgba(255,255,255,.45); cursor: pointer;
  font-size: 14px; padding: 2px 4px; border-radius: 4px; opacity: 0; transition: opacity .12s; }
.task-item:hover .t-more { opacity: 1; }
.task-item .t-more:hover { color: #fff; background: rgba(255,255,255,.12); }
.task-menu { position: fixed; z-index: 95; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px; min-width: 132px;
  box-shadow: 0 4px 12px rgba(31,35,41,.06), 0 12px 36px rgba(31,35,41,.18);
  display: none; }
.task-menu.open { display: block; animation: popin .14s cubic-bezier(.2,.9,.3,1.2); }
.task-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: none;
  background: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; border-radius: 8px;
  transition: background .1s; }
.task-menu button:hover { background: var(--surface2); }
.task-menu button.danger { color: var(--red); }
.task-menu button.danger:hover { background: #fdeaea; }

/* ---------- 输入框记忆多选框 ---------- */
.ct-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  color: var(--muted); cursor: pointer; user-select: none; padding: 0 2px; }
.ct-check input { display: none; }
.ct-check .sc-box { width: 15px; height: 15px; border: 1.5px solid var(--border2);
  border-radius: 4px; display: inline-grid; place-items: center; font-size: 10px;
  color: transparent; background: var(--surface); transition: background .12s; flex: none; }
.ct-check.checked { color: var(--accent); }
.ct-check.checked .sc-box { background: var(--accent); border-color: var(--accent); }
.ct-check.checked .sc-box::before { content: '✓'; }

/* ---------- 对话排版美化（紧凑版式） ---------- */
.chat-history { gap: 10px; }
.msg.user .bubble { padding: 9px 14px; line-height: 1.6; }
.msg.ai .bubble { line-height: 1.66; }
/* AI 气泡内 markdown 元素紧凑化 */
.msg.ai .bubble > * { margin: 0 0 5px; }
.msg.ai .bubble > *:last-child { margin-bottom: 0; }
.msg.ai .bubble h1, .msg.ai .bubble h2, .msg.ai .bubble h3, .msg.ai .bubble h4 {
  margin: 10px 0 5px; font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.4; }
.msg.ai .bubble h1:first-child, .msg.ai .bubble h2:first-child,
.msg.ai .bubble h3:first-child, .msg.ai .bubble p:first-child { margin-top: 0; }
.msg.ai .bubble h1 { font-size: 15.5px; }
.msg.ai .bubble h2 { font-size: 14.5px; }
.msg.ai .bubble h3 { font-size: 13.5px; color: var(--text); }
.msg.ai .bubble h4 { font-size: 13px; color: var(--text); }
.msg.ai .bubble p { margin: 0 0 7px; line-height: 1.66; }
.msg.ai .bubble ul, .msg.ai .bubble ol { margin: 4px 0 6px; padding-left: 1.4em; }
.msg.ai .bubble li { margin: 0 0 3px; line-height: 1.6; }
.msg.ai .bubble li::marker { color: var(--accent); }
.msg.ai .bubble strong { color: var(--text); font-weight: 700; }
.msg.ai .bubble blockquote { margin: 4px 0 6px; padding: 4px 10px; border-left: 3px solid var(--accent);
  background: var(--surface2); border-radius: 0 8px 8px 0; color: var(--muted); font-size: 12.8px; }
.msg.ai .bubble blockquote p { margin: 0; }
.msg.ai .bubble hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.msg.ai .bubble code { background: var(--surface2); border: 1px solid var(--border);
  border-radius: 4px; padding: 0.5px 5px; font-size: 12.3px; font-family: ui-monospace, Menlo, monospace; }
.msg.ai .bubble pre { background: #20232a; color: #e6e6e6; border-radius: 10px;
  padding: 10px 12px; overflow-x: auto; margin: 4px 0 6px; font-size: 12.3px; line-height: 1.5; }
.msg.ai .bubble pre code { background: none; border: none; padding: 0; color: inherit; }
.msg.ai .bubble table { border-collapse: collapse; margin: 4px 0 8px; font-size: 12.6px;
  width: 100%; display: block; overflow-x: auto; }
.msg.ai .bubble th { background: var(--ink); color: #fff; font-weight: 600; }
.msg.ai .bubble th, .msg.ai .bubble td { border: 1px solid var(--border);
  padding: 4.5px 9px; text-align: left; white-space: nowrap; }
.msg.ai .bubble tr:nth-child(even) td { background: #f6f7fa; }
/* 思考块更紧凑 */
.thinking { padding: 5px 10px; margin: 4px 0 5px; font-size: 12px; max-height: 110px; }
.thinking .th-body { line-height: 1.5; }
/* 产物提示行距 */
.msg .bubble .muted { font-size: 11.5px !important; margin-top: 4px; line-height: 1.4; }

/* ---------- 用户中心 ---------- */
.uc-btn { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px;
  border-radius: 10px; transition: background .15s ease, transform .15s ease; flex: 1; min-width: 0; justify-content: center; }
.uc-btn:hover { background: rgba(255,255,255,.1); }
.uc-btn:hover .uc-ava { transform: scale(1.08); box-shadow: 0 3px 12px rgba(205,40,31,.5); }
.uc-ava { width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  box-shadow: 0 2px 8px rgba(205,40,31,.35); }
.uc-ava.lg { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; }
.uc-meta { min-width: 0; }
.uc-meta b { display: block; font-size: 12.5px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-meta span { font-size: 10.5px; color: rgba(255,255,255,.42); }
.uc-out { flex: none; }
.uc-mask { position: fixed; inset: 0; z-index: 100; background: rgba(23,25,31,.5);
  backdrop-filter: blur(4px); display: none; place-items: center; padding: 20px; }
.uc-mask.show { display: grid; }
.uc-card { background: var(--surface); border-radius: 18px; width: min(430px, 100%);
  box-shadow: var(--shadow-lg); animation: modalin .2s cubic-bezier(.2,.9,.3,1.15); overflow: hidden; }
.uc-head { display: flex; align-items: center; gap: 13px; padding: 20px 22px 16px;
  background: linear-gradient(135deg, #17191f 0%, #241b1a 100%); }
.uc-hinfo b { color: #fff; font-size: 16px; display: block; margin-bottom: 3px; }
.uc-hinfo .tag { background: rgba(255,255,255,.12); color: #f3d9a4; border: none; }
.uc-head .btn { margin-left: auto; border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.7); background: transparent; }
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 22px 6px; }
.uc-stat { background: var(--surface2); border-radius: 12px; padding: 12px 8px; text-align: center; }
.uc-stat b { display: block; font-size: 19px; color: var(--accent); }
.uc-stat span { font-size: 11.5px; color: var(--muted); }
.uc-sec { padding: 14px 22px 8px; }
.uc-pw { display: flex; gap: 8px; margin-top: 8px; }
.uc-pw input { flex: 1; min-width: 0; margin-bottom: 0; }
.uc-foot { padding: 10px 22px 16px; }

/* 红底气泡内对比度保险 */
.msg.user .bubble, .msg.user .bubble * { color: #fff; }
.msg.user .bubble .muted { color: rgba(255,255,255,.85) !important; }

/* ---------- 交付工作台原生面板 ---------- */
.dw-wrap { max-width: 960px; margin: 0 auto; padding-top: 16px; }
.dw-head h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.dw-wrap textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px;
  font: inherit; outline: none; resize: vertical; }
.dw-wrap textarea:focus { border-color: var(--accent); }
.dz:hover { border-color: var(--accent) !important; color: var(--accent); }
.ai-out { margin-top: 12px; display: none; }
.ai-out.show { display: block; }
.ai-out .ans { background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; font-size: 13.5px; line-height: 1.75; }
.dots::after { content: '…'; animation: dwdots 1.2s steps(4) infinite; }
@keyframes dwdots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* 《分析报告》卡片 */
.report-card1 { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.rp-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; background: linear-gradient(90deg,#fdf0ee,#faf5e9); border-bottom: 1px solid var(--border); }
.rp-mark { width: 4px; height: 16px; border-radius: 3px; background: linear-gradient(180deg,var(--accent),var(--gold)); }
.rp-head b { font-size: 14.5px; letter-spacing: 1px; }
.rp-body { padding: 20px 26px 26px; font-size: 14px; line-height: 1.9; color: #374151; }
.rp-body h1,.rp-body h2,.rp-body h3 { margin: 14px 0 8px; color: var(--text); }
.rp-body h1{font-size:16px}.rp-body h2{font-size:15px}.rp-body h3{font-size:14px}
.rp-body p{margin:0 0 10px}
.rp-body ul,.rp-body ol{margin:4px 0 10px;padding-left:1.5em}
.rp-body li{margin-bottom:4px;line-height:1.75}
.rp-body li::marker{color:var(--accent)}
.rp-body blockquote{margin:8px 0;padding:8px 14px;border-left:3px solid var(--accent);background:var(--surface2);border-radius:0 8px 8px 0;color:var(--muted);font-size:13px}
.rp-body table{border-collapse:collapse;margin:8px 0 14px;font-size:13px;width:100%}
.rp-body th{background:var(--ink);color:#fff;padding:6px 12px;text-align:left}
.rp-body td{border:1px solid var(--border);padding:6px 12px}
.rp-body tr:nth-child(even) td{background:#f7f8fa}
/* v92 阅读体验修复：全局 th/td 为 nowrap，报告表格长内容会横向撑出卡片。
   报告内表格改为自动换行 + 固定三列布局（维度/内容/依据与建议），整体阅读不溢出。 */
.rp-body th, .rp-body td { white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
.rp-body table { table-layout: fixed; }
.rp-body table th:nth-child(1), .rp-body table td:nth-child(1) { width: 19%; }
.rp-body table th:nth-child(2), .rp-body table td:nth-child(2) { width: 43%; }
.rp-body table th:nth-child(3), .rp-body table td:nth-child(3) { width: 38%; }
/* 章节标题更清爽：细分隔线 + 适度留白 */
.rp-body h2 { padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.rp-body strong { color: var(--text); }
/* 报告内 💬 话术提示块（暗红问题标注配套样式，每维度独立一行） */
.rp-body td > div[style*="border-left:3px solid #8b1a1a"] { white-space: normal; }

/* v94 寻访关键词：按《人才信息》14 字段拆解的词块 —— 只保留两态：
   选中（参与搜索）= 浅红底；未选中 = 灰底。点击切换。 */
.kwchip{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:99px;
  border:1px solid var(--border);background:var(--surface2);color:var(--muted);
  font-size:12.5px;line-height:1.45;cursor:pointer;font-family:inherit;
  transition:background .15s ease,border-color .15s ease,color .15s ease}
.kwchip i{font-style:normal;font-size:10.5px;opacity:.72;letter-spacing:.2px}
.kwchip:hover{border-color:#e3b7b3}
.kwchip.on{background:#fdecea;border-color:#f0c0bb;color:#b03a34;font-weight:600}
.kwchip.on i{opacity:.88}

/* v104 寻访进行中：呼吸圆点（人才寻访页实时进度条） */
.hunt-live-dot{width:10px;height:10px;flex:none;border-radius:99px;background:#16a34a;
  animation:huntLivePulse 1.4s ease-in-out infinite}
@keyframes huntLivePulse{0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(22,163,74,.45)}
  50%{opacity:.55;box-shadow:0 0 0 6px rgba(22,163,74,0)}}

/* v111 BUG修复：需求库打开《需求档案》卡片表格溢出页面框架
   根因：全局 th,td white-space:nowrap（气泡表格口径）导致档案卡长中文整行不换行，表格被内容撑爆 */
#reqProfBody th, #reqProfBody td { white-space: normal !important; word-break: break-word; overflow-wrap: anywhere; }
#reqProfBody table { table-layout: fixed; max-width: 100%; }
#reqProfileCard { max-width: 100%; overflow-x: hidden; }
/* 样式与《需求分析》报告表格对齐：单元格描边 + 斑马纹 */
#reqProfBody th, #reqProfBody td { border: 1px solid var(--border); }
#reqProfBody tbody tr:nth-child(even) td { background: #f6f7fa; }

/* ---- v112 简历推荐报告弹层（docx-preview 在线预览） ---- */
.rec-modal { position: fixed; inset: 0; z-index: 3000; }
.rec-modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.rec-modal-box {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1060px, 94vw); height: min(86vh, 900px);
  background: var(--card, #fff); border-radius: 14px; box-shadow: 0 18px 60px rgba(0,0,0,.28);
  display: flex; flex-direction: column; overflow: hidden;
}
.rec-modal-head {
  flex: none; display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border); background: #f8fafc;
}
.rec-modal-body { flex: 1; overflow-y: auto; background: #eef0f4; padding: 14px; }
/* docx-preview 渲染容器：保持库自带的 Word 页面尺寸/页边距（勿覆盖 width/padding，
   v116 修正：旧覆盖导致页眉图与正文错位、页面比例失真），仅加投影 */
.rec-modal-body .docx-wrapper { background: #eef0f4; padding: 10px 0; }
.rec-modal-body .docx-wrapper > section.docx {
  box-shadow: 0 4px 18px rgba(0,0,0,.16); margin: 0 auto 14px; background: #fff;
}
@media (max-width: 760px) {
  .rec-modal-body > .docx-wrapper > section.docx { min-width: 0; }
}

/* ---- v113 独立「简历推荐」板块列表 ---- */
.rec-list { margin-top: 10px; }
.rec-item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 14px; margin-top: 8px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card, #fff);
}
.rec-item:hover { border-color: #cbd5e1; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.rec-pill {
  display: inline-block; padding: 1px 8px; margin-left: 6px;
  border-radius: 99px; background: #eff6ff; color: #2563eb;
  font-size: 11px; font-weight: 500; vertical-align: 1px;
}
.rec-btn {
  background: #ecfdf5 !important; color: #047857 !important; border: 1px solid #a7f3d0 !important;
}
.rec-btn:hover { background: #d1fae5 !important; }

/* ================= v103 设计系统升级（P0-P2，2026-11-17） ================= */

/* ---- 语义色令牌（组件只用语义层，不直接写品牌色） ---- */
:root {
  --success: #0f9d58; --success-soft: #ecfdf3; --success-line: rgba(15,157,88,.25);
  --warning: #b45309; --warning-soft: #fffaeb;
  --danger:  #dc2626; --danger-soft:  #fef2f2;
  --info:    #2563eb; --info-soft:    #eff6ff;
}

/* ---- 暗色主题（手动 data-theme="dark"） ---- */
[data-theme="dark"] {
  --bg: #121419; --surface: #1b1f26; --surface2: #242a33;
  --border: #343b47; --border2: #454e5c;
  --text: #e6e9ee; --muted: #a3abb8; --faint: #6f7885;
  --accent: #e5484d; --accent2: #f26b5e; --accent-soft: rgba(229,72,77,.15);
  --accent-line: rgba(229,72,77,.3);
  --gold: #d9b05c; --gold-soft: rgba(200,155,60,.12);
  --ink: #101218; --ink2: #161a21;
  --green: #34c98a; --amber: #d9a441; --red: #f26b5e; --mono-bg: #20242c;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.35);
  --shadow-md: 0 4px 14px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 34px rgba(0,0,0,.5);
}
/* 系统主题跟随（未手动选择时） */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #121419; --surface: #1b1f26; --surface2: #242a33;
    --border: #343b47; --border2: #454e5c;
    --text: #e6e9ee; --muted: #a3abb8; --faint: #6f7885;
    --accent: #e5484d; --accent2: #f26b5e; --accent-soft: rgba(229,72,77,.15);
    --accent-line: rgba(229,72,77,.3);
    --gold: #d9b05c; --gold-soft: rgba(200,155,60,.12);
    --ink: #101218; --ink2: #161a21;
    --green: #34c98a; --amber: #d9a441; --red: #f26b5e; --mono-bg: #20242c;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.3);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.35);
    --shadow-md: 0 4px 14px rgba(0,0,0,.4);
    --shadow-lg: 0 12px 34px rgba(0,0,0,.5);
  }
}
body { transition: background-color .25s ease, color .25s ease; }

/* 暗色下少量硬编码色兜底 */
[data-theme="dark"] .stream,
[data-theme="dark"] .chat-empty { background: var(--mono-bg); }
[data-theme="dark"] .ct-btn:hover { background: var(--surface2); color: var(--text); }
[data-theme="dark"] .msg .bubble { background: var(--surface2); }
[data-theme="dark"] .bubble.user, [data-theme="dark"] .msg.user .bubble { background: var(--accent-soft); color: var(--text); }
[data-theme="dark"] tr:hover td { background: var(--surface2); }
[data-theme="dark"] .topbar { background: rgba(27,31,38,.86); }

/* ---- 主题切换器（顶栏右侧三态） ---- */
.theme-toggle { display: inline-flex; align-items: center; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 18px; padding: 2px; }
.theme-toggle-option { width: 26px; height: 24px; display: grid; place-items: center;
  border: none; border-radius: 14px; background: transparent; cursor: pointer;
  font-size: 12px; color: var(--muted); transition: all .15s ease; }
.theme-toggle-option:hover { color: var(--text); }
.theme-toggle-option.active { background: var(--accent); color: #fff; box-shadow: 0 1px 4px rgba(205,40,31,.3); }

/* ---- 键盘可达性（focus-visible 全局） ---- */
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; border-radius: 6px; }
textarea:focus-visible, input:focus-visible, select:focus-visible { outline-offset: 0; }

/* ---- 组件类：面板盒（收编 dw 区内联样式） ---- */
.panel-box { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface); }
.panel-box.dashed-accent { border: 1.5px dashed var(--accent); background: var(--accent-soft); }
.panel-box.live { border-color: var(--success); background: var(--success-soft); }
.hint { font-size: 12px; color: var(--muted); }
.rp-strip { padding: 8px 18px; font-size: 12.5px; border-bottom: 1px dashed var(--border);
  background: var(--surface2); flex-wrap: wrap; }
.pill-success { padding: 2px 10px; border-radius: 99px; background: var(--success-soft);
  color: var(--success); font-size: 12px; font-weight: 600; border: 1px solid var(--success-line); }

/* ---- 已选员工/技能 chip（输入框上方） ---- */
.sel-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sel-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 500; border: 1px solid var(--accent-line); }
.sel-chip .x { cursor: pointer; opacity: .65; font-weight: 700; padding: 0 1px; }
.sel-chip .x:hover { opacity: 1; }

/* ---- 图标按钮统一（nav SVG 对齐） ---- */
.ni-ico svg { display: block; }

/* ---- 窄屏基线（最小可用：内容收紧，长提示隐藏，说明由 tooltip 承担） ---- */
@media (max-width: 900px) {
  .content { padding: 14px 16px 18px; }
  .hint { display: none; }
}

/* ---- v121 收编：拖拽区基础类 + 表单行 ---- */
.dz { border: 1.5px dashed var(--border); border-radius: 12px; padding: 14px;
  text-align: center; cursor: pointer; color: var(--muted); font-size: 12.5px;
  transition: border-color .15s ease; }
.form-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.form-row input { width: auto; }
.form-row .fw2 { flex: 2; min-width: 180px; }
.form-row .fw1 { flex: 1; min-width: 120px; }

/* 最近寻访组标题右侧「＋新寻访」小按钮（对齐 PC 端 navNewTask） */
.nav-mini-add {
  float: right; border: none; background: none; color: var(--muted);
  cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px;
  border-radius: 6px; font-weight: 600;
}
.nav-mini-add:hover { color: var(--accent); background: var(--surface); }

/* v2.43.42 最近寻访条目：悬浮操作（改名 ✎ / 删除 ✕）+ 行内改名输入框 */
#huntTaskList .task-item .t-st { font-size: 11px; flex: none; white-space: nowrap; }
#huntTaskList .task-item .ti-acts { display: none; flex: none; gap: 2px; margin-left: auto; }
#huntTaskList .task-item:hover .ti-acts { display: inline-flex; }
#huntTaskList .task-item:hover .t-st { display: none; }   /* 悬浮时状态让位给操作钮 */
#huntTaskList .ti-btn {
  border: none; background: none; color: rgba(255,255,255,.55); cursor: pointer;
  font-size: 12px; line-height: 1; padding: 3px 5px; border-radius: 5px;
}
#huntTaskList .ti-btn:hover { color: #fff; background: rgba(255,255,255,.14); }
#huntTaskList .ti-btn[data-act="del"]:hover { color: #ff9c93; }
#huntTaskList .ti-rename {
  flex: 1; min-width: 0; border: 1px solid rgba(205,40,31,.8); border-radius: 6px;
  background: rgba(0,0,0,.25); color: #fff; font-size: 12px; padding: 3px 6px; outline: none;
}
