/* 布飞 Brifly · 最小可用前端 —— 高端营销感（浅色） */
:root {
  --bg: #F7F4EF; --panel: #FFFFFF; --ink: #201A13; --ink2: #857A6C;
  --accent: #FF5B22; --accent2: #FF8C64; --line: #EAE3D8;
  --ok: #12B76A; --warn: #F79009; --err: #F04438;
  --radius: 16px; --shadow: 0 8px 28px rgba(16, 26, 62, .08);
  /* 2026-09-29 案例库/卡片补充令牌 */
  --bg2: #FBF8F4; --accent-soft: #FFF2ED; --accent-line: #FFCEBD;
  --shadow-lg: 0 14px 38px rgba(16, 26, 62, .14);
}

/* ── 外观记忆令牌（2026-10-07 空间设置）──
   为什么放在这里而不是 settings.html 里：偏好是**跟账号走**的（user_prefs），
   任何页面读到同一份偏好都该长一个样。令牌按 `<html>` 上的两个属性切换，
   属性由 settings.js 设置 —— 将来别的页面只要也上这两个属性，就自动跟着变，
   不必再抄一遍颜色。
   注意：这只管**界面**，导出 PPT 的主题是另一回事（那里是 plans/export 的 theme 参数）。 */
html[data-app-theme='ink']  { --accent: #2E5BFF; --accent2: #7A9AFF; --accent-soft: #EEF3FF; --accent-line: #C2D1FF; }
html[data-app-theme='moss'] { --accent: #0F8A5F; --accent2: #57BF95; --accent-soft: #E9F7F1; --accent-line: #B4E4CE; }
html[data-app-theme='rose'] { --accent: #D6336C; --accent2: #F783AC; --accent-soft: #FFEDF3; --accent-line: #F8C6D6; }

html[data-app-appearance='dark'] {
  --bg: #16130F; --panel: #201B15; --bg2: #1B1712;
  --ink: #F2ECE4; --ink2: #A2968A;
  --line: #332B23; --accent-line: #5A3020;
  --shadow: 0 8px 28px rgba(0, 0, 0, .45); --shadow-lg: 0 14px 38px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
/* 深色下把几处写死的亮色描边与说明回落一下 */
html[data-app-appearance='dark'] .st-high li::before,
html[data-app-appearance='dark'] .st-meter b { color: var(--ink); }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--ink); }
#app { display: flex; height: 100vh; }

/* ── 左侧项目栏 ── */
#sidebar { width: 264px; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; gap: 14px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 2px 6px; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.brand-name span { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-slogan { font-size: 11px; color: var(--ink2); margin-top: 2px; }
#btnNew { flex-shrink: 0; }
#runList { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.run-item { padding: 10px 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: .15s; }
.run-item:hover { background: #FFF6F1; }
.run-item.active { background: linear-gradient(90deg, rgba(255,91,34,.10), rgba(139,92,246,.10)); border-color: rgba(255,91,34,.35); }
.run-item .r-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-item .r-meta { font-size: 11px; color: var(--ink2); margin-top: 3px; display: flex; gap: 8px; }
.sidebar-foot { font-size: 11px; color: var(--ink2); display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #D8CFC2; }
.dot.on { background: var(--ok); }
/* 构建号：贴在页脚最右，弱化但常显——用来一眼分辨"浏览器还在跑旧版"（见 app.js stampBuild 注释） */
.build-stamp { margin-left: auto; font-size: 10.5px; letter-spacing: .3px; opacity: .7; white-space: nowrap; cursor: default; }

/* ── 按钮 ── */
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; border: 0; border-radius: 12px; padding: 11px 16px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 6px 18px rgba(255,91,34,.35); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 11px 16px; font-size: 14px; cursor: pointer; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger-ghost { background: #fff; border: 1px solid var(--line); color: var(--err); border-radius: 12px; padding: 11px 16px; font-size: 14px; cursor: pointer; }
.btn-danger-ghost:hover { border-color: var(--err); background: #FFF5F5; }
button.biz-role-disabled,
button.biz-role-disabled:hover {
  background: #E9E5DE !important;
  border-color: #D8D2C8 !important;
  color: #9A9388 !important;
  box-shadow: none !important;
  filter: grayscale(1) !important;
  cursor: not-allowed !important;
  transform: none !important;
  opacity: .82;
}

/* ── 主区域 ── */
#main { flex: 1; overflow-y: auto; padding: 32px 40px; }
/* ── 首页：深蓝夜空 hero（与 PPT 封面同一视觉语言：深蓝底 + 品牌橙点缀）── */
.home { max-width: 860px; margin: 0 auto; padding: 34px 28px 60px; }
.hero-dark {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0B1233 0%, #131B45 55%, #1A2451 100%);
  border-radius: 22px; padding: 54px 48px 44px; text-align: left;
  box-shadow: 0 18px 48px rgba(16, 26, 62, .28);
}
.hero-dark::before {   /* 品牌橙的呼吸光斑 */
  content: ''; position: absolute; right: -120px; top: -140px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 122, 69, .38) 0%, rgba(255, 122, 69, 0) 68%);
  pointer-events: none;
}
.hero-dark::after {    /* 细网格，营销科技感 */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 72%);
}
.hero-dark > * { position: relative; z-index: 1; }
.hero-kicker { font-size: 12px; letter-spacing: 3px; color: rgba(255,255,255,.62); margin-bottom: 18px; }
.hero-dark h1 { font-size: 40px; line-height: 1.22; letter-spacing: 1px; font-weight: 800; max-width: 560px; }
.hero-dark h1 em { font-style: normal; color: #FF8C64; }
.hero-dark p { color: rgba(255,255,255,.72); margin: 16px 0 30px; font-size: 15.5px; max-width: 520px; }
.btn-hero {
  background: linear-gradient(90deg, #FF5B22, #FF8C64); color: #fff; border: 0;
  border-radius: 12px; padding: 14px 26px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: .15s; box-shadow: 0 8px 22px rgba(255,91,34, .35);
}
.btn-hero:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(255,91,34, .45); }
.hero-stats { display: flex; gap: 0; margin-top: 36px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; }
.hero-stats > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.hero-stats > div + div { border-left: 1px solid rgba(255,255,255,.14); padding-left: 26px; }
.hero-stats b { font-size: 26px; font-weight: 800; color: #FFA586; }
.hero-stats span { font-size: 12px; color: rgba(255,255,255,.65); letter-spacing: .5px; }

/* ── 流程视图 ── */
.run-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.run-title { font-size: 22px; font-weight: 700; }
.run-sub { color: var(--ink2); font-size: 13px; margin-top: 6px; }
.tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: #FFF1E7; color: var(--accent); font-weight: 600; }
.tag.warn { background: #FFF6E9; color: var(--warn); }

/* 环节进度条 */
.stages { display: flex; gap: 4px; margin: 22px 0 26px; flex-wrap: wrap; }
.stage-chip { flex: 1; min-width: 86px; text-align: center; padding: 9px 4px; border-radius: 10px; font-size: 11.5px; background: #fff; border: 1px solid var(--line); color: var(--ink2); position: relative; }
.stage-chip .n { font-weight: 800; margin-right: 4px; }
.stage-chip.done { background: #EAF9F1; border-color: #BFE9D2; color: #0E9355; }
.stage-chip.gate { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(255,91,34,.35); }
.stage-chip.returned { background: #FFF6E9; border-color: #F5D9A8; color: var(--warn); }

/* 确认卡 */
.card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; max-width: 980px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.card-head h2 { font-size: 19px; }
.gate-badge { font-size: 11px; font-weight: 700; color: var(--accent); background: #FFF1E7; padding: 5px 12px; border-radius: 999px; }
.card-sub { color: var(--ink2); font-size: 12.5px; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; letter-spacing: .3px; }
.field textarea, .field input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-family: inherit; color: var(--ink); background: #FDFBF7; transition: .15s; }
.field textarea { min-height: 64px; resize: vertical; line-height: 1.6; }
.field textarea:focus, .field input:focus { outline: 0; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(255,91,34,.10); }
.field textarea.json { font-family: "SF Mono", Menlo, monospace; font-size: 12px; }
.evidence { margin-top: 16px; font-size: 11.5px; color: var(--ink2); background: #FAF7F2; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; white-space: pre-wrap; word-break: break-all; max-height: 130px; overflow-y: auto; }
.card-actions { display: flex; gap: 10px; margin-top: 22px; align-items: center; flex-wrap: wrap; }
.pref-check { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); }
.ann-box { margin-top: 14px; display: none; gap: 8px; }
.ann-box.open { display: flex; }
.ann-box input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.ann-list { margin-top: 12px; }
.ann-item { font-size: 12px; color: var(--warn); background: #FFF9F0; border-radius: 8px; padding: 7px 12px; margin-bottom: 6px; }

/* 导出区 */
.export-row { display: flex; gap: 12px; margin-top: 20px; }
.export-row a { text-decoration: none; }

/* P1-6 视觉主题选择器（2026-10-06）：把 /ppt/themes 的 7 套色板接到网页上 */
.theme-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px;
  padding: 12px 16px; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 12px; }
.theme-pick label { font-size: 13px; font-weight: 600; color: var(--ink, #243); }
.theme-pick select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 13px; max-width: 320px; }
.th-swatches { display: inline-flex; gap: 4px; }
.th-sw { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.12); display: inline-block; }
.th-desc { font-size: 12px; color: var(--muted, #667); }

/* 轨B-3 Excel 勾选（2026-10-10）：顺带带走的表。复选框本身要够大够好点 */
.sheet-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
  color: var(--ink, #243); cursor: pointer; user-select: none; }
.sheet-chk input { width: 15px; height: 15px; accent-color: var(--ink, #243); cursor: pointer; }

/* 澄清条 */
.clarify { background: #FFF6E9; border: 1px solid #F5D9A8; border-radius: 14px; padding: 18px 22px; margin-bottom: 20px; max-width: 980px; }
.clarify select { margin: 0 10px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 13px; }

/* 事件流 */
.timeline { max-width: 980px; margin-top: 22px; }
.tl-title { font-size: 13px; font-weight: 700; color: var(--ink2); margin-bottom: 10px; letter-spacing: .5px; }
.tl-item { font-size: 12.5px; color: var(--ink2); padding: 8px 0 8px 18px; border-left: 2px solid var(--line); margin-left: 6px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: -5px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tl-item b { color: var(--ink); }

/* 弹层 & toast */
.modal { position: fixed; inset: 0; background: rgba(32,26,19,.45); display: flex; align-items: center; justify-content: center; z-index: 50; backdrop-filter: blur(4px); }
.modal.hidden { display: none; }
.modal-card { background: #fff; border-radius: 20px; padding: 28px 30px; width: min(620px, 92vw); box-shadow: 0 24px 60px rgba(32,26,19,.25); }
.modal-card h3 { margin-bottom: 18px; }
.modal-card label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink2); margin: 12px 0 6px; }
.modal-card input, .modal-card textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14px; font-family: inherit; }
.modal-card textarea { line-height: 1.7; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
#toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 12px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; box-shadow: 0 10px 30px rgba(32,26,19,.3); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--err); }
.muted { color: var(--ink2); font-size: 12.5px; }

/* ═══════════════════════════════════════════════════════════
   第 6 项「登录闭环」新增：通用类 · 用户卡 · 登录页
   （复用上面的 CSS 变量，视觉与主界面保持一致）
   ═══════════════════════════════════════════════════════════ */

/* 通用隐藏。用 !important 是因为它要和 .modal 的 display:flex 这类规则对撞 */
.hidden { display: none !important; }
.btn-primary.wide { width: 100%; }
label .opt { font-weight: 400; color: var(--ink2); margin-left: 6px; font-size: 11.5px; }

/* ── 用户卡（侧栏底部）── */
.user-card { position: relative; }
.uc-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 8px 10px; cursor: pointer; font: inherit; font-family: inherit; color: var(--ink); text-align: left; transition: .15s; }
.uc-btn:hover { background: #FFF6F1; border-color: var(--line); }
.uc-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.uc-avatar.warn { background: var(--warn); }
.uc-text { flex: 1; min-width: 0; }
.uc-name { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-tenant { display: block; font-size: 11px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.uc-caret { color: var(--ink2); font-size: 12px; flex-shrink: 0; }

.uc-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(32,26,19,.18); padding: 6px; z-index: 40; max-height: 60vh; overflow-y: auto; }
.uc-head { padding: 9px 10px 8px; }
.uc-h-name { font-size: 12px; font-weight: 600; word-break: break-all; }
.uc-h-sub { font-size: 10.5px; color: var(--ink2); margin-top: 2px; letter-spacing: .3px; }
.uc-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 9px; font-size: 12.5px; cursor: pointer; transition: .12s; }
.uc-item:hover { background: #FFF6F1; }
.uc-item.on { background: #FFF1E7; color: var(--accent); font-weight: 600; }
.uc-item.danger { color: var(--err); }
.uc-item.danger:hover { background: #FFF5F5; }
.uc-t-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-role { font-size: 10.5px; color: var(--ink2); flex-shrink: 0; }
.uc-item.on .uc-role { color: var(--accent); }
.uc-sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* 弹层/表单里的错误条（登录页与改密码共用） */
.auth-err { font-size: 12.5px; color: var(--err); background: #FFF5F5; border-radius: 9px; padding: 0 12px; max-height: 0; overflow: hidden; transition: .18s; }
.auth-err.on { padding: 9px 12px; max-height: 110px; margin: 4px 0 12px; }

/* ── 登录页 ── */
.auth-body { background: #F7F4EF; }
.auth-wrap { display: flex; min-height: 100vh; }

.auth-brand { flex: 0 0 44%; background: linear-gradient(160deg, #201A13 0%, #2B1D10 55%, #3B2513 100%); color: #fff; padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; }
.ab-logo { display: flex; gap: 12px; align-items: center; margin-bottom: 50px; }
.ab-logo .brand-name { color: #fff; font-size: 20px; }
.ab-logo .brand-name span { background: linear-gradient(90deg, #FFB59C, #FF8C64); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ab-logo .brand-slogan { color: rgba(255,255,255,.6); }
.auth-brand h1 { font-size: 32px; line-height: 1.35; letter-spacing: .5px; font-weight: 700; }
.auth-brand h1 em { font-style: normal; background: linear-gradient(90deg, #FFB59C, #FF8C64); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ab-sub { color: rgba(255,255,255,.72); font-size: 14.5px; line-height: 1.8; margin: 18px 0 38px; }
.ab-points { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.ab-points li { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.6; padding-left: 16px; position: relative; }
.ab-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #FFB59C; }
.ab-points b { display: block; color: #fff; font-size: 13.5px; margin-bottom: 2px; }

.auth-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.panel-inner { width: min(424px, 100%); }

.auth-tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink2); cursor: pointer; font-family: inherit; transition: .15s; }
.auth-tabs button.on { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }

.auth-form { background: #fff; border-radius: 18px; padding: 26px 26px 24px; box-shadow: var(--shadow); }
.auth-form .field { margin-bottom: 16px; }
.auth-form .field input { font-size: 14px; padding: 11px 13px; }
.auth-form .field input[readonly] { background: #F1EFE8; color: var(--ink2); }

.kind-pick { display: flex; gap: 6px; margin-bottom: 10px; }
.kind-pick button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; font-family: inherit; transition: .15s; }
.kind-pick button.on { border-color: var(--accent); color: var(--accent); background: #FFF1E7; }
.kind-hint { font-size: 12px; color: var(--ink2); line-height: 1.65; margin-bottom: 18px; padding: 10px 12px; background: #FAF7F2; border-radius: 10px; }

/* 邀请条 / bypass 警示 */
.invite-bar { font-size: 13px; color: var(--ink); background: #EAF9F1; border: 1px solid #BFE9D2; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; line-height: 1.6; }
.invite-bar b { color: #0E9355; }
.invite-bar.bad { background: #FFF6E9; border-color: #F5D9A8; }
.bypass-note { background: #FFF6E9; border: 1px solid #F5D9A8; border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: 12.5px; line-height: 1.7; }
.bypass-note b { display: block; color: var(--warn); font-size: 13.5px; margin-bottom: 6px; }
.bypass-note strong { color: var(--err); }
.bypass-note .bn-go { display: inline-block; margin: 10px 12px 0 0; color: var(--accent); font-weight: 600; text-decoration: none; }
.bypass-note .bn-go:hover { text-decoration: underline; }
.bypass-note .bn-sub { display: block; color: var(--ink2); font-size: 11.5px; margin-top: 8px; }

.auth-foot { margin-top: 18px; text-align: center; font-size: 11.5px; color: var(--ink2); line-height: 1.7; }

/* 窄屏：品牌区收成一条，表单占满 */
@media (max-width: 860px) {
  .auth-wrap { flex-direction: column; }
  .auth-brand { flex: none; padding: 26px 24px; }
  .ab-logo { margin-bottom: 18px; }
  .auth-brand h1 { font-size: 22px; }
  .ab-sub { margin: 12px 0 0; font-size: 13px; }
  .ab-points { display: none; }
  .auth-panel { padding: 24px 18px 40px; }
}

/* ══════════════════════════════════════════════════════════════
   第四轴 · 需求颗粒度（这次买多少）—— 选择器 / 徽标 / 压缩角标
   规格见《需求颗粒度规格-v1.0.md》第 6 节。层级配色沿用品牌色系：
   L1 全案（品牌蓝紫，最重）/ L2 局部模块（青）/ L3 单点（暖橙，最轻）。
   ══════════════════════════════════════════════════════════════ */

.modal-wide { width: min(880px, 94vw); max-height: 92vh; overflow-y: auto; }

.pkg-q { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.pkg-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }

.pkg-opt {
  display: flex; flex-direction: column; gap: 5px; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 13px 14px; cursor: pointer; font-family: inherit;
  transition: .15s; position: relative;
}
.pkg-opt:hover { border-color: #FFBDA7; background: #FDFBF7; }
.pkg-opt.on { border-color: var(--accent); background: linear-gradient(180deg, #FFF6F1, #fff); box-shadow: 0 6px 18px rgba(255,91,34,.14); }
.pkg-row1 { display: flex; justify-content: space-between; align-items: center; }
.pkg-lv { font-size: 10.5px; font-weight: 800; letter-spacing: .4px; padding: 2px 8px; border-radius: 999px; background: #FFF1E7; color: var(--accent); }
.pkg-opt.lv2 .pkg-lv { background: #E7F7F5; color: #0F8A78; }
.pkg-opt.lv3 .pkg-lv { background: #FFF3E6; color: #C4700A; }
.pkg-opt.auto .pkg-lv { background: #F2EEE8; color: var(--ink2); }
.pkg-on { color: var(--accent); font-weight: 800; font-size: 13px; opacity: 0; }
.pkg-opt.on .pkg-on { opacity: 1; }
.pkg-name { font-size: 14.5px; font-weight: 700; }
.pkg-tagline { font-size: 12px; color: var(--ink); line-height: 1.55; }
.pkg-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--ink2); margin-top: 2px; }
.pkg-deliv { background: #F5F0E9; border-radius: 6px; padding: 2px 7px; }
.pkg-stages { background: #F5F0E9; border-radius: 6px; padding: 2px 7px; font-weight: 700; }
.pkg-c { font-size: 11px; color: #0F8A78; }
.pkg-buyer { font-size: 11px; color: var(--ink2); border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 2px; }

/* 首页的套餐入口（卡片网格，数据全来自 /granularity）*/
.pkg-entries { margin-top: 34px; }
.pkg-entries-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.pkg-entries-head h2 { font-size: 18px; font-weight: 800; letter-spacing: .3px; }
.pkg-entries-head p { font-size: 12.5px; color: var(--ink2); }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.pkg-entry {
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 18px 16px; cursor: pointer; transition: .15s; font: inherit;
  position: relative;
}
.pkg-entry::after {
  content: '→'; position: absolute; right: 15px; top: 15px;
  font-size: 13px; color: var(--ink2); opacity: 0; transition: .15s;
}
.pkg-entry:hover { border-color: rgba(61, 90, 254, .5); box-shadow: var(--shadow); transform: translateY(-2px); }
.pkg-entry:hover::after { opacity: 1; color: var(--accent); }
.pe-lv { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; padding: 3px 9px; border-radius: 999px; background: #FFF1E7; color: var(--accent); }
.pe-lv.l2 { background: #E7F7F5; color: #0F8A78; }
.pe-lv.l3 { background: #FFF3E6; color: #C4700A; }
.pe-name { font-size: 16.5px; font-weight: 800; color: var(--ink); }
.pe-deliv { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.pe-deliv i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink); background: #F5F0E9; border-radius: 6px; padding: 1px 7px; }
.chip.pkg-entry { cursor: pointer; font-family: inherit; transition: .15s; }
.chip.pkg-entry:hover { border-style: solid; border-color: var(--accent); color: var(--accent); background: #F7F8FF; }
.chip.pkg-entry i { font-style: normal; color: var(--ink2); font-size: 11px; margin-left: 6px; }

/* 项目页头的套餐徽标 */
.pkg-badge-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pkg-badge { font-size: 11.5px; font-weight: 800; padding: 4px 11px; border-radius: 999px; background: #FFF1E7; color: var(--accent); }
.pkg-badge.lv2 { background: #E7F7F5; color: #0F8A78; }
.pkg-badge.lv3 { background: #FFF3E6; color: #C4700A; }
.pkg-badge-sub { font-size: 11.5px; color: var(--ink2); }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 8px; }

/* 侧栏的层级小标 */
.r-lv { font-size: 9.5px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: #FFF1E7; color: var(--accent); }
.r-lv.lv2 { background: #E7F7F5; color: #0F8A78; }
.r-lv.lv3 { background: #FFF3E6; color: #C4700A; }
.run-item .r-meta { flex-wrap: wrap; }
.r-pkg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }

/* 压缩环节角标：不藏起来（客户有权知道哪几环是压缩产出），但也不喧宾夺主 */
.stage-chip .mini {
  position: absolute; top: -6px; right: -4px; font-size: 9.5px; font-weight: 700;
  background: #E7F7F5; color: #0F8A78; border: 1px solid #BEE7E0;
  border-radius: 6px; padding: 1px 4px; cursor: help;
}

/* s01 卡上的颗粒度条（确认本卡 = 确认这次买多少） */
.gran-bar {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  background: #FFF6F1; border: 1px solid #FFD9BE; border-radius: 12px;
  padding: 11px 14px; margin: 12px 0 16px; font-size: 12.5px;
}
.gran-k { font-weight: 800; color: var(--accent); font-size: 11px; letter-spacing: .5px; }
.gran-v { color: var(--ink); }
.gran-src { color: var(--ink2); font-size: 11px; }

@media (max-width: 860px) {
  .pkg-picker { grid-template-columns: 1fr; }
  .modal-wide { width: 94vw; }
}

/* ══════════ 成员管理页（members.html）══════════ */
.mem-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.mem-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: var(--panel); border-bottom: 1px solid var(--line); }
.mem-top-right { display: flex; align-items: center; gap: 14px; }
.mem-tenant { font-size: 13px; font-weight: 600; color: var(--ink2); }
.mem-main { flex: 1; width: min(960px, 94vw); margin: 26px auto 48px; display: flex; flex-direction: column; gap: 18px; }

.mem-table-wrap { overflow-x: auto; }
.mem-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mem-table th { text-align: left; font-size: 11.5px; color: var(--ink2); font-weight: 600; letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mem-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mem-table tr:last-child td { border-bottom: 0; }
.mem-name { font-weight: 600; }
.mem-email { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.mem-act { text-align: right; white-space: nowrap; }
.mem-note { font-size: 12px; margin-top: 12px; }
.self-tag { font-size: 10.5px; color: var(--accent); border: 1px solid rgba(255,91,34,.4); border-radius: 6px; padding: 1px 5px; margin-left: 6px; }

.mem-table select { font: inherit; font-size: 12.5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); cursor: pointer; }
.role-tag { font-size: 12px; font-weight: 600; border-radius: 8px; padding: 3px 9px; }
.rt-owner { color: #7A3E0E; background: #FEF0C7; }
.rt-admin { color: #C4520A; background: #FDEBDB; }
.rt-member { color: var(--ink2); background: #F3EEE7; }
.st-tag { font-size: 11.5px; font-weight: 600; border-radius: 7px; padding: 2px 8px; }
.st-ok { color: #067647; background: #E6F6EE; }
.st-sus { color: #B42318; background: #FEECEB; }

.invite-form { display: grid; grid-template-columns: 1.6fr 1fr 1fr .6fr auto; gap: 12px; align-items: end; margin: 6px 0 4px; }
.invite-field label { display: block; font-size: 11.5px; color: var(--ink2); margin-bottom: 5px; }
.invite-field input, .invite-field select { width: 100%; font: inherit; font-size: 13px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
.invite-form .btn-primary { padding: 10px 14px; }
.invite-new { border: 1px dashed rgba(255,91,34,.45); background: #FFF6F1; border-radius: 12px; padding: 14px 16px; margin: 10px 0 14px; }
.invite-code-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.invite-code { font-family: ui-monospace, Menlo, monospace; font-size: 17px; font-weight: 700; letter-spacing: 2px; color: var(--accent); }
.invite-code-sm { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; letter-spacing: 1px; }

@media (max-width: 860px) {
  .invite-form { grid-template-columns: 1fr 1fr; }
  .mem-top { padding: 14px 16px; }
  .mem-main { margin-top: 16px; }
}

@media (max-width: 860px) {
  .hero-dark { padding: 34px 22px 30px; }
  .hero-dark h1 { font-size: 27px; }
  .hero-stats { flex-direction: column; gap: 14px; }
  .hero-stats > div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
  .home { padding: 18px 14px 40px; }
}

/* ═══ Agent 对话框主界面（2026-09-28 用户拍板「主界面 = 一个对话框」）═══ */
.chat { max-width: 860px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 8px 4px 20px; }
.chat-welcome { text-align: center; padding: 26px 10px 18px; }
.chat-welcome h1 { font-size: 30px; margin: 10px 0 8px; letter-spacing: .5px; }
.chat-welcome h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chat-welcome .muted { font-size: 13.5px; max-width: 560px; margin: 0 auto; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 13px; cursor: pointer; color: var(--ink); transition: .15s; }
.chip:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 4px 14px rgba(255,91,34,.10); }
#chatMsgs { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.msg .bubble { max-width: 72%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.65; white-space: normal; word-break: break-word; }
.msg.user .bubble { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; border-bottom-right-radius: 5px; }
.msg.bot .bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; box-shadow: var(--shadow); }
.msg.bot.errmsg .bubble { border-color: #F5C6C0; background: #FFF6F5; color: var(--err); }
.msg .bubble.thinking { color: var(--ink2); }
.msg-meta { font-size: 11px; color: var(--ink2); margin-top: 5px; }
.msg.bot img.msg-img { max-width: min(420px, 72vw); border-radius: 14px; border: 1px solid var(--line); display: block; }
.dots i { display: inline-block; width: 5px; height: 5px; margin-left: 4px; border-radius: 50%; background: var(--ink2); opacity: .35; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .2; } 40% { opacity: .9; } }
/* 2026-09-29 用户指令：对话框变成大卡（宽 880 / 输入区高），右下角小功能行 */
.chat-inputwrap { width: min(880px, 94%); margin: 0 auto; }
.chat-inputbar { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); margin-top: 14px; }
.chat-inputbar.drag { border-color: var(--accent); background: var(--accent-soft); }
.chat-inputbar textarea { width: 100%; border: 0; resize: none; font-size: 14.5px; font-family: inherit; line-height: 1.6; min-height: 104px; max-height: 260px; background: transparent; color: var(--ink); }
.chat-inputbar textarea:focus { outline: 0; }
.composer-tools { display: flex; align-items: center; gap: 6px; }
.tool-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid transparent; background: transparent; font-size: 16px; cursor: pointer; color: var(--ink2); display: flex; align-items: center; justify-content: center; font-family: inherit; }
.tool-btn:hover { background: var(--bg2); border-color: var(--line); color: var(--ink); }
.ct-hint { margin-left: auto; font-size: 11.5px; color: var(--ink2); opacity: .75; }
.chat-inputbar .btn-primary { padding: 9px 20px; }
.img-chip .chip-thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; margin-right: 2px; }
.msg.user .msg-img { max-width: 260px; border-radius: 12px; margin-bottom: 6px; display: block; margin-left: auto; }

/* 三层级简卡（新建弹层第一屏：2026-09-28 用户批评"内容太多看好久"后的简化） */
.lvl-opt { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: .15s; position: relative; }
.lvl-opt:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(255,91,34,.12); }
.lvl-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,91,34,.12); }
.lvl-opt.on.lvl1 { border-color: #FF5B22; } .lvl-opt.on.lvl2 { border-color: #0891B2; } .lvl-opt.on.lvl3 { border-color: #F79009; }
.lvl-row1 { display: flex; justify-content: space-between; align-items: center; }
.lvl-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.lvl-names { font-size: 12.5px; color: var(--ink2); }
.lvl-meta { font-size: 11.5px; color: var(--ink2); opacity: .8; }
.pkg-detail-toggle { grid-column: 1 / -1; background: none; border: 0; color: var(--accent); font-size: 12.5px; cursor: pointer; padding: 8px 4px; text-align: left; }
.pkg-detail-toggle:hover { text-decoration: underline; }
.btn-home { text-align: left; }
.chat-welcome .hero-kicker { color: var(--accent); letter-spacing: 3px; font-weight: 700; }

/* ── 主页对话框放大居中（2026-09-28 用户："主页把对话框放大，放中间"）── */
.chat { max-width: 980px; }
.chat-empty { justify-content: center; }
.chat-empty .chat-scroll { flex: 0 0 auto; overflow: visible; }
.chat-empty .chat-inputbar { margin-top: 26px; }
.chat-welcome { padding: 0 10px; }
.chat-welcome h1 { font-size: 40px; margin: 14px 0 12px; }
.chat-welcome .muted { font-size: 15px; max-width: 620px; }
.chat-welcome .hero-kicker { font-size: 14px; letter-spacing: 4px; }
.chat-chips { margin-top: 26px; }
.chip { font-size: 14px; padding: 11px 20px; }
.chat-inputbar { padding: 14px 18px; border-radius: 20px; }
.chat-inputbar textarea { font-size: 15px; min-height: 28px; }
.chat-inputbar .btn-primary { padding: 12px 26px; font-size: 14.5px; }

/* ═══ 2026-09-29 用户指令：标题区放上方 30%，对话框一起上移放大（WorkBuddy 主页感）═══ */
.chat-empty { justify-content: flex-start; padding-top: clamp(48px, 16vh, 150px); }
.chat { max-width: 1080px; }
.chat-welcome h1 { font-size: 44px; margin: 16px 0 12px; }
.chat-welcome .muted { font-size: 15.5px; }
.chat-inputwrap { margin-top: 30px; }
.chat-inputbar { padding: 16px 20px; border-radius: 22px; gap: 12px; align-items: flex-end; transition: border-color .15s; position: relative; }
.chat-inputbar.drag { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,91,34,.14); }
.chat-inputbar textarea { font-size: 15.5px; min-height: 56px; }
.chat-inputbar .btn-primary { padding: 14px 30px; font-size: 15px; }
.btn-attach { background: none; border: 0; font-size: 20px; cursor: pointer; padding: 6px 4px; opacity: .65; }
.btn-attach:hover { opacity: 1; }
.hidden { display: none !important; }
.attach-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 12.5px; color: var(--ink2); margin-bottom: 8px; box-shadow: var(--shadow); }
.attach-x { background: none; border: 0; cursor: pointer; font-size: 15px; color: var(--ink2); padding: 0 2px; }
.attach-x:hover { color: var(--err); }
.chat-hints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.chat-hints .chip { font-size: 12.5px; padding: 8px 14px; opacity: .85; }
.chat-hints .chip:hover { opacity: 1; }
.sel-pkg { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); }

/* ═══ 项目详情：模版化胶囊 tab（2026-09-30 学习用户版式：选中 = 深色胶囊）═══ */
.run-tabs { display: flex; gap: 8px; margin: 20px 0 18px; flex-wrap: wrap; }
.run-tab { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 17px; font-size: 13.5px; cursor: pointer; color: var(--ink2); font-family: inherit; transition: .15s; }
.run-tab:hover { color: var(--ink); border-color: #FFBDA7; }
.run-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* ═══ 项目详情模版化：元信息卡 / 总进度条 / 档案 tab（2026-09-30 学习用户版式）═══ */
.meta-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.meta-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.meta-card label { font-size: 11.5px; color: var(--ink2); letter-spacing: .4px; }
.meta-card b { font-size: 17px; font-weight: 800; color: var(--ink); }
.meta-card span { font-size: 11px; color: var(--ink2); }
.prog-row { display: flex; align-items: center; gap: 12px; margin: 14px 0 2px; }
.prog-bar { flex: 1; height: 8px; background: #F3EDE5; border-radius: 999px; overflow: hidden; }
.prog-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s; }
.prog-pct { font-size: 12.5px; font-weight: 700; color: var(--ink2); min-width: 38px; text-align: right; }

/* 档案 tab：档案卡 + 右侧 AI 行动卡 + Brief 预览 */
.archive-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
.arch-card .arch-row { display: flex; gap: 12px; padding: 9.5px 0; border-bottom: 1px dashed #F0EAE2; font-size: 13.5px; align-items: baseline; }
.arch-row:last-child { border-bottom: 0; }
.arch-row .k { min-width: 112px; color: var(--ink2); font-size: 12px; flex-shrink: 0; }
.arch-tags { margin: 0; }
.ai-card { background: linear-gradient(160deg, #FFF3EC, #FFE7D8); border: 1px solid #FFD9BE; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.ai-card-title { font-size: 15.5px; font-weight: 800; color: #C4520A; }
.ai-card p { font-size: 12.5px; color: #8A5A36; line-height: 1.75; }
.ai-card-btn { margin-top: auto; background: linear-gradient(90deg, #FF5B22, #FF8C64); color: #fff; border: 0; border-radius: 12px; padding: 13px 18px; font-size: 14.5px; font-weight: 700; cursor: pointer; font-family: inherit; box-shadow: 0 8px 20px rgba(255,91,34,.3); transition: .15s; }
.ai-card-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.brief-card { max-width: 1080px; }
.brief-preview { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13px; line-height: 1.75; color: var(--ink); background: #FAF7F2; border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; max-height: 280px; overflow-y: auto; margin-top: 8px; }
@media (max-width: 900px) { .archive-grid { grid-template-columns: 1fr; } }

/* chip 选中态（2026-09-30：chip=暗字提示，选中后标亮） */
.chat-hints .chip.on { border-color: var(--accent); color: var(--accent); background: #FFF6F1; opacity: 1; }

/* ═══ 执行工作台 ═══ */
.exec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.exec-head-actions { display: flex; gap: 8px; }
.exec-empty { background: #fff; border: 1.5px dashed var(--line); border-radius: 14px; padding: 34px 26px; text-align: center; color: var(--ink2); font-size: 13.5px; }
.exec-phase { margin-bottom: 18px; }
.exec-ph-name { font-size: 13px; font-weight: 700; color: var(--ink2); letter-spacing: 1px; margin: 8px 0 10px; text-transform: uppercase; }
.exec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.exec-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.exec-box-head { display: flex; align-items: center; gap: 8px; }
.exec-kind { font-size: 11.5px; background: var(--bg, #F4F0EA); border-radius: 6px; padding: 2px 7px; color: var(--ink2); white-space: nowrap; }
.exec-title { font-size: 13.5px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exec-state { font-size: 11px; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.exec-state.s-draft { background: #F4F0EA; color: var(--ink2); }
.exec-state.s-generated { background: #FFEDE4; color: #FF5B22; }
.exec-state.s-edited { background: #FFF4E5; color: #B76E00; }
.exec-state.s-done { background: #E5F6EC; color: #12805C; }
.exec-del { background: none; border: 0; cursor: pointer; color: var(--ink2); font-size: 15px; padding: 0 2px; }
.exec-del:hover { color: var(--err); }
.exec-prompt, .exec-output { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 12.5px; font-family: inherit; line-height: 1.55; resize: vertical; color: var(--ink); background: #FBF9F5; }
.exec-prompt:focus, .exec-output:focus { outline: 0; border-color: var(--accent); background: #fff; }
.exec-output { background: #fff; }
.exec-gen-row { display: flex; gap: 6px; flex-wrap: wrap; }
.exec-gen-row .btn-sm { padding: 6px 12px; font-size: 12px; }
.exec-img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* ═══ 热点雷达 ═══ */
.hotspot { max-width: 1080px; margin: 0 auto; }
.hs-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.hs-head h1 { font-size: 24px; }
.hs-toolbar { display: flex; gap: 8px; margin-bottom: 16px; }
.hs-crosses { margin-bottom: 20px; }
.hs-cross { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; font-size: 13.5px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); }
.hs-cards-head { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 10px; }
.hs-cards-head h2 { font-size: 17px; }
.hs-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.hs-board { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.hs-bd-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.hs-bd-head b { font-size: 14.5px; }
.hs-board ol { list-style: none; margin: 0; padding: 0; }
.hs-board li { display: flex; align-items: baseline; gap: 8px; padding: 4.5px 0; font-size: 13px; border-bottom: 1px dashed #F0EAE2; }
.hs-board li:last-child { border-bottom: 0; }
.hs-rank { min-width: 20px; text-align: right; color: var(--ink2); font-size: 12px; }
.hs-board li:nth-child(-n+3) .hs-rank { color: var(--err); font-weight: 700; }
.hs-board a { color: var(--ink); text-decoration: none; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-board a:hover { color: var(--accent); }
.hs-hot { font-size: 11px; color: var(--ink2); white-space: nowrap; }
.hs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.hs-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 13px; }
.hs-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.hs-card-head b { font-size: 14px; }
.hs-suit { font-size: 11.5px; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.hs-suit.hs-推荐 { background: #E5F6EC; color: #12805C; }
.hs-suit.hs-谨慎 { background: #FFF4E5; color: #B76E00; }
.hs-suit.hs-不建议 { background: #FDECEA; color: #C0362C; }
.hs-suit.hs-待判断 { background: #F4F0EA; color: var(--ink2); }
.hs-suit-reason { color: var(--ink2); font-size: 12px; margin-bottom: 8px; }
.hs-row { display: flex; gap: 8px; padding: 3.5px 0; line-height: 1.55; }
.hs-row .k { min-width: 58px; color: var(--ink2); font-size: 12px; flex-shrink: 0; }

/* ═══ 项目管理视图（2026-09-29：项目要有独立框架）═══ */
.projects-page { max-width: 1080px; margin: 0 auto; }
.proj-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.proj-head h1 { font-size: 24px; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.proj-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); transition: .15s; }
.proj-card:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(255,91,34,.14); transform: translateY(-2px); }
.proj-lv { font-size: 11.5px; font-weight: 700; align-self: flex-start; border-radius: 999px; padding: 3px 10px; color: #fff; }
.proj-lv.lv1 { background: #FF5B22; } .proj-lv.lv2 { background: #0891B2; } .proj-lv.lv3 { background: #F79009; }
.proj-name { font-size: 15px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); }
.proj-deliv { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-bar { height: 5px; background: #F0EAE2; border-radius: 999px; overflow: hidden; }
.proj-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 999px; }
.proj-empty { background: #fff; border: 1.5px dashed var(--line); border-radius: 14px; padding: 40px 26px; text-align: center; color: var(--ink2); font-size: 13.5px; }

/* ═══ 热点雷达：平台徽标 + 封面缩略图 ═══ */
.hs-logo { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.hs-bd-head b { margin-left: 2px; }
.hs-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }
.hs-board li { align-items: center; }

/* ═══ 2026-09-30 批次：对话记录区 / 热点图卡 / 项目建档 / 案例库 ═══ */

/* 侧栏分区 */
.side-sec { display: flex; flex-direction: column; min-height: 0; }
.side-sec-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px 2px; font-size: 11px; color: var(--ink2); letter-spacing: 1px; }
.side-add { background: none; border: 0; cursor: pointer; color: var(--ink2); font-size: 14px; padding: 0 4px; }
.side-add:hover { color: var(--accent); }
.side-list { overflow-y: auto; max-height: 200px; }
.side-empty { padding: 6px 10px; font-size: 12px; color: var(--ink2); }
.chat-item { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12.5px; cursor: pointer; color: var(--ink); border-left: 2px solid transparent; }
.chat-item:hover { background: rgba(255,91,34,.06); }
.chat-item.active { background: rgba(255,91,34,.10); border-left-color: var(--accent); }
.ci-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-del { background: none; border: 0; cursor: pointer; color: var(--ink2); font-size: 13px; padding: 0 2px; opacity: 0; }
.chat-item:hover .ci-del { opacity: 1; }
.ci-del:hover { color: var(--err); }

/* 热点雷达：平台 tab + 图大字少的热点卡 */
.hs-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.hs-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.hs-tab { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; color: var(--ink); font-family: inherit; }
.hs-tab:hover { border-color: var(--accent); }
.hs-tab.on { border-color: var(--accent); color: var(--accent); font-weight: 700; box-shadow: 0 2px 10px rgba(255,91,34,.12); }
.hs-tab .hs-logo { width: 20px; height: 20px; font-size: 11px; border-radius: 6px; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.hs-chips-label { font-size: 12px; color: var(--ink2); }
.hs-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: default; }
.hs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.hs-tile { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; transition: .15s; min-height: 150px; }
.hs-tile:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(255,91,34,.14); transform: translateY(-2px); }
.hs-tile img { width: 100%; height: 120px; object-fit: cover; display: block; }
.hs-tile.noimg img, .hs-tile img[onerror] { display: none; }
.hs-tile-noimg { width: 100%; height: 120px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #F4F0EA, #F1E8DF); }
.hs-tile-noimg .hs-logo { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; }
.hs-t-rank { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 7px; }
.hs-t-title { padding: 9px 11px 11px; font-size: 12.5px; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-interp { margin-top: 20px; }
.hs-interp summary { cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--ink); padding: 6px 0; }

/* 项目卡片上的档案信息行 */
.proj-info { font-size: 11.5px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 案例库（2026-09-29 用户拍板：只出「用户自己的过往案例」） */
.corpus-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.corpus-form select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; font-family: inherit; background: #fff; color: var(--ink); }
.cp-input { flex: 1; min-width: 240px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; font-family: inherit; background: #fff; color: var(--ink); }
.cp-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; box-shadow: var(--shadow); cursor: pointer; transition: transform .16s, box-shadow .16s, border-color .16s; }
.case-card:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--shadow-lg); }
.case-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.case-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.case-st { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.case-st.st-done { background: var(--accent-soft); color: var(--accent); }
.case-st.st-run { background: #EEF4FF; color: #2B62D9; }
.case-st.st-idle { background: #F1F2F4; color: #7A8290; }
.case-info { font-size: 11.5px; color: var(--ink2); margin-bottom: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.case-fact { font-size: 11.5px; color: var(--ink2); background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
.case-fact.muted { opacity: .75; }
.case-prog { display: flex; align-items: center; gap: 9px; }
.case-prog .muted { font-size: 11.5px; }
.case-bar { flex: 1; height: 5px; background: var(--bg2); border-radius: 999px; overflow: hidden; }
.case-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.case-empty-act { margin-top: 14px; }
.hs-tile.noimg::after { content: ''; display: block; height: 120px; background: linear-gradient(135deg, #FFF3EB, #F6F2EA); }
.hs-tile.noimg img { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   2026-09-29 大改版（用户拍板）：深色侧栏（对齐用户的版式模版）
   ═══════════════════════════════════════════════════════════ */
#sidebar { background: #17120C; border-right: 0; }
.brand-name { color: #fff; }
.brand-name span { background: linear-gradient(90deg, #FF5B22, #FF8C64); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-slogan { color: rgba(255,255,255,.42); }
.side-nav { display: block; width: 100%; text-align: left; background: none; border: 0; color: rgba(255,255,255,.82); padding: 11px 14px; border-radius: 12px; font-size: 13.5px; cursor: pointer; font-family: inherit; transition: .15s; }
.side-nav:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav.active { background: linear-gradient(90deg, #FF5B22, #FF8C64); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(255,91,34,.3); }
.side-nav .soon { float: right; font-style: normal; font-size: 10px; color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 1px 7px; }
.side-nav-label { color: rgba(255,255,255,.38); letter-spacing: 2px; padding: 0 14px; margin-top: 4px; }
.side-sec-head { color: rgba(255,255,255,.38); }
.side-add { color: rgba(255,255,255,.5); }
.side-add:hover { color: #FF8C64; }
#runList .run-item:hover { background: rgba(255,255,255,.06); }
#runList .run-item.active { background: rgba(255,91,34,.16); border-color: rgba(255,91,34,.5); }
.run-item .r-name { color: #F5F1EA; }
.run-item .r-meta { color: rgba(255,255,255,.45); }
.side-list .chat-item { color: #F5F1EA; }
.side-list .chat-item:hover { background: rgba(255,255,255,.06); }
.side-list .chat-item.active { background: rgba(255,91,34,.16); border-left-color: #FF5B22; }
.side-empty { color: rgba(255,255,255,.4); }
.user-card .uc-btn:hover { background: rgba(255,255,255,.07); }
.user-card .uc-name { color: #fff; }
.user-card .uc-tenant { color: rgba(255,255,255,.45); }
.user-card .uc-caret { color: rgba(255,255,255,.45); }
.sidebar-foot { color: rgba(255,255,255,.4); border-top: 1px solid rgba(255,255,255,.1); }

/* 热点雷达：编号列表式（无图无徽标，2026-09-29 用户拍板） */
.hs-boards2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.hs-board2 { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.hs-b2-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.hs-b2-head b { font-size: 15px; }
.hs-board2 ol { list-style: none; margin: 0; padding: 0; }
.hs-board2 li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px dashed #F0EAE2; }
.hs-board2 li:last-child { border-bottom: 0; }
.hs-rank2 { min-width: 24px; font-size: 15px; font-weight: 800; color: var(--ink2); text-align: right; font-variant-numeric: tabular-nums; }
.hs-board2 li.top3 .hs-rank2 { color: #FF5B22; }
.hs-board2 a { color: var(--ink); text-decoration: none; flex: 1; line-height: 1.5; }
.hs-board2 a:hover { color: #FF5B22; }
.hs-hot2 { font-size: 11px; color: var(--ink2); white-space: nowrap; }
.hs-crosses2 { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.hs-cross2 { background: #fff; border: 1px solid var(--line); border-left: 3px solid #FF5B22; border-radius: 10px; padding: 9px 14px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; box-shadow: var(--shadow); }
.hs-cross2 span { color: var(--ink2); font-size: 12px; white-space: nowrap; }

/* 项目执行总览 */
.exec-hub { display: flex; flex-direction: column; gap: 10px; }
.exec-hub-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 16px; cursor: pointer; box-shadow: var(--shadow); transition: .15s; }
.exec-hub-row:hover { border-color: #FF5B22; transform: translateY(-1px); }
.eh-main { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.eh-main b { font-size: 14.5px; }
.eh-main .muted { font-size: 12px; }
.eh-n { font-size: 12.5px; font-weight: 700; color: #C4520A; background: #FFF1E7; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

/* Skill 库 */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.skill-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.skill-card b { font-size: 14.5px; }
.skill-card.on { border-color: rgba(255,91,34,.4); background: linear-gradient(180deg, #FFF6F1, #fff); }
.skill-card span { font-size: 12.5px; color: var(--ink2); line-height: 1.65; }

/* 看板内的 brief 上传大卡 */
.brief-upload { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; border: 1.5px dashed rgba(255,91,34,.5); background: #FFF8F4; border-radius: 14px; padding: 34px 20px; cursor: pointer; font-family: inherit; transition: .15s; }
.brief-upload:hover { border-color: #FF5B22; background: #FFF4EE; }
.brief-upload b { font-size: 15px; color: var(--ink); }
.brief-upload span { font-size: 12px; color: var(--ink2); }

/* ═══ 2026-09-29 晚：项目执行合并 / 删除按钮 / 案例详情 ═══ */
.run-head-actions { display: flex; gap: 8px; align-items: center; }
.btn-danger { color: var(--err); border-color: #F6C6C0; }
.btn-danger:hover { background: #FDF1EF; border-color: var(--err); }
.case-sec { margin-top: 20px; }
.case-sec-title { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.case-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.case-step { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.case-step .n { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 999px; background: var(--bg2); color: var(--ink2); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.case-step.done .n { background: var(--accent); color: #fff; }
.case-step b { font-size: 13px; color: var(--ink); }
.case-step .muted { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.case-mat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.cm-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.cm-head b { font-size: 13.5px; }
.cm-body { font-size: 12px; color: var(--ink2); line-height: 1.65; white-space: pre-wrap; }
.cm-img { max-width: 100%; border-radius: 8px; margin-top: 8px; }

/* ═══ 2026-09-29：项目执行页补全样式（此前 proj-* 类全缺失导致页面裸文本）═══ */
.projects-page { display: flex; flex-direction: column; gap: 18px; }
.proj-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.proj-head h1 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 3px; }
.proj-stats { display: flex; gap: 10px; }
.stat-chip { display: flex; align-items: baseline; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow); }
.stat-chip b { font-size: 20px; font-weight: 800; color: var(--ink); }
.stat-chip span { font-size: 12.5px; color: var(--ink2); }
.stat-chip.on { border-color: var(--accent-line); background: var(--accent-soft); }
.stat-chip.on b { color: var(--accent); }
.proj-sec { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; color: var(--ink); margin-top: 4px; }
.proj-sec.sec-brief { color: var(--ink2); font-weight: 700; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.proj-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; gap: 8px; }
.proj-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.proj-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.proj-lv { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--bg2); color: var(--ink2); }
.proj-lv.lv1 { background: var(--accent-soft); color: var(--accent); }
.proj-lv.lv2 { background: #F3ECFF; color: #7A4FD6; }
.proj-lv.lv3 { background: #E8F3EC; color: #2E8B57; }
.proj-budget { font-size: 11.5px; color: var(--ink2); }
.proj-name { font-size: 16.5px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-info { font-size: 12.5px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-status { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.proj-status .st-pct { margin-left: auto; font-size: 12px; color: var(--ink2); font-weight: 800; }
.proj-status .st-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 999px; }
.proj-status.st-running { color: #C2531B; }
.proj-status.st-running .st-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.proj-status.st-brief { color: var(--ink2); }
.proj-status.st-brief .st-dot { background: #C9C4BC; }
.proj-bar { height: 7px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.proj-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #FF9A62); transition: width .3s ease; }
.proj-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink2); }
.proj-empty { background: #fff; border: 1.5px dashed var(--accent-line); border-radius: var(--radius); padding: 42px 24px; text-align: center; color: var(--ink2); font-size: 14px; line-height: 1.7; }

/* ═══ 2026-09-30 用户指令：欢迎区上移 + 橙字放大 + 豆包式问候 + 工具行明显图标 ═══ */
.chat-empty { padding-top: clamp(26px, 6.5vh, 68px); }
.chat-welcome .hero-kicker { font-size: 18px; letter-spacing: 6px; font-weight: 800; background: linear-gradient(90deg, var(--accent), var(--accent2, #f79009)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chat-welcome .muted { margin-top: 6px; }
.hero-greet { font-size: 36px; font-weight: 800; color: var(--ink); margin: 26px 0 0; letter-spacing: 1px; }
.chat-inputwrap { margin-top: 24px; }
.tool-btn { width: 38px; height: 38px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink2); }
.tool-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 4px 14px rgba(255,91,34,.16); }
.tool-btn svg { display: block; }

/* ─────────────────────────────────────────────────────────────
   项目执行工作台六 tab（2026-09-29 用户参考图版式）
   ───────────────────────────────────────────────────────────── */

/* 项目头部进度条 */
.head-prog { display:flex; align-items:center; gap:10px; margin:10px 0 2px; }
.hp-bar { flex:1; height:8px; border-radius:99px; background:var(--bg2, #f1ede6); overflow:hidden; }
.hp-bar i { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#FF5B22,#FF8C64); transition:width .4s ease; }
.hp-pct { font-size:12px; font-weight:700; color:var(--accent, #FF5B22); min-width:38px; text-align:right; }

/* 工作台通用工具行 / 空态 / 删除钮 */
.ws-toolbar { display:flex; align-items:center; justify-content:space-between; margin:6px 0 14px; }
.ws-toolbar b { font-size:16px; }
.ws-tools { display:flex; gap:8px; }
.ws-empty { background:var(--surface,#fff); border:1px dashed var(--accent-line,#FFD6C8); border-radius:14px; padding:26px 22px; color:var(--text-muted,#8a8377); font-size:13.5px; line-height:1.7; }
.ws-del { border:0; background:none; color:#c2bab0; font-size:16px; cursor:pointer; padding:2px 6px; border-radius:6px; flex:none; }
.ws-del:hover { color:#e5484d; background:#fdecec; }

/* 内容产出 · 物料卡 */
.mat-card { background:var(--surface,#fff); border:1px solid var(--surface-border,#eee7dc); border-radius:14px; padding:14px 16px; margin-bottom:14px; box-shadow:0 1px 6px rgba(31,26,18,.04); }
.mat-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.mat-kind { font-size:12px; font-weight:700; padding:4px 10px; border-radius:99px; flex:none; }
.k-kv { background:#FFF2EC; color:#D14A12; }
.k-poster { background:#eef4ff; color:#2f6bdb; }
.k-copy { background:#effaf1; color:#1f9d55; }
.k-script { background:#f6efff; color:#7c4dd4; }
.k-h5 { background:#fdf3e0; color:#c07b12; }
.k-offline { background:#f0f0f0; color:#666; }
.mat-card input, .mat-card select, .mat-card textarea { border:1px solid transparent; background:transparent; border-radius:8px; padding:6px 8px; font-size:13.5px; color:var(--text,#333); }
.mat-card input:hover, .mat-card select:hover { border-color:var(--surface-border,#eee7dc); }
.mat-card input:focus, .mat-card select:focus, .mat-card textarea:focus { border-color:var(--accent,#FF5B22); background:#fff; outline:none; }
.mat-title { font-weight:700; width:200px; }
.mat-spec { flex:1; min-width:180px; color:var(--text-muted,#8a8377); }
.mat-owner { width:110px; }
.mat-date { width:140px; }
.mat-status { border:1px solid var(--surface-border,#eee7dc)!important; background:#fff!important; }
.mat-req { margin-top:8px; border-top:1px dashed var(--surface-border,#eee7dc); padding-top:8px; }
.mat-req summary { cursor:pointer; font-size:13px; font-weight:600; color:var(--accent,#FF5B22); list-style:none; }
.mat-req summary::before { content:'⌄ '; }
.mat-req[open] summary::before { content:'⌃ '; }
.mat-prompt { width:100%; margin-top:8px; border:1px solid var(--surface-border,#eee7dc)!important; background:#fbf9f6!important; resize:vertical; }
.mat-actions { display:flex; align-items:center; gap:8px; margin:10px 0 4px; flex-wrap:wrap; }
.mat-hint { font-size:12px; color:var(--text-muted,#8a8377); }
.mat-fb { display:flex; gap:8px; align-items:flex-start; margin-bottom:8px; }
.mat-fb textarea { flex:1; border:1px solid #ffe1b8!important; background:#fffaf2!important; resize:vertical; }
.mat-output { width:100%; border:1px solid var(--surface-border,#eee7dc)!important; background:#fbf9f6!important; resize:vertical; line-height:1.7; }
.exec-img { max-width:320px; border-radius:10px; margin-top:8px; border:1px solid var(--surface-border,#eee7dc); }

/* 达人话题 */
.kol-toolbar { display:flex; align-items:center; justify-content:space-between; margin:6px 0 14px; flex-wrap:wrap; gap:8px; }
.kol-pills { display:flex; gap:6px; flex-wrap:wrap; }
.kol-pill { border:1px solid var(--surface-border,#eee7dc); background:#fff; border-radius:99px; padding:7px 16px; font-size:13px; cursor:pointer; color:var(--text,#333); }
.kol-pill.on { background:var(--accent,#FF5B22); border-color:var(--accent,#FF5B22); color:#fff; font-weight:700; }
.kol-grid { display:grid; grid-template-columns:1.4fr 1fr; gap:18px; align-items:start; }
@media (max-width:1100px) { .kol-grid { grid-template-columns:1fr; } }
.kol-col-head { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.kol-col-head b { font-size:14.5px; }
.kol-col-head .btn-ghost { margin-left:auto; }
.kol-card, .topic-card { background:var(--surface,#fff); border:1px solid var(--surface-border,#eee7dc); border-radius:14px; padding:12px 14px; margin-bottom:12px; }
.kol-card input, .kol-card select, .topic-card input, .topic-card textarea { border:1px solid transparent; background:transparent; border-radius:8px; padding:6px 8px; font-size:13.5px; width:100%; color:var(--text,#333); }
.kol-card input:hover, .topic-card input:hover { border-color:var(--surface-border,#eee7dc); }
.kol-card input:focus, .kol-card select:focus, .topic-card input:focus, .topic-card textarea:focus { border-color:var(--accent,#FF5B22); background:#fff; outline:none; }
.kol-head { display:flex; align-items:center; gap:8px; }
.kol-head input, .kol-head select { width:auto; }
.kol-head .kol-title { flex:1; font-weight:700; min-width:120px; }
.kol-head .kol-fans { width:96px; }
.kol-plat { font-size:12px; font-weight:700; background:#1f1c18; color:#fff; border-radius:8px; padding:5px 10px; flex:none; }
.kol-row { display:flex; gap:8px; margin-top:4px; }
.kol-row input { flex:1; }
.kol-card > input { margin-top:4px; }
.tp-head { display:flex; align-items:center; gap:6px; }
.tp-tag { font-weight:800; color:var(--accent,#FF5B22); font-size:16px; }
.tp-title { font-weight:700!important; }
.topic-card textarea { margin-top:6px; border:1px solid var(--surface-border,#eee7dc)!important; background:#fbf9f6!important; resize:vertical; }

/* 素材资产库 · 项目文件柜（M3-#7） */
.asset-stats { margin:2px 0 12px; font-size:12.5px; }
.asset-list { display:flex; flex-direction:column; gap:8px; }
.asset-row { display:flex; align-items:center; gap:12px; background:var(--surface,#fff); border:1px solid var(--surface-border,#eee7dc); border-radius:12px; padding:10px 14px; }
.asset-thumb { width:44px; height:44px; flex:none; border-radius:9px; overflow:hidden; background:#f4efe8; display:flex; align-items:center; justify-content:center; }
.asset-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.asset-thumb-txt { font-size:16px; font-weight:800; color:var(--accent,#FF5B22); background:var(--accent-soft,#FFF2ED); }
.asset-main { flex:1; min-width:0; }
.asset-name { font-weight:600; font-size:13.5px; word-break:break-all; }
.asset-meta { font-size:12px; color:var(--text-muted,#8a8377); margin-top:3px; }
.asset-name-edit { width:100%; border:1px solid var(--accent,#FF5B22); border-radius:7px; padding:4px 8px; font-size:13.5px; font-weight:600; }
.asset-acts { display:flex; gap:6px; flex:none; }
.asset-q { border:1px solid var(--surface-border,#eee7dc); border-radius:99px; padding:7px 14px; font-size:13px; min-width:210px; background:#fff; }
.asset-q:focus { border-color:var(--accent,#FF5B22); outline:none; }
@media (max-width:760px) { .asset-row { flex-wrap:wrap; } .asset-acts { width:100%; justify-content:flex-end; } }

/* 会议记录 */
.meet-card { background:var(--surface,#fff); border:1px solid var(--surface-border,#eee7dc); border-radius:14px; padding:14px 16px; margin-bottom:14px; }
.meet-head { display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.meet-title { font-weight:700; flex:1; border:1px solid transparent!important; background:transparent; border-radius:8px; padding:6px 8px; }
.meet-title:focus { border-color:var(--accent,#FF5B22)!important; outline:none; background:#fff!important; }
.meet-head input[type="date"] { border:1px solid var(--surface-border,#eee7dc); border-radius:8px; padding:6px 8px; }
.meet-card textarea { width:100%; border:1px solid var(--surface-border,#eee7dc); border-radius:10px; background:#fbf9f6; padding:10px 12px; font-size:13.5px; line-height:1.7; resize:vertical; }
.meet-audio { display:flex; align-items:center; gap:10px; margin-top:10px; flex-wrap:wrap; font-size:12.5px; color:var(--text-muted,#8a8377); }
.meet-audio audio { height:34px; }
.rec-dot { width:10px; height:10px; border-radius:99px; background:#e5484d; display:inline-block; animation:recblink 1s infinite; }
@keyframes recblink { 50% { opacity:.25; } }

/* 执行大表 */
.gantt-wrap { background:var(--surface,#fff); border:1px solid var(--surface-border,#eee7dc); border-radius:14px; overflow:auto; }
.gantt { width:100%; border-collapse:collapse; font-size:13.5px; min-width:760px; }
.gantt th { text-align:left; padding:12px 14px; font-size:12.5px; color:var(--text-muted,#8a8377); border-bottom:1px solid var(--surface-border,#eee7dc); white-space:nowrap; }
.gantt td { padding:11px 14px; border-bottom:1px solid #f4efe8; vertical-align:middle; }
.gantt tr:last-child td { border-bottom:0; }
.g-track { display:flex; gap:3px; }
.g-track i { width:26px; height:10px; border-radius:99px; background:#f0ebe3; }
.g-track i.past { background:#FFD6C8; }
.g-track i.cur { background:var(--accent,#FF5B22); }
.g-ph { font-size:12px; color:var(--text-muted,#8a8377); margin-left:8px; }

/* 项目复盘 */
.rv-grid { display:grid; grid-template-columns:1fr 1.1fr; gap:18px; align-items:start; }
@media (max-width:1100px) { .rv-grid { grid-template-columns:1fr; } }
.rv-col .card { margin-bottom:16px; }
.rv-col textarea, .rv-report textarea { width:100%; border:1px solid var(--surface-border,#eee7dc); border-radius:10px; background:#fbf9f6; padding:10px 12px; font-size:13.5px; line-height:1.7; resize:vertical; }
.rv-upload { width:100%; border:1px dashed var(--accent-line,#FFD6C8); background:#FFFBF7; color:var(--accent,#FF5B22); border-radius:10px; padding:12px; font-size:13.5px; font-weight:600; cursor:pointer; }
.rv-upload:hover { background:#FFF4EE; }
.rv-ref { display:flex; align-items:center; gap:8px; background:#fbf9f6; border:1px solid var(--surface-border,#eee7dc); border-radius:8px; padding:6px 10px; margin-top:8px; font-size:13px; }
.rv-ref button { margin-left:auto; border:0; background:none; color:#c2bab0; cursor:pointer; }
.rv-ref button:hover { color:#e5484d; }
.rv-actions { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }

/* 新建弹层 · 单环节直达快捷条 */
.pkg-quick { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:2px 0 12px; }
.pq-label { font-size:12.5px; color:var(--text-muted,#8a8377); }
.pq-chip { border:1px solid var(--surface-border,#eee7dc); background:#fff; border-radius:99px; padding:6px 14px; font-size:12.5px; cursor:pointer; color:var(--text,#333); }
.pq-chip:hover { border-color:var(--accent,#FF5B22); color:var(--accent,#FF5B22); }
.pq-chip.on { background:var(--accent,#FF5B22); border-color:var(--accent,#FF5B22); color:#fff; font-weight:700; }

/* 待办 · 每日 Review */
.todo-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; align-items:start; }
.todo-col { min-width: 0; overflow: hidden; }
.todo-list { min-width: 0; }
@media (max-width:1000px) { .todo-grid { grid-template-columns:1fr; } }
.todo-add { display:flex; gap:8px; margin-bottom:12px; }
.todo-add input { flex:1; border:1px solid var(--surface-border,#eee7dc); border-radius:10px; padding:10px 12px; font-size:13.5px; }
.todo-item { display:flex; align-items:center; gap:10px; padding:9px 6px; border-bottom:1px solid #f4efe8; font-size:13.5px; }
.todo-item.done .todo-text { text-decoration:line-through; color:var(--text-muted,#8a8377); }
.todo-text { flex:1; }
.todo-proj { font-size:11.5px; background:#FFF2EC; color:#D14A12; border-radius:99px; padding:3px 10px; flex:none; }
.rv-date { border:1px solid var(--surface-border,#eee7dc); border-radius:8px; padding:5px 8px; font-size:13px; }
#dailyRv { width:100%; border:1px solid var(--surface-border,#eee7dc); border-radius:10px; background:#fbf9f6; padding:10px 12px; font-size:13.5px; line-height:1.7; resize:vertical; }
.rv-hist { margin-top: 14px; }
.rv-hist-title { font-size: 12.5px; color: var(--text-muted, #8a8377); margin-bottom: 6px; }

/* ── 执行中项目侧栏（2026-09-29 用户批：红框处 = 正在执行中的项目列表）── */
#projRail { width: 208px; flex: none; background: #FBF9F4; border-right: 1px solid #EDE7DC; display: flex; flex-direction: column; padding: 16px 12px; gap: 10px; overflow-y: auto; }
#projRail.hidden { display: none; }
.rail-head { font-size: 12.5px; font-weight: 700; color: #8A8377; letter-spacing: .5px; padding: 0 4px; }
.rail-item { background: #fff; border: 1px solid #EDE7DC; border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: .15s; }
.rail-item:hover { border-color: #FFBDA7; box-shadow: 0 4px 12px rgba(255,91,34,.12); }
.rail-item.on { border-color: #FF5B22; box-shadow: 0 0 0 1px #FF5B22 inset; }
.rail-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #33302B; }
/* 名字单独截断、标签常显：两个都塞进 nowrap 的话，名字一长标签就被省略号挤没了（2026-10-08 截图实证） */
.rail-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 中间栏的"线/终态"小标（2026-10-08：app.js 里一直在用 .rail-line，但样式表里没这条 —— 标签裸着在跑。
   这一栏现在按线取数（比稿栏显示终态、执行栏显示"执行"），标的作用是"这一条处在哪个阶段"。） */
.rail-line { font-style: normal; font-weight: 500; font-size: 10.5px; line-height: 16px; margin-left: 6px; padding: 0 5px; border-radius: 6px; vertical-align: middle; display: inline-block; }
.rail-line.ln-pt { background: #FFEDE4; color: #C2410C; }
.rail-line.ln-ex { background: #E7F1FA; color: #1B5E8C; }
.rail-client { font-size: 11.5px; color: #8A8377; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-bar { height: 4px; background: #F0EBE1; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.rail-bar i { display: block; height: 100%; background: linear-gradient(90deg,#FF5B22,#FF8C64); border-radius: 99px; }
.rail-meta { font-size: 11px; color: #A39B8D; margin-top: 5px; }
.rail-empty { font-size: 12px; color: #A39B8D; padding: 6px 4px; line-height: 1.6; }

/* ── 物料卡 2026-09-29 用户批改造：类型可选下拉 + 数量字段 + 添加物料弹窗 ── */
select.mat-kind { appearance:auto; border:1px solid #EDE7DC; background:#fff; cursor:pointer; color:#33302B; }
select.mat-kind:focus { outline:2px solid #FFD6C8; }
.mat-qty-wrap { display:inline-flex; align-items:center; gap:4px; flex:none; }
.mat-qty-wrap label { font-size:12px; color:#A39B8D; }
.mat-qty { width:56px; text-align:center; }
.mat-form-row { display:grid; grid-template-columns:80px 1fr 1fr; gap:10px; }
.mat-form-row label { margin-top:0; }
.modal-card .mat-form-row input { width:100%; }

/* ── 客户与案例库 · CRM 小系统（2026-09-29 用户指令，对齐用户参考图）── */
.crm-page { max-width: 1080px; }
.crm-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.crm-logo { width: 46px; height: 46px; flex: none; border-radius: 12px; background: #1a1a1a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.crm-head h1 { font-size: 20px; margin: 0 0 4px; }
.crm-head .muted { font-size: 12.5px; line-height: 1.6; }
.crm-tabs { display: inline-flex; background: #fff; border: 1px solid #EDE7DC; border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 18px; }
.crm-tab { border: 0; background: none; border-radius: 999px; padding: 8px 20px; font-size: 13.5px; cursor: pointer; color: #57534a; font-family: inherit; }
.crm-tab.on { background: #1a1a1a; color: #fff; font-weight: 700; }
.crm-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 900px) { .crm-stats { grid-template-columns: repeat(3, 1fr); } }
.crm-chip { background: #fff; border: 1px solid #EDE7DC; border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: .15s; }
.crm-chip:hover { border-color: #FFBDA7; }
.crm-chip.on { border-color: #FF5B22; box-shadow: 0 0 0 1px #FF5B22 inset; }
.crm-chip b { font-size: 20px; display: block; }
.crm-chip span { font-size: 12px; color: #8A8377; }
.crm-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.crm-bar input { flex: 1; border: 1px solid #EDE7DC; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; background: #fff; }
.crm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.client-card, .case2-card { background: #fff; border: 1px solid #EDE7DC; border-radius: 14px; padding: 16px; cursor: pointer; transition: .15s; display: flex; flex-direction: column; gap: 8px; }
.client-card:hover, .case2-card:hover { border-color: #FFBDA7; box-shadow: 0 6px 18px rgba(255,91,34,.10); }
.cc-top { display: flex; align-items: center; gap: 8px; }
.cc-top b { font-size: 15px; }
.cc-grade { font-size: 11px; border-radius: 6px; padding: 2px 8px; font-weight: 700; }
.g-a { background: #FFF2EC; color: #D14A12; }
.g-b { background: #EDF2FF; color: #3B6FE0; }
.g-c { background: #F1EFEA; color: #8A8377; }
.cc-status { margin-left: auto; font-size: 11.5px; border-radius: 6px; padding: 3px 10px; font-weight: 700; }
.st-potential { background: #F1EFEA; color: #8A8377; }
.st-following { background: #FFF7E0; color: #B07D10; }
.st-proposing { background: #FFF2EC; color: #D14A12; }
.st-won { background: #E5F6EC; color: #0A8F4C; }
.st-lost { background: #FBE9E9; color: #C0392B; }
.cc-industry { font-size: 12.5px; color: #8A8377; }
.cc-notes { font-size: 13px; line-height: 1.65; color: #33302B; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px solid #F4EFE8; font-size: 12.5px; }
.cc-acts button { border: 0; background: none; color: #D14A12; font-size: 12.5px; cursor: pointer; padding: 2px 6px; font-family: inherit; }
.cc-acts .cc-del { color: #C2BAB0; }
.cc-acts .cc-del:hover { color: #C0392B; }
.case2-type { background: #1a1a1a; color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 10px; }
.cc2-top { display: flex; justify-content: space-between; align-items: center; }
.case2-title { font-size: 15px; font-weight: 700; }
.cc2-sub { font-size: 12.5px; color: #8A8377; }
.cc2-desc { font-size: 13px; line-height: 1.65; color: #33302B; }
.cc2-plats { display: flex; flex-wrap: wrap; gap: 10px; }
.plat-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #57534a; }
.plat-dot i { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.crm-archive-sec { margin-top: 26px; }
.crm-sec-title { font-size: 13.5px; font-weight: 700; color: #57534a; margin-bottom: 12px; }
.crm-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 900px) { .crm-detail-grid { grid-template-columns: 1fr; } }
.skill-card { border-color: #FFD6C8; }
.skill-profile { white-space: pre-wrap; font-family: inherit; font-size: 13.5px; line-height: 1.8; background: #FFF9F4; border: 1px solid #FFE3CF; border-radius: 10px; padding: 14px; margin: 0; }
.memo-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 6px; border-bottom: 1px solid #F4EFE8; font-size: 13.5px; }
.memo-text { flex: 1; line-height: 1.65; }
.mat2-card { margin-bottom: 12px; }
#caseReview, #caseDetail2 textarea { width: 100%; border: 1px solid #EDE7DC; border-radius: 10px; background: #FBF9F6; padding: 12px; font-size: 13.5px; line-height: 1.7; font-family: inherit; resize: vertical; }

/* ── 多附件行（2026-09-29 用户批：只能传一张图不合理 → 文件/图片可多张，逐个可删）── */
.attach-row { display: flex; flex-wrap: wrap; gap: 8px; }
.attach-row .attach-chip { margin-bottom: 0; }
.msg.user .msg-img + .msg-img { margin-top: 6px; }
.msg.user .msg-imgs-wrap, .msg.user { }

/* ── 弹窗表单统一美化（2026-09-29 用户批"这些设计都太丑了"：原生 select、80px 首列错用）── */
.modal-card select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 34px 11px 13px;
  font-size: 14px; font-family: inherit; color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%238A8377' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 13px center;
}
.modal-card select:focus, .modal-card input:focus, .modal-card textarea:focus {
  outline: none; border-color: #FF5B22; box-shadow: 0 0 0 3px rgba(255,91,34,.13);
}
.modal-card input[type='file'] { padding: 9px 12px; background: #FBF9F6; font-size: 13px; }
.modal-card input[type='date'], .modal-card input[type='number'] { color: var(--ink); }
.fm-sec { font-size: 12px; font-weight: 800; color: #D14A12; letter-spacing: 1.5px; margin: 18px 0 10px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 6px; }
.fm-sec:first-of-type { border-top: 0; margin-top: 4px; padding-top: 0; }
.fm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .fm-grid { grid-template-columns: 1fr; } }
.fm-grid .fm-field label, .modal-card .fm-field label { margin: 0 0 6px; }
.fm-span2 { grid-column: span 2; }
.fm-span3 { grid-column: span 3; }
@media (max-width: 640px) { .fm-span2, .fm-span3 { grid-column: span 1; } }

/* ── CRM 双 tab 重做（2026-09-29 用户批：两个 icon 堆一块分不清）── */
.crm-tabs { display: flex; gap: 12px; background: transparent; border: 0; padding: 0; margin-bottom: 20px; }
.crm-tab {
  display: inline-flex; align-items: center; gap: 9px; border: 1.5px solid var(--line); background: #fff;
  border-radius: 14px; padding: 11px 24px; font-size: 14px; font-family: inherit; color: var(--ink2);
  cursor: pointer; transition: .15s; font-weight: 600;
}
.crm-tab .ct-ico { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; background: #F6F2EA; }
.crm-tab:hover { border-color: #FFBDA7; color: var(--ink); }
.crm-tab.on { background: linear-gradient(135deg, #FF5B22, #FF7F4C); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(255,91,34,.28); }
.crm-tab.on .ct-ico { background: rgba(255,255,255,.22); }

/* ── 待办 · 每日 Review · 项目日历（2026-09-29 用户批"太丑，重设计"）── */
.todo-page { max-width: 1080px; }
.todo-add-row { display: flex; gap: 8px; margin-bottom: 12px; }
.todo-add-row input[type="text"], .todo-add-row #todoInp { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; background: #fff; min-width: 0; }
.todo-proj-sel { width: 130px; flex: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; font-size: 12.5px; background: #fff; color: var(--ink); cursor: pointer; }
.todo-due { width: 140px; flex: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; font-size: 12.5px; background: #fff; color: var(--ink); }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px solid #F4EFE8; font-size: 13.5px; }
.todo-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px; border-bottom: 1px solid #F4EFE8; font-size: 13.5px; }
.todo-item:last-child { border-bottom: 0; }
.todo-item .todo-text { flex: 1; min-width: 0; word-break: break-all; line-height: 1.65; }
/* 多行待办时，行内小件跟首行对齐 */
.todo-item .todo-due-chip, .todo-item .todo-proj, .todo-item .ws-del { margin-top: 2px; }
.todo-item.done .todo-text { text-decoration: line-through; color: #B9B1A4; }
.todo-due-chip { flex: none; font-size: 11px; color: #8A8377; background: #F6F2EA; border-radius: 6px; padding: 3px 8px; }
.todo-proj { flex: none; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 8px; cursor: pointer; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-card { margin-top: 18px; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav b { font-size: 14.5px; min-width: 96px; text-align: center; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cal-lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.cal-lg:hover { border-color: #FFBDA7; }
.cal-lg i { width: 10px; height: 10px; border-radius: 99px; display: inline-block; }
.cal-grid { background: #fff; }
.cal-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-wd span { text-align: center; font-size: 11.5px; color: #A39B8D; font-weight: 700; padding: 4px 0; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell { min-height: 84px; background: #FBF9F4; border: 1px solid #F0EBE1; border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal-cell.is-pad { background: transparent; border-style: dashed; opacity: .5; }
.cal-cell.is-today { border-color: #FF5B22; box-shadow: 0 0 0 1px #FF5B22 inset; background: #FFF7F3; }
.cal-d { font-size: 12px; font-weight: 700; color: #57534a; }
.is-today .cal-d { color: #D14A12; }
.cal-evs { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal-ev { font-size: 10.5px; border-radius: 6px; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-proj { background: color-mix(in srgb, var(--pc, #FF5B22) 14%, #fff); color: var(--pc, #FF5B22); font-weight: 700; }
.cal-proj:hover { background: var(--pc, #FF5B22); color: #fff; }
.cal-todo { background: #EDF2FF; color: #3B6FE0; }
.cal-todo.is-done { opacity: .5; text-decoration: line-through; }
.cal-rv { background: #F1EFEA; color: #8A8377; align-self: flex-start; }
.cal-tip { margin-top: 12px; }

/* ── 热点雷达四项改造（2026-09-29 用户批：加小图/榜单展开/热梗卡一行折叠/微博第一）── */
.hs-board2 li { display: flex; align-items: center; gap: 8px; }
.hs-board2 li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-thumb { width: 34px; height: 26px; object-fit: cover; border-radius: 6px; flex: none; border: 1px solid #EDE7DC; background: #F6F2EA; }
.hs-more { margin: 8px 0 0 42px; color: #D14A12; border-color: #FFD6C8; }
.hs-cards-head { font-size: 15px; font-weight: 800; margin: 26px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.hs-card { background: #fff; border: 1px solid #EDE7DC; border-radius: 14px; margin-bottom: 10px; overflow: hidden; transition: .15s; }
.hs-card:hover { border-color: #FFBDA7; }
.hs-card summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.hs-card summary::-webkit-details-marker { display: none; }
.hs-card-img { width: 74px; height: 52px; object-fit: cover; border-radius: 9px; flex: none; border: 1px solid #F0EBE1; }
.hs-card-img-ph { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; background: #FFF3EB; }
.hs-card-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hs-card-sum b { font-size: 14.5px; }
.hs-card-sum .hs-why { font-size: 12.5px; color: #8A8377; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-open { flex: none; font-size: 12px; color: #D14A12; font-weight: 700; }
.hs-card[open] .hs-open::after { content: ''; }
.hs-card[open] summary { border-bottom: 1px dashed #F0EBE1; }
.hs-card-body { padding: 12px 18px 14px; }

/* ── 达人库（2026-09-29：前端先做、契约口）── */
.kol-page { max-width: 1080px; }
.kol-search { display: flex; gap: 10px; margin-bottom: 16px; }
.kol-search input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 13.5px; background: #fff; }
.sel-line { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 13.5px; background: #fff; color: var(--ink); cursor: pointer; font-family: inherit; }
.kol-prov-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #FBF9F4; border: 1px dashed #E4DCCD; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: 12.5px; }
.kol-prov { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.kol-prov b { font-weight: 700; }
.kol-prov-note { color: #A39B8D; font-size: 12px; }
.kol-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.kol-lib-card { background: #fff; border: 1px solid #EDE7DC; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.klc-top { display: flex; align-items: center; gap: 10px; }
.klc-avatar { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #FF5B22, #FF8C64); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; flex: none; }
.klc-top img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; }
.klc-name { flex: 1; min-width: 0; }
.klc-name b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.klc-name span { font-size: 12px; color: #8A8377; }
.klc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.klc-tags span { font-size: 11.5px; color: #D14A12; background: #FFF3EB; border-radius: 6px; padding: 2px 8px; }
.klc-facts { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: #57534a; }
.klc-works { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #8A8377; }
.klc-demo { font-size: 11px; color: #B07D10; background: #FFF7E0; border-radius: 6px; padding: 3px 8px; align-self: flex-start; }
.kol-fav-card { margin-top: 20px; }
.kol-fav-item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid #F4EFE8; font-size: 13.5px; }
.kol-fav-item:last-child { border-bottom: 0; }
.kol-fav-item b { flex: none; }
.kol-fav-item .muted { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 工作台大入口（2026-09-29 用户：工作台要能看到案例库/达人库/日历）── */
.hub-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 860px) { .hub-entries { grid-template-columns: 1fr; } }
.hub-entry { background: #fff; border: 1.5px solid #EDE7DC; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: .15s; position: relative; }
.hub-entry:hover { border-color: #FFBDA7; box-shadow: 0 8px 22px rgba(255,91,34,.12); transform: translateY(-1px); }
.hub-entry .he-ico { font-size: 24px; }
.hub-entry b { font-size: 14.5px; }
.hub-entry span { font-size: 12.5px; color: #8A8377; line-height: 1.6; }
.hub-entry em { font-style: normal; font-size: 12px; color: #D14A12; font-weight: 700; }

/* ═══ 2026-09-30 用户指令：全站去 emoji，统一单线条 SVG 图标 ═══ */
svg.ico { width: 1em; height: 1em; vertical-align: -0.14em; flex-shrink: 0; }
.ico.spin { animation: ico-spin .9s linear infinite; }
@keyframes ico-spin { to { transform: rotate(360deg); } }
.side-nav .ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.chat-hints .chip .ico { width: 15px; height: 15px; vertical-align: -3px; margin-right: 3px; }
.run-tab .ico { width: 15px; height: 15px; vertical-align: -2.5px; margin-right: 3px; }
.proj-head h1 .ico, .crm-head h1 .ico { width: 21px; height: 21px; vertical-align: -3px; margin-right: 4px; }
.card-head h2 .ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.card-head h3 .ico { width: 16px; height: 16px; vertical-align: -2.5px; margin-right: 3px; }
.btn-primary .ico, .btn-ghost .ico, .btn-danger-ghost .ico { vertical-align: -2.5px; margin-right: 3px; }
.crm-logo .ico { width: 22px; height: 22px; }
.crm-tab .ct-ico .ico { width: 16px; height: 16px; }
.hub-entry .he-ico .ico { width: 24px; height: 24px; }
.ai-card-title .ico { width: 15px; height: 15px; margin-right: 3px; }
.hs-card-img-ph { color: #D14A12; }
.hs-card-img-ph .ico { width: 20px; height: 20px; }
.attach-chip .ico { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; color: #B9B1A4; }
.todo-due-chip .ico, .cal-ev .ico { width: 11px; height: 11px; vertical-align: -1.5px; margin-right: 2px; }
.hs-open { display: inline-flex; align-items: center; color: #D14A12; }
.hs-open .ico { width: 14px; height: 14px; transition: transform .15s; }
.hs-card[open] .hs-open .ico { transform: rotate(180deg); }
.attach-chip img.chip-thumb + * { margin-left: 2px; }

/* ── 热梗解读卡：两行摘要（标题+评级 / 一句话）+ 展开重设计（2026-09-30 用户批乱码/丑）── */
.hs-card summary { padding: 13px 16px; }
.hs-sum-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; }
.hs-sum-l1 b { font-size: 14.5px; min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-sum-l1 .hs-suit { flex: none; }
.hs-card-sum .hs-why { display: block; font-size: 12.5px; color: #8A8377; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.hs-d-sec .hs-d-k { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #D14A12; background: #FFF3EB; border-radius: 6px; padding: 2px 8px; margin-bottom: 6px; }
.hs-d-sec p { margin: 0; font-size: 13.5px; line-height: 1.75; color: #3D372E; }
.hs-d-2col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px 18px; }
@media (max-width: 720px) { .hs-d-2col { grid-template-columns: 1fr; } }
.hs-d-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-d-tags span { font-size: 12px; color: #57534A; background: #F6F2EA; border: 1px solid #EDE7DC; border-radius: 999px; padding: 3px 10px; }

/* ── 内容产出：空内容栏骨架（2026-09-30 用户拍板：不要引导文案，要空的工作台）── */
.exec-empty-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.ghost-mat { border: 1.5px dashed #E4DCCD; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.gm-row { display: flex; gap: 8px; align-items: center; }
.gm-pill { width: 66px; height: 22px; border-radius: 999px; background: #F6F2EA; flex: none; }
.gm-bar { height: 14px; border-radius: 6px; background: #F6F2EA; flex: 1; }
.gm-bar.w1 { flex: .7; }
.gm-bar.w2 { flex: 1.7; }
.gm-line { height: 10px; border-radius: 6px; background: #F6F2EA; }
.gm-line.short { width: 46%; }
.gm-out { flex: 1; border-radius: 10px; background: #FBF9F4; border: 1px dashed #EDE7DC; min-height: 60px; }

/* ── 执行大表：空表骨架（2026-09-29 用户批：没数据也要把空表做出来）── */
.gantt-empty .g-ghost td { padding: 15px 14px; }
.g-sk { display: inline-block; height: 12px; border-radius: 6px; background: #F6F2EA; }
.g-sk.w1 { width: 56px; }
.g-sk.w3 { width: 140px; }
.g-sk.g-sk-pill { width: 52px; height: 18px; border-radius: 999px; }

/* ── 会议卡：左录音按钮 / 右记录栏（2026-09-29 用户批：录音按钮放大好找）── */
.meet-grid { display: grid; grid-template-columns: 172px 1fr; gap: 18px; align-items: start; }
.meet-rec-col { display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 10px; border-right: 1px dashed var(--surface-border, #eee7dc); }
.rec-big { width: 94px; height: 94px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(135deg, #FF5B22, #FF8E63); color: #fff;
  box-shadow: 0 8px 22px rgba(255,91,34, .30); transition: transform .15s ease; flex: none; }
.rec-big:hover { transform: scale(1.05); }
.rec-big .rec-big-ico { display: inline-flex; }
.rec-big .rec-big-ico svg { width: 30px; height: 30px; }
.rec-big-label { font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.rec-big.recording { background: linear-gradient(135deg, #e5484d, #ff7a7e); animation: recpulse 1.4s infinite; }
@keyframes recpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .35); } 50% { box-shadow: 0 0 0 16px rgba(229, 72, 77, 0); } }
.rec-big-status { font-size: 12px; color: #e5484d; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.rec-hint { font-size: 11.5px; text-align: center; line-height: 1.7; }
.meet-rec-col audio { width: 100%; height: 34px; }
.meet-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.meet-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 纪要 → 物料提示词建议卡 */
.meet-sugs { display: flex; flex-direction: column; gap: 8px; }
.meet-sug { border: 1px solid var(--surface-border, #eee7dc); border-left: 3px solid var(--accent, #FF5B22);
  border-radius: 10px; padding: 10px 12px; background: #fffdf9; }
.ms-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ms-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-kind { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: #FFEBDD; color: #D2490C; flex: none; }
.meet-sug p { margin: 0; font-size: 12.8px; line-height: 1.65; color: #6d675c; word-break: break-word; }

@media (max-width: 720px) {
  .meet-grid { grid-template-columns: 1fr; }
  .meet-rec-col { border-right: 0; border-bottom: 1px dashed var(--surface-border, #eee7dc); flex-direction: row; justify-content: flex-start; }
  .rec-big { width: 76px; height: 76px; }
}

/* ── 流程总览（2026-09-30 用户：一屏看所有环节；主对话框管细项，这里管全局）── */
.pipe-wrap { max-width: 1280px; margin: 0 auto; padding: 28px 32px 48px; }
.pipe-head h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 22px; }
.pipe-head h2 svg { width: 22px; height: 22px; color: #FF5B22; }
.pipe-head p { margin: 0 0 14px; }
.pipe-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; font-size: 12.5px; color: #6d675c; }
.pipe-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lg-gen { background: #3B82F6; } .lg-ask { background: #FF5B22; } .lg-back { background: #E5484D; }
.lg-wait { background: #C9C2B4; } .lg-ok { background: #2FA36B; }

.pipe-board { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pl-node { position: relative; background: #fffdf9; border: 1px solid #eee7dc; border-radius: 12px;
  padding: 12px 10px 10px; min-height: 150px; display: flex; flex-direction: column; gap: 8px; }
.pl-node:not(:last-child)::after { content: ''; position: absolute; right: -9px; top: 24px;
  border: 5px solid transparent; border-left-color: #D8D0C0; }
.pl-seq { font-size: 11px; font-weight: 700; color: #C9C2B4; letter-spacing: .5px; }
.pl-name { font-size: 13.5px; font-weight: 700; color: #33302a; line-height: 1.35; min-height: 36px; }
.pl-chips { display: flex; flex-direction: column; gap: 6px; }
.pl-none { color: #D8D0C0; font-size: 12px; text-align: center; padding: 4px 0; }
.pl-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; text-align: left;
  border: 1px solid transparent; border-radius: 8px; padding: 5px 8px; font-size: 12px; cursor: pointer;
  flex-wrap: wrap; overflow: hidden; transition: transform .12s ease; }
.pl-chip:hover { transform: translateY(-1px); }
.pl-chip .pl-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pl-chip .pl-cn { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-chip .pl-prog { margin-left: auto; font-size: 10.5px; opacity: .75; flex: none; }
/* 芯片第二行：线别 / 终态 / 血缘 / 承诺漂移（#171）。第一行留给"项目名 + 进度"，不抢视线 */
.pl-tags { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
.pl-tag { font-style: normal; font-size: 10px; line-height: 1.5; padding: 1px 5px; border-radius: 999px;
  background: rgba(0,0,0,.06); color: #6d675c; white-space: nowrap; }
.pl-tag.tg-won { background: #EAF7F0; color: #1F7A4D; }
.pl-tag.tg-lost { background: #F2EFEA; color: #8a8378; }
.pl-tag.tg-exec { background: #EAF0FF; color: #2C51C7; }
.pl-tag.tg-src { background: #EAF0FF; color: #2C51C7; }
.pl-tag.tg-direct { background: #FFF3E4; color: #B46A22; }
.pl-tag.tg-drift { background: #FEECEC; color: #C53030; font-weight: 700; }
.pl-tag.tg-word { background: #F6F2EA; color: #7a746a; }
.pl-tag.tg-ptln { background: #F1ECFF; color: #5B3FBF; }
.pl-tag.tg-exln { background: #E6F6F1; color: #16715A; }
.st-gen { background: #EFF6FF; color: #1D4ED8; } .st-gen .pl-dot { background: #3B82F6; animation: plpulse 1.2s infinite; }
.st-ask { background: #FFF2EC; color: #D2490C; } .st-ask .pl-dot { background: #FF5B22; }
.st-back { background: #FEECEC; color: #C53030; } .st-back .pl-dot { background: #E5484D; }
.st-wait { background: #F6F2EA; color: #7a746a; } .st-wait .pl-dot { background: #C9C2B4; }
.st-ok { background: #EAF7F0; color: #1F7A4D; } .st-ok .pl-dot { background: #2FA36B; }
@keyframes plpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.pipe-row { margin-top: 22px; }
.pipe-row h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 10px; }
.pipe-row h3 svg { width: 16px; height: 16px; color: #FF5B22; }
.pipe-row .pl-chips { flex-direction: row; flex-wrap: wrap; }
.pipe-legend .lg-note { color: #9a938a; font-size: 12px; margin-left: auto; }

/* ── 执行演绎建议（#184）：被承诺区锁回原值之后，模型那版落地想法收在这里只读展示 ── */
.exec-sug { border: 1px dashed #D9C9A8; background: #FFFCF4; border-radius: 12px;
  padding: 12px 14px; margin: 14px 0; }
.es-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #8a6a1f; margin-bottom: 8px; }
.es-head svg { width: 15px; height: 15px; }
.es-head em { font-style: normal; font-weight: 400; font-size: 12px; color: #9a938a; }
.es-item { border-top: 1px solid #F0E6D2; padding: 8px 0 4px; }
.es-item:first-of-type { border-top: none; }
.es-item b { font-size: 12.5px; color: #6d675c; }
.es-body { font-size: 13px; color: #3c3830; line-height: 1.65; margin-top: 4px; }
.es-body pre { background: #F7F3EA; padding: 8px 10px; border-radius: 8px; overflow-x: auto; font-size: 12px; }
.es-foot { margin-top: 8px; font-size: 12px; color: #9a938a; border-top: 1px dashed #E7DCC4; padding-top: 8px; }

/* ── 双线看板（#171：比稿线 / 执行线并列）──────────────────────────
   两条线**上下叠**而不是左右并排：每条链自己就有 10 个环节，左右并排会把每格压到读不出
   环节名——那等于把"看得见全局"做成"看得见但看不清"。上下叠 + 各自的线头（线名/口径/小统计），
   视线是"先看这条线整条，再看下一条"，符合用户的读法。 */
.db-lines { display: flex; flex-direction: column; gap: 18px; }
.db-line { border: 1px solid #eee7dc; border-radius: 14px; padding: 12px 14px 14px; background: #FEFCF9; }
.db-line.db-ex { background: #FCFDFC; }
.db-lhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.db-tag { font-size: 12.5px; font-weight: 700; color: #fff; background: #5B3FBF;
  border-radius: 999px; padding: 3px 11px; flex: none; }
.db-ex .db-tag { background: #16715A; }
.db-lsub { font-size: 12px; color: #8a8378; }
.db-stats { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #6d675c; }
.db-stats i { font-style: normal; }
.db-done { margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: #1F7A4D; border-top: 1px dashed #E7E0D4; padding-top: 10px; }
.db-done svg { width: 14px; height: 14px; }
/* 每条线的链自己也用 10 列网格；.pl-node 的最小高度比单线版收一点（两条链同屏，别太长） */
.db-board .pl-node { min-height: 132px; }
@media (max-width: 960px) { .pipe-board { grid-template-columns: repeat(5, 1fr); } }

/* ── 待办页改版（2026-09-30 用户：输入区太小；待办/Review 按项目自动生成；周报=公司内部不进日历）── */
.todo-sug { background: #FFF7F0; border: 1px dashed #FFBDA7; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.sug-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #B46A22; margin-bottom: 6px; font-weight: 600; }
.sug-head .ico { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.sug-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #FFEDDD; font-size: 13px; }
.sug-item span { flex: 1; }
.sug-empty { font-size: 12.5px; color: #A39B8D; }
.sug-empty .ico { width: 12px; height: 12px; vertical-align: -1.5px; margin-right: 3px; }
.todo-add-row .todo-main-inp { width: 100%; font-size: 14px; padding: 12px 14px; }
.todo-add-sub { margin-top: 8px; }
.todo-add-sub .btn-primary { margin-left: auto; }
.rv-hint { font-size: 12px; color: #A39B8D; margin: 0 0 8px; line-height: 1.6; }
.rv-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.week-card { margin-top: 18px; }
.wk-actions { display: flex; gap: 10px; align-items: center; }
.wk-actions .muted { font-size: 12.5px; }
.wk-hint { font-size: 12px; color: #A39B8D; margin: -6px 0 10px; }
.wk-sec { margin-bottom: 16px; }
.wk-sec h3 { font-size: 13.5px; margin: 0 0 8px; color: #57534A; }
.wk-proj { padding: 8px 0; border-bottom: 1px solid #F4EFE8; }
.wk-p-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.wk-p-top b { font-size: 13.5px; cursor: pointer; }
.wk-p-top b:hover { color: #FF5B22; }
.wk-p-num { margin-left: auto; font-size: 12px; color: #A39B8D; }
.wk-rv { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #F4EFE8; font-size: 13px; }
.wk-rv b { color: #FF5B22; flex: none; font-weight: 600; }
.wk-rv span { color: #57534A; }

/* ── 输入体验修正（2026-09-30 用户批：待办输入框起码三行；附件不顶跑输入框；上传立刻有反馈）── */
textarea.todo-main-inp { width: 100%; font-size: 14px; padding: 12px 14px; line-height: 1.65; resize: none; min-height: 72px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
textarea.todo-main-inp:focus { outline: 2px solid #FFD6C8; }

/* ── 待办 · 每日 Review 重设计（2026-10-08 用户批"排版太丑"）──
   病根：左卡三层控件挤成一团、逾期毫无视觉区分、Review 卡是一整块空白 textarea、历史是裸文本行。
   药方：加「今日进度」锚点；条目加大呼吸 + 逾期/今天分色；Review 历史改时间线。
   颜色全走主题令牌（--accent/--line/--panel/--bg2/--ink2），深色外观自动跟随。 */
.todo-page .card { padding: 18px 20px; }
.todo-grid { align-items: stretch; }
.todo-progress { display: flex; align-items: center; gap: 10px; margin: 10px 0 14px; }
.tp-track { flex: 1; min-width: 0; height: 6px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; }
.tp-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; transition: width .35s ease; }
.todo-prog-txt { flex: none; font-size: 11.5px; color: var(--ink2); line-height: 1; letter-spacing: .3px; padding-right: 2px; }
textarea.todo-main-inp { border-radius: 12px; }
textarea.todo-main-inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.todo-proj-sel:focus, .todo-due:focus { outline: none; border-color: var(--accent); }
.todo-list { margin-top: 6px; }
.todo-item { border-bottom: 1px solid var(--line); border-radius: 10px; padding: 11px 10px; gap: 12px; transition: background .15s; }
.todo-item:hover { background: var(--bg2); }
.todo-item:last-child { border-bottom: 0; }
.todo-item input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); flex: none; cursor: pointer; margin-top: 2px; }
/* 截止日三态：逾期红 / 今天橙 / 将来灰（此前一色，逾期了毫无提示） */
.todo-due-chip.is-over { color: #D92D20; background: #FEF3F2; font-weight: 700; }
.todo-due-chip.is-today { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
html[data-app-appearance='dark'] .todo-due-chip.is-over { color: #F97066; background: rgba(240, 68, 56, .14); }
.todo-sug { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; }
#dailyRv { background: var(--bg2); border-color: var(--line); }
#dailyRv:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--panel); }
.rv-timeline { margin-top: 4px; }
.rv-tl-item { position: relative; display: flex; gap: 10px; padding: 9px 4px 9px 20px; border-left: 2px solid var(--line); margin-left: 5px; cursor: pointer; transition: background .15s; }
.rv-tl-item:hover { background: var(--bg2); border-color: var(--accent-line); }
.rv-tl-item:last-child { border-left-color: transparent; }
.rv-tl-dot { position: absolute; left: -6px; top: 14px; width: 8px; height: 8px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); flex: none; }
.rv-tl-body { min-width: 0; }
.rv-tl-body b { display: block; font-size: 12px; color: var(--accent); margin-bottom: 2px; }
.rv-tl-body span { font-size: 12.5px; color: var(--ink2); line-height: 1.65; word-break: break-all; display: block; }
.attach-row { display: flex; flex-wrap: wrap; gap: 8px; }
.attach-row .attach-chip { margin-bottom: 0; }
.attach-chip.is-parsing { color: #B46A22; background: #FFF7F0; border-color: #FFBDA7; }
.parsing-dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: #FF8C64; margin-right: 4px; animation: pdot 0.9s ease-in-out infinite; vertical-align: 0; }
@keyframes pdot { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
/* ═══ 2026-09-30（v）用户批：上一版把空对话的对话框推到了页面最下面 —— 撤销，恢复"对话框停在原位（页面中部）" ═══
   铁律（勿改）：①空对话（无消息）时 .chat-scroll 不参与拉伸（flex:0 0 auto）→ 欢迎区在上、对话框紧随其下，
   稳定停在页面中部；②附件出现只改卡片内部（附件条置于 textarea 之后，只向下生长）→ 输入行与卡片顶边零位移；
   ③只有真正发出消息后（chat 去掉 chat-empty）对话框才落到底部。 */
.chat-empty { justify-content: flex-start; }
.chat-empty .chat-scroll { flex: 0 0 auto; overflow: visible; }

/* ── #132 PPT 文字稿逐页审阅（2026-10-01）── */
.sp-page {
  border: 1px solid var(--line, #eee0d6);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  background: var(--card, #fff);
}
.sp-head { display: flex; align-items: center; gap: 8px; }
.sp-no {
  flex: 0 0 auto; font-weight: 700; font-size: 12px;
  color: #d14a12; background: #fff2ed; border-radius: 6px; padding: 2px 7px;
}
.sp-type {
  flex: 0 0 auto; font-size: 11px; color: #8a6a58;
  border: 1px solid #eee0d6; border-radius: 6px; padding: 1px 6px;
}
.sp-title {
  flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; border-radius: 6px; padding: 4px 8px;
  background: transparent; color: inherit;
}
.sp-title:hover, .sp-title:focus { border-color: #ffcebd; background: #fffdfb; outline: none; }
.sp-del { flex: 0 0 auto; color: #b3543a; }
.sp-body {
  width: 100%; margin-top: 8px; font-size: 13px; line-height: 1.7;
  border: 1px solid transparent; border-radius: 8px; padding: 8px 10px;
  background: transparent; color: inherit; resize: vertical;
  font-family: inherit;
}
.sp-body:hover, .sp-body:focus { border-color: #ffcebd; background: #fffdfb; outline: none; }
.script-raw {
  width: 100%; margin-top: 12px; font-size: 12.5px; line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  border: 1px solid #eee0d6; border-radius: 10px; padding: 12px;
  background: #fffdfb; color: inherit; resize: vertical;
}

/* ═══════════════════════════════════════════════════════════
   知识库 + Skill 库（2026-10-01 用户指令）
   两个模块共用一套卡片/统计样式（都是"资料型列表页"），只在语义色上区分。
   ═══════════════════════════════════════════════════════════ */
.kb-page { max-width: 1180px; }
.kb-stats { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.kb-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 96px;
}
.kb-stat b { font-size: 20px; color: var(--accent); line-height: 1.1; }
.kb-stat span { font-size: 11.5px; color: var(--ink2); }
.kb-stat-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.kb-chip {
  font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  background: #FFF4EE; color: #C2481A; border: 1px solid #FFD9C8;
}

.kb-probe { display: flex; gap: 10px; margin: 4px 0 10px; }
.kb-probe input { flex: 1; border: 1px solid #EDE7DC; border-radius: 10px; padding: 10px 14px; font-size: 13px; background: #FFFDFB; }
.kb-probe-out { margin-bottom: 16px; }
.kb-hits { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; font-size: 12.5px; }
.kb-hit { padding: 9px 0; border-top: 1px dashed var(--line); }
.kb-hit:first-of-type { border-top: 0; }
.kb-hit-t { font-weight: 700; margin-right: 8px; }
.kb-hit-s { color: var(--ink2); font-size: 11.5px; }
.kb-hit-c { color: var(--ink2); line-height: 1.7; margin-top: 4px; }

.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.kb-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px;
  display: flex; flex-direction: column; gap: 7px; box-shadow: var(--shadow); transition: .15s;
}
.kb-card:hover { border-color: #FFD6C8; transform: translateY(-1px); }
.kb-card.sk-code { background: linear-gradient(180deg, #F6F9FF, #fff); border-color: #D9E4FA; }
.kb-card-top { display: flex; align-items: center; gap: 8px; }
.kb-cat { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: #F3EFE8; color: #6B5F51; }
.kb-ok { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: #EAF8F0; color: #0A8F4C; }
.kb-bad { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: #FFF1F0; color: var(--err); }
.kb-src { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: #EEF2FF; color: #3B5BDB; }
.kb-title { font-size: 14.5px; cursor: pointer; line-height: 1.5; }
.kb-title:hover { color: var(--accent); }
.kb-meta { font-size: 11.5px; color: var(--ink2); }
.kb-note { font-size: 12.5px; color: var(--ink2); line-height: 1.65; }
.kb-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.kb-tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #FFF6F1; color: #C2481A; }
.kb-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.kb-acts .btn-ghost, .kb-acts .btn-primary { padding: 5px 11px; font-size: 12px; border-radius: 8px; }
.kb-acts .btn-ghost.danger { color: var(--err); border-color: #F5D6D3; }
.kb-acts .btn-ghost.danger:hover { border-color: var(--err); background: #FFF5F5; color: var(--err); }

.kb-empty {
  border: 1px dashed var(--line); border-radius: 14px; padding: 34px 22px; text-align: center;
  background: #FFFDFB; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.kb-empty p { margin: 0; font-size: 13.5px; }
.kb-empty .muted { line-height: 1.7; }

.kb-detail { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.kb-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.kb-detail textarea { width: 100%; border: 1px solid #EDE7DC; border-radius: 10px; padding: 12px; font-size: 13px; line-height: 1.75; background: #FFFDFB; resize: vertical; font-family: inherit; }
.sk-files { margin: 10px 0; font-size: 12.5px; }
.sk-files summary { cursor: pointer; color: var(--ink2); }
.sk-file { margin-top: 8px; }
.sk-file pre { max-height: 260px; overflow: auto; background: #FFFDFB; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 11.5px; line-height: 1.7; white-space: pre-wrap; }

/* ═══════════════════════════════════════════════════════════
   2026-10-01 下午 · 用户八条前端改版
   ①侧栏紧凑+对话记录加大+新对话按钮 ②附件chip加大上移
   ③思考过程折叠卡 ④闸口字段大框编辑 ⑤新建比稿方案入口
   ═══════════════════════════════════════════════════════════ */

/* ── 侧栏：行距收紧（用户第二轮批"还是要再紧"，对齐豆包密度）── */
#sidebar { gap: 5px; padding: 12px 10px; overflow: hidden; }
.brand { margin-bottom: 4px; }
.side-nav { padding: 6px 12px; border-radius: 9px; font-size: 12.5px; gap: 8px; }
/* 工作台分组的 tab 字号放大一档（2026-10-01 用户令：工作台下面的 tab 字体放大一些）
   只作用于「工作台」标签之下那组功能导航，不牵连上方的主页/新对话 */
.side-nav.nav-wk { font-size: 13.5px; padding: 7px 12px; }
.side-nav.nav-wk .soon { font-size: 10.5px; }
.side-nav.nav-wk .nav-badge { font-size: 11px; }
.side-nav-label { margin-top: 4px; padding: 2px 10px; }
.side-sec { gap: 1px; }
.side-sec-head { padding: 2px 10px; }
.side-sec-head .side-add { display: none; }
.chat-item { padding: 5px 9px; font-size: 12px; border-radius: 7px; }
.chat-item .ci-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#runList { overflow-y: auto; max-height: 132px; min-height: 0; }
.btn-newchat { padding: 8px 12px; font-size: 13px; border-radius: 10px; margin: 2px 0 4px; }
.user-card { margin-top: 4px; }
.sidebar-foot { margin-top: 2px; }

/* 「项目执行」tab 执行中角标（2026-10-01 用户令：执行项目区块删除，数量上 tab，换色字体）
   side-nav 是 display:block，margin-left:auto 无效——同「接入中」用 float:right 靠右 */
.nav-badge {
  float: right; margin: 1px 2px 0 12px; font-style: normal; font-size: 10.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px; letter-spacing: .3px;
  color: #FFD9C4; background: rgba(255, 122, 61, .22); border: 1px solid rgba(255, 140, 100, .45);
}
.side-nav.active .nav-badge { color: #fff; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); }
/* 角标活性（2026-10-02 用户批：角标要跟项目执行走）——该线有环节生成中时呼吸灯 */
.nav-badge.busy { animation: badge-pulse 1.6s ease-in-out infinite; }
/* 该模块当前没有项目：标仍显示（用户令「这两个都要有」），但置灰降噪 */
.nav-badge.zero { opacity: .5; font-weight: 600; }
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 61, .45); }
  50% { box-shadow: 0 0 0 5px rgba(255, 122, 61, 0); }
}

/* 对话记录区撑满侧栏剩余空间（豆包式：历史列表是大区域，不是小尾巴） */
.side-sec.grow { flex: 1 1 0; min-height: 120px; }
.side-sec.grow .side-list { flex: 1; max-height: none; }

/* 「＋ 新对话」大按钮（对齐豆包/主流 agent 排布） */
.btn-newchat {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  border: 0; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 700;
  color: #fff; background: linear-gradient(90deg, #FF5B22, #FF8C64);
  cursor: pointer; font-family: inherit; box-shadow: 0 6px 16px rgba(255,91,34,.28); transition: .15s;
}
.btn-newchat:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-newchat:active { transform: translateY(0); }

/* ── 附件 chip：加大加明显（用户批"上传完并不明显"）；行已移到输入框上方 ── */
.attach-row { padding: 2px 0; }
.attach-chip {
  font-size: 13px; padding: 9px 14px; border-radius: 12px;
  color: var(--ink); background: #FFF6F1; border-color: #FFC9B3;
  box-shadow: 0 4px 14px rgba(255,91,34,.10);
}
.attach-chip .attach-x {
  width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(255,91,34,.12);
  color: #C2481A; font-size: 14px; line-height: 1; cursor: pointer;
}
.attach-chip.is-parsing { background: #FFF1E6; border-color: #FFB08F; }

/* ── 思考过程折叠卡 ── */
.think { margin: 0 0 6px; max-width: 680px; }
.think summary {
  cursor: pointer; font-size: 12px; color: var(--ink2); user-select: none;
  padding: 4px 0; list-style: none;
}
.think summary::-webkit-details-marker { display: none; }
.think summary::before { content: '▸ '; }
.think[open] summary::before { content: '▾ '; }
.think summary:hover { color: var(--accent); }
.think-body {
  margin-top: 4px; padding: 10px 12px; background: #FAF7F2;
  border: 1px dashed var(--line); border-radius: 10px;
  font-size: 12.5px; color: var(--ink2); line-height: 1.75;
  max-height: 260px; overflow: auto; white-space: pre-wrap;
}

/* ── 闸口卡：字段编辑大框（自动撑高由 app.js 负责）── */
.field textarea.field-big { min-height: 96px; font-size: 13.5px; line-height: 1.8; padding: 12px 14px; }
.field .f-hint { font-style: normal; font-weight: 400; color: var(--ink2); font-size: 11px; margin-left: 6px; }

/* ── 新建比稿方案入口 ── */
.hero-cta {
  margin-top: 18px; padding: 12px 28px; font-size: 14.5px;
  border-radius: 14px; box-shadow: 0 10px 26px rgba(255,91,34,.25);
}
.chip.chip-pitch { border-color: #FFB08F; color: #C2481A; font-weight: 700; background: #FFF6F1; }
.chip.chip-pitch:hover { border-color: var(--accent); background: #FFEFE5; }

/* ═══════════════════════════════════════════════════════════
   2026-10-01 下午 · 首页立项确认卡 + 本单推进台
   ①首页不再隐式立项：长文本/附件先出确认卡 ②立项后落「这一单的推进台」
   ═══════════════════════════════════════════════════════════ */

/* ── 立项确认卡（对话内联，不弹层）── */
.pitch-card {
  max-width: 620px; background: #FFF8F4; border: 1px solid #FFD3BF;
  border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow);
}
.pc-head { font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }
.pc-meta span {
  font-size: 11.5px; color: var(--ink2); background: #fff;
  border: 1px solid #FFE0D1; border-radius: 8px; padding: 4px 9px;
}
.pc-meta b { color: #C2481A; font-weight: 700; }
.pc-note { font-size: 12.5px; color: var(--ink2); line-height: 1.7; margin-bottom: 12px; }
.pc-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-acts .btn-primary, .pc-acts .btn-ghost { padding: 8px 16px; font-size: 13px; border-radius: 10px; }

/* ── 本单推进台 ── */
.board-page { max-width: 1020px; display: flex; flex-direction: column; gap: 14px; }
.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.board-prog { display: flex; align-items: center; gap: 12px; }
.board-prog .prog-bar { flex: 1; height: 8px; background: #F1EBE3; border-radius: 999px; overflow: hidden; }
.board-prog .prog-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FF5B22, #FF8C64); }
.board-now {
  font-size: 13.5px; color: var(--ink); background: #FFF8F4;
  border: 1px solid #FFDCCB; border-radius: 12px; padding: 11px 14px;
}
.board-now b { color: #C2481A; }

/* 纵向环节时间线：一眼看清走到哪、下一步是什么 */
.board-steps { display: flex; flex-direction: column; gap: 1px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.bs-item { display: flex; align-items: center; gap: 10px; padding: 7px 2px; font-size: 12.5px; border-bottom: 1px dashed #F4EFE8; }
.bs-item:last-child { border-bottom: 0; }
.bs-dot { width: 8px; height: 8px; border-radius: 50%; background: #DED8CF; flex: none; }
.bs-item.done .bs-dot { background: #0A8F4C; }
.bs-item.now .bs-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(255,91,34,.16); }
.bs-item.back .bs-dot { background: var(--err); }
.bs-n { width: 16px; color: var(--ink2); font-size: 11.5px; flex: none; }
.bs-name { color: var(--ink); }
.bs-item.done .bs-name { color: var(--ink2); }
.bs-item.now .bs-name { font-weight: 700; color: #C2481A; }
.bs-mini { font-size: 10px; color: #3B5BDB; background: #EEF2FF; border-radius: 5px; padding: 1px 5px; }
.bs-state { margin-left: auto; font-size: 11.5px; color: var(--ink2); }
.bs-item.now .bs-state { color: var(--accent); font-weight: 700; }
.board-body { display: flex; flex-direction: column; gap: 14px; }
.proj-head-acts { display: flex; gap: 8px; }

/* ── 比稿内容页（2026-10-02 #176 用户令）─────────────────────────────
   比稿线自己的单页：抬头带定标徽标 + 10 环全展开（每步可生成）+ 当前闸口 + 内嵌流程总览。 */
.pitch-page .run-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pitch-page .po-badge { font-size: 11.5px; }

/* 环节行右侧的动作区（生成 / 重跑 / 去确认 / 查看产出） */
.board-steps .bs-act { margin-left: 10px; display: inline-flex; gap: 6px; align-items: center; flex: none; }
.board-steps .bs-btn { padding: 3px 10px; font-size: 11.5px; border-radius: 8px; }
.board-steps .bs-act.muted { font-size: 11.5px; color: var(--accent); font-weight: 700; }
.bs-item.gen .bs-dot { background: var(--accent); animation: badge-pulse 1.6s ease-in-out infinite; }
.bs-item.open { background: #FFFAF7; }

/* 已确认环节的产出正文（只读摊开） */
.pv-card .pv-body { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.pv-card .pv-field { border-top: 1px dashed #F1E7DD; padding-top: 10px; }
.pv-card .pv-field:first-child { border-top: 0; padding-top: 0; }
.pv-card .pv-key { font-size: 12px; font-weight: 700; color: #C2481A; margin-bottom: 5px; letter-spacing: .2px; }
.pv-card .pv-txt { font-size: 13.5px; line-height: 1.8; color: var(--ink); }
.pv-card .pv-li { font-size: 13.5px; line-height: 1.75; color: var(--ink); }
.pv-card .pv-obj { display: flex; flex-direction: column; gap: 3px; margin: 3px 0 6px; }
.pv-card .pv-row { display: flex; gap: 8px; font-size: 13px; line-height: 1.7; }
.pv-card .pv-row b { flex: none; min-width: 92px; color: var(--ink2); font-weight: 600; }
.pv-card .card-actions { display: flex; gap: 8px; margin-top: 14px; }

/* 内嵌的流程总览（从侧栏搬进来：比稿内容页底部的全局视角） */
.board-pipe { border-top: 1px solid var(--line); padding-top: 12px; }
.pipe-fold {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer;
  background: #FBF7F2; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
  font-size: 13px; font-weight: 700; color: var(--ink); font-family: inherit;
}
.pipe-fold:hover { background: #F7F1EA; }
.pipe-fold .fold-mark { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--ink2); }
.board-pipe .pipe-wrap { padding-top: 12px; }
.board-pipe .pipe-board { grid-template-columns: repeat(5, 1fr); }

/* ── markdown 渲染（2026-10-01 用户批：生成内容"没有格式，第一眼就是乱码"）── */
.bubble .md-p { margin: 3px 0; line-height: 1.75; }
.bubble .md-h { font-weight: 700; margin: 12px 0 4px; line-height: 1.5; }
.bubble .md-h:first-child { margin-top: 0; }
.bubble .md-h1, .bubble .md-h2 { font-size: 16.5px; }
.bubble .md-h3, .bubble .md-h4 { font-size: 15px; }
.bubble .md-list { margin: 4px 0 6px; padding-left: 20px; }
.bubble .md-list li { margin: 3px 0; line-height: 1.7; }
.bubble .md-quote { border-left: 3px solid var(--accent-line); padding: 2px 12px; margin: 6px 0; color: var(--ink2); }
.bubble code { background: rgba(32, 26, 19, .07); padding: 1px 6px; border-radius: 4px; font-size: .92em; }

/* 环节确认卡：长文本字段默认格式化预览，点「编辑原文」才出 textarea */
.field-md .field-preview {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; max-height: 460px; overflow-y: auto;
  font-size: 13.5px; line-height: 1.8;
}
.field-md .field-preview .md-h { font-weight: 700; margin: 12px 0 4px; font-size: 14.5px; }
.field-md .field-preview .md-h:first-child { margin-top: 0; }
.field-md .field-preview .md-p { margin: 4px 0; }
.field-md .field-preview .md-list { margin: 4px 0 6px; padding-left: 20px; }
.field-md .field-preview .md-list li { margin: 3px 0; }
.field-md .field-preview b { color: var(--ink); }
.field-acts { margin: 6px 0 2px; display: flex; }

/* ─────────────────────────────────────────────────────────────
   能力挂载面板（2026-10-01 用户指令：对话框里要能加 skill）
   入口 = 输入框工具条上的「能力」按钮；面板浮在输入框上方。
   勾选 → 随请求发给后端 → 该能力的正文注入 system prompt（全文级）。
   ───────────────────────────────────────────────────────────── */
.tool-btn-wide { width: auto; padding: 0 11px; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.tool-btn-wide.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

.cap-panel {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); z-index: 60;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
}
.cap-head { position: relative; padding: 13px 44px 11px 16px; border-bottom: 1px solid var(--line); }
.cap-head b { font-size: 13.5px; color: var(--ink); }
.cap-head .cap-tip { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink2); line-height: 1.6; }
.cap-x { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border: 0; background: transparent;
  font-size: 17px; line-height: 1; color: var(--ink2); cursor: pointer; border-radius: 8px; }
.cap-x:hover { background: var(--bg2); color: var(--ink); }

.cap-body { max-height: 46vh; overflow-y: auto; padding: 6px 8px 10px; }
.cap-group + .cap-group { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.cap-ghead { font-size: 11.5px; font-weight: 700; color: var(--ink2); padding: 8px 10px 4px; letter-spacing: .02em; }
.cap-ghead span { margin-left: 8px; font-weight: 400; opacity: .8; }
.cap-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.cap-item:hover { background: var(--bg2); }
.cap-item.on { background: var(--accent-soft); }
.cap-item input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.cap-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cap-txt b { font-size: 13px; color: var(--ink); font-weight: 600; }
.cap-txt em { font-size: 11.5px; color: var(--ink2); font-style: normal; line-height: 1.55; }
.cap-load { padding: 14px 16px; font-size: 12.5px; color: var(--ink2); }
/* 说明行（2026-10-11）：原子能力已内置、用户自定义 Skill 的开口在哪 —— 都放在面板底部当注解 */
.cap-builtin { padding: 2px 16px 10px; font-size: 11.5px; color: var(--ink2); line-height: 1.65; }

.cap-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-top: 1px solid var(--line); background: var(--bg2); font-size: 11.5px; color: var(--ink2); }
.cap-foot > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 新建方案弹层里的能力多选（2026-10-01） */
.cap-pick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
/* 本单能力卡（比稿内容页 / 项目执行工作台，2026-10-11）：与主页能力面板同一套 chip */
.run-caps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 2px; }
.run-caps-label { font-size: 12.5px; color: var(--ink2, #666); display: inline-flex; align-items: center; gap: 5px; margin-right: 2px; }
.cap-chip { font-size: 12.5px; padding: 6px 12px; }
.cap-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.cap-pick-hint { margin: 6px 0 2px; font-size: 11.5px; line-height: 1.6; }

/* ── 比稿模块（2026-10-02 #161 双流程架构）──
   终态徽标三色：比稿中=中性/won=成功/lost=灰。
   注意中国用户习惯里红=涨，但这里 won/lost 是"中标与否"不是价格涨跌，
   所以用绿=中标、灰=未中标（与股票红绿无关，别混）。 */
.po-badge { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; border: 0.5px solid; white-space: nowrap; }
.po-pending { color: #854F0B; background: #FAEEDA; border-color: #EF9F27; }
.po-won { color: #085041; background: #E1F5EE; border-color: #1D9E75; }
.po-lost { color: #5F5E5A; background: #F1EFE8; border-color: #B4B2A9; }

.pitch-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pitch-acts .btn-sm { padding: 5px 11px; font-size: 12.5px; }
.pitch-hint { color: var(--muted, #8a8a8a); font-size: 12.5px; margin: 2px 0 10px; }

/* 转执行弹层：资产清单 */
.tex-assets { margin: 10px 0 4px; }
.tex-list { display: grid; gap: 5px; margin-bottom: 8px; }
.tex-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 0.5px solid; }
.tex-row.on { color: #04342C; background: #E1F5EE; border-color: #9FE1CB; }
.tex-row.off { color: #5F5E5A; background: #F1EFE8; border-color: #D3D1C7; }
.tex-row .ico { width: 15px; height: 15px; flex: none; }
.tex-row em { margin-left: auto; font-style: normal; font-size: 11.5px; opacity: .8; }
.tex-warn { color: #854F0B; background: #FAEEDA; border: 0.5px solid #EF9F27; border-radius: 8px; padding: 8px 11px; font-size: 12.5px; line-height: 1.6; }
.tex-ok { color: #085041; background: #E1F5EE; border: 0.5px solid #9FE1CB; border-radius: 8px; padding: 8px 11px; font-size: 12.5px; }

/* ── 承诺区（#170）：能改，但改得有感 ──
   用户原话的分区修正：比稿已确认的 KPI / 策略主张 / 大创意能改，但改了必须显式标注
   「⚠ 与比稿承诺不一致」——否则客户的体感是"中标之后缩水了"，我们却只改了个字段。 */
.field-cm { border-left: 2px solid #EF9F27; padding-left: 12px; margin-left: -14px; }
.cm-chip {
  display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 99px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  color: #854F0B; background: #FAEEDA; border: 0.5px solid #EF9F27;
  vertical-align: middle;
}
.cm-warn {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: 8px; padding: 8px 11px; border-radius: 9px;
  color: #854F0B; background: #FAEEDA; border: 0.5px solid #EF9F27;
  font-size: 12px; line-height: 1.6;
}
.cm-warn b { font-size: 12px; }
.cm-warn em { font-style: normal; margin-left: auto; font-size: 11.5px; opacity: .85; }
/* 中性对照（#170 校准后新增）：只是换了说法、量化指标一个没少——不亮红灯、不要理由。
   刻意用"安静"的样式（无边框强调、灰字），免得跟真报警抢注意力。 */
.cm-note {
  margin-top: 6px; padding: 6px 10px; border-radius: 8px;
  font-size: 11.5px; line-height: 1.6; color: #6B6257;
  background: #F7F4EF; border: 0.5px dashed var(--line);
}
.cm-why { margin-top: 7px; }
.cm-why .cm-reason-input {
  width: 100%; border: 0.5px solid #EF9F27; border-radius: 9px; padding: 8px 11px;
  font-size: 12.5px; font-family: inherit; color: var(--ink); background: #FFFDF6;
}
.cm-why .cm-reason-input:focus { outline: 0; background: #fff; box-shadow: 0 0 0 3px rgba(247,144,9,.14); }
.cm-why .cm-reason-input:disabled { border-color: var(--line); background: #FAF7F2; }

/* 环节参考图（#165）：图在卡上直接看得见，点开出大图 */
.stage-imgs { margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: #FBF9F5; border: 0.5px solid var(--line); }
.si-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; flex-wrap: wrap; }
.si-head .f-hint { font-weight: 400; }
.si-head button { margin-left: auto; }
.si-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.si-item { display: block; border-radius: 10px; overflow: hidden; border: 0.5px solid var(--line); background: #fff; }
.si-item img { display: block; width: 100%; height: 106px; object-fit: cover; }
.si-empty { margin-top: 8px; font-size: 11.5px; line-height: 1.7; color: #6B6257; }
.md-img { display: block; max-width: 100%; border-radius: 10px; margin: 10px 0; border: 0.5px solid var(--line); }

/* ── 报告 tab（#216）：日报/周报/月报 + 结案报告 + 亮点卡 ── */
.rpt-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }
.rpt-col .card { margin-bottom: 16px; }
.rpt-form label { display: block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: #5A5248; }
.rpt-form label select, .rpt-form label input { display: block; width: 100%; margin-top: 5px; }
.rpt-form input, .rpt-form select, .rpt-form textarea,
.rpt-col input, .rpt-col select, .rpt-col textarea {
  width: 100%; border: 1px solid var(--surface-border, #eee7dc); border-radius: 10px;
  background: #fbf9f6; padding: 9px 12px; font-size: 13.5px; line-height: 1.7;
  font-family: inherit; color: inherit; box-sizing: border-box;
}
.rpt-col textarea { resize: vertical; }
.rpt-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rpt-form .btn-primary { margin-top: 14px; width: 100%; }
.rpt-list { max-height: 300px; overflow: auto; }
.rpt-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.rpt-item:hover { background: #fbf9f6; }
.rpt-item.on { background: #FFF4EE; }
.rpt-item b { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpt-badge { flex: none; font-size: 11px; padding: 1px 7px; border-radius: 20px; background: var(--accent-wash, #FFEDE4); color: var(--accent, #FF5B22); }
.rpt-tpls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rpt-tpl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: #fbf9f6; border: 1px solid var(--surface-border, #eee7dc); border-radius: 20px; padding: 4px 10px; }
.rpt-tpl button { border: 0; background: none; color: #c2bab0; cursor: pointer; font-size: 14px; line-height: 1; }
.rpt-tpl button:hover { color: #e5484d; }
.rpt-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rpt-cards { display: grid; gap: 10px; }
.rpt-card { border: 1px solid var(--surface-border, #eee7dc); border-radius: 10px; padding: 12px; background: #fff; }
.rpt-card b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.rpt-card p { margin: 4px 0; font-size: 12.5px; line-height: 1.7; }
.rpt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rpt-tags span { font-size: 11px; background: #f4f1ec; border-radius: 20px; padding: 1px 8px; color: #6B6257; }

/* ── 通知铃铛（#18 通知中枢第一期）── */
.ntf-bell { position: fixed; top: 14px; right: 18px; z-index: 60; width: 38px; height: 38px;
  border-radius: 50%; background: var(--panel); border: 1px solid var(--line); color: var(--ink2);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .15s; }
.ntf-bell:hover { color: var(--accent); border-color: var(--accent-line); }
.ntf-badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700;
  font-style: normal; display: flex; align-items: center; justify-content: center; line-height: 1; }
.ntf-badge.hidden { display: none; }
.ntf-panel { position: fixed; top: 58px; right: 18px; z-index: 60; width: 340px; max-height: 70vh;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(32,26,19,.12); display: flex; flex-direction: column; overflow: hidden; }
.ntf-panel.hidden { display: none; }
/* 成员页（members.html）：铃铛跟着顶栏走，不用固定定位——那个右上角已经被"返回工作台"占着，
   固定定位会直接压在上面。面板仍是 fixed 下拉（要从铃铛右下方展开）。 */
.mem-page .ntf-bell { position: relative; top: auto; right: auto; width: 32px; height: 32px; }
.mem-page .ntf-panel { top: 66px; }
.ntf-head { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); }
.ntf-markall { border: none; background: none; color: var(--accent); font-size: 12px; cursor: pointer; }
.ntf-tabs { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ntf-tab { border: 1px solid var(--line); background: none; color: var(--ink2); font-family: inherit;
  font-size: 12px; padding: 3px 11px; border-radius: 20px; cursor: pointer; transition: .15s; }
.ntf-tab:hover { color: var(--accent); border-color: var(--accent-line); }
.ntf-tab.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }
.ntf-list { overflow-y: auto; }
.ntf-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: none; background: none;
  padding: 11px 16px; cursor: pointer; border-bottom: 1px solid var(--line); font-family: inherit; }
.ntf-item:last-child { border-bottom: none; }
.ntf-item:hover { background: var(--accent-soft); }
/* 未读：一行浅色底 + 图标染色，让"还没看过"一眼可辨（不靠唯一一个小红点） */
.ntf-item.unread { background: #FFF9F6; }
.ntf-ico { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px;
  background: #F4F1EC; color: var(--ink2); display: flex; align-items: center; justify-content: center; }
.ntf-item.unread .ntf-ico { background: var(--accent-soft); color: var(--accent); }
.ntf-main { flex: 1; min-width: 0; }
.ntf-row { display: flex; align-items: center; gap: 8px; }
.ntf-title { font-size: 13px; font-weight: 600; color: var(--ink); flex: 1; }
.ntf-item:not(.unread) .ntf-title { font-weight: 500; color: var(--ink2); }
.ntf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.ntf-body { font-size: 12px; color: var(--ink2); margin-top: 3px; }
.ntf-time { font-size: 11px; color: var(--ink2); margin-top: 4px; cursor: help; }
.ntf-empty { padding: 28px 16px; text-align: center; font-size: 12.5px; color: var(--ink2); }

/* ── API 密钥管理（apikeys.html · #22）──
   与成员管理同一套页面骨架，只在这几处补密钥专属的呈现：
   前缀（辨认用，等宽）/ 权限范围标签 / 一次性明文 / 调用日志状态码染色。 */
.mem-act .btn-ghost.danger { color: var(--err); border-color: #F5D6D3; }
.mem-act .btn-ghost.danger:hover { border-color: var(--err); background: #FFF5F5; color: var(--err); }

.ak-prefix { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  background: #F4F1EC; border-radius: 6px; padding: 2px 7px; color: var(--ink); }

/* 权限范围标签：三档各一色，但都克制（不是红绿灯，是分类） */
.ak-scope-tag { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 7px;
  padding: 2px 8px; margin-right: 5px; }
.ak-sc-read { color: #1F5FA8; background: #EAF2FC; }
.ak-sc-write { color: #A85A00; background: #FDF1E3; }
.ak-sc-export { color: #7A3AA8; background: #F4ECFC; }

/* 空态：渲染空框架 + 一句下一步，不留白板 */
.ak-empty { text-align: center; padding: 34px 16px; color: var(--ink2); }
.ak-empty svg { color: var(--accent); opacity: .55; margin-bottom: 10px; }

/* 签发弹层里的 scope 勾选：每档带一句人话，别让用户猜 "export 是什么" */
.ak-scopes { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ak-scope { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: .15s; margin: 0; }
.ak-scope:hover { border-color: var(--accent-line); background: #FFFCFA; }
.ak-scope input { margin-top: 3px; flex: none; width: auto; }
.ak-scope-body { display: flex; flex-direction: column; gap: 3px; }
.ak-scope-body b { font-size: 13px; color: var(--ink); }
.ak-scope-body i { font-style: normal; font-size: 12px; color: var(--ink2); line-height: 1.55; }

/* 一次性明文：等宽、可选中、醒目（关掉就没了，不能让人看漏） */
.ak-reveal { margin: 14px 0 4px; padding: 14px 16px; border-radius: 12px;
  background: #FFF7F3; border: 1px solid var(--accent-line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  color: var(--ink); word-break: break-all; user-select: all; line-height: 1.7; }
.ak-reveal-tip { margin-top: 12px; }

/* 调用日志 */
.ak-method, .ak-path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  background: #F4F1EC; border-radius: 6px; padding: 2px 6px; }
.ak-path { background: none; color: var(--ink2); padding: 0; word-break: break-all; }
.ak-status { display: inline-block; font-weight: 600; font-size: 12px; border-radius: 6px; padding: 2px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ak-st-2 { color: #067647; background: #E6F6EE; }
.ak-st-4 { color: #B42318; background: #FEECEB; }
.ak-st-5 { color: #fff; background: var(--err); }

/* ══════════════════════════════════════════════════════════════════════
   新手引导（M4-#10，2026-10-08）
   口径（2026-10-09 用户两次拍板）：这是**新手教学——教用户怎么用这个平台**
   （怎么建比稿/项目执行流程、对话框怎么用、确认卡节奏），**不是**教写 brief（brief 是现成的）。
   位置（2026-10-09 用户令）：教学**收进右下角小入口**（.how-launch，常驻，图标重设计）；
   点开是 .how-panel（四步操作条竖排 + 底部「手边没有 brief 原文」备用口）；
   主页正中只留**示例卡**（一单都没有时直出）。
   弹层（#modalGuide）：备用口——几个问题快速起一单 → 确认 brief 原文（可改）。
   颜色一律走令牌，深色模式下自动跟着变（铁律：不许再写死 #fff 底色）
   ══════════════════════════════════════════════════════════════════════ */

/* ── 首页引导区（2026-10-09 用户令：教学已收进右下角 ⇒ 这里只剩示例卡）── */
.hero-guide { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-guide:empty { display: none; }   /* 老用户：不留白块 */
.hero-guide-row { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-guide-btn { font-size: 13.5px; padding: 10px 20px; }
.hero-guide-tip { font-size: 12.5px; max-width: 560px; line-height: 1.7; }

/* ── 右下角教学入口 + 面板（2026-10-09 用户令：「不要放在主页正中间的下方，
      放右下角，小一点儿，Icon 重新设计」）——小药丸常驻，点开才是四步教学 ── */
.how-launch { position: fixed; right: 22px; bottom: 22px; z-index: 45;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  font: inherit; font-size: 12.5px; line-height: 1; color: var(--ink2); cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow); transition: color .15s, border-color .15s, transform .15s; }
.how-launch:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-1px); }
.how-launch.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.how-launch .ico { width: 15px; height: 15px; }

.how-panel { position: fixed; right: 22px; bottom: 74px; z-index: 46; width: 330px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 14px 16px 12px; }
.how-panel.hidden { display: none; }
.hp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.hp-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.hp-x { margin-left: auto; padding: 0 2px; border: 0; background: transparent;
  color: var(--ink2); font-size: 16px; line-height: 1; cursor: pointer; }
.hp-x:hover { color: var(--accent); }
.hp-foot { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.hp-foot .hp-guide { width: 100%; font-size: 12.5px; padding: 9px 10px; }
@media (max-width: 1180px) {
  .how-launch { right: 14px; bottom: 14px; padding: 9px 10px; }
  .how-launch .hl-txt { display: none; }   /* 窄屏只留图标，别压住底部输入区 */
  .how-panel { right: 14px; bottom: 62px; width: min(330px, calc(100vw - 28px)); }
}

/* ── 「布飞怎么用」三步条（2026-10-09 口径：教学讲平台怎么用——解读 brief 出方案，
      不是教写 brief。颜色走令牌，深色模式自动跟） ── */
.how-strip { display: flex; align-items: stretch; justify-content: center; gap: 12px; width: 100%;
  max-width: 800px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.how-step { display: flex; gap: 10px; align-items: flex-start; flex: 1 1 0; min-width: 0; }
.how-n { flex: none; font-style: normal; font-size: 12px; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.how-t { min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.how-t b { font-size: 13px; color: var(--ink); }
.how-t span { font-size: 11.5px; color: var(--ink2); line-height: 1.6; }
.how-arrow { flex: none; align-self: center; color: var(--ink2); opacity: .6; font-size: 14px; }
/* 竖排（教学面板里用）：去掉卡片壳，只留步骤本体 */
.how-strip.vert { flex-direction: column; align-items: stretch; justify-content: flex-start;
  gap: 10px; width: auto; max-width: none; padding: 0; background: transparent; border: 0; border-radius: 0; }
.how-strip.vert .how-step { flex: 0 0 auto; }
.how-strip.vert .how-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 6px; }
@media (max-width: 720px) {
  .how-strip { flex-direction: column; gap: 10px; }
  .how-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 8px; }
}

/* ── 示例卡 ── */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; width: 100%; max-width: 780px; }
.ex-card { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 15px; display: flex; flex-direction: column; gap: 8px; transition: .15s; }
.ex-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.ex-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ex-top b { font-size: 13.5px; color: var(--ink); }
.ex-pkg { flex: none; font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 7px; padding: 2px 7px; }
.ex-scene { font-size: 12.5px; color: var(--ink2); line-height: 1.65; }
.ex-acts { display: flex; gap: 8px; margin-top: 2px; }
.ex-acts .btn-ghost, .ex-acts .btn-primary { padding: 7px 13px; font-size: 12.5px; border-radius: 10px; }
.ex-note { font-size: 11px; color: var(--ink2); opacity: .85; }

/* ── 引导弹层 ── */
.gd-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.gd-step { font-size: 12px; padding: 6px 11px; border-radius: 999px; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--line); color: var(--ink2); font-family: inherit; }
.gd-step:hover { border-color: var(--accent-line); color: var(--accent); }
.gd-step.done { color: var(--ok); border-color: #BFE7D2; }
.gd-step.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.gd-step-end { cursor: default; }
.gd-body { display: flex; flex-direction: column; gap: 4px; }
.gd-field { margin-bottom: 14px; }
.gd-field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.gd-req { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.gd-field input, .gd-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font-size: 14px; font-family: inherit; background: var(--panel); color: var(--ink); }
.gd-field textarea { line-height: 1.7; resize: vertical; }
.gd-field input:focus, .gd-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,91,34,.13); }
.gd-bad { border-color: var(--err) !important; box-shadow: 0 0 0 3px rgba(240,68,56,.13) !important; }
.gd-fhint { font-size: 11.5px; color: var(--ink2); margin-top: 6px; line-height: 1.65; }
.gd-note { font-size: 12px; color: var(--ink2); margin-top: 10px; line-height: 1.7; }
.gd-actions { justify-content: space-between; align-items: center; }
.gd-btns { display: flex; gap: 10px; }
.gd-hint { font-size: 12px; color: var(--ink2); max-width: 460px; line-height: 1.6; }

/* ── brief 弹层里的引导入口 ── */
.bfp-guide-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bfp-guide-btn { padding: 7px 13px; font-size: 12.5px; border-radius: 10px; }
.bfp-ex-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bfp-ex-chip { font-size: 12px; padding: 6px 11px; border-radius: 999px; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--line); color: var(--ink2); font-family: inherit; }
.bfp-ex-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ── M6 数据回流：案例详情里的「沉淀资产」列（2026-10-08）── */
.case-assets { display: flex; flex-direction: column; gap: 8px; }
.ca-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 13px;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.ca-name { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink); }
.ca-name .ico { width: 15px; height: 15px; color: var(--accent); }
.ca-note { flex: 1 1 220px; min-width: 0; font-size: 11.5px; color: var(--ink2); }
.ca-acts { display: inline-flex; gap: 8px; margin-left: auto; }

/* ── 2026-10-12 修②③④：出图比例条 / 大图灯箱 / 思路小字 / 澄清卡 / 系统能力名单 ── */
.msg-img-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.img-plan { font-size: 12px; color: var(--muted); max-width: min(420px, 72vw); line-height: 1.5; }
img.msg-img.clickable { cursor: zoom-in; }
.ratio-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ratio-lbl { font-size: 12px; color: var(--muted); }
.ratio-chip { padding: 2px 10px; font-size: 12px; }
.ratio-chip.on { border-color: var(--brand, #6c5ce7); color: var(--brand, #6c5ce7); font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; }
.lightbox.hidden { display: none; }
.lb-body { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; }
.lb-body img { max-width: 88vw; max-height: 76vh; border-radius: 10px; box-shadow: 0 12px 48px rgba(0,0,0,.5); }
.lb-acts { display: flex; gap: 12px; }
.lb-acts a { text-decoration: none; padding: 8px 18px; border-radius: 8px; }
.msg.bot.clarify-msg .bubble { border: 1.5px dashed var(--brand, #6c5ce7); background: color-mix(in srgb, var(--brand, #6c5ce7) 6%, transparent); }
.cap-builtin-grp { margin: 8px 0 0; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.cap-builtin-grp summary { cursor: pointer; font-size: 13px; color: var(--muted); user-select: none; }
.cap-builtin-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 4px; }
.cap-bi { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.cap-bi em { font-style: normal; font-size: 11px; color: var(--muted); }

/* ── 执行线环节芯片可点（2026-10-12 站内巡检 问题 17）──
   比稿线的看板每一步都有「生成这一步/重新生成/查看产出」，执行线是同一个引擎、同 10 个环节，
   芯片却全不可点 ⇒ 想只重跑一环只能顺序推进。这里让芯片整体可点（动作在 app.js 的 chipAct 派发）。 */
.stage-chip.clickable { cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.stage-chip.clickable:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.10); border-color: var(--accent); }
.stage-chip.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.stages-hint { font-size: 12px; color: var(--muted); margin: 6px 2px 10px; }

/* ── 空字段提示 / 编队降级提示（2026-10-12 站内巡检 问题 2 · 问题 3）──
   问题 3：卡上可以有字面"待填"的空字段被一路确认到底，到导出才被拦 —— 确认之前就得看见。
   问题 2：10 环里 8 环是"未经择优"的降级稿，而界面上此前零提示。 */
.blank-banner { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid #F5D9A8; background: #FFF9EF; font-size: 13px; color: var(--ink2); }
.blank-banner.hard { border-color: #F0B4A8; background: #FFF3F0; }
.blank-banner b { display: block; margin-bottom: 4px; }
.blank-banner.hard b { color: #C0392B; }
.blank-banner ul { margin: 4px 0 6px 18px; padding: 0; }
.blank-banner li { line-height: 1.7; }
.blank-banner em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.blank-chip { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #FFF3F0; color: #C0392B; border: 1px solid #F0B4A8; vertical-align: 1px; }
.field-blank textarea, .field-blank .field-preview { border-color: #F0B4A8 !important; background: #FFFCFB; }
.deg-banner { margin: 10px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #F0B4A8; background: #FFF3F0; font-size: 13px; color: var(--ink2); }
.deg-banner b { display: block; margin-bottom: 4px; color: #C0392B; }
.deg-banner em { display: block; font-style: normal; line-height: 1.7; word-break: break-word; }
.deg-banner span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.cal-lg em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 4px; }

/* ★ 2026-10-12 站内巡检 问题 21：跑过又"没跑完"的单，要给一句解释（导出卡为什么收起、成稿在哪） */
.undone-note { margin: 8px 0 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid #E8D7A8; background: #FFFBF0; font-size: 13px; line-height: 1.75; color: var(--ink2); }
.undone-note b { color: #8A6D1F; }

/* ★ 2026-10-12 站内巡检 问题 27：示例卡上「一键试跑」的代价提示（真跑一单 / 5–15 分钟 / 消耗额度） */
.ex-cost { margin: 6px 0 2px; font-size: 12px; line-height: 1.6; color: #8A6D1F; }
.ex-cost b { color: #B45309; }

/* ★ 2026-10-12 站内巡检 问题 36：Skill 分类下拉的"这档是干嘛的" */
.sk-cat-legend { margin: 6px 2px 10px; font-size: 12px; line-height: 1.7; }
.sk-cat-hint { margin: 4px 0 0; font-size: 12px; line-height: 1.6; }

/* ★ 2026-10-12 站内巡检 问题 34：内容产出里的物料图可点开看大图 / 下载 */
.exec-img.clickable { cursor: zoom-in; }

/* ★ 2026-10-12 站内巡检 问题 8：澄清卡上的"不等了，就按你理解的出一张" */
.clarify-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.clarify-acts .muted { font-size: 12px; }

/* ── 关于布飞 · 备案与协议（2026-10-13 用户令）────────────────────
   取代原先悬浮在内容上的 ICP 条：侧栏底部一个固定入口（不遮任何内容），
   点开面板集中放协议/政策/备案；没有正文的条目如实标"即将上线/预留"。 */
.about-entry { display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: 0; padding: 8px 10px; margin: 0 0 4px; border-radius: 10px;
  font-size: 12px; color: var(--ink2); cursor: pointer; text-align: left; }
.about-entry:hover { background: rgba(255,255,255,.07); color: var(--ink2); }
.about-entry-dot { display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid currentColor;
  font-size: 10px; line-height: 1; flex: none; }
.about-card { width: min(520px, calc(100vw - 48px)); max-height: 80vh; overflow-y: auto; text-align: left; }
.about-lede { font-size: 13px; color: var(--ink2); line-height: 1.7; margin: 10px 0 4px; }
.about-sec { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.about-sec-head { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.about-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 12.5px; color: var(--ink2); padding: 3px 0; }
.about-item em { font-style: normal; color: var(--ink2); flex: none; }
.about-item a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.about-item a:hover { border-bottom-color: var(--ink); }
